From 716fc93049d9a5453faaffcbcc525e72c4a19deb Mon Sep 17 00:00:00 2001 From: Kaiyi Date: Fri, 29 Mar 2024 17:53:49 +0800 Subject: [PATCH 1/4] feat: update trace view ui bundle --- .../_sdk/_service/static/assets/favicon.ico | Bin 40071 -> 0 bytes .../_service/static/assets/icon-IVYk8x5p.svg | 4 + .../static/assets/icon_for_dark-3C8HbOu4.svg | 4 + .../_service/static/assets/index-Rg6Z62xy.js | 1941 - .../_service/static/assets/index-ofpZV8_l.js | 1870 + .../_sdk/_service/static/assets/index.mjs | 139639 --------------- .../_sdk/_service/static/assets/style.css | 1 - .../_sdk/_service/static/index.html | 30 +- 8 files changed, 1894 insertions(+), 141595 deletions(-) delete mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/assets/favicon.ico create mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon-IVYk8x5p.svg create mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon_for_dark-3C8HbOu4.svg delete mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-Rg6Z62xy.js create mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-ofpZV8_l.js delete mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index.mjs delete mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/assets/style.css diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/favicon.ico b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/favicon.ico deleted file mode 100644 index 8616856d8226d7c9354a057b4d4b51d743c55375..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40071 zcmd3NWmFx_wqT!wyK8WFO>lSj1PE@yCAf2t;1(c|K#<_>68u1dJHdh;+}(Zn?!EKg zTeD{VPxtCoySA3}+Eul8HvoVDc;KH41W*BrrT`%K0&{WwyKch(00}QRDyo0inQ#E$ zIvfD7vHwGV5vBYJ08tuh@))S3s4t=ziV8AX|4{#VkP%-BL)YRDF9p1{q^cwU)Fhxi zm?6B>sVo$rmd@r@9NvyD|1ba|-a;>+qm{cEmA9jVlbevYD9yh(gkIo((3~_>|6*~s7p2it z)u57gcD17775Bm!TyPJ=byO}q;lN;^7mHcl#GFEODuC^}jw$4se|L8R{clK}>rJ?!9 z(0^V3Zl{&E?SETxa{EuWUOLG64~3JPgNyUObias-{DT#ec6M-f)pjwnuoB}I`4{8= zME$pwe{*ZtdRsZ@$=EttIk~;GNQ~zV-+zSuPs;yQQvd%c`9CQCkrd(lr@Q~7`~M!> ze_>w+R}58z^S>ra40VgNaS8w=07V%|9dFQKJ4&0Cygp~k)$+ExHI=lNHA5&h9En2r zg+yC1RhoX5z$yIdGNXtD13h|l&he$+_3p1QItVhcCU+v0OrY@;<8q8t+u&Ocx?lxd zMesLiL>~1e>*MyB$LG!;r8D#PSljN5yJBUfepRJ+g{7AjcR_E&156_?jNVL1jw1p-8o0Zl|E%O`fuN5FFlNuJ$1~F-}l?5wciRa zT`7s(+fwv{Ow+ABdGB-^ja&QL^A4-nqW3P$ZEx}6A#0GK4ujaco(AQ|<>pPB-DF0S zC*`K24@F;E?~(nekRbANT?yg0oev{JLAm93$Hmcm^va^#b0wN1f?oN;!3X0umUfzy-W`j(4q*^oa?A^*+llZBtp<|; zp1+13n*VUFwAJfAV>}w4G62v0r{0#ZnPg_r9UKmTd3)tS2%w^X;mFc(kb7k>T{@Y> zR`#*PTy6@gZfBf!LKZhOH~vwSL`#Xmo4w$B8~*gu+ozLlS#SpTbD~zyw+c=${sy zjc(bfu8h832D$oFxBd9-N(pm3Y)69hofDd(oQwU21nDE3g!oax>`ce^iPr7>34Uf1 zqw{68-md8`F4(=sn=L?c1?GA<_iv9|*NSrwIz7gZ+dX}%>wVB+7Rp$Zz+cFc2m&HR zx*9C-aJKJ)2K^-7RRx0T!r2Cpl!5+I?hu%;N1xGpEeAnOUS>hLk^gY(?(Q7ulT>TX zK@xjxEW56_VhyZe8uBu=e%9OgdeUb&3U@`Idw~pm89so2gU5IO6JgE*5V$DKh^Flf zXkP^9n-=BHyrKGB}sP)WM@ zJW^&1vAU~*ixeNF_tkfu*`72KBXELCEX}F{d?QhK>KH+=>M|#e_-+PMf_K0i9E4)^ zn5f;jP<2k;Z;_JtU0#Igwf1A+>3u@$&Gd8WqQ9Xt#Ys)|@~C~2NVeOG-*ocCsR_bK zkXdtQeFVof_fY5@QvVyq$Ui)iuWVCRQDLXZfOr@IaJ|?2%1n*z#2w(xv!vbR6o)(uAf2#``!3#!lYw9;X)9Ds0BR7$H(Z$Cl3cKxzlO`<7yliz+gDZ*?`}T$G{v&U2P{^#;@d}?W!T3Gvi!BW2Q`0*N z6b&CUKon@vaS4@34_O`pm?YE}W7_(6VkG2^Jd{5UZ_Zl00Z=CX`wI+^?efm_%tD+v7f z`W?`>P6)XNsZ6bMkKU-^ghLFJDF6*L5L7_NOx!dq0aLehHM7{b`gLVs(8`c;a_7e# z%*8lYa)egR2(Q^nrzPL@txZSPsy;uT&bIpc3uyx5l}!;$Z?N>-L|@cyEZOlr!CcE~ zA6kJ2n9Bh?C@StVTGWnf@+^$#2dG;Duo#J`KW)R`R!-OrIWGSaTuBaQF}ASaG~E0) zg&40+tX}T)_YD=SGGg8NKJ}XYvTAjo?)$~DG_cg{W^j7vbb6A-*%u>n{9Egu1YY%v z$c(bJYsi@7*mpkw9g~Arr2oXW^XP%~By%igK>f`QL7!28^2hE?ei}eSc~>OqSnGmNh#LJ5r*B_HOvtu6D9ZP7EVM7R zT6A8%niZ>?@3_8|?R+jVcD^OC$gv3fmVM4I=1R$VeN)_b?*~Tr$U!%7nuDtra_zWG z@bed=gzmStFiHr5d6sCYvR@l%G991gxH-y8JRj)46`106X zyd-?5Hbq;9_iRkg_0)CY+7upSNW{pYj&RNhkZw>m(Vk=2M%!@^%{xH717m7`P$J}#)89_7y)JmeKKmF%{ z!RSYJ_=fOcGL4S-YIC`5fANIBdV%in=z&Elkc9e}S=k$!6_5jdlme>hrhxdCv6fMq zD~sDiUx>_Lv0HLt0!c*Aj@@FqKRAJJO!O|J(_P($mxx09AMYD_6m;HN6>yf*89VD$ zW&#yGp{QN#J5iTZWn?W*rWdo4P#?#b>L!mD*=sC z-x5G1fLi<7T@(TEnHgebp`vB>;gf>W+-GIxFR}6=%l5+sD)**LM*OI^anj{cPX#-1 zLC!Z&v+S`I0em9yLL^GW1Y1VWzTTCGqXjHx--RF&On=(IFY?AK(}#jcohrpZ^T?=x zqL6|0o$*ih#4jM?!E*`fW=NKSm)$S8@V0Td00t8R@9`XTHjc|OysD07FH$fRxhyyl z(u=H?N}eStg__U8sPvPLxdvU(h^HSVGK=dKPZvu^I+T;tj1}Mf`MH`+-2cI8{jkHIU}E&r^%xJIXZ_EumCi27GmR)2_S1!b?wui5Z!I!iOu}; zV&aGXQ0&?!Ch|m%#z-Q_aqnmQUyk%7XRrcurqPKPEnB0s8VL0Qup{ZO%p>gZ>HYG8 z4SDiuW*I-wvulPWpq#H9tK^#A%HE!0$Ufus8C~5y#7VatX)2NF3XYsY?Uz0FCB4s{ zIEL?>i7$}uRRKz-E(*xepoPt>Wcl?OkA*=stX%{k+klJoiAm_N0nCm(($qsx;ZKFQ z;eYbOKvEt*QEu|>v4ImSDlr7?JPAWoe=wKodnEL@9gi)oUdh}q!Me8-g|j8baIFnW z9S`Oo(Xu(^xrt#za=LM)d*zN;&d+s}qvA$tx?*e0NDx7ez|B@C-*=t-0`|6C-h`C< zr@B5|dIZpuEC?2@7zTi;FeLkKkfti9aQ(|Ml@~UD>V0C_*aNDo=fdUV6?FcWHpKWN z>Wfz?aRjr-Xy;6ZYa`^)Q3*mCR6@crXB}rhs&0L}t>WbQhRCxFt}dkH z@Hg$2m1IWVHwQ>LN(O^&<67CkHrdztjaJd9LuhD)<)vvOb#bj-M%`11?uw4cW%PbG zLyigD4fbc#mE&i^BlRH1@nh!=uM0t&fN-l(tfYh9eOC&9 zwmpJj)c$%l7z1UfA(Rw28uFWW2r=d^4VLvmy+HP!nWi{L9b57v@O<(sG789phYSz} z=dUDgh;s_leG|r@f6N~5*A|`i^a(L&W|3SxPo?I#kHh@o?w06zBjl#4TZUj<*e$nu zqBi$5{FDEozmC(-@2U64?FVZsGGRe_3aXpqx$VY^_Q2;^P`{*l>H|O|LN5`@7ECyV z^HXXal$Xuh25zCiC)>bB14&sfy*SP=RXuiq$&UZ(#|PjuNU*T)P3`Bmj=U$4Yp8tq*_2oxMOExrR69Wt8hwNbi;{fPLUHv3`*C`b z%-M2waa`9bc=!`Z0Mm^J3;SVZ?4@I8pC6LiG?~Qyeh&5ZkY_8$Gh%z|$A9c~?+o5O?gGe8D&DkbUrMUp z?4Et$qElZ15)B8Lvt6ujGz1T(rNz!F*dUsEjJ3IV3y=V&!KSA~R+n7Ic@^gRnc z-_anV3|zoYK*PDbE0VlYM|w3R{=7CoIlLmU@o6bIU!1rJ4sj-CZ|@~ zmh%Kw&(*h2m+_q@_1rakOxTC6^5}LY`u#-9_;)M+Nkii=&4t)-l00@rwQRiKh`n zU`%<}%bfP}7YPYiM(o0w;XIg9T#dzXZD5$2>3Oj+f-mbNIyCFLeQf!(;Gt-2^L_ad zw*2_s#mtwB&Yy@P$9nmW zzmrUm=)E_$^Wh70Gy6?cxef2dWW8u31Z zW7Wffn)$7t)2eLy<@-r5y5it-Ek+y;BTuVb+}o@$vQt5 z`wsUGksLM9gyZ$N2bX=k$$7HkTSTtJ9bdBVPp9|Z6Tg0Jkj3%QtT+y`2K3HewL7Bw z{uS3CpGM&F{mChJ0TH$2p!L`-f+uX3zYatj0QHOYx{7cX*c!m64>4iWE{$n+eVx2C zG!mQ7VNW}M1Rmeg7MzQjSY2dg^XyUpw`Vxwat2df&bWgVAhk=q^7ue6+p#a4Szg`u zCYP%g;%zwf-#>Wg{9%Pqiay3u_7zSdfquo2?FscUob!@f^A?}`GstDqx#+K{IQSv< zQenqR3My(4XJp}BZ9C%`?C z^$WyY%jZPH6fK1&j%p@pOG}sFhwzFO^V_0k@(~})44Q;qrhN~s=~2rgo?&`qT4@8|37X~^x9y87 zV&|_UEBpj6b!Z2y?*A^fV0Ax{QFuOx!Fq_IHU4=k$RBVzTD6Ec{T&y}{Yw7Tbtxie zm9O$xT4!ejPEXT~K#Cv?-;@-dtfl;8qSG-?eYlP- zY-t_-;(%{;0V`HRK}Jvtp+1e=MY(*jJ=ICar(#-XV9g0=Li5F37Q58n!hl0l(k&ey z2sL7s4p-faRoBmp5GkPdo$SqLyU%sBk(g+i%x80~>EzgkUbXDi$OUl~i4NZ1gPfB6 zo7N>k{75;3eim-mX=Q=8f40A$1g#ehAq8EGIzMm4S#JC`ao98U-I@`;u4p8nJi#BZG{L?~az7!bDFKt|;*~yvZgeQv98c&lh?k!W25InJ;_t z_Q4xWI~CDfm<}pDo(TyctoHq^wUbl>;1f;)jz&wMOJcJOJicENSi=+<4pX2(mbpn1 zk{eFJOsuGT;@gU;6>w10$V7XnClM{AL?q^o={e@{3>?ynG)nuNdD{akqL`IFquwIE zyXROBr-z&i&&{*`ruPOC zP^51v9srAMi7VC;O`fT0FlO`8>Xej~E8Mlz>rg`=Vf zFf8vYKjo?t#G$iptX|~sn8QjpssYorZWE$soB#UJJAxQnTxY(Mmq|>%_{GfJFX<}rS9t^8s|DL)fZ+Mao<-q$>!{cAG6wzGYV`-w>#U6U)j-LEJ9CSJoSU)IXYxPD}DFJ zvAMkKw8e^ovd2``d@gy1rUEI=c|vYGTB*T1jz!<@`#|{8OqEOn(7|JvSEf$tdId3@ z-|qO#e*CxKJTQS;H&Zne60^-)nTAn3QO=mF7pb!RQtNGvbTtuLl&PkyU$LpF_7J|MKz&M_^WGq zw&|N8qCR{iCQpU7JQDTgCg&A$_m8AGyuVpu_p?^O3i-)j;dwU=tt_kg_}3-MlyO9Z zHfR`Y;{5b~yb!9Ds5a`IvxF7kk%83b_3|>-6TT0_ z!tT{4q-j}D|2oLgfv#3bb};~{q=tUN4I~bO<#1p?y7>e{_d_Ih?Km4g)$*Yj*_cbX zd34RjqrmHp^Bn#_CyhJn6nSeZ0prBeoCK+hJ~D3Qj~(FN24|&CFyJM?^Sc%03mI-{ z>m1}^d*|H7RymfTJJufYW%d!aRZXVOmHyEpub~c@TrR83idk@I%nPWyDrol=S9)mX zL)?0jjG%1jiyFH*+=EGX1~WXd-nT7l7lEO0SfYntb4kU%iSHLEb`A1K{`%b&l7w#I z^Ev_)<(mNAprT%LAIY&oU<4@`b>+>u3d4&Y*3z3ep=eMmWBXv|6s9&XPG-&h`TIQp zL>VlxkS6wHxNB5C8bGl?$k38FML$uOFtc*Kl#V}x8<9{6_>?*{nWbeYuPZ(g4p!Np zH`WRloz`tl@$h>iYTr3vpRB%6)VA*8uL zVmZZL&ZPW$sszx$)K%NNOgnk?M24t>s>Z$#X{wcof>VV=rKjraQn9Ld>do9|H*uF%BsBz`vG_hpsb=-- z1=*jO%il8u$hHqKX1;#15ZgKycAC?>NDwL@CVQUBZF&a9k_mvuf88W%zn_gzLjWX> zcW;#2Z-PxK0j^wfqXBwEOncrk0MdFnW-4{r=`T9p4Z%Efq|_`B<1|^PI_SGG7JO4~N4jbSV3e zyXw4}$Lot+FBp!?drA}VrZWai=3`zTUu%*OJ|NJ%e2M=FnX^izv10Zc957z*=NyZY zY~FAB_xSj5IXhgyJ<&3}&t}`zaIiXW$RD8+oZ*?TMuM&uFYsC3NEf_3WO+#?LVlCW zD#Rh*(!kM$3`gpZgy7f9gO`Agu7ZkPP?Md%Cm)&?vhZ?X*K(3R%h`4rd$Io1+uW(CnVlHAOp^C#%{JmxU){jUDgefEb%Fu?lZ z@ssI$Si4vO5$ACly)GYuPs1-^>4w)7! z!95(v81hJwv&?;)fk1My(Ux<3GrCfLpm`L?gpWl$`wdP8sBYi!(=5hS> z($P%n}`e@ho)JnMBGOdJawy~W>-EvPSi=BWZ*;y^8@ zU)&ix(e&p&i(Um9c zz-L5~`DzI5(v&DNGcJ6sFAkSP)?vTAgp*YsD?pvMO%3FR?_s+jZa{Ujc1RKqf5y*i zn|$8l4OEqbl$sKd{Bg!YwPVFVb&7Eu5IhTJa7dPiIR4n{iLhw z5NG~u&vrQZYwCm4w^?J>OaV^@0Ji;jU0gar5o7ok$&_U%Sng&I#$^gFCi|MdJ51K4 z>Qi(JG3OvG#*2Iam4l6mO~M(4WgEpje^%4_!-rSqp#gP$ zzMJbO6l2`#m8E&=y_}*4Q8tk)sI~Y0S&X8ibh5%B;VjO98$BGWUaRBZ0HF8)<*Vb@ zAhbkdPjdYHox};ryu>~(RYW|bRtV|qQ68Wkoe8{4tAMH7IIw8KBi9G ziZV4dXEjHQm{P-ILlp$aZ%atnJ?{(JaM28HQx%=r$aUGdXZc}7niIU{y2uvCeJ$EA z+;_jlHz}q_5{p7wZ=}934ehG+Kj||-zB=p2i$T4aX?iF_@(cRP%#Z)UVrg?J;EmVd`zRXIH4mC3BBDJoEm8_3PcT z890my8EcDK<&6>~@`f@~OI0XRZmOvIZRPgs233O#+RL_pT~?NkE~0~s@AU|~-Uc9) zgQK)ZNlgk*6-|oksa&BQg{Y3Z;#pAyIF-pUp*W6Y%<(ZM<+&pb{2dhlcA198{;3g8 z9x^)b!66@+Q!U3Z9eik*d05j6li;zH`n-v(1*%!h+fPVjqN1~j9MK_4Hy=v9*`Zk2 zRFZJag@gqvNKn6(K&AG1rkErfqDDrBFb1cM-qasM-9)sc`Qc9*=gU~xszXOX#B55Py*@be2G7hD;nAP zUEPqM9}C(-A!F?U7P9eGo9*m=J^9i3>EO}L4&$nulICFp7BSGV zxQ+Kr>Mj{ZwCHz$lVoN4nU&EdF%;-_tGxy@)sJd7fq_0L9)O|BQOKaa0#OTN^UwE6 zLBYw_$S&g_Vf$ef>d1Rd=<_%f^h`PWBoAES0q`>$0k7xBb0q!dKgz-FohnoiE7W7Y zMPH=|d_xSALV_3Jf&NvW5tYYa$dnU&+|G#=N&8GDgsE_)aA_!ih?K6UW1Rmj9$-II zUrKHIA$TA1H;eNSRkxk!8$x5n-9iM&^_^ug_i}W*O4j|{t zTic>O++~M%2pRhVURaM%ynP=cs*eFPWbHtM4LKiD&c9*g!mf5i;7_pQoYbp=o7!hd z-jNoZM)UWisn6rVg-8^skjCb#3FFqcIetmj&-TO=X(Oh1zA*P6|9rzO{E&jce@hxw zMtBoiGl7eCft~b6MAz=|Yve4+e%(w7P(4Sl(xr~^N~A6Yg~i_l`xiNkm&%P}O(3N! z9@p+;WBfaUIUXB=jZ&)$*9nvG1(Z>Hb2uH2{Q#4$Y#y$i9Y^GjBdUOpIn3A%obP&X z;jwGC-#KsLRO6)3B=5irJN+8{=HA3;rGtE;@JB4Mdx797rU{!(8ZG-&EF)$WPmNV> zaW$>acZZ-0OZuXgj?^j_udO^~$6=CL9b}CCnK$>Z*#>s)e&usn8^yGDiKjd!Tv{2V5bx-X z8qwyy2+8IkIU}F+bK+~Dz7DLDyzUr=gfWkI8@AO59)lda+6`TNw{E_OJN#4nJtnnb zCC6Of1bpy|R*fmVPoz1~`X2wcfxm+;o>C1MS45FS@uHNTnq=v3e?u|IfQAKw&aSc} z>-=T&NB*j+cbLhB<^=Ws8gRuQPp=KTsXU83O5dhz|L^Ub-Uw|VRlC`_k3SoIS~e30J~dz;?2;ABnN z3!V9$)M=YyCjF{*coRpZo|%`^^~=E0%f|tB^ItZxZP4J!7#@bT-Wh#K{QK2}h*0A* z15{4Z+6DbizzxktN6ug(18l2$hj&qc)aVRg$~QlBKrUk&|0*LLu?mg^l?h ze7!$M^xBH69%w7rev=6?aTN@Q)8$opBK%0v5a7?5G!$?}ba+bjgp0)#*MVJ#U#^n=JrB_WwVxhe zm_@;_a_w#sad*cOHZdclzGMLEM+m6rsL4&TNCT2UY|WUju~5nW{D`Gi&p*GC;J@(K z*z30*d)xSw0#VQuCJ5Z~Z2tL_NGtX@Jk)VDV)n+Hm+gDMW<^~&oc7BO%7KLmg=n-F zz9khU7D`Lrj@I?tn}$|s%JX&#k^eTO(jT6#F)Xgl)knID0s>ufSiD+VvK6bI2|DC=6YF&zMV~emx%kO*UWP9Oy*` z2oN)hiP<6-j~`;}nUMr2^O@~d^+RjZ91*4_rZI(v#~E@w6BVsXt!$*k(rBWdpU9nJLR z%!r+TcZ)M0-IBN&4e!c|L}tABd_hEXEq?3MgPQt;i+$5WezF11aTYOq9A|uoDM)|$ zAev@Cwg{fuuk3^MV0n0B3aF>NmA7>$Q!deF1=@f9UVkWS<2!L%lpQaELve)b`#$TT zIb{4>-^3ZjG!_760K-q6=p|4~=)!-!6^x`V0B~cW5^Za-l zW&I%dp^+a%TJ@W9M8q2y8Y}M~3De9PN{6h^ywKq98H9GHJ_1egD@g(`xO5OvwnJVMH0z;V1j5 z;}?GiAxeXD38YbYBk51T8eAM<78b5&9Z$Q0Hfa`1yITHeDxGp-3Z3X{8JCqGda{I; za}z5d3Hse?gXh!qG3JN=T)62z%}*D1u7@NqKg+M%T?o}bvy>xaZmo=*lYHyYba8vP z!B!#4ka(-^NGqSAqzF0k7aAT)vd>Jo?0t1b>MXqWd#@``ojmq>Is5n!?PSyP&*)ys zZj^z6Ymmj`N6qL{*GXOK8X6%HRQ0(AR1%&1LRLR=pEjQy*qvG?Dp1y%!tA13R5EGH zr7*-JMvZIj)LE4FNvzijZ(K}{8A%i>2abtdx+ToK_N{S{uae>fkl0cP9#D3=@ChrSJkNsbxO?+EP>16jdNen_W4%e|ernwW>p*F5 z3f1&wWkh0o_Y_G$R@J{P8y9t|HEW^qvDHHpQ^W)#%t|!f;?HvN=mFX9UHh*5QobK* z5Z6s;?XxZS`>ZdsN=SOZCuqiJ|+C~#8h`DHmd`Zw)86eY@YGJf0X*V^l8ZHZXlN>ft#nf&?MatrRBI6h0|lee4sdnDd0L!m(u_ zx@L2BDUNA$6_QdVDwn^Q5FEKRi@ot;S zYLY4^R9u7_$n-xVVA7LupN=qj9woV!-VLb`ufKGT-dqiWK0GqiyMz5!S;5T&zzIt2 zs#u2Zkx#dFFBXOGBE|F>qEV8|jJ58rEJZn6Glh94@*=dUW7Y;g&Kh5dA^oFdW+i*8Raqm902pX~zhp0gp@5QPp zQ%TlPjqPWIu0yUgDhZ0OT8tHNCEB1IPcy5O{9lDW4ctT$z19KjLw?@EoXZ#$WW z$+#cE^#^4PS3O(rQyBcVVz{?qgmC9gNQMp4BoWSBvLh^bdU$cvfY98dr&U~4&66*fx!{gzZV=5t^8*kBLsSj)aeHcW<7UFk-jnF;uz z%?gQ<>>W}z|JpUVUs3lB!<`G>Sr|>1hvv`BR+@*9v^Z6%6-bC}7Z0>CDU9iK&@;j> zpu2|P{5Xp8C_K2r>>HZh9UD9Sq?Bu6YVN!v{j{x59VPrJKf?vHy6~K7R9%S(PXL}2 zwR&g)p!Rv?5RpQ~7-lne*dprkJ49mTtKHD99fXy%vz;e-Uua(kuxU@KfE8Ji!8}AM z-+S2kIZDl-jC@?ET$U;T9ideRkqx6hab2QP5fgj56L;=Z%ywY+-z#)>`a9@jHt%C) z*dU2oQ?8kv=^*PxS0}ue2q#&JtX~7O(D&VSSyhm8P}^W-=Zoru8g^@w3RBl|gvi0M zGod0hhGP3R^M+VII(ROP z{#*3RaF7^=i~Y_cKKZZ>raIe3CfmHyZ40h>f%Yy+=Yt~m!RP}X*d;u)fEt?@O=QN~`1hG2tZ3DKPe zxRJ$dMlaohx>RBrSNTzdf5jslo-O5H5{cl#=^l}2KjyE;e$#^fwNm8Mc{jhwIgNWzQWl{QYxt{*l<86g3iC5pR&_Z|6EJGW8#sAwH_EdhNCIp1nXJj=fBEmJ2YYEQWGRYppvIk48s{y{l; z%(Qf2RoC7>y8vVw zy|oSBtSoqOF_~XxT%*V%`KXG%7IRuKhFK0b{#pTFoYner)ZcWO|W_nV9db*As zxxFgx1f>cl;J68}kimPQQ-qpT9zz>!M5Q78Urr1it z9&fCLZaN!=KASQa`kD@!S-Ax=FZRis$LV~{PG5|U&hxc-wN6;*_9#{cqD=l*Fk>pg z2TZ=9Z;Dl-k@FvNVwic|-;RZbr_{$sFUl&cSP@9MX=w-^ zw*&b`D<&N;%dwlb}2mb46nQCRGhgvL=~rkBAFa~V~Fxn#P|zf1_X zMCHs096#AH5wn-b|B#uDNlbn|Z4P`y*AgyWhk4eeAdQ@qX<)oRpkXoBo<|{TU-zP& zA$RR5Los@jYaG!CM5`e{UcNvj!Q^}WE}6ZN#-=6`(Mn**+i^8CB}B}zZ#S#SKAEKn zz(p(^ni5!F3);U-OX!;oqGkL2hHojRIu+*wnf)8QAGHu==5D&I@mvaRqvm7hdaLN9 zZ%Fi}!Pquz0%HzC1`2JPCqid3DkXUEc*fiMFT?BTnv7;oYqcfY`*W4U+xv}2;R#tG z`mJExUXC+Aey@wLu*UXloQ>$Uzs@ZVcu%n>tb$Mbb>b-aIxuC^bk`NNlJ~gnFTtG2 z-x;HKE^gzptxOT6ABiDhAJ9?uK4hYA7f>WlOaHtXT%B0SQK3bAwS>}Shqv8YhATt> zc$?kITj_cQlP4N>S8kC*8kLV4=e^Hul3R%X_;(c2`exnX2fjUeWCKyO^~77r0$4L&4$ujq^k ze~f=whb@W5d0>E#t*TVZF6Xz1>9NI;^K$Z<6^WH@UPGe@nWRG|s!xm@5TTdmrLN3X z2*8k=ufPX?kVCvSXE@Ev5$7XznA3=FijfkKo{LPy5P+{u3{BZndHo3)J0)40z})po zG8|El+r?n08#6rLF}nKWZla!=L$&>K`kqo>u??eX=|mxNv0zNW+XiyycOsUt9@+nd z5vMOC8}nxQNcz#f)p9ef&l32L`vnA!ev9$*;H8&_rZc}4+23|vd`WSNYClh=n6i8t1my%YM4KdqwTlK+JQmfoKlqXp zE2Tb&Byc$uv5vsX9Y~Kmb>8(2aX!#F1xFKmy*1YzGa~V5nSEWA@gx2GudWz446P?8 zZ`>buLq{GCQ#}nuC2~L$IBeKzGg=6ru;n}UP*DsVG z?ZQPj+1TYT6f<;K?o=vuHLhsRT!dP%t>p()-SZhdG~J96ZwW+fH5=#@<~l;>B9V+( z`x|)Ok~9-gLQ=l4U?$?l>^ZfsQRN7t4wjUJ?Ii)rMzYR-uoQNs_H+PPhJYc+oCHIn z2yO0fnoxB31Ofumse{qxVC3tr>79`})u{^6FOOXe7azVAPpEP?^wjClp~y!`Rc~$J zJvKqs`b>9q4$LB)Y)O=jq1@aO|>UJJx5ONcTSZMNF2J(%Wf-t z#dy+D?nQ|xz}He^E#XLtijnhL?*WH7KgT*|MD1OEGtphy02=&L^+!6ET_CNgq2Gbomu#6hec z531=qN_+2sNTLAM*(P%LBU6Z6o5RAWceF2WiFn|cItHuD zuw30Q#de16HLCEV9}uxME0*t_jp29_O86t+OTOah!J2D??>Iu>1XLEVU#n{3T!ujr zFJ`(c@sMfqFpBAfruR9if!NAE$~Uc2`bz?yFAH$8*D2=!U0#2$R6s9%&;(IvE<4;& zd;$l}fW%vVh6^EECDmomE=t@K15!DLY;IeyVo~qL=MKe0B1?pR4QLQ31N_Q^SIP`a zLyoo>A-?+@?xWg-jQZY2A3)Sh+F~d?8E5W?@VS!DX4#fPrC5>@@+98z$XK+v!`GVV z_2Li^E{DXA&s;A?l+JHToHEK)YX@LzZwk{K8PLEuWJ=}+j)w@J^q^J#n!01CZ!>t}osnxUc%^YA9xE~Q31Y;Qn^ z7q-m}yS#_5YY=vyRNL*%Im*gzw1fQu zf&OORD+XJc4|b&a>Eodt$h(p@D0v;mT$1a$4{C;jEkE8fKXY?WM41WH-&GO#)a9 z$RroLRnLbZ$(2~;@%S(6(b}6H;@^>pH8@ddDenCPNw3i_5T>@G;o(QW7%D)P45>b1 zL0XB^+f18v2k^gR3nA8#CcreQGcrba>A=;$*`j4SpqgrL9W)hH_SunZ6o0Zz2eTA@ z>V?y#V%g3Fo9K9J2s?Z^)R)?BJ2-@ZKYo@{fcB1iZ-Oj|ek!G%VIl&UdX%_(`5vnhuqK24EZig+}wQg5zQHc##& zU|7#iyTPaYxpH1gOQ--(qGgzih=Su~S_`Q04N_QP=Jd5p*Riiyd3%S#sQ96*C9#kO zF0^ozo0A%ESiwm$f~}Dhcf@;XkcJjah^|Ly*_zX|e1w&T>qd&BmycthuRwxCoBT@+ z!Y;&d7!LiMD?64;wv5#sQPpy?aU&i1`tRqd3IIm*g;u67LPNms27Q(0+_kuVxT6g2 zMP5m89xFB8Ho0WslsH7`BGNe1l^Jin7gsGd%bv8=}J~MgTwX@(=B`y3BLuh?v*+V5Uvnp41M3s z{xTR}|1#$9wSe->Zs$?<(jKTLY@Mrllnh7FqsyE;EO#T+QxYv|4t!YGuFt%>9!98o zmtR56F4j#A@?+`Z{G*4KYD-nzpk%_uO-rj2C0d-v!8Y`^*VO3|>nJv4GEAZ1s(@VM z$95Cg0b-Xm1#jENDv1r73~GBs#2;nhIPlm)l31k7@_LDk=vQH!9Px|@&M{2NP_1sP z>)9%)HwQUKH%uje33WFg*$y@16px_?2qJSD;Q3@wVHq0G8SS;JQ1_AP;@yzJ)2v@g zEJL<}4D9PRG6VS-{ZO^)|JB}mfJK#L{lg7SR1g%D97GVw(j-BNVn9StM3kI!&N-@x zN)kkp&=Ms{4uT{zIp>^n&LGsk+S!?J-r1eqac7*J?|J6(9B%dPsye@O`rHcV)U9jm zHXmp&+v8tIXeqCP9aJBwhUUeoX1IN7zjd?W>@s`jw9Y^^0!`6VHNE|&wsBaIp?j78 zw3{mVn=-)xw?}*|1Of-n3>h5IUFUE!%H~LWnQ}^B>Dt5UX|mh?%lTJxI|6EyoydgH ze$smA?BE$y^-3ZUkLUQ83SJ;mUNwv~C7g84n&_GToXk*q^oYjphcaNeIiT^J!ibK` z?hGO^K|drtYxi1h69Pf^0<#x@ZU$TR@*JO)%C+&CHS#SYysK;hN>8d}t)$rGOLmN= zg4u%l+6-n}28eId(<4XP5-+qQT{3wm@@Zk1wmEh~_QDa>K(R;@wi7t?`9U|1)D9Rj zDHj+$Zf4HJZylPxg3M)lt51<)hhk*e57E+M*K0+8?yOS?x~t)dtn!@B=JXg{3AFfv z`w8vkhgO$E(Oa#Eo$8#x#}_YXU9mGgz&$Q+89jPdCcxxvNPI626Tt!6V`bSm^t|tS z4+y@cEyBg2x~_MvC4k=|O)|Dc2A`3wWI;YxPnQfQDKbBknltbL?tIaT+<`*=NYQjz z&wM%pC)Ljdit%qfPFIKMgDvN^XV!z_Z_ID54eab4DqlO%U`%_Aj+MBeKhI?Joyel^ zZiqMqG0~wGl~URyu_)b3XvVw<1vQ>rR#`5=llOYq97-!svdF~x;NR5tNj}FIf!nsN zEf{h+gX$(>SE?qGbN)hH?p9l56^{43E4S#rbZPCK-ku|)^jEe%9)B0coSMMgUlr&n zTtZWzSvKCvy6<@OGsf>k^+{Wc+h&;pYmmv|RO^8obfsciWQzAuoui)%uRkY{30cF- z`k zi@91ZC%ebQT_$L3Q0l=I$d?zs;?K+x&RFTXe_&|wsAc)`mr$|Um>9?TV-g=P+Im@0 z@*~JEUZgQnMNo`&DlAorD;H!AUMDn&_d>9&OoZd;-92;w`yAgbA+bD4n8(|>Rq zxg~Dj66b$K42Q(d1Q%^Mk7V6K+!I8nxP|xnNYiAdPOh`%qHg!@jJecZDB>nZ@Z@nR zSJ-=`iKTOD#d}>{G&*2#7mvT4^T5^^X`MI8ocDyD5~)3#2&L(Lbc2Zf*06{7YJDIM zaYD#lrl@AVuoDlMkg-K_N74rzACi4(pAvaPwAMr9A!3Mv^MuccWh}nwN5`&Ut58|x zqrDWh!ztwQ^gLa-~C(dc3{gU!pJEBV4tpq37EalVm;u&z>c!?Q5c1uAqMZ|89 zTpb>juxbf zVYNbW>Pc%NKI|LM7~BfAL(oi}SfFv+hjk%Gj^rDKFfPicRHGnq&`x5@e3TUZJz9M%9*=k`DoF-449PJS54L033Gmasm4 z!Xwc47)}o@hkc>9F}+jhQ7O>}1c6=K_ga{;upb>4;;KlI9*>a?HQ@Y6h%1KEi~Y*(fvA?G3sZkEDty;T^KjPMK3R#?$AI3ft>}@r z%61zx?snBG(C6btoZ4O9B1sroC@HLJPp>R7ge*BZSLH2TC4+rnlI@U*Nh|vUTGO7s z;W_rMOQaHac4@3?%d0(&!*i$7%?@Ab7C8@`uawX}VJSby1?WJ z&e8j4aLlNluf3o$%cs}xC*67X$>0zZt6$%aER4lsZA`Hk?mo$!^2|w+cuGLpgCC7! zL4F16pmq04-2g&8tU_|_D1LgQ4x1+mw**c+OkkXn_57k0w?7#-RkD^7(U8U`P8nL~^td9+2ErBlZ2iFp4Sm_obGEnXaxfa7LDUCJDH2)eY zeBG1+r(K^Fr)h@VU6OP?d5QHZl_dSD*ukg= z^e{$`N(T0xW~9lbr)BEKcS@{d*RK0?2S&h#xJb1UD-Lni`g*uZ7PgQ(Ka>$B_6h56 zWp+m7KWFv#QI_Q5Frs^p)^`(nd-?cYg50KfjMtWwx<5+K|6KU4>`Fnu>Qbi*Kzy*x z+8wJddh)!rVN(K{TR`?Po$XvQv_F@JAG?xjaB( zMfyYuT4Nt@NVT#FYW884)nV)MKHf^^j7P*wFa6%cEyIt>Q&oU^pK8i*&~CpPm`vDg z5ICcCv9#vO+kYf*YY6qvyg>Z9u~WdiD~&VTbUgp?cHh;;yO+G< zCt8j@+mlYa+S;<*hNmnU75{4BYEvcTUx`}aFNtl{FDsH#wRqYV24Dn4J;`f zifx{7#5G|Bd{wogZik_>NY_uyhhJy|4(lyQ6mk zrwdzVFvXWnI0PSe4(W2&wn`^d2J*N+U(*1lCQ;u{S5p8O;;6({t-*Bf88B+QT+o@&cUgJI^0# z;#y(Pp2J#F!_80Tsi*XkVTv2N_n3+9l3{wz>xdMZVeVYtXI{pQhdyYczEWEb+X|mxdq2pbIbi3Cu8C%p`6U`YrDRlUBSE#g`^oAin(%HG>}Y+NBg8jxBuIvY zxV=cuI=Kk%oc;266W`(-2m>ZDG4nd~(BV+|^6sv1wyFfjkmEj+a_WbVOeRdNIHvg@ z{B2vVvd4w1-w2MJx{z4%zD=#tR31z3iX&g&%4mJ*UJ4dV@ZBf)2LcYq-?N;V)-4-8 zdL|*S$TD5b_0zqSbEgaD>zwMo+K;}mn|D(Erq~v52k)yBl!PVEL)$EHzUbUi+|Hlt z8CWbF8bXD>HplLHUBxYXgdpT#rFNs-!G>-@!Vdgp*1fxT9XEMLM+ZEq?RsTrwlEJctwVhZl%Fm-xGOkc3M1fw8O1T&zpK2txWXKKGzY zvJest%Afl(E!^N8S{kLVFp_qOpso2-6873L-D7i`yCr=LBw6V$qd}XsD}6LPXVw>@ zUp{HIn8dW)f%6mZ3wJn<84kLT8u`d0@?2I00+QwMJwq3+@v3>+;nh*WJBwdivRZ&9L6aPyJZsnVX5}hCPjS>RSlHA6oXQYyET{7eUbSK}QaPXqM`N@+eJFR**wl{1F@|S0HihU}gi`KR@cpv9g zNFxs(P?%p|Vv-k_&@HQ=TT3HR1Jj`ueHOfmjzVxuPr|4X)9z(Z!s#oK9~u6VPo3xK zC@IFT%oE7vC&dMo8^u(qBhtduO5k$mY}kEsTGDGJO#g;e?R$~KsCdz*azS}cVWy+9(PWv4w{%}C6NmGN z>Ykg~Bdy%OBKGc*=D4`fR+`QDp}H>&=?|M32EI(Uu9$n+^_8&M^CR-HSj&=I4MuOu zJ2XuoGA%B#-b#7Rm6bB@`Wilx8)iIO)Z90q*AUk(wk1$h?(w>KmC3CDOlDJ`$>ppu z-!iEbCvqth|M1weI`LL=2F2IW1zra~2{YSgH9z6?qNc7<%C0~@L5>7|$ZMuauDM_Fl|#s+!|=Y`*lXB~1iIzG;suZkHTYAtiLZe+w4Gc zD2Oy7uM$PvWOs5srZLwuD)9c}x|O^h;~8fAAVubTT4*;-3rmbVm1G7gLSWPasAUdL<=1MqKe_A;v#W8oa=8IJPymcI=!hdcivo&#Qzix$}lX zvVNx#GI!Nr{EeSwvO%Smy0JFzkT>JYWD)bdgFdf=MVn^eZgML9Bk#$zuIXOOF3>u2 zlyF>7tE690Lm@`diiW!*N3L>xX+x-tiYs;d-dV z>KORUx!-xTa5v}bR5oUk73Hdnx8~oi#?V|(bM%l@h$$gu;`wBOh+^}em)+JEPgr6< zuNN@(zasltrucP)DCs%alaMy39N0Q8>&}TNW`1CN(Z8f6OeKCW%*g#@1;Lc!dH**! zaEe1=@S4l#zjdUcjHFP zFWq}SA6=K}j8+`g<1RFP6?v=bmfLA*Ej+7++j#liNBRXXO6dm2tL0)xI2~y+6I^4> z34PR!oX5203KaZU=Vw$T`Sg!AFRklDKO|04kgH@c$~%z$G)|vmwWAaxYx3Ygk&nT^ zj$2Ka5gyrsKw>nJxry9!!N{=iniTy|<44x1F5HGB5tzIN>g(Zg2jj3#xRG2I8hyez zEMbNhYEYI*@#u4+ORAfSU}U0l>MfX?AJf*Oix%dm9&D~JFyZHS3S{w2DlQfDW}1ql z3Me0EH1bJxo@n(ovv*vFeWb+fg{YmFfy(}3%O!~ywL2=oU07Z1bNLR64+_fp?YlG= zSMA6mLq&sK(7sq`?^Y|%0i3YcY;#+sy+_dA%bibLgc+grb5L`_@a2^^10qx=db9w|dRrgoTGs7ChVTM%t6u8R2H< z>C$K>%Ts!y5OH|CKE4*gd-!)+$%lj;{E@6m`@EpB0SZjGp&_X< zRv%eYuXkHpMz{0w(CN}oTn+{tiF9@2fv#viEcD#7-X*fmcWXjBBYV5-7bUy+(AU&( zvy+REhb}i(YnyZ!;^Mb2jpn<$Z45GKcKFD5aabJ`ZlpKbgsdd42X1o|ZCSZzXpLp4 zJIazJ+An-jp(c$&Sa$SgWWL(V2P%T@(!Mdd_{Wwd{IDfHXqJ}ABP9-eEL>rd=!;}j zO)T4}jl{zm3^jUI*EZ)ZLt=Ll!5M^Cq+9g`xi>2m8u(JN1+6goUPX7AluE|GazkD! z_LPfjtULjwwh6i`ve`&wG_w4VD16dssQ_*|$gtnn&NWRhvFE~#-BxljLk@WoYn~xw zKoVVuOHkNn8ubBCvHgzw*FMmi= zA?=cH^37L88yGMF}ja;pIEe#VoDbVyimurgTY$8Oh_UsQ7#g zbLgR|h8i2fG+d7w=ZTj$OUiK)@$s+naAHg2nz?txS@2pV=VxIVU8;I4CP#ew1wL$$ z7%{Mhs75=#fMj+*C)%kZtoo3lN=@D%(fx0St38>*kO z(NC!%ino&Gl(p`EnT!{ouazVol8?-s-5dBWoOG|J7s6`@U#av(;61vDN-BCOAd{;%S&qQErfxA+ z&~20u$yWZaK!Ykp@EZmRV*U_3!V|d{2i-#zgSlAQXGpu{&DQz;# zc3P7apQ*}O_Gaj-IG$^oMktugKb7@ej@){Ie&p&)Ts&i5`8dzk{dSuqg>(LJ+-3C) z>8WdZXKSU(23uXu)k;m+w<7xwA&Mt7#aGd)_)3ei&G-ul z)QRbLZZt8O^P8i^a;mzRLS?#dh@P?jnX2eIVHYM#^>@$1tuMv4wyeEpvh%Y4&qDd&KIbEeQ@A7Z+KKoL4f|@u%*I zHT4?|sSdgQ>m#u5e8S8OylfYmcGrWnVA66ej)^1f2Cx|z)F&8%45*~iYlie8=b zcEFTccs3&CX1dg3TlnR$AdY7Vb(Y(C4XW5KiimjH&!)KMM9kJlNsX)Axb;Zp&~VGv zh|x;f#-6pokL_^h$66_dx2*;EF1`Ux5rx!7*sO{%5?Gjcnw_c7 zsN335vy@z#Oz~=siJT_J*pt=g6H0qMe)NvL9~jOpi7Sn+;I=#MvQAdqQk(TRXX1P? zS70IB7FG9@+X-%$d}*6qbEOLT>djb2eb)SDO&r@;fsWgB@p^&I;_Zla;yty)b-nnv zPb)Z)2`^?q#X51q*v-_iPSi;~3gW<5whutYqy*Vx+4Y!Sn&9z6(;9=)O@kbKbsNGAKC;G9^)vyLf_nN~IZY8(fbh$?dmgXnZ z4_O~WeKaeBg14#??TCLrCl3-g&ctrl`AZvv<^8h$%`a&DCFT)$LWdR^N#p7?@S&VXJM{)G^>O6otM$5r8o66u^aX6wpIKMmWZ zDqi$~I#02b%_TS4JMps^fI{?GDP`kMo^!NY2 zHSo6v{&)?{I-Dh5utm8n*`bQ&9k^-#cn;sM#wA<+n@hHQEt`(~VB1Lm%v>96|#3);_w zEgw0=IQ*lX|A_aO=f5ic1zTPtjLrNK?=L_9Rq@Z;qEdf(ul^D{=JQ__Kh%H4+P|^; zA7%L){~zDpV`}_c|KCTizqQtH(!UMw`8qxXZigD(i*9wgux3@7|M__CTktR1@k`Xn zQIkXbo5Nc40Ln1dqd{x_QHhrDx9aPU&bMIw+uNU?@T<}-b*j-}@Ph%(uX0p(tJ1=E z&;9wwf2IF_;BSXAV5nE)s|@>4o|o;a^qBYX{b|P^fgd9Sw5cC{3pM(sE_FKJb|u;) ze})jh3%}|Q`u`C>=8Unc!LK$&-_@Z;f8l$}@ZaI5|7!mjo&PIphjR6OwJG|w4h{P6 zI_LRj{CB9yJ2g%$b!#$%4viB4roYmUY0UXY>eph%eAnBeLJwb!`F)OW$A6N%TbpyK zN1GFLX>|AR2;uOtP}kc_3k2qus5`HKG~{y7^#uxKv^@k{^I zmQ2`6iFFxX8yK~e1%qZ+K)>m~rZJ1FV8BfFJL2d2xAT`d8zC@jD-ISME`voUX$g!T zeVLz}aAtZC;C9MoKJkLyeuvS`{ZZ@dV9??Q82AN^Ti*nOmWtmI|F4aIpuflF44AQ% z0MmBx{S6NC`%T(rYQ8L~KKIyS=I^tG1CNvbz~O`!@aD1w`PX&9fRzduwN(K_){tNt zLlbuD@bjHN75|(KKWuA6Aa*G*Z7TyN?G(V2!>#=k@wkm3_7d=jJstS5y#T(aB7hfb z5O8I=59M$N0fJWGy@oy*bI=B(_BvqLRtHQu>VpwG?eB-*237g<`R|;K0JN8L5c_#B zWhV=<-vAT#cff?BCPv!t05~(>1x_q3AV$gx zw3?cLNf%=<<6;hFG5((Ti`E@}@Nr`9(^*?lsPhXD`&EejCK$I@1!GW`V~$23L$VM& znA$C15;$R9!oUFkssR|Im*##oF8$mc%4V2>@ zl%o^`a^yofGQb121aS9MH1KA90^H%f;dsIuJQ4B)WoiyN-wXeoHNW7ZoyhK-og~D5 z8R}dfVpoRPHNdEY0mN<&h8^v|kh2TOmih!@xQ0OtcQ=UQZUYfq4N#8HAe6HT1arOy z0UWvDA$uB>BOcmT9JH$^3(hC*`l=Jz9s6GRG4;;cNy%`*n&7=m*2K{-0%xf7n7z%%a8#UUJ}nD?UpsYjiG0q%sOuH}T2*~F}?BN%pa z0RxU+5c>nr=NtrjU7mtm>246uy#x|Y&w=>U(@>5Hc%B4Fyi*{Sr@twNt6d2o0DMdP z|Lz#Kv7sAra(z1Ne0OWyEf8W40X@zUpvN^9;_m|q+$$iFcM&9=UIb~Vb&z;^ZZ!V% zgjGEE)WQE9>VM|k>)?N8z$LVJ&^;FPyC;Dzw-k^q-3#$AgLJ-a@DjDUlFYmGIE8nX z`kzbxHLd^vuzFn4cY541I);1-K>me3X#cZ&NxVxbiF^xOe+`uX8AYR47HPLfmRI)0 z#@A77!#|Bd|8vQ|bNsD=zcui;2L9H-pQ!=NIx|K{5|DmcXGRJ?{C)gx4FIUpMXS^Q z6K!JF)vVd`7tPtA%7K>`_U{(vH&!s~z)KC+lzd$mvkTWDE!gn20wpEnZ!G@1vca`m z21|B)qd%@|!T3=ZY*0;q2LCx*UMCD+Ozi!~IQ*Z*f7+h!1mwB4^ozATe-{5a8(xin zwJzk(;=f>xGW(zMw?UcyTmIkq{)0CD>-=r`8b@KwxJ!*ryF-PR<#*j+zf$<$^0z_N z_rlmajMr`TsMF1MsnI*W*C8kVm8$-$%fE$xhbrAX|Yf6t^6_Z zN=)1m6GQINpuc6&!f6E`cf9P}B8n*B_qZ%Y0ue|rJwr#;tKW`|tJ9D^) z+ex4C=Mu)CSzj59+T4UO4@|s92~64EhUr^>82=yq(~@A;;VS4g)msYW%oz*dNQ3_7 zNZ`W!5O}h?fJ`}K&}XFu#vQc4j1%-*+vxlu{O4?hq0Xhh`j#ghZi5bEXXvN=1cEtA zU>xGr*I0@-YZ!1o;RpOtPM|{794xq7gDDpa^Pj2oo03rfSJxb1EX3yQSD!p44)WC> z?`QzpjPHSHo_6pI`h77zcuYJ56Vt)OLOfYQfIEvHcp>Eh8jKv&zlrJ3GS8a}9h$Wj z>s)q{h5q!L&?l`4{m~{c4qyjbO`ZVsX^bDe5Bi^5A_zUL6mVu&Rh;)rRmW$?ej zhcLkXS(V?MoVJk_nRQeiTW~c5qmCF~xD)h)dxI9!IFP_Q4SmQH(C<0~3HsGe_d-8- z?J$f-m`C#E9r$Kuzfxe(NsDpZ(K2S#*==Xs?IHAI2Z1KDbm;S4fWFfOj2{yEgQu3! zJcIsm9PO09QqAwaJmC01Y|!Ot`LJgKXt68?seEf7nRoR|67O;nnrD*ZcQg166@WB= z?DJ05tT!v|O+bxSCGjju{)S?Ic$Pxd&xa!UB7c`{{o$bguJHeN8o>BTFcW!3NI&^W zaNvhO>6o_>pj)!zKK`xj033V#qko>9vqd?4OL@$^dES;6jd`AE*BL%jWQ(%?mhv0c zJT&lGlXc89CYbrrq8-ZWTgoq)aUY-mS@}6DltZ&R#cz(ULf;D`W?qcpzXqStnYQ5Z zZ&RUd#;kdS>uCSun#X@CZ^`ojj+MuTwc+?(oxZD0h3?Y7ljr}I=L6H0ybs`dw6Pu? z4ltw#*Q9B24EG!Gk^EX6KQF%tz8@{ EAF}?Zy8r+H diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon-IVYk8x5p.svg b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon-IVYk8x5p.svg new file mode 100644 index 00000000000..301152ac3b7 --- /dev/null +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon-IVYk8x5p.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon_for_dark-3C8HbOu4.svg b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon_for_dark-3C8HbOu4.svg new file mode 100644 index 00000000000..8bb74184d75 --- /dev/null +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/icon_for_dark-3C8HbOu4.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-Rg6Z62xy.js b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-Rg6Z62xy.js deleted file mode 100644 index eb8eae610b2..00000000000 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-Rg6Z62xy.js +++ /dev/null @@ -1,1941 +0,0 @@ -(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@layer rdg.MeasuringCell{.m1l09lto7-0-0-beta-39{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.c1wupbe7-0-0-beta-39{position:relative;padding-block:0;padding-inline:8px;border-inline-end:1px solid var(--rdg-border-color);border-block-end:1px solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.c1wupbe7-0-0-beta-39[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.Cell{.cd0kgiy7-0-0-beta-39{position:sticky;z-index:1}}@layer rdg.Cell{.c1730fa47-0-0-beta-39{box-shadow:calc(2px * var(--rdg-sign)) 0 5px -2px #8888884d}}@layer rdg.CheckboxLabel{.c1hs68w07-0-0-beta-39{cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;margin-inline-end:1px}}@layer rdg.CheckboxInput{.cojpd0n7-0-0-beta-39{all:unset}}@layer rdg.CheckboxIcon{.cwsfieb7-0-0-beta-39{content:"";inline-size:20px;block-size:20px;border:2px solid var(--rdg-border-color);background-color:var(--rdg-background-color)}.cojpd0n7-0-0-beta-39:checked+.cwsfieb7-0-0-beta-39{background-color:var(--rdg-checkbox-color);outline:4px solid var(--rdg-background-color);outline-offset:-6px}.cojpd0n7-0-0-beta-39:focus+.cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-focus-color)}}@layer rdg.CheckboxLabel{.c1fgadbl7-0-0-beta-39{cursor:default}.c1fgadbl7-0-0-beta-39 .cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-disabled-border-color);background-color:var(--rdg-checkbox-disabled-background-color)}}@layer rdg.GroupCellContent{.g1w3c5217-0-0-beta-39{outline:none}}@layer rdg.GroupCellCaret{.cm5tyhw7-0-0-beta-39{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cm5tyhw7-0-0-beta-39>path{transition:d .1s}}@layer rdg.DragHandle{.cadd3bp7-0-0-beta-39{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.cadd3bp7-0-0-beta-39:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.ccmuez27-0-0-beta-39{z-index:1;position:sticky}}@layer rdg.EditCell{.c1tngyp17-0-0-beta-39{padding:0}}@layer rdg.SortableHeaderCell{.hizp7y17-0-0-beta-39{display:flex}}@layer rdg.SortableHeaderCellName{.h14cojrm7-0-0-beta-39{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.HeaderCell{.celq7o97-0-0-beta-39{cursor:pointer}}@layer rdg.HeaderCell{.ceqw94e7-0-0-beta-39{touch-action:none}}@layer rdg.HeaderCell{.r12jy2ca7-0-0-beta-39{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}.c1j3os1p7-0-0-beta-39{opacity:.5}.c1ui3nad7-0-0-beta-39{background-color:var(--rdg-header-draggable-background-color)}@layer rdg.Row{.r1otpg647-0-0-beta-39{display:contents;line-height:var(--rdg-row-height);background-color:var(--rdg-background-color)}.r1otpg647-0-0-beta-39:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.rel5gk27-0-0-beta-39{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r1qymf1z7-0-0-beta-39:before{content:"";display:inline-block;height:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h197vzie7-0-0-beta-39{display:contents;line-height:var(--rdg-header-row-height);background-color:var(--rdg-header-background-color);font-weight:700}.h197vzie7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2;position:sticky}.h197vzie7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.Cell{.ccpfvsn7-0-0-beta-39{background-color:#ccf}}@layer rdg.Cell{.c1bmg16t7-0-0-beta-39{background-color:#ccf}.c1bmg16t7-0-0-beta-39.ccpfvsn7-0-0-beta-39{background-color:#99f}}@layer rdg.SortIcon{.a1mygwml7-0-0-beta-39{fill:currentColor}.a1mygwml7-0-0-beta-39>path{transition:d .1s}}@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;@layer Defaults{.r104f42s7-0-0-beta-39 *,.r104f42s7-0-0-beta-39 *:before,.r104f42s7-0-0-beta-39 *:after{box-sizing:inherit}}@layer Root{.r104f42s7-0-0-beta-39{--rdg-color: #000;--rdg-border-color: #ddd;--rdg-summary-border-color: #aaa;--rdg-background-color: hsl(0deg 0% 100%);--rdg-header-background-color: hsl(0deg 0% 97.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 90.5%);--rdg-row-hover-background-color: hsl(0deg 0% 96%);--rdg-row-selected-background-color: hsl(207deg 76% 92%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);--rdg-checkbox-color: hsl(207deg 100% 29%);--rdg-checkbox-focus-color: hsl(207deg 100% 69%);--rdg-checkbox-disabled-border-color: #ccc;--rdg-checkbox-disabled-background-color: #ddd;--rdg-selection-color: #66afe9;--rdg-font-size: 14px;display:grid;color-scheme:var(--rdg-color-scheme, light dark);contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.r104f42s7-0-0-beta-39:before{content:"";grid-column:1/-1;grid-row:1/-1}.r104f42s7-0-0-beta-39.rdg-dark{--rdg-color-scheme: dark;--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}.r104f42s7-0-0-beta-39.rdg-light{--rdg-color-scheme: light}@media (prefers-color-scheme: dark){.r104f42s7-0-0-beta-39:not(.rdg-light){--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}}}}@layer rdg.Root{.v7ly7s7-0-0-beta-39{-webkit-user-select:none;user-select:none}.v7ly7s7-0-0-beta-39 .r1otpg647-0-0-beta-39{cursor:move}}@layer rdg.FocusSink{.fc4f4zb7-0-0-beta-39{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.fq51q037-0-0-beta-39{z-index:3}}@layer rdg.SummaryCell{.s1n3hxke7-0-0-beta-39{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.snfqesz7-0-0-beta-39{line-height:var(--rdg-summary-row-height)}.snfqesz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{position:sticky}}@layer rdg.SummaryRow{.t1jijrjz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2}.t1jijrjz7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.SummaryRow{.t14bmecc7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-end:2px solid var(--rdg-summary-border-color)}}@layer rdg.SummaryRow{.b1odhhml7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-start:2px solid var(--rdg-summary-border-color)}}@layer rdg.GroupedRow{.gyxx7e97-0-0-beta-39:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e97-0-0-beta-39>.c1wupbe7-0-0-beta-39:not(:last-child):not(.c1730fa47-0-0-beta-39){border-inline-end:none}}@layer rdg.TextEditor{.tlmcuo07-0-0-beta-39{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.tlmcuo07-0-0-beta-39:focus{border-color:var(--rdg-selection-color);outline:none}.tlmcuo07-0-0-beta-39::placeholder{color:#999;opacity:1}}.json-view{display:block;color:#4d4d4d;text-align:left;--json-property: #009033;--json-index: #676dff;--json-number: #676dff;--json-string: #b2762e;--json-boolean: #dc155e;--json-null: #dc155e}.json-view .json-view--property{color:var(--json-property)}.json-view .json-view--index{color:var(--json-index)}.json-view .json-view--number{color:var(--json-number)}.json-view .json-view--string{color:var(--json-string)}.json-view .json-view--boolean{color:var(--json-boolean)}.json-view .json-view--null{color:var(--json-null)}.json-view .jv-indent{padding-left:1em}.json-view .jv-chevron{display:inline-block;vertical-align:-20%;cursor:pointer;opacity:.4;width:1em;height:1em}:is(.json-view .jv-chevron:hover,.json-view .jv-size:hover+.jv-chevron){opacity:.8}.json-view .jv-size{cursor:pointer;opacity:.4;font-size:.875em;font-style:italic;margin-left:.5em;vertical-align:-5%;line-height:1}.json-view :is(.json-view--copy,.json-view--edit),.json-view .json-view--link svg{display:none;width:1em;height:1em;margin-left:.25em;cursor:pointer}.json-view .json-view--input{width:120px;margin-left:.25em;border-radius:4px;border:1px solid currentColor;padding:0 4px;font-size:87.5%;line-height:1.25;background:transparent}.json-view .json-view--deleting{outline:1px solid #da0000;background-color:#da000011;text-decoration-line:line-through}:is(.json-view:hover,.json-view--pair:hover)>:is(.json-view--copy,.json-view--edit),:is(.json-view:hover,.json-view--pair:hover)>.json-view--link svg{display:inline-block}.json-view .jv-button{background:transparent;outline:none;border:none;cursor:pointer}.json-view .cursor-pointer{cursor:pointer}.json-view svg{vertical-align:-10%}.jv-size-chevron~svg{vertical-align:-16%}.json-view_a11y{color:#545454;--json-property: #aa5d00;--json-index: #007299;--json-number: #007299;--json-string: #008000;--json-boolean: #d91e18;--json-null: #d91e18}.json-view_github{color:#005cc5;--json-property: #005cc5;--json-index: #005cc5;--json-number: #005cc5;--json-string: #032f62;--json-boolean: #005cc5;--json-null: #005cc5}.json-view_vscode{color:#005cc5;--json-property: #0451a5;--json-index: #0000ff;--json-number: #0000ff;--json-string: #a31515;--json-boolean: #0000ff;--json-null: #0000ff}.json-view_atom{color:#383a42;--json-property: #e45649;--json-index: #986801;--json-number: #986801;--json-string: #50a14f;--json-boolean: #0184bc;--json-null: #0184bc}.json-view_winter-is-coming{color:#0431fa;--json-property: #3a9685;--json-index: #ae408b;--json-number: #ae408b;--json-string: #8123a9;--json-boolean: #0184bc;--json-null: #0184bc}:is(.dark .json-view,.dark.json-view){color:#d1d1d1;--json-property: #009033;--json-index: #5d75f2;--json-number: #5d75f2;--json-string: #c57e29;--json-boolean: #e4407b;--json-null: #e4407b}:is(.dark .json-view_a11y,.dark.json-view_a11y){color:#d1d1d1;--json-property: #ffd700;--json-index: #00e0e0;--json-number: #00e0e0;--json-string: #abe338;--json-boolean: #ffa07a;--json-null: #ffa07a}:is(.dark .json-view_github,.dark.json-view_github){color:#79b8ff;--json-property: #79b8ff;--json-index: #79b8ff;--json-number: #79b8ff;--json-string: #9ecbff;--json-boolean: #79b8ff;--json-null: #79b8ff}:is(.dark .json-view_vscode,.dark.json-view_vscode){color:orchid;--json-property: #9cdcfe;--json-index: #b5cea8;--json-number: #b5cea8;--json-string: #ce9178;--json-boolean: #569cd6;--json-null: #569cd6}:is(.dark .json-view_atom,.dark.json-view_atom){color:#abb2bf;--json-property: #e06c75;--json-index: #d19a66;--json-number: #d19a66;--json-string: #98c379;--json-boolean: #56b6c2;--json-null: #56b6c2}:is(.dark .json-view_winter-is-coming,.dark.json-view_winter-is-coming){color:#a7dbf7;--json-property: #91dacd;--json-index: #8dec95;--json-number: #8dec95;--json-string: #e0aff5;--json-boolean: #f29fd8;--json-null: #f29fd8}.json-view .json-view--string{word-break:break-all}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); -var WS=Object.defineProperty;var qS=(j,_e,et)=>_e in j?WS(j,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):j[_e]=et;var KS=(j,_e)=>()=>(_e||j((_e={exports:{}}).exports,_e),_e.exports);var Fr=(j,_e,et)=>(qS(j,typeof _e!="symbol"?_e+"":_e,et),et);var US=KS((exports,module)=>{function _mergeNamespaces(j,_e){for(var et=0;et<_e.length;et++){const tt=_e[et];if(typeof tt!="string"&&!Array.isArray(tt)){for(const rt in tt)if(rt!=="default"&&!(rt in j)){const nt=Object.getOwnPropertyDescriptor(tt,rt);nt&&Object.defineProperty(j,rt,nt.get?nt:{enumerable:!0,get:()=>tt[rt]})}}}return Object.freeze(Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}))}(function(){const _e=document.createElement("link").relList;if(_e&&_e.supports&&_e.supports("modulepreload"))return;for(const rt of document.querySelectorAll('link[rel="modulepreload"]'))tt(rt);new MutationObserver(rt=>{for(const nt of rt)if(nt.type==="childList")for(const ot of nt.addedNodes)ot.tagName==="LINK"&&ot.rel==="modulepreload"&&tt(ot)}).observe(document,{childList:!0,subtree:!0});function et(rt){const nt={};return rt.integrity&&(nt.integrity=rt.integrity),rt.referrerPolicy&&(nt.referrerPolicy=rt.referrerPolicy),rt.crossOrigin==="use-credentials"?nt.credentials="include":rt.crossOrigin==="anonymous"?nt.credentials="omit":nt.credentials="same-origin",nt}function tt(rt){if(rt.ep)return;rt.ep=!0;const nt=et(rt);fetch(rt.href,nt)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(j){return j&&j.__esModule&&Object.prototype.hasOwnProperty.call(j,"default")?j.default:j}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var l$9=Symbol.for("react.element"),n$c=Symbol.for("react.portal"),p$c=Symbol.for("react.fragment"),q$9=Symbol.for("react.strict_mode"),r$a=Symbol.for("react.profiler"),t$a=Symbol.for("react.provider"),u$9=Symbol.for("react.context"),v$b=Symbol.for("react.forward_ref"),w$8=Symbol.for("react.suspense"),x$9=Symbol.for("react.memo"),y$a=Symbol.for("react.lazy"),z$7=Symbol.iterator;function A$5(j){return j===null||typeof j!="object"?null:(j=z$7&&j[z$7]||j["@@iterator"],typeof j=="function"?j:null)}var B$7={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$7=Object.assign,D$5={};function E$5(j,_e,et){this.props=j,this.context=_e,this.refs=D$5,this.updater=et||B$7}E$5.prototype.isReactComponent={};E$5.prototype.setState=function(j,_e){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,_e,"setState")};E$5.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function F$4(){}F$4.prototype=E$5.prototype;function G$5(j,_e,et){this.props=j,this.context=_e,this.refs=D$5,this.updater=et||B$7}var H$5=G$5.prototype=new F$4;H$5.constructor=G$5;C$7(H$5,E$5.prototype);H$5.isPureReactComponent=!0;var I$3=Array.isArray,J$2=Object.prototype.hasOwnProperty,K$2={current:null},L$2={key:!0,ref:!0,__self:!0,__source:!0};function M$2(j,_e,et){var tt,rt={},nt=null,ot=null;if(_e!=null)for(tt in _e.ref!==void 0&&(ot=_e.ref),_e.key!==void 0&&(nt=""+_e.key),_e)J$2.call(_e,tt)&&!L$2.hasOwnProperty(tt)&&(rt[tt]=_e[tt]);var it=arguments.length-2;if(it===1)rt.children=et;else if(1>>1,Xt=Pt[Yt];if(0>>1;Ytrt(mr,qt))Errt(hr,mr)?(Pt[Yt]=hr,Pt[Er]=qt,Yt=Er):(Pt[Yt]=mr,Pt[cr]=qt,Yt=cr);else if(Errt(hr,qt))Pt[Yt]=hr,Pt[Er]=qt,Yt=Er;else break e}}return Gt}function rt(Pt,Gt){var qt=Pt.sortIndex-Gt.sortIndex;return qt!==0?qt:Pt.id-Gt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var nt=performance;j.unstable_now=function(){return nt.now()}}else{var ot=Date,it=ot.now();j.unstable_now=function(){return ot.now()-it}}var st=[],lt=[],ut=1,ct=null,dt=3,ft=!1,pt=!1,gt=!1,mt=typeof setTimeout=="function"?setTimeout:null,bt=typeof clearTimeout=="function"?clearTimeout:null,_t=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xt(Pt){for(var Gt=et(lt);Gt!==null;){if(Gt.callback===null)tt(lt);else if(Gt.startTime<=Pt)tt(lt),Gt.sortIndex=Gt.expirationTime,_e(st,Gt);else break;Gt=et(lt)}}function yt(Pt){if(gt=!1,xt(Pt),!pt)if(et(st)!==null)pt=!0,Rt(Et);else{var Gt=et(lt);Gt!==null&&Lt(yt,Gt.startTime-Pt)}}function Et(Pt,Gt){pt=!1,gt&&(gt=!1,bt(kt),kt=-1),ft=!0;var qt=dt;try{for(xt(Gt),ct=et(st);ct!==null&&(!(ct.expirationTime>Gt)||Pt&&!It());){var Yt=ct.callback;if(typeof Yt=="function"){ct.callback=null,dt=ct.priorityLevel;var Xt=Yt(ct.expirationTime<=Gt);Gt=j.unstable_now(),typeof Xt=="function"?ct.callback=Xt:ct===et(st)&&tt(st),xt(Gt)}else tt(st);ct=et(st)}if(ct!==null)var tr=!0;else{var cr=et(lt);cr!==null&&Lt(yt,cr.startTime-Gt),tr=!1}return tr}finally{ct=null,dt=qt,ft=!1}}var St=!1,Tt=null,kt=-1,$t=5,Ct=-1;function It(){return!(j.unstable_now()-Ct<$t)}function Nt(){if(Tt!==null){var Pt=j.unstable_now();Ct=Pt;var Gt=!0;try{Gt=Tt(!0,Pt)}finally{Gt?Ot():(St=!1,Tt=null)}}else St=!1}var Ot;if(typeof _t=="function")Ot=function(){_t(Nt)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,Mt=jt.port2;jt.port1.onmessage=Nt,Ot=function(){Mt.postMessage(null)}}else Ot=function(){mt(Nt,0)};function Rt(Pt){Tt=Pt,St||(St=!0,Ot())}function Lt(Pt,Gt){kt=mt(function(){Pt(j.unstable_now())},Gt)}j.unstable_IdlePriority=5,j.unstable_ImmediatePriority=1,j.unstable_LowPriority=4,j.unstable_NormalPriority=3,j.unstable_Profiling=null,j.unstable_UserBlockingPriority=2,j.unstable_cancelCallback=function(Pt){Pt.callback=null},j.unstable_continueExecution=function(){pt||ft||(pt=!0,Rt(Et))},j.unstable_forceFrameRate=function(Pt){0>Pt||125Yt?(Pt.sortIndex=qt,_e(lt,Pt),et(st)===null&&Pt===et(lt)&&(gt?(bt(kt),kt=-1):gt=!0,Lt(yt,qt-Yt))):(Pt.sortIndex=Xt,_e(st,Pt),pt||ft||(pt=!0,Rt(Et))),Pt},j.unstable_shouldYield=It,j.unstable_wrapCallback=function(Pt){var Gt=dt;return function(){var qt=dt;dt=Gt;try{return Pt.apply(this,arguments)}finally{dt=qt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var aa=reactExports,ca$1=schedulerExports;function p$a(j){for(var _e="https://reactjs.org/docs/error-decoder.html?invariant="+j,et=1;et"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka$2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la$1={},ma$1={};function oa$1(j){return ja.call(ma$1,j)?!0:ja.call(la$1,j)?!1:ka$2.test(j)?ma$1[j]=!0:(la$1[j]=!0,!1)}function pa$1(j,_e,et,tt){if(et!==null&&et.type===0)return!1;switch(typeof _e){case"function":case"symbol":return!0;case"boolean":return tt?!1:et!==null?!et.acceptsBooleans:(j=j.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-");default:return!1}}function qa$1(j,_e,et,tt){if(_e===null||typeof _e>"u"||pa$1(j,_e,et,tt))return!0;if(tt)return!1;if(et!==null)switch(et.type){case 3:return!_e;case 4:return _e===!1;case 5:return isNaN(_e);case 6:return isNaN(_e)||1>_e}return!1}function v$a(j,_e,et,tt,rt,nt,ot){this.acceptsBooleans=_e===2||_e===3||_e===4,this.attributeName=tt,this.attributeNamespace=rt,this.mustUseProperty=et,this.propertyName=j,this.type=_e,this.sanitizeURL=nt,this.removeEmptyString=ot}var z$6={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(j){z$6[j]=new v$a(j,0,!1,j,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(j){var _e=j[0];z$6[_e]=new v$a(_e,1,!1,j[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(j){z$6[j]=new v$a(j,2,!1,j.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(j){z$6[j]=new v$a(j,2,!1,j,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(j){z$6[j]=new v$a(j,3,!1,j.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(j){z$6[j]=new v$a(j,3,!0,j,null,!1,!1)});["capture","download"].forEach(function(j){z$6[j]=new v$a(j,4,!1,j,null,!1,!1)});["cols","rows","size","span"].forEach(function(j){z$6[j]=new v$a(j,6,!1,j,null,!1,!1)});["rowSpan","start"].forEach(function(j){z$6[j]=new v$a(j,5,!1,j.toLowerCase(),null,!1,!1)});var ra$1=/[\-:]([a-z])/g;function sa$1(j){return j[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(j){var _e=j.replace(ra$1,sa$1);z$6[_e]=new v$a(_e,1,!1,j,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(j){var _e=j.replace(ra$1,sa$1);z$6[_e]=new v$a(_e,1,!1,j,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(j){var _e=j.replace(ra$1,sa$1);z$6[_e]=new v$a(_e,1,!1,j,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(j){z$6[j]=new v$a(j,1,!1,j.toLowerCase(),null,!1,!1)});z$6.xlinkHref=new v$a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(j){z$6[j]=new v$a(j,1,!1,j.toLowerCase(),null,!0,!0)});function ta$1(j,_e,et,tt){var rt=z$6.hasOwnProperty(_e)?z$6[_e]:null;(rt!==null?rt.type!==0:tt||!(2<_e.length)||_e[0]!=="o"&&_e[0]!=="O"||_e[1]!=="n"&&_e[1]!=="N")&&(qa$1(_e,et,rt,tt)&&(et=null),tt||rt===null?oa$1(_e)&&(et===null?j.removeAttribute(_e):j.setAttribute(_e,""+et)):rt.mustUseProperty?j[rt.propertyName]=et===null?rt.type===3?!1:"":et:(_e=rt.attributeName,tt=rt.attributeNamespace,et===null?j.removeAttribute(_e):(rt=rt.type,et=rt===3||rt===4&&et===!0?"":""+et,tt?j.setAttributeNS(tt,_e,et):j.setAttribute(_e,et))))}var ua$1=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va$1=Symbol.for("react.element"),wa$1=Symbol.for("react.portal"),ya$1=Symbol.for("react.fragment"),za$1=Symbol.for("react.strict_mode"),Aa$1=Symbol.for("react.profiler"),Ba$1=Symbol.for("react.provider"),Ca$1=Symbol.for("react.context"),Da$1=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga$1=Symbol.for("react.memo"),Ha$1=Symbol.for("react.lazy"),Ia$1=Symbol.for("react.offscreen"),Ja$1=Symbol.iterator;function Ka$1(j){return j===null||typeof j!="object"?null:(j=Ja$1&&j[Ja$1]||j["@@iterator"],typeof j=="function"?j:null)}var A$4=Object.assign,La$1;function Ma$1(j){if(La$1===void 0)try{throw Error()}catch(et){var _e=et.stack.trim().match(/\n( *(at )?)/);La$1=_e&&_e[1]||""}return` -`+La$1+j}var Na$1=!1;function Oa$1(j,_e){if(!j||Na$1)return"";Na$1=!0;var et=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_e)if(_e=function(){throw Error()},Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(lt){var tt=lt}Reflect.construct(j,[],_e)}else{try{_e.call()}catch(lt){tt=lt}j.call(_e.prototype)}else{try{throw Error()}catch(lt){tt=lt}j()}}catch(lt){if(lt&&tt&&typeof lt.stack=="string"){for(var rt=lt.stack.split(` -`),nt=tt.stack.split(` -`),ot=rt.length-1,it=nt.length-1;1<=ot&&0<=it&&rt[ot]!==nt[it];)it--;for(;1<=ot&&0<=it;ot--,it--)if(rt[ot]!==nt[it]){if(ot!==1||it!==1)do if(ot--,it--,0>it||rt[ot]!==nt[it]){var st=` -`+rt[ot].replace(" at new "," at ");return j.displayName&&st.includes("")&&(st=st.replace("",j.displayName)),st}while(1<=ot&&0<=it);break}}}finally{Na$1=!1,Error.prepareStackTrace=et}return(j=j?j.displayName||j.name:"")?Ma$1(j):""}function Pa$1(j){switch(j.tag){case 5:return Ma$1(j.type);case 16:return Ma$1("Lazy");case 13:return Ma$1("Suspense");case 19:return Ma$1("SuspenseList");case 0:case 2:case 15:return j=Oa$1(j.type,!1),j;case 11:return j=Oa$1(j.type.render,!1),j;case 1:return j=Oa$1(j.type,!0),j;default:return""}}function Qa$1(j){if(j==null)return null;if(typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case ya$1:return"Fragment";case wa$1:return"Portal";case Aa$1:return"Profiler";case za$1:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof j=="object")switch(j.$$typeof){case Ca$1:return(j.displayName||"Context")+".Consumer";case Ba$1:return(j._context.displayName||"Context")+".Provider";case Da$1:var _e=j.render;return j=j.displayName,j||(j=_e.displayName||_e.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case Ga$1:return _e=j.displayName||null,_e!==null?_e:Qa$1(j.type)||"Memo";case Ha$1:_e=j._payload,j=j._init;try{return Qa$1(j(_e))}catch{}}return null}function Ra$1(j){var _e=j.type;switch(j.tag){case 24:return"Cache";case 9:return(_e.displayName||"Context")+".Consumer";case 10:return(_e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return j=_e.render,j=j.displayName||j.name||"",_e.displayName||(j!==""?"ForwardRef("+j+")":"ForwardRef");case 7:return"Fragment";case 5:return _e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa$1(_e);case 8:return _e===za$1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _e=="function")return _e.displayName||_e.name||null;if(typeof _e=="string")return _e}return null}function Sa$1(j){switch(typeof j){case"boolean":case"number":case"string":case"undefined":return j;case"object":return j;default:return""}}function Ta$1(j){var _e=j.type;return(j=j.nodeName)&&j.toLowerCase()==="input"&&(_e==="checkbox"||_e==="radio")}function Ua(j){var _e=Ta$1(j)?"checked":"value",et=Object.getOwnPropertyDescriptor(j.constructor.prototype,_e),tt=""+j[_e];if(!j.hasOwnProperty(_e)&&typeof et<"u"&&typeof et.get=="function"&&typeof et.set=="function"){var rt=et.get,nt=et.set;return Object.defineProperty(j,_e,{configurable:!0,get:function(){return rt.call(this)},set:function(ot){tt=""+ot,nt.call(this,ot)}}),Object.defineProperty(j,_e,{enumerable:et.enumerable}),{getValue:function(){return tt},setValue:function(ot){tt=""+ot},stopTracking:function(){j._valueTracker=null,delete j[_e]}}}}function Va$1(j){j._valueTracker||(j._valueTracker=Ua(j))}function Wa$1(j){if(!j)return!1;var _e=j._valueTracker;if(!_e)return!0;var et=_e.getValue(),tt="";return j&&(tt=Ta$1(j)?j.checked?"true":"false":j.value),j=tt,j!==et?(_e.setValue(j),!0):!1}function Xa$1(j){if(j=j||(typeof document<"u"?document:void 0),typeof j>"u")return null;try{return j.activeElement||j.body}catch{return j.body}}function Ya$1(j,_e){var et=_e.checked;return A$4({},_e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:et??j._wrapperState.initialChecked})}function Za$1(j,_e){var et=_e.defaultValue==null?"":_e.defaultValue,tt=_e.checked!=null?_e.checked:_e.defaultChecked;et=Sa$1(_e.value!=null?_e.value:et),j._wrapperState={initialChecked:tt,initialValue:et,controlled:_e.type==="checkbox"||_e.type==="radio"?_e.checked!=null:_e.value!=null}}function ab$1(j,_e){_e=_e.checked,_e!=null&&ta$1(j,"checked",_e,!1)}function bb$1(j,_e){ab$1(j,_e);var et=Sa$1(_e.value),tt=_e.type;if(et!=null)tt==="number"?(et===0&&j.value===""||j.value!=et)&&(j.value=""+et):j.value!==""+et&&(j.value=""+et);else if(tt==="submit"||tt==="reset"){j.removeAttribute("value");return}_e.hasOwnProperty("value")?cb$1(j,_e.type,et):_e.hasOwnProperty("defaultValue")&&cb$1(j,_e.type,Sa$1(_e.defaultValue)),_e.checked==null&&_e.defaultChecked!=null&&(j.defaultChecked=!!_e.defaultChecked)}function db$1(j,_e,et){if(_e.hasOwnProperty("value")||_e.hasOwnProperty("defaultValue")){var tt=_e.type;if(!(tt!=="submit"&&tt!=="reset"||_e.value!==void 0&&_e.value!==null))return;_e=""+j._wrapperState.initialValue,et||_e===j.value||(j.value=_e),j.defaultValue=_e}et=j.name,et!==""&&(j.name=""),j.defaultChecked=!!j._wrapperState.initialChecked,et!==""&&(j.name=et)}function cb$1(j,_e,et){(_e!=="number"||Xa$1(j.ownerDocument)!==j)&&(et==null?j.defaultValue=""+j._wrapperState.initialValue:j.defaultValue!==""+et&&(j.defaultValue=""+et))}var eb$1=Array.isArray;function fb$1(j,_e,et,tt){if(j=j.options,_e){_e={};for(var rt=0;rt"+_e.valueOf().toString()+"",_e=mb$1.firstChild;j.firstChild;)j.removeChild(j.firstChild);for(;_e.firstChild;)j.appendChild(_e.firstChild)}});function ob$1(j,_e){if(_e){var et=j.firstChild;if(et&&et===j.lastChild&&et.nodeType===3){et.nodeValue=_e;return}}j.textContent=_e}var pb$1={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb$1=["Webkit","ms","Moz","O"];Object.keys(pb$1).forEach(function(j){qb$1.forEach(function(_e){_e=_e+j.charAt(0).toUpperCase()+j.substring(1),pb$1[_e]=pb$1[j]})});function rb$1(j,_e,et){return _e==null||typeof _e=="boolean"||_e===""?"":et||typeof _e!="number"||_e===0||pb$1.hasOwnProperty(j)&&pb$1[j]?(""+_e).trim():_e+"px"}function sb$1(j,_e){j=j.style;for(var et in _e)if(_e.hasOwnProperty(et)){var tt=et.indexOf("--")===0,rt=rb$1(et,_e[et],tt);et==="float"&&(et="cssFloat"),tt?j.setProperty(et,rt):j[et]=rt}}var tb$1=A$4({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub$1(j,_e){if(_e){if(tb$1[j]&&(_e.children!=null||_e.dangerouslySetInnerHTML!=null))throw Error(p$a(137,j));if(_e.dangerouslySetInnerHTML!=null){if(_e.children!=null)throw Error(p$a(60));if(typeof _e.dangerouslySetInnerHTML!="object"||!("__html"in _e.dangerouslySetInnerHTML))throw Error(p$a(61))}if(_e.style!=null&&typeof _e.style!="object")throw Error(p$a(62))}}function vb$1(j,_e){if(j.indexOf("-")===-1)return typeof _e.is=="string";switch(j){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb$1=null;function xb$1(j){return j=j.target||j.srcElement||window,j.correspondingUseElement&&(j=j.correspondingUseElement),j.nodeType===3?j.parentNode:j}var yb$1=null,zb$1=null,Ab$1=null;function Bb$1(j){if(j=Cb$1(j)){if(typeof yb$1!="function")throw Error(p$a(280));var _e=j.stateNode;_e&&(_e=Db$1(_e),yb$1(j.stateNode,j.type,_e))}}function Eb$1(j){zb$1?Ab$1?Ab$1.push(j):Ab$1=[j]:zb$1=j}function Fb$1(){if(zb$1){var j=zb$1,_e=Ab$1;if(Ab$1=zb$1=null,Bb$1(j),_e)for(j=0;j<_e.length;j++)Bb$1(_e[j])}}function Gb$1(j,_e){return j(_e)}function Hb$1(){}var Ib$1=!1;function Jb$1(j,_e,et){if(Ib$1)return j(_e,et);Ib$1=!0;try{return Gb$1(j,_e,et)}finally{Ib$1=!1,(zb$1!==null||Ab$1!==null)&&(Hb$1(),Fb$1())}}function Kb$1(j,_e){var et=j.stateNode;if(et===null)return null;var tt=Db$1(et);if(tt===null)return null;et=tt[_e];e:switch(_e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(tt=!tt.disabled)||(j=j.type,tt=!(j==="button"||j==="input"||j==="select"||j==="textarea")),j=!tt;break e;default:j=!1}if(j)return null;if(et&&typeof et!="function")throw Error(p$a(231,_e,typeof et));return et}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(j,_e,et,tt,rt,nt,ot,it,st){var lt=Array.prototype.slice.call(arguments,3);try{_e.apply(et,lt)}catch(ut){this.onError(ut)}}var Ob=!1,Pb=null,Qb=!1,Rb$1=null,Sb$1={onError:function(j){Ob=!0,Pb=j}};function Tb$1(j,_e,et,tt,rt,nt,ot,it,st){Ob=!1,Pb=null,Nb.apply(Sb$1,arguments)}function Ub$1(j,_e,et,tt,rt,nt,ot,it,st){if(Tb$1.apply(this,arguments),Ob){if(Ob){var lt=Pb;Ob=!1,Pb=null}else throw Error(p$a(198));Qb||(Qb=!0,Rb$1=lt)}}function Vb$1(j){var _e=j,et=j;if(j.alternate)for(;_e.return;)_e=_e.return;else{j=_e;do _e=j,_e.flags&4098&&(et=_e.return),j=_e.return;while(j)}return _e.tag===3?et:null}function Wb$1(j){if(j.tag===13){var _e=j.memoizedState;if(_e===null&&(j=j.alternate,j!==null&&(_e=j.memoizedState)),_e!==null)return _e.dehydrated}return null}function Xb$1(j){if(Vb$1(j)!==j)throw Error(p$a(188))}function Yb$1(j){var _e=j.alternate;if(!_e){if(_e=Vb$1(j),_e===null)throw Error(p$a(188));return _e!==j?null:j}for(var et=j,tt=_e;;){var rt=et.return;if(rt===null)break;var nt=rt.alternate;if(nt===null){if(tt=rt.return,tt!==null){et=tt;continue}break}if(rt.child===nt.child){for(nt=rt.child;nt;){if(nt===et)return Xb$1(rt),j;if(nt===tt)return Xb$1(rt),_e;nt=nt.sibling}throw Error(p$a(188))}if(et.return!==tt.return)et=rt,tt=nt;else{for(var ot=!1,it=rt.child;it;){if(it===et){ot=!0,et=rt,tt=nt;break}if(it===tt){ot=!0,tt=rt,et=nt;break}it=it.sibling}if(!ot){for(it=nt.child;it;){if(it===et){ot=!0,et=nt,tt=rt;break}if(it===tt){ot=!0,tt=nt,et=rt;break}it=it.sibling}if(!ot)throw Error(p$a(189))}}if(et.alternate!==tt)throw Error(p$a(190))}if(et.tag!==3)throw Error(p$a(188));return et.stateNode.current===et?j:_e}function Zb$1(j){return j=Yb$1(j),j!==null?$b$1(j):null}function $b$1(j){if(j.tag===5||j.tag===6)return j;for(j=j.child;j!==null;){var _e=$b$1(j);if(_e!==null)return _e;j=j.sibling}return null}var ac$1=ca$1.unstable_scheduleCallback,bc$1=ca$1.unstable_cancelCallback,cc$1=ca$1.unstable_shouldYield,dc$1=ca$1.unstable_requestPaint,B$6=ca$1.unstable_now,ec$1=ca$1.unstable_getCurrentPriorityLevel,fc$1=ca$1.unstable_ImmediatePriority,gc$1=ca$1.unstable_UserBlockingPriority,hc$1=ca$1.unstable_NormalPriority,ic$1=ca$1.unstable_LowPriority,jc$1=ca$1.unstable_IdlePriority,kc$1=null,lc$1=null;function mc$1(j){if(lc$1&&typeof lc$1.onCommitFiberRoot=="function")try{lc$1.onCommitFiberRoot(kc$1,j,void 0,(j.current.flags&128)===128)}catch{}}var oc$1=Math.clz32?Math.clz32:nc$1,pc$1=Math.log,qc$1=Math.LN2;function nc$1(j){return j>>>=0,j===0?32:31-(pc$1(j)/qc$1|0)|0}var rc$1=64,sc$1=4194304;function tc$1(j){switch(j&-j){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return j&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return j&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return j}}function uc$1(j,_e){var et=j.pendingLanes;if(et===0)return 0;var tt=0,rt=j.suspendedLanes,nt=j.pingedLanes,ot=et&268435455;if(ot!==0){var it=ot&~rt;it!==0?tt=tc$1(it):(nt&=ot,nt!==0&&(tt=tc$1(nt)))}else ot=et&~rt,ot!==0?tt=tc$1(ot):nt!==0&&(tt=tc$1(nt));if(tt===0)return 0;if(_e!==0&&_e!==tt&&!(_e&rt)&&(rt=tt&-tt,nt=_e&-_e,rt>=nt||rt===16&&(nt&4194240)!==0))return _e;if(tt&4&&(tt|=et&16),_e=j.entangledLanes,_e!==0)for(j=j.entanglements,_e&=tt;0<_e;)et=31-oc$1(_e),rt=1<et;et++)_e.push(j);return _e}function Ac$1(j,_e,et){j.pendingLanes|=_e,_e!==536870912&&(j.suspendedLanes=0,j.pingedLanes=0),j=j.eventTimes,_e=31-oc$1(_e),j[_e]=et}function Bc$1(j,_e){var et=j.pendingLanes&~_e;j.pendingLanes=_e,j.suspendedLanes=0,j.pingedLanes=0,j.expiredLanes&=_e,j.mutableReadLanes&=_e,j.entangledLanes&=_e,_e=j.entanglements;var tt=j.eventTimes;for(j=j.expirationTimes;0=be$2),ee$2=" ",fe$2=!1;function ge$1(j,_e){switch(j){case"keyup":return $d$1.indexOf(_e.keyCode)!==-1;case"keydown":return _e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$2(j){return j=j.detail,typeof j=="object"&&"data"in j?j.data:null}var ie$2=!1;function je$1(j,_e){switch(j){case"compositionend":return he$2(_e);case"keypress":return _e.which!==32?null:(fe$2=!0,ee$2);case"textInput":return j=_e.data,j===ee$2&&fe$2?null:j;default:return null}}function ke$1(j,_e){if(ie$2)return j==="compositionend"||!ae$2&&ge$1(j,_e)?(j=nd$1(),md$1=ld$1=kd$1=null,ie$2=!1,j):null;switch(j){case"paste":return null;case"keypress":if(!(_e.ctrlKey||_e.altKey||_e.metaKey)||_e.ctrlKey&&_e.altKey){if(_e.char&&1<_e.char.length)return _e.char;if(_e.which)return String.fromCharCode(_e.which)}return null;case"compositionend":return de$2&&_e.locale!=="ko"?null:_e.data;default:return null}}var le$2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me$1(j){var _e=j&&j.nodeName&&j.nodeName.toLowerCase();return _e==="input"?!!le$2[j.type]:_e==="textarea"}function ne$1(j,_e,et,tt){Eb$1(tt),_e=oe$1(_e,"onChange"),0<_e.length&&(et=new td$1("onChange","change",null,et,tt),j.push({event:et,listeners:_e}))}var pe$1=null,qe$1=null;function re$3(j){se$2(j,0)}function te$2(j){var _e=ue$1(j);if(Wa$1(_e))return j}function ve$1(j,_e){if(j==="change")return _e}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9=_e)return{node:et,offset:_e-j};j=tt}e:{for(;et;){if(et.nextSibling){et=et.nextSibling;break e}et=et.parentNode}et=void 0}et=Je$1(et)}}function Le$1(j,_e){return j&&_e?j===_e?!0:j&&j.nodeType===3?!1:_e&&_e.nodeType===3?Le$1(j,_e.parentNode):"contains"in j?j.contains(_e):j.compareDocumentPosition?!!(j.compareDocumentPosition(_e)&16):!1:!1}function Me$2(){for(var j=window,_e=Xa$1();_e instanceof j.HTMLIFrameElement;){try{var et=typeof _e.contentWindow.location.href=="string"}catch{et=!1}if(et)j=_e.contentWindow;else break;_e=Xa$1(j.document)}return _e}function Ne$1(j){var _e=j&&j.nodeName&&j.nodeName.toLowerCase();return _e&&(_e==="input"&&(j.type==="text"||j.type==="search"||j.type==="tel"||j.type==="url"||j.type==="password")||_e==="textarea"||j.contentEditable==="true")}function Oe$2(j){var _e=Me$2(),et=j.focusedElem,tt=j.selectionRange;if(_e!==et&&et&&et.ownerDocument&&Le$1(et.ownerDocument.documentElement,et)){if(tt!==null&&Ne$1(et)){if(_e=tt.start,j=tt.end,j===void 0&&(j=_e),"selectionStart"in et)et.selectionStart=_e,et.selectionEnd=Math.min(j,et.value.length);else if(j=(_e=et.ownerDocument||document)&&_e.defaultView||window,j.getSelection){j=j.getSelection();var rt=et.textContent.length,nt=Math.min(tt.start,rt);tt=tt.end===void 0?nt:Math.min(tt.end,rt),!j.extend&&nt>tt&&(rt=tt,tt=nt,nt=rt),rt=Ke$1(et,nt);var ot=Ke$1(et,tt);rt&&ot&&(j.rangeCount!==1||j.anchorNode!==rt.node||j.anchorOffset!==rt.offset||j.focusNode!==ot.node||j.focusOffset!==ot.offset)&&(_e=_e.createRange(),_e.setStart(rt.node,rt.offset),j.removeAllRanges(),nt>tt?(j.addRange(_e),j.extend(ot.node,ot.offset)):(_e.setEnd(ot.node,ot.offset),j.addRange(_e)))}}for(_e=[],j=et;j=j.parentNode;)j.nodeType===1&&_e.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof et.focus=="function"&&et.focus(),et=0;et<_e.length;et++)j=_e[et],j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}var Pe$1=ia&&"documentMode"in document&&11>=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(j,_e,et){var tt=et.window===et?et.document:et.nodeType===9?et:et.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa$1(tt)||(tt=Qe$1,"selectionStart"in tt&&Ne$1(tt)?tt={start:tt.selectionStart,end:tt.selectionEnd}:(tt=(tt.ownerDocument&&tt.ownerDocument.defaultView||window).getSelection(),tt={anchorNode:tt.anchorNode,anchorOffset:tt.anchorOffset,focusNode:tt.focusNode,focusOffset:tt.focusOffset}),Se$1&&Ie$1(Se$1,tt)||(Se$1=tt,tt=oe$1(Re$1,"onSelect"),0Tf||(j.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$4(j,_e){Tf++,Sf[Tf]=j.current,j.current=_e}var Vf={},H$4=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(j,_e){var et=j.type.contextTypes;if(!et)return Vf;var tt=j.stateNode;if(tt&&tt.__reactInternalMemoizedUnmaskedChildContext===_e)return tt.__reactInternalMemoizedMaskedChildContext;var rt={},nt;for(nt in et)rt[nt]=_e[nt];return tt&&(j=j.stateNode,j.__reactInternalMemoizedUnmaskedChildContext=_e,j.__reactInternalMemoizedMaskedChildContext=rt),rt}function Zf(j){return j=j.childContextTypes,j!=null}function $f(){E$4(Wf),E$4(H$4)}function ag(j,_e,et){if(H$4.current!==Vf)throw Error(p$a(168));G$4(H$4,_e),G$4(Wf,et)}function bg(j,_e,et){var tt=j.stateNode;if(_e=_e.childContextTypes,typeof tt.getChildContext!="function")return et;tt=tt.getChildContext();for(var rt in tt)if(!(rt in _e))throw Error(p$a(108,Ra$1(j)||"Unknown",rt));return A$4({},et,tt)}function cg(j){return j=(j=j.stateNode)&&j.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$4.current,G$4(H$4,j),G$4(Wf,Wf.current),!0}function dg(j,_e,et){var tt=j.stateNode;if(!tt)throw Error(p$a(169));et?(j=bg(j,_e,Xf),tt.__reactInternalMemoizedMergedChildContext=j,E$4(Wf),E$4(H$4),G$4(H$4,j)):E$4(Wf),G$4(Wf,et)}var eg=null,fg=!1,gg=!1;function hg(j){eg===null?eg=[j]:eg.push(j)}function ig(j){fg=!0,hg(j)}function jg(){if(!gg&&eg!==null){gg=!0;var j=0,_e=C$6;try{var et=eg;for(C$6=1;j>=ot,rt-=ot,rg=1<<32-oc$1(_e)+rt|et<kt?($t=Tt,Tt=null):$t=Tt.sibling;var Ct=dt(bt,Tt,xt[kt],yt);if(Ct===null){Tt===null&&(Tt=$t);break}j&&Tt&&Ct.alternate===null&&_e(bt,Tt),_t=nt(Ct,_t,kt),St===null?Et=Ct:St.sibling=Ct,St=Ct,Tt=$t}if(kt===xt.length)return et(bt,Tt),I$2&&tg(bt,kt),Et;if(Tt===null){for(;ktkt?($t=Tt,Tt=null):$t=Tt.sibling;var It=dt(bt,Tt,Ct.value,yt);if(It===null){Tt===null&&(Tt=$t);break}j&&Tt&&It.alternate===null&&_e(bt,Tt),_t=nt(It,_t,kt),St===null?Et=It:St.sibling=It,St=It,Tt=$t}if(Ct.done)return et(bt,Tt),I$2&&tg(bt,kt),Et;if(Tt===null){for(;!Ct.done;kt++,Ct=xt.next())Ct=ct(bt,Ct.value,yt),Ct!==null&&(_t=nt(Ct,_t,kt),St===null?Et=Ct:St.sibling=Ct,St=Ct);return I$2&&tg(bt,kt),Et}for(Tt=tt(bt,Tt);!Ct.done;kt++,Ct=xt.next())Ct=ft(Tt,bt,kt,Ct.value,yt),Ct!==null&&(j&&Ct.alternate!==null&&Tt.delete(Ct.key===null?kt:Ct.key),_t=nt(Ct,_t,kt),St===null?Et=Ct:St.sibling=Ct,St=Ct);return j&&Tt.forEach(function(Nt){return _e(bt,Nt)}),I$2&&tg(bt,kt),Et}function mt(bt,_t,xt,yt){if(typeof xt=="object"&&xt!==null&&xt.type===ya$1&&xt.key===null&&(xt=xt.props.children),typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case va$1:e:{for(var Et=xt.key,St=_t;St!==null;){if(St.key===Et){if(Et=xt.type,Et===ya$1){if(St.tag===7){et(bt,St.sibling),_t=rt(St,xt.props.children),_t.return=bt,bt=_t;break e}}else if(St.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===Ha$1&&uh(Et)===St.type){et(bt,St.sibling),_t=rt(St,xt.props),_t.ref=sh(bt,St,xt),_t.return=bt,bt=_t;break e}et(bt,St);break}else _e(bt,St);St=St.sibling}xt.type===ya$1?(_t=Ah(xt.props.children,bt.mode,yt,xt.key),_t.return=bt,bt=_t):(yt=yh(xt.type,xt.key,xt.props,null,bt.mode,yt),yt.ref=sh(bt,_t,xt),yt.return=bt,bt=yt)}return ot(bt);case wa$1:e:{for(St=xt.key;_t!==null;){if(_t.key===St)if(_t.tag===4&&_t.stateNode.containerInfo===xt.containerInfo&&_t.stateNode.implementation===xt.implementation){et(bt,_t.sibling),_t=rt(_t,xt.children||[]),_t.return=bt,bt=_t;break e}else{et(bt,_t);break}else _e(bt,_t);_t=_t.sibling}_t=zh(xt,bt.mode,yt),_t.return=bt,bt=_t}return ot(bt);case Ha$1:return St=xt._init,mt(bt,_t,St(xt._payload),yt)}if(eb$1(xt))return pt(bt,_t,xt,yt);if(Ka$1(xt))return gt(bt,_t,xt,yt);th(bt,xt)}return typeof xt=="string"&&xt!==""||typeof xt=="number"?(xt=""+xt,_t!==null&&_t.tag===6?(et(bt,_t.sibling),_t=rt(_t,xt),_t.return=bt,bt=_t):(et(bt,_t),_t=xh(xt,bt.mode,yt),_t.return=bt,bt=_t),ot(bt)):et(bt,_t)}return mt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(j){if(j===Dh)throw Error(p$a(174));return j}function Ih(j,_e){switch(G$4(Gh,_e),G$4(Fh,j),G$4(Eh,Dh),j=_e.nodeType,j){case 9:case 11:_e=(_e=_e.documentElement)?_e.namespaceURI:lb$1(null,"");break;default:j=j===8?_e.parentNode:_e,_e=j.namespaceURI||null,j=j.tagName,_e=lb$1(_e,j)}E$4(Eh),G$4(Eh,_e)}function Jh(){E$4(Eh),E$4(Fh),E$4(Gh)}function Kh(j){Hh(Gh.current);var _e=Hh(Eh.current),et=lb$1(_e,j.type);_e!==et&&(G$4(Fh,j),G$4(Eh,et))}function Lh(j){Fh.current===j&&(E$4(Eh),E$4(Fh))}var M$1=Uf(0);function Mh(j){for(var _e=j;_e!==null;){if(_e.tag===13){var et=_e.memoizedState;if(et!==null&&(et=et.dehydrated,et===null||et.data==="$?"||et.data==="$!"))return _e}else if(_e.tag===19&&_e.memoizedProps.revealOrder!==void 0){if(_e.flags&128)return _e}else if(_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===j)break;for(;_e.sibling===null;){if(_e.return===null||_e.return===j)return null;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}return null}var Nh=[];function Oh(){for(var j=0;jet?et:4,j(!0);var tt=Qh.transition;Qh.transition={};try{j(!1),_e()}finally{C$6=et,Qh.transition=tt}}function Fi(){return di().memoizedState}function Gi(j,_e,et){var tt=lh(j);if(et={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null},Hi(j))Ii(_e,et);else if(et=Yg(j,_e,et,tt),et!==null){var rt=L$1();mh(et,j,tt,rt),Ji(et,_e,tt)}}function ri(j,_e,et){var tt=lh(j),rt={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null};if(Hi(j))Ii(_e,rt);else{var nt=j.alternate;if(j.lanes===0&&(nt===null||nt.lanes===0)&&(nt=_e.lastRenderedReducer,nt!==null))try{var ot=_e.lastRenderedState,it=nt(ot,et);if(rt.hasEagerState=!0,rt.eagerState=it,He$2(it,ot)){var st=_e.interleaved;st===null?(rt.next=rt,Xg(_e)):(rt.next=st.next,st.next=rt),_e.interleaved=rt;return}}catch{}finally{}et=Yg(j,_e,rt,tt),et!==null&&(rt=L$1(),mh(et,j,tt,rt),Ji(et,_e,tt))}}function Hi(j){var _e=j.alternate;return j===N$1||_e!==null&&_e===N$1}function Ii(j,_e){Th$1=Sh=!0;var et=j.pending;et===null?_e.next=_e:(_e.next=et.next,et.next=_e),j.pending=_e}function Ji(j,_e,et){if(et&4194240){var tt=_e.lanes;tt&=j.pendingLanes,et|=tt,_e.lanes=et,Cc$1(j,et)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(j,_e){return ci().memoizedState=[j,_e===void 0?null:_e],j},useContext:Vg,useEffect:vi,useImperativeHandle:function(j,_e,et){return et=et!=null?et.concat([j]):null,ti(4194308,4,yi.bind(null,_e,j),et)},useLayoutEffect:function(j,_e){return ti(4194308,4,j,_e)},useInsertionEffect:function(j,_e){return ti(4,2,j,_e)},useMemo:function(j,_e){var et=ci();return _e=_e===void 0?null:_e,j=j(),et.memoizedState=[j,_e],j},useReducer:function(j,_e,et){var tt=ci();return _e=et!==void 0?et(_e):_e,tt.memoizedState=tt.baseState=_e,j={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:j,lastRenderedState:_e},tt.queue=j,j=j.dispatch=Gi.bind(null,N$1,j),[tt.memoizedState,j]},useRef:function(j){var _e=ci();return j={current:j},_e.memoizedState=j},useState:qi,useDebugValue:Ai,useDeferredValue:function(j){return ci().memoizedState=j},useTransition:function(){var j=qi(!1),_e=j[0];return j=Ei.bind(null,j[1]),ci().memoizedState=j,[_e,j]},useMutableSource:function(){},useSyncExternalStore:function(j,_e,et){var tt=N$1,rt=ci();if(I$2){if(et===void 0)throw Error(p$a(407));et=et()}else{if(et=_e(),R$1===null)throw Error(p$a(349));Rh&30||ni(tt,_e,et)}rt.memoizedState=et;var nt={value:et,getSnapshot:_e};return rt.queue=nt,vi(ki.bind(null,tt,nt,j),[j]),tt.flags|=2048,li(9,mi.bind(null,tt,nt,et,_e),void 0,null),et},useId:function(){var j=ci(),_e=R$1.identifierPrefix;if(I$2){var et=sg,tt=rg;et=(tt&~(1<<32-oc$1(tt)-1)).toString(32)+et,_e=":"+_e+"R"+et,et=Uh++,0<\/script>",j=j.removeChild(j.firstChild)):typeof tt.is=="string"?j=ot.createElement(et,{is:tt.is}):(j=ot.createElement(et),et==="select"&&(ot=j,tt.multiple?ot.multiple=!0:tt.size&&(ot.size=tt.size))):j=ot.createElementNS(j,et),j[Of]=_e,j[Pf]=tt,Aj(j,_e,!1,!1),_e.stateNode=j;e:{switch(ot=vb$1(et,tt),et){case"dialog":D$4("cancel",j),D$4("close",j),rt=tt;break;case"iframe":case"object":case"embed":D$4("load",j),rt=tt;break;case"video":case"audio":for(rt=0;rtHj&&(_e.flags|=128,tt=!0,Ej(nt,!1),_e.lanes=4194304)}else{if(!tt)if(j=Mh(ot),j!==null){if(_e.flags|=128,tt=!0,et=j.updateQueue,et!==null&&(_e.updateQueue=et,_e.flags|=4),Ej(nt,!0),nt.tail===null&&nt.tailMode==="hidden"&&!ot.alternate&&!I$2)return S$1(_e),null}else 2*B$6()-nt.renderingStartTime>Hj&&et!==1073741824&&(_e.flags|=128,tt=!0,Ej(nt,!1),_e.lanes=4194304);nt.isBackwards?(ot.sibling=_e.child,_e.child=ot):(et=nt.last,et!==null?et.sibling=ot:_e.child=ot,nt.last=ot)}return nt.tail!==null?(_e=nt.tail,nt.rendering=_e,nt.tail=_e.sibling,nt.renderingStartTime=B$6(),_e.sibling=null,et=M$1.current,G$4(M$1,tt?et&1|2:et&1),_e):(S$1(_e),null);case 22:case 23:return Ij(),tt=_e.memoizedState!==null,j!==null&&j.memoizedState!==null!==tt&&(_e.flags|=8192),tt&&_e.mode&1?gj&1073741824&&(S$1(_e),_e.subtreeFlags&6&&(_e.flags|=8192)):S$1(_e),null;case 24:return null;case 25:return null}throw Error(p$a(156,_e.tag))}function Jj(j,_e){switch(wg(_e),_e.tag){case 1:return Zf(_e.type)&&$f(),j=_e.flags,j&65536?(_e.flags=j&-65537|128,_e):null;case 3:return Jh(),E$4(Wf),E$4(H$4),Oh(),j=_e.flags,j&65536&&!(j&128)?(_e.flags=j&-65537|128,_e):null;case 5:return Lh(_e),null;case 13:if(E$4(M$1),j=_e.memoizedState,j!==null&&j.dehydrated!==null){if(_e.alternate===null)throw Error(p$a(340));Ig()}return j=_e.flags,j&65536?(_e.flags=j&-65537|128,_e):null;case 19:return E$4(M$1),null;case 4:return Jh(),null;case 10:return Rg(_e.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(j,_e){var et=j.ref;if(et!==null)if(typeof et=="function")try{et(null)}catch(tt){W(j,_e,tt)}else et.current=null}function Nj(j,_e,et){try{et()}catch(tt){W(j,_e,tt)}}var Oj=!1;function Pj(j,_e){if(Cf=dd$1,j=Me$2(),Ne$1(j)){if("selectionStart"in j)var et={start:j.selectionStart,end:j.selectionEnd};else e:{et=(et=j.ownerDocument)&&et.defaultView||window;var tt=et.getSelection&&et.getSelection();if(tt&&tt.rangeCount!==0){et=tt.anchorNode;var rt=tt.anchorOffset,nt=tt.focusNode;tt=tt.focusOffset;try{et.nodeType,nt.nodeType}catch{et=null;break e}var ot=0,it=-1,st=-1,lt=0,ut=0,ct=j,dt=null;t:for(;;){for(var ft;ct!==et||rt!==0&&ct.nodeType!==3||(it=ot+rt),ct!==nt||tt!==0&&ct.nodeType!==3||(st=ot+tt),ct.nodeType===3&&(ot+=ct.nodeValue.length),(ft=ct.firstChild)!==null;)dt=ct,ct=ft;for(;;){if(ct===j)break t;if(dt===et&&++lt===rt&&(it=ot),dt===nt&&++ut===tt&&(st=ot),(ft=ct.nextSibling)!==null)break;ct=dt,dt=ct.parentNode}ct=ft}et=it===-1||st===-1?null:{start:it,end:st}}else et=null}et=et||{start:0,end:0}}else et=null;for(Df$1={focusedElem:j,selectionRange:et},dd$1=!1,V=_e;V!==null;)if(_e=V,j=_e.child,(_e.subtreeFlags&1028)!==0&&j!==null)j.return=_e,V=j;else for(;V!==null;){_e=V;try{var pt=_e.alternate;if(_e.flags&1024)switch(_e.tag){case 0:case 11:case 15:break;case 1:if(pt!==null){var gt=pt.memoizedProps,mt=pt.memoizedState,bt=_e.stateNode,_t=bt.getSnapshotBeforeUpdate(_e.elementType===_e.type?gt:Lg(_e.type,gt),mt);bt.__reactInternalSnapshotBeforeUpdate=_t}break;case 3:var xt=_e.stateNode.containerInfo;xt.nodeType===1?xt.textContent="":xt.nodeType===9&&xt.documentElement&&xt.removeChild(xt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$a(163))}}catch(yt){W(_e,_e.return,yt)}if(j=_e.sibling,j!==null){j.return=_e.return,V=j;break}V=_e.return}return pt=Oj,Oj=!1,pt}function Qj(j,_e,et){var tt=_e.updateQueue;if(tt=tt!==null?tt.lastEffect:null,tt!==null){var rt=tt=tt.next;do{if((rt.tag&j)===j){var nt=rt.destroy;rt.destroy=void 0,nt!==void 0&&Nj(_e,et,nt)}rt=rt.next}while(rt!==tt)}}function Rj(j,_e){if(_e=_e.updateQueue,_e=_e!==null?_e.lastEffect:null,_e!==null){var et=_e=_e.next;do{if((et.tag&j)===j){var tt=et.create;et.destroy=tt()}et=et.next}while(et!==_e)}}function Sj(j){var _e=j.ref;if(_e!==null){var et=j.stateNode;switch(j.tag){case 5:j=et;break;default:j=et}typeof _e=="function"?_e(j):_e.current=j}}function Tj(j){var _e=j.alternate;_e!==null&&(j.alternate=null,Tj(_e)),j.child=null,j.deletions=null,j.sibling=null,j.tag===5&&(_e=j.stateNode,_e!==null&&(delete _e[Of],delete _e[Pf],delete _e[of$2],delete _e[Qf],delete _e[Rf])),j.stateNode=null,j.return=null,j.dependencies=null,j.memoizedProps=null,j.memoizedState=null,j.pendingProps=null,j.stateNode=null,j.updateQueue=null}function Uj(j){return j.tag===5||j.tag===3||j.tag===4}function Vj(j){e:for(;;){for(;j.sibling===null;){if(j.return===null||Uj(j.return))return null;j=j.return}for(j.sibling.return=j.return,j=j.sibling;j.tag!==5&&j.tag!==6&&j.tag!==18;){if(j.flags&2||j.child===null||j.tag===4)continue e;j.child.return=j,j=j.child}if(!(j.flags&2))return j.stateNode}}function Wj(j,_e,et){var tt=j.tag;if(tt===5||tt===6)j=j.stateNode,_e?et.nodeType===8?et.parentNode.insertBefore(j,_e):et.insertBefore(j,_e):(et.nodeType===8?(_e=et.parentNode,_e.insertBefore(j,et)):(_e=et,_e.appendChild(j)),et=et._reactRootContainer,et!=null||_e.onclick!==null||(_e.onclick=Bf));else if(tt!==4&&(j=j.child,j!==null))for(Wj(j,_e,et),j=j.sibling;j!==null;)Wj(j,_e,et),j=j.sibling}function Xj(j,_e,et){var tt=j.tag;if(tt===5||tt===6)j=j.stateNode,_e?et.insertBefore(j,_e):et.appendChild(j);else if(tt!==4&&(j=j.child,j!==null))for(Xj(j,_e,et),j=j.sibling;j!==null;)Xj(j,_e,et),j=j.sibling}var X=null,Yj=!1;function Zj(j,_e,et){for(et=et.child;et!==null;)ak(j,_e,et),et=et.sibling}function ak(j,_e,et){if(lc$1&&typeof lc$1.onCommitFiberUnmount=="function")try{lc$1.onCommitFiberUnmount(kc$1,et)}catch{}switch(et.tag){case 5:U$1||Mj(et,_e);case 6:var tt=X,rt=Yj;X=null,Zj(j,_e,et),X=tt,Yj=rt,X!==null&&(Yj?(j=X,et=et.stateNode,j.nodeType===8?j.parentNode.removeChild(et):j.removeChild(et)):X.removeChild(et.stateNode));break;case 18:X!==null&&(Yj?(j=X,et=et.stateNode,j.nodeType===8?Kf(j.parentNode,et):j.nodeType===1&&Kf(j,et),bd$1(j)):Kf(X,et.stateNode));break;case 4:tt=X,rt=Yj,X=et.stateNode.containerInfo,Yj=!0,Zj(j,_e,et),X=tt,Yj=rt;break;case 0:case 11:case 14:case 15:if(!U$1&&(tt=et.updateQueue,tt!==null&&(tt=tt.lastEffect,tt!==null))){rt=tt=tt.next;do{var nt=rt,ot=nt.destroy;nt=nt.tag,ot!==void 0&&(nt&2||nt&4)&&Nj(et,_e,ot),rt=rt.next}while(rt!==tt)}Zj(j,_e,et);break;case 1:if(!U$1&&(Mj(et,_e),tt=et.stateNode,typeof tt.componentWillUnmount=="function"))try{tt.props=et.memoizedProps,tt.state=et.memoizedState,tt.componentWillUnmount()}catch(it){W(et,_e,it)}Zj(j,_e,et);break;case 21:Zj(j,_e,et);break;case 22:et.mode&1?(U$1=(tt=U$1)||et.memoizedState!==null,Zj(j,_e,et),U$1=tt):Zj(j,_e,et);break;default:Zj(j,_e,et)}}function bk$1(j){var _e=j.updateQueue;if(_e!==null){j.updateQueue=null;var et=j.stateNode;et===null&&(et=j.stateNode=new Lj),_e.forEach(function(tt){var rt=ck.bind(null,j,tt);et.has(tt)||(et.add(tt),tt.then(rt,rt))})}}function dk(j,_e){var et=_e.deletions;if(et!==null)for(var tt=0;ttrt&&(rt=ot),tt&=~nt}if(tt=rt,tt=B$6()-tt,tt=(120>tt?120:480>tt?480:1080>tt?1080:1920>tt?1920:3e3>tt?3e3:4320>tt?4320:1960*mk(tt/1960))-tt,10j?16:j,xk===null)var tt=!1;else{if(j=xk,xk=null,yk=0,K$1&6)throw Error(p$a(331));var rt=K$1;for(K$1|=4,V=j.current;V!==null;){var nt=V,ot=nt.child;if(V.flags&16){var it=nt.deletions;if(it!==null){for(var st=0;stB$6()-gk?Lk(j,0):sk|=et),Ek(j,_e)}function Zk(j,_e){_e===0&&(j.mode&1?(_e=sc$1,sc$1<<=1,!(sc$1&130023424)&&(sc$1=4194304)):_e=1);var et=L$1();j=Zg(j,_e),j!==null&&(Ac$1(j,_e,et),Ek(j,et))}function vj(j){var _e=j.memoizedState,et=0;_e!==null&&(et=_e.retryLane),Zk(j,et)}function ck(j,_e){var et=0;switch(j.tag){case 13:var tt=j.stateNode,rt=j.memoizedState;rt!==null&&(et=rt.retryLane);break;case 19:tt=j.stateNode;break;default:throw Error(p$a(314))}tt!==null&&tt.delete(_e),Zk(j,et)}var Wk;Wk=function(j,_e,et){if(j!==null)if(j.memoizedProps!==_e.pendingProps||Wf.current)Ug=!0;else{if(!(j.lanes&et)&&!(_e.flags&128))return Ug=!1,zj(j,_e,et);Ug=!!(j.flags&131072)}else Ug=!1,I$2&&_e.flags&1048576&&ug(_e,ng,_e.index);switch(_e.lanes=0,_e.tag){case 2:var tt=_e.type;jj(j,_e),j=_e.pendingProps;var rt=Yf(_e,H$4.current);Tg(_e,et),rt=Xh(null,_e,tt,j,rt,et);var nt=bi();return _e.flags|=1,typeof rt=="object"&&rt!==null&&typeof rt.render=="function"&&rt.$$typeof===void 0?(_e.tag=1,_e.memoizedState=null,_e.updateQueue=null,Zf(tt)?(nt=!0,cg(_e)):nt=!1,_e.memoizedState=rt.state!==null&&rt.state!==void 0?rt.state:null,ah(_e),rt.updater=nh,_e.stateNode=rt,rt._reactInternals=_e,rh(_e,tt,j,et),_e=kj(null,_e,tt,!0,nt,et)):(_e.tag=0,I$2&&nt&&vg(_e),Yi(null,_e,rt,et),_e=_e.child),_e;case 16:tt=_e.elementType;e:{switch(jj(j,_e),j=_e.pendingProps,rt=tt._init,tt=rt(tt._payload),_e.type=tt,rt=_e.tag=$k(tt),j=Lg(tt,j),rt){case 0:_e=dj(null,_e,tt,j,et);break e;case 1:_e=ij(null,_e,tt,j,et);break e;case 11:_e=Zi(null,_e,tt,j,et);break e;case 14:_e=aj(null,_e,tt,Lg(tt.type,j),et);break e}throw Error(p$a(306,tt,""))}return _e;case 0:return tt=_e.type,rt=_e.pendingProps,rt=_e.elementType===tt?rt:Lg(tt,rt),dj(j,_e,tt,rt,et);case 1:return tt=_e.type,rt=_e.pendingProps,rt=_e.elementType===tt?rt:Lg(tt,rt),ij(j,_e,tt,rt,et);case 3:e:{if(lj(_e),j===null)throw Error(p$a(387));tt=_e.pendingProps,nt=_e.memoizedState,rt=nt.element,bh(j,_e),gh(_e,tt,null,et);var ot=_e.memoizedState;if(tt=ot.element,nt.isDehydrated)if(nt={element:tt,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},_e.updateQueue.baseState=nt,_e.memoizedState=nt,_e.flags&256){rt=Ki(Error(p$a(423)),_e),_e=mj(j,_e,tt,et,rt);break e}else if(tt!==rt){rt=Ki(Error(p$a(424)),_e),_e=mj(j,_e,tt,et,rt);break e}else for(yg=Lf(_e.stateNode.containerInfo.firstChild),xg=_e,I$2=!0,zg=null,et=Ch(_e,null,tt,et),_e.child=et;et;)et.flags=et.flags&-3|4096,et=et.sibling;else{if(Ig(),tt===rt){_e=$i(j,_e,et);break e}Yi(j,_e,tt,et)}_e=_e.child}return _e;case 5:return Kh(_e),j===null&&Eg(_e),tt=_e.type,rt=_e.pendingProps,nt=j!==null?j.memoizedProps:null,ot=rt.children,Ef$1(tt,rt)?ot=null:nt!==null&&Ef$1(tt,nt)&&(_e.flags|=32),hj(j,_e),Yi(j,_e,ot,et),_e.child;case 6:return j===null&&Eg(_e),null;case 13:return pj(j,_e,et);case 4:return Ih(_e,_e.stateNode.containerInfo),tt=_e.pendingProps,j===null?_e.child=Bh(_e,null,tt,et):Yi(j,_e,tt,et),_e.child;case 11:return tt=_e.type,rt=_e.pendingProps,rt=_e.elementType===tt?rt:Lg(tt,rt),Zi(j,_e,tt,rt,et);case 7:return Yi(j,_e,_e.pendingProps,et),_e.child;case 8:return Yi(j,_e,_e.pendingProps.children,et),_e.child;case 12:return Yi(j,_e,_e.pendingProps.children,et),_e.child;case 10:e:{if(tt=_e.type._context,rt=_e.pendingProps,nt=_e.memoizedProps,ot=rt.value,G$4(Mg,tt._currentValue),tt._currentValue=ot,nt!==null)if(He$2(nt.value,ot)){if(nt.children===rt.children&&!Wf.current){_e=$i(j,_e,et);break e}}else for(nt=_e.child,nt!==null&&(nt.return=_e);nt!==null;){var it=nt.dependencies;if(it!==null){ot=nt.child;for(var st=it.firstContext;st!==null;){if(st.context===tt){if(nt.tag===1){st=ch(-1,et&-et),st.tag=2;var lt=nt.updateQueue;if(lt!==null){lt=lt.shared;var ut=lt.pending;ut===null?st.next=st:(st.next=ut.next,ut.next=st),lt.pending=st}}nt.lanes|=et,st=nt.alternate,st!==null&&(st.lanes|=et),Sg(nt.return,et,_e),it.lanes|=et;break}st=st.next}}else if(nt.tag===10)ot=nt.type===_e.type?null:nt.child;else if(nt.tag===18){if(ot=nt.return,ot===null)throw Error(p$a(341));ot.lanes|=et,it=ot.alternate,it!==null&&(it.lanes|=et),Sg(ot,et,_e),ot=nt.sibling}else ot=nt.child;if(ot!==null)ot.return=nt;else for(ot=nt;ot!==null;){if(ot===_e){ot=null;break}if(nt=ot.sibling,nt!==null){nt.return=ot.return,ot=nt;break}ot=ot.return}nt=ot}Yi(j,_e,rt.children,et),_e=_e.child}return _e;case 9:return rt=_e.type,tt=_e.pendingProps.children,Tg(_e,et),rt=Vg(rt),tt=tt(rt),_e.flags|=1,Yi(j,_e,tt,et),_e.child;case 14:return tt=_e.type,rt=Lg(tt,_e.pendingProps),rt=Lg(tt.type,rt),aj(j,_e,tt,rt,et);case 15:return cj(j,_e,_e.type,_e.pendingProps,et);case 17:return tt=_e.type,rt=_e.pendingProps,rt=_e.elementType===tt?rt:Lg(tt,rt),jj(j,_e),_e.tag=1,Zf(tt)?(j=!0,cg(_e)):j=!1,Tg(_e,et),ph(_e,tt,rt),rh(_e,tt,rt,et),kj(null,_e,tt,!0,j,et);case 19:return yj(j,_e,et);case 22:return ej(j,_e,et)}throw Error(p$a(156,_e.tag))};function Gk(j,_e){return ac$1(j,_e)}function al(j,_e,et,tt){this.tag=j,this.key=et,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=tt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(j,_e,et,tt){return new al(j,_e,et,tt)}function bj(j){return j=j.prototype,!(!j||!j.isReactComponent)}function $k(j){if(typeof j=="function")return bj(j)?1:0;if(j!=null){if(j=j.$$typeof,j===Da$1)return 11;if(j===Ga$1)return 14}return 2}function wh(j,_e){var et=j.alternate;return et===null?(et=Bg(j.tag,_e,j.key,j.mode),et.elementType=j.elementType,et.type=j.type,et.stateNode=j.stateNode,et.alternate=j,j.alternate=et):(et.pendingProps=_e,et.type=j.type,et.flags=0,et.subtreeFlags=0,et.deletions=null),et.flags=j.flags&14680064,et.childLanes=j.childLanes,et.lanes=j.lanes,et.child=j.child,et.memoizedProps=j.memoizedProps,et.memoizedState=j.memoizedState,et.updateQueue=j.updateQueue,_e=j.dependencies,et.dependencies=_e===null?null:{lanes:_e.lanes,firstContext:_e.firstContext},et.sibling=j.sibling,et.index=j.index,et.ref=j.ref,et}function yh(j,_e,et,tt,rt,nt){var ot=2;if(tt=j,typeof j=="function")bj(j)&&(ot=1);else if(typeof j=="string")ot=5;else e:switch(j){case ya$1:return Ah(et.children,rt,nt,_e);case za$1:ot=8,rt|=8;break;case Aa$1:return j=Bg(12,et,_e,rt|2),j.elementType=Aa$1,j.lanes=nt,j;case Ea:return j=Bg(13,et,_e,rt),j.elementType=Ea,j.lanes=nt,j;case Fa:return j=Bg(19,et,_e,rt),j.elementType=Fa,j.lanes=nt,j;case Ia$1:return qj(et,rt,nt,_e);default:if(typeof j=="object"&&j!==null)switch(j.$$typeof){case Ba$1:ot=10;break e;case Ca$1:ot=9;break e;case Da$1:ot=11;break e;case Ga$1:ot=14;break e;case Ha$1:ot=16,tt=null;break e}throw Error(p$a(130,j==null?j:typeof j,""))}return _e=Bg(ot,et,_e,rt),_e.elementType=j,_e.type=tt,_e.lanes=nt,_e}function Ah(j,_e,et,tt){return j=Bg(7,j,tt,_e),j.lanes=et,j}function qj(j,_e,et,tt){return j=Bg(22,j,tt,_e),j.elementType=Ia$1,j.lanes=et,j.stateNode={isHidden:!1},j}function xh(j,_e,et){return j=Bg(6,j,null,_e),j.lanes=et,j}function zh(j,_e,et){return _e=Bg(4,j.children!==null?j.children:[],j.key,_e),_e.lanes=et,_e.stateNode={containerInfo:j.containerInfo,pendingChildren:null,implementation:j.implementation},_e}function bl(j,_e,et,tt,rt){this.tag=_e,this.containerInfo=j,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc$1(0),this.expirationTimes=zc$1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc$1(0),this.identifierPrefix=tt,this.onRecoverableError=rt,this.mutableSourceEagerHydrationData=null}function cl(j,_e,et,tt,rt,nt,ot,it,st){return j=new bl(j,_e,et,it,st),_e===1?(_e=1,nt===!0&&(_e|=8)):_e=0,nt=Bg(3,null,null,_e),j.current=nt,nt.stateNode=j,nt.memoizedState={element:tt,isDehydrated:et,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(nt),j}function dl(j,_e,et){var tt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(j){console.error(j)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$a=reactDomExports;client.createRoot=m$a.createRoot,client.hydrateRoot=m$a.hydrateRoot;const positionMap=["Top","Right","Bottom","Left"];function generateStyles(j,_e,...et){const[tt,rt=tt,nt=tt,ot=rt]=et,it=[tt,rt,nt,ot],st={};for(let lt=0;lttypeof j=="string"&&/(\d+(\w+|%))/.test(j),isUnitless=j=>typeof j=="number"&&!Number.isNaN(j),isInitial=j=>j==="initial",isAuto=j=>j==="auto",isNone=j=>j==="none",widthReservedKeys=["content","fit-content","max-content","min-content"],isWidth=j=>widthReservedKeys.some(_e=>j===_e)||isUnit(j);function flex(...j){const _e=j.length===1,et=j.length===2,tt=j.length===3;if(_e){const[rt]=j;if(isInitial(rt))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(isAuto(rt))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(isNone(rt))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(isUnitless(rt))return{flexGrow:rt,flexShrink:1,flexBasis:0};if(isWidth(rt))return{flexGrow:1,flexShrink:1,flexBasis:rt}}if(et){const[rt,nt]=j;if(isUnitless(nt))return{flexGrow:rt,flexShrink:nt,flexBasis:0};if(isWidth(nt))return{flexGrow:rt,flexShrink:1,flexBasis:nt}}if(tt){const[rt,nt,ot]=j;if(isUnitless(rt)&&isUnitless(nt)&&(isAuto(ot)||isWidth(ot)))return{flexGrow:rt,flexShrink:nt,flexBasis:ot}}return{}}function gap(j,_e=j){return{columnGap:j,rowGap:_e}}const cssVarRegEx=/var\(.*\)/gi;function isValidGridAreaInput(j){return j===void 0||typeof j=="number"||typeof j=="string"&&!cssVarRegEx.test(j)}const customIdentRegEx=/^[a-zA-Z0-9\-_\\#;]+$/,nonCustomIdentRegEx=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function isCustomIdent(j){return j!==void 0&&typeof j=="string"&&customIdentRegEx.test(j)&&!nonCustomIdentRegEx.test(j)}function gridArea(...j){if(j.some(nt=>!isValidGridAreaInput(nt)))return{};const _e=j[0]!==void 0?j[0]:"auto",et=j[1]!==void 0?j[1]:isCustomIdent(_e)?_e:"auto",tt=j[2]!==void 0?j[2]:isCustomIdent(_e)?_e:"auto",rt=j[3]!==void 0?j[3]:isCustomIdent(et)?et:"auto";return{gridRowStart:_e,gridColumnStart:et,gridRowEnd:tt,gridColumnEnd:rt}}function margin(...j){return generateStyles("margin","",...j)}function marginBlock(j,_e=j){return{marginBlockStart:j,marginBlockEnd:_e}}function marginInline(j,_e=j){return{marginInlineStart:j,marginInlineEnd:_e}}function padding(...j){return generateStyles("padding","",...j)}function paddingBlock(j,_e=j){return{paddingBlockStart:j,paddingBlockEnd:_e}}function paddingInline(j,_e=j){return{paddingInlineStart:j,paddingInlineEnd:_e}}function overflow(j,_e=j){return{overflowX:j,overflowY:_e}}function inset(...j){const[_e,et=_e,tt=_e,rt=et]=j;return{top:_e,right:et,bottom:tt,left:rt}}function outline(j,_e,et){return{outlineWidth:j,..._e&&{outlineStyle:_e},...et&&{outlineColor:et}}}function transition$1(...j){return isTransitionGlobalInputs(j)?{transitionDelay:j[0],transitionDuration:j[0],transitionProperty:j[0],transitionTimingFunction:j[0]}:normalizeTransitionInputs(j).reduce((et,[tt,rt="0s",nt="0s",ot="ease"],it)=>(it===0?(et.transitionProperty=tt,et.transitionDuration=rt,et.transitionDelay=nt,et.transitionTimingFunction=ot):(et.transitionProperty+=`, ${tt}`,et.transitionDuration+=`, ${rt}`,et.transitionDelay+=`, ${nt}`,et.transitionTimingFunction+=`, ${ot}`),et),{})}const transitionGlobalInputs=["-moz-initial","inherit","initial","revert","unset"];function isTransitionGlobalInputs(j){return j.length===1&&transitionGlobalInputs.includes(j[0])}function normalizeTransitionInputs(j){return j.length===1&&Array.isArray(j[0])?j[0]:[j]}function textDecoration(j,..._e){if(_e.length===0)return isTextDecorationStyleInput(j)?{textDecorationStyle:j}:{textDecorationLine:j};const[et,tt,rt]=_e;return{textDecorationLine:j,...et&&{textDecorationStyle:et},...tt&&{textDecorationColor:tt},...rt&&{textDecorationThickness:rt}}}const textDecorationStyleInputs=["dashed","dotted","double","solid","wavy"];function isTextDecorationStyleInput(j){return textDecorationStyleInputs.includes(j)}const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(j,_e){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+j)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+j)]=_e),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+j)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",HASH_PREFIX="f",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1,UNSUPPORTED_CSS_PROPERTIES={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function murmur2(j){for(var _e=0,et,tt=0,rt=j.length;rt>=4;++tt,rt-=4)et=j.charCodeAt(tt)&255|(j.charCodeAt(++tt)&255)<<8|(j.charCodeAt(++tt)&255)<<16|(j.charCodeAt(++tt)&255)<<24,et=(et&65535)*1540483477+((et>>>16)*59797<<16),et^=et>>>24,_e=(et&65535)*1540483477+((et>>>16)*59797<<16)^(_e&65535)*1540483477+((_e>>>16)*59797<<16);switch(rt){case 3:_e^=(j.charCodeAt(tt+2)&255)<<16;case 2:_e^=(j.charCodeAt(tt+1)&255)<<8;case 1:_e^=j.charCodeAt(tt)&255,_e=(_e&65535)*1540483477+((_e>>>16)*59797<<16)}return _e^=_e>>>13,_e=(_e&65535)*1540483477+((_e>>>16)*59797<<16),((_e^_e>>>15)>>>0).toString(36)}function padEndHash(j){const _e=j.length;if(_e===SEQUENCE_HASH_LENGTH)return j;for(let et=_e;et0&&(_e+=ut.slice(0,ct)),et+=dt,tt[lt]=dt}}}if(et==="")return _e.slice(0,-1);const rt=mergeClassesCachedResults[et];if(rt!==void 0)return _e+rt;const nt=[];for(let lt=0;lt{const _e=Object.keys(mergeClassesCachedResults).find(et=>mergeClassesCachedResults[et].startsWith(j));return _e?_e.split(SEQUENCE_PREFIX).filter(et=>et.length).map(et=>SEQUENCE_PREFIX+et):[]},addCSSRule:j=>{cssRules.add(j)},addSequenceDetails:(j,_e)=>{Object.entries(j).forEach(([et,tt])=>{sequenceDetails[tt.substring(0,SEQUENCE_SIZE)]={slotName:et,sourceURL:_e}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:j=>sequenceDetails[j]};function getDirectionalClassName(j,_e){return Array.isArray(j)?_e==="rtl"?j[1]:j[0]:j}function getDebugClassNames(j,_e,et,tt){const rt=j[0],nt=j[1];return Object.entries(rt).map(([ot,it])=>{const st=getDirectionalClassName(it,nt);let lt;if(et&&_e){const ut=et.find(({className:ct})=>ct===st);!ut&&_e[0][ot]?lt=getDirectionalClassName(_e[0][ot],_e[1]):ut&&_e[0][ot]?lt=(tt?tt.filter(({debugClassNames:dt})=>dt.filter(({className:ft})=>ft===st).length>0).length>0:!1)?ut.className:ut.overriddenBy:(!ut&&!_e[0][ot]||ut&&!_e[0][ot])&&(lt=void 0)}return{className:st,overriddenBy:lt}})}function getDebugTree(j,_e){const et=DEFINITION_LOOKUP_TABLE[j];if(et===void 0)return;const tt=_e?DEFINITION_LOOKUP_TABLE[_e.sequenceHash]:void 0,rt=getDebugClassNames(et,tt,_e==null?void 0:_e.debugClassNames,_e==null?void 0:_e.children),nt={sequenceHash:j,direction:et[1],children:[],debugClassNames:rt};return debugData.getChildrenSequences(nt.sequenceHash).reverse().forEach(it=>{const st=getDebugTree(it,nt);st&&nt.children.push(st)}),nt.children.length||(nt.rules={},nt.debugClassNames.forEach(({className:it})=>{const st=debugData.getSequenceDetails(j);st&&(nt.slot=st.slotName,nt.sourceURL=st.sourceURL);const lt=debugData.getCSSRules().find(ut=>ut.includes(it));nt.rules[it]=lt})),nt}function injectDevTools(j){const _e=j.defaultView;if(!_e||_e.__GRIFFEL_DEVTOOLS__)return;const et={getInfo:tt=>{const rt=Array.from(tt.classList).find(nt=>nt.startsWith(SEQUENCE_PREFIX));if(rt!==void 0)return getDebugTree(rt)}};Object.defineProperty(_e,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return et}})}function normalizeCSSBucketEntry(j){return Array.isArray(j)?j:[j]}function createIsomorphicStyleSheet(j,_e,et){const tt=[];if(et[DATA_BUCKET_ATTR]=_e,j)for(const nt in et)j.setAttribute(nt,et[nt]);function rt(nt){return j!=null&&j.sheet?j.sheet.insertRule(nt,j.sheet.cssRules.length):tt.push(nt)}return{elementAttributes:et,insertRule:rt,element:j,bucketName:_e,cssRules(){return j!=null&&j.sheet?Array.from(j.sheet.cssRules).map(nt=>nt.cssText):tt}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],styleBucketOrderingMap=styleBucketOrdering.reduce((j,_e,et)=>(j[_e]=et,j),{});function getStyleSheetForBucket(j,_e,et,tt,rt={}){const nt=j==="m",ot=nt?j+rt.m:j;if(!tt.stylesheets[ot]){const it=_e&&_e.createElement("style"),st=createIsomorphicStyleSheet(it,j,{...tt.styleElementAttributes,...nt&&{media:rt.m}});tt.stylesheets[ot]=st,_e&&it&&_e.head.insertBefore(it,findInsertionPoint(_e,et,j,tt,rt))}return tt.stylesheets[ot]}function findInsertionPoint(j,_e,et,tt,rt){const nt=styleBucketOrderingMap[et];let ot=ut=>nt-styleBucketOrderingMap[ut.getAttribute(DATA_BUCKET_ATTR)],it=j.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(et==="m"&&rt){const ut=j.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${et}"]`);ut.length&&(it=ut,ot=ct=>tt.compareMediaQueries(rt.m,ct.media))}const st=it.length;let lt=st-1;for(;lt>=0;){const ut=it.item(lt);if(ot(ut)>0)return ut.nextSibling;lt--}return st>0?it.item(0):_e?_e.nextSibling:null}function safeInsertRule(j,_e){try{j.insertRule(_e)}catch{}}let lastIndex=0;const defaultCompareMediaQueries=(j,_e)=>j<_e?-1:j>_e?1:0;function createDOMRenderer(j=typeof document>"u"?void 0:document,_e={}){const{unstable_filterCSSRule:et,insertionPoint:tt,styleElementAttributes:rt,compareMediaQueries:nt=defaultCompareMediaQueries}=_e,ot={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(rt),compareMediaQueries:nt,id:`d${lastIndex++}`,insertCSSRules(it){for(const st in it){const lt=it[st];for(let ut=0,ct=lt.length;ut{const j={};return function(et,tt){j[et.id]===void 0&&(et.insertCSSRules(tt),j[et.id]=!0)}};function arrayToObject(j){return j.reduce(function(_e,et){var tt=et[0],rt=et[1];return _e[tt]=rt,_e[rt]=tt,_e},{})}function isBoolean$2(j){return typeof j=="boolean"}function isFunction$8(j){return typeof j=="function"}function isNumber$6(j){return typeof j=="number"}function isNullOrUndefined$1(j){return j===null||typeof j>"u"}function isObject$l(j){return j&&typeof j=="object"}function isString$3(j){return typeof j=="string"}function includes(j,_e){return j.indexOf(_e)!==-1}function flipSign(j){return parseFloat(j)===0?j:j[0]==="-"?j.slice(1):"-"+j}function flipTransformSign(j,_e,et,tt){return _e+flipSign(et)+tt}function calculateNewBackgroundPosition(j){var _e=j.indexOf(".");if(_e===-1)j=100-parseFloat(j)+"%";else{var et=j.length-_e-2;j=100-parseFloat(j),j=j.toFixed(et)+"%"}return j}function getValuesAsList(j){return j.replace(/ +/g," ").split(" ").map(function(_e){return _e.trim()}).filter(Boolean).reduce(function(_e,et){var tt=_e.list,rt=_e.state,nt=(et.match(/\(/g)||[]).length,ot=(et.match(/\)/g)||[]).length;return rt.parensDepth>0?tt[tt.length-1]=tt[tt.length-1]+" "+et:tt.push(et),rt.parensDepth+=nt-ot,{list:tt,state:rt}},{list:[],state:{parensDepth:0}}).list}function handleQuartetValues(j){var _e=getValuesAsList(j);if(_e.length<=3||_e.length>4)return j;var et=_e[0],tt=_e[1],rt=_e[2],nt=_e[3];return[et,nt,rt,tt].join(" ")}function canConvertValue(j){return!isBoolean$2(j)&&!isNullOrUndefined$1(j)}function splitShadow(j){for(var _e=[],et=0,tt=0,rt=!1;tt0?charat$1(characters$1,--position$3):0,column$1--,character$1===10&&(column$1=1,line$2--),character$1}function next$1(){return character$1=position$32||token$2(character$1)>3?"":" "}function tokenizer(j){for(;next$1();)switch(token$2(character$1)){case 0:append$2(identifier$1(position$3-1),j);break;case 2:append$2(delimit$1(character$1),j);break;default:append$2(from$2(character$1),j)}return j}function escaping$1(j,_e){for(;--_e&&next$1()&&!(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97););return slice$1(j,caret$1()+(_e<6&&peek$1()==32&&next$1()==32))}function delimiter$1(j){for(;next$1();)switch(character$1){case j:return position$3;case 34:case 39:j!==34&&j!==39&&delimiter$1(character$1);break;case 40:j===41&&delimiter$1(j);break;case 92:next$1();break}return position$3}function commenter$1(j,_e){for(;next$1()&&j+character$1!==57;)if(j+character$1===84&&peek$1()===47)break;return"/*"+slice$1(_e,position$3-1)+"*"+from$2(j===47?j:next$1())}function identifier$1(j){for(;!token$2(peek$1());)next$1();return slice$1(j,position$3)}function compile$1(j){return dealloc$1(parse$n("",null,null,null,[""],j=alloc$1(j),0,[0],j))}function parse$n(j,_e,et,tt,rt,nt,ot,it,st){for(var lt=0,ut=0,ct=ot,dt=0,ft=0,pt=0,gt=1,mt=1,bt=1,_t=0,xt="",yt=rt,Et=nt,St=tt,Tt=xt;mt;)switch(pt=_t,_t=next$1()){case 40:if(pt!=108&&charat$1(Tt,ct-1)==58){indexof$1(Tt+=replace$2(delimit$1(_t),"&","&\f"),"&\f")!=-1&&(bt=-1);break}case 34:case 39:case 91:Tt+=delimit$1(_t);break;case 9:case 10:case 13:case 32:Tt+=whitespace$1(pt);break;case 92:Tt+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$2(comment$1(commenter$1(next$1(),caret$1()),_e,et,st),st);break;default:Tt+="/"}break;case 123*gt:it[lt++]=strlen$1(Tt)*bt;case 125*gt:case 59:case 0:switch(_t){case 0:case 125:mt=0;case 59+ut:bt==-1&&(Tt=replace$2(Tt,/\f/g,"")),ft>0&&strlen$1(Tt)-ct&&append$2(ft>32?declaration$1(Tt+";",tt,et,ct-1,st):declaration$1(replace$2(Tt," ","")+";",tt,et,ct-2,st),st);break;case 59:Tt+=";";default:if(append$2(St=ruleset$1(Tt,_e,et,lt,ut,rt,it,xt,yt=[],Et=[],ct,nt),nt),_t===123)if(ut===0)parse$n(Tt,_e,St,St,yt,nt,ct,it,Et);else switch(dt===99&&charat$1(Tt,3)===110?100:dt){case 100:case 108:case 109:case 115:parse$n(j,St,St,tt&&append$2(ruleset$1(j,St,St,0,0,rt,it,xt,rt,yt=[],ct,Et),Et),rt,Et,ct,it,tt?yt:Et);break;default:parse$n(Tt,St,St,St,[""],Et,0,it,Et)}}lt=ut=ft=0,gt=bt=1,xt=Tt="",ct=ot;break;case 58:ct=1+strlen$1(Tt),ft=pt;default:if(gt<1){if(_t==123)--gt;else if(_t==125&>++==0&&prev$1()==125)continue}switch(Tt+=from$2(_t),_t*gt){case 38:bt=ut>0?1:(Tt+="\f",-1);break;case 44:it[lt++]=(strlen$1(Tt)-1)*bt,bt=1;break;case 64:peek$1()===45&&(Tt+=delimit$1(next$1())),dt=peek$1(),ut=ct=strlen$1(xt=Tt+=identifier$1(caret$1())),_t++;break;case 45:pt===45&&strlen$1(Tt)==2&&(gt=0)}}return nt}function ruleset$1(j,_e,et,tt,rt,nt,ot,it,st,lt,ut,ct){for(var dt=rt-1,ft=rt===0?nt:[""],pt=sizeof$1(ft),gt=0,mt=0,bt=0;gt0?ft[_t]+" "+xt:replace$2(xt,/&\f/g,ft[_t])))&&(st[bt++]=yt);return node$1(j,_e,et,rt===0?RULESET$1:it,st,lt,ut,ct)}function comment$1(j,_e,et,tt){return node$1(j,_e,et,COMMENT$1,from$2(char$1()),substr$1(j,2,-2),0,tt)}function declaration$1(j,_e,et,tt,rt){return node$1(j,_e,et,DECLARATION$1,substr$1(j,0,tt),substr$1(j,tt+1,-1),tt,rt)}function serialize$1(j,_e){for(var et="",tt=0;tt{switch(j.type){case RULESET$1:if(typeof j.props=="string")return;j.props=j.props.map(_e=>_e.indexOf(":global(")===-1?_e:tokenize(_e).reduce((et,tt,rt,nt)=>{if(tt==="")return et;if(tt===":"&&nt[rt+1]==="global"){const ot=nt[rt+2].slice(1,-1)+" ";return et.unshift(ot),nt[rt+1]="",nt[rt+2]="",et}return et.push(tt),et},[]).join(""))}};function prefix$4(j,_e,et){switch(hash$2(j,_e)){case 5103:return WEBKIT$1+"print-"+j+j;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return WEBKIT$1+j+j;case 4215:if(charat$1(j,9)===102||charat$1(j,_e+1)===116)return WEBKIT$1+j+j;break;case 4789:return MOZ$1+j+j;case 5349:case 4246:case 6968:return WEBKIT$1+j+MOZ$1+j+j;case 6187:if(!match$m(j,/grab/))return replace$2(replace$2(replace$2(j,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),j,"")+j;case 5495:case 3959:return replace$2(j,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return replace$2(j,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+j;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen$1(j)-1-_e>6)switch(charat$1(j,_e+1)){case 102:if(charat$1(j,_e+3)===108)return replace$2(j,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(charat$1(j,_e+3)==108?"$3":"$2-$3"))+j;case 115:return~indexof$1(j,"stretch")?prefix$4(replace$2(j,"stretch","fill-available"),_e)+j:j}break}return j}function prefixerPlugin(j,_e,et,tt){if(j.length>-1&&!j.return)switch(j.type){case DECLARATION$1:j.return=prefix$4(j.value,j.length);return;case RULESET$1:if(j.length)return combine$1(j.props,function(rt){switch(match$m(rt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$5(j,{props:[replace$2(rt,/:(read-\w+)/,":"+MOZ$1+"$1")]})],tt);case"::placeholder":return serialize$1([copy$5(j,{props:[replace$2(rt,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$5(j,{props:[replace$2(rt,/:(plac\w+)/,":"+MOZ$1+"$1")]})],tt)}return""})}}function isAtRuleElement(j){switch(j.type){case"@container":case MEDIA:case SUPPORTS:case LAYER$1:return!0}return!1}const sortClassesInAtRulesPlugin=j=>{isAtRuleElement(j)&&Array.isArray(j.children)&&j.children.sort((_e,et)=>_e.props[0]>et.props[0]?1:-1)};function noop$7(){}function compileCSSRules(j,_e){const et=[];return serialize$1(compile$1(j),middleware$1([globalPlugin,_e?sortClassesInAtRulesPlugin:noop$7,prefixerPlugin,stringify$2,rulesheet$1(tt=>et.push(tt))])),et}const PSEUDO_SELECTOR_REGEX=/,( *[^ &])/g;function normalizePseudoSelector(j){return"&"+normalizeNestedProperty(j.replace(PSEUDO_SELECTOR_REGEX,",&$1"))}function createCSSRule(j,_e,et){let tt=_e;return et.length>0&&(tt=et.reduceRight((rt,nt)=>`${normalizePseudoSelector(nt)} { ${rt} }`,_e)),`${j}{${tt}}`}function compileAtomicCSSRule(j){const{className:_e,media:et,layer:tt,selectors:rt,support:nt,property:ot,rtlClassName:it,rtlProperty:st,rtlValue:lt,value:ut,container:ct}=j,dt=`.${_e}`,ft=Array.isArray(ut)?`${ut.map(gt=>`${hyphenateProperty(ot)}: ${gt}`).join(";")};`:`${hyphenateProperty(ot)}: ${ut};`;let pt=createCSSRule(dt,ft,rt);if(st&&it){const gt=`.${it}`,mt=Array.isArray(lt)?`${lt.map(bt=>`${hyphenateProperty(st)}: ${bt}`).join(";")};`:`${hyphenateProperty(st)}: ${lt};`;pt+=createCSSRule(gt,mt,rt)}return et&&(pt=`@media ${et} { ${pt} }`),tt&&(pt=`@layer ${tt} { ${pt} }`),nt&&(pt=`@supports ${nt} { ${pt} }`),ct&&(pt=`@container ${ct} { ${pt} }`),compileCSSRules(pt,!0)}function cssifyObject(j){let _e="";for(const et in j){const tt=j[et];typeof tt!="string"&&typeof tt!="number"||(_e+=hyphenateProperty(et)+":"+tt+";")}return _e}function compileKeyframeRule(j){let _e="";for(const et in j)_e+=`${et}{${cssifyObject(j[et])}}`;return _e}function compileKeyframesCSS(j,_e){const et=`@keyframes ${j} {${_e}}`,tt=[];return serialize$1(compile$1(et),middleware$1([stringify$2,prefixerPlugin,rulesheet$1(rt=>tt.push(rt))])),tt}function generateCombinedQuery(j,_e){return j.length===0?_e:`${j} and ${_e}`}function isMediaQuerySelector(j){return j.substr(0,6)==="@media"}function isLayerSelector(j){return j.substr(0,6)==="@layer"}const regex=/^(:|\[|>|&)/;function isNestedSelector(j){return regex.test(j)}function isSupportQuerySelector(j){return j.substr(0,9)==="@supports"}function isContainerQuerySelector(j){return j.substring(0,10)==="@container"}function isObject$k(j){return j!=null&&typeof j=="object"&&Array.isArray(j)===!1}const pseudosMap={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function getStyleBucketName(j,_e,et,tt,rt){if(et)return"m";if(_e||tt)return"t";if(rt)return"c";if(j.length>0){const nt=j[0].trim();if(nt.charCodeAt(0)===58)return pseudosMap[nt.slice(4,8)]||pseudosMap[nt.slice(3,5)]||"d"}return"d"}function hashClassName({container:j,media:_e,layer:et,property:tt,selector:rt,support:nt,value:ot}){const it=murmur2(rt+j+_e+et+nt+tt+ot.trim());return HASH_PREFIX+it}function hashPropertyKey(j,_e,et,tt,rt){const nt=j+_e+et+tt+rt,ot=murmur2(nt),it=ot.charCodeAt(0);return it>=48&&it<=57?String.fromCharCode(it+17)+ot.slice(1):ot}function trimSelector(j){return j.replace(/>\s+/g,">")}function warnAboutUnresolvedRule(j,_e){const et=JSON.stringify(_e,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${j}": ${et.split(` -`).map((tt,rt)=>" ".repeat(rt===0?0:6)+tt).join(` -`)}`," ".repeat(4)+""," ".repeat(2)+"",j.indexOf("&")}function warnAboutUnsupportedProperties(j,_e){}function pushToClassesMap(j,_e,et,tt){j[_e]=tt?[et,tt]:et}function createBucketEntry(j,_e){return _e?[j,_e]:j}function pushToCSSRules(j,_e,et,tt,rt){var nt;let ot;_e==="m"&&rt&&(ot={m:rt}),(nt=j[_e])!==null&&nt!==void 0||(j[_e]=[]),et&&j[_e].push(createBucketEntry(et,ot)),tt&&j[_e].push(createBucketEntry(tt,ot))}function resolveStyleRules(j,_e=[],et="",tt="",rt="",nt="",ot={},it={},st){for(const lt in j){if(UNSUPPORTED_CSS_PROPERTIES.hasOwnProperty(lt)){j[lt];continue}const ut=j[lt];if(ut!=null){if(typeof ut=="string"||typeof ut=="number"){const ct=trimSelector(_e.join("")),dt=hashPropertyKey(ct,nt,et,rt,lt),ft=hashClassName({container:nt,media:et,layer:tt,value:ut.toString(),support:rt,selector:ct,property:lt}),pt=st&&{key:lt,value:st}||convertProperty(lt,ut),gt=pt.key!==lt||pt.value!==ut,mt=gt?hashClassName({container:nt,value:pt.value.toString(),property:pt.key,selector:ct,media:et,layer:tt,support:rt}):void 0,bt=gt?{rtlClassName:mt,rtlProperty:pt.key,rtlValue:pt.value}:void 0,_t=getStyleBucketName(_e,tt,et,rt,nt),[xt,yt]=compileAtomicCSSRule({className:ft,media:et,layer:tt,selectors:_e,property:lt,support:rt,container:nt,value:ut,...bt});pushToClassesMap(ot,dt,ft,mt),pushToCSSRules(it,_t,xt,yt,et)}else if(lt==="animationName"){const ct=Array.isArray(ut)?ut:[ut],dt=[],ft=[];for(const pt of ct){const gt=compileKeyframeRule(pt),mt=compileKeyframeRule(convert(pt)),bt=HASH_PREFIX+murmur2(gt);let _t;const xt=compileKeyframesCSS(bt,gt);let yt=[];gt===mt?_t=bt:(_t=HASH_PREFIX+murmur2(mt),yt=compileKeyframesCSS(_t,mt));for(let Et=0;Et(St??"").toString()).join(";"),support:rt,selector:ct,property:lt}),pt=ut.map(St=>convertProperty(lt,St));if(!!pt.some(St=>St.key!==pt[0].key))continue;const mt=pt[0].key!==lt||pt.some((St,Tt)=>St.value!==ut[Tt]),bt=mt?hashClassName({container:nt,value:pt.map(St=>{var Tt;return((Tt=St==null?void 0:St.value)!==null&&Tt!==void 0?Tt:"").toString()}).join(";"),property:pt[0].key,selector:ct,layer:tt,media:et,support:rt}):void 0,_t=mt?{rtlClassName:bt,rtlProperty:pt[0].key,rtlValue:pt.map(St=>St.value)}:void 0,xt=getStyleBucketName(_e,tt,et,rt,nt),[yt,Et]=compileAtomicCSSRule({className:ft,media:et,layer:tt,selectors:_e,property:lt,support:rt,container:nt,value:ut,..._t});pushToClassesMap(ot,dt,ft,bt),pushToCSSRules(it,xt,yt,Et,et)}else if(isObject$k(ut))if(isNestedSelector(lt))resolveStyleRules(ut,_e.concat(normalizeNestedProperty(lt)),et,tt,rt,nt,ot,it);else if(isMediaQuerySelector(lt)){const ct=generateCombinedQuery(et,lt.slice(6).trim());resolveStyleRules(ut,_e,ct,tt,rt,nt,ot,it)}else if(isLayerSelector(lt)){const ct=(tt?`${tt}.`:"")+lt.slice(6).trim();resolveStyleRules(ut,_e,et,ct,rt,nt,ot,it)}else if(isSupportQuerySelector(lt)){const ct=generateCombinedQuery(rt,lt.slice(9).trim());resolveStyleRules(ut,_e,et,tt,ct,nt,ot,it)}else if(isContainerQuerySelector(lt)){const ct=lt.slice(10).trim();resolveStyleRules(ut,_e,et,tt,rt,ct,ot,it)}else warnAboutUnresolvedRule(lt,ut)}}return[ot,it]}function resolveStyleRulesForSlots(j){const _e={},et={};for(const tt in j){const rt=j[tt],[nt,ot]=resolveStyleRules(rt);_e[tt]=nt,Object.keys(ot).forEach(it=>{et[it]=(et[it]||[]).concat(ot[it])})}return[_e,et]}function makeStyles$1(j,_e=insertionFactory$1){const et=_e();let tt=null,rt=null,nt=null,ot=null;function it(st){const{dir:lt,renderer:ut}=st;tt===null&&([tt,rt]=resolveStyleRulesForSlots(j));const ct=lt==="ltr";return ct?nt===null&&(nt=reduceToClassNameForSlots(tt,lt)):ot===null&&(ot=reduceToClassNameForSlots(tt,lt)),et(ut,rt),ct?nt:ot}return it}function __styles$1(j,_e,et=insertionFactory$1){const tt=et();let rt=null,nt=null;function ot(it){const{dir:st,renderer:lt}=it,ut=st==="ltr";return ut?rt===null&&(rt=reduceToClassNameForSlots(j,st)):nt===null&&(nt=reduceToClassNameForSlots(j,st)),tt(lt,_e),ut?rt:nt}return ot}function __resetStyles$1(j,_e,et,tt=insertionFactory$1){const rt=tt();function nt(ot){const{dir:it,renderer:st}=ot,lt=it==="ltr"?j:_e||j;return rt(st,Array.isArray(et)?{r:et}:et),lt}return nt}const shorthands={border,borderLeft,borderBottom,borderRight,borderTop,borderColor,borderStyle,borderRadius:borderRadius$1,borderWidth:borderWidth$1,flex,gap,gridArea,margin,marginBlock,marginInline,padding,paddingBlock,paddingInline,overflow,inset,outline,transition:transition$1,textDecoration};function canUseDOM$4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const useInsertionEffect$2=React$1.useInsertionEffect?React$1.useInsertionEffect:void 0,insertionFactory=()=>{const j={};return function(et,tt){if(useInsertionEffect$2&&canUseDOM$4()){useInsertionEffect$2(()=>{et.insertCSSRules(tt)},[et,tt]);return}j[et.id]===void 0&&(et.insertCSSRules(tt),j[et.id]=!0)}},RendererContext=reactExports.createContext(createDOMRenderer());function useRenderer(){return reactExports.useContext(RendererContext)}const TextDirectionContext=reactExports.createContext("ltr"),TextDirectionProvider=({children:j,dir:_e})=>reactExports.createElement(TextDirectionContext.Provider,{value:_e},j);function useTextDirection(){return reactExports.useContext(TextDirectionContext)}function makeStyles(j){const _e=makeStyles$1(j,insertionFactory);return function(){const tt=useTextDirection(),rt=useRenderer();return _e({dir:tt,renderer:rt})}}function __styles(j,_e){const et=__styles$1(j,_e,insertionFactory);return function(){const rt=useTextDirection(),nt=useRenderer();return et({dir:rt,renderer:nt})}}function __resetStyles(j,_e,et){const tt=__resetStyles$1(j,_e,et,insertionFactory);return function(){const nt=useTextDirection(),ot=useRenderer();return tt({dir:nt,renderer:ot})}}function createCSSRuleFromTheme(j,_e){if(_e){const et=Object.keys(_e).reduce((tt,rt)=>`${tt}--${rt}: ${_e[rt]}; `,"");return`${j} { ${et} }`}return`${j} {}`}const SLOT_RENDER_FUNCTION_SYMBOL=Symbol("fui.slotRenderFunction"),SLOT_ELEMENT_TYPE_SYMBOL=Symbol("fui.slotElementType");function always(j,_e){const{defaultProps:et,elementType:tt}=_e,rt=resolveShorthand(j),nt={...et,...rt,[SLOT_ELEMENT_TYPE_SYMBOL]:tt};return rt&&typeof rt.children=="function"&&(nt[SLOT_RENDER_FUNCTION_SYMBOL]=rt.children,nt.children=et==null?void 0:et.children),nt}function optional(j,_e){if(!(j===null||j===void 0&&!_e.renderByDefault))return always(j,_e)}function resolveShorthand(j){return typeof j=="string"||typeof j=="number"||Array.isArray(j)||reactExports.isValidElement(j)?{children:j}:j}function isSlot(j){return!!(j!=null&&j.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL))}function isResolvedShorthand(j){return j!==null&&typeof j=="object"&&!Array.isArray(j)&&!reactExports.isValidElement(j)}const toObjectMap$1=(...j)=>{const _e={};for(const et of j){const tt=Array.isArray(et)?et:Object.keys(et);for(const rt of tt)_e[rt]=1}return _e},baseElementEvents$1=toObjectMap$1(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),baseElementProperties$1=toObjectMap$1(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),microdataProperties=toObjectMap$1(["itemID","itemProp","itemRef","itemScope","itemType"]),htmlElementProperties$1=toObjectMap$1(baseElementProperties$1,baseElementEvents$1,microdataProperties),labelProperties=toObjectMap$1(htmlElementProperties$1,["form"]),audioProperties$1=toObjectMap$1(htmlElementProperties$1,["height","loop","muted","preload","src","width"]),videoProperties=toObjectMap$1(audioProperties$1,["poster"]),olProperties=toObjectMap$1(htmlElementProperties$1,["start"]),liProperties=toObjectMap$1(htmlElementProperties$1,["value"]),anchorProperties$1=toObjectMap$1(htmlElementProperties$1,["download","href","hrefLang","media","rel","target","type"]),timeProperties=toObjectMap$1(htmlElementProperties$1,["dateTime"]),buttonProperties$1=toObjectMap$1(htmlElementProperties$1,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),inputProperties=toObjectMap$1(buttonProperties$1,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textAreaProperties=toObjectMap$1(buttonProperties$1,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),selectProperties=toObjectMap$1(buttonProperties$1,["form","multiple","required"]),optionProperties=toObjectMap$1(htmlElementProperties$1,["selected","value"]),tableProperties=toObjectMap$1(htmlElementProperties$1,["cellPadding","cellSpacing"]),trProperties=htmlElementProperties$1,thProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","rowSpan","scope"]),tdProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","headers","rowSpan","scope"]),colGroupProperties=toObjectMap$1(htmlElementProperties$1,["span"]),colProperties=toObjectMap$1(htmlElementProperties$1,["span"]),fieldsetProperties=toObjectMap$1(htmlElementProperties$1,["disabled","form"]),formProperties=toObjectMap$1(htmlElementProperties$1,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframeProperties=toObjectMap$1(htmlElementProperties$1,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),imgProperties$1=toObjectMap$1(htmlElementProperties$1,["alt","crossOrigin","height","src","srcSet","useMap","width"]),dialogProperties=toObjectMap$1(htmlElementProperties$1,["open","onCancel","onClose"]);function getNativeProps$1(j,_e,et){const tt=Array.isArray(_e),rt={},nt=Object.keys(j);for(const ot of nt)(!tt&&_e[ot]||tt&&_e.indexOf(ot)>=0||ot.indexOf("data-")===0||ot.indexOf("aria-")===0)&&(!et||(et==null?void 0:et.indexOf(ot))===-1)&&(rt[ot]=j[ot]);return rt}const nativeElementMap={label:labelProperties,audio:audioProperties$1,video:videoProperties,ol:olProperties,li:liProperties,a:anchorProperties$1,button:buttonProperties$1,input:inputProperties,textarea:textAreaProperties,select:selectProperties,option:optionProperties,table:tableProperties,tr:trProperties,th:thProperties,td:tdProperties,colGroup:colGroupProperties,col:colProperties,fieldset:fieldsetProperties,form:formProperties,iframe:iframeProperties,img:imgProperties$1,time:timeProperties,dialog:dialogProperties};function getNativeElementProps(j,_e,et){const tt=j&&nativeElementMap[j]||htmlElementProperties$1;return tt.as=1,getNativeProps$1(_e,tt,et)}const getPartitionedNativeProps=({primarySlotTagName:j,props:_e,excludedPropNames:et})=>({root:{style:_e.style,className:_e.className},primary:getNativeElementProps(j,_e,[...et||[],"style","className"])}),getIntrinsicElementProps=(j,_e,et)=>{var tt;return getNativeElementProps((tt=_e.as)!==null&&tt!==void 0?tt:j,_e,et)};function canUseDOM$3(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function useBrowserTimer(j,_e){const et=reactExports.useRef(void 0),tt=reactExports.useCallback((nt,ot)=>(et.current!==void 0&&_e(et.current),et.current=j(nt,ot),et.current),[_e,j]),rt=reactExports.useCallback(()=>{et.current!==void 0&&(_e(et.current),et.current=void 0)},[_e]);return reactExports.useEffect(()=>rt,[rt]),[tt,rt]}const setAnimationFrameNoop=j=>(j(0),0),cancelAnimationFrameNoop=j=>j;function useAnimationFrame(){const j=canUseDOM$3();return useBrowserTimer(j?requestAnimationFrame:setAnimationFrameNoop,j?cancelAnimationFrame:cancelAnimationFrameNoop)}function isFactoryDispatch(j){return typeof j=="function"}const useControllableState=j=>{const[_e,et]=reactExports.useState(()=>j.defaultState===void 0?j.initialState:isInitializer(j.defaultState)?j.defaultState():j.defaultState),tt=reactExports.useRef(j.state);reactExports.useEffect(()=>{tt.current=j.state},[j.state]);const rt=reactExports.useCallback(nt=>{isFactoryDispatch(nt)&&nt(tt.current)},[]);return useIsControlled(j.state)?[j.state,rt]:[_e,et]};function isInitializer(j){return typeof j=="function"}const useIsControlled=j=>{const[_e]=reactExports.useState(()=>j!==void 0);return _e},defaultSSRContextValue={current:0},SSRContext=reactExports.createContext(void 0);function useSSRContext(){var j;return(j=reactExports.useContext(SSRContext))!==null&&j!==void 0?j:defaultSSRContextValue}function useIsSSR(){const j=useSSRContext()!==defaultSSRContextValue,[_e,et]=reactExports.useState(j);return canUseDOM$3()&&j&&reactExports.useLayoutEffect(()=>{et(!1)},[]),_e}const useIsomorphicLayoutEffect$1=canUseDOM$3()?reactExports.useLayoutEffect:reactExports.useEffect,useEventCallback$3=j=>{const _e=reactExports.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect$1(()=>{_e.current=j},[j]),reactExports.useCallback((...et)=>{const tt=_e.current;return tt(...et)},[_e])};function useFirstMount(){const j=reactExports.useRef(!0);return j.current?(j.current=!1,!0):j.current}const IdPrefixContext=reactExports.createContext(void 0);IdPrefixContext.Provider;function useIdPrefix(){return reactExports.useContext(IdPrefixContext)||""}function useId$1(j="fui-",_e){const et=useSSRContext(),tt=useIdPrefix(),rt=React$1.useId;if(rt){const nt=rt(),ot=reactExports.useMemo(()=>nt.replace(/:/g,""),[nt]);return _e||`${tt}${j}${ot}`}return reactExports.useMemo(()=>_e||`${tt}${j}${++et.current}`,[tt,j,_e,et])}function useMergedRefs$1(...j){const _e=reactExports.useCallback(et=>{_e.current=et;for(const tt of j)typeof tt=="function"?tt(et):tt&&(tt.current=et)},[...j]);return _e}const ThemeContext$1=reactExports.createContext(void 0),ThemeProvider=ThemeContext$1.Provider,ThemeClassNameContext=reactExports.createContext(void 0),themeClassNameContextDefaultVaue="",ThemeClassNameProvider=ThemeClassNameContext.Provider;function useThemeClassName(){var j;return(j=reactExports.useContext(ThemeClassNameContext))!==null&&j!==void 0?j:themeClassNameContextDefaultVaue}const TooltipVisibilityContext=reactExports.createContext(void 0),tooltipVisibilityContextDefaultValue={},TooltipVisibilityProvider=TooltipVisibilityContext.Provider;function useTooltipVisibility(){var j;return(j=reactExports.useContext(TooltipVisibilityContext))!==null&&j!==void 0?j:tooltipVisibilityContextDefaultValue}const ProviderContext=reactExports.createContext(void 0),providerContextDefaultValue={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},Provider=ProviderContext.Provider;function useFluent(){var j;return(j=reactExports.useContext(ProviderContext))!==null&&j!==void 0?j:providerContextDefaultValue}const OverridesContext=reactExports.createContext(void 0),OverridesProvider=OverridesContext.Provider;function useOverrides(){var j;return(j=reactExports.useContext(OverridesContext))!==null&&j!==void 0?j:{}}const CustomStyleHooksContext=reactExports.createContext(void 0),noop$6=()=>{},CustomStyleHooksProvider=CustomStyleHooksContext.Provider,useCustomStyleHook=j=>{var _e,et;return(et=(_e=reactExports.useContext(CustomStyleHooksContext))===null||_e===void 0?void 0:_e[j])!==null&&et!==void 0?et:noop$6},BackgroundAppearanceContext=reactExports.createContext(void 0);BackgroundAppearanceContext.Provider;function useBackgroundAppearance(){return reactExports.useContext(BackgroundAppearanceContext)}const PortalMountNodeContext=reactExports.createContext(void 0);PortalMountNodeContext.Provider;function usePortalMountNode$1(){return reactExports.useContext(PortalMountNodeContext)}const AnnounceContext=reactExports.createContext(void 0);AnnounceContext.Provider;function useAnnounce(){var j;return(j=reactExports.useContext(AnnounceContext))!==null&&j!==void 0?j:{announce:()=>{}}}const DEFAULT_CONTAINS=(j,_e)=>!!(j!=null&&j.contains(_e)),useOnClickOutside=j=>{const{targetDocument:_e}=useFluent(),et=_e==null?void 0:_e.defaultView,{refs:tt,callback:rt,element:nt,disabled:ot,disabledFocusOnIframe:it,contains:st=DEFAULT_CONTAINS}=j,lt=reactExports.useRef(void 0);useIFrameFocus({element:nt,disabled:it||ot,callback:rt,refs:tt,contains:st});const ut=reactExports.useRef(!1),ct=useEventCallback$3(ft=>{if(ut.current){ut.current=!1;return}const pt=ft.composedPath()[0];tt.every(mt=>!st(mt.current||null,pt))&&!ot&&rt(ft)}),dt=useEventCallback$3(ft=>{ut.current=tt.some(pt=>st(pt.current||null,ft.target))});reactExports.useEffect(()=>{if(ot)return;let ft=getWindowEvent(et);const pt=gt=>{if(gt===ft){ft=void 0;return}ct(gt)};return nt==null||nt.addEventListener("click",pt,!0),nt==null||nt.addEventListener("touchstart",pt,!0),nt==null||nt.addEventListener("contextmenu",pt,!0),nt==null||nt.addEventListener("mousedown",dt,!0),lt.current=et==null?void 0:et.setTimeout(()=>{ft=void 0},1),()=>{nt==null||nt.removeEventListener("click",pt,!0),nt==null||nt.removeEventListener("touchstart",pt,!0),nt==null||nt.removeEventListener("contextmenu",pt,!0),nt==null||nt.removeEventListener("mousedown",dt,!0),et==null||et.clearTimeout(lt.current),ft=void 0}},[ct,nt,ot,dt,et])},getWindowEvent=j=>{if(j){var _e,et;if(typeof j.window=="object"&&j.window===j)return j.event;var tt;return(tt=(et=j.ownerDocument)===null||et===void 0||(_e=et.defaultView)===null||_e===void 0?void 0:_e.event)!==null&&tt!==void 0?tt:void 0}},FUI_FRAME_EVENT="fuiframefocus",useIFrameFocus=j=>{const{disabled:_e,element:et,callback:tt,contains:rt=DEFAULT_CONTAINS,pollDuration:nt=1e3,refs:ot}=j,it=reactExports.useRef(),st=useEventCallback$3(lt=>{ot.every(ct=>!rt(ct.current||null,lt.target))&&!_e&&tt(lt)});reactExports.useEffect(()=>{if(!_e)return et==null||et.addEventListener(FUI_FRAME_EVENT,st,!0),()=>{et==null||et.removeEventListener(FUI_FRAME_EVENT,st,!0)}},[et,_e,st]),reactExports.useEffect(()=>{var lt;if(!_e)return it.current=et==null||(lt=et.defaultView)===null||lt===void 0?void 0:lt.setInterval(()=>{const ut=et==null?void 0:et.activeElement;if((ut==null?void 0:ut.tagName)==="IFRAME"||(ut==null?void 0:ut.tagName)==="WEBVIEW"){const ct=new CustomEvent(FUI_FRAME_EVENT,{bubbles:!0});ut.dispatchEvent(ct)}},nt),()=>{var ut;et==null||(ut=et.defaultView)===null||ut===void 0||ut.clearTimeout(it.current)}},[et,_e,nt])},useOnScrollOutside=j=>{const{refs:_e,callback:et,element:tt,disabled:rt,contains:nt}=j,ot=useEventCallback$3(it=>{const st=nt||((ct,dt)=>!!(ct!=null&&ct.contains(dt))),lt=it.composedPath()[0];_e.every(ct=>!st(ct.current||null,lt))&&!rt&&et(it)});reactExports.useEffect(()=>{if(!rt)return tt==null||tt.addEventListener("wheel",ot),tt==null||tt.addEventListener("touchmove",ot),()=>{tt==null||tt.removeEventListener("wheel",ot),tt==null||tt.removeEventListener("touchmove",ot)}},[ot,tt,rt])};function useTimeout(){return useBrowserTimer(setTimeout,clearTimeout)}function mergeCallbacks(j,_e){return(...et)=>{j==null||j(...et),_e==null||_e(...et)}}function isHTMLElement$4(j,_e){var et;const tt=j;var rt;return!!(!(tt==null||(et=tt.ownerDocument)===null||et===void 0)&&et.defaultView&&tt instanceof tt.ownerDocument.defaultView[(rt=_e==null?void 0:_e.constructorName)!==null&&rt!==void 0?rt:"HTMLElement"])}function isFluentTrigger(j){return!!j.type.isFluentTriggerComponent}function applyTriggerPropsToChildren(j,_e){return typeof j=="function"?j(_e):j?cloneTriggerTree(j,_e):j||null}function cloneTriggerTree(j,_e){if(!reactExports.isValidElement(j)||j.type===reactExports.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(isFluentTrigger(j)){const et=cloneTriggerTree(j.props.children,_e);return reactExports.cloneElement(j,void 0,et)}else return reactExports.cloneElement(j,_e)}function getTriggerChild(j){return reactExports.isValidElement(j)?isFluentTrigger(j)?getTriggerChild(j.props.children):j:null}function isVirtualElement$1(j){return j&&!!j._virtual}function getVirtualParent$1(j){return isVirtualElement$1(j)&&j._virtual.parent||null}function getParent$1(j,_e={}){if(!j)return null;if(!_e.skipVirtual){const et=getVirtualParent$1(j);if(et)return et}return(j==null?void 0:j.parentNode)||null}function elementContains$1(j,_e){if(!j||!_e)return!1;if(j===_e)return!0;{const et=new WeakSet;for(;_e;){const tt=getParent$1(_e,{skipVirtual:et.has(_e)});if(et.add(_e),tt===j)return!0;_e=tt}}return!1}function setVirtualParent$1(j,_e){if(!j)return;const et=j;et._virtual||(et._virtual={}),et._virtual.parent=_e}function createCompatSlotComponent(j,_e){return{..._e,[SLOT_ELEMENT_TYPE_SYMBOL]:j}}function createJSX(j,_e){return function(tt,rt,nt,ot,it){return isSlot(rt)?_e(createCompatSlotComponent(tt,rt),null,nt,ot,it):isSlot(tt)?_e(tt,rt,nt,ot,it):j(tt,rt,nt,ot,it)}}function getMetadataFromSlotComponent(j){const{as:_e,[SLOT_ELEMENT_TYPE_SYMBOL]:et,[SLOT_RENDER_FUNCTION_SYMBOL]:tt,...rt}=j,nt=rt,ot=typeof et=="string"?_e??et:et;return typeof ot!="string"&&_e&&(nt.as=_e),{elementType:ot,props:nt,renderFunction:tt}}const Runtime=ReactRuntime,jsxSlot=(j,_e,et)=>{const{elementType:tt,renderFunction:rt,props:nt}=getMetadataFromSlotComponent(j),ot={...nt,..._e};return rt?Runtime.jsx(reactExports.Fragment,{children:rt(tt,ot)},et):Runtime.jsx(tt,ot,et)},jsxsSlot=(j,_e,et)=>{const{elementType:tt,renderFunction:rt,props:nt}=getMetadataFromSlotComponent(j),ot={...nt,..._e};return rt?Runtime.jsx(reactExports.Fragment,{children:rt(tt,{...ot,children:Runtime.jsxs(reactExports.Fragment,{children:ot.children},void 0)})},et):Runtime.jsxs(tt,ot,et)},jsx$1=createJSX(Runtime.jsx,jsxSlot),jsxs=createJSX(Runtime.jsxs,jsxsSlot),IconDirectionContext=reactExports.createContext(void 0),IconDirectionContextDefaultValue={},IconDirectionContextProvider=IconDirectionContext.Provider,useIconContext=()=>reactExports.useContext(IconDirectionContext)?reactExports.useContext(IconDirectionContext):IconDirectionContextDefaultValue,useRootStyles$7=__styles({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),useIconState=(j,_e)=>{const{title:et,primaryFill:tt="currentColor",...rt}=j,nt={...rt,title:void 0,fill:tt},ot=useRootStyles$7(),it=useIconContext();return nt.className=mergeClasses(ot.root,(_e==null?void 0:_e.flipInRtl)&&(it==null?void 0:it.textDirection)==="rtl"&&ot.rtl,nt.className),et&&(nt["aria-label"]=et),!nt["aria-label"]&&!nt["aria-labelledby"]?nt["aria-hidden"]=!0:nt.role="img",nt},createFluentIcon=(j,_e,et,tt)=>{const rt=_e==="1em"?"20":_e,nt=reactExports.forwardRef((ot,it)=>{const st={...useIconState(ot,{flipInRtl:tt==null?void 0:tt.flipInRtl}),ref:it,width:_e,height:_e,viewBox:`0 0 ${rt} ${rt}`,xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement("svg",st,...et.map(lt=>reactExports.createElement("path",{d:lt,fill:st.fill})))});return nt.displayName=j,nt},CheckmarkFilled=createFluentIcon("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),CheckmarkCircleFilled=createFluentIcon("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ChevronDownRegular=createFluentIcon("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),ChevronRightRegular=createFluentIcon("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),CircleFilled=createFluentIcon("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),ErrorCircleFilled=createFluentIcon("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),InfoFilled=createFluentIcon("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),WarningFilled=createFluentIcon("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),Alert20Regular=createFluentIcon("Alert20Regular","20",["M10 2a5.92 5.92 0 0 1 5.98 5.36l.02.22V11.4l.92 2.22a1 1 0 0 1 .06.17l.01.08.01.13a1 1 0 0 1-.75.97l-.11.02L16 15h-3.5v.17a2.5 2.5 0 0 1-5 0V15H4a1 1 0 0 1-.26-.03l-.13-.04a1 1 0 0 1-.6-1.05l.02-.13.05-.13L4 11.4V7.57A5.9 5.9 0 0 1 10 2Zm1.5 13h-3v.15a1.5 1.5 0 0 0 1.36 1.34l.14.01c.78 0 1.42-.6 1.5-1.36V15ZM10 3a4.9 4.9 0 0 0-4.98 4.38L5 7.6V11.5l-.04.2L4 14h12l-.96-2.3-.04-.2V7.61A4.9 4.9 0 0 0 10 3Z"]),ArrowClockwise16Regular=createFluentIcon("ArrowClockwise16Regular","16",["M3 8a5 5 0 0 1 9-3H9.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.03A6 6 0 1 0 14 8a.5.5 0 0 0-1 0A5 5 0 0 1 3 8Z"]),ArrowClockwiseDashes20Regular=createFluentIcon("ArrowClockwiseDashes20Regular","20",["M8.13 2.22a8.02 8.02 0 0 1 3.74 0 .5.5 0 0 1-.23.97 7.02 7.02 0 0 0-3.28 0 .5.5 0 1 1-.23-.97ZM6.51 3.34a.5.5 0 0 1-.17.69 7.04 7.04 0 0 0-2.31 2.31.5.5 0 0 1-.85-.52 8.04 8.04 0 0 1 2.64-2.64.5.5 0 0 1 .69.16Zm7.67-.16a.5.5 0 1 0-.52.85c.82.5 1.53 1.18 2.09 1.97H12.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-1 0v2.2a8.04 8.04 0 0 0-1.82-1.52ZM2.82 7.76a.5.5 0 0 1 .37.6 7.02 7.02 0 0 0 0 3.28.5.5 0 0 1-.97.23 8.02 8.02 0 0 1 0-3.74.5.5 0 0 1 .6-.37ZM18 10v-.5a.5.5 0 0 0-1 0v.5c0 .56-.07 1.11-.2 1.64a.5.5 0 1 0 .98.23c.14-.6.22-1.23.22-1.87ZM3.34 13.5a.5.5 0 0 1 .69.16 7.04 7.04 0 0 0 2.31 2.31.5.5 0 1 1-.52.85 8.04 8.04 0 0 1-2.64-2.64.5.5 0 0 1 .16-.69Zm13.48.68a.5.5 0 0 0-.85-.52 7.04 7.04 0 0 1-2.31 2.31.5.5 0 0 0 .52.85 8.04 8.04 0 0 0 2.64-2.64Zm-9.06 3a.5.5 0 0 1 .6-.37 7.02 7.02 0 0 0 3.28 0 .5.5 0 1 1 .23.97 8.02 8.02 0 0 1-3.74 0 .5.5 0 0 1-.37-.6Z"]),ArrowUpload24Regular=createFluentIcon("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),Attach16Regular=createFluentIcon("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),Checkmark12Filled=createFluentIcon("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),CheckmarkCircle20Regular=createFluentIcon("CheckmarkCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.36 4.65c.17.17.2.44.06.63l-.06.07-4 4a.5.5 0 0 1-.64.07l-.07-.06-2-2a.5.5 0 0 1 .63-.77l.07.06L9 11.3l3.65-3.65c.2-.2.51-.2.7 0Z"]),ChevronDown16Filled=createFluentIcon("ChevronDown16Filled","16",["M3.2 5.74a.75.75 0 0 1 1.06-.04L8 9.23l3.74-3.53a.75.75 0 1 1 1.02 1.1l-4.25 4a.75.75 0 0 1-1.02 0l-4.25-4a.75.75 0 0 1-.04-1.06Z"]),ChevronLeft16Regular=createFluentIcon("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),ChevronRight16Filled=createFluentIcon("ChevronRight16Filled","16",["M5.74 3.2a.75.75 0 0 0-.04 1.06L9.23 8 5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04Z"]),ChevronRight16Regular=createFluentIcon("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),Clock20Regular=createFluentIcon("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),Copy20Regular=createFluentIcon("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),CopyArrowRight20Regular=createFluentIcon("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),Dismiss20Regular=createFluentIcon("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Dismiss24Regular=createFluentIcon("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),DismissCircle20Regular=createFluentIcon("DismissCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM7.8 7.11l.08.06L10 9.3l2.12-2.12a.5.5 0 0 1 .64-.06l.07.06c.17.18.2.44.06.64l-.06.07L10.7 10l2.12 2.12c.17.17.2.44.06.64l-.06.07a.5.5 0 0 1-.64.06l-.07-.06L10 10.7l-2.12 2.12a.5.5 0 0 1-.64.06l-.07-.06a.5.5 0 0 1-.06-.64l.06-.07L9.3 10 7.17 7.88a.5.5 0 0 1-.06-.64l.06-.07a.5.5 0 0 1 .64-.06Z"]),Document16Regular=createFluentIcon("Document16Regular","16",["M5 1a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V5.41c0-.4-.16-.78-.44-1.06L9.65 1.44A1.5 1.5 0 0 0 8.59 1H5ZM4 3a1 1 0 0 1 1-1h3v2.5C8 5.33 8.67 6 9.5 6H12v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3Zm7.8 2H9.5a.5.5 0 0 1-.5-.5V2.2L11.8 5Z"]),ErrorCircle16Filled=createFluentIcon("ErrorCircle16Filled","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-5.5a.5.5 0 0 0-.5.41V8.59a.5.5 0 0 0 1 0V4.91A.5.5 0 0 0 8 4.5Z"]),ErrorCircle20Regular=createFluentIcon("ErrorCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 9.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5ZM10 6a.5.5 0 0 1 .5.41V11a.5.5 0 0 1-1 .09V6.5c0-.28.22-.5.5-.5Z"]),GanttChart20Regular=createFluentIcon("GanttChart20Regular","20",["M4.5 7a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 9.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm3.5 1.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm-8-7A2.5 2.5 0 0 0 2 6.5v7A2.5 2.5 0 0 0 4.5 16h11a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 15.5 4h-11ZM3 6.5C3 5.67 3.67 5 4.5 5H7v1h1V5h4v3h1V5h2.5c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5H13v-2h-1v2H8V9H7v6H4.5A1.5 1.5 0 0 1 3 13.5v-7Z"]),LinkMultiple16Regular=createFluentIcon("LinkMultiple16Regular","16",["M12 6.5A3.5 3.5 0 0 0 8.5 3H4.3A3.5 3.5 0 0 0 3 9.67a4.57 4.57 0 0 1 .1-1.1A2.5 2.5 0 0 1 4.5 4h4.16a2.5 2.5 0 0 1-.16 5h-1l-.1.01a.5.5 0 0 0 .1 1l1-.01h.2A3.5 3.5 0 0 0 12 6.5Zm2 3a2.5 2.5 0 0 0-1.1-2.07 4.52 4.52 0 0 0 .1-1.1A3.5 3.5 0 0 1 11.7 13l-.2.01h-4a3.5 3.5 0 0 1-.2-7h1.2a.5.5 0 0 1 .09 1H7.5a2.5 2.5 0 0 0-.16 5h4.16A2.5 2.5 0 0 0 14 9.5Z"]),NumberCircle020Regular=createFluentIcon("NumberCircle020Regular","20",["M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-7 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-2-8c0-1.07.15-1.97.49-2.6.16-.3.36-.51.6-.66.23-.15.52-.24.91-.24s.68.1.92.24c.23.15.43.37.6.67.33.62.48 1.52.48 2.59 0 1.07-.15 1.97-.49 2.6-.16.3-.36.51-.6.66-.23.15-.52.24-.91.24s-.68-.1-.92-.24a1.74 1.74 0 0 1-.6-.67A5.65 5.65 0 0 1 8 10Zm2-4.5c-.55 0-1.04.13-1.45.4-.4.25-.72.61-.94 1.03A6.6 6.6 0 0 0 7 10c0 1.14.16 2.23.6 3.07.23.42.54.78.95 1.04.41.26.9.39 1.45.39.55 0 1.04-.13 1.45-.4.4-.25.72-.61.94-1.03.45-.84.61-1.93.61-3.07a6.6 6.6 0 0 0-.6-3.07 2.74 2.74 0 0 0-.95-1.04c-.41-.26-.9-.39-1.45-.39Z"]),Person20Regular=createFluentIcon("Person20Regular","20",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0 0 17 13a2 2 0 0 0-2-2H5Zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0 1 10 17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 4 13Z"]),QuestionCircle20Regular=createFluentIcon("QuestionCircle20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0 10.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Zm0-8a2.5 2.5 0 0 1 1.65 4.38l-.15.12-.22.17-.09.07-.16.15c-.33.36-.53.85-.53 1.61a.5.5 0 0 1-1 0 3.2 3.2 0 0 1 1.16-2.62l.25-.19.12-.1A1.5 1.5 0 0 0 10 6.5c-.83 0-1.5.67-1.5 1.5a.5.5 0 0 1-1 0A2.5 2.5 0 0 1 10 5.5Z"]),SendCopy20Regular=createFluentIcon("SendCopy20Regular","20",["M8.65 2.15c.2-.2.5-.2.7 0l3 3a.5.5 0 0 1-.7.7L9.5 3.71v7.79a.5.5 0 0 1-1 0V3.7L6.35 5.86a.5.5 0 1 1-.7-.7l3-3ZM5.27 17c.34.6.99 1 1.73 1h6a4 4 0 0 0 4-4v-3.5a.5.5 0 1 0-1 0V14a3 3 0 0 1-3 3H5.27ZM4 8.5a.5.5 0 0 0-1 0V14c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-1 0V14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8.5Z"]),ShieldCheckmark24Regular=createFluentIcon("ShieldCheckmark24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 .34-.01.67-.04 1a6.47 6.47 0 0 0-1.46-.69V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28.26.56.6 1.07 1 1.52l-.36.15a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75ZM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7Z"]),TextBulletListSquareWarning24Regular=createFluentIcon("TextBulletListSquareWarning24Regular","24",["M7.75 9.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3.5-1.75a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 3.75a.75.75 0 1 0 0 1.5h3.83l.19-.37c.26-.53.67-.9 1.13-1.13h-5.15Zm0 3.75h2.7l-.74 1.5h-1.96a.75.75 0 1 1 0-1.5Zm-5 4.5h5.46l-.44.88c-.1.2-.17.41-.22.62h-4.8A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h11.5C19.55 3 21 4.46 21 6.25v8.65l-1.26-2.52a2.6 2.6 0 0 0-.24-.39V6.25c0-.97-.78-1.75-1.75-1.75H6.25c-.97 0-1.75.78-1.75 1.75v11.5c0 .97.78 1.75 1.75 1.75Zm2.5-7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.41-3.92a1.5 1.5 0 0 1 2.69 0l4 8c.5 1-.23 2.17-1.35 2.17h-8a1.5 1.5 0 0 1-1.34-2.17l4-8ZM18 15.5a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0v-3Zm-.5 5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"]),TextWrap16Regular=createFluentIcon("TextWrap16Regular","16",["M2 3.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h10a2.5 2.5 0 0 1 0 5H9.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 0 1 .7.7l-.64.65h2.79a1.5 1.5 0 0 0 0-3h-10a.5.5 0 0 1-.5-.5ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),TextWrapOff16Regular=createFluentIcon("TextWrapOff16Regular","16",["M14.15 14.85 11.29 12H9.71l.64.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7L9.29 10l-2-2H2.5a.5.5 0 0 1 0-1h3.8l-3-3h-.8a.5.5 0 0 1-.18-.97L1.15 1.85a.5.5 0 1 1 .7-.7l13 13a.5.5 0 0 1-.7.7ZM10.12 8l-1-1h3.38a2.5 2.5 0 0 1 1.27 4.65l-.74-.74A1.5 1.5 0 0 0 12.5 8h-2.38Zm-4-4-1-1h8.38a.5.5 0 0 1 0 1H6.12ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),ZoomIn20Regular=createFluentIcon("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),renderFluentProvider_unstable=(j,_e)=>jsx$1(Provider,{value:_e.provider,children:jsx$1(ThemeProvider,{value:_e.theme,children:jsx$1(ThemeClassNameProvider,{value:_e.themeClassName,children:jsx$1(CustomStyleHooksProvider,{value:_e.customStyleHooks_unstable,children:jsx$1(TooltipVisibilityProvider,{value:_e.tooltip,children:jsx$1(TextDirectionProvider,{dir:_e.textDirection,children:jsx$1(IconDirectionContextProvider,{value:_e.iconDirection,children:jsx$1(OverridesProvider,{value:_e.overrides_unstable,children:jsxs(j.root,{children:[canUseDOM$3()?null:jsx$1("style",{dangerouslySetInnerHTML:{__html:j.serverStyleProps.cssRule},...j.serverStyleProps.attributes}),j.root.children]})})})})})})})})});/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const _canUseWeakRef=typeof WeakRef<"u";class WeakRefInstance{constructor(_e){_canUseWeakRef&&typeof _e=="object"?this._weakRef=new WeakRef(_e):this._instance=_e}deref(){var _e,et,tt;let rt;return this._weakRef?(rt=(_e=this._weakRef)===null||_e===void 0?void 0:_e.deref(),rt||delete this._weakRef):(rt=this._instance,!((tt=(et=rt)===null||et===void 0?void 0:et.isDisposed)===null||tt===void 0)&&tt.call(et)&&delete this._instance),rt}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const KEYBORG_FOCUSIN="keyborg:focusin";function canOverrideNativeFocus(j){const _e=j.HTMLElement,et=_e.prototype.focus;let tt=!1;return _e.prototype.focus=function(){tt=!0},j.document.createElement("button").focus(),_e.prototype.focus=et,tt}let _canOverrideNativeFocus=!1;function nativeFocus(j){const _e=j.focus;_e.__keyborgNativeFocus?_e.__keyborgNativeFocus.call(j):j.focus()}function setupFocusEvent(j){const _e=j;_canOverrideNativeFocus||(_canOverrideNativeFocus=canOverrideNativeFocus(_e));const et=_e.HTMLElement.prototype.focus;if(et.__keyborgNativeFocus)return;_e.HTMLElement.prototype.focus=ot;const tt=it=>{const st=it.relatedTarget,lt=it.currentTarget;lt.contains(st)||(lt.removeEventListener("focusin",rt),lt.removeEventListener("focusout",tt))},rt=it=>{var st;let lt=it.target;if(!lt)return;lt.shadowRoot&&(lt.shadowRoot.addEventListener("focusin",rt),lt.shadowRoot.addEventListener("focusout",tt),lt=it.composedPath()[0]);const ut={relatedTarget:it.relatedTarget||void 0},ct=new CustomEvent(KEYBORG_FOCUSIN,{cancelable:!0,bubbles:!0,composed:!0,detail:ut});ct.details=ut,(_canOverrideNativeFocus||nt.lastFocusedProgrammatically)&&(ut.isFocusedProgrammatically=lt===((st=nt.lastFocusedProgrammatically)===null||st===void 0?void 0:st.deref()),nt.lastFocusedProgrammatically=void 0),lt.dispatchEvent(ct)},nt=_e.__keyborgData={focusInHandler:rt};_e.document.addEventListener("focusin",_e.__keyborgData.focusInHandler,!0);function ot(){const it=_e.__keyborgData;return it&&(it.lastFocusedProgrammatically=new WeakRefInstance(this)),et.apply(this,arguments)}ot.__keyborgNativeFocus=et}function disposeFocusEvent(j){const _e=j,et=_e.HTMLElement.prototype,tt=et.focus.__keyborgNativeFocus,rt=_e.__keyborgData;rt&&(_e.document.removeEventListener("focusin",rt.focusInHandler,!0),delete _e.__keyborgData),tt&&(et.focus=tt)}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const _dismissTimeout=500;let _lastId=0;class KeyborgState{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(_e){const et=_e.id;et in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[et]=new WeakRefInstance(_e))}remove(_e){delete this.__keyborgCoreRefs[_e],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(_e){if(this._isNavigatingWithKeyboard!==_e){this._isNavigatingWithKeyboard=_e;for(const et of Object.keys(this.__keyborgCoreRefs)){const rt=this.__keyborgCoreRefs[et].deref();rt?rt.update(_e):this.remove(et)}}}getVal(){return this._isNavigatingWithKeyboard}}const _state=new KeyborgState;class KeyborgCore{constructor(_e,et){this._onFocusIn=rt=>{if(this._isMouseUsedTimer||_state.getVal())return;const nt=rt.detail;nt.relatedTarget&&(nt.isFocusedProgrammatically||nt.isFocusedProgrammatically===void 0||_state.setVal(!0))},this._onMouseDown=rt=>{if(rt.buttons===0||rt.clientX===0&&rt.clientY===0&&rt.screenX===0&&rt.screenY===0)return;const nt=this._win;nt&&(this._isMouseUsedTimer&&nt.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=nt.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),_state.setVal(!1)},this._onKeyDown=rt=>{var nt,ot;const it=_state.getVal(),st=rt.keyCode,lt=this._triggerKeys;if(!it&&(!lt||lt.has(st))){const ut=(nt=this._win)===null||nt===void 0?void 0:nt.document.activeElement;if(ut&&(ut.tagName==="INPUT"||ut.tagName==="TEXTAREA"||ut.contentEditable==="true"))return;_state.setVal(!0)}else it&&(!((ot=this._dismissKeys)===null||ot===void 0)&&ot.has(st))&&this._scheduleDismiss()},this.id="c"+ ++_lastId,this._win=_e;const tt=_e.document;if(et){const rt=et.triggerKeys,nt=et.dismissKeys;rt!=null&&rt.length&&(this._triggerKeys=new Set(rt)),nt!=null&&nt.length&&(this._dismissKeys=new Set(nt))}tt.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),tt.addEventListener("mousedown",this._onMouseDown,!0),_e.addEventListener("keydown",this._onKeyDown,!0),setupFocusEvent(_e),_state.add(this)}dispose(){const _e=this._win;if(_e){this._isMouseUsedTimer&&(_e.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(_e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),disposeFocusEvent(_e);const et=_e.document;et.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),et.removeEventListener("mousedown",this._onMouseDown,!0),_e.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,_state.remove(this.id)}}isDisposed(){return!!this._win}update(_e){var et,tt;const rt=(tt=(et=this._win)===null||et===void 0?void 0:et.__keyborg)===null||tt===void 0?void 0:tt.refs;if(rt)for(const nt of Object.keys(rt))Keyborg.update(rt[nt],_e)}_scheduleDismiss(){const _e=this._win;if(_e){this._dismissTimer&&(_e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const et=_e.document.activeElement;this._dismissTimer=_e.setTimeout(()=>{this._dismissTimer=void 0;const tt=_e.document.activeElement;et&&tt&&et===tt&&_state.setVal(!1)},_dismissTimeout)}}}class Keyborg{constructor(_e,et){this._cb=[],this._id="k"+ ++_lastId,this._win=_e;const tt=_e.__keyborg;tt?(this._core=tt.core,tt.refs[this._id]=this):(this._core=new KeyborgCore(_e,et),_e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(_e,et){return new Keyborg(_e,et)}static dispose(_e){_e.dispose()}static update(_e,et){_e._cb.forEach(tt=>tt(et))}dispose(){var _e;const et=(_e=this._win)===null||_e===void 0?void 0:_e.__keyborg;et!=null&&et.refs[this._id]&&(delete et.refs[this._id],Object.keys(et.refs).length===0&&(et.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return _state.getVal()}subscribe(_e){this._cb.push(_e)}unsubscribe(_e){const et=this._cb.indexOf(_e);et>=0&&this._cb.splice(et,1)}setVal(_e){_state.setVal(_e)}}function createKeyborg(j,_e){return Keyborg.create(j,_e)}function disposeKeyborg(j){Keyborg.dispose(j)}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const TabsterAttributeName="data-tabster",TabsterDummyInputAttributeName="data-tabster-dummy",DeloserEventName="tabster:deloser",ModalizerActiveEventName="tabster:modalizer:active",ModalizerInactiveEventName="tabster:modalizer:inactive",ModalizerFocusInEventName="tabster:modalizer:focusin",ModalizerFocusOutEventName="tabster:modalizer:focusout",ModalizerBeforeFocusOutEventName="tabster:modalizer:beforefocusout",MoverEventName="tabster:mover",FocusInEventName="tabster:focusin",FocusOutEventName="tabster:focusout",MoveFocusEventName="tabster:movefocus",FocusableSelector=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),ObservedElementAccesibilities={Any:0,Accessible:1,Focusable:2},RestoreFocusOrders={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Visibilities={Invisible:0,PartiallyVisible:1,Visible:2},RestorerTypes={Source:0,Target:1},MoverDirections={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},GroupperTabbabilities={Unlimited:0,Limited:1,LimitedTrapFocus:2},SysDummyInputsPositions={Auto:0,Inside:1,Outside:2};var Types=Object.freeze({__proto__:null,TabsterAttributeName,TabsterDummyInputAttributeName,DeloserEventName,ModalizerActiveEventName,ModalizerInactiveEventName,ModalizerFocusInEventName,ModalizerFocusOutEventName,ModalizerBeforeFocusOutEventName,MoverEventName,FocusInEventName,FocusOutEventName,MoveFocusEventName,FocusableSelector,ObservedElementAccesibilities,RestoreFocusOrders,Visibilities,RestorerTypes,MoverDirections,GroupperTabbabilities,SysDummyInputsPositions});/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function getTabsterOnElement(j,_e){var et;return(et=j.storageEntry(_e))===null||et===void 0?void 0:et.tabster}function updateTabsterByAttribute(j,_e,et){var tt,rt;const nt=et||j._noop?void 0:_e.getAttribute(TabsterAttributeName);let ot=j.storageEntry(_e),it;if(nt)if(nt!==((tt=ot==null?void 0:ot.attr)===null||tt===void 0?void 0:tt.string))try{const ct=JSON.parse(nt);if(typeof ct!="object")throw new Error(`Value is not a JSON object, got '${nt}'.`);it={string:nt,object:ct}}catch{}else return;else if(!ot)return;ot||(ot=j.storageEntry(_e,!0)),ot.tabster||(ot.tabster={});const st=ot.tabster||{},lt=((rt=ot.attr)===null||rt===void 0?void 0:rt.object)||{},ut=(it==null?void 0:it.object)||{};for(const ct of Object.keys(lt))if(!ut[ct]){if(ct==="root"){const dt=st[ct];dt&&j.root.onRoot(dt,!0)}switch(ct){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const dt=st[ct];dt&&(dt.dispose(),delete st[ct]);break;case"observed":delete st[ct],j.observedElement&&j.observedElement.onObservedElementUpdate(_e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete st[ct];break}}for(const ct of Object.keys(ut)){const dt=ut.sys;switch(ct){case"deloser":st.deloser?st.deloser.setProps(ut.deloser):j.deloser&&(st.deloser=j.deloser.createDeloser(_e,ut.deloser));break;case"root":st.root?st.root.setProps(ut.root):st.root=j.root.createRoot(_e,ut.root,dt),j.root.onRoot(st.root);break;case"modalizer":st.modalizer?st.modalizer.setProps(ut.modalizer):j.modalizer&&(st.modalizer=j.modalizer.createModalizer(_e,ut.modalizer,dt));break;case"restorer":st.restorer?st.restorer.setProps(ut.restorer):j.restorer&&ut.restorer&&(st.restorer=j.restorer.createRestorer(_e,ut.restorer));break;case"focusable":st.focusable=ut.focusable;break;case"groupper":st.groupper?st.groupper.setProps(ut.groupper):j.groupper&&(st.groupper=j.groupper.createGroupper(_e,ut.groupper,dt));break;case"mover":st.mover?st.mover.setProps(ut.mover):j.mover&&(st.mover=j.mover.createMover(_e,ut.mover,dt));break;case"observed":j.observedElement&&(st.observed=ut.observed,j.observedElement.onObservedElementUpdate(_e));break;case"uncontrolled":st.uncontrolled=ut.uncontrolled;break;case"outline":j.outline&&(st.outline=ut.outline);break;case"sys":st.sys=ut.sys;break;default:console.error(`Unknown key '${ct}' in data-tabster attribute value.`)}}it?ot.attr=it:(Object.keys(st).length===0&&(delete ot.tabster,delete ot.attr),j.storageEntry(_e,!1))}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function createEventTarget(j){const _e=j();try{if(_e.EventTarget)return new _e.EventTarget}catch(et){if(!(et instanceof TypeError))throw et}return _e.document.createElement("div")}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */let _isBrokenIE11;const _DOMRect=typeof DOMRect<"u"?DOMRect:class{constructor(j,_e,et,tt){this.left=j||0,this.top=_e||0,this.right=(j||0)+(et||0),this.bottom=(_e||0)+(tt||0)}};let _uidCounter=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_isBrokenIE11=!1}catch{_isBrokenIE11=!0}const _updateDummyInputsTimeout=100;function getInstanceContext(j){const _e=j();let et=_e.__tabsterInstanceContext;return et||(et={elementByUId:{},basics:{Promise:_e.Promise||void 0,WeakRef:_e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},_e.__tabsterInstanceContext=et),et}function disposeInstanceContext(j){const _e=j.__tabsterInstanceContext;_e&&(_e.elementByUId={},delete _e.WeakRef,_e.containerBoundingRectCache={},_e.containerBoundingRectCacheTimer&&j.clearTimeout(_e.containerBoundingRectCacheTimer),_e.fakeWeakRefsTimer&&j.clearTimeout(_e.fakeWeakRefsTimer),_e.fakeWeakRefs=[],delete j.__tabsterInstanceContext)}function createWeakMap(j){const _e=j.__tabsterInstanceContext;return new((_e==null?void 0:_e.basics.WeakMap)||WeakMap)}function hasSubFocusable(j){return!!j.querySelector(FocusableSelector)}class FakeWeakRef{constructor(_e){this._target=_e}deref(){return this._target}static cleanup(_e,et){return _e._target?et||!documentContains(_e._target.ownerDocument,_e._target)?(delete _e._target,!0):!1:!0}}class WeakHTMLElement{constructor(_e,et,tt){const rt=getInstanceContext(_e);let nt;rt.WeakRef?nt=new rt.WeakRef(et):(nt=new FakeWeakRef(et),rt.fakeWeakRefs.push(nt)),this._ref=nt,this._data=tt}get(){const _e=this._ref;let et;return _e&&(et=_e.deref(),et||delete this._ref),et}getData(){return this._data}}function cleanupFakeWeakRefs(j,_e){const et=getInstanceContext(j);et.fakeWeakRefs=et.fakeWeakRefs.filter(tt=>!FakeWeakRef.cleanup(tt,_e))}function startFakeWeakRefsCleanup(j){const _e=getInstanceContext(j);_e.fakeWeakRefsStarted||(_e.fakeWeakRefsStarted=!0,_e.WeakRef=getWeakRef(_e)),_e.fakeWeakRefsTimer||(_e.fakeWeakRefsTimer=j().setTimeout(()=>{_e.fakeWeakRefsTimer=void 0,cleanupFakeWeakRefs(j),startFakeWeakRefsCleanup(j)},2*60*1e3))}function stopFakeWeakRefsCleanupAndClearStorage(j){const _e=getInstanceContext(j);_e.fakeWeakRefsStarted=!1,_e.fakeWeakRefsTimer&&(j().clearTimeout(_e.fakeWeakRefsTimer),_e.fakeWeakRefsTimer=void 0,_e.fakeWeakRefs=[])}function createElementTreeWalker(j,_e,et){if(_e.nodeType!==Node.ELEMENT_NODE)return;const tt=_isBrokenIE11?et:{acceptNode:et};return j.createTreeWalker(_e,NodeFilter.SHOW_ELEMENT,tt,!1)}function getBoundingRect(j,_e){let et=_e.__tabsterCacheId;const tt=getInstanceContext(j),rt=et?tt.containerBoundingRectCache[et]:void 0;if(rt)return rt.rect;const nt=_e.ownerDocument&&_e.ownerDocument.documentElement;if(!nt)return new _DOMRect;let ot=0,it=0,st=nt.clientWidth,lt=nt.clientHeight;if(_e!==nt){const ct=_e.getBoundingClientRect();ot=Math.max(ot,ct.left),it=Math.max(it,ct.top),st=Math.min(st,ct.right),lt=Math.min(lt,ct.bottom)}const ut=new _DOMRect(ot{tt.containerBoundingRectCacheTimer=void 0;for(const ct of Object.keys(tt.containerBoundingRectCache))delete tt.containerBoundingRectCache[ct].element.__tabsterCacheId;tt.containerBoundingRectCache={}},50)),ut}function isElementVerticallyVisibleInContainer(j,_e,et){const tt=getScrollableContainer(_e);if(!tt)return!1;const rt=getBoundingRect(j,tt),nt=_e.getBoundingClientRect(),ot=nt.height*(1-et),it=Math.max(0,rt.top-nt.top),st=Math.max(0,nt.bottom-rt.bottom),lt=it+st;return lt===0||lt<=ot}function scrollIntoView$2(j,_e,et){const tt=getScrollableContainer(_e);if(tt){const rt=getBoundingRect(j,tt),nt=_e.getBoundingClientRect();et?tt.scrollTop+=nt.top-rt.top:tt.scrollTop+=nt.bottom-rt.bottom}}function getScrollableContainer(j){const _e=j.ownerDocument;if(_e){for(let et=j.parentElement;et;et=et.parentElement)if(et.scrollWidth>et.clientWidth||et.scrollHeight>et.clientHeight)return et;return _e.documentElement}return null}function makeFocusIgnored(j){j.__shouldIgnoreFocus=!0}function shouldIgnoreFocus(j){return!!j.__shouldIgnoreFocus}function getUId(j){const _e=new Uint32Array(4);if(j.crypto&&j.crypto.getRandomValues)j.crypto.getRandomValues(_e);else if(j.msCrypto&&j.msCrypto.getRandomValues)j.msCrypto.getRandomValues(_e);else for(let tt=0;tt<_e.length;tt++)_e[tt]=4294967295*Math.random();const et=[];for(let tt=0;tt<_e.length;tt++)et.push(_e[tt].toString(36));return et.push("|"),et.push((++_uidCounter).toString(36)),et.push("|"),et.push(Date.now().toString(36)),et.join("")}function getElementUId(j,_e){const et=getInstanceContext(j);let tt=_e.__tabsterElementUID;return tt||(tt=_e.__tabsterElementUID=getUId(j())),!et.elementByUId[tt]&&documentContains(_e.ownerDocument,_e)&&(et.elementByUId[tt]=new WeakHTMLElement(j,_e)),tt}function clearElementCache(j,_e){const et=getInstanceContext(j);for(const tt of Object.keys(et.elementByUId)){const rt=et.elementByUId[tt],nt=rt&&rt.get();nt&&_e&&!_e.contains(nt)||delete et.elementByUId[tt]}}function documentContains(j,_e){var et;return!!(!((et=j==null?void 0:j.body)===null||et===void 0)&&et.contains(_e))}function matchesSelector(j,_e){const et=j.matches||j.matchesSelector||j.msMatchesSelector||j.webkitMatchesSelector;return et&&et.call(j,_e)}function getPromise(j){const _e=getInstanceContext(j);if(_e.basics.Promise)return _e.basics.Promise;throw new Error("No Promise defined.")}function getWeakRef(j){return j.basics.WeakRef}let _lastTabsterPartId=0;class TabsterPart{constructor(_e,et,tt){const rt=_e.getWindow;this._tabster=_e,this._element=new WeakHTMLElement(rt,et),this._props={...tt},this.id="i"+ ++_lastTabsterPartId}getElement(){return this._element.get()}getProps(){return this._props}setProps(_e){this._props={..._e}}}class DummyInput{constructor(_e,et,tt,rt,nt){var ot;this._focusIn=ut=>{if(this._fixedTarget){const dt=this._fixedTarget.get();dt&&nativeFocus(dt);return}const ct=this.input;if(this.onFocusIn&&ct){const dt=ut.relatedTarget;this.onFocusIn(this,this._isBackward(!0,ct,dt),dt)}},this._focusOut=ut=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const ct=this.input;if(this.onFocusOut&&ct){const dt=ut.relatedTarget;this.onFocusOut(this,this._isBackward(!1,ct,dt),dt)}};const it=_e(),st=it.document.createElement("i");st.tabIndex=0,st.setAttribute("role","none"),st.setAttribute(TabsterDummyInputAttributeName,""),st.setAttribute("aria-hidden","true");const lt=st.style;lt.position="fixed",lt.width=lt.height="1px",lt.opacity="0.001",lt.zIndex="-1",lt.setProperty("content-visibility","hidden"),makeFocusIgnored(st),this.input=st,this.isFirst=tt.isFirst,this.isOutside=et,this._isPhantom=(ot=tt.isPhantom)!==null&&ot!==void 0?ot:!1,this._fixedTarget=nt,st.addEventListener("focusin",this._focusIn),st.addEventListener("focusout",this._focusOut),st.__tabsterDummyContainer=rt,this._isPhantom&&(this._disposeTimer=it.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(it.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var _e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const et=this.input;et&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,et.removeEventListener("focusin",this._focusIn),et.removeEventListener("focusout",this._focusOut),delete et.__tabsterDummyContainer,(_e=et.parentElement)===null||_e===void 0||_e.removeChild(et))}setTopLeft(_e,et){var tt;const rt=(tt=this.input)===null||tt===void 0?void 0:tt.style;rt&&(rt.top=`${_e}px`,rt.left=`${et}px`)}_isBackward(_e,et,tt){return _e&&!tt?!this.isFirst:!!(tt&&et.compareDocumentPosition(tt)&Node.DOCUMENT_POSITION_FOLLOWING)}}const DummyInputManagerPriorities={Root:1,Modalizer:2,Mover:3,Groupper:4};class DummyInputManager{constructor(_e,et,tt,rt,nt,ot){this._element=et,this._instance=new DummyInputManagerCore(_e,et,this,tt,rt,nt,ot)}_setHandlers(_e,et){this._onFocusIn=_e,this._onFocusOut=et}moveOut(_e){var et;(et=this._instance)===null||et===void 0||et.moveOut(_e)}moveOutWithDefaultAction(_e,et){var tt;(tt=this._instance)===null||tt===void 0||tt.moveOutWithDefaultAction(_e,et)}getHandler(_e){return _e?this._onFocusIn:this._onFocusOut}setTabbable(_e){var et;(et=this._instance)===null||et===void 0||et.setTabbable(this,_e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(_e,et,tt,rt,nt){var ot;const st=new DummyInput(_e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(st){let lt,ut;if(et.tagName==="BODY")lt=et,ut=tt&&rt||!tt&&!rt?et.firstElementChild:null;else{tt&&(!rt||rt&&!_e.focusable.isFocusable(et,!1,!0,!0))?(lt=et,ut=rt?et.firstElementChild:null):(lt=et.parentElement,ut=tt&&rt||!tt&&!rt?et:et.nextElementSibling);let ct,dt;do ct=tt&&rt||!tt&&!rt?ut==null?void 0:ut.previousElementSibling:ut,dt=(ot=ct==null?void 0:ct.__tabsterDummyContainer)===null||ot===void 0?void 0:ot.get(),dt===et?ut=tt&&rt||!tt&&!rt?ct:ct==null?void 0:ct.nextElementSibling:dt=void 0;while(dt)}lt&&triggerMoveFocusEvent({by:"root",owner:lt,next:null,relatedEvent:nt})&&(lt.insertBefore(st,ut),nativeFocus(st))}}static addPhantomDummyWithTarget(_e,et,tt,rt){const ot=new DummyInput(_e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new WeakHTMLElement(_e.getWindow,rt)).input;if(ot){let it,st;hasSubFocusable(et)&&!tt?(it=et,st=et.firstElementChild):(it=et.parentElement,st=tt?et:et.nextElementSibling),it==null||it.insertBefore(ot,st)}}}class DummyInputObserver{constructor(_e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=et=>{var tt;this._changedParents.has(et)||(this._changedParents.add(et),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(tt=this._win)===null||tt===void 0?void 0:tt.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const rt of this._dummyElements){const nt=rt.get();if(nt){const ot=this._dummyCallbacks.get(nt);if(ot){const it=nt.parentElement;(!it||this._changedParents.has(it))&&ot()}}}this._changedParents=new WeakSet},_updateDummyInputsTimeout)))},this._win=_e}add(_e,et){!this._dummyCallbacks.has(_e)&&this._win&&(this._dummyElements.push(new WeakHTMLElement(this._win,_e)),this._dummyCallbacks.set(_e,et),this.domChanged=this._domChanged)}remove(_e){this._dummyElements=this._dummyElements.filter(et=>{const tt=et.get();return tt&&tt!==_e}),this._dummyCallbacks.delete(_e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var _e;const et=(_e=this._win)===null||_e===void 0?void 0:_e.call(this);this._updateTimer&&(et==null||et.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(et==null||et.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(_e){this._win&&(this._updateQueue.add(_e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var _e;this._updateTimer||(this._updateTimer=(_e=this._win)===null||_e===void 0?void 0:_e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+_updateDummyInputsTimeout<=Date.now()){const et=new Map,tt=[];for(const rt of this._updateQueue)tt.push(rt(et));this._updateQueue.clear();for(const rt of tt)rt();et.clear()}else this._scheduledUpdatePositions()},_updateDummyInputsTimeout))}}class DummyInputManagerCore{constructor(_e,et,tt,rt,nt,ot,it){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(ft,pt,gt)=>{this._onFocus(!0,ft,pt,gt)},this._onFocusOut=(ft,pt,gt)=>{this._onFocus(!1,ft,pt,gt)},this.moveOut=ft=>{var pt;const gt=this._firstDummy,mt=this._lastDummy;if(gt&&mt){this._ensurePosition();const bt=gt.input,_t=mt.input,xt=(pt=this._element)===null||pt===void 0?void 0:pt.get();if(bt&&_t&&xt){let yt;ft?(bt.tabIndex=0,yt=bt):(_t.tabIndex=0,yt=_t),yt&&nativeFocus(yt)}}},this.moveOutWithDefaultAction=(ft,pt)=>{var gt;const mt=this._firstDummy,bt=this._lastDummy;if(mt&&bt){this._ensurePosition();const _t=mt.input,xt=bt.input,yt=(gt=this._element)===null||gt===void 0?void 0:gt.get();if(_t&&xt&&yt){let Et;ft?!mt.isOutside&&this._tabster.focusable.isFocusable(yt,!0,!0,!0)?Et=yt:(mt.useDefaultAction=!0,_t.tabIndex=0,Et=_t):(bt.useDefaultAction=!0,xt.tabIndex=0,Et=xt),Et&&triggerMoveFocusEvent({by:"root",owner:yt,next:null,relatedEvent:pt})&&nativeFocus(Et)}}},this.setTabbable=(ft,pt)=>{var gt,mt;for(const _t of this._wrappers)if(_t.manager===ft){_t.tabbable=pt;break}const bt=this._getCurrent();if(bt){const _t=bt.tabbable?0:-1;let xt=(gt=this._firstDummy)===null||gt===void 0?void 0:gt.input;xt&&(xt.tabIndex=_t),xt=(mt=this._lastDummy)===null||mt===void 0?void 0:mt.input,xt&&(xt.tabIndex=_t)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=ft=>{var pt,gt;const mt=((pt=this._firstDummy)===null||pt===void 0?void 0:pt.input)||((gt=this._lastDummy)===null||gt===void 0?void 0:gt.input),bt=this._transformElements,_t=new Set;let xt=0,yt=0;const Et=this._getWindow();for(let St=mt;St&&St.nodeType===Node.ELEMENT_NODE;St=St.parentElement){let Tt=ft.get(St);if(Tt===void 0){const kt=Et.getComputedStyle(St).transform;kt&&kt!=="none"&&(Tt={scrollTop:St.scrollTop,scrollLeft:St.scrollLeft}),ft.set(St,Tt||null)}Tt&&(_t.add(St),bt.has(St)||St.addEventListener("scroll",this._addTransformOffsets),xt+=Tt.scrollTop,yt+=Tt.scrollLeft)}for(const St of bt)_t.has(St)||St.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_t,()=>{var St,Tt;(St=this._firstDummy)===null||St===void 0||St.setTopLeft(xt,yt),(Tt=this._lastDummy)===null||Tt===void 0||Tt.setTopLeft(xt,yt)}};const st=et.get();if(!st)throw new Error("No element");this._tabster=_e,this._getWindow=_e.getWindow,this._callForDefaultAction=it;const lt=st.__tabsterDummy;if((lt||this)._wrappers.push({manager:tt,priority:rt,tabbable:!0}),lt)return lt;st.__tabsterDummy=this;const ut=nt==null?void 0:nt.dummyInputsPosition,ct=st.tagName;this._isOutside=ut?ut===SysDummyInputsPositions.Outside:(ot||ct==="UL"||ct==="OL"||ct==="TABLE")&&!(ct==="LI"||ct==="TD"||ct==="TH"),this._firstDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!0},et),this._lastDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!1},et);const dt=this._firstDummy.input;dt&&_e._dummyObserver.add(dt,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=et,this._addDummyInputs()}dispose(_e,et){var tt,rt,nt,ot;if((this._wrappers=this._wrappers.filter(st=>st.manager!==_e&&!et)).length===0){delete((tt=this._element)===null||tt===void 0?void 0:tt.get()).__tabsterDummy;for(const ut of this._transformElements)ut.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const st=this._getWindow();this._addTimer&&(st.clearTimeout(this._addTimer),delete this._addTimer);const lt=(rt=this._firstDummy)===null||rt===void 0?void 0:rt.input;lt&&this._tabster._dummyObserver.remove(lt),(nt=this._firstDummy)===null||nt===void 0||nt.dispose(),(ot=this._lastDummy)===null||ot===void 0||ot.dispose()}}_onFocus(_e,et,tt,rt){var nt;const ot=this._getCurrent();ot&&(!et.useDefaultAction||this._callForDefaultAction)&&((nt=ot.manager.getHandler(_e))===null||nt===void 0||nt(et,tt,rt))}_getCurrent(){return this._wrappers.sort((_e,et)=>_e.tabbable!==et.tabbable?_e.tabbable?-1:1:_e.priority-et.priority),this._wrappers[0]}_ensurePosition(){var _e,et,tt;const rt=(_e=this._element)===null||_e===void 0?void 0:_e.get(),nt=(et=this._firstDummy)===null||et===void 0?void 0:et.input,ot=(tt=this._lastDummy)===null||tt===void 0?void 0:tt.input;if(!(!rt||!nt||!ot))if(this._isOutside){const it=rt.parentElement;if(it){const st=rt.nextElementSibling;st!==ot&&it.insertBefore(ot,st),rt.previousElementSibling!==nt&&it.insertBefore(nt,rt)}}else{rt.lastElementChild!==ot&&rt.appendChild(ot);const it=rt.firstElementChild;it&&it!==nt&&rt.insertBefore(nt,it)}}}function getLastChild(j){let _e=null;for(let et=j.lastElementChild;et;et=et.lastElementChild)_e=et;return _e||void 0}function getAdjacentElement(j,_e){let et=j,tt=null;for(;et&&!tt;)tt=_e?et.previousElementSibling:et.nextElementSibling,et=et.parentElement;return tt||void 0}function triggerEvent(j,_e,et){const tt=document.createEvent("HTMLEvents");return tt.initEvent(_e,!0,!0),tt.details=et,j.dispatchEvent(tt),!tt.defaultPrevented}function triggerMoveFocusEvent(j){return triggerEvent(j.owner,MoveFocusEventName,j)}function augmentAttribute(j,_e,et,tt){const rt=j.storageEntry(_e,!0);let nt=!1;if(!rt.aug){if(tt===void 0)return nt;rt.aug={}}if(tt===void 0){if(et in rt.aug){const ot=rt.aug[et];delete rt.aug[et],ot===null?_e.removeAttribute(et):_e.setAttribute(et,ot),nt=!0}}else{let ot;et in rt.aug||(ot=_e.getAttribute(et)),ot!==void 0&&ot!==tt&&(rt.aug[et]=ot,tt===null?_e.removeAttribute(et):_e.setAttribute(et,tt),nt=!0)}return tt===void 0&&Object.keys(rt.aug).length===0&&(delete rt.aug,j.storageEntry(_e,!1)),nt}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function getTabsterAttribute(j,_e){const et=JSON.stringify(j);return _e===!0?et:{[TabsterAttributeName]:et}}function mergeTabsterProps(j,_e){for(const et of Object.keys(_e)){const tt=_e[et];tt?j[et]=tt:delete j[et]}}function setTabsterAttribute(j,_e,et){let tt;if(et){const rt=j.getAttribute(TabsterAttributeName);if(rt)try{tt=JSON.parse(rt)}catch{}}tt||(tt={}),mergeTabsterProps(tt,_e),Object.keys(tt).length>0?j.setAttribute(TabsterAttributeName,getTabsterAttribute(tt,!0)):j.removeAttribute(TabsterAttributeName)}class RootDummyManager extends DummyInputManager{constructor(_e,et,tt,rt){super(_e,et,DummyInputManagerPriorities.Root,rt,void 0,!0),this._onDummyInputFocus=nt=>{var ot;if(nt.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const it=this._element.get();if(it){this._setFocused(!0);const st=this._tabster.focusedElement.getFirstOrLastTabbable(nt.isFirst,{container:it,ignoreAccessibility:!0});if(st){nativeFocus(st);return}}(ot=nt.input)===null||ot===void 0||ot.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=_e,this._setFocused=tt}}class Root extends TabsterPart{constructor(_e,et,tt,rt,nt){super(_e,et,rt),this._isFocused=!1,this._setFocused=st=>{var lt;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===st)return;const ut=this._element.get();ut&&(st?(this._isFocused=!0,(lt=this._dummyManager)===null||lt===void 0||lt.setTabbable(!1),triggerEvent(this._tabster.root.eventTarget,"focus",{element:ut})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var ct;delete this._setFocusedTimer,this._isFocused=!1,(ct=this._dummyManager)===null||ct===void 0||ct.setTabbable(!0),triggerEvent(this._tabster.root.eventTarget,"blur",{element:ut})},0))},this._onFocusIn=st=>{const lt=this._tabster.getParent,ut=this._element.get();let ct=st.target;do{if(ct===ut){this._setFocused(!0);return}ct=ct&<(ct)}while(ct)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=tt;const ot=_e.getWindow;this.uid=getElementUId(ot,et),this._sys=nt,(_e.controlTab||_e.rootDummyInputs)&&this.addDummyInputs();const it=ot();it.document.addEventListener("focusin",this._onFocusIn),it.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new RootDummyManager(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var _e;this._onDispose(this);const et=this._tabster.getWindow();et.document.removeEventListener("focusin",this._onFocusIn),et.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(et.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(_e=this._dummyManager)===null||_e===void 0||_e.dispose(),this._remove()}moveOutWithDefaultAction(_e,et){const tt=this._dummyManager;if(tt)tt.moveOutWithDefaultAction(_e,et);else{const rt=this.getElement();rt&&RootDummyManager.moveWithPhantomDummy(this._tabster,rt,!0,_e,et)}}_add(){}_remove(){}}class RootAPI{constructor(_e,et){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var tt;const rt=this._win().document,nt=rt.body;if(nt){this._autoRootUnwait(rt);const ot=this._autoRoot;if(ot)return setTabsterAttribute(nt,{root:ot},!0),updateTabsterByAttribute(this._tabster,nt),(tt=getTabsterOnElement(this._tabster,nt))===null||tt===void 0?void 0:tt.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,rt.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=tt=>{delete this._roots[tt.id]},this._tabster=_e,this._win=_e.getWindow,this._autoRoot=et,this.eventTarget=createEventTarget(this._win),_e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(_e){_e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const _e=this._win();this._autoRootUnwait(_e.document),delete this._autoRoot,Object.keys(this._roots).forEach(et=>{this._roots[et]&&(this._roots[et].dispose(),delete this._roots[et])}),this.rootById={}}createRoot(_e,et,tt){const rt=new Root(this._tabster,_e,this._onRootDispose,et,tt);return this._roots[rt.id]=rt,this._forceDummy&&rt.addDummyInputs(),rt}addDummyInputs(){this._forceDummy=!0;const _e=this._roots;for(const et of Object.keys(_e))_e[et].addDummyInputs()}static getRootByUId(_e,et){const tt=_e().__tabsterInstance;return tt&&tt.root.rootById[et]}static getTabsterContext(_e,et,tt){tt===void 0&&(tt={});var rt,nt,ot,it;if(!et.ownerDocument)return;const{checkRtl:st,referenceElement:lt}=tt,ut=_e.getParent;_e.drainInitQueue();let ct,dt,ft,pt,gt=!1,mt,bt,_t,xt,yt=lt||et;const Et={};for(;yt&&(!ct||st);){const Tt=getTabsterOnElement(_e,yt);if(st&&_t===void 0){const Nt=yt.dir;Nt&&(_t=Nt.toLowerCase()==="rtl")}if(!Tt){yt=ut(yt);continue}const kt=yt.tagName;(Tt.uncontrolled||kt==="IFRAME"||kt==="WEBVIEW")&&(xt=yt),!pt&&(!((rt=Tt.focusable)===null||rt===void 0)&&rt.excludeFromMover)&&!ft&&(gt=!0);const $t=Tt.modalizer,Ct=Tt.groupper,It=Tt.mover;!dt&&$t&&(dt=$t),!ft&&Ct&&(!dt||$t)&&(dt?(!Ct.isActive()&&Ct.getProps().tabbability&&dt.userId!==((nt=_e.modalizer)===null||nt===void 0?void 0:nt.activeId)&&(dt=void 0,ft=Ct),bt=Ct):ft=Ct),!pt&&It&&(!dt||$t)&&(!Ct||yt!==et)&&(pt=It,mt=!!ft&&ft!==Ct),Tt.root&&(ct=Tt.root),!((ot=Tt.focusable)===null||ot===void 0)&&ot.ignoreKeydown&&Object.assign(Et,Tt.focusable.ignoreKeydown),yt=ut(yt)}if(!ct){const Tt=_e.root;Tt._autoRoot&&!((it=et.ownerDocument)===null||it===void 0)&&it.body&&(ct=Tt._autoRootCreate())}return ft&&!pt&&(mt=!0),ct?{root:ct,modalizer:dt,groupper:ft,mover:pt,groupperBeforeMover:mt,modalizerInGroupper:bt,rtl:st?!!_t:void 0,uncontrolled:xt,excludedFromMover:gt,ignoreKeydown:Tt=>!!Et[Tt.key]}:void 0}static getRoot(_e,et){var tt;const rt=_e.getParent;for(let nt=et;nt;nt=rt(nt)){const ot=(tt=getTabsterOnElement(_e,nt))===null||tt===void 0?void 0:tt.root;if(ot)return ot}}onRoot(_e,et){et?delete this.rootById[_e.uid]:this.rootById[_e.uid]=_e}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class Subscribable{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(_e){const et=this._callbacks;et.indexOf(_e)<0&&et.push(_e)}subscribeFirst(_e){const et=this._callbacks,tt=et.indexOf(_e);tt>=0&&et.splice(tt,1),et.unshift(_e)}unsubscribe(_e){const et=this._callbacks.indexOf(_e);et>=0&&this._callbacks.splice(et,1)}setVal(_e,et){this._val!==_e&&(this._val=_e,this._callCallbacks(_e,et))}getVal(){return this._val}trigger(_e,et){this._callCallbacks(_e,et)}_callCallbacks(_e,et){this._callbacks.forEach(tt=>tt(_e,et))}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class FocusableAPI{constructor(_e){this._tabster=_e}dispose(){}getProps(_e){const et=getTabsterOnElement(this._tabster,_e);return et&&et.focusable||{}}isFocusable(_e,et,tt,rt){return matchesSelector(_e,FocusableSelector)&&(et||_e.tabIndex!==-1)?(tt||this.isVisible(_e))&&(rt||this.isAccessible(_e)):!1}isVisible(_e){if(!_e.ownerDocument||_e.nodeType!==Node.ELEMENT_NODE||_e.offsetParent===null&&_e.ownerDocument.body!==_e)return!1;const et=_e.ownerDocument.defaultView;if(!et)return!1;const tt=_e.ownerDocument.body.getBoundingClientRect();return!(tt.width===0&&tt.height===0||et.getComputedStyle(_e).visibility==="hidden")}isAccessible(_e){var et;for(let tt=_e;tt;tt=tt.parentElement){const rt=getTabsterOnElement(this._tabster,tt);if(this._isHidden(tt)||!((et=rt==null?void 0:rt.focusable)===null||et===void 0?void 0:et.ignoreAriaDisabled)&&this._isDisabled(tt))return!1}return!0}_isDisabled(_e){return _e.hasAttribute("disabled")}_isHidden(_e){var et;const tt=_e.getAttribute("aria-hidden");return!!(tt&&tt.toLowerCase()==="true"&&!(!((et=this._tabster.modalizer)===null||et===void 0)&&et.isAugmented(_e)))}findFirst(_e,et){return this.findElement({..._e},et)}findLast(_e,et){return this.findElement({isBackward:!0,..._e},et)}findNext(_e,et){return this.findElement({..._e},et)}findPrev(_e,et){return this.findElement({..._e,isBackward:!0},et)}findDefault(_e,et){return this.findElement({..._e,acceptCondition:tt=>this.isFocusable(tt,_e.includeProgrammaticallyFocusable)&&!!this.getProps(tt).isDefault},et)||null}findAll(_e){return this._findElements(!0,_e)||[]}findElement(_e,et){const tt=this._findElements(!1,_e,et);return tt&&tt[0]}_findElements(_e,et,tt){var rt,nt,ot;const{container:it,currentElement:st=null,includeProgrammaticallyFocusable:lt,useActiveModalizer:ut,ignoreAccessibility:ct,modalizerId:dt,isBackward:ft,onElement:pt}=et;tt||(tt={});const gt=[];let{acceptCondition:mt}=et;const bt=!!mt;if(!it)return null;mt||(mt=Et=>this.isFocusable(Et,lt,!1,ct));const _t={container:it,modalizerUserId:dt===void 0&&ut?(rt=this._tabster.modalizer)===null||rt===void 0?void 0:rt.activeId:dt||((ot=(nt=RootAPI.getTabsterContext(this._tabster,it))===null||nt===void 0?void 0:nt.modalizer)===null||ot===void 0?void 0:ot.userId),from:st||it,isBackward:ft,acceptCondition:mt,hasCustomCondition:bt,includeProgrammaticallyFocusable:lt,ignoreAccessibility:ct,cachedGrouppers:{}},xt=createElementTreeWalker(it.ownerDocument,it,Et=>this._acceptElement(Et,_t));if(!xt)return null;const yt=Et=>{var St,Tt;const kt=(St=_t.foundElement)!==null&&St!==void 0?St:_t.foundBackward;return kt&>.push(kt),_e?kt&&(_t.found=!1,delete _t.foundElement,delete _t.foundBackward,delete _t.fromCtx,_t.from=kt,pt&&!pt(kt))?!1:!!(kt||Et):(kt&&tt&&(tt.uncontrolled=(Tt=RootAPI.getTabsterContext(this._tabster,kt))===null||Tt===void 0?void 0:Tt.uncontrolled),!!(Et&&!kt))};if(st||(tt.outOfDOMOrder=!0),st)xt.currentNode=st;else if(ft){const Et=getLastChild(it);if(!Et)return null;if(this._acceptElement(Et,_t)===NodeFilter.FILTER_ACCEPT&&!yt(!0))return _t.skippedFocusable&&(tt.outOfDOMOrder=!0),gt;xt.currentNode=Et}do ft?xt.previousNode():xt.nextNode();while(yt());return _t.skippedFocusable&&(tt.outOfDOMOrder=!0),gt.length?gt:null}_acceptElement(_e,et){var tt,rt,nt,ot;if(et.found)return NodeFilter.FILTER_ACCEPT;const it=et.foundBackward;if(it&&(_e===it||!it.contains(_e)))return et.found=!0,et.foundElement=it,NodeFilter.FILTER_ACCEPT;const st=et.container;if(_e===st)return NodeFilter.FILTER_SKIP;if(!st.contains(_e)||_e.__tabsterDummyContainer||!((tt=et.rejectElementsFrom)===null||tt===void 0)&&tt.contains(_e))return NodeFilter.FILTER_REJECT;const lt=et.currentCtx=RootAPI.getTabsterContext(this._tabster,_e);if(!lt)return NodeFilter.FILTER_SKIP;if(shouldIgnoreFocus(_e))return this.isFocusable(_e,void 0,!0,!0)&&(et.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!et.hasCustomCondition&&(_e.tagName==="IFRAME"||_e.tagName==="WEBVIEW"))return((rt=lt.modalizer)===null||rt===void 0?void 0:rt.userId)===((nt=this._tabster.modalizer)===null||nt===void 0?void 0:nt.activeId)?(et.found=!0,et.rejectElementsFrom=et.foundElement=_e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!et.ignoreAccessibility&&!this.isAccessible(_e))return this.isFocusable(_e,!1,!0,!0)&&(et.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let ut,ct=et.fromCtx;ct||(ct=et.fromCtx=RootAPI.getTabsterContext(this._tabster,et.from));const dt=ct==null?void 0:ct.mover;let ft=lt.groupper,pt=lt.mover;if(ut=(ot=this._tabster.modalizer)===null||ot===void 0?void 0:ot.acceptElement(_e,et),ut!==void 0&&(et.skippedFocusable=!0),ut===void 0&&(ft||pt||dt)){const gt=ft==null?void 0:ft.getElement(),mt=dt==null?void 0:dt.getElement();let bt=pt==null?void 0:pt.getElement();bt&&(mt!=null&&mt.contains(bt))&&st.contains(mt)&&(!gt||!pt||mt.contains(gt))&&(pt=dt,bt=mt),gt&&(gt===st||!st.contains(gt))&&(ft=void 0),bt&&!st.contains(bt)&&(pt=void 0),ft&&pt&&(bt&>&&!gt.contains(bt)?pt=void 0:ft=void 0),ft&&(ut=ft.acceptElement(_e,et)),pt&&(ut=pt.acceptElement(_e,et))}return ut===void 0&&(ut=et.acceptCondition(_e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,ut===NodeFilter.FILTER_SKIP&&this.isFocusable(_e,!1,!0,!0)&&(et.skippedFocusable=!0)),ut===NodeFilter.FILTER_ACCEPT&&!et.found&&(et.isBackward?(et.foundBackward=_e,ut=NodeFilter.FILTER_SKIP):(et.found=!0,et.foundElement=_e)),ut}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const Keys={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function getUncontrolledCompletelyContainer(j,_e){var et;const tt=j.getParent;let rt=_e;do{const nt=(et=getTabsterOnElement(j,rt))===null||et===void 0?void 0:et.uncontrolled;if(nt&&j.uncontrolled.isUncontrolledCompletely(rt,!!nt.completely))return rt;rt=tt(rt)}while(rt)}class FocusedElementState extends Subscribable{constructor(_e,et){super(),this._init=()=>{const tt=this._win(),rt=tt.document;rt.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),rt.addEventListener("focusout",this._onFocusOut,!0),tt.addEventListener("keydown",this._onKeyDown,!0);const nt=rt.activeElement;nt&&nt!==rt.body&&this._setFocusedElement(nt),this.subscribe(this._onChanged)},this._onFocusIn=tt=>{this._setFocusedElement(tt.target,tt.details.relatedTarget,tt.details.isFocusedProgrammatically)},this._onFocusOut=tt=>{this._setFocusedElement(void 0,tt.relatedTarget)},this._validateFocusedElement=tt=>{},this._onKeyDown=tt=>{if(tt.keyCode!==Keys.Tab||tt.ctrlKey)return;const rt=this.getVal();if(!rt||!rt.ownerDocument||rt.contentEditable==="true")return;const nt=this._tabster,ot=nt.controlTab,it=RootAPI.getTabsterContext(nt,rt);if(!it||it.ignoreKeydown(tt))return;const st=tt.shiftKey,lt=FocusedElementState.findNextTabbable(nt,it,void 0,rt,void 0,st,!0),ut=it.root.getElement();if(!ut)return;const ct=lt==null?void 0:lt.element,dt=getUncontrolledCompletelyContainer(nt,rt);if(ct){const ft=lt.uncontrolled;if(it.uncontrolled||ft!=null&&ft.contains(rt)){if(!lt.outOfDOMOrder&&ft===it.uncontrolled||dt&&!dt.contains(ct))return;DummyInputManager.addPhantomDummyWithTarget(nt,rt,st,ct);return}if(ft||ct.tagName==="IFRAME"){triggerMoveFocusEvent({by:"root",owner:ut,next:ct,relatedEvent:tt})&&DummyInputManager.moveWithPhantomDummy(this._tabster,ft??ct,!1,st,tt);return}(ot||lt!=null&<.outOfDOMOrder)&&triggerMoveFocusEvent({by:"root",owner:ut,next:ct,relatedEvent:tt})&&(tt.preventDefault(),tt.stopImmediatePropagation(),nativeFocus(ct))}else!dt&&triggerMoveFocusEvent({by:"root",owner:ut,next:null,relatedEvent:tt})&&it.root.moveOutWithDefaultAction(st,tt)},this._onChanged=(tt,rt)=>{var nt,ot;if(tt)triggerEvent(tt,FocusInEventName,rt);else{const it=(nt=this._lastVal)===null||nt===void 0?void 0:nt.get();if(it){const st={...rt},lt=RootAPI.getTabsterContext(this._tabster,it),ut=(ot=lt==null?void 0:lt.modalizer)===null||ot===void 0?void 0:ot.userId;ut&&(st.modalizerId=ut),triggerEvent(it,FocusOutEventName,st)}}},this._tabster=_e,this._win=et,_e.queueInit(this._init)}dispose(){super.dispose();const _e=this._win();_e.document.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),_e.document.removeEventListener("focusout",this._onFocusOut,!0),_e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete FocusedElementState._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(_e,et){var tt,rt;let nt=FocusedElementState._lastResetElement,ot=nt&&nt.get();ot&&et.contains(ot)&&delete FocusedElementState._lastResetElement,ot=(rt=(tt=_e._nextVal)===null||tt===void 0?void 0:tt.element)===null||rt===void 0?void 0:rt.get(),ot&&et.contains(ot)&&delete _e._nextVal,nt=_e._lastVal,ot=nt&&nt.get(),ot&&et.contains(ot)&&delete _e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var _e;let et=(_e=this._lastVal)===null||_e===void 0?void 0:_e.get();return(!et||et&&!documentContains(et.ownerDocument,et))&&(this._lastVal=et=void 0),et}focus(_e,et,tt){return this._tabster.focusable.isFocusable(_e,et,!1,tt)?(_e.focus(),!0):!1}focusDefault(_e){const et=this._tabster.focusable.findDefault({container:_e});return et?(this._tabster.focusedElement.focus(et),!0):!1}getFirstOrLastTabbable(_e,et){var tt;const{container:rt,ignoreAccessibility:nt}=et;let ot;if(rt){const it=RootAPI.getTabsterContext(this._tabster,rt);it&&(ot=(tt=FocusedElementState.findNextTabbable(this._tabster,it,rt,void 0,void 0,!_e,nt))===null||tt===void 0?void 0:tt.element)}return ot&&!(rt!=null&&rt.contains(ot))&&(ot=void 0),ot||void 0}_focusFirstOrLast(_e,et){const tt=this.getFirstOrLastTabbable(_e,et);return tt?(this.focus(tt,!1,!0),!0):!1}focusFirst(_e){return this._focusFirstOrLast(!0,_e)}focusLast(_e){return this._focusFirstOrLast(!1,_e)}resetFocus(_e){if(!this._tabster.focusable.isVisible(_e))return!1;if(this._tabster.focusable.isFocusable(_e,!0,!0,!0))this.focus(_e);else{const et=_e.getAttribute("tabindex"),tt=_e.getAttribute("aria-hidden");_e.tabIndex=-1,_e.setAttribute("aria-hidden","true"),FocusedElementState._lastResetElement=new WeakHTMLElement(this._win,_e),this.focus(_e,!0,!0),this._setOrRemoveAttribute(_e,"tabindex",et),this._setOrRemoveAttribute(_e,"aria-hidden",tt)}return!0}_setOrRemoveAttribute(_e,et,tt){tt===null?_e.removeAttribute(et):_e.setAttribute(et,tt)}_setFocusedElement(_e,et,tt){var rt,nt;if(this._tabster._noop)return;const ot={relatedTarget:et};if(_e){const st=(rt=FocusedElementState._lastResetElement)===null||rt===void 0?void 0:rt.get();if(FocusedElementState._lastResetElement=void 0,st===_e||shouldIgnoreFocus(_e))return;ot.isFocusedProgrammatically=tt;const lt=RootAPI.getTabsterContext(this._tabster,_e),ut=(nt=lt==null?void 0:lt.modalizer)===null||nt===void 0?void 0:nt.userId;ut&&(ot.modalizerId=ut)}const it=this._nextVal={element:_e?new WeakHTMLElement(this._win,_e):void 0,details:ot};_e&&_e!==this._val&&this._validateFocusedElement(_e),this._nextVal===it&&this.setVal(_e,ot),this._nextVal=void 0}setVal(_e,et){super.setVal(_e,et),_e&&(this._lastVal=new WeakHTMLElement(this._win,_e))}static findNextTabbable(_e,et,tt,rt,nt,ot,it){const st=tt||et.root.getElement();if(!st)return null;let lt=null;const ut=FocusedElementState._isTabbingTimer,ct=_e.getWindow();ut&&ct.clearTimeout(ut),FocusedElementState.isTabbing=!0,FocusedElementState._isTabbingTimer=ct.setTimeout(()=>{delete FocusedElementState._isTabbingTimer,FocusedElementState.isTabbing=!1},0);const dt=et.modalizer,ft=et.groupper,pt=et.mover,gt=mt=>{var bt;if(lt=mt.findNextTabbable(rt,nt,ot,it),rt&&!(lt!=null&<.element)){const _t=mt!==dt&&((bt=mt.getElement())===null||bt===void 0?void 0:bt.parentElement);if(_t){const xt=RootAPI.getTabsterContext(_e,rt,{referenceElement:_t});if(xt){const yt=mt.getElement(),Et=ot?yt:yt&&getLastChild(yt)||yt;Et&&(lt=FocusedElementState.findNextTabbable(_e,xt,tt,Et,_t,ot,it),lt&&(lt.outOfDOMOrder=!0))}}}};if(ft&&pt)gt(et.groupperBeforeMover?ft:pt);else if(ft)gt(ft);else if(pt)gt(pt);else if(dt)gt(dt);else{const mt={container:st,currentElement:rt,referenceElement:nt,ignoreAccessibility:it,useActiveModalizer:!0},bt={};lt={element:_e.focusable[ot?"findPrev":"findNext"](mt,bt),outOfDOMOrder:bt.outOfDOMOrder,uncontrolled:bt.uncontrolled}}return lt}}FocusedElementState.isTabbing=!1;/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class GroupperDummyManager extends DummyInputManager{constructor(_e,et,tt,rt){super(tt,_e,DummyInputManagerPriorities.Groupper,rt,!0),this._setHandlers((nt,ot,it)=>{var st,lt;const ut=_e.get(),ct=nt.input;if(ut&&ct){const dt=RootAPI.getTabsterContext(tt,ct);if(dt){let ft;ft=(st=et.findNextTabbable(it||void 0,void 0,ot,!0))===null||st===void 0?void 0:st.element,ft||(ft=(lt=FocusedElementState.findNextTabbable(tt,dt,void 0,nt.isOutside?ct:getAdjacentElement(ut,!ot),void 0,ot,!0))===null||lt===void 0?void 0:lt.element),ft&&nativeFocus(ft)}}})}}class Groupper extends TabsterPart{constructor(_e,et,tt,rt,nt){super(_e,et,rt),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=tt,_e.controlTab||(this.dummyManager=new GroupperDummyManager(this._element,this,_e,nt))}dispose(){var _e;this._onDispose(this),this._element.get(),(_e=this.dummyManager)===null||_e===void 0||_e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(_e,et,tt,rt){var nt;const ot=this.getElement();if(!ot)return null;const it=((nt=_e==null?void 0:_e.__tabsterDummyContainer)===null||nt===void 0?void 0:nt.get())===ot;if(!this._shouldTabInside&&_e&&ot.contains(_e)&&!it)return{element:void 0,outOfDOMOrder:!0};const st=this.getFirst(!0);if(!_e||!ot.contains(_e)||it)return{element:st,outOfDOMOrder:!0};const lt=this._tabster;let ut=null,ct=!1,dt;if(this._shouldTabInside&&st){const ft={container:ot,currentElement:_e,referenceElement:et,ignoreAccessibility:rt,useActiveModalizer:!0},pt={};ut=lt.focusable[tt?"findPrev":"findNext"](ft,pt),ct=!!pt.outOfDOMOrder,!ut&&this._props.tabbability===GroupperTabbabilities.LimitedTrapFocus&&(ut=lt.focusable[tt?"findLast":"findFirst"]({container:ot,ignoreAccessibility:rt,useActiveModalizer:!0},pt),ct=!0),dt=pt.uncontrolled}return{element:ut,uncontrolled:dt,outOfDOMOrder:ct}}makeTabbable(_e){this._shouldTabInside=_e||!this._props.tabbability}isActive(_e){var et;const tt=this.getElement()||null;let rt=!0;for(let ot=tt==null?void 0:tt.parentElement;ot;ot=ot.parentElement){const it=(et=getTabsterOnElement(this._tabster,ot))===null||et===void 0?void 0:et.groupper;it&&(it._shouldTabInside||(rt=!1))}let nt=rt?this._props.tabbability?this._shouldTabInside:!1:void 0;if(nt&&_e){const ot=this._tabster.focusedElement.getFocusedElement();ot&&(nt=ot!==this.getFirst(!0))}return nt}getFirst(_e){var et;const tt=this.getElement();let rt;if(tt){if(_e&&this._tabster.focusable.isFocusable(tt))return tt;rt=(et=this._first)===null||et===void 0?void 0:et.get(),rt||(rt=this._tabster.focusable.findFirst({container:tt,useActiveModalizer:!0})||void 0,rt&&this.setFirst(rt))}return rt}setFirst(_e){_e?this._first=new WeakHTMLElement(this._tabster.getWindow,_e):delete this._first}acceptElement(_e,et){var tt;const rt=et.cachedGrouppers,nt=(tt=this.getElement())===null||tt===void 0?void 0:tt.parentElement,ot=nt&&RootAPI.getTabsterContext(this._tabster,nt),it=ot==null?void 0:ot.groupper,st=ot!=null&&ot.groupperBeforeMover?it:void 0;let lt;const ut=ft=>{let pt=rt[ft.id],gt;return pt?gt=pt.isActive:(gt=this.isActive(!0),pt=rt[ft.id]={isActive:gt}),gt};if(st&&(lt=st.getElement(),!ut(st)&<&&et.container!==lt&&et.container.contains(lt)))return et.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const ct=ut(this),dt=this.getElement();if(dt&&ct!==!0){if(dt===_e&&it&&(lt||(lt=it.getElement()),lt&&!ut(it)&&et.container.contains(lt)&<!==et.container)||dt!==_e&&dt.contains(_e))return et.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const ft=rt[this.id];let pt;if("first"in ft?pt=ft.first:pt=ft.first=this.getFirst(!0),pt&&et.acceptCondition(pt))return et.rejectElementsFrom=dt,et.skippedFocusable=!0,pt!==et.from?(et.found=!0,et.foundElement=pt,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class GroupperAPI{constructor(_e,et){this._current={},this._grouppers={},this._init=()=>{const tt=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),tt.document.addEventListener("mousedown",this._onMouseDown,!0),tt.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=tt=>{delete this._grouppers[tt.id]},this._onFocus=tt=>{tt&&this._updateCurrent(tt,!0,!0)},this._onMouseDown=tt=>{tt.target&&this._updateCurrent(tt.target,!0)},this._onKeyDown=tt=>{if(tt.keyCode!==Keys.Enter&&tt.keyCode!==Keys.Esc||tt.ctrlKey||tt.altKey||tt.shiftKey||tt.metaKey)return;const rt=this._tabster.focusedElement.getFocusedElement();rt&&this.handleKeyPress(rt,tt)},this._tabster=_e,this._win=et,_e.queueInit(this._init)}dispose(){const _e=this._win();this._handleKeyPressTimer&&(_e.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(_e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),_e.document.removeEventListener("mousedown",this._onMouseDown,!0),_e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(et=>{this._grouppers[et]&&(this._grouppers[et].dispose(),delete this._grouppers[et])})}createGroupper(_e,et,tt){const rt=new Groupper(this._tabster,_e,this._onGroupperDispose,et,tt);this._grouppers[rt.id]=rt;const nt=this._tabster.focusedElement.getFocusedElement();return nt&&_e.contains(nt)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,nt===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(nt,!0,!0)},0)),rt}forgetCurrentGrouppers(){this._current={}}_updateCurrent(_e,et,tt){var rt;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const nt={};let ot=!0;for(let it=_e;it;it=it.parentElement){const st=(rt=getTabsterOnElement(this._tabster,it))===null||rt===void 0?void 0:rt.groupper;if(st){if(nt[st.id]=!0,ot&&tt&&it!==_e&&(ot=!1),et||!ot){this._current[st.id]=st;const lt=st.isActive()||_e!==it&&(!st.getProps().delegated||st.getFirst(!1)!==_e);st.makeTabbable(lt)}ot=!1}}for(const it of Object.keys(this._current)){const st=this._current[it];st.id in nt||(st.makeTabbable(!1),st.setFirst(void 0),delete this._current[it])}}handleKeyPress(_e,et,tt){const rt=this._tabster,nt=RootAPI.getTabsterContext(rt,_e),ot=nt==null?void 0:nt.modalizerInGroupper;let it=(nt==null?void 0:nt.groupper)||ot;if(nt&&it){const st=this._win();if(this._handleKeyPressTimer&&(st.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),nt.ignoreKeydown(et))return;let lt;const ut=it.getElement();if(et.keyCode===Keys.Enter)ut&&(_e===ut||it.getProps().delegated&&_e===it.getFirst(!1))&&(lt=rt.focusable.findNext({container:ut,currentElement:_e,useActiveModalizer:!0})),lt&&ut&&triggerMoveFocusEvent({by:"groupper",owner:ut,next:lt,relatedEvent:et})&&(et.preventDefault(),et.stopImmediatePropagation(),lt.focus());else if(et.keyCode===Keys.Esc){const ct=rt.focusedElement.getFocusedElement();this._handleKeyPressTimer=st.setTimeout(()=>{var dt;if(delete this._handleKeyPressTimer,ct===rt.focusedElement.getFocusedElement()&&it&&ut&&ut.contains(_e)){if(_e!==ut||tt)lt=it.getFirst(!0);else{const ft=ut.parentElement,pt=ft?RootAPI.getTabsterContext(rt,ft):void 0;it=pt==null?void 0:pt.groupper,lt=it==null?void 0:it.getFirst(!0)}lt&&triggerMoveFocusEvent({by:"groupper",owner:ut,next:lt,relatedEvent:et})&&(it&&(it.makeTabbable(!1),ot&&((dt=rt.modalizer)===null||dt===void 0||dt.setActive(void 0))),lt.focus())}},0)}}}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class KeyboardNavigationState extends Subscribable{constructor(_e){super(),this._onChange=et=>{this.setVal(et,void 0)},this._keyborg=createKeyborg(_e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),disposeKeyborg(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(_e){var et;(et=this._keyborg)===null||et===void 0||et.setVal(_e)}isNavigatingWithKeyboard(){var _e;return!!(!((_e=this._keyborg)===null||_e===void 0)&&_e.isNavigatingWithKeyboard())}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */let _wasFocusedCounter=0;const _ariaHidden="aria-hidden";class ModalizerDummyManager extends DummyInputManager{constructor(_e,et,tt){super(et,_e,DummyInputManagerPriorities.Modalizer,tt),this._setHandlers((rt,nt)=>{var ot,it,st;const lt=_e.get(),ut=lt&&((ot=RootAPI.getRoot(et,lt))===null||ot===void 0?void 0:ot.getElement()),ct=rt.input;let dt;if(ut&&ct){const ft=(it=ct.__tabsterDummyContainer)===null||it===void 0?void 0:it.get(),pt=RootAPI.getTabsterContext(et,ft||ct);pt&&(dt=(st=FocusedElementState.findNextTabbable(et,pt,ut,ct,void 0,nt,!0))===null||st===void 0?void 0:st.element),dt&&nativeFocus(dt)}})}}class Modalizer extends TabsterPart{constructor(_e,et,tt,rt,nt,ot){super(_e,et,rt),this._wasFocused=0,this.userId=rt.id,this._onDispose=tt,this._activeElements=ot,_e.controlTab||(this.dummyManager=new ModalizerDummyManager(this._element,_e,nt))}makeActive(_e){if(this._isActive!==_e){this._isActive=_e;const et=this.getElement();if(et){const tt=this._activeElements,rt=tt.map(nt=>nt.get()).indexOf(et);_e?rt<0&&tt.push(new WeakHTMLElement(this._tabster.getWindow,et)):rt>=0&&tt.splice(rt,1)}this.triggerFocusEvent(_e?ModalizerActiveEventName:ModalizerInactiveEventName)}}focused(_e){return _e||(this._wasFocused=++_wasFocusedCounter),this._wasFocused}setProps(_e){_e.id&&(this.userId=_e.id),this._props={..._e}}dispose(){var _e;this.makeActive(!1),this._onDispose(this),(_e=this.dummyManager)===null||_e===void 0||_e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(_e){var et;return!!(!((et=this.getElement())===null||et===void 0)&&et.contains(_e))}findNextTabbable(_e,et,tt,rt){var nt,ot;if(!this.getElement())return null;const st=this._tabster;let lt=null,ut=!1,ct;const dt=_e&&((nt=RootAPI.getRoot(st,_e))===null||nt===void 0?void 0:nt.getElement());if(dt){const ft={container:dt,currentElement:_e,referenceElement:et,ignoreAccessibility:rt,useActiveModalizer:!0},pt={};lt=st.focusable[tt?"findPrev":"findNext"](ft,pt),!lt&&this._props.isTrapped&&(!((ot=st.modalizer)===null||ot===void 0)&&ot.activeId)?(lt=st.focusable[tt?"findLast":"findFirst"]({container:dt,ignoreAccessibility:rt,useActiveModalizer:!0},pt),ut=!0):ut=!!pt.outOfDOMOrder,ct=pt.uncontrolled}return{element:lt,uncontrolled:ct,outOfDOMOrder:ut}}triggerFocusEvent(_e,et){const tt=this.getElement();let rt=!1;if(tt){const nt=et?this._activeElements.map(ot=>ot.get()):[tt];for(const ot of nt)ot&&!triggerEvent(ot,_e,{id:this.userId,element:tt,eventName:_e})&&(rt=!0)}return rt}_remove(){}}class ModalizerAPI{constructor(_e,et,tt){this._onModalizerDispose=nt=>{const ot=nt.id,it=nt.userId,st=this._parts[it];delete this._modalizers[ot],st&&(delete st[ot],Object.keys(st).length===0&&(delete this._parts[it],this.activeId===it&&this.setActive(void 0)))},this._onKeyDown=nt=>{var ot;if(nt.keyCode!==Keys.Esc)return;const it=this._tabster,st=it.focusedElement.getFocusedElement();if(st){const lt=RootAPI.getTabsterContext(it,st),ut=lt==null?void 0:lt.modalizer;if(lt&&!lt.groupper&&(ut!=null&&ut.isActive())&&!lt.ignoreKeydown(nt)){const ct=ut.userId;if(ct){const dt=this._parts[ct];if(dt){const ft=Object.keys(dt).map(pt=>{var gt;const mt=dt[pt],bt=mt.getElement();let _t;return bt&&(_t=(gt=getTabsterOnElement(this._tabster,bt))===null||gt===void 0?void 0:gt.groupper),mt&&bt&&_t?{el:bt,focusedSince:mt.focused(!0)}:{focusedSince:0}}).filter(pt=>pt.focusedSince>0).sort((pt,gt)=>pt.focusedSince>gt.focusedSince?-1:pt.focusedSince{var it,st;const lt=nt&&RootAPI.getTabsterContext(this._tabster,nt);if(!lt||!nt)return;const ut=this._augMap;for(let dt=nt;dt;dt=dt.parentElement)ut.has(dt)&&(ut.delete(dt),augmentAttribute(this._tabster,dt,_ariaHidden));const ct=lt.modalizer;if((st=ct||((it=getTabsterOnElement(this._tabster,nt))===null||it===void 0?void 0:it.modalizer))===null||st===void 0||st.focused(),(ct==null?void 0:ct.userId)===this.activeId){this.currentIsOthersAccessible=ct==null?void 0:ct.getProps().isOthersAccessible;return}if(ot.isFocusedProgrammatically||this.currentIsOthersAccessible||ct!=null&&ct.getProps().isAlwaysAccessible)this.setActive(ct);else{const dt=this._win();dt.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=dt.setTimeout(()=>this._restoreModalizerFocus(nt),100)}},this._tabster=_e,this._win=_e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=et,this._accessibleCheck=tt,this.activeElements=[],_e.controlTab||_e.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),_e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const _e=this._win();_e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(et=>{this._modalizers[et]&&(this._modalizers[et].dispose(),delete this._modalizers[et])}),_e.clearTimeout(this._restoreModalizerFocusTimer),_e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(_e,et,tt){var rt;const nt=new Modalizer(this._tabster,_e,this._onModalizerDispose,et,tt,this.activeElements),ot=nt.id,it=et.id;this._modalizers[ot]=nt;let st=this._parts[it];return st||(st=this._parts[it]={}),st[ot]=nt,_e.contains((rt=this._tabster.focusedElement.getFocusedElement())!==null&&rt!==void 0?rt:null)&&(it!==this.activeId?this.setActive(nt):nt.makeActive(!0)),nt}isAugmented(_e){return this._augMap.has(_e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(_e){const et=_e==null?void 0:_e.userId,tt=this.activeId;if(tt!==et){if(this.activeId=et,tt){const rt=this._parts[tt];if(rt)for(const nt of Object.keys(rt))rt[nt].makeActive(!1)}if(et){const rt=this._parts[et];if(rt)for(const nt of Object.keys(rt))rt[nt].makeActive(!0)}this.currentIsOthersAccessible=_e==null?void 0:_e.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(_e,et,tt){const rt=RootAPI.getTabsterContext(this._tabster,_e),nt=rt==null?void 0:rt.modalizer;if(nt){this.setActive(nt);const ot=nt.getProps(),it=nt.getElement();if(it){if(et===void 0&&(et=ot.isNoFocusFirst),!et&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:it})||(tt===void 0&&(tt=ot.isNoFocusDefault),!tt&&this._tabster.focusedElement.focusDefault(it)))return!0;this._tabster.focusedElement.resetFocus(it)}}return!1}acceptElement(_e,et){var tt;const rt=et.modalizerUserId,nt=(tt=et.currentCtx)===null||tt===void 0?void 0:tt.modalizer;if(rt)for(const it of this.activeElements){const st=it.get();if(st&&(_e.contains(st)||st===_e))return NodeFilter.FILTER_SKIP}const ot=rt===(nt==null?void 0:nt.userId)||!rt&&(nt!=null&&nt.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return ot!==void 0&&(et.skippedFocusable=!0),ot}_hiddenUpdate(){var _e;const et=this._tabster,tt=et.getWindow().document.body,rt=this.activeId,nt=this._parts,ot=[],it=[],st=this._alwaysAccessibleSelector,lt=st?Array.from(tt.querySelectorAll(st)):[],ut=[];for(const bt of Object.keys(nt)){const _t=nt[bt];for(const xt of Object.keys(_t)){const yt=_t[xt],Et=yt.getElement(),Tt=yt.getProps().isAlwaysAccessible;Et&&(bt===rt?(ut.push(Et),this.currentIsOthersAccessible||ot.push(Et)):Tt?lt.push(Et):it.push(Et))}}const ct=this._augMap,dt=ot.length>0?[...ot,...lt]:void 0,ft=[],pt=new WeakMap,gt=(bt,_t)=>{var xt;const yt=bt.tagName;if(yt==="SCRIPT"||yt==="STYLE")return;let Et=!1;ct.has(bt)?_t?Et=!0:(ct.delete(bt),augmentAttribute(et,bt,_ariaHidden)):_t&&!(!((xt=this._accessibleCheck)===null||xt===void 0)&&xt.call(this,bt,ut))&&augmentAttribute(et,bt,_ariaHidden,"true")&&(ct.set(bt,!0),Et=!0),Et&&(ft.push(new WeakHTMLElement(et.getWindow,bt)),pt.set(bt,!0))},mt=bt=>{for(let _t=bt.firstElementChild;_t;_t=_t.nextElementSibling){let xt=!1,yt=!1;if(dt){for(const Et of dt){if(_t===Et){xt=!0;break}if(_t.contains(Et)){yt=!0;break}}yt?mt(_t):xt||gt(_t,!0)}else gt(_t,!1)}};dt||lt.forEach(bt=>gt(bt,!1)),it.forEach(bt=>gt(bt,!0)),tt&&mt(tt),(_e=this._aug)===null||_e===void 0||_e.map(bt=>bt.get()).forEach(bt=>{bt&&!pt.get(bt)&>(bt,!1)}),this._aug=ft,this._augMap=pt}_restoreModalizerFocus(_e){const et=_e==null?void 0:_e.ownerDocument;if(!_e||!et)return;const tt=RootAPI.getTabsterContext(this._tabster,_e),rt=tt==null?void 0:tt.modalizer,nt=this.activeId;if(!rt&&!nt||rt&&nt===rt.userId)return;const ot=tt==null?void 0:tt.root.getElement();if(ot){let it=this._tabster.focusable.findFirst({container:ot,useActiveModalizer:!0});if(it){if(_e.compareDocumentPosition(it)&document.DOCUMENT_POSITION_PRECEDING&&(it=this._tabster.focusable.findLast({container:ot,useActiveModalizer:!0}),!it))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(it);return}}_e.blur()}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const _inputSelector=["input","textarea","*[contenteditable]"].join(", ");class MoverDummyManager extends DummyInputManager{constructor(_e,et,tt,rt){super(et,_e,DummyInputManagerPriorities.Mover,rt),this._onFocusDummyInput=nt=>{var ot,it;const st=this._element.get(),lt=nt.input;if(st&<){const ut=RootAPI.getTabsterContext(this._tabster,st);let ct;ut&&(ct=(ot=FocusedElementState.findNextTabbable(this._tabster,ut,void 0,lt,void 0,!nt.isFirst,!0))===null||ot===void 0?void 0:ot.element);const dt=(it=this._getMemorized())===null||it===void 0?void 0:it.get();dt&&(ct=dt),ct&&nativeFocus(ct)}},this._tabster=et,this._getMemorized=tt,this._setHandlers(this._onFocusDummyInput)}}const _moverUpdateAdd=1,_moverUpdateAttr=2,_moverUpdateRemove=3;class Mover extends TabsterPart{constructor(_e,et,tt,rt,nt){var ot;super(_e,et,rt),this._visible={},this._onIntersection=st=>{for(const lt of st){const ut=lt.target,ct=getElementUId(this._win,ut);let dt,ft=this._fullyVisible;if(lt.intersectionRatio>=.25?(dt=lt.intersectionRatio>=.75?Visibilities.Visible:Visibilities.PartiallyVisible,dt===Visibilities.Visible&&(ft=ct)):dt=Visibilities.Invisible,this._visible[ct]!==dt){dt===void 0?(delete this._visible[ct],ft===ct&&delete this._fullyVisible):(this._visible[ct]=dt,this._fullyVisible=ft);const pt=this.getState(ut);pt&&triggerEvent(ut,MoverEventName,pt)}}},this._win=_e.getWindow,this.visibilityTolerance=(ot=rt.visibilityTolerance)!==null&&ot!==void 0?ot:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=tt;const it=()=>rt.memorizeCurrent?this._current:void 0;_e.controlTab||(this.dummyManager=new MoverDummyManager(this._element,_e,it,nt))}dispose(){var _e;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const et=this._win();this._setCurrentTimer&&(et.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(et.clearTimeout(this._updateTimer),delete this._updateTimer),(_e=this.dummyManager)===null||_e===void 0||_e.dispose(),delete this.dummyManager}setCurrent(_e){_e?this._current=new WeakHTMLElement(this._win,_e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var et;delete this._setCurrentTimer;const tt=[];this._current!==this._prevCurrent&&(tt.push(this._current),tt.push(this._prevCurrent),this._prevCurrent=this._current);for(const rt of tt){const nt=rt==null?void 0:rt.get();if(nt&&((et=this._allElements)===null||et===void 0?void 0:et.get(nt))===this){const ot=this._props;if(nt&&(ot.visibilityAware!==void 0||ot.trackState)){const it=this.getState(nt);it&&triggerEvent(nt,MoverEventName,it)}}}}))}getCurrent(){var _e;return((_e=this._current)===null||_e===void 0?void 0:_e.get())||null}findNextTabbable(_e,et,tt,rt){var nt;const ot=this.getElement(),it=ot&&((nt=_e==null?void 0:_e.__tabsterDummyContainer)===null||nt===void 0?void 0:nt.get())===ot;if(!ot)return null;let st=null,lt=!1,ut;if(this._props.tabbable||it||_e&&!ot.contains(_e)){const ct={currentElement:_e,referenceElement:et,container:ot,ignoreAccessibility:rt,useActiveModalizer:!0},dt={};st=this._tabster.focusable[tt?"findPrev":"findNext"](ct,dt),lt=!!dt.outOfDOMOrder,ut=dt.uncontrolled}return{element:st,uncontrolled:ut,outOfDOMOrder:lt}}acceptElement(_e,et){var tt,rt,nt;if(!FocusedElementState.isTabbing)return!((tt=et.currentCtx)===null||tt===void 0)&&tt.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:ot,visibilityAware:it,hasDefault:st=!0}=this._props,lt=this.getElement();if(lt&&(ot||it||st)&&(!lt.contains(et.from)||((rt=et.from.__tabsterDummyContainer)===null||rt===void 0?void 0:rt.get())===lt)){let ut;if(ot){const ct=(nt=this._current)===null||nt===void 0?void 0:nt.get();ct&&et.acceptCondition(ct)&&(ut=ct)}if(!ut&&st&&(ut=this._tabster.focusable.findDefault({container:lt,useActiveModalizer:!0})),!ut&&it&&(ut=this._tabster.focusable.findElement({container:lt,useActiveModalizer:!0,isBackward:et.isBackward,acceptCondition:ct=>{var dt;const ft=getElementUId(this._win,ct),pt=this._visible[ft];return lt!==ct&&!!(!((dt=this._allElements)===null||dt===void 0)&&dt.get(ct))&&et.acceptCondition(ct)&&(pt===Visibilities.Visible||pt===Visibilities.PartiallyVisible&&(it===Visibilities.PartiallyVisible||!this._fullyVisible))}})),ut)return et.found=!0,et.foundElement=ut,et.rejectElementsFrom=lt,et.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const _e=this.getElement();if(this._unobserve||!_e||typeof MutationObserver>"u")return;const et=this._win(),tt=this._allElements=new WeakMap,rt=this._tabster.focusable;let nt=this._updateQueue=[];const ot=new MutationObserver(ft=>{for(const pt of ft){const gt=pt.target,mt=pt.removedNodes,bt=pt.addedNodes;if(pt.type==="attributes")pt.attributeName==="tabindex"&&nt.push({element:gt,type:_moverUpdateAttr});else{for(let _t=0;_t{var gt,mt;const bt=tt.get(ft);bt&&pt&&((gt=this._intersectionObserver)===null||gt===void 0||gt.unobserve(ft),tt.delete(ft)),!bt&&!pt&&(tt.set(ft,this),(mt=this._intersectionObserver)===null||mt===void 0||mt.observe(ft))},st=ft=>{const pt=rt.isFocusable(ft);tt.get(ft)?pt||it(ft,!0):pt&&it(ft)},lt=ft=>{const{mover:pt}=dt(ft);if(pt&&pt!==this)if(pt.getElement()===ft&&rt.isFocusable(ft))it(ft);else return;const gt=createElementTreeWalker(et.document,ft,mt=>{const{mover:bt,groupper:_t}=dt(mt);if(bt&&bt!==this)return NodeFilter.FILTER_REJECT;const xt=_t==null?void 0:_t.getFirst(!0);return _t&&_t.getElement()!==mt&&xt&&xt!==mt?NodeFilter.FILTER_REJECT:(rt.isFocusable(mt)&&it(mt),NodeFilter.FILTER_SKIP)});if(gt)for(gt.currentNode=ft;gt.nextNode(););},ut=ft=>{tt.get(ft)&&it(ft,!0);for(let gt=ft.firstElementChild;gt;gt=gt.nextElementSibling)ut(gt)},ct=()=>{!this._updateTimer&&nt.length&&(this._updateTimer=et.setTimeout(()=>{delete this._updateTimer;for(const{element:ft,type:pt}of nt)switch(pt){case _moverUpdateAttr:st(ft);break;case _moverUpdateAdd:lt(ft);break;case _moverUpdateRemove:ut(ft);break}nt=this._updateQueue=[]},0))},dt=ft=>{const pt={};for(let gt=ft;gt;gt=gt.parentElement){const mt=getTabsterOnElement(this._tabster,gt);if(mt&&(mt.groupper&&!pt.groupper&&(pt.groupper=mt.groupper),mt.mover)){pt.mover=mt.mover;break}}return pt};nt.push({element:_e,type:_moverUpdateAdd}),ct(),ot.observe(_e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{ot.disconnect()}}getState(_e){const et=getElementUId(this._win,_e);if(et in this._visible){const tt=this._visible[et]||Visibilities.Invisible;return{isCurrent:this._current?this._current.get()===_e:void 0,visibility:tt}}}}function getDistance(j,_e,et,tt,rt,nt,ot,it){const st=et{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=tt=>{delete this._movers[tt.id]},this._onFocus=tt=>{var rt;let nt=tt,ot=tt;for(let it=tt==null?void 0:tt.parentElement;it;it=it.parentElement){const st=(rt=getTabsterOnElement(this._tabster,it))===null||rt===void 0?void 0:rt.mover;st&&(st.setCurrent(ot),nt=void 0),!nt&&this._tabster.focusable.isFocusable(it)&&(nt=ot=it)}},this._onKeyDown=async tt=>{var rt,nt,ot,it;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(rt=this._ignoredInputResolve)===null||rt===void 0||rt.call(this,!1);let st=tt.keyCode;if(tt.ctrlKey||tt.altKey||tt.shiftKey||tt.metaKey)return;switch(st){case Keys.Down:case Keys.Right:case Keys.Up:case Keys.Left:case Keys.PageDown:case Keys.PageUp:case Keys.Home:case Keys.End:break;default:return}const lt=this._tabster,ut=lt.focusedElement.getFocusedElement();if(!ut||await this._isIgnoredInput(ut,st))return;const ct=RootAPI.getTabsterContext(lt,ut,{checkRtl:!0});if(!ct||!ct.mover||ct.excludedFromMover||ct.ignoreKeydown(tt))return;const dt=ct.mover,ft=dt.getElement();if(ct.groupperBeforeMover){const Nt=ct.groupper;if(Nt&&!Nt.isActive(!0)){for(let Ot=(nt=Nt.getElement())===null||nt===void 0?void 0:nt.parentElement;Ot&&Ot!==ft;Ot=Ot.parentElement)if(!((it=(ot=getTabsterOnElement(lt,Ot))===null||ot===void 0?void 0:ot.groupper)===null||it===void 0)&&it.isActive(!0))return}else return}if(!ft)return;const pt=lt.focusable,gt=dt.getProps(),mt=gt.direction||MoverDirections.Both,bt=mt===MoverDirections.Both,_t=bt||mt===MoverDirections.Vertical,xt=bt||mt===MoverDirections.Horizontal,yt=mt===MoverDirections.GridLinear,Et=yt||mt===MoverDirections.Grid,St=gt.cyclic;let Tt,kt,$t,Ct=0,It=0;if(Et&&($t=ut.getBoundingClientRect(),Ct=Math.ceil($t.left),It=Math.floor($t.right)),ct.rtl&&(st===Keys.Right?st=Keys.Left:st===Keys.Left&&(st=Keys.Right)),st===Keys.Down&&_t||st===Keys.Right&&(xt||Et))if(Tt=pt.findNext({currentElement:ut,container:ft,useActiveModalizer:!0}),Tt&&Et){const Nt=Math.ceil(Tt.getBoundingClientRect().left);!yt&&It>Nt&&(Tt=void 0)}else!Tt&&St&&(Tt=pt.findFirst({container:ft,useActiveModalizer:!0}));else if(st===Keys.Up&&_t||st===Keys.Left&&(xt||Et))if(Tt=pt.findPrev({currentElement:ut,container:ft,useActiveModalizer:!0}),Tt&&Et){const Nt=Math.floor(Tt.getBoundingClientRect().right);!yt&&Nt>Ct&&(Tt=void 0)}else!Tt&&St&&(Tt=pt.findLast({container:ft,useActiveModalizer:!0}));else if(st===Keys.Home)Et?pt.findElement({container:ft,currentElement:ut,useActiveModalizer:!0,isBackward:!0,acceptCondition:Nt=>{var Ot;if(!pt.isFocusable(Nt))return!1;const jt=Math.ceil((Ot=Nt.getBoundingClientRect().left)!==null&&Ot!==void 0?Ot:0);return Nt!==ut&&Ct<=jt?!0:(Tt=Nt,!1)}}):Tt=pt.findFirst({container:ft,useActiveModalizer:!0});else if(st===Keys.End)Et?pt.findElement({container:ft,currentElement:ut,useActiveModalizer:!0,acceptCondition:Nt=>{var Ot;if(!pt.isFocusable(Nt))return!1;const jt=Math.ceil((Ot=Nt.getBoundingClientRect().left)!==null&&Ot!==void 0?Ot:0);return Nt!==ut&&Ct>=jt?!0:(Tt=Nt,!1)}}):Tt=pt.findLast({container:ft,useActiveModalizer:!0});else if(st===Keys.PageUp){if(pt.findElement({currentElement:ut,container:ft,useActiveModalizer:!0,isBackward:!0,acceptCondition:Nt=>pt.isFocusable(Nt)?isElementVerticallyVisibleInContainer(this._win,Nt,dt.visibilityTolerance)?(Tt=Nt,!1):!0:!1}),Et&&Tt){const Nt=Math.ceil(Tt.getBoundingClientRect().left);pt.findElement({currentElement:Tt,container:ft,useActiveModalizer:!0,acceptCondition:Ot=>{if(!pt.isFocusable(Ot))return!1;const jt=Math.ceil(Ot.getBoundingClientRect().left);return Ct=jt?!0:(Tt=Ot,!1)}})}kt=!1}else if(st===Keys.PageDown){if(pt.findElement({currentElement:ut,container:ft,useActiveModalizer:!0,acceptCondition:Nt=>pt.isFocusable(Nt)?isElementVerticallyVisibleInContainer(this._win,Nt,dt.visibilityTolerance)?(Tt=Nt,!1):!0:!1}),Et&&Tt){const Nt=Math.ceil(Tt.getBoundingClientRect().left);pt.findElement({currentElement:Tt,container:ft,useActiveModalizer:!0,isBackward:!0,acceptCondition:Ot=>{if(!pt.isFocusable(Ot))return!1;const jt=Math.ceil(Ot.getBoundingClientRect().left);return Ct>jt||Nt<=jt?!0:(Tt=Ot,!1)}})}kt=!0}else if(Et){const Nt=st===Keys.Up,Ot=Ct,jt=Math.ceil($t.top),Mt=It,Rt=Math.floor($t.bottom);let Lt,Pt,Gt=0;pt.findAll({container:ft,currentElement:ut,isBackward:Nt,onElement:qt=>{const Yt=qt.getBoundingClientRect(),Xt=Math.ceil(Yt.left),tr=Math.ceil(Yt.top),cr=Math.floor(Yt.right),mr=Math.floor(Yt.bottom);if(Nt&&jttr)return!0;const Er=Math.ceil(Math.min(Mt,cr))-Math.floor(Math.max(Ot,Xt)),hr=Math.ceil(Math.min(Mt-Ot,cr-Xt));if(Er>0&&hr>=Er){const _r=Er/hr;_r>Gt&&(Lt=qt,Gt=_r)}else if(Gt===0){const _r=getDistance(Ot,jt,Mt,Rt,Xt,tr,cr,mr);(Pt===void 0||_r0)return!1;return!0}}),Tt=Lt}Tt&&triggerMoveFocusEvent({by:"mover",owner:ft,next:Tt,relatedEvent:tt})&&(kt!==void 0&&scrollIntoView$2(this._win,Tt,kt),tt.preventDefault(),tt.stopImmediatePropagation(),nativeFocus(Tt))},this._tabster=_e,this._win=et,this._movers={},_e.queueInit(this._init)}dispose(){var _e;const et=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(_e=this._ignoredInputResolve)===null||_e===void 0||_e.call(this,!1),this._ignoredInputTimer&&(et.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),et.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(tt=>{this._movers[tt]&&(this._movers[tt].dispose(),delete this._movers[tt])})}createMover(_e,et,tt){const rt=new Mover(this._tabster,_e,this._onMoverDispose,et,tt);return this._movers[rt.id]=rt,rt}async _isIgnoredInput(_e,et){var tt;if(_e.getAttribute("aria-expanded")==="true"&&_e.hasAttribute("aria-activedescendant"))return!0;if(matchesSelector(_e,_inputSelector)){let rt=0,nt=0,ot=0,it;if(_e.tagName==="INPUT"||_e.tagName==="TEXTAREA"){const st=_e.type;if(ot=(_e.value||"").length,st==="email"||st==="number"){if(ot){const ut=(tt=_e.ownerDocument.defaultView)===null||tt===void 0?void 0:tt.getSelection();if(ut){const ct=ut.toString().length,dt=et===Keys.Left||et===Keys.Up;if(ut.modify("extend",dt?"backward":"forward","character"),ct!==ut.toString().length)return ut.modify("extend",dt?"forward":"backward","character"),!0;ot=0}}}else{const ut=_e.selectionStart;if(ut===null)return st==="hidden";rt=ut||0,nt=_e.selectionEnd||0}}else _e.contentEditable==="true"&&(it=new(getPromise(this._win))(st=>{this._ignoredInputResolve=pt=>{delete this._ignoredInputResolve,st(pt)};const lt=this._win();this._ignoredInputTimer&<.clearTimeout(this._ignoredInputTimer);const{anchorNode:ut,focusNode:ct,anchorOffset:dt,focusOffset:ft}=lt.getSelection()||{};this._ignoredInputTimer=lt.setTimeout(()=>{var pt,gt,mt;delete this._ignoredInputTimer;const{anchorNode:bt,focusNode:_t,anchorOffset:xt,focusOffset:yt}=lt.getSelection()||{};if(bt!==ut||_t!==ct||xt!==dt||yt!==ft){(pt=this._ignoredInputResolve)===null||pt===void 0||pt.call(this,!1);return}if(rt=xt||0,nt=yt||0,ot=((gt=_e.textContent)===null||gt===void 0?void 0:gt.length)||0,bt&&_t&&_e.contains(bt)&&_e.contains(_t)&&bt!==_e){let Et=!1;const St=Tt=>{if(Tt===bt)Et=!0;else if(Tt===_t)return!0;const kt=Tt.textContent;if(kt&&!Tt.firstChild){const Ct=kt.length;Et?_t!==bt&&(nt+=Ct):(rt+=Ct,nt+=Ct)}let $t=!1;for(let Ct=Tt.firstChild;Ct&&!$t;Ct=Ct.nextSibling)$t=St(Ct);return $t};St(_e)}(mt=this._ignoredInputResolve)===null||mt===void 0||mt.call(this,!0)},0)}));if(it&&!await it||rt!==nt||rt>0&&(et===Keys.Left||et===Keys.Up||et===Keys.Home)||rt"u")return()=>{};const rt=_e.getWindow;let nt;const ot=ut=>{var ct,dt,ft,pt,gt;for(const mt of ut){const bt=mt.target,_t=mt.removedNodes,xt=mt.addedNodes;if(mt.type==="attributes")mt.attributeName===TabsterAttributeName&&et(_e,bt);else{for(let yt=0;yt<_t.length;yt++)it(_t[yt],!0),(dt=(ct=_e._dummyObserver).domChanged)===null||dt===void 0||dt.call(ct,bt);for(let yt=0;ytst(ft,ct));if(dt)for(;dt.nextNode(););}function st(ut,ct){var dt;if(!ut.getAttribute)return NodeFilter.FILTER_SKIP;const ft=ut.__tabsterElementUID;return ft&&nt&&(ct?delete nt[ft]:(dt=nt[ft])!==null&&dt!==void 0||(nt[ft]=new WeakHTMLElement(rt,ut))),(getTabsterOnElement(_e,ut)||ut.hasAttribute(TabsterAttributeName))&&et(_e,ut,ct),NodeFilter.FILTER_SKIP}const lt=new MutationObserver(ot);return tt&&it(rt().document.body),lt.observe(j,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[TabsterAttributeName]}),()=>{lt.disconnect()}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class UncontrolledAPI{constructor(_e){this._isUncontrolledCompletely=_e}isUncontrolledCompletely(_e,et){var tt;const rt=(tt=this._isUncontrolledCompletely)===null||tt===void 0?void 0:tt.call(this,_e,et);return rt===void 0?et:rt}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const EVENT_NAME="restorer:restorefocus",HISOTRY_DEPTH=10;class Restorer extends TabsterPart{constructor(_e,et,tt){var rt;if(super(_e,et,tt),this._hasFocus=!1,this._onFocusOut=nt=>{var ot;const it=(ot=this._element)===null||ot===void 0?void 0:ot.get();it&&nt.relatedTarget===null&&it.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})),it&&!it.contains(nt.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===RestorerTypes.Source){const nt=(rt=this._element)===null||rt===void 0?void 0:rt.get();nt==null||nt.addEventListener("focusout",this._onFocusOut),nt==null||nt.addEventListener("focusin",this._onFocusIn)}}dispose(){var _e,et;if(this._props.type===RestorerTypes.Source){const tt=(_e=this._element)===null||_e===void 0?void 0:_e.get();tt==null||tt.removeEventListener("focusout",this._onFocusOut),tt==null||tt.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((et=this._tabster.getWindow().document.body)===null||et===void 0||et.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})))}}}class RestorerAPI{constructor(_e){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=et=>{const tt=this._getWindow();this._restoreFocusTimeout&&tt.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=tt.setTimeout(()=>this._restoreFocus(et.target))},this._onFocusIn=et=>{var tt;if(!et)return;const rt=getTabsterOnElement(this._tabster,et);((tt=rt==null?void 0:rt.restorer)===null||tt===void 0?void 0:tt.getProps().type)===RestorerTypes.Target&&this._addToHistory(et)},this._restoreFocus=et=>{var tt,rt,nt;const ot=this._getWindow().document;if(ot.activeElement!==ot.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&ot.body.contains(et))return;let it=this._history.pop();for(;it&&!ot.body.contains((rt=(tt=it.get())===null||tt===void 0?void 0:tt.parentElement)!==null&&rt!==void 0?rt:null);)it=this._history.pop();(nt=it==null?void 0:it.get())===null||nt===void 0||nt.focus()},this._tabster=_e,this._getWindow=_e.getWindow,this._getWindow().addEventListener(EVENT_NAME,this._onRestoreFocus),this._keyboardNavState=_e.keyboardNavigation,this._focusedElementState=_e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const _e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),_e.removeEventListener(EVENT_NAME,this._onRestoreFocus),this._restoreFocusTimeout&&_e.clearTimeout(this._restoreFocusTimeout)}_addToHistory(_e){var et;((et=this._history[this._history.length-1])===null||et===void 0?void 0:et.get())!==_e&&(this._history.length>HISOTRY_DEPTH&&this._history.shift(),this._history.push(new WeakHTMLElement(this._getWindow,_e)))}createRestorer(_e,et){const tt=new Restorer(this._tabster,_e,et);return et.type===RestorerTypes.Target&&_e.ownerDocument.activeElement===_e&&this._addToHistory(_e),tt}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class Tabster{constructor(_e){this.keyboardNavigation=_e.keyboardNavigation,this.focusedElement=_e.focusedElement,this.focusable=_e.focusable,this.root=_e.root,this.uncontrolled=_e.uncontrolled,this.core=_e}}class TabsterCore{constructor(_e,et){var tt,rt;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=createWeakMap(_e),this._win=_e;const nt=this.getWindow;this.keyboardNavigation=new KeyboardNavigationState(nt),this.focusedElement=new FocusedElementState(this,nt),this.focusable=new FocusableAPI(this),this.root=new RootAPI(this,et==null?void 0:et.autoRoot),this.uncontrolled=new UncontrolledAPI((et==null?void 0:et.checkUncontrolledCompletely)||(et==null?void 0:et.checkUncontrolledTrappingFocus)),this.controlTab=(tt=et==null?void 0:et.controlTab)!==null&&tt!==void 0?tt:!0,this.rootDummyInputs=!!(et!=null&&et.rootDummyInputs),this._dummyObserver=new DummyInputObserver(nt),this.getParent=(rt=et==null?void 0:et.getParent)!==null&&rt!==void 0?rt:ot=>ot.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:ot=>{if(!this._unobserve){const it=nt().document;this._unobserve=observeMutations(it,this,updateTabsterByAttribute,ot)}}},startFakeWeakRefsCleanup(nt),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(_e){var et;_e&&(this.getParent=(et=_e.getParent)!==null&&et!==void 0?et:this.getParent)}createTabster(_e,et){const tt=new Tabster(this);return _e||this._wrappers.add(tt),this._mergeProps(et),tt}disposeTabster(_e,et){et?this._wrappers.clear():this._wrappers.delete(_e),this._wrappers.size===0&&this.dispose()}dispose(){var _e,et,tt,rt,nt,ot,it,st;this.internal.stopObserver();const lt=this._win;lt==null||lt.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],lt&&this._forgetMemorizedTimer&&(lt.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(_e=this.outline)===null||_e===void 0||_e.dispose(),(et=this.crossOrigin)===null||et===void 0||et.dispose(),(tt=this.deloser)===null||tt===void 0||tt.dispose(),(rt=this.groupper)===null||rt===void 0||rt.dispose(),(nt=this.mover)===null||nt===void 0||nt.dispose(),(ot=this.modalizer)===null||ot===void 0||ot.dispose(),(it=this.observedElement)===null||it===void 0||it.dispose(),(st=this.restorer)===null||st===void 0||st.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),stopFakeWeakRefsCleanupAndClearStorage(this.getWindow),clearElementCache(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),lt&&(disposeInstanceContext(lt),delete lt.__tabsterInstance,delete this._win)}storageEntry(_e,et){const tt=this._storage;let rt=tt.get(_e);return rt?et===!1&&Object.keys(rt).length===0&&tt.delete(_e):et===!0&&(rt={},tt.set(_e,rt)),rt}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let _e=this._forgetMemorizedElements.shift();_e;_e=this._forgetMemorizedElements.shift())clearElementCache(this.getWindow,_e),FocusedElementState.forgetMemorized(this.focusedElement,_e)},0),cleanupFakeWeakRefs(this.getWindow,!0)))}queueInit(_e){var et;this._win&&(this._initQueue.push(_e),this._initTimer||(this._initTimer=(et=this._win)===null||et===void 0?void 0:et.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const _e=this._initQueue;this._initQueue=[],_e.forEach(et=>et())}}function createTabster(j,_e){let et=getCurrentTabster(j);return et?et.createTabster(!1,_e):(et=new TabsterCore(j,_e),j.__tabsterInstance=et,et.createTabster())}function getGroupper(j){const _e=j.core;return _e.groupper||(_e.groupper=new GroupperAPI(_e,_e.getWindow)),_e.groupper}function getMover(j){const _e=j.core;return _e.mover||(_e.mover=new MoverAPI(_e,_e.getWindow)),_e.mover}function getModalizer(j,_e,et){const tt=j.core;return tt.modalizer||(tt.modalizer=new ModalizerAPI(tt,_e,et)),tt.modalizer}function getRestorer(j){const _e=j.core;return _e.restorer||(_e.restorer=new RestorerAPI(_e)),_e.restorer}function disposeTabster(j,_e){j.core.disposeTabster(j,_e)}function getCurrentTabster(j){return j.__tabsterInstance}const useTabster=()=>{const{targetDocument:j}=useFluent(),_e=(j==null?void 0:j.defaultView)||void 0,et=reactExports.useMemo(()=>_e?createTabster(_e,{autoRoot:{},controlTab:!1,getParent:getParent$1,checkUncontrolledTrappingFocus:tt=>{var rt;return!!(!((rt=tt.firstElementChild)===null||rt===void 0)&&rt.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[_e]);return useIsomorphicLayoutEffect$1(()=>()=>{et&&disposeTabster(et)},[et]),et},useTabsterAttributes=j=>(useTabster(),getTabsterAttribute(j)),useArrowNavigationGroup=(j={})=>{const{circular:_e,axis:et,memorizeCurrent:tt,tabbable:rt,ignoreDefaultKeydown:nt,unstable_hasDefault:ot}=j,it=useTabster();return it&&getMover(it),useTabsterAttributes({mover:{cyclic:!!_e,direction:axisToMoverDirection(et??"vertical"),memorizeCurrent:tt,tabbable:rt,hasDefault:ot},...nt&&{focusable:{ignoreKeydown:nt}}})};function axisToMoverDirection(j){switch(j){case"horizontal":return Types.MoverDirections.Horizontal;case"grid":return Types.MoverDirections.Grid;case"grid-linear":return Types.MoverDirections.GridLinear;case"both":return Types.MoverDirections.Both;case"vertical":default:return Types.MoverDirections.Vertical}}const useFocusableGroup=j=>{const _e=useTabster();return _e&&getGroupper(_e),useTabsterAttributes({groupper:{tabbability:getTabbability(j==null?void 0:j.tabBehavior)},focusable:{ignoreKeydown:j==null?void 0:j.ignoreDefaultKeydown}})},getTabbability=j=>{switch(j){case"unlimited":return Types.GroupperTabbabilities.Unlimited;case"limited":return Types.GroupperTabbabilities.Limited;case"limited-trap-focus":return Types.GroupperTabbabilities.LimitedTrapFocus;default:return}},useFocusFinders=()=>{const j=useTabster(),{targetDocument:_e}=useFluent(),et=reactExports.useCallback((it,st)=>(j==null?void 0:j.focusable.findAll({container:it,acceptCondition:st}))||[],[j]),tt=reactExports.useCallback(it=>j==null?void 0:j.focusable.findFirst({container:it}),[j]),rt=reactExports.useCallback(it=>j==null?void 0:j.focusable.findLast({container:it}),[j]),nt=reactExports.useCallback((it,st={})=>{if(!j||!_e)return null;const{container:lt=_e.body}=st;return j.focusable.findNext({currentElement:it,container:lt})},[j,_e]),ot=reactExports.useCallback((it,st={})=>{if(!j||!_e)return null;const{container:lt=_e.body}=st;return j.focusable.findPrev({currentElement:it,container:lt})},[j,_e]);return{findAllFocusable:et,findFirstFocusable:tt,findLastFocusable:rt,findNextFocusable:nt,findPrevFocusable:ot}},FOCUS_VISIBLE_ATTR="data-fui-focus-visible",FOCUS_WITHIN_ATTR="data-fui-focus-within";function applyFocusVisiblePolyfill(j,_e){if(alreadyInScope(j))return()=>{};const et={current:void 0},tt=createKeyborg(_e);function rt(st){tt.isNavigatingWithKeyboard()&&isHTMLElement$4(st)&&(et.current=st,st.setAttribute(FOCUS_VISIBLE_ATTR,""))}function nt(){et.current&&(et.current.removeAttribute(FOCUS_VISIBLE_ATTR),et.current=void 0)}tt.subscribe(st=>{st||nt()});const ot=st=>{nt();const lt=st.composedPath()[0];rt(lt)},it=st=>{(!st.relatedTarget||isHTMLElement$4(st.relatedTarget)&&!j.contains(st.relatedTarget))&&nt()};return j.addEventListener(KEYBORG_FOCUSIN,ot),j.addEventListener("focusout",it),j.focusVisible=!0,rt(_e.document.activeElement),()=>{nt(),j.removeEventListener(KEYBORG_FOCUSIN,ot),j.removeEventListener("focusout",it),delete j.focusVisible,disposeKeyborg(tt)}}function alreadyInScope(j){return j?j.focusVisible?!0:alreadyInScope(j==null?void 0:j.parentElement):!1}function useFocusVisible(j={}){const _e=useFluent(),et=reactExports.useRef(null);var tt;const rt=(tt=j.targetDocument)!==null&&tt!==void 0?tt:_e.targetDocument;return reactExports.useEffect(()=>{if(rt!=null&&rt.defaultView&&et.current)return applyFocusVisiblePolyfill(et.current,rt.defaultView)},[et,rt]),et}function applyFocusWithinPolyfill(j,_e){const et=createKeyborg(_e);et.subscribe(nt=>{nt||removeFocusWithinClass(j)});const tt=nt=>{et.isNavigatingWithKeyboard()&&isHTMLElement$3(nt.target)&&applyFocusWithinClass(j)},rt=nt=>{(!nt.relatedTarget||isHTMLElement$3(nt.relatedTarget)&&!j.contains(nt.relatedTarget))&&removeFocusWithinClass(j)};return j.addEventListener(KEYBORG_FOCUSIN,tt),j.addEventListener("focusout",rt),()=>{j.removeEventListener(KEYBORG_FOCUSIN,tt),j.removeEventListener("focusout",rt),disposeKeyborg(et)}}function applyFocusWithinClass(j){j.setAttribute(FOCUS_WITHIN_ATTR,"")}function removeFocusWithinClass(j){j.removeAttribute(FOCUS_WITHIN_ATTR)}function isHTMLElement$3(j){return j?!!(j&&typeof j=="object"&&"classList"in j&&"contains"in j):!1}function useFocusWithin(){const{targetDocument:j}=useFluent(),_e=reactExports.useRef(null);return reactExports.useEffect(()=>{if(j!=null&&j.defaultView&&_e.current)return applyFocusWithinPolyfill(_e.current,j.defaultView)},[_e,j]),_e}const useModalAttributes=(j={})=>{const{trapFocus:_e,alwaysFocusable:et,legacyTrapFocus:tt}=j,rt=useTabster();rt&&(getModalizer(rt),getRestorer(rt));const nt=useId$1("modal-",j.id),ot=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Source},..._e&&{modalizer:{id:nt,isOthersAccessible:!_e,isAlwaysAccessible:et,isTrapped:tt&&_e}}}),it=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Target}});return{modalAttributes:ot,triggerAttributes:it}},grey={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},whiteAlpha={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},blackAlpha={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},grey10Alpha={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},grey12Alpha={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},grey14Alpha={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},white="#ffffff",black="#000000",darkRed={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},red={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},darkOrange={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},pumpkin={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},orange={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},peach={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},marigold={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},yellow={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},gold={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},lightGreen={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},green={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},darkGreen={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},berry={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lilac={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},statusSharedColors={red,green,darkOrange,yellow,berry,lightGreen,marigold},personaSharedColors={darkRed,cranberry,pumpkin,peach,gold,brass,brown,forest,seafoam,darkGreen,lightTeal,teal,steel,blue,royalBlue,cornflower,navy,lavender,purple,grape,lilac,pink,magenta,plum,beige,mink,platinum,anchor},mappedStatusColors={cranberry,green,orange},statusSharedColorNames=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],personaSharedColorNames=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],statusColorMapping={success:"green",warning:"orange",danger:"cranberry"},statusColorPaletteTokens$1=statusSharedColorNames.reduce((j,_e)=>{const et=_e.slice(0,1).toUpperCase()+_e.slice(1),tt={[`colorPalette${et}Background1`]:statusSharedColors[_e].tint60,[`colorPalette${et}Background2`]:statusSharedColors[_e].tint40,[`colorPalette${et}Background3`]:statusSharedColors[_e].primary,[`colorPalette${et}Foreground1`]:statusSharedColors[_e].shade10,[`colorPalette${et}Foreground2`]:statusSharedColors[_e].shade30,[`colorPalette${et}Foreground3`]:statusSharedColors[_e].primary,[`colorPalette${et}BorderActive`]:statusSharedColors[_e].primary,[`colorPalette${et}Border1`]:statusSharedColors[_e].tint40,[`colorPalette${et}Border2`]:statusSharedColors[_e].primary};return Object.assign(j,tt)},{});statusColorPaletteTokens$1.colorPaletteYellowForeground1=statusSharedColors.yellow.shade30;statusColorPaletteTokens$1.colorPaletteRedForegroundInverted=statusSharedColors.red.tint20;statusColorPaletteTokens$1.colorPaletteGreenForegroundInverted=statusSharedColors.green.tint20;statusColorPaletteTokens$1.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.tint40;const personaColorPaletteTokens$1=personaSharedColorNames.reduce((j,_e)=>{const et=_e.slice(0,1).toUpperCase()+_e.slice(1),tt={[`colorPalette${et}Background2`]:personaSharedColors[_e].tint40,[`colorPalette${et}Foreground2`]:personaSharedColors[_e].shade30,[`colorPalette${et}BorderActive`]:personaSharedColors[_e].primary};return Object.assign(j,tt)},{}),colorPaletteTokens$1={...statusColorPaletteTokens$1,...personaColorPaletteTokens$1},colorStatusTokens$1=Object.entries(statusColorMapping).reduce((j,[_e,et])=>{const tt=_e.slice(0,1).toUpperCase()+_e.slice(1),rt={[`colorStatus${tt}Background1`]:mappedStatusColors[et].tint60,[`colorStatus${tt}Background2`]:mappedStatusColors[et].tint40,[`colorStatus${tt}Background3`]:mappedStatusColors[et].primary,[`colorStatus${tt}Foreground1`]:mappedStatusColors[et].shade10,[`colorStatus${tt}Foreground2`]:mappedStatusColors[et].shade30,[`colorStatus${tt}Foreground3`]:mappedStatusColors[et].primary,[`colorStatus${tt}ForegroundInverted`]:mappedStatusColors[et].tint30,[`colorStatus${tt}BorderActive`]:mappedStatusColors[et].primary,[`colorStatus${tt}Border1`]:mappedStatusColors[et].tint40,[`colorStatus${tt}Border2`]:mappedStatusColors[et].primary};return Object.assign(j,rt)},{});colorStatusTokens$1.colorStatusWarningForeground1=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningForeground3=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningBorder2=mappedStatusColors[statusColorMapping.warning].shade20;const generateColorTokens$1=j=>({colorNeutralForeground1:grey[14],colorNeutralForeground1Hover:grey[14],colorNeutralForeground1Pressed:grey[14],colorNeutralForeground1Selected:grey[14],colorNeutralForeground2:grey[26],colorNeutralForeground2Hover:grey[14],colorNeutralForeground2Pressed:grey[14],colorNeutralForeground2Selected:grey[14],colorNeutralForeground2BrandHover:j[80],colorNeutralForeground2BrandPressed:j[70],colorNeutralForeground2BrandSelected:j[80],colorNeutralForeground3:grey[38],colorNeutralForeground3Hover:grey[26],colorNeutralForeground3Pressed:grey[26],colorNeutralForeground3Selected:grey[26],colorNeutralForeground3BrandHover:j[80],colorNeutralForeground3BrandPressed:j[70],colorNeutralForeground3BrandSelected:j[80],colorNeutralForeground4:grey[44],colorNeutralForegroundDisabled:grey[74],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:j[70],colorBrandForegroundLinkHover:j[60],colorBrandForegroundLinkPressed:j[40],colorBrandForegroundLinkSelected:j[70],colorNeutralForeground2Link:grey[26],colorNeutralForeground2LinkHover:grey[14],colorNeutralForeground2LinkPressed:grey[14],colorNeutralForeground2LinkSelected:grey[14],colorCompoundBrandForeground1:j[80],colorCompoundBrandForeground1Hover:j[70],colorCompoundBrandForeground1Pressed:j[60],colorBrandForeground1:j[80],colorBrandForeground2:j[70],colorBrandForeground2Hover:j[60],colorBrandForeground2Pressed:j[30],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:white,colorNeutralForegroundInvertedHover:white,colorNeutralForegroundInvertedPressed:white,colorNeutralForegroundInvertedSelected:white,colorNeutralForegroundInverted2:white,colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:j[100],colorBrandForegroundInvertedHover:j[110],colorBrandForegroundInvertedPressed:j[100],colorBrandForegroundOnLight:j[80],colorBrandForegroundOnLightHover:j[70],colorBrandForegroundOnLightPressed:j[50],colorBrandForegroundOnLightSelected:j[60],colorNeutralBackground1:white,colorNeutralBackground1Hover:grey[96],colorNeutralBackground1Pressed:grey[88],colorNeutralBackground1Selected:grey[92],colorNeutralBackground2:grey[98],colorNeutralBackground2Hover:grey[94],colorNeutralBackground2Pressed:grey[86],colorNeutralBackground2Selected:grey[90],colorNeutralBackground3:grey[96],colorNeutralBackground3Hover:grey[92],colorNeutralBackground3Pressed:grey[84],colorNeutralBackground3Selected:grey[88],colorNeutralBackground4:grey[94],colorNeutralBackground4Hover:grey[98],colorNeutralBackground4Pressed:grey[96],colorNeutralBackground4Selected:white,colorNeutralBackground5:grey[92],colorNeutralBackground5Hover:grey[96],colorNeutralBackground5Pressed:grey[94],colorNeutralBackground5Selected:grey[98],colorNeutralBackground6:grey[90],colorNeutralBackgroundInverted:grey[16],colorNeutralBackgroundStatic:grey[20],colorNeutralBackgroundAlpha:whiteAlpha[50],colorNeutralBackgroundAlpha2:whiteAlpha[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[96],colorSubtleBackgroundPressed:grey[88],colorSubtleBackgroundSelected:grey[92],colorSubtleBackgroundLightAlphaHover:whiteAlpha[70],colorSubtleBackgroundLightAlphaPressed:whiteAlpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[94],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[90],colorNeutralStencil2:grey[98],colorNeutralStencil1Alpha:blackAlpha[10],colorNeutralStencil2Alpha:blackAlpha[5],colorBackgroundOverlay:blackAlpha[40],colorScrollbarOverlay:blackAlpha[50],colorBrandBackground:j[80],colorBrandBackgroundHover:j[70],colorBrandBackgroundPressed:j[40],colorBrandBackgroundSelected:j[60],colorCompoundBrandBackground:j[80],colorCompoundBrandBackgroundHover:j[70],colorCompoundBrandBackgroundPressed:j[60],colorBrandBackgroundStatic:j[80],colorBrandBackground2:j[160],colorBrandBackground2Hover:j[150],colorBrandBackground2Pressed:j[130],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:j[160],colorBrandBackgroundInvertedPressed:j[140],colorBrandBackgroundInvertedSelected:j[150],colorNeutralStrokeAccessible:grey[38],colorNeutralStrokeAccessibleHover:grey[34],colorNeutralStrokeAccessiblePressed:grey[30],colorNeutralStrokeAccessibleSelected:j[80],colorNeutralStroke1:grey[82],colorNeutralStroke1Hover:grey[78],colorNeutralStroke1Pressed:grey[70],colorNeutralStroke1Selected:grey[74],colorNeutralStroke2:grey[88],colorNeutralStroke3:grey[94],colorNeutralStrokeSubtle:grey[88],colorNeutralStrokeOnBrand:white,colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:j[80],colorBrandStroke2:j[140],colorBrandStroke2Hover:j[120],colorBrandStroke2Pressed:j[80],colorBrandStroke2Contrast:j[140],colorCompoundBrandStroke:j[80],colorCompoundBrandStrokeHover:j[70],colorCompoundBrandStrokePressed:j[60],colorNeutralStrokeDisabled:grey[88],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:blackAlpha[5],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:white,colorStrokeFocus2:black,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),borderRadius={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},curves={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},durations={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},fontSizes={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},lineHeights={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},fontWeights={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},fontFamilies={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},spacings={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},horizontalSpacings={spacingHorizontalNone:spacings.none,spacingHorizontalXXS:spacings.xxs,spacingHorizontalXS:spacings.xs,spacingHorizontalSNudge:spacings.sNudge,spacingHorizontalS:spacings.s,spacingHorizontalMNudge:spacings.mNudge,spacingHorizontalM:spacings.m,spacingHorizontalL:spacings.l,spacingHorizontalXL:spacings.xl,spacingHorizontalXXL:spacings.xxl,spacingHorizontalXXXL:spacings.xxxl},verticalSpacings={spacingVerticalNone:spacings.none,spacingVerticalXXS:spacings.xxs,spacingVerticalXS:spacings.xs,spacingVerticalSNudge:spacings.sNudge,spacingVerticalS:spacings.s,spacingVerticalMNudge:spacings.mNudge,spacingVerticalM:spacings.m,spacingVerticalL:spacings.l,spacingVerticalXL:spacings.xl,spacingVerticalXXL:spacings.xxl,spacingVerticalXXXL:spacings.xxxl},strokeWidths={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},tokens={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function createShadowTokens(j,_e,et=""){return{[`shadow2${et}`]:`0 0 2px ${j}, 0 1px 2px ${_e}`,[`shadow4${et}`]:`0 0 2px ${j}, 0 2px 4px ${_e}`,[`shadow8${et}`]:`0 0 2px ${j}, 0 4px 8px ${_e}`,[`shadow16${et}`]:`0 0 2px ${j}, 0 8px 16px ${_e}`,[`shadow28${et}`]:`0 0 8px ${j}, 0 14px 28px ${_e}`,[`shadow64${et}`]:`0 0 8px ${j}, 0 32px 64px ${_e}`}}const createLightTheme=j=>{const _e=generateColorTokens$1(j);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,..._e,...colorPaletteTokens$1,...colorStatusTokens$1,...createShadowTokens(_e.colorNeutralShadowAmbient,_e.colorNeutralShadowKey),...createShadowTokens(_e.colorBrandShadowAmbient,_e.colorBrandShadowKey,"Brand")}},brandWeb={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},statusColorPaletteTokens=statusSharedColorNames.reduce((j,_e)=>{const et=_e.slice(0,1).toUpperCase()+_e.slice(1),tt={[`colorPalette${et}Background1`]:statusSharedColors[_e].shade40,[`colorPalette${et}Background2`]:statusSharedColors[_e].shade30,[`colorPalette${et}Background3`]:statusSharedColors[_e].primary,[`colorPalette${et}Foreground1`]:statusSharedColors[_e].tint30,[`colorPalette${et}Foreground2`]:statusSharedColors[_e].tint40,[`colorPalette${et}Foreground3`]:statusSharedColors[_e].tint20,[`colorPalette${et}BorderActive`]:statusSharedColors[_e].tint30,[`colorPalette${et}Border1`]:statusSharedColors[_e].primary,[`colorPalette${et}Border2`]:statusSharedColors[_e].tint20};return Object.assign(j,tt)},{});statusColorPaletteTokens.colorPaletteRedForeground3=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteRedBorder2=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteGreenForeground3=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteGreenBorder2=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteDarkOrangeForeground3=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteDarkOrangeBorder2=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteRedForegroundInverted=statusSharedColors.red.primary;statusColorPaletteTokens.colorPaletteGreenForegroundInverted=statusSharedColors.green.primary;statusColorPaletteTokens.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.shade30;const personaColorPaletteTokens=personaSharedColorNames.reduce((j,_e)=>{const et=_e.slice(0,1).toUpperCase()+_e.slice(1),tt={[`colorPalette${et}Background2`]:personaSharedColors[_e].shade30,[`colorPalette${et}Foreground2`]:personaSharedColors[_e].tint40,[`colorPalette${et}BorderActive`]:personaSharedColors[_e].tint30};return Object.assign(j,tt)},{});personaColorPaletteTokens.colorPaletteDarkRedBackground2=personaSharedColors.darkRed.shade20;personaColorPaletteTokens.colorPalettePlumBackground2=personaSharedColors.plum.shade20;const colorPaletteTokens={...statusColorPaletteTokens,...personaColorPaletteTokens},colorStatusTokens=Object.entries(statusColorMapping).reduce((j,[_e,et])=>{const tt=_e.slice(0,1).toUpperCase()+_e.slice(1),rt={[`colorStatus${tt}Background1`]:mappedStatusColors[et].shade40,[`colorStatus${tt}Background2`]:mappedStatusColors[et].shade30,[`colorStatus${tt}Background3`]:mappedStatusColors[et].primary,[`colorStatus${tt}Foreground1`]:mappedStatusColors[et].tint30,[`colorStatus${tt}Foreground2`]:mappedStatusColors[et].tint40,[`colorStatus${tt}Foreground3`]:mappedStatusColors[et].tint20,[`colorStatus${tt}BorderActive`]:mappedStatusColors[et].tint30,[`colorStatus${tt}ForegroundInverted`]:mappedStatusColors[et].shade10,[`colorStatus${tt}Border1`]:mappedStatusColors[et].primary,[`colorStatus${tt}Border2`]:mappedStatusColors[et].tint20};return Object.assign(j,rt)},{});colorStatusTokens.colorStatusDangerForeground3=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusDangerBorder2=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusSuccessForeground3=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusSuccessBorder2=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusWarningForegroundInverted=mappedStatusColors[statusColorMapping.warning].shade20;const webLightTheme=createLightTheme(brandWeb),generateColorTokens=j=>({colorNeutralForeground1:white,colorNeutralForeground1Hover:white,colorNeutralForeground1Pressed:white,colorNeutralForeground1Selected:white,colorNeutralForeground2:grey[84],colorNeutralForeground2Hover:white,colorNeutralForeground2Pressed:white,colorNeutralForeground2Selected:white,colorNeutralForeground2BrandHover:j[100],colorNeutralForeground2BrandPressed:j[90],colorNeutralForeground2BrandSelected:j[100],colorNeutralForeground3:grey[68],colorNeutralForeground3Hover:grey[84],colorNeutralForeground3Pressed:grey[84],colorNeutralForeground3Selected:grey[84],colorNeutralForeground3BrandHover:j[100],colorNeutralForeground3BrandPressed:j[90],colorNeutralForeground3BrandSelected:j[100],colorNeutralForeground4:grey[60],colorNeutralForegroundDisabled:grey[36],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:j[100],colorBrandForegroundLinkHover:j[110],colorBrandForegroundLinkPressed:j[90],colorBrandForegroundLinkSelected:j[100],colorNeutralForeground2Link:grey[84],colorNeutralForeground2LinkHover:white,colorNeutralForeground2LinkPressed:white,colorNeutralForeground2LinkSelected:white,colorCompoundBrandForeground1:j[100],colorCompoundBrandForeground1Hover:j[110],colorCompoundBrandForeground1Pressed:j[90],colorBrandForeground1:j[100],colorBrandForeground2:j[110],colorBrandForeground2Hover:j[130],colorBrandForeground2Pressed:j[160],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:grey[14],colorNeutralForegroundInvertedHover:grey[14],colorNeutralForegroundInvertedPressed:grey[14],colorNeutralForegroundInvertedSelected:grey[14],colorNeutralForegroundInverted2:grey[14],colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:j[80],colorBrandForegroundInvertedHover:j[70],colorBrandForegroundInvertedPressed:j[60],colorBrandForegroundOnLight:j[80],colorBrandForegroundOnLightHover:j[70],colorBrandForegroundOnLightPressed:j[50],colorBrandForegroundOnLightSelected:j[60],colorNeutralBackground1:grey[16],colorNeutralBackground1Hover:grey[24],colorNeutralBackground1Pressed:grey[12],colorNeutralBackground1Selected:grey[22],colorNeutralBackground2:grey[12],colorNeutralBackground2Hover:grey[20],colorNeutralBackground2Pressed:grey[8],colorNeutralBackground2Selected:grey[18],colorNeutralBackground3:grey[8],colorNeutralBackground3Hover:grey[16],colorNeutralBackground3Pressed:grey[4],colorNeutralBackground3Selected:grey[14],colorNeutralBackground4:grey[4],colorNeutralBackground4Hover:grey[12],colorNeutralBackground4Pressed:black,colorNeutralBackground4Selected:grey[10],colorNeutralBackground5:black,colorNeutralBackground5Hover:grey[8],colorNeutralBackground5Pressed:grey[2],colorNeutralBackground5Selected:grey[6],colorNeutralBackground6:grey[20],colorNeutralBackgroundInverted:white,colorNeutralBackgroundStatic:grey[24],colorNeutralBackgroundAlpha:grey10Alpha[50],colorNeutralBackgroundAlpha2:grey12Alpha[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[22],colorSubtleBackgroundPressed:grey[18],colorSubtleBackgroundSelected:grey[20],colorSubtleBackgroundLightAlphaHover:grey14Alpha[80],colorSubtleBackgroundLightAlphaPressed:grey14Alpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[8],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[34],colorNeutralStencil2:grey[20],colorNeutralStencil1Alpha:whiteAlpha[10],colorNeutralStencil2Alpha:whiteAlpha[5],colorBackgroundOverlay:blackAlpha[50],colorScrollbarOverlay:whiteAlpha[60],colorBrandBackground:j[70],colorBrandBackgroundHover:j[80],colorBrandBackgroundPressed:j[40],colorBrandBackgroundSelected:j[60],colorCompoundBrandBackground:j[100],colorCompoundBrandBackgroundHover:j[110],colorCompoundBrandBackgroundPressed:j[90],colorBrandBackgroundStatic:j[80],colorBrandBackground2:j[20],colorBrandBackground2Hover:j[40],colorBrandBackground2Pressed:j[10],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:j[160],colorBrandBackgroundInvertedPressed:j[140],colorBrandBackgroundInvertedSelected:j[150],colorNeutralStrokeAccessible:grey[68],colorNeutralStrokeAccessibleHover:grey[74],colorNeutralStrokeAccessiblePressed:grey[70],colorNeutralStrokeAccessibleSelected:j[100],colorNeutralStroke1:grey[40],colorNeutralStroke1Hover:grey[46],colorNeutralStroke1Pressed:grey[42],colorNeutralStroke1Selected:grey[44],colorNeutralStroke2:grey[32],colorNeutralStroke3:grey[24],colorNeutralStrokeSubtle:grey[4],colorNeutralStrokeOnBrand:grey[16],colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:j[100],colorBrandStroke2:j[50],colorBrandStroke2Hover:j[50],colorBrandStroke2Pressed:j[30],colorBrandStroke2Contrast:j[50],colorCompoundBrandStroke:j[100],colorCompoundBrandStrokeHover:j[110],colorCompoundBrandStrokePressed:j[90],colorNeutralStrokeDisabled:grey[26],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:whiteAlpha[10],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:black,colorStrokeFocus2:white,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),createDarkTheme=j=>{const _e=generateColorTokens(j);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,..._e,...colorPaletteTokens,...colorStatusTokens,...createShadowTokens(_e.colorNeutralShadowAmbient,_e.colorNeutralShadowKey),...createShadowTokens(_e.colorBrandShadowAmbient,_e.colorBrandShadowKey,"Brand")}},webDarkTheme=createDarkTheme(brandWeb),fluentProviderClassNames={root:"fui-FluentProvider"},useStyles$z=__styles$1({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),useFluentProviderStyles_unstable=j=>{const _e=useRenderer(),et=useStyles$z({dir:j.dir,renderer:_e});return j.root.className=mergeClasses(fluentProviderClassNames.root,j.themeClassName,et.root,j.root.className),j},useInsertionEffect$1=reactExports.useInsertionEffect?reactExports.useInsertionEffect:useIsomorphicLayoutEffect$1,createStyleTag=(j,_e)=>{if(!j)return;const et=j.createElement("style");return Object.keys(_e).forEach(tt=>{et.setAttribute(tt,_e[tt])}),j.head.appendChild(et),et},insertSheet=(j,_e)=>{const et=j.sheet;et&&(et.cssRules.length>0&&et.deleteRule(0),et.insertRule(_e,0))},useFluentProviderThemeStyleTag=j=>{const{targetDocument:_e,theme:et,rendererAttributes:tt}=j,rt=reactExports.useRef(),nt=useId$1(fluentProviderClassNames.root),ot=tt,it=reactExports.useMemo(()=>createCSSRuleFromTheme(`.${nt}`,et),[et,nt]);return useHandleSSRStyleElements(_e,nt),useInsertionEffect$1(()=>{const st=_e==null?void 0:_e.getElementById(nt);return st?rt.current=st:(rt.current=createStyleTag(_e,{...ot,id:nt}),rt.current&&insertSheet(rt.current,it)),()=>{var lt;(lt=rt.current)===null||lt===void 0||lt.remove()}},[nt,_e,it,ot]),{styleTagId:nt,rule:it}};function useHandleSSRStyleElements(j,_e){reactExports.useState(()=>{if(!j)return;const et=j.getElementById(_e);et&&j.head.append(et)})}const EMPTY_OBJECT={},useFluentProvider_unstable=(j,_e)=>{const et=useFluent(),tt=useTheme(),rt=useOverrides(),nt=reactExports.useContext(CustomStyleHooksContext)||EMPTY_OBJECT,{applyStylesToPortals:ot=!0,customStyleHooks_unstable:it,dir:st=et.dir,targetDocument:lt=et.targetDocument,theme:ut,overrides_unstable:ct={}}=j,dt=shallowMerge(tt,ut),ft=shallowMerge(rt,ct),pt=shallowMerge(nt,it),gt=useRenderer();var mt;const{styleTagId:bt,rule:_t}=useFluentProviderThemeStyleTag({theme:dt,targetDocument:lt,rendererAttributes:(mt=gt.styleElementAttributes)!==null&&mt!==void 0?mt:{}});return{applyStylesToPortals:ot,customStyleHooks_unstable:pt,dir:st,targetDocument:lt,theme:dt,overrides_unstable:ft,themeClassName:bt,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...j,dir:st,ref:useMergedRefs$1(_e,useFocusVisible({targetDocument:lt}))}),{elementType:"div"}),serverStyleProps:{cssRule:_t,attributes:{...gt.styleElementAttributes,id:bt}}}};function shallowMerge(j,_e){return j&&_e?{...j,..._e}:j||_e}function useTheme(){return reactExports.useContext(ThemeContext$1)}function useFluentProviderContextValues_unstable(j){const{applyStylesToPortals:_e,customStyleHooks_unstable:et,dir:tt,root:rt,targetDocument:nt,theme:ot,themeClassName:it,overrides_unstable:st}=j,lt=reactExports.useMemo(()=>({dir:tt,targetDocument:nt}),[tt,nt]),[ut]=reactExports.useState(()=>({})),ct=reactExports.useMemo(()=>({textDirection:tt}),[tt]);return{customStyleHooks_unstable:et,overrides_unstable:st,provider:lt,textDirection:tt,iconDirection:ct,tooltip:ut,theme:ot,themeClassName:_e?rt.className:it}}const FluentProvider=reactExports.forwardRef((j,_e)=>{const et=useFluentProvider_unstable(j,_e);useFluentProviderStyles_unstable(et);const tt=useFluentProviderContextValues_unstable(et);return renderFluentProvider_unstable(et,tt)});FluentProvider.displayName="FluentProvider";const createProvider=j=>et=>{const tt=reactExports.useRef(et.value),rt=reactExports.useRef(0),nt=reactExports.useRef();return nt.current||(nt.current={value:tt,version:rt,listeners:[]}),useIsomorphicLayoutEffect$1(()=>{tt.current=et.value,rt.current+=1,schedulerExports.unstable_runWithPriority(schedulerExports.unstable_NormalPriority,()=>{nt.current.listeners.forEach(ot=>{ot([rt.current,et.value])})})},[et.value]),reactExports.createElement(j,{value:nt.current},et.children)},createContext=j=>{const _e=reactExports.createContext({value:{current:j},version:{current:-1},listeners:[]});return _e.Provider=createProvider(_e.Provider),delete _e.Consumer,_e},useContextSelector=(j,_e)=>{const et=reactExports.useContext(j),{value:{current:tt},version:{current:rt},listeners:nt}=et,ot=_e(tt),[it,st]=reactExports.useReducer((lt,ut)=>{if(!ut)return[tt,ot];if(ut[0]<=rt)return objectIs(lt[1],ot)?lt:[tt,ot];try{if(objectIs(lt[0],ut[1]))return lt;const ct=_e(ut[1]);return objectIs(lt[1],ct)?lt:[ut[1],ct]}catch{}return[lt[0],lt[1]]},[tt,ot]);return objectIs(it[1],ot)||st(void 0),useIsomorphicLayoutEffect$1(()=>(nt.push(st),()=>{const lt=nt.indexOf(st);nt.splice(lt,1)}),[nt]),it[1]};function is$3(j,_e){return j===_e&&(j!==0||1/j===1/_e)||j!==j&&_e!==_e}const objectIs=typeof Object.is=="function"?Object.is:is$3;function useHasParentContext(j){const _e=reactExports.useContext(j);return _e.version?_e.version.current!==-1:!1}const AccordionContext=createContext(void 0),accordionContextDefaultValue={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:AccordionProvider}=AccordionContext,useAccordionContext_unstable=j=>useContextSelector(AccordionContext,(_e=accordionContextDefaultValue)=>j(_e)),renderAccordion_unstable=(j,_e)=>jsx$1(j.root,{children:jsx$1(AccordionProvider,{value:_e.accordion,children:j.root.children})}),useAccordion_unstable=(j,_e)=>{const{openItems:et,defaultOpenItems:tt,multiple:rt=!1,collapsible:nt=!1,onToggle:ot,navigation:it}=j,[st,lt]=useControllableState({state:reactExports.useMemo(()=>normalizeValues(et),[et]),defaultState:()=>initializeUncontrolledOpenItems({defaultOpenItems:tt,multiple:rt}),initialState:[]}),ut=useArrowNavigationGroup({circular:it==="circular",tabbable:!0}),ct=useEventCallback$3(dt=>{const ft=updateOpenItems(dt.value,st,rt,nt);ot==null||ot(dt.event,{value:dt.value,openItems:ft}),lt(ft)});return{collapsible:nt,multiple:rt,navigation:it,openItems:st,requestToggle:ct,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...j,...it?ut:void 0,ref:_e}),{elementType:"div"})}};function initializeUncontrolledOpenItems({defaultOpenItems:j,multiple:_e}){return j!==void 0?Array.isArray(j)?_e?j:[j[0]]:[j]:[]}function updateOpenItems(j,_e,et,tt){if(et)if(_e.includes(j)){if(_e.length>1||tt)return _e.filter(rt=>rt!==j)}else return[..._e,j].sort();else return _e[0]===j&&tt?[]:[j];return _e}function normalizeValues(j){if(j!==void 0)return Array.isArray(j)?j:[j]}function useAccordionContextValues_unstable(j){const{navigation:_e,openItems:et,requestToggle:tt,multiple:rt,collapsible:nt}=j;return{accordion:{navigation:_e,openItems:et,requestToggle:tt,collapsible:nt,multiple:rt}}}const accordionClassNames={root:"fui-Accordion"},useAccordionStyles_unstable=j=>(j.root.className=mergeClasses(accordionClassNames.root,j.root.className),j),Accordion=reactExports.forwardRef((j,_e)=>{const et=useAccordion_unstable(j,_e),tt=useAccordionContextValues_unstable(et);return useAccordionStyles_unstable(et),useCustomStyleHook("useAccordionStyles_unstable")(et),renderAccordion_unstable(et,tt)});Accordion.displayName="Accordion";const useAccordionItem_unstable=(j,_e)=>{const{value:et,disabled:tt=!1}=j,rt=useAccordionContext_unstable(it=>it.requestToggle),nt=useAccordionContext_unstable(it=>it.openItems.includes(et)),ot=useEventCallback$3(it=>rt({event:it,value:et}));return{open:nt,value:et,disabled:tt,onHeaderClick:ot,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:_e,...j}),{elementType:"div"})}};function useAccordionItemContextValues_unstable(j){const{disabled:_e,open:et,value:tt,onHeaderClick:rt}=j;return{accordionItem:reactExports.useMemo(()=>({disabled:_e,open:et,value:tt,onHeaderClick:rt}),[_e,et,tt,rt])}}const AccordionItemContext=reactExports.createContext(void 0),accordionItemContextDefaultValue={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:AccordionItemProvider}=AccordionItemContext,useAccordionItemContext_unstable=()=>{var j;return(j=reactExports.useContext(AccordionItemContext))!==null&&j!==void 0?j:accordionItemContextDefaultValue},renderAccordionItem_unstable=(j,_e)=>jsx$1(j.root,{children:jsx$1(AccordionItemProvider,{value:_e.accordionItem,children:j.root.children})}),accordionItemClassNames={root:"fui-AccordionItem"},useAccordionItemStyles_unstable=j=>(j.root.className=mergeClasses(accordionItemClassNames.root,j.root.className),j),AccordionItem=reactExports.forwardRef((j,_e)=>{const et=useAccordionItem_unstable(j,_e),tt=useAccordionItemContextValues_unstable(et);return useAccordionItemStyles_unstable(et),useCustomStyleHook("useAccordionItemStyles_unstable")(et),renderAccordionItem_unstable(et,tt)});AccordionItem.displayName="AccordionItem";const Enter="Enter",Space=" ",Tab$2="Tab",ArrowDown="ArrowDown",ArrowLeft="ArrowLeft",ArrowRight="ArrowRight",ArrowUp="ArrowUp",End="End",Home="Home",PageDown="PageDown",PageUp="PageUp",Escape="Escape";function useARIAButtonProps(j,_e){const{disabled:et,disabledFocusable:tt=!1,["aria-disabled"]:rt,onClick:nt,onKeyDown:ot,onKeyUp:it,...st}=_e??{},lt=typeof rt=="string"?rt==="true":rt,ut=et||tt||lt,ct=useEventCallback$3(pt=>{ut?(pt.preventDefault(),pt.stopPropagation()):nt==null||nt(pt)}),dt=useEventCallback$3(pt=>{if(ot==null||ot(pt),pt.isDefaultPrevented())return;const gt=pt.key;if(ut&&(gt===Enter||gt===Space)){pt.preventDefault(),pt.stopPropagation();return}if(gt===Space){pt.preventDefault();return}else gt===Enter&&(pt.preventDefault(),pt.currentTarget.click())}),ft=useEventCallback$3(pt=>{if(it==null||it(pt),pt.isDefaultPrevented())return;const gt=pt.key;if(ut&&(gt===Enter||gt===Space)){pt.preventDefault(),pt.stopPropagation();return}gt===Space&&(pt.preventDefault(),pt.currentTarget.click())});if(j==="button"||j===void 0)return{...st,disabled:et&&!tt,"aria-disabled":tt?!0:lt,onClick:tt?void 0:ct,onKeyUp:tt?void 0:it,onKeyDown:tt?void 0:ot};{const pt={role:"button",tabIndex:et&&!tt?void 0:0,...st,onClick:ct,onKeyUp:ft,onKeyDown:dt,"aria-disabled":et||tt||lt};return j==="a"&&ut&&(pt.href=void 0),pt}}const useAccordionHeader_unstable=(j,_e)=>{const{icon:et,button:tt,expandIcon:rt,inline:nt=!1,size:ot="medium",expandIconPosition:it="start"}=j,{value:st,disabled:lt,open:ut}=useAccordionItemContext_unstable(),ct=useAccordionContext_unstable(mt=>mt.requestToggle),dt=useAccordionContext_unstable(mt=>!mt.collapsible&&mt.openItems.length===1&&ut),{dir:ft}=useFluent();let pt;it==="end"?pt=ut?-90:90:pt=ut?90:ft!=="rtl"?0:180;const gt=always(tt,{elementType:"button",defaultProps:{disabled:lt,disabledFocusable:dt,"aria-expanded":ut,type:"button"}});return gt.onClick=useEventCallback$3(mt=>{if(isResolvedShorthand(tt)){var bt;(bt=tt.onClick)===null||bt===void 0||bt.call(tt,mt)}mt.defaultPrevented||ct({value:st,event:mt})}),{disabled:lt,open:ut,size:ot,inline:nt,expandIconPosition:it,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:_e,...j}),{elementType:"div"}),icon:optional(et,{elementType:"div"}),expandIcon:optional(rt,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronRightRegular,{style:{transform:`rotate(${pt}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:useARIAButtonProps(gt.as,gt)}},AccordionHeaderContext=reactExports.createContext(void 0),{Provider:AccordionHeaderProvider}=AccordionHeaderContext,renderAccordionHeader_unstable=(j,_e)=>jsx$1(AccordionHeaderProvider,{value:_e.accordionHeader,children:jsx$1(j.root,{children:jsxs(j.button,{children:[j.expandIconPosition==="start"&&j.expandIcon&&jsx$1(j.expandIcon,{}),j.icon&&jsx$1(j.icon,{}),j.root.children,j.expandIconPosition==="end"&&j.expandIcon&&jsx$1(j.expandIcon,{})]})})}),accordionHeaderClassNames={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},useStyles$y=__styles({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),useAccordionHeaderStyles_unstable=j=>{const _e=useStyles$y();return j.root.className=mergeClasses(accordionHeaderClassNames.root,_e.root,j.inline&&_e.rootInline,j.disabled&&_e.rootDisabled,j.root.className),j.button.className=mergeClasses(accordionHeaderClassNames.button,_e.resetButton,_e.button,_e.focusIndicator,j.expandIconPosition==="end"&&!j.icon&&_e.buttonExpandIconEndNoIcon,j.expandIconPosition==="end"&&_e.buttonExpandIconEnd,j.inline&&_e.buttonInline,j.size==="small"&&_e.buttonSmall,j.size==="large"&&_e.buttonLarge,j.size==="extra-large"&&_e.buttonExtraLarge,j.disabled&&_e.buttonDisabled,j.button.className),j.expandIcon&&(j.expandIcon.className=mergeClasses(accordionHeaderClassNames.expandIcon,_e.expandIcon,j.expandIconPosition==="start"&&_e.expandIconStart,j.expandIconPosition==="end"&&_e.expandIconEnd,j.expandIcon.className)),j.icon&&(j.icon.className=mergeClasses(accordionHeaderClassNames.icon,_e.icon,j.icon.className)),j};function useAccordionHeaderContextValues_unstable(j){const{disabled:_e,expandIconPosition:et,open:tt,size:rt}=j;return{accordionHeader:reactExports.useMemo(()=>({disabled:_e,expandIconPosition:et,open:tt,size:rt}),[_e,et,tt,rt])}}const AccordionHeader=reactExports.forwardRef((j,_e)=>{const et=useAccordionHeader_unstable(j,_e),tt=useAccordionHeaderContextValues_unstable(et);return useAccordionHeaderStyles_unstable(et),useCustomStyleHook("useAccordionHeaderStyles_unstable")(et),renderAccordionHeader_unstable(et,tt)});AccordionHeader.displayName="AccordionHeader";const useAccordionPanel_unstable=(j,_e)=>{const{open:et}=useAccordionItemContext_unstable(),tt=useTabsterAttributes({focusable:{excludeFromMover:!0}}),rt=useAccordionContext_unstable(nt=>nt.navigation);return{open:et,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:_e,...j,...rt&&tt}),{elementType:"div"})}},renderAccordionPanel_unstable=j=>j.open?jsx$1(j.root,{children:j.root.children}):null,accordionPanelClassNames={root:"fui-AccordionPanel"},useStyles$x=__styles({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),useAccordionPanelStyles_unstable=j=>{const _e=useStyles$x();return j.root.className=mergeClasses(accordionPanelClassNames.root,_e.root,j.root.className),j},AccordionPanel=reactExports.forwardRef((j,_e)=>{const et=useAccordionPanel_unstable(j,_e);return useAccordionPanelStyles_unstable(et),useCustomStyleHook("useAccordionPanelStyles_unstable")(et),renderAccordionPanel_unstable(et)});AccordionPanel.displayName="AccordionPanel";const useBadge_unstable=(j,_e)=>{const{shape:et="circular",size:tt="medium",iconPosition:rt="before",appearance:nt="filled",color:ot="brand"}=j;return{shape:et,size:tt,iconPosition:rt,appearance:nt,color:ot,components:{root:"div",icon:"span"},root:always(getIntrinsicElementProps("div",{ref:_e,...j}),{elementType:"div"}),icon:optional(j.icon,{elementType:"span"})}},badgeClassNames={root:"fui-Badge",icon:"fui-Badge__icon"},useRootClassName$1=__resetStyles("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),useRootStyles$6=__styles({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),useIconRootClassName=__resetStyles("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),useIconStyles$3=__styles({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),useBadgeStyles_unstable=j=>{const _e=useRootClassName$1(),et=useRootStyles$6(),tt=j.size==="small"||j.size==="extra-small"||j.size==="tiny";j.root.className=mergeClasses(badgeClassNames.root,_e,tt&&et.fontSmallToTiny,et[j.size],et[j.shape],j.shape==="rounded"&&tt&&et.roundedSmallToTiny,j.appearance==="ghost"&&et.borderGhost,et[j.appearance],et[`${j.appearance}-${j.color}`],j.root.className);const rt=useIconRootClassName(),nt=useIconStyles$3();if(j.icon){let ot;j.root.children&&(j.size==="extra-large"?ot=j.iconPosition==="after"?nt.afterTextXL:nt.beforeTextXL:ot=j.iconPosition==="after"?nt.afterText:nt.beforeText),j.icon.className=mergeClasses(badgeClassNames.icon,rt,ot,nt[j.size],j.icon.className)}return j},renderBadge_unstable=j=>jsxs(j.root,{children:[j.iconPosition==="before"&&j.icon&&jsx$1(j.icon,{}),j.root.children,j.iconPosition==="after"&&j.icon&&jsx$1(j.icon,{})]}),Badge$2=reactExports.forwardRef((j,_e)=>{const et=useBadge_unstable(j,_e);return useBadgeStyles_unstable(et),useCustomStyleHook("useBadgeStyles_unstable")(et),renderBadge_unstable(et)});Badge$2.displayName="Badge";const useCounterBadge_unstable=(j,_e)=>{const{shape:et="circular",appearance:tt="filled",showZero:rt=!1,overflowCount:nt=99,count:ot=0,dot:it=!1}=j,st={...useBadge_unstable(j,_e),shape:et,appearance:tt,showZero:rt,count:ot,dot:it};return(ot!==0||rt)&&!it&&!st.root.children&&(st.root.children=ot>nt?`${nt}+`:`${ot}`),st},counterBadgeClassNames={root:"fui-CounterBadge",icon:"fui-CounterBadge__icon"},useStyles$w=__styles({dot:{Bf4jedk:"fgfkb25",a9b677:"f16dn6v3",Bqenvij:"f3mu39s",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"]},hide:{mc9l5x:"fjseox"}},{d:[".fgfkb25{min-width:auto;}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fjseox{display:none;}"]}),useCounterBadgeStyles_unstable=j=>{const _e=useStyles$w();return j.root.className=mergeClasses(counterBadgeClassNames.root,j.dot&&_e.dot,!j.root.children&&!j.dot&&_e.hide,j.root.className),j.icon&&(j.icon.className=mergeClasses(counterBadgeClassNames.icon,j.icon.className)),useBadgeStyles_unstable(j)},CounterBadge=reactExports.forwardRef((j,_e)=>{const et=useCounterBadge_unstable(j,_e);return useCounterBadgeStyles_unstable(et),useCustomStyleHook("useCounterBadgeStyles_unstable")(et),renderBadge_unstable(et)});CounterBadge.displayName="CounterBadge";function createVirtualElementFromClick(j){const _e=j.clientX,et=j.clientY,tt=_e+1,rt=et+1;function nt(){return{left:_e,top:et,right:tt,bottom:rt,x:_e,y:et,height:1,width:1}}return{getBoundingClientRect:nt}}const DATA_POSITIONING_INTERSECTING="data-popper-is-intersecting",DATA_POSITIONING_ESCAPED="data-popper-escaped",DATA_POSITIONING_HIDDEN="data-popper-reference-hidden",DATA_POSITIONING_PLACEMENT="data-popper-placement",sides=["top","right","bottom","left"],min$4=Math.min,max$4=Math.max,round$2=Math.round,createCoords=j=>({x:j,y:j}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(j,_e,et){return max$4(j,min$4(_e,et))}function evaluate(j,_e){return typeof j=="function"?j(_e):j}function getSide(j){return j.split("-")[0]}function getAlignment(j){return j.split("-")[1]}function getOppositeAxis(j){return j==="x"?"y":"x"}function getAxisLength(j){return j==="y"?"height":"width"}function getSideAxis(j){return["top","bottom"].includes(getSide(j))?"y":"x"}function getAlignmentAxis(j){return getOppositeAxis(getSideAxis(j))}function getAlignmentSides(j,_e,et){et===void 0&&(et=!1);const tt=getAlignment(j),rt=getAlignmentAxis(j),nt=getAxisLength(rt);let ot=rt==="x"?tt===(et?"end":"start")?"right":"left":tt==="start"?"bottom":"top";return _e.reference[nt]>_e.floating[nt]&&(ot=getOppositePlacement(ot)),[ot,getOppositePlacement(ot)]}function getExpandedPlacements(j){const _e=getOppositePlacement(j);return[getOppositeAlignmentPlacement(j),_e,getOppositeAlignmentPlacement(_e)]}function getOppositeAlignmentPlacement(j){return j.replace(/start|end/g,_e=>oppositeAlignmentMap[_e])}function getSideList(j,_e,et){const tt=["left","right"],rt=["right","left"],nt=["top","bottom"],ot=["bottom","top"];switch(j){case"top":case"bottom":return et?_e?rt:tt:_e?tt:rt;case"left":case"right":return _e?nt:ot;default:return[]}}function getOppositeAxisPlacements(j,_e,et,tt){const rt=getAlignment(j);let nt=getSideList(getSide(j),et==="start",tt);return rt&&(nt=nt.map(ot=>ot+"-"+rt),_e&&(nt=nt.concat(nt.map(getOppositeAlignmentPlacement)))),nt}function getOppositePlacement(j){return j.replace(/left|right|bottom|top/g,_e=>oppositeSideMap[_e])}function expandPaddingObject(j){return{top:0,right:0,bottom:0,left:0,...j}}function getPaddingObject(j){return typeof j!="number"?expandPaddingObject(j):{top:j,right:j,bottom:j,left:j}}function rectToClientRect(j){return{...j,top:j.y,left:j.x,right:j.x+j.width,bottom:j.y+j.height}}function computeCoordsFromPlacement(j,_e,et){let{reference:tt,floating:rt}=j;const nt=getSideAxis(_e),ot=getAlignmentAxis(_e),it=getAxisLength(ot),st=getSide(_e),lt=nt==="y",ut=tt.x+tt.width/2-rt.width/2,ct=tt.y+tt.height/2-rt.height/2,dt=tt[it]/2-rt[it]/2;let ft;switch(st){case"top":ft={x:ut,y:tt.y-rt.height};break;case"bottom":ft={x:ut,y:tt.y+tt.height};break;case"right":ft={x:tt.x+tt.width,y:ct};break;case"left":ft={x:tt.x-rt.width,y:ct};break;default:ft={x:tt.x,y:tt.y}}switch(getAlignment(_e)){case"start":ft[ot]-=dt*(et&<?-1:1);break;case"end":ft[ot]+=dt*(et&<?-1:1);break}return ft}const computePosition$1=async(j,_e,et)=>{const{placement:tt="bottom",strategy:rt="absolute",middleware:nt=[],platform:ot}=et,it=nt.filter(Boolean),st=await(ot.isRTL==null?void 0:ot.isRTL(_e));let lt=await ot.getElementRects({reference:j,floating:_e,strategy:rt}),{x:ut,y:ct}=computeCoordsFromPlacement(lt,tt,st),dt=tt,ft={},pt=0;for(let gt=0;gt({name:"arrow",options:j,async fn(_e){const{x:et,y:tt,placement:rt,rects:nt,platform:ot,elements:it,middlewareData:st}=_e,{element:lt,padding:ut=0}=evaluate(j,_e)||{};if(lt==null)return{};const ct=getPaddingObject(ut),dt={x:et,y:tt},ft=getAlignmentAxis(rt),pt=getAxisLength(ft),gt=await ot.getDimensions(lt),mt=ft==="y",bt=mt?"top":"left",_t=mt?"bottom":"right",xt=mt?"clientHeight":"clientWidth",yt=nt.reference[pt]+nt.reference[ft]-dt[ft]-nt.floating[pt],Et=dt[ft]-nt.reference[ft],St=await(ot.getOffsetParent==null?void 0:ot.getOffsetParent(lt));let Tt=St?St[xt]:0;(!Tt||!await(ot.isElement==null?void 0:ot.isElement(St)))&&(Tt=it.floating[xt]||nt.floating[pt]);const kt=yt/2-Et/2,$t=Tt/2-gt[pt]/2-1,Ct=min$4(ct[bt],$t),It=min$4(ct[_t],$t),Nt=Ct,Ot=Tt-gt[pt]-It,jt=Tt/2-gt[pt]/2+kt,Mt=clamp$2(Nt,jt,Ot),Rt=!st.arrow&&getAlignment(rt)!=null&&jt!=Mt&&nt.reference[pt]/2-(jtNt<=0)){var $t,Ct;const Nt=((($t=nt.flip)==null?void 0:$t.index)||0)+1,Ot=Et[Nt];if(Ot)return{data:{index:Nt,overflows:kt},reset:{placement:Ot}};let jt=(Ct=kt.filter(Mt=>Mt.overflows[0]<=0).sort((Mt,Rt)=>Mt.overflows[1]-Rt.overflows[1])[0])==null?void 0:Ct.placement;if(!jt)switch(ft){case"bestFit":{var It;const Mt=(It=kt.map(Rt=>[Rt.placement,Rt.overflows.filter(Lt=>Lt>0).reduce((Lt,Pt)=>Lt+Pt,0)]).sort((Rt,Lt)=>Rt[1]-Lt[1])[0])==null?void 0:It[0];Mt&&(jt=Mt);break}case"initialPlacement":jt=it;break}if(rt!==jt)return{reset:{placement:jt}}}return{}}}};function getSideOffsets(j,_e){return{top:j.top-_e.height,right:j.right-_e.width,bottom:j.bottom-_e.height,left:j.left-_e.width}}function isAnySideFullyClipped(j){return sides.some(_e=>j[_e]>=0)}const hide=function(j){return j===void 0&&(j={}),{name:"hide",options:j,async fn(_e){const{rects:et}=_e,{strategy:tt="referenceHidden",...rt}=evaluate(j,_e);switch(tt){case"referenceHidden":{const nt=await detectOverflow(_e,{...rt,elementContext:"reference"}),ot=getSideOffsets(nt,et.reference);return{data:{referenceHiddenOffsets:ot,referenceHidden:isAnySideFullyClipped(ot)}}}case"escaped":{const nt=await detectOverflow(_e,{...rt,altBoundary:!0}),ot=getSideOffsets(nt,et.floating);return{data:{escapedOffsets:ot,escaped:isAnySideFullyClipped(ot)}}}default:return{}}}}};async function convertValueToCoords(j,_e){const{placement:et,platform:tt,elements:rt}=j,nt=await(tt.isRTL==null?void 0:tt.isRTL(rt.floating)),ot=getSide(et),it=getAlignment(et),st=getSideAxis(et)==="y",lt=["left","top"].includes(ot)?-1:1,ut=nt&&st?-1:1,ct=evaluate(_e,j);let{mainAxis:dt,crossAxis:ft,alignmentAxis:pt}=typeof ct=="number"?{mainAxis:ct,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ct};return it&&typeof pt=="number"&&(ft=it==="end"?pt*-1:pt),st?{x:ft*ut,y:dt*lt}:{x:dt*lt,y:ft*ut}}const offset$1=function(j){return j===void 0&&(j=0),{name:"offset",options:j,async fn(_e){var et,tt;const{x:rt,y:nt,placement:ot,middlewareData:it}=_e,st=await convertValueToCoords(_e,j);return ot===((et=it.offset)==null?void 0:et.placement)&&(tt=it.arrow)!=null&&tt.alignmentOffset?{}:{x:rt+st.x,y:nt+st.y,data:{...st,placement:ot}}}}},shift$1=function(j){return j===void 0&&(j={}),{name:"shift",options:j,async fn(_e){const{x:et,y:tt,placement:rt}=_e,{mainAxis:nt=!0,crossAxis:ot=!1,limiter:it={fn:mt=>{let{x:bt,y:_t}=mt;return{x:bt,y:_t}}},...st}=evaluate(j,_e),lt={x:et,y:tt},ut=await detectOverflow(_e,st),ct=getSideAxis(getSide(rt)),dt=getOppositeAxis(ct);let ft=lt[dt],pt=lt[ct];if(nt){const mt=dt==="y"?"top":"left",bt=dt==="y"?"bottom":"right",_t=ft+ut[mt],xt=ft-ut[bt];ft=clamp$2(_t,ft,xt)}if(ot){const mt=ct==="y"?"top":"left",bt=ct==="y"?"bottom":"right",_t=pt+ut[mt],xt=pt-ut[bt];pt=clamp$2(_t,pt,xt)}const gt=it.fn({..._e,[dt]:ft,[ct]:pt});return{...gt,data:{x:gt.x-et,y:gt.y-tt}}}}},limitShift=function(j){return j===void 0&&(j={}),{options:j,fn(_e){const{x:et,y:tt,placement:rt,rects:nt,middlewareData:ot}=_e,{offset:it=0,mainAxis:st=!0,crossAxis:lt=!0}=evaluate(j,_e),ut={x:et,y:tt},ct=getSideAxis(rt),dt=getOppositeAxis(ct);let ft=ut[dt],pt=ut[ct];const gt=evaluate(it,_e),mt=typeof gt=="number"?{mainAxis:gt,crossAxis:0}:{mainAxis:0,crossAxis:0,...gt};if(st){const xt=dt==="y"?"height":"width",yt=nt.reference[dt]-nt.floating[xt]+mt.mainAxis,Et=nt.reference[dt]+nt.reference[xt]-mt.mainAxis;ftEt&&(ft=Et)}if(lt){var bt,_t;const xt=dt==="y"?"width":"height",yt=["top","left"].includes(getSide(rt)),Et=nt.reference[ct]-nt.floating[xt]+(yt&&((bt=ot.offset)==null?void 0:bt[ct])||0)+(yt?0:mt.crossAxis),St=nt.reference[ct]+nt.reference[xt]+(yt?0:((_t=ot.offset)==null?void 0:_t[ct])||0)-(yt?mt.crossAxis:0);ptSt&&(pt=St)}return{[dt]:ft,[ct]:pt}}}},size=function(j){return j===void 0&&(j={}),{name:"size",options:j,async fn(_e){const{placement:et,rects:tt,platform:rt,elements:nt}=_e,{apply:ot=()=>{},...it}=evaluate(j,_e),st=await detectOverflow(_e,it),lt=getSide(et),ut=getAlignment(et),ct=getSideAxis(et)==="y",{width:dt,height:ft}=tt.floating;let pt,gt;lt==="top"||lt==="bottom"?(pt=lt,gt=ut===(await(rt.isRTL==null?void 0:rt.isRTL(nt.floating))?"start":"end")?"left":"right"):(gt=lt,pt=ut==="end"?"top":"bottom");const mt=ft-st[pt],bt=dt-st[gt],_t=!_e.middlewareData.shift;let xt=mt,yt=bt;if(ct){const St=dt-st.left-st.right;yt=ut||_t?min$4(bt,St):St}else{const St=ft-st.top-st.bottom;xt=ut||_t?min$4(mt,St):St}if(_t&&!ut){const St=max$4(st.left,0),Tt=max$4(st.right,0),kt=max$4(st.top,0),$t=max$4(st.bottom,0);ct?yt=dt-2*(St!==0||Tt!==0?St+Tt:max$4(st.left,st.right)):xt=ft-2*(kt!==0||$t!==0?kt+$t:max$4(st.top,st.bottom))}await ot({..._e,availableWidth:yt,availableHeight:xt});const Et=await rt.getDimensions(nt.floating);return dt!==Et.width||ft!==Et.height?{reset:{rects:!0}}:{}}}};function getNodeName(j){return isNode(j)?(j.nodeName||"").toLowerCase():"#document"}function getWindow$1(j){var _e;return(j==null||(_e=j.ownerDocument)==null?void 0:_e.defaultView)||window}function getDocumentElement(j){var _e;return(_e=(isNode(j)?j.ownerDocument:j.document)||window.document)==null?void 0:_e.documentElement}function isNode(j){return j instanceof Node||j instanceof getWindow$1(j).Node}function isElement$1(j){return j instanceof Element||j instanceof getWindow$1(j).Element}function isHTMLElement$2(j){return j instanceof HTMLElement||j instanceof getWindow$1(j).HTMLElement}function isShadowRoot(j){return typeof ShadowRoot>"u"?!1:j instanceof ShadowRoot||j instanceof getWindow$1(j).ShadowRoot}function isOverflowElement(j){const{overflow:_e,overflowX:et,overflowY:tt,display:rt}=getComputedStyle$1(j);return/auto|scroll|overlay|hidden|clip/.test(_e+tt+et)&&!["inline","contents"].includes(rt)}function isTableElement(j){return["table","td","th"].includes(getNodeName(j))}function isContainingBlock(j){const _e=isWebKit(),et=getComputedStyle$1(j);return et.transform!=="none"||et.perspective!=="none"||(et.containerType?et.containerType!=="normal":!1)||!_e&&(et.backdropFilter?et.backdropFilter!=="none":!1)||!_e&&(et.filter?et.filter!=="none":!1)||["transform","perspective","filter"].some(tt=>(et.willChange||"").includes(tt))||["paint","layout","strict","content"].some(tt=>(et.contain||"").includes(tt))}function getContainingBlock(j){let _e=getParentNode$1(j);for(;isHTMLElement$2(_e)&&!isLastTraversableNode(_e);){if(isContainingBlock(_e))return _e;_e=getParentNode$1(_e)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(j){return["html","body","#document"].includes(getNodeName(j))}function getComputedStyle$1(j){return getWindow$1(j).getComputedStyle(j)}function getNodeScroll(j){return isElement$1(j)?{scrollLeft:j.scrollLeft,scrollTop:j.scrollTop}:{scrollLeft:j.pageXOffset,scrollTop:j.pageYOffset}}function getParentNode$1(j){if(getNodeName(j)==="html")return j;const _e=j.assignedSlot||j.parentNode||isShadowRoot(j)&&j.host||getDocumentElement(j);return isShadowRoot(_e)?_e.host:_e}function getNearestOverflowAncestor(j){const _e=getParentNode$1(j);return isLastTraversableNode(_e)?j.ownerDocument?j.ownerDocument.body:j.body:isHTMLElement$2(_e)&&isOverflowElement(_e)?_e:getNearestOverflowAncestor(_e)}function getOverflowAncestors(j,_e,et){var tt;_e===void 0&&(_e=[]),et===void 0&&(et=!0);const rt=getNearestOverflowAncestor(j),nt=rt===((tt=j.ownerDocument)==null?void 0:tt.body),ot=getWindow$1(rt);return nt?_e.concat(ot,ot.visualViewport||[],isOverflowElement(rt)?rt:[],ot.frameElement&&et?getOverflowAncestors(ot.frameElement):[]):_e.concat(rt,getOverflowAncestors(rt,[],et))}function getCssDimensions(j){const _e=getComputedStyle$1(j);let et=parseFloat(_e.width)||0,tt=parseFloat(_e.height)||0;const rt=isHTMLElement$2(j),nt=rt?j.offsetWidth:et,ot=rt?j.offsetHeight:tt,it=round$2(et)!==nt||round$2(tt)!==ot;return it&&(et=nt,tt=ot),{width:et,height:tt,$:it}}function unwrapElement(j){return isElement$1(j)?j:j.contextElement}function getScale(j){const _e=unwrapElement(j);if(!isHTMLElement$2(_e))return createCoords(1);const et=_e.getBoundingClientRect(),{width:tt,height:rt,$:nt}=getCssDimensions(_e);let ot=(nt?round$2(et.width):et.width)/tt,it=(nt?round$2(et.height):et.height)/rt;return(!ot||!Number.isFinite(ot))&&(ot=1),(!it||!Number.isFinite(it))&&(it=1),{x:ot,y:it}}const noOffsets=createCoords(0);function getVisualOffsets(j){const _e=getWindow$1(j);return!isWebKit()||!_e.visualViewport?noOffsets:{x:_e.visualViewport.offsetLeft,y:_e.visualViewport.offsetTop}}function shouldAddVisualOffsets(j,_e,et){return _e===void 0&&(_e=!1),!et||_e&&et!==getWindow$1(j)?!1:_e}function getBoundingClientRect(j,_e,et,tt){_e===void 0&&(_e=!1),et===void 0&&(et=!1);const rt=j.getBoundingClientRect(),nt=unwrapElement(j);let ot=createCoords(1);_e&&(tt?isElement$1(tt)&&(ot=getScale(tt)):ot=getScale(j));const it=shouldAddVisualOffsets(nt,et,tt)?getVisualOffsets(nt):createCoords(0);let st=(rt.left+it.x)/ot.x,lt=(rt.top+it.y)/ot.y,ut=rt.width/ot.x,ct=rt.height/ot.y;if(nt){const dt=getWindow$1(nt),ft=tt&&isElement$1(tt)?getWindow$1(tt):tt;let pt=dt.frameElement;for(;pt&&tt&&ft!==dt;){const gt=getScale(pt),mt=pt.getBoundingClientRect(),bt=getComputedStyle$1(pt),_t=mt.left+(pt.clientLeft+parseFloat(bt.paddingLeft))*gt.x,xt=mt.top+(pt.clientTop+parseFloat(bt.paddingTop))*gt.y;st*=gt.x,lt*=gt.y,ut*=gt.x,ct*=gt.y,st+=_t,lt+=xt,pt=getWindow$1(pt).frameElement}}return rectToClientRect({width:ut,height:ct,x:st,y:lt})}function convertOffsetParentRelativeRectToViewportRelativeRect(j){let{rect:_e,offsetParent:et,strategy:tt}=j;const rt=isHTMLElement$2(et),nt=getDocumentElement(et);if(et===nt)return _e;let ot={scrollLeft:0,scrollTop:0},it=createCoords(1);const st=createCoords(0);if((rt||!rt&&tt!=="fixed")&&((getNodeName(et)!=="body"||isOverflowElement(nt))&&(ot=getNodeScroll(et)),isHTMLElement$2(et))){const lt=getBoundingClientRect(et);it=getScale(et),st.x=lt.x+et.clientLeft,st.y=lt.y+et.clientTop}return{width:_e.width*it.x,height:_e.height*it.y,x:_e.x*it.x-ot.scrollLeft*it.x+st.x,y:_e.y*it.y-ot.scrollTop*it.y+st.y}}function getClientRects(j){return Array.from(j.getClientRects())}function getWindowScrollBarX(j){return getBoundingClientRect(getDocumentElement(j)).left+getNodeScroll(j).scrollLeft}function getDocumentRect(j){const _e=getDocumentElement(j),et=getNodeScroll(j),tt=j.ownerDocument.body,rt=max$4(_e.scrollWidth,_e.clientWidth,tt.scrollWidth,tt.clientWidth),nt=max$4(_e.scrollHeight,_e.clientHeight,tt.scrollHeight,tt.clientHeight);let ot=-et.scrollLeft+getWindowScrollBarX(j);const it=-et.scrollTop;return getComputedStyle$1(tt).direction==="rtl"&&(ot+=max$4(_e.clientWidth,tt.clientWidth)-rt),{width:rt,height:nt,x:ot,y:it}}function getViewportRect(j,_e){const et=getWindow$1(j),tt=getDocumentElement(j),rt=et.visualViewport;let nt=tt.clientWidth,ot=tt.clientHeight,it=0,st=0;if(rt){nt=rt.width,ot=rt.height;const lt=isWebKit();(!lt||lt&&_e==="fixed")&&(it=rt.offsetLeft,st=rt.offsetTop)}return{width:nt,height:ot,x:it,y:st}}function getInnerBoundingClientRect(j,_e){const et=getBoundingClientRect(j,!0,_e==="fixed"),tt=et.top+j.clientTop,rt=et.left+j.clientLeft,nt=isHTMLElement$2(j)?getScale(j):createCoords(1),ot=j.clientWidth*nt.x,it=j.clientHeight*nt.y,st=rt*nt.x,lt=tt*nt.y;return{width:ot,height:it,x:st,y:lt}}function getClientRectFromClippingAncestor(j,_e,et){let tt;if(_e==="viewport")tt=getViewportRect(j,et);else if(_e==="document")tt=getDocumentRect(getDocumentElement(j));else if(isElement$1(_e))tt=getInnerBoundingClientRect(_e,et);else{const rt=getVisualOffsets(j);tt={..._e,x:_e.x-rt.x,y:_e.y-rt.y}}return rectToClientRect(tt)}function hasFixedPositionAncestor(j,_e){const et=getParentNode$1(j);return et===_e||!isElement$1(et)||isLastTraversableNode(et)?!1:getComputedStyle$1(et).position==="fixed"||hasFixedPositionAncestor(et,_e)}function getClippingElementAncestors(j,_e){const et=_e.get(j);if(et)return et;let tt=getOverflowAncestors(j,[],!1).filter(it=>isElement$1(it)&&getNodeName(it)!=="body"),rt=null;const nt=getComputedStyle$1(j).position==="fixed";let ot=nt?getParentNode$1(j):j;for(;isElement$1(ot)&&!isLastTraversableNode(ot);){const it=getComputedStyle$1(ot),st=isContainingBlock(ot);!st&&it.position==="fixed"&&(rt=null),(nt?!st&&!rt:!st&&it.position==="static"&&!!rt&&["absolute","fixed"].includes(rt.position)||isOverflowElement(ot)&&!st&&hasFixedPositionAncestor(j,ot))?tt=tt.filter(ut=>ut!==ot):rt=it,ot=getParentNode$1(ot)}return _e.set(j,tt),tt}function getClippingRect(j){let{element:_e,boundary:et,rootBoundary:tt,strategy:rt}=j;const ot=[...et==="clippingAncestors"?getClippingElementAncestors(_e,this._c):[].concat(et),tt],it=ot[0],st=ot.reduce((lt,ut)=>{const ct=getClientRectFromClippingAncestor(_e,ut,rt);return lt.top=max$4(ct.top,lt.top),lt.right=min$4(ct.right,lt.right),lt.bottom=min$4(ct.bottom,lt.bottom),lt.left=max$4(ct.left,lt.left),lt},getClientRectFromClippingAncestor(_e,it,rt));return{width:st.right-st.left,height:st.bottom-st.top,x:st.left,y:st.top}}function getDimensions(j){return getCssDimensions(j)}function getRectRelativeToOffsetParent(j,_e,et){const tt=isHTMLElement$2(_e),rt=getDocumentElement(_e),nt=et==="fixed",ot=getBoundingClientRect(j,!0,nt,_e);let it={scrollLeft:0,scrollTop:0};const st=createCoords(0);if(tt||!tt&&!nt)if((getNodeName(_e)!=="body"||isOverflowElement(rt))&&(it=getNodeScroll(_e)),tt){const lt=getBoundingClientRect(_e,!0,nt,_e);st.x=lt.x+_e.clientLeft,st.y=lt.y+_e.clientTop}else rt&&(st.x=getWindowScrollBarX(rt));return{x:ot.left+it.scrollLeft-st.x,y:ot.top+it.scrollTop-st.y,width:ot.width,height:ot.height}}function getTrueOffsetParent(j,_e){return!isHTMLElement$2(j)||getComputedStyle$1(j).position==="fixed"?null:_e?_e(j):j.offsetParent}function getOffsetParent(j,_e){const et=getWindow$1(j);if(!isHTMLElement$2(j))return et;let tt=getTrueOffsetParent(j,_e);for(;tt&&isTableElement(tt)&&getComputedStyle$1(tt).position==="static";)tt=getTrueOffsetParent(tt,_e);return tt&&(getNodeName(tt)==="html"||getNodeName(tt)==="body"&&getComputedStyle$1(tt).position==="static"&&!isContainingBlock(tt))?et:tt||getContainingBlock(j)||et}const getElementRects=async function(j){let{reference:_e,floating:et,strategy:tt}=j;const rt=this.getOffsetParent||getOffsetParent,nt=this.getDimensions;return{reference:getRectRelativeToOffsetParent(_e,await rt(et),tt),floating:{x:0,y:0,...await nt(et)}}};function isRTL(j){return getComputedStyle$1(j).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$1,isRTL},computePosition=(j,_e,et)=>{const tt=new Map,rt={platform,...et},nt={...rt.platform,_c:tt};return computePosition$1(j,_e,{...rt,platform:nt})};function parseFloatingUIPlacement(j){const _e=j.split("-");return{side:_e[0],alignment:_e[1]}}const getParentNode=j=>j.nodeName==="HTML"?j:j.parentNode||j.host,getStyleComputedProperty=j=>{var _e;return j.nodeType!==1?{}:((_e=j.ownerDocument)===null||_e===void 0?void 0:_e.defaultView).getComputedStyle(j,null)},getScrollParent=j=>{const _e=j&&getParentNode(j);if(!_e)return document.body;switch(_e.nodeName){case"HTML":case"BODY":return _e.ownerDocument.body;case"#document":return _e.body}const{overflow:et,overflowX:tt,overflowY:rt}=getStyleComputedProperty(_e);return/(auto|scroll|overlay)/.test(et+rt+tt)?_e:getScrollParent(_e)},hasScrollParent=j=>{var _e;const et=getScrollParent(j);return et?et!==((_e=et.ownerDocument)===null||_e===void 0?void 0:_e.body):!1};function getBoundary(j,_e){if(_e==="window")return j==null?void 0:j.ownerDocument.documentElement;if(_e==="clippingParents")return"clippingAncestors";if(_e==="scrollParent"){let et=getScrollParent(j);return et.nodeName==="BODY"&&(et=j==null?void 0:j.ownerDocument.documentElement),et}return _e}function mergeArrowOffset(j,_e){return typeof j=="number"||typeof j=="object"&&j!==null?addArrowOffset(j,_e):typeof j=="function"?et=>{const tt=j(et);return addArrowOffset(tt,_e)}:{mainAxis:_e}}const addArrowOffset=(j,_e)=>{if(typeof j=="number")return{mainAxis:j+_e};var et;return{...j,mainAxis:((et=j.mainAxis)!==null&&et!==void 0?et:0)+_e}};function toFloatingUIPadding(j,_e){if(typeof j=="number")return j;const{start:et,end:tt,...rt}=j,nt=rt,ot=_e?"end":"start",it=_e?"start":"end";return j[ot]&&(nt.left=j[ot]),j[it]&&(nt.right=j[it]),nt}const getPositionMap$1=j=>({above:"top",below:"bottom",before:j?"right":"left",after:j?"left":"right"}),getAlignmentMap$1=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),shouldAlignToCenter=(j,_e)=>{const et=j==="above"||j==="below",tt=_e==="top"||_e==="bottom";return et&&tt||!et&&!tt},toFloatingUIPlacement=(j,_e,et)=>{const tt=shouldAlignToCenter(_e,j)?"center":j,rt=_e&&getPositionMap$1(et)[_e],nt=tt&&getAlignmentMap$1()[tt];return rt&&nt?`${rt}-${nt}`:rt},getPositionMap=()=>({top:"above",bottom:"below",right:"after",left:"before"}),getAlignmentMap=j=>j==="above"||j==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},fromFloatingUIPlacement=j=>{const{side:_e,alignment:et}=parseFloatingUIPlacement(j),tt=getPositionMap()[_e],rt=et&&getAlignmentMap(tt)[et];return{position:tt,alignment:rt}},shorthandLookup={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function resolvePositioningShorthand(j){return j==null?{}:typeof j=="string"?shorthandLookup[j]:j}function useCallbackRef(j,_e,et){const tt=reactExports.useRef(!0),[rt]=reactExports.useState(()=>({value:j,callback:_e,facade:{get current(){return rt.value},set current(nt){const ot=rt.value;if(ot!==nt){if(rt.value=nt,et&&tt.current)return;rt.callback(nt,ot)}}}}));return useIsomorphicLayoutEffect$1(()=>{tt.current=!1},[]),rt.callback=_e,rt.facade}function debounce$3(j){let _e;return()=>(_e||(_e=new Promise(et=>{Promise.resolve().then(()=>{_e=void 0,et(j())})})),_e)}function writeArrowUpdates(j){const{arrow:_e,middlewareData:et}=j;if(!et.arrow||!_e)return;const{x:tt,y:rt}=et.arrow;Object.assign(_e.style,{left:`${tt}px`,top:`${rt}px`})}function writeContainerUpdates(j){var _e,et,tt;const{container:rt,placement:nt,middlewareData:ot,strategy:it,lowPPI:st,coordinates:lt,useTransform:ut=!0}=j;if(!rt)return;rt.setAttribute(DATA_POSITIONING_PLACEMENT,nt),rt.removeAttribute(DATA_POSITIONING_INTERSECTING),ot.intersectionObserver.intersecting&&rt.setAttribute(DATA_POSITIONING_INTERSECTING,""),rt.removeAttribute(DATA_POSITIONING_ESCAPED),!((_e=ot.hide)===null||_e===void 0)&&_e.escaped&&rt.setAttribute(DATA_POSITIONING_ESCAPED,""),rt.removeAttribute(DATA_POSITIONING_HIDDEN),!((et=ot.hide)===null||et===void 0)&&et.referenceHidden&&rt.setAttribute(DATA_POSITIONING_HIDDEN,"");const ct=((tt=rt.ownerDocument.defaultView)===null||tt===void 0?void 0:tt.devicePixelRatio)||1,dt=Math.round(lt.x*ct)/ct,ft=Math.round(lt.y*ct)/ct;if(Object.assign(rt.style,{position:it}),ut){Object.assign(rt.style,{transform:st?`translate(${dt}px, ${ft}px)`:`translate3d(${dt}px, ${ft}px, 0)`});return}Object.assign(rt.style,{left:`${dt}px`,top:`${ft}px`})}const normalizeAutoSize=j=>{switch(j){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function coverTarget(){return{name:"coverTarget",fn:j=>{const{placement:_e,rects:et,x:tt,y:rt}=j,nt=parseFloatingUIPlacement(_e).side,ot={x:tt,y:rt};switch(nt){case"bottom":ot.y-=et.reference.height;break;case"top":ot.y+=et.reference.height;break;case"left":ot.x+=et.reference.width;break;case"right":ot.x-=et.reference.width;break}return ot}}}function flip(j){const{hasScrollableElement:_e,flipBoundary:et,container:tt,fallbackPositions:rt=[],isRtl:nt}=j,ot=rt.reduce((it,st)=>{const{position:lt,align:ut}=resolvePositioningShorthand(st),ct=toFloatingUIPlacement(ut,lt,nt);return ct&&it.push(ct),it},[]);return flip$1({..._e&&{boundary:"clippingAncestors"},...et&&{altBoundary:!0,boundary:getBoundary(tt,et)},fallbackStrategy:"bestFit",...ot.length&&{fallbackPlacements:ot}})}function intersecting(){return{name:"intersectionObserver",fn:async j=>{const _e=j.rects.floating,et=await detectOverflow(j,{altBoundary:!0}),tt=et.top<_e.height&&et.top>0,rt=et.bottom<_e.height&&et.bottom>0;return{data:{intersecting:tt||rt}}}}}const resetMaxSize=j=>({name:"resetMaxSize",fn({middlewareData:_e,elements:et}){var tt;if(!((tt=_e.resetMaxSize)===null||tt===void 0)&&tt.maxSizeAlreadyReset)return{};const{applyMaxWidth:rt,applyMaxHeight:nt}=j;return rt&&(et.floating.style.removeProperty("box-sizing"),et.floating.style.removeProperty("max-width"),et.floating.style.removeProperty("width")),nt&&(et.floating.style.removeProperty("box-sizing"),et.floating.style.removeProperty("max-height"),et.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function maxSize(j,_e){const{container:et,overflowBoundary:tt}=_e;return size({...tt&&{altBoundary:!0,boundary:getBoundary(et,tt)},apply({availableHeight:rt,availableWidth:nt,elements:ot,rects:it}){const st=(ct,dt,ft)=>{if(ct&&(ot.floating.style.setProperty("box-sizing","border-box"),ot.floating.style.setProperty(`max-${dt}`,`${ft}px`),it.floating[dt]>ft)){ot.floating.style.setProperty(dt,`${ft}px`);const pt=dt==="width"?"x":"y";ot.floating.style.getPropertyValue(`overflow-${pt}`)||ot.floating.style.setProperty(`overflow-${pt}`,"auto")}},{applyMaxWidth:lt,applyMaxHeight:ut}=j;st(lt,"width",nt),st(ut,"height",rt)}})}function getFloatingUIOffset(j){return!j||typeof j=="number"||typeof j=="object"?j:({rects:{floating:_e,reference:et},placement:tt})=>{const{position:rt,alignment:nt}=fromFloatingUIPlacement(tt);return j({positionedRect:_e,targetRect:et,position:rt,alignment:nt})}}function offset(j){const _e=getFloatingUIOffset(j);return offset$1(_e)}function shift(j){const{hasScrollableElement:_e,disableTether:et,overflowBoundary:tt,container:rt,overflowBoundaryPadding:nt,isRtl:ot}=j;return shift$1({..._e&&{boundary:"clippingAncestors"},...et&&{crossAxis:et==="all",limiter:limitShift({crossAxis:et!=="all",mainAxis:!1})},...nt&&{padding:toFloatingUIPadding(nt,ot)},...tt&&{altBoundary:!0,boundary:getBoundary(rt,tt)}})}const matchTargetSizeCssVar="--fui-match-target-size";function matchTargetSize(){return{name:"matchTargetSize",fn:async j=>{const{rects:{reference:_e,floating:et},elements:{floating:tt},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:rt=!1}={}}}=j;if(_e.width===et.width||rt)return{};const{width:nt}=_e;return tt.style.setProperty(matchTargetSizeCssVar,`${nt}px`),tt.style.width||(tt.style.width=`var(${matchTargetSizeCssVar})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function listScrollParents(j){const _e=[];let et=j;for(;et;){const tt=getScrollParent(et);if(j.ownerDocument.body===tt){_e.push(tt);break}_e.push(tt),et=tt}return _e}function createPositionManager(j){const{container:_e,target:et,arrow:tt,strategy:rt,middleware:nt,placement:ot,useTransform:it=!0}=j;let st=!1;if(!et||!_e)return{updatePosition:()=>{},dispose:()=>{}};let lt=!0;const ut=new Set,ct=_e.ownerDocument.defaultView;Object.assign(_e.style,{position:"fixed",left:0,top:0,margin:0});const dt=()=>{st||(lt&&(listScrollParents(_e).forEach(gt=>ut.add(gt)),isHTMLElement$4(et)&&listScrollParents(et).forEach(gt=>ut.add(gt)),ut.forEach(gt=>{gt.addEventListener("scroll",ft,{passive:!0})}),lt=!1),Object.assign(_e.style,{position:rt}),computePosition(et,_e,{placement:ot,middleware:nt,strategy:rt}).then(({x:gt,y:mt,middlewareData:bt,placement:_t})=>{st||(writeArrowUpdates({arrow:tt,middlewareData:bt}),writeContainerUpdates({container:_e,middlewareData:bt,placement:_t,coordinates:{x:gt,y:mt},lowPPI:((ct==null?void 0:ct.devicePixelRatio)||1)<=1,strategy:rt,useTransform:it}))}).catch(gt=>{}))},ft=debounce$3(()=>dt()),pt=()=>{st=!0,ct&&(ct.removeEventListener("scroll",ft),ct.removeEventListener("resize",ft)),ut.forEach(gt=>{gt.removeEventListener("scroll",ft)}),ut.clear()};return ct&&(ct.addEventListener("scroll",ft,{passive:!0}),ct.addEventListener("resize",ft)),ft(),{updatePosition:ft,dispose:pt}}function usePositioning(j){const _e=reactExports.useRef(null),et=reactExports.useRef(null),tt=reactExports.useRef(null),rt=reactExports.useRef(null),nt=reactExports.useRef(null),{enabled:ot=!0}=j,it=usePositioningOptions(j),st=reactExports.useCallback(()=>{_e.current&&_e.current.dispose(),_e.current=null;var ft;const pt=(ft=tt.current)!==null&&ft!==void 0?ft:et.current;ot&&canUseDOM$3()&&pt&&rt.current&&(_e.current=createPositionManager({container:rt.current,target:pt,arrow:nt.current,...it(rt.current,nt.current)}))},[ot,it]),lt=useEventCallback$3(ft=>{tt.current=ft,st()});reactExports.useImperativeHandle(j.positioningRef,()=>({updatePosition:()=>{var ft;return(ft=_e.current)===null||ft===void 0?void 0:ft.updatePosition()},setTarget:ft=>{j.target,lt(ft)}}),[j.target,lt]),useIsomorphicLayoutEffect$1(()=>{var ft;lt((ft=j.target)!==null&&ft!==void 0?ft:null)},[j.target,lt]),useIsomorphicLayoutEffect$1(()=>{st()},[st]);const ut=useCallbackRef(null,ft=>{et.current!==ft&&(et.current=ft,st())}),ct=useCallbackRef(null,ft=>{rt.current!==ft&&(rt.current=ft,st())}),dt=useCallbackRef(null,ft=>{nt.current!==ft&&(nt.current=ft,st())});return{targetRef:ut,containerRef:ct,arrowRef:dt}}function usePositioningOptions(j){const{align:_e,arrowPadding:et,autoSize:tt,coverTarget:rt,flipBoundary:nt,offset:ot,overflowBoundary:it,pinned:st,position:lt,unstable_disableTether:ut,positionFixed:ct,strategy:dt,overflowBoundaryPadding:ft,fallbackPositions:pt,useTransform:gt,matchTargetSize:mt}=j,{dir:bt,targetDocument:_t}=useFluent(),xt=bt==="rtl",yt=dt??ct?"fixed":"absolute",Et=normalizeAutoSize(tt);return reactExports.useCallback((St,Tt)=>{const kt=hasScrollParent(St),$t=[Et&&resetMaxSize(Et),mt&&matchTargetSize(),ot&&offset(ot),rt&&coverTarget(),!st&&flip({container:St,flipBoundary:nt,hasScrollableElement:kt,isRtl:xt,fallbackPositions:pt}),shift({container:St,hasScrollableElement:kt,overflowBoundary:it,disableTether:ut,overflowBoundaryPadding:ft,isRtl:xt}),Et&&maxSize(Et,{container:St,overflowBoundary:it}),intersecting(),Tt&&arrow$1({element:Tt,padding:et}),hide({strategy:"referenceHidden"}),hide({strategy:"escaped"}),!1].filter(Boolean);return{placement:toFloatingUIPlacement(_e,lt,xt),middleware:$t,strategy:yt,useTransform:gt}},[_e,et,Et,rt,ut,nt,xt,ot,it,st,lt,yt,ft,pt,gt,mt,_t])}const usePositioningMouseTarget=j=>{const[_e,et]=reactExports.useState(j);return[_e,rt=>{if(rt==null){et(void 0);return}let nt;rt instanceof MouseEvent?nt=rt:nt=rt.nativeEvent,nt instanceof MouseEvent;const ot=createVirtualElementFromClick(nt);et(ot)}]},PopoverContext=createContext(void 0),popoverContextDefaultValue={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};PopoverContext.Provider;const usePopoverContext_unstable=j=>useContextSelector(PopoverContext,(_e=popoverContextDefaultValue)=>j(_e)),usePopoverSurface_unstable=(j,_e)=>{const et=usePopoverContext_unstable(_t=>_t.contentRef),tt=usePopoverContext_unstable(_t=>_t.openOnHover),rt=usePopoverContext_unstable(_t=>_t.setOpen),nt=usePopoverContext_unstable(_t=>_t.mountNode),ot=usePopoverContext_unstable(_t=>_t.arrowRef),it=usePopoverContext_unstable(_t=>_t.size),st=usePopoverContext_unstable(_t=>_t.withArrow),lt=usePopoverContext_unstable(_t=>_t.appearance),ut=usePopoverContext_unstable(_t=>_t.trapFocus),ct=usePopoverContext_unstable(_t=>_t.inertTrapFocus),dt=usePopoverContext_unstable(_t=>_t.inline),{modalAttributes:ft}=useModalAttributes({trapFocus:ut,legacyTrapFocus:!ct,alwaysFocusable:!ut}),pt={inline:dt,appearance:lt,withArrow:st,size:it,arrowRef:ot,mountNode:nt,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(_e,et),role:ut?"dialog":"group","aria-modal":ut?!0:void 0,...ft,...j}),{elementType:"div"})},{onMouseEnter:gt,onMouseLeave:mt,onKeyDown:bt}=pt.root;return pt.root.onMouseEnter=_t=>{tt&&rt(_t,!0),gt==null||gt(_t)},pt.root.onMouseLeave=_t=>{tt&&rt(_t,!1),mt==null||mt(_t)},pt.root.onKeyDown=_t=>{var xt;_t.key==="Escape"&&(!((xt=et.current)===null||xt===void 0)&&xt.contains(_t.target))&&(_t.preventDefault(),rt(_t,!1)),bt==null||bt(_t)},pt};function toMountNodeProps(j){return isHTMLElement$4(j)?{element:j}:typeof j=="object"?j===null?{element:null}:j:{}}var getCurrentOwner=()=>reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,useIsStrictMode=()=>!1,effectSet=new WeakSet;function useStrictEffect(j,_e){const et=getCurrentOwner();reactExports.useEffect(()=>{if(!effectSet.has(et)){effectSet.add(et),j();return}return j()},_e)}var memoSet=new WeakSet;function useStrictMemo(j,_e){return reactExports.useMemo(()=>{const et=getCurrentOwner();return memoSet.has(et)?j():(memoSet.add(et),null)},_e)}function useDisposable(j,_e){var et;const tt=useIsStrictMode()&&!1,rt=tt?useStrictMemo:reactExports.useMemo,nt=tt?useStrictEffect:reactExports.useEffect,[ot,it]=(et=rt(()=>j(),_e))!=null?et:[null,()=>null];return nt(()=>it,_e),ot}const usePortalMountNodeStylesStyles=__styles({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),useInsertionEffect=React$1.useInsertionEffect,usePortalMountNode=j=>{const{targetDocument:_e,dir:et}=useFluent(),tt=usePortalMountNode$1(),rt=useFocusVisible(),nt=usePortalMountNodeStylesStyles(),ot=useThemeClassName(),it=mergeClasses(ot,nt.root,j.className),st=tt??(_e==null?void 0:_e.body),lt=useDisposable(()=>{if(st===void 0||j.disabled)return[null,()=>null];const ut=st.ownerDocument.createElement("div");return st.appendChild(ut),[ut,()=>ut.remove()]},[st]);return useInsertionEffect?useInsertionEffect(()=>{if(!lt)return;const ut=it.split(" ").filter(Boolean);return lt.classList.add(...ut),lt.setAttribute("dir",et),rt.current=lt,()=>{lt.classList.remove(...ut),lt.removeAttribute("dir")}},[it,et,lt,rt]):reactExports.useMemo(()=>{lt&&(lt.className=it,lt.setAttribute("dir",et),rt.current=lt)},[it,et,lt,rt]),lt},usePortal_unstable=j=>{const{element:_e,className:et}=toMountNodeProps(j.mountNode),tt=reactExports.useRef(null),rt=usePortalMountNode({disabled:!!_e,className:et}),nt=_e??rt,ot={children:j.children,mountNode:nt,virtualParentRootRef:tt};return reactExports.useEffect(()=>{if(!nt)return;const it=tt.current,st=nt.contains(it);if(it&&!st)return setVirtualParent$1(nt,it),()=>{setVirtualParent$1(nt,void 0)}},[tt,nt]),ot},renderPortal_unstable=j=>reactExports.createElement("span",{hidden:!0,ref:j.virtualParentRootRef},j.mountNode&&reactDomExports.createPortal(j.children,j.mountNode)),Portal$1=j=>{const _e=usePortal_unstable(j);return renderPortal_unstable(_e)};Portal$1.displayName="Portal";const renderPopoverSurface_unstable=j=>{const _e=jsxs(j.root,{children:[j.withArrow&&jsx$1("div",{ref:j.arrowRef,className:j.arrowClassName}),j.root.children]});return j.inline?_e:jsx$1(Portal$1,{mountNode:j.mountNode,children:_e})},popoverSurfaceClassNames={root:"fui-PopoverSurface"},arrowHeights={small:6,medium:8,large:8},useStyles$v=__styles({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),usePopoverSurfaceStyles_unstable=j=>{const _e=useStyles$v();return j.root.className=mergeClasses(popoverSurfaceClassNames.root,_e.root,j.inline&&_e.inline,j.size==="small"&&_e.smallPadding,j.size==="medium"&&_e.mediumPadding,j.size==="large"&&_e.largePadding,j.appearance==="inverted"&&_e.inverted,j.appearance==="brand"&&_e.brand,j.root.className),j.arrowClassName=mergeClasses(_e.arrow,j.size==="small"?_e.smallArrow:_e.mediumLargeArrow),j},PopoverSurface=reactExports.forwardRef((j,_e)=>{const et=usePopoverSurface_unstable(j,_e);return usePopoverSurfaceStyles_unstable(et),useCustomStyleHook("usePopoverSurfaceStyles_unstable")(et),renderPopoverSurface_unstable(et)});PopoverSurface.displayName="PopoverSurface";const popoverSurfaceBorderRadius=4,usePopover_unstable=j=>{const[_e,et]=usePositioningMouseTarget(),tt={size:"medium",contextTarget:_e,setContextTarget:et,...j},rt=reactExports.Children.toArray(j.children);let nt,ot;rt.length===2?(nt=rt[0],ot=rt[1]):rt.length===1&&(ot=rt[0]);const[it,st]=useOpenState(tt),lt=reactExports.useRef(0),ut=useEventCallback$3((xt,yt)=>{if(clearTimeout(lt.current),!(xt instanceof Event)&&xt.persist&&xt.persist(),xt.type==="mouseleave"){var Et;lt.current=setTimeout(()=>{st(xt,yt)},(Et=j.mouseLeaveDelay)!==null&&Et!==void 0?Et:500)}else st(xt,yt)});reactExports.useEffect(()=>()=>{clearTimeout(lt.current)},[]);const ct=reactExports.useCallback(xt=>{ut(xt,!it)},[ut,it]),dt=usePopoverRefs(tt),{targetDocument:ft}=useFluent();var pt;useOnClickOutside({contains:elementContains$1,element:ft,callback:xt=>ut(xt,!1),refs:[dt.triggerRef,dt.contentRef],disabled:!it,disabledFocusOnIframe:!(!((pt=j.closeOnIframeFocus)!==null&&pt!==void 0)||pt)});const gt=tt.openOnContext||tt.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:ft,callback:xt=>ut(xt,!1),refs:[dt.triggerRef,dt.contentRef],disabled:!it||!gt});const{findFirstFocusable:mt}=useFocusFinders();reactExports.useEffect(()=>{if(!j.unstable_disableAutoFocus&&it&&dt.contentRef.current){var xt;const yt=(xt=dt.contentRef.current.getAttribute("tabIndex"))!==null&&xt!==void 0?xt:void 0,Et=isNaN(yt)?mt(dt.contentRef.current):dt.contentRef.current;Et==null||Et.focus()}},[mt,it,dt.contentRef,j.unstable_disableAutoFocus]);var bt,_t;return{...tt,...dt,inertTrapFocus:(bt=j.inertTrapFocus)!==null&&bt!==void 0?bt:j.legacyTrapFocus===void 0?!1:!j.legacyTrapFocus,popoverTrigger:nt,popoverSurface:ot,open:it,setOpen:ut,toggleOpen:ct,setContextTarget:et,contextTarget:_e,inline:(_t=j.inline)!==null&&_t!==void 0?_t:!1}};function useOpenState(j){const _e=useEventCallback$3((ot,it)=>{var st;return(st=j.onOpenChange)===null||st===void 0?void 0:st.call(j,ot,it)}),[et,tt]=useControllableState({state:j.open,defaultState:j.defaultOpen,initialState:!1});j.open=et!==void 0?et:j.open;const rt=j.setContextTarget,nt=reactExports.useCallback((ot,it)=>{it&&ot.type==="contextmenu"&&rt(ot),it||rt(void 0),tt(it),_e==null||_e(ot,{open:it})},[tt,_e,rt]);return[et,nt]}function usePopoverRefs(j){const _e={position:"above",align:"center",arrowPadding:2*popoverSurfaceBorderRadius,target:j.openOnContext?j.contextTarget:void 0,...resolvePositioningShorthand(j.positioning)};_e.coverTarget&&(j.withArrow=!1),j.withArrow&&(_e.offset=mergeArrowOffset(_e.offset,arrowHeights[j.size]));const{targetRef:et,containerRef:tt,arrowRef:rt}=usePositioning(_e);return{triggerRef:et,contentRef:tt,arrowRef:rt}}const renderPopover_unstable=j=>{const{appearance:_e,arrowRef:et,contentRef:tt,inline:rt,mountNode:nt,open:ot,openOnContext:it,openOnHover:st,setOpen:lt,size:ut,toggleOpen:ct,trapFocus:dt,triggerRef:ft,withArrow:pt,inertTrapFocus:gt}=j;return reactExports.createElement(PopoverContext.Provider,{value:{appearance:_e,arrowRef:et,contentRef:tt,inline:rt,mountNode:nt,open:ot,openOnContext:it,openOnHover:st,setOpen:lt,toggleOpen:ct,triggerRef:ft,size:ut,trapFocus:dt,inertTrapFocus:gt,withArrow:pt}},j.popoverTrigger,j.open&&j.popoverSurface)},Popover=j=>{const _e=usePopover_unstable(j);return renderPopover_unstable(_e)};Popover.displayName="Popover";const usePopoverTrigger_unstable=j=>{const{children:_e,disableButtonEnhancement:et=!1}=j,tt=getTriggerChild(_e),rt=usePopoverContext_unstable(xt=>xt.open),nt=usePopoverContext_unstable(xt=>xt.setOpen),ot=usePopoverContext_unstable(xt=>xt.toggleOpen),it=usePopoverContext_unstable(xt=>xt.triggerRef),st=usePopoverContext_unstable(xt=>xt.openOnHover),lt=usePopoverContext_unstable(xt=>xt.openOnContext),{triggerAttributes:ut}=useModalAttributes(),ct=xt=>{lt&&(xt.preventDefault(),nt(xt,!0))},dt=xt=>{lt||ot(xt)},ft=xt=>{xt.key===Escape&&rt&&!xt.isDefaultPrevented()&&(nt(xt,!1),xt.preventDefault())},pt=xt=>{st&&nt(xt,!0)},gt=xt=>{st&&nt(xt,!1)},mt={...ut,"aria-expanded":`${rt}`,...tt==null?void 0:tt.props,onMouseEnter:useEventCallback$3(mergeCallbacks(tt==null?void 0:tt.props.onMouseEnter,pt)),onMouseLeave:useEventCallback$3(mergeCallbacks(tt==null?void 0:tt.props.onMouseLeave,gt)),onContextMenu:useEventCallback$3(mergeCallbacks(tt==null?void 0:tt.props.onContextMenu,ct)),ref:useMergedRefs$1(it,tt==null?void 0:tt.ref)},bt={...mt,onClick:useEventCallback$3(mergeCallbacks(tt==null?void 0:tt.props.onClick,dt)),onKeyDown:useEventCallback$3(mergeCallbacks(tt==null?void 0:tt.props.onKeyDown,ft))},_t=useARIAButtonProps((tt==null?void 0:tt.type)==="button"||(tt==null?void 0:tt.type)==="a"?tt.type:"div",bt);return{children:applyTriggerPropsToChildren(j.children,useARIAButtonProps((tt==null?void 0:tt.type)==="button"||(tt==null?void 0:tt.type)==="a"?tt.type:"div",lt?mt:et?bt:_t))}},renderPopoverTrigger_unstable=j=>j.children,PopoverTrigger=j=>{const _e=usePopoverTrigger_unstable(j);return renderPopoverTrigger_unstable(_e)};PopoverTrigger.displayName="PopoverTrigger";PopoverTrigger.isFluentTriggerComponent=!0;const arrowHeight=6,tooltipBorderRadius=4,useTooltip_unstable=j=>{var _e,et,tt,rt;const nt=useTooltipVisibility(),ot=useIsSSR(),{targetDocument:it}=useFluent(),[st,lt]=useTimeout(),{appearance:ut="normal",children:ct,content:dt,withArrow:ft=!1,positioning:pt="above",onVisibleChange:gt,relationship:mt,showDelay:bt=250,hideDelay:_t=250,mountNode:xt}=j,[yt,Et]=useControllableState({state:j.visible,initialState:!1}),St=reactExports.useCallback((Pt,Gt)=>{lt(),Et(qt=>(Gt.visible!==qt&&(gt==null||gt(Pt,Gt)),Gt.visible))},[lt,Et,gt]),Tt={withArrow:ft,positioning:pt,showDelay:bt,hideDelay:_t,relationship:mt,visible:yt,shouldRenderTooltip:yt,appearance:ut,mountNode:xt,components:{content:"div"},content:always(dt,{defaultProps:{role:"tooltip"},elementType:"div"})};Tt.content.id=useId$1("tooltip-",Tt.content.id);const kt={enabled:Tt.visible,arrowPadding:2*tooltipBorderRadius,position:"above",align:"center",offset:4,...resolvePositioningShorthand(Tt.positioning)};Tt.withArrow&&(kt.offset=mergeArrowOffset(kt.offset,arrowHeight));const{targetRef:$t,containerRef:Ct,arrowRef:It}=usePositioning(kt);Tt.content.ref=useMergedRefs$1(Tt.content.ref,Ct),Tt.arrowRef=It,useIsomorphicLayoutEffect$1(()=>{if(yt){var Pt;const Gt={hide:Yt=>St(void 0,{visible:!1,documentKeyboardEvent:Yt})};(Pt=nt.visibleTooltip)===null||Pt===void 0||Pt.hide(),nt.visibleTooltip=Gt;const qt=Yt=>{Yt.key===Escape&&!Yt.defaultPrevented&&(Gt.hide(Yt),Yt.preventDefault())};return it==null||it.addEventListener("keydown",qt,{capture:!0}),()=>{nt.visibleTooltip===Gt&&(nt.visibleTooltip=void 0),it==null||it.removeEventListener("keydown",qt,{capture:!0})}}},[nt,it,yt,St]);const Nt=reactExports.useRef(!1),Ot=reactExports.useCallback(Pt=>{if(Pt.type==="focus"&&Nt.current){Nt.current=!1;return}const Gt=nt.visibleTooltip?0:Tt.showDelay;st(()=>{St(Pt,{visible:!0})},Gt),Pt.persist()},[st,St,Tt.showDelay,nt]),[jt]=reactExports.useState(()=>{const Pt=qt=>{var Yt;!((Yt=qt.detail)===null||Yt===void 0)&&Yt.isFocusedProgrammatically&&(Nt.current=!0)};let Gt=null;return qt=>{Gt==null||Gt.removeEventListener(KEYBORG_FOCUSIN,Pt),qt==null||qt.addEventListener(KEYBORG_FOCUSIN,Pt),Gt=qt}}),Mt=reactExports.useCallback(Pt=>{let Gt=Tt.hideDelay;Pt.type==="blur"&&(Gt=0,Nt.current=(it==null?void 0:it.activeElement)===Pt.target),st(()=>{St(Pt,{visible:!1})},Gt),Pt.persist()},[st,St,Tt.hideDelay,it]);Tt.content.onPointerEnter=mergeCallbacks(Tt.content.onPointerEnter,lt),Tt.content.onPointerLeave=mergeCallbacks(Tt.content.onPointerLeave,Mt),Tt.content.onFocus=mergeCallbacks(Tt.content.onFocus,lt),Tt.content.onBlur=mergeCallbacks(Tt.content.onBlur,Mt);const Rt=getTriggerChild(ct),Lt={};return mt==="label"?typeof Tt.content.children=="string"?Lt["aria-label"]=Tt.content.children:(Lt["aria-labelledby"]=Tt.content.id,Tt.shouldRenderTooltip=!0):mt==="description"&&(Lt["aria-describedby"]=Tt.content.id,Tt.shouldRenderTooltip=!0),ot&&(Tt.shouldRenderTooltip=!1),Tt.children=applyTriggerPropsToChildren(ct,{...Lt,...Rt==null?void 0:Rt.props,ref:useMergedRefs$1(Rt==null?void 0:Rt.ref,jt,kt.target===void 0?$t:void 0),onPointerEnter:useEventCallback$3(mergeCallbacks(Rt==null||(_e=Rt.props)===null||_e===void 0?void 0:_e.onPointerEnter,Ot)),onPointerLeave:useEventCallback$3(mergeCallbacks(Rt==null||(et=Rt.props)===null||et===void 0?void 0:et.onPointerLeave,Mt)),onFocus:useEventCallback$3(mergeCallbacks(Rt==null||(tt=Rt.props)===null||tt===void 0?void 0:tt.onFocus,Ot)),onBlur:useEventCallback$3(mergeCallbacks(Rt==null||(rt=Rt.props)===null||rt===void 0?void 0:rt.onBlur,Mt))}),Tt},renderTooltip_unstable=j=>jsxs(reactExports.Fragment,{children:[j.children,j.shouldRenderTooltip&&jsx$1(Portal$1,{mountNode:j.mountNode,children:jsxs(j.content,{children:[j.withArrow&&jsx$1("div",{ref:j.arrowRef,className:j.arrowClassName}),j.content.children]})})]}),tooltipClassNames={content:"fui-Tooltip__content"},useStyles$u=__styles({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),useTooltipStyles_unstable=j=>{const _e=useStyles$u();return j.content.className=mergeClasses(tooltipClassNames.content,_e.root,j.appearance==="inverted"&&_e.inverted,j.visible&&_e.visible,j.content.className),j.arrowClassName=_e.arrow,j},Tooltip$1=j=>{const _e=useTooltip_unstable(j);return useTooltipStyles_unstable(_e),useCustomStyleHook("useTooltipStyles_unstable")(_e),renderTooltip_unstable(_e)};Tooltip$1.displayName="Tooltip";Tooltip$1.isFluentTriggerComponent=!0;const renderButton_unstable=j=>{const{iconOnly:_e,iconPosition:et}=j;return jsxs(j.root,{children:[et!=="after"&&j.icon&&jsx$1(j.icon,{}),!_e&&j.root.children,et==="after"&&j.icon&&jsx$1(j.icon,{})]})},buttonContext=reactExports.createContext(void 0),buttonContextDefaultValue={};buttonContext.Provider;const useButtonContext=()=>{var j;return(j=reactExports.useContext(buttonContext))!==null&&j!==void 0?j:buttonContextDefaultValue},useButton_unstable=(j,_e)=>{const{size:et}=useButtonContext(),{appearance:tt="secondary",as:rt="button",disabled:nt=!1,disabledFocusable:ot=!1,icon:it,iconPosition:st="before",shape:lt="rounded",size:ut=et??"medium"}=j,ct=optional(it,{elementType:"span"});return{appearance:tt,disabled:nt,disabledFocusable:ot,iconPosition:st,shape:lt,size:ut,iconOnly:!!(ct!=null&&ct.children&&!j.children),components:{root:"button",icon:"span"},root:always(getIntrinsicElementProps(rt,useARIAButtonProps(j.as,j)),{elementType:"button",defaultProps:{ref:_e,type:"button"}}),icon:ct}},buttonClassNames={root:"fui-Button",icon:"fui-Button__icon"},useRootBaseClassName$1=__resetStyles("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useIconBaseClassName=__resetStyles("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),useRootStyles$5=__styles({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),useRootDisabledStyles=__styles({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useRootFocusStyles=__styles({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useRootIconOnlyStyles=__styles({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),useIconStyles$2=__styles({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),useButtonStyles_unstable=j=>{const _e=useRootBaseClassName$1(),et=useIconBaseClassName(),tt=useRootStyles$5(),rt=useRootDisabledStyles(),nt=useRootFocusStyles(),ot=useRootIconOnlyStyles(),it=useIconStyles$2(),{appearance:st,disabled:lt,disabledFocusable:ut,icon:ct,iconOnly:dt,iconPosition:ft,shape:pt,size:gt}=j;return j.root.className=mergeClasses(buttonClassNames.root,_e,st&&tt[st],tt[gt],ct&>==="small"&&tt.smallWithIcon,ct&>==="large"&&tt.largeWithIcon,tt[pt],(lt||ut)&&rt.base,(lt||ut)&&rt.highContrast,st&&(lt||ut)&&rt[st],st==="primary"&&nt.primary,nt[gt],nt[pt],dt&&ot[gt],j.root.className),j.icon&&(j.icon.className=mergeClasses(buttonClassNames.icon,et,!!j.root.children&&it[ft],it[gt],j.icon.className)),j},Button$2=reactExports.forwardRef((j,_e)=>{const et=useButton_unstable(j,_e);return useButtonStyles_unstable(et),useCustomStyleHook("useButtonStyles_unstable")(et),renderButton_unstable(et)});Button$2.displayName="Button";const FieldContext=reactExports.createContext(void 0);FieldContext.Provider;const useFieldContext_unstable=()=>reactExports.useContext(FieldContext);function useFieldControlProps_unstable(j,_e){return getFieldControlProps(useFieldContext_unstable(),j,_e)}function getFieldControlProps(j,_e,et){if(!j)return _e;_e={..._e};const{generatedControlId:tt,hintId:rt,labelFor:nt,labelId:ot,required:it,validationMessageId:st,validationState:lt}=j;if(tt){var ut,ct;(ct=(ut=_e).id)!==null&&ct!==void 0||(ut.id=tt)}if(ot&&(!(et!=null&&et.supportsLabelFor)||nt!==_e.id)){var dt,ft,pt;(pt=(dt=_e)[ft="aria-labelledby"])!==null&&pt!==void 0||(dt[ft]=ot)}if((st||rt)&&(_e["aria-describedby"]=[st,rt,_e==null?void 0:_e["aria-describedby"]].filter(Boolean).join(" ")),lt==="error"){var gt,mt,bt;(bt=(gt=_e)[mt="aria-invalid"])!==null&&bt!==void 0||(gt[mt]=!0)}if(it)if(et!=null&&et.supportsRequired){var _t,xt;(xt=(_t=_e).required)!==null&&xt!==void 0||(_t.required=!0)}else{var yt,Et,St;(St=(yt=_e)[Et="aria-required"])!==null&&St!==void 0||(yt[Et]=!0)}if(et!=null&&et.supportsSize){var Tt,kt;(kt=(Tt=_e).size)!==null&&kt!==void 0||(Tt.size=j.size)}return _e}const useLabel_unstable=(j,_e)=>{const{disabled:et=!1,required:tt=!1,weight:rt="regular",size:nt="medium"}=j;return{disabled:et,required:optional(tt===!0?"*":tt||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:rt,size:nt,components:{root:"label",required:"span"},root:always(getIntrinsicElementProps("label",{ref:_e,...j}),{elementType:"label"})}},renderLabel_unstable=j=>jsxs(j.root,{children:[j.root.children,j.required&&jsx$1(j.required,{})]}),labelClassNames={root:"fui-Label",required:"fui-Label__required"},useStyles$t=__styles({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),useLabelStyles_unstable=j=>{const _e=useStyles$t();return j.root.className=mergeClasses(labelClassNames.root,_e.root,j.disabled&&_e.disabled,_e[j.size],j.weight==="semibold"&&_e.semibold,j.root.className),j.required&&(j.required.className=mergeClasses(labelClassNames.required,_e.required,j.disabled&&_e.requiredDisabled,j.required.className)),j},Label$1=reactExports.forwardRef((j,_e)=>{const et=useLabel_unstable(j,_e);return useLabelStyles_unstable(et),useCustomStyleHook("useLabelStyles_unstable")(et),renderLabel_unstable(et)});Label$1.displayName="Label";const ComboboxContext=createContext({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});ComboboxContext.Provider;const ListboxContext=createContext({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});ListboxContext.Provider;function useComboboxContextValues(j){const{activeOption:_e,appearance:et,focusVisible:tt,open:rt,registerOption:nt,selectedOptions:ot,selectOption:it,setActiveOption:st,setOpen:lt,size:ut}=j;return{combobox:{activeOption:_e,appearance:et,focusVisible:tt,open:rt,registerOption:nt,selectedOptions:ot,selectOption:it,setActiveOption:st,setOpen:lt,size:ut}}}function useListboxContextValues(j){const _e=useHasParentContext(ComboboxContext),{activeOption:et,focusVisible:tt,multiselect:rt,registerOption:nt,selectedOptions:ot,selectOption:it,setActiveOption:st}=j,lt=useContextSelector(ComboboxContext,dt=>dt.registerOption);return{listbox:{activeOption:et,focusVisible:tt,multiselect:rt,registerOption:_e?lt:nt,selectedOptions:ot,selectOption:it,setActiveOption:st}}}function getDropdownActionFromKey(j,_e={}){const{open:et=!0,multiselect:tt=!1}=_e,rt=j.key,{altKey:nt,ctrlKey:ot,key:it,metaKey:st}=j;return it.length===1&&rt!==Space&&!nt&&!ot&&!st?"Type":et?rt===ArrowUp&&nt||rt===Enter||!tt&&rt===Space?"CloseSelect":tt&&rt===Space?"Select":rt===Escape?"Close":rt===ArrowDown?"Next":rt===ArrowUp?"Previous":rt===Home?"First":rt===End?"Last":rt===PageUp?"PageUp":rt===PageDown?"PageDown":rt===Tab$2?"Tab":"None":rt===ArrowDown||rt===ArrowUp||rt===Enter||rt===Space?"Open":"None"}function getIndexFromAction(j,_e,et){switch(j){case"Next":return Math.min(et,_e+1);case"Previous":return Math.max(0,_e-1);case"First":return 0;case"Last":return et;case"PageDown":return Math.min(et,_e+10);case"PageUp":return Math.max(0,_e-10);default:return _e}}const useOptionCollection=()=>{const j=reactExports.useRef([]),_e=reactExports.useMemo(()=>({getCount:()=>j.current.length,getOptionAtIndex:lt=>{var ut;return(ut=j.current[lt])===null||ut===void 0?void 0:ut.option},getIndexOfId:lt=>j.current.findIndex(ut=>ut.option.id===lt),getOptionById:lt=>{const ut=j.current.find(ct=>ct.option.id===lt);return ut==null?void 0:ut.option},getOptionsMatchingText:lt=>j.current.filter(ut=>lt(ut.option.text)).map(ut=>ut.option),getOptionsMatchingValue:lt=>j.current.filter(ut=>lt(ut.option.value)).map(ut=>ut.option)}),[]),et=reactExports.useCallback((tt,rt)=>{var nt;const ot=j.current.findIndex(it=>!it.element||!rt?!1:it.option.id===tt.id?!0:it.element.compareDocumentPosition(rt)&Node.DOCUMENT_POSITION_PRECEDING);if(((nt=j.current[ot])===null||nt===void 0?void 0:nt.option.id)!==tt.id){const it={element:rt,option:tt};ot===-1?j.current=[...j.current,it]:j.current.splice(ot,0,it)}return()=>{j.current=j.current.filter(it=>it.option.id!==tt.id)}},[]);return{..._e,options:j.current.map(tt=>tt.option),registerOption:et}};function useScrollOptionsIntoView(j){const{activeOption:_e}=j,et=reactExports.useRef(null);return reactExports.useEffect(()=>{if(et.current&&_e&&canUseDOM$3()){const tt=et.current.querySelector(`#${_e.id}`);if(!tt)return;const{offsetHeight:rt,offsetTop:nt}=tt,{offsetHeight:ot,scrollTop:it}=et.current,st=ntit+ot,ut=2;st?et.current.scrollTo(0,nt-ut):lt&&et.current.scrollTo(0,nt-ot+rt+ut)}},[_e]),et}const useSelection=j=>{const{defaultSelectedOptions:_e,multiselect:et,onOptionSelect:tt}=j,[rt,nt]=useControllableState({state:j.selectedOptions,defaultState:_e,initialState:[]}),ot=reactExports.useCallback((st,lt)=>{if(lt.disabled)return;let ut=[lt.value];if(et){const ct=rt.findIndex(dt=>dt===lt.value);ct>-1?ut=[...rt.slice(0,ct),...rt.slice(ct+1)]:ut=[...rt,lt.value]}nt(ut),tt==null||tt(st,{optionValue:lt.value,optionText:lt.text,selectedOptions:ut})},[tt,et,rt,nt]);return{clearSelection:st=>{nt([]),tt==null||tt(st,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:ot,selectedOptions:rt}},useListbox_unstable=(j,_e)=>{const{multiselect:et}=j,tt=useOptionCollection(),{getCount:rt,getOptionAtIndex:nt,getIndexOfId:ot}=tt,{clearSelection:it,selectedOptions:st,selectOption:lt}=useSelection(j),[ut,ct]=reactExports.useState(),[dt,ft]=reactExports.useState(!1),pt=$t=>{const Ct=getDropdownActionFromKey($t,{open:!0}),It=rt()-1,Nt=ut?ot(ut.id):-1;let Ot=Nt;switch(Ct){case"Select":case"CloseSelect":ut&<($t,ut);break;default:Ot=getIndexFromAction(Ct,Nt,It)}Ot!==Nt&&($t.preventDefault(),ct(nt(Ot)),ft(!0))},gt=$t=>{ft(!1)},mt=useHasParentContext(ComboboxContext),bt=useContextSelector(ComboboxContext,$t=>$t.activeOption),_t=useContextSelector(ComboboxContext,$t=>$t.focusVisible),xt=useContextSelector(ComboboxContext,$t=>$t.selectedOptions),yt=useContextSelector(ComboboxContext,$t=>$t.selectOption),Et=useContextSelector(ComboboxContext,$t=>$t.setActiveOption),St=mt?{activeOption:bt,focusVisible:_t,selectedOptions:xt,selectOption:yt,setActiveOption:Et}:{activeOption:ut,focusVisible:dt,selectedOptions:st,selectOption:lt,setActiveOption:ct},Tt={components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:_e,role:et?"menu":"listbox","aria-activedescendant":mt||ut==null?void 0:ut.id,"aria-multiselectable":et,tabIndex:0,...j}),{elementType:"div"}),multiselect:et,clearSelection:it,...tt,...St},kt=useScrollOptionsIntoView(Tt);return Tt.root.ref=useMergedRefs$1(Tt.root.ref,kt),Tt.root.onKeyDown=useEventCallback$3(mergeCallbacks(Tt.root.onKeyDown,pt)),Tt.root.onMouseOver=useEventCallback$3(mergeCallbacks(Tt.root.onMouseOver,gt)),Tt},renderListbox_unstable=(j,_e)=>jsx$1(ListboxContext.Provider,{value:_e.listbox,children:jsx$1(j.root,{})}),listboxClassNames={root:"fui-Listbox"},useStyles$s=__styles({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),useListboxStyles_unstable=j=>{const _e=useStyles$s();return j.root.className=mergeClasses(listboxClassNames.root,_e.root,j.root.className),j},Listbox$1=reactExports.forwardRef((j,_e)=>{const et=useListbox_unstable(j,_e),tt=useListboxContextValues(et);return useListboxStyles_unstable(et),useCustomStyleHook("useListboxStyles_unstable")(et),renderListbox_unstable(et,tt)});Listbox$1.displayName="Listbox";function getTextString(j,_e){if(j!==void 0)return j;let et="",tt=!1;return reactExports.Children.forEach(_e,rt=>{typeof rt=="string"?et+=rt:tt=!0}),tt&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),et}const useOption_unstable=(j,_e)=>{const{children:et,disabled:tt,text:rt,value:nt}=j,ot=reactExports.useRef(null),it=getTextString(rt,et),st=nt??it,lt=useId$1("fluent-option",j.id),ut=reactExports.useMemo(()=>({id:lt,disabled:tt,text:it,value:st}),[lt,tt,it,st]),ct=useContextSelector(ListboxContext,St=>St.focusVisible),dt=useContextSelector(ListboxContext,St=>St.multiselect),ft=useContextSelector(ListboxContext,St=>St.registerOption),pt=useContextSelector(ListboxContext,St=>{const Tt=St.selectedOptions;return!!st&&!!Tt.find(kt=>kt===st)}),gt=useContextSelector(ListboxContext,St=>St.selectOption),mt=useContextSelector(ListboxContext,St=>St.setActiveOption),bt=useContextSelector(ComboboxContext,St=>St.setOpen),_t=useContextSelector(ListboxContext,St=>{var Tt,kt;return((Tt=St.activeOption)===null||Tt===void 0?void 0:Tt.id)!==void 0&&((kt=St.activeOption)===null||kt===void 0?void 0:kt.id)===lt});let xt=reactExports.createElement(CheckmarkFilled,null);dt&&(xt=pt?reactExports.createElement(Checkmark12Filled,null):"");const yt=St=>{var Tt;if(tt){St.preventDefault();return}mt(ut),dt||bt==null||bt(St,!1),gt(St,ut),(Tt=j.onClick)===null||Tt===void 0||Tt.call(j,St)};reactExports.useEffect(()=>{if(lt&&ot.current)return ft(ut,ot.current)},[lt,ut,ft]);const Et=dt?{role:"menuitemcheckbox","aria-checked":pt}:{role:"option","aria-selected":pt};return{components:{root:"div",checkIcon:"span"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(_e,ot),"aria-disabled":tt?"true":void 0,id:lt,...Et,...j,onClick:yt}),{elementType:"div"}),checkIcon:optional(j.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:xt},elementType:"span"}),active:_t,disabled:tt,focusVisible:ct,multiselect:dt,selected:pt}},renderOption_unstable=j=>jsxs(j.root,{children:[j.checkIcon&&jsx$1(j.checkIcon,{}),j.root.children]}),optionClassNames={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},useStyles$r=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useOptionStyles_unstable=j=>{const{active:_e,disabled:et,focusVisible:tt,multiselect:rt,selected:nt}=j,ot=useStyles$r();return j.root.className=mergeClasses(optionClassNames.root,ot.root,_e&&tt&&ot.active,et&&ot.disabled,nt&&ot.selected,j.root.className),j.checkIcon&&(j.checkIcon.className=mergeClasses(optionClassNames.checkIcon,ot.checkIcon,rt&&ot.multiselectCheck,nt&&ot.selectedCheck,nt&&rt&&ot.selectedMultiselectCheck,et&&ot.checkDisabled,j.checkIcon.className)),j},Option$2=reactExports.forwardRef((j,_e)=>{const et=useOption_unstable(j,_e);return useOptionStyles_unstable(et),useCustomStyleHook("useOptionStyles_unstable")(et),renderOption_unstable(et)});Option$2.displayName="Option";const useComboboxBaseState=j=>{const{appearance:_e="outline",children:et,editable:tt=!1,inlinePopup:rt=!1,mountNode:nt=void 0,multiselect:ot,onOpenChange:it,size:st="medium"}=j,lt=useOptionCollection(),{getOptionAtIndex:ut,getOptionsMatchingValue:ct}=lt,[dt,ft]=reactExports.useState(),[pt,gt]=reactExports.useState(!1),[mt,bt]=reactExports.useState(!1),_t=reactExports.useRef(!1),xt=useSelection(j),{selectedOptions:yt}=xt,Et=useFirstMount(),[St,Tt]=useControllableState({state:j.value,initialState:void 0}),kt=reactExports.useMemo(()=>{if(St!==void 0)return St;if(Et&&j.defaultValue!==void 0)return j.defaultValue;const Nt=ct(Ot=>yt.includes(Ot)).map(Ot=>Ot.text);return ot?tt?"":Nt.join(", "):Nt[0]},[St,tt,ct,ot,j.defaultValue,yt]),[$t,Ct]=useControllableState({state:j.open,defaultState:j.defaultOpen,initialState:!1}),It=reactExports.useCallback((Nt,Ot)=>{it==null||it(Nt,{open:Ot}),Ct(Ot)},[it,Ct]);return reactExports.useEffect(()=>{if($t&&!dt)if(!ot&&yt.length>0){const Nt=ct(Ot=>Ot===yt[0]).pop();Nt&&ft(Nt)}else ft(ut(0));else $t||ft(void 0)},[$t,et]),{...lt,...xt,activeOption:dt,appearance:_e,focusVisible:pt,hasFocus:mt,ignoreNextBlur:_t,inlinePopup:rt,mountNode:nt,open:$t,setActiveOption:ft,setFocusVisible:gt,setHasFocus:bt,setOpen:It,setValue:Tt,size:st,value:kt,multiselect:ot}};function useComboboxPositioning(j){const{positioning:_e}=j,tt={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...resolvePositioningShorthand(_e)},{targetRef:rt,containerRef:nt}=usePositioning(tt);return[nt,rt]}function useListboxSlot(j,_e,et){const{state:{multiselect:tt},triggerRef:rt,defaultProps:nt}=et,ot=useId$1("fluent-listbox",isResolvedShorthand(j)?j.id:void 0),it=optional(j,{renderByDefault:!0,elementType:Listbox$1,defaultProps:{id:ot,multiselect:tt,tabIndex:void 0,...nt}}),st=useEventCallback$3(mergeCallbacks(ct=>{ct.preventDefault()},it==null?void 0:it.onMouseDown)),lt=useEventCallback$3(mergeCallbacks(ct=>{var dt;ct.preventDefault(),(dt=rt.current)===null||dt===void 0||dt.focus()},it==null?void 0:it.onClick)),ut=useMergedRefs$1(it==null?void 0:it.ref,_e);return it&&(it.ref=ut,it.onMouseDown=st,it.onClick=lt),it}function useTriggerSlot(j,_e,et){const{state:{activeOption:tt,getCount:rt,getIndexOfId:nt,getOptionAtIndex:ot,open:it,selectOption:st,setActiveOption:lt,setFocusVisible:ut,setOpen:ct,multiselect:dt},defaultProps:ft,elementType:pt}=et,gt=always(j,{defaultProps:{type:"text","aria-expanded":it,"aria-activedescendant":it?tt==null?void 0:tt.id:void 0,role:"combobox",...typeof ft=="object"&&ft},elementType:pt}),mt=reactExports.useRef(null);return gt.ref=useMergedRefs$1(mt,gt.ref,_e),gt.onBlur=mergeCallbacks(bt=>{ct(bt,!1)},gt.onBlur),gt.onClick=mergeCallbacks(bt=>{ct(bt,!it)},gt.onClick),gt.onKeyDown=mergeCallbacks(bt=>{const _t=getDropdownActionFromKey(bt,{open:it,multiselect:dt}),xt=rt()-1,yt=tt?nt(tt.id):-1;let Et=yt;switch(_t){case"Open":bt.preventDefault(),ut(!0),ct(bt,!0);break;case"Close":bt.stopPropagation(),bt.preventDefault(),ct(bt,!1);break;case"CloseSelect":!dt&&!(tt!=null&&tt.disabled)&&ct(bt,!1);case"Select":tt&&st(bt,tt),bt.preventDefault();break;case"Tab":!dt&&tt&&st(bt,tt);break;default:Et=getIndexFromAction(_t,yt,xt)}Et!==yt&&(bt.preventDefault(),lt(ot(Et)),ut(!0))},gt.onKeyDown),gt.onMouseOver=mergeCallbacks(bt=>{ut(!1)},gt.onMouseOver),gt}function useInputTriggerSlot(j,_e,et){const{state:{open:tt,value:rt,activeOption:nt,selectOption:ot,setValue:it,setActiveOption:st,setFocusVisible:lt,multiselect:ut,selectedOptions:ct,clearSelection:dt,getOptionsMatchingText:ft,getIndexOfId:pt,setOpen:gt},freeform:mt,defaultProps:bt}=et,_t=It=>{!tt&&!mt&&(rt&&nt&&rt.trim().toLowerCase()===(nt==null?void 0:nt.text.toLowerCase())&&ot(It,nt),it(void 0))},xt=It=>{const Nt=It==null?void 0:It.trim().toLowerCase();if(!Nt||Nt.length===0)return;const jt=ft(Rt=>Rt.toLowerCase().indexOf(Nt)===0);if(jt.length>1&&nt){const Rt=pt(nt.id),Lt=jt.find(Pt=>pt(Pt.id)>=Rt);return Lt??jt[0]}var Mt;return(Mt=jt[0])!==null&&Mt!==void 0?Mt:void 0},yt=It=>{const Nt=It.target.value;it(Nt);const Ot=xt(Nt);st(Ot),lt(!0),!ut&&ct.length===1&&(Nt.length<1||!Ot)&&dt(It)},Et=useTriggerSlot(j,_e,{state:et.state,defaultProps:bt,elementType:"input"});Et.onChange=mergeCallbacks(Et.onChange,yt),Et.onBlur=mergeCallbacks(Et.onBlur,_t);const[St,Tt]=reactExports.useState(!1),kt=reactExports.useRef(!1),$t=Et.onKeyDown,Ct=useEventCallback$3(It=>{!tt&&getDropdownActionFromKey(It)==="Type"&>(It,!0),It.key===ArrowLeft||It.key===ArrowRight?Tt(!0):Tt(!1);const Nt=getDropdownActionFromKey(It,{open:tt,multiselect:ut});if(Nt==="Type"?kt.current=!0:(Nt==="Open"&&It.key!==" "||Nt==="Next"||Nt==="Previous"||Nt==="First"||Nt==="Last"||Nt==="PageUp"||Nt==="PageDown")&&(kt.current=!1),mt&&(kt.current||!tt)&&It.key===" "){var Ot;j==null||(Ot=j.onKeyDown)===null||Ot===void 0||Ot.call(j,It);return}$t==null||$t(It)});return Et.onKeyDown=Ct,St&&(Et["aria-activedescendant"]=void 0),Et}const useCombobox_unstable=(j,_e)=>{j=useFieldControlProps_unstable(j,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const et=useComboboxBaseState({...j,editable:!0}),{open:tt,selectOption:rt,setOpen:nt,setValue:ot,value:it}=et,[st,lt]=useComboboxPositioning(j),{disabled:ut,freeform:ct,inlinePopup:dt}=j,ft=useId$1("combobox-"),{primary:pt,root:gt}=getPartitionedNativeProps({props:j,primarySlotTagName:"input",excludedPropNames:["children","size"]});et.selectOption=($t,Ct)=>{ot(void 0),rt($t,Ct)},et.setOpen=($t,Ct)=>{ut||(!Ct&&!ct&&ot(void 0),nt($t,Ct))};const mt=reactExports.useRef(null),bt=useListboxSlot(j.listbox,st,{state:et,triggerRef:mt,defaultProps:{children:j.children}});var _t;const xt=useInputTriggerSlot((_t=j.input)!==null&&_t!==void 0?_t:{},useMergedRefs$1(mt,_e),{state:et,freeform:ct,defaultProps:{type:"text",value:it??"",...pt}}),yt=always(j.root,{defaultProps:{"aria-owns":!dt&&tt?bt==null?void 0:bt.id:void 0,...gt},elementType:"div"});yt.ref=useMergedRefs$1(yt.ref,lt);const Et={components:{root:"div",input:"input",expandIcon:"span",listbox:Listbox$1},root:yt,input:xt,listbox:tt?bt:void 0,expandIcon:optional(j.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":tt,children:reactExports.createElement(ChevronDownRegular,null),role:"button"},elementType:"span"}),...et},{onMouseDown:St}=Et.expandIcon||{},Tt=useEventCallback$3(mergeCallbacks(St,$t=>{var Ct;$t.preventDefault(),Et.setOpen($t,!Et.open),(Ct=mt.current)===null||Ct===void 0||Ct.focus()}));if(Et.expandIcon){Et.expandIcon.onMouseDown=Tt;const $t=Et.expandIcon["aria-label"]||Et.expandIcon["aria-labelledby"],Ct="Open";if(!$t)if(j["aria-labelledby"]){var kt;const It=(kt=Et.expandIcon.id)!==null&&kt!==void 0?kt:`${ft}-chevron`,Nt=`${It} ${Et.input["aria-labelledby"]}`;Et.expandIcon["aria-label"]=Ct,Et.expandIcon.id=It,Et.expandIcon["aria-labelledby"]=Nt}else j["aria-label"]?Et.expandIcon["aria-label"]=`${Ct} ${j["aria-label"]}`:Et.expandIcon["aria-label"]=Ct}return Et},renderCombobox_unstable=(j,_e)=>jsx$1(j.root,{children:jsxs(ComboboxContext.Provider,{value:_e.combobox,children:[jsx$1(j.input,{}),j.expandIcon&&jsx$1(j.expandIcon,{}),j.listbox&&(j.inlinePopup?jsx$1(j.listbox,{}):jsx$1(Portal$1,{mountNode:j.mountNode,children:jsx$1(j.listbox,{})}))]})}),comboboxClassNames={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},useStyles$q=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),useInputStyles$1=__styles({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),useIconStyles$1=__styles({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),useComboboxStyles_unstable=j=>{const{appearance:_e,open:et,size:tt}=j,rt=`${j.input["aria-invalid"]}`=="true",nt=j.input.disabled,ot=useStyles$q(),it=useIconStyles$1(),st=useInputStyles$1();return j.root.className=mergeClasses(comboboxClassNames.root,ot.root,ot[_e],ot[tt],!nt&&_e==="outline"&&ot.outlineInteractive,rt&&_e!=="underline"&&ot.invalid,rt&&_e==="underline"&&ot.invalidUnderline,nt&&ot.disabled,j.root.className),j.input.className=mergeClasses(comboboxClassNames.input,st.input,st[tt],nt&&st.disabled,j.input.className),j.listbox&&(j.listbox.className=mergeClasses(comboboxClassNames.listbox,ot.listbox,!et&&ot.listboxCollapsed,j.listbox.className)),j.expandIcon&&(j.expandIcon.className=mergeClasses(comboboxClassNames.expandIcon,it.icon,it[tt],nt&&it.disabled,j.expandIcon.className)),j},Combobox=reactExports.forwardRef((j,_e)=>{const et=useCombobox_unstable(j,_e),tt=useComboboxContextValues(et);return useComboboxStyles_unstable(et),useCustomStyleHook("useComboboxStyles_unstable")(et),renderCombobox_unstable(et,tt)});Combobox.displayName="Combobox";const useOptionGroup_unstable=(j,_e)=>{const et=useId$1("group-label"),{label:tt}=j;return{components:{root:"div",label:"span"},root:always(getIntrinsicElementProps("div",{ref:_e,role:"group","aria-labelledby":tt?et:void 0,...j}),{elementType:"div"}),label:optional(tt,{defaultProps:{id:et,role:"presentation"},elementType:"span"})}},renderOptionGroup_unstable=j=>jsxs(j.root,{children:[j.label&&jsx$1(j.label,{children:j.label.children}),j.root.children]}),optionGroupClassNames={root:"fui-OptionGroup",label:"fui-OptionGroup__label"},useStyles$p=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",Gwp8xu:"fu19d3i",H93o2g:"flylvvz",eii1in:"f1ug5m11",om0q45:"f5642y",Hl9o3s:"ffdf81h",Bi9x0x4:"flgyru6",B0i58d9:["f1fjgumo","f1sgo0dv"],sl1c2c:"fwsdxdw",z4hxbw:["f1sgo0dv","f1fjgumo"]},label:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",z8tnut:"f17mpqex",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fdvome7",uwmqm3:["fk8j09s","fdw0yi8"]}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',".fu19d3i:not(:last-child)::after{border-bottom-width:var(--strokeWidthThin);}",".flylvvz:not(:last-child)::after{border-bottom-style:solid;}",".f1ug5m11:not(:last-child)::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",".flgyru6:not(:last-child)::after{margin-top:0;}",".f1fjgumo:not(:last-child)::after{margin-right:calc(var(--spacingHorizontalXS) * -1);}",".f1sgo0dv:not(:last-child)::after{margin-left:calc(var(--spacingHorizontalXS) * -1);}",".fwsdxdw:not(:last-child)::after{margin-bottom:var(--spacingVerticalXS);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}"]}),useOptionGroupStyles_unstable=j=>{const _e=useStyles$p();return j.root.className=mergeClasses(optionGroupClassNames.root,_e.root,j.root.className),j.label&&(j.label.className=mergeClasses(optionGroupClassNames.label,_e.label,j.label.className)),j},OptionGroup=reactExports.forwardRef((j,_e)=>{const et=useOptionGroup_unstable(j,_e);return useOptionGroupStyles_unstable(et),useCustomStyleHook("useOptionGroupStyles_unstable")(et),renderOptionGroup_unstable(et)});OptionGroup.displayName="OptionGroup";const renderDivider_unstable=j=>jsx$1(j.root,{children:j.root.children!==void 0&&jsx$1(j.wrapper,{children:j.root.children})}),useDivider_unstable=(j,_e)=>{const{alignContent:et="center",appearance:tt="default",inset:rt=!1,vertical:nt=!1,wrapper:ot}=j,it=useId$1("divider-");return{alignContent:et,appearance:tt,inset:rt,vertical:nt,components:{root:"div",wrapper:"div"},root:always(getIntrinsicElementProps("div",{role:"separator","aria-orientation":nt?"vertical":"horizontal","aria-labelledby":j.children?it:void 0,...j,ref:_e}),{elementType:"div"}),wrapper:always(ot,{defaultProps:{id:it,children:j.children},elementType:"div"})}},dividerClassNames={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},useBaseStyles=__styles({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),useHorizontalStyles=__styles({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),useVerticalStyles=__styles({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),useDividerStyles_unstable=j=>{const _e=useBaseStyles(),et=useHorizontalStyles(),tt=useVerticalStyles(),{alignContent:rt,appearance:nt,inset:ot,vertical:it}=j;return j.root.className=mergeClasses(dividerClassNames.root,_e.base,_e[rt],nt&&_e[nt],!it&&et.base,!it&&ot&&et.inset,!it&&et[rt],it&&tt.base,it&&ot&&tt.inset,it&&tt[rt],it&&j.root.children!==void 0&&tt.withChildren,j.root.children===void 0&&_e.childless,j.root.className),j.wrapper&&(j.wrapper.className=mergeClasses(dividerClassNames.wrapper,j.wrapper.className)),j},Divider$2=reactExports.forwardRef((j,_e)=>{const et=useDivider_unstable(j,_e);return useDividerStyles_unstable(et),useCustomStyleHook("useDividerStyles_unstable")(et),renderDivider_unstable(et)});Divider$2.displayName="Divider";const useInput_unstable=(j,_e)=>{j=useFieldControlProps_unstable(j,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const et=useOverrides();var tt;const{size:rt="medium",appearance:nt=(tt=et.inputDefaultAppearance)!==null&&tt!==void 0?tt:"outline",onChange:ot}=j,[it,st]=useControllableState({state:j.value,defaultState:j.defaultValue,initialState:""}),lt=getPartitionedNativeProps({props:j,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),ut={size:rt,appearance:nt,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:always(j.input,{defaultProps:{type:"text",ref:_e,...lt.primary},elementType:"input"}),contentAfter:optional(j.contentAfter,{elementType:"span"}),contentBefore:optional(j.contentBefore,{elementType:"span"}),root:always(j.root,{defaultProps:lt.root,elementType:"span"})};return ut.input.value=it,ut.input.onChange=useEventCallback$3(ct=>{const dt=ct.target.value;ot==null||ot(ct,{value:dt}),st(dt)}),ut},renderInput_unstable=j=>jsxs(j.root,{children:[j.contentBefore&&jsx$1(j.contentBefore,{}),jsx$1(j.input,{}),j.contentAfter&&jsx$1(j.contentAfter,{})]}),inputClassNames={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},useRootClassName=__resetStyles("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),useRootStyles$4=__styles({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),useInputClassName=__resetStyles("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),useInputElementStyles=__styles({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),useContentClassName=__resetStyles("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),useContentStyles$1=__styles({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),useInputStyles_unstable=j=>{const{size:_e,appearance:et}=j,tt=j.input.disabled,rt=`${j.input["aria-invalid"]}`=="true",nt=et.startsWith("filled"),ot=useRootStyles$4(),it=useInputElementStyles(),st=useContentStyles$1();j.root.className=mergeClasses(inputClassNames.root,useRootClassName(),ot[_e],ot[et],!tt&&et==="outline"&&ot.outlineInteractive,!tt&&et==="underline"&&ot.underlineInteractive,!tt&&nt&&ot.filledInteractive,nt&&ot.filled,!tt&&rt&&ot.invalid,tt&&ot.disabled,j.root.className),j.input.className=mergeClasses(inputClassNames.input,useInputClassName(),_e==="large"&&it.large,tt&&it.disabled,j.input.className);const lt=[useContentClassName(),tt&&st.disabled,st[_e]];return j.contentBefore&&(j.contentBefore.className=mergeClasses(inputClassNames.contentBefore,...lt,j.contentBefore.className)),j.contentAfter&&(j.contentAfter.className=mergeClasses(inputClassNames.contentAfter,...lt,j.contentAfter.className)),j},Input=reactExports.forwardRef((j,_e)=>{const et=useInput_unstable(j,_e);return useInputStyles_unstable(et),useCustomStyleHook("useInputStyles_unstable")(et),renderInput_unstable(et)});Input.displayName="Input";const useLinkState_unstable=j=>{const{disabled:_e,disabledFocusable:et}=j,{onClick:tt,onKeyDown:rt,role:nt,tabIndex:ot}=j.root;return j.root.as==="a"&&(j.root.href=_e?void 0:j.root.href,(_e||et)&&(j.root.role=nt||"link")),(j.root.as==="a"||j.root.as==="span")&&(j.root.tabIndex=ot??(_e&&!et?void 0:0)),j.root.onClick=it=>{_e||et?it.preventDefault():tt==null||tt(it)},j.root.onKeyDown=it=>{(_e||et)&&(it.key===Enter||it.key===Space)?(it.preventDefault(),it.stopPropagation()):rt==null||rt(it)},j.disabled=_e||et,j.root["aria-disabled"]=_e||et||void 0,j.root.as==="button"&&(j.root.disabled=_e&&!et),j},useLink_unstable=(j,_e)=>{const et=useBackgroundAppearance(),{appearance:tt="default",disabled:rt=!1,disabledFocusable:nt=!1,inline:ot=!1}=j,it=j.as||(j.href?"a":"button"),st={role:it==="span"?"button":void 0,type:it==="button"?"button":void 0,...j,as:it},lt={appearance:tt,disabled:rt,disabledFocusable:nt,inline:ot,components:{root:it},root:always(getIntrinsicElementProps(it,{ref:_e,...st}),{elementType:it}),backgroundAppearance:et};return useLinkState_unstable(lt),lt},linkClassNames={root:"fui-Link"},useStyles$o=__styles({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),useLinkStyles_unstable=j=>{const _e=useStyles$o(),{appearance:et,disabled:tt,inline:rt,root:nt,backgroundAppearance:ot}=j;return j.root.className=mergeClasses(linkClassNames.root,_e.root,_e.focusIndicator,nt.as==="a"&&nt.href&&_e.href,nt.as==="button"&&_e.button,et==="subtle"&&_e.subtle,ot==="inverted"&&_e.inverted,rt&&_e.inline,tt&&_e.disabled,j.root.className),j},renderLink_unstable=j=>jsx$1(j.root,{}),Link$1=reactExports.forwardRef((j,_e)=>{const et=useLink_unstable(j,_e);return useLinkStyles_unstable(et),renderLink_unstable(et)});Link$1.displayName="Link";const SkeletonContext=reactExports.createContext(void 0),skeletonContextDefaultValue={},SkeletonContextProvider=SkeletonContext.Provider,useSkeletonContext=()=>{var j;return(j=reactExports.useContext(SkeletonContext))!==null&&j!==void 0?j:skeletonContextDefaultValue},useSkeleton_unstable=(j,_e)=>{const{animation:et,appearance:tt}=useSkeletonContext(),{animation:rt=et??"wave",appearance:nt=tt??"opaque"}=j,ot=always(getIntrinsicElementProps("div",{ref:_e,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...j}),{elementType:"div"});return{animation:rt,appearance:nt,components:{root:"div"},root:ot}},renderSkeleton_unstable=(j,_e)=>jsx$1(SkeletonContextProvider,{value:_e.skeletonGroup,children:jsx$1(j.root,{})}),skeletonClassNames={root:"fui-Skeleton"},useSkeletonStyles_unstable=j=>(j.root.className=mergeClasses(skeletonClassNames.root,j.root.className),j),useSkeletonContextValues=j=>{const{animation:_e,appearance:et}=j;return{skeletonGroup:reactExports.useMemo(()=>({animation:_e,appearance:et}),[_e,et])}},Skeleton=reactExports.forwardRef((j,_e)=>{const et=useSkeleton_unstable(j,_e),tt=useSkeletonContextValues(et);return useSkeletonStyles_unstable(et),renderSkeleton_unstable(et,tt)});Skeleton.displayName="Skeleton";const useSkeletonItem_unstable=(j,_e)=>{const{animation:et,appearance:tt}=useSkeletonContext(),{animation:rt=et??"wave",appearance:nt=tt??"opaque",size:ot=16,shape:it="rectangle"}=j,st=always(getIntrinsicElementProps("div",{ref:_e,...j}),{elementType:"div"});return{appearance:nt,animation:rt,size:ot,shape:it,components:{root:"div"},root:st}},renderSkeletonItem_unstable=j=>jsx$1(j.root,{}),skeletonItemClassNames={root:"fui-SkeletonItem"},useStyles$n=__styles({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( - to right, - var(--colorNeutralStencil1) 0%, - var(--colorNeutralStencil2) 50%, - var(--colorNeutralStencil1) 100%);}`,`.f152emvt{background-image:linear-gradient( - to left, - var(--colorNeutralStencil1) 0%, - var(--colorNeutralStencil2) 50%, - var(--colorNeutralStencil1) 100%);}`,".f105t0nc{animation-name:fj9wi3p;}",".fnm2mpv{animation-name:f12o7gg6;}",".f1iuewzk{animation-duration:1s;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",`.fss7axp{background-image:linear-gradient( - to right, - var(--colorNeutralStencil1Alpha) 0%, - var(--colorNeutralStencil2Alpha) 50%, - var(--colorNeutralStencil1Alpha) 100%);}`,`.f4160cw{background-image:linear-gradient( - to left, - var(--colorNeutralStencil1Alpha) 0%, - var(--colorNeutralStencil2Alpha) 50%, - var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),useRectangleStyles=__styles({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),useSizeStyles=__styles({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),useCircleSizeStyles=__styles({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),useSkeletonItemStyles_unstable=j=>{const{animation:_e,appearance:et,size:tt,shape:rt}=j,{dir:nt}=useFluent(),ot=useStyles$n(),it=useRectangleStyles(),st=useSizeStyles(),lt=useCircleSizeStyles();return j.root.className=mergeClasses(skeletonItemClassNames.root,ot.root,_e==="wave"&&ot.wave,_e==="wave"&&nt==="rtl"&&ot.waveRtl,_e==="pulse"&&ot.pulse,et==="translucent"&&ot.translucent,_e==="pulse"&&et==="translucent"&&ot.translucentPulse,rt==="rectangle"&&it.root,rt==="rectangle"&&it[tt],rt==="square"&&st[tt],rt==="circle"&<.root,rt==="circle"&&st[tt],j.root.className),j},SkeletonItem=reactExports.forwardRef((j,_e)=>{const et=useSkeletonItem_unstable(j,_e);return useSkeletonItemStyles_unstable(et),renderSkeletonItem_unstable(et)});SkeletonItem.displayName="SkeletonItem";const DefaultSvg=()=>reactExports.createElement("svg",{className:"fui-Spinner__Progressbar"},reactExports.createElement("circle",{className:"fui-Spinner__Track"}),reactExports.createElement("circle",{className:"fui-Spinner__Tail"})),SpinnerContext=reactExports.createContext(void 0),SpinnerContextDefaultValue={};SpinnerContext.Provider;const useSpinnerContext=()=>{var j;return(j=reactExports.useContext(SpinnerContext))!==null&&j!==void 0?j:SpinnerContextDefaultValue},useSpinner_unstable=(j,_e)=>{const{size:et}=useSpinnerContext(),{appearance:tt="primary",labelPosition:rt="after",size:nt=et??"medium",delay:ot=0}=j,it=useId$1("spinner"),{role:st="progressbar",tabIndex:lt,...ut}=j,ct=always(getIntrinsicElementProps("div",{ref:_e,role:st,...ut},["size"]),{elementType:"div"}),[dt,ft]=reactExports.useState(!0),[pt,gt]=useTimeout();reactExports.useEffect(()=>{if(!(ot<=0))return ft(!1),pt(()=>{ft(!0)},ot),()=>{gt()}},[pt,gt,ot]);const mt=optional(j.label,{defaultProps:{id:it},renderByDefault:!1,elementType:Label$1}),bt=optional(j.spinner,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(DefaultSvg,null),tabIndex:lt},elementType:"span"});return mt&&ct&&!ct["aria-labelledby"]&&(ct["aria-labelledby"]=mt.id),{appearance:tt,delay:ot,labelPosition:rt,size:nt,shouldRenderSpinner:dt,components:{root:"div",spinner:"span",label:Label$1},root:ct,spinner:bt,label:mt}},renderSpinner_unstable=j=>{const{labelPosition:_e,shouldRenderSpinner:et}=j;return jsxs(j.root,{children:[j.label&&et&&(_e==="above"||_e==="before")&&jsx$1(j.label,{}),j.spinner&&et&&jsx$1(j.spinner,{}),j.label&&et&&(_e==="below"||_e==="after")&&jsx$1(j.label,{})]})},spinnerClassNames={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},useRootStyles$3=__styles({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),useLoaderStyles=__styles({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useTrackStyles=__styles({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),useLabelStyles$1=__styles({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),useSpinnerStyles_unstable=j=>{const{labelPosition:_e,size:et,appearance:tt="primary"}=j,rt=useRootStyles$3(),nt=useLoaderStyles(),ot=useLabelStyles$1(),it=useTrackStyles();return j.root.className=mergeClasses(spinnerClassNames.root,rt.root,(_e==="above"||_e==="below")&&rt.vertical,(_e==="before"||_e==="after")&&rt.horizontal,j.root.className),j.spinner&&(j.spinner.className=mergeClasses(spinnerClassNames.spinner,nt.spinnerSVG,nt[et],it[tt],j.spinner.className)),j.label&&(j.label.className=mergeClasses(spinnerClassNames.label,ot[et],ot[tt],j.label.className)),j},Spinner=reactExports.forwardRef((j,_e)=>{const et=useSpinner_unstable(j,_e);return useSpinnerStyles_unstable(et),useCustomStyleHook("useSpinnerStyles_unstable")(et),renderSpinner_unstable(et)});Spinner.displayName="Spinner";const useSwitch_unstable=(j,_e)=>{j=useFieldControlProps_unstable(j,{supportsLabelFor:!0,supportsRequired:!0});const{checked:et,defaultChecked:tt,disabled:rt,labelPosition:nt="after",onChange:ot,required:it}=j,st=getPartitionedNativeProps({props:j,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),lt=useId$1("switch-",st.primary.id),ut=always(j.root,{defaultProps:{ref:useFocusWithin(),...st.root},elementType:"div"}),ct=always(j.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"}),dt=always(j.input,{defaultProps:{checked:et,defaultChecked:tt,id:lt,ref:_e,role:"switch",type:"checkbox",...st.primary},elementType:"input"});dt.onChange=mergeCallbacks(dt.onChange,pt=>ot==null?void 0:ot(pt,{checked:pt.currentTarget.checked}));const ft=optional(j.label,{defaultProps:{disabled:rt,htmlFor:lt,required:it,size:"medium"},elementType:Label$1});return{labelPosition:nt,components:{root:"div",indicator:"div",input:"input",label:Label$1},root:ut,indicator:ct,input:dt,label:ft}},renderSwitch_unstable=j=>{const{labelPosition:_e}=j;return jsxs(j.root,{children:[jsx$1(j.input,{}),_e!=="after"&&j.label&&jsx$1(j.label,{}),jsx$1(j.indicator,{}),_e==="after"&&j.label&&jsx$1(j.label,{})]})},switchClassNames={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},useRootBaseClassName=__resetStyles("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$2=__styles({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),useIndicatorBaseClassName=__resetStyles("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),useIndicatorStyles=__styles({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),useInputBaseClassName=__resetStyles("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),useInputStyles=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),useLabelStyles=__styles({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),useSwitchStyles_unstable=j=>{const _e=useRootBaseClassName(),et=useRootStyles$2(),tt=useIndicatorBaseClassName(),rt=useIndicatorStyles(),nt=useInputBaseClassName(),ot=useInputStyles(),it=useLabelStyles(),{label:st,labelPosition:lt}=j;return j.root.className=mergeClasses(switchClassNames.root,_e,lt==="above"&&et.vertical,j.root.className),j.indicator.className=mergeClasses(switchClassNames.indicator,tt,st&<==="above"&&rt.labelAbove,j.indicator.className),j.input.className=mergeClasses(switchClassNames.input,nt,st&&ot[lt],j.input.className),j.label&&(j.label.className=mergeClasses(switchClassNames.label,it.base,it[lt],j.label.className)),j},Switch=reactExports.forwardRef((j,_e)=>{const et=useSwitch_unstable(j,_e);return useSwitchStyles_unstable(et),useCustomStyleHook("useSwitchStyles_unstable")(et),renderSwitch_unstable(et)});Switch.displayName="Switch";const tabListContextDefaultValue={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},TabListContext=createContext(void 0),TabListProvider=TabListContext.Provider,useTabListContext_unstable=j=>useContextSelector(TabListContext,(_e=tabListContextDefaultValue)=>j(_e)),useTab_unstable=(j,_e)=>{const{content:et,disabled:tt=!1,icon:rt,onClick:nt,onFocus:ot,value:it}=j,st=useTabListContext_unstable(Ct=>Ct.appearance),lt=useTabListContext_unstable(Ct=>Ct.reserveSelectedTabSpace),ut=useTabListContext_unstable(Ct=>Ct.selectTabOnFocus),ct=useTabListContext_unstable(Ct=>Ct.disabled),dt=useTabListContext_unstable(Ct=>Ct.selectedValue===it),ft=useTabListContext_unstable(Ct=>Ct.onRegister),pt=useTabListContext_unstable(Ct=>Ct.onUnregister),gt=useTabListContext_unstable(Ct=>Ct.onSelect),mt=useTabListContext_unstable(Ct=>Ct.size),bt=useTabListContext_unstable(Ct=>!!Ct.vertical),_t=ct||tt,xt=reactExports.useRef(null),yt=Ct=>gt(Ct,{value:it}),Et=useEventCallback$3(mergeCallbacks(nt,yt)),St=useEventCallback$3(mergeCallbacks(ot,yt));reactExports.useEffect(()=>(ft({value:it,ref:xt}),()=>{pt({value:it,ref:xt})}),[ft,pt,xt,it]);const Tt=optional(rt,{elementType:"span"}),kt=always(et,{defaultProps:{children:j.children},elementType:"span"}),$t=!!(Tt!=null&&Tt.children&&!kt.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:always(getIntrinsicElementProps("button",{ref:useMergedRefs$1(_e,xt),role:"tab",type:"button","aria-selected":_t?void 0:`${dt}`,...j,disabled:_t,onClick:Et,onFocus:ut?St:ot}),{elementType:"button"}),icon:Tt,iconOnly:$t,content:kt,contentReservedSpace:optional(et,{renderByDefault:!dt&&!$t&<,defaultProps:{children:j.children},elementType:"span"}),appearance:st,disabled:_t,selected:dt,size:mt,value:it,vertical:bt}},renderTab_unstable=j=>jsxs(j.root,{children:[j.icon&&jsx$1(j.icon,{}),!j.iconOnly&&jsx$1(j.content,{}),j.contentReservedSpace&&jsx$1(j.contentReservedSpace,{})]}),tabIndicatorCssVars_unstable={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},useActiveIndicatorStyles$1=__styles({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),calculateTabRect=j=>{if(j){var _e;const et=((_e=j.parentElement)===null||_e===void 0?void 0:_e.getBoundingClientRect())||{x:0,y:0,width:0,height:0},tt=j.getBoundingClientRect();return{x:tt.x-et.x,y:tt.y-et.y,width:tt.width,height:tt.height}}},getRegisteredTabRect=(j,_e)=>{var et;const tt=_e!=null?(et=j[JSON.stringify(_e)])===null||et===void 0?void 0:et.ref.current:void 0;return tt?calculateTabRect(tt):void 0},useTabAnimatedIndicatorStyles_unstable=j=>{const{disabled:_e,selected:et,vertical:tt}=j,rt=useActiveIndicatorStyles$1(),[nt,ot]=reactExports.useState(),[it,st]=reactExports.useState({offset:0,scale:1}),lt=useTabListContext_unstable(dt=>dt.getRegisteredTabs);if(reactExports.useEffect(()=>{nt&&st({offset:0,scale:1})},[nt]),et){const{previousSelectedValue:dt,selectedValue:ft,registeredTabs:pt}=lt();if(dt&&nt!==dt){const gt=getRegisteredTabRect(pt,dt),mt=getRegisteredTabRect(pt,ft);if(mt&>){const bt=tt?gt.y-mt.y:gt.x-mt.x,_t=tt?gt.height/mt.height:gt.width/mt.width;st({offset:bt,scale:_t}),ot(dt)}}}else nt&&ot(void 0);if(_e)return j;const ut=it.offset===0&&it.scale===1;j.root.className=mergeClasses(j.root.className,et&&rt.base,et&&ut&&rt.animated,et&&(tt?rt.vertical:rt.horizontal));const ct={[tabIndicatorCssVars_unstable.offsetVar]:`${it.offset}px`,[tabIndicatorCssVars_unstable.scaleVar]:`${it.scale}`};return j.root.style={...ct,...j.root.style},j},tabClassNames={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},reservedSpaceClassNames={content:"fui-Tab__content--reserved-space"},useRootStyles$1=__styles({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),useFocusStyles=__styles({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),usePendingIndicatorStyles=__styles({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),useActiveIndicatorStyles=__styles({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),useIconStyles=__styles({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),useContentStyles=__styles({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),useTabStyles_unstable=j=>{const _e=useRootStyles$1(),et=useFocusStyles(),tt=usePendingIndicatorStyles(),rt=useActiveIndicatorStyles(),nt=useIconStyles(),ot=useContentStyles(),{appearance:it,disabled:st,selected:lt,size:ut,vertical:ct}=j;return j.root.className=mergeClasses(tabClassNames.root,_e.base,ct?_e.vertical:_e.horizontal,ut==="small"&&(ct?_e.smallVertical:_e.smallHorizontal),ut==="medium"&&(ct?_e.mediumVertical:_e.mediumHorizontal),ut==="large"&&(ct?_e.largeVertical:_e.largeHorizontal),et.base,!st&&it==="subtle"&&_e.subtle,!st&&it==="transparent"&&_e.transparent,!st&<&&_e.selected,st&&_e.disabled,tt.base,ut==="small"&&(ct?tt.smallVertical:tt.smallHorizontal),ut==="medium"&&(ct?tt.mediumVertical:tt.mediumHorizontal),ut==="large"&&(ct?tt.largeVertical:tt.largeHorizontal),st&&tt.disabled,lt&&rt.base,lt&&!st&&rt.selected,lt&&ut==="small"&&(ct?rt.smallVertical:rt.smallHorizontal),lt&&ut==="medium"&&(ct?rt.mediumVertical:rt.mediumHorizontal),lt&&ut==="large"&&(ct?rt.largeVertical:rt.largeHorizontal),lt&&st&&rt.disabled,j.root.className),j.icon&&(j.icon.className=mergeClasses(tabClassNames.icon,nt.base,nt[ut],lt&&nt.selected,j.icon.className)),j.contentReservedSpace&&(j.contentReservedSpace.className=mergeClasses(reservedSpaceClassNames.content,ot.base,ut==="large"?ot.largeSelected:ot.selected,j.icon?ot.iconBefore:ot.noIconBefore,ot.placeholder,j.content.className),j.contentReservedSpaceClassName=j.contentReservedSpace.className),j.content.className=mergeClasses(tabClassNames.content,ot.base,ut==="large"&&ot.large,lt&&(ut==="large"?ot.largeSelected:ot.selected),j.icon?ot.iconBefore:ot.noIconBefore,j.content.className),useTabAnimatedIndicatorStyles_unstable(j),j},Tab$1=reactExports.forwardRef((j,_e)=>{const et=useTab_unstable(j,_e);return useTabStyles_unstable(et),useCustomStyleHook("useTabStyles_unstable")(et),renderTab_unstable(et)});Tab$1.displayName="Tab";const useTabList_unstable=(j,_e)=>{const{appearance:et="transparent",reserveSelectedTabSpace:tt=!0,disabled:rt=!1,onTabSelect:nt,selectTabOnFocus:ot=!1,size:it="medium",vertical:st=!1}=j,lt=reactExports.useRef(null),ut=useArrowNavigationGroup({circular:!0,axis:st?"vertical":"horizontal",memorizeCurrent:!0}),[ct,dt]=useControllableState({state:j.selectedValue,defaultState:j.defaultSelectedValue,initialState:void 0}),ft=reactExports.useRef(void 0),pt=reactExports.useRef(void 0);reactExports.useEffect(()=>{pt.current=ft.current,ft.current=ct},[ct]);const gt=useEventCallback$3((yt,Et)=>{dt(Et.value),nt==null||nt(yt,Et)}),mt=reactExports.useRef({}),bt=useEventCallback$3(yt=>{mt.current[JSON.stringify(yt.value)]=yt}),_t=useEventCallback$3(yt=>{delete mt.current[JSON.stringify(yt.value)]}),xt=reactExports.useCallback(()=>({selectedValue:ft.current,previousSelectedValue:pt.current,registeredTabs:mt.current}),[]);return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(_e,lt),role:"tablist","aria-orientation":st?"vertical":"horizontal",...ut,...j}),{elementType:"div"}),appearance:et,reserveSelectedTabSpace:tt,disabled:rt,selectTabOnFocus:ot,selectedValue:ct,size:it,vertical:st,onRegister:bt,onUnregister:_t,onSelect:gt,getRegisteredTabs:xt}},renderTabList_unstable=(j,_e)=>jsx$1(j.root,{children:jsx$1(TabListProvider,{value:_e.tabList,children:j.root.children})}),tabListClassNames={root:"fui-TabList"},useStyles$m=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),useTabListStyles_unstable=j=>{const{vertical:_e}=j,et=useStyles$m();return j.root.className=mergeClasses(tabListClassNames.root,et.root,_e?et.vertical:et.horizontal,j.root.className),j};function useTabListContextValues_unstable(j){const{appearance:_e,reserveSelectedTabSpace:et,disabled:tt,selectTabOnFocus:rt,selectedValue:nt,onRegister:ot,onUnregister:it,onSelect:st,getRegisteredTabs:lt,size:ut,vertical:ct}=j;return{tabList:{appearance:_e,reserveSelectedTabSpace:et,disabled:tt,selectTabOnFocus:rt,selectedValue:nt,onSelect:st,onRegister:ot,onUnregister:it,getRegisteredTabs:lt,size:ut,vertical:ct}}}const TabList=reactExports.forwardRef((j,_e)=>{const et=useTabList_unstable(j,_e),tt=useTabListContextValues_unstable(et);return useTabListStyles_unstable(et),useCustomStyleHook("useTabListStyles_unstable")(et),renderTabList_unstable(et,tt)});TabList.displayName="TabList";const useText_unstable=(j,_e)=>{const{wrap:et,truncate:tt,block:rt,italic:nt,underline:ot,strikethrough:it,size:st,font:lt,weight:ut,align:ct}=j;return{align:ct??"start",block:rt??!1,font:lt??"base",italic:nt??!1,size:st??300,strikethrough:it??!1,truncate:tt??!1,underline:ot??!1,weight:ut??"regular",wrap:et??!0,components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:_e,...j}),{elementType:"span"})}},renderText_unstable=j=>jsx$1(j.root,{}),textClassNames={root:"fui-Text"},useStyles$l=__styles({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),useTextStyles_unstable=j=>{const _e=useStyles$l();return j.root.className=mergeClasses(textClassNames.root,_e.root,j.wrap===!1&&_e.nowrap,j.truncate&&_e.truncate,j.block&&_e.block,j.italic&&_e.italic,j.underline&&_e.underline,j.strikethrough&&_e.strikethrough,j.underline&&j.strikethrough&&_e.strikethroughUnderline,j.size===100&&_e.base100,j.size===200&&_e.base200,j.size===400&&_e.base400,j.size===500&&_e.base500,j.size===600&&_e.base600,j.size===700&&_e.hero700,j.size===800&&_e.hero800,j.size===900&&_e.hero900,j.size===1e3&&_e.hero1000,j.font==="monospace"&&_e.monospace,j.font==="numeric"&&_e.numeric,j.weight==="medium"&&_e.weightMedium,j.weight==="semibold"&&_e.weightSemibold,j.weight==="bold"&&_e.weightBold,j.align==="center"&&_e.alignCenter,j.align==="end"&&_e.alignEnd,j.align==="justify"&&_e.alignJustify,j.root.className),j},Text$2=reactExports.forwardRef((j,_e)=>{const et=useText_unstable(j,_e);return useTextStyles_unstable(et),useCustomStyleHook("useTextStyles_unstable")(et),renderText_unstable(et)});Text$2.displayName="Text";const disableScrollElementProp="__fluentDisableScrollElement";function useDisableBodyScroll(){const{targetDocument:j}=useFluent();return reactExports.useCallback(()=>{if(j)return disableScroll(j.body)},[j])}function disableScroll(j){var _e;const{clientWidth:et}=j.ownerDocument.documentElement;var tt;const rt=(tt=(_e=j.ownerDocument.defaultView)===null||_e===void 0?void 0:_e.innerWidth)!==null&&tt!==void 0?tt:0;return assertIsDisableScrollElement(j),j[disableScrollElementProp].count===0&&(j.style.overflow="hidden",j.style.paddingRight=`${rt-et}px`),j[disableScrollElementProp].count++,()=>{j[disableScrollElementProp].count--,j[disableScrollElementProp].count===0&&(j.style.overflow=j[disableScrollElementProp].previousOverflowStyle,j.style.paddingRight=j[disableScrollElementProp].previousPaddingRightStyle)}}function assertIsDisableScrollElement(j){var _e,et,tt;(tt=(_e=j)[et=disableScrollElementProp])!==null&&tt!==void 0||(_e[et]={count:0,previousOverflowStyle:j.style.overflow,previousPaddingRightStyle:j.style.paddingRight})}function useFocusFirstElement(j,_e){const{findFirstFocusable:et}=useFocusFinders(),{targetDocument:tt}=useFluent(),rt=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!j)return;const nt=rt.current&&et(rt.current);if(nt)nt.focus();else{var ot;(ot=rt.current)===null||ot===void 0||ot.focus()}},[et,j,_e,tt]),rt}const defaultContextValue$2={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},DialogContext=createContext(void 0),DialogProvider=DialogContext.Provider,useDialogContext_unstable=j=>useContextSelector(DialogContext,(_e=defaultContextValue$2)=>j(_e)),defaultContextValue$1=!1,DialogSurfaceContext=reactExports.createContext(void 0),DialogSurfaceProvider=DialogSurfaceContext.Provider,useDialogSurfaceContext_unstable=()=>{var j;return(j=reactExports.useContext(DialogSurfaceContext))!==null&&j!==void 0?j:defaultContextValue$1},useDialog_unstable=j=>{const{children:_e,modalType:et="modal",onOpenChange:tt,inertTrapFocus:rt=!1}=j,[nt,ot]=childrenToTriggerAndContent(_e),[it,st]=useControllableState({state:j.open,defaultState:j.defaultOpen,initialState:!1}),lt=useEventCallback$3(gt=>{tt==null||tt(gt.event,gt),gt.event.isDefaultPrevented()||st(gt.open)}),ut=useFocusFirstElement(it,et),ct=useDisableBodyScroll(),dt=!!(it&&et!=="non-modal");useIsomorphicLayoutEffect$1(()=>{if(dt)return ct()},[ct,dt]);const{modalAttributes:ft,triggerAttributes:pt}=useModalAttributes({trapFocus:et!=="non-modal",legacyTrapFocus:!rt});return{components:{backdrop:"div"},inertTrapFocus:rt,open:it,modalType:et,content:ot,trigger:nt,requestOpenChange:lt,dialogTitleId:useId$1("dialog-title-"),isNestedDialog:useHasParentContext(DialogContext),dialogRef:ut,modalAttributes:et!=="non-modal"?ft:void 0,triggerAttributes:pt}};function childrenToTriggerAndContent(j){const _e=reactExports.Children.toArray(j);switch(_e.length){case 2:return _e;case 1:return[void 0,_e[0]];default:return[void 0,void 0]}}function _extends$r(){return _extends$r=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&(et[rt]=j[rt]);return et}function _setPrototypeOf$c(j,_e){return _setPrototypeOf$c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tt,rt){return tt.__proto__=rt,tt},_setPrototypeOf$c(j,_e)}function _inheritsLoose$1(j,_e){j.prototype=Object.create(_e.prototype),j.prototype.constructor=j,_setPrototypeOf$c(j,_e)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function j(tt,rt,nt,ot,it,st){if(st!==ReactPropTypesSecret){var lt=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw lt.name="Invariant Violation",lt}}j.isRequired=j;function _e(){return j}var et={array:j,bigint:j,bool:j,func:j,number:j,object:j,string:j,symbol:j,any:j,arrayOf:_e,element:j,elementType:j,instanceOf:_e,node:j,objectOf:_e,oneOf:_e,oneOfType:_e,shape:_e,exact:_e,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return et.PropTypes=et,et};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports),config$4={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(_e){return _e.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(j){_inheritsLoose$1(_e,j);function _e(tt,rt){var nt;nt=j.call(this,tt,rt)||this;var ot=rt,it=ot&&!ot.isMounting?tt.enter:tt.appear,st;return nt.appearStatus=null,tt.in?it?(st=EXITED,nt.appearStatus=ENTERING):st=ENTERED:tt.unmountOnExit||tt.mountOnEnter?st=UNMOUNTED:st=EXITED,nt.state={status:st},nt.nextCallback=null,nt}_e.getDerivedStateFromProps=function(rt,nt){var ot=rt.in;return ot&&nt.status===UNMOUNTED?{status:EXITED}:null};var et=_e.prototype;return et.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},et.componentDidUpdate=function(rt){var nt=null;if(rt!==this.props){var ot=this.state.status;this.props.in?ot!==ENTERING&&ot!==ENTERED&&(nt=ENTERING):(ot===ENTERING||ot===ENTERED)&&(nt=EXITING)}this.updateStatus(!1,nt)},et.componentWillUnmount=function(){this.cancelNextCallback()},et.getTimeouts=function(){var rt=this.props.timeout,nt,ot,it;return nt=ot=it=rt,rt!=null&&typeof rt!="number"&&(nt=rt.exit,ot=rt.enter,it=rt.appear!==void 0?rt.appear:ot),{exit:nt,enter:ot,appear:it}},et.updateStatus=function(rt,nt){if(rt===void 0&&(rt=!1),nt!==null)if(this.cancelNextCallback(),nt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);ot&&forceReflow(ot)}this.performEnter(rt)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},et.performEnter=function(rt){var nt=this,ot=this.props.enter,it=this.context?this.context.isMounting:rt,st=this.props.nodeRef?[it]:[ReactDOM.findDOMNode(this),it],lt=st[0],ut=st[1],ct=this.getTimeouts(),dt=it?ct.appear:ct.enter;if(!rt&&!ot||config$4.disabled){this.safeSetState({status:ENTERED},function(){nt.props.onEntered(lt)});return}this.props.onEnter(lt,ut),this.safeSetState({status:ENTERING},function(){nt.props.onEntering(lt,ut),nt.onTransitionEnd(dt,function(){nt.safeSetState({status:ENTERED},function(){nt.props.onEntered(lt,ut)})})})},et.performExit=function(){var rt=this,nt=this.props.exit,ot=this.getTimeouts(),it=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!nt||config$4.disabled){this.safeSetState({status:EXITED},function(){rt.props.onExited(it)});return}this.props.onExit(it),this.safeSetState({status:EXITING},function(){rt.props.onExiting(it),rt.onTransitionEnd(ot.exit,function(){rt.safeSetState({status:EXITED},function(){rt.props.onExited(it)})})})},et.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},et.safeSetState=function(rt,nt){nt=this.setNextCallback(nt),this.setState(rt,nt)},et.setNextCallback=function(rt){var nt=this,ot=!0;return this.nextCallback=function(it){ot&&(ot=!1,nt.nextCallback=null,rt(it))},this.nextCallback.cancel=function(){ot=!1},this.nextCallback},et.onTransitionEnd=function(rt,nt){this.setNextCallback(nt);var ot=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),it=rt==null&&!this.props.addEndListener;if(!ot||it){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var st=this.props.nodeRef?[this.nextCallback]:[ot,this.nextCallback],lt=st[0],ut=st[1];this.props.addEndListener(lt,ut)}rt!=null&&setTimeout(this.nextCallback,rt)},et.render=function(){var rt=this.state.status;if(rt===UNMOUNTED)return null;var nt=this.props,ot=nt.children;nt.in,nt.mountOnEnter,nt.unmountOnExit,nt.appear,nt.enter,nt.exit,nt.timeout,nt.addEndListener,nt.onEnter,nt.onEntering,nt.onEntered,nt.onExit,nt.onExiting,nt.onExited,nt.nodeRef;var it=_objectWithoutPropertiesLoose$i(nt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof ot=="function"?ot(rt,it):React.cloneElement(React.Children.only(ot),it))},_e}(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$5(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$5,onEntering:noop$5,onEntered:noop$5,onExit:noop$5,onExiting:noop$5,onExited:noop$5};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;const Transition$1=Transition;function _assertThisInitialized$d(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}const defaultContextValue=void 0,DialogTransitionContext=reactExports.createContext(void 0),DialogTransitionProvider=DialogTransitionContext.Provider,useDialogTransitionContext_unstable=()=>{var j;return(j=reactExports.useContext(DialogTransitionContext))!==null&&j!==void 0?j:defaultContextValue},renderDialog_unstable=(j,_e)=>{const{content:et,trigger:tt}=j;return jsx$1(DialogProvider,{value:_e.dialog,children:jsxs(DialogSurfaceProvider,{value:_e.dialogSurface,children:[tt,jsx$1(Transition$1,{mountOnEnter:!0,unmountOnExit:!0,in:j.open,nodeRef:j.dialogRef,appear:!0,timeout:250,children:rt=>jsx$1(DialogTransitionProvider,{value:rt,children:et})})]})})};function useDialogContextValues_unstable(j){const{modalType:_e,open:et,dialogRef:tt,dialogTitleId:rt,isNestedDialog:nt,inertTrapFocus:ot,requestOpenChange:it,modalAttributes:st,triggerAttributes:lt}=j;return{dialog:{open:et,modalType:_e,dialogRef:tt,dialogTitleId:rt,isNestedDialog:nt,inertTrapFocus:ot,modalAttributes:st,triggerAttributes:lt,requestOpenChange:it},dialogSurface:!1}}const Dialog=reactExports.memo(j=>{const _e=useDialog_unstable(j),et=useDialogContextValues_unstable(_e);return renderDialog_unstable(_e,et)});Dialog.displayName="Dialog";const useDialogTrigger_unstable=j=>{const _e=useDialogSurfaceContext_unstable(),{children:et,disableButtonEnhancement:tt=!1,action:rt=_e?"close":"open"}=j,nt=getTriggerChild(et),ot=useDialogContext_unstable(ct=>ct.requestOpenChange),{triggerAttributes:it}=useModalAttributes(),st=useEventCallback$3(ct=>{var dt,ft;nt==null||(dt=(ft=nt.props).onClick)===null||dt===void 0||dt.call(ft,ct),ct.isDefaultPrevented()||ot({event:ct,type:"triggerClick",open:rt==="open"})}),lt={...nt==null?void 0:nt.props,ref:nt==null?void 0:nt.ref,onClick:st,...it},ut=useARIAButtonProps((nt==null?void 0:nt.type)==="button"||(nt==null?void 0:nt.type)==="a"?nt.type:"div",{...lt,type:"button"});return{children:applyTriggerPropsToChildren(et,tt?lt:ut)}},renderDialogTrigger_unstable=j=>j.children,DialogTrigger=j=>{const _e=useDialogTrigger_unstable(j);return renderDialogTrigger_unstable(_e)};DialogTrigger.displayName="DialogTrigger";DialogTrigger.isFluentTriggerComponent=!0;const useDialogSurface_unstable=(j,_e)=>{const et=useDialogContext_unstable(dt=>dt.modalType),tt=useDialogContext_unstable(dt=>dt.isNestedDialog),rt=useDialogTransitionContext_unstable(),nt=useDialogContext_unstable(dt=>dt.modalAttributes),ot=useDialogContext_unstable(dt=>dt.dialogRef),it=useDialogContext_unstable(dt=>dt.requestOpenChange),st=useDialogContext_unstable(dt=>dt.dialogTitleId),lt=useEventCallback$3(dt=>{if(isResolvedShorthand(j.backdrop)){var ft,pt;(ft=(pt=j.backdrop).onClick)===null||ft===void 0||ft.call(pt,dt)}et==="modal"&&!dt.isDefaultPrevented()&&it({event:dt,open:!1,type:"backdropClick"})}),ut=useEventCallback$3(dt=>{var ft;(ft=j.onKeyDown)===null||ft===void 0||ft.call(j,dt),dt.key===Escape&&!dt.isDefaultPrevented()&&(it({event:dt,open:!1,type:"escapeKeyDown"}),dt.preventDefault())}),ct=optional(j.backdrop,{renderByDefault:et!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return ct&&(ct.onClick=lt),{components:{backdrop:"div",root:"div"},backdrop:ct,isNestedDialog:tt,transitionStatus:rt,mountNode:j.mountNode,root:always(getIntrinsicElementProps("div",{tabIndex:-1,"aria-modal":et!=="non-modal",role:et==="alert"?"alertdialog":"dialog","aria-labelledby":j["aria-label"]?void 0:st,...j,...nt,onKeyDown:ut,ref:useMergedRefs$1(_e,ot)}),{elementType:"div"})}},renderDialogSurface_unstable=(j,_e)=>jsxs(Portal$1,{mountNode:j.mountNode,children:[j.backdrop&&jsx$1(j.backdrop,{}),jsx$1(DialogSurfaceProvider,{value:_e.dialogSurface,children:jsx$1(j.root,{})})]}),dialogSurfaceClassNames={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},useRootBaseStyle=__resetStyles("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),useRootStyles=__styles({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useBackdropBaseStyle=__resetStyles("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),useBackdropStyles$1=__styles({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useDialogSurfaceStyles_unstable=j=>{const{isNestedDialog:_e,root:et,backdrop:tt,transitionStatus:rt}=j,nt=useRootBaseStyle(),ot=useRootStyles(),it=useBackdropBaseStyle(),st=useBackdropStyles$1();return et.className=mergeClasses(dialogSurfaceClassNames.root,nt,rt&&ot.animated,rt&&ot[rt],et.className),tt&&(tt.className=mergeClasses(dialogSurfaceClassNames.backdrop,it,_e&&st.nestedDialogBackdrop,rt&&st[rt],tt.className)),j};function useDialogSurfaceContextValues_unstable(j){return{dialogSurface:!0}}const DialogSurface=reactExports.forwardRef((j,_e)=>{const et=useDialogSurface_unstable(j,_e),tt=useDialogSurfaceContextValues_unstable();return useDialogSurfaceStyles_unstable(et),useCustomStyleHook("useDialogSurfaceStyles_unstable")(et),renderDialogSurface_unstable(et,tt)});DialogSurface.displayName="DialogSurface";const useCardSelectable=(j,{referenceLabel:_e,referenceId:et},tt)=>{const{checkbox:rt={},onSelectionChange:nt,floatingAction:ot,onClick:it,onKeyDown:st}=j,{findAllFocusable:lt}=useFocusFinders(),ut=reactExports.useRef(null),[ct,dt]=useControllableState({state:j.selected,defaultState:j.defaultSelected,initialState:!1}),ft=[j.selected,j.defaultSelected,nt].some(St=>typeof St<"u"),[pt,gt]=reactExports.useState(!1),mt=reactExports.useCallback(St=>{if(!tt.current)return!1;const Tt=lt(tt.current),kt=St.target,$t=Tt.some(It=>It.contains(kt)),Ct=(ut==null?void 0:ut.current)===kt;return $t&&!Ct},[tt,lt]),bt=reactExports.useCallback(St=>{if(mt(St))return;const Tt=!ct;dt(Tt),nt&&nt(St,{selected:Tt})},[nt,ct,dt,mt]),_t=reactExports.useCallback(St=>{[Enter].includes(St.key)&&(St.preventDefault(),bt(St))},[bt]),xt=reactExports.useMemo(()=>{if(!ft||ot)return;const St={};return et?St["aria-labelledby"]=et:_e&&(St["aria-label"]=_e),optional(rt,{defaultProps:{ref:ut,type:"checkbox",checked:ct,onChange:Tt=>bt(Tt),onFocus:()=>gt(!0),onBlur:()=>gt(!1),...St},elementType:"input"})},[rt,ot,ct,ft,bt,et,_e]),yt=reactExports.useMemo(()=>{if(ot)return optional(ot,{defaultProps:{ref:ut},elementType:"div"})},[ot]),Et=reactExports.useMemo(()=>ft?{onClick:mergeCallbacks(it,bt),onKeyDown:mergeCallbacks(st,_t)}:null,[ft,bt,it,st,_t]);return{selected:ct,selectable:ft,selectFocused:pt,selectableCardProps:Et,checkboxSlot:xt,floatingActionSlot:yt}},cardContext=reactExports.createContext(void 0),cardContextDefaultValue={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},CardProvider=cardContext.Provider,useCardContext_unstable=()=>{var j;return(j=reactExports.useContext(cardContext))!==null&&j!==void 0?j:cardContextDefaultValue},focusMap={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},useCardInteractive=({focusMode:j="off",..._e})=>{const et=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(nt=>_e[nt]),rt={...useFocusableGroup({tabBehavior:focusMap[et?"no-tab":j]}),tabIndex:0};return{interactive:et,focusAttributes:!et&&j==="off"?null:rt}},useCard_unstable=(j,_e)=>{const{appearance:et="filled",orientation:tt="vertical",size:rt="medium"}=j,[nt,ot]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),[it,st]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),lt=useFocusWithin(),{selectable:ut,selected:ct,selectableCardProps:dt,selectFocused:ft,checkboxSlot:pt,floatingActionSlot:gt}=useCardSelectable(j,{referenceId:nt,referenceLabel:it},lt),mt=useMergedRefs$1(lt,_e),{interactive:bt,focusAttributes:_t}=useCardInteractive(j);return{appearance:et,orientation:tt,size:rt,interactive:bt,selectable:ut,selectFocused:ft,selected:ct,selectableA11yProps:{setReferenceId:ot,referenceId:nt,referenceLabel:it,setReferenceLabel:st},components:{root:"div",floatingAction:"div",checkbox:"input"},root:always(getIntrinsicElementProps("div",{ref:mt,role:"group",..._t,...j,...dt}),{elementType:"div"}),floatingAction:gt,checkbox:pt}},renderCard_unstable=(j,_e)=>jsx$1(j.root,{children:jsxs(CardProvider,{value:_e,children:[j.checkbox?jsx$1(j.checkbox,{}):null,j.floatingAction?jsx$1(j.floatingAction,{}):null,j.root.children]})}),cardHeaderClassNames={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},useStyles$k=__styles({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),useCardHeaderStyles_unstable=j=>{const _e=useStyles$k();return j.root.className=mergeClasses(cardHeaderClassNames.root,_e.root,j.root.className),j.image&&(j.image.className=mergeClasses(cardHeaderClassNames.image,_e.image,j.image.className)),j.header&&(j.header.className=mergeClasses(cardHeaderClassNames.header,_e.header,j.header.className)),j.description&&(j.description.className=mergeClasses(cardHeaderClassNames.description,_e.description,j.description.className)),j.action&&(j.action.className=mergeClasses(cardHeaderClassNames.action,_e.action,j.action.className)),j},cardClassNames={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},useStyles$j=__styles({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),useCardStyles_unstable=j=>{const _e=useStyles$j(),et={horizontal:_e.orientationHorizontal,vertical:_e.orientationVertical},tt={small:_e.sizeSmall,medium:_e.sizeMedium,large:_e.sizeLarge},rt={filled:_e.filled,"filled-alternative":_e.filledAlternative,outline:_e.outline,subtle:_e.subtle},nt={filled:_e.filledInteractiveSelected,"filled-alternative":_e.filledAlternativeInteractiveSelected,outline:_e.outlineInteractiveSelected,subtle:_e.subtleInteractiveSelected},ot={filled:_e.filledInteractive,"filled-alternative":_e.filledAlternativeInteractive,outline:_e.outlineInteractive,subtle:_e.subtleInteractive},it=j.interactive||j.selectable,st=reactExports.useMemo(()=>j.selectable?j.selectFocused?_e.selectableFocused:"":_e.focused,[j.selectFocused,j.selectable,_e.focused,_e.selectableFocused]);return j.root.className=mergeClasses(cardClassNames.root,_e.root,et[j.orientation],tt[j.size],rt[j.appearance],it&&ot[j.appearance],j.selected&&nt[j.appearance],st,it&&_e.highContrastInteractive,j.selected&&_e.highContrastSelected,j.root.className),j.floatingAction&&(j.floatingAction.className=mergeClasses(cardClassNames.floatingAction,_e.select,j.floatingAction.className)),j.checkbox&&(j.checkbox.className=mergeClasses(cardClassNames.checkbox,_e.hiddenCheckbox,j.checkbox.className)),j};function useCardContextValue({selectableA11yProps:j}){return{selectableA11yProps:j}}const Card=reactExports.forwardRef((j,_e)=>{const et=useCard_unstable(j,_e),tt=useCardContextValue(et);return useCardStyles_unstable(et),renderCard_unstable(et,tt)});Card.displayName="Card";function getChildWithId(j){function _e(et){return reactExports.isValidElement(et)&&!!et.props.id}return reactExports.Children.toArray(j).find(_e)}function getReferenceId(j,_e,et){return j||(_e!=null&&_e.props.id?_e.props.id:et)}const useCardHeader_unstable=(j,_e)=>{const{image:et,header:tt,description:rt,action:nt}=j,{selectableA11yProps:{referenceId:ot,setReferenceId:it}}=useCardContext_unstable(),st=reactExports.useRef(null),lt=reactExports.useRef(!1),ut=useId$1(cardHeaderClassNames.header,ot),ct=optional(tt,{renderByDefault:!0,defaultProps:{ref:st,id:lt.current?void 0:ot},elementType:"div"});return reactExports.useEffect(()=>{var dt;const ft=lt.current||(dt=st.current)===null||dt===void 0?void 0:dt.id,pt=getChildWithId(ct==null?void 0:ct.children);lt.current=!!pt,it(getReferenceId(ft,pt,ut))},[ut,tt,ct,it]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:always(getIntrinsicElementProps("div",{ref:_e,...j}),{elementType:"div"}),image:optional(et,{elementType:"div"}),header:ct,description:optional(rt,{elementType:"div"}),action:optional(nt,{elementType:"div"})}},renderCardHeader_unstable=j=>jsxs(j.root,{children:[j.image&&jsx$1(j.image,{}),jsx$1(j.header,{}),j.description&&jsx$1(j.description,{}),j.action&&jsx$1(j.action,{})]}),CardHeader=reactExports.forwardRef((j,_e)=>{const et=useCardHeader_unstable(j,_e);return useCardHeaderStyles_unstable(et),renderCardHeader_unstable(et)});CardHeader.displayName="CardHeader";function getIntentIcon(j){switch(j){case"info":return reactExports.createElement(InfoFilled,null);case"warning":return reactExports.createElement(WarningFilled,null);case"error":return reactExports.createElement(ErrorCircleFilled,null);case"success":return reactExports.createElement(CheckmarkCircleFilled,null);default:return null}}function useMessageBarReflow(j=!1){const{targetDocument:_e}=useFluent(),et=reactExports.useReducer(()=>({}),{})[1],tt=reactExports.useRef(!1),rt=reactExports.useRef(null),nt=reactExports.useRef(-1),ot=reactExports.useCallback(st=>{const lt=st[0],ut=lt==null?void 0:lt.borderBoxSize[0];if(!ut||!lt)return;const{inlineSize:ct}=ut,{target:dt}=lt;if(!isHTMLElement$4(dt))return;let ft;if(tt.current)nt.current{var lt;if(!j||!st||!(_e!=null&&_e.defaultView))return;(lt=rt.current)===null||lt===void 0||lt.disconnect();const ut=_e.defaultView,ct=new ut.ResizeObserver(ot);rt.current=ct,ct.observe(st,{box:"border-box"})},[_e,ot,j]);return reactExports.useEffect(()=>()=>{var st;(st=rt.current)===null||st===void 0||st.disconnect()},[]),{ref:it,reflowing:tt.current}}const messageBarTransitionContext=reactExports.createContext(void 0),messageBarTransitionContextDefaultValue={className:"",nodeRef:reactExports.createRef()};messageBarTransitionContext.Provider;const useMessageBarTransitionContext=()=>{var j;return(j=reactExports.useContext(messageBarTransitionContext))!==null&&j!==void 0?j:messageBarTransitionContextDefaultValue},useMessageBar_unstable=(j,_e)=>{const{layout:et="auto",intent:tt="info",politeness:rt,shape:nt="rounded"}=j,ot=rt??tt==="info"?"polite":"assertive",it=et==="auto",{ref:st,reflowing:lt}=useMessageBarReflow(it),ut=it?lt?"multiline":"singleline":et,{className:ct,nodeRef:dt}=useMessageBarTransitionContext(),ft=reactExports.useRef(null),pt=reactExports.useRef(null),{announce:gt}=useAnnounce(),mt=useId$1();return reactExports.useEffect(()=>{var bt,_t;const xt=(bt=pt.current)===null||bt===void 0?void 0:bt.textContent,yt=(_t=ft.current)===null||_t===void 0?void 0:_t.textContent,Et=[xt,yt].filter(Boolean).join(",");gt(Et,{polite:ot==="polite",alert:ot==="assertive"})},[pt,ft,gt,ot]),{components:{root:"div",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(_e,st,dt),role:"group","aria-labelledby":mt,...j}),{elementType:"div"}),icon:optional(j.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:getIntentIcon(tt)}}),layout:ut,intent:tt,transitionClassName:ct,actionsRef:ft,bodyRef:pt,titleId:mt,shape:nt}},messageBarContext=reactExports.createContext(void 0),messageBarContextDefaultValue={titleId:"",layout:"singleline",actionsRef:reactExports.createRef(),bodyRef:reactExports.createRef()},MessageBarContextProvider=messageBarContext.Provider,useMessageBarContext=()=>{var j;return(j=reactExports.useContext(messageBarContext))!==null&&j!==void 0?j:messageBarContextDefaultValue},renderMessageBar_unstable=(j,_e)=>jsx$1(MessageBarContextProvider,{value:_e.messageBar,children:jsxs(j.root,{children:[j.icon&&jsx$1(j.icon,{}),j.root.children]})}),messageBarClassNames={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},useRootBaseStyles$2=__resetStyles("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),useIconBaseStyles=__resetStyles("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),useStyles$i=__styles({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),useIconIntentStyles=__styles({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),useRootIntentStyles=__styles({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),useMessageBarStyles_unstable=j=>{const _e=useRootBaseStyles$2(),et=useIconBaseStyles(),tt=useIconIntentStyles(),rt=useRootIntentStyles(),nt=useStyles$i();return j.root.className=mergeClasses(messageBarClassNames.root,_e,j.layout==="multiline"&&nt.rootMultiline,j.shape==="square"&&nt.square,rt[j.intent],j.transitionClassName,j.root.className),j.icon&&(j.icon.className=mergeClasses(messageBarClassNames.icon,et,tt[j.intent],j.icon.className)),j};function useMessageBarContextValue_unstable(j){const{layout:_e,actionsRef:et,bodyRef:tt,titleId:rt}=j;return{messageBar:reactExports.useMemo(()=>({layout:_e,actionsRef:et,bodyRef:tt,titleId:rt}),[_e,et,tt,rt])}}const MessageBar=reactExports.forwardRef((j,_e)=>{const et=useMessageBar_unstable(j,_e);return useMessageBarStyles_unstable(et),useCustomStyleHook("useMessageBarStyles_unstable")(et),renderMessageBar_unstable(et,useMessageBarContextValue_unstable(et))});MessageBar.displayName="MessageBar";const useMessageBarTitle_unstable=(j,_e)=>{const{titleId:et}=useMessageBarContext();return{components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:_e,id:et,...j}),{elementType:"span"})}},renderMessageBarTitle_unstable=j=>jsx$1(j.root,{}),messageBarTitleClassNames={root:"fui-MessageBarTitle"},useRootBaseStyles$1=__resetStyles("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),useMessageBarTitleStyles_unstable=j=>{const _e=useRootBaseStyles$1();return j.root.className=mergeClasses(messageBarTitleClassNames.root,_e,j.root.className),j},MessageBarTitle=reactExports.forwardRef((j,_e)=>{const et=useMessageBarTitle_unstable(j,_e);return useMessageBarTitleStyles_unstable(et),useCustomStyleHook("useMessageBarTitleStyles_unstable")(et),renderMessageBarTitle_unstable(et)});MessageBarTitle.displayName="MessageBarTitle";const useMessageBarBody_unstable=(j,_e)=>{const{bodyRef:et}=useMessageBarContext();return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(_e,et),...j}),{elementType:"div"})}},renderMessageBarBody_unstable=j=>jsx$1(j.root,{}),messageBarBodyClassNames={root:"fui-MessageBarBody"},useRootBaseStyles=__resetStyles("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),useMessageBarBodyStyles_unstable=j=>{const _e=useRootBaseStyles();return j.root.className=mergeClasses(messageBarBodyClassNames.root,_e,j.root.className),j},MessageBarBody=reactExports.forwardRef((j,_e)=>{const et=useMessageBarBody_unstable(j,_e);return useMessageBarBodyStyles_unstable(et),useCustomStyleHook("useMessageBarBodyStyles_unstable")(et),renderMessageBarBody_unstable(et)});MessageBarBody.displayName="MessageBarBody";const useReducedMotion=()=>{var j;const _e=useFluent(),et=reactExports.useRef(!1),tt=canUseDOM$3()&&((j=_e.targetDocument)===null||j===void 0?void 0:j.defaultView),rt=reactExports.useCallback(nt=>{et.current=nt.matches},[]);return useIsomorphicLayoutEffect$1(()=>{if(!tt||!tt.matchMedia)return;const nt=tt.matchMedia("screen and (prefers-reduced-motion: reduce)");return nt.matches&&(et.current=!0),nt.addEventListener("change",rt),()=>nt.removeEventListener("change",rt)},[rt,tt]),et.current},getCSSStyle=j=>hasCSSOMSupport(j)?j.computedStyleMap():getElementComputedStyle(j),hasCSSOMSupport=j=>!!(typeof CSS<"u"&&CSS.number&&j.computedStyleMap),getElementComputedStyle=j=>{var _e,et;const tt=canUseDOM$3()&&((et=(_e=j.ownerDocument)===null||_e===void 0?void 0:_e.defaultView)!==null&&et!==void 0?et:window);return tt?tt.getComputedStyle(j,null):{getPropertyValue:rt=>""}};function toMs(j){const _e=j.trim();if(_e.includes("auto"))return 0;if(_e.endsWith("ms")){const et=Number(_e.replace("ms",""));return isNaN(et)?0:et}return Number(_e.slice(0,-1).replace(",","."))*1e3}const getComputedMapProp=(j,_e)=>{const et=j.getAll(_e);return et.length>0?et.map(({value:tt,unit:rt})=>`${tt}${rt}`):["0"]},getComputedStyleProp=(j,_e)=>{const et=j.getPropertyValue(_e);return et?et.split(","):["0"]},getMaxCSSDuration=(j,_e)=>{const et=Math.max(j.length,_e.length),tt=[];if(et===0)return 0;for(let rt=0;rt{const _e=hasCSSOMSupport(j),et=getCSSStyle(j),tt=ot=>_e?getComputedMapProp(et,ot):getComputedStyleProp(et,ot),rt=getMaxCSSDuration(tt("transition-duration"),tt("transition-delay")),nt=getMaxCSSDuration(tt("animation-duration"),tt("animation-delay"));return Math.max(rt,nt)},useFirstMountCondition=j=>{const _e=reactExports.useRef(!0);return _e.current&&j?(_e.current=!1,!0):_e.current};function useMotionPresence(j,_e={}){const{animateOnFirstMount:et,duration:tt}={animateOnFirstMount:!1,..._e},[rt,nt]=reactExports.useState(j&&et?"entering":j?"idle":"unmounted"),[ot,it]=reactExports.useState(!et&&j),[st,lt]=useTimeout(),[ut,ct]=useTimeout(),[dt,ft]=useAnimationFrame(),[pt,gt]=reactExports.useState(null),mt=useReducedMotion(),bt=useFirstMount(),_t=useFirstMountCondition(!!pt),xt=reactExports.useRef(j).current,yt=mt||_t&&xt&&!et,Et=reactExports.useCallback(kt=>{kt&>(kt)},[]),St=reactExports.useCallback(kt=>(ut(()=>dt(kt),0),()=>{ct(),ft()}),[ft,ct,dt,ut]),Tt=reactExports.useCallback(()=>{nt(j?"entered":"exited"),St(()=>nt(j?"idle":"unmounted"))},[St,j]);return reactExports.useEffect(()=>{if(!bt){if(yt){nt(j?"idle":"unmounted"),it(j);return}if(nt(j?"entering":"exiting"),!!pt)return St(()=>{it(j),St(()=>{const kt=tt||getMotionDuration(pt);if(kt===0){Tt();return}st(()=>Tt(),kt)})}),()=>lt()}},[pt,yt,Tt,j]),reactExports.useMemo(()=>({ref:Et,type:rt,active:ot,canRender:j||rt!=="unmounted"}),[ot,rt,j])}function useMotion(j,_e){const et=typeof j=="object",tt=useMotionPresence(et?!1:j,_e);return et?j:tt}const useReducedMotionStyles=__styles({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});function assertMotionStyles(j){}const useMotionClassNames=(j,_e)=>{const{reduced:et}=useReducedMotionStyles(),tt=reactExports.useMemo(()=>!_e.enter&&!_e.exit?"":j.active||j.type==="idle"?_e.enter:j.active?"":_e.exit,[j.active,j.type,_e.enter,_e.exit]);return reactExports.useEffect(()=>void 0,[_e]),mergeClasses(_e.default,tt,_e[j.type],et)};function useDrawerDefaultProps(j){const{open:_e=!1,size:et="small",position:tt="start"}=j;return{size:et,position:tt,open:_e}}const useBackdropResetStyles=__resetStyles("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),useBackdropStyles=__styles({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),useOverlayDrawerSurfaceStyles_unstable=j=>{const _e=useBackdropResetStyles(),et=useBackdropStyles();return j.backdrop&&(j.backdrop.className=mergeClasses(_e,j.isNestedDialog&&et.nested,j.backdrop.className)),j},OverlayDrawerSurface=reactExports.forwardRef((j,_e)=>{const et=useDialogSurface_unstable(j,_e),tt=useDialogSurfaceContextValues_unstable();return useOverlayDrawerSurfaceStyles_unstable(et),renderDialogSurface_unstable(et,tt)});OverlayDrawerSurface.displayName="OverlayDrawerSurface";const useOverlayDrawer_unstable=(j,_e)=>{const{open:et,size:tt,position:rt}=useDrawerDefaultProps(j),{modalType:nt="modal",inertTrapFocus:ot,defaultOpen:it=!1,onOpenChange:st}=j,lt=useMotion(et),ut=resolveShorthand(j.backdrop),dt=always({...j,backdrop:nt!=="non-modal"&&ut!==null?{...ut}:null},{elementType:OverlayDrawerSurface,defaultProps:{ref:useMergedRefs$1(_e,lt.ref)}}),ft=always({open:!0,defaultOpen:it,onOpenChange:st,inertTrapFocus:ot,modalType:nt,children:null},{elementType:Dialog});return{components:{root:OverlayDrawerSurface,dialog:Dialog},root:dt,dialog:ft,size:tt,position:rt,motion:lt}},renderOverlayDrawer_unstable=j=>j.motion.canRender?jsx$1(j.dialog,{children:jsx$1(j.root,{})}):null,useDrawerStyles=__styles({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useDrawerDurationStyles=__styles({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),useDrawerBaseClassNames=({position:j,size:_e,motion:et})=>{const tt=useDrawerStyles(),rt=useDrawerDurationStyles();return mergeClasses(tt[j],rt[_e],tt[_e],tt.reducedMotion,et.type==="entering"&&tt.entering,et.type==="exiting"&&tt.exiting)},overlayDrawerClassNames={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},useDrawerResetStyles=__resetStyles("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDrawerRootStyles=__styles({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),useDrawerMotionStyles=__styles({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),useBackdropMotionStyles=__styles({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),useOverlayDrawerStyles_unstable=j=>{const _e=useDrawerBaseClassNames(j),et=useDrawerResetStyles(),tt=useDrawerRootStyles(),rt=useDrawerDurationStyles(),nt=useMotionClassNames(j.motion,useDrawerMotionStyles()),ot=useMotionClassNames(j.motion,useBackdropMotionStyles()),it=j.root.backdrop;return j.root.className=mergeClasses(overlayDrawerClassNames.root,_e,et,tt[j.position],nt,j.root.className),it&&(it.className=mergeClasses(overlayDrawerClassNames.backdrop,ot,rt[j.size],it.className)),j},OverlayDrawer=reactExports.forwardRef((j,_e)=>{const et=useOverlayDrawer_unstable(j,_e);return useOverlayDrawerStyles_unstable(et),useCustomStyleHook("useDrawerOverlayStyles_unstable")(et),useCustomStyleHook("useOverlayDrawerStyles_unstable")(et),renderOverlayDrawer_unstable(et)});OverlayDrawer.displayName="OverlayDrawer";var axios$1={exports:{}},bind$2=function(_e,et){return function(){for(var rt=new Array(arguments.length),nt=0;nt"u"}function isBuffer$4(j){return j!==null&&!isUndefined(j)&&j.constructor!==null&&!isUndefined(j.constructor)&&typeof j.constructor.isBuffer=="function"&&j.constructor.isBuffer(j)}function isArrayBuffer(j){return toString$5.call(j)==="[object ArrayBuffer]"}function isFormData(j){return typeof FormData<"u"&&j instanceof FormData}function isArrayBufferView(j){var _e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?_e=ArrayBuffer.isView(j):_e=j&&j.buffer&&j.buffer instanceof ArrayBuffer,_e}function isString$2(j){return typeof j=="string"}function isNumber$5(j){return typeof j=="number"}function isObject$j(j){return j!==null&&typeof j=="object"}function isPlainObject$3(j){if(toString$5.call(j)!=="[object Object]")return!1;var _e=Object.getPrototypeOf(j);return _e===null||_e===Object.prototype}function isDate(j){return toString$5.call(j)==="[object Date]"}function isFile(j){return toString$5.call(j)==="[object File]"}function isBlob(j){return toString$5.call(j)==="[object Blob]"}function isFunction$7(j){return toString$5.call(j)==="[object Function]"}function isStream(j){return isObject$j(j)&&isFunction$7(j.pipe)}function isURLSearchParams(j){return typeof URLSearchParams<"u"&&j instanceof URLSearchParams}function trim$1(j){return j.trim?j.trim():j.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(j,_e){if(!(j===null||typeof j>"u"))if(typeof j!="object"&&(j=[j]),isArray$i(j))for(var et=0,tt=j.length;et"u"||(utils$8.isArray(st)?lt=lt+"[]":st=[st],utils$8.forEach(st,function(ct){utils$8.isDate(ct)?ct=ct.toISOString():utils$8.isObject(ct)&&(ct=JSON.stringify(ct)),nt.push(encode$1(lt)+"="+encode$1(ct))}))}),rt=nt.join("&")}if(rt){var ot=_e.indexOf("#");ot!==-1&&(_e=_e.slice(0,ot)),_e+=(_e.indexOf("?")===-1?"?":"&")+rt}return _e},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(_e,et,tt){return this.handlers.push({fulfilled:_e,rejected:et,synchronous:tt?tt.synchronous:!1,runWhen:tt?tt.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(_e){this.handlers[_e]&&(this.handlers[_e]=null)};InterceptorManager$1.prototype.forEach=function(_e){utils$7.forEach(this.handlers,function(tt){tt!==null&&_e(tt)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,normalizeHeaderName$1=function(_e,et){utils$6.forEach(_e,function(rt,nt){nt!==et&&nt.toUpperCase()===et.toUpperCase()&&(_e[et]=rt,delete _e[nt])})},enhanceError$1=function(_e,et,tt,rt,nt){return _e.config=et,tt&&(_e.code=tt),_e.request=rt,_e.response=nt,_e.isAxiosError=!0,_e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},_e},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var j=enhanceError$1;return createError=function(et,tt,rt,nt,ot){var it=new Error(et);return j(it,tt,rt,nt,ot)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var j=requireCreateError();return settle=function(et,tt,rt){var nt=rt.config.validateStatus;!rt.status||!nt||nt(rt.status)?et(rt):tt(j("Request failed with status code "+rt.status,rt.config,null,rt.request,rt))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var j=utils$9;return cookies=j.isStandardBrowserEnv()?function(){return{write:function(tt,rt,nt,ot,it,st){var lt=[];lt.push(tt+"="+encodeURIComponent(rt)),j.isNumber(nt)&<.push("expires="+new Date(nt).toGMTString()),j.isString(ot)&<.push("path="+ot),j.isString(it)&<.push("domain="+it),st===!0&<.push("secure"),document.cookie=lt.join("; ")},read:function(tt){var rt=document.cookie.match(new RegExp("(^|;\\s*)("+tt+")=([^;]*)"));return rt?decodeURIComponent(rt[3]):null},remove:function(tt){this.write(tt,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(_e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(_e)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(_e,et){return et?_e.replace(/\/+$/,"")+"/"+et.replace(/^\/+/,""):_e}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var j=requireIsAbsoluteURL(),_e=requireCombineURLs();return buildFullPath=function(tt,rt){return tt&&!j(rt)?_e(tt,rt):rt},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var j=utils$9,_e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(tt){var rt={},nt,ot,it;return tt&&j.forEach(tt.split(` -`),function(lt){if(it=lt.indexOf(":"),nt=j.trim(lt.substr(0,it)).toLowerCase(),ot=j.trim(lt.substr(it+1)),nt){if(rt[nt]&&_e.indexOf(nt)>=0)return;nt==="set-cookie"?rt[nt]=(rt[nt]?rt[nt]:[]).concat([ot]):rt[nt]=rt[nt]?rt[nt]+", "+ot:ot}}),rt},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var j=utils$9;return isURLSameOrigin=j.isStandardBrowserEnv()?function(){var et=/(msie|trident)/i.test(navigator.userAgent),tt=document.createElement("a"),rt;function nt(ot){var it=ot;return et&&(tt.setAttribute("href",it),it=tt.href),tt.setAttribute("href",it),{href:tt.href,protocol:tt.protocol?tt.protocol.replace(/:$/,""):"",host:tt.host,search:tt.search?tt.search.replace(/^\?/,""):"",hash:tt.hash?tt.hash.replace(/^#/,""):"",hostname:tt.hostname,port:tt.port,pathname:tt.pathname.charAt(0)==="/"?tt.pathname:"/"+tt.pathname}}return rt=nt(window.location.href),function(it){var st=j.isString(it)?nt(it):it;return st.protocol===rt.protocol&&st.host===rt.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var j=utils$9,_e=requireSettle(),et=requireCookies(),tt=buildURL$1,rt=requireBuildFullPath(),nt=requireParseHeaders(),ot=requireIsURLSameOrigin(),it=requireCreateError();return xhr=function(lt){return new Promise(function(ct,dt){var ft=lt.data,pt=lt.headers,gt=lt.responseType;j.isFormData(ft)&&delete pt["Content-Type"];var mt=new XMLHttpRequest;if(lt.auth){var bt=lt.auth.username||"",_t=lt.auth.password?unescape(encodeURIComponent(lt.auth.password)):"";pt.Authorization="Basic "+btoa(bt+":"+_t)}var xt=rt(lt.baseURL,lt.url);mt.open(lt.method.toUpperCase(),tt(xt,lt.params,lt.paramsSerializer),!0),mt.timeout=lt.timeout;function yt(){if(mt){var St="getAllResponseHeaders"in mt?nt(mt.getAllResponseHeaders()):null,Tt=!gt||gt==="text"||gt==="json"?mt.responseText:mt.response,kt={data:Tt,status:mt.status,statusText:mt.statusText,headers:St,config:lt,request:mt};_e(ct,dt,kt),mt=null}}if("onloadend"in mt?mt.onloadend=yt:mt.onreadystatechange=function(){!mt||mt.readyState!==4||mt.status===0&&!(mt.responseURL&&mt.responseURL.indexOf("file:")===0)||setTimeout(yt)},mt.onabort=function(){mt&&(dt(it("Request aborted",lt,"ECONNABORTED",mt)),mt=null)},mt.onerror=function(){dt(it("Network Error",lt,null,mt)),mt=null},mt.ontimeout=function(){var Tt="timeout of "+lt.timeout+"ms exceeded";lt.timeoutErrorMessage&&(Tt=lt.timeoutErrorMessage),dt(it(Tt,lt,lt.transitional&<.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",mt)),mt=null},j.isStandardBrowserEnv()){var Et=(lt.withCredentials||ot(xt))&<.xsrfCookieName?et.read(lt.xsrfCookieName):void 0;Et&&(pt[lt.xsrfHeaderName]=Et)}"setRequestHeader"in mt&&j.forEach(pt,function(Tt,kt){typeof ft>"u"&&kt.toLowerCase()==="content-type"?delete pt[kt]:mt.setRequestHeader(kt,Tt)}),j.isUndefined(lt.withCredentials)||(mt.withCredentials=!!lt.withCredentials),gt&>!=="json"&&(mt.responseType=lt.responseType),typeof lt.onDownloadProgress=="function"&&mt.addEventListener("progress",lt.onDownloadProgress),typeof lt.onUploadProgress=="function"&&mt.upload&&mt.upload.addEventListener("progress",lt.onUploadProgress),lt.cancelToken&<.cancelToken.promise.then(function(Tt){mt&&(mt.abort(),dt(Tt),mt=null)}),ft||(ft=null),mt.send(ft)})},xhr}var utils$5=utils$9,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(j,_e){!utils$5.isUndefined(j)&&utils$5.isUndefined(j["Content-Type"])&&(j["Content-Type"]=_e)}function getDefaultAdapter(){var j;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(j=requireXhr()),j}function stringifySafely(j,_e,et){if(utils$5.isString(j))try{return(_e||JSON.parse)(j),utils$5.trim(j)}catch(tt){if(tt.name!=="SyntaxError")throw tt}return(et||JSON.stringify)(j)}var defaults$4={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(_e,et){return normalizeHeaderName(et,"Accept"),normalizeHeaderName(et,"Content-Type"),utils$5.isFormData(_e)||utils$5.isArrayBuffer(_e)||utils$5.isBuffer(_e)||utils$5.isStream(_e)||utils$5.isFile(_e)||utils$5.isBlob(_e)?_e:utils$5.isArrayBufferView(_e)?_e.buffer:utils$5.isURLSearchParams(_e)?(setContentTypeIfUnset(et,"application/x-www-form-urlencoded;charset=utf-8"),_e.toString()):utils$5.isObject(_e)||et&&et["Content-Type"]==="application/json"?(setContentTypeIfUnset(et,"application/json"),stringifySafely(_e)):_e}],transformResponse:[function(_e){var et=this.transitional,tt=et&&et.silentJSONParsing,rt=et&&et.forcedJSONParsing,nt=!tt&&this.responseType==="json";if(nt||rt&&utils$5.isString(_e)&&_e.length)try{return JSON.parse(_e)}catch(ot){if(nt)throw ot.name==="SyntaxError"?enhanceError(ot,this,"E_JSON_PARSE"):ot}return _e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(_e){return _e>=200&&_e<300}};defaults$4.headers={common:{Accept:"application/json, text/plain, */*"}};utils$5.forEach(["delete","get","head"],function(_e){defaults$4.headers[_e]={}});utils$5.forEach(["post","put","patch"],function(_e){defaults$4.headers[_e]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1$1=defaults$4,utils$4=utils$9,defaults$3=defaults_1$1,transformData$1=function(_e,et,tt){var rt=this||defaults$3;return utils$4.forEach(tt,function(ot){_e=ot.call(rt,_e,et)}),_e},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(_e){return!!(_e&&_e.__CANCEL__)}),isCancel$1}var utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$2=defaults_1$1;function throwIfCancellationRequested(j){j.cancelToken&&j.cancelToken.throwIfRequested()}var dispatchRequest$1=function(_e){throwIfCancellationRequested(_e),_e.headers=_e.headers||{},_e.data=transformData.call(_e,_e.data,_e.headers,_e.transformRequest),_e.headers=utils$3.merge(_e.headers.common||{},_e.headers[_e.method]||{},_e.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(rt){delete _e.headers[rt]});var et=_e.adapter||defaults$2.adapter;return et(_e).then(function(rt){return throwIfCancellationRequested(_e),rt.data=transformData.call(_e,rt.data,rt.headers,_e.transformResponse),rt},function(rt){return isCancel(rt)||(throwIfCancellationRequested(_e),rt&&rt.response&&(rt.response.data=transformData.call(_e,rt.response.data,rt.response.headers,_e.transformResponse))),Promise.reject(rt)})},utils$2=utils$9,mergeConfig$2=function(_e,et){et=et||{};var tt={},rt=["url","method","data"],nt=["headers","auth","proxy","params"],ot=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],it=["validateStatus"];function st(dt,ft){return utils$2.isPlainObject(dt)&&utils$2.isPlainObject(ft)?utils$2.merge(dt,ft):utils$2.isPlainObject(ft)?utils$2.merge({},ft):utils$2.isArray(ft)?ft.slice():ft}function lt(dt){utils$2.isUndefined(et[dt])?utils$2.isUndefined(_e[dt])||(tt[dt]=st(void 0,_e[dt])):tt[dt]=st(_e[dt],et[dt])}utils$2.forEach(rt,function(ft){utils$2.isUndefined(et[ft])||(tt[ft]=st(void 0,et[ft]))}),utils$2.forEach(nt,lt),utils$2.forEach(ot,function(ft){utils$2.isUndefined(et[ft])?utils$2.isUndefined(_e[ft])||(tt[ft]=st(void 0,_e[ft])):tt[ft]=st(void 0,et[ft])}),utils$2.forEach(it,function(ft){ft in et?tt[ft]=st(_e[ft],et[ft]):ft in _e&&(tt[ft]=st(void 0,_e[ft]))});var ut=rt.concat(nt).concat(ot).concat(it),ct=Object.keys(_e).concat(Object.keys(et)).filter(function(ft){return ut.indexOf(ft)===-1});return utils$2.forEach(ct,lt),tt};const name="axios",version$2="0.21.4",description="Promise based HTTP client for the browser and node.js",main$1="index.js",scripts={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository={type:"git",url:"https://github.com/axios/axios.git"},keywords$1=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser$1={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name,version:version$2,description,main:main$1,scripts,repository,keywords:keywords$1,author,license,bugs,homepage,devDependencies,browser:browser$1,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(j,_e){validators$3[j]=function(tt){return typeof tt===j||"a"+(_e<1?"n ":" ")+j}});var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(j,_e){for(var et=_e?_e.split("."):currentVerArr,tt=j.split("."),rt=0;rt<3;rt++){if(et[rt]>tt[rt])return!0;if(et[rt]0;){var nt=tt[rt],ot=_e[nt];if(ot){var it=j[nt],st=it===void 0||ot(it,nt,j);if(st!==!0)throw new TypeError("option "+nt+" must be "+st);continue}if(et!==!0)throw Error("Unknown option "+nt)}}var validator$1={isOlderVersion,assertOptions,validators:validators$3},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators$2=validator.validators;function Axios$1(j){this.defaults=j,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(_e){typeof _e=="string"?(_e=arguments[1]||{},_e.url=arguments[0]):_e=_e||{},_e=mergeConfig$1(this.defaults,_e),_e.method?_e.method=_e.method.toLowerCase():this.defaults.method?_e.method=this.defaults.method.toLowerCase():_e.method="get";var et=_e.transitional;et!==void 0&&validator.assertOptions(et,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var tt=[],rt=!0;this.interceptors.request.forEach(function(dt){typeof dt.runWhen=="function"&&dt.runWhen(_e)===!1||(rt=rt&&dt.synchronous,tt.unshift(dt.fulfilled,dt.rejected))});var nt=[];this.interceptors.response.forEach(function(dt){nt.push(dt.fulfilled,dt.rejected)});var ot;if(!rt){var it=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(it,tt),it=it.concat(nt),ot=Promise.resolve(_e);it.length;)ot=ot.then(it.shift(),it.shift());return ot}for(var st=_e;tt.length;){var lt=tt.shift(),ut=tt.shift();try{st=lt(st)}catch(ct){ut(ct);break}}try{ot=dispatchRequest(st)}catch(ct){return Promise.reject(ct)}for(;nt.length;)ot=ot.then(nt.shift(),nt.shift());return ot};Axios$1.prototype.getUri=function(_e){return _e=mergeConfig$1(this.defaults,_e),buildURL(_e.url,_e.params,_e.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(_e){Axios$1.prototype[_e]=function(et,tt){return this.request(mergeConfig$1(tt||{},{method:_e,url:et,data:(tt||{}).data}))}});utils$1.forEach(["post","put","patch"],function(_e){Axios$1.prototype[_e]=function(et,tt,rt){return this.request(mergeConfig$1(rt||{},{method:_e,url:et,data:tt}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function j(_e){this.message=_e}return j.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},j.prototype.__CANCEL__=!0,Cancel_1=j,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var j=requireCancel();function _e(et){if(typeof et!="function")throw new TypeError("executor must be a function.");var tt;this.promise=new Promise(function(ot){tt=ot});var rt=this;et(function(ot){rt.reason||(rt.reason=new j(ot),tt(rt.reason))})}return _e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},_e.source=function(){var tt,rt=new _e(function(ot){tt=ot});return{token:rt,cancel:tt}},CancelToken_1=_e,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(_e){return function(tt){return _e.apply(null,tt)}}),spread$1}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(_e){return typeof _e=="object"&&_e.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$1=defaults_1$1;function createInstance(j){var _e=new Axios(j),et=bind(Axios.prototype.request,_e);return utils.extend(et,Axios.prototype,_e),utils.extend(et,_e),et}var axios=createInstance(defaults$1);axios.Axios=Axios;axios.create=function(_e){return createInstance(mergeConfig(axios.defaults,_e))};axios.Cancel=requireCancel();axios.CancelToken=requireCancelToken();axios.isCancel=requireIsCancel();axios.all=function(_e){return Promise.all(_e)};axios.spread=requireSpread();axios.isAxiosError=requireIsAxiosError();axios$1.exports=axios;axios$1.exports.default=axios;var rngBrowser={exports:{}},getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues$1){var rnds8$1=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues$1(rnds8$1),rnds8$1}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var _e=0,et;_e<16;_e++)_e&3||(et=Math.random()*4294967296),rnds[_e]=et>>>((_e&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex$1=[];for(var i$1=0;i$1<256;++i$1)byteToHex$1[i$1]=(i$1+256).toString(16).substr(1);function bytesToUuid$3(j,_e){var et=_e||0,tt=byteToHex$1;return[tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]]].join("")}var bytesToUuid_1=bytesToUuid$3,rng$2=rngBrowserExports,bytesToUuid$2=bytesToUuid_1,_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1$1(j,_e,et){var tt=_e&&et||0,rt=_e||[];j=j||{};var nt=j.node||_nodeId,ot=j.clockseq!==void 0?j.clockseq:_clockseq;if(nt==null||ot==null){var it=rng$2();nt==null&&(nt=_nodeId=[it[0]|1,it[1],it[2],it[3],it[4],it[5]]),ot==null&&(ot=_clockseq=(it[6]<<8|it[7])&16383)}var st=j.msecs!==void 0?j.msecs:new Date().getTime(),lt=j.nsecs!==void 0?j.nsecs:_lastNSecs+1,ut=st-_lastMSecs+(lt-_lastNSecs)/1e4;if(ut<0&&j.clockseq===void 0&&(ot=ot+1&16383),(ut<0||st>_lastMSecs)&&j.nsecs===void 0&&(lt=0),lt>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=st,_lastNSecs=lt,_clockseq=ot,st+=122192928e5;var ct=((st&268435455)*1e4+lt)%4294967296;rt[tt++]=ct>>>24&255,rt[tt++]=ct>>>16&255,rt[tt++]=ct>>>8&255,rt[tt++]=ct&255;var dt=st/4294967296*1e4&268435455;rt[tt++]=dt>>>8&255,rt[tt++]=dt&255,rt[tt++]=dt>>>24&15|16,rt[tt++]=dt>>>16&255,rt[tt++]=ot>>>8|128,rt[tt++]=ot&255;for(var ft=0;ft<6;++ft)rt[tt+ft]=nt[ft];return _e||bytesToUuid$2(rt)}var v1_1=v1$1,rng$1=rngBrowserExports,bytesToUuid$1=bytesToUuid_1;function v4$2(j,_e,et){var tt=_e&&et||0;typeof j=="string"&&(_e=j==="binary"?new Array(16):null,j=null),j=j||{};var rt=j.random||(j.rng||rng$1)();if(rt[6]=rt[6]&15|64,rt[8]=rt[8]&63|128,_e)for(var nt=0;nt<16;++nt)_e[tt+nt]=rt[nt];return _e||bytesToUuid$1(rt)}var v4_1=v4$2,v1=v1_1,v4$1=v4_1,uuid=v4$1;uuid.v1=v1;uuid.v4=v4$1;var uuid_1=uuid;const BASELINE_VARIANT_ID="variant_0",DEFAULT_CHAT_INPUT_NAME="chat_input",DEFAULT_CHAT_HISTORY_NAME="chat_history",DEFAULT_CHAT_OUTPUT_NAME="chat_output";var FlowFeatures=(j=>(j.OpenCodeFileInNode="OpenCodeFileInNode",j.ShowWarningIconOnNode="ShowWarningIconOnNode",j))(FlowFeatures||{}),ConnectionType=(j=>(j.OpenAI="OpenAI",j.AzureOpenAI="AzureOpenAI",j.Serp="Serp",j.Bing="Bing",j.AzureContentModerator="AzureContentModerator",j.Custom="Custom",j.AzureContentSafety="AzureContentSafety",j.CognitiveSearch="CognitiveSearch",j.SubstrateLLM="SubstrateLLM",j.Pinecone="Pinecone",j.Qdrant="Qdrant",j.Weaviate="Weaviate",j.FormRecognizer="FormRecognizer",j.Serverless="Serverless",j))(ConnectionType||{}),FlowType=(j=>(j.Default="Default",j.Evaluation="Evaluation",j.Chat="Chat",j.Rag="Rag",j))(FlowType||{}),InputType=(j=>(j.default="default",j.uionly_hidden="uionly_hidden",j))(InputType||{}),Orientation$1=(j=>(j.Horizontal="Horizontal",j.Vertical="Vertical",j))(Orientation$1||{}),ToolType=(j=>(j.llm="llm",j.python="python",j.action="action",j.prompt="prompt",j.custom_llm="custom_llm",j.csharp="csharp",j.typescript="typescript",j))(ToolType||{}),ValueType=(j=>(j.int="int",j.double="double",j.bool="bool",j.string="string",j.secret="secret",j.prompt_template="prompt_template",j.object="object",j.list="list",j.BingConnection="BingConnection",j.OpenAIConnection="OpenAIConnection",j.AzureOpenAIConnection="AzureOpenAIConnection",j.AzureContentModeratorConnection="AzureContentModeratorConnection",j.CustomConnection="CustomConnection",j.AzureContentSafetyConnection="AzureContentSafetyConnection",j.SerpConnection="SerpConnection",j.CognitiveSearchConnection="CognitiveSearchConnection",j.SubstrateLLMConnection="SubstrateLLMConnection",j.PineconeConnection="PineconeConnection",j.QdrantConnection="QdrantConnection",j.WeaviateConnection="WeaviateConnection",j.function_list="function_list",j.function_str="function_str",j.FormRecognizerConnection="FormRecognizerConnection",j.file_path="file_path",j.image="image",j.assistant_definition="assistant_definition",j.ServerlessConnection="ServerlessConnection",j))(ValueType||{});const FLOW_INPUT_REF_NAME_FLOW="flow",FLOW_INPUT_REF_NAME_INPUT="inputs",FLOW_INPUT_NODE_NAME="inputs",FLOW_OUTPUT_NODE_NAME="outputs",isFlowInput=j=>[FLOW_INPUT_REF_NAME_FLOW,FLOW_INPUT_REF_NAME_INPUT].includes(j),SystemColors=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var ValidationErrorType=(j=>(j.CircularDependency="CircularDependency",j.InputDependencyNotFound="InputDependencyNotFound",j.InputGenerateError="InputGenerateError",j.InputSelfReference="InputSelfReference",j.InputEmpty="InputEmpty",j.InputInvalidType="InputInvalidType",j.NodeConfigInvalid="NodeConfigInvalid",j.UnparsedCode="UnparsedCode",j.EmptyCode="EmptyCode",j.MissingTool="MissingTool",j.AutoParseInputError="AutoParseInputError",j.RuntimeNameEmpty="RuntimeNameEmpty",j.RuntimeStatusInvalid="RuntimeStatusInvalid",j))(ValidationErrorType||{}),ChatMessageFrom=(j=>(j.System="system",j.ErrorHandler="error",j.Chatbot="chatbot",j.User="user",j))(ChatMessageFrom||{}),ChatMessageType$1=(j=>(j.Text="text",j.Typing="typing",j.SessionSplit="session-split",j))(ChatMessageType$1||{});const convertToBool=j=>j==="true"||j==="True"||j===!0,basicValueTypeDetector=j=>Array.isArray(j)?ValueType.list:typeof j=="boolean"?ValueType.bool:typeof j=="string"?ValueType.string:typeof j=="number"?Number.isInteger(j)?ValueType.int:ValueType.double:ValueType.object;function valueStringify(j){if(j==null)return;switch(basicValueTypeDetector(j)){case ValueType.string:return j;case ValueType.int:case ValueType.double:return j.toString();case ValueType.bool:return j?"True":"False";case ValueType.object:case ValueType.list:return JSON.stringify(j);default:return String(j)}}var lodash$1={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */lodash$1.exports;(function(j,_e){(function(){var et,tt="4.17.21",rt=200,nt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ot="Expected a function",it="Invalid `variable` option passed into `_.template`",st="__lodash_hash_undefined__",lt=500,ut="__lodash_placeholder__",ct=1,dt=2,ft=4,pt=1,gt=2,mt=1,bt=2,_t=4,xt=8,yt=16,Et=32,St=64,Tt=128,kt=256,$t=512,Ct=30,It="...",Nt=800,Ot=16,jt=1,Mt=2,Rt=3,Lt=1/0,Pt=9007199254740991,Gt=17976931348623157e292,qt=NaN,Yt=4294967295,Xt=Yt-1,tr=Yt>>>1,cr=[["ary",Tt],["bind",mt],["bindKey",bt],["curry",xt],["curryRight",yt],["flip",$t],["partial",Et],["partialRight",St],["rearg",kt]],mr="[object Arguments]",Er="[object Array]",hr="[object AsyncFunction]",_r="[object Boolean]",Ut="[object Date]",ar="[object DOMException]",pr="[object Error]",rr="[object Function]",vr="[object GeneratorFunction]",$r="[object Map]",Rr="[object Number]",Cr="[object Null]",Nr="[object Object]",Gr="[object Promise]",qr="[object Proxy]",Qr="[object RegExp]",Yr="[object Set]",Pr="[object String]",Vr="[object Symbol]",yn="[object Undefined]",fr="[object WeakMap]",sr="[object WeakSet]",ir="[object ArrayBuffer]",gr="[object DataView]",wr="[object Float32Array]",Mr="[object Float64Array]",Sr="[object Int8Array]",Ir="[object Int16Array]",zr="[object Int32Array]",Xr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",sn="[object Uint16Array]",$n="[object Uint32Array]",Nn=/\b__p \+= '';/g,hn=/\b(__p \+=) '' \+/g,jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qn=/&(?:amp|lt|gt|quot|#39);/g,Sn=/[&<>"']/g,un=RegExp(qn.source),Fn=RegExp(Sn.source),On=/<%-([\s\S]+?)%>/g,Pn=/<%([\s\S]+?)%>/g,wn=/<%=([\s\S]+?)%>/g,fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/,jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zn=/[\\^$.*+?()[\]{}|]/g,ro=RegExp(zn.source),Mn=/^\s+/,Fo=/\s/,mo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eo=/\{\n\/\* \[wrapped with (.+)\] \*/,Co=/,? & /,Dr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kt=/[()=,{}\[\]\/\s]/,Zt=/\\(\\)?/g,zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ht=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,Qt=/^0b[01]+$/i,or=/^\[object .+?Constructor\]$/,lr=/^0o[0-7]+$/i,er=/^(?:0|[1-9]\d*)$/,yr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Lr=/($^)/,nn=/['\n\r\u2028\u2029\\]/g,cn="\\ud800-\\udfff",rn="\\u0300-\\u036f",en="\\ufe20-\\ufe2f",_n="\\u20d0-\\u20ff",Ln=rn+en+_n,dn="\\u2700-\\u27bf",Kn="a-z\\xdf-\\xf6\\xf8-\\xff",to="\\xac\\xb1\\xd7\\xf7",fo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Po="\\u2000-\\u206f",xo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",zo="\\ufe0e\\ufe0f",Zn=to+fo+Po+xo,wo="['’]",na="["+cn+"]",Ho="["+Zn+"]",ga="["+Ln+"]",Go="\\d+",ps="["+dn+"]",Uo="["+Kn+"]",xa="[^"+cn+Zn+Go+dn+Kn+_i+"]",es="\\ud83c[\\udffb-\\udfff]",Yo="(?:"+ga+"|"+es+")",Xo="[^"+cn+"]",Ps="(?:\\ud83c[\\udde6-\\uddff]){2}",El="[\\ud800-\\udbff][\\udc00-\\udfff]",hs="["+_i+"]",Kl="\\u200d",Sl="(?:"+Uo+"|"+xa+")",$s="(?:"+hs+"|"+xa+")",zs="(?:"+wo+"(?:d|ll|m|re|s|t|ve))?",Hs="(?:"+wo+"(?:D|LL|M|RE|S|T|VE))?",Cs=Yo+"?",gs="["+zo+"]?",Lu="(?:"+Kl+"(?:"+[Xo,Ps,El].join("|")+")"+gs+Cs+")*",Ul="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tl=gs+Cs+Lu,ju="(?:"+[ps,Ps,El].join("|")+")"+Tl,Fu="(?:"+[Xo+ga+"?",ga,Ps,El,na].join("|")+")",ws=RegExp(wo,"g"),Pu=RegExp(ga,"g"),vs=RegExp(es+"(?="+es+")|"+Fu+Tl,"g"),Yl=RegExp([hs+"?"+Uo+"+"+zs+"(?="+[Ho,hs,"$"].join("|")+")",$s+"+"+Hs+"(?="+[Ho,hs+Sl,"$"].join("|")+")",hs+"?"+Sl+"+"+zs,hs+"+"+Hs,Bu,Ul,Go,ju].join("|"),"g"),Br=RegExp("["+Kl+cn+Ln+zo+"]"),Hr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gn=-1,tn={};tn[wr]=tn[Mr]=tn[Sr]=tn[Ir]=tn[zr]=tn[Xr]=tn[Zr]=tn[sn]=tn[$n]=!0,tn[mr]=tn[Er]=tn[ir]=tn[_r]=tn[gr]=tn[Ut]=tn[pr]=tn[rr]=tn[$r]=tn[Rr]=tn[Nr]=tn[Qr]=tn[Yr]=tn[Pr]=tn[fr]=!1;var an={};an[mr]=an[Er]=an[ir]=an[gr]=an[_r]=an[Ut]=an[wr]=an[Mr]=an[Sr]=an[Ir]=an[zr]=an[$r]=an[Rr]=an[Nr]=an[Qr]=an[Yr]=an[Pr]=an[Vr]=an[Xr]=an[Zr]=an[sn]=an[$n]=!0,an[pr]=an[rr]=an[fr]=!1;var Gn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Vn={"&":"&","<":"<",">":">",'"':""","'":"'"},no={"&":"&","<":"<",">":">",""":'"',"'":"'"},Io={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ts=parseFloat,zu=parseInt,Gs=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Al=typeof self=="object"&&self&&self.Object===Object&&self,oo=Gs||Al||Function("return this")(),Hu=_e&&!_e.nodeType&&_e,Is=Hu&&!0&&j&&!j.nodeType&&j,Qp=Is&&Is.exports===Hu,Gu=Qp&&Gs.process,Ro=function(){try{var ur=Is&&Is.require&&Is.require("util").types;return ur||Gu&&Gu.binding&&Gu.binding("util")}catch{}}(),Jp=Ro&&Ro.isArrayBuffer,e1=Ro&&Ro.isDate,r1=Ro&&Ro.isMap,n1=Ro&&Ro.isRegExp,o1=Ro&&Ro.isSet,i1=Ro&&Ro.isTypedArray;function Eo(ur,xr,br){switch(br.length){case 0:return ur.call(xr);case 1:return ur.call(xr,br[0]);case 2:return ur.call(xr,br[0],br[1]);case 3:return ur.call(xr,br[0],br[1],br[2])}return ur.apply(xr,br)}function uv(ur,xr,br,Ur){for(var xn=-1,Dn=ur==null?0:ur.length;++xn-1}function Vu(ur,xr,br){for(var Ur=-1,xn=ur==null?0:ur.length;++Ur-1;);return br}function p1(ur,xr){for(var br=ur.length;br--&&Vs(xr,ur[br],0)>-1;);return br}function yv(ur,xr){for(var br=ur.length,Ur=0;br--;)ur[br]===xr&&++Ur;return Ur}var bv=Uu(Gn),_v=Uu(Vn);function xv(ur){return"\\"+Io[ur]}function Ev(ur,xr){return ur==null?et:ur[xr]}function Ws(ur){return Br.test(ur)}function Sv(ur){return Hr.test(ur)}function Tv(ur){for(var xr,br=[];!(xr=ur.next()).done;)br.push(xr.value);return br}function Qu(ur){var xr=-1,br=Array(ur.size);return ur.forEach(function(Ur,xn){br[++xr]=[xn,Ur]}),br}function h1(ur,xr){return function(br){return ur(xr(br))}}function _s(ur,xr){for(var br=-1,Ur=ur.length,xn=0,Dn=[];++br-1}function f0(ht,vt){var At=this.__data__,wt=pu(At,ht);return wt<0?(++this.size,At.push([ht,vt])):At[wt][1]=vt,this}rs.prototype.clear=l0,rs.prototype.delete=u0,rs.prototype.get=c0,rs.prototype.has=d0,rs.prototype.set=f0;function os(ht){var vt=-1,At=ht==null?0:ht.length;for(this.clear();++vt=vt?ht:vt)),ht}function Mo(ht,vt,At,wt,Bt,Wt){var Jt,nr=vt&ct,dr=vt&dt,Tr=vt&ft;if(At&&(Jt=Bt?At(ht,wt,Bt,Wt):At(ht)),Jt!==et)return Jt;if(!Yn(ht))return ht;var Ar=En(ht);if(Ar){if(Jt=my(ht),!nr)return vo(ht,Jt)}else{var Or=co(ht),Wr=Or==rr||Or==vr;if(ks(ht))return Z1(ht,nr);if(Or==Nr||Or==mr||Wr&&!Bt){if(Jt=dr||Wr?{}:hm(ht),!nr)return dr?iy(ht,C0(Jt,ht)):oy(ht,$1(Jt,ht))}else{if(!an[Or])return Bt?ht:{};Jt=vy(ht,Or,nr)}}Wt||(Wt=new Wo);var Jr=Wt.get(ht);if(Jr)return Jr;Wt.set(ht,Jt),Gm(ht)?ht.forEach(function(vn){Jt.add(Mo(vn,vt,At,vn,ht,Wt))}):zm(ht)&&ht.forEach(function(vn,Cn){Jt.set(Cn,Mo(vn,vt,At,Cn,ht,Wt))});var mn=Tr?dr?xp:_p:dr?bo:so,An=Ar?et:mn(ht);return No(An||ht,function(vn,Cn){An&&(Cn=vn,vn=ht[Cn]),Dl(Jt,Cn,Mo(vn,vt,At,Cn,ht,Wt))}),Jt}function w0(ht){var vt=so(ht);return function(At){return C1(At,ht,vt)}}function C1(ht,vt,At){var wt=At.length;if(ht==null)return!wt;for(ht=Wn(ht);wt--;){var Bt=At[wt],Wt=vt[Bt],Jt=ht[Bt];if(Jt===et&&!(Bt in ht)||!Wt(Jt))return!1}return!0}function w1(ht,vt,At){if(typeof ht!="function")throw new Oo(ot);return Hl(function(){ht.apply(et,At)},vt)}function Ml(ht,vt,At,wt){var Bt=-1,Wt=Xl,Jt=!0,nr=ht.length,dr=[],Tr=vt.length;if(!nr)return dr;At&&(vt=Un(vt,So(At))),wt?(Wt=Vu,Jt=!1):vt.length>=rt&&(Wt=$l,Jt=!1,vt=new Os(vt));e:for(;++BtBt?0:Bt+At),wt=wt===et||wt>Bt?Bt:Tn(wt),wt<0&&(wt+=Bt),wt=At>wt?0:Wm(wt);At0&&At(nr)?vt>1?lo(nr,vt-1,At,wt,Bt):bs(Bt,nr):wt||(Bt[Bt.length]=nr)}return Bt}var rp=tm(),N1=tm(!0);function Zo(ht,vt){return ht&&rp(ht,vt,so)}function np(ht,vt){return ht&&N1(ht,vt,so)}function gu(ht,vt){return ys(vt,function(At){return cs(ht[At])})}function Ms(ht,vt){vt=Ts(vt,ht);for(var At=0,wt=vt.length;ht!=null&&Atvt}function N0(ht,vt){return ht!=null&&Hn.call(ht,vt)}function O0(ht,vt){return ht!=null&&vt in Wn(ht)}function D0(ht,vt,At){return ht>=uo(vt,At)&&ht=120&&Ar.length>=120)?new Os(Jt&&Ar):et}Ar=ht[0];var Or=-1,Wr=nr[0];e:for(;++Or-1;)nr!==ht&&au.call(nr,dr,1),au.call(ht,dr,1);return ht}function G1(ht,vt){for(var At=ht?vt.length:0,wt=At-1;At--;){var Bt=vt[At];if(At==wt||Bt!==Wt){var Wt=Bt;us(Bt)?au.call(ht,Bt,1):pp(ht,Bt)}}return ht}function cp(ht,vt){return ht+uu(S1()*(vt-ht+1))}function K0(ht,vt,At,wt){for(var Bt=-1,Wt=ao(lu((vt-ht)/(At||1)),0),Jt=br(Wt);Wt--;)Jt[wt?Wt:++Bt]=ht,ht+=At;return Jt}function dp(ht,vt){var At="";if(!ht||vt<1||vt>Pt)return At;do vt%2&&(At+=ht),vt=uu(vt/2),vt&&(ht+=ht);while(vt);return At}function kn(ht,vt){return Cp(vm(ht,vt,_o),ht+"")}function U0(ht){return k1(xl(ht))}function Y0(ht,vt){var At=xl(ht);return ku(At,Ds(vt,0,At.length))}function Fl(ht,vt,At,wt){if(!Yn(ht))return ht;vt=Ts(vt,ht);for(var Bt=-1,Wt=vt.length,Jt=Wt-1,nr=ht;nr!=null&&++BtBt?0:Bt+vt),At=At>Bt?Bt:At,At<0&&(At+=Bt),Bt=vt>At?0:At-vt>>>0,vt>>>=0;for(var Wt=br(Bt);++wt>>1,Jt=ht[Wt];Jt!==null&&!Ao(Jt)&&(At?Jt<=vt:Jt=rt){var Tr=vt?null:uy(ht);if(Tr)return Ql(Tr);Jt=!1,Bt=$l,dr=new Os}else dr=vt?[]:nr;e:for(;++wt=wt?ht:Lo(ht,vt,At)}var X1=Fv||function(ht){return oo.clearTimeout(ht)};function Z1(ht,vt){if(vt)return ht.slice();var At=ht.length,wt=y1?y1(At):new ht.constructor(At);return ht.copy(wt),wt}function vp(ht){var vt=new ht.constructor(ht.byteLength);return new ou(vt).set(new ou(ht)),vt}function ey(ht,vt){var At=vt?vp(ht.buffer):ht.buffer;return new ht.constructor(At,ht.byteOffset,ht.byteLength)}function ty(ht){var vt=new ht.constructor(ht.source,Ht.exec(ht));return vt.lastIndex=ht.lastIndex,vt}function ry(ht){return Ol?Wn(Ol.call(ht)):{}}function Q1(ht,vt){var At=vt?vp(ht.buffer):ht.buffer;return new ht.constructor(At,ht.byteOffset,ht.length)}function J1(ht,vt){if(ht!==vt){var At=ht!==et,wt=ht===null,Bt=ht===ht,Wt=Ao(ht),Jt=vt!==et,nr=vt===null,dr=vt===vt,Tr=Ao(vt);if(!nr&&!Tr&&!Wt&&ht>vt||Wt&&Jt&&dr&&!nr&&!Tr||wt&&Jt&&dr||!At&&dr||!Bt)return 1;if(!wt&&!Wt&&!Tr&&ht=nr)return dr;var Tr=At[wt];return dr*(Tr=="desc"?-1:1)}}return ht.index-vt.index}function _h(ht,vt,At,wt){for(var Bt=-1,Wt=ht.length,Jt=At.length,nr=-1,dr=vt.length,Tr=ao(Wt-Jt,0),Ar=br(dr+Tr),Or=!wt;++nr1?At[Bt-1]:et,Jt=Bt>2?At[2]:et;for(Wt=ht.length>3&&typeof Wt=="function"?(Bt--,Wt):et,Jt&&ho(At[0],At[1],Jt)&&(Wt=Bt<3?et:Wt,Bt=1),vt=Wn(vt);++wt-1?Bt[Wt?vt[Jt]:Jt]:et}}function om(ht){return ls(function(vt){var At=vt.length,wt=At,Bt=Do.prototype.thru;for(ht&&vt.reverse();wt--;){var Wt=vt[wt];if(typeof Wt!="function")throw new Oo(ot);if(Bt&&!Jt&&Tu(Wt)=="wrapper")var Jt=new Do([],!0)}for(wt=Jt?wt:At;++wt1&&Rn.reverse(),Ar&&drnr))return!1;var Tr=Wt.get(ht),Ar=Wt.get(vt);if(Tr&&Ar)return Tr==vt&&Ar==ht;var Or=-1,Wr=!0,Jr=At>?new Os:et;for(Wt.set(ht,vt),Wt.set(vt,ht);++Or1?"& ":"")+vt[wt],vt=vt.join(At>2?", ":" "),ht.replace(mo,`{ -/* [wrapped with `+vt+`] */ -`)}function by(ht){return En(ht)||Fs(ht)||!!(x1&&ht&&ht[x1])}function us(ht,vt){var At=typeof ht;return vt=vt??Pt,!!vt&&(At=="number"||At!="symbol"&&er.test(ht))&&ht>-1&&ht%1==0&&ht0){if(++vt>=Nt)return arguments[0]}else vt=0;return ht.apply(et,arguments)}}function ku(ht,vt){var At=-1,wt=ht.length,Bt=wt-1;for(vt=vt===et?wt:vt;++At1?ht[vt-1]:et;return At=typeof At=="function"?(ht.pop(),At):et,wm(ht,At)});function Im(ht){var vt=Vt(ht);return vt.__chain__=!0,vt}function I_(ht,vt){return vt(ht),ht}function $u(ht,vt){return vt(ht)}var R_=ls(function(ht){var vt=ht.length,At=vt?ht[0]:0,wt=this.__wrapped__,Bt=function(Wt){return tp(Wt,ht)};return vt>1||this.__actions__.length||!(wt instanceof In)||!us(At)?this.thru(Bt):(wt=wt.slice(At,+At+(vt?1:0)),wt.__actions__.push({func:$u,args:[Bt],thisArg:et}),new Do(wt,this.__chain__).thru(function(Wt){return vt&&!Wt.length&&Wt.push(et),Wt}))});function N_(){return Im(this)}function O_(){return new Do(this.value(),this.__chain__)}function D_(){this.__values__===et&&(this.__values__=Vm(this.value()));var ht=this.__index__>=this.__values__.length,vt=ht?et:this.__values__[this.__index__++];return{done:ht,value:vt}}function M_(){return this}function L_(ht){for(var vt,At=this;At instanceof fu;){var wt=Sm(At);wt.__index__=0,wt.__values__=et,vt?Bt.__wrapped__=wt:vt=wt;var Bt=wt;At=At.__wrapped__}return Bt.__wrapped__=ht,vt}function B_(){var ht=this.__wrapped__;if(ht instanceof In){var vt=ht;return this.__actions__.length&&(vt=new In(this)),vt=vt.reverse(),vt.__actions__.push({func:$u,args:[wp],thisArg:et}),new Do(vt,this.__chain__)}return this.thru(wp)}function j_(){return U1(this.__wrapped__,this.__actions__)}var F_=bu(function(ht,vt,At){Hn.call(ht,At)?++ht[At]:as(ht,At,1)});function P_(ht,vt,At){var wt=En(ht)?a1:I0;return At&&ho(ht,vt,At)&&(vt=et),wt(ht,pn(vt,3))}function z_(ht,vt){var At=En(ht)?ys:R1;return At(ht,pn(vt,3))}var H_=nm(Tm),G_=nm(Am);function V_(ht,vt){return lo(Cu(ht,vt),1)}function W_(ht,vt){return lo(Cu(ht,vt),Lt)}function q_(ht,vt,At){return At=At===et?1:Tn(At),lo(Cu(ht,vt),At)}function Rm(ht,vt){var At=En(ht)?No:Es;return At(ht,pn(vt,3))}function Nm(ht,vt){var At=En(ht)?cv:I1;return At(ht,pn(vt,3))}var K_=bu(function(ht,vt,At){Hn.call(ht,At)?ht[At].push(vt):as(ht,At,[vt])});function U_(ht,vt,At,wt){ht=yo(ht)?ht:xl(ht),At=At&&!wt?Tn(At):0;var Bt=ht.length;return At<0&&(At=ao(Bt+At,0)),Ou(ht)?At<=Bt&&ht.indexOf(vt,At)>-1:!!Bt&&Vs(ht,vt,At)>-1}var Y_=kn(function(ht,vt,At){var wt=-1,Bt=typeof vt=="function",Wt=yo(ht)?br(ht.length):[];return Es(ht,function(Jt){Wt[++wt]=Bt?Eo(vt,Jt,At):Ll(Jt,vt,At)}),Wt}),X_=bu(function(ht,vt,At){as(ht,At,vt)});function Cu(ht,vt){var At=En(ht)?Un:B1;return At(ht,pn(vt,3))}function Z_(ht,vt,At,wt){return ht==null?[]:(En(vt)||(vt=vt==null?[]:[vt]),At=wt?et:At,En(At)||(At=At==null?[]:[At]),z1(ht,vt,At))}var Q_=bu(function(ht,vt,At){ht[At?0:1].push(vt)},function(){return[[],[]]});function J_(ht,vt,At){var wt=En(ht)?Wu:c1,Bt=arguments.length<3;return wt(ht,pn(vt,4),At,Bt,Es)}function ex(ht,vt,At){var wt=En(ht)?dv:c1,Bt=arguments.length<3;return wt(ht,pn(vt,4),At,Bt,I1)}function tx(ht,vt){var At=En(ht)?ys:R1;return At(ht,Ru(pn(vt,3)))}function rx(ht){var vt=En(ht)?k1:U0;return vt(ht)}function nx(ht,vt,At){(At?ho(ht,vt,At):vt===et)?vt=1:vt=Tn(vt);var wt=En(ht)?A0:Y0;return wt(ht,vt)}function ox(ht){var vt=En(ht)?k0:Z0;return vt(ht)}function ix(ht){if(ht==null)return 0;if(yo(ht))return Ou(ht)?qs(ht):ht.length;var vt=co(ht);return vt==$r||vt==Yr?ht.size:sp(ht).length}function ax(ht,vt,At){var wt=En(ht)?qu:Q0;return At&&ho(ht,vt,At)&&(vt=et),wt(ht,pn(vt,3))}var sx=kn(function(ht,vt){if(ht==null)return[];var At=vt.length;return At>1&&ho(ht,vt[0],vt[1])?vt=[]:At>2&&ho(vt[0],vt[1],vt[2])&&(vt=[vt[0]]),z1(ht,lo(vt,1),[])}),wu=Pv||function(){return oo.Date.now()};function lx(ht,vt){if(typeof vt!="function")throw new Oo(ot);return ht=Tn(ht),function(){if(--ht<1)return vt.apply(this,arguments)}}function Om(ht,vt,At){return vt=At?et:vt,vt=ht&&vt==null?ht.length:vt,ss(ht,Tt,et,et,et,et,vt)}function Dm(ht,vt){var At;if(typeof vt!="function")throw new Oo(ot);return ht=Tn(ht),function(){return--ht>0&&(At=vt.apply(this,arguments)),ht<=1&&(vt=et),At}}var Rp=kn(function(ht,vt,At){var wt=mt;if(At.length){var Bt=_s(At,yl(Rp));wt|=Et}return ss(ht,wt,vt,At,Bt)}),Mm=kn(function(ht,vt,At){var wt=mt|bt;if(At.length){var Bt=_s(At,yl(Mm));wt|=Et}return ss(vt,wt,ht,At,Bt)});function Lm(ht,vt,At){vt=At?et:vt;var wt=ss(ht,xt,et,et,et,et,et,vt);return wt.placeholder=Lm.placeholder,wt}function Bm(ht,vt,At){vt=At?et:vt;var wt=ss(ht,yt,et,et,et,et,et,vt);return wt.placeholder=Bm.placeholder,wt}function jm(ht,vt,At){var wt,Bt,Wt,Jt,nr,dr,Tr=0,Ar=!1,Or=!1,Wr=!0;if(typeof ht!="function")throw new Oo(ot);vt=jo(vt)||0,Yn(At)&&(Ar=!!At.leading,Or="maxWait"in At,Wt=Or?ao(jo(At.maxWait)||0,vt):Wt,Wr="trailing"in At?!!At.trailing:Wr);function Jr(Jn){var Ko=wt,fs=Bt;return wt=Bt=et,Tr=Jn,Jt=ht.apply(fs,Ko),Jt}function mn(Jn){return Tr=Jn,nr=Hl(Cn,vt),Ar?Jr(Jn):Jt}function An(Jn){var Ko=Jn-dr,fs=Jn-Tr,nv=vt-Ko;return Or?uo(nv,Wt-fs):nv}function vn(Jn){var Ko=Jn-dr,fs=Jn-Tr;return dr===et||Ko>=vt||Ko<0||Or&&fs>=Wt}function Cn(){var Jn=wu();if(vn(Jn))return Rn(Jn);nr=Hl(Cn,An(Jn))}function Rn(Jn){return nr=et,Wr&&wt?Jr(Jn):(wt=Bt=et,Jt)}function ko(){nr!==et&&X1(nr),Tr=0,wt=dr=Bt=nr=et}function go(){return nr===et?Jt:Rn(wu())}function $o(){var Jn=wu(),Ko=vn(Jn);if(wt=arguments,Bt=this,dr=Jn,Ko){if(nr===et)return mn(dr);if(Or)return X1(nr),nr=Hl(Cn,vt),Jr(dr)}return nr===et&&(nr=Hl(Cn,vt)),Jt}return $o.cancel=ko,$o.flush=go,$o}var ux=kn(function(ht,vt){return w1(ht,1,vt)}),dx=kn(function(ht,vt,At){return w1(ht,jo(vt)||0,At)});function fx(ht){return ss(ht,$t)}function Iu(ht,vt){if(typeof ht!="function"||vt!=null&&typeof vt!="function")throw new Oo(ot);var At=function(){var wt=arguments,Bt=vt?vt.apply(this,wt):wt[0],Wt=At.cache;if(Wt.has(Bt))return Wt.get(Bt);var Jt=ht.apply(this,wt);return At.cache=Wt.set(Bt,Jt)||Wt,Jt};return At.cache=new(Iu.Cache||os),At}Iu.Cache=os;function Ru(ht){if(typeof ht!="function")throw new Oo(ot);return function(){var vt=arguments;switch(vt.length){case 0:return!ht.call(this);case 1:return!ht.call(this,vt[0]);case 2:return!ht.call(this,vt[0],vt[1]);case 3:return!ht.call(this,vt[0],vt[1],vt[2])}return!ht.apply(this,vt)}}function hx(ht){return Dm(2,ht)}var gx=J0(function(ht,vt){vt=vt.length==1&&En(vt[0])?Un(vt[0],So(pn())):Un(lo(vt,1),So(pn()));var At=vt.length;return kn(function(wt){for(var Bt=-1,Wt=uo(wt.length,At);++Bt=vt}),Fs=D1(function(){return arguments}())?D1:function(ht){return Xn(ht)&&Hn.call(ht,"callee")&&!_1.call(ht,"callee")},En=br.isArray,Rx=Jp?So(Jp):L0;function yo(ht){return ht!=null&&Nu(ht.length)&&!cs(ht)}function Qn(ht){return Xn(ht)&&yo(ht)}function Nx(ht){return ht===!0||ht===!1||Xn(ht)&&po(ht)==_r}var ks=Hv||Gp,Ox=e1?So(e1):B0;function Dx(ht){return Xn(ht)&&ht.nodeType===1&&!Gl(ht)}function Mx(ht){if(ht==null)return!0;if(yo(ht)&&(En(ht)||typeof ht=="string"||typeof ht.splice=="function"||ks(ht)||_l(ht)||Fs(ht)))return!ht.length;var vt=co(ht);if(vt==$r||vt==Yr)return!ht.size;if(zl(ht))return!sp(ht).length;for(var At in ht)if(Hn.call(ht,At))return!1;return!0}function Lx(ht,vt){return Bl(ht,vt)}function Bx(ht,vt,At){At=typeof At=="function"?At:et;var wt=At?At(ht,vt):et;return wt===et?Bl(ht,vt,et,At):!!wt}function Op(ht){if(!Xn(ht))return!1;var vt=po(ht);return vt==pr||vt==ar||typeof ht.message=="string"&&typeof ht.name=="string"&&!Gl(ht)}function jx(ht){return typeof ht=="number"&&E1(ht)}function cs(ht){if(!Yn(ht))return!1;var vt=po(ht);return vt==rr||vt==vr||vt==hr||vt==qr}function Pm(ht){return typeof ht=="number"&&ht==Tn(ht)}function Nu(ht){return typeof ht=="number"&&ht>-1&&ht%1==0&&ht<=Pt}function Yn(ht){var vt=typeof ht;return ht!=null&&(vt=="object"||vt=="function")}function Xn(ht){return ht!=null&&typeof ht=="object"}var zm=r1?So(r1):F0;function Fx(ht,vt){return ht===vt||ap(ht,vt,Sp(vt))}function Px(ht,vt,At){return At=typeof At=="function"?At:et,ap(ht,vt,Sp(vt),At)}function zx(ht){return Hm(ht)&&ht!=+ht}function Hx(ht){if(Ey(ht))throw new xn(nt);return M1(ht)}function Gx(ht){return ht===null}function Vx(ht){return ht==null}function Hm(ht){return typeof ht=="number"||Xn(ht)&&po(ht)==Rr}function Gl(ht){if(!Xn(ht)||po(ht)!=Nr)return!1;var vt=iu(ht);if(vt===null)return!0;var At=Hn.call(vt,"constructor")&&vt.constructor;return typeof At=="function"&&At instanceof At&&tu.call(At)==Lv}var Dp=n1?So(n1):P0;function Wx(ht){return Pm(ht)&&ht>=-Pt&&ht<=Pt}var Gm=o1?So(o1):z0;function Ou(ht){return typeof ht=="string"||!En(ht)&&Xn(ht)&&po(ht)==Pr}function Ao(ht){return typeof ht=="symbol"||Xn(ht)&&po(ht)==Vr}var _l=i1?So(i1):H0;function qx(ht){return ht===et}function Kx(ht){return Xn(ht)&&co(ht)==fr}function Ux(ht){return Xn(ht)&&po(ht)==sr}var Yx=Su(lp),Xx=Su(function(ht,vt){return ht<=vt});function Vm(ht){if(!ht)return[];if(yo(ht))return Ou(ht)?Vo(ht):vo(ht);if(Cl&&ht[Cl])return Tv(ht[Cl]());var vt=co(ht),At=vt==$r?Qu:vt==Yr?Ql:xl;return At(ht)}function ds(ht){if(!ht)return ht===0?ht:0;if(ht=jo(ht),ht===Lt||ht===-Lt){var vt=ht<0?-1:1;return vt*Gt}return ht===ht?ht:0}function Tn(ht){var vt=ds(ht),At=vt%1;return vt===vt?At?vt-At:vt:0}function Wm(ht){return ht?Ds(Tn(ht),0,Yt):0}function jo(ht){if(typeof ht=="number")return ht;if(Ao(ht))return qt;if(Yn(ht)){var vt=typeof ht.valueOf=="function"?ht.valueOf():ht;ht=Yn(vt)?vt+"":vt}if(typeof ht!="string")return ht===0?ht:+ht;ht=d1(ht);var At=Qt.test(ht);return At||lr.test(ht)?zu(ht.slice(2),At?2:8):Dt.test(ht)?qt:+ht}function qm(ht){return Qo(ht,bo(ht))}function Zx(ht){return ht?Ds(Tn(ht),-Pt,Pt):ht===0?ht:0}function Bn(ht){return ht==null?"":To(ht)}var Qx=Qs(function(ht,vt){if(zl(vt)||yo(vt)){Qo(vt,so(vt),ht);return}for(var At in vt)Hn.call(vt,At)&&Dl(ht,At,vt[At])}),Km=Qs(function(ht,vt){Qo(vt,bo(vt),ht)}),Du=Qs(function(ht,vt,At,wt){Qo(vt,bo(vt),ht,wt)}),Jx=Qs(function(ht,vt,At,wt){Qo(vt,so(vt),ht,wt)}),eE=ls(tp);function tE(ht,vt){var At=Zs(ht);return vt==null?At:$1(At,vt)}var rE=kn(function(ht,vt){ht=Wn(ht);var At=-1,wt=vt.length,Bt=wt>2?vt[2]:et;for(Bt&&ho(vt[0],vt[1],Bt)&&(wt=1);++At1),Wt}),Qo(ht,xp(ht),At),wt&&(At=Mo(At,ct|dt|ft,cy));for(var Bt=vt.length;Bt--;)pp(At,vt[Bt]);return At});function _E(ht,vt){return Ym(ht,Ru(pn(vt)))}var xE=ls(function(ht,vt){return ht==null?{}:W0(ht,vt)});function Ym(ht,vt){if(ht==null)return{};var At=Un(xp(ht),function(wt){return[wt]});return vt=pn(vt),H1(ht,At,function(wt,Bt){return vt(wt,Bt[0])})}function EE(ht,vt,At){vt=Ts(vt,ht);var wt=-1,Bt=vt.length;for(Bt||(Bt=1,ht=et);++wtvt){var wt=ht;ht=vt,vt=wt}if(At||ht%1||vt%1){var Bt=S1();return uo(ht+Bt*(vt-ht+ts("1e-"+((Bt+"").length-1))),vt)}return cp(ht,vt)}var OE=Js(function(ht,vt,At){return vt=vt.toLowerCase(),ht+(At?Qm(vt):vt)});function Qm(ht){return Bp(Bn(ht).toLowerCase())}function Jm(ht){return ht=Bn(ht),ht&&ht.replace(yr,bv).replace(Pu,"")}function DE(ht,vt,At){ht=Bn(ht),vt=To(vt);var wt=ht.length;At=At===et?wt:Ds(Tn(At),0,wt);var Bt=At;return At-=vt.length,At>=0&&ht.slice(At,Bt)==vt}function ME(ht){return ht=Bn(ht),ht&&Fn.test(ht)?ht.replace(Sn,_v):ht}function LE(ht){return ht=Bn(ht),ht&&ro.test(ht)?ht.replace(zn,"\\$&"):ht}var BE=Js(function(ht,vt,At){return ht+(At?"-":"")+vt.toLowerCase()}),jE=Js(function(ht,vt,At){return ht+(At?" ":"")+vt.toLowerCase()}),FE=rm("toLowerCase");function PE(ht,vt,At){ht=Bn(ht),vt=Tn(vt);var wt=vt?qs(ht):0;if(!vt||wt>=vt)return ht;var Bt=(vt-wt)/2;return Eu(uu(Bt),At)+ht+Eu(lu(Bt),At)}function zE(ht,vt,At){ht=Bn(ht),vt=Tn(vt);var wt=vt?qs(ht):0;return vt&&wt>>0,At?(ht=Bn(ht),ht&&(typeof vt=="string"||vt!=null&&!Dp(vt))&&(vt=To(vt),!vt&&Ws(ht))?As(Vo(ht),0,At):ht.split(vt,At)):[]}var UE=Js(function(ht,vt,At){return ht+(At?" ":"")+Bp(vt)});function YE(ht,vt,At){return ht=Bn(ht),At=At==null?0:Ds(Tn(At),0,ht.length),vt=To(vt),ht.slice(At,At+vt.length)==vt}function XE(ht,vt,At){var wt=Vt.templateSettings;At&&ho(ht,vt,At)&&(vt=et),ht=Bn(ht),vt=Du({},vt,wt,um);var Bt=Du({},vt.imports,wt.imports,um),Wt=so(Bt),Jt=Zu(Bt,Wt),nr,dr,Tr=0,Ar=vt.interpolate||Lr,Or="__p += '",Wr=Ju((vt.escape||Lr).source+"|"+Ar.source+"|"+(Ar===wn?zt:Lr).source+"|"+(vt.evaluate||Lr).source+"|$","g"),Jr="//# sourceURL="+(Hn.call(vt,"sourceURL")?(vt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gn+"]")+` -`;ht.replace(Wr,function(vn,Cn,Rn,ko,go,$o){return Rn||(Rn=ko),Or+=ht.slice(Tr,$o).replace(nn,xv),Cn&&(nr=!0,Or+=`' + -__e(`+Cn+`) + -'`),go&&(dr=!0,Or+=`'; -`+go+`; -__p += '`),Rn&&(Or+=`' + -((__t = (`+Rn+`)) == null ? '' : __t) + -'`),Tr=$o+vn.length,vn}),Or+=`'; -`;var mn=Hn.call(vt,"variable")&&vt.variable;if(!mn)Or=`with (obj) { -`+Or+` -} -`;else if(Kt.test(mn))throw new xn(it);Or=(dr?Or.replace(Nn,""):Or).replace(hn,"$1").replace(jn,"$1;"),Or="function("+(mn||"obj")+`) { -`+(mn?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(nr?", __e = _.escape":"")+(dr?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Or+`return __p -}`;var An=tv(function(){return Dn(Wt,Jr+"return "+Or).apply(et,Jt)});if(An.source=Or,Op(An))throw An;return An}function ZE(ht){return Bn(ht).toLowerCase()}function QE(ht){return Bn(ht).toUpperCase()}function JE(ht,vt,At){if(ht=Bn(ht),ht&&(At||vt===et))return d1(ht);if(!ht||!(vt=To(vt)))return ht;var wt=Vo(ht),Bt=Vo(vt),Wt=f1(wt,Bt),Jt=p1(wt,Bt)+1;return As(wt,Wt,Jt).join("")}function eS(ht,vt,At){if(ht=Bn(ht),ht&&(At||vt===et))return ht.slice(0,g1(ht)+1);if(!ht||!(vt=To(vt)))return ht;var wt=Vo(ht),Bt=p1(wt,Vo(vt))+1;return As(wt,0,Bt).join("")}function tS(ht,vt,At){if(ht=Bn(ht),ht&&(At||vt===et))return ht.replace(Mn,"");if(!ht||!(vt=To(vt)))return ht;var wt=Vo(ht),Bt=f1(wt,Vo(vt));return As(wt,Bt).join("")}function rS(ht,vt){var At=Ct,wt=It;if(Yn(vt)){var Bt="separator"in vt?vt.separator:Bt;At="length"in vt?Tn(vt.length):At,wt="omission"in vt?To(vt.omission):wt}ht=Bn(ht);var Wt=ht.length;if(Ws(ht)){var Jt=Vo(ht);Wt=Jt.length}if(At>=Wt)return ht;var nr=At-qs(wt);if(nr<1)return wt;var dr=Jt?As(Jt,0,nr).join(""):ht.slice(0,nr);if(Bt===et)return dr+wt;if(Jt&&(nr+=dr.length-nr),Dp(Bt)){if(ht.slice(nr).search(Bt)){var Tr,Ar=dr;for(Bt.global||(Bt=Ju(Bt.source,Bn(Ht.exec(Bt))+"g")),Bt.lastIndex=0;Tr=Bt.exec(Ar);)var Or=Tr.index;dr=dr.slice(0,Or===et?nr:Or)}}else if(ht.indexOf(To(Bt),nr)!=nr){var Wr=dr.lastIndexOf(Bt);Wr>-1&&(dr=dr.slice(0,Wr))}return dr+wt}function nS(ht){return ht=Bn(ht),ht&&un.test(ht)?ht.replace(qn,Cv):ht}var oS=Js(function(ht,vt,At){return ht+(At?" ":"")+vt.toUpperCase()}),Bp=rm("toUpperCase");function ev(ht,vt,At){return ht=Bn(ht),vt=At?et:vt,vt===et?Sv(ht)?Rv(ht):hv(ht):ht.match(vt)||[]}var tv=kn(function(ht,vt){try{return Eo(ht,et,vt)}catch(At){return Op(At)?At:new xn(At)}}),iS=ls(function(ht,vt){return No(vt,function(At){At=Jo(At),as(ht,At,Rp(ht[At],ht))}),ht});function aS(ht){var vt=ht==null?0:ht.length,At=pn();return ht=vt?Un(ht,function(wt){if(typeof wt[1]!="function")throw new Oo(ot);return[At(wt[0]),wt[1]]}):[],kn(function(wt){for(var Bt=-1;++BtPt)return[];var At=Yt,wt=uo(ht,Yt);vt=pn(vt),ht-=Yt;for(var Bt=Xu(wt,vt);++At0||vt<0)?new In(At):(ht<0?At=At.takeRight(-ht):ht&&(At=At.drop(ht)),vt!==et&&(vt=Tn(vt),At=vt<0?At.dropRight(-vt):At.take(vt-ht)),At)},In.prototype.takeRightWhile=function(ht){return this.reverse().takeWhile(ht).reverse()},In.prototype.toArray=function(){return this.take(Yt)},Zo(In.prototype,function(ht,vt){var At=/^(?:filter|find|map|reject)|While$/.test(vt),wt=/^(?:head|last)$/.test(vt),Bt=Vt[wt?"take"+(vt=="last"?"Right":""):vt],Wt=wt||/^find/.test(vt);Bt&&(Vt.prototype[vt]=function(){var Jt=this.__wrapped__,nr=wt?[1]:arguments,dr=Jt instanceof In,Tr=nr[0],Ar=dr||En(Jt),Or=function(Cn){var Rn=Bt.apply(Vt,bs([Cn],nr));return wt&&Wr?Rn[0]:Rn};Ar&&At&&typeof Tr=="function"&&Tr.length!=1&&(dr=Ar=!1);var Wr=this.__chain__,Jr=!!this.__actions__.length,mn=Wt&&!Wr,An=dr&&!Jr;if(!Wt&&Ar){Jt=An?Jt:new In(this);var vn=ht.apply(Jt,nr);return vn.__actions__.push({func:$u,args:[Or],thisArg:et}),new Do(vn,Wr)}return mn&&An?ht.apply(this,nr):(vn=this.thru(Or),mn?wt?vn.value()[0]:vn.value():vn)})}),No(["pop","push","shift","sort","splice","unshift"],function(ht){var vt=Jl[ht],At=/^(?:push|sort|unshift)$/.test(ht)?"tap":"thru",wt=/^(?:pop|shift)$/.test(ht);Vt.prototype[ht]=function(){var Bt=arguments;if(wt&&!this.__chain__){var Wt=this.value();return vt.apply(En(Wt)?Wt:[],Bt)}return this[At](function(Jt){return vt.apply(En(Jt)?Jt:[],Bt)})}}),Zo(In.prototype,function(ht,vt){var At=Vt[vt];if(At){var wt=At.name+"";Hn.call(Xs,wt)||(Xs[wt]=[]),Xs[wt].push({name:vt,func:At})}}),Xs[_u(et,bt).name]=[{name:"wrapper",func:et}],In.prototype.clone=Jv,In.prototype.reverse=e0,In.prototype.value=r0,Vt.prototype.at=R_,Vt.prototype.chain=N_,Vt.prototype.commit=O_,Vt.prototype.next=D_,Vt.prototype.plant=L_,Vt.prototype.reverse=B_,Vt.prototype.toJSON=Vt.prototype.valueOf=Vt.prototype.value=j_,Vt.prototype.first=Vt.prototype.head,Cl&&(Vt.prototype[Cl]=M_),Vt},Ks=Nv();Is?((Is.exports=Ks)._=Ks,Hu._=Ks):oo._=Ks}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);var lodashExports=lodash$1.exports;const isImageDataObject=j=>{if(!lodashExports.isPlainObject(j))return!1;const _e=Object.keys(j);return _e.length!==1?!1:_e[0].startsWith("data:image/")},encodeImageDataObjectToMarkup=j=>{const _e=Object.keys(j).find(et=>et.startsWith("data:image/"));return _e?`![image](${j[_e]??""})`:""},listToMarkup=j=>j.map(_e=>typeof _e=="string"?_e:isImageDataObject(_e)?encodeImageDataObjectToMarkup(_e):valueStringify(_e)).join(` - -`),isChatInput=j=>!!j.is_chat_input,isChatHistory=(j,_e,et=!1)=>j!==FlowType.Chat||_e.type!==ValueType.list?!1:Reflect.has(_e,"is_chat_history")?!!_e.is_chat_history:et?!1:_e.name===DEFAULT_CHAT_HISTORY_NAME,isChatOutput=j=>!!j.is_chat_output,makeChatMessageFromUser=(j,_e)=>{const et=typeof j=="string"?j:Array.isArray(j)?listToMarkup(j):JSON.stringify(j)??"",tt=Array.isArray(j)?JSON.stringify(j):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.User,type:ChatMessageType$1.Text,content:et,contentForCopy:tt,timestamp:new Date().toISOString(),extraData:_e}},makeChatMessageFromChatBot=(j,_e,et,tt)=>{const rt=typeof j=="string"?j:Array.isArray(j)?listToMarkup(j):JSON.stringify(j)??"",nt=Array.isArray(j)?JSON.stringify(j):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.Chatbot,type:ChatMessageType$1.Text,content:rt,contentForCopy:nt,timestamp:new Date().toISOString(),duration:tt==null?void 0:tt.duration,tokens:tt==null?void 0:tt.total_tokens,error:et,extraData:_e}},parseChatMessages=(j,_e,et)=>{const tt=[];for(const rt of et){const nt=rt.inputs[j],ot=rt.outputs[_e];if(typeof nt=="string"&&typeof ot=="string"){const it={flowInputs:rt.inputs,flowOutputs:rt.outputs};tt.push(makeChatMessageFromUser(nt,it)),tt.push(makeChatMessageFromChatBot(ot,it))}else if(Array.isArray(nt)&&Array.isArray(ot)){const it={flowInputs:rt.inputs,flowOutputs:rt.outputs};tt.push(makeChatMessageFromUser(nt,it)),tt.push(makeChatMessageFromChatBot(ot,it))}}return tt};ValueType.AzureContentSafetyConnection,ValueType.AzureContentModeratorConnection,ValueType.OpenAIConnection,ValueType.AzureOpenAIConnection,ValueType.BingConnection,ValueType.CustomConnection,ValueType.SerpConnection,ValueType.CognitiveSearchConnection,ValueType.SubstrateLLMConnection,ValueType.QdrantConnection,ValueType.WeaviateConnection,ValueType.FormRecognizerConnection;const convertConnectionTypeToValueType=j=>{switch(j){case ConnectionType.AzureContentSafety:return ValueType.AzureContentSafetyConnection;case ConnectionType.AzureContentModerator:return ValueType.AzureContentModeratorConnection;case ConnectionType.Serp:return ValueType.SerpConnection;case ConnectionType.OpenAI:return ValueType.OpenAIConnection;case ConnectionType.Bing:return ValueType.BingConnection;case ConnectionType.AzureOpenAI:return ValueType.AzureOpenAIConnection;case ConnectionType.CognitiveSearch:return ValueType.CognitiveSearchConnection;case ConnectionType.SubstrateLLM:return ValueType.SubstrateLLMConnection;case ConnectionType.Custom:return ValueType.CustomConnection;default:return ValueType.CustomConnection}},getValueTypeByConnectionType=(j,_e)=>{var et;return!_e||_e.length===0?convertConnectionTypeToValueType(j):(et=_e.find(tt=>tt.connectionType===j))==null?void 0:et.flowValueType},getConnectionTypeByName=(j,_e,et)=>{var rt;const tt=(rt=j==null?void 0:j.find(nt=>nt.connectionName===et))==null?void 0:rt.connectionType;if(tt)return getValueTypeByConnectionType(tt,_e)};ValueType.AzureContentSafetyConnection+"",ValueType.BingConnection+"",ValueType.OpenAIConnection+"",ValueType.CustomConnection+"",ValueType.AzureOpenAIConnection+"",ValueType.AzureContentModeratorConnection+"",ValueType.SerpConnection+"",ValueType.CognitiveSearchConnection+"",ValueType.SubstrateLLMConnection+"",ValueType.PineconeConnection+"",ValueType.QdrantConnection+"",ValueType.WeaviateConnection+"",ValueType.FormRecognizerConnection+"",ValueType.ServerlessConnection+"";const safelyParseJson=(j,_e)=>{if(!j)return _e??"";try{return JSON.parse(j)}catch{return _e??""}},intNumberRegExp$1=/^[+-]?\d+$/,doubleNumberRegExp$1=/^[+-]?\d+(\.\d+)?$/,safelyParseInt=j=>{try{const _e=parseInt(j,10);return isNaN(_e)?j:_e}catch{return j}},safelyParseFloat=j=>{try{const _e=parseFloat(j);return isNaN(_e)?j:_e}catch{return j}},boolValues=["true","false","True","False",!0,!1],safelyParseBool=j=>{try{return boolValues.includes(j)?convertToBool(j):j}catch{return j}},convertValByType=(j,_e)=>{var tt;let et=j;if(!(((tt=j==null?void 0:j.trim)==null?void 0:tt.call(j))===""&&_e!==ValueType.string)){switch(_e){case ValueType.int:et=typeof et=="string"&&intNumberRegExp$1.test(et.trim())?safelyParseInt(et):et;break;case ValueType.double:et=typeof et=="string"&&doubleNumberRegExp$1.test(et.trim())?safelyParseFloat(et):et;break;case ValueType.bool:et=safelyParseBool(et);break;case ValueType.string:et=typeof et=="object"?JSON.stringify(et):String(et??"");break;case ValueType.list:case ValueType.object:et=typeof et=="string"?safelyParseJson(et,et):et;break}return et}},inferTypeByVal=j=>{if(typeof j=="boolean")return ValueType.bool;if(typeof j=="number")return Number.isInteger(j)?ValueType.int:ValueType.double;if(Array.isArray(j))return ValueType.list;if(typeof j=="object"&&j!==null)return ValueType.object;if(typeof j=="string")return ValueType.string},filterNodeInputsKeys=(j,_e,et,tt,rt=!1)=>{const nt=sortToolInputs(j),ot={..._e};return Object.keys(nt??{}).filter(lt=>{var ct;const ut=nt==null?void 0:nt[lt];if(!rt&&(ut==null?void 0:ut.input_type)===InputType.uionly_hidden)return!1;if(ut!=null&&ut.enabled_by&&(ut!=null&&ut.enabled_by_value)){const dt=nt==null?void 0:nt[ut.enabled_by],ft=(ot==null?void 0:ot[ut.enabled_by])??(dt==null?void 0:dt.default),pt=convertValByType(ft,(ct=dt==null?void 0:dt.type)==null?void 0:ct[0]),gt=ut==null?void 0:ut.enabled_by_value.includes(pt);return gt||(ot[lt]=void 0),gt}if(ut!=null&&ut.enabled_by&&(ut!=null&&ut.enabled_by_type)){const dt=ot==null?void 0:ot[ut.enabled_by],ft=getConnectionTypeByName(et??[],tt??[],dt??""),pt=ft?ut==null?void 0:ut.enabled_by_type.includes(ft):!1;return pt||(ot[lt]=void 0),pt}return!0})},sortToolInputs=j=>{let _e=[];if(Object.values(j??{}).some(rt=>{var nt;return((nt=rt.ui_hints)==null?void 0:nt.index)!==void 0}))_e=Object.keys(j??{}).sort((rt,nt)=>{var st,lt,ut,ct;const ot=((lt=(st=j==null?void 0:j[rt])==null?void 0:st.ui_hints)==null?void 0:lt.index)??0,it=((ct=(ut=j==null?void 0:j[nt])==null?void 0:ut.ui_hints)==null?void 0:ct.index)??0;return ot-it});else{const rt=[],nt={};Object.keys(j??{}).forEach(it=>{const st=j==null?void 0:j[it];st!=null&&st.enabled_by?(nt[st.enabled_by]||(nt[st.enabled_by]=[]),nt[st.enabled_by].push(it)):rt.push(it)});const ot=it=>{for(const st of it)_e.push(st),nt[st]&&ot(nt[st])};ot(rt)}const tt={};for(const rt of _e)tt[rt]=j==null?void 0:j[rt];return tt};var papaparse_min={exports:{}};/* @license -Papa Parse -v5.4.1 -https://github.com/mholt/PapaParse -License: MIT -*/(function(j,_e){(function(et,tt){j.exports=tt()})(commonjsGlobal,function et(){var tt=typeof self<"u"?self:typeof window<"u"?window:tt!==void 0?tt:{},rt=!tt.document&&!!tt.postMessage,nt=tt.IS_PAPA_WORKER||!1,ot={},it=0,st={parse:function(kt,$t){var Ct=($t=$t||{}).dynamicTyping||!1;if(Tt(Ct)&&($t.dynamicTypingFunction=Ct,Ct={}),$t.dynamicTyping=Ct,$t.transform=!!Tt($t.transform)&&$t.transform,$t.worker&&st.WORKERS_SUPPORTED){var It=function(){if(!st.WORKERS_SUPPORTED)return!1;var Ot=(Mt=tt.URL||tt.webkitURL||null,Rt=et.toString(),st.BLOB_URL||(st.BLOB_URL=Mt.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Rt,")();"],{type:"text/javascript"})))),jt=new tt.Worker(Ot),Mt,Rt;return jt.onmessage=_t,jt.id=it++,ot[jt.id]=jt}();return It.userStep=$t.step,It.userChunk=$t.chunk,It.userComplete=$t.complete,It.userError=$t.error,$t.step=Tt($t.step),$t.chunk=Tt($t.chunk),$t.complete=Tt($t.complete),$t.error=Tt($t.error),delete $t.worker,void It.postMessage({input:kt,config:$t,workerId:It.id})}var Nt=null;return st.NODE_STREAM_INPUT,typeof kt=="string"?(kt=function(Ot){return Ot.charCodeAt(0)===65279?Ot.slice(1):Ot}(kt),Nt=$t.download?new ct($t):new ft($t)):kt.readable===!0&&Tt(kt.read)&&Tt(kt.on)?Nt=new pt($t):(tt.File&&kt instanceof File||kt instanceof Object)&&(Nt=new dt($t)),Nt.stream(kt)},unparse:function(kt,$t){var Ct=!1,It=!0,Nt=",",Ot=`\r -`,jt='"',Mt=jt+jt,Rt=!1,Lt=null,Pt=!1;(function(){if(typeof $t=="object"){if(typeof $t.delimiter!="string"||st.BAD_DELIMITERS.filter(function(Xt){return $t.delimiter.indexOf(Xt)!==-1}).length||(Nt=$t.delimiter),(typeof $t.quotes=="boolean"||typeof $t.quotes=="function"||Array.isArray($t.quotes))&&(Ct=$t.quotes),typeof $t.skipEmptyLines!="boolean"&&typeof $t.skipEmptyLines!="string"||(Rt=$t.skipEmptyLines),typeof $t.newline=="string"&&(Ot=$t.newline),typeof $t.quoteChar=="string"&&(jt=$t.quoteChar),typeof $t.header=="boolean"&&(It=$t.header),Array.isArray($t.columns)){if($t.columns.length===0)throw new Error("Option columns is empty");Lt=$t.columns}$t.escapeChar!==void 0&&(Mt=$t.escapeChar+jt),(typeof $t.escapeFormulae=="boolean"||$t.escapeFormulae instanceof RegExp)&&(Pt=$t.escapeFormulae instanceof RegExp?$t.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var Gt=new RegExp(mt(jt),"g");if(typeof kt=="string"&&(kt=JSON.parse(kt)),Array.isArray(kt)){if(!kt.length||Array.isArray(kt[0]))return qt(null,kt,Rt);if(typeof kt[0]=="object")return qt(Lt||Object.keys(kt[0]),kt,Rt)}else if(typeof kt=="object")return typeof kt.data=="string"&&(kt.data=JSON.parse(kt.data)),Array.isArray(kt.data)&&(kt.fields||(kt.fields=kt.meta&&kt.meta.fields||Lt),kt.fields||(kt.fields=Array.isArray(kt.data[0])?kt.fields:typeof kt.data[0]=="object"?Object.keys(kt.data[0]):[]),Array.isArray(kt.data[0])||typeof kt.data[0]=="object"||(kt.data=[kt.data])),qt(kt.fields||[],kt.data||[],Rt);throw new Error("Unable to serialize unrecognized input");function qt(Xt,tr,cr){var mr="";typeof Xt=="string"&&(Xt=JSON.parse(Xt)),typeof tr=="string"&&(tr=JSON.parse(tr));var Er=Array.isArray(Xt)&&0=this._config.preview;if(nt)tt.postMessage({results:Ot,workerId:st.WORKER_ID,finished:Mt});else if(Tt(this._config.chunk)&&!Ct){if(this._config.chunk(Ot,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);Ot=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Ot.data),this._completeResults.errors=this._completeResults.errors.concat(Ot.errors),this._completeResults.meta=Ot.meta),this._completed||!Mt||!Tt(this._config.complete)||Ot&&Ot.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Mt||Ot&&Ot.meta.paused||this._nextChunk(),Ot}this._halted=!0},this._sendError=function($t){Tt(this._config.error)?this._config.error($t):nt&&this._config.error&&tt.postMessage({workerId:st.WORKER_ID,error:$t,finished:!1})}}function ct(kt){var $t;(kt=kt||{}).chunkSize||(kt.chunkSize=st.RemoteChunkSize),ut.call(this,kt),this._nextChunk=rt?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(Ct){this._input=Ct,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if($t=new XMLHttpRequest,this._config.withCredentials&&($t.withCredentials=this._config.withCredentials),rt||($t.onload=St(this._chunkLoaded,this),$t.onerror=St(this._chunkError,this)),$t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!rt),this._config.downloadRequestHeaders){var Ct=this._config.downloadRequestHeaders;for(var It in Ct)$t.setRequestHeader(It,Ct[It])}if(this._config.chunkSize){var Nt=this._start+this._config.chunkSize-1;$t.setRequestHeader("Range","bytes="+this._start+"-"+Nt)}try{$t.send(this._config.downloadRequestBody)}catch(Ot){this._chunkError(Ot.message)}rt&&$t.status===0&&this._chunkError()}},this._chunkLoaded=function(){$t.readyState===4&&($t.status<200||400<=$t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:$t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(Ct){var It=Ct.getResponseHeader("Content-Range");return It===null?-1:parseInt(It.substring(It.lastIndexOf("/")+1))}($t),this.parseChunk($t.responseText)))},this._chunkError=function(Ct){var It=$t.statusText||Ct;this._sendError(new Error(It))}}function dt(kt){var $t,Ct;(kt=kt||{}).chunkSize||(kt.chunkSize=st.LocalChunkSize),ut.call(this,kt);var It=typeof FileReader<"u";this.stream=function(Nt){this._input=Nt,Ct=Nt.slice||Nt.webkitSlice||Nt.mozSlice,It?(($t=new FileReader).onload=St(this._chunkLoaded,this),$t.onerror=St(this._chunkError,this)):$t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(Nt.target.result)},this._chunkError=function(){this._sendError($t.error)}}function ft(kt){var $t;ut.call(this,kt=kt||{}),this.stream=function(Ct){return $t=Ct,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var Ct,It=this._config.chunkSize;return It?(Ct=$t.substring(0,It),$t=$t.substring(It)):(Ct=$t,$t=""),this._finished=!$t,this.parseChunk(Ct)}}}function pt(kt){ut.call(this,kt=kt||{});var $t=[],Ct=!0,It=!1;this.pause=function(){ut.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){ut.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Nt){this._input=Nt,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){It&&$t.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),$t.length?this.parseChunk($t.shift()):Ct=!0},this._streamData=St(function(Nt){try{$t.push(typeof Nt=="string"?Nt:Nt.toString(this._config.encoding)),Ct&&(Ct=!1,this._checkIsFinished(),this.parseChunk($t.shift()))}catch(Ot){this._streamError(Ot)}},this),this._streamError=St(function(Nt){this._streamCleanUp(),this._sendError(Nt)},this),this._streamEnd=St(function(){this._streamCleanUp(),It=!0,this._streamData("")},this),this._streamCleanUp=St(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function gt(kt){var $t,Ct,It,Nt=Math.pow(2,53),Ot=-Nt,jt=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Mt=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Rt=this,Lt=0,Pt=0,Gt=!1,qt=!1,Yt=[],Xt={data:[],errors:[],meta:{}};if(Tt(kt.step)){var tr=kt.step;kt.step=function(Ut){if(Xt=Ut,Er())mr();else{if(mr(),Xt.data.length===0)return;Lt+=Ut.data.length,kt.preview&&Lt>kt.preview?Ct.abort():(Xt.data=Xt.data[0],tr(Xt,Rt))}}}function cr(Ut){return kt.skipEmptyLines==="greedy"?Ut.join("").trim()==="":Ut.length===1&&Ut[0].length===0}function mr(){return Xt&&It&&(_r("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+st.DefaultDelimiter+"'"),It=!1),kt.skipEmptyLines&&(Xt.data=Xt.data.filter(function(Ut){return!cr(Ut)})),Er()&&function(){if(!Xt)return;function Ut(pr,rr){Tt(kt.transformHeader)&&(pr=kt.transformHeader(pr,rr)),Yt.push(pr)}if(Array.isArray(Xt.data[0])){for(var ar=0;Er()&&ar=Yt.length?"__parsed_extra":Yt[vr]),kt.transform&&(Cr=kt.transform(Cr,Rr)),Cr=hr(Rr,Cr),Rr==="__parsed_extra"?($r[Rr]=$r[Rr]||[],$r[Rr].push(Cr)):$r[Rr]=Cr}return kt.header&&(vr>Yt.length?_r("FieldMismatch","TooManyFields","Too many fields: expected "+Yt.length+" fields but parsed "+vr,Pt+rr):vr=Gr.length/2?`\r -`:"\r"}(Ut,rr)),It=!1,kt.delimiter)Tt(kt.delimiter)&&(kt.delimiter=kt.delimiter(Ut),Xt.meta.delimiter=kt.delimiter);else{var vr=function(Rr,Cr,Nr,Gr,qr){var Qr,Yr,Pr,Vr;qr=qr||[","," ","|",";",st.RECORD_SEP,st.UNIT_SEP];for(var yn=0;yn=jt)return Ir(!0)}else for(fr=Lt,Lt++;;){if((fr=Gt.indexOf($t,fr+1))===-1)return Yt||_r.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:hr.length,index:Lt}),Mr();if(fr===Xt-1)return Mr(Gt.substring(Lt,fr).replace(yn,$t));if($t!==Rt||Gt[fr+1]!==Rt){if($t===Rt||fr===0||Gt[fr-1]!==Rt){Pr!==-1&&Pr=jt)return Ir(!0);break}_r.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:hr.length,index:Lt}),fr++}}else fr++}return Mr();function gr(Xr){hr.push(Xr),ar=Lt}function wr(Xr){var Zr=0;if(Xr!==-1){var sn=Gt.substring(fr+1,Xr);sn&&sn.trim()===""&&(Zr=sn.length)}return Zr}function Mr(Xr){return Yt||(Xr===void 0&&(Xr=Gt.substring(Lt)),Ut.push(Xr),Lt=Xt,gr(Ut),Er&&zr()),Ir()}function Sr(Xr){Lt=Xr,gr(Ut),Ut=[],Vr=Gt.indexOf(It,Lt)}function Ir(Xr){return{data:hr,errors:_r,meta:{delimiter:Ct,linebreak:It,aborted:Pt,truncated:!!Xr,cursor:ar+(qt||0)}}}function zr(){Ot(Ir()),hr=[],_r=[]}},this.abort=function(){Pt=!0},this.getCharIndex=function(){return Lt}}function _t(kt){var $t=kt.data,Ct=ot[$t.workerId],It=!1;if($t.error)Ct.userError($t.error,$t.file);else if($t.results&&$t.results.data){var Nt={abort:function(){It=!0,xt($t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:yt,resume:yt};if(Tt(Ct.userStep)){for(var Ot=0;Ot<$t.results.data.length&&(Ct.userStep({data:$t.results.data[Ot],errors:$t.results.errors,meta:$t.results.meta},Nt),!It);Ot++);delete $t.results}else Tt(Ct.userChunk)&&(Ct.userChunk($t.results,Nt,$t.file),delete $t.results)}$t.finished&&!It&&xt($t.workerId,$t.results)}function xt(kt,$t){var Ct=ot[kt];Tt(Ct.userComplete)&&Ct.userComplete($t),Ct.terminate(),delete ot[kt]}function yt(){throw new Error("Not implemented.")}function Et(kt){if(typeof kt!="object"||kt===null)return kt;var $t=Array.isArray(kt)?[]:{};for(var Ct in kt)$t[Ct]=Et(kt[Ct]);return $t}function St(kt,$t){return function(){kt.apply($t,arguments)}}function Tt(kt){return typeof kt=="function"}return nt&&(tt.onmessage=function(kt){var $t=kt.data;if(st.WORKER_ID===void 0&&$t&&(st.WORKER_ID=$t.workerId),typeof $t.input=="string")tt.postMessage({workerId:st.WORKER_ID,results:st.parse($t.input,$t.config),finished:!0});else if(tt.File&&$t.input instanceof File||$t.input instanceof Object){var Ct=st.parse($t.input,$t.config);Ct&&tt.postMessage({workerId:st.WORKER_ID,results:Ct,finished:!0})}}),(ct.prototype=Object.create(ut.prototype)).constructor=ct,(dt.prototype=Object.create(ut.prototype)).constructor=dt,(ft.prototype=Object.create(ft.prototype)).constructor=ft,(pt.prototype=Object.create(ut.prototype)).constructor=pt,st})})(papaparse_min);const renameKeyInObject=(j,_e,et)=>{const tt={};return Object.keys(j).forEach(rt=>{const nt=j[rt];rt===_e?tt[et]=nt:tt[rt]=nt}),tt},getDefaultNodeVariant=j=>{const{defaultVariantId:_e=BASELINE_VARIANT_ID,variants:et={}}=j,tt=et[_e];return tt==null?void 0:tt.node},getDefaultNodeList=(j,_e)=>{const et=[];return j.forEach(tt=>{const rt=_e.get(tt);if(!rt)return;const nt=getDefaultNodeVariant(rt);nt&&et.push(nt)}),et},getFlowSnapshotNodeList=(j,_e,et)=>{const tt=[];return j.forEach(rt=>{if(et.includes(rt)){tt.push({name:rt,use_variants:!0});return}const nt=_e[rt];if(!nt)return;const ot={inputs:{},...getDefaultNodeVariant(nt)};ot&&tt.push(ot)}),tt};ToolType.llm;ToolType.prompt;ValueType.string,ToolType.python;ValueType.string,ToolType.typescript;const getTokensUsageByRow=j=>{var _e,et,tt,rt,nt,ot;return j.children&&j.children.length>0?j.children.reduce((it,st)=>{const lt=getTokensUsageByRow(st);return{totalTokens:it.totalTokens+lt.totalTokens,promptTokens:it.promptTokens+lt.promptTokens,completionTokens:it.completionTokens+lt.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((et=(_e=j.output)==null?void 0:_e.usage)==null?void 0:et.total_tokens)??0,promptTokens:((rt=(tt=j.output)==null?void 0:tt.usage)==null?void 0:rt.prompt_tokens)??0,completionTokens:((ot=(nt=j.output)==null?void 0:nt.usage)==null?void 0:ot.completion_tokens)??0}},numberToDigitsString=j=>j.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),timePDTFormatter=j=>{const _e=new Date(j),et=getUTCTimezoneOffset();return`${_e.getFullYear()}-${_e.getMonth()+1}-${_e.getDate()} ${_e.getHours()}:${_e.getMinutes()}:${_e.getSeconds()}:${_e.getMilliseconds()} (${et})`},getUTCTimezoneOffset=()=>{const j=new Date().getTimezoneOffset(),_e=Math.abs(j);return`UTC${(j<0?"+":"-")+`00${Math.floor(_e/60)}`.slice(-2)}:${`00${_e%60}`.slice(-2)}`},hasOwn$1=(j,_e)=>Object.prototype.hasOwnProperty.call(j,_e),resolveTool=(j,_e,et,tt)=>{var rt,nt,ot;if(((rt=j==null?void 0:j.source)==null?void 0:rt.type)==="code")return _e;if(((nt=j==null?void 0:j.source)==null?void 0:nt.type)==="package_with_prompt"){const it=(ot=j==null?void 0:j.source)==null?void 0:ot.path,st=tt(it??"");return et?{...et,inputs:{...st==null?void 0:st.inputs,...addPositionField(et==null?void 0:et.inputs,"parameter")},code:st==null?void 0:st.code}:void 0}return et},addPositionField=(j,_e)=>{if(!j)return j;const et={...j};return Object.keys(et).forEach(tt=>{et[tt]={...et[tt],position:_e}}),et},keyWords=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],keyFunction=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],flowWords=["input","inputs","output","outputs","flow","flows"],checkNodeNameValid=j=>keyWords.some(_e=>_e===j)||keyFunction.some(_e=>_e===j)||flowWords.some(_e=>_e===j)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(j),getNodesThatMoreThanOneVariant=(j={})=>{const _e=[];return Object.keys(j).forEach(et=>{const tt=j[et],{variants:rt={},defaultVariantId:nt,default_variant_id:ot}=tt,it=Object.keys(rt).length;it>1&&_e.push({nodeName:et,variantsCount:it,defaultVariantId:nt??ot??BASELINE_VARIANT_ID,variants:rt})}),_e},getVariantNodes=(j={})=>{const _e={};return Object.keys(j).forEach(et=>{const tt=j[et],{variants:rt={}}=tt;if(Object.keys(rt).length>1){const ot=lodashExports.cloneDeep(tt);Object.entries((ot==null?void 0:ot.variants)??{}).forEach(([st,lt])=>{lt.node&&delete lt.node.name});const it=ot.defaultVariantId;delete ot.defaultVariantId,_e[et]={default_variant_id:it,...ot}}}),Object.keys(_e).length>0?_e:void 0},revValueRegex=/^\$\{(\S+)\}$/,getRefValueFromRaw=j=>{var _e,et;return(et=(_e=`${j??""}`)==null?void 0:_e.match(revValueRegex))==null?void 0:et[1]},generateRandomStrings=j=>{const _e="abcdefghijklmnopqrstuvwxyz0123456789";let et="";for(let tt=0;ttgenerateRandomStrings(8),getRandomOutputDefinitionId=getRandomInputDefinitionId,intNumberRegExp=/^[+-]?\d+$/,doubleNumberRegExp=/^[+-]?\d+(\.\d+)?$/,isBool=j=>j.toLowerCase()==="true"||j.toLowerCase()==="false",isNumber$4=j=>doubleNumberRegExp.test(j.trim())?j===j.trim()&&j.length>0&&!Number.isNaN(Number(j)):!1,isInt=j=>intNumberRegExp.test(j.trim())?isNumber$4(j)&&Number.isInteger(Number(j)):!1,isList$1=j=>{try{const _e=JSON.parse(j);return Array.isArray(_e)}catch{return!1}},isObject$i=j=>{try{const _e=JSON.parse(j);return Object.prototype.toString.call(_e)==="[object Object]"}catch{return!1}},isTypeValid=(j,_e)=>{const et=typeof j,tt=et==="string";switch(_e){case ValueType.int:return tt?isInt(j):Number.isInteger(j);case ValueType.double:return tt?isNumber$4(j):et==="number";case ValueType.list:return tt?isList$1(j):Array.isArray(j);case ValueType.object:return tt?isObject$i(j):et==="object";case ValueType.bool:return tt?isBool(j):et==="boolean";case ValueType.function_str:return!0;default:return!0}},getCycle=(j,_e,et,tt)=>{var ot,it;const rt=[],nt=new Set(j.keys());for(j.forEach((st,lt)=>{st===0&&rt.push(lt)});rt.length>0;){const st=rt.shift();st&&(nt.delete(st),(ot=_e.get(st))==null||ot.forEach(lt=>{const ut=(j.get(lt)??0)-1;j.set(lt,ut),ut===0&&rt.push(lt)}))}for(et.forEach((st,lt)=>{st===0&&rt.push(lt)});rt.length>0;){const st=rt.shift();st&&(nt.delete(st),(it=tt.get(st))==null||it.forEach(lt=>{const ut=(et.get(lt)??0)-1;et.set(lt,ut),ut===0&&rt.push(lt)}))}return nt};function commonjsRequire$1(j){throw new Error('Could not dynamically require "'+j+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(j,_e){return j===_e||j!==j&&_e!==_e}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(j,_e){for(var et=j.length;et--;)if(eq$3(j[et][0],_e))return et;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(j){var _e=this.__data__,et=assocIndexOf$3(_e,j);if(et<0)return!1;var tt=_e.length-1;return et==tt?_e.pop():splice.call(_e,et,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(j){var _e=this.__data__,et=assocIndexOf$2(_e,j);return et<0?void 0:_e[et][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(j){return assocIndexOf$1(this.__data__,j)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(j,_e){var et=this.__data__,tt=assocIndexOf(et,j);return tt<0?(++this.size,et.push([j,_e])):et[tt][1]=_e,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(j){var _e=-1,et=j==null?0:j.length;for(this.clear();++_e-1&&j%1==0&&j<_e}var _isIndex=isIndex$3,MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$3,baseGetTag$6=_baseGetTag,isLength$2=isLength_1,isObjectLike$8=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$4="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$4="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$4]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$4]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(j){return isObjectLike$8(j)&&isLength$2(j.length)&&!!typedArrayTags[baseGetTag$6(j)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$4(j){return function(_e){return j(_e)}}var _baseUnary=baseUnary$4,_nodeUtil={exports:{}};_nodeUtil.exports;(function(j,_e){var et=_freeGlobal,tt=_e&&!_e.nodeType&&_e,rt=tt&&!0&&j&&!j.nodeType&&j,nt=rt&&rt.exports===tt,ot=nt&&et.process,it=function(){try{var st=rt&&rt.require&&rt.require("util").types;return st||ot&&ot.binding&&ot.binding("util")}catch{}}();j.exports=it})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$3=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$3=nodeIsTypedArray?baseUnary$3(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$3,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$g=isArray_1,isBuffer$2=isBufferExports,isIndex$2=_isIndex,isTypedArray$2=isTypedArray_1,objectProto$8=Object.prototype,hasOwnProperty$9=objectProto$8.hasOwnProperty;function arrayLikeKeys$2(j,_e){var et=isArray$g(j),tt=!et&&isArguments$2(j),rt=!et&&!tt&&isBuffer$2(j),nt=!et&&!tt&&!rt&&isTypedArray$2(j),ot=et||tt||rt||nt,it=ot?baseTimes(j.length,String):[],st=it.length;for(var lt in j)(_e||hasOwnProperty$9.call(j,lt))&&!(ot&&(lt=="length"||rt&&(lt=="offset"||lt=="parent")||nt&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||isIndex$2(lt,st)))&&it.push(lt);return it}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$7=Object.prototype;function isPrototype$3(j){var _e=j&&j.constructor,et=typeof _e=="function"&&_e.prototype||objectProto$7;return j===et}var _isPrototype=isPrototype$3;function overArg$2(j,_e){return function(et){return j(_e(et))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$6=Object.prototype,hasOwnProperty$8=objectProto$6.hasOwnProperty;function baseKeys$1(j){if(!isPrototype$2(j))return nativeKeys(j);var _e=[];for(var et in Object(j))hasOwnProperty$8.call(j,et)&&et!="constructor"&&_e.push(et);return _e}var _baseKeys=baseKeys$1,isFunction$3=isFunction_1,isLength$1=isLength_1;function isArrayLike$8(j){return j!=null&&isLength$1(j.length)&&!isFunction$3(j)}var isArrayLike_1=isArrayLike$8,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$7=isArrayLike_1;function keys$7(j){return isArrayLike$7(j)?arrayLikeKeys$1(j):baseKeys(j)}var keys_1=keys$7,copyObject$3=_copyObject,keys$6=keys_1;function baseAssign$1(j,_e){return j&©Object$3(_e,keys$6(_e),j)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(j){var _e=[];if(j!=null)for(var et in Object(j))_e.push(et);return _e}var _nativeKeysIn=nativeKeysIn$1,isObject$d=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$5=Object.prototype,hasOwnProperty$7=objectProto$5.hasOwnProperty;function baseKeysIn$1(j){if(!isObject$d(j))return nativeKeysIn(j);var _e=isPrototype$1(j),et=[];for(var tt in j)tt=="constructor"&&(_e||!hasOwnProperty$7.call(j,tt))||et.push(tt);return et}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$6=isArrayLike_1;function keysIn$3(j){return isArrayLike$6(j)?arrayLikeKeys(j,!0):baseKeysIn(j)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(j,_e){return j&©Object$2(_e,keysIn$2(_e),j)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(j,_e){var et=_root$1,tt=_e&&!_e.nodeType&&_e,rt=tt&&!0&&j&&!j.nodeType&&j,nt=rt&&rt.exports===tt,ot=nt?et.Buffer:void 0,it=ot?ot.allocUnsafe:void 0;function st(lt,ut){if(ut)return lt.slice();var ct=lt.length,dt=it?it(ct):new lt.constructor(ct);return lt.copy(dt),dt}j.exports=st})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(j,_e){var et=-1,tt=j.length;for(_e||(_e=Array(tt));++etit))return!1;var lt=nt.get(j),ut=nt.get(_e);if(lt&&ut)return lt==_e&&ut==j;var ct=-1,dt=!0,ft=et&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(nt.set(j,_e),nt.set(_e,j);++ct0&&et(it)?_e>1?baseFlatten$3(it,_e-1,et,tt,rt):arrayPush$1(rt,it):tt||(rt[rt.length]=it)}return rt}var _baseFlatten=baseFlatten$3;function apply$2(j,_e,et){switch(et.length){case 0:return j.call(_e);case 1:return j.call(_e,et[0]);case 2:return j.call(_e,et[0],et[1]);case 3:return j.call(_e,et[0],et[1],et[2])}return j.apply(_e,et)}var _apply=apply$2,apply$1=_apply,nativeMax$3=Math.max;function overRest$2(j,_e,et){return _e=nativeMax$3(_e===void 0?j.length-1:_e,0),function(){for(var tt=arguments,rt=-1,nt=nativeMax$3(tt.length-_e,0),ot=Array(nt);++rt0){if(++_e>=HOT_COUNT)return arguments[0]}else _e=0;return j.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$9=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$1(j,_e){return setToString$1(overRest$1(j,_e,identity$9),j+"")}var _baseRest=baseRest$1;function baseFindIndex$2(j,_e,et,tt){for(var rt=j.length,nt=et+(tt?1:-1);tt?nt--:++nt-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(j,_e,et){for(var tt=-1,rt=j==null?0:j.length;++tt=LARGE_ARRAY_SIZE){var lt=_e?null:createSet(j);if(lt)return setToArray(lt);ot=!1,rt=cacheHas,st=new SetCache}else st=_e?[]:it;e:for(;++tt1?ft.setNode(pt,ct):ft.setNode(pt)}),this},rt.prototype.setNode=function(ut,ct){return j.has(this._nodes,ut)?(arguments.length>1&&(this._nodes[ut]=ct),this):(this._nodes[ut]=arguments.length>1?ct:this._defaultNodeLabelFn(ut),this._isCompound&&(this._parent[ut]=et,this._children[ut]={},this._children[et][ut]=!0),this._in[ut]={},this._preds[ut]={},this._out[ut]={},this._sucs[ut]={},++this._nodeCount,this)},rt.prototype.node=function(ut){return this._nodes[ut]},rt.prototype.hasNode=function(ut){return j.has(this._nodes,ut)},rt.prototype.removeNode=function(ut){var ct=this;if(j.has(this._nodes,ut)){var dt=function(ft){ct.removeEdge(ct._edgeObjs[ft])};delete this._nodes[ut],this._isCompound&&(this._removeFromParentsChildList(ut),delete this._parent[ut],j.each(this.children(ut),function(ft){ct.setParent(ft)}),delete this._children[ut]),j.each(j.keys(this._in[ut]),dt),delete this._in[ut],delete this._preds[ut],j.each(j.keys(this._out[ut]),dt),delete this._out[ut],delete this._sucs[ut],--this._nodeCount}return this},rt.prototype.setParent=function(ut,ct){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(j.isUndefined(ct))ct=et;else{ct+="";for(var dt=ct;!j.isUndefined(dt);dt=this.parent(dt))if(dt===ut)throw new Error("Setting "+ct+" as parent of "+ut+" would create a cycle");this.setNode(ct)}return this.setNode(ut),this._removeFromParentsChildList(ut),this._parent[ut]=ct,this._children[ct][ut]=!0,this},rt.prototype._removeFromParentsChildList=function(ut){delete this._children[this._parent[ut]][ut]},rt.prototype.parent=function(ut){if(this._isCompound){var ct=this._parent[ut];if(ct!==et)return ct}},rt.prototype.children=function(ut){if(j.isUndefined(ut)&&(ut=et),this._isCompound){var ct=this._children[ut];if(ct)return j.keys(ct)}else{if(ut===et)return this.nodes();if(this.hasNode(ut))return[]}},rt.prototype.predecessors=function(ut){var ct=this._preds[ut];if(ct)return j.keys(ct)},rt.prototype.successors=function(ut){var ct=this._sucs[ut];if(ct)return j.keys(ct)},rt.prototype.neighbors=function(ut){var ct=this.predecessors(ut);if(ct)return j.union(ct,this.successors(ut))},rt.prototype.isLeaf=function(ut){var ct;return this.isDirected()?ct=this.successors(ut):ct=this.neighbors(ut),ct.length===0},rt.prototype.filterNodes=function(ut){var ct=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});ct.setGraph(this.graph());var dt=this;j.each(this._nodes,function(gt,mt){ut(mt)&&ct.setNode(mt,gt)}),j.each(this._edgeObjs,function(gt){ct.hasNode(gt.v)&&ct.hasNode(gt.w)&&ct.setEdge(gt,dt.edge(gt))});var ft={};function pt(gt){var mt=dt.parent(gt);return mt===void 0||ct.hasNode(mt)?(ft[gt]=mt,mt):mt in ft?ft[mt]:pt(mt)}return this._isCompound&&j.each(ct.nodes(),function(gt){ct.setParent(gt,pt(gt))}),ct},rt.prototype.setDefaultEdgeLabel=function(ut){return j.isFunction(ut)||(ut=j.constant(ut)),this._defaultEdgeLabelFn=ut,this},rt.prototype.edgeCount=function(){return this._edgeCount},rt.prototype.edges=function(){return j.values(this._edgeObjs)},rt.prototype.setPath=function(ut,ct){var dt=this,ft=arguments;return j.reduce(ut,function(pt,gt){return ft.length>1?dt.setEdge(pt,gt,ct):dt.setEdge(pt,gt),gt}),this},rt.prototype.setEdge=function(){var ut,ct,dt,ft,pt=!1,gt=arguments[0];typeof gt=="object"&>!==null&&"v"in gt?(ut=gt.v,ct=gt.w,dt=gt.name,arguments.length===2&&(ft=arguments[1],pt=!0)):(ut=gt,ct=arguments[1],dt=arguments[3],arguments.length>2&&(ft=arguments[2],pt=!0)),ut=""+ut,ct=""+ct,j.isUndefined(dt)||(dt=""+dt);var mt=it(this._isDirected,ut,ct,dt);if(j.has(this._edgeLabels,mt))return pt&&(this._edgeLabels[mt]=ft),this;if(!j.isUndefined(dt)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(ut),this.setNode(ct),this._edgeLabels[mt]=pt?ft:this._defaultEdgeLabelFn(ut,ct,dt);var bt=st(this._isDirected,ut,ct,dt);return ut=bt.v,ct=bt.w,Object.freeze(bt),this._edgeObjs[mt]=bt,nt(this._preds[ct],ut),nt(this._sucs[ut],ct),this._in[ct][mt]=bt,this._out[ut][mt]=bt,this._edgeCount++,this},rt.prototype.edge=function(ut,ct,dt){var ft=arguments.length===1?lt(this._isDirected,arguments[0]):it(this._isDirected,ut,ct,dt);return this._edgeLabels[ft]},rt.prototype.hasEdge=function(ut,ct,dt){var ft=arguments.length===1?lt(this._isDirected,arguments[0]):it(this._isDirected,ut,ct,dt);return j.has(this._edgeLabels,ft)},rt.prototype.removeEdge=function(ut,ct,dt){var ft=arguments.length===1?lt(this._isDirected,arguments[0]):it(this._isDirected,ut,ct,dt),pt=this._edgeObjs[ft];return pt&&(ut=pt.v,ct=pt.w,delete this._edgeLabels[ft],delete this._edgeObjs[ft],ot(this._preds[ct],ut),ot(this._sucs[ut],ct),delete this._in[ct][ft],delete this._out[ut][ft],this._edgeCount--),this},rt.prototype.inEdges=function(ut,ct){var dt=this._in[ut];if(dt){var ft=j.values(dt);return ct?j.filter(ft,function(pt){return pt.v===ct}):ft}},rt.prototype.outEdges=function(ut,ct){var dt=this._out[ut];if(dt){var ft=j.values(dt);return ct?j.filter(ft,function(pt){return pt.w===ct}):ft}},rt.prototype.nodeEdges=function(ut,ct){var dt=this.inEdges(ut,ct);if(dt)return dt.concat(this.outEdges(ut,ct))};function nt(ut,ct){ut[ct]?ut[ct]++:ut[ct]=1}function ot(ut,ct){--ut[ct]||delete ut[ct]}function it(ut,ct,dt,ft){var pt=""+ct,gt=""+dt;if(!ut&&pt>gt){var mt=pt;pt=gt,gt=mt}return pt+tt+gt+tt+(j.isUndefined(ft)?_e:ft)}function st(ut,ct,dt,ft){var pt=""+ct,gt=""+dt;if(!ut&&pt>gt){var mt=pt;pt=gt,gt=mt}var bt={v:pt,w:gt};return ft&&(bt.name=ft),bt}function lt(ut,ct){return it(ut,ct.v,ct.w,ct.name)}return graph}var version$1,hasRequiredVersion;function requireVersion(){return hasRequiredVersion||(hasRequiredVersion=1,version$1="2.1.8"),version$1}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={Graph:requireGraph(),version:requireVersion()}),lib}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var j=requireLodash(),_e=requireGraph();json={write:et,read:nt};function et(ot){var it={options:{directed:ot.isDirected(),multigraph:ot.isMultigraph(),compound:ot.isCompound()},nodes:tt(ot),edges:rt(ot)};return j.isUndefined(ot.graph())||(it.value=j.clone(ot.graph())),it}function tt(ot){return j.map(ot.nodes(),function(it){var st=ot.node(it),lt=ot.parent(it),ut={v:it};return j.isUndefined(st)||(ut.value=st),j.isUndefined(lt)||(ut.parent=lt),ut})}function rt(ot){return j.map(ot.edges(),function(it){var st=ot.edge(it),lt={v:it.v,w:it.w};return j.isUndefined(it.name)||(lt.name=it.name),j.isUndefined(st)||(lt.value=st),lt})}function nt(ot){var it=new _e(ot.options).setGraph(ot.value);return j.each(ot.nodes,function(st){it.setNode(st.v,st.value),st.parent&&it.setParent(st.v,st.parent)}),j.each(ot.edges,function(st){it.setEdge({v:st.v,w:st.w,name:st.name},st.value)}),it}return json}var components_1,hasRequiredComponents;function requireComponents(){if(hasRequiredComponents)return components_1;hasRequiredComponents=1;var j=requireLodash();components_1=_e;function _e(et){var tt={},rt=[],nt;function ot(it){j.has(tt,it)||(tt[it]=!0,nt.push(it),j.each(et.successors(it),ot),j.each(et.predecessors(it),ot))}return j.each(et.nodes(),function(it){nt=[],ot(it),nt.length&&rt.push(nt)}),rt}return components_1}var priorityQueue,hasRequiredPriorityQueue;function requirePriorityQueue(){if(hasRequiredPriorityQueue)return priorityQueue;hasRequiredPriorityQueue=1;var j=requireLodash();priorityQueue=_e;function _e(){this._arr=[],this._keyIndices={}}return _e.prototype.size=function(){return this._arr.length},_e.prototype.keys=function(){return this._arr.map(function(et){return et.key})},_e.prototype.has=function(et){return j.has(this._keyIndices,et)},_e.prototype.priority=function(et){var tt=this._keyIndices[et];if(tt!==void 0)return this._arr[tt].priority},_e.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},_e.prototype.add=function(et,tt){var rt=this._keyIndices;if(et=String(et),!j.has(rt,et)){var nt=this._arr,ot=nt.length;return rt[et]=ot,nt.push({key:et,priority:tt}),this._decrease(ot),!0}return!1},_e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var et=this._arr.pop();return delete this._keyIndices[et.key],this._heapify(0),et.key},_e.prototype.decrease=function(et,tt){var rt=this._keyIndices[et];if(tt>this._arr[rt].priority)throw new Error("New priority is greater than current priority. Key: "+et+" Old: "+this._arr[rt].priority+" New: "+tt);this._arr[rt].priority=tt,this._decrease(rt)},_e.prototype._heapify=function(et){var tt=this._arr,rt=2*et,nt=rt+1,ot=et;rt>1,!(tt[nt].priority0&&(ct=ut.removeMin(),dt=lt[ct],dt.distance!==Number.POSITIVE_INFINITY);)st(ct).forEach(ft);return lt}return dijkstra_1}var dijkstraAll_1,hasRequiredDijkstraAll;function requireDijkstraAll(){if(hasRequiredDijkstraAll)return dijkstraAll_1;hasRequiredDijkstraAll=1;var j=requireDijkstra(),_e=requireLodash();dijkstraAll_1=et;function et(tt,rt,nt){return _e.transform(tt.nodes(),function(ot,it){ot[it]=j(tt,it,rt,nt)},{})}return dijkstraAll_1}var tarjan_1,hasRequiredTarjan;function requireTarjan(){if(hasRequiredTarjan)return tarjan_1;hasRequiredTarjan=1;var j=requireLodash();tarjan_1=_e;function _e(et){var tt=0,rt=[],nt={},ot=[];function it(st){var lt=nt[st]={onStack:!0,lowlink:tt,index:tt++};if(rt.push(st),et.successors(st).forEach(function(dt){j.has(nt,dt)?nt[dt].onStack&&(lt.lowlink=Math.min(lt.lowlink,nt[dt].index)):(it(dt),lt.lowlink=Math.min(lt.lowlink,nt[dt].lowlink))}),lt.lowlink===lt.index){var ut=[],ct;do ct=rt.pop(),nt[ct].onStack=!1,ut.push(ct);while(st!==ct);ot.push(ut)}}return et.nodes().forEach(function(st){j.has(nt,st)||it(st)}),ot}return tarjan_1}var findCycles_1,hasRequiredFindCycles;function requireFindCycles(){if(hasRequiredFindCycles)return findCycles_1;hasRequiredFindCycles=1;var j=requireLodash(),_e=requireTarjan();findCycles_1=et;function et(tt){return j.filter(_e(tt),function(rt){return rt.length>1||rt.length===1&&tt.hasEdge(rt[0],rt[0])})}return findCycles_1}var floydWarshall_1,hasRequiredFloydWarshall;function requireFloydWarshall(){if(hasRequiredFloydWarshall)return floydWarshall_1;hasRequiredFloydWarshall=1;var j=requireLodash();floydWarshall_1=et;var _e=j.constant(1);function et(rt,nt,ot){return tt(rt,nt||_e,ot||function(it){return rt.outEdges(it)})}function tt(rt,nt,ot){var it={},st=rt.nodes();return st.forEach(function(lt){it[lt]={},it[lt][lt]={distance:0},st.forEach(function(ut){lt!==ut&&(it[lt][ut]={distance:Number.POSITIVE_INFINITY})}),ot(lt).forEach(function(ut){var ct=ut.v===lt?ut.w:ut.v,dt=nt(ut);it[lt][ct]={distance:dt,predecessor:lt}})}),st.forEach(function(lt){var ut=it[lt];st.forEach(function(ct){var dt=it[ct];st.forEach(function(ft){var pt=dt[lt],gt=ut[ft],mt=dt[ft],bt=pt.distance+gt.distance;bt0;){if(lt=st.removeMin(),j.has(it,lt))ot.setEdge(lt,it[lt]);else{if(ct)throw new Error("Input graph is not connected: "+rt);ct=!0}rt.nodeEdges(lt).forEach(ut)}return ot}return prim_1}var alg,hasRequiredAlg;function requireAlg(){return hasRequiredAlg||(hasRequiredAlg=1,alg={components:requireComponents(),dijkstra:requireDijkstra(),dijkstraAll:requireDijkstraAll(),findCycles:requireFindCycles(),floydWarshall:requireFloydWarshall(),isAcyclic:requireIsAcyclic(),postorder:requirePostorder(),preorder:requirePreorder(),prim:requirePrim(),tarjan:requireTarjan(),topsort:requireTopsort()}),alg}var graphlib$1,hasRequiredGraphlib;function requireGraphlib(){if(hasRequiredGraphlib)return graphlib$1;hasRequiredGraphlib=1;var j=requireLib();return graphlib$1={Graph:j.Graph,json:requireJson(),alg:requireAlg(),version:j.version},graphlib$1}var graphlib;if(typeof commonjsRequire$1=="function")try{graphlib=requireGraphlib()}catch{}graphlib||(graphlib=window.graphlib);var graphlib_1=graphlib,cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var j=_baseClone,_e=1,et=4;function tt(rt){return j(rt,_e|et)}return cloneDeep_1=tt,cloneDeep_1}var eq=eq_1,isArrayLike$3=isArrayLike_1,isIndex=_isIndex,isObject$9=isObject_1;function isIterateeCall$4(j,_e,et){if(!isObject$9(et))return!1;var tt=typeof _e;return(tt=="number"?isArrayLike$3(et)&&isIndex(_e,et.length):tt=="string"&&_e in et)?eq(et[_e],j):!1}var _isIterateeCall=isIterateeCall$4,defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var j=_baseRest,_e=eq_1,et=_isIterateeCall,tt=keysIn_1,rt=Object.prototype,nt=rt.hasOwnProperty,ot=j(function(it,st){it=Object(it);var lt=-1,ut=st.length,ct=ut>2?st[2]:void 0;for(ct&&et(st[0],st[1],ct)&&(ut=1);++lt-1?rt[nt?_e[ot]:ot]:void 0}}var _createFind=createFind$1,reWhitespace=/\s/;function trimmedEndIndex$1(j){for(var _e=j.length;_e--&&reWhitespace.test(j.charAt(_e)););return _e}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(j){return j&&j.slice(0,trimmedEndIndex(j)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$8=isObject_1,isSymbol$2=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$2(j){if(typeof j=="number")return j;if(isSymbol$2(j))return NAN;if(isObject$8(j)){var _e=typeof j.valueOf=="function"?j.valueOf():j;j=isObject$8(_e)?_e+"":_e}if(typeof j!="string")return j===0?j:+j;j=baseTrim(j);var et=reIsBinary.test(j);return et||reIsOctal.test(j)?freeParseInt(j.slice(2),et?2:8):reIsBadHex.test(j)?NAN:+j}var toNumber_1=toNumber$2,toNumber$1=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(j){if(!j)return j===0?j:0;if(j=toNumber$1(j),j===INFINITY||j===-INFINITY){var _e=j<0?-1:1;return _e*MAX_INTEGER}return j===j?j:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$1(j){var _e=toFinite$1(j),et=_e%1;return _e===_e?et?_e-et:_e:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee$7=_baseIteratee,toInteger=toInteger_1,nativeMax$2=Math.max;function findIndex$1(j,_e,et){var tt=j==null?0:j.length;if(!tt)return-1;var rt=et==null?0:toInteger(et);return rt<0&&(rt=nativeMax$2(tt+rt,0)),baseFindIndex(j,baseIteratee$7(_e),rt)}var findIndex_1=findIndex$1,createFind=_createFind,findIndex=findIndex_1,find=createFind(findIndex),find_1=find;const find$1=getDefaultExportFromCjs(find_1);var baseFlatten$2=_baseFlatten;function flatten$1(j){var _e=j==null?0:j.length;return _e?baseFlatten$2(j,1):[]}var flatten_1=flatten$1,forIn_1,hasRequiredForIn;function requireForIn(){if(hasRequiredForIn)return forIn_1;hasRequiredForIn=1;var j=_baseFor,_e=require_castFunction(),et=keysIn_1;function tt(rt,nt){return rt==null?rt:j(rt,_e(nt),et)}return forIn_1=tt,forIn_1}function last(j){var _e=j==null?0:j.length;return _e?j[_e-1]:void 0}var last_1=last;const last$1=getDefaultExportFromCjs(last_1);var baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee$6=_baseIteratee;function mapValues(j,_e){var et={};return _e=baseIteratee$6(_e),baseForOwn(j,function(tt,rt,nt){baseAssignValue(et,rt,_e(tt,rt,nt))}),et}var mapValues_1=mapValues;const mapValues$1=getDefaultExportFromCjs(mapValues_1);var isSymbol$1=isSymbol_1;function baseExtremum$4(j,_e,et){for(var tt=-1,rt=j.length;++tt_e}var _baseGt=baseGt$2,baseExtremum$3=_baseExtremum,baseGt$1=_baseGt,identity$8=identity_1;function max$2(j){return j&&j.length?baseExtremum$3(j,identity$8,baseGt$1):void 0}var max_1=max$2;const max$3=getDefaultExportFromCjs(max_1);var _assignMergeValue,hasRequired_assignMergeValue;function require_assignMergeValue(){if(hasRequired_assignMergeValue)return _assignMergeValue;hasRequired_assignMergeValue=1;var j=_baseAssignValue,_e=eq_1;function et(tt,rt,nt){(nt!==void 0&&!_e(tt[rt],nt)||nt===void 0&&!(rt in tt))&&j(tt,rt,nt)}return _assignMergeValue=et,_assignMergeValue}var baseGetTag$2=_baseGetTag,getPrototype=_getPrototype,isObjectLike$2=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$3=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(j){if(!isObjectLike$2(j)||baseGetTag$2(j)!=objectTag)return!1;var _e=getPrototype(j);if(_e===null)return!0;var et=hasOwnProperty$3.call(_e,"constructor")&&_e.constructor;return typeof et=="function"&&et instanceof et&&funcToString.call(et)==objectCtorString}var isPlainObject_1=isPlainObject$1;const isPlainObject$2=getDefaultExportFromCjs(isPlainObject_1);var _safeGet,hasRequired_safeGet;function require_safeGet(){if(hasRequired_safeGet)return _safeGet;hasRequired_safeGet=1;function j(_e,et){if(!(et==="constructor"&&typeof _e[et]=="function")&&et!="__proto__")return _e[et]}return _safeGet=j,_safeGet}var toPlainObject_1,hasRequiredToPlainObject;function requireToPlainObject(){if(hasRequiredToPlainObject)return toPlainObject_1;hasRequiredToPlainObject=1;var j=_copyObject,_e=keysIn_1;function et(tt){return j(tt,_e(tt))}return toPlainObject_1=et,toPlainObject_1}var _baseMergeDeep,hasRequired_baseMergeDeep;function require_baseMergeDeep(){if(hasRequired_baseMergeDeep)return _baseMergeDeep;hasRequired_baseMergeDeep=1;var j=require_assignMergeValue(),_e=_cloneBufferExports,et=_cloneTypedArray,tt=_copyArray,rt=_initCloneObject,nt=isArguments_1,ot=isArray_1,it=requireIsArrayLikeObject(),st=isBufferExports,lt=isFunction_1,ut=isObject_1,ct=isPlainObject_1,dt=isTypedArray_1,ft=require_safeGet(),pt=requireToPlainObject();function gt(mt,bt,_t,xt,yt,Et,St){var Tt=ft(mt,_t),kt=ft(bt,_t),$t=St.get(kt);if($t){j(mt,_t,$t);return}var Ct=Et?Et(Tt,kt,_t+"",mt,bt,St):void 0,It=Ct===void 0;if(It){var Nt=ot(kt),Ot=!Nt&&st(kt),jt=!Nt&&!Ot&&dt(kt);Ct=kt,Nt||Ot||jt?ot(Tt)?Ct=Tt:it(Tt)?Ct=tt(Tt):Ot?(It=!1,Ct=_e(kt,!0)):jt?(It=!1,Ct=et(kt,!0)):Ct=[]:ct(kt)||nt(kt)?(Ct=Tt,nt(Tt)?Ct=pt(Tt):(!ut(Tt)||lt(Tt))&&(Ct=rt(kt))):It=!1}It&&(St.set(kt,Ct),yt(Ct,kt,xt,Et,St),St.delete(kt)),j(mt,_t,Ct)}return _baseMergeDeep=gt,_baseMergeDeep}var _baseMerge,hasRequired_baseMerge;function require_baseMerge(){if(hasRequired_baseMerge)return _baseMerge;hasRequired_baseMerge=1;var j=_Stack,_e=require_assignMergeValue(),et=_baseFor,tt=require_baseMergeDeep(),rt=isObject_1,nt=keysIn_1,ot=require_safeGet();function it(st,lt,ut,ct,dt){st!==lt&&et(lt,function(ft,pt){if(dt||(dt=new j),rt(ft))tt(st,lt,pt,ut,it,ct,dt);else{var gt=ct?ct(ot(st,pt),ft,pt+"",st,lt,dt):void 0;gt===void 0&&(gt=ft),_e(st,pt,gt)}},nt)}return _baseMerge=it,_baseMerge}var _createAssigner,hasRequired_createAssigner;function require_createAssigner(){if(hasRequired_createAssigner)return _createAssigner;hasRequired_createAssigner=1;var j=_baseRest,_e=_isIterateeCall;function et(tt){return j(function(rt,nt){var ot=-1,it=nt.length,st=it>1?nt[it-1]:void 0,lt=it>2?nt[2]:void 0;for(st=tt.length>3&&typeof st=="function"?(it--,st):void 0,lt&&_e(nt[0],nt[1],lt)&&(st=it<3?void 0:st,it=1),rt=Object(rt);++ot_e||nt&&ot&&st&&!it&&!lt||tt&&ot&&st||!et&&st||!rt)return 1;if(!tt&&!nt&&!lt&&j<_e||lt&&et&&rt&&!tt&&!nt||it&&et&&rt||!ot&&rt||!st)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(j,_e,et){for(var tt=-1,rt=j.criteria,nt=_e.criteria,ot=rt.length,it=et.length;++tt=it)return st;var lt=et[tt];return st*(lt=="desc"?-1:1)}}return j.index-_e.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet=_baseGet,baseIteratee$4=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity$6=identity_1,isArray$4=isArray_1;function baseOrderBy$1(j,_e,et){_e.length?_e=arrayMap(_e,function(nt){return isArray$4(nt)?function(ot){return baseGet(ot,nt.length===1?nt[0]:nt)}:nt}):_e=[identity$6];var tt=-1;_e=arrayMap(_e,baseUnary(baseIteratee$4));var rt=baseMap(j,function(nt,ot,it){var st=arrayMap(_e,function(lt){return lt(nt)});return{criteria:st,index:++tt,value:nt}});return baseSortBy(rt,function(nt,ot){return compareMultiple(nt,ot,et)})}var _baseOrderBy=baseOrderBy$1,baseFlatten$1=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall$2=_isIterateeCall,sortBy=baseRest(function(j,_e){if(j==null)return[];var et=_e.length;return et>1&&isIterateeCall$2(j,_e[0],_e[1])?_e=[]:et>2&&isIterateeCall$2(_e[0],_e[1],_e[2])&&(_e=[_e[0]]),baseOrderBy(j,baseFlatten$1(_e,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs(sortBy_1);var uniqueId_1,hasRequiredUniqueId;function requireUniqueId(){if(hasRequiredUniqueId)return uniqueId_1;hasRequiredUniqueId=1;var j=toString_1,_e=0;function et(tt){var rt=++_e;return j(tt)+rt}return uniqueId_1=et,uniqueId_1}var _baseZipObject,hasRequired_baseZipObject;function require_baseZipObject(){if(hasRequired_baseZipObject)return _baseZipObject;hasRequired_baseZipObject=1;function j(_e,et,tt){for(var rt=-1,nt=_e.length,ot=et.length,it={};++rt0;--it)if(ot=_e[it].dequeue(),ot){tt=tt.concat(removeNode(j,_e,et,ot,!0));break}}}return tt}function removeNode(j,_e,et,tt,rt){var nt=rt?[]:void 0;return _$o.forEach(j.inEdges(tt.v),function(ot){var it=j.edge(ot),st=j.node(ot.v);rt&&nt.push({v:ot.v,w:ot.w}),st.out-=it,assignBucket(_e,et,st)}),_$o.forEach(j.outEdges(tt.v),function(ot){var it=j.edge(ot),st=ot.w,lt=j.node(st);lt.in-=it,assignBucket(_e,et,lt)}),j.removeNode(tt.v),nt}function buildState(j,_e){var et=new Graph$8,tt=0,rt=0;_$o.forEach(j.nodes(),function(it){et.setNode(it,{v:it,in:0,out:0})}),_$o.forEach(j.edges(),function(it){var st=et.edge(it.v,it.w)||0,lt=_e(it),ut=st+lt;et.setEdge(it.v,it.w,ut),rt=Math.max(rt,et.node(it.v).out+=lt),tt=Math.max(tt,et.node(it.w).in+=lt)});var nt=_$o.range(rt+tt+3).map(function(){return new List$2}),ot=tt+1;return _$o.forEach(et.nodes(),function(it){assignBucket(nt,ot,et.node(it))}),{graph:et,buckets:nt,zeroIdx:ot}}function assignBucket(j,_e,et){et.out?et.in?j[et.out-et.in+_e].enqueue(et):j[j.length-1].enqueue(et):j[0].enqueue(et)}var _$n=lodash_1,greedyFAS=greedyFas,acyclic$1={run:run$2,undo:undo$3};function run$2(j){var _e=j.graph().acyclicer==="greedy"?greedyFAS(j,et(j)):dfsFAS(j);_$n.forEach(_e,function(tt){var rt=j.edge(tt);j.removeEdge(tt),rt.forwardName=tt.name,rt.reversed=!0,j.setEdge(tt.w,tt.v,rt,_$n.uniqueId("rev"))});function et(tt){return function(rt){return tt.edge(rt).weight}}}function dfsFAS(j){var _e=[],et={},tt={};function rt(nt){_$n.has(tt,nt)||(tt[nt]=!0,et[nt]=!0,_$n.forEach(j.outEdges(nt),function(ot){_$n.has(et,ot.w)?_e.push(ot):rt(ot.w)}),delete et[nt])}return _$n.forEach(j.nodes(),rt),_e}function undo$3(j){_$n.forEach(j.edges(),function(_e){var et=j.edge(_e);if(et.reversed){j.removeEdge(_e);var tt=et.forwardName;delete et.reversed,delete et.forwardName,j.setEdge(_e.w,_e.v,et,tt)}})}var _$m=lodash_1,Graph$7=graphlib_1.Graph,util$a={addDummyNode,simplify:simplify$1,asNonCompoundGraph,successorWeights,predecessorWeights,intersectRect,buildLayerMatrix,normalizeRanks:normalizeRanks$1,removeEmptyRanks:removeEmptyRanks$1,addBorderNode:addBorderNode$1,maxRank,partition,time:time$1,notime};function addDummyNode(j,_e,et,tt){var rt;do rt=_$m.uniqueId(tt);while(j.hasNode(rt));return et.dummy=_e,j.setNode(rt,et),rt}function simplify$1(j){var _e=new Graph$7().setGraph(j.graph());return _$m.forEach(j.nodes(),function(et){_e.setNode(et,j.node(et))}),_$m.forEach(j.edges(),function(et){var tt=_e.edge(et.v,et.w)||{weight:0,minlen:1},rt=j.edge(et);_e.setEdge(et.v,et.w,{weight:tt.weight+rt.weight,minlen:Math.max(tt.minlen,rt.minlen)})}),_e}function asNonCompoundGraph(j){var _e=new Graph$7({multigraph:j.isMultigraph()}).setGraph(j.graph());return _$m.forEach(j.nodes(),function(et){j.children(et).length||_e.setNode(et,j.node(et))}),_$m.forEach(j.edges(),function(et){_e.setEdge(et,j.edge(et))}),_e}function successorWeights(j){var _e=_$m.map(j.nodes(),function(et){var tt={};return _$m.forEach(j.outEdges(et),function(rt){tt[rt.w]=(tt[rt.w]||0)+j.edge(rt).weight}),tt});return _$m.zipObject(j.nodes(),_e)}function predecessorWeights(j){var _e=_$m.map(j.nodes(),function(et){var tt={};return _$m.forEach(j.inEdges(et),function(rt){tt[rt.v]=(tt[rt.v]||0)+j.edge(rt).weight}),tt});return _$m.zipObject(j.nodes(),_e)}function intersectRect(j,_e){var et=j.x,tt=j.y,rt=_e.x-et,nt=_e.y-tt,ot=j.width/2,it=j.height/2;if(!rt&&!nt)throw new Error("Not possible to find intersection inside of the rectangle");var st,lt;return Math.abs(nt)*ot>Math.abs(rt)*it?(nt<0&&(it=-it),st=it*rt/nt,lt=it):(rt<0&&(ot=-ot),st=ot,lt=ot*nt/rt),{x:et+st,y:tt+lt}}function buildLayerMatrix(j){var _e=_$m.map(_$m.range(maxRank(j)+1),function(){return[]});return _$m.forEach(j.nodes(),function(et){var tt=j.node(et),rt=tt.rank;_$m.isUndefined(rt)||(_e[rt][tt.order]=et)}),_e}function normalizeRanks$1(j){var _e=_$m.min(_$m.map(j.nodes(),function(et){return j.node(et).rank}));_$m.forEach(j.nodes(),function(et){var tt=j.node(et);_$m.has(tt,"rank")&&(tt.rank-=_e)})}function removeEmptyRanks$1(j){var _e=_$m.min(_$m.map(j.nodes(),function(nt){return j.node(nt).rank})),et=[];_$m.forEach(j.nodes(),function(nt){var ot=j.node(nt).rank-_e;et[ot]||(et[ot]=[]),et[ot].push(nt)});var tt=0,rt=j.graph().nodeRankFactor;_$m.forEach(et,function(nt,ot){_$m.isUndefined(nt)&&ot%rt!==0?--tt:tt&&_$m.forEach(nt,function(it){j.node(it).rank+=tt})})}function addBorderNode$1(j,_e,et,tt){var rt={width:0,height:0};return arguments.length>=4&&(rt.rank=et,rt.order=tt),addDummyNode(j,"border",rt,_e)}function maxRank(j){return _$m.max(_$m.map(j.nodes(),function(_e){var et=j.node(_e).rank;if(!_$m.isUndefined(et))return et}))}function partition(j,_e){var et={lhs:[],rhs:[]};return _$m.forEach(j,function(tt){_e(tt)?et.lhs.push(tt):et.rhs.push(tt)}),et}function time$1(j,_e){var et=_$m.now();try{return _e()}finally{console.log(j+" time: "+(_$m.now()-et)+"ms")}}function notime(j,_e){return _e()}var _$l=lodash_1,util$9=util$a,normalize$2={run:run$1,undo:undo$2};function run$1(j){j.graph().dummyChains=[],_$l.forEach(j.edges(),function(_e){normalizeEdge(j,_e)})}function normalizeEdge(j,_e){var et=_e.v,tt=j.node(et).rank,rt=_e.w,nt=j.node(rt).rank,ot=_e.name,it=j.edge(_e),st=it.labelRank;if(nt!==tt+1){j.removeEdge(_e);var lt,ut,ct;for(ct=0,++tt;ttot.lim&&(it=ot,st=!0);var lt=_$i.filter(_e.edges(),function(ut){return st===isDescendant(j,j.node(ut.v),it)&&st!==isDescendant(j,j.node(ut.w),it)});return _$i.minBy(lt,function(ut){return slack(_e,ut)})}function exchangeEdges(j,_e,et,tt){var rt=et.v,nt=et.w;j.removeEdge(rt,nt),j.setEdge(tt.v,tt.w,{}),initLowLimValues(j),initCutValues(j,_e),updateRanks(j,_e)}function updateRanks(j,_e){var et=_$i.find(j.nodes(),function(rt){return!_e.node(rt).parent}),tt=preorder(j,et);tt=tt.slice(1),_$i.forEach(tt,function(rt){var nt=j.node(rt).parent,ot=_e.edge(rt,nt),it=!1;ot||(ot=_e.edge(nt,rt),it=!0),_e.node(rt).rank=_e.node(nt).rank+(it?ot.minlen:-ot.minlen)})}function isTreeEdge(j,_e,et){return j.hasEdge(_e,et)}function isDescendant(j,_e,et){return et.low<=_e.lim&&_e.lim<=et.lim}var rankUtil=util$8,longestPath=rankUtil.longestPath,feasibleTree=feasibleTree_1,networkSimplex=networkSimplex_1,rank_1=rank$1;function rank$1(j){switch(j.graph().ranker){case"network-simplex":networkSimplexRanker(j);break;case"tight-tree":tightTreeRanker(j);break;case"longest-path":longestPathRanker(j);break;default:networkSimplexRanker(j)}}var longestPathRanker=longestPath;function tightTreeRanker(j){longestPath(j),feasibleTree(j)}function networkSimplexRanker(j){networkSimplex(j)}var _$h=lodash_1,parentDummyChains_1=parentDummyChains$1;function parentDummyChains$1(j){var _e=postorder(j);_$h.forEach(j.graph().dummyChains,function(et){for(var tt=j.node(et),rt=tt.edgeObj,nt=findPath(j,_e,rt.v,rt.w),ot=nt.path,it=nt.lca,st=0,lt=ot[st],ut=!0;et!==rt.w;){if(tt=j.node(et),ut){for(;(lt=ot[st])!==it&&j.node(lt).maxRankot||it>_e[st].lim));for(lt=st,st=tt;(st=j.parent(st))!==lt;)nt.push(st);return{path:rt.concat(nt.reverse()),lca:lt}}function postorder(j){var _e={},et=0;function tt(rt){var nt=et;_$h.forEach(j.children(rt),tt),_e[rt]={low:nt,lim:et++}}return _$h.forEach(j.children(),tt),_e}var _$g=lodash_1,util$7=util$a,nestingGraph$1={run,cleanup:cleanup$1};function run(j){var _e=util$7.addDummyNode(j,"root",{},"_root"),et=treeDepths(j),tt=_$g.max(_$g.values(et))-1,rt=2*tt+1;j.graph().nestingRoot=_e,_$g.forEach(j.edges(),function(ot){j.edge(ot).minlen*=rt});var nt=sumWeights(j)+1;_$g.forEach(j.children(),function(ot){dfs(j,_e,rt,nt,tt,et,ot)}),j.graph().nodeRankFactor=rt}function dfs(j,_e,et,tt,rt,nt,ot){var it=j.children(ot);if(!it.length){ot!==_e&&j.setEdge(_e,ot,{weight:0,minlen:et});return}var st=util$7.addBorderNode(j,"_bt"),lt=util$7.addBorderNode(j,"_bb"),ut=j.node(ot);j.setParent(st,ot),ut.borderTop=st,j.setParent(lt,ot),ut.borderBottom=lt,_$g.forEach(it,function(ct){dfs(j,_e,et,tt,rt,nt,ct);var dt=j.node(ct),ft=dt.borderTop?dt.borderTop:ct,pt=dt.borderBottom?dt.borderBottom:ct,gt=dt.borderTop?tt:2*tt,mt=ft!==pt?1:rt-nt[ot]+1;j.setEdge(st,ft,{weight:gt,minlen:mt,nestingEdge:!0}),j.setEdge(pt,lt,{weight:gt,minlen:mt,nestingEdge:!0})}),j.parent(ot)||j.setEdge(_e,st,{weight:0,minlen:rt+nt[ot]})}function treeDepths(j){var _e={};function et(tt,rt){var nt=j.children(tt);nt&&nt.length&&_$g.forEach(nt,function(ot){et(ot,rt+1)}),_e[tt]=rt}return _$g.forEach(j.children(),function(tt){et(tt,1)}),_e}function sumWeights(j){return _$g.reduce(j.edges(),function(_e,et){return _e+j.edge(et).weight},0)}function cleanup$1(j){var _e=j.graph();j.removeNode(_e.nestingRoot),delete _e.nestingRoot,_$g.forEach(j.edges(),function(et){var tt=j.edge(et);tt.nestingEdge&&j.removeEdge(et)})}var _$f=lodash_1,util$6=util$a,addBorderSegments_1=addBorderSegments$1;function addBorderSegments$1(j){function _e(et){var tt=j.children(et),rt=j.node(et);if(tt.length&&_$f.forEach(tt,_e),_$f.has(rt,"minRank")){rt.borderLeft=[],rt.borderRight=[];for(var nt=rt.minRank,ot=rt.maxRank+1;nt0;)ut%2&&(ct+=it[ut+1]),ut=ut-1>>1,it[ut]+=lt.weight;st+=lt.weight*ct})),st}var _$b=lodash_1,barycenter_1=barycenter$1;function barycenter$1(j,_e){return _$b.map(_e,function(et){var tt=j.inEdges(et);if(tt.length){var rt=_$b.reduce(tt,function(nt,ot){var it=j.edge(ot),st=j.node(ot.v);return{sum:nt.sum+it.weight*st.order,weight:nt.weight+it.weight}},{sum:0,weight:0});return{v:et,barycenter:rt.sum/rt.weight,weight:rt.weight}}else return{v:et}})}var _$a=lodash_1,resolveConflicts_1=resolveConflicts$1;function resolveConflicts$1(j,_e){var et={};_$a.forEach(j,function(rt,nt){var ot=et[rt.v]={indegree:0,in:[],out:[],vs:[rt.v],i:nt};_$a.isUndefined(rt.barycenter)||(ot.barycenter=rt.barycenter,ot.weight=rt.weight)}),_$a.forEach(_e.edges(),function(rt){var nt=et[rt.v],ot=et[rt.w];!_$a.isUndefined(nt)&&!_$a.isUndefined(ot)&&(ot.indegree++,nt.out.push(et[rt.w]))});var tt=_$a.filter(et,function(rt){return!rt.indegree});return doResolveConflicts(tt)}function doResolveConflicts(j){var _e=[];function et(nt){return function(ot){ot.merged||(_$a.isUndefined(ot.barycenter)||_$a.isUndefined(nt.barycenter)||ot.barycenter>=nt.barycenter)&&mergeEntries(nt,ot)}}function tt(nt){return function(ot){ot.in.push(nt),--ot.indegree===0&&j.push(ot)}}for(;j.length;){var rt=j.pop();_e.push(rt),_$a.forEach(rt.in.reverse(),et(rt)),_$a.forEach(rt.out,tt(rt))}return _$a.map(_$a.filter(_e,function(nt){return!nt.merged}),function(nt){return _$a.pick(nt,["vs","i","barycenter","weight"])})}function mergeEntries(j,_e){var et=0,tt=0;j.weight&&(et+=j.barycenter*j.weight,tt+=j.weight),_e.weight&&(et+=_e.barycenter*_e.weight,tt+=_e.weight),j.vs=_e.vs.concat(j.vs),j.barycenter=et/tt,j.weight=tt,j.i=Math.min(_e.i,j.i),_e.merged=!0}var _$9=lodash_1,util$5=util$a,sort_1=sort$1;function sort$1(j,_e){var et=util$5.partition(j,function(ut){return _$9.has(ut,"barycenter")}),tt=et.lhs,rt=_$9.sortBy(et.rhs,function(ut){return-ut.i}),nt=[],ot=0,it=0,st=0;tt.sort(compareWithBias(!!_e)),st=consumeUnsortable(nt,rt,st),_$9.forEach(tt,function(ut){st+=ut.vs.length,nt.push(ut.vs),ot+=ut.barycenter*ut.weight,it+=ut.weight,st=consumeUnsortable(nt,rt,st)});var lt={vs:_$9.flatten(nt,!0)};return it&&(lt.barycenter=ot/it,lt.weight=it),lt}function consumeUnsortable(j,_e,et){for(var tt;_e.length&&(tt=_$9.last(_e)).i<=et;)_e.pop(),j.push(tt.vs),et++;return et}function compareWithBias(j){return function(_e,et){return _e.barycenteret.barycenter?1:j?et.i-_e.i:_e.i-et.i}}var _$8=lodash_1,barycenter=barycenter_1,resolveConflicts=resolveConflicts_1,sort=sort_1,sortSubgraph_1=sortSubgraph$1;function sortSubgraph$1(j,_e,et,tt){var rt=j.children(_e),nt=j.node(_e),ot=nt?nt.borderLeft:void 0,it=nt?nt.borderRight:void 0,st={};ot&&(rt=_$8.filter(rt,function(pt){return pt!==ot&&pt!==it}));var lt=barycenter(j,rt);_$8.forEach(lt,function(pt){if(j.children(pt.v).length){var gt=sortSubgraph$1(j,pt.v,et,tt);st[pt.v]=gt,_$8.has(gt,"barycenter")&&mergeBarycenters(pt,gt)}});var ut=resolveConflicts(lt,et);expandSubgraphs(ut,st);var ct=sort(ut,tt);if(ot&&(ct.vs=_$8.flatten([ot,ct.vs,it],!0),j.predecessors(ot).length)){var dt=j.node(j.predecessors(ot)[0]),ft=j.node(j.predecessors(it)[0]);_$8.has(ct,"barycenter")||(ct.barycenter=0,ct.weight=0),ct.barycenter=(ct.barycenter*ct.weight+dt.order+ft.order)/(ct.weight+2),ct.weight+=2}return ct}function expandSubgraphs(j,_e){_$8.forEach(j,function(et){et.vs=_$8.flatten(et.vs.map(function(tt){return _e[tt]?_e[tt].vs:tt}),!0)})}function mergeBarycenters(j,_e){_$8.isUndefined(j.barycenter)?(j.barycenter=_e.barycenter,j.weight=_e.weight):(j.barycenter=(j.barycenter*j.weight+_e.barycenter*_e.weight)/(j.weight+_e.weight),j.weight+=_e.weight)}var _$7=lodash_1,Graph$5=graphlib_1.Graph,buildLayerGraph_1=buildLayerGraph$1;function buildLayerGraph$1(j,_e,et){var tt=createRootNode(j),rt=new Graph$5({compound:!0}).setGraph({root:tt}).setDefaultNodeLabel(function(nt){return j.node(nt)});return _$7.forEach(j.nodes(),function(nt){var ot=j.node(nt),it=j.parent(nt);(ot.rank===_e||ot.minRank<=_e&&_e<=ot.maxRank)&&(rt.setNode(nt),rt.setParent(nt,it||tt),_$7.forEach(j[et](nt),function(st){var lt=st.v===nt?st.w:st.v,ut=rt.edge(lt,nt),ct=_$7.isUndefined(ut)?0:ut.weight;rt.setEdge(lt,nt,{weight:j.edge(st).weight+ct})}),_$7.has(ot,"minRank")&&rt.setNode(nt,{borderLeft:ot.borderLeft[_e],borderRight:ot.borderRight[_e]}))}),rt}function createRootNode(j){for(var _e;j.hasNode(_e=_$7.uniqueId("_root")););return _e}var _$6=lodash_1,addSubgraphConstraints_1=addSubgraphConstraints$1;function addSubgraphConstraints$1(j,_e,et){var tt={},rt;_$6.forEach(et,function(nt){for(var ot=j.parent(nt),it,st;ot;){if(it=j.parent(ot),it?(st=tt[it],tt[it]=ot):(st=rt,rt=ot),st&&st!==ot){_e.setEdge(st,ot);return}ot=it}})}var _$5=lodash_1,initOrder=initOrder_1,crossCount=crossCount_1,sortSubgraph=sortSubgraph_1,buildLayerGraph=buildLayerGraph_1,addSubgraphConstraints=addSubgraphConstraints_1,Graph$4=graphlib_1.Graph,util$4=util$a,order_1=order$1;function order$1(j){var _e=util$4.maxRank(j),et=buildLayerGraphs(j,_$5.range(1,_e+1),"inEdges"),tt=buildLayerGraphs(j,_$5.range(_e-1,-1,-1),"outEdges"),rt=initOrder(j);assignOrder(j,rt);for(var nt=Number.POSITIVE_INFINITY,ot,it=0,st=0;st<4;++it,++st){sweepLayerGraphs(it%2?et:tt,it%4>=2),rt=util$4.buildLayerMatrix(j);var lt=crossCount(j,rt);ltlt)&&addConflict(et,dt,ut)})})}function rt(nt,ot){var it=-1,st,lt=0;return _$4.forEach(ot,function(ut,ct){if(j.node(ut).dummy==="border"){var dt=j.predecessors(ut);dt.length&&(st=j.node(dt[0]).order,tt(ot,lt,ct,it,st),lt=ct,it=st)}tt(ot,lt,ot.length,st,nt.length)}),ot}return _$4.reduce(_e,rt),et}function findOtherInnerSegmentNode(j,_e){if(j.node(_e).dummy)return _$4.find(j.predecessors(_e),function(et){return j.node(et).dummy})}function addConflict(j,_e,et){if(_e>et){var tt=_e;_e=et,et=tt}var rt=j[_e];rt||(j[_e]=rt={}),rt[et]=!0}function hasConflict(j,_e,et){if(_e>et){var tt=_e;_e=et,et=tt}return _$4.has(j[_e],et)}function verticalAlignment(j,_e,et,tt){var rt={},nt={},ot={};return _$4.forEach(_e,function(it){_$4.forEach(it,function(st,lt){rt[st]=st,nt[st]=st,ot[st]=lt})}),_$4.forEach(_e,function(it){var st=-1;_$4.forEach(it,function(lt){var ut=tt(lt);if(ut.length){ut=_$4.sortBy(ut,function(gt){return ot[gt]});for(var ct=(ut.length-1)/2,dt=Math.floor(ct),ft=Math.ceil(ct);dt<=ft;++dt){var pt=ut[dt];nt[lt]===lt&&st=0;it--)(ot=j[it])&&(nt=(rt<3?ot(nt):rt>3?ot(_e,et,nt):ot(_e,et))||nt);return rt>3&&nt&&Object.defineProperty(_e,et,nt),nt}function __spreadArray$1(j,_e,et){if(et||arguments.length===2)for(var tt=0,rt=_e.length,nt;tt"u"?InjectionMode$1.none:InjectionMode$1.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},_e),this._classNameToArgs=(tt=et==null?void 0:et.classNameToArgs)!==null&&tt!==void 0?tt:this._classNameToArgs,this._counter=(rt=et==null?void 0:et.counter)!==null&&rt!==void 0?rt:this._counter,this._keyToClassName=(ot=(nt=this._config.classNameCache)!==null&&nt!==void 0?nt:et==null?void 0:et.keyToClassName)!==null&&ot!==void 0?ot:this._keyToClassName,this._preservedRules=(it=et==null?void 0:et.preservedRules)!==null&&it!==void 0?it:this._preservedRules,this._rules=(st=et==null?void 0:et.rules)!==null&&st!==void 0?st:this._rules}return j.getInstance=function(){if(_stylesheet$1=_global$2[STYLESHEET_SETTING$1],!_stylesheet$1||_stylesheet$1._lastStyleElement&&_stylesheet$1._lastStyleElement.ownerDocument!==document){var _e=(_global$2==null?void 0:_global$2.FabricConfig)||{},et=new j(_e.mergeStyles,_e.serializedStylesheet);_stylesheet$1=et,_global$2[STYLESHEET_SETTING$1]=et}return _stylesheet$1},j.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},j.prototype.setConfig=function(_e){this._config=__assign$4(__assign$4({},this._config),_e)},j.prototype.onReset=function(_e){var et=this;return this._onResetCallbacks.push(_e),function(){et._onResetCallbacks=et._onResetCallbacks.filter(function(tt){return tt!==_e})}},j.prototype.onInsertRule=function(_e){var et=this;return this._onInsertRuleCallbacks.push(_e),function(){et._onInsertRuleCallbacks=et._onInsertRuleCallbacks.filter(function(tt){return tt!==_e})}},j.prototype.getClassName=function(_e){var et=this._config.namespace,tt=_e||this._config.defaultPrefix;return"".concat(et?et+"-":"").concat(tt,"-").concat(this._counter++)},j.prototype.cacheClassName=function(_e,et,tt,rt){this._keyToClassName[et]=_e,this._classNameToArgs[_e]={args:tt,rules:rt}},j.prototype.classNameFromKey=function(_e){return this._keyToClassName[_e]},j.prototype.getClassNameCache=function(){return this._keyToClassName},j.prototype.argsFromClassName=function(_e){var et=this._classNameToArgs[_e];return et&&et.args},j.prototype.insertedRulesFromClassName=function(_e){var et=this._classNameToArgs[_e];return et&&et.rules},j.prototype.insertRule=function(_e,et){var tt=this._config.injectionMode,rt=tt!==InjectionMode$1.none?this._getStyleElement():void 0;if(et&&this._preservedRules.push(_e),rt)switch(tt){case InjectionMode$1.insertNode:var nt=rt.sheet;try{nt.insertRule(_e,nt.cssRules.length)}catch{}break;case InjectionMode$1.appendChild:rt.appendChild(document.createTextNode(_e));break}else this._rules.push(_e);this._config.onInsertRule&&this._config.onInsertRule(_e),this._onInsertRuleCallbacks.forEach(function(ot){return ot()})},j.prototype.getRules=function(_e){return(_e?this._preservedRules.join(""):"")+this._rules.join("")},j.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(_e){return _e()})},j.prototype.resetKeys=function(){this._keyToClassName={}},j.prototype._getStyleElement=function(){var _e=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE$1||window.requestAnimationFrame(function(){_e._styleElement=void 0})),this._styleElement},j.prototype._createStyleElement=function(){var _e=document.head,et=document.createElement("style"),tt=null;et.setAttribute("data-merge-styles","true");var rt=this._config.cspSettings;if(rt&&rt.nonce&&et.setAttribute("nonce",rt.nonce),this._lastStyleElement)tt=this._lastStyleElement.nextElementSibling;else{var nt=this._findPlaceholderStyleTag();nt?tt=nt.nextElementSibling:tt=_e.childNodes[0]}return _e.insertBefore(et,_e.contains(tt)?tt:null),this._lastStyleElement=et,et},j.prototype._findPlaceholderStyleTag=function(){var _e=document.head;return _e?_e.querySelector("style[data-merge-styles]"):null},j}();function extractStyleParts$1(){for(var j=[],_e=0;_e=0)nt(lt.split(" "));else{var ut=rt.argsFromClassName(lt);ut?nt(ut):et.indexOf(lt)===-1&&et.push(lt)}else Array.isArray(lt)?nt(lt):typeof lt=="object"&&tt.push(lt)}}return nt(j),{classes:et,objects:tt}}function setRTL$1(j){_rtl$1!==j&&(_rtl$1=j)}function getRTL$2(){return _rtl$1===void 0&&(_rtl$1=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl$1}var _rtl$1;_rtl$1=getRTL$2();function getStyleOptions$1(){return{rtl:getRTL$2()}}var rules$1={};function kebabRules$1(j,_e){var et=j[_e];et.charAt(0)!=="-"&&(j[_e]=rules$1[et]=rules$1[et]||et.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings$1;function getVendorSettings$1(){var j;if(!_vendorSettings$1){var _e=typeof document<"u"?document:void 0,et=typeof navigator<"u"?navigator:void 0,tt=(j=et==null?void 0:et.userAgent)===null||j===void 0?void 0:j.toLowerCase();_e?_vendorSettings$1={isWebkit:!!(_e&&"WebkitAppearance"in _e.documentElement.style),isMoz:!!(tt&&tt.indexOf("firefox")>-1),isOpera:!!(tt&&tt.indexOf("opera")>-1),isMs:!!(et&&(/rv:11.0/i.test(et.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings$1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings$1}var autoPrefixNames$1={"user-select":1};function prefixRules$1(j,_e){var et=getVendorSettings$1(),tt=j[_e];if(autoPrefixNames$1[tt]){var rt=j[_e+1];autoPrefixNames$1[tt]&&(et.isWebkit&&j.push("-webkit-"+tt,rt),et.isMoz&&j.push("-moz-"+tt,rt),et.isMs&&j.push("-ms-"+tt,rt),et.isOpera&&j.push("-o-"+tt,rt))}}var NON_PIXEL_NUMBER_PROPS$1=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits$1(j,_e){var et=j[_e],tt=j[_e+1];if(typeof tt=="number"){var rt=NON_PIXEL_NUMBER_PROPS$1.indexOf(et)>-1,nt=et.indexOf("--")>-1,ot=rt||nt?"":"px";j[_e+1]="".concat(tt).concat(ot)}}var _a$9,LEFT$1="left",RIGHT$1="right",NO_FLIP$1="@noflip",NAME_REPLACEMENTS$1=(_a$9={},_a$9[LEFT$1]=RIGHT$1,_a$9[RIGHT$1]=LEFT$1,_a$9),VALUE_REPLACEMENTS$1={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules$1(j,_e,et){if(j.rtl){var tt=_e[et];if(!tt)return;var rt=_e[et+1];if(typeof rt=="string"&&rt.indexOf(NO_FLIP$1)>=0)_e[et+1]=rt.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(tt.indexOf(LEFT$1)>=0)_e[et]=tt.replace(LEFT$1,RIGHT$1);else if(tt.indexOf(RIGHT$1)>=0)_e[et]=tt.replace(RIGHT$1,LEFT$1);else if(String(rt).indexOf(LEFT$1)>=0)_e[et+1]=rt.replace(LEFT$1,RIGHT$1);else if(String(rt).indexOf(RIGHT$1)>=0)_e[et+1]=rt.replace(RIGHT$1,LEFT$1);else if(NAME_REPLACEMENTS$1[tt])_e[et]=NAME_REPLACEMENTS$1[tt];else if(VALUE_REPLACEMENTS$1[rt])_e[et+1]=VALUE_REPLACEMENTS$1[rt];else switch(tt){case"margin":case"padding":_e[et+1]=flipQuad$1(rt);break;case"box-shadow":_e[et+1]=negateNum$1(rt,0);break}}}function negateNum$1(j,_e){var et=j.split(" "),tt=parseInt(et[_e],10);return et[0]=et[0].replace(String(tt),String(tt*-1)),et.join(" ")}function flipQuad$1(j){if(typeof j=="string"){var _e=j.split(" ");if(_e.length===4)return"".concat(_e[0]," ").concat(_e[3]," ").concat(_e[2]," ").concat(_e[1])}return j}function tokenizeWithParentheses$1(j){for(var _e=[],et=0,tt=0,rt=0;rtet&&_e.push(j.substring(et,rt)),et=rt+1);break}return et-1&&_e.push([tt.index,tt.index+tt[0].length,tt[1].split(",").map(function(rt){return":global(".concat(rt.trim(),")")}).join(", ")]);return _e.reverse().reduce(function(rt,nt){var ot=nt[0],it=nt[1],st=nt[2],lt=rt.slice(0,ot),ut=rt.slice(it);return lt+st+ut},j)}function expandSelector$1(j,_e){return j.indexOf(":global(")>=0?j.replace(globalSelectorRegExp$1,"$1"):j.indexOf(":")===0?_e+j:j.indexOf("&")<0?_e+" "+j:j}function extractSelector$1(j,_e,et,tt){_e===void 0&&(_e={__order:[]}),et.indexOf("@")===0?(et=et+"{"+j,extractRules$1([tt],_e,et)):et.indexOf(",")>-1?expandCommaSeparatedGlobals$1(et).split(",").map(function(rt){return rt.trim()}).forEach(function(rt){return extractRules$1([tt],_e,expandSelector$1(rt,j))}):extractRules$1([tt],_e,expandSelector$1(et,j))}function extractRules$1(j,_e,et){_e===void 0&&(_e={__order:[]}),et===void 0&&(et="&");var tt=Stylesheet$1.getInstance(),rt=_e[et];rt||(rt={},_e[et]=rt,_e.__order.push(et));for(var nt=0,ot=j;nt0){et.subComponentStyles={};var dt=et.subComponentStyles,ft=function(pt){if(tt.hasOwnProperty(pt)){var gt=tt[pt];dt[pt]=function(mt){return concatStyleSets.apply(void 0,gt.map(function(bt){return typeof bt=="function"?bt(mt):bt}))}}};for(var lt in tt)ft(lt)}return et}function mergeStyleSets(){for(var j=[],_e=0;_e"u")){var _e=j;return _e&&_e.ownerDocument&&_e.ownerDocument.defaultView?_e.ownerDocument.defaultView:_window}}var Async=function(){function j(_e,et){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=_e||null,this._onErrorHandler=et,this._noop=function(){}}return j.prototype.dispose=function(){var _e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(_e in this._timeoutIds)this._timeoutIds.hasOwnProperty(_e)&&this.clearTimeout(parseInt(_e,10));this._timeoutIds=null}if(this._immediateIds){for(_e in this._immediateIds)this._immediateIds.hasOwnProperty(_e)&&this.clearImmediate(parseInt(_e,10));this._immediateIds=null}if(this._intervalIds){for(_e in this._intervalIds)this._intervalIds.hasOwnProperty(_e)&&this.clearInterval(parseInt(_e,10));this._intervalIds=null}if(this._animationFrameIds){for(_e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(_e)&&this.cancelAnimationFrame(parseInt(_e,10));this._animationFrameIds=null}},j.prototype.setTimeout=function(_e,et){var tt=this,rt=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),rt=setTimeout(function(){try{tt._timeoutIds&&delete tt._timeoutIds[rt],_e.apply(tt._parent)}catch(nt){tt._logError(nt)}},et),this._timeoutIds[rt]=!0),rt},j.prototype.clearTimeout=function(_e){this._timeoutIds&&this._timeoutIds[_e]&&(clearTimeout(_e),delete this._timeoutIds[_e])},j.prototype.setImmediate=function(_e,et){var tt=this,rt=0,nt=getWindow(et);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var ot=function(){try{tt._immediateIds&&delete tt._immediateIds[rt],_e.apply(tt._parent)}catch(it){tt._logError(it)}};rt=nt.setTimeout(ot,0),this._immediateIds[rt]=!0}return rt},j.prototype.clearImmediate=function(_e,et){var tt=getWindow(et);this._immediateIds&&this._immediateIds[_e]&&(tt.clearTimeout(_e),delete this._immediateIds[_e])},j.prototype.setInterval=function(_e,et){var tt=this,rt=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),rt=setInterval(function(){try{_e.apply(tt._parent)}catch(nt){tt._logError(nt)}},et),this._intervalIds[rt]=!0),rt},j.prototype.clearInterval=function(_e){this._intervalIds&&this._intervalIds[_e]&&(clearInterval(_e),delete this._intervalIds[_e])},j.prototype.throttle=function(_e,et,tt){var rt=this;if(this._isDisposed)return this._noop;var nt=et||0,ot=!0,it=!0,st=0,lt,ut,ct=null;tt&&typeof tt.leading=="boolean"&&(ot=tt.leading),tt&&typeof tt.trailing=="boolean"&&(it=tt.trailing);var dt=function(pt){var gt=Date.now(),mt=gt-st,bt=ot?nt-mt:nt;return mt>=nt&&(!pt||ot)?(st=gt,ct&&(rt.clearTimeout(ct),ct=null),lt=_e.apply(rt._parent,ut)):ct===null&&it&&(ct=rt.setTimeout(dt,bt)),lt},ft=function(){for(var pt=[],gt=0;gt=ot&&(kt=!0),ut=Tt);var $t=Tt-ut,Ct=ot-$t,It=Tt-ct,Nt=!1;return lt!==null&&(It>=lt&&pt?Nt=!0:Ct=Math.min(Ct,lt-It)),$t>=ot||Nt||kt?mt(Tt):(pt===null||!St)&&st&&(pt=rt.setTimeout(bt,Ct)),dt},_t=function(){return!!pt},xt=function(){_t()&>(Date.now())},yt=function(){return _t()&&mt(Date.now()),dt},Et=function(){for(var St=[],Tt=0;Tt-1)for(var ot=et.split(/[ ,]+/),it=0;it"u")){var _e=j;return _e&&_e.ownerDocument?_e.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles$1({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(j,_e){if(j){var et=0,tt=null,rt=function(ot){ot.targetTouches.length===1&&(et=ot.targetTouches[0].clientY)},nt=function(ot){if(ot.targetTouches.length===1&&(ot.stopPropagation(),!!tt)){var it=ot.targetTouches[0].clientY-et,st=findScrollableParent(ot.target);st&&(tt=st),tt.scrollTop===0&&it>0&&ot.preventDefault(),tt.scrollHeight-Math.ceil(tt.scrollTop)<=tt.clientHeight&&it<0&&ot.preventDefault()}};_e.on(j,"touchstart",rt,{passive:!1}),_e.on(j,"touchmove",nt,{passive:!1}),tt=j}},allowOverscrollOnElement=function(j,_e){if(j){var et=function(tt){tt.stopPropagation()};_e.on(j,"touchmove",et,{passive:!1})}},_disableIosBodyScroll=function(j){j.preventDefault()};function disableBodyScroll(){var j=getDocument();j&&j.body&&!_bodyScrollDisabledCount&&(j.body.classList.add(DisabledScrollClassName),j.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var j=getDocument();j&&j.body&&_bodyScrollDisabledCount===1&&(j.body.classList.remove(DisabledScrollClassName),j.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var j=document.createElement("div");j.style.setProperty("width","100px"),j.style.setProperty("height","100px"),j.style.setProperty("overflow","scroll"),j.style.setProperty("position","absolute"),j.style.setProperty("top","-9999px"),document.body.appendChild(j),_scrollbarWidth=j.offsetWidth-j.clientWidth,document.body.removeChild(j)}return _scrollbarWidth}function findScrollableParent(j){for(var _e=j,et=getDocument(j);_e&&_e!==et.body;){if(_e.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return _e;_e=_e.parentElement}for(_e=j;_e&&_e!==et.body;){if(_e.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var tt=getComputedStyle(_e),rt=tt?tt.getPropertyValue("overflow-y"):"";if(rt&&(rt==="scroll"||rt==="auto"))return _e}_e=_e.parentElement}return(!_e||_e===et.body)&&(_e=getWindow(j)),_e}var _warningCallback=void 0;function warn$1(j){console&&console.warn&&console.warn(j)}var GLOBAL_SETTINGS_PROP_NAME="__globalSettings__",CALLBACK_STATE_PROP_NAME="__callbacks__",_counter=0,GlobalSettings=function(){function j(){}return j.getValue=function(_e,et){var tt=_getGlobalSettings();return tt[_e]===void 0&&(tt[_e]=typeof et=="function"?et():et),tt[_e]},j.setValue=function(_e,et){var tt=_getGlobalSettings(),rt=tt[CALLBACK_STATE_PROP_NAME],nt=tt[_e];if(et!==nt){tt[_e]=et;var ot={oldValue:nt,value:et,key:_e};for(var it in rt)rt.hasOwnProperty(it)&&rt[it](ot)}return et},j.addChangeListener=function(_e){var et=_e.__id__,tt=_getCallbacks();et||(et=_e.__id__=String(_counter++)),tt[et]=_e},j.removeChangeListener=function(_e){var et=_getCallbacks();delete et[_e.__id__]},j}();function _getGlobalSettings(){var j,_e=getWindow(),et=_e||{};return et[GLOBAL_SETTINGS_PROP_NAME]||(et[GLOBAL_SETTINGS_PROP_NAME]=(j={},j[CALLBACK_STATE_PROP_NAME]={},j)),et[GLOBAL_SETTINGS_PROP_NAME]}function _getCallbacks(){var j=_getGlobalSettings();return j[CALLBACK_STATE_PROP_NAME]}var KeyCodes$1={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},Rectangle$1=function(){function j(_e,et,tt,rt){_e===void 0&&(_e=0),et===void 0&&(et=0),tt===void 0&&(tt=0),rt===void 0&&(rt=0),this.top=tt,this.bottom=rt,this.left=_e,this.right=et}return Object.defineProperty(j.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),j.prototype.equals=function(_e){return parseFloat(this.top.toFixed(4))===parseFloat(_e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(_e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(_e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(_e.right.toFixed(4))},j}();function appendFunction(j){for(var _e=[],et=1;et-1&&rt._virtual.children.splice(nt,1)}et._virtual.parent=tt||void 0,tt&&(tt._virtual||(tt._virtual={children:[]}),tt._virtual.children.push(et))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(j,_e,et){return getNextElement(j,_e,!0,!1,!1,et)}function getLastFocusable(j,_e,et){return getPreviousElement(j,_e,!0,!1,!0,et)}function getFirstTabbable(j,_e,et,tt){return tt===void 0&&(tt=!0),getNextElement(j,_e,tt,!1,!1,et,!1,!0)}function getLastTabbable(j,_e,et,tt){return tt===void 0&&(tt=!0),getPreviousElement(j,_e,tt,!1,!0,et,!1,!0)}function focusFirstChild(j,_e){var et=getNextElement(j,j,!0,!1,!1,!0,void 0,void 0,_e);return et?(focusAsync(et),!0):!1}function getPreviousElement(j,_e,et,tt,rt,nt,ot,it){if(!_e||!ot&&_e===j)return null;var st=isElementVisible(_e);if(rt&&st&&(nt||!(isElementFocusZone(_e)||isElementFocusSubZone(_e)))){var lt=getPreviousElement(j,_e.lastElementChild,!0,!0,!0,nt,ot,it);if(lt){if(it&&isElementTabbable(lt,!0)||!it)return lt;var ut=getPreviousElement(j,lt.previousElementSibling,!0,!0,!0,nt,ot,it);if(ut)return ut;for(var ct=lt.parentElement;ct&&ct!==_e;){var dt=getPreviousElement(j,ct.previousElementSibling,!0,!0,!0,nt,ot,it);if(dt)return dt;ct=ct.parentElement}}}if(et&&st&&isElementTabbable(_e,it))return _e;var ft=getPreviousElement(j,_e.previousElementSibling,!0,!0,!0,nt,ot,it);return ft||(tt?null:getPreviousElement(j,_e.parentElement,!0,!1,!1,nt,ot,it))}function getNextElement(j,_e,et,tt,rt,nt,ot,it,st){if(!_e||_e===j&&rt&&!ot)return null;var lt=st?isElementVisibleAndNotHidden:isElementVisible,ut=lt(_e);if(et&&ut&&isElementTabbable(_e,it))return _e;if(!rt&&ut&&(nt||!(isElementFocusZone(_e)||isElementFocusSubZone(_e)))){var ct=getNextElement(j,_e.firstElementChild,!0,!0,!1,nt,ot,it,st);if(ct)return ct}if(_e===j)return null;var dt=getNextElement(j,_e.nextElementSibling,!0,!0,!1,nt,ot,it,st);return dt||(tt?null:getNextElement(j,_e.parentElement,!1,!1,!0,nt,ot,it,st))}function isElementVisible(j){if(!j||!j.getAttribute)return!1;var _e=j.getAttribute(IS_VISIBLE_ATTRIBUTE);return _e!=null?_e==="true":j.offsetHeight!==0||j.offsetParent!==null||j.isVisible===!0}function isElementVisibleAndNotHidden(j){return!!j&&isElementVisible(j)&&!j.hidden&&window.getComputedStyle(j).visibility!=="hidden"}function isElementTabbable(j,_e){if(!j||j.disabled)return!1;var et=0,tt=null;j&&j.getAttribute&&(tt=j.getAttribute("tabIndex"),tt&&(et=parseInt(tt,10)));var rt=j.getAttribute?j.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,nt=tt!==null&&et>=0,ot=!!j&&rt!=="false"&&(j.tagName==="A"||j.tagName==="BUTTON"||j.tagName==="INPUT"||j.tagName==="TEXTAREA"||j.tagName==="SELECT"||rt==="true"||nt);return _e?et!==-1&&ot:ot}function isElementFocusZone(j){return!!(j&&j.getAttribute&&j.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(j){return!!(j&&j.getAttribute&&j.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(j){var _e=getDocument(j),et=_e&&_e.activeElement;return!!(et&&elementContains(j,et))}function shouldWrapFocus(j,_e){return elementContainsAttribute(j,_e)!=="true"}var animationId=void 0;function focusAsync(j){if(j){var _e=getWindow(j);_e&&(animationId!==void 0&&_e.cancelAnimationFrame(animationId),animationId=_e.requestAnimationFrame(function(){j&&j.focus(),animationId=void 0}))}}function getFocusableByIndexPath(j,_e){for(var et=j,tt=0,rt=_e;tt(j.cacheSize||MAX_CACHE_COUNT)){var ft=getWindow();!((st=ft==null?void 0:ft.FabricConfig)===null||st===void 0)&&st.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(et,"/").concat(tt,".")),console.trace()),_e.clear(),et=0,j.disableCaching=!0}return lt[retVal]};return nt}function _traverseEdge(j,_e){return _e=_normalizeValue(_e),j.has(_e)||j.set(_e,new Map),j.get(_e)}function _traverseMap(j,_e){if(typeof _e=="function"){var et=_e.__cachedInputs__;if(et)for(var tt=0,rt=_e.__cachedInputs__;tt"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(j,_e,et){if(_e===void 0&&(_e=100),et===void 0&&(et=!1),!_weakMap)return j;if(!_initializedStylesheetResets$1){var tt=Stylesheet$1.getInstance();tt&&tt.onReset&&Stylesheet$1.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var rt,nt=0,ot=_resetCounter;return function(){for(var st=[],lt=0;lt0&&nt>_e)&&(rt=_createNode(),nt=0,ot=_resetCounter),ut=rt;for(var ct=0;ct=0||st.indexOf("data-")===0||st.indexOf("aria-")===0;lt&&(!et||(et==null?void 0:et.indexOf(st))===-1)&&(rt[st]=j[st])}return rt}function initializeComponentRef(j){extendComponent(j,{componentDidMount:_onMount,componentDidUpdate:_onUpdate,componentWillUnmount:_onUnmount})}function _onMount(){_setComponentRef(this.props.componentRef,this)}function _onUpdate(j){j.componentRef!==this.props.componentRef&&(_setComponentRef(j.componentRef,null),_setComponentRef(this.props.componentRef,this))}function _onUnmount(){_setComponentRef(this.props.componentRef,null)}function _setComponentRef(j,_e){j&&(typeof j=="object"?j.current=_e:typeof j=="function"&&j(_e))}var _a$8,DirectionalKeyCodes=(_a$8={},_a$8[KeyCodes$1.up]=1,_a$8[KeyCodes$1.down]=1,_a$8[KeyCodes$1.left]=1,_a$8[KeyCodes$1.right]=1,_a$8[KeyCodes$1.home]=1,_a$8[KeyCodes$1.end]=1,_a$8[KeyCodes$1.tab]=1,_a$8[KeyCodes$1.pageUp]=1,_a$8[KeyCodes$1.pageDown]=1,_a$8);function isDirectionalKeyCode(j){return!!DirectionalKeyCodes[j]}var IsFocusVisibleClassName="ms-Fabric--isFocusVisible",IsFocusHiddenClassName="ms-Fabric--isFocusHidden";function updateClassList(j,_e){j&&(j.classList.add(_e?IsFocusVisibleClassName:IsFocusHiddenClassName),j.classList.remove(_e?IsFocusHiddenClassName:IsFocusVisibleClassName))}function setFocusVisibility(j,_e,et){var tt;et?et.forEach(function(rt){return updateClassList(rt.current,j)}):updateClassList((tt=getWindow(_e))===null||tt===void 0?void 0:tt.document.body,j)}var mountCounters=new WeakMap,callbackMap=new WeakMap;function setMountCounters(j,_e){var et,tt=mountCounters.get(j);return tt?et=tt+_e:et=1,mountCounters.set(j,et),et}function setCallbackMap(j){var _e=callbackMap.get(j);if(_e)return _e;var et=function(ot){return _onMouseDown(ot,j.registeredProviders)},tt=function(ot){return _onPointerDown(ot,j.registeredProviders)},rt=function(ot){return _onKeyDown(ot,j.registeredProviders)},nt=function(ot){return _onKeyUp(ot,j.registeredProviders)};return _e={onMouseDown:et,onPointerDown:tt,onKeyDown:rt,onKeyUp:nt},callbackMap.set(j,_e),_e}var FocusRectsContext=reactExports.createContext(void 0);function useFocusRects(j){var _e=reactExports.useContext(FocusRectsContext);reactExports.useEffect(function(){var et,tt,rt,nt,ot=getWindow(j==null?void 0:j.current);if(!(!ot||((et=ot.FabricConfig)===null||et===void 0?void 0:et.disableFocusRects)===!0)){var it=ot,st,lt,ut,ct;if(!((tt=_e==null?void 0:_e.providerRef)===null||tt===void 0)&&tt.current&&(!((nt=(rt=_e==null?void 0:_e.providerRef)===null||rt===void 0?void 0:rt.current)===null||nt===void 0)&&nt.addEventListener)){it=_e.providerRef.current;var dt=setCallbackMap(_e);st=dt.onMouseDown,lt=dt.onPointerDown,ut=dt.onKeyDown,ct=dt.onKeyUp}else st=_onMouseDown,lt=_onPointerDown,ut=_onKeyDown,ct=_onKeyUp;var ft=setMountCounters(it,1);return ft<=1&&(it.addEventListener("mousedown",st,!0),it.addEventListener("pointerdown",lt,!0),it.addEventListener("keydown",ut,!0),it.addEventListener("keyup",ct,!0)),function(){var pt;!ot||((pt=ot.FabricConfig)===null||pt===void 0?void 0:pt.disableFocusRects)===!0||(ft=setMountCounters(it,-1),ft===0&&(it.removeEventListener("mousedown",st,!0),it.removeEventListener("pointerdown",lt,!0),it.removeEventListener("keydown",ut,!0),it.removeEventListener("keyup",ct,!0)))}}},[_e,j])}var FocusRects=function(j){return useFocusRects(j.rootRef),null};function _onMouseDown(j,_e){setFocusVisibility(!1,j.target,_e)}function _onPointerDown(j,_e){j.pointerType!=="mouse"&&setFocusVisibility(!1,j.target,_e)}function _onKeyDown(j,_e){isDirectionalKeyCode(j.which)&&setFocusVisibility(!0,j.target,_e)}function _onKeyUp(j,_e){isDirectionalKeyCode(j.which)&&setFocusVisibility(!0,j.target,_e)}var FocusRectsProvider=function(j){var _e=j.providerRef,et=j.layerRoot,tt=reactExports.useState([])[0],rt=reactExports.useContext(FocusRectsContext),nt=rt!==void 0&&!et,ot=reactExports.useMemo(function(){return nt?void 0:{providerRef:_e,registeredProviders:tt,registerProvider:function(it){tt.push(it),rt==null||rt.registerProvider(it)},unregisterProvider:function(it){rt==null||rt.unregisterProvider(it);var st=tt.indexOf(it);st>=0&&tt.splice(st,1)}}},[_e,tt,rt,nt]);return reactExports.useEffect(function(){if(ot)return ot.registerProvider(ot.providerRef),function(){return ot.unregisterProvider(ot.providerRef)}},[ot]),ot?reactExports.createElement(FocusRectsContext.Provider,{value:ot},j.children):reactExports.createElement(reactExports.Fragment,null,j.children)};function getItem(j){var _e=null;try{var et=getWindow();_e=et?et.localStorage.getItem(j):null}catch{}return _e}var _language,STORAGE_KEY="language";function getLanguage(j){if(j===void 0&&(j="sessionStorage"),_language===void 0){var _e=getDocument(),et=j==="localStorage"?getItem(STORAGE_KEY):j==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;et&&(_language=et),_language===void 0&&_e&&(_language=_e.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$3(j){for(var _e=[],et=1;et-1;j[tt]=nt?rt:_merge(j[tt]||{},rt,et)}else j[tt]=rt}return et.pop(),j}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(j){var _e=getDocument(j);if(!_e)return function(){};for(var et=[];j!==_e.body&&j.parentElement;){for(var tt=0,rt=j.parentElement.children;tt"u"||j){var et=getWindow(),tt=(_e=et==null?void 0:et.navigator)===null||_e===void 0?void 0:_e.userAgent;isMacResult=!!tt&&tt.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(j){var _e=createMemoizer(function(et){var tt=createMemoizer(function(rt){return function(nt){return et(nt,rt)}});return function(rt,nt){return j(rt,nt?tt(nt):et)}});return _e}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(j,_e){return memoizer(j)(_e)}var DefaultFields=["theme","styles"];function styled(j,_e,et,tt,rt){tt=tt||{scope:"",fields:void 0};var nt=tt.scope,ot=tt.fields,it=ot===void 0?DefaultFields:ot,st=reactExports.forwardRef(function(ut,ct){var dt=reactExports.useRef(),ft=useCustomizationSettings(it,nt),pt=ft.styles;ft.dir;var gt=__rest$1(ft,["styles","dir"]),mt=et?et(ut):void 0,bt=dt.current&&dt.current.__cachedInputs__||[],_t=ut.styles;if(!dt.current||pt!==bt[1]||_t!==bt[2]){var xt=function(yt){return concatStyleSetsWithProps(yt,_e,pt,_t)};xt.__cachedInputs__=[_e,pt,_t],xt.__noStyleOverride__=!pt&&!_t,dt.current=xt}return reactExports.createElement(j,__assign$4({ref:ct},gt,mt,ut,{styles:dt.current}))});st.displayName="Styled".concat(j.displayName||j.name);var lt=rt?reactExports.memo(st):st;return st.displayName&&(lt.displayName=st.displayName),lt}function getPropsWithDefaults(j,_e){for(var et=__assign$4({},_e),tt=0,rt=Object.keys(j);tttt?" (+ ".concat(_missingIcons.length-tt," more)"):"")),_missingIconsTimer=void 0,_missingIcons=[]},et)))}function makeSemanticColors(j,_e,et,tt,rt){rt===void 0&&(rt=!1);var nt=__assign$4({primaryButtonBorder:"transparent",errorText:tt?"#F1707B":"#a4262c",messageText:tt?"#F3F2F1":"#323130",messageLink:tt?"#6CB8F6":"#005A9E",messageLinkHovered:tt?"#82C7FF":"#004578",infoIcon:tt?"#C8C6C4":"#605e5c",errorIcon:tt?"#F1707B":"#A80000",blockingIcon:tt?"#442726":"#FDE7E9",warningIcon:tt?"#C8C6C4":"#797775",severeWarningIcon:tt?"#FCE100":"#D83B01",successIcon:tt?"#92C353":"#107C10",infoBackground:tt?"#323130":"#f3f2f1",errorBackground:tt?"#442726":"#FDE7E9",blockingBackground:tt?"#442726":"#FDE7E9",warningBackground:tt?"#433519":"#FFF4CE",severeWarningBackground:tt?"#4F2A0F":"#FED9CC",successBackground:tt?"#393D1B":"#DFF6DD",warningHighlight:tt?"#fff100":"#ffb900",successText:tt?"#92c353":"#107C10"},et),ot=getSemanticColors(j,_e,nt,tt);return _fixDeprecatedSlots(ot,rt)}function getSemanticColors(j,_e,et,tt,rt){var nt={},ot=j||{},it=ot.white,st=ot.black,lt=ot.themePrimary,ut=ot.themeDark,ct=ot.themeDarker,dt=ot.themeDarkAlt,ft=ot.themeLighter,pt=ot.neutralLight,gt=ot.neutralLighter,mt=ot.neutralDark,bt=ot.neutralQuaternary,_t=ot.neutralQuaternaryAlt,xt=ot.neutralPrimary,yt=ot.neutralSecondary,Et=ot.neutralSecondaryAlt,St=ot.neutralTertiary,Tt=ot.neutralTertiaryAlt,kt=ot.neutralLighterAlt,$t=ot.accent;return it&&(nt.bodyBackground=it,nt.bodyFrameBackground=it,nt.accentButtonText=it,nt.buttonBackground=it,nt.primaryButtonText=it,nt.primaryButtonTextHovered=it,nt.primaryButtonTextPressed=it,nt.inputBackground=it,nt.inputForegroundChecked=it,nt.listBackground=it,nt.menuBackground=it,nt.cardStandoutBackground=it),st&&(nt.bodyTextChecked=st,nt.buttonTextCheckedHovered=st),lt&&(nt.link=lt,nt.primaryButtonBackground=lt,nt.inputBackgroundChecked=lt,nt.inputIcon=lt,nt.inputFocusBorderAlt=lt,nt.menuIcon=lt,nt.menuHeader=lt,nt.accentButtonBackground=lt),ut&&(nt.primaryButtonBackgroundPressed=ut,nt.inputBackgroundCheckedHovered=ut,nt.inputIconHovered=ut),ct&&(nt.linkHovered=ct),dt&&(nt.primaryButtonBackgroundHovered=dt),ft&&(nt.inputPlaceholderBackgroundChecked=ft),pt&&(nt.bodyBackgroundChecked=pt,nt.bodyFrameDivider=pt,nt.bodyDivider=pt,nt.variantBorder=pt,nt.buttonBackgroundCheckedHovered=pt,nt.buttonBackgroundPressed=pt,nt.listItemBackgroundChecked=pt,nt.listHeaderBackgroundPressed=pt,nt.menuItemBackgroundPressed=pt,nt.menuItemBackgroundChecked=pt),gt&&(nt.bodyBackgroundHovered=gt,nt.buttonBackgroundHovered=gt,nt.buttonBackgroundDisabled=gt,nt.buttonBorderDisabled=gt,nt.primaryButtonBackgroundDisabled=gt,nt.disabledBackground=gt,nt.listItemBackgroundHovered=gt,nt.listHeaderBackgroundHovered=gt,nt.menuItemBackgroundHovered=gt),bt&&(nt.primaryButtonTextDisabled=bt,nt.disabledSubtext=bt),_t&&(nt.listItemBackgroundCheckedHovered=_t),St&&(nt.disabledBodyText=St,nt.variantBorderHovered=(et==null?void 0:et.variantBorderHovered)||St,nt.buttonTextDisabled=St,nt.inputIconDisabled=St,nt.disabledText=St),xt&&(nt.bodyText=xt,nt.actionLink=xt,nt.buttonText=xt,nt.inputBorderHovered=xt,nt.inputText=xt,nt.listText=xt,nt.menuItemText=xt),kt&&(nt.bodyStandoutBackground=kt,nt.defaultStateBackground=kt),mt&&(nt.actionLinkHovered=mt,nt.buttonTextHovered=mt,nt.buttonTextChecked=mt,nt.buttonTextPressed=mt,nt.inputTextHovered=mt,nt.menuItemTextHovered=mt),yt&&(nt.bodySubtext=yt,nt.focusBorder=yt,nt.inputBorder=yt,nt.smallInputBorder=yt,nt.inputPlaceholderText=yt),Et&&(nt.buttonBorder=Et),Tt&&(nt.disabledBodySubtext=Tt,nt.disabledBorder=Tt,nt.buttonBackgroundChecked=Tt,nt.menuDivider=Tt),$t&&(nt.accentButtonBackground=$t),_e!=null&&_e.elevation4&&(nt.cardShadow=_e.elevation4),!tt&&(_e!=null&&_e.elevation8)?nt.cardShadowHovered=_e.elevation8:nt.variantBorderHovered&&(nt.cardShadowHovered="0 0 1px "+nt.variantBorderHovered),nt=__assign$4(__assign$4({},nt),et),nt}function _fixDeprecatedSlots(j,_e){var et="";return _e===!0&&(et=" /* @deprecated */"),j.listTextColor=j.listText+et,j.menuItemBackgroundChecked+=et,j.warningHighlight+=et,j.warningText=j.messageText+et,j.successText+=et,j}function mergeThemes(j,_e){var et,tt,rt;_e===void 0&&(_e={});var nt=merge$3({},j,_e,{semanticColors:getSemanticColors(_e.palette,_e.effects,_e.semanticColors,_e.isInverted===void 0?j.isInverted:_e.isInverted)});if(!((et=_e.palette)===null||et===void 0)&&et.themePrimary&&!(!((tt=_e.palette)===null||tt===void 0)&&tt.accent)&&(nt.palette.accent=_e.palette.themePrimary),_e.defaultFontStyle)for(var ot=0,it=Object.keys(nt.fonts);ot"u"?global:window,_styleNonce=_root&&_root.CSPSettings&&_root.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var j=_root.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return j.runState||(j=__assign$3(__assign$3({},j),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),j.registeredThemableStyles||(j=__assign$3(__assign$3({},j),{registeredThemableStyles:[]})),_root.__themeState__=j,j}function applyThemableStyles(j,_e){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(j).styleString,j):registerStyles$1(j)}function loadTheme$1(j){_themeState.theme=j,reloadStyles()}function clearStyles(j){j===void 0&&(j=3),(j===3||j===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(j===3||j===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(j){j.forEach(function(_e){var et=_e&&_e.styleElement;et&&et.parentElement&&et.parentElement.removeChild(et)})}function reloadStyles(){if(_themeState.theme){for(var j=[],_e=0,et=_themeState.registeredThemableStyles;_e0&&(clearStyles(1),applyThemableStyles([].concat.apply([],j)))}}function resolveThemableArray(j){var _e=_themeState.theme,et=!1,tt=(j||[]).map(function(rt){var nt=rt.theme;if(nt){et=!0;var ot=_e?_e[nt]:void 0,it=rt.defaultValue||"inherit";return _e&&!ot&&console&&!(nt in _e)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(nt,'". Falling back to "').concat(it,'".')),ot||it}else return rt.rawString});return{styleString:tt.join(""),themable:et}}function registerStyles$1(j){if(!(typeof document>"u")){var _e=document.getElementsByTagName("head")[0],et=document.createElement("style"),tt=resolveThemableArray(j),rt=tt.styleString,nt=tt.themable;et.setAttribute("data-load-themed-styles","true"),_styleNonce&&et.setAttribute("nonce",_styleNonce),et.appendChild(document.createTextNode(rt)),_themeState.perf.count++,_e.appendChild(et);var ot=document.createEvent("HTMLEvents");ot.initEvent("styleinsert",!0,!1),ot.args={newStyle:et},document.dispatchEvent(ot);var it={styleElement:et,themableStyle:j};nt?_themeState.registeredThemableStyles.push(it):_themeState.registeredStyles.push(it)}}var _theme=createTheme({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var j,_e,et,tt=getWindow();!((_e=tt==null?void 0:tt.FabricConfig)===null||_e===void 0)&&_e.legacyTheme?loadTheme(tt.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((et=tt==null?void 0:tt.FabricConfig)===null||et===void 0)&&et.theme&&(_theme=createTheme(tt.FabricConfig.theme)),Customizations.applySettings((j={},j[ThemeSettingName]=_theme,j)))}initializeThemeInCustomizations();function getTheme(j){return j===void 0&&(j=!1),j===!0&&(_theme=createTheme({},j)),_theme}function loadTheme(j,_e){var et;return _e===void 0&&(_e=!1),_theme=createTheme(j,_e),loadTheme$1(__assign$4(__assign$4(__assign$4(__assign$4({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((et={},et[ThemeSettingName]=_theme,et)),_onThemeChangeCallbacks.forEach(function(tt){try{tt(_theme)}catch{}}),_theme}function _loadFonts(j){for(var _e={},et=0,tt=Object.keys(j.fonts);et_e.bottom||j.left<_e.left||j.right>_e.right)}function _getOutOfBoundsEdges(j,_e){var et=[];return j.top<_e.top&&et.push(RectangleEdge.top),j.bottom>_e.bottom&&et.push(RectangleEdge.bottom),j.left<_e.left&&et.push(RectangleEdge.left),j.right>_e.right&&et.push(RectangleEdge.right),et}function _getEdgeValue(j,_e){return j[RectangleEdge[_e]]}function _setEdgeValue(j,_e,et){return j[RectangleEdge[_e]]=et,j}function _getCenterValue(j,_e){var et=_getFlankingEdges(_e);return(_getEdgeValue(j,et.positiveEdge)+_getEdgeValue(j,et.negativeEdge))/2}function _getRelativeEdgeValue(j,_e){return j>0?_e:_e*-1}function _getRelativeRectEdgeValue(j,_e){return _getRelativeEdgeValue(j,_getEdgeValue(_e,j))}function _getRelativeEdgeDifference(j,_e,et){var tt=_getEdgeValue(j,et)-_getEdgeValue(_e,et);return _getRelativeEdgeValue(et,tt)}function _moveEdge(j,_e,et,tt){tt===void 0&&(tt=!0);var rt=_getEdgeValue(j,_e)-et,nt=_setEdgeValue(j,_e,et);return tt&&(nt=_setEdgeValue(j,_e*-1,_getEdgeValue(j,_e*-1)-rt)),nt}function _alignEdges(j,_e,et,tt){return tt===void 0&&(tt=0),_moveEdge(j,et,_getEdgeValue(_e,et)+_getRelativeEdgeValue(et,tt))}function _alignOppositeEdges(j,_e,et,tt){tt===void 0&&(tt=0);var rt=et*-1,nt=_getRelativeEdgeValue(rt,tt);return _moveEdge(j,et*-1,_getEdgeValue(_e,et)+nt)}function _isEdgeInBounds(j,_e,et){var tt=_getRelativeRectEdgeValue(et,j);return tt>_getRelativeRectEdgeValue(et,_e)}function _getOutOfBoundsDegree(j,_e){for(var et=_getOutOfBoundsEdges(j,_e),tt=0,rt=0,nt=et;rt=tt}function _flipToFit(j,_e,et,tt,rt,nt,ot){rt===void 0&&(rt=!1),ot===void 0&&(ot=0);var it=[RectangleEdge.left,RectangleEdge.right,RectangleEdge.bottom,RectangleEdge.top];getRTL$1()&&(it[0]*=-1,it[1]*=-1);for(var st=j,lt=tt.targetEdge,ut=tt.alignmentEdge,ct,dt=lt,ft=ut,pt=0;pt<4;pt++){if(_isEdgeInBounds(st,et,lt))return{elementRectangle:st,targetEdge:lt,alignmentEdge:ut};if(rt&&_canScrollResizeToFitEdge(_e,et,lt,nt)){switch(lt){case RectangleEdge.bottom:st.bottom=et.bottom;break;case RectangleEdge.top:st.top=et.top;break}return{elementRectangle:st,targetEdge:lt,alignmentEdge:ut,forcedInBounds:!0}}else{var gt=_getOutOfBoundsDegree(st,et);(!ct||gt0&&(it.indexOf(lt*-1)>-1?lt=lt*-1:(ut=lt,lt=it.slice(-1)[0]),st=_estimatePosition(j,_e,{targetEdge:lt,alignmentEdge:ut},ot))}}return st=_estimatePosition(j,_e,{targetEdge:dt,alignmentEdge:ft},ot),{elementRectangle:st,targetEdge:dt,alignmentEdge:ft}}function _flipAlignmentEdge(j,_e,et,tt){var rt=j.alignmentEdge,nt=j.targetEdge,ot=j.elementRectangle,it=rt*-1,st=_estimatePosition(ot,_e,{targetEdge:nt,alignmentEdge:it},et,tt);return{elementRectangle:st,targetEdge:nt,alignmentEdge:it}}function _adjustFitWithinBounds(j,_e,et,tt,rt,nt,ot,it,st){rt===void 0&&(rt=!1),ot===void 0&&(ot=0);var lt=tt.alignmentEdge,ut=tt.alignTargetEdge,ct={elementRectangle:j,targetEdge:tt.targetEdge,alignmentEdge:lt};!it&&!st&&(ct=_flipToFit(j,_e,et,tt,rt,nt,ot));var dt=_getOutOfBoundsEdges(ct.elementRectangle,et),ft=it?-ct.targetEdge:void 0;if(dt.length>0)if(ut)if(ct.alignmentEdge&&dt.indexOf(ct.alignmentEdge*-1)>-1){var pt=_flipAlignmentEdge(ct,_e,ot,st);if(_isRectangleWithinBounds(pt.elementRectangle,et))return pt;ct=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(pt.elementRectangle,et),ct,et,ft)}else ct=_alignOutOfBoundsEdges(dt,ct,et,ft);else ct=_alignOutOfBoundsEdges(dt,ct,et,ft);return ct}function _alignOutOfBoundsEdges(j,_e,et,tt){for(var rt=0,nt=j;rtMath.abs(_getRelativeEdgeDifference(j,et,_e*-1))?_e*-1:_e}function _isEdgeOnBounds(j,_e,et){return et!==void 0&&_getEdgeValue(j,_e)===_getEdgeValue(et,_e)}function _finalizeElementPosition(j,_e,et,tt,rt,nt,ot,it){var st={},lt=_getRectangleFromElement(_e),ut=nt?et:et*-1,ct=rt||_getFlankingEdges(et).positiveEdge;return(!ot||_isEdgeOnBounds(j,getOppositeEdge(ct),tt))&&(ct=_finalizeReturnEdge(j,ct,tt)),st[RectangleEdge[ut]]=_getRelativeEdgeDifference(j,lt,ut),st[RectangleEdge[ct]]=_getRelativeEdgeDifference(j,lt,ct),it&&(st[RectangleEdge[ut*-1]]=_getRelativeEdgeDifference(j,lt,ut*-1),st[RectangleEdge[ct*-1]]=_getRelativeEdgeDifference(j,lt,ct*-1)),st}function _calculateActualBeakWidthInPixels(j){return Math.sqrt(j*j*2)}function _getPositionData(j,_e,et){if(j===void 0&&(j=DirectionalHint.bottomAutoEdge),et)return{alignmentEdge:et.alignmentEdge,isAuto:et.isAuto,targetEdge:et.targetEdge};var tt=__assign$4({},DirectionalDictionary[j]);return getRTL$1()?(tt.alignmentEdge&&tt.alignmentEdge%2===0&&(tt.alignmentEdge=tt.alignmentEdge*-1),_e!==void 0?DirectionalDictionary[_e]:tt):tt}function _getAlignmentData(j,_e,et,tt,rt){return j.isAuto&&(j.alignmentEdge=getClosestEdge(j.targetEdge,_e,et)),j.alignTargetEdge=rt,j}function getClosestEdge(j,_e,et){var tt=_getCenterValue(_e,j),rt=_getCenterValue(et,j),nt=_getFlankingEdges(j),ot=nt.positiveEdge,it=nt.negativeEdge;return tt<=rt?ot:it}function _positionElementWithinBounds(j,_e,et,tt,rt,nt,ot,it,st){nt===void 0&&(nt=!1);var lt=_estimatePosition(j,_e,tt,rt,st);return _isRectangleWithinBounds(lt,et)?{elementRectangle:lt,targetEdge:tt.targetEdge,alignmentEdge:tt.alignmentEdge}:_adjustFitWithinBounds(lt,_e,et,tt,nt,ot,rt,it,st)}function _finalizeBeakPosition(j,_e,et){var tt=j.targetEdge*-1,rt=new Rectangle$1(0,j.elementRectangle.width,0,j.elementRectangle.height),nt={},ot=_finalizeReturnEdge(j.elementRectangle,j.alignmentEdge?j.alignmentEdge:_getFlankingEdges(tt).positiveEdge,et),it=_getRelativeEdgeDifference(j.elementRectangle,j.targetRectangle,tt),st=it>Math.abs(_getEdgeValue(_e,tt));return nt[RectangleEdge[tt]]=_getEdgeValue(_e,tt),nt[RectangleEdge[ot]]=_getRelativeEdgeDifference(_e,rt,ot),{elementPosition:__assign$4({},nt),closestEdge:getClosestEdge(j.targetEdge,_e,rt),targetEdge:tt,hideBeak:!st}}function _positionBeak(j,_e){var et=_e.targetRectangle,tt=_getFlankingEdges(_e.targetEdge),rt=tt.positiveEdge,nt=tt.negativeEdge,ot=_getCenterValue(et,_e.targetEdge),it=new Rectangle$1(j/2,_e.elementRectangle.width-j/2,j/2,_e.elementRectangle.height-j/2),st=new Rectangle$1(0,j,0,j);return st=_moveEdge(st,_e.targetEdge*-1,-j/2),st=_centerEdgeToPoint(st,_e.targetEdge*-1,ot-_getRelativeRectEdgeValue(rt,_e.elementRectangle)),_isEdgeInBounds(st,it,rt)?_isEdgeInBounds(st,it,nt)||(st=_alignEdges(st,it,nt)):st=_alignEdges(st,it,rt),st}function _getRectangleFromElement(j){var _e=j.getBoundingClientRect();return new Rectangle$1(_e.left,_e.right,_e.top,_e.bottom)}function _getRectangleFromIRect(j){return new Rectangle$1(j.left,j.right,j.top,j.bottom)}function _getTargetRect(j,_e){var et;if(_e){if(_e.preventDefault){var tt=_e;et=new Rectangle$1(tt.clientX,tt.clientX,tt.clientY,tt.clientY)}else if(_e.getBoundingClientRect)et=_getRectangleFromElement(_e);else{var rt=_e,nt=rt.left||rt.x,ot=rt.top||rt.y,it=rt.right||nt,st=rt.bottom||ot;et=new Rectangle$1(nt,it,ot,st)}if(!_isRectangleWithinBounds(et,j))for(var lt=_getOutOfBoundsEdges(et,j),ut=0,ct=lt;ut=tt&&rt&<.top<=rt&<.bottom>=rt&&(ot={top:lt.top,left:lt.left,right:lt.right,bottom:lt.bottom,width:lt.width,height:lt.height})}return ot}function getBoundsFromTargetWindow(j,_e){return _getBoundsFromTargetWindow(j,_e)}function calculateGapSpace(j,_e,et){return _calculateGapSpace(j,_e,et)}function getRectangleFromTarget(j){return _getRectangleFromTarget(j)}function useAsync(){var j=reactExports.useRef();return j.current||(j.current=new Async),reactExports.useEffect(function(){return function(){var _e;(_e=j.current)===null||_e===void 0||_e.dispose(),j.current=void 0}},[]),j.current}function useConst$1(j){var _e=reactExports.useRef();return _e.current===void 0&&(_e.current={value:typeof j=="function"?j():j}),_e.current.value}function useBoolean(j){var _e=reactExports.useState(j),et=_e[0],tt=_e[1],rt=useConst$1(function(){return function(){tt(!0)}}),nt=useConst$1(function(){return function(){tt(!1)}}),ot=useConst$1(function(){return function(){tt(function(it){return!it})}});return[et,{setTrue:rt,setFalse:nt,toggle:ot}]}function useEventCallback$2(j){var _e=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){_e.current=j},[j]),useConst$1(function(){return function(){for(var et=[],tt=0;tt0&<>st&&(it=lt-st>1)}rt!==it&&nt(it)}}),function(){return et.dispose()}}),rt}function defaultFocusRestorer(j){var _e=j.originalElement,et=j.containsFocus;_e&&et&&_e!==getWindow()&&setTimeout(function(){var tt;(tt=_e.focus)===null||tt===void 0||tt.call(_e)},0)}function useRestoreFocus(j,_e){var et=j.onRestoreFocus,tt=et===void 0?defaultFocusRestorer:et,rt=reactExports.useRef(),nt=reactExports.useRef(!1);reactExports.useEffect(function(){return rt.current=getDocument().activeElement,doesElementContainFocus(_e.current)&&(nt.current=!0),function(){var ot;tt==null||tt({originalElement:rt.current,containsFocus:nt.current,documentContainsFocus:((ot=getDocument())===null||ot===void 0?void 0:ot.hasFocus())||!1}),rt.current=void 0}},[]),useOnEvent(_e,"focus",reactExports.useCallback(function(){nt.current=!0},[]),!0),useOnEvent(_e,"blur",reactExports.useCallback(function(ot){_e.current&&ot.relatedTarget&&!_e.current.contains(ot.relatedTarget)&&(nt.current=!1)},[]),!0)}function useHideSiblingNodes(j,_e){var et=String(j["aria-modal"]).toLowerCase()==="true"&&j.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(et&&_e.current){var tt=modalize(_e.current);return tt}},[_e,et])}var Popup=reactExports.forwardRef(function(j,_e){var et=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},j),tt=reactExports.useRef(),rt=useMergedRefs(tt,_e);useHideSiblingNodes(et,tt),useRestoreFocus(et,tt);var nt=et.role,ot=et.className,it=et.ariaLabel,st=et.ariaLabelledBy,lt=et.ariaDescribedBy,ut=et.style,ct=et.children,dt=et.onDismiss,ft=useScrollbarAsync(et,tt),pt=reactExports.useCallback(function(mt){switch(mt.which){case KeyCodes$1.escape:dt&&(dt(mt),mt.preventDefault(),mt.stopPropagation());break}},[dt]),gt=useWindow();return useOnEvent(gt,"keydown",pt),reactExports.createElement("div",__assign$4({ref:rt},getNativeProps(et,divProperties),{className:ot,role:nt,"aria-label":it,"aria-labelledby":st,"aria-describedby":lt,onKeyDown:pt,style:__assign$4({overflowY:ft?"scroll":void 0,outline:"none"},ut)}),ct)});Popup.displayName="Popup";var _a$6,COMPONENT_NAME$2="CalloutContentBase",ANIMATIONS=(_a$6={},_a$6[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a$6[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a$6[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a$6[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a$6),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$9=classNamesFunction({disableCaching:!0});function useBounds(j,_e,et){var tt=j.bounds,rt=j.minPagePadding,nt=rt===void 0?DEFAULT_PROPS$3.minPagePadding:rt,ot=j.target,it=reactExports.useState(!1),st=it[0],lt=it[1],ut=reactExports.useRef(),ct=reactExports.useCallback(function(){if(!ut.current||st){var ft=typeof tt=="function"?et?tt(ot,et):void 0:tt;!ft&&et&&(ft=getBoundsFromTargetWindow(_e.current,et),ft={top:ft.top+nt,left:ft.left+nt,right:ft.right-nt,bottom:ft.bottom-nt,width:ft.width-nt*2,height:ft.height-nt*2}),ut.current=ft,st&<(!1)}return ut.current},[tt,nt,ot,_e,et,st]),dt=useAsync();return useOnEvent(et,"resize",dt.debounce(function(){lt(!0)},500,{leading:!0})),ct}function useMaxHeight(j,_e,et,tt){var rt,nt=j.calloutMaxHeight,ot=j.finalHeight,it=j.directionalHint,st=j.directionalHintFixed,lt=j.hidden,ut=j.gapSpace,ct=j.beakWidth,dt=j.isBeakVisible,ft=reactExports.useState(),pt=ft[0],gt=ft[1],mt=(rt=tt==null?void 0:tt.elementPosition)!==null&&rt!==void 0?rt:{},bt=mt.top,_t=mt.bottom,xt=et!=null&&et.current?getRectangleFromTarget(et.current):void 0;return reactExports.useEffect(function(){var yt,Et=(yt=_e())!==null&&yt!==void 0?yt:{},St=Et.top,Tt=Et.bottom,kt;(tt==null?void 0:tt.targetEdge)===RectangleEdge.top&&(xt!=null&&xt.top)&&(Tt=xt.top-calculateGapSpace(dt,ct,ut)),typeof bt=="number"&&Tt?kt=Tt-bt:typeof _t=="number"&&typeof St=="number"&&Tt&&(kt=Tt-St-_t),!nt&&!lt||nt&&kt&&nt>kt?gt(kt):gt(nt||void 0)},[_t,nt,ot,it,st,_e,lt,tt,bt,ut,ct,dt,xt]),pt}function usePositions(j,_e,et,tt,rt,nt){var ot=reactExports.useState(),it=ot[0],st=ot[1],lt=reactExports.useRef(0),ut=reactExports.useRef(),ct=useAsync(),dt=j.hidden,ft=j.target,pt=j.finalHeight,gt=j.calloutMaxHeight,mt=j.onPositioned,bt=j.directionalHint,_t=j.hideOverflow,xt=j.preferScrollResizePositioning,yt=useWindow(),Et=reactExports.useRef(),St;Et.current!==nt.current&&(Et.current=nt.current,St=nt.current?yt==null?void 0:yt.getComputedStyle(nt.current):void 0);var Tt=St==null?void 0:St.overflowY;return reactExports.useEffect(function(){if(dt)st(void 0),lt.current=0;else{var kt=ct.requestAnimationFrame(function(){var $t,Ct;if(_e.current&&et){var It=__assign$4(__assign$4({},j),{target:tt.current,bounds:rt()}),Nt=et.cloneNode(!0);Nt.style.maxHeight=gt?"".concat(gt):"",Nt.style.visibility="hidden",($t=et.parentElement)===null||$t===void 0||$t.appendChild(Nt);var Ot=ut.current===ft?it:void 0,jt=_t||Tt==="clip"||Tt==="hidden",Mt=xt&&!jt,Rt=pt?positionCard(It,_e.current,Nt,Ot):positionCallout(It,_e.current,Nt,Ot,Mt);(Ct=et.parentElement)===null||Ct===void 0||Ct.removeChild(Nt),!it&&Rt||it&&Rt&&!arePositionsEqual(it,Rt)&<.current<5?(lt.current++,st(Rt)):lt.current>0&&(lt.current=0,mt==null||mt(it))}},et);return ut.current=ft,function(){ct.cancelAnimationFrame(kt),ut.current=void 0}}},[dt,bt,ct,et,gt,_e,tt,pt,rt,mt,it,j,ft,_t,xt,Tt]),it}function useAutoFocus(j,_e,et){var tt=j.hidden,rt=j.setInitialFocus,nt=useAsync(),ot=!!_e;reactExports.useEffect(function(){if(!tt&&rt&&ot&&et){var it=nt.requestAnimationFrame(function(){return focusFirstChild(et)},et);return function(){return nt.cancelAnimationFrame(it)}}},[tt,ot,nt,et,rt])}function useDismissHandlers(j,_e,et,tt,rt){var nt=j.hidden,ot=j.onDismiss,it=j.preventDismissOnScroll,st=j.preventDismissOnResize,lt=j.preventDismissOnLostFocus,ut=j.dismissOnTargetClick,ct=j.shouldDismissOnWindowFocus,dt=j.preventDismissOnEvent,ft=reactExports.useRef(!1),pt=useAsync(),gt=useConst$1([function(){ft.current=!0},function(){ft.current=!1}]),mt=!!_e;return reactExports.useEffect(function(){var bt=function(Tt){mt&&!it&&yt(Tt)},_t=function(Tt){!st&&!(dt&&dt(Tt))&&(ot==null||ot(Tt))},xt=function(Tt){lt||yt(Tt)},yt=function(Tt){var kt=Tt.composedPath?Tt.composedPath():[],$t=kt.length>0?kt[0]:Tt.target,Ct=et.current&&!elementContains(et.current,$t);if(Ct&&ft.current){ft.current=!1;return}if(!tt.current&&Ct||Tt.target!==rt&&Ct&&(!tt.current||"stopPropagation"in tt.current||ut||$t!==tt.current&&!elementContains(tt.current,$t))){if(dt&&dt(Tt))return;ot==null||ot(Tt)}},Et=function(Tt){ct&&(dt&&!dt(Tt)||!dt&&!lt)&&!(rt!=null&&rt.document.hasFocus())&&Tt.relatedTarget===null&&(ot==null||ot(Tt))},St=new Promise(function(Tt){pt.setTimeout(function(){if(!nt&&rt){var kt=[on(rt,"scroll",bt,!0),on(rt,"resize",_t,!0),on(rt.document.documentElement,"focus",xt,!0),on(rt.document.documentElement,"click",xt,!0),on(rt,"blur",Et,!0)];Tt(function(){kt.forEach(function($t){return $t()})})}},0)});return function(){St.then(function(Tt){return Tt()})}},[nt,pt,et,tt,rt,ot,ct,ut,lt,st,it,mt,dt]),gt}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(j,_e){var et=getPropsWithDefaults(DEFAULT_PROPS$3,j),tt=et.styles,rt=et.style,nt=et.ariaLabel,ot=et.ariaDescribedBy,it=et.ariaLabelledBy,st=et.className,lt=et.isBeakVisible,ut=et.children,ct=et.beakWidth,dt=et.calloutWidth,ft=et.calloutMaxWidth,pt=et.calloutMinWidth,gt=et.doNotLayer,mt=et.finalHeight,bt=et.hideOverflow,_t=bt===void 0?!!mt:bt,xt=et.backgroundColor,yt=et.calloutMaxHeight,Et=et.onScroll,St=et.shouldRestoreFocus,Tt=St===void 0?!0:St,kt=et.target,$t=et.hidden,Ct=et.onLayerMounted,It=et.popupProps,Nt=reactExports.useRef(null),Ot=reactExports.useRef(null),jt=useMergedRefs(Ot,It==null?void 0:It.ref),Mt=reactExports.useState(null),Rt=Mt[0],Lt=Mt[1],Pt=reactExports.useCallback(function(Cr){Lt(Cr)},[]),Gt=useMergedRefs(Nt,_e),qt=useTarget(et.target,{current:Rt}),Yt=qt[0],Xt=qt[1],tr=useBounds(et,Yt,Xt),cr=usePositions(et,Nt,Rt,Yt,tr,jt),mr=useMaxHeight(et,tr,Yt,cr),Er=useDismissHandlers(et,cr,Nt,Yt,Xt),hr=Er[0],_r=Er[1],Ut=(cr==null?void 0:cr.elementPosition.top)&&(cr==null?void 0:cr.elementPosition.bottom),ar=__assign$4(__assign$4({},cr==null?void 0:cr.elementPosition),{maxHeight:mr});if(Ut&&(ar.bottom=void 0),useAutoFocus(et,cr,Rt),reactExports.useEffect(function(){$t||Ct==null||Ct()},[$t]),!Xt)return null;var pr=_t,rr=lt&&!!kt,vr=getClassNames$9(tt,{theme:et.theme,className:st,overflowYHidden:pr,calloutWidth:dt,positions:cr,beakWidth:ct,backgroundColor:xt,calloutMaxWidth:ft,calloutMinWidth:pt,doNotLayer:gt}),$r=__assign$4(__assign$4({maxHeight:yt||"100%"},rt),pr&&{overflowY:"hidden"}),Rr=et.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:Gt,className:vr.container,style:Rr},reactExports.createElement("div",__assign$4({},getNativeProps(et,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$3(vr.root,cr&&cr.targetEdge&&ANIMATIONS[cr.targetEdge]),style:cr?__assign$4({},ar):OFF_SCREEN_STYLE,tabIndex:-1,ref:Pt}),rr&&reactExports.createElement("div",{className:vr.beak,style:getBeakPosition(cr)}),rr&&reactExports.createElement("div",{className:vr.beakCurtain}),reactExports.createElement(Popup,__assign$4({role:et.role,"aria-roledescription":et["aria-roledescription"],ariaDescribedBy:ot,ariaLabel:nt,ariaLabelledBy:it,className:vr.calloutMain,onDismiss:et.onDismiss,onMouseDown:hr,onMouseUp:_r,onRestoreFocus:et.onRestoreFocus,onScroll:Et,shouldRestoreFocus:Tt,style:$r},It,{ref:jt}),ut)))}),function(j,_e){return!_e.shouldUpdateWhenHidden&&j.hidden&&_e.hidden?!0:shallowCompare(j,_e)});function getBeakPosition(j){var _e,et,tt=__assign$4(__assign$4({},(_e=j==null?void 0:j.beakPosition)===null||_e===void 0?void 0:_e.elementPosition),{display:!((et=j==null?void 0:j.beakPosition)===null||et===void 0)&&et.hideBeak?"none":void 0});return!tt.top&&!tt.bottom&&!tt.left&&!tt.right&&(tt.left=BEAK_ORIGIN_POSITION.left,tt.top=BEAK_ORIGIN_POSITION.top),tt}function arePositionsEqual(j,_e){return comparePositions(j.elementPosition,_e.elementPosition)&&comparePositions(j.beakPosition.elementPosition,_e.beakPosition.elementPosition)}function comparePositions(j,_e){for(var et in _e)if(_e.hasOwnProperty(et)){var tt=j[et],rt=_e[et];if(tt!==void 0&&rt!==void 0){if(tt.toFixed(2)!==rt.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$2;function getBeakStyle(j){return{height:j,width:j}}var GlobalClassNames$8={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$9=function(j){var _e,et=j.theme,tt=j.className,rt=j.overflowYHidden,nt=j.calloutWidth,ot=j.beakWidth,it=j.backgroundColor,st=j.calloutMaxWidth,lt=j.calloutMinWidth,ut=j.doNotLayer,ct=getGlobalClassNames(GlobalClassNames$8,et),dt=et.semanticColors,ft=et.effects;return{container:[ct.container,{position:"relative"}],root:[ct.root,et.fonts.medium,{position:"absolute",display:"flex",zIndex:ut?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:ft.roundedCorner2,boxShadow:ft.elevation16,selectors:(_e={},_e[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},_e)},focusClear(),tt,!!nt&&{width:nt},!!st&&{maxWidth:st},!!lt&&{minWidth:lt}],beak:[ct.beak,{position:"absolute",backgroundColor:dt.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(ot),it&&{backgroundColor:it}],beakCurtain:[ct.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:dt.menuBackground,borderRadius:ft.roundedCorner2}],calloutMain:[ct.calloutMain,{backgroundColor:dt.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:ft.roundedCorner2},rt&&{overflowY:"hidden"},it&&{backgroundColor:it}]}},CalloutContent=styled(CalloutContentBase,getStyles$9,void 0,{scope:"CalloutContent"});const PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=()=>()=>{};PortalCompatContext.Provider;function usePortalCompat(){var j;return(j=reactExports.useContext(PortalCompatContext))!==null&&j!==void 0?j:portalCompatContextDefaultValue}var getClassNames$8=classNamesFunction(),getFabricTheme=memoizeFunction(function(j,_e){return createTheme(__assign$4(__assign$4({},j),{rtl:_e}))}),getDir=function(j){var _e=j.theme,et=j.dir,tt=getRTL$1(_e)?"rtl":"ltr",rt=getRTL$1()?"rtl":"ltr",nt=et||tt;return{rootDir:nt!==tt||nt!==rt?nt:et,needsTheme:nt!==tt}},FabricBase=reactExports.forwardRef(function(j,_e){var et=j.className,tt=j.theme,rt=j.applyTheme,nt=j.applyThemeToBody,ot=j.styles,it=getClassNames$8(ot,{theme:tt,applyTheme:rt,className:et}),st=reactExports.useRef(null);return useApplyThemeToBody(nt,it,st),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(j,it,st,_e))});FabricBase.displayName="FabricBase";function useRenderedContent(j,_e,et,tt){var rt=_e.root,nt=j.as,ot=nt===void 0?"div":nt,it=j.dir,st=j.theme,lt=getNativeProps(j,divProperties,["dir"]),ut=getDir(j),ct=ut.rootDir,dt=ut.needsTheme,ft=reactExports.createElement(FocusRectsProvider,{providerRef:et},reactExports.createElement(ot,__assign$4({dir:ct},lt,{className:rt,ref:useMergedRefs(et,tt)})));return dt&&(ft=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(st,it==="rtl")}},ft)),ft}function useApplyThemeToBody(j,_e,et){var tt=_e.bodyThemed;return reactExports.useEffect(function(){if(j){var rt=getDocument(et.current);if(rt)return rt.body.classList.add(tt),function(){rt.body.classList.remove(tt)}}},[tt,j,et]),et}var inheritFont={fontFamily:"inherit"},GlobalClassNames$7={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$8=function(j){var _e=j.applyTheme,et=j.className,tt=j.preventBlanketFontInheritance,rt=j.theme,nt=getGlobalClassNames(GlobalClassNames$7,rt);return{root:[nt.root,rt.fonts.medium,{color:rt.palette.neutralPrimary},!tt&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},_e&&{color:rt.semanticColors.bodyText,backgroundColor:rt.semanticColors.bodyBackground},et],bodyThemed:[{backgroundColor:rt.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$8,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#".concat(defaultHostId);function registerLayer(j,_e){_layersByHostId[j]||(_layersByHostId[j]=[]),_layersByHostId[j].push(_e);var et=_layerHostsById[j];if(et)for(var tt=0,rt=et;tt=0&&(et.splice(tt,1),et.length===0&&delete _layersByHostId[j])}var rt=_layerHostsById[j];if(rt)for(var nt=0,ot=rt;nt0&&_e.current.naturalHeight>0||_e.current.complete&&SVG_REGEX.test(nt):!1;ct&&st(ImageLoadState.loaded)}}),reactExports.useEffect(function(){et==null||et(it)},[it]);var lt=reactExports.useCallback(function(ct){tt==null||tt(ct),nt&&st(ImageLoadState.loaded)},[nt,tt]),ut=reactExports.useCallback(function(ct){rt==null||rt(ct),st(ImageLoadState.error)},[rt]);return[it,lt,ut]}var ImageBase=reactExports.forwardRef(function(j,_e){var et=reactExports.useRef(),tt=reactExports.useRef(),rt=useLoadState(j,tt),nt=rt[0],ot=rt[1],it=rt[2],st=getNativeProps(j,imgProperties,["width","height"]),lt=j.src,ut=j.alt,ct=j.width,dt=j.height,ft=j.shouldFadeIn,pt=ft===void 0?!0:ft,gt=j.shouldStartVisible,mt=j.className,bt=j.imageFit,_t=j.role,xt=j.maximizeFrame,yt=j.styles,Et=j.theme,St=j.loading,Tt=useCoverStyle(j,nt,tt,et),kt=getClassNames$6(yt,{theme:Et,className:mt,width:ct,height:dt,maximizeFrame:xt,shouldFadeIn:pt,shouldStartVisible:gt,isLoaded:nt===ImageLoadState.loaded||nt===ImageLoadState.notLoaded&&j.shouldStartVisible,isLandscape:Tt===ImageCoverStyle.landscape,isCenter:bt===ImageFit.center,isCenterContain:bt===ImageFit.centerContain,isCenterCover:bt===ImageFit.centerCover,isContain:bt===ImageFit.contain,isCover:bt===ImageFit.cover,isNone:bt===ImageFit.none,isError:nt===ImageLoadState.error,isNotImageFit:bt===void 0});return reactExports.createElement("div",{className:kt.root,style:{width:ct,height:dt},ref:et},reactExports.createElement("img",__assign$4({},st,{onLoad:ot,onError:it,key:KEY_PREFIX+j.src||"",className:kt.image,ref:useMergedRefs(tt,_e),src:lt,alt:ut,role:_t,loading:St})))});ImageBase.displayName="ImageBase";function useCoverStyle(j,_e,et,tt){var rt=reactExports.useRef(_e),nt=reactExports.useRef();return(nt===void 0||rt.current===ImageLoadState.notLoaded&&_e===ImageLoadState.loaded)&&(nt.current=computeCoverStyle(j,_e,et,tt)),rt.current=_e,nt.current}function computeCoverStyle(j,_e,et,tt){var rt=j.imageFit,nt=j.width,ot=j.height;if(j.coverStyle!==void 0)return j.coverStyle;if(_e===ImageLoadState.loaded&&(rt===ImageFit.cover||rt===ImageFit.contain||rt===ImageFit.centerContain||rt===ImageFit.centerCover)&&et.current&&tt.current){var it=void 0;typeof nt=="number"&&typeof ot=="number"&&rt!==ImageFit.centerContain&&rt!==ImageFit.centerCover?it=nt/ot:it=tt.current.clientWidth/tt.current.clientHeight;var st=et.current.naturalWidth/et.current.naturalHeight;if(st>it)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$5={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},getStyles$6=function(j){var _e=j.className,et=j.width,tt=j.height,rt=j.maximizeFrame,nt=j.isLoaded,ot=j.shouldFadeIn,it=j.shouldStartVisible,st=j.isLandscape,lt=j.isCenter,ut=j.isContain,ct=j.isCover,dt=j.isCenterContain,ft=j.isCenterCover,pt=j.isNone,gt=j.isError,mt=j.isNotImageFit,bt=j.theme,_t=getGlobalClassNames(GlobalClassNames$5,bt),xt={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},yt=getWindow(),Et=yt!==void 0&&yt.navigator.msMaxTouchPoints===void 0,St=ut&&st||ct&&!st?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_t.root,bt.fonts.medium,{overflow:"hidden"},rt&&[_t.rootMaximizeFrame,{height:"100%",width:"100%"}],nt&&ot&&!it&&AnimationClassNames.fadeIn400,(lt||ut||ct||dt||ft)&&{position:"relative"},_e],image:[_t.image,{display:"block",opacity:0},nt&&["is-loaded",{opacity:1}],lt&&[_t.imageCenter,xt],ut&&[_t.imageContain,Et&&{width:"100%",height:"100%",objectFit:"contain"},!Et&&St,!Et&&xt],ct&&[_t.imageCover,Et&&{width:"100%",height:"100%",objectFit:"cover"},!Et&&St,!Et&&xt],dt&&[_t.imageCenterContain,st&&{maxWidth:"100%"},!st&&{maxHeight:"100%"},xt],ft&&[_t.imageCenterCover,st&&{maxHeight:"100%"},!st&&{maxWidth:"100%"},xt],pt&&[_t.imageNone,{width:"auto",height:"auto"}],mt&&[!!et&&!tt&&{height:"auto",width:"100%"},!et&&!!tt&&{height:"100%",width:"auto"},!!et&&!!tt&&{height:"100%",width:"100%"}],st&&_t.imageLandscape,!st&&_t.imagePortrait,!nt&&"is-notLoaded",ot&&"is-fadeIn",gt&&"is-error"]}},Image$1=styled(ImageBase,getStyles$6,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$5=function(j){var _e=j.className,et=j.iconClassName,tt=j.isPlaceholder,rt=j.isImage,nt=j.styles;return{root:[tt&&classNames.placeholder,classNames.root,rt&&classNames.image,et,_e,nt&&nt.root,nt&&nt.imageContainer]}},getIconContent=memoizeFunction(function(j){var _e=getIcon(j)||{subset:{},code:void 0},et=_e.code,tt=_e.subset;return et?{children:et,iconClassName:tt.className,fontFamily:tt.fontFace&&tt.fontFace.fontFamily,mergeImageProps:tt.mergeImageProps}:null},void 0,!0),FontIcon=function(j){var _e=j.iconName,et=j.className,tt=j.style,rt=tt===void 0?{}:tt,nt=getIconContent(_e)||{},ot=nt.iconClassName,it=nt.children,st=nt.fontFamily,lt=nt.mergeImageProps,ut=getNativeProps(j,htmlElementProperties),ct=j["aria-label"]||j.title,dt=j["aria-label"]||j["aria-labelledby"]||j.title?{role:lt?void 0:"img"}:{"aria-hidden":!0},ft=it;return lt&&typeof it=="object"&&typeof it.props=="object"&&ct&&(ft=reactExports.cloneElement(it,{alt:ct})),reactExports.createElement("i",__assign$4({"data-icon-name":_e},dt,ut,lt?{title:void 0,"aria-label":void 0}:{},{className:css$3(MS_ICON,classNames.root,ot,!_e&&classNames.placeholder,et),style:__assign$4({fontFamily:st},rt)}),ft)};memoizeFunction(function(j,_e,et){return FontIcon({iconName:j,className:_e,"aria-label":et})});var getClassNames$5=classNamesFunction({cacheSize:100}),IconBase=function(j){__extends$3(_e,j);function _e(et){var tt=j.call(this,et)||this;return tt._onImageLoadingStateChange=function(rt){tt.props.imageProps&&tt.props.imageProps.onLoadingStateChange&&tt.props.imageProps.onLoadingStateChange(rt),rt===ImageLoadState.error&&tt.setState({imageLoadError:!0})},tt.state={imageLoadError:!1},tt}return _e.prototype.render=function(){var et=this.props,tt=et.children,rt=et.className,nt=et.styles,ot=et.iconName,it=et.imageErrorAs,st=et.theme,lt=typeof ot=="string"&&ot.length===0,ut=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,ct=getIconContent(ot)||{},dt=ct.iconClassName,ft=ct.children,pt=ct.mergeImageProps,gt=getClassNames$5(nt,{theme:st,className:rt,iconClassName:dt,isImage:ut,isPlaceholder:lt}),mt=ut?"span":"i",bt=getNativeProps(this.props,htmlElementProperties,["aria-label"]),_t=this.state.imageLoadError,xt=__assign$4(__assign$4({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),yt=_t&&it||Image$1,Et=this.props["aria-label"]||this.props.ariaLabel,St=xt.alt||Et||this.props.title,Tt=!!(St||this.props["aria-labelledby"]||xt["aria-label"]||xt["aria-labelledby"]),kt=Tt?{role:ut||pt?void 0:"img","aria-label":ut||pt?void 0:St}:{"aria-hidden":!0},$t=ft;return pt&&ft&&typeof ft=="object"&&St&&($t=reactExports.cloneElement(ft,{alt:St})),reactExports.createElement(mt,__assign$4({"data-icon-name":ot},kt,bt,pt?{title:void 0,"aria-label":void 0}:{},{className:gt.root}),ut?reactExports.createElement(yt,__assign$4({},xt)):tt||$t)},_e}(reactExports.Component),Icon=styled(IconBase,getStyles$5,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(j){j[j.vertical=0]="vertical",j[j.horizontal=1]="horizontal",j[j.bidirectional=2]="bidirectional",j[j.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(j,_e){var et;typeof MouseEvent=="function"?et=new MouseEvent("click",{ctrlKey:_e==null?void 0:_e.ctrlKey,metaKey:_e==null?void 0:_e.metaKey,shiftKey:_e==null?void 0:_e.shiftKey,altKey:_e==null?void 0:_e.altKey,bubbles:_e==null?void 0:_e.bubbles,cancelable:_e==null?void 0:_e.cancelable}):(et=document.createEvent("MouseEvents"),et.initMouseEvent("click",_e?_e.bubbles:!1,_e?_e.cancelable:!1,window,0,0,0,0,0,_e?_e.ctrlKey:!1,_e?_e.altKey:!1,_e?_e.shiftKey:!1,_e?_e.metaKey:!1,0,null)),j.dispatchEvent(et)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles$1({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(j){__extends$3(_e,j);function _e(et){var tt=this,rt,nt,ot,it;tt=j.call(this,et)||this,tt._root=reactExports.createRef(),tt._mergedRef=createMergedRef(),tt._onFocus=function(lt){if(!tt._portalContainsElement(lt.target)){var ut=tt.props,ct=ut.onActiveElementChanged,dt=ut.doNotAllowFocusEventToPropagate,ft=ut.stopFocusPropagation,pt=ut.onFocusNotification,gt=ut.onFocus,mt=ut.shouldFocusInnerElementWhenReceivedFocus,bt=ut.defaultTabbableElement,_t=tt._isImmediateDescendantOfZone(lt.target),xt;if(_t)xt=lt.target;else for(var yt=lt.target;yt&&yt!==tt._root.current;){if(isElementTabbable(yt)&&tt._isImmediateDescendantOfZone(yt)){xt=yt;break}yt=getParent(yt,ALLOW_VIRTUAL_ELEMENTS)}if(mt&<.target===tt._root.current){var Et=bt&&typeof bt=="function"&&tt._root.current&&bt(tt._root.current);Et&&isElementTabbable(Et)?(xt=Et,Et.focus()):(tt.focus(!0),tt._activeElement&&(xt=null))}var St=!tt._activeElement;xt&&xt!==tt._activeElement&&((_t||St)&&tt._setFocusAlignment(xt,!0,!0),tt._activeElement=xt,St&&tt._updateTabIndexes()),ct&&ct(tt._activeElement,lt),(ft||dt)&<.stopPropagation(),gt?gt(lt):pt&&pt()}},tt._onBlur=function(){tt._setParkedFocus(!1)},tt._onMouseDown=function(lt){if(!tt._portalContainsElement(lt.target)){var ut=tt.props.disabled;if(!ut){for(var ct=lt.target,dt=[];ct&&ct!==tt._root.current;)dt.push(ct),ct=getParent(ct,ALLOW_VIRTUAL_ELEMENTS);for(;dt.length&&(ct=dt.pop(),ct&&isElementTabbable(ct)&&tt._setActiveElement(ct,!0),!isElementFocusZone(ct)););}}},tt._onKeyDown=function(lt,ut){if(!tt._portalContainsElement(lt.target)){var ct=tt.props,dt=ct.direction,ft=ct.disabled,pt=ct.isInnerZoneKeystroke,gt=ct.pagingSupportDisabled,mt=ct.shouldEnterInnerZone;if(!ft&&(tt.props.onKeyDown&&tt.props.onKeyDown(lt),!lt.isDefaultPrevented()&&!(tt._getDocument().activeElement===tt._root.current&&tt._isInnerZone))){if((mt&&mt(lt)||pt&&pt(lt))&&tt._isImmediateDescendantOfZone(lt.target)){var bt=tt._getFirstInnerZone();if(bt){if(!bt.focus(!0))return}else if(isElementFocusSubZone(lt.target)){if(!tt.focusElement(getNextElement(lt.target,lt.target.firstChild,!0)))return}else return}else{if(lt.altKey)return;switch(lt.which){case KeyCodes$1.space:if(tt._shouldRaiseClicksOnSpace&&tt._tryInvokeClickForFocusable(lt.target,lt))break;return;case KeyCodes$1.left:if(dt!==FocusZoneDirection.vertical&&(tt._preventDefaultWhenHandled(lt),tt._moveFocusLeft(ut)))break;return;case KeyCodes$1.right:if(dt!==FocusZoneDirection.vertical&&(tt._preventDefaultWhenHandled(lt),tt._moveFocusRight(ut)))break;return;case KeyCodes$1.up:if(dt!==FocusZoneDirection.horizontal&&(tt._preventDefaultWhenHandled(lt),tt._moveFocusUp()))break;return;case KeyCodes$1.down:if(dt!==FocusZoneDirection.horizontal&&(tt._preventDefaultWhenHandled(lt),tt._moveFocusDown()))break;return;case KeyCodes$1.pageDown:if(!gt&&tt._moveFocusPaging(!0))break;return;case KeyCodes$1.pageUp:if(!gt&&tt._moveFocusPaging(!1))break;return;case KeyCodes$1.tab:if(tt.props.allowTabKey||tt.props.handleTabKey===FocusZoneTabbableElements.all||tt.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&tt._isElementInput(lt.target)){var _t=!1;if(tt._processingTabKey=!0,dt===FocusZoneDirection.vertical||!tt._shouldWrapFocus(tt._activeElement,NO_HORIZONTAL_WRAP))_t=lt.shiftKey?tt._moveFocusUp():tt._moveFocusDown();else{var xt=getRTL$1(ut)?!lt.shiftKey:lt.shiftKey;_t=xt?tt._moveFocusLeft(ut):tt._moveFocusRight(ut)}if(tt._processingTabKey=!1,_t)break;tt.props.shouldResetActiveElementWhenTabFromZone&&(tt._activeElement=null)}return;case KeyCodes$1.home:if(tt._isContentEditableElement(lt.target)||tt._isElementInput(lt.target)&&!tt._shouldInputLoseFocus(lt.target,!1))return!1;var yt=tt._root.current&&tt._root.current.firstChild;if(tt._root.current&&yt&&tt.focusElement(getNextElement(tt._root.current,yt,!0)))break;return;case KeyCodes$1.end:if(tt._isContentEditableElement(lt.target)||tt._isElementInput(lt.target)&&!tt._shouldInputLoseFocus(lt.target,!0))return!1;var Et=tt._root.current&&tt._root.current.lastChild;if(tt._root.current&&tt.focusElement(getPreviousElement(tt._root.current,Et,!0,!0,!0)))break;return;case KeyCodes$1.enter:if(tt._shouldRaiseClicksOnEnter&&tt._tryInvokeClickForFocusable(lt.target,lt))break;return;default:return}}lt.preventDefault(),lt.stopPropagation()}}},tt._getHorizontalDistanceFromCenter=function(lt,ut,ct){var dt=tt._focusAlignment.left||tt._focusAlignment.x||0,ft=Math.floor(ct.top),pt=Math.floor(ut.bottom),gt=Math.floor(ct.bottom),mt=Math.floor(ut.top),bt=lt&&ft>pt,_t=!lt&>=ct.left&&dt<=ct.left+ct.width?0:Math.abs(ct.left+ct.width/2-dt):tt._shouldWrapFocus(tt._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(tt),tt._id=getId("FocusZone"),tt._focusAlignment={left:0,top:0},tt._processingTabKey=!1;var st=(nt=(rt=et.shouldRaiseClicks)!==null&&rt!==void 0?rt:_e.defaultProps.shouldRaiseClicks)!==null&&nt!==void 0?nt:!0;return tt._shouldRaiseClicksOnEnter=(ot=et.shouldRaiseClicksOnEnter)!==null&&ot!==void 0?ot:st,tt._shouldRaiseClicksOnSpace=(it=et.shouldRaiseClicksOnSpace)!==null&&it!==void 0?it:st,tt}return _e.getOuterZones=function(){return _outerZones.size},_e._onKeyDownCapture=function(et){et.which===KeyCodes$1.tab&&_outerZones.forEach(function(tt){return tt._updateTabIndexes()})},_e.prototype.componentDidMount=function(){var et=this._root.current;if(_allInstances[this._id]=this,et){for(var tt=getParent(et,ALLOW_VIRTUAL_ELEMENTS);tt&&tt!==this._getDocument().body&&tt.nodeType===1;){if(isElementFocusZone(tt)){this._isInnerZone=!0;break}tt=getParent(tt,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",_e._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},_e.prototype.componentDidUpdate=function(){var et=this._root.current,tt=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&tt&&this._lastIndexPath&&(tt.activeElement===tt.body||tt.activeElement===null||tt.activeElement===et)){var rt=getFocusableByIndexPath(et,this._lastIndexPath);rt?(this._setActiveElement(rt,!0),rt.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},_e.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",_e._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},_e.prototype.render=function(){var et=this,tt=this.props,rt=tt.as,nt=tt.elementType,ot=tt.rootProps,it=tt.ariaDescribedBy,st=tt.ariaLabelledBy,lt=tt.className,ut=getNativeProps(this.props,htmlElementProperties),ct=rt||nt||"div";this._evaluateFocusBeforeRender();var dt=getTheme();return reactExports.createElement(ct,__assign$4({"aria-labelledby":st,"aria-describedby":it},ut,ot,{className:css$3(getRootClass(),lt),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(ft){return et._onKeyDown(ft,dt)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},_e.prototype.focus=function(et,tt){if(et===void 0&&(et=!1),tt===void 0&&(tt=!1),this._root.current)if(!et&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var rt=this._getOwnerZone(this._root.current);if(rt!==this._root.current){var nt=_allInstances[rt.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!nt&&nt.focusElement(this._root.current)}return!1}else{if(!et&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!tt||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var ot=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,ot,!0,void 0,void 0,void 0,void 0,void 0,tt))}return!1},_e.prototype.focusLast=function(){if(this._root.current){var et=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,et,!0,!0,!0))}return!1},_e.prototype.focusElement=function(et,tt){var rt=this.props,nt=rt.onBeforeFocus,ot=rt.shouldReceiveFocus;return ot&&!ot(et)||nt&&!nt(et)?!1:et?(this._setActiveElement(et,tt),this._activeElement&&this._activeElement.focus(),!0):!1},_e.prototype.setFocusAlignment=function(et){this._focusAlignment=et},Object.defineProperty(_e.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),_e.prototype._evaluateFocusBeforeRender=function(){var et=this._root.current,tt=this._getDocument();if(tt){var rt=tt.activeElement;if(rt!==et){var nt=elementContains(et,rt,!1);this._lastIndexPath=nt?getElementIndexPath(et,rt):void 0}}},_e.prototype._setParkedFocus=function(et){var tt=this._root.current;tt&&this._isParked!==et&&(this._isParked=et,et?(this.props.allowFocusRoot||(this._parkedTabIndex=tt.getAttribute("tabindex"),tt.setAttribute("tabindex","-1")),tt.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(tt.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):tt.removeAttribute("tabindex")))},_e.prototype._setActiveElement=function(et,tt){var rt=this._activeElement;this._activeElement=et,rt&&(isElementFocusZone(rt)&&this._updateTabIndexes(rt),rt.tabIndex=-1),this._activeElement&&((!this._focusAlignment||tt)&&this._setFocusAlignment(et,!0,!0),this._activeElement.tabIndex=0)},_e.prototype._preventDefaultWhenHandled=function(et){this.props.preventDefaultWhenHandled&&et.preventDefault()},_e.prototype._tryInvokeClickForFocusable=function(et,tt){var rt=et;if(rt===this._root.current)return!1;do{if(rt.tagName==="BUTTON"||rt.tagName==="A"||rt.tagName==="INPUT"||rt.tagName==="TEXTAREA"||rt.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(rt)&&rt.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&rt.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(rt,tt),!0;rt=getParent(rt,ALLOW_VIRTUAL_ELEMENTS)}while(rt!==this._root.current);return!1},_e.prototype._getFirstInnerZone=function(et){if(et=et||this._activeElement||this._root.current,!et)return null;if(isElementFocusZone(et))return _allInstances[et.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var tt=et.firstElementChild;tt;){if(isElementFocusZone(tt))return _allInstances[tt.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var rt=this._getFirstInnerZone(tt);if(rt)return rt;tt=tt.nextElementSibling}return null},_e.prototype._moveFocus=function(et,tt,rt,nt){nt===void 0&&(nt=!0);var ot=this._activeElement,it=-1,st=void 0,lt=!1,ut=this.props.direction===FocusZoneDirection.bidirectional;if(!ot||!this._root.current||this._isElementInput(ot)&&!this._shouldInputLoseFocus(ot,et))return!1;var ct=ut?ot.getBoundingClientRect():null;do if(ot=et?getNextElement(this._root.current,ot):getPreviousElement(this._root.current,ot),ut){if(ot){var dt=ot.getBoundingClientRect(),ft=tt(ct,dt);if(ft===-1&&it===-1){st=ot;break}if(ft>-1&&(it===-1||ft=0&&ft<0)break}}else{st=ot;break}while(ot);if(st&&st!==this._activeElement)lt=!0,this.focusElement(st);else if(this.props.isCircularNavigation&&nt)return et?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return lt},_e.prototype._moveFocusDown=function(){var et=this,tt=-1,rt=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(nt,ot){var it=-1,st=Math.floor(ot.top),lt=Math.floor(nt.bottom);return st=lt||st===tt)&&(tt=st,rt>=ot.left&&rt<=ot.left+ot.width?it=0:it=Math.abs(ot.left+ot.width/2-rt)),it)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},_e.prototype._moveFocusUp=function(){var et=this,tt=-1,rt=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(nt,ot){var it=-1,st=Math.floor(ot.bottom),lt=Math.floor(ot.top),ut=Math.floor(nt.top);return st>ut?et._shouldWrapFocus(et._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((tt===-1&&st<=ut||lt===tt)&&(tt=lt,rt>=ot.left&&rt<=ot.left+ot.width?it=0:it=Math.abs(ot.left+ot.width/2-rt)),it)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},_e.prototype._moveFocusLeft=function(et){var tt=this,rt=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL$1(et),function(nt,ot){var it=-1,st;return getRTL$1(et)?st=parseFloat(ot.top.toFixed(3))parseFloat(nt.top.toFixed(3)),st&&ot.right<=nt.right&&tt.props.direction!==FocusZoneDirection.vertical?it=nt.right-ot.right:rt||(it=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),it},void 0,rt)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},_e.prototype._moveFocusRight=function(et){var tt=this,rt=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL$1(et),function(nt,ot){var it=-1,st;return getRTL$1(et)?st=parseFloat(ot.bottom.toFixed(3))>parseFloat(nt.top.toFixed(3)):st=parseFloat(ot.top.toFixed(3))=nt.left&&tt.props.direction!==FocusZoneDirection.vertical?it=ot.left-nt.left:rt||(it=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),it},void 0,rt)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},_e.prototype._moveFocusPaging=function(et,tt){tt===void 0&&(tt=!0);var rt=this._activeElement;if(!rt||!this._root.current||this._isElementInput(rt)&&!this._shouldInputLoseFocus(rt,et))return!1;var nt=findScrollableParent(rt);if(!nt)return!1;var ot=-1,it=void 0,st=-1,lt=-1,ut=nt.clientHeight,ct=rt.getBoundingClientRect();do if(rt=et?getNextElement(this._root.current,rt):getPreviousElement(this._root.current,rt),rt){var dt=rt.getBoundingClientRect(),ft=Math.floor(dt.top),pt=Math.floor(ct.bottom),gt=Math.floor(dt.bottom),mt=Math.floor(ct.top),bt=this._getHorizontalDistanceFromCenter(et,ct,dt),_t=et&&ft>pt+ut,xt=!et&>-1&&(et&&ft>st?(st=ft,ot=bt,it=rt):!et&>-1){var rt=et.selectionStart,nt=et.selectionEnd,ot=rt!==nt,it=et.value,st=et.readOnly;if(ot||rt>0&&!tt&&!st||rt!==it.length&&tt&&!st||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(et)))return!1}return!0},_e.prototype._shouldWrapFocus=function(et,tt){return this.props.checkForNoWrap?shouldWrapFocus(et,tt):!0},_e.prototype._portalContainsElement=function(et){return et&&!!this._root.current&&portalContainsElement(et,this._root.current)},_e.prototype._getDocument=function(){return getDocument(this._root.current)},_e.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},_e}(reactExports.Component),ContextualMenuItemType;(function(j){j[j.Normal=0]="Normal",j[j.Divider=1]="Divider",j[j.Header=2]="Header",j[j.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(j){return j.canCheck?!!(j.isChecked||j.checked):typeof j.isChecked=="boolean"?j.isChecked:typeof j.checked=="boolean"?j.checked:null}function hasSubmenu(j){return!!(j.subMenuProps||j.items)}function isItemDisabled(j){return!!(j.isDisabled||j.disabled)}function getMenuItemAriaRole(j){var _e=getIsChecked(j),et=_e!==null;return et?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(j){var _e=j.item,et=j.classNames,tt=_e.iconProps;return reactExports.createElement(Icon,__assign$4({},tt,{className:et.icon}))},renderItemIcon=function(j){var _e=j.item,et=j.hasIcons;return et?_e.onRenderIcon?_e.onRenderIcon(j,defaultIconRenderer):defaultIconRenderer(j):null},renderCheckMarkIcon=function(j){var _e=j.onCheckmarkClick,et=j.item,tt=j.classNames,rt=getIsChecked(et);if(_e){var nt=function(ot){return _e(et,ot)};return reactExports.createElement(Icon,{iconName:et.canCheck!==!1&&rt?"CheckMark":"",className:tt.checkmarkIcon,onClick:nt})}return null},renderItemName=function(j){var _e=j.item,et=j.classNames;return _e.text||_e.name?reactExports.createElement("span",{className:et.label},_e.text||_e.name):null},renderSecondaryText=function(j){var _e=j.item,et=j.classNames;return _e.secondaryText?reactExports.createElement("span",{className:et.secondaryText},_e.secondaryText):null},renderSubMenuIcon=function(j){var _e=j.item,et=j.classNames,tt=j.theme;return hasSubmenu(_e)?reactExports.createElement(Icon,__assign$4({iconName:getRTL$1(tt)?"ChevronLeft":"ChevronRight"},_e.submenuIconProps,{className:et.subMenuIcon})):null},ContextualMenuItemBase=function(j){__extends$3(_e,j);function _e(et){var tt=j.call(this,et)||this;return tt.openSubMenu=function(){var rt=tt.props,nt=rt.item,ot=rt.openSubMenu,it=rt.getSubmenuTarget;if(it){var st=it();hasSubmenu(nt)&&ot&&st&&ot(nt,st)}},tt.dismissSubMenu=function(){var rt=tt.props,nt=rt.item,ot=rt.dismissSubMenu;hasSubmenu(nt)&&ot&&ot()},tt.dismissMenu=function(rt){var nt=tt.props.dismissMenu;nt&&nt(void 0,rt)},initializeComponentRef(tt),tt}return _e.prototype.render=function(){var et=this.props,tt=et.item,rt=et.classNames,nt=tt.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:tt.split?rt.linkContentMenu:rt.linkContent},nt(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},_e.prototype._renderLayout=function(et,tt){return reactExports.createElement(reactExports.Fragment,null,tt.renderCheckMarkIcon(et),tt.renderItemIcon(et),tt.renderItemName(et),tt.renderSecondaryText(et),tt.renderSubMenuIcon(et))},_e}(reactExports.Component),getDividerClassNames=memoizeFunction(function(j){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:j.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(j){var _e,et,tt,rt,nt,ot=j.semanticColors,it=j.fonts,st=j.palette,lt=ot.menuItemBackgroundHovered,ut=ot.menuItemTextHovered,ct=ot.menuItemBackgroundPressed,dt=ot.bodyDivider,ft={item:[it.medium,{color:ot.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:dt,position:"relative"},root:[getFocusStyle(j),it.medium,{color:ot.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:ot.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(_e={},_e[HighContrastSelector]={color:"GrayText",opacity:1},_e)},rootHovered:{backgroundColor:lt,color:ut,selectors:{".ms-ContextualMenu-icon":{color:st.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:st.neutralPrimary}}},rootFocused:{backgroundColor:st.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:st.neutralPrimary}}},rootPressed:{backgroundColor:ct,selectors:{".ms-ContextualMenu-icon":{color:st.themeDark},".ms-ContextualMenu-submenuIcon":{color:st.neutralPrimary}}},rootExpanded:{backgroundColor:ct,color:ot.bodyTextChecked,selectors:(et={".ms-ContextualMenu-submenuIcon":(tt={},tt[HighContrastSelector]={color:"inherit"},tt)},et[HighContrastSelector]=__assign$4({},getHighContrastNoAdjustStyle()),et)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:j.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(rt={},rt[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},rt)},iconColor:{color:ot.menuIcon},iconDisabled:{color:ot.disabledBodyText},checkmarkIcon:{color:ot.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:st.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(nt={":hover":{color:st.neutralPrimary},":active":{color:st.neutralPrimary}},nt[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},nt)},splitButtonFlexContainer:[getFocusStyle(j),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(ft)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(j){var _e;return mergeStyleSets(getDividerClassNames(j),{wrapper:{position:"absolute",right:28,selectors:(_e={},_e[MediumScreenSelector]={right:32},_e)},divider:{height:16,width:1}})}),GlobalClassNames$4={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},getItemClassNames=memoizeFunction(function(j,_e,et,tt,rt,nt,ot,it,st,lt,ut,ct){var dt,ft,pt,gt,mt=getMenuItemStyles(j),bt=getGlobalClassNames(GlobalClassNames$4,j);return mergeStyleSets({item:[bt.item,mt.item,ot],divider:[bt.divider,mt.divider,it],root:[bt.root,mt.root,tt&&[bt.isChecked,mt.rootChecked],rt&&mt.anchorLink,et&&[bt.isExpanded,mt.rootExpanded],_e&&[bt.isDisabled,mt.rootDisabled],!_e&&!et&&[{selectors:(dt={":hover":mt.rootHovered,":active":mt.rootPressed},dt[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=mt.rootFocused,dt[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},dt)}],ct],splitPrimary:[mt.root,{width:"calc(100% - ".concat(CONTEXTUAL_SPLIT_MENU_MINWIDTH,")")},tt&&["is-checked",mt.rootChecked],(_e||ut)&&["is-disabled",mt.rootDisabled],!(_e||ut)&&!tt&&[{selectors:(ft={":hover":mt.rootHovered},ft[":hover ~ .".concat(bt.splitMenu)]=mt.rootHovered,ft[":active"]=mt.rootPressed,ft[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=mt.rootFocused,ft[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},ft)}]],splitMenu:[bt.splitMenu,mt.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},et&&["is-expanded",mt.rootExpanded],_e&&["is-disabled",mt.rootDisabled],!_e&&!et&&[{selectors:(pt={":hover":mt.rootHovered,":active":mt.rootPressed},pt[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=mt.rootFocused,pt[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},pt)}]],anchorLink:mt.anchorLink,linkContent:[bt.linkContent,mt.linkContent],linkContentMenu:[bt.linkContentMenu,mt.linkContent,{justifyContent:"center"}],icon:[bt.icon,nt&&mt.iconColor,mt.icon,st,_e&&[bt.isDisabled,mt.iconDisabled]],iconColor:mt.iconColor,checkmarkIcon:[bt.checkmarkIcon,nt&&mt.checkmarkIcon,mt.icon,st],subMenuIcon:[bt.subMenuIcon,mt.subMenuIcon,lt,et&&{color:j.palette.neutralPrimary},_e&&[mt.iconDisabled]],label:[bt.label,mt.label],secondaryText:[bt.secondaryText,mt.secondaryText],splitContainer:[mt.splitButtonFlexContainer,!_e&&!tt&&[{selectors:(gt={},gt[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=mt.rootFocused,gt)}]],screenReaderText:[bt.screenReaderText,mt.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(j){var _e=j.theme,et=j.disabled,tt=j.expanded,rt=j.checked,nt=j.isAnchorLink,ot=j.knownIcon,it=j.itemClassName,st=j.dividerClassName,lt=j.iconClassName,ut=j.subMenuClassName,ct=j.primaryDisabled,dt=j.className;return getItemClassNames(_e,et,tt,rt,nt,ot,it,st,lt,ut,ct,dt)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(j){__extends$3(_e,j);function _e(et){var tt=j.call(this,et)||this;return tt._onItemMouseEnter=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemMouseEnter;it&&it(ot,rt,rt.currentTarget)},tt._onItemClick=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemClickBase;it&&it(ot,rt,rt.currentTarget)},tt._onItemMouseLeave=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemMouseLeave;it&&it(ot,rt)},tt._onItemKeyDown=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemKeyDown;it&&it(ot,rt)},tt._onItemMouseMove=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemMouseMove;it&&it(ot,rt,rt.currentTarget)},tt._getSubmenuTarget=function(){},initializeComponentRef(tt),tt}return _e.prototype.shouldComponentUpdate=function(et){return!shallowCompare(et,this.props)},_e}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(j){j.KEYTIP_ADDED="keytipAdded",j.KEYTIP_REMOVED="keytipRemoved",j.KEYTIP_UPDATED="keytipUpdated",j.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",j.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",j.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",j.ENTER_KEYTIP_MODE="enterKeytipMode",j.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function j(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return j.getInstance=function(){return this._instance},j.prototype.init=function(_e){this.delayUpdatingKeytipChange=_e},j.prototype.register=function(_e,et){et===void 0&&(et=!1);var tt=_e;et||(tt=this.addParentOverflow(_e),this.sequenceMapping[tt.keySequences.toString()]=tt);var rt=this._getUniqueKtp(tt);if(et?this.persistedKeytips[rt.uniqueID]=rt:this.keytips[rt.uniqueID]=rt,this.inKeytipMode||!this.delayUpdatingKeytipChange){var nt=et?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,nt,{keytip:tt,uniqueID:rt.uniqueID})}return rt.uniqueID},j.prototype.update=function(_e,et){var tt=this.addParentOverflow(_e),rt=this._getUniqueKtp(tt,et),nt=this.keytips[et];nt&&(rt.keytip.visible=nt.keytip.visible,this.keytips[et]=rt,delete this.sequenceMapping[nt.keytip.keySequences.toString()],this.sequenceMapping[rt.keytip.keySequences.toString()]=rt.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:rt.keytip,uniqueID:rt.uniqueID}))},j.prototype.unregister=function(_e,et,tt){tt===void 0&&(tt=!1),tt?delete this.persistedKeytips[et]:delete this.keytips[et],!tt&&delete this.sequenceMapping[_e.keySequences.toString()];var rt=tt?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,rt,{keytip:_e,uniqueID:et})},j.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},j.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},j.prototype.getKeytips=function(){var _e=this;return Object.keys(this.keytips).map(function(et){return _e.keytips[et].keytip})},j.prototype.addParentOverflow=function(_e){var et=__spreadArray$1([],_e.keySequences,!0);if(et.pop(),et.length!==0){var tt=this.sequenceMapping[et.toString()];if(tt&&tt.overflowSetSequence)return __assign$4(__assign$4({},_e),{overflowSetSequence:tt.overflowSetSequence})}return _e},j.prototype.menuExecute=function(_e,et){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:_e,keytipSequences:et})},j.prototype._getUniqueKtp=function(_e,et){return et===void 0&&(et=getId()),{keytip:__assign$4({},_e),uniqueID:et}},j._instance=new j,j}();function sequencesToID(j){return j.reduce(function(_e,et){return _e+KTP_SEPARATOR+et.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(j,_e){var et=_e.length,tt=__spreadArray$1([],_e,!0).pop(),rt=__spreadArray$1([],j,!0);return addElementAtIndex(rt,et-1,tt)}function getAriaDescribedBy(j){var _e=" "+KTP_LAYER_ID;return j.length?_e+" "+sequencesToID(j):_e}function useKeytipData(j){var _e=reactExports.useRef(),et=j.keytipProps?__assign$4({disabled:j.disabled},j.keytipProps):void 0,tt=useConst$1(KeytipManager.getInstance()),rt=usePrevious(j);useIsomorphicLayoutEffect(function(){_e.current&&et&&((rt==null?void 0:rt.keytipProps)!==j.keytipProps||(rt==null?void 0:rt.disabled)!==j.disabled)&&tt.update(et,_e.current)}),useIsomorphicLayoutEffect(function(){return et&&(_e.current=tt.register(et)),function(){et&&tt.unregister(et,_e.current)}},[]);var nt={ariaDescribedBy:void 0,keytipId:void 0};return et&&(nt=getKeytipData(tt,et,j.ariaDescribedBy)),nt}function getKeytipData(j,_e,et){var tt=j.addParentOverflow(_e),rt=mergeAriaAttributeValues(et,getAriaDescribedBy(tt.keySequences)),nt=__spreadArray$1([],tt.keySequences,!0);tt.overflowSetSequence&&(nt=mergeOverflows(nt,tt.overflowSetSequence));var ot=sequencesToID(nt);return{ariaDescribedBy:rt,keytipId:ot}}var KeytipData=function(j){var _e,et=j.children,tt=__rest$1(j,["children"]),rt=useKeytipData(tt),nt=rt.keytipId,ot=rt.ariaDescribedBy;return et((_e={},_e[DATAKTP_TARGET]=nt,_e[DATAKTP_EXECUTE_TARGET]=nt,_e["aria-describedby"]=ot,_e))},ContextualMenuAnchor=function(j){__extends$3(_e,j);function _e(){var et=j!==null&&j.apply(this,arguments)||this;return et._anchor=reactExports.createRef(),et._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(tt){return __assign$4(__assign$4({},tt),{hasMenu:!0})}),et._getSubmenuTarget=function(){return et._anchor.current?et._anchor.current:void 0},et._onItemClick=function(tt){var rt=et.props,nt=rt.item,ot=rt.onItemClick;ot&&ot(nt,tt)},et._renderAriaDescription=function(tt,rt){return tt?reactExports.createElement("span",{id:et._ariaDescriptionId,className:rt},tt):null},et}return _e.prototype.render=function(){var et=this,tt=this.props,rt=tt.item,nt=tt.classNames,ot=tt.index,it=tt.focusableElementIndex,st=tt.totalItemCount,lt=tt.hasCheckmarks,ut=tt.hasIcons,ct=tt.expandedMenuItemKey,dt=tt.onItemClick,ft=tt.openSubMenu,pt=tt.dismissSubMenu,gt=tt.dismissMenu,mt=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(mt=composeComponentAs(this.props.item.contextualMenuItemAs,mt)),this.props.contextualMenuItemAs&&(mt=composeComponentAs(this.props.contextualMenuItemAs,mt));var bt=rt.rel;rt.target&&rt.target.toLowerCase()==="_blank"&&(bt=bt||"nofollow noopener noreferrer");var _t=hasSubmenu(rt),xt=getNativeProps(rt,anchorProperties),yt=isItemDisabled(rt),Et=rt.itemProps,St=rt.ariaDescription,Tt=rt.keytipProps;Tt&&_t&&(Tt=this._getMemoizedMenuButtonKeytipProps(Tt)),St&&(this._ariaDescriptionId=getId());var kt=mergeAriaAttributeValues(rt.ariaDescribedBy,St?this._ariaDescriptionId:void 0,xt["aria-describedby"]),$t={"aria-describedby":kt};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:rt.keytipProps,ariaDescribedBy:kt,disabled:yt},function(Ct){return reactExports.createElement("a",__assign$4({},$t,xt,Ct,{ref:et._anchor,href:rt.href,target:rt.target,rel:bt,className:nt.root,role:"menuitem","aria-haspopup":_t||void 0,"aria-expanded":_t?rt.key===ct:void 0,"aria-posinset":it+1,"aria-setsize":st,"aria-disabled":isItemDisabled(rt),style:rt.style,onClick:et._onItemClick,onMouseEnter:et._onItemMouseEnter,onMouseLeave:et._onItemMouseLeave,onMouseMove:et._onItemMouseMove,onKeyDown:_t?et._onItemKeyDown:void 0}),reactExports.createElement(mt,__assign$4({componentRef:rt.componentRef,item:rt,classNames:nt,index:ot,onCheckmarkClick:lt&&dt?dt:void 0,hasIcons:ut,openSubMenu:ft,dismissSubMenu:pt,dismissMenu:gt,getSubmenuTarget:et._getSubmenuTarget},Et)),et._renderAriaDescription(St,nt.screenReaderText))}))},_e}(ContextualMenuItemWrapper),ContextualMenuButton=function(j){__extends$3(_e,j);function _e(){var et=j!==null&&j.apply(this,arguments)||this;return et._btn=reactExports.createRef(),et._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(tt){return __assign$4(__assign$4({},tt),{hasMenu:!0})}),et._renderAriaDescription=function(tt,rt){return tt?reactExports.createElement("span",{id:et._ariaDescriptionId,className:rt},tt):null},et._getSubmenuTarget=function(){return et._btn.current?et._btn.current:void 0},et}return _e.prototype.render=function(){var et=this,tt=this.props,rt=tt.item,nt=tt.classNames,ot=tt.index,it=tt.focusableElementIndex,st=tt.totalItemCount,lt=tt.hasCheckmarks,ut=tt.hasIcons,ct=tt.contextualMenuItemAs,dt=tt.expandedMenuItemKey,ft=tt.onItemMouseDown,pt=tt.onItemClick,gt=tt.openSubMenu,mt=tt.dismissSubMenu,bt=tt.dismissMenu,_t=ContextualMenuItem;rt.contextualMenuItemAs&&(_t=composeComponentAs(rt.contextualMenuItemAs,_t)),ct&&(_t=composeComponentAs(ct,_t));var xt=getIsChecked(rt),yt=xt!==null,Et=getMenuItemAriaRole(rt),St=hasSubmenu(rt),Tt=rt.itemProps,kt=rt.ariaLabel,$t=rt.ariaDescription,Ct=getNativeProps(rt,buttonProperties);delete Ct.disabled;var It=rt.role||Et;$t&&(this._ariaDescriptionId=getId());var Nt=mergeAriaAttributeValues(rt.ariaDescribedBy,$t?this._ariaDescriptionId:void 0,Ct["aria-describedby"]),Ot={className:nt.root,onClick:this._onItemClick,onKeyDown:St?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(Mt){return ft?ft(rt,Mt):void 0},onMouseMove:this._onItemMouseMove,href:rt.href,title:rt.title,"aria-label":kt,"aria-describedby":Nt,"aria-haspopup":St||void 0,"aria-expanded":St?rt.key===dt:void 0,"aria-posinset":it+1,"aria-setsize":st,"aria-disabled":isItemDisabled(rt),"aria-checked":(It==="menuitemcheckbox"||It==="menuitemradio")&&yt?!!xt:void 0,"aria-selected":It==="menuitem"&&yt?!!xt:void 0,role:It,style:rt.style},jt=rt.keytipProps;return jt&&St&&(jt=this._getMemoizedMenuButtonKeytipProps(jt)),reactExports.createElement(KeytipData,{keytipProps:jt,ariaDescribedBy:Nt,disabled:isItemDisabled(rt)},function(Mt){return reactExports.createElement("button",__assign$4({ref:et._btn},Ct,Ot,Mt),reactExports.createElement(_t,__assign$4({componentRef:rt.componentRef,item:rt,classNames:nt,index:ot,onCheckmarkClick:lt&&pt?pt:void 0,hasIcons:ut,openSubMenu:gt,dismissSubMenu:mt,dismissMenu:bt,getSubmenuTarget:et._getSubmenuTarget},Tt)),et._renderAriaDescription($t,nt.screenReaderText))})},_e}(ContextualMenuItemWrapper),getStyles$4=function(j){var _e=j.theme,et=j.getClassNames,tt=j.className;if(!_e)throw new Error("Theme is undefined or null.");if(et){var rt=et(_e);return{wrapper:[rt.wrapper],divider:[rt.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},tt],divider:[{width:1,height:"100%",backgroundColor:_e.palette.neutralTertiaryAlt}]}},getClassNames$4=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(j,_e){var et=j.styles,tt=j.theme,rt=j.getClassNames,nt=j.className,ot=getClassNames$4(et,{theme:tt,getClassNames:rt,className:nt});return reactExports.createElement("span",{className:ot.wrapper,ref:_e},reactExports.createElement("span",{className:ot.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$4,void 0,{scope:"VerticalDivider"}),TouchIdleDelay=500,ContextualMenuSplitButton=function(j){__extends$3(_e,j);function _e(et){var tt=j.call(this,et)||this;return tt._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(rt){return __assign$4(__assign$4({},rt),{hasMenu:!0})}),tt._onItemKeyDown=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemKeyDown;rt.which===KeyCodes$1.enter?(tt._executeItemClick(rt),rt.preventDefault(),rt.stopPropagation()):it&&it(ot,rt)},tt._getSubmenuTarget=function(){return tt._splitButton},tt._renderAriaDescription=function(rt,nt){return rt?reactExports.createElement("span",{id:tt._ariaDescriptionId,className:nt},rt):null},tt._onItemMouseEnterPrimary=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemMouseEnter;it&&it(__assign$4(__assign$4({},ot),{subMenuProps:void 0,items:void 0}),rt,tt._splitButton)},tt._onItemMouseEnterIcon=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemMouseEnter;it&&it(ot,rt,tt._splitButton)},tt._onItemMouseMovePrimary=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemMouseMove;it&&it(__assign$4(__assign$4({},ot),{subMenuProps:void 0,items:void 0}),rt,tt._splitButton)},tt._onItemMouseMoveIcon=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemMouseMove;it&&it(ot,rt,tt._splitButton)},tt._onIconItemClick=function(rt){var nt=tt.props,ot=nt.item,it=nt.onItemClickBase;it&&it(ot,rt,tt._splitButton?tt._splitButton:rt.currentTarget)},tt._executeItemClick=function(rt){var nt=tt.props,ot=nt.item,it=nt.executeItemClick,st=nt.onItemClick;if(!(ot.disabled||ot.isDisabled)){if(tt._processingTouch&&!ot.canCheck&&st)return st(ot,rt);it&&it(ot,rt)}},tt._onTouchStart=function(rt){tt._splitButton&&!("onpointerdown"in tt._splitButton)&&tt._handleTouchAndPointerEvent(rt)},tt._onPointerDown=function(rt){rt.pointerType==="touch"&&(tt._handleTouchAndPointerEvent(rt),rt.preventDefault(),rt.stopImmediatePropagation())},tt._async=new Async(tt),tt._events=new EventGroup(tt),tt._dismissLabelId=getId(),tt}return _e.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},_e.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},_e.prototype.render=function(){var et=this,tt,rt=this.props,nt=rt.item,ot=rt.classNames,it=rt.index,st=rt.focusableElementIndex,lt=rt.totalItemCount,ut=rt.hasCheckmarks,ct=rt.hasIcons,dt=rt.onItemMouseLeave,ft=rt.expandedMenuItemKey,pt=hasSubmenu(nt),gt=nt.keytipProps;gt&&(gt=this._getMemoizedMenuButtonKeytipProps(gt));var mt=nt.ariaDescription;mt&&(this._ariaDescriptionId=getId());var bt=(tt=getIsChecked(nt))!==null&&tt!==void 0?tt:void 0;return reactExports.createElement(KeytipData,{keytipProps:gt,disabled:isItemDisabled(nt)},function(_t){return reactExports.createElement("div",{"data-ktp-target":_t["data-ktp-target"],ref:function(xt){return et._splitButton=xt},role:getMenuItemAriaRole(nt),"aria-label":nt.ariaLabel,className:ot.splitContainer,"aria-disabled":isItemDisabled(nt),"aria-expanded":pt?nt.key===ft:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(nt.ariaDescribedBy,mt?et._ariaDescriptionId:void 0,_t["aria-describedby"]),"aria-checked":bt,"aria-posinset":st+1,"aria-setsize":lt,onMouseEnter:et._onItemMouseEnterPrimary,onMouseLeave:dt?dt.bind(et,__assign$4(__assign$4({},nt),{subMenuProps:null,items:null})):void 0,onMouseMove:et._onItemMouseMovePrimary,onKeyDown:et._onItemKeyDown,onClick:et._executeItemClick,onTouchStart:et._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":nt["aria-roledescription"]},et._renderSplitPrimaryButton(nt,ot,it,ut,ct),et._renderSplitDivider(nt),et._renderSplitIconButton(nt,ot,it,_t),et._renderAriaDescription(mt,ot.screenReaderText))})},_e.prototype._renderSplitPrimaryButton=function(et,tt,rt,nt,ot){var it=this.props,st=it.contextualMenuItemAs,lt=st===void 0?ContextualMenuItem:st,ut=it.onItemClick,ct={key:et.key,disabled:isItemDisabled(et)||et.primaryDisabled,name:et.name,text:et.text||et.name,secondaryText:et.secondaryText,className:tt.splitPrimary,canCheck:et.canCheck,isChecked:et.isChecked,checked:et.checked,iconProps:et.iconProps,id:this._dismissLabelId,onRenderIcon:et.onRenderIcon,data:et.data,"data-is-focusable":!1},dt=et.itemProps;return reactExports.createElement("button",__assign$4({},getNativeProps(ct,buttonProperties)),reactExports.createElement(lt,__assign$4({"data-is-focusable":!1,item:ct,classNames:tt,index:rt,onCheckmarkClick:nt&&ut?ut:void 0,hasIcons:ot},dt)))},_e.prototype._renderSplitDivider=function(et){var tt=et.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:tt})},_e.prototype._renderSplitIconButton=function(et,tt,rt,nt){var ot=this.props,it=ot.onItemMouseLeave,st=ot.onItemMouseDown,lt=ot.openSubMenu,ut=ot.dismissSubMenu,ct=ot.dismissMenu,dt=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(dt=composeComponentAs(this.props.item.contextualMenuItemAs,dt)),this.props.contextualMenuItemAs&&(dt=composeComponentAs(this.props.contextualMenuItemAs,dt));var ft={onClick:this._onIconItemClick,disabled:isItemDisabled(et),className:tt.splitMenu,subMenuProps:et.subMenuProps,submenuIconProps:et.submenuIconProps,split:!0,key:et.key,"aria-labelledby":this._dismissLabelId},pt=__assign$4(__assign$4({},getNativeProps(ft,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:it?it.bind(this,et):void 0,onMouseDown:function(mt){return st?st(et,mt):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":nt["data-ktp-execute-target"],"aria-haspopup":!0}),gt=et.itemProps;return reactExports.createElement("button",__assign$4({},pt),reactExports.createElement(dt,__assign$4({componentRef:et.componentRef,item:ft,classNames:tt,index:rt,hasIcons:!1,openSubMenu:lt,dismissSubMenu:ut,dismissMenu:ct,getSubmenuTarget:this._getSubmenuTarget},gt)))},_e.prototype._handleTouchAndPointerEvent=function(et){var tt=this,rt=this.props.onTap;rt&&rt(et),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){tt._processingTouch=!1,tt._lastTouchTimeoutId=void 0},TouchIdleDelay)},_e}(ContextualMenuItemWrapper),ResponsiveMode;(function(j){j[j.small=0]="small",j[j.medium=1]="medium",j[j.large=2]="large",j[j.xLarge=3]="xLarge",j[j.xxLarge=4]="xxLarge",j[j.xxxLarge=5]="xxxLarge",j[j.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_defaultMode,_lastMode;function getInitialResponsiveMode(){var j;return(j=_defaultMode??_lastMode)!==null&&j!==void 0?j:ResponsiveMode.large}function getWidthOfCurrentWindow(j){try{return j.document.documentElement.clientWidth}catch{return j.innerWidth}}function getResponsiveMode(j){var _e=ResponsiveMode.small;if(j){try{for(;getWidthOfCurrentWindow(j)>RESPONSIVE_MAX_CONSTRAINT[_e];)_e++}catch{_e=getInitialResponsiveMode()}_lastMode=_e}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return _e}var useResponsiveMode=function(j,_e){var et=reactExports.useState(getInitialResponsiveMode()),tt=et[0],rt=et[1],nt=reactExports.useCallback(function(){var it=getResponsiveMode(getWindow(j.current));tt!==it&&rt(it)},[j,tt]),ot=useWindow();return useOnEvent(ot,"resize",nt),reactExports.useEffect(function(){_e===void 0&&nt()},[_e]),_e??tt},MenuContext=reactExports.createContext({}),getClassNames$3=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getItemCount(j){for(var _e=0,et=0,tt=j;et0){var cn=0;return reactExports.createElement("li",{role:"presentation",key:Qt.key||Dr.key||"section-".concat(zt)},reactExports.createElement("div",__assign$4({},lr),reactExports.createElement("ul",{className:Zt.list,role:"presentation"},Qt.topDivider&&vr(zt,Kt,!0,!0),or&&rr(or,Dr.key||zt,Kt,Dr.title),Qt.items.map(function(rn,en){var _n=Ut(rn,en,cn,getItemCount(Qt.items),Ht,Dt,Zt);if(rn.itemType!==ContextualMenuItemType.Divider&&rn.itemType!==ContextualMenuItemType.Header){var Ln=rn.customOnRenderListLength?rn.customOnRenderListLength:1;cn+=Ln}return _n}),Qt.bottomDivider&&vr(zt,Kt,!1,!0))))}}},rr=function(Dr,Kt,Zt,zt){return reactExports.createElement("li",{role:"presentation",title:zt,key:Kt,className:Zt.item},Dr)},vr=function(Dr,Kt,Zt,zt){return zt||Dr>0?reactExports.createElement("li",{role:"separator",key:"separator-"+Dr+(Zt===void 0?"":Zt?"-top":"-bottom"),className:Kt.divider,"aria-hidden":"true"}):null},$r=function(Dr,Kt,Zt,zt,Ht,Dt,Qt){if(Dr.onRender)return Dr.onRender(__assign$4({"aria-posinset":zt+1,"aria-setsize":Ht},Dr),st);var or=rt.contextualMenuItemAs,lr={item:Dr,classNames:Kt,index:Zt,focusableElementIndex:zt,totalItemCount:Ht,hasCheckmarks:Dt,hasIcons:Qt,contextualMenuItemAs:or,onItemMouseEnter:qt,onItemMouseLeave:Xt,onItemMouseMove:Yt,onItemMouseDown,executeItemClick:mr,onItemKeyDown:Pt,expandedMenuItemKey:pt,openSubMenu:gt,dismissSubMenu:bt,dismissMenu:st};if(Dr.href){var er=ContextualMenuAnchor;return Dr.contextualMenuItemWrapperAs&&(er=composeComponentAs(Dr.contextualMenuItemWrapperAs,er)),reactExports.createElement(er,__assign$4({},lr,{onItemClick:cr}))}if(Dr.split&&hasSubmenu(Dr)){var yr=ContextualMenuSplitButton;return Dr.contextualMenuItemWrapperAs&&(yr=composeComponentAs(Dr.contextualMenuItemWrapperAs,yr)),reactExports.createElement(yr,__assign$4({},lr,{onItemClick:tr,onItemClickBase:Er,onTap:Ct}))}var Lr=ContextualMenuButton;return Dr.contextualMenuItemWrapperAs&&(Lr=composeComponentAs(Dr.contextualMenuItemWrapperAs,Lr)),reactExports.createElement(Lr,__assign$4({},lr,{onItemClick:tr,onItemClickBase:Er}))},Rr=function(Dr,Kt,Zt,zt,Ht,Dt){var Qt=ContextualMenuItem;Dr.contextualMenuItemAs&&(Qt=composeComponentAs(Dr.contextualMenuItemAs,Qt)),rt.contextualMenuItemAs&&(Qt=composeComponentAs(rt.contextualMenuItemAs,Qt));var or=Dr.itemProps,lr=Dr.id,er=or&&getNativeProps(or,divProperties);return reactExports.createElement("div",__assign$4({id:lr,className:Zt.header},er,{style:Dr.style}),reactExports.createElement(Qt,__assign$4({item:Dr,classNames:Kt,index:zt,onCheckmarkClick:Ht?tr:void 0,hasIcons:Dt},or)))},Cr=rt.isBeakVisible,Nr=rt.items,Gr=rt.labelElementId,qr=rt.id,Qr=rt.className,Yr=rt.beakWidth,Pr=rt.directionalHint,Vr=rt.directionalHintForRTL,yn=rt.alignTargetEdge,fr=rt.gapSpace,sr=rt.coverTarget,ir=rt.ariaLabel,gr=rt.doNotLayer,wr=rt.target,Mr=rt.bounds,Sr=rt.useTargetWidth,Ir=rt.useTargetAsMinWidth,zr=rt.directionalHintFixed,Xr=rt.shouldFocusOnMount,Zr=rt.shouldFocusOnContainer,sn=rt.title,$n=rt.styles,Nn=rt.theme,hn=rt.calloutProps,jn=rt.onRenderSubMenu,qn=jn===void 0?onDefaultRenderSubMenu:jn,Sn=rt.onRenderMenuList,un=Sn===void 0?function(Dr,Kt){return hr(Dr,Pn)}:Sn,Fn=rt.focusZoneProps,On=rt.getMenuClassNames,Pn=On?On(Nn,Qr):getClassNames$3($n,{theme:Nn,className:Qr}),wn=fn(Nr);function fn(Dr){for(var Kt=0,Zt=Dr;Kt0){var eo=getItemCount(Nr),Co=Pn.subComponentStyles?Pn.subComponentStyles.callout:void 0;return reactExports.createElement(MenuContext.Consumer,null,function(Dr){return reactExports.createElement(Callout,__assign$4({styles:Co,onRestoreFocus:dt},hn,{target:wr||Dr.target,isBeakVisible:Cr,beakWidth:Yr,directionalHint:Pr,directionalHintForRTL:Vr,gapSpace:fr,coverTarget:sr,doNotLayer:gr,className:css$3("ms-ContextualMenu-Callout",hn&&hn.className),setInitialFocus:Xr,onDismiss:rt.onDismiss||Dr.onDismiss,onScroll:Tt,bounds:Mr,directionalHintFixed:zr,alignTargetEdge:yn,hidden:rt.hidden||Dr.hidden,ref:_e}),reactExports.createElement("div",{style:ro,ref:nt,id:qr,className:Pn.container,tabIndex:Zr?0:-1,onKeyDown:Lt,onKeyUp:Rt,onFocusCapture:Et,"aria-label":ir,"aria-labelledby":Gr,role:"menu"},sn&&reactExports.createElement("div",{className:Pn.title}," ",sn," "),Nr&&Nr.length?_r(un({ariaLabel:ir,items:Nr,totalItemCount:eo,hasCheckmarks:jr,hasIcons:wn,defaultMenuItemRenderer:function(Kt){return ar(Kt,Pn)},labelElementId:Gr},function(Kt,Zt){return hr(Kt,Pn)}),Kr):null,zn&&qn(zn,onDefaultRenderSubMenu)),reactExports.createElement(FocusRects,null))})}else return null}),function(j,_e){return!_e.shouldUpdateWhenHidden&&j.hidden&&_e.hidden?!0:shallowCompare(j,_e)});ContextualMenuBase.displayName="ContextualMenuBase";function isAltOrMeta(j){return j.which===KeyCodes$1.alt||j.key==="Meta"}function onItemMouseDown(j,_e){var et;(et=j.onMouseDown)===null||et===void 0||et.call(j,j,_e)}function onDefaultRenderSubMenu(j,_e){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function findItemByKeyFromItems(j,_e){for(var et=0,tt=_e;et=(Rt||ResponsiveMode.small)&&reactExports.createElement(Layer$1,__assign$4({ref:hr},sn),reactExports.createElement(Popup,__assign$4({role:zr?"alertdialog":"dialog",ariaLabelledBy:It,ariaDescribedBy:Ot,onDismiss:Tt,shouldRestoreFocus:!_t,enableAriaHiddenSiblings:Yt,"aria-modal":!Pt},Xt),reactExports.createElement("div",{className:Zr.root,role:Pt?void 0:"document"},!Pt&&reactExports.createElement(Overlay,__assign$4({"aria-hidden":!0,isDarkThemed:St,onClick:xt?void 0:Tt,allowTouchBodyScroll:st},$t)),Gt?reactExports.createElement(DraggableZone,{handleSelector:Gt.dragHandleSelector||"#".concat(Ut),preventDragSelector:"button",onStart:qn,onDragChange:Sn,onStop:un,position:Yr},wn):wn)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$2,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var assign$2=__assign$4;function withSlots(j,_e){for(var et=[],tt=2;tt0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(_e[ot],st,tt[ot],tt.slots&&tt.slots[ot],tt._defaultStyles&&tt._defaultStyles[ot],tt.theme)};it.isSlot=!0,et[ot]=it}};for(var nt in _e)rt(nt);return et}function _translateShorthand(j,_e){var et,tt;return typeof _e=="string"||typeof _e=="number"||typeof _e=="boolean"?tt=(et={},et[j]=_e,et):tt=_e,tt}function _constructFinalProps(j,_e){for(var et=[],tt=2;tt2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(et.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(et[0],_e)),columnGap:_getValueUnitGap(_getThemedSpacing(et[1],_e))};var tt=_getValueUnitGap(_getThemedSpacing(j,_e));return{rowGap:tt,columnGap:tt}},parsePadding=function(j,_e){if(j===void 0||typeof j=="number"||j==="")return j;var et=j.split(" ");return et.length<2?_getThemedSpacing(j,_e):et.reduce(function(tt,rt){return _getThemedSpacing(tt,_e)+" "+_getThemedSpacing(rt,_e)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$2=function(j,_e,et){var tt,rt,nt,ot,it,st,lt,ut,ct,dt,ft,pt,gt,mt=j.className,bt=j.disableShrink,_t=j.enableScopedSelectors,xt=j.grow,yt=j.horizontal,Et=j.horizontalAlign,St=j.reversed,Tt=j.verticalAlign,kt=j.verticalFill,$t=j.wrap,Ct=getGlobalClassNames(GlobalClassNames,_e),It=et&&et.childrenGap?et.childrenGap:j.gap,Nt=et&&et.maxHeight?et.maxHeight:j.maxHeight,Ot=et&&et.maxWidth?et.maxWidth:j.maxWidth,jt=et&&et.padding?et.padding:j.padding,Mt=parseGap(It,_e),Rt=Mt.rowGap,Lt=Mt.columnGap,Pt="".concat(-.5*Lt.value).concat(Lt.unit),Gt="".concat(-.5*Rt.value).concat(Rt.unit),qt={textOverflow:"ellipsis"},Yt="> "+(_t?"."+GlobalClassNames.child:"*"),Xt=(tt={},tt["".concat(Yt,":not(.").concat(GlobalClassNames$1.root,")")]={flexShrink:0},tt);return $t?{root:[Ct.root,{flexWrap:"wrap",maxWidth:Ot,maxHeight:Nt,width:"auto",overflow:"visible",height:"100%"},Et&&(rt={},rt[yt?"justifyContent":"alignItems"]=nameMap[Et]||Et,rt),Tt&&(nt={},nt[yt?"alignItems":"justifyContent"]=nameMap[Tt]||Tt,nt),mt,{display:"flex"},yt&&{height:kt?"100%":"auto"}],inner:[Ct.inner,(ot={display:"flex",flexWrap:"wrap",marginLeft:Pt,marginRight:Pt,marginTop:Gt,marginBottom:Gt,overflow:"visible",boxSizing:"border-box",padding:parsePadding(jt,_e),width:Lt.value===0?"100%":"calc(100% + ".concat(Lt.value).concat(Lt.unit,")"),maxWidth:"100vw"},ot[Yt]=__assign$4({margin:"".concat(.5*Rt.value).concat(Rt.unit," ").concat(.5*Lt.value).concat(Lt.unit)},qt),ot),bt&&Xt,Et&&(it={},it[yt?"justifyContent":"alignItems"]=nameMap[Et]||Et,it),Tt&&(st={},st[yt?"alignItems":"justifyContent"]=nameMap[Tt]||Tt,st),yt&&(lt={flexDirection:St?"row-reverse":"row",height:Rt.value===0?"100%":"calc(100% + ".concat(Rt.value).concat(Rt.unit,")")},lt[Yt]={maxWidth:Lt.value===0?"100%":"calc(100% - ".concat(Lt.value).concat(Lt.unit,")")},lt),!yt&&(ut={flexDirection:St?"column-reverse":"column",height:"calc(100% + ".concat(Rt.value).concat(Rt.unit,")")},ut[Yt]={maxHeight:Rt.value===0?"100%":"calc(100% - ".concat(Rt.value).concat(Rt.unit,")")},ut)]}:{root:[Ct.root,(ct={display:"flex",flexDirection:yt?St?"row-reverse":"row":St?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:kt?"100%":"auto",maxWidth:Ot,maxHeight:Nt,padding:parsePadding(jt,_e),boxSizing:"border-box"},ct[Yt]=qt,ct),bt&&Xt,xt&&{flexGrow:xt===!0?1:xt},Et&&(dt={},dt[yt?"justifyContent":"alignItems"]=nameMap[Et]||Et,dt),Tt&&(ft={},ft[yt?"alignItems":"justifyContent"]=nameMap[Tt]||Tt,ft),yt&&Lt.value>0&&(pt={},pt[St?"".concat(Yt,":not(:last-child)"):"".concat(Yt,":not(:first-child)")]={marginLeft:"".concat(Lt.value).concat(Lt.unit)},pt),!yt&&Rt.value>0&&(gt={},gt[St?"".concat(Yt,":not(:last-child)"):"".concat(Yt,":not(:first-child)")]={marginTop:"".concat(Rt.value).concat(Rt.unit)},gt),mt]}},StackView=function(j){var _e=j.as,et=_e===void 0?"div":_e,tt=j.disableShrink,rt=tt===void 0?!1:tt,nt=j.doNotRenderFalsyValues,ot=nt===void 0?!1:nt,it=j.enableScopedSelectors,st=it===void 0?!1:it,lt=j.wrap,ut=__rest$1(j,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),ct=_processStackChildren(j.children,{disableShrink:rt,enableScopedSelectors:st,doNotRenderFalsyValues:ot}),dt=getNativeProps(ut,htmlElementProperties),ft=getSlots(j,{root:et,inner:"div"});return lt?withSlots(ft.root,__assign$4({},dt),withSlots(ft.inner,null,ct)):withSlots(ft.root,__assign$4({},dt),ct)};function _processStackChildren(j,_e){var et=_e.disableShrink,tt=_e.enableScopedSelectors,rt=_e.doNotRenderFalsyValues,nt=reactExports.Children.toArray(j);return nt=reactExports.Children.map(nt,function(ot){if(!ot)return rt?null:ot;if(!reactExports.isValidElement(ot))return ot;if(ot.type===reactExports.Fragment)return ot.props.children?_processStackChildren(ot.props.children,{disableShrink:et,enableScopedSelectors:tt,doNotRenderFalsyValues:rt}):null;var it=ot,st={};_isStackItem(ot)&&(st={shrink:!et});var lt=it.props.className;return reactExports.cloneElement(it,__assign$4(__assign$4(__assign$4(__assign$4({},st),it.props),lt&&{className:lt}),tt&&{className:css$3(GlobalClassNames.child,lt)}))}),nt}function _isStackItem(j){return!!j&&typeof j=="object"&&!!j.type&&j.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack$1=createComponent(StackView,{displayName:"Stack",styles:styles$2,statics:StackStatics});const AzureContentSafetyIcon="data:image/svg+xml,%3csvg%20id='uuid-40011f3f-22d0-4882-8376-afe2ef514a7e'%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cdefs%3e%3clinearGradient%20id='uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b'%20x1='12.062'%20y1='5.427'%20x2='12.062'%20y2='3.991'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2376bc2d'/%3e%3cstop%20offset='1'%20stop-color='%2386d633'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742'%20x1='2.902'%20y1='6.762'%20x2='9.455'%20y2='6.762'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf'%20x1='-1288.505'%20y1='-521.774'%20x2='-1284.777'%20y2='-521.774'%20gradientTransform='translate(-512.319%201291.819)%20rotate(90)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2386d633'/%3e%3cstop%20offset='1'%20stop-color='%2376bc2d'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-efb884ed-afc6-4667-82f2-34983e82b107'%20x1='2.902'%20y1='11.544'%20x2='9.455'%20y2='11.544'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78'%20x1='-274.183'%20y1='-521.774'%20x2='-279.397'%20y2='-521.774'%20gradientTransform='translate(-512.319%20-263.224)%20rotate(-90)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23faa21d'/%3e%3cstop%20offset='.999'%20stop-color='%23f78d1e'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e'%20x1='-140.646'%20y1='13.626'%20x2='-143.764'%20y2='4.784'%20gradientTransform='translate(149.182)%20skewX(-19.425)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2350e6ff'/%3e%3cstop%20offset='1'%20stop-color='%239cebff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='m16.62,4.541l-2.765-1.597c-.129-.075-.291.019-.291.168v.822h-6.158v1.55h6.158v.822c0,.149.161.242.291.168l2.765-1.597c.129-.075.129-.261,0-.336Z'%20fill='url(%23uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b)'/%3e%3cpath%20d='m4.495,9.616h-1.592v-4.634c-.002-.591.476-1.071,1.067-1.073,0,0,.001,0,.002,0h5.484v1.592h-4.96v4.115Z'%20fill='url(%23uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742)'/%3e%3ccircle%20cx='9.455'%20cy='4.603'%20r='2.607'%20fill='url(%23uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf)'/%3e%3cpath%20d='m9.455,14.4H3.971c-.591,0-1.07-.48-1.069-1.071,0,0,0-.001,0-.002v-4.638h1.592v4.115h4.96v1.596Z'%20fill='url(%23uuid-efb884ed-afc6-4667-82f2-34983e82b107)'/%3e%3ccircle%20cx='9.455'%20cy='13.397'%20r='2.607'%20fill='url(%23uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78)'/%3e%3cpath%20d='m5.008,12.097H1.696c-.272,0-.453-.301-.405-.673l.584-4.534c.048-.372.307-.673.578-.673h3.312c.272,0,.453.301.405.673l-.584,4.534c-.048.372-.307.673-.578.673Z'%20fill='url(%23uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e)'/%3e%3cpath%20d='m.362,3.138C.162,3.138,0,2.976,0,2.777h0V.361C0,.162.162,0,.362,0h2.266c.2,0,.362.162.362.361,0,.199-.162.361-.362.361H.724v2.053c0,.199-.161.362-.361.362,0,0,0,0-.001,0Zm17.638-.361V.361C18,.162,17.838,0,17.638,0h-2.266c-.2,0-.362.162-.362.361s.162.361.362.361h1.904v2.053c0,.199.162.361.362.361.2,0,.361-.162.362-.361h0ZM2.99,17.639c0-.199-.162-.361-.362-.361H.724v-2.053c0-.199-.162-.361-.362-.361-.2,0-.362.162-.362.361v2.415c0,.199.163.36.362.36h2.266c.2,0,.362-.162.362-.361Zm15.01.001v-2.415c0-.199-.162-.361-.362-.361-.2,0-.361.162-.362.361v2.053h-1.904c-.2,0-.362.162-.362.362,0,.199.162.361.362.361h2.266c.199,0,.361-.161.362-.36Z'%20fill='%2376bc2d'/%3e%3c/svg%3e",BingLogoIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20234%20343.41'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='-29.25'%20y1='662.02'%20x2='-23.09'%20y2='658.46'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2337bdff'/%3e%3cstop%20offset='0.18'%20stop-color='%2333bffd'/%3e%3cstop%20offset='0.36'%20stop-color='%2328c5f5'/%3e%3cstop%20offset='0.53'%20stop-color='%2315d0e9'/%3e%3cstop%20offset='0.55'%20stop-color='%2312d1e7'/%3e%3cstop%20offset='0.59'%20stop-color='%231cd2e5'/%3e%3cstop%20offset='0.77'%20stop-color='%2342d8dc'/%3e%3cstop%20offset='0.91'%20stop-color='%2359dbd6'/%3e%3cstop%20offset='1'%20stop-color='%2362dcd4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='-32.86'%20y1='656.68'%20x2='-23.89'%20y2='656.68'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339d2ff'/%3e%3cstop%20offset='0.15'%20stop-color='%2338cefe'/%3e%3cstop%20offset='0.29'%20stop-color='%2335c3fa'/%3e%3cstop%20offset='0.43'%20stop-color='%232fb0f3'/%3e%3cstop%20offset='0.55'%20stop-color='%23299aeb'/%3e%3cstop%20offset='0.58'%20stop-color='%232692ec'/%3e%3cstop%20offset='0.76'%20stop-color='%231a6cf1'/%3e%3cstop%20offset='0.91'%20stop-color='%231355f4'/%3e%3cstop%20offset='1'%20stop-color='%23104cf5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='-31.2'%20y1='655.9'%20x2='-31.2'%20y2='667.89'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%231b48ef'/%3e%3cstop%20offset='0.12'%20stop-color='%231c51f0'/%3e%3cstop%20offset='0.32'%20stop-color='%231e69f5'/%3e%3cstop%20offset='0.57'%20stop-color='%232190fb'/%3e%3cstop%20offset='1'%20stop-color='%2326b8f4'/%3e%3c/linearGradient%3e%3cclipPath%20id='d'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='288.38'%20width='227.17'%20height='140.76'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='e'%20x1='-31.08'%20y1='654.47'%20x2='-25.54'%20y2='660'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.37'%20stop-color='%23fdfdfd'/%3e%3cstop%20offset='0.51'%20stop-color='%23f6f6f6'/%3e%3cstop%20offset='0.6'%20stop-color='%23ebebeb'/%3e%3cstop%20offset='0.68'%20stop-color='%23dadada'/%3e%3cstop%20offset='0.75'%20stop-color='%23c4c4c4'/%3e%3cstop%20offset='0.81'%20stop-color='%23a8a8a8'/%3e%3cstop%20offset='0.86'%20stop-color='%23888'/%3e%3cstop%20offset='0.91'%20stop-color='%23626262'/%3e%3cstop%20offset='0.95'%20stop-color='%23373737'/%3e%3cstop%20offset='0.99'%20stop-color='%23090909'/%3e%3cstop%20offset='1'/%3e%3c/linearGradient%3e%3cclipPath%20id='f'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='82.87'%20width='86.51'%20height='302.96'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='g'%20x1='-31.2'%20y1='668.1'%20x2='-31.2'%20y2='656.02'%20xlink:href='%23e'/%3e%3c/defs%3e%3ctitle%3ebing-logo%3c/title%3e%3cpath%20d='M397,303.4a92.73,92.73,0,0,1-24.84,63.16,41.81,41.81,0,0,0,4.5-6,38.11,38.11,0,0,0,2.69-5.08,17.7,17.7,0,0,0,.74-1.78,17.25,17.25,0,0,0,.65-1.78c.21-.56.39-1.14.55-1.72s.33-1.2.46-1.81l.07-.21c.14-.6.25-1.2.37-1.81s.23-1.25.33-1.88v0c.09-.58.16-1.16.21-1.76a40,40,0,0,0,.21-4.13A41.41,41.41,0,0,0,377,317.11a36.51,36.51,0,0,0-2.85-4.17,39.93,39.93,0,0,0-4-4.43,41.45,41.45,0,0,0-12.36-8.28,38.78,38.78,0,0,0-6.22-2.14l-.09,0-.74-.25-10.81-3.71v0l-28.27-9.72c-.09,0-.21,0-.28,0l-1.77-.65A26.23,26.23,0,0,1,296.29,272L286,245.62l-11.83-30.16-2.27-5.82-.58-1.18a13.35,13.35,0,0,1-1-5.08,12,12,0,0,1,0-1.35,13.19,13.19,0,0,1,18.26-10.79l52.69,27,10.39,5.31A91.11,91.11,0,0,1,367,235a92.45,92.45,0,0,1,29.79,61.87C396.91,299.06,397,301.22,397,303.4Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23a)'/%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,42.22,42.22,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23b)'/%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23c)'/%3e%3cg%20style='opacity:0.14900000393390656;isolation:isolate'%3e%3cg%20style='clip-path:url(%23d)'%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,41.81,41.81,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23e)'/%3e%3c/g%3e%3c/g%3e%3cg%20style='opacity:0.09799999743700027;isolation:isolate'%3e%3cg%20style='clip-path:url(%23f)'%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23g)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DefaultIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#0078d4"}),jsxRuntimeExports.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),jsxRuntimeExports.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),jsxRuntimeExports.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),jsxRuntimeExports.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),jsxRuntimeExports.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),OpenAIIcon$1=()=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),PromptIcon=()=>jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),PythonIcon=()=>jsxRuntimeExports.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),TypeScriptIcon="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",VectorSearchIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),jsxRuntimeExports.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),jsxRuntimeExports.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),jsxRuntimeExports.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),jsxRuntimeExports.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),jsxRuntimeExports.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),jsxRuntimeExports.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),jsxRuntimeExports.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),jsxRuntimeExports.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),DEFAULT_SIZE$1=16,toolsIcons={PromptFlowToolAzureContentSafety:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolSerpAPI:jsxRuntimeExports.jsx(DefaultIcon,{}),PromptFlowToolBing:jsxRuntimeExports.jsx(BingLogoIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolAzureContentModerator:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolVectorIndexLookupByText:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolFaissIndexLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorDBLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorSearch:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolLlm:jsxRuntimeExports.jsx(OpenAIIcon$1,{}),PromptFlowToolPython:jsxRuntimeExports.jsx(PythonIcon,{}),PromptFlowToolTypeScript:jsxRuntimeExports.jsx(TypeScriptIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolPrompt:jsxRuntimeExports.jsx(PromptIcon,{}),PromptFlowToolDefault:jsxRuntimeExports.jsx(DefaultIcon,{})};registerIcons({icons:{...toolsIcons}});var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var byteToHex=[];for(var i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function bytesToUuid(j,_e){var et=_e||0,tt=byteToHex;return[tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],"-",tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]],tt[j[et++]]].join("")}function v4(j,_e,et){var tt=_e&&et||0;typeof j=="string"&&(_e=j==="binary"?new Array(16):null,j=null),j=j||{};var rt=j.random||(j.rng||rng)();if(rt[6]=rt[6]&15|64,rt[8]=rt[8]&63|128,_e)for(var nt=0;nt<16;++nt)_e[tt+nt]=rt[nt];return _e||bytesToUuid(rt)}var toposort$1={exports:{}};toposort$1.exports=function(j){return toposort(uniqueNodes(j),j)};toposort$1.exports.array=toposort;function toposort(j,_e){for(var et=j.length,tt=new Array(et),rt={},nt=et;nt--;)rt[nt]||ot(j[nt],nt,[]);return tt;function ot(it,st,lt){if(lt.indexOf(it)>=0){var ut;try{ut=", node was:"+JSON.stringify(it)}catch{ut=""}throw new Error("Cyclic dependency"+ut)}if(!~j.indexOf(it))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(it));if(!rt[st]){rt[st]=!0;var ct=_e.filter(function(pt){return pt[0]===it});if(st=ct.length){var dt=lt.concat(it);do{var ft=ct[--st][1];ot(ft,j.indexOf(ft),dt)}while(st)}tt[--et]=it}}}function uniqueNodes(j){for(var _e=[],et=0,tt=j.length;et1?et-1:0),rt=1;rt2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(j,null);let tt=_e.length;for(;tt--;){let rt=_e[tt];if(typeof rt=="string"){const nt=et(rt);nt!==rt&&(isFrozen(_e)||(_e[tt]=nt),rt=nt)}j[rt]=!0}return j}function cleanArray(j){for(let _e=0;_e/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(_e,et){if(typeof _e!="object"||typeof _e.createPolicy!="function")return null;let tt=null;const rt="data-tt-policy-suffix";et&&et.hasAttribute(rt)&&(tt=et.getAttribute(rt));const nt="dompurify"+(tt?"#"+tt:"");try{return _e.createPolicy(nt,{createHTML(ot){return ot},createScriptURL(ot){return ot}})}catch{return console.warn("TrustedTypes policy "+nt+" could not be created."),null}};function createDOMPurify(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const _e=Ht=>createDOMPurify(Ht);if(_e.version="3.0.9",_e.removed=[],!j||!j.document||j.document.nodeType!==9)return _e.isSupported=!1,_e;let{document:et}=j;const tt=et,rt=tt.currentScript,{DocumentFragment:nt,HTMLTemplateElement:ot,Node:it,Element:st,NodeFilter:lt,NamedNodeMap:ut=j.NamedNodeMap||j.MozNamedAttrMap,HTMLFormElement:ct,DOMParser:dt,trustedTypes:ft}=j,pt=st.prototype,gt=lookupGetter(pt,"cloneNode"),mt=lookupGetter(pt,"nextSibling"),bt=lookupGetter(pt,"childNodes"),_t=lookupGetter(pt,"parentNode");if(typeof ot=="function"){const Ht=et.createElement("template");Ht.content&&Ht.content.ownerDocument&&(et=Ht.content.ownerDocument)}let xt,yt="";const{implementation:Et,createNodeIterator:St,createDocumentFragment:Tt,getElementsByTagName:kt}=et,{importNode:$t}=tt;let Ct={};_e.isSupported=typeof entries=="function"&&typeof _t=="function"&&Et&&Et.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:It,ERB_EXPR:Nt,TMPLIT_EXPR:Ot,DATA_ATTR:jt,ARIA_ATTR:Mt,IS_SCRIPT_OR_DATA:Rt,ATTR_WHITESPACE:Lt}=EXPRESSIONS;let{IS_ALLOWED_URI:Pt}=EXPRESSIONS,Gt=null;const qt=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let Yt=null;const Xt=addToSet({},[...html$2,...svg,...mathMl,...xml]);let tr=Object.seal(create$4(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),cr=null,mr=null,Er=!0,hr=!0,_r=!1,Ut=!0,ar=!1,pr=!1,rr=!1,vr=!1,$r=!1,Rr=!1,Cr=!1,Nr=!0,Gr=!1;const qr="user-content-";let Qr=!0,Yr=!1,Pr={},Vr=null;const yn=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let fr=null;const sr=addToSet({},["audio","video","img","source","image","track"]);let ir=null;const gr=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wr="http://www.w3.org/1998/Math/MathML",Mr="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1999/xhtml";let Ir=Sr,zr=!1,Xr=null;const Zr=addToSet({},[wr,Mr,Sr],stringToString);let sn=null;const $n=["application/xhtml+xml","text/html"],Nn="text/html";let hn=null,jn=null;const qn=et.createElement("form"),Sn=function(Dt){return Dt instanceof RegExp||Dt instanceof Function},un=function(){let Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jn&&jn===Dt)){if((!Dt||typeof Dt!="object")&&(Dt={}),Dt=clone$1(Dt),sn=$n.indexOf(Dt.PARSER_MEDIA_TYPE)===-1?Nn:Dt.PARSER_MEDIA_TYPE,hn=sn==="application/xhtml+xml"?stringToString:stringToLowerCase,Gt=objectHasOwnProperty(Dt,"ALLOWED_TAGS")?addToSet({},Dt.ALLOWED_TAGS,hn):qt,Yt=objectHasOwnProperty(Dt,"ALLOWED_ATTR")?addToSet({},Dt.ALLOWED_ATTR,hn):Xt,Xr=objectHasOwnProperty(Dt,"ALLOWED_NAMESPACES")?addToSet({},Dt.ALLOWED_NAMESPACES,stringToString):Zr,ir=objectHasOwnProperty(Dt,"ADD_URI_SAFE_ATTR")?addToSet(clone$1(gr),Dt.ADD_URI_SAFE_ATTR,hn):gr,fr=objectHasOwnProperty(Dt,"ADD_DATA_URI_TAGS")?addToSet(clone$1(sr),Dt.ADD_DATA_URI_TAGS,hn):sr,Vr=objectHasOwnProperty(Dt,"FORBID_CONTENTS")?addToSet({},Dt.FORBID_CONTENTS,hn):yn,cr=objectHasOwnProperty(Dt,"FORBID_TAGS")?addToSet({},Dt.FORBID_TAGS,hn):{},mr=objectHasOwnProperty(Dt,"FORBID_ATTR")?addToSet({},Dt.FORBID_ATTR,hn):{},Pr=objectHasOwnProperty(Dt,"USE_PROFILES")?Dt.USE_PROFILES:!1,Er=Dt.ALLOW_ARIA_ATTR!==!1,hr=Dt.ALLOW_DATA_ATTR!==!1,_r=Dt.ALLOW_UNKNOWN_PROTOCOLS||!1,Ut=Dt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ar=Dt.SAFE_FOR_TEMPLATES||!1,pr=Dt.WHOLE_DOCUMENT||!1,$r=Dt.RETURN_DOM||!1,Rr=Dt.RETURN_DOM_FRAGMENT||!1,Cr=Dt.RETURN_TRUSTED_TYPE||!1,vr=Dt.FORCE_BODY||!1,Nr=Dt.SANITIZE_DOM!==!1,Gr=Dt.SANITIZE_NAMED_PROPS||!1,Qr=Dt.KEEP_CONTENT!==!1,Yr=Dt.IN_PLACE||!1,Pt=Dt.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Ir=Dt.NAMESPACE||Sr,tr=Dt.CUSTOM_ELEMENT_HANDLING||{},Dt.CUSTOM_ELEMENT_HANDLING&&Sn(Dt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tr.tagNameCheck=Dt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Dt.CUSTOM_ELEMENT_HANDLING&&Sn(Dt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tr.attributeNameCheck=Dt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Dt.CUSTOM_ELEMENT_HANDLING&&typeof Dt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(tr.allowCustomizedBuiltInElements=Dt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ar&&(hr=!1),Rr&&($r=!0),Pr&&(Gt=addToSet({},text),Yt=[],Pr.html===!0&&(addToSet(Gt,html$1),addToSet(Yt,html$2)),Pr.svg===!0&&(addToSet(Gt,svg$1),addToSet(Yt,svg),addToSet(Yt,xml)),Pr.svgFilters===!0&&(addToSet(Gt,svgFilters),addToSet(Yt,svg),addToSet(Yt,xml)),Pr.mathMl===!0&&(addToSet(Gt,mathMl$1),addToSet(Yt,mathMl),addToSet(Yt,xml))),Dt.ADD_TAGS&&(Gt===qt&&(Gt=clone$1(Gt)),addToSet(Gt,Dt.ADD_TAGS,hn)),Dt.ADD_ATTR&&(Yt===Xt&&(Yt=clone$1(Yt)),addToSet(Yt,Dt.ADD_ATTR,hn)),Dt.ADD_URI_SAFE_ATTR&&addToSet(ir,Dt.ADD_URI_SAFE_ATTR,hn),Dt.FORBID_CONTENTS&&(Vr===yn&&(Vr=clone$1(Vr)),addToSet(Vr,Dt.FORBID_CONTENTS,hn)),Qr&&(Gt["#text"]=!0),pr&&addToSet(Gt,["html","head","body"]),Gt.table&&(addToSet(Gt,["tbody"]),delete cr.tbody),Dt.TRUSTED_TYPES_POLICY){if(typeof Dt.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Dt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');xt=Dt.TRUSTED_TYPES_POLICY,yt=xt.createHTML("")}else xt===void 0&&(xt=_createTrustedTypesPolicy(ft,rt)),xt!==null&&typeof yt=="string"&&(yt=xt.createHTML(""));freeze&&freeze(Dt),jn=Dt}},Fn=addToSet({},["mi","mo","mn","ms","mtext"]),On=addToSet({},["foreignobject","desc","title","annotation-xml"]),Pn=addToSet({},["title","style","font","a","script"]),wn=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),fn=addToSet({},[...mathMl$1,...mathMlDisallowed]),Kr=function(Dt){let Qt=_t(Dt);(!Qt||!Qt.tagName)&&(Qt={namespaceURI:Ir,tagName:"template"});const or=stringToLowerCase(Dt.tagName),lr=stringToLowerCase(Qt.tagName);return Xr[Dt.namespaceURI]?Dt.namespaceURI===Mr?Qt.namespaceURI===Sr?or==="svg":Qt.namespaceURI===wr?or==="svg"&&(lr==="annotation-xml"||Fn[lr]):!!wn[or]:Dt.namespaceURI===wr?Qt.namespaceURI===Sr?or==="math":Qt.namespaceURI===Mr?or==="math"&&On[lr]:!!fn[or]:Dt.namespaceURI===Sr?Qt.namespaceURI===Mr&&!On[lr]||Qt.namespaceURI===wr&&!Fn[lr]?!1:!fn[or]&&(Pn[or]||!wn[or]):!!(sn==="application/xhtml+xml"&&Xr[Dt.namespaceURI]):!1},jr=function(Dt){arrayPush(_e.removed,{element:Dt});try{Dt.parentNode.removeChild(Dt)}catch{Dt.remove()}},zn=function(Dt,Qt){try{arrayPush(_e.removed,{attribute:Qt.getAttributeNode(Dt),from:Qt})}catch{arrayPush(_e.removed,{attribute:null,from:Qt})}if(Qt.removeAttribute(Dt),Dt==="is"&&!Yt[Dt])if($r||Rr)try{jr(Qt)}catch{}else try{Qt.setAttribute(Dt,"")}catch{}},ro=function(Dt){let Qt=null,or=null;if(vr)Dt=""+Dt;else{const yr=stringMatch(Dt,/^[\r\n\t ]+/);or=yr&&yr[0]}sn==="application/xhtml+xml"&&Ir===Sr&&(Dt=''+Dt+"");const lr=xt?xt.createHTML(Dt):Dt;if(Ir===Sr)try{Qt=new dt().parseFromString(lr,sn)}catch{}if(!Qt||!Qt.documentElement){Qt=Et.createDocument(Ir,"template",null);try{Qt.documentElement.innerHTML=zr?yt:lr}catch{}}const er=Qt.body||Qt.documentElement;return Dt&&or&&er.insertBefore(et.createTextNode(or),er.childNodes[0]||null),Ir===Sr?kt.call(Qt,pr?"html":"body")[0]:pr?Qt.documentElement:er},Mn=function(Dt){return St.call(Dt.ownerDocument||Dt,Dt,lt.SHOW_ELEMENT|lt.SHOW_COMMENT|lt.SHOW_TEXT,null)},Fo=function(Dt){return Dt instanceof ct&&(typeof Dt.nodeName!="string"||typeof Dt.textContent!="string"||typeof Dt.removeChild!="function"||!(Dt.attributes instanceof ut)||typeof Dt.removeAttribute!="function"||typeof Dt.setAttribute!="function"||typeof Dt.namespaceURI!="string"||typeof Dt.insertBefore!="function"||typeof Dt.hasChildNodes!="function")},mo=function(Dt){return typeof it=="function"&&Dt instanceof it},eo=function(Dt,Qt,or){Ct[Dt]&&arrayForEach(Ct[Dt],lr=>{lr.call(_e,Qt,or,jn)})},Co=function(Dt){let Qt=null;if(eo("beforeSanitizeElements",Dt,null),Fo(Dt))return jr(Dt),!0;const or=hn(Dt.nodeName);if(eo("uponSanitizeElement",Dt,{tagName:or,allowedTags:Gt}),Dt.hasChildNodes()&&!mo(Dt.firstElementChild)&®ExpTest(/<[/\w]/g,Dt.innerHTML)&®ExpTest(/<[/\w]/g,Dt.textContent))return jr(Dt),!0;if(!Gt[or]||cr[or]){if(!cr[or]&&Kt(or)&&(tr.tagNameCheck instanceof RegExp&®ExpTest(tr.tagNameCheck,or)||tr.tagNameCheck instanceof Function&&tr.tagNameCheck(or)))return!1;if(Qr&&!Vr[or]){const lr=_t(Dt)||Dt.parentNode,er=bt(Dt)||Dt.childNodes;if(er&&lr){const yr=er.length;for(let Lr=yr-1;Lr>=0;--Lr)lr.insertBefore(gt(er[Lr],!0),mt(Dt))}}return jr(Dt),!0}return Dt instanceof st&&!Kr(Dt)||(or==="noscript"||or==="noembed"||or==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Dt.innerHTML)?(jr(Dt),!0):(ar&&Dt.nodeType===3&&(Qt=Dt.textContent,arrayForEach([It,Nt,Ot],lr=>{Qt=stringReplace(Qt,lr," ")}),Dt.textContent!==Qt&&(arrayPush(_e.removed,{element:Dt.cloneNode()}),Dt.textContent=Qt)),eo("afterSanitizeElements",Dt,null),!1)},Dr=function(Dt,Qt,or){if(Nr&&(Qt==="id"||Qt==="name")&&(or in et||or in qn))return!1;if(!(hr&&!mr[Qt]&®ExpTest(jt,Qt))){if(!(Er&®ExpTest(Mt,Qt))){if(!Yt[Qt]||mr[Qt]){if(!(Kt(Dt)&&(tr.tagNameCheck instanceof RegExp&®ExpTest(tr.tagNameCheck,Dt)||tr.tagNameCheck instanceof Function&&tr.tagNameCheck(Dt))&&(tr.attributeNameCheck instanceof RegExp&®ExpTest(tr.attributeNameCheck,Qt)||tr.attributeNameCheck instanceof Function&&tr.attributeNameCheck(Qt))||Qt==="is"&&tr.allowCustomizedBuiltInElements&&(tr.tagNameCheck instanceof RegExp&®ExpTest(tr.tagNameCheck,or)||tr.tagNameCheck instanceof Function&&tr.tagNameCheck(or))))return!1}else if(!ir[Qt]){if(!regExpTest(Pt,stringReplace(or,Lt,""))){if(!((Qt==="src"||Qt==="xlink:href"||Qt==="href")&&Dt!=="script"&&stringIndexOf(or,"data:")===0&&fr[Dt])){if(!(_r&&!regExpTest(Rt,stringReplace(or,Lt,"")))){if(or)return!1}}}}}}return!0},Kt=function(Dt){return Dt!=="annotation-xml"&&Dt.indexOf("-")>0},Zt=function(Dt){eo("beforeSanitizeAttributes",Dt,null);const{attributes:Qt}=Dt;if(!Qt)return;const or={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Yt};let lr=Qt.length;for(;lr--;){const er=Qt[lr],{name:yr,namespaceURI:Lr,value:nn}=er,cn=hn(yr);let rn=yr==="value"?nn:stringTrim(nn);if(or.attrName=cn,or.attrValue=rn,or.keepAttr=!0,or.forceKeepAttr=void 0,eo("uponSanitizeAttribute",Dt,or),rn=or.attrValue,or.forceKeepAttr||(zn(yr,Dt),!or.keepAttr))continue;if(!Ut&®ExpTest(/\/>/i,rn)){zn(yr,Dt);continue}ar&&arrayForEach([It,Nt,Ot],_n=>{rn=stringReplace(rn,_n," ")});const en=hn(Dt.nodeName);if(Dr(en,cn,rn)){if(Gr&&(cn==="id"||cn==="name")&&(zn(yr,Dt),rn=qr+rn),xt&&typeof ft=="object"&&typeof ft.getAttributeType=="function"&&!Lr)switch(ft.getAttributeType(en,cn)){case"TrustedHTML":{rn=xt.createHTML(rn);break}case"TrustedScriptURL":{rn=xt.createScriptURL(rn);break}}try{Lr?Dt.setAttributeNS(Lr,yr,rn):Dt.setAttribute(yr,rn),arrayPop(_e.removed)}catch{}}}eo("afterSanitizeAttributes",Dt,null)},zt=function Ht(Dt){let Qt=null;const or=Mn(Dt);for(eo("beforeSanitizeShadowDOM",Dt,null);Qt=or.nextNode();)eo("uponSanitizeShadowNode",Qt,null),!Co(Qt)&&(Qt.content instanceof nt&&Ht(Qt.content),Zt(Qt));eo("afterSanitizeShadowDOM",Dt,null)};return _e.sanitize=function(Ht){let Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qt=null,or=null,lr=null,er=null;if(zr=!Ht,zr&&(Ht=""),typeof Ht!="string"&&!mo(Ht))if(typeof Ht.toString=="function"){if(Ht=Ht.toString(),typeof Ht!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!_e.isSupported)return Ht;if(rr||un(Dt),_e.removed=[],typeof Ht=="string"&&(Yr=!1),Yr){if(Ht.nodeName){const nn=hn(Ht.nodeName);if(!Gt[nn]||cr[nn])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(Ht instanceof it)Qt=ro(""),or=Qt.ownerDocument.importNode(Ht,!0),or.nodeType===1&&or.nodeName==="BODY"||or.nodeName==="HTML"?Qt=or:Qt.appendChild(or);else{if(!$r&&!ar&&!pr&&Ht.indexOf("<")===-1)return xt&&Cr?xt.createHTML(Ht):Ht;if(Qt=ro(Ht),!Qt)return $r?null:Cr?yt:""}Qt&&vr&&jr(Qt.firstChild);const yr=Mn(Yr?Ht:Qt);for(;lr=yr.nextNode();)Co(lr)||(lr.content instanceof nt&&zt(lr.content),Zt(lr));if(Yr)return Ht;if($r){if(Rr)for(er=Tt.call(Qt.ownerDocument);Qt.firstChild;)er.appendChild(Qt.firstChild);else er=Qt;return(Yt.shadowroot||Yt.shadowrootmode)&&(er=$t.call(tt,er,!0)),er}let Lr=pr?Qt.outerHTML:Qt.innerHTML;return pr&&Gt["!doctype"]&&Qt.ownerDocument&&Qt.ownerDocument.doctype&&Qt.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,Qt.ownerDocument.doctype.name)&&(Lr=" -`+Lr),ar&&arrayForEach([It,Nt,Ot],nn=>{Lr=stringReplace(Lr,nn," ")}),xt&&Cr?xt.createHTML(Lr):Lr},_e.setConfig=function(){let Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};un(Ht),rr=!0},_e.clearConfig=function(){jn=null,rr=!1},_e.isValidAttribute=function(Ht,Dt,Qt){jn||un({});const or=hn(Ht),lr=hn(Dt);return Dr(or,lr,Qt)},_e.addHook=function(Ht,Dt){typeof Dt=="function"&&(Ct[Ht]=Ct[Ht]||[],arrayPush(Ct[Ht],Dt))},_e.removeHook=function(Ht){if(Ct[Ht])return arrayPop(Ct[Ht])},_e.removeHooks=function(Ht){Ct[Ht]&&(Ct[Ht]=[])},_e.removeAllHooks=function(){Ct={}},_e}var purify=createDOMPurify(),eventemitter3={exports:{}};(function(j){var _e=Object.prototype.hasOwnProperty,et="~";function tt(){}Object.create&&(tt.prototype=Object.create(null),new tt().__proto__||(et=!1));function rt(st,lt,ut){this.fn=st,this.context=lt,this.once=ut||!1}function nt(st,lt,ut,ct,dt){if(typeof ut!="function")throw new TypeError("The listener must be a function");var ft=new rt(ut,ct||st,dt),pt=et?et+lt:lt;return st._events[pt]?st._events[pt].fn?st._events[pt]=[st._events[pt],ft]:st._events[pt].push(ft):(st._events[pt]=ft,st._eventsCount++),st}function ot(st,lt){--st._eventsCount===0?st._events=new tt:delete st._events[lt]}function it(){this._events=new tt,this._eventsCount=0}it.prototype.eventNames=function(){var lt=[],ut,ct;if(this._eventsCount===0)return lt;for(ct in ut=this._events)_e.call(ut,ct)&<.push(et?ct.slice(1):ct);return Object.getOwnPropertySymbols?lt.concat(Object.getOwnPropertySymbols(ut)):lt},it.prototype.listeners=function(lt){var ut=et?et+lt:lt,ct=this._events[ut];if(!ct)return[];if(ct.fn)return[ct.fn];for(var dt=0,ft=ct.length,pt=new Array(ft);dt0?j:"Unknown")}function _defineProperty$D(j,_e,et){return _e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _extends$q(){return _extends$q=Object.assign||function(j){for(var _e=1;_e"u"?"undefined":_typeof$F(window))==="object"&&(typeof document>"u"?"undefined":_typeof$F(document))==="object"&&document.nodeType===9;function _typeof$E(j){"@babel/helpers - typeof";return _typeof$E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$E(j)}function toPrimitive(j,_e){if(_typeof$E(j)!="object"||!j)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$E(tt)!="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}function toPropertyKey(j){var _e=toPrimitive(j,"string");return _typeof$E(_e)=="symbol"?_e:String(_e)}function _defineProperties$f(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,toPropertyKey(tt.key),tt)}}function _createClass$f(j,_e,et){return _e&&_defineProperties$f(j.prototype,_e),et&&_defineProperties$f(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}var plainObjectConstrurctor={}.constructor;function cloneStyle(j){if(j==null||typeof j!="object")return j;if(Array.isArray(j))return j.map(cloneStyle);if(j.constructor!==plainObjectConstrurctor)return j;var _e={};for(var et in j)_e[et]=cloneStyle(j[et]);return _e}function createRule(j,_e,et){j===void 0&&(j="unnamed");var tt=et.jss,rt=cloneStyle(_e),nt=tt.plugins.onCreateRule(j,rt,et);return nt||(j[0],null)}var join=function(_e,et){for(var tt="",rt=0;rt<_e.length&&_e[rt]!=="!important";rt++)tt&&(tt+=et),tt+=_e[rt];return tt};function toCssValue(j,_e){if(_e===void 0&&(_e=!1),!Array.isArray(j))return j;var et="";if(Array.isArray(j[0]))for(var tt=0;tt<+~=|^:(),"'`\s])/g,nativeEscape=typeof CSS<"u"&&CSS.escape,escape=function(j){return nativeEscape?nativeEscape(j):j.replace(escapeRegex,"\\$1")},BaseStyleRule=function(){function j(et,tt,rt){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var nt=rt.sheet,ot=rt.Renderer;this.key=et,this.options=rt,this.style=tt,nt?this.renderer=nt.renderer:ot&&(this.renderer=new ot)}var _e=j.prototype;return _e.prop=function(tt,rt,nt){if(rt===void 0)return this.style[tt];var ot=nt?nt.force:!1;if(!ot&&this.style[tt]===rt)return this;var it=rt;(!nt||nt.process!==!1)&&(it=this.options.jss.plugins.onChangeValue(rt,tt,this));var st=it==null||it===!1,lt=tt in this.style;if(st&&!lt&&!ot)return this;var ut=st&<if(ut?delete this.style[tt]:this.style[tt]=it,this.renderable&&this.renderer)return ut?this.renderer.removeProperty(this.renderable,tt):this.renderer.setProperty(this.renderable,tt,it),this;var ct=this.options.sheet;return ct&&ct.attached,this},j}(),StyleRule=function(j){_inheritsLoose$1(_e,j);function _e(tt,rt,nt){var ot;ot=j.call(this,tt,rt,nt)||this,ot.selectorText=void 0,ot.id=void 0,ot.renderable=void 0;var it=nt.selector,st=nt.scoped,lt=nt.sheet,ut=nt.generateId;return it?ot.selectorText=it:st!==!1&&(ot.id=ut(_assertThisInitialized$d(_assertThisInitialized$d(ot)),lt),ot.selectorText="."+escape(ot.id)),ot}var et=_e.prototype;return et.applyTo=function(rt){var nt=this.renderer;if(nt){var ot=this.toJSON();for(var it in ot)nt.setProperty(rt,it,ot[it])}return this},et.toJSON=function(){var rt={};for(var nt in this.style){var ot=this.style[nt];typeof ot!="object"?rt[nt]=ot:Array.isArray(ot)&&(rt[nt]=toCssValue(ot))}return rt},et.toString=function(rt){var nt=this.options.sheet,ot=nt?nt.options.link:!1,it=ot?_extends$r({},rt,{allowEmpty:!0}):rt;return toCss(this.selectorText,this.style,it)},_createClass$f(_e,[{key:"selector",set:function(rt){if(rt!==this.selectorText){this.selectorText=rt;var nt=this.renderer,ot=this.renderable;if(!(!ot||!nt)){var it=nt.setSelector(ot,rt);it||nt.replaceRule(ot,this)}}},get:function(){return this.selectorText}}]),_e}(BaseStyleRule),pluginStyleRule={onCreateRule:function(_e,et,tt){return _e[0]==="@"||tt.parent&&tt.parent.type==="keyframes"?null:new StyleRule(_e,et,tt)}},defaultToStringOptions={indent:1,children:!0},atRegExp=/@([\w-]+)/,ConditionalRule=function(){function j(et,tt,rt){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=et,this.query=rt.name;var nt=et.match(atRegExp);this.at=nt?nt[1]:"unknown",this.options=rt,this.rules=new RuleList(_extends$r({},rt,{parent:this}));for(var ot in tt)this.rules.add(ot,tt[ot]);this.rules.process()}var _e=j.prototype;return _e.getRule=function(tt){return this.rules.get(tt)},_e.indexOf=function(tt){return this.rules.indexOf(tt)},_e.addRule=function(tt,rt,nt){var ot=this.rules.add(tt,rt,nt);return ot?(this.options.jss.plugins.onProcessRule(ot),ot):null},_e.toString=function(tt){if(tt===void 0&&(tt=defaultToStringOptions),tt.indent==null&&(tt.indent=defaultToStringOptions.indent),tt.children==null&&(tt.children=defaultToStringOptions.children),tt.children===!1)return this.query+" {}";var rt=this.rules.toString(tt);return rt?this.query+` { -`+rt+` -}`:""},j}(),keyRegExp=/@media|@supports\s+/,pluginConditionalRule={onCreateRule:function(_e,et,tt){return keyRegExp.test(_e)?new ConditionalRule(_e,et,tt):null}},defaultToStringOptions$1={indent:1,children:!0},nameRegExp=/@keyframes\s+([\w-]+)/,KeyframesRule=function(){function j(et,tt,rt){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var nt=et.match(nameRegExp);nt&&nt[1]?this.name=nt[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=rt;var ot=rt.scoped,it=rt.sheet,st=rt.generateId;this.id=ot===!1?this.name:escape(st(this,it)),this.rules=new RuleList(_extends$r({},rt,{parent:this}));for(var lt in tt)this.rules.add(lt,tt[lt],_extends$r({},rt,{parent:this}));this.rules.process()}var _e=j.prototype;return _e.toString=function(tt){if(tt===void 0&&(tt=defaultToStringOptions$1),tt.indent==null&&(tt.indent=defaultToStringOptions$1.indent),tt.children==null&&(tt.children=defaultToStringOptions$1.children),tt.children===!1)return this.at+" "+this.id+" {}";var rt=this.rules.toString(tt);return rt&&(rt=` -`+rt+` -`),this.at+" "+this.id+" {"+rt+"}"},j}(),keyRegExp$1=/@keyframes\s+/,refRegExp$1=/\$([\w-]+)/g,findReferencedKeyframe=function(_e,et){return typeof _e=="string"?_e.replace(refRegExp$1,function(tt,rt){return rt in et?et[rt]:tt}):_e},replaceRef=function(_e,et,tt){var rt=_e[et],nt=findReferencedKeyframe(rt,tt);nt!==rt&&(_e[et]=nt)},plugin={onCreateRule:function(_e,et,tt){return typeof _e=="string"&&keyRegExp$1.test(_e)?new KeyframesRule(_e,et,tt):null},onProcessStyle:function(_e,et,tt){return et.type!=="style"||!tt||("animation-name"in _e&&replaceRef(_e,"animation-name",tt.keyframes),"animation"in _e&&replaceRef(_e,"animation",tt.keyframes)),_e},onChangeValue:function(_e,et,tt){var rt=tt.options.sheet;if(!rt)return _e;switch(et){case"animation":return findReferencedKeyframe(_e,rt.keyframes);case"animation-name":return findReferencedKeyframe(_e,rt.keyframes);default:return _e}}},KeyframeRule=function(j){_inheritsLoose$1(_e,j);function _e(){for(var tt,rt=arguments.length,nt=new Array(rt),ot=0;ot=this.index){rt.push(tt);return}for(var ot=0;otnt){rt.splice(ot,0,tt);return}}},_e.reset=function(){this.registry=[]},_e.remove=function(tt){var rt=this.registry.indexOf(tt);this.registry.splice(rt,1)},_e.toString=function(tt){for(var rt=tt===void 0?{}:tt,nt=rt.attached,ot=_objectWithoutPropertiesLoose$i(rt,["attached"]),it="",st=0;st_e.index&&tt.options.insertionPoint===_e.insertionPoint)return tt}return null}function findHighestSheet(j,_e){for(var et=j.length-1;et>=0;et--){var tt=j[et];if(tt.attached&&tt.options.insertionPoint===_e.insertionPoint)return tt}return null}function findCommentNode(j){for(var _e=getHead(),et=0;et<_e.childNodes.length;et++){var tt=_e.childNodes[et];if(tt.nodeType===8&&tt.nodeValue.trim()===j)return tt}return null}function findPrevNode(j){var _e=sheets.registry;if(_e.length>0){var et=findHigherSheet(_e,j);if(et&&et.renderer)return{parent:et.renderer.element.parentNode,node:et.renderer.element};if(et=findHighestSheet(_e,j),et&&et.renderer)return{parent:et.renderer.element.parentNode,node:et.renderer.element.nextSibling}}var tt=j.insertionPoint;if(tt&&typeof tt=="string"){var rt=findCommentNode(tt);if(rt)return{parent:rt.parentNode,node:rt.nextSibling}}return!1}function insertStyle(j,_e){var et=_e.insertionPoint,tt=findPrevNode(_e);if(tt!==!1&&tt.parent){tt.parent.insertBefore(j,tt.node);return}if(et&&typeof et.nodeType=="number"){var rt=et,nt=rt.parentNode;nt&&nt.insertBefore(j,rt.nextSibling);return}getHead().appendChild(j)}var getNonce$1=memoize$3(function(){var j=document.querySelector('meta[property="csp-nonce"]');return j?j.getAttribute("content"):null}),_insertRule=function(_e,et,tt){var rt=_e.cssRules.length;(tt===void 0||tt>rt)&&(tt=rt);try{if("insertRule"in _e){var nt=_e;nt.insertRule(et,tt)}else if("appendRule"in _e){var ot=_e;ot.appendRule(et)}}catch{return!1}return _e.cssRules[tt]},createStyle=function(){var _e=document.createElement("style");return _e.textContent=` -`,_e},DomRenderer=function(){function j(et){this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,et&&sheets.add(et),this.sheet=et;var tt=this.sheet?this.sheet.options:{},rt=tt.media,nt=tt.meta,ot=tt.element;this.element=ot||createStyle(),this.element.setAttribute("data-jss",""),rt&&this.element.setAttribute("media",rt),nt&&this.element.setAttribute("data-meta",nt);var it=getNonce$1();it&&this.element.setAttribute("nonce",it)}var _e=j.prototype;return _e.attach=function(){if(!(this.element.parentNode||!this.sheet)){insertStyle(this.element,this.sheet.options);var tt=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&tt&&(this.hasInsertedRules=!1,this.deploy())}},_e.detach=function(){var tt=this.element.parentNode;tt&&tt.removeChild(this.element)},_e.deploy=function(){var tt=this.sheet;if(tt){if(tt.options.link){this.insertRules(tt.rules);return}this.element.textContent=` -`+tt.toString()+` -`}},_e.insertRules=function(tt,rt){for(var nt=0;nt0&&(rt.refs--,rt.refs===0&&rt.sheet.detach()):warning(!1,"SheetsManager: can't find sheet to unmanage")},_createClass$f(j,[{key:"size",get:function(){return this.length}}]),j}();/** - * A better abstraction over CSS. - * - * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present - * @website https://github.com/cssinjs/jss - * @license MIT - */var hasCSSTOMSupport=typeof CSS<"u"&&CSS&&"number"in CSS,create$3=function(_e){return new Jss(_e)},index$4=create$3(),now$1=Date.now(),fnValuesNs="fnValues"+now$1,fnRuleNs="fnStyle"+ ++now$1;function functionPlugin(){return{onCreateRule:function(_e,et,tt){if(typeof et!="function")return null;var rt=createRule(_e,{},tt);return rt[fnRuleNs]=et,rt},onProcessStyle:function(_e,et){if(fnValuesNs in et||fnRuleNs in et)return _e;var tt={};for(var rt in _e){var nt=_e[rt];typeof nt=="function"&&(delete _e[rt],tt[rt]=nt)}return et[fnValuesNs]=tt,_e},onUpdate:function(_e,et,tt,rt){var nt=et,ot=nt[fnRuleNs];ot&&(nt.style=ot(_e)||{});var it=nt[fnValuesNs];if(it)for(var st in it)nt.prop(st,it[st](_e),rt)}}}function symbolObservablePonyfill(j){var _e,et=j.Symbol;return typeof et=="function"?et.observable?_e=et.observable:(_e=et("observable"),et.observable=_e):_e="@@observable",_e}var root$1;typeof self<"u"?root$1=self:typeof window<"u"?root$1=window:typeof global<"u"?root$1=global:typeof module<"u"?root$1=module:root$1=Function("return this")();var result=symbolObservablePonyfill(root$1),isObservable$1=function(_e){return _e&&_e[result]&&_e===_e[result]()};function observablePlugin(j){return{onCreateRule:function(et,tt,rt){if(!isObservable$1(tt))return null;var nt=tt,ot=createRule(et,{},rt);return nt.subscribe(function(it){for(var st in it)ot.prop(st,it[st],j)}),ot},onProcessRule:function(et){if(!(et&&et.type!=="style")){var tt=et,rt=tt.style,nt=function(lt){var ut=rt[lt];if(!isObservable$1(ut))return"continue";delete rt[lt],ut.subscribe({next:function(dt){tt.prop(lt,dt,j)}})};for(var ot in rt)var it=nt(ot)}}}}var semiWithNl=/;\n/,parse$m=function(j){for(var _e={},et=j.split(semiWithNl),tt=0;tt-1)return registerClass(j,_e.split(" "));var rt=j.options,nt=rt.parent;if(_e[0]==="$"){var ot=nt.getRule(_e.substr(1));return!ot||ot===j?!1:(nt.classes[j.key]+=" "+nt.classes[ot.key],!0)}return nt.classes[j.key]+=" "+_e,!0}function jssCompose(){function j(_e,et){return"composes"in _e&&(registerClass(et,_e.composes),delete _e.composes),_e}return{onProcessStyle:j}}var uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$2={};function toHyphenLower(j){return"-"+j.toLowerCase()}function hyphenateStyleName(j){if(cache$2.hasOwnProperty(j))return cache$2[j];var _e=j.replace(uppercasePattern,toHyphenLower);return cache$2[j]=msPattern.test(_e)?"-"+_e:_e}function convertCase(j){var _e={};for(var et in j){var tt=et.indexOf("--")===0?et:hyphenateStyleName(et);_e[tt]=j[et]}return j.fallbacks&&(Array.isArray(j.fallbacks)?_e.fallbacks=j.fallbacks.map(convertCase):_e.fallbacks=convertCase(j.fallbacks)),_e}function camelCase(){function j(et){if(Array.isArray(et)){for(var tt=0;ttj.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _arrayWithoutHoles$b(j){if(Array.isArray(j))return _arrayLikeToArray$m(j)}function _iterableToArray$c(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _unsupportedIterableToArray$m(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$m(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$m(j,_e)}}function _nonIterableSpread$b(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray$b(j){return _arrayWithoutHoles$b(j)||_iterableToArray$c(j)||_unsupportedIterableToArray$m(j)||_nonIterableSpread$b()}var js="",css$2="",vendor="",browser="",isTouch$1=isBrowser$2&&"ontouchstart"in document.documentElement;if(isBrowser$2){var jsCssMap={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},_document$createEleme=document.createElement("p"),style=_document$createEleme.style,testProp="Transform";for(var key in jsCssMap)if(key+testProp in style){js=key,css$2=jsCssMap[key];break}js==="Webkit"&&"msHyphens"in style&&(js="ms",css$2=jsCssMap.ms,browser="edge"),js==="Webkit"&&"-apple-trailing-word"in style&&(vendor="apple")}var prefix$3={js,css:css$2,vendor,browser,isTouch:isTouch$1};function supportedKeyframes(j){return j[1]==="-"||prefix$3.js==="ms"?j:"@"+prefix$3.css+"keyframes"+j.substr(10)}var appearence={noPrefill:["appearance"],supportedProperty:function(_e){return _e!=="appearance"?!1:prefix$3.js==="ms"?"-webkit-"+_e:prefix$3.css+_e}},colorAdjust={noPrefill:["color-adjust"],supportedProperty:function(_e){return _e!=="color-adjust"?!1:prefix$3.js==="Webkit"?prefix$3.css+"print-"+_e:_e}},regExp=/[-\s]+(.)?/g;function toUpper(j,_e){return _e?_e.toUpperCase():""}function camelize(j){return j.replace(regExp,toUpper)}function pascalize(j){return camelize("-"+j)}var mask={noPrefill:["mask"],supportedProperty:function(_e,et){if(!/^mask/.test(_e))return!1;if(prefix$3.js==="Webkit"){var tt="mask-image";if(camelize(tt)in et)return _e;if(prefix$3.js+pascalize(tt)in et)return prefix$3.css+_e}return _e}},textOrientation={noPrefill:["text-orientation"],supportedProperty:function(_e){return _e!=="text-orientation"?!1:prefix$3.vendor==="apple"&&!prefix$3.isTouch?prefix$3.css+_e:_e}},transform={noPrefill:["transform"],supportedProperty:function(_e,et,tt){return _e!=="transform"?!1:tt.transform?_e:prefix$3.css+_e}},transition={noPrefill:["transition"],supportedProperty:function(_e,et,tt){return _e!=="transition"?!1:tt.transition?_e:prefix$3.css+_e}},writingMode={noPrefill:["writing-mode"],supportedProperty:function(_e){return _e!=="writing-mode"?!1:prefix$3.js==="Webkit"||prefix$3.js==="ms"&&prefix$3.browser!=="edge"?prefix$3.css+_e:_e}},userSelect={noPrefill:["user-select"],supportedProperty:function(_e){return _e!=="user-select"?!1:prefix$3.js==="Moz"||prefix$3.js==="ms"||prefix$3.vendor==="apple"?prefix$3.css+_e:_e}},breakPropsOld={supportedProperty:function(_e,et){if(!/^break-/.test(_e))return!1;if(prefix$3.js==="Webkit"){var tt="WebkitColumn"+pascalize(_e);return tt in et?prefix$3.css+"column-"+_e:!1}if(prefix$3.js==="Moz"){var rt="page"+pascalize(_e);return rt in et?"page-"+_e:!1}return!1}},inlineLogicalOld={supportedProperty:function(_e,et){if(!/^(border|margin|padding)-inline/.test(_e))return!1;if(prefix$3.js==="Moz")return _e;var tt=_e.replace("-inline","");return prefix$3.js+pascalize(tt)in et?prefix$3.css+tt:!1}},unprefixed={supportedProperty:function(_e,et){return camelize(_e)in et?_e:!1}},prefixed={supportedProperty:function(_e,et){var tt=pascalize(_e);return _e[0]==="-"||_e[0]==="-"&&_e[1]==="-"?_e:prefix$3.js+tt in et?prefix$3.css+_e:prefix$3.js!=="Webkit"&&"Webkit"+tt in et?"-webkit-"+_e:!1}},scrollSnap={supportedProperty:function(_e){return _e.substring(0,11)!=="scroll-snap"?!1:prefix$3.js==="ms"?""+prefix$3.css+_e:_e}},overscrollBehavior={supportedProperty:function(_e){return _e!=="overscroll-behavior"?!1:prefix$3.js==="ms"?prefix$3.css+"scroll-chaining":_e}},propMap={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},flex2012={supportedProperty:function(_e,et){var tt=propMap[_e];return tt&&prefix$3.js+pascalize(tt)in et?prefix$3.css+tt:!1}},propMap$1={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},propKeys=Object.keys(propMap$1),prefixCss=function(_e){return prefix$3.css+_e},flex2009={supportedProperty:function(_e,et,tt){var rt=tt.multiple;if(propKeys.indexOf(_e)>-1){var nt=propMap$1[_e];if(!Array.isArray(nt))return prefix$3.js+pascalize(nt)in et?prefix$3.css+nt:!1;if(!rt)return!1;for(var ot=0;ottt?1:-1:et.length-tt.length};return{onProcessStyle:function(et,tt){if(tt.type!=="style")return et;for(var rt={},nt=Object.keys(et).sort(j),ot=0;otMAX_RULES_PER_SHEET)&&(rt=_e.createStyleSheet().attach()),rt};function ot(){var it=arguments,st=JSON.stringify(it),lt=et.get(st);if(lt)return lt.className;var ut=[];for(var ct in it){var dt=it[ct];if(!Array.isArray(dt)){ut.push(dt);continue}for(var ft=0;ft_e=>!!pick$1(j)(_e),add$1=j=>_e=>{const et=_e||0;return Array.isArray(j)?j.reduce((tt,rt)=>tt|rt,et):et|j},toggle=j=>_e=>(_e||0)^j,pick$1=j=>_e=>(_e||0)&j,remove$1=j=>_e=>{const et=_e||0;return Array.isArray(j)?j.reduce((tt,rt)=>tt&~rt,et):et&~j},replace$1=j=>()=>j;var bitset=Object.freeze({__proto__:null,has:has$1,add:add$1,toggle,pick:pick$1,remove:remove$1,replace:replace$1});const EMPTY_STATUS=0,SELECTED_STATUS=1,ACTIVATED_STATUS=2;var GraphEdgeStatus;(function(j){j[j.Default=EMPTY_STATUS]="Default",j[j.Selected=SELECTED_STATUS]="Selected",j[j.Activated=ACTIVATED_STATUS]="Activated",j[j.ConnectedToSelected=4]="ConnectedToSelected",j[j.UnconnectedToSelected=8]="UnconnectedToSelected",j[j.Editing=16]="Editing"})(GraphEdgeStatus||(GraphEdgeStatus={}));var GraphNodeStatus;(function(j){j[j.Default=EMPTY_STATUS]="Default",j[j.Selected=SELECTED_STATUS]="Selected",j[j.Activated=ACTIVATED_STATUS]="Activated",j[j.Editing=4]="Editing",j[j.ConnectedToSelected=8]="ConnectedToSelected",j[j.UnconnectedToSelected=16]="UnconnectedToSelected"})(GraphNodeStatus||(GraphNodeStatus={}));var GraphPortStatus;(function(j){j[j.Default=EMPTY_STATUS]="Default",j[j.Selected=SELECTED_STATUS]="Selected",j[j.Activated=ACTIVATED_STATUS]="Activated",j[j.Connecting=4]="Connecting",j[j.ConnectingAsTarget=8]="ConnectingAsTarget"})(GraphPortStatus||(GraphPortStatus={}));const updateStatus=j=>_e=>{var et;const tt=j((et=_e.status)!==null&&et!==void 0?et:0);return tt===_e.status?_e:Object.assign(Object.assign({},_e),{status:tt})};function isNodeEditing(j){return has$1(GraphNodeStatus.Editing)(j.status)}function isSelected(j){return has$1(SELECTED_STATUS)(j.status)}function notSelected(j){return!isSelected(j)}const resetConnectStatus=j=>_e=>(_e||0)&GraphNodeStatus.Activated|j;class Debug{static log(_e){}static warn(_e){}static error(..._e){console.error(..._e)}static never(_e,et){throw new Error(et??`${_e} is unexpected`)}}const getNodeConfig=(j,_e)=>{const et=_e.getNodeConfig(j);if(!et){Debug.warn(`invalid node ${JSON.stringify(j)}`);return}return et};function getRectWidth(j,_e){var et;const tt=(et=j==null?void 0:j.getMinWidth(_e))!==null&&et!==void 0?et:0;return _e.width&&_e.width>=tt?_e.width:tt}function getRectHeight(j,_e){var et;const tt=(et=j==null?void 0:j.getMinHeight(_e))!==null&&et!==void 0?et:0;return _e.height&&_e.height>=tt?_e.height:tt}function getNodeSize(j,_e){const et=getNodeConfig(j,_e),tt=getRectWidth(et,j);return{height:getRectHeight(et,j),width:tt}}function getGroupRect(j,_e,et){var tt,rt,nt,ot,it,st,lt,ut;const ct=new Set(j.nodeIds),dt=Array.from(_e.values()).filter(Et=>ct.has(Et.id)),ft=Math.min(...dt.map(Et=>Et.x)),pt=Math.max(...dt.map(Et=>Et.x+getNodeSize(Et,et).width)),gt=Math.min(...dt.map(Et=>Et.y)),mt=Math.max(...dt.map(Et=>Et.y+getNodeSize(Et,et).height)),bt=ft-((rt=(tt=j.padding)===null||tt===void 0?void 0:tt.left)!==null&&rt!==void 0?rt:0),_t=gt-((ot=(nt=j.padding)===null||nt===void 0?void 0:nt.top)!==null&&ot!==void 0?ot:0),xt=mt-_t+((st=(it=j.padding)===null||it===void 0?void 0:it.bottom)!==null&&st!==void 0?st:0),yt=pt-bt+((ut=(lt=j.padding)===null||lt===void 0?void 0:lt.left)!==null&&ut!==void 0?ut:0);return{x:bt,y:_t,width:yt,height:xt}}var MouseEventButton;(function(j){j[j.Primary=0]="Primary",j[j.Auxiliary=1]="Auxiliary",j[j.Secondary=2]="Secondary",j[j.Fourth=4]="Fourth",j[j.Fifth=5]="Fifth"})(MouseEventButton||(MouseEventButton={}));var MouseEventButtons;(function(j){j[j.None=0]="None",j[j.Left=1]="Left",j[j.Right=2]="Right",j[j.Middle=4]="Middle"})(MouseEventButtons||(MouseEventButtons={}));const DEFAULT_AUTO_ALIGN_THRESHOLD=50,COPIED_NODE_SPACING=50,NODE_MIN_VISIBLE_LENGTH=5,NODE_MAX_VISIBLE_LENGTH=500,defaultColors={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},RectComponent=j=>{const{style:_e,node:et,width:tt,height:rt,textY:nt}=j,ot=et.data&&et.data.comment?et.data.comment:"",it=isNodeEditing(et);return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{width:tt,height:rt,x:et.x,y:et.y,style:_e,rx:_e.borderRadius}),jsxRuntimeExports.jsx("text",Object.assign({x:et.x,y:nt,fontSize:12},{children:et.name})),et.data&&et.data.comment&&!it&&jsxRuntimeExports.jsx("text",Object.assign({x:et.x,y:nt+20,fontSize:12,className:`comment-${et.id}`},{children:et.data.comment})),it&&jsxRuntimeExports.jsx("foreignObject",Object.assign({x:et.x,y:nt,height:rt/2.5,width:tt-5},{children:jsxRuntimeExports.jsx("input",{value:ot,placeholder:"Input your comment here"})}))]},et.id)},rect={getMinHeight(){return 150},getMinWidth(){return 150},render(j){const _e=j.model,et=getRectWidth(rect,_e),tt=getRectHeight(rect,_e),rt=has$1(GraphNodeStatus.Selected|GraphNodeStatus.Activated)(_e.status)?{fill:defaultColors.nodeActivateFill,stroke:defaultColors.nodeActivateStroke}:{fill:defaultColors.nodeFill,fillOpacity:.1,stroke:defaultColors.nodeStroke,borderRadius:"5"},nt=_e.y+tt/3;return jsxRuntimeExports.jsx(RectComponent,{style:rt,node:_e,width:et,height:tt,textY:nt})}},getCurvePathD=(j,_e,et,tt)=>`M${j},${et}C${j},${et-getControlPointDistance(et,tt)},${_e},${tt+5+getControlPointDistance(et,tt)},${_e},${tt+5}`,getControlPointDistance=(j,_e)=>Math.min(5*15,Math.max(5*3,Math.abs((j-(_e+5))/2))),line$1={render(j){const _e=j.model,et={cursor:"crosshair",stroke:has$1(GraphEdgeStatus.Selected)(_e.status)?defaultColors.edgeColorSelected:defaultColors.edgeColor,strokeWidth:"2"};return jsxRuntimeExports.jsx("path",{d:getCurvePathD(j.x2,j.x1,j.y2,j.y1),fill:"none",style:et,id:`edge${_e.id}`},_e.id)}};class DefaultPort{getStyle(_e,et,tt,rt,nt){const ot=defaultColors.portStroke;let it=defaultColors.portFill;return(rt||nt)&&(it=defaultColors.connectedPortColor),has$1(GraphPortStatus.Activated)(_e.status)&&(it=defaultColors.primaryColor),{stroke:ot,fill:it}}getIsConnectable(){return!0}render(_e){const{model:et,data:tt,parentNode:rt}=_e,nt=tt.isPortConnectedAsSource(rt.id,et.id),ot=tt.isPortConnectedAsTarget(rt.id,et.id),it=this.getStyle(et,rt,tt,nt,ot),{x:st,y:lt}=_e,ut=`${st-5} ${lt}, ${st+7} ${lt}, ${st+1} ${lt+8}`;return ot?jsxRuntimeExports.jsx("polygon",{points:ut,style:it}):jsxRuntimeExports.jsx("circle",{r:5,cx:st,cy:lt,style:it},`${_e.parentNode.id}-${_e.model.id}`)}}const defaultPort=new DefaultPort;class DefaultClipboard{constructor(_e){this.storage=_e}write(_e){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:_e.nodes.map(et=>Object.assign(Object.assign({},et),{data:{}})),edges:_e.edges.map(et=>Object.assign(Object.assign({},et),{data:{}}))}))}read(){const _e=this.storage.getItem("graph-clipboard");if(!_e)return null;try{const et=JSON.parse(_e),tt=new Map;return{nodes:et.nodes.map(rt=>{const nt=v4();return tt.set(rt.id,nt),Object.assign(Object.assign({},rt),{x:rt.x+COPIED_NODE_SPACING,y:rt.y+COPIED_NODE_SPACING,id:nt})}),edges:et.edges.map(rt=>Object.assign(Object.assign({},rt),{id:v4(),source:tt.get(rt.source)||"",target:tt.get(rt.target)||""}))}}catch{return null}}}class DefaultStorage{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(_e,et){this.items.set(_e,et)}getItem(_e){return this.items.has(_e)?this.items.get(_e):null}removeItem(_e){this.items.delete(_e)}}class GraphConfigBuilder{constructor(){const _e=new DefaultStorage,et=new DefaultClipboard(_e);this.draft={getNodeConfig:()=>rect,getEdgeConfig:()=>line$1,getPortConfig:()=>defaultPort,getGroupConfig:()=>{},getClipboard:()=>et}}static default(){return new GraphConfigBuilder}static from(_e){return new GraphConfigBuilder().registerNode(_e.getNodeConfig.bind(_e)).registerEdge(_e.getEdgeConfig.bind(_e)).registerPort(_e.getPortConfig.bind(_e)).registerGroup(_e.getGroupConfig.bind(_e)).registerClipboard(_e.getClipboard.bind(_e))}registerNode(_e){return this.draft.getNodeConfig=_e,this}registerEdge(_e){return this.draft.getEdgeConfig=_e,this}registerPort(_e){return this.draft.getPortConfig=_e,this}registerGroup(_e){return this.draft.getGroupConfig=_e,this}registerClipboard(_e){return this.draft.getClipboard=_e,this}build(){return this.draft}}const GraphConfigContext=reactExports.createContext(GraphConfigBuilder.default().build());var MenuType;(function(j){j.Node="node",j.Edge="edge",j.Port="port",j.Canvas="canvas",j.Multi="multi"})(MenuType||(MenuType={}));class ContextMenuConfig{constructor(){this.contextMenu=new Map}registerContextMenu(_e){this.contextMenuProps=Object.assign({},_e)}registerMenu(_e,et){this.contextMenu.set(et,_e)}getMenu(_e){if(this.contextMenuProps&&this.contextMenu.has(_e)){const{className:et,styles:tt}=this.contextMenuProps;return reactExports.createElement("div",{className:et,style:tt},this.contextMenu.get(_e))}return null}}const ContextMenuConfigContext=reactExports.createContext(new ContextMenuConfig),emptySelectBoxPosition=()=>({startX:0,startY:0,height:0,width:0}),SelectBox=j=>{const{selectBoxPosition:_e,style:et}=j,tt=`m${_e.startX} ${_e.startY} v ${_e.height} h ${_e.width} v${-_e.height} h ${-_e.width}`,rt=et??{fill:"none",stroke:defaultColors.defaultColor};return jsxRuntimeExports.jsx("path",{style:rt,d:tt})};var GraphFeatures;(function(j){j.NodeDraggable="nodeDraggable",j.NodeResizable="nodeResizable",j.ClickNodeToSelect="clickNodeToSelect",j.PanCanvas="panCanvas",j.MultipleSelect="multipleSelect",j.LassoSelect="lassoSelect",j.Delete="delete",j.AddNewNodes="addNewNodes",j.AddNewEdges="addNewEdges",j.AddNewPorts="addNewPorts",j.AutoFit="autoFit",j.CanvasHorizontalScrollable="canvasHorizontalScrollable",j.CanvasVerticalScrollable="canvasVerticalScrollable",j.NodeHoverView="nodeHoverView",j.PortHoverView="portHoverView",j.AddEdgesByKeyboard="addEdgesByKeyboard",j.A11yFeatures="a11YFeatures",j.EditNode="editNode",j.AutoAlign="autoAlign",j.UndoStack="undoStack",j.CtrlKeyZoom="ctrlKeyZoom",j.LimitBoundary="limitBoundary",j.EditEdge="editEdge",j.InvisibleScrollbar="InvisibleScrollbar"})(GraphFeatures||(GraphFeatures={}));GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.LassoSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.AutoFit,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary,GraphFeatures.EditEdge;const defaultFeatures=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]),dataReadonlyMode=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]);GraphFeatures.ClickNodeToSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.LassoSelect,GraphFeatures.LimitBoundary;const previewMode=new Set([GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AutoFit]),emptyDummyNodes=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),is$1=Object.is;let MapIterator$1=class{constructor(_e,et){this.upstream=_e,this.f=et}[Symbol.iterator](){return this}next(){const _e=this.upstream.next();return _e.done?_e:{done:!1,value:this.f(_e.value)}}};var NodeType$1;(function(j){j[j.Bitmap=0]="Bitmap",j[j.Collision=1]="Collision"})(NodeType$1||(NodeType$1={}));const HASH_CODE_LENGTH=30,BIT_PARTITION_SIZE=5,FULL_MASK=1073741823;function bitPosFrom(j){return 1<>>_e&31}function bitCount(j){return j|=0,j-=j>>>1&1431655765,j=(j&858993459)+(j>>>2&858993459),j=j+(j>>>4)&252645135,j+=j>>>8,j+=j>>>16,j&127}let BitmapIndexedNode$1=class Vl{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(_e,et,tt,rt,nt,ot,it,st){this.type=NodeType$1.Bitmap,this.owner=_e,this.dataMap=et,this.nodeMap=tt,this.keys=rt,this.values=nt,this.children=ot,this.hashes=it,this.size=st}static empty(_e){return new Vl(_e,0,0,[],[],[],[],0)}getKey(_e){return this.keys[_e]}getValue(_e){return this.values[_e]}getHash(_e){return this.hashes[_e]}getNode(_e){return this.children[_e]}contains(_e,et,tt){const rt=maskFrom(et,tt),nt=bitPosFrom(rt),{dataMap:ot,nodeMap:it}=this;if(ot&nt){const st=indexFrom(ot,rt,nt),lt=this.getKey(st);return is$1(lt,_e)}else if(it&nt){const st=indexFrom(it,rt,nt);return this.getNode(st).contains(_e,et,tt+BIT_PARTITION_SIZE)}return!1}get(_e,et,tt){const rt=maskFrom(et,tt),nt=bitPosFrom(rt),{dataMap:ot,nodeMap:it}=this;if(ot&nt){const st=indexFrom(ot,rt,nt),lt=this.getKey(st);return is$1(lt,_e)?this.getValue(st):void 0}else if(it&nt){const st=indexFrom(it,rt,nt);return this.getNode(st).get(_e,et,tt+BIT_PARTITION_SIZE)}}insert(_e,et,tt,rt,nt){const ot=maskFrom(rt,nt),it=bitPosFrom(ot),{dataMap:st,nodeMap:lt}=this;if(st&it){const ut=indexFrom(st,ot,it),ct=this.getKey(ut),dt=this.getValue(ut),ft=this.getHash(ut);if(ft===rt&&is$1(ct,et))return is$1(dt,tt)?this:this.setValue(_e,tt,ut);{const pt=mergeTwoKeyValPairs(_e,ct,dt,ft,et,tt,rt,nt+BIT_PARTITION_SIZE);return this.migrateInlineToNode(_e,it,pt)}}else if(lt&it){const ut=indexFrom(lt,ot,it),dt=this.getNode(ut).insert(_e,et,tt,rt,nt+BIT_PARTITION_SIZE);return this.setNode(_e,1,dt,it)}return this.insertValue(_e,it,et,rt,tt)}update(_e,et,tt,rt,nt){const ot=maskFrom(rt,nt),it=bitPosFrom(ot),{dataMap:st,nodeMap:lt}=this;if(st&it){const ut=indexFrom(st,ot,it),ct=this.getKey(ut);if(this.getHash(ut)===rt&&is$1(ct,et)){const ft=this.getValue(ut),pt=tt(ft);return is$1(ft,pt)?this:this.setValue(_e,pt,ut)}}else if(lt&it){const ut=indexFrom(lt,ot,it),ct=this.getNode(ut),dt=ct.update(_e,et,tt,rt,nt+BIT_PARTITION_SIZE);return dt===ct?this:this.setNode(_e,0,dt,it)}return this}remove(_e,et,tt,rt){const nt=maskFrom(tt,rt),ot=bitPosFrom(nt);if(this.dataMap&ot){const it=indexFrom(this.dataMap,nt,ot),st=this.getKey(it);return is$1(st,et)?this.removeValue(_e,ot):void 0}else if(this.nodeMap&ot){const it=indexFrom(this.nodeMap,nt,ot),st=this.getNode(it),lt=st.remove(_e,et,tt,rt+BIT_PARTITION_SIZE);if(lt===void 0)return;const[ut,ct]=lt;return ut.size===1?this.size===st.size?[new Vl(_e,ot,0,[ut.getKey(0)],[ut.getValue(0)],[],[ut.getHash(0)],1),ct]:[this.migrateNodeToInline(_e,ot,ut),ct]:[this.setNode(_e,-1,ut,ot),ct]}}toOwned(_e){return this.owner===_e?this:new Vl(_e,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new BitmapIndexedNodeIterator(this)}map(_e,et){const tt=this.valueCount,rt=[],nt=[],ot=[];let it=!0;for(let st=0;st=HASH_CODE_LENGTH)return new HashCollisionNode$1(j,tt,[_e,rt],[et,nt]);{const st=maskFrom(tt,it),lt=maskFrom(ot,it);if(st!==lt){const ut=bitPosFrom(st)|bitPosFrom(lt);return stis$1(tt,_e));return et>=0?this.values[et]:void 0}insert(_e,et,tt){const rt=this.keys.findIndex(nt=>is$1(nt,et));if(rt>=0){const nt=this.values[rt];if(is$1(nt,tt))return this;const ot=this.toOwned(_e);return ot.values[rt]=tt,ot}else{const nt=this.toOwned(_e);return nt.keys.push(et),nt.values.push(tt),nt}}update(_e,et,tt){const rt=this.keys.findIndex(nt=>is$1(nt,et));if(rt>=0){const nt=this.values[rt],ot=tt(nt);if(is$1(nt,ot))return this;const it=this.toOwned(_e);return it.values[rt]=ot,it}return this}remove(_e,et){const tt=this.keys.findIndex(nt=>is$1(nt,et));if(tt===-1)return;const rt=this.getValue(tt);return[new Mu(_e,this.hash,this.keys.filter((nt,ot)=>ot!==tt),this.values.filter((nt,ot)=>ot!==tt)),rt]}getKey(_e){return this.keys[_e]}getValue(_e){return this.values[_e]}getHash(){return this.hash}iter(){return new HashCollisionNodeIterator(this)}map(_e,et){const tt=this.size,rt=[];let nt=!1;for(let ot=0;ot=this.node.size)return{done:!0,value:void 0};const _e=this.node.getKey(this.index),et=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[_e,et]}}clone(){const _e=new HashCollisionNodeIterator(this.node);return _e.index=this.index,_e}}function hashing(j){if(j===null)return 1108378658;switch(typeof j){case"boolean":return j?839943201:839943200;case"number":return hashNumber$1(j);case"string":return hashString$1(j);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return hashString$1(String(j))}}function hashString$1(j){let _e=0;for(let et=0;et4294967295;)j/=4294967295,_e^=j;return smi$1(_e)}function smi$1(j){return j&1073741823}class Uid{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const uid$1=new Uid;class HashMap{get size(){return this.root.size}constructor(_e){this.id=uid$1.take(),this.root=_e}static empty(){return HashMapBuilder.empty().finish()}static from(_e){return HashMapBuilder.from(_e).finish()}get(_e){const et=hashing(_e);return this.root.get(_e,et,0)}has(_e){const et=hashing(_e);return this.root.contains(_e,et,0)}set(_e,et){return this.withRoot(this.root.insert(uid$1.peek(),_e,et,hashing(_e),0))}update(_e,et){return this.withRoot(this.root.update(uid$1.peek(),_e,et,hashing(_e),0))}delete(_e){const et=hashing(_e),tt=uid$1.peek(),rt=this.root.remove(tt,_e,et,0);return rt===void 0?this:new HashMap(rt[0])}clone(){return new HashMap(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new MapIterator$1(this.entries(),([,_e])=>_e)}mutate(){return new HashMapBuilder(this.root)}map(_e){return new HashMap(this.root.map(uid$1.peek(),_e))}filter(_e){const et=this.mutate();return this.forEach((tt,rt)=>{_e(tt,rt)||et.delete(rt)}),et.finish()}forEach(_e){this.root.forEach(_e)}find(_e){return this.root.find(_e)}withRoot(_e){return _e===this.root?this:new HashMap(_e)}}class HashMapBuilder{constructor(_e){this.id=uid$1.take(),this.root=_e}static empty(){const _e=uid$1.peek(),et=BitmapIndexedNode$1.empty(_e);return new HashMapBuilder(et)}static from(_e){if(Array.isArray(_e))return HashMapBuilder.fromArray(_e);const et=_e[Symbol.iterator](),tt=HashMapBuilder.empty();let rt=et.next();for(;!rt.done;){const[nt,ot]=rt.value;tt.set(nt,ot),rt=et.next()}return tt}static fromArray(_e){const et=HashMapBuilder.empty();for(let tt=0;tt<_e.length;tt+=1){const[rt,nt]=_e[tt];et.set(rt,nt)}return et}get(_e){const et=hashing(_e);return this.root.get(_e,et,0)}has(_e){const et=hashing(_e);return this.root.contains(_e,et,0)}set(_e,et){return this.root=this.root.insert(this.id,_e,et,hashing(_e),0),this}update(_e,et){const tt=hashing(_e);return this.root=this.root.update(this.id,_e,et,tt,0),this}delete(_e){const et=hashing(_e),tt=this.root.remove(this.id,_e,et,0);return tt!==void 0&&(this.root=tt[0]),this}finish(){return new HashMap(this.root)}}var NodeType;(function(j){j[j.Internal=0]="Internal",j[j.Leaf=1]="Leaf"})(NodeType||(NodeType={}));const MAX_SIZE=31,MIN_SIZE$1=15,HALF_NODE_SPLIT=7;function binaryFind(j,_e){let et=0,tt=j.length;for(;;){if(et+1===tt)return j[et]>=_e?et:tt;const rt=et+tt>>>1;if(j[rt]===_e)return rt;_e=MIN_SIZE$1)return lt;if(tt===rt)return lt.balanceTail(st),lt;const ut=this.getValue(tt);return lt.balanceChild(_e,st,it,ut,tt)}}removeMostRight(_e){const et=this.selfSize,[tt,rt,nt]=this.getChild(et).removeMostRight(_e),ot=this.toOwned(_e);return ot.size-=1,ot.children[et]=nt,nt.selfSizeMIN_SIZE$1)this.rotateRight(et,it,nt,ot);else if(st.selfSize>MIN_SIZE$1)this.rotateLeft(et,st,nt,ot);else{const lt=it.toOwned(_e),ut=st.toOwned(_e),ct=et.getKey(HALF_NODE_SPLIT),dt=et.getValue(HALF_NODE_SPLIT);lt.keys.push(this.getKey(nt-1)),lt.values.push(this.getValue(nt-1)),lt.keys.push(...et.keys.slice(0,HALF_NODE_SPLIT)),lt.values.push(...et.values.slice(0,HALF_NODE_SPLIT)),ut.keys.unshift(tt),ut.values.unshift(rt),ut.keys.unshift(...et.keys.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),ut.values.unshift(...et.values.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),this.keys.splice(nt-1,2,ct),this.values.splice(nt-1,2,dt),this.children.splice(nt-1,3,lt,ut),ot&&(lt.children.push(...et.children.slice(0,HALF_NODE_SPLIT+1)),ut.children.unshift(...et.children.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1+1)),lt.updateSize(),ut.updateSize())}return this}rotateLeft(_e,et,tt,rt){const nt=et.toOwned(this.owner),ot=nt.keys.shift(),it=nt.values.shift(),st=this.getKey(tt),lt=this.getValue(tt);if(_e.keys.push(st),_e.values.push(lt),this.keys[tt]=ot,this.values[tt]=it,this.children[tt+1]=nt,rt){const ut=nt.children.shift();_e.children.push(ut);const ct=ut.size+1;_e.size+=ct,nt.size-=ct}}rotateRight(_e,et,tt,rt){const nt=et.toOwned(this.owner),ot=nt.keys.pop(),it=nt.values.pop(),st=this.getKey(tt-1),lt=this.getValue(tt-1);if(_e.keys.unshift(st),_e.values.unshift(lt),this.keys[tt-1]=ot,this.values[tt-1]=it,this.children[tt-1]=nt,rt){const ut=nt.children.pop();_e.children.unshift(ut);const ct=ut.size+1;_e.size+=ct,nt.size-=ct}}balanceTail(_e){const et=this.selfSize,tt=this.getChild(et-1),rt=_e.type===NodeType.Internal;tt.selfSize===MIN_SIZE$1?(_e.keys.unshift(this.getKey(et-1)),_e.values.unshift(this.getValue(et-1)),_e.keys.unshift(...tt.keys),_e.values.unshift(...tt.values),this.keys.splice(et-1,1),this.values.splice(et-1,1),this.children.splice(et-1,1),rt&&(_e.children.unshift(...tt.children),_e.size+=tt.size+1)):this.rotateRight(_e,tt,et,rt)}balanceHead(_e){const et=this.getChild(1),tt=_e.type===NodeType.Internal;et.selfSize===MIN_SIZE$1?(_e.keys.push(this.getKey(0)),_e.values.push(this.getValue(0)),_e.keys.push(...et.keys),_e.values.push(...et.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),tt&&(_e.children.push(...et.children),_e.size+=et.size+1)):this.rotateLeft(_e,et,0,tt)}updateWithSplit(_e,et,tt,rt,nt,ot){const it=this.toOwned(_e);it.keys.splice(ot,0,rt),it.values.splice(ot,0,nt),it.children.splice(ot,1,et,tt);const st=new InternalNode(_e,it.keys.splice(16,16),it.values.splice(16,16),it.children.splice(16,17),0),lt=it.keys.pop(),ut=it.values.pop();return it.updateSize(),st.updateSize(),[it,st,lt,ut]}updateSize(){let _e=this.selfSize;const et=this.children.length;for(let tt=0;tt{const[ot,it]=nt,st=et(it);return is$1(st,it)?nt:[ot,st]});return this.withRoot(this.itemId,this.hashRoot,rt)}[Symbol.iterator](){return this.entries()}clone(){return new Wl(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new OrderedMapIterator(new BTreeIterator(this.sortedRoot))}values(){return new MapIterator$1(this.entries(),([,_e])=>_e)}mutate(){return new OrderedMapBuilder(this.itemId,this.hashRoot,this.sortedRoot)}map(_e){const et=uid.peek(),tt=nt=>{const[ot,it]=nt,st=_e(it,ot);return is$1(it,st)?nt:[ot,st]},rt=this.sortedRoot.map(et,tt);return new Wl(this.itemId,this.hashRoot,rt)}forEach(_e){this.sortedRoot.forEach(([et,tt])=>{_e(tt,et)})}find(_e){const et=this.sortedRoot.find(([,tt])=>_e(tt));return et?et[1]:void 0}first(){const _e=this.entries().next();if(!_e.done)return _e.value[1]}filter(_e){const et=this.mutate();return this.forEach((tt,rt)=>{_e(tt,rt)||et.delete(rt)}),et.finish()}withRoot(_e,et,tt){return et===this.hashRoot&&tt===this.sortedRoot?this:new Wl(_e,et,tt)}};class OrderedMapIterator{constructor(_e){this.delegate=_e}[Symbol.iterator](){return this.clone()}next(){const _e=this.delegate.next();return _e.done?{done:!0,value:void 0}:{done:!1,value:_e.value[1]}}clone(){return new OrderedMapIterator(this.delegate.clone())}}class OrderedMapBuilder{constructor(_e,et,tt){this.id=uid.take(),this.itemId=_e,this.hashRoot=et,this.sortedRoot=tt}static empty(){const _e=uid.peek(),et=BitmapIndexedNode$1.empty(_e),tt=emptyRoot(_e);return new OrderedMapBuilder(0,et,tt)}static from(_e){if(Array.isArray(_e))return OrderedMapBuilder.fromArray(_e);const et=OrderedMapBuilder.empty(),tt=_e[Symbol.iterator]();let rt=tt.next();for(;!rt.done;){const[nt,ot]=rt.value;et.set(nt,ot),rt=tt.next()}return et}static fromArray(_e){const et=OrderedMapBuilder.empty();for(let tt=0;tt<_e.length;tt+=1){const[rt,nt]=_e[tt];et.set(rt,nt)}return et}delete(_e){const et=hashing(_e),tt=this.hashRoot.remove(this.id,_e,et,0);if(tt===void 0)return this;const rt=tt[1];return this.hashRoot=tt[0],this.sortedRoot=rootRemove(this.id,this.sortedRoot,rt),this}get(_e){var et;const tt=hashing(_e),rt=this.hashRoot.get(_e,tt,0);if(rt!==void 0)return(et=this.sortedRoot.get(rt))===null||et===void 0?void 0:et[1]}has(_e){const et=hashing(_e);return this.hashRoot.contains(_e,et,0)}set(_e,et){let tt=this.hashRoot.get(_e,hashing(_e),0);return tt===void 0&&(tt=this.itemId+1,this.itemId+=1,this.hashRoot=this.hashRoot.insert(this.id,_e,tt,hashing(_e),0)),this.sortedRoot=rootInsert(this.id,this.sortedRoot,tt,[_e,et]),this}update(_e,et){const tt=this.hashRoot.get(_e,hashing(_e),0);return tt?(this.sortedRoot=this.sortedRoot.update(this.id,tt,rt=>{const[nt,ot]=rt,it=et(ot);return is$1(it,ot)?rt:[nt,it]}),this):this}finish(){return new OrderedMap$1(this.itemId,this.hashRoot,this.sortedRoot)}}const getPortPosition=(j,_e,et)=>{const tt=getRectWidth(et,j),rt=getRectHeight(et,j),nt=_e.position?_e.position[0]*tt:tt*.5,ot=j.x+nt,it=_e.position?_e.position[1]*rt:rt,st=j.y+it;return{x:ot,y:st}},getPortPositionByPortId=(j,_e,et)=>{const tt=getNodeConfig(j,et);if(!tt)return;const nt=(j.ports||[]).find(ot=>ot.id===_e);if(!nt){Debug.warn(`invalid port id ${JSON.stringify(nt)}`);return}return getPortPosition(j,nt,tt)},identical=j=>j,isMobile=()=>[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(_e=>navigator.userAgent.match(_e));var BrowserType;(function(j){j.Unknown="Unknown",j.Edge="Edge",j.EdgeChromium="EdgeChromium",j.Opera="Opera",j.Chrome="Chrome",j.IE="IE",j.Firefox="Firefox",j.Safari="Safari",j.Electron="Electron"})(BrowserType||(BrowserType={}));const getBrowser=()=>{const j=navigator.userAgent.toLowerCase();if(j.indexOf("electron")>-1)return BrowserType.Electron;switch(!0){case j.indexOf("edge")>-1:return BrowserType.Edge;case j.indexOf("edg")>-1:return BrowserType.EdgeChromium;case(j.indexOf("opr")>-1&&!!window.opr):return BrowserType.Opera;case(j.indexOf("chrome")>-1&&!!window.chrome):return BrowserType.Chrome;case j.indexOf("trident")>-1:return BrowserType.IE;case j.indexOf("firefox")>-1:return BrowserType.Firefox;case j.indexOf("safari")>-1:return BrowserType.Safari;default:return BrowserType.Unknown}},isSupported=()=>{if(isMobile())return!1;const j=getBrowser();return[BrowserType.Chrome,BrowserType.EdgeChromium,BrowserType.Firefox,BrowserType.Safari,BrowserType.Electron].indexOf(j)>-1},isMacOs=navigator.userAgent.includes("Macintosh"),metaControl=j=>isMacOs?j.metaKey:j.ctrlKey,checkIsMultiSelect=j=>j.shiftKey||metaControl(j),transformPoint=(j,_e,et)=>({x:et[0]*j+et[2]*_e+et[4],y:et[1]*j+et[3]*_e+et[5]}),reverseTransformPoint=(j,_e,et)=>{const[tt,rt,nt,ot,it,st]=et;return{x:((j-it)*ot-(_e-st)*nt)/(tt*ot-rt*nt),y:((j-it)*rt-(_e-st)*tt)/(rt*nt-tt*ot)}},getPointDeltaByClientDelta=(j,_e,et)=>{const[tt,rt,nt,ot]=et,it=ot*j/(tt*ot-rt*nt)+nt*_e/(rt*nt-tt*ot),st=rt*j/(rt*nt-tt*ot)+tt*_e/(tt*ot-rt*nt);return{x:it,y:st}},getClientDeltaByPointDelta=(j,_e,et)=>{if(!et)return{x:j,y:_e};const[tt,rt,nt,ot]=et;return transformPoint(j,_e,[tt,rt,nt,ot,0,0])},getRealPointFromClientPoint=(j,_e,et)=>{const{rect:tt}=et,rt=j-tt.left,nt=_e-tt.top;return reverseTransformPoint(rt,nt,et.transformMatrix)},getClientPointFromRealPoint=(j,_e,et)=>{const{x:tt,y:rt}=transformPoint(j,_e,et.transformMatrix),{rect:nt}=et;return{x:tt+nt.left,y:rt+nt.top}},getContainerClientPoint=(j,_e,et)=>{const tt=getClientPointFromRealPoint(j,_e,et),{rect:rt}=et;return{x:tt.x-rt.left,y:tt.y-rt.top}};function markEdgeDirty(j,_e){j.update(_e,et=>et.shallow())}const getNearestConnectablePort=j=>{const{parentNode:_e,clientX:et,clientY:tt,graphConfig:rt,viewport:nt}=j;let ot=1/0,it;if(!_e.ports)return;const st=getRealPointFromClientPoint(et,tt,nt);return _e.ports.forEach(lt=>{if(isConnectable(rt,Object.assign(Object.assign({},j),{model:lt}))){const ut=getPortPositionByPortId(_e,lt.id,rt);if(!ut)return;const ct=st.x-ut.x,dt=st.y-ut.y,ft=ct*ct+dt*dt;ft{const et=j.getPortConfig(_e.model);return et?et.getIsConnectable(_e):!1},filterSelectedItems=j=>{const _e=new Map,et=[];return j.nodes.forEach(({inner:tt})=>{isSelected(tt)&&_e.set(tt.id,tt)}),j.edges.forEach(({inner:tt})=>{(isSelected(tt)||_e.has(tt.source)&&_e.has(tt.target))&&et.push(tt)}),{nodes:Array.from(_e.values()),edges:et}},getNeighborPorts=(j,_e,et)=>{const tt=[],rt=j.getEdgesBySource(_e,et),nt=j.getEdgesByTarget(_e,et);return rt==null||rt.forEach(ot=>{const it=j.edges.get(ot);it&&tt.push({nodeId:it.target,portId:it.targetPortId})}),nt==null||nt.forEach(ot=>{const it=j.edges.get(ot);it&&tt.push({nodeId:it.source,portId:it.sourcePortId})}),tt},unSelectAllEntity=()=>j=>j.mapNodes(_e=>_e.update(et=>{var tt;const rt=Object.assign(Object.assign({},et),{ports:(tt=et.ports)===null||tt===void 0?void 0:tt.map(updateStatus(replace$1(GraphPortStatus.Default)))});return updateStatus(replace$1(GraphNodeStatus.Default))(rt)})).mapEdges(_e=>_e.update(updateStatus(replace$1(GraphEdgeStatus.Default)))),nodeSelection=(j,_e)=>{if(isNodeEditing(_e))return identical;const et=checkIsMultiSelect(j);return isSelected(_e)&&!et?identical:tt=>{const rt=et?nt=>nt.id!==_e.id?isSelected(nt):j.button===MouseEventButton.Secondary?!0:!isSelected(_e):nt=>nt.id===_e.id;return tt.selectNodes(rt,_e.id)}},getNodeAutomationId=j=>{var _e;return`node-container-${(_e=j.name)!==null&&_e!==void 0?_e:"unnamed"}-${j.id}`},getPortAutomationId=(j,_e)=>`port-${_e.name}-${_e.id}-${j.name}-${j.id}`,getNodeUid=(j,_e)=>`node:${j}:${_e.id}`,getPortUid=(j,_e,et)=>`port:${j}:${_e.id}:${et.id}`,getEdgeUid=(j,_e)=>`edge:${j}:${_e.id}`;function preventSpread(j){Object.defineProperty(j,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Debug.error(`${j.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class EdgeModel{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(_e){this.inner=_e,preventSpread(this)}static fromJSON(_e){return new EdgeModel(_e)}updateStatus(_e){return this.update(updateStatus(_e))}update(_e){const et=_e(this.inner);return et===this.inner?this:new EdgeModel(et)}shallow(){return new EdgeModel(this.inner)}toJSON(){return this.inner}}const is$2=Object.is;function mapCow(j,_e){const et=[];let tt=!0;for(let rt=0;rttt.id===_e)}link({prev:_e,next:et}){return _e===this.prev&&et===this.next?this:new NodeModel(this.inner,this.portPositionCache,_e??this.prev,et??this.next)}updateStatus(_e){return this.update(updateStatus(_e))}update(_e){const et=_e(this.inner);return et===this.inner?this:new NodeModel(et,new Map,this.prev,this.next)}updateData(_e){return this.data?this.update(et=>{const tt=_e(et.data);return tt===et.data?et:Object.assign(Object.assign({},et),{data:tt})}):this}getPortPosition(_e,et){let tt=this.portPositionCache.get(_e);return tt||(tt=getPortPositionByPortId(this.inner,_e,et),this.portPositionCache.set(_e,tt)),tt}hasPort(_e){var et;return!!(!((et=this.inner.ports)===null||et===void 0)&&et.find(tt=>tt.id===_e))}updatePositionAndSize(_e){const{x:et,y:tt,width:rt,height:nt}=_e,ot=Object.assign(Object.assign({},this.inner),{x:et,y:tt,width:rt??this.inner.width,height:nt??this.inner.height});return new NodeModel(ot,new Map,this.prev,this.next)}updatePorts(_e){if(!this.inner.ports)return this;const et=mapCow(this.inner.ports,_e),tt=this.inner.ports===et?this.inner:Object.assign(Object.assign({},this.inner),{ports:et});return tt===this.inner?this:new NodeModel(tt,new Map,this.prev,this.next)}invalidCache(){return new NodeModel(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class GraphModel{constructor(_e){this.nodes=_e.nodes,this.edges=_e.edges,this.groups=_e.groups,this.head=_e.head,this.tail=_e.tail,this.edgesBySource=_e.edgesBySource,this.edgesByTarget=_e.edgesByTarget,this.selectedNodes=_e.selectedNodes,preventSpread(this)}static empty(){return new GraphModel({nodes:OrderedMap$1.empty(),edges:HashMap.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:HashMap.empty(),edgesByTarget:HashMap.empty(),selectedNodes:new Set})}static fromJSON(_e){var et;const tt=OrderedMap$1.empty().mutate(),rt=HashMap.empty().mutate();let nt,ot;if(_e.nodes.length===0)nt=void 0,ot=void 0;else if(_e.nodes.length===1){const lt=_e.nodes[0];tt.set(lt.id,NodeModel.fromJSON(lt,void 0,void 0)),nt=lt.id,ot=lt.id}else{const lt=_e.nodes[0],ut=_e.nodes[1],ct=_e.nodes[_e.nodes.length-1];nt=lt.id,ot=ct.id,tt.set(lt.id,NodeModel.fromJSON(lt,void 0,ut.id));let dt=_e.nodes[0];if(_e.nodes.length>2)for(let ft=1;ft<_e.nodes.length-1;ft+=1){const pt=_e.nodes[ft],gt=_e.nodes[ft+1];tt.set(pt.id,NodeModel.fromJSON(pt,dt.id,gt.id)),dt=pt}tt.set(ct.id,NodeModel.fromJSON(ct,dt.id,void 0))}const it=HashMapBuilder.empty(),st=HashMapBuilder.empty();for(const lt of _e.edges)rt.set(lt.id,EdgeModel.fromJSON(lt)),setEdgeByPortMutable(it,lt.id,lt.source,lt.sourcePortId),setEdgeByPortMutable(st,lt.id,lt.target,lt.targetPortId);return new GraphModel({nodes:tt.finish(),edges:rt.finish(),groups:(et=_e.groups)!==null&&et!==void 0?et:[],head:nt,tail:ot,edgesBySource:it.finish(),edgesByTarget:st.finish(),selectedNodes:new Set})}getNavigationFirstNode(){if(this.head!==void 0)return this.nodes.get(this.head)}updateNode(_e,et){var tt,rt;const nt=this.nodes.update(_e,it=>it.update(et));if(nt===this.nodes)return this;const ot=this.edges.mutate();return(tt=this.edgesBySource.get(_e))===null||tt===void 0||tt.forEach(it=>{it.forEach(st=>{markEdgeDirty(ot,st)})}),(rt=this.edgesByTarget.get(_e))===null||rt===void 0||rt.forEach(it=>{it.forEach(st=>{markEdgeDirty(ot,st)})}),this.merge({nodes:nt,edges:ot.finish()})}updateNodeData(_e,et){return this.merge({nodes:this.nodes.update(_e,tt=>tt.updateData(et))})}updatePort(_e,et,tt){const rt=this.nodes.update(_e,nt=>nt.updatePorts(ot=>ot.id===et?tt(ot):ot));return this.merge({nodes:rt})}insertNode(_e){const et=this.nodes.mutate().set(_e.id,NodeModel.fromJSON(_e,this.tail,void 0));return this.tail&&!this.nodes.has(_e.id)&&et.update(this.tail,tt=>tt.link({next:_e.id})),this.merge({nodes:et.finish(),head:this.nodes.size===0?_e.id:this.head,tail:_e.id})}deleteItems(_e){var et;const tt=new Set,rt=this.nodes.mutate();let nt=this.head===void 0?void 0:this.nodes.get(this.head),ot=nt,it;const st=this.edgesBySource.mutate(),lt=this.edgesByTarget.mutate();for(;ot!==void 0;){const ct=ot.next?this.nodes.get(ot.next):void 0;!((et=_e.node)===null||et===void 0)&&et.call(_e,ot.inner)?(rt.update(ot.id,dt=>dt.link({prev:it==null?void 0:it.id}).update(ft=>has$1(GraphNodeStatus.Editing)(ft.status)?ft:Object.assign(Object.assign({},ft),{status:GraphNodeStatus.Default}))),it=ot):(rt.delete(ot.id),st.delete(ot.id),lt.delete(ot.id),tt.add(ot.id),it&&rt.update(it.id,dt=>dt.link({next:ot==null?void 0:ot.next})),ct&&rt.update(ct.id,dt=>dt.link({prev:it==null?void 0:it.id})),ot===nt&&(nt=ct)),ot=ct}const ut=this.edges.mutate();return this.edges.forEach(ct=>{var dt,ft;!tt.has(ct.source)&&!tt.has(ct.target)&&(!((ft=(dt=_e.edge)===null||dt===void 0?void 0:dt.call(_e,ct))!==null&&ft!==void 0)||ft)?ut.update(ct.id,pt=>pt.update(updateStatus(replace$1(GraphEdgeStatus.Default)))):(ut.delete(ct.id),deleteEdgeByPort(st,ct.id,ct.source,ct.sourcePortId),deleteEdgeByPort(lt,ct.id,ct.target,ct.targetPortId))}),this.merge({nodes:rt.finish(),edges:ut.finish(),head:nt==null?void 0:nt.id,tail:it==null?void 0:it.id,edgesBySource:st.finish(),edgesByTarget:lt.finish()})}insertEdge(_e){if(this.isEdgeExist(_e.source,_e.sourcePortId,_e.target,_e.targetPortId)||!this.nodes.has(_e.source)||!this.nodes.has(_e.target))return this;const et=setEdgeByPort(this.edgesBySource,_e.id,_e.source,_e.sourcePortId),tt=setEdgeByPort(this.edgesByTarget,_e.id,_e.target,_e.targetPortId);return this.merge({nodes:this.nodes.update(_e.source,rt=>rt.invalidCache()).update(_e.target,rt=>rt.invalidCache()),edges:this.edges.set(_e.id,EdgeModel.fromJSON(_e)).map(rt=>rt.updateStatus(replace$1(GraphEdgeStatus.Default))),edgesBySource:et,edgesByTarget:tt})}updateEdge(_e,et){return this.merge({edges:this.edges.update(_e,tt=>tt.update(et))})}deleteEdge(_e){const et=this.edges.get(_e);return et?this.merge({edges:this.edges.delete(_e),edgesBySource:deleteEdgeByPort(this.edgesBySource,et.id,et.source,et.sourcePortId),edgesByTarget:deleteEdgeByPort(this.edgesByTarget,et.id,et.target,et.targetPortId)}):this}updateNodesPositionAndSize(_e){const et=new Set,tt=this.nodes.mutate(),rt=this.edges.mutate();return _e.forEach(nt=>{var ot,it;et.add(nt.id),tt.update(nt.id,st=>st.updatePositionAndSize(nt)),(ot=this.edgesBySource.get(nt.id))===null||ot===void 0||ot.forEach(st=>{st.forEach(lt=>{markEdgeDirty(rt,lt)})}),(it=this.edgesByTarget.get(nt.id))===null||it===void 0||it.forEach(st=>{st.forEach(lt=>{markEdgeDirty(rt,lt)})})}),this.merge({nodes:tt.finish(),edges:rt.finish()})}mapNodes(_e){return this.merge({nodes:this.nodes.map(_e)})}mapEdges(_e){return this.merge({edges:this.edges.map(_e)})}selectNodes(_e,et){const tt=new Set,rt=this.nodes.map(it=>{const st=_e(it.inner);return st&&tt.add(it.id),it.updatePorts(updateStatus(replace$1(GraphPortStatus.Default))).updateStatus(resetConnectStatus(st?GraphNodeStatus.Selected:GraphNodeStatus.UnconnectedToSelected))}).mutate();if(tt.size===0)this.nodes.forEach(it=>rt.update(it.id,st=>st.updateStatus(replace$1(GraphNodeStatus.Default))));else if(et){const it=rt.get(et);it&&(rt.delete(et),rt.set(it.id,it))}const nt=it=>{rt.update(it,st=>st.updateStatus(replace$1(isSelected(st)?GraphNodeStatus.Selected:GraphNodeStatus.ConnectedToSelected)))},ot=tt.size?this.edges.map(it=>{let st=GraphEdgeStatus.UnconnectedToSelected;return tt.has(it.source)&&(nt(it.target),st=GraphEdgeStatus.ConnectedToSelected),tt.has(it.target)&&(nt(it.source),st=GraphEdgeStatus.ConnectedToSelected),it.updateStatus(replace$1(st))}):this.edges.map(it=>it.updateStatus(replace$1(GraphEdgeStatus.Default)));return this.merge({nodes:rt.finish(),edges:ot,selectedNodes:tt})}getEdgesBySource(_e,et){var tt;return(tt=this.edgesBySource.get(_e))===null||tt===void 0?void 0:tt.get(et)}getEdgesByTarget(_e,et){var tt;return(tt=this.edgesByTarget.get(_e))===null||tt===void 0?void 0:tt.get(et)}isPortConnectedAsSource(_e,et){var tt,rt;return((rt=(tt=this.getEdgesBySource(_e,et))===null||tt===void 0?void 0:tt.size)!==null&&rt!==void 0?rt:0)>0}isPortConnectedAsTarget(_e,et){var tt,rt;return((rt=(tt=this.getEdgesByTarget(_e,et))===null||tt===void 0?void 0:tt.size)!==null&&rt!==void 0?rt:0)>0}shallow(){return this.merge({})}toJSON(){const _e=[];let et=this.head&&this.nodes.get(this.head);for(;et;)_e.push(et.inner),et=et.next&&this.nodes.get(et.next);const tt=Array.from(this.edges.values()).map(rt=>rt.inner);return{nodes:_e,edges:tt}}isEdgeExist(_e,et,tt,rt){const nt=this.getEdgesBySource(_e,et),ot=this.getEdgesByTarget(tt,rt);if(!nt||!ot)return!1;let it=!1;return nt.forEach(st=>{ot.has(st)&&(it=!0)}),it}merge(_e){var et,tt,rt,nt,ot,it,st,lt;return new GraphModel({nodes:(et=_e.nodes)!==null&&et!==void 0?et:this.nodes,edges:(tt=_e.edges)!==null&&tt!==void 0?tt:this.edges,groups:(rt=_e.groups)!==null&&rt!==void 0?rt:this.groups,head:(nt=_e.head)!==null&&nt!==void 0?nt:this.head,tail:(ot=_e.tail)!==null&&ot!==void 0?ot:this.tail,edgesBySource:(it=_e.edgesBySource)!==null&&it!==void 0?it:this.edgesBySource,edgesByTarget:(st=_e.edgesByTarget)!==null&&st!==void 0?st:this.edgesByTarget,selectedNodes:(lt=_e.selectedNodes)!==null&<!==void 0?lt:this.selectedNodes})}}function setEdgeByPort(j,_e,et,tt){return j.has(et)?j.update(et,rt=>{const nt=rt.get(tt);return new Map(rt).set(tt,(nt?new Set(nt):new Set).add(_e))}):j.set(et,new Map([[tt,new Set([_e])]]))}function setEdgeByPortMutable(j,_e,et,tt){j.has(et)?j.update(et,rt=>{let nt=rt.get(tt);return nt||(nt=new Set,rt.set(tt,nt)),nt.add(_e),rt}):j.set(et,new Map([[tt,new Set([_e])]]))}function deleteEdgeByPort(j,_e,et,tt){return j.has(et)?j.update(et,rt=>{const nt=rt.get(tt);if(!nt)return rt;const ot=new Set(nt);return ot.delete(_e),new Map(rt).set(tt,ot)}):j}var CanvasMouseMode;(function(j){j.Pan="Pan",j.Select="Select"})(CanvasMouseMode||(CanvasMouseMode={}));var GraphBehavior;(function(j){j.Default="default",j.Dragging="dragging",j.Panning="panning",j.MultiSelect="multiSelect",j.Connecting="connecting",j.AddingNode="addingNode"})(GraphBehavior||(GraphBehavior={}));function clamp$1(j,_e,et){return j>et?j:_e{const{instance:tt,maxWait:rt}=et||{};let nt=0,ot;return(...st)=>{if(window.clearTimeout(nt),isDef(rt)){const lt=Date.now();if(!isDef(ot))ot=lt;else if(lt-ot>=rt){ot=void 0,it(st);return}}nt=window.setTimeout(()=>{it(st)},_e)};function it(st){j.apply(tt,st)}},emptyArrayInstance=[];function constantEmptyArray(){return emptyArrayInstance}const checkRectIntersect=(j,_e)=>{const et=j.maxX<_e.minX,tt=j.minX>_e.maxX,rt=j.minY>_e.maxY,nt=j.maxY<_e.minY;return!(et||tt||rt||nt)},isPointInRect=(j,_e)=>{const{minX:et,minY:tt,maxX:rt,maxY:nt}=j,{x:ot,y:it}=_e;return ot>et&&ottt&&itMath.pow(j,2),distance=(j,_e,et,tt)=>Math.sqrt(square$1(et-j)+square$1(tt-_e)),getLinearFunction=(j,_e,et,tt)=>j===et?()=>Number.MAX_SAFE_INTEGER:rt=>(tt-_e)/(et-j)*rt+(_e*et-tt*j)/(et-j),shallowEqual$1=(j,_e)=>{if(!j||j.length!==_e.length)return!1;for(let et=0;et{const nt=_e?Array.isArray(_e)?_e:_e.apply(void 0,rt):rt;return shallowEqual$1(et,nt)||(et=nt,tt=j.apply(void 0,rt)),tt}}var Direction$1;(function(j){j[j.X=0]="X",j[j.Y=1]="Y",j[j.XY=2]="XY"})(Direction$1||(Direction$1={}));const isViewportComplete=j=>!!j.rect,getNodeRect=(j,_e)=>{const{x:et,y:tt}=j,{width:rt,height:nt}=getNodeSize(j,_e);return{x:et,y:tt,width:rt,height:nt}},isNodeVisible=(j,_e,et)=>isRectVisible(getNodeRect(j,et),_e),isRectVisible=(j,_e)=>{const{x:et,y:tt,width:rt,height:nt}=j;return isPointVisible({x:et,y:tt},_e)||isPointVisible({x:et+rt,y:tt},_e)||isPointVisible({x:et+rt,y:tt+nt},_e)||isPointVisible({x:et,y:tt+nt},_e)},isPointVisible=(j,_e)=>{const{x:et,y:tt}=getContainerClientPoint(j.x,j.y,_e),{height:rt,width:nt}=_e.rect;return et>0&&et0&&tt{const tt=[];return j.forEach(rt=>{isNodeVisible(rt,_e,et)&&tt.push(rt.inner)}),tt},getRenderedNodes=(j,_e)=>{const et=[],tt=getRenderedArea(_e);return j.forEach(rt=>{isNodeInRenderedArea(rt,tt)&&et.push(rt.inner)}),et},isNodeInRenderedArea=(j,_e)=>isPointInRect(_e,j),getVisibleArea=j=>{if(!isViewportComplete(j))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:_e,transformMatrix:et}=j,tt=0,rt=0,nt=_e.width,ot=_e.height,it=reverseTransformPoint(tt,rt,et),st=reverseTransformPoint(nt,ot,et);return{minX:it.x,minY:it.y,maxX:st.x,maxY:st.y}},getRenderedArea=j=>{if(!isViewportComplete(j))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:_e,transformMatrix:et}=j,tt=0,rt=0,nt=_e.width,ot=_e.height,it=reverseTransformPoint(tt-_e.width,rt-_e.height,et),st=reverseTransformPoint(nt+_e.width,ot+_e.height,et);return{minX:it.x,minY:it.y,maxX:st.x,maxY:st.y}},normalizeSpacing=j=>j?typeof j=="number"?{top:j,right:j,bottom:j,left:j}:Object.assign({top:0,right:0,bottom:0,left:0},j):{top:0,right:0,bottom:0,left:0},zoomTo=({scale:j,anchor:_e,direction:et,limitScale:tt})=>rt=>{const nt=tt(j)/rt.transformMatrix[0],ot=tt(j)/rt.transformMatrix[3],{x:it,y:st}=_e,lt=it*(1-nt),ut=st*(1-ot);let ct;switch(et){case Direction$1.X:ct=[j,0,0,rt.transformMatrix[3],rt.transformMatrix[4]*nt+lt,rt.transformMatrix[5]];break;case Direction$1.Y:ct=[rt.transformMatrix[0],0,0,j,rt.transformMatrix[4],rt.transformMatrix[5]*ot+ut];break;case Direction$1.XY:default:ct=[j,0,0,j,rt.transformMatrix[4]*nt+lt,rt.transformMatrix[5]*ot+ut]}return Object.assign(Object.assign({},rt),{transformMatrix:ct})},zoom=({scale:j,anchor:_e,direction:et,limitScale:tt})=>j===1?identical:rt=>{let nt;switch(et){case Direction$1.X:return zoomTo({anchor:_e,direction:et,limitScale:tt,scale:rt.transformMatrix[0]*j})(rt);case Direction$1.Y:return zoomTo({anchor:_e,direction:et,limitScale:tt,scale:rt.transformMatrix[3]*j})(rt);case Direction$1.XY:default:{const ot=tt(rt.transformMatrix[0]*j),it=tt(rt.transformMatrix[3]*j),st=ot/rt.transformMatrix[0],lt=it/rt.transformMatrix[3],{x:ut,y:ct}=_e,dt=ut*(1-st),ft=ct*(1-lt);nt=[ot,0,0,it,rt.transformMatrix[4]*st+dt,rt.transformMatrix[5]*lt+ft]}}return Object.assign(Object.assign({},rt),{transformMatrix:nt})},pan=(j,_e)=>j===0&&_e===0?identical:et=>Object.assign(Object.assign({},et),{transformMatrix:[et.transformMatrix[0],et.transformMatrix[1],et.transformMatrix[2],et.transformMatrix[3],et.transformMatrix[4]+j,et.transformMatrix[5]+_e]}),minimapPan=(j,_e)=>j===0&&_e===0?identical:et=>{const[tt,rt,nt,ot]=et.transformMatrix;return Object.assign(Object.assign({},et),{transformMatrix:[tt,rt,nt,ot,et.transformMatrix[4]+tt*j+rt*_e,et.transformMatrix[5]+nt*j+ot*_e]})},getContentArea$1=(j,_e,et)=>{let tt=1/0,rt=1/0,nt=1/0,ot=1/0,it=-1/0,st=-1/0;return(et===void 0?dt=>j.nodes.forEach(dt):dt=>et==null?void 0:et.forEach(ft=>{const pt=j.nodes.get(ft);pt&&dt(pt)}))(dt=>{const{width:ft,height:pt}=getNodeSize(dt,_e);dt.xit&&(it=dt.x+ft),dt.y+pt>st&&(st=dt.y+pt),ft{let{width:et,height:tt}=j,{width:rt,height:nt}=_e;if(et>rt){const ot=et;et=rt,rt=ot}if(tt>nt){const ot=tt;tt=nt,nt=ot}return{nodeMinVisibleWidth:et,nodeMinVisibleHeight:tt,nodeMaxVisibleWidth:rt,nodeMaxVisibleHeight:nt}},getScaleRange=(j,{width:_e,height:et})=>{const{nodeMinVisibleWidth:tt,nodeMinVisibleHeight:rt,nodeMaxVisibleWidth:nt,nodeMaxVisibleHeight:ot}=normalizeNodeVisibleMinMax(j);let it=0,st=0,lt=1/0,ut=1/0;return _e&&(it=tt/_e,lt=nt/_e),et&&(st=rt/et,ut=ot/et),{minScaleX:it,minScaleY:st,maxScaleX:lt,maxScaleY:ut}},getZoomFitMatrix=j=>{const{data:_e,graphConfig:et,disablePan:tt,direction:rt,rect:nt}=j,{nodes:ot}=_e;if(ot.size===0)return[1,0,0,1,0,0];const{minNodeWidth:it,minNodeHeight:st,minNodeX:lt,minNodeY:ut,maxNodeX:ct,maxNodeY:dt}=getContentArea$1(_e,et),{minScaleX:ft,minScaleY:pt,maxScaleX:gt,maxScaleY:mt}=getScaleRange(j,{width:it,height:st}),bt=normalizeSpacing(j.spacing),{width:_t,height:xt}=nt,yt=_t/(ct-lt+bt.left+bt.right),Et=xt/(dt-ut+bt.top+bt.bottom),St=rt===Direction$1.Y?Math.min(Math.max(ft,pt,Et),gt,mt):Math.min(Math.max(ft,pt,Math.min(yt,Et)),mt,mt),Tt=rt===Direction$1.XY?Math.min(Math.max(ft,yt),gt):St,kt=rt===Direction$1.XY?Math.min(Math.max(pt,Et),mt):St;if(tt)return[Tt,0,0,kt,0,0];const $t=-Tt*(lt-bt.left),Ct=-kt*(ut-bt.top);if(getVisibleNodes(_e.nodes,{rect:nt,transformMatrix:[Tt,0,0,kt,$t,Ct]},et).length>0)return[Tt,0,0,kt,$t,Ct];let Nt=_e.nodes.first();return Nt&&_e.nodes.forEach(Ot=>{Nt.y>Ot.y&&(Nt=Ot)}),[Tt,0,0,kt,-Tt*(Nt.x-bt.left),-kt*(Nt.y-bt.top)]},focusArea=(j,_e,et,tt,rt)=>{const nt=et-j,ot=tt-_e,it=Math.min(rt.rect.width/nt,rt.rect.height/ot),st=-it*(j+nt/2)+rt.rect.width/2,lt=-it*(_e+ot/2)+rt.rect.height/2;return Object.assign(Object.assign({},rt),{transformMatrix:[it,0,0,it,st,lt]})};function getContainerCenter(j){const _e=j.current;if(!_e)return;const et=_e.width/2,tt=_e.height/2;return{x:et,y:tt}}function getRelativePoint(j,_e){const et=_e.clientX-j.left,tt=_e.clientY-j.top;return{x:et,y:tt}}const scrollIntoView$1=(j,_e,et,tt,rt)=>{if(!et)return identical;const{width:nt,height:ot}=et;return!(j<0||j>nt||_e<0||_e>ot)&&!tt?identical:st=>{const lt=rt?rt.x-j:nt/2-j,ut=rt?rt.y-_e:ot/2-_e;return Object.assign(Object.assign({},st),{transformMatrix:[st.transformMatrix[0],st.transformMatrix[1],st.transformMatrix[2],st.transformMatrix[3],st.transformMatrix[4]+lt,st.transformMatrix[5]+ut]})}},getScaleLimit=(j,_e)=>{const{minNodeWidth:et,minNodeHeight:tt}=getContentArea$1(j,_e.graphConfig),{minScaleX:rt,minScaleY:nt}=getScaleRange(_e,{width:et,height:tt});return Math.max(rt,nt)},getContentArea=memoize$2(getContentArea$1),getOffsetLimit=({data:j,graphConfig:_e,rect:et,transformMatrix:tt,canvasBoundaryPadding:rt,groupPadding:nt})=>{var ot,it,st,lt;const ut=getContentArea(j,_e),ct=getClientDeltaByPointDelta(ut.minNodeX-((nt==null?void 0:nt.left)||0),ut.minNodeY-((nt==null?void 0:nt.top)||0),tt);ct.x-=(ot=rt==null?void 0:rt.left)!==null&&ot!==void 0?ot:0,ct.y-=(it=rt==null?void 0:rt.top)!==null&&it!==void 0?it:0;const dt=getClientDeltaByPointDelta(ut.maxNodeX+((nt==null?void 0:nt.right)||0),ut.maxNodeY+((nt==null?void 0:nt.bottom)||0),tt);dt.x+=(st=rt==null?void 0:rt.right)!==null&&st!==void 0?st:0,dt.y+=(lt=rt==null?void 0:rt.bottom)!==null&<!==void 0?lt:0;let ft=-ct.x||0,pt=-ct.y||0,gt=et.width-dt.x||0,mt=et.height-dt.y||0;if(gt({present:_e,past:{next:j.past,value:et(j.present)},future:null}),undo=j=>j.past?{present:j.past.value,past:j.past.next,future:{next:j.future,value:j.present}}:j,redo=j=>j.future?{present:j.future.value,past:{next:j.past,value:j.present},future:j.future.next}:j,resetUndoStack=j=>({present:j,future:null,past:null}),isWithinThreshold=(j,_e,et)=>Math.abs(j){warnGraphStateContext()}},EMPTY_CONNECT_STATE={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}},GraphValueContext=reactExports.createContext(new Proxy(GraphModel.empty(),{get:(j,_e)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(j,_e))})),GraphStateContext=reactExports.createContext(defaultGraphStateContext),SlotsContext=reactExports.createContext({});class EventChannel{constructor(){this.listenersRef=reactExports.createRef(),this.externalHandlerRef=reactExports.createRef(),this.queue=[],this.working=!1}trigger(_e){this.working?this.queue.push(_e):(this.working=!0,reactDomExports.unstable_batchedUpdates(()=>{this.callHandlers(_e);for(let et=0;et{this.dispatchDelegate(tt,rt)},this.state=_e,this.UNSAFE_latestState=_e,this.dispatchDelegate=et}setMouseClientPosition(_e){this.mouseClientPoint=_e}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(_e){this.behavior=_e}getData(){return this.state.data.present}getGlobalEventTarget(){var _e,et;return(et=(_e=this.getGlobalEventTargetDelegate)===null||_e===void 0?void 0:_e.call(this))!==null&&et!==void 0?et:window}}function useConst(j){const _e=reactExports.useRef();return _e.current===void 0&&(_e.current=j()),_e.current}const noop$2=()=>{};class ErrorBoundary extends reactExports.Component{constructor(_e){super(_e),this.state={hasError:!1}}static getDerivedStateFromError(_e){return{hasError:!0,error:_e}}componentDidCatch(_e,et){console.error(_e),this.setState({error:_e,errorInfo:et})}render(){var _e,et;if(!this.state.hasError)return this.props.children;if(this.props.renderOnError)return(_e=this.props.renderOnError(this.state.error,this.state.errorInfo,this.props.children))!==null&&_e!==void 0?_e:null;const tt=this.state.errorInfo?(et=this.state.errorInfo.componentStack)===null||et===void 0?void 0:et.split(` -`):[];return jsxRuntimeExports.jsxs("div",Object.assign({style:{color:"red"}},{children:[jsxRuntimeExports.jsx("h1",{children:"Something went wrong."}),jsxRuntimeExports.jsx("p",{children:`Error: ${this.state.error}`}),jsxRuntimeExports.jsx("p",{children:`ErrorInfo: ${JSON.stringify(this.state.errorInfo)}`}),jsxRuntimeExports.jsx("h2",{children:"Component Stack"}),(tt??[]).map((rt,nt)=>jsxRuntimeExports.jsx("p",{children:rt},nt))]}))}}const EMPTY_CONNECT_CONTEXT={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},ConnectingStateContext=reactExports.createContext(EMPTY_CONNECT_CONTEXT);ConnectingStateContext.displayName="ConnectingStateContext";const ConnectingState=({children:j,data:_e,connectState:et})=>{let tt,rt,nt,ot;et&&(tt=_e.nodes.get(et.sourceNode),rt=tt==null?void 0:tt.getPort(et.sourcePort),nt=et.targetNode?_e.nodes.get(et.targetNode):void 0,ot=et.targetPort?nt==null?void 0:nt.getPort(et.targetPort):void 0);const it=reactExports.useMemo(()=>({sourceNode:tt,sourcePort:rt,targetNode:nt,targetPort:ot}),[tt,rt,nt,ot]);return jsxRuntimeExports.jsx(ConnectingStateContext.Provider,Object.assign({value:it},{children:j}))};ConnectingState.displayName="ConnectingState";const AlignmentLinesContext=reactExports.createContext([]),GraphControllerContext=reactExports.createContext(new GraphController(EMPTY_GRAPH_STATE,noop$2));function GraphStateStore(j){const{graphController:_e,state:et,dispatch:tt,children:rt}=j,nt=reactExports.useMemo(()=>({state:et,dispatch:tt}),[et,tt]);return jsxRuntimeExports.jsx(GraphConfigContext.Provider,Object.assign({value:et.settings.graphConfig},{children:jsxRuntimeExports.jsx(GraphControllerContext.Provider,Object.assign({value:_e},{children:jsxRuntimeExports.jsx(ConnectingState,Object.assign({data:et.data.present,connectState:et.connectState},{children:jsxRuntimeExports.jsx(GraphStateContext.Provider,Object.assign({value:nt},{children:jsxRuntimeExports.jsx(ViewportContext.Provider,Object.assign({value:et.viewport},{children:jsxRuntimeExports.jsx(GraphValueContext.Provider,Object.assign({value:et.data.present},{children:jsxRuntimeExports.jsx(AlignmentLinesContext.Provider,Object.assign({value:et.alignmentLines},{children:rt}))}))}))}))}))}))}))}const ReactDagEditor=j=>{var _e;reactExports.useEffect(()=>{j.handleWarning&&(Debug.warn=j.handleWarning)},[]);const et=(_e=j.handleError)===null||_e===void 0?void 0:_e.bind(null),{state:tt,dispatch:rt,getGlobalEventTarget:nt}=j,ot=useConst(()=>new GraphController(tt,rt));return ot.UNSAFE_latestState=tt,reactExports.useLayoutEffect(()=>{ot.state=tt,ot.dispatchDelegate=rt,ot.getGlobalEventTargetDelegate=nt},[rt,nt,ot,tt]),reactExports.useEffect(()=>()=>{ot.dispatchDelegate=noop$2},[ot]),jsxRuntimeExports.jsx(ErrorBoundary,Object.assign({renderOnError:et},{children:jsxRuntimeExports.jsx(SlotsContext.Provider,Object.assign({value:j},{children:jsxRuntimeExports.jsx(GraphStateStore,Object.assign({state:tt,dispatch:rt,graphController:ot},{children:jsxRuntimeExports.jsx(ContextMenuConfigContext.Provider,Object.assign({value:useConst(()=>new ContextMenuConfig)},{children:jsxRuntimeExports.jsx("div",Object.assign({style:j.style,className:j.className},{children:j.children}))}))}))}))}))},useContextMenuConfigContext=()=>reactExports.useContext(ContextMenuConfigContext);var GraphNodeEvent;(function(j){j.Click="[Node]Click",j.DoubleClick="[Node]DoubleClick",j.MouseDown="[Node]MouseDown",j.MouseUp="[Node]MouseUp",j.MouseEnter="[Node]MouseEnter",j.MouseLeave="[Node]MouseLeave",j.MouseOver="[Node]MouseOver",j.MouseOut="[Node]MouseOut",j.MouseMove="[Node]MouseMove",j.ContextMenu="[Node]ContextMenu",j.Drag="[Node]Drag",j.DragStart="[Node]DragStart",j.DragEnd="[Node]DragEnd",j.PointerDown="[Node]PointerDown",j.PointerEnter="[Node]PointerEnter",j.PointerMove="[Node]PointerMove",j.PointerLeave="[Node]PointerLeave",j.PointerUp="[Node]PointerUp",j.Resizing="[Node]Resizing",j.ResizingStart="[Node]ResizingStart",j.ResizingEnd="[Node]ResizingEnd",j.KeyDown="[Node]KeyDown",j.Select="[Node]Select",j.SelectAll="[Node]SelectAll",j.Centralize="[Node]Centralize",j.Locate="[Node]Locate",j.Add="[Node]Add"})(GraphNodeEvent||(GraphNodeEvent={}));var GraphEdgeEvent;(function(j){j.Click="[Edge]Click",j.DoubleClick="[Edge]DoubleClick",j.MouseEnter="[Edge]MouseEnter",j.MouseLeave="[Edge]MouseLeave",j.MouseOver="[Edge]MouseOver",j.MouseOut="[Edge]MouseOut",j.MouseMove="[Edge]MouseMove",j.MouseDown="[Edge]MouseDown",j.MouseUp="[Edge]MouseUp",j.ContextMenu="[Edge]ContextMenu",j.ConnectStart="[Edge]ConnectStart",j.ConnectMove="[Edge]ConnectMove",j.ConnectEnd="[Edge]ConnectEnd",j.ConnectNavigate="[Edge]ConnectNavigate",j.Add="[Edge]Add"})(GraphEdgeEvent||(GraphEdgeEvent={}));var GraphPortEvent;(function(j){j.Click="[Port]Click",j.DoubleClick="[Port]DoubleClick",j.MouseDown="[Port]MouseDown",j.PointerDown="[Port]PointerDown",j.PointerUp="[Port]PointerUp",j.PointerEnter="[Port]PointerEnter",j.PointerLeave="[Port]PointerLeave",j.MouseUp="[Port]MouseUp",j.MouseEnter="[Port]MouseEnter",j.MouseLeave="[Port]MouseLeave",j.MouseOver="[Port]MouseOver",j.MouseOut="[Port]MouseOut",j.MouseMove="[Port]MouseMove",j.ContextMenu="[Port]ContextMenu",j.KeyDown="[Port]KeyDown",j.Focus="[Port]Focus",j.Blur="[Port]Blur"})(GraphPortEvent||(GraphPortEvent={}));var GraphCanvasEvent;(function(j){j.Click="[Canvas]Click",j.DoubleClick="[Canvas]DoubleClick",j.MouseDown="[Canvas]MouseDown",j.MouseUp="[Canvas]MouseUp",j.MouseEnter="[Canvas]MouseEnter",j.MouseLeave="[Canvas]MouseLeave",j.MouseOver="[Canvas]MouseOver",j.MouseOut="[Canvas]MouseOut",j.MouseMove="[Canvas]MouseMove",j.ContextMenu="[Canvas]ContextMenu",j.DragStart="[Canvas]DragStart",j.Drag="[Canvas]Drag",j.DragEnd="[Canvas]DragEnd",j.Pan="[Canvas]Pan",j.Focus="[Canvas]Focus",j.Blur="[Canvas]Blur",j.Zoom="[Canvas]Zoom",j.Pinch="[Canvas]Pinch",j.KeyDown="[Canvas]KeyDown",j.KeyUp="[Canvas]KeyUp",j.SelectStart="[Canvas]SelectStart",j.SelectMove="[Canvas]SelectMove",j.SelectEnd="[Canvas]SelectEnd",j.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",j.MouseWheelScroll="[Canvas]MouseWheelScroll",j.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",j.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",j.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",j.ViewportResize="[Canvas]ViewportResize",j.Navigate="[Canvas]Navigate",j.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",j.ResetSelection="[Canvas]ResetSelection",j.Copy="[Canvas]Copy",j.Paste="[Canvas]Paste",j.Delete="[Canvas]Delete",j.Undo="[Canvas]Undo",j.Redo="[Canvas]Redo",j.ScrollIntoView="[Canvas]ScrollIntoView",j.ResetUndoStack="[Canvas]ResetUndoStack",j.ResetViewport="[Canvas]ResetViewport",j.ZoomTo="[Canvas]ZoomTo",j.ZoomToFit="[Canvas]ZoomToFit",j.SetData="[Canvas]SetData",j.UpdateData="[Canvas]UpdateData",j.ScrollTo="[Canvas]ScrollTo",j.UpdateSettings="[Canvas]UpdateSettings"})(GraphCanvasEvent||(GraphCanvasEvent={}));var GraphScrollBarEvent;(function(j){j.ScrollStart="[ScrollBar]ScrollStart",j.Scroll="[ScrollBar]Scroll",j.ScrollEnd="[ScrollBar]ScrollEnd"})(GraphScrollBarEvent||(GraphScrollBarEvent={}));var GraphMinimapEvent;(function(j){j.PanStart="[Minimap]PanStart",j.Pan="[Minimap]Pan",j.PanEnd="[Minimap]PanEnd",j.Click="[Minimap]Click"})(GraphMinimapEvent||(GraphMinimapEvent={}));var GraphContextMenuEvent;(function(j){j.Open="[ContextMenu]Open",j.Close="[ContextMenu]Close"})(GraphContextMenuEvent||(GraphContextMenuEvent={}));function getScrollLineHeight(){try{const j=document.createElement("iframe");j.src="#",document.body.appendChild(j);const{contentDocument:_e}=j;if(!_e)throw new Error("Fail to create iframe");_e.documentElement.innerHTML=purify.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const tt=_e.body.firstElementChild.offsetHeight;return document.body.removeChild(j),tt}catch(j){return Debug.error("failed to calculate scroll line height",j),16}}const scrollLineHeight=getScrollLineHeight(),normalizeWheelDelta=typeof WheelEvent=="function"?(j,_e)=>{switch(j){case WheelEvent.DOM_DELTA_PIXEL:return _e;case WheelEvent.DOM_DELTA_LINE:return _e*scrollLineHeight;case WheelEvent.DOM_DELTA_PAGE:return _e*window.innerHeight;default:return _e}}:(j,_e)=>_e,EMPTY_RECT={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},VirtualizationContext=reactExports.createContext({viewport:{rect:EMPTY_RECT,transformMatrix:EMPTY_TRANSFORM_MATRIX},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function useGraphConfig(){return reactExports.useContext(GraphConfigContext)}function useGraphController(){return reactExports.useContext(GraphControllerContext)}function useAlignmentLines(){return reactExports.useContext(AlignmentLinesContext)}function useConnectingState(){return reactExports.useContext(ConnectingStateContext)}function useVirtualization(){return reactExports.useContext(VirtualizationContext)}let shouldRespondWheel=!1;const useWheelHandler=j=>{const{containerRef:_e,svgRef:et,rectRef:tt,zoomSensitivity:rt,scrollSensitivity:nt,isHorizontalScrollDisabled:ot,isVerticalScrollDisabled:it,isCtrlKeyZoomEnable:st,eventChannel:lt,graphConfig:ut,dispatch:ct}=j,ft=useGraphController().getGlobalEventTarget();reactExports.useLayoutEffect(()=>{const pt=et.current,gt=_e.current;if(!pt||!gt)return noop$2;const mt=xt=>{const yt=tt.current;if(!yt||!shouldRespondWheel)return;if(xt.preventDefault(),xt.ctrlKey&&st){const kt=(normalizeWheelDelta(xt.deltaMode,xt.deltaY)>0?-rt:rt)+1;lt.trigger({type:GraphCanvasEvent.Zoom,rawEvent:xt,scale:kt,anchor:getRelativePoint(yt,xt)});return}const Et=ot?0:-normalizeWheelDelta(xt.deltaMode,xt.shiftKey?xt.deltaY:xt.deltaX)*nt,St=it||xt.shiftKey?0:-normalizeWheelDelta(xt.deltaMode,xt.deltaY)*nt;lt.trigger({type:GraphCanvasEvent.MouseWheelScroll,dx:Et,dy:St,rawEvent:xt})},bt=()=>{shouldRespondWheel=!0};gt.addEventListener("mouseenter",bt);const _t=()=>{shouldRespondWheel=!1};return gt.addEventListener("mouseleave",_t),ft.addEventListener("wheel",mt,{passive:!1}),()=>{ft.removeEventListener("wheel",mt),gt.removeEventListener("mouseenter",bt),gt.removeEventListener("mouseleave",_t)}},[et,tt,rt,nt,ct,ot,it,ut,lt,st])};function nextFrame(j){requestAnimationFrame(()=>{requestAnimationFrame(j)})}const LIMIT=20,isRectChanged=(j,_e)=>j===_e?!1:!j||!_e?!0:j.top!==_e.top||j.left!==_e.left||j.width!==_e.width||j.height!==_e.height,useUpdateViewportCallback=(j,_e,et)=>reactExports.useCallback((tt=!1)=>{var rt;const nt=(rt=_e.current)===null||rt===void 0?void 0:rt.getBoundingClientRect();(tt||isRectChanged(j.current,nt))&&(j.current=nt,et.trigger({type:GraphCanvasEvent.ViewportResize,viewportRect:nt}))},[et,j,_e]),useContainerRect=(j,_e,et,tt)=>{reactExports.useLayoutEffect(()=>{j.viewport.rect||tt(!0)}),reactExports.useEffect(()=>{const rt=et.current;if(!rt)return noop$2;const nt=debounce$2(()=>nextFrame(()=>{tt()}),LIMIT);if(typeof ResizeObserver<"u"){const ot=new ResizeObserver(nt);return ot.observe(rt),()=>{ot.unobserve(rt),ot.disconnect()}}return window.addEventListener("resize",nt),()=>{window.removeEventListener("resize",nt)}},[et,tt]),reactExports.useEffect(()=>{const rt=debounce$2(ot=>{const it=_e.current;!it||!(ot.target instanceof Element)||!ot.target.contains(it)||tt()},LIMIT),nt={capture:!0,passive:!0};return document.body.addEventListener("scroll",rt,nt),()=>{document.body.removeEventListener("scroll",rt,nt)}},[_e,tt])};function makeScheduledCallback(j,_e,et){let tt=!1,rt,nt;const ot=(...it)=>{rt=it,tt||(tt=!0,nt=_e(()=>{tt=!1,reactDomExports.unstable_batchedUpdates(()=>{j.apply(null,rt)})}))};return ot.cancel=()=>{et(nt)},ot}const animationFramed=j=>makeScheduledCallback(j,requestAnimationFrame,cancelAnimationFrame),useRenderedArea=(j,_e)=>reactExports.useMemo(()=>_e?getRenderedArea(j):{minX:-Number.MAX_SAFE_INTEGER,minY:-Number.MAX_SAFE_INTEGER,maxX:Number.MAX_SAFE_INTEGER,maxY:Number.MAX_SAFE_INTEGER},[j,_e]);class DragController{constructor(_e,et){this.onMove=noop$2,this.onEnd=noop$2,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=tt=>{this.lastEvent=tt,this.doOnMouseUp(tt),this.lastEvent=null},this.onMouseMove=tt=>{this.lastEvent=tt,tt.preventDefault(),this.mouseMove(tt)},this.eventProvider=_e,this.getPositionFromEvent=et,this.mouseMove=animationFramed(tt=>{this.doOnMouseMove(tt)})}start(_e){this.lastEvent=_e;const{x:et,y:tt}=this.getPositionFromEvent(_e);this.startX=et,this.startY=tt,this.prevClientX=et,this.prevClientY=tt,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(_e,et){const tt=_e-this.prevClientX,rt=et-this.prevClientY;return this.prevClientX=_e,this.prevClientY=et,{x:tt,y:rt}}getTotalDelta(_e){const et=_e.clientX-this.startX,tt=_e.clientY-this.startY;return{x:et,y:tt}}doOnMouseMove(_e){const{x:et,y:tt}=this.getPositionFromEvent(_e),{x:rt,y:nt}=this.getDelta(et,tt),{x:ot,y:it}=this.getTotalDelta(_e);this.onMove({clientX:et,clientY:tt,dx:rt,dy:nt,totalDX:ot,totalDY:it,e:_e})}doOnMouseUp(_e){_e.preventDefault();const{x:et,y:tt}=this.getTotalDelta(_e);this.onEnd({totalDX:et,totalDY:tt,e:_e}),this.stop()}}function defaultGetPositionFromEvent(j){return{x:j.clientX,y:j.clientY}}class DragNodeController extends DragController{constructor(_e,et,tt){super(_e,et),this.rectRef=tt}doOnMouseMove(_e){super.doOnMouseMove(_e);const et=this.rectRef.current;!et||!this.lastEvent||(_e.clientXet.right||_e.clientYet.bottom)&&this.mouseMove(this.lastEvent)}}class TouchController{constructor(_e){this.eventHandlers={onPointerDown:(et,...tt)=>{et.pointerType==="touch"&&(et.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.set(et.pointerId,et.nativeEvent),this.updateHandler(et.nativeEvent,...tt))},onPointerMove:(et,...tt)=>{et.pointerType==="touch"&&(et.preventDefault(),this.pointers.set(et.pointerId,et.nativeEvent),this.onMove(et.nativeEvent,...tt))},onPointerUp:(et,...tt)=>{et.pointerType==="touch"&&(et.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.delete(et.pointerId),this.updateHandler(et.nativeEvent,...tt))}},this.pointers=new Map,this.onMove=animationFramed((et,...tt)=>{var rt;(rt=this.currentHandler)===null||rt===void 0||rt.onMove(this.pointers,et,...tt)}),this.handlers=_e}updateHandler(_e,...et){var tt,rt;const nt=this.handlers.get(this.pointers.size);nt!==this.currentHandler&&((tt=this.currentHandler)===null||tt===void 0||tt.onEnd(_e,...et),this.currentHandler=nt,(rt=this.currentHandler)===null||rt===void 0||rt.onStart(this.pointers,_e,...et))}}class TwoFingerHandler{constructor(_e,et){this.prevDistance=0,this.rectRef=_e,this.eventChannel=et}onEnd(){}onMove(_e,et){const tt=Array.from(_e.values()),rt=distance(tt[0].clientX,tt[0].clientY,tt[1].clientX,tt[1].clientY),{prevEvents:nt,prevDistance:ot}=this;if(this.prevDistance=rt,this.prevEvents=tt,!nt)return;const it=tt[0].clientX-nt[0].clientX,st=tt[1].clientX-nt[1].clientX,lt=tt[0].clientY-nt[0].clientY,ut=tt[1].clientY-nt[1].clientY,ct=(it+st)/2,dt=(lt+ut)/2,ft=(rt-ot)/ot+1,pt=getContainerCenter(this.rectRef);pt&&this.eventChannel.trigger({type:GraphCanvasEvent.Pinch,rawEvent:et,dx:ct,dy:dt,scale:ft,anchor:pt})}onStart(_e){if(_e.size!==2)throw new Error(`Unexpected touch event with ${_e.size} touches`);this.prevEvents=Array.from(_e.values()),this.prevDistance=distance(this.prevEvents[0].clientX,this.prevEvents[0].clientY,this.prevEvents[1].clientX,this.prevEvents[1].clientY)}}const useGraphTouchHandler=(j,_e)=>reactExports.useMemo(()=>new TouchController(new Map().set(2,new TwoFingerHandler(j,_e))).eventHandlers,[j,_e]),isSafari=getBrowser()===BrowserType.Safari;let prevScale=0;function useSafariScale({rectRef:j,svgRef:_e,eventChannel:et}){reactExports.useEffect(()=>{const tt=_e.current;if(!isSafari||!tt||isMobile())return()=>{};const rt=animationFramed(st=>{const{scale:lt}=st,ut=lt/prevScale;prevScale=lt,et.trigger({type:GraphCanvasEvent.Zoom,rawEvent:st,scale:ut,anchor:getContainerCenter(j)})}),nt=st=>{st.stopPropagation(),st.preventDefault(),prevScale=st.scale,et.trigger({type:GraphCanvasEvent.Zoom,rawEvent:st,scale:st.scale,anchor:getContainerCenter(j)})},ot=st=>{st.stopPropagation(),st.preventDefault(),rt(st)},it=st=>{st.stopPropagation(),st.preventDefault(),rt(st)};return tt.addEventListener("gesturestart",nt),tt.addEventListener("gesturechange",ot),tt.addEventListener("gestureend",it),()=>{tt.removeEventListener("gesturestart",nt),tt.removeEventListener("gesturechange",ot),tt.removeEventListener("gestureend",it)}},[])}function useDeferredValue(j,{timeout:_e}){const[et,tt]=reactExports.useState(j);return reactExports.useEffect(()=>{const rt=setTimeout(()=>{tt(j)},_e);return()=>{clearTimeout(rt)}},[j,_e]),et}const useSelectBox=(j,_e)=>{const et=useDeferredValue(_e,{timeout:100});reactExports.useEffect(()=>{j({type:GraphCanvasEvent.UpdateNodeSelectionBySelectBox})},[et])},useGraphState=()=>reactExports.useContext(GraphStateContext),handleBehaviorChange=(j,_e)=>{switch(_e.type){case GraphNodeEvent.DragStart:return GraphBehavior.Dragging;case GraphEdgeEvent.ConnectStart:return GraphBehavior.Connecting;case GraphCanvasEvent.SelectStart:return GraphBehavior.MultiSelect;case GraphCanvasEvent.DragStart:return GraphBehavior.Panning;case GraphCanvasEvent.DraggingNodeFromItemPanelStart:return GraphBehavior.AddingNode;case GraphNodeEvent.DragEnd:case GraphEdgeEvent.ConnectEnd:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.DragEnd:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return GraphBehavior.Default;default:return j}},behaviorReducer=(j,_e)=>{const et=handleBehaviorChange(j.behavior,_e);return et===j.behavior?j:Object.assign(Object.assign({},j),{behavior:et})};function __rest(j,_e){var et={};for(var tt in j)Object.prototype.hasOwnProperty.call(j,tt)&&_e.indexOf(tt)<0&&(et[tt]=j[tt]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,tt=Object.getOwnPropertySymbols(j);rt{switch(_e.type){case GraphCanvasEvent.Paste:{const{position:et}=_e;if(!isViewportComplete(j.viewport))return j;const{rect:tt}=j.viewport;let rt=_e.data.nodes;if(et&&tt){const ot=getRealPointFromClientPoint(et.x,et.y,j.viewport);let it,st;rt=rt.map((lt,ut)=>(ut===0&&(it=ot.x-lt.x,st=ot.y-lt.y),Object.assign(Object.assign({},lt),{x:it?lt.x-COPIED_NODE_SPACING+it:lt.x,y:st?lt.y-COPIED_NODE_SPACING+st:lt.y,state:GraphNodeStatus.Selected})))}let nt=unSelectAllEntity()(j.data.present);return rt.forEach(ot=>{nt=nt.insertNode(ot)}),_e.data.edges.forEach(ot=>{nt=nt.insertEdge(ot)}),Object.assign(Object.assign({},j),{data:pushHistory(j.data,nt)})}case GraphCanvasEvent.Delete:return j.settings.features.has(GraphFeatures.Delete)?Object.assign(Object.assign({},j),{data:pushHistory(j.data,j.data.present.deleteItems({node:notSelected,edge:notSelected}),unSelectAllEntity())}):j;case GraphCanvasEvent.Undo:return Object.assign(Object.assign({},j),{data:undo(j.data)});case GraphCanvasEvent.Redo:return Object.assign(Object.assign({},j),{data:redo(j.data)});case GraphCanvasEvent.KeyDown:{const et=_e.rawEvent.key.toLowerCase();if(j.activeKeys.has(et))return j;const tt=new Set(j.activeKeys);return tt.add(et),Object.assign(Object.assign({},j),{activeKeys:tt})}case GraphCanvasEvent.KeyUp:{const et=_e.rawEvent.key.toLowerCase();if(!j.activeKeys.has(et))return j;const tt=new Set(j.activeKeys);return tt.delete(et),Object.assign(Object.assign({},j),{activeKeys:tt})}case GraphCanvasEvent.SetData:return Object.assign(Object.assign({},j),{data:resetUndoStack(_e.data)});case GraphCanvasEvent.UpdateData:return Object.assign(Object.assign({},j),{data:_e.shouldRecord?pushHistory(j.data,_e.updater(j.data.present)):Object.assign(Object.assign({},j.data),{present:_e.updater(j.data.present)})});case GraphCanvasEvent.ResetUndoStack:return Object.assign(Object.assign({},j),{data:resetUndoStack(j.data.present)});case GraphCanvasEvent.UpdateSettings:{const et=__rest(_e,["type"]);return Object.assign(Object.assign({},j),{settings:Object.assign(Object.assign({},j.settings),et)})}default:return j}};function composeReducers(j){return _e=>j.reduceRight((et,tt)=>tt(et),_e)}const VisitPortHelper=j=>{const{neighborPorts:_e,data:et}=j,tt=reactExports.useRef(null),[rt,nt]=reactExports.useState(),ot=reactExports.useCallback(lt=>{lt.key==="Escape"&&(lt.stopPropagation(),lt.preventDefault(),rt&&j.onComplete(rt))},[rt,j]),it=reactExports.useCallback(()=>{},[]),st=reactExports.useCallback(lt=>{const ut=JSON.parse(lt.target.value);ut.nodeId&&ut.portId&&nt({nodeId:ut.nodeId,portId:ut.portId})},[nt]);return reactExports.useEffect(()=>{tt.current&&tt.current.focus({preventScroll:!0})},[]),jsxRuntimeExports.jsx("select",Object.assign({onKeyDown:ot,onBlur:it,ref:tt,onChange:st},{children:_e.map(lt=>{const ut=rt&&rt.portId===lt.portId&&rt.nodeId===lt.nodeId,ct=JSON.stringify(lt),dt=et.nodes.get(lt.nodeId);if(!dt)return null;const ft=dt.ports?dt.ports.filter(gt=>gt.id===lt.portId)[0]:null;if(!ft)return null;const pt=`${dt.ariaLabel||dt.name||dt.id}: ${ft.ariaLabel||ft.name||ft.id}`;return jsxRuntimeExports.jsx("option",Object.assign({value:ct,"aria-selected":ut,"aria-label":pt},{children:pt}),`${lt.nodeId}-${lt.portId}`)})}))},item=(j=void 0,_e=void 0)=>({node:j,port:_e}),findDOMElement=(j,{node:_e,port:et})=>{var tt,rt;let nt;if(_e&&et)nt=getPortUid((tt=j.dataset.graphId)!==null&&tt!==void 0?tt:"",_e,et);else if(_e)nt=getNodeUid((rt=j.dataset.graphId)!==null&&rt!==void 0?rt:"",_e);else return null;return j.getElementById(nt)},focusItem=(j,_e,et,tt)=>{if(!j.current)return;const rt=findDOMElement(j.current,_e);rt?(et.preventDefault(),et.stopPropagation(),rt.focus({preventScroll:!0}),tt.trigger({type:GraphCanvasEvent.Navigate,node:_e.node,port:_e.port,rawEvent:et})):!_e.node&&!_e.port&&tt.trigger({type:GraphCanvasEvent.Navigate,node:_e.node,port:_e.port,rawEvent:et})},getNextItem=(j,_e,et)=>{if(_e.ports){const nt=(et?_e.ports.findIndex(ot=>ot.id===et.id):-1)+1;if(nt<_e.ports.length)return item(_e,_e.ports[nt])}const tt=_e.next&&j.nodes.get(_e.next);return tt?item(tt):item()},getPrevItem=(j,_e,et)=>{if(et&&_e.ports){const rt=_e.ports.findIndex(nt=>nt.id===et.id)-1;return rt>=0?item(_e,_e.ports[rt]):item(_e)}const tt=_e.prev&&j.nodes.get(_e.prev);return tt?item(tt,tt.ports&&tt.ports.length?tt.ports[tt.ports.length-1]:void 0):item()},nextConnectablePort=(j,_e)=>(et,tt,rt)=>{var nt,ot,it;let st=getNextItem(et,tt,rt);for(;!(((nt=st.node)===null||nt===void 0?void 0:nt.id)===tt.id&&((ot=st.port)===null||ot===void 0?void 0:ot.id)===(rt==null?void 0:rt.id));){if(!st.node)st=item(et.getNavigationFirstNode());else if(st.port&&!((it=j.getPortConfig(st.port))===null||it===void 0)&&it.getIsConnectable(Object.assign(Object.assign({},_e),{data:et,parentNode:st.node,model:st.port})))return st;st=getNextItem(et,st.node,st.port)}return item()},focusNextPort=(j,_e,et,tt,rt,nt)=>{const it=(j.findIndex(lt=>lt.id===et)+1)%j.length,st=j[it];st&&tt.current&&focusItem(tt,{node:_e,port:st},rt,nt)},focusPrevPort=(j,_e,et,tt,rt,nt)=>{const it=(j.findIndex(lt=>lt.id===et)-1+j.length)%j.length,st=j[it];st&&tt.current&&focusItem(tt,{node:_e,port:st},rt,nt)},getFocusNodeHandler=j=>(_e,et,tt,rt,nt,ot)=>{const it=Array.from(_e.nodes.values()).sort(j),st=it.findIndex(ut=>ut.id===et),lt=it[(st+1)%it.length];lt&&tt.current&&(rt.dispatch({type:GraphNodeEvent.Select,nodes:[lt.id]}),rt.dispatch({type:GraphNodeEvent.Centralize,nodes:[lt.id]}),focusItem(tt,{node:lt,port:void 0},nt,ot))},focusLeftNode=getFocusNodeHandler((j,_e)=>j.x*10+j.y-_e.x*10-_e.y),focusRightNode=getFocusNodeHandler((j,_e)=>_e.x*10+_e.y-j.x*10-j.y),focusDownNode=getFocusNodeHandler((j,_e)=>j.x+j.y*10-_e.x-_e.y*10),focusUpNode=getFocusNodeHandler((j,_e)=>_e.x+_e.y*10-j.x-j.y*10),goToConnectedPort=(j,_e,et,tt,rt,nt)=>{var ot;const it=getNeighborPorts(j,_e.id,et.id);if(it.length===1&&tt.current){const st=j.nodes.get(it[0].nodeId);if(!st)return;const lt=(ot=st.ports)===null||ot===void 0?void 0:ot.find(ut=>ut.id===it[0].portId);if(!lt)return;focusItem(tt,{node:st,port:lt},rt,nt)}else if(it.length>1&&tt.current){const st=ct=>{var dt;if(reactDomExports.unmountComponentAtNode(lt),tt.current){const gt=tt.current.closest(".react-dag-editor-container");gt&>.removeChild(lt)}const ft=j.nodes.get(ct.nodeId);if(!ft)return;const pt=(dt=ft.ports)===null||dt===void 0?void 0:dt.find(gt=>gt.id===ct.portId);pt&&focusItem(tt,{node:ft,port:pt},rt,nt)},lt=document.createElement("div"),ut=tt.current.closest(".react-dag-editor-container");ut&&ut.appendChild(lt),lt.style.position="fixed",lt.style.top="0",reactDomExports.render(jsxRuntimeExports.jsx(VisitPortHelper,{neighborPorts:it,onComplete:st,data:j}),lt)}};function defaultGetPortAriaLabel(j,_e,et){return et.ariaLabel}function defaultGetNodeAriaLabel(j){return j.ariaLabel}function attachPort(j,_e,et){if(!j.connectState)return j;let tt=j.data.present;return tt=tt.updatePort(_e,et,updateStatus(add$1(GraphPortStatus.ConnectingAsTarget))),j.connectState.targetNode&&j.connectState.targetPort&&(tt=tt.updatePort(j.connectState.targetNode,j.connectState.targetPort,updateStatus(remove$1(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},j),{connectState:Object.assign(Object.assign({},j.connectState),{targetNode:_e,targetPort:et}),data:Object.assign(Object.assign({},j.data),{present:tt})})}function clearAttach(j){if(!j.connectState)return j;let _e=j.data.present;const{targetPort:et,targetNode:tt}=j.connectState;return tt&&et&&(_e=_e.updatePort(tt,et,updateStatus(remove$1(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},j),{connectState:Object.assign(Object.assign({},j.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},j.data),{present:_e})})}const connectingReducer=(j,_e)=>{var et,tt,rt;if(!isViewportComplete(j.viewport))return j;const{rect:nt}=j.viewport;switch(_e.type){case GraphEdgeEvent.ConnectStart:return Object.assign(Object.assign({},j),{connectState:Object.assign(Object.assign({},EMPTY_CONNECT_STATE),{sourceNode:_e.nodeId,sourcePort:_e.portId,movingPoint:_e.clientPoint?{x:_e.clientPoint.x-nt.left,y:_e.clientPoint.y-nt.top}:void 0}),data:Object.assign(Object.assign({},j.data),{present:j.data.present.updatePort(_e.nodeId,_e.portId,updateStatus(add$1(GraphPortStatus.Connecting)))})});case GraphEdgeEvent.ConnectMove:return j.connectState?Object.assign(Object.assign({},j),{connectState:Object.assign(Object.assign({},j.connectState),{movingPoint:{x:_e.clientX-nt.left,y:_e.clientY-nt.top}})}):j;case GraphEdgeEvent.ConnectEnd:if(j.connectState){const{edgeWillAdd:ot,isCancel:it}=_e,{sourceNode:st,sourcePort:lt,targetNode:ut,targetPort:ct}=j.connectState;let dt=j.data.present;if(dt=dt.updatePort(st,lt,updateStatus(replace$1(GraphPortStatus.Default))),!it&&ut&&ct){let ft={source:st,sourcePortId:lt,target:ut,targetPortId:ct,id:v4(),status:GraphEdgeStatus.Default};return ot&&(ft=ot(ft,dt)),dt=dt.insertEdge(ft).updatePort(ut,ct,updateStatus(replace$1(GraphPortStatus.Default))),Object.assign(Object.assign({},j),{connectState:void 0,data:pushHistory(j.data,dt,unSelectAllEntity())})}return Object.assign(Object.assign({},j),{connectState:void 0,data:Object.assign(Object.assign({},j.data),{present:dt})})}return j;case GraphEdgeEvent.ConnectNavigate:if(j.connectState){const ot=j.data.present,it=ot.nodes.get(j.connectState.sourceNode),st=it==null?void 0:it.getPort(j.connectState.sourcePort),lt=j.connectState.targetNode?ot.nodes.get(j.connectState.targetNode):void 0,ut=j.connectState.targetPort?lt==null?void 0:lt.getPort(j.connectState.targetPort):void 0;if(!it||!st)return j;const ct=nextConnectablePort(j.settings.graphConfig,{anotherNode:it,anotherPort:st})(ot,lt||it,ut);return!ct.node||!ct.port||ct.node.id===it.id&&ct.port.id===st.id?j:attachPort(j,ct.node.id,ct.port.id)}return j;case GraphPortEvent.PointerEnter:if(j.connectState){const{sourceNode:ot,sourcePort:it}=j.connectState,st=j.data.present,lt=st.nodes.get(_e.node.id),ut=lt==null?void 0:lt.getPort(_e.port.id),ct=st.nodes.get(ot),dt=ct==null?void 0:ct.getPort(it);if(lt&&ut&&ct&&dt&&isConnectable(j.settings.graphConfig,{parentNode:lt,model:ut,data:st,anotherPort:dt,anotherNode:ct}))return attachPort(j,lt.id,ut.id)}return j;case GraphNodeEvent.PointerEnter:case GraphNodeEvent.PointerMove:if(j.connectState){const{clientX:ot,clientY:it}=_e.rawEvent,{sourceNode:st,sourcePort:lt}=j.connectState,ut=j.data.present,ct=ut.nodes.get(_e.node.id),dt=ut.nodes.get(st),ft=dt==null?void 0:dt.getPort(lt);if(ct&&dt&&ft){const pt=getNearestConnectablePort({parentNode:ct,clientX:ot,clientY:it,graphConfig:j.settings.graphConfig,data:j.data.present,viewport:j.viewport,anotherPort:ft,anotherNode:dt});return pt?attachPort(j,ct.id,pt.id):j}}return j;case GraphNodeEvent.PointerLeave:return((et=j.connectState)===null||et===void 0?void 0:et.targetNode)===_e.node.id?clearAttach(j):j;case GraphPortEvent.PointerLeave:return((tt=j.connectState)===null||tt===void 0?void 0:tt.targetNode)===_e.node.id&&((rt=j.connectState)===null||rt===void 0?void 0:rt.targetPort)===_e.port.id?clearAttach(j):j;default:return j}},contextMenuReducer=(j,_e)=>{let et=j.contextMenuPosition;switch(_e.type){case GraphCanvasEvent.ContextMenu:case GraphNodeEvent.ContextMenu:case GraphEdgeEvent.ContextMenu:case GraphPortEvent.ContextMenu:{const tt=_e.rawEvent;tt.button===MouseEventButton.Secondary&&(et={x:tt.clientX,y:tt.clientY})}break;case GraphCanvasEvent.Click:case GraphNodeEvent.Click:case GraphEdgeEvent.Click:case GraphPortEvent.Click:et=void 0;break;case GraphContextMenuEvent.Open:et={x:_e.x,y:_e.y};break;case GraphContextMenuEvent.Close:et=void 0;break}return j.contextMenuPosition===et?j:Object.assign(Object.assign({},j),{contextMenuPosition:et})},edgeReducer=(j,_e)=>{switch(_e.type){case GraphEdgeEvent.DoubleClick:return j.settings.features.has(GraphFeatures.EditEdge)?Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:j.data.present.updateEdge(_e.edge.id,updateStatus(replace$1(GraphEdgeStatus.Editing)))})}):j;case GraphEdgeEvent.MouseEnter:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:j.data.present.updateEdge(_e.edge.id,updateStatus(add$1(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.MouseLeave:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:j.data.present.updateEdge(_e.edge.id,updateStatus(remove$1(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.Click:case GraphEdgeEvent.ContextMenu:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:unSelectAllEntity()(j.data.present).updateEdge(_e.edge.id,updateStatus(add$1(GraphEdgeStatus.Selected)))})});case GraphEdgeEvent.Add:return Object.assign(Object.assign({},j),{data:pushHistory(j.data,j.data.present.insertEdge(_e.edge))});default:return j}},getAlignmentLines=(j,_e,et,tt=2)=>{const rt=getDummyDraggingNode(j),nt=getClosestNodes(rt,j,_e,et,tt);return getLines(rt,nt,j.length)},getAutoAlignDisplacement=(j,_e,et,tt)=>{let rt=1/0,nt=0;const ot=getDummyDraggingNode(_e),it=tt==="x"?ot.width||0:ot.height||0;return j.forEach(st=>{let lt;if(tt==="x"&&st.x1===st.x2)lt=st.x1;else if(tt==="y"&&st.y1===st.y2)lt=st.y1;else return;const ut=ot[tt]-lt,ct=ot[tt]+(it||0)/2-lt,dt=ot[tt]+(it||0)-lt;Math.abs(ut)0?-rt:rt),Math.abs(ct)0?-rt:rt),Math.abs(dt)0?-rt:rt)}),nt},getMinCoordinate=(j,_e)=>{if(j.length)return Math.min(...j.map(et=>et[_e]))},getMaxCoordinate=(j,_e)=>{if(j.length)return Math.max(...j.map(et=>et[_e]+(_e==="y"?et.height||0:et.width||0)))},setSizeForNode=(j,_e)=>Object.assign(Object.assign({},j),getNodeSize(j,_e)),getBoundingBoxOfNodes=j=>{let _e=1/0,et=1/0,tt=-1/0,rt=-1/0;return j.forEach(nt=>{const ot=nt.x,it=nt.y,st=nt.x+(nt.width||0),lt=nt.y+(nt.height||0);ot<_e&&(_e=ot),ittt&&(tt=st),lt>rt&&(rt=lt)}),{x:_e,y:et,width:tt-_e,height:rt-et}},getDummyDraggingNode=j=>{const{x:_e,y:et,width:tt,height:rt}=getBoundingBoxOfNodes(j);return{id:v4(),x:_e,y:et,width:tt,height:rt}},getClosestNodes=(j,_e,et,tt,rt=2)=>{const nt=[],ot=[],{x:it,y:st,width:lt=0,height:ut=0}=j;let ct=rt,dt=rt;return et.forEach(ft=>{if(_e.find(bt=>bt.id===ft.id))return;const pt=setSizeForNode(ft,tt),{width:gt=0,height:mt=0}=pt;[it,it+lt/2,it+lt].forEach((bt,_t)=>{nt[_t]||(nt[_t]={}),nt[_t].closestNodes||(nt[_t].closestNodes=[]),[pt.x,pt.x+gt/2,pt.x+gt].forEach(xt=>{var yt;const Et=Math.abs(bt-xt);Et<=ct&&((yt=nt[_t].closestNodes)===null||yt===void 0||yt.push(pt),nt[_t].alignCoordinateValue=xt,ct=Et)})}),[st,st+ut/2,st+ut].forEach((bt,_t)=>{ot[_t]||(ot[_t]={}),ot[_t].closestNodes||(ot[_t].closestNodes=[]),[pt.y,pt.y+mt/2,pt.y+mt].forEach(xt=>{var yt;const Et=Math.abs(bt-xt);Et<=dt&&((yt=ot[_t].closestNodes)===null||yt===void 0||yt.push(pt),ot[_t].alignCoordinateValue=xt,dt=Et)})})}),{closestX:nt,closestY:ot}},getLines=(j,_e,et=1)=>{const tt=[],rt=[],nt=_e.closestX,ot=_e.closestY;return nt.forEach((it,st)=>{var lt;if(it.alignCoordinateValue===void 0||st===1&&(tt.length||et>1))return;const ut=[],ct=it.alignCoordinateValue;(lt=it.closestNodes)===null||lt===void 0||lt.forEach(pt=>{(pt.x===ct||pt.x+(pt.width||0)/2===ct||pt.x+(pt.width||0)===ct)&&ut.push(pt)});const dt=getMinCoordinate([j,...ut],"y"),ft=getMaxCoordinate([j,...ut],"y");dt!==void 0&&ft!==void 0&&tt.push({x1:ct,y1:dt,x2:ct,y2:ft,visible:!0})}),ot.forEach((it,st)=>{var lt;if(it.alignCoordinateValue===void 0||st===1&&(rt.length||et>1))return;const ut=[],ct=it.alignCoordinateValue;(lt=it.closestNodes)===null||lt===void 0||lt.forEach(pt=>{(pt.y===ct||pt.y+(pt.height||0)/2===ct||pt.y+(pt.height||0)===ct)&&ut.push(pt)});const dt=getMinCoordinate([j,...ut],"x"),ft=getMaxCoordinate([j,...ut],"x");dt!==void 0&&ft!==void 0&&rt.push({x1:dt,y1:ct,x2:ft,y2:ct,visible:!0})}),[...tt,...rt]};function pipe(...j){return j.reduceRight((_e,et)=>tt=>_e(et(tt)),identical)}const getDelta=(j,_e,et)=>et_e?10:0;function getSelectedNodes(j,_e){const et=[];return j.nodes.forEach(tt=>{isSelected(tt)&&et.push(Object.assign({id:tt.id,x:tt.x,y:tt.y},getNodeSize(tt,_e)))}),et}function dragNodeHandler(j,_e){if(!isViewportComplete(j.viewport))return j;const et=ft=>Math.max(ft,getScaleLimit(ot,j.settings)),tt=_e.rawEvent,{rect:rt}=j.viewport,nt=Object.assign({},j),ot=j.data.present,it=getDelta(rt.left,rt.right,tt.clientX),st=getDelta(rt.top,rt.bottom,tt.clientY),lt=it!==0||st!==0?.999:1,ut=it!==0||it!==0?pipe(pan(-it,-st),zoom({scale:lt,anchor:getRelativePoint(rt,tt),direction:Direction$1.XY,limitScale:et}))(j.viewport):j.viewport,ct=getPointDeltaByClientDelta(_e.dx+it*lt,_e.dy+st*lt,ut.transformMatrix),dt=Object.assign(Object.assign({},j.dummyNodes),{dx:j.dummyNodes.dx+ct.x,dy:j.dummyNodes.dy+ct.y,isVisible:_e.isVisible});if(_e.isAutoAlignEnable){const ft=getRenderedNodes(ot.nodes,j.viewport);if(ft.length<_e.autoAlignThreshold){const pt=dt.nodes.map(mt=>Object.assign(Object.assign({},mt),{x:mt.x+dt.dx,y:mt.y+dt.dy})),gt=getAlignmentLines(pt,ft,j.settings.graphConfig,j.viewport.transformMatrix[0]>.3?2:5);if(gt.length){const mt=getAutoAlignDisplacement(gt,pt,j.settings.graphConfig,"x"),bt=getAutoAlignDisplacement(gt,pt,j.settings.graphConfig,"y");dt.alignedDX=dt.dx+mt,dt.alignedDY=dt.dy+bt}else dt.alignedDX=void 0,dt.alignedDY=void 0;nt.alignmentLines=gt}else dt.alignedDX=void 0,dt.alignedDY=void 0}return nt.dummyNodes=dt,nt.viewport=ut,nt}function handleDraggingNewNode(j,_e){if(!j.settings.features.has(GraphFeatures.AutoAlign))return j;const et=j.data.present,tt=getRenderedNodes(et.nodes,j.viewport),rt=getAlignmentLines([_e.node],tt,j.settings.graphConfig,j.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},j),{alignmentLines:rt})}function dragStart(j,_e){let et=j.data.present;const tt=et.nodes.get(_e.node.id);if(!tt)return j;let rt;return _e.isMultiSelect?(et=et.selectNodes(nt=>nt.id===_e.node.id||isSelected(nt)),rt=getSelectedNodes(et,j.settings.graphConfig)):isSelected(tt)?rt=getSelectedNodes(et,j.settings.graphConfig):rt=[Object.assign({id:_e.node.id,x:_e.node.x,y:_e.node.y},getNodeSize(_e.node,j.settings.graphConfig))],Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:et}),dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!1,nodes:rt})})}function dragEnd(j,_e){let et=j.data.present;if(_e.isDragCanceled)return Object.assign(Object.assign({},j),{alignmentLines:[],dummyNodes:emptyDummyNodes()});const{dx:tt,dy:rt}=j.dummyNodes;return et=et.updateNodesPositionAndSize(j.dummyNodes.nodes.map(nt=>Object.assign(Object.assign({},nt),{x:nt.x+tt,y:nt.y+rt,width:void 0,height:void 0}))),Object.assign(Object.assign({},j),{alignmentLines:[],dummyNodes:emptyDummyNodes(),data:pushHistory(j.data,et,unSelectAllEntity())})}function locateNode(j,_e){const et=_e.data.present;if(!isViewportComplete(_e.viewport)||!j.nodes.length)return _e;if(j.nodes.length===1){const it=j.nodes[0],st=et.nodes.get(it);if(!st)return _e;const{width:lt,height:ut}=getNodeSize(st,_e.settings.graphConfig),ct=j.type===GraphNodeEvent.Centralize?st.x+lt/2:st.x,dt=j.type===GraphNodeEvent.Centralize?st.y+ut/2:st.y,{x:ft,y:pt}=transformPoint(ct,dt,_e.viewport.transformMatrix),gt=j.type===GraphNodeEvent.Locate?j.position:void 0;return Object.assign(Object.assign({},_e),{viewport:scrollIntoView$1(ft,pt,_e.viewport.rect,!0,gt)(_e.viewport)})}const{minNodeX:tt,minNodeY:rt,maxNodeX:nt,maxNodeY:ot}=getContentArea$1(et,_e.settings.graphConfig,new Set(j.nodes));return Object.assign(Object.assign({},_e),{viewport:focusArea(tt,rt,nt,ot,_e.viewport)})}const nodeReducer=(j,_e)=>{const et=j.data.present;switch(_e.type){case GraphNodeEvent.ResizingStart:return Object.assign(Object.assign({},j),{dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!0,nodes:getSelectedNodes(et,j.settings.graphConfig)})});case GraphNodeEvent.Resizing:return Object.assign(Object.assign({},j),{dummyNodes:Object.assign(Object.assign({},j.dummyNodes),{dx:_e.dx,dy:_e.dy,dWidth:_e.dWidth,dHeight:_e.dHeight})});case GraphNodeEvent.ResizingEnd:{const{dx:tt,dy:rt,dWidth:nt,dHeight:ot}=j.dummyNodes;return Object.assign(Object.assign({},j),{dummyNodes:emptyDummyNodes(),data:pushHistory(j.data,et.updateNodesPositionAndSize(j.dummyNodes.nodes.map(it=>Object.assign(Object.assign({},it),{x:it.x+tt,y:it.y+rt,width:it.width+nt,height:it.height+ot}))),unSelectAllEntity())})}case GraphNodeEvent.DragStart:return dragStart(j,_e);case GraphNodeEvent.Drag:return dragNodeHandler(j,_e);case GraphNodeEvent.DragEnd:return dragEnd(j,_e);case GraphNodeEvent.PointerEnter:switch(j.behavior){case GraphBehavior.Default:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:et.updateNode(_e.node.id,updateStatus(add$1(GraphNodeStatus.Activated)))})});default:return j}case GraphNodeEvent.PointerLeave:switch(j.behavior){case GraphBehavior.Default:case GraphBehavior.Connecting:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:et.updateNode(_e.node.id,updateStatus(remove$1(GraphNodeStatus.Activated)))})});default:return j}case GraphCanvasEvent.DraggingNodeFromItemPanel:return handleDraggingNewNode(j,_e);case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return _e.node?Object.assign(Object.assign({},j),{alignmentLines:[],data:pushHistory(j.data,j.data.present.insertNode(Object.assign(Object.assign({},_e.node),{status:GraphNodeStatus.Selected})),unSelectAllEntity())}):Object.assign(Object.assign({},j),{alignmentLines:[]});case GraphNodeEvent.Centralize:case GraphNodeEvent.Locate:return locateNode(_e,j);case GraphNodeEvent.Add:return Object.assign(Object.assign({},j),{data:pushHistory(j.data,et.insertNode(_e.node))});case GraphNodeEvent.DoubleClick:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:j.data.present.updateNode(_e.node.id,updateStatus(add$1(GraphNodeStatus.Editing)))})});default:return j}},portReducer=(j,_e)=>{switch(_e.type){case GraphPortEvent.Focus:case GraphPortEvent.PointerEnter:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:j.data.present.updatePort(_e.node.id,_e.port.id,updateStatus(add$1(GraphPortStatus.Activated)))})});case GraphPortEvent.Blur:case GraphPortEvent.PointerLeave:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:j.data.present.updatePort(_e.node.id,_e.port.id,updateStatus(remove$1(GraphPortStatus.Activated)))})});case GraphPortEvent.Click:case GraphPortEvent.ContextMenu:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:unSelectAllEntity()(j.data.present).updatePort(_e.node.id,_e.port.id,updateStatus(add$1(GraphPortStatus.Selected)))})});default:return j}},selectNodeBySelectBox=(j,_e,et,tt)=>{if(!et.width||!et.height)return tt;const rt=Math.min(et.startX,et.startX+et.width),nt=Math.max(et.startX,et.startX+et.width),ot=Math.min(et.startY,et.startY+et.height),it=Math.max(et.startY,et.startY+et.height),st=reverseTransformPoint(rt,ot,_e),lt=reverseTransformPoint(nt,it,_e),ut={minX:st.x,minY:st.y,maxX:lt.x,maxY:lt.y};return tt.selectNodes(ct=>{const{width:dt,height:ft}=getNodeSize(ct,j),pt={minX:ct.x,minY:ct.y,maxX:ct.x+dt,maxY:ct.y+ft};return checkRectIntersect(ut,pt)})};function handleNavigate(j,_e){let et=unSelectAllEntity()(j.data.present);if(_e.node&&_e.port)et=et.updatePort(_e.node.id,_e.port.id,updateStatus(add$1(GraphPortStatus.Selected)));else if(_e.node){const tt=_e.node.id;et=et.selectNodes(rt=>rt.id===tt)}return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:et})})}const selectionReducer=(j,_e)=>{var et,tt;const rt=j.data.present,nt=j.settings.features.has(GraphFeatures.LassoSelect);switch(_e.type){case GraphCanvasEvent.Click:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.ContextMenu:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:unSelectAllEntity()(rt)})});case GraphNodeEvent.Click:case GraphNodeEvent.ContextMenu:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:nodeSelection(_e.rawEvent,_e.node)(rt)})});case GraphCanvasEvent.SelectStart:{if(!isViewportComplete(j.viewport))return j;const ot=getRelativePoint(j.viewport.rect,_e.rawEvent);return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:unSelectAllEntity()(rt)}),selectBoxPosition:{startX:ot.x,startY:nt?0:ot.y,width:0,height:0}})}case GraphCanvasEvent.SelectMove:return j.behavior!==GraphBehavior.MultiSelect?j:Object.assign(Object.assign({},j),{selectBoxPosition:Object.assign(Object.assign({},j.selectBoxPosition),{width:j.selectBoxPosition.width+_e.dx,height:nt?(tt=(et=j.viewport.rect)===null||et===void 0?void 0:et.height)!==null&&tt!==void 0?tt:j.selectBoxPosition.height:j.selectBoxPosition.height+_e.dy})});case GraphCanvasEvent.SelectEnd:return Object.assign(Object.assign({},j),{selectBoxPosition:emptySelectBoxPosition(),data:Object.assign(Object.assign({},j.data),{present:selectNodeBySelectBox(j.settings.graphConfig,j.viewport.transformMatrix,j.selectBoxPosition,rt)})});case GraphCanvasEvent.UpdateNodeSelectionBySelectBox:return j.behavior!==GraphBehavior.MultiSelect?j:Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:selectNodeBySelectBox(j.settings.graphConfig,j.viewport.transformMatrix,j.selectBoxPosition,rt)})});case GraphCanvasEvent.Navigate:return handleNavigate(j,_e);case GraphNodeEvent.SelectAll:return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:rt.selectNodes(()=>!0)})});case GraphNodeEvent.Select:{const ot=new Set(_e.nodes);return Object.assign(Object.assign({},j),{data:Object.assign(Object.assign({},j.data),{present:rt.selectNodes(it=>ot.has(it.id))})})}default:return j}};function getRectCenter(j){return{x:j.width/2,y:j.height/2}}function resetViewport(j,_e,et,tt){if(!isViewportComplete(j))return j;if(!tt.ensureNodeVisible)return Object.assign(Object.assign({},j),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const{nodes:rt,groups:nt}=_e;if(rt.size===0)return Object.assign(Object.assign({},j),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const ot=ft=>isRectVisible(ft,j),it=rt.map(ft=>getNodeRect(ft,et));if(it.find(ot))return Object.assign(Object.assign({},j),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const lt=nt.map(ft=>getGroupRect(ft,rt,et));if(lt.find(ot))return Object.assign(Object.assign({},j),{transformMatrix:EMPTY_TRANSFORM_MATRIX});let ct=it.first();const dt=ft=>{ct.y>ft.y&&(ct=ft)};return it.forEach(dt),lt.forEach(dt),Object.assign(Object.assign({},j),{transformMatrix:[1,0,0,1,-ct.x,-ct.y]})}function zoomToFit(j,_e,et,tt){if(!isViewportComplete(j))return j;const{graphConfig:rt,nodeMaxVisibleSize:nt,nodeMinVisibleSize:ot}=et,it=getZoomFitMatrix(Object.assign(Object.assign({},tt),{data:_e,graphConfig:rt,rect:j.rect,nodeMaxVisibleSize:nt,nodeMinVisibleSize:ot}));return Object.assign(Object.assign({},j),{transformMatrix:it})}const reducer=(j,_e,et,tt)=>{var rt,nt,ot,it;const{graphConfig:st,canvasBoundaryPadding:lt,features:ut}=tt,ct=dt=>Math.max(dt,getScaleLimit(et,tt));switch(_e.type){case GraphCanvasEvent.ViewportResize:return Object.assign(Object.assign({},j),{rect:_e.viewportRect});case GraphCanvasEvent.Zoom:return isViewportComplete(j)?zoom({scale:_e.scale,anchor:(rt=_e.anchor)!==null&&rt!==void 0?rt:getRectCenter(j.rect),direction:_e.direction,limitScale:ct})(j):j;case GraphScrollBarEvent.Scroll:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Pan:case GraphCanvasEvent.Drag:{if(!isViewportComplete(j))return j;const{transformMatrix:dt,rect:ft}=j;let{dx:pt,dy:gt}=_e;const mt=ut.has(GraphFeatures.LimitBoundary),bt=(ot=(nt=et.groups)===null||nt===void 0?void 0:nt[0])===null||ot===void 0?void 0:ot.padding;if(mt){const{minX:_t,maxX:xt,minY:yt,maxY:Et}=getOffsetLimit({data:et,graphConfig:st,rect:ft,transformMatrix:dt,canvasBoundaryPadding:lt,groupPadding:bt});pt=clamp$1(_t-dt[4],xt-dt[4],pt),gt=clamp$1(yt-dt[5],Et-dt[5],gt)}return pan(pt,gt)(j)}case GraphCanvasEvent.Pinch:{const{dx:dt,dy:ft,scale:pt,anchor:gt}=_e;return pipe(pan(dt,ft),zoom({scale:pt,anchor:gt,limitScale:ct}))(j)}case GraphMinimapEvent.Pan:return minimapPan(_e.dx,_e.dy)(j);case GraphCanvasEvent.ResetViewport:return resetViewport(j,et,st,_e);case GraphCanvasEvent.ZoomTo:return isViewportComplete(j)?zoomTo({scale:_e.scale,anchor:(it=_e.anchor)!==null&&it!==void 0?it:getRectCenter(j.rect),direction:_e.direction,limitScale:ct})(j):j;case GraphCanvasEvent.ZoomToFit:return zoomToFit(j,et,tt,_e);case GraphCanvasEvent.ScrollIntoView:if(j.rect){const{x:dt,y:ft}=transformPoint(_e.x,_e.y,j.transformMatrix);return scrollIntoView$1(dt,ft,j.rect,!0)(j)}return j;default:return j}},viewportReducer=(j,_e)=>{const et=reducer(j.viewport,_e,j.data.present,j.settings);return et===j.viewport?j:Object.assign(Object.assign({},j),{viewport:et})},builtinReducer=composeReducers([behaviorReducer,viewportReducer,nodeReducer,portReducer,edgeReducer,canvasReducer,connectingReducer,selectionReducer,contextMenuReducer].map(j=>_e=>(et,tt)=>_e(j(et,tt),tt)));function getGraphReducer(j=void 0,_e=identical){return(j?composeReducers([j,builtinReducer]):builtinReducer)(_e)}function useGraphReducer(j,_e){const et=reactExports.useMemo(()=>getGraphReducer(_e),[_e]),[tt,rt]=reactExports.useReducer(et,j,createGraphState),nt=useConst(()=>[]),ot=reactExports.useRef(tt),it=reactExports.useCallback((st,lt)=>{lt&&nt.push(lt),rt(st)},[nt]);return reactExports.useEffect(()=>{const st=ot.current;st!==tt&&(ot.current=tt,reactDomExports.unstable_batchedUpdates(()=>{nt.forEach(lt=>{try{lt(tt,st)}catch(ut){console.error(ut)}}),nt.length=0}))},[tt]),[tt,it]}class MouseMoveEventProvider{constructor(_e){this.target=_e}off(_e,et){switch(_e){case"move":this.target.removeEventListener("mousemove",et);break;case"end":this.target.removeEventListener("mouseup",et);break}return this}on(_e,et){switch(_e){case"move":this.target.addEventListener("mousemove",et);break;case"end":this.target.addEventListener("mouseup",et);break}return this}}const useGetMouseDownOnAnchor=(j,_e)=>{const et=useGraphController();return reactExports.useCallback(tt=>rt=>{rt.preventDefault(),rt.stopPropagation(),_e.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:rt,node:j});const nt=new DragController(new MouseMoveEventProvider(et.getGlobalEventTarget()),defaultGetPositionFromEvent);nt.onMove=({totalDX:ot,totalDY:it,e:st})=>{_e.trigger(Object.assign({type:GraphNodeEvent.Resizing,rawEvent:st,node:j,dx:0,dy:0,dWidth:0,dHeight:0},tt(ot,it)))},nt.onEnd=({e:ot})=>{_e.trigger({type:GraphNodeEvent.ResizingEnd,rawEvent:ot,node:j})},_e.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:rt,node:j}),nt.start(rt.nativeEvent)},[_e,et,j])};class PointerEventProvider{constructor(_e,et=null){this.eventEmitter=new eventemitter3Exports.EventEmitter,this.onMove=tt=>{(this.pointerId===null||this.pointerId===tt.pointerId)&&this.eventEmitter.emit("move",tt)},this.onUp=tt=>{(this.pointerId===null||this.pointerId===tt.pointerId)&&this.eventEmitter.emit("end",tt)},this.target=_e,this.pointerId=et}off(_e,et){return this.eventEmitter.off(_e,et),this.ensureRemoveListener(_e),this}on(_e,et){return this.ensureAddListener(_e),this.eventEmitter.on(_e,et),this}ensureAddListener(_e){if(!this.eventEmitter.listeners(_e).length)switch(_e){case"move":this.target.addEventListener("pointermove",this.onMove);break;case"end":this.target.addEventListener("pointerup",this.onUp);break}}ensureRemoveListener(_e){if(!this.eventEmitter.listeners(_e).length)switch(_e){case"move":this.target.removeEventListener("pointermove",this.onMove);break;case"end":this.target.removeEventListener("pointerup",this.onUp);break}}}const withSimulatedClick=(j,_e)=>({totalDX:et,totalDY:tt,e:rt})=>{var nt;const{eventChannel:ot,dragThreshold:it,containerRef:st}=j,lt=[];lt.push({type:_e,rawEvent:rt}),rt.target instanceof Node&&(!((nt=st.current)===null||nt===void 0)&&nt.contains(rt.target))&&isWithinThreshold(et,tt,it)&<.push({type:GraphCanvasEvent.Click,rawEvent:rt}),ot.batch(lt)},dragMultiSelect=(j,_e)=>{const{getPositionFromEvent:et,graphController:tt,eventChannel:rt}=_e,nt=new DragController(new MouseMoveEventProvider(tt.getGlobalEventTarget()),et);nt.onMove=({dx:ot,dy:it,e:st})=>{rt.trigger({type:GraphCanvasEvent.SelectMove,rawEvent:st,dx:ot,dy:it})},nt.onEnd=withSimulatedClick(_e,GraphCanvasEvent.SelectEnd),rt.trigger({type:GraphCanvasEvent.SelectStart,rawEvent:j}),nt.start(j)},dragPan=(j,_e)=>{const{getPositionFromEvent:et,graphController:tt,eventChannel:rt}=_e,nt=new DragController(new MouseMoveEventProvider(tt.getGlobalEventTarget()),et);nt.onMove=({dx:ot,dy:it,e:st})=>{rt.trigger({type:GraphCanvasEvent.Drag,rawEvent:st,dx:ot,dy:it})},nt.onEnd=withSimulatedClick(_e,GraphCanvasEvent.DragEnd),nt.start(j),rt.trigger({type:GraphCanvasEvent.DragStart,rawEvent:j})},onContainerMouseDown=(j,_e)=>{var et;if(j.preventDefault(),j.stopPropagation(),j.button!==MouseEventButton.Primary)return;const{canvasMouseMode:tt,isPanDisabled:rt,isMultiSelectDisabled:nt,state:ot,isLassoSelectEnable:it,graphController:st}=_e,lt=tt===CanvasMouseMode.Pan&&!j.ctrlKey&&!j.shiftKey&&!j.metaKey||((et=ot.activeKeys)===null||et===void 0?void 0:et.has(" "));!rt&<?dragPan(j.nativeEvent,_e):!nt||it&&!j.ctrlKey&&!j.metaKey?dragMultiSelect(j.nativeEvent,_e):st.canvasClickOnce=!0};function isMouseButNotLeft(j){return j.pointerType==="mouse"&&j.button!==MouseEventButton.Primary}const onNodePointerDown=(j,_e,et)=>{j.preventDefault();const{svgRef:tt,isNodesDraggable:rt,getPositionFromEvent:nt,isClickNodeToSelectDisabled:ot,eventChannel:it,dragThreshold:st,rectRef:lt,isAutoAlignEnable:ut,autoAlignThreshold:ct,graphController:dt}=et;rt&&j.stopPropagation();const ft=isMouseButNotLeft(j);if(ot||ft)return;tt.current&&tt.current.focus({preventScroll:!0});const pt=checkIsMultiSelect(j),gt=new DragNodeController(new PointerEventProvider(dt.getGlobalEventTarget(),j.pointerId),nt,lt);gt.onMove=({dx:mt,dy:bt,totalDX:_t,totalDY:xt,e:yt})=>{rt&&it.trigger({type:GraphNodeEvent.Drag,node:_e,dx:mt,dy:bt,rawEvent:yt,isVisible:!isWithinThreshold(_t,xt,st),isAutoAlignEnable:ut,autoAlignThreshold:ct})},gt.onEnd=({totalDX:mt,totalDY:bt,e:_t})=>{var xt,yt;dt.pointerId=null;const Et=isWithinThreshold(mt,bt,st);if((Et||!rt)&&(dt.nodeClickOnce=_e),it.trigger({type:GraphNodeEvent.DragEnd,node:_e,rawEvent:_t,isDragCanceled:Et}),Et){const St=new MouseEvent("click",_t);(yt=(xt=j.currentTarget)!==null&&xt!==void 0?xt:j.target)===null||yt===void 0||yt.dispatchEvent(St)}},dt.pointerId=j.pointerId,j.target instanceof Element&&j.pointerType!=="mouse"&&j.target.releasePointerCapture(j.pointerId),it.trigger({type:GraphNodeEvent.DragStart,node:_e,rawEvent:j,isMultiSelect:pt}),gt.start(j.nativeEvent)},useCanvasKeyboardEventHandlers=j=>{const{featureControl:_e,graphConfig:et,setCurHoverNode:tt,setCurHoverPort:rt,eventChannel:nt}=j,{isDeleteDisabled:ot,isPasteDisabled:it,isUndoEnabled:st}=_e;return reactExports.useMemo(()=>{const lt=new Map,ut=()=>yt=>{yt.preventDefault(),yt.stopPropagation(),!ot&&(nt.trigger({type:GraphCanvasEvent.Delete}),tt(void 0),rt(void 0))};lt.set("delete",ut()),lt.set("backspace",ut());const ct=yt=>{metaControl(yt)&&(yt.preventDefault(),yt.stopPropagation(),nt.trigger({type:GraphCanvasEvent.Copy}))};lt.set("c",ct);const dt=yt=>{if(metaControl(yt)){if(yt.preventDefault(),yt.stopPropagation(),it)return;const Et=et.getClipboard().read();Et&&nt.trigger({type:GraphCanvasEvent.Paste,data:Et})}};lt.set("v",dt);const ft=yt=>{st&&metaControl(yt)&&(yt.preventDefault(),yt.stopPropagation(),nt.trigger({type:GraphCanvasEvent.Undo}))};st&<.set("z",ft);const pt=yt=>{st&&metaControl(yt)&&(yt.preventDefault(),yt.stopPropagation(),nt.trigger({type:GraphCanvasEvent.Redo}))};st&<.set("y",pt);const gt=yt=>{metaControl(yt)&&(yt.preventDefault(),yt.stopPropagation(),nt.trigger({type:GraphNodeEvent.SelectAll}))};lt.set("a",gt);const mt=yt=>{yt.preventDefault(),yt.stopPropagation()},bt=yt=>{yt.preventDefault(),yt.stopPropagation()},_t=yt=>{yt.preventDefault(),yt.stopPropagation()},xt=yt=>{yt.preventDefault(),yt.stopPropagation()};return lt.set(" ",mt),lt.set("control",bt),lt.set("meta",_t),lt.set("shift",xt),yt=>{if(yt.repeat)return;const Et=yt.key.toLowerCase(),St=lt.get(Et);St&&St.call(null,yt)}},[nt,et,ot,it,st,tt,rt])};let prevMouseDownPortId,prevMouseDownPortTime;function useEventChannel({props:j,dispatch:_e,rectRef:et,svgRef:tt,containerRef:rt,featureControl:nt,graphConfig:ot,setFocusedWithoutMouse:it,setCurHoverNode:st,setCurHoverPort:lt,eventChannel:ut,updateViewport:ct,graphController:dt}){const{dragThreshold:ft=10,autoAlignThreshold:pt=DEFAULT_AUTO_ALIGN_THRESHOLD,getPositionFromEvent:gt=defaultGetPositionFromEvent,canvasMouseMode:mt,edgeWillAdd:bt}=j,{isNodesDraggable:_t,isAutoAlignEnable:xt,isClickNodeToSelectDisabled:yt,isPanDisabled:Et,isMultiSelectDisabled:St,isLassoSelectEnable:Tt,isConnectDisabled:kt,isPortHoverViewEnable:$t,isNodeEditDisabled:Ct,isA11yEnable:It}=nt,Nt=reactExports.useMemo(()=>animationFramed(_e),[_e]),Ot=useCanvasKeyboardEventHandlers({featureControl:nt,eventChannel:ut,graphConfig:ot,setCurHoverNode:st,setCurHoverPort:lt}),jt=Ut=>{const ar=dt.getData();if(ar.nodes.size>0&&tt.current){const pr=ar.head&&ar.nodes.get(ar.head);pr&&focusItem(tt,{node:pr,port:void 0},Ut,ut)}},Mt=Ut=>{switch(Ut.type){case GraphEdgeEvent.ConnectStart:case GraphEdgeEvent.ConnectMove:case GraphEdgeEvent.ConnectEnd:case GraphEdgeEvent.ConnectNavigate:case GraphEdgeEvent.Click:case GraphEdgeEvent.MouseEnter:case GraphEdgeEvent.MouseLeave:case GraphEdgeEvent.DoubleClick:_e(Ut);break;case GraphEdgeEvent.ContextMenu:Ut.rawEvent.stopPropagation(),Ut.rawEvent.preventDefault(),_e(Ut);break}},Rt=Ut=>{var ar,pr;switch(Ut.type){case GraphCanvasEvent.ViewportResize:case GraphCanvasEvent.Drag:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Zoom:case GraphCanvasEvent.Pinch:case GraphCanvasEvent.Click:case GraphCanvasEvent.SelectStart:case GraphCanvasEvent.SelectMove:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.Navigate:case GraphCanvasEvent.Paste:case GraphCanvasEvent.Undo:case GraphCanvasEvent.Redo:case GraphCanvasEvent.Delete:case GraphCanvasEvent.KeyUp:case GraphCanvasEvent.DraggingNodeFromItemPanelStart:case GraphCanvasEvent.DraggingNodeFromItemPanel:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:_e(Ut);break;case GraphCanvasEvent.Copy:{const rr=filterSelectedItems(dt.getData());ot.getClipboard().write(rr)}break;case GraphCanvasEvent.KeyDown:!Ut.rawEvent.repeat&&Ut.rawEvent.target===Ut.rawEvent.currentTarget&&!Ut.rawEvent.shiftKey&&Ut.rawEvent.key==="Tab"?(Ut.rawEvent.preventDefault(),Ut.rawEvent.stopPropagation(),it(!0),jt(Ut.rawEvent)):Ot(Ut.rawEvent),_e(Ut);break;case GraphCanvasEvent.MouseDown:{dt.nodeClickOnce=null,(ar=tt.current)===null||ar===void 0||ar.focus({preventScroll:!0}),it(!1);const rr=Ut.rawEvent;ct(),onContainerMouseDown(rr,{state:dt.state,canvasMouseMode:mt,isPanDisabled:Et,isMultiSelectDisabled:St,isLassoSelectEnable:Tt,dragThreshold:ft,containerRef:rt,getPositionFromEvent:defaultGetPositionFromEvent,eventChannel:ut,graphController:dt})}break;case GraphCanvasEvent.MouseUp:if(dt.canvasClickOnce){dt.canvasClickOnce=!1;const rr=Ut.rawEvent;rr.target instanceof Node&&(!((pr=tt.current)===null||pr===void 0)&&pr.contains(rr.target))&&rr.target.nodeName==="svg"&&ut.trigger({type:GraphCanvasEvent.Click,rawEvent:Ut.rawEvent})}break;case GraphCanvasEvent.ContextMenu:Ut.rawEvent.preventDefault(),Ut.rawEvent.stopPropagation(),_e(Ut);break;case GraphCanvasEvent.MouseMove:{const rr=Ut.rawEvent;dt.setMouseClientPosition({x:rr.clientX,y:rr.clientY})}break;case GraphCanvasEvent.MouseLeave:dt.unsetMouseClientPosition(),dt.canvasClickOnce=!1;break;case GraphCanvasEvent.Blur:it(!1);break}},Lt=Ut=>{const{node:ar}=Ut,{isNodeHoverViewEnabled:pr}=nt;switch(dt.getBehavior()){case GraphBehavior.Connecting:case GraphBehavior.Default:pr&&(st(ar.id),lt(void 0));break}_e(Ut)},Pt=Ut=>{_e(Ut),st(void 0)},Gt=Ut=>{Ct||(Ut.rawEvent.stopPropagation(),_e(Ut))},qt=Ut=>{if(!tt||!It)return;const ar=dt.getData(),{node:pr}=Ut,rr=Ut.rawEvent;switch(rr.key){case"Tab":{rr.preventDefault(),rr.stopPropagation();const vr=rr.shiftKey?getPrevItem(ar,pr):getNextItem(ar,pr);focusItem(tt,vr,rr,ut)}break;case"ArrowUp":rr.preventDefault(),rr.stopPropagation(),focusUpNode(ar,pr.id,tt,dt,rr,ut);break;case"ArrowDown":rr.preventDefault(),rr.stopPropagation(),focusDownNode(ar,pr.id,tt,dt,rr,ut);break;case"ArrowLeft":rr.preventDefault(),rr.stopPropagation(),focusLeftNode(ar,pr.id,tt,dt,rr,ut);break;case"ArrowRight":rr.preventDefault(),rr.stopPropagation(),focusRightNode(ar,pr.id,tt,dt,rr,ut);break}},Yt=Ut=>{var ar;switch(Ut.type){case GraphNodeEvent.ResizingStart:case GraphNodeEvent.Resizing:case GraphNodeEvent.ResizingEnd:case GraphNodeEvent.DragStart:case GraphNodeEvent.Drag:case GraphNodeEvent.DragEnd:case GraphNodeEvent.SelectAll:_e(Ut);break;case GraphNodeEvent.PointerMove:Ut.rawEvent.pointerId===dt.pointerId&&Nt(Ut);break;case GraphNodeEvent.PointerDown:{if(dt.nodeClickOnce=null,dt.getBehavior()!==GraphBehavior.Default)return;const pr=Ut.rawEvent;ct(),onNodePointerDown(pr,Ut.node,{svgRef:tt,rectRef:et,isNodesDraggable:_t,isAutoAlignEnable:xt,dragThreshold:ft,getPositionFromEvent:gt,isClickNodeToSelectDisabled:yt,autoAlignThreshold:pt,eventChannel:ut,graphController:dt})}break;case GraphNodeEvent.PointerEnter:Lt(Ut);break;case GraphNodeEvent.PointerLeave:Pt(Ut);break;case GraphNodeEvent.MouseDown:dt.nodeClickOnce=null,Ut.rawEvent.preventDefault(),_t&&Ut.rawEvent.stopPropagation(),it(!1);break;case GraphNodeEvent.Click:if(((ar=dt.nodeClickOnce)===null||ar===void 0?void 0:ar.id)===Ut.node.id){const{currentTarget:pr}=Ut.rawEvent;pr instanceof SVGElement&&pr.focus({preventScroll:!0}),Ut.node=dt.nodeClickOnce,_e(Ut),dt.nodeClickOnce=null}else Ut.intercepted=!0;break;case GraphNodeEvent.ContextMenu:Ut.rawEvent.preventDefault(),Ut.rawEvent.stopPropagation(),_e(Ut);break;case GraphNodeEvent.DoubleClick:Gt(Ut);break;case GraphNodeEvent.KeyDown:qt(Ut);break}},Xt=reactExports.useCallback(Ut=>{const ar=Ut.rawEvent,{node:pr,port:rr}=Ut;if(it(!1),ar.stopPropagation(),ar.preventDefault(),prevMouseDownPortId=`${pr.id}:${rr.id}`,prevMouseDownPortTime=performance.now(),kt||isMouseButNotLeft(ar))return;ct();const vr=dt.getGlobalEventTarget(),$r=new DragController(new PointerEventProvider(vr,ar.pointerId),gt);$r.onMove=({clientX:Rr,clientY:Cr,e:Nr})=>{ut.trigger({type:GraphEdgeEvent.ConnectMove,rawEvent:Nr,clientX:Rr,clientY:Cr})},$r.onEnd=({e:Rr,totalDY:Cr,totalDX:Nr})=>{var Gr,qr;const Qr=isWithinThreshold(Nr,Cr,ft);if(ut.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Rr,edgeWillAdd:bt,isCancel:Qr}),dt.pointerId=null,Qr){const Yr=new MouseEvent("click",Rr);(qr=(Gr=ar.currentTarget)!==null&&Gr!==void 0?Gr:ar.target)===null||qr===void 0||qr.dispatchEvent(Yr)}},ut.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:pr.id,portId:rr.id,rawEvent:ar,clientPoint:{x:ar.clientX,y:ar.clientY}}),ar.target instanceof Element&&ar.pointerType!=="mouse"&&ar.target.releasePointerCapture(ar.pointerId),dt.pointerId=ar.pointerId,$r.start(ar.nativeEvent)},[bt,ut,gt,dt,kt,it,ct]),tr=reactExports.useCallback(Ut=>{const ar=Ut.rawEvent,{node:pr,port:rr}=Ut;prevMouseDownPortId===`${pr.id}:${rr.id}`&&performance.now()-(prevMouseDownPortTime||0)<500&&(prevMouseDownPortId=void 0,prevMouseDownPortTime=void 0,ut.trigger({type:GraphPortEvent.Click,node:pr,port:rr,rawEvent:ar}))},[ut]),cr=Ut=>{switch(dt.getBehavior()){case GraphBehavior.Default:lt([Ut.node.id,Ut.port.id]);break}$t&<([Ut.node.id,Ut.port.id]),Ut.rawEvent.pointerId===dt.pointerId&&_e(Ut)},mr=Ut=>{lt(void 0),_e(Ut)},Er=Ut=>{var ar,pr,rr;if(!It)return;const vr=Ut.rawEvent;if(vr.altKey&&(vr.nativeEvent.code==="KeyC"||vr.key==="c")){vr.preventDefault(),vr.stopPropagation(),ut.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:Ut.node.id,portId:Ut.port.id,rawEvent:vr});return}const $r=dt.getData(),{node:Rr,port:Cr}=Ut;switch(vr.key){case"Tab":if(It&&dt.getBehavior()===GraphBehavior.Connecting)vr.preventDefault(),vr.stopPropagation(),ut.trigger({type:GraphEdgeEvent.ConnectNavigate,rawEvent:vr});else{const Nr=vr.shiftKey?getPrevItem($r,Rr,Cr):getNextItem($r,Rr,Cr);focusItem(tt,Nr,vr,ut)}break;case"ArrowUp":case"ArrowLeft":vr.preventDefault(),vr.stopPropagation(),focusPrevPort((ar=Rr.ports)!==null&&ar!==void 0?ar:[],Rr,Cr.id,tt,vr,ut);break;case"ArrowDown":case"ArrowRight":vr.preventDefault(),vr.stopPropagation(),focusNextPort((pr=Rr.ports)!==null&&pr!==void 0?pr:[],Rr,Cr.id,tt,vr,ut);break;case"g":vr.preventDefault(),vr.stopPropagation(),goToConnectedPort($r,Rr,Cr,tt,vr,ut);break;case"Escape":dt.getBehavior()===GraphBehavior.Connecting&&(vr.preventDefault(),vr.stopPropagation(),tt.current&&((rr=findDOMElement(tt.current,{node:Rr,port:Cr}))===null||rr===void 0||rr.blur()));break;case"Enter":vr.preventDefault(),vr.stopPropagation(),ut.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:vr.nativeEvent,edgeWillAdd:bt,isCancel:!1});break}},hr=Ut=>{switch(Ut.type){case GraphPortEvent.Click:_e(Ut);break;case GraphPortEvent.PointerDown:Xt(Ut);break;case GraphPortEvent.PointerUp:tr(Ut);break;case GraphPortEvent.PointerEnter:cr(Ut);break;case GraphPortEvent.PointerLeave:mr(Ut);break;case GraphPortEvent.ContextMenu:Ut.rawEvent.preventDefault(),Ut.rawEvent.stopPropagation(),_e(Ut);break;case GraphPortEvent.Focus:Ut.rawEvent.stopPropagation(),_e(Ut);break;case GraphPortEvent.Blur:dt.getBehavior()===GraphBehavior.Connecting&&ut.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Ut.rawEvent.nativeEvent,edgeWillAdd:bt,isCancel:!0});break;case GraphPortEvent.KeyDown:Er(Ut);break}},_r=Ut=>{const ar=handleBehaviorChange(dt.getBehavior(),Ut);switch(dt.setBehavior(ar),Mt(Ut),Rt(Ut),Yt(Ut),hr(Ut),Ut.type){case GraphMinimapEvent.Pan:case GraphScrollBarEvent.Scroll:case GraphContextMenuEvent.Open:case GraphContextMenuEvent.Close:_e(Ut);break}};reactExports.useImperativeHandle(ut.listenersRef,()=>_r),reactExports.useImperativeHandle(ut.externalHandlerRef,()=>j.onEvent)}const useFeatureControl=j=>reactExports.useMemo(()=>{const _e=j.has(GraphFeatures.NodeDraggable),et=j.has(GraphFeatures.NodeResizable),tt=!j.has(GraphFeatures.AutoFit),rt=!j.has(GraphFeatures.PanCanvas),nt=!j.has(GraphFeatures.MultipleSelect),ot=j.has(GraphFeatures.LassoSelect),it=j.has(GraphFeatures.NodeHoverView),st=!j.has(GraphFeatures.ClickNodeToSelect),lt=!j.has(GraphFeatures.AddNewEdges),ut=j.has(GraphFeatures.PortHoverView),ct=!j.has(GraphFeatures.EditNode),dt=!j.has(GraphFeatures.CanvasVerticalScrollable),ft=!j.has(GraphFeatures.CanvasHorizontalScrollable),pt=j.has(GraphFeatures.A11yFeatures),gt=j.has(GraphFeatures.AutoAlign),mt=j.has(GraphFeatures.CtrlKeyZoom),bt=j.has(GraphFeatures.LimitBoundary),_t=!j.has(GraphFeatures.AutoFit),xt=j.has(GraphFeatures.EditEdge),yt=!j.has(GraphFeatures.Delete),Et=!j.has(GraphFeatures.AddNewNodes)||!j.has(GraphFeatures.AddNewEdges),St=j.has(GraphFeatures.UndoStack),Tt=(!dt||!ft||!rt)&&bt&&!j.has(GraphFeatures.InvisibleScrollbar);return{isNodesDraggable:_e,isNodeResizable:et,isAutoFitDisabled:tt,isPanDisabled:rt,isMultiSelectDisabled:nt,isLassoSelectEnable:ot,isNodeHoverViewEnabled:it,isClickNodeToSelectDisabled:st,isConnectDisabled:lt,isPortHoverViewEnable:ut,isNodeEditDisabled:ct,isVerticalScrollDisabled:dt,isHorizontalScrollDisabled:ft,isA11yEnable:pt,isAutoAlignEnable:gt,isCtrlKeyZoomEnable:mt,isLimitBoundary:bt,isVirtualizationEnabled:_t,isEdgeEditable:xt,isDeleteDisabled:yt,isPasteDisabled:Et,isUndoEnabled:St,isScrollbarVisible:Tt}},[j]),emptyLine=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),Line=j=>{var _e;const{line:et,style:tt}=j,rt=Object.assign(Object.assign({strokeWidth:1},tt),{stroke:et.visible?(_e=tt==null?void 0:tt.stroke)!==null&&_e!==void 0?_e:"#ea4300":"none"});return jsxRuntimeExports.jsx("line",{className:"auto-align-hint",x1:et.x1,y1:et.y1,x2:et.x2,y2:et.y2,style:rt})},AlignmentLines=reactExports.memo(({style:j})=>{const _e=useAlignmentLines();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:_e.map((et,tt)=>et.visible?jsxRuntimeExports.jsx(Line,{line:et,style:j},tt):null)})});AlignmentLines.displayName="AlignmentLines";const NodeFrame=j=>{var _e,et;const tt=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(et=(_e=tt.renderNodeFrame)===null||_e===void 0?void 0:_e.call(tt,j))!==null&&et!==void 0?et:j.children})},NodeResizeHandler=j=>{var _e,et;const tt=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(et=(_e=tt.renderNodeResizeHandler)===null||_e===void 0?void 0:_e.call(tt,j))!==null&&et!==void 0?et:j.children})},Slots={NodeFrame,NodeResizeHandler},AnimatingNodeGroup=j=>{var _e,et;const{dummyNodes:tt,graphData:rt}=j,nt=useGraphConfig(),{dWidth:ot,dHeight:it}=tt,st=(_e=tt.alignedDX)!==null&&_e!==void 0?_e:tt.dx,lt=(et=tt.alignedDY)!==null&&et!==void 0?et:tt.dy;return jsxRuntimeExports.jsx("g",{children:tt.nodes.map(ut=>{const ct=rt.nodes.get(ut.id);if(!ct)return null;const dt=ut.x+st,ft=ut.y+lt,pt=ut.width+ot,gt=ut.height+it,mt=getNodeConfig(ct,nt);return mt!=null&&mt.renderDummy?mt.renderDummy(Object.assign(Object.assign({},ct.inner),{x:dt,y:ft,width:pt,height:gt})):jsxRuntimeExports.jsx(Slots.NodeFrame,Object.assign({height:gt,width:pt,x:dt,y:ft},{children:jsxRuntimeExports.jsx("rect",{transform:`translate(${dt},${ft})`,height:gt,width:pt,stroke:defaultColors.dummyNodeStroke,strokeDasharray:"4",fill:"none"},ct.id)}),`node-frame-${ut.id}`)})})},ConnectingLine=j=>{const{autoAttachLine:_e,connectingLine:et,styles:tt}=j,rt=(tt==null?void 0:tt.stroke)||defaultColors.primaryColor,nt=(tt==null?void 0:tt.fill)||"none",ot=(tt==null?void 0:tt.strokeDasharray)||"4,4",it=et.visible?rt:"none";return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:jsxRuntimeExports.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:it,fill:"none"}})}))}),jsxRuntimeExports.jsx("line",{x1:et.x1,y1:et.y1,x2:et.x2,y2:et.y2,style:{stroke:it,fill:nt,strokeDasharray:ot},markerEnd:"url(#markerArrow)"}),jsxRuntimeExports.jsx("path",{d:getCurvePathD(_e.x2,_e.x1,_e.y2,_e.y1),style:{stroke:_e.visible?rt:"none",fill:"none"}})]})},Connecting=reactExports.memo(j=>{const{styles:_e,graphConfig:et,viewport:tt,movingPoint:rt}=j,{sourcePort:nt,sourceNode:ot,targetPort:it,targetNode:st}=useConnectingState();if(!ot||!nt)return null;const lt=ot.getPortPosition(nt.id,et);let ut,ct=!1;if(st&&it?(ct=!0,ut=st==null?void 0:st.getPortPosition(it.id,et)):ut=lt,!lt||!ut)return null;const dt=transformPoint(lt.x,lt.y,tt.transformMatrix),ft=transformPoint(ut.x,ut.y,tt.transformMatrix),pt=rt?{x1:dt.x,y1:dt.y,x2:rt.x,y2:rt.y,visible:!ct}:emptyLine(),gt={x1:dt.x,y1:dt.y,x2:ft.x,y2:ft.y,visible:ct};return jsxRuntimeExports.jsx(ConnectingLine,{connectingLine:pt,autoAttachLine:gt,styles:_e})});Connecting.displayName="Connecting";const defaultStyle={position:"fixed",userSelect:"none"},GraphContextMenu=({state:j,onClick:_e})=>{var et,tt;const rt=reactExports.useRef(null),[nt,ot]=reactExports.useState(Object.assign({},defaultStyle));reactExports.useLayoutEffect(()=>{const ct=rt.current;if(!ct||!j.contextMenuPosition)return;const{x:dt,y:ft}=j.contextMenuPosition,{clientWidth:pt,clientHeight:gt}=document.documentElement,{width:mt,height:bt}=ct.getBoundingClientRect(),_t=Object.assign({},defaultStyle);dt+mt>=pt?_t.right=0:_t.left=dt,ft+bt>gt?_t.bottom=0:_t.top=ft,ot(_t)},[(et=j.contextMenuPosition)===null||et===void 0?void 0:et.x,(tt=j.contextMenuPosition)===null||tt===void 0?void 0:tt.y]);const it=useContextMenuConfigContext(),[st,lt]=reactExports.useState(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}));reactExports.useEffect(()=>{const ct=j.data.present;let dt=0,ft=0,pt=0;ct.nodes.forEach(mt=>{var bt;isSelected(mt)&&(dt+=1),(bt=mt.ports)===null||bt===void 0||bt.forEach(_t=>{isSelected(_t)&&(ft+=1)})}),ct.edges.forEach(mt=>{isSelected(mt)&&(pt+=1)});let gt;ft+dt+pt>1?gt=it.getMenu(MenuType.Multi):ft+dt+pt===0?gt=it.getMenu(MenuType.Canvas):dt===1?gt=it.getMenu(MenuType.Node):ft===1?gt=it.getMenu(MenuType.Port):gt=it.getMenu(MenuType.Edge),lt(gt)},[j.data.present,it]);const ut=reactExports.useCallback(ct=>{ct.stopPropagation(),ct.preventDefault()},[]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:j.contextMenuPosition&&jsxRuntimeExports.jsx("div",Object.assign({ref:rt,onClick:_e,onContextMenu:ut,role:"button",style:nt},{children:st}))})},Renderer=j=>jsxRuntimeExports.jsx("rect",{height:j.height,width:j.width,fill:j.group.fill}),defaultGroup={render:Renderer},Group=j=>{var _e;const{data:et,group:tt}=j,rt=useGraphConfig(),{x:nt,y:ot,width:it,height:st}=reactExports.useMemo(()=>getGroupRect(tt,et.nodes,rt),[tt,et.nodes,rt]),lt=(_e=rt.getGroupConfig(tt))!==null&&_e!==void 0?_e:defaultGroup,ut=`group-container-${tt.id}`;return jsxRuntimeExports.jsx("g",Object.assign({"data-automation-id":ut,transform:`translate(${nt}, ${ot})`},{children:lt.render({group:tt,height:st,width:it})}),tt.id)},GraphGroupsRenderer=j=>jsxRuntimeExports.jsx("g",{children:reactExports.useMemo(()=>j.groups.map(_e=>jsxRuntimeExports.jsx(Group,{group:_e,data:j.data},_e.id)),[j.groups,j.data])}),NodeTooltips=j=>{const{node:_e,viewport:et}=j,tt=useGraphConfig();if(!_e||!has$1(GraphNodeStatus.Activated)(_e.status))return null;const rt=getNodeConfig(_e,tt);return rt!=null&&rt.renderTooltips?jsxRuntimeExports.jsx("div",Object.assign({className:"node-tooltips"},{children:rt.renderTooltips({model:_e,viewport:et})})):null},PortTooltips=j=>{const _e=useGraphConfig(),{parentNode:et,port:tt,viewport:rt}=j;if(!has$1(GraphPortStatus.Activated)(tt.status))return null;const ot=_e.getPortConfig(tt);if(!ot||!ot.renderTooltips)return null;const it=et.getPortPosition(tt.id,_e);return it?jsxRuntimeExports.jsx("div",Object.assign({className:"port-tooltips"},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:st,sourcePort:lt})=>ot.renderTooltips&&ot.renderTooltips(Object.assign({model:tt,parentNode:et,data:j.data,anotherNode:st,anotherPort:lt,viewport:rt},it))})})):null};function useRefValue(j){const _e=reactExports.useRef(j);return reactExports.useLayoutEffect(()=>{_e.current=j},[j]),_e}const SCROLL_BAR_WIDTH=10,wrapperCommonStyle={position:"absolute",cursor:"initial"},useStyles$h=createUseStyles({verticalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:"100%",width:SCROLL_BAR_WIDTH,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:SCROLL_BAR_WIDTH,width:"100%",bottom:0,left:0}),verticalScrollStyle:j=>({height:j.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${j.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:j=>({width:j.scrollbarLayout.horizontalScrollWidth-SCROLL_BAR_WIDTH,height:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${j.scrollbarLayout.horizontalScrollLeft}px)`})}),Scrollbar=j=>{const{vertical:_e=!0,horizontal:et=!0,offsetLimit:tt,eventChannel:rt,viewport:nt}=j,ot=useGraphController(),it=getScrollbarLayout(nt,tt),st=useStyles$h({scrollbarLayout:it}),lt=useRefValue(it);function ut(dt){dt.preventDefault(),dt.stopPropagation();const{height:ft}=nt.rect,pt=new DragController(new MouseMoveEventProvider(ot.getGlobalEventTarget()),defaultGetPositionFromEvent);pt.onMove=({dy:gt,e:mt})=>{const{totalContentHeight:bt}=lt.current,_t=-(gt*bt)/ft;rt.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:mt,dx:0,dy:_t})},pt.onEnd=()=>{rt.trigger({type:GraphScrollBarEvent.ScrollEnd})},pt.start(dt.nativeEvent),rt.trigger({type:GraphScrollBarEvent.ScrollStart})}function ct(dt){dt.preventDefault(),dt.stopPropagation();const{width:ft}=nt.rect,pt=new DragController(new MouseMoveEventProvider(ot.getGlobalEventTarget()),defaultGetPositionFromEvent);pt.onMove=({dx:gt,e:mt})=>{const{totalContentWidth:bt}=lt.current,_t=-(gt*bt)/ft;rt.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:mt,dx:_t,dy:0})},pt.onEnd=()=>{rt.trigger({type:GraphScrollBarEvent.ScrollEnd})},pt.start(dt.nativeEvent),rt.trigger({type:GraphScrollBarEvent.ScrollStart})}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[_e&&jsxRuntimeExports.jsx("div",Object.assign({className:st.verticalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:st.verticalScrollStyle,onMouseDown:ut,role:"button","aria-label":"vertical scrollbar","aria-roledescription":"vertical scrollbar",id:"canvas-vertical-scrollbar"})})),et&&jsxRuntimeExports.jsx("div",Object.assign({className:st.horizontalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:st.horizontalScrollStyle,onMouseDown:ct,role:"button","aria-label":"horizontal scrollbar","aria-roledescription":"horizontal scrollbar",id:"canvas-horizontal-scrollbar"})}))]})};function getTotalContentHeight(j,_e){const{minY:et,maxY:tt}=_e;return j+tt-et}function getTotalContentWidth(j,_e){const{minX:et,maxX:tt}=_e;return j+tt-et}function getScrollbarLayout(j,_e){const{rect:et,transformMatrix:tt}=j,rt=getTotalContentHeight(et.height,_e),nt=getTotalContentWidth(et.width,_e);return{totalContentHeight:rt,totalContentWidth:nt,verticalScrollHeight:et.height*et.height/rt,horizontalScrollWidth:et.width*et.width/nt,verticalScrollTop:(_e.maxY-tt[5])*et.height/rt,horizontalScrollLeft:(_e.maxX-tt[4])*et.width/nt}}const Transform=({matrix:j,children:_e})=>{const et=reactExports.useMemo(()=>`matrix(${j.join(" ")})`,j);return jsxRuntimeExports.jsx("g",Object.assign({transform:et},{children:_e}))};function getHintPoints(j,_e,{minX:et,minY:tt,maxX:rt,maxY:nt},ot,it,st,lt){return j.x===_e.x?{x:j.x,y:j.y<_e.y?nt:tt}:j.x<_e.x?j.y<_e.y?ot<=nt?{x:rt,y:ot}:{x:it,y:nt}:ot>=tt?{x:rt,y:ot}:{x:st,y:tt}:j.y<_e.y?it>et?{x:it,y:nt}:{x:et,y:lt}:lt>tt?{x:et,y:lt}:{x:st,y:tt}}const GraphEdge=reactExports.memo(j=>{var _e;const{edge:et,data:tt,eventChannel:rt,source:nt,target:ot,graphId:it}=j,st=useGraphConfig(),lt=useVirtualization(),{viewport:ut,renderedArea:ct,visibleArea:dt}=lt,ft=kt=>$t=>{$t.persist(),rt.trigger({type:kt,edge:et,rawEvent:$t})},pt=isPointInRect(ct,nt),gt=isPointInRect(ct,ot),mt=pt&>if(reactExports.useLayoutEffect(()=>{mt&<.renderedEdges.add(et.id)},[lt]),!mt)return null;const bt=st.getEdgeConfig(et);if(!bt)return Debug.warn(`invalid edge ${JSON.stringify(et)}`),null;if(!bt.render)return Debug.warn(`Missing "render" method in edge config ${JSON.stringify(et)}`),null;const _t=isPointInRect(dt,nt),xt=isPointInRect(dt,ot);let yt=bt.render({model:et,data:tt,x1:nt.x,y1:nt.y,x2:ot.x,y2:ot.y,viewport:ut});if(has$1(GraphEdgeStatus.ConnectedToSelected)(et.status)&&(!_t||!xt)){const kt=getLinearFunction(nt.x,nt.y,ot.x,ot.y),$t=getLinearFunction(nt.y,nt.x,ot.y,ot.x),Ct=_t?nt:ot,It=_t?ot:nt,Nt=kt(dt.maxX),Ot=$t(dt.maxY),jt=$t(dt.minY),Mt=kt(dt.minX),Rt=getHintPoints(Ct,It,dt,Nt,Ot,jt,Mt);_t&&bt.renderWithTargetHint?yt=bt.renderWithTargetHint({model:et,data:tt,x1:nt.x,y1:nt.y,x2:Rt.x,y2:Rt.y,viewport:ut}):xt&&bt.renderWithSourceHint&&(yt=bt.renderWithSourceHint({model:et,data:tt,x1:Rt.x,y1:Rt.y,x2:ot.x,y2:ot.y,viewport:ut}))}const Et=getEdgeUid(it,et),St=`edge-container-${et.id}`,Tt=(_e=et.automationId)!==null&&_e!==void 0?_e:St;return jsxRuntimeExports.jsx("g",Object.assign({id:Et,onClick:ft(GraphEdgeEvent.Click),onDoubleClick:ft(GraphEdgeEvent.DoubleClick),onMouseDown:ft(GraphEdgeEvent.MouseDown),onMouseUp:ft(GraphEdgeEvent.MouseUp),onMouseEnter:ft(GraphEdgeEvent.MouseEnter),onMouseLeave:ft(GraphEdgeEvent.MouseLeave),onContextMenu:ft(GraphEdgeEvent.ContextMenu),onMouseMove:ft(GraphEdgeEvent.MouseMove),onMouseOver:ft(GraphEdgeEvent.MouseOver),onMouseOut:ft(GraphEdgeEvent.MouseOut),onFocus:void 0,onBlur:void 0,className:St,"data-automation-id":Tt},{children:yt}))});function compareEqual(j,_e){return j.node===_e.node}const EdgeChampNodeRender=reactExports.memo(j=>{var _e,et;const{node:tt,data:rt}=j,nt=__rest(j,["node","data"]),ot=useGraphConfig(),it=[],st=tt.valueCount;for(let ct=0;ct{const{data:_e,node:et}=j,tt=__rest(j,["data","node"]),rt=useGraphConfig();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et.values.map(nt=>{var ot,it;const st=(ot=_e.nodes.get(nt.source))===null||ot===void 0?void 0:ot.getPortPosition(nt.sourcePortId,rt),lt=(it=_e.nodes.get(nt.target))===null||it===void 0?void 0:it.getPortPosition(nt.targetPortId,rt);return st&<?reactExports.createElement(GraphEdge,Object.assign({},tt,{key:nt.id,data:_e,edge:nt,source:st,target:lt})):null})})},compareEqual);EdgeHashCollisionNodeRender.displayName="EdgeHashCollisionNodeRender";const EdgeTree=j=>{const{tree:_e}=j,et=__rest(j,["tree"]);return jsxRuntimeExports.jsx(EdgeChampNodeRender,Object.assign({},et,{node:_e.root}))},styles$1=mergeStyleSets({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),GraphNode=j=>{var _e;const{node:et,eventChannel:tt,getNodeAriaLabel:rt,viewport:nt,graphId:ot}=j,it=useGraphConfig(),st=getNodeConfig(et,it),lt=ft=>pt=>{pt.persist();const gt={type:ft,node:et,rawEvent:pt};tt.trigger(gt)},ut=ft=>{ft.persist();const pt=checkIsMultiSelect(ft);tt.trigger({type:GraphNodeEvent.Click,rawEvent:ft,isMultiSelect:pt,node:et})},ct=getNodeUid(ot,et),dt=(_e=et.automationId)!==null&&_e!==void 0?_e:getNodeAutomationId(et);return st!=null&&st.render?jsxRuntimeExports.jsx("g",Object.assign({id:ct,focusable:"true",tabIndex:0,className:styles$1.node,onPointerDown:lt(GraphNodeEvent.PointerDown),onPointerEnter:lt(GraphNodeEvent.PointerEnter),onPointerMove:lt(GraphNodeEvent.PointerMove),onPointerLeave:lt(GraphNodeEvent.PointerLeave),onPointerUp:lt(GraphNodeEvent.PointerUp),onDoubleClick:lt(GraphNodeEvent.DoubleClick),onMouseDown:lt(GraphNodeEvent.MouseDown),onMouseUp:lt(GraphNodeEvent.MouseUp),onMouseEnter:lt(GraphNodeEvent.MouseEnter),onMouseLeave:lt(GraphNodeEvent.MouseLeave),onContextMenu:lt(GraphNodeEvent.ContextMenu),onMouseMove:lt(GraphNodeEvent.MouseMove),onMouseOver:lt(GraphNodeEvent.MouseOver),onMouseOut:lt(GraphNodeEvent.MouseOut),onClick:ut,onKeyDown:lt(GraphNodeEvent.KeyDown),"aria-label":rt(et),role:"group","aria-roledescription":"node","data-automation-id":dt},{children:jsxRuntimeExports.jsx("g",Object.assign({className:"node-box-container"},{children:st.render({model:et,viewport:nt})}))})):(Debug.warn('Missing "render" method in node config'),null)},RESIZE_POINT_WIDTH=8,RESIZE_POINT_HEIGHT=8,NodeAnchor=({x:j,y:_e,cursor:et,onMouseDown:tt})=>jsxRuntimeExports.jsx(Slots.NodeResizeHandler,Object.assign({x:j,y:_e,cursor:et,onMouseDown:tt},{children:jsxRuntimeExports.jsx("rect",{x:j,y:_e,height:RESIZE_POINT_HEIGHT,width:RESIZE_POINT_WIDTH,stroke:defaultColors.controlPointColor,fill:"transparent",cursor:et,onMouseDown:tt})})),BBOX_PADDING=15,GraphNodeAnchors=j=>{var _e,et;const{node:tt,getMouseDown:rt}=j,nt=useGraphConfig(),ot=getNodeConfig(tt,nt),it=(_e=ot==null?void 0:ot.getMinWidth(tt))!==null&&_e!==void 0?_e:0,st=(et=ot==null?void 0:ot.getMinHeight(tt))!==null&&et!==void 0?et:0,lt=getRectHeight(ot,tt),ut=getRectWidth(ot,tt),ct=rt((xt,yt)=>{const Et=Math.min(xt,ut-it),St=Math.min(yt,lt-st);return{dx:+Et,dy:+St,dWidth:-Et,dHeight:-St}}),dt=rt((xt,yt)=>{const Et=Math.min(yt,lt-st);return{dy:+Et,dHeight:-Et}}),ft=rt((xt,yt)=>{const Et=Math.max(xt,it-ut),St=Math.min(yt,lt-st);return{dy:+St,dWidth:+Et,dHeight:-St}}),pt=rt(xt=>({dWidth:+Math.max(xt,it-ut)})),gt=rt((xt,yt)=>{const Et=Math.max(xt,it-ut),St=Math.max(yt,st-lt);return{dWidth:+Et,dHeight:+St}}),mt=rt((xt,yt)=>({dHeight:+Math.max(yt,st-lt)})),bt=rt((xt,yt)=>{const Et=Math.min(xt,ut-it),St=Math.max(yt,st-lt);return{dx:+Et,dWidth:-Et,dHeight:+St}}),_t=rt(xt=>{const yt=Math.min(xt,ut-it);return{dx:yt,dWidth:-yt}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NodeAnchor,{cursor:"nw-resize",x:tt.x-BBOX_PADDING,y:tt.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,onMouseDown:ct},"nw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:tt.x+ut/2-RESIZE_POINT_WIDTH/2,y:tt.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"n-resize",onMouseDown:dt},"n-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:tt.x+ut+BBOX_PADDING-RESIZE_POINT_WIDTH,y:tt.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"ne-resize",onMouseDown:ft},"ne-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:tt.x+ut+BBOX_PADDING-RESIZE_POINT_WIDTH,y:tt.y+lt/2-RESIZE_POINT_HEIGHT/2,cursor:"e-resize",onMouseDown:pt},"e-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:tt.x+ut+BBOX_PADDING-RESIZE_POINT_WIDTH,y:tt.y+lt+BBOX_PADDING,cursor:"se-resize",onMouseDown:gt},"se-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:tt.x+ut/2-RESIZE_POINT_WIDTH/2,y:tt.y+lt+BBOX_PADDING,cursor:"s-resize",onMouseDown:mt},"s-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:tt.x-BBOX_PADDING,y:tt.y+lt+BBOX_PADDING,cursor:"sw-resize",onMouseDown:bt},"sw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:tt.x-BBOX_PADDING,y:tt.y+lt/2-RESIZE_POINT_HEIGHT/2,cursor:"w-resize",onMouseDown:_t},"w-resize")]})},GraphOneNodePorts=j=>{const{data:_e,node:et,getPortAriaLabel:tt,eventChannel:rt,viewport:nt,graphId:ot}=j,it=useGraphConfig(),st=et.ports;if(!st)return null;const lt=(ut,ct)=>dt=>{dt.persist(),rt.trigger({type:ut,node:et,port:ct,rawEvent:dt})};return jsxRuntimeExports.jsx("g",{children:st.map(ut=>{var ct;const dt=it.getPortConfig(ut);if(!dt||!dt.render)return Debug.warn(`invalid port config ${et.id}:${et.name} - ${ut.id}:${ut.name}`),null;const ft=et.getPortPosition(ut.id,it);if(!ft)return null;const pt=getPortUid(ot,et,ut),gt=(ct=ut.automationId)!==null&&ct!==void 0?ct:getPortAutomationId(ut,et);return jsxRuntimeExports.jsx("g",Object.assign({id:pt,tabIndex:0,focusable:"true",onPointerDown:lt(GraphPortEvent.PointerDown,ut),onPointerUp:lt(GraphPortEvent.PointerUp,ut),onDoubleClick:lt(GraphPortEvent.DoubleClick,ut),onMouseDown:lt(GraphPortEvent.MouseDown,ut),onMouseUp:lt(GraphPortEvent.MouseUp,ut),onContextMenu:lt(GraphPortEvent.ContextMenu,ut),onPointerEnter:lt(GraphPortEvent.PointerEnter,ut),onPointerLeave:lt(GraphPortEvent.PointerLeave,ut),onMouseMove:lt(GraphPortEvent.MouseMove,ut),onMouseOver:lt(GraphPortEvent.MouseOver,ut),onMouseOut:lt(GraphPortEvent.MouseOut,ut),onFocus:lt(GraphPortEvent.Focus,ut),onBlur:lt(GraphPortEvent.Blur,ut),onKeyDown:lt(GraphPortEvent.KeyDown,ut),onClick:lt(GraphPortEvent.Click,ut),"aria-label":tt(_e,et,ut),role:"group","aria-roledescription":"port","data-automation-id":gt},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:mt,sourcePort:bt})=>dt==null?void 0:dt.render(Object.assign({model:ut,data:_e,parentNode:et,anotherNode:mt,anotherPort:bt,viewport:nt},ft))})}),pt)})})},GraphNodeParts=j=>{var{node:_e,isNodeResizable:et,renderNodeAnchors:tt}=j,rt=__rest(j,["node","isNodeResizable","renderNodeAnchors"]);const nt=useVirtualization(),{renderedArea:ot,viewport:it}=nt,st=useGetMouseDownOnAnchor(_e,rt.eventChannel),lt=isPointInRect(ot,_e);if(reactExports.useLayoutEffect(()=>{lt&&nt.renderedEdges.add(_e.id)},[nt]),!lt)return null;let ut;if(et&&isNodeEditing(_e)){const ct=jsxRuntimeExports.jsx(GraphNodeAnchors,{node:_e,getMouseDown:st});ut=tt?tt(_e,st,ct):ct}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GraphNode,Object.assign({},rt,{node:_e,viewport:it})),jsxRuntimeExports.jsx(GraphOneNodePorts,Object.assign({},rt,{node:_e,viewport:it})),ut]})},GraphNodePartsMemo=reactExports.memo(GraphNodeParts),NodeTreeNode=reactExports.memo(j=>{var{node:_e}=j,et=__rest(j,["node"]);const tt=_e.values.map(nt=>{const ot=nt[1];return jsxRuntimeExports.jsx(GraphNodePartsMemo,Object.assign({node:ot},et),ot.id)}),rt=_e.type===NodeType.Internal?_e.children.map((nt,ot)=>{const it=ot<_e.selfSize?_e.getKey(ot):"last";return jsxRuntimeExports.jsx(NodeTreeNode,Object.assign({node:nt},et),it)}):void 0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[tt,rt]})},(j,_e)=>j.node===_e.node);NodeTreeNode.displayName="NodeTreeNode";const NodeTree=j=>{var{tree:_e}=j,et=__rest(j,["tree"]);return jsxRuntimeExports.jsx(NodeTreeNode,Object.assign({node:_e.sortedRoot},et))},NodeLayers=({data:j,renderTree:_e})=>{const et=new Set;return j.nodes.forEach(tt=>et.add(tt.layer)),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Array.from(et.values()).sort().map(tt=>_e(j.nodes.filter(rt=>rt.layer===tt),tt))})},VirtualizationProvider=({viewport:j,isVirtualizationEnabled:_e,virtualizationDelay:et,eventChannel:tt,children:rt})=>{const nt=useRenderedArea(j,_e),ot=reactExports.useMemo(()=>getVisibleArea(j),[j]),it=reactExports.useMemo(()=>({viewport:j,renderedArea:nt,visibleArea:ot,renderedEdges:new Set,renderedNodes:new Set,timestamp:performance.now()}),[j,nt,ot]),st=useDeferredValue(it,{timeout:et}),lt=reactExports.useRef(st);return reactExports.useEffect(()=>{const ut=lt.current;lt.current=st,tt.trigger({type:GraphCanvasEvent.VirtualizationRecalculated,performanceStartTime:st.timestamp,renderedNodes:ut.renderedNodes,renderedEdges:ut.renderedEdges,previousRenderedNodes:ut.renderedNodes,previousRenderedEdges:ut.renderedEdges})},[st,tt]),jsxRuntimeExports.jsx(VirtualizationContext.Provider,Object.assign({value:st},{children:rt}))},getCursorStyle=({canvasMouseMode:j,state:_e,isPanDisabled:et,isMultiSelecting:tt})=>_e.behavior===GraphBehavior.Connecting||["meta","control"].some(ot=>_e.activeKeys.has(ot))?"initial":_e.activeKeys.has("shift")?"crosshair":j!==CanvasMouseMode.Pan?_e.activeKeys.has(" ")&&!et?"grab":tt?"crosshair":"inherit":et?"inherit":"grab";function getNodeCursor(j){return j?"move":"initial"}const getGraphStyles=(j,_e,et,tt,rt,nt)=>{var ot,it;return mergeStyleSets({svg:["react-dag-editor-svg-container",styles$1.svg,(ot=j.styles)===null||ot===void 0?void 0:ot.svg,{"& *:focus":{outline:defaultColors.outlineStyle},[`& .${styles$1.node}`]:{cursor:getNodeCursor(tt)}}],container:["react-dag-editor-container",styles$1.container,{cursor:getCursorStyle({canvasMouseMode:j.canvasMouseMode,state:_e,isPanDisabled:et,isMultiSelecting:nt}),[`&.${styles$1.container}`]:Object.assign(Object.assign({background:defaultColors.canvasBackground},j.style),(it=j.styles)===null||it===void 0?void 0:it.root)},rt&&{outline:`${defaultColors.focusOutlineColor} solid 1px`}],buttonA11y:["react-dag-editor-a11y-help-button",styles$1.buttonA11Y],node:[styles$1.node]})};function Graph(j){var _e,et,tt,rt,nt;const[ot,it]=reactExports.useState(!1),st=useGraphController(),{state:lt,dispatch:ut}=useGraphState(),ct=lt.data.present,{viewport:dt}=lt,{eventChannel:ft}=st,pt=useConst(()=>`graph-${v4()}`),gt=reactExports.useRef(null),{focusCanvasAccessKey:mt="f",zoomSensitivity:bt=.1,scrollSensitivity:_t=.5,svgRef:xt=gt,virtualizationDelay:yt=500,background:Et=null}=j,St=useGraphConfig(),Tt=useFeatureControl(lt.settings.features),[kt,$t]=reactExports.useState(),[Ct,It]=reactExports.useState(void 0),Nt=reactExports.useRef(null),Ot=reactExports.useRef(void 0),jt=useUpdateViewportCallback(Ot,xt,ft);useEventChannel({props:j,dispatch:ut,rectRef:Ot,svgRef:xt,setFocusedWithoutMouse:it,containerRef:Nt,featureControl:Tt,graphConfig:St,setCurHoverNode:$t,setCurHoverPort:It,updateViewport:jt,eventChannel:ft,graphController:st}),useContainerRect(lt,xt,Nt,jt);const{isNodesDraggable:Mt,isNodeResizable:Rt,isPanDisabled:Lt,isMultiSelectDisabled:Pt,isLassoSelectEnable:Gt,isNodeEditDisabled:qt,isVerticalScrollDisabled:Yt,isHorizontalScrollDisabled:Xt,isA11yEnable:tr,isCtrlKeyZoomEnable:cr,isVirtualizationEnabled:mr,isScrollbarVisible:Er}=Tt;useSelectBox(ut,lt.selectBoxPosition);const hr=Cr=>Nr=>{Nr.persist(),ft.trigger({type:Cr,rawEvent:Nr})},_r=getGraphStyles(j,lt,Lt,Mt,ot,lt.behavior===GraphBehavior.MultiSelect);useWheelHandler({containerRef:Nt,svgRef:xt,rectRef:Ot,zoomSensitivity:bt,scrollSensitivity:_t,dispatch:ut,isHorizontalScrollDisabled:Xt,isVerticalScrollDisabled:Yt,isCtrlKeyZoomEnable:cr,eventChannel:ft,graphConfig:St});const Ut=reactExports.useCallback(Cr=>{Cr.preventDefault(),Cr.stopPropagation(),ft.trigger({type:GraphContextMenuEvent.Close}),xt.current&&xt.current.focus({preventScroll:!0})},[ft,xt]),ar=reactExports.useCallback(()=>{it(!0),xt.current&&xt.current.focus({preventScroll:!0})},[xt]);useSafariScale({rectRef:Ot,svgRef:xt,eventChannel:ft});const pr=tr?mt:void 0,rr=useGraphTouchHandler(Ot,ft),vr=reactExports.useCallback((Cr,Nr)=>{var Gr,qr;return jsxRuntimeExports.jsx(NodeTree,{graphId:pt,isNodeResizable:Rt,tree:Cr,data:ct,isNodeEditDisabled:qt,eventChannel:ft,getNodeAriaLabel:(Gr=j.getNodeAriaLabel)!==null&&Gr!==void 0?Gr:defaultGetNodeAriaLabel,getPortAriaLabel:(qr=j.getPortAriaLabel)!==null&&qr!==void 0?qr:defaultGetPortAriaLabel,renderNodeAnchors:j.renderNodeAnchors},Nr)},[ct,ft,pt,qt,Rt,j.getNodeAriaLabel,j.getPortAriaLabel,j.renderNodeAnchors]);if(!isSupported()){const{onBrowserNotSupported:Cr=()=>jsxRuntimeExports.jsx("p",{children:"Your browser is not supported"})}=j;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Cr()})}const $r=()=>{if(!Ct||!isViewportComplete(lt.viewport))return null;const[Cr,Nr]=Ct,Gr=ct.nodes.get(Cr);if(!Gr)return null;const qr=Gr.getPort(Nr);return qr?jsxRuntimeExports.jsx(PortTooltips,{port:qr,parentNode:Gr,data:ct,viewport:lt.viewport}):null},Rr=()=>{var Cr;return!kt||!isViewportComplete(lt.viewport)||lt.contextMenuPosition&&kt===((Cr=lt.data.present.nodes.find(isSelected))===null||Cr===void 0?void 0:Cr.id)?null:jsxRuntimeExports.jsx(NodeTooltips,{node:ct.nodes.get(kt),viewport:lt.viewport})};return jsxRuntimeExports.jsxs("div",Object.assign({ref:Nt,role:"application",id:pt,className:_r.container},rr,{onDoubleClick:hr(GraphCanvasEvent.DoubleClick),onMouseDown:hr(GraphCanvasEvent.MouseDown),onMouseUp:hr(GraphCanvasEvent.MouseUp),onContextMenu:hr(GraphCanvasEvent.ContextMenu),onMouseMove:hr(GraphCanvasEvent.MouseMove),onMouseOver:hr(GraphCanvasEvent.MouseOver),onMouseOut:hr(GraphCanvasEvent.MouseOut),onFocus:hr(GraphCanvasEvent.Focus),onBlur:hr(GraphCanvasEvent.Blur),onKeyDown:hr(GraphCanvasEvent.KeyDown),onKeyUp:hr(GraphCanvasEvent.KeyUp)},{children:[jsxRuntimeExports.jsx("button",{className:_r.buttonA11y,onClick:ar,accessKey:pr,hidden:!0}),jsxRuntimeExports.jsxs("svg",Object.assign({tabIndex:0,focusable:"true",preserveAspectRatio:"xMidYMid meet",ref:xt,className:_r.svg,"data-graph-id":pt},{children:[jsxRuntimeExports.jsx("title",{children:j.title}),jsxRuntimeExports.jsx("desc",{children:j.desc}),jsxRuntimeExports.jsxs(Transform,Object.assign({matrix:dt.transformMatrix},{children:[lt.viewport.rect&&jsxRuntimeExports.jsxs(VirtualizationProvider,Object.assign({viewport:lt.viewport,isVirtualizationEnabled:mr,virtualizationDelay:yt,eventChannel:ft},{children:[Et,jsxRuntimeExports.jsx(GraphGroupsRenderer,{data:ct,groups:(_e=ct.groups)!==null&&_e!==void 0?_e:constantEmptyArray()}),jsxRuntimeExports.jsx(EdgeTree,{graphId:pt,tree:ct.edges,data:ct,eventChannel:ft}),jsxRuntimeExports.jsx(NodeLayers,{data:ct,renderTree:vr})]})),lt.dummyNodes.isVisible&&jsxRuntimeExports.jsx(AnimatingNodeGroup,{dummyNodes:lt.dummyNodes,graphData:lt.data.present}),jsxRuntimeExports.jsx(AlignmentLines,{style:(et=j.styles)===null||et===void 0?void 0:et.alignmentLine})]})),(!Pt||Gt)&&jsxRuntimeExports.jsx(SelectBox,{selectBoxPosition:lt.selectBoxPosition,style:(tt=j.styles)===null||tt===void 0?void 0:tt.selectBox}),lt.connectState&&jsxRuntimeExports.jsx(Connecting,{graphConfig:St,eventChannel:ft,viewport:lt.viewport,styles:(rt=j.styles)===null||rt===void 0?void 0:rt.connectingLine,movingPoint:lt.connectState.movingPoint})]})),Er&&isViewportComplete(lt.viewport)&&jsxRuntimeExports.jsx(Scrollbar,{viewport:lt.viewport,offsetLimit:getOffsetLimit({data:ct,graphConfig:St,rect:lt.viewport.rect,transformMatrix:dt.transformMatrix,canvasBoundaryPadding:lt.settings.canvasBoundaryPadding,groupPadding:(nt=ct.groups[0])===null||nt===void 0?void 0:nt.padding}),dispatch:ut,horizontal:!Xt,vertical:!Yt,eventChannel:ft}),jsxRuntimeExports.jsx(GraphContextMenu,{state:lt,onClick:Ut,"data-automation-id":"context-menu-container"}),Rr(),$r()]}))}const el=document.createElement("div");document.body.appendChild(el);const StaticNode=j=>{const{node:_e}=j,et=useGraphConfig(),tt=getNodeConfig(_e,et);if(tt!=null&&tt.renderStatic)return jsxRuntimeExports.jsx("g",{children:tt.renderStatic({model:_e})});const rt=getRectHeight(tt,_e),nt=getRectWidth(tt,_e);return jsxRuntimeExports.jsx("rect",{transform:`translate(${_e.x}, ${_e.y})`,height:rt,width:nt,fill:defaultColors.dummyNodeStroke})},StaticNodeWithMemo=reactExports.memo(StaticNode,(j,_e)=>{const et=j.node,tt=_e.node;return et.x===tt.x&&et.y===tt.y&&et.height===tt.height&&et.width===tt.width&&et.isInSearchResults===tt.isInSearchResults&&et.isCurrentSearchResult===tt.isCurrentSearchResult}),ReadonlyNodeTreeNode=reactExports.memo(({node:j})=>{const _e=j.values.map(tt=>jsxRuntimeExports.jsx(StaticNodeWithMemo,{node:tt[1]},tt[1].id)),et=j.type===NodeType.Internal?j.children.map((tt,rt)=>{const nt=rt>>0;if(""+et!==_e||et===4294967295)return NaN;_e=et}return _e<0?ensureSize(j)+_e:_e}function returnTrue(){return!0}function wholeSlice(j,_e,et){return(j===0&&!isNeg(j)||et!==void 0&&j<=-et)&&(_e===void 0||et!==void 0&&_e>=et)}function resolveBegin(j,_e){return resolveIndex(j,_e,0)}function resolveEnd(j,_e){return resolveIndex(j,_e,_e)}function resolveIndex(j,_e,et){return j===void 0?et:isNeg(j)?_e===1/0?_e:Math.max(0,_e+j)|0:_e===void 0||_e===j?j:Math.min(_e,j)|0}function isNeg(j){return j<0||j===0&&1/j===-1/0}var IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";function isCollection(j){return!!(j&&j[IS_COLLECTION_SYMBOL])}var IS_KEYED_SYMBOL="@@__IMMUTABLE_KEYED__@@";function isKeyed(j){return!!(j&&j[IS_KEYED_SYMBOL])}var IS_INDEXED_SYMBOL="@@__IMMUTABLE_INDEXED__@@";function isIndexed(j){return!!(j&&j[IS_INDEXED_SYMBOL])}function isAssociative(j){return isKeyed(j)||isIndexed(j)}var Collection$1=function(_e){return isCollection(_e)?_e:Seq(_e)},KeyedCollection=function(j){function _e(et){return isKeyed(et)?et:KeyedSeq(et)}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e}(Collection$1),IndexedCollection=function(j){function _e(et){return isIndexed(et)?et:IndexedSeq(et)}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e}(Collection$1),SetCollection=function(j){function _e(et){return isCollection(et)&&!isAssociative(et)?et:SetSeq(et)}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e}(Collection$1);Collection$1.Keyed=KeyedCollection;Collection$1.Indexed=IndexedCollection;Collection$1.Set=SetCollection;var IS_SEQ_SYMBOL="@@__IMMUTABLE_SEQ__@@";function isSeq(j){return!!(j&&j[IS_SEQ_SYMBOL])}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@";function isRecord(j){return!!(j&&j[IS_RECORD_SYMBOL])}function isImmutable(j){return isCollection(j)||isRecord(j)}var IS_ORDERED_SYMBOL="@@__IMMUTABLE_ORDERED__@@";function isOrdered(j){return!!(j&&j[IS_ORDERED_SYMBOL])}var ITERATE_KEYS=0,ITERATE_VALUES=1,ITERATE_ENTRIES=2,REAL_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL,Iterator=function(_e){this.next=_e};Iterator.prototype.toString=function(){return"[Iterator]"};Iterator.KEYS=ITERATE_KEYS;Iterator.VALUES=ITERATE_VALUES;Iterator.ENTRIES=ITERATE_ENTRIES;Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()};Iterator.prototype[ITERATOR_SYMBOL]=function(){return this};function iteratorValue(j,_e,et,tt){var rt=j===0?_e:j===1?et:[_e,et];return tt?tt.value=rt:tt={value:rt,done:!1},tt}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(j){return Array.isArray(j)?!0:!!getIteratorFn(j)}function isIterator(j){return j&&typeof j.next=="function"}function getIterator(j){var _e=getIteratorFn(j);return _e&&_e.call(j)}function getIteratorFn(j){var _e=j&&(REAL_ITERATOR_SYMBOL&&j[REAL_ITERATOR_SYMBOL]||j[FAUX_ITERATOR_SYMBOL]);if(typeof _e=="function")return _e}function isEntriesIterable(j){var _e=getIteratorFn(j);return _e&&_e===j.entries}function isKeysIterable(j){var _e=getIteratorFn(j);return _e&&_e===j.keys}var hasOwnProperty$2=Object.prototype.hasOwnProperty;function isArrayLike$1(j){return Array.isArray(j)||typeof j=="string"?!0:j&&typeof j=="object"&&Number.isInteger(j.length)&&j.length>=0&&(j.length===0?Object.keys(j).length===1:j.hasOwnProperty(j.length-1))}var Seq=function(j){function _e(et){return et==null?emptySequence():isImmutable(et)?et.toSeq():seqFromValue(et)}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.toSeq=function(){return this},_e.prototype.toString=function(){return this.__toString("Seq {","}")},_e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},_e.prototype.__iterate=function(tt,rt){var nt=this._cache;if(nt){for(var ot=nt.length,it=0;it!==ot;){var st=nt[rt?ot-++it:it++];if(tt(st[1],st[0],this)===!1)break}return it}return this.__iterateUncached(tt,rt)},_e.prototype.__iterator=function(tt,rt){var nt=this._cache;if(nt){var ot=nt.length,it=0;return new Iterator(function(){if(it===ot)return iteratorDone();var st=nt[rt?ot-++it:it++];return iteratorValue(tt,st[0],st[1])})}return this.__iteratorUncached(tt,rt)},_e}(Collection$1),KeyedSeq=function(j){function _e(et){return et==null?emptySequence().toKeyedSeq():isCollection(et)?isKeyed(et)?et.toSeq():et.fromEntrySeq():isRecord(et)?et.toSeq():keyedSeqFromValue(et)}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.toKeyedSeq=function(){return this},_e}(Seq),IndexedSeq=function(j){function _e(et){return et==null?emptySequence():isCollection(et)?isKeyed(et)?et.entrySeq():et.toIndexedSeq():isRecord(et)?et.toSeq().entrySeq():indexedSeqFromValue(et)}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.of=function(){return _e(arguments)},_e.prototype.toIndexedSeq=function(){return this},_e.prototype.toString=function(){return this.__toString("Seq [","]")},_e}(Seq),SetSeq=function(j){function _e(et){return(isCollection(et)&&!isAssociative(et)?et:IndexedSeq(et)).toSetSeq()}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.of=function(){return _e(arguments)},_e.prototype.toSetSeq=function(){return this},_e}(Seq);Seq.isSeq=isSeq;Seq.Keyed=KeyedSeq;Seq.Set=SetSeq;Seq.Indexed=IndexedSeq;Seq.prototype[IS_SEQ_SYMBOL]=!0;var ArraySeq=function(j){function _e(et){this._array=et,this.size=et.length}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.get=function(tt,rt){return this.has(tt)?this._array[wrapIndex(this,tt)]:rt},_e.prototype.__iterate=function(tt,rt){for(var nt=this._array,ot=nt.length,it=0;it!==ot;){var st=rt?ot-++it:it++;if(tt(nt[st],st,this)===!1)break}return it},_e.prototype.__iterator=function(tt,rt){var nt=this._array,ot=nt.length,it=0;return new Iterator(function(){if(it===ot)return iteratorDone();var st=rt?ot-++it:it++;return iteratorValue(tt,st,nt[st])})},_e}(IndexedSeq),ObjectSeq=function(j){function _e(et){var tt=Object.keys(et).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(et):[]);this._object=et,this._keys=tt,this.size=tt.length}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.get=function(tt,rt){return rt!==void 0&&!this.has(tt)?rt:this._object[tt]},_e.prototype.has=function(tt){return hasOwnProperty$2.call(this._object,tt)},_e.prototype.__iterate=function(tt,rt){for(var nt=this._object,ot=this._keys,it=ot.length,st=0;st!==it;){var lt=ot[rt?it-++st:st++];if(tt(nt[lt],lt,this)===!1)break}return st},_e.prototype.__iterator=function(tt,rt){var nt=this._object,ot=this._keys,it=ot.length,st=0;return new Iterator(function(){if(st===it)return iteratorDone();var lt=ot[rt?it-++st:st++];return iteratorValue(tt,lt,nt[lt])})},_e}(KeyedSeq);ObjectSeq.prototype[IS_ORDERED_SYMBOL]=!0;var CollectionSeq=function(j){function _e(et){this._collection=et,this.size=et.length||et.size}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.__iterateUncached=function(tt,rt){if(rt)return this.cacheResult().__iterate(tt,rt);var nt=this._collection,ot=getIterator(nt),it=0;if(isIterator(ot))for(var st;!(st=ot.next()).done&&tt(st.value,it++,this)!==!1;);return it},_e.prototype.__iteratorUncached=function(tt,rt){if(rt)return this.cacheResult().__iterator(tt,rt);var nt=this._collection,ot=getIterator(nt);if(!isIterator(ot))return new Iterator(iteratorDone);var it=0;return new Iterator(function(){var st=ot.next();return st.done?st:iteratorValue(tt,it++,st.value)})},_e}(IndexedSeq),EMPTY_SEQ;function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(j){var _e=maybeIndexedSeqFromValue(j);if(_e)return _e.fromEntrySeq();if(typeof j=="object")return new ObjectSeq(j);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+j)}function indexedSeqFromValue(j){var _e=maybeIndexedSeqFromValue(j);if(_e)return _e;throw new TypeError("Expected Array or collection object of values: "+j)}function seqFromValue(j){var _e=maybeIndexedSeqFromValue(j);if(_e)return isEntriesIterable(j)?_e.fromEntrySeq():isKeysIterable(j)?_e.toSetSeq():_e;if(typeof j=="object")return new ObjectSeq(j);throw new TypeError("Expected Array or collection object of values, or keyed object: "+j)}function maybeIndexedSeqFromValue(j){return isArrayLike$1(j)?new ArraySeq(j):hasIterator(j)?new CollectionSeq(j):void 0}var IS_MAP_SYMBOL="@@__IMMUTABLE_MAP__@@";function isMap(j){return!!(j&&j[IS_MAP_SYMBOL])}function isOrderedMap(j){return isMap(j)&&isOrdered(j)}function isValueObject(j){return!!(j&&typeof j.equals=="function"&&typeof j.hashCode=="function")}function is(j,_e){if(j===_e||j!==j&&_e!==_e)return!0;if(!j||!_e)return!1;if(typeof j.valueOf=="function"&&typeof _e.valueOf=="function"){if(j=j.valueOf(),_e=_e.valueOf(),j===_e||j!==j&&_e!==_e)return!0;if(!j||!_e)return!1}return!!(isValueObject(j)&&isValueObject(_e)&&j.equals(_e))}var imul=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(_e,et){_e|=0,et|=0;var tt=_e&65535,rt=et&65535;return tt*rt+((_e>>>16)*rt+tt*(et>>>16)<<16>>>0)|0};function smi(j){return j>>>1&1073741824|j&3221225471}var defaultValueOf=Object.prototype.valueOf;function hash$1(j){if(j==null)return hashNullish(j);if(typeof j.hashCode=="function")return smi(j.hashCode(j));var _e=valueOf(j);if(_e==null)return hashNullish(_e);switch(typeof _e){case"boolean":return _e?1108378657:1108378656;case"number":return hashNumber(_e);case"string":return _e.length>STRING_HASH_CACHE_MIN_STRLEN?cachedHashString(_e):hashString(_e);case"object":case"function":return hashJSObj(_e);case"symbol":return hashSymbol(_e);default:if(typeof _e.toString=="function")return hashString(_e.toString());throw new Error("Value type "+typeof _e+" cannot be hashed.")}}function hashNullish(j){return j===null?1108378658:1108378659}function hashNumber(j){if(j!==j||j===1/0)return 0;var _e=j|0;for(_e!==j&&(_e^=j*4294967295);j>4294967295;)j/=4294967295,_e^=j;return smi(_e)}function cachedHashString(j){var _e=stringHashCache[j];return _e===void 0&&(_e=hashString(j),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[j]=_e),_e}function hashString(j){for(var _e=0,et=0;et0)switch(j.nodeType){case 1:return j.uniqueID;case 9:return j.documentElement&&j.documentElement.uniqueID}}function valueOf(j){return j.valueOf!==defaultValueOf&&typeof j.valueOf=="function"?j.valueOf(j):j}function nextHash(){var j=++_objHashUID;return _objHashUID&1073741824&&(_objHashUID=0),j}var usingWeakMap=typeof WeakMap=="function",weakMap;usingWeakMap&&(weakMap=new WeakMap);var symbolMap=Object.create(null),_objHashUID=0,UID_HASH_KEY="__immutablehash__";typeof Symbol=="function"&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={},ToKeyedSequence=function(j){function _e(et,tt){this._iter=et,this._useKeys=tt,this.size=et.size}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.get=function(tt,rt){return this._iter.get(tt,rt)},_e.prototype.has=function(tt){return this._iter.has(tt)},_e.prototype.valueSeq=function(){return this._iter.valueSeq()},_e.prototype.reverse=function(){var tt=this,rt=reverseFactory(this,!0);return this._useKeys||(rt.valueSeq=function(){return tt._iter.toSeq().reverse()}),rt},_e.prototype.map=function(tt,rt){var nt=this,ot=mapFactory(this,tt,rt);return this._useKeys||(ot.valueSeq=function(){return nt._iter.toSeq().map(tt,rt)}),ot},_e.prototype.__iterate=function(tt,rt){var nt=this;return this._iter.__iterate(function(ot,it){return tt(ot,it,nt)},rt)},_e.prototype.__iterator=function(tt,rt){return this._iter.__iterator(tt,rt)},_e}(KeyedSeq);ToKeyedSequence.prototype[IS_ORDERED_SYMBOL]=!0;var ToIndexedSequence=function(j){function _e(et){this._iter=et,this.size=et.size}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.includes=function(tt){return this._iter.includes(tt)},_e.prototype.__iterate=function(tt,rt){var nt=this,ot=0;return rt&&ensureSize(this),this._iter.__iterate(function(it){return tt(it,rt?nt.size-++ot:ot++,nt)},rt)},_e.prototype.__iterator=function(tt,rt){var nt=this,ot=this._iter.__iterator(ITERATE_VALUES,rt),it=0;return rt&&ensureSize(this),new Iterator(function(){var st=ot.next();return st.done?st:iteratorValue(tt,rt?nt.size-++it:it++,st.value,st)})},_e}(IndexedSeq),ToSetSequence=function(j){function _e(et){this._iter=et,this.size=et.size}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.has=function(tt){return this._iter.includes(tt)},_e.prototype.__iterate=function(tt,rt){var nt=this;return this._iter.__iterate(function(ot){return tt(ot,ot,nt)},rt)},_e.prototype.__iterator=function(tt,rt){var nt=this._iter.__iterator(ITERATE_VALUES,rt);return new Iterator(function(){var ot=nt.next();return ot.done?ot:iteratorValue(tt,ot.value,ot.value,ot)})},_e}(SetSeq),FromEntriesSequence=function(j){function _e(et){this._iter=et,this.size=et.size}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.prototype.entrySeq=function(){return this._iter.toSeq()},_e.prototype.__iterate=function(tt,rt){var nt=this;return this._iter.__iterate(function(ot){if(ot){validateEntry(ot);var it=isCollection(ot);return tt(it?ot.get(1):ot[1],it?ot.get(0):ot[0],nt)}},rt)},_e.prototype.__iterator=function(tt,rt){var nt=this._iter.__iterator(ITERATE_VALUES,rt);return new Iterator(function(){for(;;){var ot=nt.next();if(ot.done)return ot;var it=ot.value;if(it){validateEntry(it);var st=isCollection(it);return iteratorValue(tt,st?it.get(0):it[0],st?it.get(1):it[1],ot)}}})},_e}(KeyedSeq);ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough;function flipFactory(j){var _e=makeSequence(j);return _e._iter=j,_e.size=j.size,_e.flip=function(){return j},_e.reverse=function(){var et=j.reverse.apply(this);return et.flip=function(){return j.reverse()},et},_e.has=function(et){return j.includes(et)},_e.includes=function(et){return j.has(et)},_e.cacheResult=cacheResultThrough,_e.__iterateUncached=function(et,tt){var rt=this;return j.__iterate(function(nt,ot){return et(ot,nt,rt)!==!1},tt)},_e.__iteratorUncached=function(et,tt){if(et===ITERATE_ENTRIES){var rt=j.__iterator(et,tt);return new Iterator(function(){var nt=rt.next();if(!nt.done){var ot=nt.value[0];nt.value[0]=nt.value[1],nt.value[1]=ot}return nt})}return j.__iterator(et===ITERATE_VALUES?ITERATE_KEYS:ITERATE_VALUES,tt)},_e}function mapFactory(j,_e,et){var tt=makeSequence(j);return tt.size=j.size,tt.has=function(rt){return j.has(rt)},tt.get=function(rt,nt){var ot=j.get(rt,NOT_SET);return ot===NOT_SET?nt:_e.call(et,ot,rt,j)},tt.__iterateUncached=function(rt,nt){var ot=this;return j.__iterate(function(it,st,lt){return rt(_e.call(et,it,st,lt),st,ot)!==!1},nt)},tt.__iteratorUncached=function(rt,nt){var ot=j.__iterator(ITERATE_ENTRIES,nt);return new Iterator(function(){var it=ot.next();if(it.done)return it;var st=it.value,lt=st[0];return iteratorValue(rt,lt,_e.call(et,st[1],lt,j),it)})},tt}function reverseFactory(j,_e){var et=this,tt=makeSequence(j);return tt._iter=j,tt.size=j.size,tt.reverse=function(){return j},j.flip&&(tt.flip=function(){var rt=flipFactory(j);return rt.reverse=function(){return j.flip()},rt}),tt.get=function(rt,nt){return j.get(_e?rt:-1-rt,nt)},tt.has=function(rt){return j.has(_e?rt:-1-rt)},tt.includes=function(rt){return j.includes(rt)},tt.cacheResult=cacheResultThrough,tt.__iterate=function(rt,nt){var ot=this,it=0;return nt&&ensureSize(j),j.__iterate(function(st,lt){return rt(st,_e?lt:nt?ot.size-++it:it++,ot)},!nt)},tt.__iterator=function(rt,nt){var ot=0;nt&&ensureSize(j);var it=j.__iterator(ITERATE_ENTRIES,!nt);return new Iterator(function(){var st=it.next();if(st.done)return st;var lt=st.value;return iteratorValue(rt,_e?lt[0]:nt?et.size-++ot:ot++,lt[1],st)})},tt}function filterFactory(j,_e,et,tt){var rt=makeSequence(j);return tt&&(rt.has=function(nt){var ot=j.get(nt,NOT_SET);return ot!==NOT_SET&&!!_e.call(et,ot,nt,j)},rt.get=function(nt,ot){var it=j.get(nt,NOT_SET);return it!==NOT_SET&&_e.call(et,it,nt,j)?it:ot}),rt.__iterateUncached=function(nt,ot){var it=this,st=0;return j.__iterate(function(lt,ut,ct){if(_e.call(et,lt,ut,ct))return st++,nt(lt,tt?ut:st-1,it)},ot),st},rt.__iteratorUncached=function(nt,ot){var it=j.__iterator(ITERATE_ENTRIES,ot),st=0;return new Iterator(function(){for(;;){var lt=it.next();if(lt.done)return lt;var ut=lt.value,ct=ut[0],dt=ut[1];if(_e.call(et,dt,ct,j))return iteratorValue(nt,tt?ct:st++,dt,lt)}})},rt}function countByFactory(j,_e,et){var tt=Map$1().asMutable();return j.__iterate(function(rt,nt){tt.update(_e.call(et,rt,nt,j),0,function(ot){return ot+1})}),tt.asImmutable()}function groupByFactory(j,_e,et){var tt=isKeyed(j),rt=(isOrdered(j)?OrderedMap():Map$1()).asMutable();j.__iterate(function(ot,it){rt.update(_e.call(et,ot,it,j),function(st){return st=st||[],st.push(tt?[it,ot]:ot),st})});var nt=collectionClass(j);return rt.map(function(ot){return reify(j,nt(ot))}).asImmutable()}function partitionFactory(j,_e,et){var tt=isKeyed(j),rt=[[],[]];j.__iterate(function(ot,it){rt[_e.call(et,ot,it,j)?1:0].push(tt?[it,ot]:ot)});var nt=collectionClass(j);return rt.map(function(ot){return reify(j,nt(ot))})}function sliceFactory(j,_e,et,tt){var rt=j.size;if(wholeSlice(_e,et,rt))return j;var nt=resolveBegin(_e,rt),ot=resolveEnd(et,rt);if(nt!==nt||ot!==ot)return sliceFactory(j.toSeq().cacheResult(),_e,et,tt);var it=ot-nt,st;it===it&&(st=it<0?0:it);var lt=makeSequence(j);return lt.size=st===0?st:j.size&&st||void 0,!tt&&isSeq(j)&&st>=0&&(lt.get=function(ut,ct){return ut=wrapIndex(this,ut),ut>=0&&utst)return iteratorDone();var gt=dt.next();return tt||ut===ITERATE_VALUES||gt.done?gt:ut===ITERATE_KEYS?iteratorValue(ut,pt-1,void 0,gt):iteratorValue(ut,pt-1,gt.value[1],gt)})},lt}function takeWhileFactory(j,_e,et){var tt=makeSequence(j);return tt.__iterateUncached=function(rt,nt){var ot=this;if(nt)return this.cacheResult().__iterate(rt,nt);var it=0;return j.__iterate(function(st,lt,ut){return _e.call(et,st,lt,ut)&&++it&&rt(st,lt,ot)}),it},tt.__iteratorUncached=function(rt,nt){var ot=this;if(nt)return this.cacheResult().__iterator(rt,nt);var it=j.__iterator(ITERATE_ENTRIES,nt),st=!0;return new Iterator(function(){if(!st)return iteratorDone();var lt=it.next();if(lt.done)return lt;var ut=lt.value,ct=ut[0],dt=ut[1];return _e.call(et,dt,ct,ot)?rt===ITERATE_ENTRIES?lt:iteratorValue(rt,ct,dt,lt):(st=!1,iteratorDone())})},tt}function skipWhileFactory(j,_e,et,tt){var rt=makeSequence(j);return rt.__iterateUncached=function(nt,ot){var it=this;if(ot)return this.cacheResult().__iterate(nt,ot);var st=!0,lt=0;return j.__iterate(function(ut,ct,dt){if(!(st&&(st=_e.call(et,ut,ct,dt))))return lt++,nt(ut,tt?ct:lt-1,it)}),lt},rt.__iteratorUncached=function(nt,ot){var it=this;if(ot)return this.cacheResult().__iterator(nt,ot);var st=j.__iterator(ITERATE_ENTRIES,ot),lt=!0,ut=0;return new Iterator(function(){var ct,dt,ft;do{if(ct=st.next(),ct.done)return tt||nt===ITERATE_VALUES?ct:nt===ITERATE_KEYS?iteratorValue(nt,ut++,void 0,ct):iteratorValue(nt,ut++,ct.value[1],ct);var pt=ct.value;dt=pt[0],ft=pt[1],lt&&(lt=_e.call(et,ft,dt,it))}while(lt);return nt===ITERATE_ENTRIES?ct:iteratorValue(nt,dt,ft,ct)})},rt}function concatFactory(j,_e){var et=isKeyed(j),tt=[j].concat(_e).map(function(ot){return isCollection(ot)?et&&(ot=KeyedCollection(ot)):ot=et?keyedSeqFromValue(ot):indexedSeqFromValue(Array.isArray(ot)?ot:[ot]),ot}).filter(function(ot){return ot.size!==0});if(tt.length===0)return j;if(tt.length===1){var rt=tt[0];if(rt===j||et&&isKeyed(rt)||isIndexed(j)&&isIndexed(rt))return rt}var nt=new ArraySeq(tt);return et?nt=nt.toKeyedSeq():isIndexed(j)||(nt=nt.toSetSeq()),nt=nt.flatten(!0),nt.size=tt.reduce(function(ot,it){if(ot!==void 0){var st=it.size;if(st!==void 0)return ot+st}},0),nt}function flattenFactory(j,_e,et){var tt=makeSequence(j);return tt.__iterateUncached=function(rt,nt){if(nt)return this.cacheResult().__iterate(rt,nt);var ot=0,it=!1;function st(lt,ut){lt.__iterate(function(ct,dt){return(!_e||ut<_e)&&isCollection(ct)?st(ct,ut+1):(ot++,rt(ct,et?dt:ot-1,tt)===!1&&(it=!0)),!it},nt)}return st(j,0),ot},tt.__iteratorUncached=function(rt,nt){if(nt)return this.cacheResult().__iterator(rt,nt);var ot=j.__iterator(rt,nt),it=[],st=0;return new Iterator(function(){for(;ot;){var lt=ot.next();if(lt.done!==!1){ot=it.pop();continue}var ut=lt.value;if(rt===ITERATE_ENTRIES&&(ut=ut[1]),(!_e||it.length<_e)&&isCollection(ut))it.push(ot),ot=ut.__iterator(rt,nt);else return et?lt:iteratorValue(rt,st++,ut,lt)}return iteratorDone()})},tt}function flatMapFactory(j,_e,et){var tt=collectionClass(j);return j.toSeq().map(function(rt,nt){return tt(_e.call(et,rt,nt,j))}).flatten(!0)}function interposeFactory(j,_e){var et=makeSequence(j);return et.size=j.size&&j.size*2-1,et.__iterateUncached=function(tt,rt){var nt=this,ot=0;return j.__iterate(function(it){return(!ot||tt(_e,ot++,nt)!==!1)&&tt(it,ot++,nt)!==!1},rt),ot},et.__iteratorUncached=function(tt,rt){var nt=j.__iterator(ITERATE_VALUES,rt),ot=0,it;return new Iterator(function(){return(!it||ot%2)&&(it=nt.next(),it.done)?it:ot%2?iteratorValue(tt,ot++,_e):iteratorValue(tt,ot++,it.value,it)})},et}function sortFactory(j,_e,et){_e||(_e=defaultComparator);var tt=isKeyed(j),rt=0,nt=j.toSeq().map(function(ot,it){return[it,ot,rt++,et?et(ot,it,j):ot]}).valueSeq().toArray();return nt.sort(function(ot,it){return _e(ot[3],it[3])||ot[2]-it[2]}).forEach(tt?function(ot,it){nt[it].length=2}:function(ot,it){nt[it]=ot[1]}),tt?KeyedSeq(nt):isIndexed(j)?IndexedSeq(nt):SetSeq(nt)}function maxFactory(j,_e,et){if(_e||(_e=defaultComparator),et){var tt=j.toSeq().map(function(rt,nt){return[rt,et(rt,nt,j)]}).reduce(function(rt,nt){return maxCompare(_e,rt[1],nt[1])?nt:rt});return tt&&tt[0]}return j.reduce(function(rt,nt){return maxCompare(_e,rt,nt)?nt:rt})}function maxCompare(j,_e,et){var tt=j(et,_e);return tt===0&&et!==_e&&(et==null||et!==et)||tt>0}function zipWithFactory(j,_e,et,tt){var rt=makeSequence(j),nt=new ArraySeq(et).map(function(ot){return ot.size});return rt.size=tt?nt.max():nt.min(),rt.__iterate=function(ot,it){for(var st=this.__iterator(ITERATE_VALUES,it),lt,ut=0;!(lt=st.next()).done&&ot(lt.value,ut++,this)!==!1;);return ut},rt.__iteratorUncached=function(ot,it){var st=et.map(function(ct){return ct=Collection$1(ct),getIterator(it?ct.reverse():ct)}),lt=0,ut=!1;return new Iterator(function(){var ct;return ut||(ct=st.map(function(dt){return dt.next()}),ut=tt?ct.every(function(dt){return dt.done}):ct.some(function(dt){return dt.done})),ut?iteratorDone():iteratorValue(ot,lt++,_e.apply(null,ct.map(function(dt){return dt.value})))})},rt}function reify(j,_e){return j===_e?j:isSeq(j)?_e:j.constructor(_e)}function validateEntry(j){if(j!==Object(j))throw new TypeError("Expected [K, V] tuple: "+j)}function collectionClass(j){return isKeyed(j)?KeyedCollection:isIndexed(j)?IndexedCollection:SetCollection}function makeSequence(j){return Object.create((isKeyed(j)?KeyedSeq:isIndexed(j)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(j,_e){return j===void 0&&_e===void 0?0:j===void 0?1:_e===void 0?-1:j>_e?1:j<_e?-1:0}function arrCopy(j,_e){_e=_e||0;for(var et=Math.max(0,j.length-_e),tt=new Array(et),rt=0;rt0;)_e[et]=arguments[et+1];if(typeof j!="function")throw new TypeError("Invalid merger function: "+j);return mergeIntoKeyedWith(this,_e,j)}function mergeIntoKeyedWith(j,_e,et){for(var tt=[],rt=0;rt<_e.length;rt++){var nt=KeyedCollection(_e[rt]);nt.size!==0&&tt.push(nt)}return tt.length===0?j:j.toSeq().size===0&&!j.__ownerID&&tt.length===1?j.constructor(tt[0]):j.withMutations(function(ot){for(var it=et?function(lt,ut){update$1(ot,ut,NOT_SET,function(ct){return ct===NOT_SET?lt:et(ct,lt,ut)})}:function(lt,ut){ot.set(ut,lt)},st=0;st0;)_e[et]=arguments[et+1];return mergeDeepWithSources(this,_e,j)}function mergeIn(j){for(var _e=[],et=arguments.length-1;et-- >0;)_e[et]=arguments[et+1];return updateIn$1(this,j,emptyMap(),function(tt){return mergeWithSources(tt,_e)})}function mergeDeepIn(j){for(var _e=[],et=arguments.length-1;et-- >0;)_e[et]=arguments[et+1];return updateIn$1(this,j,emptyMap(),function(tt){return mergeDeepWithSources(tt,_e)})}function withMutations(j){var _e=this.asMutable();return j(_e),_e.wasAltered()?_e.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Map$1=function(j){function _e(et){return et==null?emptyMap():isMap(et)&&!isOrdered(et)?et:emptyMap().withMutations(function(tt){var rt=j(et);assertNotInfinite(rt.size),rt.forEach(function(nt,ot){return tt.set(ot,nt)})})}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.of=function(){for(var tt=[],rt=arguments.length;rt--;)tt[rt]=arguments[rt];return emptyMap().withMutations(function(nt){for(var ot=0;ot=tt.length)throw new Error("Missing value for key: "+tt[ot]);nt.set(tt[ot],tt[ot+1])}})},_e.prototype.toString=function(){return this.__toString("Map {","}")},_e.prototype.get=function(tt,rt){return this._root?this._root.get(0,void 0,tt,rt):rt},_e.prototype.set=function(tt,rt){return updateMap(this,tt,rt)},_e.prototype.remove=function(tt){return updateMap(this,tt,NOT_SET)},_e.prototype.deleteAll=function(tt){var rt=Collection$1(tt);return rt.size===0?this:this.withMutations(function(nt){rt.forEach(function(ot){return nt.remove(ot)})})},_e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},_e.prototype.sort=function(tt){return OrderedMap(sortFactory(this,tt))},_e.prototype.sortBy=function(tt,rt){return OrderedMap(sortFactory(this,rt,tt))},_e.prototype.map=function(tt,rt){var nt=this;return this.withMutations(function(ot){ot.forEach(function(it,st){ot.set(st,tt.call(rt,it,st,nt))})})},_e.prototype.__iterator=function(tt,rt){return new MapIterator(this,tt,rt)},_e.prototype.__iterate=function(tt,rt){var nt=this,ot=0;return this._root&&this._root.iterate(function(it){return ot++,tt(it[1],it[0],nt)},rt),ot},_e.prototype.__ensureOwner=function(tt){return tt===this.__ownerID?this:tt?makeMap(this.size,this._root,tt,this.__hash):this.size===0?emptyMap():(this.__ownerID=tt,this.__altered=!1,this)},_e}(KeyedCollection);Map$1.isMap=isMap;var MapPrototype=Map$1.prototype;MapPrototype[IS_MAP_SYMBOL]=!0;MapPrototype[DELETE]=MapPrototype.remove;MapPrototype.removeAll=MapPrototype.deleteAll;MapPrototype.setIn=setIn;MapPrototype.removeIn=MapPrototype.deleteIn=deleteIn;MapPrototype.update=update;MapPrototype.updateIn=updateIn;MapPrototype.merge=MapPrototype.concat=merge$1$1;MapPrototype.mergeWith=mergeWith$1;MapPrototype.mergeDeep=mergeDeep;MapPrototype.mergeDeepWith=mergeDeepWith;MapPrototype.mergeIn=mergeIn;MapPrototype.mergeDeepIn=mergeDeepIn;MapPrototype.withMutations=withMutations;MapPrototype.wasAltered=wasAltered;MapPrototype.asImmutable=asImmutable;MapPrototype["@@transducer/init"]=MapPrototype.asMutable=asMutable;MapPrototype["@@transducer/step"]=function(j,_e){return j.set(_e[0],_e[1])};MapPrototype["@@transducer/result"]=function(j){return j.asImmutable()};var ArrayMapNode=function(_e,et){this.ownerID=_e,this.entries=et};ArrayMapNode.prototype.get=function(_e,et,tt,rt){for(var nt=this.entries,ot=0,it=nt.length;ot=MAX_ARRAY_MAP_SIZE)return createNodes(_e,lt,rt,nt);var ft=_e&&_e===this.ownerID,pt=ft?lt:arrCopy(lt);return dt?st?ut===ct-1?pt.pop():pt[ut]=pt.pop():pt[ut]=[rt,nt]:pt.push([rt,nt]),ft?(this.entries=pt,this):new ArrayMapNode(_e,pt)}};var BitmapIndexedNode=function(_e,et,tt){this.ownerID=_e,this.bitmap=et,this.nodes=tt};BitmapIndexedNode.prototype.get=function(_e,et,tt,rt){et===void 0&&(et=hash$1(tt));var nt=1<<((_e===0?et:et>>>_e)&MASK),ot=this.bitmap;return ot&nt?this.nodes[popCount(ot&nt-1)].get(_e+SHIFT,et,tt,rt):rt};BitmapIndexedNode.prototype.update=function(_e,et,tt,rt,nt,ot,it){tt===void 0&&(tt=hash$1(rt));var st=(et===0?tt:tt>>>et)&MASK,lt=1<=MAX_BITMAP_INDEXED_SIZE)return expandNodes(_e,ft,ut,st,gt);if(ct&&!gt&&ft.length===2&&isLeafNode(ft[dt^1]))return ft[dt^1];if(ct&>&&ft.length===1&&isLeafNode(gt))return gt;var mt=_e&&_e===this.ownerID,bt=ct?gt?ut:ut^lt:ut|lt,_t=ct?gt?setAt(ft,dt,gt,mt):spliceOut(ft,dt,mt):spliceIn(ft,dt,gt,mt);return mt?(this.bitmap=bt,this.nodes=_t,this):new BitmapIndexedNode(_e,bt,_t)};var HashArrayMapNode=function(_e,et,tt){this.ownerID=_e,this.count=et,this.nodes=tt};HashArrayMapNode.prototype.get=function(_e,et,tt,rt){et===void 0&&(et=hash$1(tt));var nt=(_e===0?et:et>>>_e)&MASK,ot=this.nodes[nt];return ot?ot.get(_e+SHIFT,et,tt,rt):rt};HashArrayMapNode.prototype.update=function(_e,et,tt,rt,nt,ot,it){tt===void 0&&(tt=hash$1(rt));var st=(et===0?tt:tt>>>et)&MASK,lt=nt===NOT_SET,ut=this.nodes,ct=ut[st];if(lt&&!ct)return this;var dt=updateNode(ct,_e,et+SHIFT,tt,rt,nt,ot,it);if(dt===ct)return this;var ft=this.count;if(!ct)ft++;else if(!dt&&(ft--,ft>>et)&MASK,ot=(et===0?tt:tt>>>et)&MASK,it,st=nt===ot?[mergeIntoNode(j,_e,et+SHIFT,tt,rt)]:(it=new ValueNode(_e,tt,rt),nt>>=1)ot[it]=et&1?_e[nt++]:void 0;return ot[tt]=rt,new HashArrayMapNode(j,nt+1,ot)}function popCount(j){return j-=j>>1&1431655765,j=(j&858993459)+(j>>2&858993459),j=j+(j>>4)&252645135,j+=j>>8,j+=j>>16,j&127}function setAt(j,_e,et,tt){var rt=tt?j:arrCopy(j);return rt[_e]=et,rt}function spliceIn(j,_e,et,tt){var rt=j.length+1;if(tt&&_e+1===rt)return j[_e]=et,j;for(var nt=new Array(rt),ot=0,it=0;it0&&nt=0&&tt>>et&MASK;if(rt>=this.array.length)return new VNode([],_e);var nt=rt===0,ot;if(et>0){var it=this.array[rt];if(ot=it&&it.removeBefore(_e,et-SHIFT,tt),ot===it&&nt)return this}if(nt&&!ot)return this;var st=editableVNode(this,_e);if(!nt)for(var lt=0;lt>>et&MASK;if(rt>=this.array.length)return this;var nt;if(et>0){var ot=this.array[rt];if(nt=ot&&ot.removeAfter(_e,et-SHIFT,tt),nt===ot&&rt===this.array.length-1)return this}var it=editableVNode(this,_e);return it.array.splice(rt+1),nt&&(it.array[rt]=nt),it};var DONE={};function iterateList(j,_e){var et=j._origin,tt=j._capacity,rt=getTailOffset(tt),nt=j._tail;return ot(j._root,j._level,0);function ot(lt,ut,ct){return ut===0?it(lt,ct):st(lt,ut,ct)}function it(lt,ut){var ct=ut===rt?nt&&nt.array:lt&<.array,dt=ut>et?0:et-ut,ft=tt-ut;return ft>SIZE$1&&(ft=SIZE$1),function(){if(dt===ft)return DONE;var pt=_e?--ft:dt++;return ct&&ct[pt]}}function st(lt,ut,ct){var dt,ft=lt&<.array,pt=ct>et?0:et-ct>>ut,gt=(tt-ct>>ut)+1;return gt>SIZE$1&&(gt=SIZE$1),function(){for(;;){if(dt){var mt=dt();if(mt!==DONE)return mt;dt=null}if(pt===gt)return DONE;var bt=_e?--gt:pt++;dt=ot(ft&&ft[bt],ut-SHIFT,ct+(bt<=j.size||_e<0)return j.withMutations(function(ot){_e<0?setListBounds(ot,_e).set(0,et):setListBounds(ot,0,_e+1).set(_e,et)});_e+=j._origin;var tt=j._tail,rt=j._root,nt=MakeRef();return _e>=getTailOffset(j._capacity)?tt=updateVNode(tt,j.__ownerID,0,_e,et,nt):rt=updateVNode(rt,j.__ownerID,j._level,_e,et,nt),nt.value?j.__ownerID?(j._root=rt,j._tail=tt,j.__hash=void 0,j.__altered=!0,j):makeList(j._origin,j._capacity,j._level,rt,tt):j}function updateVNode(j,_e,et,tt,rt,nt){var ot=tt>>>et&MASK,it=j&&ot0){var lt=j&&j.array[ot],ut=updateVNode(lt,_e,et-SHIFT,tt,rt,nt);return ut===lt?j:(st=editableVNode(j,_e),st.array[ot]=ut,st)}return it&&j.array[ot]===rt?j:(nt&&SetRef(nt),st=editableVNode(j,_e),rt===void 0&&ot===st.array.length-1?st.array.pop():st.array[ot]=rt,st)}function editableVNode(j,_e){return _e&&j&&_e===j.ownerID?j:new VNode(j?j.array.slice():[],_e)}function listNodeFor(j,_e){if(_e>=getTailOffset(j._capacity))return j._tail;if(_e<1<0;)et=et.array[_e>>>tt&MASK],tt-=SHIFT;return et}}function setListBounds(j,_e,et){_e!==void 0&&(_e|=0),et!==void 0&&(et|=0);var tt=j.__ownerID||new OwnerID,rt=j._origin,nt=j._capacity,ot=rt+_e,it=et===void 0?nt:et<0?nt+et:rt+et;if(ot===rt&&it===nt)return j;if(ot>=it)return j.clear();for(var st=j._level,lt=j._root,ut=0;ot+ut<0;)lt=new VNode(lt&<.array.length?[void 0,lt]:[],tt),st+=SHIFT,ut+=1<=1<ct?new VNode([],tt):ft;if(ft&&dt>ct&&otSHIFT;mt-=SHIFT){var bt=ct>>>mt&MASK;gt=gt.array[bt]=editableVNode(gt.array[bt],tt)}gt.array[ct>>>SHIFT&MASK]=ft}if(it=dt)ot-=dt,it-=dt,st=SHIFT,lt=null,pt=pt&&pt.removeBefore(tt,0,ot);else if(ot>rt||dt>>st&MASK;if(_t!==dt>>>st&MASK)break;_t&&(ut+=(1<rt&&(lt=lt.removeBefore(tt,st,ot-ut)),lt&&dt>>SHIFT<=SIZE$1&&rt.size>=tt.size*2?(st=rt.filter(function(lt,ut){return lt!==void 0&&nt!==ut}),it=st.toKeyedSeq().map(function(lt){return lt[0]}).flip().toMap(),j.__ownerID&&(it.__ownerID=st.__ownerID=j.__ownerID)):(it=tt.remove(_e),st=nt===rt.size-1?rt.pop():rt.set(nt,void 0))}else if(ot){if(et===rt.get(nt)[1])return j;it=tt,st=rt.set(nt,[_e,et])}else it=tt.set(_e,rt.size),st=rt.set(rt.size,[_e,et]);return j.__ownerID?(j.size=it.size,j._map=it,j._list=st,j.__hash=void 0,j.__altered=!0,j):makeOrderedMap(it,st)}var IS_STACK_SYMBOL="@@__IMMUTABLE_STACK__@@";function isStack(j){return!!(j&&j[IS_STACK_SYMBOL])}var Stack=function(j){function _e(et){return et==null?emptyStack():isStack(et)?et:emptyStack().pushAll(et)}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.of=function(){return this(arguments)},_e.prototype.toString=function(){return this.__toString("Stack [","]")},_e.prototype.get=function(tt,rt){var nt=this._head;for(tt=wrapIndex(this,tt);nt&&tt--;)nt=nt.next;return nt?nt.value:rt},_e.prototype.peek=function(){return this._head&&this._head.value},_e.prototype.push=function(){var tt=arguments;if(arguments.length===0)return this;for(var rt=this.size+arguments.length,nt=this._head,ot=arguments.length-1;ot>=0;ot--)nt={value:tt[ot],next:nt};return this.__ownerID?(this.size=rt,this._head=nt,this.__hash=void 0,this.__altered=!0,this):makeStack(rt,nt)},_e.prototype.pushAll=function(tt){if(tt=j(tt),tt.size===0)return this;if(this.size===0&&isStack(tt))return tt;assertNotInfinite(tt.size);var rt=this.size,nt=this._head;return tt.__iterate(function(ot){rt++,nt={value:ot,next:nt}},!0),this.__ownerID?(this.size=rt,this._head=nt,this.__hash=void 0,this.__altered=!0,this):makeStack(rt,nt)},_e.prototype.pop=function(){return this.slice(1)},_e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},_e.prototype.slice=function(tt,rt){if(wholeSlice(tt,rt,this.size))return this;var nt=resolveBegin(tt,this.size),ot=resolveEnd(rt,this.size);if(ot!==this.size)return j.prototype.slice.call(this,tt,rt);for(var it=this.size-nt,st=this._head;nt--;)st=st.next;return this.__ownerID?(this.size=it,this._head=st,this.__hash=void 0,this.__altered=!0,this):makeStack(it,st)},_e.prototype.__ensureOwner=function(tt){return tt===this.__ownerID?this:tt?makeStack(this.size,this._head,tt,this.__hash):this.size===0?emptyStack():(this.__ownerID=tt,this.__altered=!1,this)},_e.prototype.__iterate=function(tt,rt){var nt=this;if(rt)return new ArraySeq(this.toArray()).__iterate(function(st,lt){return tt(st,lt,nt)},rt);for(var ot=0,it=this._head;it&&tt(it.value,ot++,this)!==!1;)it=it.next;return ot},_e.prototype.__iterator=function(tt,rt){if(rt)return new ArraySeq(this.toArray()).__iterator(tt,rt);var nt=0,ot=this._head;return new Iterator(function(){if(ot){var it=ot.value;return ot=ot.next,iteratorValue(tt,nt++,it)}return iteratorDone()})},_e}(IndexedCollection);Stack.isStack=isStack;var StackPrototype=Stack.prototype;StackPrototype[IS_STACK_SYMBOL]=!0;StackPrototype.shift=StackPrototype.pop;StackPrototype.unshift=StackPrototype.push;StackPrototype.unshiftAll=StackPrototype.pushAll;StackPrototype.withMutations=withMutations;StackPrototype.wasAltered=wasAltered;StackPrototype.asImmutable=asImmutable;StackPrototype["@@transducer/init"]=StackPrototype.asMutable=asMutable;StackPrototype["@@transducer/step"]=function(j,_e){return j.unshift(_e)};StackPrototype["@@transducer/result"]=function(j){return j.asImmutable()};function makeStack(j,_e,et,tt){var rt=Object.create(StackPrototype);return rt.size=j,rt._head=_e,rt.__ownerID=et,rt.__hash=tt,rt.__altered=!1,rt}var EMPTY_STACK;function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}var IS_SET_SYMBOL="@@__IMMUTABLE_SET__@@";function isSet(j){return!!(j&&j[IS_SET_SYMBOL])}function isOrderedSet(j){return isSet(j)&&isOrdered(j)}function deepEqual$1(j,_e){if(j===_e)return!0;if(!isCollection(_e)||j.size!==void 0&&_e.size!==void 0&&j.size!==_e.size||j.__hash!==void 0&&_e.__hash!==void 0&&j.__hash!==_e.__hash||isKeyed(j)!==isKeyed(_e)||isIndexed(j)!==isIndexed(_e)||isOrdered(j)!==isOrdered(_e))return!1;if(j.size===0&&_e.size===0)return!0;var et=!isAssociative(j);if(isOrdered(j)){var tt=j.entries();return _e.every(function(st,lt){var ut=tt.next().value;return ut&&is(ut[1],st)&&(et||is(ut[0],lt))})&&tt.next().done}var rt=!1;if(j.size===void 0)if(_e.size===void 0)typeof j.cacheResult=="function"&&j.cacheResult();else{rt=!0;var nt=j;j=_e,_e=nt}var ot=!0,it=_e.__iterate(function(st,lt){if(et?!j.has(st):rt?!is(st,j.get(lt,NOT_SET)):!is(j.get(lt,NOT_SET),st))return ot=!1,!1});return ot&&j.size===it}function mixin(j,_e){var et=function(tt){j.prototype[tt]=_e[tt]};return Object.keys(_e).forEach(et),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(_e).forEach(et),j}function toJS(j){if(!j||typeof j!="object")return j;if(!isCollection(j)){if(!isDataStructure(j))return j;j=Seq(j)}if(isKeyed(j)){var _e={};return j.__iterate(function(tt,rt){_e[rt]=toJS(tt)}),_e}var et=[];return j.__iterate(function(tt){et.push(toJS(tt))}),et}var Set$1=function(j){function _e(et){return et==null?emptySet():isSet(et)&&!isOrdered(et)?et:emptySet().withMutations(function(tt){var rt=j(et);assertNotInfinite(rt.size),rt.forEach(function(nt){return tt.add(nt)})})}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.of=function(){return this(arguments)},_e.fromKeys=function(tt){return this(KeyedCollection(tt).keySeq())},_e.intersect=function(tt){return tt=Collection$1(tt).toArray(),tt.length?SetPrototype.intersect.apply(_e(tt.pop()),tt):emptySet()},_e.union=function(tt){return tt=Collection$1(tt).toArray(),tt.length?SetPrototype.union.apply(_e(tt.pop()),tt):emptySet()},_e.prototype.toString=function(){return this.__toString("Set {","}")},_e.prototype.has=function(tt){return this._map.has(tt)},_e.prototype.add=function(tt){return updateSet(this,this._map.set(tt,tt))},_e.prototype.remove=function(tt){return updateSet(this,this._map.remove(tt))},_e.prototype.clear=function(){return updateSet(this,this._map.clear())},_e.prototype.map=function(tt,rt){var nt=this,ot=!1,it=updateSet(this,this._map.mapEntries(function(st){var lt=st[1],ut=tt.call(rt,lt,lt,nt);return ut!==lt&&(ot=!0),[ut,ut]},rt));return ot?it:this},_e.prototype.union=function(){for(var tt=[],rt=arguments.length;rt--;)tt[rt]=arguments[rt];return tt=tt.filter(function(nt){return nt.size!==0}),tt.length===0?this:this.size===0&&!this.__ownerID&&tt.length===1?this.constructor(tt[0]):this.withMutations(function(nt){for(var ot=0;ot=0&&rt=0&&ntthis.size?et:this.find(function(tt,rt){return rt===_e},void 0,et)},has:function(_e){return _e=wrapIndex(this,_e),_e>=0&&(this.size!==void 0?this.size===1/0||_e_e?-1:0}function hashCollection(j){if(j.size===1/0)return 0;var _e=isOrdered(j),et=isKeyed(j),tt=_e?1:0,rt=j.__iterate(et?_e?function(nt,ot){tt=31*tt+hashMerge(hash$1(nt),hash$1(ot))|0}:function(nt,ot){tt=tt+hashMerge(hash$1(nt),hash$1(ot))|0}:_e?function(nt){tt=31*tt+hash$1(nt)|0}:function(nt){tt=tt+hash$1(nt)|0});return murmurHashOfSize(rt,tt)}function murmurHashOfSize(j,_e){return _e=imul(_e,3432918353),_e=imul(_e<<15|_e>>>-15,461845907),_e=imul(_e<<13|_e>>>-13,5),_e=(_e+3864292196|0)^j,_e=imul(_e^_e>>>16,2246822507),_e=imul(_e^_e>>>13,3266489909),_e=smi(_e^_e>>>16),_e}function hashMerge(j,_e){return j^_e+2654435769+(j<<6)+(j>>2)|0}var OrderedSet=function(j){function _e(et){return et==null?emptyOrderedSet():isOrderedSet(et)?et:emptyOrderedSet().withMutations(function(tt){var rt=SetCollection(et);assertNotInfinite(rt.size),rt.forEach(function(nt){return tt.add(nt)})})}return j&&(_e.__proto__=j),_e.prototype=Object.create(j&&j.prototype),_e.prototype.constructor=_e,_e.of=function(){return this(arguments)},_e.fromKeys=function(tt){return this(KeyedCollection(tt).keySeq())},_e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},_e}(Set$1);OrderedSet.isOrderedSet=isOrderedSet;var OrderedSetPrototype=OrderedSet.prototype;OrderedSetPrototype[IS_ORDERED_SYMBOL]=!0;OrderedSetPrototype.zip=IndexedCollectionPrototype.zip;OrderedSetPrototype.zipWith=IndexedCollectionPrototype.zipWith;OrderedSetPrototype.zipAll=IndexedCollectionPrototype.zipAll;OrderedSetPrototype.__empty=emptyOrderedSet;OrderedSetPrototype.__make=makeOrderedSet;function makeOrderedSet(j,_e){var et=Object.create(OrderedSetPrototype);return et.size=j?j.size:0,et._map=j,et.__ownerID=_e,et}var EMPTY_ORDERED_SET;function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(j){if(isRecord(j))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(j))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(j===null||typeof j!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Record=function(_e,et){var tt;throwOnInvalidDefaultValues(_e);var rt=function(it){var st=this;if(it instanceof rt)return it;if(!(this instanceof rt))return new rt(it);if(!tt){tt=!0;var lt=Object.keys(_e),ut=nt._indices={};nt._name=et,nt._keys=lt,nt._defaultValues=_e;for(var ct=0;ct0?this._next(et.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},_e}(SimpleOuterSubscriber);function mergeAll(j){return j===void 0&&(j=Number.POSITIVE_INFINITY),mergeMap(identity$5,j)}function merge$2(){for(var j=[],_e=0;_e1&&typeof j[j.length-1]=="number"&&(et=j.pop())):typeof rt=="number"&&(et=j.pop()),tt===null&&j.length===1&&j[0]instanceof Observable$2?j[0]:mergeAll(et)(fromArray(j,tt))}function filter(j,_e){return function(tt){return tt.lift(new FilterOperator(j,_e))}}var FilterOperator=function(){function j(_e,et){this.predicate=_e,this.thisArg=et}return j.prototype.call=function(_e,et){return et.subscribe(new FilterSubscriber(_e,this.predicate,this.thisArg))},j}(),FilterSubscriber=function(j){__extends$2(_e,j);function _e(et,tt,rt){var nt=j.call(this,et)||this;return nt.predicate=tt,nt.thisArg=rt,nt.count=0,nt}return _e.prototype._next=function(et){var tt;try{tt=this.predicate.call(this.thisArg,et,this.count++)}catch(rt){this.destination.error(rt);return}tt&&this.destination.next(et)},_e}(Subscriber);function debounceTime(j,_e){return _e===void 0&&(_e=async),function(et){return et.lift(new DebounceTimeOperator(j,_e))}}var DebounceTimeOperator=function(){function j(_e,et){this.dueTime=_e,this.scheduler=et}return j.prototype.call=function(_e,et){return et.subscribe(new DebounceTimeSubscriber(_e,this.dueTime,this.scheduler))},j}(),DebounceTimeSubscriber=function(j){__extends$2(_e,j);function _e(et,tt,rt){var nt=j.call(this,et)||this;return nt.dueTime=tt,nt.scheduler=rt,nt.debouncedSubscription=null,nt.lastValue=null,nt.hasValue=!1,nt}return _e.prototype._next=function(et){this.clearDebounce(),this.lastValue=et,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},_e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},_e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var et=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(et)}},_e.prototype.clearDebounce=function(){var et=this.debouncedSubscription;et!==null&&(this.remove(et),et.unsubscribe(),this.debouncedSubscription=null)},_e}(Subscriber);function dispatchNext(j){j.debouncedNext()}function e$4(){return e$4=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e{const it=tt.singletonCache.get(ot)||tt.requestCache.get(ot)||tt.transientCache.get(ot);it&&(nt.proxyTarget.current=it)}),tt.postConstruct.forEach(nt=>{nt.postConstruct()}),this.currentCtx=null,rt}child(){const _e=new this.constructor;return _e.parent=this,_e}getParent(){return this.parent}getInjectable(_e){var et;const tt=this.pool.get(_e);if(tt)return{value:tt,fromParent:!1};const rt=(et=this.parent)==null?void 0:et.getInjectable(_e);return rt?{value:rt.value,fromParent:!0}:void 0}_resolve(_e,et,tt){const rt=this.getInjectable(_e);if((et==null?void 0:et.optional)===!0&&!rt)return;if(!rt)throw new Error(`Key: ${a$1(_e)} not found`);const{value:{value:nt,scope:ot,type:it},fromParent:st}=rt;let lt,ut=!1;if(it===h$9.VALUE)return nt;{const ct=tt.requestedKeys.get(_e);if(ct){if(!ct.constructed){if(!et.lazy&&!st){const dt=Array.from(tt.requestedKeys.entries()).pop(),ft=dt?`[ ${String(dt[0])}: ${dt[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${ft} -> [ ${a$1(_e)}: ${nt.name} ]`)}ut=!0}}else tt.requestedKeys.set(_e,{constructed:!1,value:nt})}return lt=ut?()=>this.createLazy(_e,it,tt):()=>this.create(_e,rt.value,tt),this.run(ot,_e,lt,tt)}resolveDeps(_e,et){const tt=[];for(const rt of _e){const{key:nt,options:ot}=c$7(rt);if(Array.isArray(nt)){const it=[];for(const st of nt){let lt=et.singletonCache.get(st.key);lt===void 0&&(lt=this._resolve(st.key,e$4({},st.options),et)),lt===void 0&&ot.removeUndefined||it.push(lt)}tt.push(it.length?it:ot.setToUndefinedIfEmpty?void 0:it)}else{let it=et.singletonCache.get(nt);it===void 0&&(it=this._resolve(nt,e$4({},ot),et)),tt.push(it)}}return tt}createLazy(_e,et,tt){const rt=tt.delayed.get(_e);if(rt)return rt.proxy;const nt=et===h$9.CLASS?{}:function(){},ot=function(it,st,lt){function ut(){if(!it.current)throw new Error(`Lazy target for key:${String(lt)} not yet set`);return it.current}return new Proxy(it,{apply:function(ct,dt){const ft=ut();return Reflect.apply(ft,st?ft:void 0,dt)},construct:function(ct,dt){return Reflect.construct(ut(),dt)},get:function(ct,dt,ft){return dt===t$8?ct.current:dt===n$9||Reflect.get(ut(),dt,ft)},set:function(ct,dt,ft){return Reflect.set(dt==="current"?ct:ut(),dt,ft)},defineProperty:function(ct,dt,ft){return Reflect.defineProperty(ut(),dt,ft)},deleteProperty:function(ct,dt){return Reflect.deleteProperty(ut(),dt)},getPrototypeOf:function(ct){return Reflect.getPrototypeOf(ut())},setPrototypeOf:function(ct,dt){return Reflect.setPrototypeOf(ut(),dt)},getOwnPropertyDescriptor:function(ct,dt){return Reflect.getOwnPropertyDescriptor(ut(),dt)},has:function(ct,dt){return Reflect.has(ut(),dt)},isExtensible:function(ct){return Reflect.isExtensible(ut())},ownKeys:function(ct){return Reflect.ownKeys(ut())},preventExtensions:function(ct){return Reflect.preventExtensions(ut())}})}(nt,et===h$9.CLASS,_e);return tt.delayed.set(_e,{proxy:ot,proxyTarget:nt}),ot}create(_e,et,tt){const{beforeResolve:rt,afterResolve:nt,value:ot,type:it}=et,st=ot.inject;let lt=[];st&&(lt=Array.isArray(st)?this.resolveDeps(st,tt):st.fn({container:this,ctx:tt.ctx},...this.resolveDeps(st.deps,tt)));const ut=rt?rt({container:this,value:ot.original,ctx:tt.ctx},...lt):ot(...lt);return nt&&nt({container:this,value:ut,ctx:tt.ctx}),tt.requestedKeys.get(_e).constructed=!0,it==="CLASS"&&"postConstruct"in ut&&tt.postConstruct.push(ut),ut}run(_e,et,tt,rt){if(_e===f$6.SINGLETON||_e===f$6.CONTAINER_SINGLETON){var nt;if(!this.pool.has(et)&&_e===f$6.SINGLETON)return(nt=this.parent)==null?void 0:nt.resolve(et);const it=rt.singletonCache.get(et);if(it!==void 0)return it===p$8?void 0:it;{let st=tt();return st===void 0&&(st=p$8),this.singletonCache.set(et,st),st}}if(f$6.REQUEST===_e){const it=rt.requestCache.get(et);if(it!==void 0)return it===p$8?void 0:it;{let st=tt();return st===void 0&&(st=p$8),rt.requestCache.set(et,st),st}}const ot=tt();return rt.transientCache.set(et,ot),ot}};function isClassProvider(j){return hasOwn$1(j,"useClass")}function isFactoryProvider(j){return hasOwn$1(j,"useFactory")}function isValueProvider(j){return hasOwn$1(j,"useValue")}function isTokenProvider(j){return hasOwn$1(j,"useToken")}const SINGLETON=Symbol("singleton");function isConstructor(j){return typeof j=="function"&&!!j.inject}function getClassScope(j){return j[SINGLETON]?"SINGLETON":j.scope?j.scope:"TRANSIENT"}class DependencyContainer extends d$2{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(_e,et){return this.has(_e,!1)&&this.unbind(_e),super.bindValue(_e,et)}bindClass(_e,et,tt){const rt=(tt==null?void 0:tt.scope)??getClassScope(_e);return super.bindClass(_e,et,{...tt,scope:rt})}register(_e,et){if(isValueProvider(et))this.bindValue(_e,et.useValue);else if(isFactoryProvider(et)){const{useFactory:tt}=et;this.bindFactory(_e,{value:tt,inject:[ContainerToken]},{scope:et.scope})}else if(isTokenProvider(et))this.bindFactory(_e,{value:tt=>tt,inject:[et.useToken]});else if(isClassProvider(et)){const tt=et.scope??getClassScope(et.useClass);this.bindClass(_e,et.useClass,{scope:tt})}}_resolve(_e,et,tt){if(!this.getInjectable(_e)&&isConstructor(_e)){const rt=getClassScope(_e);this.bindClass(_e,_e,{scope:rt})}return super._resolve(_e,et,tt)}}const getGlobalContainer=()=>{const j=new DependencyContainer;return j.name="global",j},container=getGlobalContainer();function createInjectionToken(j,_e){return container.bindValue(j,_e),j}const ContainerToken=createInjectionToken("DependencyContainer",container),ServicesContext=reactExports.createContext(container),createRegistry=({provide:j,name:_e})=>({containerRef:tt,onInitialize:rt,onDispose:nt,children:ot})=>{const it=reactExports.useContext(ServicesContext),st=reactExports.useMemo(()=>{const lt=it.child();return _e&&(lt.name=_e),j==null||j.forEach(ut=>{lt.register(ut.token,ut)}),lt.bindValue(ContainerToken,lt),rt==null||rt(lt),lt},[rt,it]);return reactExports.useImperativeHandle(tt,()=>st,[st]),reactExports.useEffect(()=>()=>{nt==null||nt(st),st.unbindAll(!0)},[st]),jsxRuntimeExports.jsx(ServicesContext.Provider,{value:st,children:ot})};createInjectionToken("isControlFlowEnabledToken",!1);createInjectionToken("isDoWhileLoopEnabledToken",!1);createInjectionToken("isAnnotationEnabledToken",!1);createInjectionToken("isDesignerUnifiedSubmissionFlowEnabledToken",!1);createInjectionToken("isPipelineComputeDatastoreEnabledToken",!1);createInjectionToken("TransactionalAuthoringEnabled",!1);createInjectionToken("ComponentSettingsEnabled",!1);createInjectionToken("isPipelineOwnerToken",!1);createInjectionToken("isExecutionPhaseEnabledToken",!1);createInjectionToken("isPipelineStreamingEnabledToken",!1);createInjectionToken("useFocusedNodeId",()=>{});createInjectionToken("useIsInSearchResult",()=>!1);createInjectionToken("dismissCompareCheckListPanel",()=>null);const promptFlowGraphReducer=j=>(_e,et)=>j(_e,et),graphReducer=()=>getGraphReducer(promptFlowGraphReducer);let Computed$1=class ov extends Observable$2{constructor(_e,et){super(tt=>this.state$.subscribe(tt)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new BehaviorSubject(_e),this.subscription=et.subscribe(this.state$)}static fromStates(_e,et){const tt=et(_e.map(nt=>nt.getSnapshot())),rt=combineLatest(_e).pipe(map$3(et));return new ov(tt,rt)}destroy(){this.subscription.unsubscribe()}},State$1=class extends BehaviorSubject{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=_e=>{this.next(_e)},this.updateState=_e=>{this.next(_e(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(_e,et){!et&&this.value===_e||super.next(_e)}copyFrom(_e){this.next(_e.getSnapshot())}};const Wp=class Wp{constructor(){this.nodesIndex$=new State$1(List$1()),this.allNodeNames$=Computed$1.fromStates([],()=>List$1()),this.orientation$=new State$1(Orientation$1.Vertical),this.language$=new State$1(void 0)}tweakFlattenNodeOrder(_e,et){const tt=this.nodesIndex$.getSnapshot(),rt=tt.findIndex(ot=>ot===_e),nt=rt+et;if(rt>=0&&nt>=0&&nt(this.addListener(_e,et),et.next(this.get(_e)),()=>{this.removeListener(_e,et)}))}notify(_e){var et;(et=this.listeners.get(_e))==null||et.forEach(tt=>{tt.next(this.get(_e))})}next(_e){const et=this.getSnapshot();super.next(_e);const tt=new Set;et.forEach((rt,nt)=>{_e.has(nt)||tt.add(nt)}),_e.forEach((rt,nt)=>{et.has(nt)&&Object.is(et.get(nt),rt)||tt.add(nt)}),tt.forEach(rt=>{this.notify(rt)})}addListener(_e,et){let tt=this.listeners.get(_e);tt||(tt=new Set,this.listeners.set(_e,tt)),tt.add(et)}removeListener(_e,et){const tt=this.listeners.get(_e);tt&&(tt.delete(et),tt.size===0&&this.listeners.delete(_e))}}class ObservableMap extends ObservableCollection{constructor(){super(Map$1())}set(_e,et){return this.updateState(tt=>tt.set(_e,et)),this}update(_e,et){return this.updateState(tt=>tt.update(_e,et)),this}delete(_e){return this.updateState(et=>et.delete(_e)),this}deleteAll(_e){return this.updateState(et=>et.deleteAll(_e)),this}clear(){return this.next(Map$1()),this}merge(_e){return this.updateState(et=>et.merge(_e)),this}}class ObservableOrderedMap extends ObservableCollection{constructor(){super(OrderedMap())}set(_e,et){return this.updateState(tt=>tt.set(_e,et)),this}update(_e,et){return this.updateState(tt=>tt.update(_e,et)),this}delete(_e){return this.updateState(et=>et.delete(_e)),this}deleteAll(_e){return this.updateState(et=>et.deleteAll(_e)),this}clear(){return this.next(OrderedMap()),this}merge(_e){return this.updateState(et=>et.merge(_e)),this}insertBefore(_e,et,tt){return this.updateState(rt=>OrderedMap().withMutations(nt=>{for(const[ot,it]of rt.entries())_e===ot&&nt.set(et,tt),nt.set(ot,it)})),this.notify(et),this}insertAfter(_e,et,tt){return this.updateState(rt=>OrderedMap().withMutations(nt=>{for(const[ot,it]of rt.entries())nt.set(ot,it),_e===ot&&nt.set(et,tt)})),this.notify(et),this}sortByValue(_e){return this.updateState(et=>et.sort(_e)),this}}var _a$5;const qp=class qp extends FlowViewModelShared{constructor(){super(),this.isWorkspaceReady$=new State$1(!1),this.currentNodeId$=new State$1(void 0),this.graphConfig=GraphConfigBuilder.default().build(),this.graphReducer=graphReducer(),this.isReadonly$=new State$1(!1),this.name$=new State$1(""),this.flowType$=new State$1(FlowType.Default),this.owner$=new State$1(void 0),this.isArchived$=new State$1(!1),this.selectedStepId$=new State$1(void 0),this.tools$=new ObservableOrderedMap,this.toolsStatus$=new ObservableOrderedMap,this.batchInputs$=new State$1([]),this.bulkRunDataReference$=new State$1(void 0),this.chatMessages$=new State$1([]),this.nodeVariants$=new ObservableOrderedMap,this.tuningNodeNames$=new State$1([]),this.inputSpec$=new ObservableOrderedMap,this.selectedBulkIndex$=new State$1(void 0),this.nodeRuns$=new ObservableOrderedMap,this.flowRuns$=new State$1([]),this.rootFlowRunMap$=new ObservableMap,this.flowOutputs$=new ObservableOrderedMap,this.connections$=new ObservableOrderedMap,this.promptToolSetting$=new State$1(void 0),this.userInfo$=new State$1(void 0),this.bulkRunDescription$=new State$1(""),this.bulkRunTags$=new State$1([]),this.nodeParameterTypes$=new ObservableMap,this.theme$=new State$1(void 0),this.selectedRuntimeName$=new State$1(void 0),this.connectionList$=new State$1([]),this.connectionSpecList$=new State$1([]),this.connectionDeployments$=new ObservableOrderedMap,this.connectionDeploymentsLoading$=new ObservableOrderedMap,this.runStatus$=new State$1(void 0),this.flowRunType$=new State$1(void 0),this.packageToolsDictionary$=new ObservableMap,this.codeToolsDictionary$=new ObservableMap,this.isToolsJsonReady$=new State$1(!1),this.flowGraphLayout$=new State$1(void 0),this.flowUIHint$=new State$1(void 0),this.isInitialized$=new State$1(!1),this.flowFeatures$=new State$1(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(dataReadonlyMode).add(GraphFeatures.AutoFit);const et=new Set;et.add(FlowFeatures.OpenCodeFileInNode),this.flowFeatures$.next(et),this.canvasState$=new State$1(createGraphState({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:GraphModel.empty()})),this.allNodeNames$=Computed$1.fromStates([this.nodeVariants$],([tt])=>List$1(Array.from(tt.keys()).filter(rt=>!!rt&&rt!==FLOW_INPUT_NODE_NAME&&rt!==FLOW_OUTPUT_NODE_NAME))),merge$2(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(filter(()=>this.loaded),filter(()=>this.isInitialized$.getSnapshot()),debounceTime(100)).subscribe(()=>{this.notifyFlowChange()}),merge$2(this.flowGraphLayout$,this.orientation$).pipe(debounceTime(100)).subscribe(()=>{this.notifyLayoutChange()}),merge$2(this.flowUIHint$).pipe(debounceTime(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=Computed$1.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([tt,rt,nt,ot,it,st])=>this.validateNodeInputs(tt))}attemptToRenameStep(_e,et){if(!checkNodeNameValid(et))return`step name ${et} is not valid`;if(this.nodeVariants$.get(et))return`step with name ${et} already exists`;if(!this.nodeVariants$.get(_e))return`step ${_e} not found`;const rt=(ot,it,st)=>{const lt={...ot};return Object.keys(lt).forEach(ut=>{const ct=lt[ut],dt=getRefValueFromRaw(ct),[ft]=(dt==null?void 0:dt.split("."))??[];ft===it&&(lt[ut]=ct.replace(`${it}`,`${st}`))}),lt},nt=(ot,it,st)=>{if(!ot)return;const lt={};return Object.entries(ot).forEach(([ut,ct])=>{var dt,ft,pt;lt[ut]={...ct,node:{...ct.node,name:((dt=ct.node)==null?void 0:dt.name)===it?st:(ft=ct.node)==null?void 0:ft.name,inputs:rt(((pt=ct.node)==null?void 0:pt.inputs)??{},it,st)}}}),lt};reactDomExports.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(ot=>ot.mapEntries(([it,st])=>{const lt={...st,variants:nt(st.variants,_e,et)};return[it===_e?et:it,lt]})),this.flowGraphLayout$.updateState(ot=>({...ot,nodeLayouts:renameKeyInObject((ot==null?void 0:ot.nodeLayouts)??{},_e,et)})),this.flowUIHint$.updateState(ot=>({...ot,nodes:renameKeyInObject((ot==null?void 0:ot.nodes)??{},_e,et)})),this.currentNodeId$.getSnapshot()===_e&&this.currentNodeId$.next(et),this.selectedStepId$.getSnapshot()===_e&&this.selectedStepId$.next(et),this.nodeRuns$.getSnapshot().forEach((ot,it)=>{if(ot.node===_e){const[,st,lt,ut]=it.split("#"),ct=parseInt(st,10);this.nodeRuns$.set(this.getNodeRunKey(et,isNaN(ct)?0:ct,lt,ut),{...ot,node:et}),this.nodeRuns$.delete(it)}})})}acceptFlowEdit(_e,et){_e!==this.viewType&&this.loadFlow(et)}loadFlow(_e){this.loaded=!1;try{reactDomExports.unstable_batchedUpdates(()=>{this.baseEntity=_e,this.owner$.next(_e.owner),this.isArchived$.next(_e.isArchived??!1),this.loadFlowDto(_e),_e.flowRunResult&&this.loadStatus(_e.flowRunResult)}),this.loaded=!0}catch(et){throw this.loaded=!0,et}}loadCodeTool(_e,et){this.codeToolsDictionary$.set(_e,et)}loadPackageTool(_e,et){this.packageToolsDictionary$.set(_e,et)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(_e){var nt;this.clearStatus();let et=0;const tt=[],rt=new Map;if((nt=_e.flow_runs)!=null&&nt.length){for(const ot of _e.flow_runs)ot.index===null?rt.set(ot.run_id,ot):(et=ot.index,tt.push(ot));tt.sort((ot,it)=>{var st;return ot.root_run_id===it.root_run_id?(ot.index??0)-(it.index??0):ot.variant_id&&it.variant_id?ot.variant_id.localeCompare(it.variant_id):((st=ot.root_run_id)==null?void 0:st.localeCompare((it==null?void 0:it.root_run_id)??""))??0}),this.flowRuns$.next(tt),this.rootFlowRunMap$.next(Map$1(rt))}_e.flowRunType&&this.flowRunType$.next(_e.flowRunType),_e.runStatus&&this.runStatus$.next(_e.runStatus),this.loadNodesStatus(_e.node_runs||[]),this.selectedBulkIndex$.next(et)}loadNodesStatus(_e){const et=this.tuningNodeNames$.getSnapshot()[0];_e.forEach(tt=>{const rt=tt.node===et,nt=this.getDefaultVariantId(tt.node),ot=tt.variant_id||nt,it=rt?ot:nt,st=this.getNodeRunKey(tt.node,tt.index??0,it,ot);this.nodeRuns$.set(st,tt)})}loadSingleNodeRunStatus(_e,et,tt){this.resetNodesStatus(_e,et),tt.forEach(rt=>{const nt=this.getDefaultVariantId(rt.node),ot=rt.variant_id||nt,it=rt.variant_id||nt,st=this.getNodeRunKey(rt.node,rt.index??0,it,ot);this.nodeRuns$.set(st,rt)})}resetNodesStatus(_e,et){this.nodeRuns$.updateState(tt=>tt.filter(rt=>{if(rt.node!==_e)return!0;const nt=this.getDefaultVariantId(rt.node);return(rt.variant_id||nt)!==et}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(_e){var et;return((et=this.nodeVariants$.get(_e))==null?void 0:et.defaultVariantId)||BASELINE_VARIANT_ID}setStepInput(_e,et,tt,rt){const nt=this.getNode(_e,rt);if(!(nt!=null&&nt.name))return;const ot={...nt,inputs:{...nt.inputs,[et]:tt}};this.setNode(_e,rt,ot)}removeStepInputs(_e,et,tt){const rt=this.getNode(_e,tt);if(!(rt!=null&&rt.name))return;const nt={...rt.inputs};et.forEach(it=>{delete nt[it]});const ot={...rt,inputs:nt};this.setNode(_e,tt,ot)}renameStepInput(_e,et,tt){const rt=this.getNode(_e,BASELINE_VARIANT_ID);if(!(rt!=null&&rt.name))return;const nt={...rt,inputs:renameKeyInObject(rt.inputs??{},et,tt)};this.setNode(_e,BASELINE_VARIANT_ID,nt)}setStepActivate(_e,et,tt){const rt=this.getNode(_e,et);if(!(rt!=null&&rt.name))return;const nt={...rt,activate:tt};this.setNode(_e,et,nt)}setStepKeyValue(_e,et,tt,rt){const nt=this.getNode(_e,rt);if(!(nt!=null&&nt.name))return;const ot={...nt,[et]:tt};this.setNode(_e,rt,ot)}setStepSourcePath(_e,et,tt){const rt=this.getNode(_e,tt);if(!(rt!=null&&rt.name))return;const nt={...rt,source:{...rt.source,path:et}};this.setNode(_e,tt,nt)}setBatchInput(_e,et,tt){const rt=this.batchInputs$.getSnapshot();if(!rt[_e])return;const nt=[...rt];nt[_e]={...nt[_e],[et]:tt},this.batchInputs$.setState(nt)}setBulkRunTag(_e,et,tt){const rt=[...this.bulkRunTags$.getSnapshot()];if(!rt[_e])return;const nt={};nt[et]=tt,rt[_e]=nt,this.bulkRunTags$.next(rt)}deleteBulkRunTag(_e){const et=[...this.bulkRunTags$.getSnapshot()];et.splice(_e,1),this.bulkRunTags$.next(et)}addBulkRunTagRow(){const _e=this.bulkRunTags$.getSnapshot(),et={"":""};this.bulkRunTags$.next([..._e,et])}getNodeRunKey(_e,et,tt=BASELINE_VARIANT_ID,rt=BASELINE_VARIANT_ID){return`${_e}#${et}#${tt}#${rt}`}dispatch(_e){var nt;let et="";switch(_e.type){case GraphCanvasEvent.Click:this.currentNodeId$.next(void 0);break;case GraphNodeEvent.Click:this.currentNodeId$.next(_e.node.id,!0);break;case GraphNodeEvent.DragEnd:{et=_e.node.name??"";break}}const tt=this.canvasState$.getSnapshot(),rt=this.graphReducer(tt,_e);if(this.canvasState$.next(rt),et){const ot=rt.data.present.nodes.find(lt=>lt.name===et),it=this.flowGraphLayout$.getSnapshot(),st={...it,nodeLayouts:{...it==null?void 0:it.nodeLayouts,[et]:{...(nt=it==null?void 0:it.nodeLayouts)==null?void 0:nt[et],x:ot==null?void 0:ot.x,y:ot==null?void 0:ot.y}}};this.flowGraphLayout$.next(st)}}setGraphConfig(_e){this.graphConfig=_e;const et=this.canvasState$.getSnapshot();this.canvasState$.next({...et,settings:{...et.settings,graphConfig:_e}})}toFlowGraph(){const _e=this.nodeVariants$.getSnapshot(),et=getDefaultNodeList(List$1.of(..._e.keys()),_e);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:et,tools:void 0}}toFlowGraphSnapshot(_e){const et=lodashExports.mapValues(this.inputSpec$.getSnapshot().toJSON(),st=>{st.default!==void 0&&(st.default=convertValByType(st.default,st.type));const{name:lt,id:ut,...ct}=st;return ct}),tt=lodashExports.mapValues(this.flowOutputs$.getSnapshot().toJSON(),st=>{const{name:lt,id:ut,...ct}=st;return ct}),nt=getNodesThatMoreThanOneVariant(_e).map(st=>st.nodeName),ot=getFlowSnapshotNodeList(List$1.of(...Object.keys(_e)),_e,nt),it=getVariantNodes(_e);return{inputs:et,outputs:tt,nodes:ot,node_variants:it}}toNodeVariants(){const _e=this.nodeVariants$.getSnapshot().toJSON(),et={};return Object.keys(_e).forEach(tt=>{const rt=_e[tt],nt={};Object.keys(rt.variants??{}).forEach(ot=>{const it=(rt.variants??{})[ot];nt[ot]={...it,node:it.node?this.pruneNodeInputs(it.node):void 0}}),et[tt]={...rt,variants:nt}}),et}toFlowRunSettings(){var _e,et;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(_e=this.selectedRuntimeName$)==null?void 0:_e.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(et=this.bulkRunDataReference$.getSnapshot())==null?void 0:et.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const _e=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(_e)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const _e=this.flowGraphLayout$.getSnapshot()??{},et=Array.from(this.nodeVariants$.getSnapshot().keys()),tt={..._e.nodeLayouts};return Object.keys(tt).forEach(rt=>{tt[rt]={...tt[rt],index:et.indexOf(rt)}}),{..._e,nodeLayouts:tt,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(_e,et){const tt=this.codeToolsDictionary$.get(_e);tt&&this.codeToolsDictionary$.set(_e,{...tt,code:et})}updateToolStatus(_e,et){const tt=this.toolsStatus$.get(_e);this.toolsStatus$.set(_e,{...tt,...et})}updateFlowInput(_e,et){const tt=this.batchInputs$.getSnapshot(),rt=tt==null?void 0:tt[0];let nt=et;try{const ot=JSON.parse(et);nt=JSON.stringify(ot)}catch{nt=et}this.batchInputs$.next([{...rt,[_e]:nt},...tt.slice(1)])}addNewNode(_e,et){if(!_e.name)return;const tt=_e,rt={defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:tt}}};et?this.nodeVariants$.insertBefore(et,_e.name,rt):this.nodeVariants$.set(_e.name,rt)}patchEditData(_e){var et,tt,rt,nt;switch(_e.type){case"chatInput":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const ot=this.batchInputs$.getSnapshot(),it=((et=this.getChatInputDefinition())==null?void 0:et.name)??DEFAULT_CHAT_INPUT_NAME;this.batchInputs$.next([{...ot[0],[it]:_e.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const ot=this.batchInputs$.getSnapshot(),it=((tt=this.getChatHistoryDefinition())==null?void 0:tt.name)??DEFAULT_CHAT_HISTORY_NAME,st=((rt=this.getChatInputDefinition())==null?void 0:rt.name)??DEFAULT_CHAT_INPUT_NAME,lt=((nt=this.getChatOutputDefinition())==null?void 0:nt.name)??DEFAULT_CHAT_OUTPUT_NAME;this.batchInputs$.next([{...ot[0],[it]:[...ot[0][it],{inputs:{[st]:_e.value.chatInput},outputs:{[lt]:_e.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,reactDomExports.unstable_batchedUpdates(()=>{this.loadFlorGraph(_e.value)})}finally{this.loaded=!0}break}default:{const ot=_e;throw new Error(`Didn't expect to get here: ${ot}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(isChatInput)}getChatHistoryDefinition(){const _e=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(et=>isChatHistory(_e,et))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(isChatOutput)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(_e){var ot;if(!_e)return;const et=this.connectionList$.getSnapshot(),tt=this.promptToolSetting$.getSnapshot(),rt=et.find(it=>it.connectionName===_e);if(!rt)return;const nt=(ot=tt==null?void 0:tt.providers)==null?void 0:ot.find(it=>{var st;return rt.connectionType&&((st=it.connection_type)==null?void 0:st.includes(rt.connectionType))});if(nt)return nt.provider}addFlowInput(_e,et){this.inputSpec$.set(_e,{...et,name:_e,id:(et==null?void 0:et.id)??getRandomInputDefinitionId()})}addFlowOutput(_e,et){this.flowOutputs$.set(_e,{...et,name:_e,id:(et==null?void 0:et.id)??getRandomOutputDefinitionId()})}loadFlorGraph(_e){var nt;const et=(_e==null?void 0:_e.nodes)||[],tt=(_e==null?void 0:_e.outputs)||{},rt=(_e==null?void 0:_e.inputs)||{};this.nodeVariants$.clear(),et.forEach(ot=>{ot.name&&(this.nodeVariants$.get(ot.name)||this.nodeVariants$.set(ot.name,{defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:ot}}}))}),(nt=Object.entries((_e==null?void 0:_e.node_variants)??{}))==null||nt.forEach(([ot,it])=>{const st={...it.variants};Object.entries(st).forEach(([lt,ut])=>{ut.node&&(ut.node.name=ot)}),this.nodeVariants$.set(ot,{defaultVariantId:it.default_variant_id??BASELINE_VARIANT_ID,variants:st})}),this.flowOutputs$.clear(),Object.keys(tt).forEach(ot=>{const it=tt[ot];it&&this.addFlowOutput(ot,it)}),this.inputSpec$.clear(),Object.keys(rt).forEach(ot=>{const it=rt[ot];it&&this.addFlowInput(ot,it)})}loadFlowDto(_e){var et,tt,rt,nt,ot,it,st,lt,ut,ct,dt,ft,pt,gt;if(this.name$.next(_e.flowName??""),this.flowType$.next(_e.flowType??FlowType.Default),this.loadFlorGraph((et=_e.flow)==null?void 0:et.flowGraph),(tt=_e.flow)!=null&&tt.nodeVariants&&((nt=Object.entries(((rt=_e.flow)==null?void 0:rt.nodeVariants)??{}))==null||nt.forEach(([mt,bt])=>{this.nodeVariants$.set(mt,{...bt,defaultVariantId:bt.defaultVariantId??BASELINE_VARIANT_ID})})),(it=(ot=_e.flow)==null?void 0:ot.flowGraphLayout)!=null&&it.nodeLayouts){const mt=(st=_e.flow)==null?void 0:st.flowGraphLayout;this.flowGraphLayout$.next(mt),mt.orientation&&this.orientation$.next(mt.orientation)}if(this.selectedRuntimeName$.setState(((lt=_e.flowRunSettings)==null?void 0:lt.runtimeName)??""),this.batchInputs$.setState(((ut=_e.flowRunSettings)==null?void 0:ut.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((ct=_e.flowRunSettings)==null?void 0:ct.tuningNodeNames)??[]),this.bulkRunDescription$.next(_e.description??""),this.bulkRunTags$.next([]),_e.tags){const mt=[];Object.keys(_e.tags).forEach(bt=>{var _t;mt.push({[bt]:((_t=_e==null?void 0:_e.tags)==null?void 0:_t[bt])??""})}),this.bulkRunTags$.next(mt)}this.initNodeParameterTypes((dt=_e.flow)==null?void 0:dt.flowGraph),_e.flowType===FlowType.Chat&&(this.initChatFlow(_e),this.initChatMessages(((ft=_e.flowRunSettings)==null?void 0:ft.batch_inputs)??[{}])),this.language$.next((gt=(pt=_e.flow)==null?void 0:pt.flowGraph)==null?void 0:gt.language)}initNodeParameterTypes(_e){if(!_e)return;const et=this.nodeVariants$.getSnapshot().toJSON();let tt=Map$1(new Map);Object.keys(et).forEach(rt=>{const nt=et[rt];Object.keys(nt.variants??{}).forEach(ot=>{var st;const it=(nt.variants??{})[ot];if(it.node){const lt={inputs:{},activate:{is:void 0}},ut=this.getToolOfNode(it.node);if((it.node.type??(ut==null?void 0:ut.type))===ToolType.python){const ct=Object.keys((ut==null?void 0:ut.inputs)??{});Object.keys(it.node.inputs??{}).filter(pt=>!ct.includes(pt)).forEach(pt=>{var gt,mt;lt.inputs[pt]=inferTypeByVal((mt=(gt=it.node)==null?void 0:gt.inputs)==null?void 0:mt[pt])??ValueType.string})}lt.activate.is=inferTypeByVal((st=it.node.activate)==null?void 0:st.is)??ValueType.string,tt=tt.set(`${rt}#${ot}`,lt)}})}),this.nodeParameterTypes$.next(tt)}initChatFlow(_e){if(_e.flowType!==FlowType.Chat)return;this.inputSpec$.getSnapshot().some(nt=>isChatHistory(_e.flowType,nt))||(this.addFlowInput(DEFAULT_CHAT_HISTORY_NAME,{name:DEFAULT_CHAT_HISTORY_NAME,type:ValueType.list}),this.batchInputs$.updateState(nt=>[{...nt[0],[DEFAULT_CHAT_HISTORY_NAME]:[]},...nt.slice(1)])),this.inputSpec$.getSnapshot().some(nt=>isChatInput(nt))||this.addFlowInput(DEFAULT_CHAT_INPUT_NAME,{name:DEFAULT_CHAT_INPUT_NAME,type:ValueType.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(nt=>isChatOutput(nt))||this.addFlowOutput(DEFAULT_CHAT_OUTPUT_NAME,{name:DEFAULT_CHAT_OUTPUT_NAME,type:ValueType.string,is_chat_output:!0})}initChatMessages(_e){var it,st,lt;const et=((it=this.getChatHistoryDefinition())==null?void 0:it.name)??DEFAULT_CHAT_HISTORY_NAME,tt=_e[0][et];if(!Array.isArray(tt))return;const rt=((st=this.getChatInputDefinition())==null?void 0:st.name)??DEFAULT_CHAT_INPUT_NAME,nt=((lt=this.getChatOutputDefinition())==null?void 0:lt.name)??DEFAULT_CHAT_OUTPUT_NAME,ot=parseChatMessages(rt,nt,tt);this.chatMessages$.next(ot),this.syncChatMessagesToInputsValues(ot)}syncChatMessagesToInputsValues(_e){var tt,rt,nt;if(this.batchInputs$.getSnapshot().length<=1){const ot=((tt=this.getChatInputDefinition())==null?void 0:tt.name)??DEFAULT_CHAT_INPUT_NAME,it=((rt=this.getChatOutputDefinition())==null?void 0:rt.name)??DEFAULT_CHAT_OUTPUT_NAME,st=((nt=this.getChatHistoryDefinition())==null?void 0:nt.name)??DEFAULT_CHAT_HISTORY_NAME,lt=[];for(let ut=0;ut<_e.length;++ut){for(;ut<_e.length&&_e[ut].from!==ChatMessageFrom.User;++ut);if(ut+1<_e.length){const ct=_e[ut],dt=_e[ut+1];if(dt.from===ChatMessageFrom.Chatbot&&!dt.error){ut+=1;const ft=dt.extraData;lt.push({inputs:{...ft.flowInputs,[ot]:ct.content},outputs:{...ft.flowOutputs,[it]:dt.content}})}}}this.batchInputs$.updateState(ut=>[{...ut[0],[st]:lt}])}}getNode(_e,et){var tt,rt,nt;return(nt=(rt=(tt=this.nodeVariants$.get(_e))==null?void 0:tt.variants)==null?void 0:rt[et])==null?void 0:nt.node}setNode(_e,et,tt){var nt;const rt=this.nodeVariants$.get(_e);this.nodeVariants$.set(_e,{defaultVariantId:(rt==null?void 0:rt.defaultVariantId)??BASELINE_VARIANT_ID,variants:{...rt==null?void 0:rt.variants,[et]:{...(nt=rt==null?void 0:rt.variants)==null?void 0:nt[et],node:tt}}})}getAllLlmParameterKeys(){var _e;if(this._allLlmParameterKeys.length===0){const et=this.promptToolSetting$.getSnapshot();if(!et)return[];const tt=(_e=et.providers)==null?void 0:_e.flatMap(nt=>{var ot;return(ot=nt.apis)==null?void 0:ot.map(it=>it.parameters)}),rt=new Set(tt==null?void 0:tt.flatMap(nt=>Object.keys(nt??{})));this._allLlmParameterKeys=[...rt.values()]}return this._allLlmParameterKeys}pruneNodeInputs(_e){var ct,dt,ft,pt;const et=_e?this.getToolOfNode(_e):void 0,tt=this.promptToolSetting$.getSnapshot(),rt=this.connectionList$.getSnapshot(),nt=this.connectionSpecList$.getSnapshot();if(!et||!tt)return _e;if((_e.type??et.type)===ToolType.python&&et.enable_kwargs){const gt={};return Object.keys(_e.inputs??{}).forEach(mt=>{var bt,_t,xt,yt;if(((bt=_e.inputs)==null?void 0:bt[mt])!==void 0){const Et=(_t=et.inputs)==null?void 0:_t[mt];gt[mt]=convertValByType((xt=_e.inputs)==null?void 0:xt[mt],(yt=Et==null?void 0:Et.type)==null?void 0:yt[0])}}),{..._e,inputs:gt}}const ot=this.getProviderByConnection(_e.connection??"");if((_e.type??et.type)===ToolType.llm&&(!ot||!_e.api))return _e;const it=(_e.type??et.type)===ToolType.llm,st=it?(pt=(ft=(dt=(ct=tt==null?void 0:tt.providers)==null?void 0:ct.find(gt=>gt.provider===ot))==null?void 0:dt.apis)==null?void 0:ft.find(gt=>gt.api===_e.api))==null?void 0:pt.parameters:void 0,lt=new Set(filterNodeInputsKeys(et.inputs,_e.inputs,rt,nt).concat(it?this.getAllLlmParameterKeys():[])),ut={};return Object.keys(_e.inputs??{}).forEach(gt=>{var mt,bt,_t,xt;if(lt.has(gt)&&((mt=_e.inputs)==null?void 0:mt[gt])!==void 0){const yt=((bt=et.inputs)==null?void 0:bt[gt])??(st==null?void 0:st[gt]);ut[gt]=convertValByType((_t=_e.inputs)==null?void 0:_t[gt],(xt=yt==null?void 0:yt.type)==null?void 0:xt[0])}}),{..._e,inputs:ut}}getToolOfNode(_e){var rt,nt;const et=this.codeToolsDictionary$.get(((rt=_e.source)==null?void 0:rt.path)??""),tt=this.packageToolsDictionary$.get(((nt=_e.source)==null?void 0:nt.tool)??"");return resolveTool(_e,et,tt,ot=>this.codeToolsDictionary$.get(ot))}validateNodeInputs(_e){const et=new Map,tt=this.getNodesInCycle(_e),rt=this.connectionList$.getSnapshot(),nt=this.connectionSpecList$.getSnapshot(),ot=[];return this.inputSpec$.getSnapshot().forEach((st,lt)=>{const ut=st.default,ct=st.type;if(ut!==void 0&&ut!==""&&!isTypeValid(ut,ct)){const dt={section:"inputs",parameterName:lt,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};ot.push(dt)}}),ot.length>0&&et.set(`${FLOW_INPUT_NODE_NAME}#`,ot),Array.from(_e.values()).forEach(st=>{const{variants:lt={}}=st;Object.keys(lt).forEach(ut=>{var bt,_t,xt;const ct=lt[ut],{node:dt}=ct,ft=dt?this.getToolOfNode(dt):void 0,pt=filterNodeInputsKeys(ft==null?void 0:ft.inputs,dt==null?void 0:dt.inputs,rt,nt);if(!dt||!dt.name)return;if(!ft){const yt=dt;et.set(`${dt.name}#${ut}`,[{type:ValidationErrorType.MissingTool,message:`Can't find tool ${((bt=yt==null?void 0:yt.source)==null?void 0:bt.tool)??((_t=yt==null?void 0:yt.source)==null?void 0:_t.path)}`}]);return}const gt=[],mt=this.validateNodeConfig(dt,ft);if(mt&>.push(mt),pt.forEach(yt=>{const Et=this.validateNodeInputRequired(ft,dt,yt);Et&>.push(Et)}),dt.inputs&>.push(...Object.keys(dt.inputs).map(yt=>{if(!pt.includes(yt)&&!ft.enable_kwargs)return;const{isReference:Et,error:St}=this.validateNodeInputReference(dt,"inputs",yt,_e,tt);if(St)return St;if(!Et)return this.validateNodeInputType(ft,dt,ut,yt)}).filter(Boolean)),dt.activate){const{error:yt}=this.validateNodeInputReference(dt,"activate","when",_e,tt);yt&>.push(yt);const Et=dt.activate.is,St=(xt=this.nodeParameterTypes$.get(`${dt.name}#${ut}`))==null?void 0:xt.activate.is;if(!isTypeValid(Et,St)){const Tt={section:"activate",parameterName:"is",type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};gt.push(Tt)}}et.set(`${dt.name}#${ut}`,gt)})}),et}getNodesInCycle(_e){const et=getDefaultNodeList(List$1.of(..._e.keys()),_e),tt=new Map;et.forEach(lt=>{var ct;const ut=(dt,ft,pt)=>{const gt=getRefValueFromRaw(pt),[mt]=(gt==null?void 0:gt.split("."))??[];!mt||isFlowInput(mt)||tt.set(`${lt.name}.${dt}.${ft}`,mt)};Object.keys((lt==null?void 0:lt.inputs)??{}).forEach(dt=>{var pt;const ft=(pt=lt.inputs)==null?void 0:pt[dt];ut("inputs",dt,ft)}),ut("activate","when",(ct=lt.activate)==null?void 0:ct.when)});const rt=new Map,nt=new Map,ot=new Map,it=new Map;return et.forEach(lt=>{const ut=lt.name;ut&&(rt.set(ut,0),nt.set(ut,0),ot.set(ut,[]),it.set(ut,[]))}),et.forEach(lt=>{const ut=lt.name;if(!ut)return;const ct=(dt,ft)=>{const pt=tt.get(`${ut}.${dt}.${ft}`);pt&&(rt.set(ut,(rt.get(ut)??0)+1),nt.set(pt,(nt.get(pt)??0)+1),ot.set(pt,[...ot.get(pt)??[],ut]),it.set(ut,[...it.get(ut)??[],pt]))};Object.keys((lt==null?void 0:lt.inputs)??{}).forEach(dt=>{ct("inputs",dt)}),ct("activate","when")}),getCycle(rt,ot,nt,it)}validateNodeConfig(_e,et){var rt,nt,ot,it,st,lt,ut;const tt=this.promptToolSetting$.getSnapshot();if((_e.type??(et==null?void 0:et.type))===ToolType.llm){if(!_e.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(gt=>gt.connectionName===_e.connection))return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is not valid"};if(!_e.api)return{parameterName:"api",type:ValidationErrorType.NodeConfigInvalid,message:"api is required"};const ct=this.getProviderByConnection(_e.connection),dt=(it=(ot=(nt=(rt=tt==null?void 0:tt.providers)==null?void 0:rt.find(gt=>gt.provider===ct))==null?void 0:nt.apis)==null?void 0:ot.find(gt=>gt.api===_e.api))==null?void 0:it.parameters;if((dt==null?void 0:dt.model)&&!((st=_e.inputs)!=null&&st.model))return{parameterName:"model",type:ValidationErrorType.NodeConfigInvalid,message:"model is required"};if((dt==null?void 0:dt.deployment_name)&&!((lt=_e.inputs)!=null&<.deployment_name))return{parameterName:"deployment_name",type:ValidationErrorType.NodeConfigInvalid,message:"deployment_name is required"}}if(et&&((ut=et==null?void 0:et.connection_type)!=null&&ut.length)&&!_e.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(_e,et,tt){var nt,ot,it;if(((ot=(nt=_e.inputs)==null?void 0:nt[tt])==null?void 0:ot.default)!==void 0)return;const rt=(it=et.inputs)==null?void 0:it[tt];if(rt===void 0||rt==="")return{section:"inputs",parameterName:tt,type:ValidationErrorType.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(_e,et,tt,rt,nt){var ct;const ot=(ct=_e==null?void 0:_e[et])==null?void 0:ct[tt],it=getRefValueFromRaw(ot),[st,lt]=(it==null?void 0:it.split("."))??[];return st?isFlowInput(st)?this.inputSpec$.get(lt)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:et,parameterName:tt,type:ValidationErrorType.InputDependencyNotFound,message:`${it} is not a valid flow input`}}:st===_e.name?{isReference:!0,error:{section:et,parameterName:tt,type:ValidationErrorType.InputSelfReference,message:"Input cannot reference itself"}}:rt.get(st)?_e.name&&nt.has(_e.name)&&nt.has(st)?{isReference:!0,error:{section:et,parameterName:tt,type:ValidationErrorType.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:et,parameterName:tt,type:ValidationErrorType.InputDependencyNotFound,message:`${st} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(_e,et,tt,rt){var st,lt,ut,ct,dt;const nt=(st=et.inputs)==null?void 0:st[rt];if(!nt)return;const ot=(lt=_e==null?void 0:_e.inputs)==null?void 0:lt[rt],it=((ut=ot==null?void 0:ot.type)==null?void 0:ut[0])??((dt=(ct=this.nodeParameterTypes$.get(`${et.name}#${tt}`))==null?void 0:ct.inputs)==null?void 0:dt[rt]);if(!(!nt||!_e||!it)&&!isTypeValid(nt,it))return{section:"inputs",parameterName:rt,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"}}};_a$5=SINGLETON,qp[_a$5]=!0;let BaseFlowViewModel=qp;class DefaultFlowViewModel extends BaseFlowViewModel{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}createInjectionToken("FlowViewModel",new DefaultFlowViewModel);function useInjected(...j){const _e=reactExports.useContext(ServicesContext);return reactExports.useMemo(()=>j.map(et=>{try{return _e.resolve(et)}catch(tt){throw[et,tt]}}),[_e].concat(j))}var shim$1={exports:{}},useSyncExternalStoreShim_production_min={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var e$3=reactExports;function h$8(j,_e){return j===_e&&(j!==0||1/j===1/_e)||j!==j&&_e!==_e}var k$7=typeof Object.is=="function"?Object.is:h$8,l$6=e$3.useState,m$8=e$3.useEffect,n$8=e$3.useLayoutEffect,p$7=e$3.useDebugValue;function q$6(j,_e){var et=_e(),tt=l$6({inst:{value:et,getSnapshot:_e}}),rt=tt[0].inst,nt=tt[1];return n$8(function(){rt.value=et,rt.getSnapshot=_e,r$8(rt)&&nt({inst:rt})},[j,et,_e]),m$8(function(){return r$8(rt)&&nt({inst:rt}),j(function(){r$8(rt)&&nt({inst:rt})})},[j]),p$7(et),et}function r$8(j){var _e=j.getSnapshot;j=j.value;try{var et=_e();return!k$7(j,et)}catch{return!0}}function t$7(j,_e){return _e()}var u$8=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$7:q$6;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$3.useSyncExternalStore!==void 0?e$3.useSyncExternalStore:u$8;shim$1.exports=useSyncExternalStoreShim_production_min;var shimExports=shim$1.exports;const useSubscribe=j=>reactExports.useCallback(_e=>{const et=j.subscribe(_e);return()=>{et.unsubscribe()}},[j]);function useState(j){const _e=useSubscribe(j),{getSnapshot:et}=j;return shimExports.useSyncExternalStore(_e,et)}function useSetState(j){return reactExports.useCallback(_e=>{typeof _e!="function"?j.setState(_e):j.setState(_e(j.getSnapshot()))},[j])}of$1(void 0);var _a$4;const Kp=class Kp{constructor(_e,et){this.isChatBoxBottomTipVisible$=new State$1(_e.isChatBoxBottomTipVisible),this.simpleMode$=new State$1(_e.simpleMode),this.freezeLayout$=new State$1(_e.freezeLayout),this.viewMyOnlyFlow$=new State$1(_e.viewMyOnlyFlow),this.viewOnlyMyRuns$=new State$1(_e.viewOnlyMyRuns),this.viewArchived$=new State$1(_e.viewArchived),this.wrapTextOn$=new State$1(_e.wrapTextOn),this.diffModeOn$=new State$1(_e.diffModeOn),this.isRightTopPaneCollapsed$=new State$1(_e.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new State$1(_e.isRightBottomPaneCollapsed),this.leftPaneWidth$=new State$1(_e.leftPaneWidth),this.rightTopPaneHeight$=new State$1(_e.rightTopPaneHeight);const tt=(rt,nt)=>{nt.subscribe(ot=>{et({...this.getSettingsSnapshot(),[rt]:ot})})};tt("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),tt("simpleMode",this.simpleMode$),tt("freezeLayout",this.freezeLayout$),tt("viewMyOnlyFlow",this.viewMyOnlyFlow$),tt("viewOnlyMyRuns",this.viewOnlyMyRuns$),tt("viewArchived",this.viewArchived$),tt("wrapTextOn",this.wrapTextOn$),tt("diffModeOn",this.diffModeOn$),tt("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),tt("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),tt("leftPaneWidth",this.leftPaneWidth$),tt("rightTopPaneHeight",this.rightTopPaneHeight$)}getSettingsSnapshot(){return{isChatBoxBottomTipVisible:this.isChatBoxBottomTipVisible$.getSnapshot(),simpleMode:this.simpleMode$.getSnapshot(),freezeLayout:this.freezeLayout$.getSnapshot(),viewMyOnlyFlow:this.viewMyOnlyFlow$.getSnapshot(),viewOnlyMyRuns:this.viewOnlyMyRuns$.getSnapshot(),viewArchived:this.viewArchived$.getSnapshot(),wrapTextOn:this.wrapTextOn$.getSnapshot(),diffModeOn:this.diffModeOn$.getSnapshot(),isRightTopPaneCollapsed:this.isRightTopPaneCollapsed$.getSnapshot(),isRightBottomPaneCollapsed:this.isRightBottomPaneCollapsed$.getSnapshot(),leftPaneWidth:this.leftPaneWidth$.getSnapshot(),rightTopPaneHeight:this.rightTopPaneHeight$.getSnapshot()}}};_a$4=SINGLETON,Kp[_a$4]=!0;let BaseFlowSettingViewModel=Kp;class DefaultFlowSettingViewModel extends BaseFlowSettingViewModel{constructor(){super({isChatBoxBottomTipVisible:!0,simpleMode:!0,freezeLayout:!1,viewMyOnlyFlow:!1,viewOnlyMyRuns:!1,viewArchived:!0,wrapTextOn:!1,diffModeOn:!1,isRightTopPaneCollapsed:!0,isRightBottomPaneCollapsed:!1,leftPaneWidth:"66%",rightTopPaneHeight:360},()=>{})}}createInjectionToken("FlowSettingViewModel",new DefaultFlowSettingViewModel);makeStyles({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});mergeStyleSets({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});const isInVscodeWebview=typeof acquireVsCodeApi<"u";isInVscodeWebview&&acquireVsCodeApi();var _a$3;const Up=class Up{constructor(){this.extensionConfigurations$=new State$1(void 0),this.isPackageInstalled$=new State$1(void 0),this.sdkVersion$=new State$1(void 0),this.sdkFeatureList$=new State$1([]),this.isPackageUpgradeableForNewLlmTools$=new State$1(!1)}};_a$3=SINGLETON,Up[_a$3]=!0;let VSCodeExtensionViewModel=Up;createInjectionToken("VSCodeFlowViewModel",new VSCodeExtensionViewModel);React.createContext({variantName:BASELINE_VARIANT_ID,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function createCommonjsModule(j,_e,et){return et={path:_e,exports:{},require:function(tt,rt){return commonjsRequire(tt,rt??et.path)}},j(et,et.exports),et.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var classnames$1=createCommonjsModule(function(j){/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(){var _e={}.hasOwnProperty;function et(){for(var tt=[],rt=0;rt1&&arguments[1]!==void 0?arguments[1]:{},et=[];return React.Children.forEach(j,function(tt){tt==null&&!_e.keepEmpty||(Array.isArray(tt)?et=et.concat(toArray$1(tt)):reactIs.isFragment(tt)&&tt.props?et=et.concat(toArray$1(tt.props.children,_e)):et.push(tt))}),et}function _defineProperty$3$1(j,_e,et){return _e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function ownKeys$2$1(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread2$2(j){for(var _e=1;_e0},j.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},j.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},j.prototype.onTransitionEnd_=function(_e){var et=_e.propertyName,tt=et===void 0?"":et,rt=transitionKeys.some(function(nt){return!!~tt.indexOf(nt)});rt&&this.refresh()},j.getInstance=function(){return this.instance_||(this.instance_=new j),this.instance_},j.instance_=null,j}(),defineConfigurable=function(j,_e){for(var et=0,tt=Object.keys(_e);et"u"||!(Element instanceof Object))){if(!(_e instanceof getWindowOf(_e).Element))throw new TypeError('parameter 1 is not of type "Element".');var et=this.observations_;et.has(_e)||(et.set(_e,new ResizeObservation(_e)),this.controller_.addObserver(this),this.controller_.refresh())}},j.prototype.unobserve=function(_e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(_e instanceof getWindowOf(_e).Element))throw new TypeError('parameter 1 is not of type "Element".');var et=this.observations_;et.has(_e)&&(et.delete(_e),et.size||this.controller_.removeObserver(this))}},j.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},j.prototype.gatherActive=function(){var _e=this;this.clearActive(),this.observations_.forEach(function(et){et.isActive()&&_e.activeObservations_.push(et)})},j.prototype.broadcastActive=function(){if(this.hasActive()){var _e=this.callbackCtx_,et=this.activeObservations_.map(function(tt){return new ResizeObserverEntry(tt.target,tt.broadcastRect())});this.callback_.call(_e,et,_e),this.clearActive()}},j.prototype.clearActive=function(){this.activeObservations_.splice(0)},j.prototype.hasActive=function(){return this.activeObservations_.length>0},j}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function j(_e){if(!(this instanceof j))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var et=ResizeObserverController.getInstance(),tt=new ResizeObserverSPI(_e,et,this);observers.set(this,tt)}return j}();["observe","unobserve","disconnect"].forEach(function(j){ResizeObserver$1.prototype[j]=function(){var _e;return(_e=observers.get(this))[j].apply(_e,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}(),elementListeners=new Map;function onResize(j){j.forEach(function(_e){var et,tt=_e.target;(et=elementListeners.get(tt))===null||et===void 0||et.forEach(function(rt){return rt(tt)})})}var resizeObserver=new index$1(onResize);function observe(j,_e){elementListeners.has(j)||(elementListeners.set(j,new Set),resizeObserver.observe(j)),elementListeners.get(j).add(_e)}function unobserve(j,_e){elementListeners.has(j)&&(elementListeners.get(j).delete(_e),elementListeners.get(j).size||(resizeObserver.unobserve(j),elementListeners.delete(j)))}function _classCallCheck$2$1(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2$1(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,tt.key,tt)}}function _createClass$2$1(j,_e,et){return _e&&_defineProperties$2$1(j.prototype,_e),et&&_defineProperties$2$1(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}function _setPrototypeOf$1$1(j,_e){return _setPrototypeOf$1$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tt,rt){return tt.__proto__=rt,tt},_setPrototypeOf$1$1(j,_e)}function _inherits$1$1(j,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(_e&&_e.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),_e&&_setPrototypeOf$1$1(j,_e)}function _getPrototypeOf$1$1(j){return _getPrototypeOf$1$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$1$1(j)}function _isNativeReflectConstruct$1$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _typeof$3$1(j){"@babel/helpers - typeof";return _typeof$3$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$3$1(j)}function _assertThisInitialized$1$1(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function _possibleConstructorReturn$1$1(j,_e){if(_e&&(_typeof$3$1(_e)==="object"||typeof _e=="function"))return _e;if(_e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1$1(j)}function _createSuper$1$1(j){var _e=_isNativeReflectConstruct$1$1();return function(){var tt=_getPrototypeOf$1$1(j),rt;if(_e){var nt=_getPrototypeOf$1$1(this).constructor;rt=Reflect.construct(tt,arguments,nt)}else rt=tt.apply(this,arguments);return _possibleConstructorReturn$1$1(this,rt)}}var DomWrapper=function(j){_inherits$1$1(et,j);var _e=_createSuper$1$1(et);function et(){return _classCallCheck$2$1(this,et),_e.apply(this,arguments)}return _createClass$2$1(et,[{key:"render",value:function(){return this.props.children}}]),et}(reactExports.Component),CollectionContext=reactExports.createContext(null);function Collection(j){var _e=j.children,et=j.onBatchResize,tt=reactExports.useRef(0),rt=reactExports.useRef([]),nt=reactExports.useContext(CollectionContext),ot=reactExports.useCallback(function(it,st,lt){tt.current+=1;var ut=tt.current;rt.current.push({size:it,element:st,data:lt}),Promise.resolve().then(function(){ut===tt.current&&(et==null||et(rt.current),rt.current=[])}),nt==null||nt(it,st,lt)},[et,nt]);return reactExports.createElement(CollectionContext.Provider,{value:ot},_e)}function SingleObserver(j){var _e=j.children,et=j.disabled,tt=reactExports.useRef(null),rt=reactExports.useRef(null),nt=reactExports.useContext(CollectionContext),ot=typeof _e=="function",it=ot?_e(tt):_e,st=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),lt=!ot&&reactExports.isValidElement(it)&&supportRef(it),ut=lt?it.ref:null,ct=reactExports.useMemo(function(){return composeRef(ut,tt)},[ut,tt]),dt=reactExports.useRef(j);dt.current=j;var ft=reactExports.useCallback(function(pt){var gt=dt.current,mt=gt.onResize,bt=gt.data,_t=pt.getBoundingClientRect(),xt=_t.width,yt=_t.height,Et=pt.offsetWidth,St=pt.offsetHeight,Tt=Math.floor(xt),kt=Math.floor(yt);if(st.current.width!==Tt||st.current.height!==kt||st.current.offsetWidth!==Et||st.current.offsetHeight!==St){var $t={width:Tt,height:kt,offsetWidth:Et,offsetHeight:St};st.current=$t;var Ct=Et===Math.round(xt)?xt:Et,It=St===Math.round(yt)?yt:St,Nt=_objectSpread2$2(_objectSpread2$2({},$t),{},{offsetWidth:Ct,offsetHeight:It});nt==null||nt(Nt,pt,bt),mt&&Promise.resolve().then(function(){mt(Nt,pt)})}},[]);return reactExports.useEffect(function(){var pt=findDOMNode(tt.current)||findDOMNode(rt.current);return pt&&!et&&observe(pt,ft),function(){return unobserve(pt,ft)}},[tt.current,et]),reactExports.createElement(DomWrapper,{ref:rt},lt?reactExports.cloneElement(it,{ref:ct}):it)}var INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$2(j){var _e=j.children,et=typeof _e=="function"?[_e]:toArray$1(_e);return et.map(function(tt,rt){var nt=(tt==null?void 0:tt.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(rt);return reactExports.createElement(SingleObserver,_extends$1$2({},j,{key:nt}),tt)})}ResizeObserver$2.Collection=Collection;function ownKeys$1$1(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$1$1(j){for(var _e=1;_e1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var et=rafUUID;function tt(rt){if(rt===0)cleanup(et),j();else{var nt=raf(function(){tt(rt-1)});rafIds.set(et,nt)}}return tt(_e),et}wrapperRaf.cancel=function(j){var _e=rafIds.get(j);return cleanup(_e),caf(_e)};function _typeof$2$1(j){"@babel/helpers - typeof";return _typeof$2$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$2$1(j)}function _defineProperty$1$1(j,_e,et){return _e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _classCallCheck$1$1(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1$1(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,tt.key,tt)}}function _createClass$1$1(j,_e,et){return _e&&_defineProperties$1$1(j.prototype,_e),et&&_defineProperties$1$1(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}function _inherits$b(j,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(_e&&_e.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),_e&&_setPrototypeOf$b(j,_e)}function _setPrototypeOf$b(j,_e){return _setPrototypeOf$b=Object.setPrototypeOf||function(tt,rt){return tt.__proto__=rt,tt},_setPrototypeOf$b(j,_e)}function _createSuper$b(j){var _e=_isNativeReflectConstruct$b();return function(){var tt=_getPrototypeOf$b(j),rt;if(_e){var nt=_getPrototypeOf$b(this).constructor;rt=Reflect.construct(tt,arguments,nt)}else rt=tt.apply(this,arguments);return _possibleConstructorReturn$b(this,rt)}}function _possibleConstructorReturn$b(j,_e){if(_e&&(_typeof$2$1(_e)==="object"||typeof _e=="function"))return _e;if(_e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$b(j)}function _assertThisInitialized$b(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function _isNativeReflectConstruct$b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$b(j){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf:function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$b(j)}var MIN_SIZE=20;function getPageY(j){return"touches"in j?j.touches[0].pageY:j.pageY}var ScrollBar=function(j){_inherits$b(et,j);var _e=_createSuper$b(et);function et(){var tt;_classCallCheck$1$1(this,et);for(var rt=arguments.length,nt=new Array(rt),ot=0;otst},tt}return _createClass$1$1(et,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(rt){rt.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var rt=this.state,nt=rt.dragging,ot=rt.visible,it=this.props.prefixCls,st=this.getSpinHeight(),lt=this.getTop(),ut=this.showScroll(),ct=ut&&ot;return reactExports.createElement("div",{ref:this.scrollbarRef,className:classnames$1("".concat(it,"-scrollbar"),_defineProperty$1$1({},"".concat(it,"-scrollbar-show"),ut)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:ct?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},reactExports.createElement("div",{ref:this.thumbRef,className:classnames$1("".concat(it,"-scrollbar-thumb"),_defineProperty$1$1({},"".concat(it,"-scrollbar-thumb-moving"),nt)),style:{width:"100%",height:st,top:lt,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),et}(reactExports.Component);function Item(j){var _e=j.children,et=j.setRef,tt=reactExports.useCallback(function(rt){et(rt)},[]);return reactExports.cloneElement(_e,{ref:tt})}function useChildren(j,_e,et,tt,rt,nt){var ot=nt.getKey;return j.slice(_e,et+1).map(function(it,st){var lt=_e+st,ut=rt(it,lt,{}),ct=ot(it);return reactExports.createElement(Item,{key:ct,setRef:function(ft){return tt(it,ft)}},ut)})}function _classCallCheck$e(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,tt.key,tt)}}function _createClass$e(j,_e,et){return _e&&_defineProperties$e(j.prototype,_e),et&&_defineProperties$e(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}var CacheMap=function(){function j(){_classCallCheck$e(this,j),this.maps=void 0,this.maps=Object.create(null)}return _createClass$e(j,[{key:"set",value:function(et,tt){this.maps[et]=tt}},{key:"get",value:function(et){return this.maps[et]}}]),j}();function _slicedToArray$2$1(j,_e){return _arrayWithHoles$2$1(j)||_iterableToArrayLimit$2$1(j,_e)||_unsupportedIterableToArray$2$1(j,_e)||_nonIterableRest$2$1()}function _nonIterableRest$2$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2$1(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$2$1(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$2$1(j,_e)}}function _arrayLikeToArray$2$1(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$2$1(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt=[],rt=!0,nt=!1,ot,it;try{for(et=et.call(j);!(rt=(ot=et.next()).done)&&(tt.push(ot.value),!(_e&&tt.length===_e));rt=!0);}catch(st){nt=!0,it=st}finally{try{!rt&&et.return!=null&&et.return()}finally{if(nt)throw it}}return tt}}function _arrayWithHoles$2$1(j){if(Array.isArray(j))return j}function useHeights(j,_e,et){var tt=reactExports.useState(0),rt=_slicedToArray$2$1(tt,2),nt=rt[0],ot=rt[1],it=reactExports.useRef(new Map),st=reactExports.useRef(new CacheMap),lt=reactExports.useRef();function ut(){wrapperRaf.cancel(lt.current)}function ct(){ut(),lt.current=wrapperRaf(function(){it.current.forEach(function(ft,pt){if(ft&&ft.offsetParent){var gt=findDOMNode(ft),mt=gt.offsetHeight;st.current.get(pt)!==mt&&st.current.set(pt,gt.offsetHeight)}}),ot(function(ft){return ft+1})})}function dt(ft,pt){var gt=j(ft),mt=it.current.get(gt);pt?(it.current.set(gt,pt),ct()):it.current.delete(gt),!mt!=!pt&&(pt?_e==null||_e(ft):et==null||et(ft))}return reactExports.useEffect(function(){return ut},[]),[dt,ct,st.current,nt]}function _typeof$1$1(j){"@babel/helpers - typeof";return _typeof$1$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$1$1(j)}function useScrollTo(j,_e,et,tt,rt,nt,ot,it){var st=reactExports.useRef();return function(lt){if(lt==null){it();return}if(wrapperRaf.cancel(st.current),typeof lt=="number")ot(lt);else if(lt&&_typeof$1$1(lt)==="object"){var ut,ct=lt.align;"index"in lt?ut=lt.index:ut=_e.findIndex(function(gt){return rt(gt)===lt.key});var dt=lt.offset,ft=dt===void 0?0:dt,pt=function gt(mt,bt){if(!(mt<0||!j.current)){var _t=j.current.clientHeight,xt=!1,yt=bt;if(_t){for(var Et=bt||ct,St=0,Tt=0,kt=0,$t=Math.min(_e.length,ut),Ct=0;Ct<=$t;Ct+=1){var It=rt(_e[Ct]);Tt=St;var Nt=et.get(It);kt=Tt+(Nt===void 0?tt:Nt),St=kt,Ct===ut&&Nt===void 0&&(xt=!0)}var Ot=null;switch(Et){case"top":Ot=Tt-ft;break;case"bottom":Ot=kt-_t+ft;break;default:{var jt=j.current.scrollTop,Mt=jt+_t;TtMt&&(yt="bottom")}}Ot!==null&&Ot!==j.current.scrollTop&&ot(Ot)}st.current=wrapperRaf(function(){xt&&nt(),gt(mt-1,yt)})}};pt(3)}}}function findListDiffIndex(j,_e,et){var tt=j.length,rt=_e.length,nt,ot;if(tt===0&&rt===0)return null;ttj.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$1$1(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt=[],rt=!0,nt=!1,ot,it;try{for(et=et.call(j);!(rt=(ot=et.next()).done)&&(tt.push(ot.value),!(_e&&tt.length===_e));rt=!0);}catch(st){nt=!0,it=st}finally{try{!rt&&et.return!=null&&et.return()}finally{if(nt)throw it}}return tt}}function _arrayWithHoles$1$1(j){if(Array.isArray(j))return j}function useDiffItem(j,_e,et){var tt=reactExports.useState(j),rt=_slicedToArray$1$1(tt,2),nt=rt[0],ot=rt[1],it=reactExports.useState(null),st=_slicedToArray$1$1(it,2),lt=st[0],ut=st[1];return reactExports.useEffect(function(){var ct=findListDiffIndex(nt||[],j||[],_e);(ct==null?void 0:ct.index)!==void 0&&(et==null||et(ct.index),ut(j[ct.index])),ot(j)},[j]),[lt]}function _typeof$D(j){"@babel/helpers - typeof";return _typeof$D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$D(j)}var isFF=(typeof navigator>"u"?"undefined":_typeof$D(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),useOriginScroll=function(j,_e){var et=reactExports.useRef(!1),tt=reactExports.useRef(null);function rt(){clearTimeout(tt.current),et.current=!0,tt.current=setTimeout(function(){et.current=!1},50)}var nt=reactExports.useRef({top:j,bottom:_e});return nt.current.top=j,nt.current.bottom=_e,function(ot){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=ot<0&&nt.current.top||ot>0&&nt.current.bottom;return it&&st?(clearTimeout(tt.current),et.current=!1):(!st||et.current)&&rt(),!et.current&&st}};function useFrameWheel(j,_e,et,tt){var rt=reactExports.useRef(0),nt=reactExports.useRef(null),ot=reactExports.useRef(null),it=reactExports.useRef(!1),st=useOriginScroll(_e,et);function lt(ct){if(j){wrapperRaf.cancel(nt.current);var dt=ct.deltaY;rt.current+=dt,ot.current=dt,!st(dt)&&(isFF||ct.preventDefault(),nt.current=wrapperRaf(function(){var ft=it.current?10:1;tt(rt.current*ft),rt.current=0}))}}function ut(ct){j&&(it.current=ct.detail===ot.current)}return[lt,ut]}function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useLayoutEffect$1=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,SMOOTH_PTG=14/15;function useMobileTouchMove(j,_e,et){var tt=reactExports.useRef(!1),rt=reactExports.useRef(0),nt=reactExports.useRef(null),ot=reactExports.useRef(null),it,st=function(dt){if(tt.current){var ft=Math.ceil(dt.touches[0].pageY),pt=rt.current-ft;rt.current=ft,et(pt)&&dt.preventDefault(),clearInterval(ot.current),ot.current=setInterval(function(){pt*=SMOOTH_PTG,(!et(pt,!0)||Math.abs(pt)<=.1)&&clearInterval(ot.current)},16)}},lt=function(){tt.current=!1,it()},ut=function(dt){it(),dt.touches.length===1&&!tt.current&&(tt.current=!0,rt.current=Math.ceil(dt.touches[0].pageY),nt.current=dt.target,nt.current.addEventListener("touchmove",st),nt.current.addEventListener("touchend",lt))};it=function(){nt.current&&(nt.current.removeEventListener("touchmove",st),nt.current.removeEventListener("touchend",lt))},useLayoutEffect$1(function(){return j&&_e.current.addEventListener("touchstart",ut),function(){var ct;(ct=_e.current)===null||ct===void 0||ct.removeEventListener("touchstart",ut),it(),clearInterval(ot.current)}},[j])}var _excluded$g=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _extends$p(){return _extends$p=Object.assign||function(j){for(var _e=1;_ej.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$d(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt=[],rt=!0,nt=!1,ot,it;try{for(et=et.call(j);!(rt=(ot=et.next()).done)&&(tt.push(ot.value),!(_e&&tt.length===_e));rt=!0);}catch(st){nt=!0,it=st}finally{try{!rt&&et.return!=null&&et.return()}finally{if(nt)throw it}}return tt}}function _arrayWithHoles$e(j){if(Array.isArray(j))return j}function _objectWithoutProperties$h(j,_e){if(j==null)return{};var et=_objectWithoutPropertiesLoose$h(j,_e),tt,rt;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(j);for(rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$h(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}var EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(j,_e){var et=j.prefixCls,tt=et===void 0?"rc-virtual-list":et,rt=j.className,nt=j.height,ot=j.itemHeight,it=j.fullHeight,st=it===void 0?!0:it,lt=j.style,ut=j.data,ct=j.children,dt=j.itemKey,ft=j.virtual,pt=j.component,gt=pt===void 0?"div":pt,mt=j.onScroll,bt=j.onVisibleChange,_t=_objectWithoutProperties$h(j,_excluded$g),xt=!!(ft!==!1&&nt&&ot),yt=xt&&ut&&ot*ut.length>nt,Et=reactExports.useState(0),St=_slicedToArray$d(Et,2),Tt=St[0],kt=St[1],$t=reactExports.useState(!1),Ct=_slicedToArray$d($t,2),It=Ct[0],Nt=Ct[1],Ot=classnames$1(tt,rt),jt=ut||EMPTY_DATA,Mt=reactExports.useRef(),Rt=reactExports.useRef(),Lt=reactExports.useRef(),Pt=reactExports.useCallback(function(Ir){return typeof dt=="function"?dt(Ir):Ir==null?void 0:Ir[dt]},[dt]),Gt={getKey:Pt};function qt(Ir){kt(function(zr){var Xr;typeof Ir=="function"?Xr=Ir(zr):Xr=Ir;var Zr=qr(Xr);return Mt.current.scrollTop=Zr,Zr})}var Yt=reactExports.useRef({start:0,end:jt.length}),Xt=reactExports.useRef(),tr=useDiffItem(jt,Pt),cr=_slicedToArray$d(tr,1),mr=cr[0];Xt.current=mr;var Er=useHeights(Pt,null,null),hr=_slicedToArray$d(Er,4),_r=hr[0],Ut=hr[1],ar=hr[2],pr=hr[3],rr=reactExports.useMemo(function(){if(!xt)return{scrollHeight:void 0,start:0,end:jt.length-1,offset:void 0};if(!yt){var Ir;return{scrollHeight:((Ir=Rt.current)===null||Ir===void 0?void 0:Ir.offsetHeight)||0,start:0,end:jt.length-1,offset:void 0}}for(var zr=0,Xr,Zr,sn,$n=jt.length,Nn=0;Nn<$n;Nn+=1){var hn=jt[Nn],jn=Pt(hn),qn=ar.get(jn),Sn=zr+(qn===void 0?ot:qn);Sn>=Tt&&Xr===void 0&&(Xr=Nn,Zr=zr),Sn>Tt+nt&&sn===void 0&&(sn=Nn),zr=Sn}return Xr===void 0&&(Xr=0,Zr=0),sn===void 0&&(sn=jt.length-1),sn=Math.min(sn+1,jt.length),{scrollHeight:zr,start:Xr,end:sn,offset:Zr}},[yt,xt,Tt,jt,pr,nt]),vr=rr.scrollHeight,$r=rr.start,Rr=rr.end,Cr=rr.offset;Yt.current.start=$r,Yt.current.end=Rr;var Nr=vr-nt,Gr=reactExports.useRef(Nr);Gr.current=Nr;function qr(Ir){var zr=Ir;return Number.isNaN(Gr.current)||(zr=Math.min(zr,Gr.current)),zr=Math.max(zr,0),zr}var Qr=Tt<=0,Yr=Tt>=Nr,Pr=useOriginScroll(Qr,Yr);function Vr(Ir){var zr=Ir;qt(zr)}function yn(Ir){var zr=Ir.currentTarget.scrollTop;zr!==Tt&&qt(zr),mt==null||mt(Ir)}var fr=useFrameWheel(xt,Qr,Yr,function(Ir){qt(function(zr){var Xr=zr+Ir;return Xr})}),sr=_slicedToArray$d(fr,2),ir=sr[0],gr=sr[1];useMobileTouchMove(xt,Mt,function(Ir,zr){return Pr(Ir,zr)?!1:(ir({preventDefault:function(){},deltaY:Ir}),!0)}),useLayoutEffect$1(function(){function Ir(zr){xt&&zr.preventDefault()}return Mt.current.addEventListener("wheel",ir),Mt.current.addEventListener("DOMMouseScroll",gr),Mt.current.addEventListener("MozMousePixelScroll",Ir),function(){Mt.current&&(Mt.current.removeEventListener("wheel",ir),Mt.current.removeEventListener("DOMMouseScroll",gr),Mt.current.removeEventListener("MozMousePixelScroll",Ir))}},[xt]);var wr=useScrollTo(Mt,jt,ar,ot,Pt,Ut,qt,function(){var Ir;(Ir=Lt.current)===null||Ir===void 0||Ir.delayHidden()});reactExports.useImperativeHandle(_e,function(){return{scrollTo:wr}}),useLayoutEffect$1(function(){if(bt){var Ir=jt.slice($r,Rr+1);bt(Ir,jt)}},[$r,Rr,jt]);var Mr=useChildren(jt,$r,Rr,_r,ct,Gt),Sr=null;return nt&&(Sr=_objectSpread$y(_defineProperty$C({},st?"height":"maxHeight",nt),ScrollStyle),xt&&(Sr.overflowY="hidden",It&&(Sr.pointerEvents="none"))),reactExports.createElement("div",_extends$p({style:_objectSpread$y(_objectSpread$y({},lt),{},{position:"relative"}),className:Ot},_t),reactExports.createElement(gt,{className:"".concat(tt,"-holder"),style:Sr,ref:Mt,onScroll:yn},reactExports.createElement(Filler,{prefixCls:tt,height:vr,offset:Cr,onInnerResize:Ut,ref:Rt},Mr)),xt&&reactExports.createElement(ScrollBar,{ref:Lt,prefixCls:tt,scrollTop:Tt,height:nt,scrollHeight:vr,count:jt.length,onScroll:Vr,onStartMove:function(){Nt(!0)},onStopMove:function(){Nt(!1)}}))}var List=reactExports.forwardRef(RawList);List.displayName="List";var arrDel=function(j,_e){var et=j.slice(),tt=et.indexOf(_e);return tt>=0&&et.splice(tt,1),et},arrAdd=function(j,_e){var et=j.slice();return et.indexOf(_e)===-1&&et.push(_e),et},ROOT_NODE_ID="$root",Node$1=function(){function j(_e){var et=this,tt,rt,nt,ot=_e.node,it=_e.flattenNodes,st=_e.parent,lt=_e.selectedKeySet,ut=lt===void 0?new Set:lt,ct=_e.expandedKeySet,dt=ct===void 0?new Set:ct,ft=_e.loadInfo,pt=ft===void 0?{loadingKeys:[],loadedKeys:[]}:ft;this.internal=ot,this.parent=st,this.level=((rt=(tt=this.parent)===null||tt===void 0?void 0:tt.level)!==null&&rt!==void 0?rt:-1)+1,this.selected=ut.has(ot.id),this.expanded=dt.has(ot.id)||ot.id===ROOT_NODE_ID,this.ancestorExpanded=!!(st!=null&&st.expanded&&(st!=null&&st.ancestorExpanded))||ot.id===ROOT_NODE_ID,this.loading=pt.loadingKeys.includes(ot.id),this.loaded=pt.loadedKeys.includes(ot.id),this.isLeaf=(nt=ot.isLeaf)!==null&&nt!==void 0?nt:!(ot.children.length>0),j.nodesMap.set(ot.id,this),this.level>0&&this.ancestorExpanded&&it.push(this),this.childNodes=ot.children.map(function(gt){return new j({node:gt,parent:et,selectedKeySet:ut,expandedKeySet:dt,loadInfo:pt,flattenNodes:it})})}return Object.defineProperty(j.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),j.init=function(_e,et,tt,rt){et===void 0&&(et=[]),tt===void 0&&(tt=[]),j.nodesMap=new Map;var nt=[];return j.root=new j({node:{title:"",children:_e,searchKeys:[],id:ROOT_NODE_ID},selectedKeySet:new Set(et),expandedKeySet:new Set(tt),loadInfo:rt,flattenNodes:nt}),nt},j.nodesMap=new Map,j}();/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var __assign$2=function(){return __assign$2=Object.assign||function(_e){for(var et,tt=1,rt=arguments.length;tt"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},_e),this._classNameToArgs=(tt=et==null?void 0:et.classNameToArgs)!==null&&tt!==void 0?tt:this._classNameToArgs,this._counter=(rt=et==null?void 0:et.counter)!==null&&rt!==void 0?rt:this._counter,this._keyToClassName=(ot=(nt=this._config.classNameCache)!==null&&nt!==void 0?nt:et==null?void 0:et.keyToClassName)!==null&&ot!==void 0?ot:this._keyToClassName,this._preservedRules=(it=et==null?void 0:et.preservedRules)!==null&&it!==void 0?it:this._preservedRules,this._rules=(st=et==null?void 0:et.rules)!==null&&st!==void 0?st:this._rules}return j.getInstance=function(){if(_stylesheet=_global[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var _e=(_global==null?void 0:_global.FabricConfig)||{},et=new j(_e.mergeStyles,_e.serializedStylesheet);_stylesheet=et,_global[STYLESHEET_SETTING]=et}return _stylesheet},j.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},j.prototype.setConfig=function(_e){this._config=__assign$2(__assign$2({},this._config),_e)},j.prototype.onReset=function(_e){var et=this;return this._onResetCallbacks.push(_e),function(){et._onResetCallbacks=et._onResetCallbacks.filter(function(tt){return tt!==_e})}},j.prototype.onInsertRule=function(_e){var et=this;return this._onInsertRuleCallbacks.push(_e),function(){et._onInsertRuleCallbacks=et._onInsertRuleCallbacks.filter(function(tt){return tt!==_e})}},j.prototype.getClassName=function(_e){var et=this._config.namespace,tt=_e||this._config.defaultPrefix;return(et?et+"-":"")+tt+"-"+this._counter++},j.prototype.cacheClassName=function(_e,et,tt,rt){this._keyToClassName[et]=_e,this._classNameToArgs[_e]={args:tt,rules:rt}},j.prototype.classNameFromKey=function(_e){return this._keyToClassName[_e]},j.prototype.getClassNameCache=function(){return this._keyToClassName},j.prototype.argsFromClassName=function(_e){var et=this._classNameToArgs[_e];return et&&et.args},j.prototype.insertedRulesFromClassName=function(_e){var et=this._classNameToArgs[_e];return et&&et.rules},j.prototype.insertRule=function(_e,et){var tt=this._config.injectionMode,rt=tt!==InjectionMode.none?this._getStyleElement():void 0;if(et&&this._preservedRules.push(_e),rt)switch(tt){case InjectionMode.insertNode:var nt=rt.sheet;try{nt.insertRule(_e,nt.cssRules.length)}catch{}break;case InjectionMode.appendChild:rt.appendChild(document.createTextNode(_e));break}else this._rules.push(_e);this._config.onInsertRule&&this._config.onInsertRule(_e),this._onInsertRuleCallbacks.forEach(function(ot){return ot()})},j.prototype.getRules=function(_e){return(_e?this._preservedRules.join(""):"")+this._rules.join("")},j.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(_e){return _e()})},j.prototype.resetKeys=function(){this._keyToClassName={}},j.prototype._getStyleElement=function(){var _e=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){_e._styleElement=void 0})),this._styleElement},j.prototype._createStyleElement=function(){var _e=document.head,et=document.createElement("style"),tt=null;et.setAttribute("data-merge-styles","true");var rt=this._config.cspSettings;if(rt&&rt.nonce&&et.setAttribute("nonce",rt.nonce),this._lastStyleElement)tt=this._lastStyleElement.nextElementSibling;else{var nt=this._findPlaceholderStyleTag();nt?tt=nt.nextElementSibling:tt=_e.childNodes[0]}return _e.insertBefore(et,_e.contains(tt)?tt:null),this._lastStyleElement=et,et},j.prototype._findPlaceholderStyleTag=function(){var _e=document.head;return _e?_e.querySelector("style[data-merge-styles]"):null},j}();function extractStyleParts(){for(var j=[],_e=0;_e=0)nt(lt.split(" "));else{var ut=rt.argsFromClassName(lt);ut?nt(ut):et.indexOf(lt)===-1&&et.push(lt)}else Array.isArray(lt)?nt(lt):typeof lt=="object"&&tt.push(lt)}}return nt(j),{classes:et,objects:tt}}function getRTL(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL();function getStyleOptions(){return{rtl:getRTL()}}var rules={};function kebabRules(j,_e){var et=j[_e];et.charAt(0)!=="-"&&(j[_e]=rules[et]=rules[et]||et.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var j;if(!_vendorSettings){var _e=typeof document<"u"?document:void 0,et=typeof navigator<"u"?navigator:void 0,tt=(j=et==null?void 0:et.userAgent)===null||j===void 0?void 0:j.toLowerCase();_e?_vendorSettings={isWebkit:!!(_e&&"WebkitAppearance"in _e.documentElement.style),isMoz:!!(tt&&tt.indexOf("firefox")>-1),isOpera:!!(tt&&tt.indexOf("opera")>-1),isMs:!!(et&&(/rv:11.0/i.test(et.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(j,_e){var et=getVendorSettings(),tt=j[_e];if(autoPrefixNames[tt]){var rt=j[_e+1];autoPrefixNames[tt]&&(et.isWebkit&&j.push("-webkit-"+tt,rt),et.isMoz&&j.push("-moz-"+tt,rt),et.isMs&&j.push("-ms-"+tt,rt),et.isOpera&&j.push("-o-"+tt,rt))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(j,_e){var et=j[_e],tt=j[_e+1];if(typeof tt=="number"){var rt=NON_PIXEL_NUMBER_PROPS.indexOf(et)>-1,nt=et.indexOf("--")>-1,ot=rt||nt?"":"px";j[_e+1]=""+tt+ot}}var _a$2,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$2={},_a$2[LEFT]=RIGHT,_a$2[RIGHT]=LEFT,_a$2),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(j,_e,et){if(j.rtl){var tt=_e[et];if(!tt)return;var rt=_e[et+1];if(typeof rt=="string"&&rt.indexOf(NO_FLIP)>=0)_e[et+1]=rt.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(tt.indexOf(LEFT)>=0)_e[et]=tt.replace(LEFT,RIGHT);else if(tt.indexOf(RIGHT)>=0)_e[et]=tt.replace(RIGHT,LEFT);else if(String(rt).indexOf(LEFT)>=0)_e[et+1]=rt.replace(LEFT,RIGHT);else if(String(rt).indexOf(RIGHT)>=0)_e[et+1]=rt.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[tt])_e[et]=NAME_REPLACEMENTS[tt];else if(VALUE_REPLACEMENTS[rt])_e[et+1]=VALUE_REPLACEMENTS[rt];else switch(tt){case"margin":case"padding":_e[et+1]=flipQuad(rt);break;case"box-shadow":_e[et+1]=negateNum(rt,0);break}}}function negateNum(j,_e){var et=j.split(" "),tt=parseInt(et[_e],10);return et[0]=et[0].replace(String(tt),String(tt*-1)),et.join(" ")}function flipQuad(j){if(typeof j=="string"){var _e=j.split(" ");if(_e.length===4)return _e[0]+" "+_e[3]+" "+_e[2]+" "+_e[1]}return j}function tokenizeWithParentheses(j){for(var _e=[],et=0,tt=0,rt=0;rtet&&_e.push(j.substring(et,rt)),et=rt+1);break}return et-1&&_e.push([tt.index,tt.index+tt[0].length,tt[1].split(",").map(function(rt){return":global("+rt.trim()+")"}).join(", ")]);return _e.reverse().reduce(function(rt,nt){var ot=nt[0],it=nt[1],st=nt[2],lt=rt.slice(0,ot),ut=rt.slice(it);return lt+st+ut},j)}function expandSelector(j,_e){return j.indexOf(":global(")>=0?j.replace(globalSelectorRegExp,"$1"):j.indexOf(":")===0?_e+j:j.indexOf("&")<0?_e+" "+j:j}function extractSelector(j,_e,et,tt){_e===void 0&&(_e={__order:[]}),et.indexOf("@")===0?(et=et+"{"+j,extractRules([tt],_e,et)):et.indexOf(",")>-1?expandCommaSeparatedGlobals(et).split(",").map(function(rt){return rt.trim()}).forEach(function(rt){return extractRules([tt],_e,expandSelector(rt,j))}):extractRules([tt],_e,expandSelector(et,j))}function extractRules(j,_e,et){_e===void 0&&(_e={__order:[]}),et===void 0&&(et="&");var tt=Stylesheet.getInstance(),rt=_e[et];rt||(rt={},_e[et]=rt,_e.__order.push(et));for(var nt=0,ot=j;nt"u")){var tt=document.head||document.getElementsByTagName("head")[0],rt=document.createElement("style");rt.type="text/css",et==="top"&&tt.firstChild?tt.insertBefore(rt,tt.firstChild):tt.appendChild(rt),rt.styleSheet?rt.styleSheet.cssText=j:rt.appendChild(document.createTextNode(j))}}var css_248z=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",classes$3={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};styleInject(css_248z);var mergeTreeClasses=function(j){return{root:mergeStyles(classes$3.root,j==null?void 0:j.root)}},mergeTreeNodeClasses=function(j,_e){var et,tt,rt;return{item:mergeStyles(classes$3.item,_e==null?void 0:_e.item),icon:mergeStyles(classes$3.icon,j.expanded&&classes$3.expanded,j.isLeaf&&classes$3.leaf),group:mergeStyles(classes$3.group,_e==null?void 0:_e.group),inner:mergeStyles(classes$3.inner,_e==null?void 0:_e.inner),content:mergeStyles(classes$3.content,(et=_e==null?void 0:_e.content)===null||et===void 0?void 0:et.base,j.expanded&&((tt=_e==null?void 0:_e.content)===null||tt===void 0?void 0:tt.expand),j.isLeaf&&((rt=_e==null?void 0:_e.content)===null||rt===void 0?void 0:rt.leaf))}},TreeNode$1=reactExports.forwardRef(function(j,_e){var et,tt,rt,nt,ot,it,st,lt,ut=j.node,ct=j.classes,dt=j.indent,ft=j.calcIndent,pt=j.onNodeClick,gt=j.renderIcon,mt=j.renderContent,bt=j.renderInnerContent,_t=!ut.isLeaf&&ut.expanded,xt=mergeTreeNodeClasses(ut,ct),yt=ft?ft(ut):{item:(ut.level-1)*((et=dt==null?void 0:dt.item)!==null&&et!==void 0?et:20)+((tt=dt==null?void 0:dt.root)!==null&&tt!==void 0?tt:0),innerItem:ut.level*((rt=dt==null?void 0:dt.item)!==null&&rt!==void 0?rt:20)+((nt=dt==null?void 0:dt.root)!==null&&nt!==void 0?nt:0)},Et=reactExports.useCallback(function(St){St.preventDefault(),St.stopPropagation()},[]);return reactExports.createElement("div",{key:ut.id,role:"treeitem","aria-selected":ut.selected,"aria-expanded":ut.expanded,tabIndex:-1,className:xt.item,onClick:pt.bind(null,ut),"data-item-id":ut.id,ref:_e},reactExports.createElement("div",{className:xt.content,style:{paddingLeft:(ot=yt.item)!==null&&ot!==void 0?ot:20}},(it=gt==null?void 0:gt(ut))!==null&&it!==void 0?it:reactExports.createElement("span",{className:xt.icon}),(st=mt==null?void 0:mt(ut))!==null&&st!==void 0?st:reactExports.createElement("span",{role:"button"},ut.title)),_t&&reactExports.createElement(reactExports.Fragment,null,bt&&reactExports.createElement("div",{role:"group",key:"innerContent",className:xt.inner,style:{paddingLeft:(lt=yt.innerItem)!==null&<!==void 0?lt:40},onClick:Et},bt(ut))))});TreeNode$1.displayName="TreeNode";var ReactAccessibleTree=reactExports.forwardRef(function(j,_e){var et=j.selectedKeys,tt=et===void 0?[]:et,rt=j.expandedKeys,nt=rt===void 0?[]:rt,ot=j.treeData,it=j.classes,st=j.indent,lt=j.height,ut=j.itemHeight,ct=j.virtual,dt=j.calcIndent,ft=j.onKeyDown,pt=j.renderIcon,gt=j.renderContent,mt=j.renderInnerContent,bt=j.onSelect,_t=j.multiple,xt=j.onExpand,yt=j.loadData,Et=reactExports.useState({loadedKeys:[],loadingKeys:[]}),St=Et[0],Tt=Et[1],kt=reactExports.useRef(null),$t=reactExports.useRef(null),Ct=reactExports.useMemo(function(){return Node$1.init(ot,tt,nt,St)},[ot,tt,nt,St]);reactExports.useImperativeHandle(_e,function(){return{scrollTo:function(qt){var Yt;(Yt=$t.current)===null||Yt===void 0||Yt.scrollTo(qt)}}}),reactExports.useEffect(function(){jt(0)},[]);var It=function(qt,Yt){var Xt=tt,tr=Yt.id,cr=!Yt.selected;cr?_t?Xt=arrAdd(Xt,tr):Xt=[tr]:Xt=arrDel(Xt,tr),bt==null||bt(Xt,{node:Yt,selected:cr,nativeEvent:qt})},Nt=function(qt,Yt){var Xt=nt,tr=Yt.id,cr=!Yt.expanded;cr?Xt=arrAdd(Xt,tr):Xt=arrDel(Xt,tr),xt==null||xt(Xt,{node:Yt,expanded:cr,nativeEvent:qt}),cr&&yt&&Ot(Yt)},Ot=function(qt){Tt(function(Yt){var Xt=Yt.loadedKeys,tr=Yt.loadingKeys,cr=qt.id;if(!yt||Xt.includes(cr)||tr.includes(cr))return St;var mr=yt(qt);return mr.then(function(){var Er=St.loadedKeys,hr=St.loadingKeys,_r=arrAdd(Er,cr),Ut=arrDel(hr,cr);Tt({loadedKeys:_r,loadingKeys:Ut})}),{loadedKeys:Xt,loadingKeys:arrAdd(tr,cr)}})},jt=function(qt){var Yt,Xt,tr=Array.from((Xt=(Yt=kt.current)===null||Yt===void 0?void 0:Yt.querySelectorAll("div[role='treeitem']"))!==null&&Xt!==void 0?Xt:[]);tr.forEach(function(cr,mr){mr===qt?cr.setAttribute("tabindex","0"):cr.setAttribute("tabindex","-1")})},Mt=function(qt){var Yt,Xt,tr;qt.stopPropagation();var cr=qt.target;if(cr.getAttribute("role")!=="treeitem"||qt.ctrlKey||qt.metaKey)return-1;var mr=Array.from((Xt=(Yt=kt.current)===null||Yt===void 0?void 0:Yt.querySelectorAll("div[role='treeitem']"))!==null&&Xt!==void 0?Xt:[]),Er=mr.indexOf(cr),hr=qt.keyCode>=65&&qt.keyCode<=90;if(hr){var _r=-1,Ut=mr.findIndex(function(rr,vr){var $r=rr.getAttribute("data-item-id"),Rr=Node$1.nodesMap.get($r??""),Cr=Rr==null?void 0:Rr.searchKeys.some(function(Nr){return Nr.match(new RegExp("^"+qt.key,"i"))});return Cr&&vr>Er?!0:(Cr&&vr<=Er&&(_r=_r===-1?vr:_r),!1)}),ar=Ut===-1?_r:Ut;return(tr=mr[ar])===null||tr===void 0||tr.focus(),ar}switch(qt.key){case"ArrowDown":{var pr=(Er+1)%mr.length;return mr[pr].focus(),pr}case"ArrowUp":{var pr=(Er-1+mr.length)%mr.length;return mr[pr].focus(),pr}case"ArrowLeft":case"ArrowRight":return cr.click(),Er;case"Home":return mr[0].focus(),0;case"End":return mr[mr.length-1].focus(),mr.length-1;default:return ft==null||ft(qt),Er}},Rt=function(qt){var Yt=Mt(qt);Yt>-1&&jt(Yt)},Lt=function(qt,Yt){Yt.stopPropagation(),It(Yt,qt),!(qt.loading||qt.loaded&&qt.isLeaf)&&Nt(Yt,qt)},Pt=mergeTreeClasses(it),Gt=function(qt){return qt.id};return reactExports.createElement("div",{role:"tree",className:Pt.root,onKeyDown:Rt,ref:kt},reactExports.createElement(List,{data:Ct,itemKey:Gt,height:lt,fullHeight:!1,virtual:ct,itemHeight:ut,ref:$t},function(qt){return reactExports.createElement(TreeNode$1,{key:qt.id,node:qt,classes:it,indent:st,calcIndent:dt,renderIcon:pt,renderContent:gt,renderInnerContent:mt,onNodeClick:Lt})}))});ReactAccessibleTree.displayName="ReactAccessibleTree";var __extends$1=function(){var j=function(_e,et){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,rt){tt.__proto__=rt}||function(tt,rt){for(var nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(tt[nt]=rt[nt])},j(_e,et)};return function(_e,et){j(_e,et);function tt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}}(),__assign$1=function(){return __assign$1=Object.assign||function(j){for(var _e,et=1,tt=arguments.length;et"u"?void 0:Number(tt),maxHeight:typeof rt>"u"?void 0:Number(rt),minWidth:typeof nt>"u"?void 0:Number(nt),minHeight:typeof ot>"u"?void 0:Number(ot)}},definedProps=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=function(j){__extends(_e,j);function _e(et){var tt=j.call(this,et)||this;return tt.ratio=1,tt.resizable=null,tt.parentLeft=0,tt.parentTop=0,tt.resizableLeft=0,tt.resizableRight=0,tt.resizableTop=0,tt.resizableBottom=0,tt.targetLeft=0,tt.targetTop=0,tt.appendBase=function(){if(!tt.resizable||!tt.window)return null;var rt=tt.parentNode;if(!rt)return null;var nt=tt.window.document.createElement("div");return nt.style.width="100%",nt.style.height="100%",nt.style.position="absolute",nt.style.transform="scale(0, 0)",nt.style.left="0",nt.style.flex="0 0 100%",nt.classList?nt.classList.add(baseClassName):nt.className+=baseClassName,rt.appendChild(nt),nt},tt.removeBase=function(rt){var nt=tt.parentNode;nt&&nt.removeChild(rt)},tt.ref=function(rt){rt&&(tt.resizable=rt)},tt.state={isResizing:!1,width:typeof(tt.propsSize&&tt.propsSize.width)>"u"?"auto":tt.propsSize&&tt.propsSize.width,height:typeof(tt.propsSize&&tt.propsSize.height)>"u"?"auto":tt.propsSize&&tt.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},tt.onResizeStart=tt.onResizeStart.bind(tt),tt.onMouseMove=tt.onMouseMove.bind(tt),tt.onMouseUp=tt.onMouseUp.bind(tt),tt}return Object.defineProperty(_e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"size",{get:function(){var et=0,tt=0;if(this.resizable&&this.window){var rt=this.resizable.offsetWidth,nt=this.resizable.offsetHeight,ot=this.resizable.style.position;ot!=="relative"&&(this.resizable.style.position="relative"),et=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:rt,tt=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:nt,this.resizable.style.position=ot}return{width:et,height:tt}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"sizeStyle",{get:function(){var et=this,tt=this.props.size,rt=function(it){if(typeof et.state[it]>"u"||et.state[it]==="auto")return"auto";if(et.propsSize&&et.propsSize[it]&&et.propsSize[it].toString().endsWith("%")){if(et.state[it].toString().endsWith("%"))return et.state[it].toString();var st=et.getParentSize(),lt=Number(et.state[it].toString().replace("px","")),ut=lt/st[it]*100;return ut+"%"}return getStringSize$1(et.state[it])},nt=tt&&typeof tt.width<"u"&&!this.state.isResizing?getStringSize$1(tt.width):rt("width"),ot=tt&&typeof tt.height<"u"&&!this.state.isResizing?getStringSize$1(tt.height):rt("height");return{width:nt,height:ot}},enumerable:!1,configurable:!0}),_e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var et=this.appendBase();if(!et)return{width:0,height:0};var tt=!1,rt=this.parentNode.style.flexWrap;rt!=="wrap"&&(tt=!0,this.parentNode.style.flexWrap="wrap"),et.style.position="relative",et.style.minWidth="100%",et.style.minHeight="100%";var nt={width:et.offsetWidth,height:et.offsetHeight};return tt&&(this.parentNode.style.flexWrap=rt),this.removeBase(et),nt},_e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},_e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},_e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var et=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:et.flexBasis!=="auto"?et.flexBasis:void 0})}},_e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},_e.prototype.createSizeForCssProperty=function(et,tt){var rt=this.propsSize&&this.propsSize[tt];return this.state[tt]==="auto"&&this.state.original[tt]===et&&(typeof rt>"u"||rt==="auto")?"auto":et},_e.prototype.calculateNewMaxFromBoundary=function(et,tt){var rt=this.props.boundsByDirection,nt=this.state.direction,ot=rt&&hasDirection("left",nt),it=rt&&hasDirection("top",nt),st,lt;if(this.props.bounds==="parent"){var ut=this.parentNode;ut&&(st=ot?this.resizableRight-this.parentLeft:ut.offsetWidth+(this.parentLeft-this.resizableLeft),lt=it?this.resizableBottom-this.parentTop:ut.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(st=ot?this.resizableRight:this.window.innerWidth-this.resizableLeft,lt=it?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(st=ot?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),lt=it?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return st&&Number.isFinite(st)&&(et=et&&et"u"?10:nt.width,ct=typeof rt.width>"u"||rt.width<0?et:rt.width,dt=typeof nt.height>"u"?10:nt.height,ft=typeof rt.height>"u"||rt.height<0?tt:rt.height,pt=st||0,gt=lt||0;if(it){var mt=(dt-pt)*this.ratio+gt,bt=(ft-pt)*this.ratio+gt,_t=(ut-gt)/this.ratio+pt,xt=(ct-gt)/this.ratio+pt,yt=Math.max(ut,mt),Et=Math.min(ct,bt),St=Math.max(dt,_t),Tt=Math.min(ft,xt);et=clamp(et,yt,Et),tt=clamp(tt,St,Tt)}else et=clamp(et,ut,ct),tt=clamp(tt,dt,ft);return{newWidth:et,newHeight:tt}},_e.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var et=this.parentNode;if(et){var tt=et.getBoundingClientRect();this.parentLeft=tt.left,this.parentTop=tt.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var rt=this.props.bounds.getBoundingClientRect();this.targetLeft=rt.left,this.targetTop=rt.top}if(this.resizable){var nt=this.resizable.getBoundingClientRect(),ot=nt.left,it=nt.top,st=nt.right,lt=nt.bottom;this.resizableLeft=ot,this.resizableRight=st,this.resizableTop=it,this.resizableBottom=lt}},_e.prototype.onResizeStart=function(et,tt){if(!(!this.resizable||!this.window)){var rt=0,nt=0;if(et.nativeEvent&&isMouseEvent(et.nativeEvent)?(rt=et.nativeEvent.clientX,nt=et.nativeEvent.clientY):et.nativeEvent&&isTouchEvent(et.nativeEvent)&&(rt=et.nativeEvent.touches[0].clientX,nt=et.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var ot=this.props.onResizeStart(et,tt,this.resizable);if(ot===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var it,st=this.window.getComputedStyle(this.resizable);if(st.flexBasis!=="auto"){var lt=this.parentNode;if(lt){var ut=this.window.getComputedStyle(lt).flexDirection;this.flexDir=ut.startsWith("row")?"row":"column",it=st.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var ct={original:{x:rt,y:nt,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(et.target).cursor||"auto"}),direction:tt,flexBasis:it};this.setState(ct)}},_e.prototype.onMouseMove=function(et){var tt=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(et))try{et.preventDefault(),et.stopPropagation()}catch{}var rt=this.props,nt=rt.maxWidth,ot=rt.maxHeight,it=rt.minWidth,st=rt.minHeight,lt=isTouchEvent(et)?et.touches[0].clientX:et.clientX,ut=isTouchEvent(et)?et.touches[0].clientY:et.clientY,ct=this.state,dt=ct.direction,ft=ct.original,pt=ct.width,gt=ct.height,mt=this.getParentSize(),bt=calculateNewMax(mt,this.window.innerWidth,this.window.innerHeight,nt,ot,it,st);nt=bt.maxWidth,ot=bt.maxHeight,it=bt.minWidth,st=bt.minHeight;var _t=this.calculateNewSizeFromDirection(lt,ut),xt=_t.newHeight,yt=_t.newWidth,Et=this.calculateNewMaxFromBoundary(nt,ot);this.props.snap&&this.props.snap.x&&(yt=findClosestSnap(yt,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(xt=findClosestSnap(xt,this.props.snap.y,this.props.snapGap));var St=this.calculateNewSizeFromAspectRatio(yt,xt,{width:Et.maxWidth,height:Et.maxHeight},{width:it,height:st});if(yt=St.newWidth,xt=St.newHeight,this.props.grid){var Tt=snap(yt,this.props.grid[0]),kt=snap(xt,this.props.grid[1]),$t=this.props.snapGap||0;yt=$t===0||Math.abs(Tt-yt)<=$t?Tt:yt,xt=$t===0||Math.abs(kt-xt)<=$t?kt:xt}var Ct={width:yt-ft.width,height:xt-ft.height};if(pt&&typeof pt=="string"){if(pt.endsWith("%")){var It=yt/mt.width*100;yt=It+"%"}else if(pt.endsWith("vw")){var Nt=yt/this.window.innerWidth*100;yt=Nt+"vw"}else if(pt.endsWith("vh")){var Ot=yt/this.window.innerHeight*100;yt=Ot+"vh"}}if(gt&&typeof gt=="string"){if(gt.endsWith("%")){var It=xt/mt.height*100;xt=It+"%"}else if(gt.endsWith("vw")){var Nt=xt/this.window.innerWidth*100;xt=Nt+"vw"}else if(gt.endsWith("vh")){var Ot=xt/this.window.innerHeight*100;xt=Ot+"vh"}}var jt={width:this.createSizeForCssProperty(yt,"width"),height:this.createSizeForCssProperty(xt,"height")};this.flexDir==="row"?jt.flexBasis=jt.width:this.flexDir==="column"&&(jt.flexBasis=jt.height),reactDomExports.flushSync(function(){tt.setState(jt)}),this.props.onResize&&this.props.onResize(et,dt,this.resizable,Ct)}},_e.prototype.onMouseUp=function(et){var tt=this.state,rt=tt.isResizing,nt=tt.direction,ot=tt.original;if(!(!rt||!this.resizable)){var it={width:this.size.width-ot.width,height:this.size.height-ot.height};this.props.onResizeStop&&this.props.onResizeStop(et,nt,this.resizable,it),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},_e.prototype.updateSize=function(et){this.setState({width:et.width,height:et.height})},_e.prototype.renderResizer=function(){var et=this,tt=this.props,rt=tt.enable,nt=tt.handleStyles,ot=tt.handleClasses,it=tt.handleWrapperStyle,st=tt.handleWrapperClass,lt=tt.handleComponent;if(!rt)return null;var ut=Object.keys(rt).map(function(ct){return rt[ct]!==!1?reactExports.createElement(Resizer,{key:ct,direction:ct,onResizeStart:et.onResizeStart,replaceStyles:nt&&nt[ct],className:ot&&ot[ct]},lt&<[ct]?lt[ct]:null):null});return reactExports.createElement("div",{className:st,style:it},ut)},_e.prototype.render=function(){var et=this,tt=Object.keys(this.props).reduce(function(ot,it){return definedProps.indexOf(it)!==-1||(ot[it]=et.props[it]),ot},{}),rt=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(rt.flexBasis=this.state.flexBasis);var nt=this.props.as||"div";return reactExports.createElement(nt,__assign({ref:this.ref,style:rt,className:this.props.className},tt),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},_e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},_e}(reactExports.PureComponent),_a$1;const tasksToTaskRows=(j,_e)=>j.map(et=>({...et,level:_e,children:et.children?tasksToTaskRows(et.children,_e+1):void 0})),Yp=class Yp{constructor(){this.rows$=new State$1(List$1([])),this.selectedRowId$=new State$1(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(_e){const et=this.rows$.getSnapshot(),tt=et.findIndex(it=>it.id===_e),rt=et.get(tt);if(!rt)return;const{children:nt}=rt;if(!nt)return;const ot=[...et];ot[tt]={...rt,isExpanded:!rt.isExpanded},rt.isExpanded?ot.splice(tt+1,nt.length):ot.splice(tt+1,0,...nt),this.rows$.next(List$1(ot))}setRows(_e){this.rows$.next(List$1(_e))}setTasks(_e){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(List$1(tasksToTaskRows(_e,0)));const et=tt=>{tt.forEach(rt=>{rt.startTimethis.endTime&&(this.endTime=rt.endTime),rt.children&&et(rt.children)})};et(_e)}};_a$1=SINGLETON,Yp[_a$1]=!0;let GanttViewModel=Yp;const GanttViewModelToken=createInjectionToken("GanttViewModel",new GanttViewModel);function r$6(j){var _e,et,tt="";if(typeof j=="string"||typeof j=="number")tt+=j;else if(typeof j=="object")if(Array.isArray(j))for(_e=0;_e1&&(!j.frozen||j.idx+tt-1<=_e))return tt}function stopPropagation(j){j.stopPropagation()}function scrollIntoView(j){j==null||j.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(j){let _e=!1;const et={...j,preventGridDefault(){_e=!0},isGridDefaultPrevented(){return _e}};return Object.setPrototypeOf(et,Object.getPrototypeOf(j)),et}const nonInputKeys=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function isCtrlKeyHeldDown(j){return(j.ctrlKey||j.metaKey)&&j.key!=="Control"}function isDefaultCellInput(j){return!nonInputKeys.has(j.key)}function onEditorNavigation({key:j,target:_e}){var et;return j==="Tab"&&(_e instanceof HTMLInputElement||_e instanceof HTMLTextAreaElement||_e instanceof HTMLSelectElement)?((et=_e.closest(".rdg-editor-container"))==null?void 0:et.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="m1l09lto7-0-0-beta-39";function renderMeasuringCells(j){return j.map(({key:_e,idx:et,minWidth:tt,maxWidth:rt})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:et+1,minWidth:tt,maxWidth:rt},"data-measuring-cell-key":_e},_e))}function isSelectedCellEditable({selectedPosition:j,columns:_e,rows:et}){const tt=_e[j.idx],rt=et[j.rowIdx];return isCellEditable(tt,rt)}function isCellEditable(j,_e){return j.renderEditCell!=null&&(typeof j.editable=="function"?j.editable(_e):j.editable)!==!1}function getSelectedCellColSpan({rows:j,topSummaryRows:_e,bottomSummaryRows:et,rowIdx:tt,mainHeaderRowIdx:rt,lastFrozenColumnIndex:nt,column:ot}){const it=(_e==null?void 0:_e.length)??0;if(tt===rt)return getColSpan(ot,nt,{type:"HEADER"});if(_e&&tt>rt&&tt<=it+rt)return getColSpan(ot,nt,{type:"SUMMARY",row:_e[tt+it]});if(tt>=0&&tt{for(const Tt of rt){const kt=Tt.idx;if(kt>mt)break;const $t=getSelectedCellColSpan({rows:nt,topSummaryRows:ot,bottomSummaryRows:it,rowIdx:bt,mainHeaderRowIdx:lt,lastFrozenColumnIndex:pt,column:Tt});if($t&&mt>kt&&mt<$t+kt){mt=kt+(St?$t:0);break}}},yt=St=>St.level+lt,Et=()=>{if(_e){let Tt=tt[mt].parent;for(;Tt!==void 0;){const kt=yt(Tt);if(bt===kt){mt=Tt.idx+Tt.colSpan;break}Tt=Tt.parent}}else if(j){let Tt=tt[mt].parent,kt=!1;for(;Tt!==void 0;){const $t=yt(Tt);if(bt>=$t){mt=Tt.idx,bt=$t,kt=!0;break}Tt=Tt.parent}kt||(mt=ct,bt=dt)}};if(gt(ft)&&(xt(_e),bt=kt&&(bt=$t,mt=Tt.idx),Tt=Tt.parent}}return{idx:mt,rowIdx:bt}}function canExitGrid({maxColIdx:j,minRowIdx:_e,maxRowIdx:et,selectedPosition:{rowIdx:tt,idx:rt},shiftKey:nt}){return nt?rt===0&&tt===_e:rt===j&&tt===et}const cell="c1wupbe7-0-0-beta-39",cellClassname=`rdg-cell ${cell}`,cellFrozen="cd0kgiy7-0-0-beta-39",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`,cellFrozenLast="c1730fa47-0-0-beta-39",cellFrozenLastClassname=`rdg-cell-frozen-last ${cellFrozenLast}`;function getRowStyle(j,_e){return _e!==void 0?{"--rdg-grid-row-start":j,"--rdg-row-height":`${_e}px`}:{"--rdg-grid-row-start":j}}function getHeaderCellStyle(j,_e,et){const tt=_e+1,rt=`calc(${et-1} * var(--rdg-header-row-height))`;return j.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:tt,paddingBlockStart:rt}:{insetBlockStart:`calc(${_e-et} * var(--rdg-header-row-height))`,gridRowStart:tt-et,gridRowEnd:tt,paddingBlockStart:rt}}function getCellStyle(j,_e=1){const et=j.idx+1;return{gridColumnStart:et,gridColumnEnd:et+_e,insetInlineStart:j.frozen?`var(--rdg-frozen-left-${j.idx})`:void 0}}function getCellClassname(j,..._e){return clsx(cellClassname,..._e,j.frozen&&cellFrozenClassname,j.isLastFrozenColumn&&cellFrozenLastClassname)}const{min:min$1,max:max$1,round:round$1,floor,sign:sign$1,abs:abs$1}=Math;function assertIsValidKeyGetter(j){if(typeof j!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(j,{minWidth:_e,maxWidth:et}){return j=max$1(j,_e),typeof et=="number"&&et>=_e?min$1(j,et):j}function getHeaderCellRowSpan(j,_e){return j.parent===void 0?_e:j.level-j.parent.level}const checkboxLabel="c1hs68w07-0-0-beta-39",checkboxLabelClassname=`rdg-checkbox-label ${checkboxLabel}`,checkboxInput="cojpd0n7-0-0-beta-39",checkboxInputClassname=`rdg-checkbox-input ${checkboxInput}`,checkbox="cwsfieb7-0-0-beta-39",checkboxClassname=`rdg-checkbox ${checkbox}`,checkboxLabelDisabled="c1fgadbl7-0-0-beta-39",checkboxLabelDisabledClassname=`rdg-checkbox-label-disabled ${checkboxLabelDisabled}`;function renderCheckbox({onChange:j,..._e}){function et(tt){j(tt.target.checked,tt.nativeEvent.shiftKey)}return jsxRuntimeExports.jsxs("label",{className:clsx(checkboxLabelClassname,_e.disabled&&checkboxLabelDisabledClassname),children:[jsxRuntimeExports.jsx("input",{type:"checkbox",..._e,className:checkboxInputClassname,onChange:et}),jsxRuntimeExports.jsx("div",{className:checkboxClassname})]})}function renderValue(j){try{return j.row[j.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=reactExports.createContext(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider,SELECT_COLUMN_KEY="select-row",DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns:j,defaultColumnOptions:_e,measuredColumnWidths:et,resizedColumnWidths:tt,viewportWidth:rt,scrollLeft:nt,enableVirtualization:ot}){const it=(_e==null?void 0:_e.width)??DEFAULT_COLUMN_WIDTH,st=(_e==null?void 0:_e.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,lt=(_e==null?void 0:_e.maxWidth)??void 0,ut=(_e==null?void 0:_e.renderCell)??renderValue,ct=(_e==null?void 0:_e.sortable)??!1,dt=(_e==null?void 0:_e.resizable)??!1,ft=(_e==null?void 0:_e.draggable)??!1,{columns:pt,colSpanColumns:gt,lastFrozenColumnIndex:mt,headerRowsCount:bt}=reactExports.useMemo(()=>{let kt=-1,$t=1;const Ct=[];It(j,1);function It(Ot,jt,Mt){for(const Rt of Ot){if("children"in Rt){const Gt={name:Rt.name,parent:Mt,idx:-1,colSpan:0,level:0,headerCellClass:Rt.headerCellClass};It(Rt.children,jt+1,Gt);continue}const Lt=Rt.frozen??!1,Pt={...Rt,parent:Mt,idx:0,level:0,frozen:Lt,isLastFrozenColumn:!1,width:Rt.width??it,minWidth:Rt.minWidth??st,maxWidth:Rt.maxWidth??lt,sortable:Rt.sortable??ct,resizable:Rt.resizable??dt,draggable:Rt.draggable??ft,renderCell:Rt.renderCell??ut};Ct.push(Pt),Lt&&kt++,jt>$t&&($t=jt)}}Ct.sort(({key:Ot,frozen:jt},{key:Mt,frozen:Rt})=>Ot===SELECT_COLUMN_KEY?-1:Mt===SELECT_COLUMN_KEY?1:jt?Rt?0:-1:Rt?1:0);const Nt=[];return Ct.forEach((Ot,jt)=>{Ot.idx=jt,updateColumnParent(Ot,jt,0),Ot.colSpan!=null&&Nt.push(Ot)}),kt!==-1&&(Ct[kt].isLastFrozenColumn=!0),{columns:Ct,colSpanColumns:Nt,lastFrozenColumnIndex:kt,headerRowsCount:$t}},[j,it,st,lt,ut,dt,ct,ft]),{templateColumns:_t,layoutCssVars:xt,totalFrozenColumnWidth:yt,columnMetrics:Et}=reactExports.useMemo(()=>{const kt=new Map;let $t=0,Ct=0;const It=[];for(const Ot of pt){let jt=tt.get(Ot.key)??et.get(Ot.key)??Ot.width;typeof jt=="number"?jt=clampColumnWidth(jt,Ot):jt=Ot.minWidth,It.push(`${jt}px`),kt.set(Ot,{width:jt,left:$t}),$t+=jt}if(mt!==-1){const Ot=kt.get(pt[mt]);Ct=Ot.left+Ot.width}const Nt={};for(let Ot=0;Ot<=mt;Ot++){const jt=pt[Ot];Nt[`--rdg-frozen-left-${jt.idx}`]=`${kt.get(jt).left}px`}return{templateColumns:It,layoutCssVars:Nt,totalFrozenColumnWidth:Ct,columnMetrics:kt}},[et,tt,pt,mt]),[St,Tt]=reactExports.useMemo(()=>{if(!ot)return[0,pt.length-1];const kt=nt+yt,$t=nt+rt,Ct=pt.length-1,It=min$1(mt+1,Ct);if(kt>=$t)return[It,It];let Nt=It;for(;Ntkt)break;Nt++}let Ot=Nt;for(;Ot=$t)break;Ot++}const jt=max$1(It,Nt-1),Mt=min$1(Ct,Ot+1);return[jt,Mt]},[Et,pt,mt,nt,yt,rt,ot]);return{columns:pt,colSpanColumns:gt,colOverscanStartIdx:St,colOverscanEndIdx:Tt,templateColumns:_t,layoutCssVars:xt,headerRowsCount:bt,lastFrozenColumnIndex:mt,totalFrozenColumnWidth:yt}}function updateColumnParent(j,_e,et){if(et"u"?reactExports.useEffect:reactExports.useLayoutEffect;function useColumnWidths(j,_e,et,tt,rt,nt,ot,it,st,lt){const ut=reactExports.useRef(rt),ct=j.length===_e.length,dt=ct&&rt!==ut.current,ft=[...et],pt=[];for(const{key:_t,idx:xt,width:yt}of _e)typeof yt=="string"&&(dt||!ot.has(_t))&&!nt.has(_t)&&(ft[xt]=yt,pt.push(_t));const gt=ft.join(" ");useLayoutEffect(()=>{ut.current=rt,mt(pt)});function mt(_t){_t.length!==0&&st(xt=>{const yt=new Map(xt);let Et=!1;for(const St of _t){const Tt=measureColumnWidth(tt,St);Et||(Et=Tt!==xt.get(St)),Tt===void 0?yt.delete(St):yt.set(St,Tt)}return Et?yt:xt})}function bt(_t,xt){const{key:yt}=_t,Et=[...et],St=[];for(const{key:kt,idx:$t,width:Ct}of _e)if(yt===kt){const It=typeof xt=="number"?`${xt}px`:xt;Et[$t]=It}else ct&&typeof Ct=="string"&&!nt.has(kt)&&(Et[$t]=Ct,St.push(kt));tt.current.style.gridTemplateColumns=Et.join(" ");const Tt=typeof xt=="number"?xt:measureColumnWidth(tt,yt);reactDomExports.flushSync(()=>{it(kt=>{const $t=new Map(kt);return $t.set(yt,Tt),$t}),mt(St)}),lt==null||lt(_t.idx,Tt)}return{gridTemplateColumns:gt,handleColumnResize:bt}}function measureColumnWidth(j,_e){const et=`[data-measuring-cell-key="${CSS.escape(_e)}"]`,tt=j.current.querySelector(et);return tt==null?void 0:tt.getBoundingClientRect().width}function useGridDimensions(){const j=reactExports.useRef(null),[_e,et]=reactExports.useState(1),[tt,rt]=reactExports.useState(1);return useLayoutEffect(()=>{const{ResizeObserver:nt}=window;if(nt==null)return;const{clientWidth:ot,clientHeight:it,offsetWidth:st,offsetHeight:lt}=j.current,{width:ut,height:ct}=j.current.getBoundingClientRect(),dt=ut-st+ot,ft=ct-lt+it;et(dt),rt(ft);const pt=new nt(gt=>{const mt=gt[0].contentBoxSize[0];reactDomExports.flushSync(()=>{et(mt.inlineSize),rt(mt.blockSize)})});return pt.observe(j.current),()=>{pt.disconnect()}},[]),[j,_e,tt]}function useLatestFunc(j){const _e=reactExports.useRef(j);reactExports.useEffect(()=>{_e.current=j});const et=reactExports.useCallback((...tt)=>{_e.current(...tt)},[]);return j&&et}function useRovingTabIndex(j){const[_e,et]=reactExports.useState(!1);_e&&!j&&et(!1);function tt(nt){nt.target!==nt.currentTarget&&et(!0)}return{tabIndex:j&&!_e?0:-1,childTabIndex:j?0:-1,onFocus:j?tt:void 0}}function useViewportColumns({columns:j,colSpanColumns:_e,rows:et,topSummaryRows:tt,bottomSummaryRows:rt,colOverscanStartIdx:nt,colOverscanEndIdx:ot,lastFrozenColumnIndex:it,rowOverscanStartIdx:st,rowOverscanEndIdx:lt}){const ut=reactExports.useMemo(()=>{if(nt===0)return 0;let ct=nt;const dt=(ft,pt)=>pt!==void 0&&ft+pt>nt?(ct=ft,!0):!1;for(const ft of _e){const pt=ft.idx;if(pt>=ct||dt(pt,getColSpan(ft,it,{type:"HEADER"})))break;for(let gt=st;gt<=lt;gt++){const mt=et[gt];if(dt(pt,getColSpan(ft,it,{type:"ROW",row:mt})))break}if(tt!=null){for(const gt of tt)if(dt(pt,getColSpan(ft,it,{type:"SUMMARY",row:gt})))break}if(rt!=null){for(const gt of rt)if(dt(pt,getColSpan(ft,it,{type:"SUMMARY",row:gt})))break}}return ct},[st,lt,et,tt,rt,nt,it,_e]);return reactExports.useMemo(()=>{const ct=[];for(let dt=0;dt<=ot;dt++){const ft=j[dt];dt{if(typeof _e=="number")return{totalRowHeight:_e*j.length,gridTemplateRows:` repeat(${j.length}, ${_e}px)`,getRowTop:mt=>mt*_e,getRowHeight:()=>_e,findRowIdx:mt=>floor(mt/_e)};let dt=0,ft=" ";const pt=j.map(mt=>{const bt=_e(mt),_t={top:dt,height:bt};return ft+=`${bt}px `,dt+=bt,_t}),gt=mt=>max$1(0,min$1(j.length-1,mt));return{totalRowHeight:dt,gridTemplateRows:ft,getRowTop:mt=>pt[gt(mt)].top,getRowHeight:mt=>pt[gt(mt)].height,findRowIdx(mt){let bt=0,_t=pt.length-1;for(;bt<=_t;){const xt=bt+floor((_t-bt)/2),yt=pt[xt].top;if(yt===mt)return xt;if(ytmt&&(_t=xt-1),bt>_t)return _t}return 0}}},[_e,j]);let ut=0,ct=j.length-1;if(rt){const ft=lt(tt),pt=lt(tt+et);ut=max$1(0,ft-4),ct=min$1(j.length-1,pt+4)}return{rowOverscanStartIdx:ut,rowOverscanEndIdx:ct,totalRowHeight:nt,gridTemplateRows:ot,getRowTop:it,getRowHeight:st,findRowIdx:lt}}const cellDragHandle="cadd3bp7-0-0-beta-39",cellDragHandleFrozenClassname="ccmuez27-0-0-beta-39",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart:j,rows:_e,columns:et,selectedPosition:tt,latestDraggedOverRowIdx:rt,isCellEditable:nt,onRowsChange:ot,onFill:it,onClick:st,setDragging:lt,setDraggedOverRowIdx:ut}){var yt;const{idx:ct,rowIdx:dt}=tt,ft=et[ct];function pt(Et){if(Et.preventDefault(),Et.buttons!==1)return;lt(!0),window.addEventListener("mouseover",St),window.addEventListener("mouseup",Tt);function St(kt){kt.buttons!==1&&Tt()}function Tt(){window.removeEventListener("mouseover",St),window.removeEventListener("mouseup",Tt),lt(!1),gt()}}function gt(){const Et=rt.current;if(Et===void 0)return;const St=dt0&&(ot==null||ot($t,{indexes:Ct,column:Tt}))}const _t=((yt=ft.colSpan)==null?void 0:yt.call(ft,{type:"ROW",row:_e[dt]}))??1,xt=getCellStyle(ft,_t);return jsxRuntimeExports.jsx("div",{style:{...xt,gridRowStart:j,insetInlineStart:xt.insetInlineStart&&typeof ft.width=="number"?`calc(${xt.insetInlineStart} + ${ft.width}px - var(--rdg-drag-handle-size))`:void 0},className:clsx(cellDragHandleClassname,ft.frozen&&cellDragHandleFrozenClassname),onClick:st,onMouseDown:pt,onDoubleClick:mt})}const cellEditing="c1tngyp17-0-0-beta-39";function EditCell({column:j,colSpan:_e,row:et,rowIdx:tt,onRowChange:rt,closeEditor:nt,onKeyDown:ot,navigate:it}){var bt,_t,xt;const st=reactExports.useRef(),lt=((bt=j.editorOptions)==null?void 0:bt.commitOnOutsideClick)!==!1,ut=useLatestFunc(()=>{ft(!0,!1)});reactExports.useEffect(()=>{if(!lt)return;function yt(){st.current=requestAnimationFrame(ut)}return addEventListener("mousedown",yt,{capture:!0}),()=>{removeEventListener("mousedown",yt,{capture:!0}),ct()}},[lt,ut]);function ct(){cancelAnimationFrame(st.current)}function dt(yt){if(ot){const Et=createCellEvent(yt);if(ot({mode:"EDIT",row:et,column:j,rowIdx:tt,navigate(){it(yt)},onClose:ft},Et),Et.isGridDefaultPrevented())return}yt.key==="Escape"?ft():yt.key==="Enter"?ft(!0):onEditorNavigation(yt)&&it(yt)}function ft(yt=!1,Et=!0){yt?rt(et,!0,Et):nt(Et)}function pt(yt,Et=!1){rt(yt,Et,Et)}const{cellClass:gt}=j,mt=getCellClassname(j,"rdg-editor-container",typeof gt=="function"?gt(et):gt,!((_t=j.editorOptions)!=null&&_t.displayCellContent)&&cellEditing);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":j.idx+1,"aria-colspan":_e,"aria-selected":!0,className:mt,style:getCellStyle(j,_e),onKeyDown:dt,onMouseDownCapture:ct,children:j.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[j.renderEditCell({column:j,row:et,onRowChange:pt,onClose:ft}),((xt=j.editorOptions)==null?void 0:xt.displayCellContent)&&j.renderCell({column:j,row:et,isCellEditable:!0,tabIndex:-1,onRowChange:pt})]})})}function GroupedColumnHeaderCell({column:j,rowIdx:_e,isCellSelected:et,selectCell:tt}){const{tabIndex:rt,onFocus:nt}=useRovingTabIndex(et),{colSpan:ot}=j,it=getHeaderCellRowSpan(j,_e),st=j.idx+1;function lt(){tt({idx:j.idx,rowIdx:_e})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":st,"aria-colspan":ot,"aria-rowspan":it,"aria-selected":et,tabIndex:rt,className:clsx(cellClassname,j.headerCellClass),style:{...getHeaderCellStyle(j,_e,it),gridColumnStart:st,gridColumnEnd:st+ot},onFocus:nt,onClick:lt,children:j.name})}const headerSortCellClassname="hizp7y17-0-0-beta-39",headerSortName="h14cojrm7-0-0-beta-39",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column:j,sortDirection:_e,priority:et}){return j.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection:_e,priority:et,children:j.name}):j.name}function SortableHeaderCell({sortDirection:j,priority:_e,children:et}){const tt=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children:et}),jsxRuntimeExports.jsx("span",{children:tt({sortDirection:j,priority:_e})})]})}const cellSortableClassname="celq7o97-0-0-beta-39",cellResizable="ceqw94e7-0-0-beta-39",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r12jy2ca7-0-0-beta-39",cellDragging="c1j3os1p7-0-0-beta-39",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1ui3nad7-0-0-beta-39",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column:j,colSpan:_e,rowIdx:et,isCellSelected:tt,onColumnResize:rt,onColumnsReorder:nt,sortColumns:ot,onSortColumnsChange:it,selectCell:st,shouldFocusGrid:lt,direction:ut}){const[ct,dt]=reactExports.useState(!1),[ft,pt]=reactExports.useState(!1),gt=ut==="rtl",mt=getHeaderCellRowSpan(j,et),{tabIndex:bt,childTabIndex:_t,onFocus:xt}=useRovingTabIndex(tt),yt=ot==null?void 0:ot.findIndex(hr=>hr.columnKey===j.key),Et=yt!==void 0&&yt>-1?ot[yt]:void 0,St=Et==null?void 0:Et.direction,Tt=Et!==void 0&&ot.length>1?yt+1:void 0,kt=St&&!Tt?St==="ASC"?"ascending":"descending":void 0,{sortable:$t,resizable:Ct,draggable:It}=j,Nt=getCellClassname(j,j.headerCellClass,$t&&cellSortableClassname,Ct&&cellResizableClassname,ct&&cellDraggingClassname,ft&&cellOverClassname),Ot=j.renderHeaderCell??renderHeaderCell;function jt(hr){if(hr.pointerType==="mouse"&&hr.buttons!==1)return;const{currentTarget:_r,pointerId:Ut}=hr,ar=_r.parentElement,{right:pr,left:rr}=ar.getBoundingClientRect(),vr=gt?hr.clientX-rr:pr-hr.clientX;function $r(Cr){Cr.preventDefault();const{right:Nr,left:Gr}=ar.getBoundingClientRect(),qr=gt?Nr+vr-Cr.clientX:Cr.clientX+vr-Gr;qr>0&&rt(j,clampColumnWidth(qr,j))}function Rr(){_r.removeEventListener("pointermove",$r),_r.removeEventListener("lostpointercapture",Rr)}_r.setPointerCapture(Ut),_r.addEventListener("pointermove",$r),_r.addEventListener("lostpointercapture",Rr)}function Mt(hr){if(it==null)return;const{sortDescendingFirst:_r}=j;if(Et===void 0){const Ut={columnKey:j.key,direction:_r?"DESC":"ASC"};it(ot&&hr?[...ot,Ut]:[Ut])}else{let Ut;if((_r===!0&&St==="DESC"||_r!==!0&&St==="ASC")&&(Ut={columnKey:j.key,direction:St==="ASC"?"DESC":"ASC"}),hr){const ar=[...ot];Ut?ar[yt]=Ut:ar.splice(yt,1),it(ar)}else it(Ut?[Ut]:[])}}function Rt(hr){st({idx:j.idx,rowIdx:et}),$t&&Mt(hr.ctrlKey||hr.metaKey)}function Lt(){rt(j,"max-content")}function Pt(hr){xt==null||xt(hr),lt&&st({idx:0,rowIdx:et})}function Gt(hr){(hr.key===" "||hr.key==="Enter")&&(hr.preventDefault(),Mt(hr.ctrlKey||hr.metaKey))}function qt(hr){hr.dataTransfer.setData("text/plain",j.key),hr.dataTransfer.dropEffect="move",dt(!0)}function Yt(){dt(!1)}function Xt(hr){hr.preventDefault(),hr.dataTransfer.dropEffect="move"}function tr(hr){pt(!1);const _r=hr.dataTransfer.getData("text/plain");_r!==j.key&&(hr.preventDefault(),nt==null||nt(_r,j.key))}function cr(hr){isEventPertinent(hr)&&pt(!0)}function mr(hr){isEventPertinent(hr)&&pt(!1)}let Er;return It&&(Er={draggable:!0,onDragStart:qt,onDragEnd:Yt,onDragOver:Xt,onDragEnter:cr,onDragLeave:mr,onDrop:tr}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":j.idx+1,"aria-colspan":_e,"aria-rowspan":mt,"aria-selected":tt,"aria-sort":kt,tabIndex:lt?0:bt,className:Nt,style:{...getHeaderCellStyle(j,et,mt),...getCellStyle(j,_e)},onFocus:Pt,onClick:Rt,onKeyDown:$t?Gt:void 0,...Er,children:[Ot({column:j,sortDirection:St,priority:Tt,tabIndex:_t}),Ct&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onDoubleClick:Lt,onPointerDown:jt})]})}function isEventPertinent(j){const _e=j.relatedTarget;return!j.currentTarget.contains(_e)}const row="r1otpg647-0-0-beta-39",rowClassname=`rdg-row ${row}`,rowSelected="rel5gk27-0-0-beta-39",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r1qymf1z7-0-0-beta-39",headerRow="h197vzie7-0-0-beta-39",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx:j,columns:_e,onColumnResize:et,onColumnsReorder:tt,sortColumns:rt,onSortColumnsChange:nt,lastFrozenColumnIndex:ot,selectedCellIdx:it,selectCell:st,shouldFocusGrid:lt,direction:ut}){const ct=[];for(let dt=0;dt<_e.length;dt++){const ft=_e[dt],pt=getColSpan(ft,ot,{type:"HEADER"});pt!==void 0&&(dt+=pt-1),ct.push(jsxRuntimeExports.jsx(HeaderCell,{column:ft,colSpan:pt,rowIdx:j,isCellSelected:it===ft.idx,onColumnResize:et,onColumnsReorder:tt,onSortColumnsChange:nt,sortColumns:rt,selectCell:st,shouldFocusGrid:lt&&dt===0,direction:ut},ft.key))}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":j,className:clsx(headerRowClassname,it===-1&&rowSelectedClassname),children:ct})}const HeaderRow$1=reactExports.memo(HeaderRow);function GroupedColumnHeaderRow({rowIdx:j,level:_e,columns:et,selectedCellIdx:tt,selectCell:rt}){const nt=[],ot=new Set;for(const it of et){let{parent:st}=it;if(st!==void 0){for(;st.level>_e&&st.parent!==void 0;)st=st.parent;if(st.level===_e&&!ot.has(st)){ot.add(st);const{idx:lt}=st;nt.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:st,rowIdx:j,isCellSelected:tt===lt,selectCell:rt},lt))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":j,className:headerRowClassname,children:nt})}const GroupedColumnHeaderRow$1=reactExports.memo(GroupedColumnHeaderRow),cellCopied="ccpfvsn7-0-0-beta-39",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="c1bmg16t7-0-0-beta-39",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell$1({column:j,colSpan:_e,isCellSelected:et,isCopied:tt,isDraggedOver:rt,row:nt,rowIdx:ot,onClick:it,onDoubleClick:st,onContextMenu:lt,onRowChange:ut,selectCell:ct,...dt}){const{tabIndex:ft,childTabIndex:pt,onFocus:gt}=useRovingTabIndex(et),{cellClass:mt}=j,bt=getCellClassname(j,typeof mt=="function"?mt(nt):mt,tt&&cellCopiedClassname,rt&&cellDraggedOverClassname),_t=isCellEditable(j,nt);function xt(kt){ct({rowIdx:ot,idx:j.idx},kt)}function yt(kt){if(it){const $t=createCellEvent(kt);if(it({row:nt,column:j,selectCell:xt},$t),$t.isGridDefaultPrevented())return}xt()}function Et(kt){if(lt){const $t=createCellEvent(kt);if(lt({row:nt,column:j,selectCell:xt},$t),$t.isGridDefaultPrevented())return}xt()}function St(kt){if(st){const $t=createCellEvent(kt);if(st({row:nt,column:j,selectCell:xt},$t),$t.isGridDefaultPrevented())return}xt(!0)}function Tt(kt){ut(j,kt)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":j.idx+1,"aria-colspan":_e,"aria-selected":et,"aria-readonly":!_t||void 0,tabIndex:ft,className:bt,style:getCellStyle(j,_e),onClick:yt,onDoubleClick:St,onContextMenu:Et,onFocus:gt,...dt,children:j.renderCell({column:j,row:nt,isCellEditable:_t,tabIndex:pt,onRowChange:Tt})})}const Cell$1$1=reactExports.memo(Cell$1);function Row({className:j,rowIdx:_e,gridRowStart:et,height:tt,selectedCellIdx:rt,isRowSelected:nt,copiedCellIdx:ot,draggedOverCellIdx:it,lastFrozenColumnIndex:st,row:lt,viewportColumns:ut,selectedCellEditor:ct,onCellClick:dt,onCellDoubleClick:ft,onCellContextMenu:pt,rowClass:gt,setDraggedOverRowIdx:mt,onMouseEnter:bt,onRowChange:_t,selectCell:xt,...yt},Et){const St=useLatestFunc(($t,Ct)=>{_t($t,_e,Ct)});function Tt($t){mt==null||mt(_e),bt==null||bt($t)}j=clsx(rowClassname,`rdg-row-${_e%2===0?"even":"odd"}`,gt==null?void 0:gt(lt,_e),j,rt===-1&&rowSelectedClassname);const kt=[];for(let $t=0;$t{scrollIntoView(rt.current)}),useLayoutEffect(()=>{function nt(){tt(null)}const ot=new IntersectionObserver(nt,{root:et,threshold:1});return ot.observe(rt.current),()=>{ot.disconnect()}},[et,tt]),jsxRuntimeExports.jsx("div",{ref:rt,style:{gridColumn:j===void 0?"1/-1":j+1,gridRow:_e===void 0?"1/-1":_e+2}})}const arrow="a1mygwml7-0-0-beta-39",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection:j,priority:_e}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection:j}),renderSortPriority({priority:_e})]})}function renderSortIcon({sortDirection:j}){return j===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:j==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority:j}){return j}const root="r104f42s7-0-0-beta-39",rootClassname=`rdg ${root}`,viewportDragging="v7ly7s7-0-0-beta-39",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="fc4f4zb7-0-0-beta-39",focusSinkHeaderAndSummaryClassname="fq51q037-0-0-beta-39",summaryCellClassname="s1n3hxke7-0-0-beta-39";function SummaryCell({column:j,colSpan:_e,row:et,rowIdx:tt,isCellSelected:rt,selectCell:nt}){var dt;const{tabIndex:ot,childTabIndex:it,onFocus:st}=useRovingTabIndex(rt),{summaryCellClass:lt}=j,ut=getCellClassname(j,summaryCellClassname,typeof lt=="function"?lt(et):lt);function ct(){nt({rowIdx:tt,idx:j.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":j.idx+1,"aria-colspan":_e,"aria-selected":rt,tabIndex:ot,className:ut,style:getCellStyle(j,_e),onClick:ct,onFocus:st,children:(dt=j.renderSummaryCell)==null?void 0:dt.call(j,{column:j,row:et,tabIndex:it})})}const SummaryCell$1=reactExports.memo(SummaryCell),summaryRow="snfqesz7-0-0-beta-39",topSummaryRow="t1jijrjz7-0-0-beta-39",topSummaryRowBorderClassname="t14bmecc7-0-0-beta-39",bottomSummaryRowBorderClassname="b1odhhml7-0-0-beta-39",summaryRowClassname=`rdg-summary-row ${summaryRow}`,topSummaryRowClassname=`rdg-top-summary-row ${topSummaryRow}`;function SummaryRow({rowIdx:j,gridRowStart:_e,row:et,viewportColumns:tt,top:rt,bottom:nt,lastFrozenColumnIndex:ot,selectedCellIdx:it,isTop:st,showBorder:lt,selectCell:ut,"aria-rowindex":ct}){const dt=[];for(let ft=0;ftnew Map),[Qr,Yr]=reactExports.useState(()=>new Map),[Pr,Vr]=reactExports.useState(null),[yn,fr]=reactExports.useState(!1),[sr,ir]=reactExports.useState(void 0),[gr,wr]=reactExports.useState(null),[Mr,Sr,Ir]=useGridDimensions(),{columns:zr,colSpanColumns:Xr,lastFrozenColumnIndex:Zr,headerRowsCount:sn,colOverscanStartIdx:$n,colOverscanEndIdx:Nn,templateColumns:hn,layoutCssVars:jn,totalFrozenColumnWidth:qn}=useCalculatedColumns({rawColumns:et,defaultColumnOptions:gt,measuredColumnWidths:Qr,resizedColumnWidths:Gr,scrollLeft:Cr,viewportWidth:Sr,enableVirtualization:rr}),Sn=(rt==null?void 0:rt.length)??0,un=(nt==null?void 0:nt.length)??0,Fn=Sn+un,On=sn+Sn,Pn=sn-1,wn=-On,fn=wn+Pn,Kr=tt.length+un-1,[jr,zn]=reactExports.useState(()=>({idx:-1,rowIdx:wn-1,mode:"SELECT"})),ro=reactExports.useRef(jr),Mn=reactExports.useRef(sr),Fo=reactExports.useRef(-1),mo=reactExports.useRef(null),eo=reactExports.useRef(!1),Co=cr==="treegrid",Dr=sn*Er,Kt=Ir-Dr-Fn*hr,Zt=ct!=null&&dt!=null,zt=vr==="rtl",Ht=zt?"ArrowRight":"ArrowLeft",Dt=zt?"ArrowLeft":"ArrowRight",Qt=Yt??sn+tt.length+Fn,or=reactExports.useMemo(()=>({renderCheckbox:ar,renderSortStatus:Ut}),[ar,Ut]),lr=reactExports.useMemo(()=>{const{length:Br}=tt;return Br!==0&&ct!=null&&ot!=null&&ct.size>=Br&&tt.every(Hr=>ct.has(ot(Hr)))},[tt,ct,ot]),{rowOverscanStartIdx:er,rowOverscanEndIdx:yr,totalRowHeight:Lr,gridTemplateRows:nn,getRowTop:cn,getRowHeight:rn,findRowIdx:en}=useViewportRows({rows:tt,rowHeight:mr,clientHeight:Kt,scrollTop:$r,enableVirtualization:rr}),_n=useViewportColumns({columns:zr,colSpanColumns:Xr,colOverscanStartIdx:$n,colOverscanEndIdx:Nn,lastFrozenColumnIndex:Zr,rowOverscanStartIdx:er,rowOverscanEndIdx:yr,rows:tt,topSummaryRows:rt,bottomSummaryRows:nt}),{gridTemplateColumns:Ln,handleColumnResize:dn}=useColumnWidths(zr,_n,hn,Mr,Sr,Gr,Qr,qr,Yr,St),Kn=Co?-1:0,to=zr.length-1,fo=zs(jr),Po=Hs(jr),xo=useLatestFunc(dn),_i=useLatestFunc(Tt),zo=useLatestFunc(pt),Zn=useLatestFunc(mt),wo=useLatestFunc(bt),na=useLatestFunc(_t),Ho=useLatestFunc(xa),ga=useLatestFunc(Xo),Go=useLatestFunc(gs),ps=useLatestFunc(({idx:Br,rowIdx:Hr})=>{gs({rowIdx:wn+Hr-1,idx:Br})});useLayoutEffect(()=>{if(!fo||isSamePosition(jr,ro.current)){ro.current=jr;return}ro.current=jr,jr.idx===-1&&(mo.current.focus({preventScroll:!0}),scrollIntoView(mo.current))}),useLayoutEffect(()=>{eo.current&&(eo.current=!1,Tl())}),reactExports.useImperativeHandle(_e,()=>({element:Mr.current,scrollToCell({idx:Br,rowIdx:Hr}){const bn=Br!==void 0&&Br>Zr&&Br{ir(Br),Mn.current=Br},[]);function xa(Br){if(!dt)return;if(assertIsValidKeyGetter(ot),Br.type==="HEADER"){const Gn=new Set(ct);for(const Vn of tt){const no=ot(Vn);Br.checked?Gn.add(no):Gn.delete(no)}dt(Gn);return}const{row:Hr,checked:bn,isShiftClick:gn}=Br,tn=new Set(ct),an=ot(Hr);if(bn){tn.add(an);const Gn=Fo.current,Vn=tt.indexOf(Hr);if(Fo.current=Vn,gn&&Gn!==-1&&Gn!==Vn){const no=sign$1(Vn-Gn);for(let Io=Gn+no;Io!==Vn;Io+=no){const ts=tt[Io];tn.add(ot(ts))}}}else tn.delete(an),Fo.current=-1;dt(tn)}function es(Br){const{idx:Hr,rowIdx:bn,mode:gn}=jr;if(gn==="EDIT")return;if(xt&&$s(bn)){const Vn=tt[bn],no=createCellEvent(Br);if(xt({mode:"SELECT",row:Vn,column:zr[Hr],rowIdx:bn,selectCell:gs},no),no.isGridDefaultPrevented())return}if(!(Br.target instanceof Element))return;const tn=Br.target.closest(".rdg-cell")!==null,an=Co&&Br.target===mo.current;if(!tn&&!an)return;const{keyCode:Gn}=Br;if(Po&&(Ct!=null||$t!=null)&&isCtrlKeyHeldDown(Br)){if(Gn===67){El();return}if(Gn===86){hs();return}}switch(Br.key){case"Escape":Vr(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":Ul(Br);break;default:Kl(Br);break}}function Yo(Br){const{scrollTop:Hr,scrollLeft:bn}=Br.currentTarget;reactDomExports.flushSync(()=>{Rr(Hr),Nr(abs$1(bn))}),Et==null||Et(Br)}function Xo(Br,Hr,bn){if(typeof it!="function"||bn===tt[Hr])return;const gn=[...tt];gn[Hr]=bn,it(gn,{indexes:[Hr],column:Br})}function Ps(){jr.mode==="EDIT"&&Xo(zr[jr.idx],jr.rowIdx,jr.row)}function El(){const{idx:Br,rowIdx:Hr}=jr,bn=tt[Hr],gn=zr[Br].key;Vr({row:bn,columnKey:gn}),$t==null||$t({sourceRow:bn,sourceColumnKey:gn})}function hs(){if(!Ct||!it||Pr===null||!Cs(jr))return;const{idx:Br,rowIdx:Hr}=jr,bn=zr[Br],gn=tt[Hr],tn=Ct({sourceRow:Pr.row,sourceColumnKey:Pr.columnKey,targetRow:gn,targetColumnKey:bn.key});Xo(bn,Hr,tn)}function Kl(Br){if(!Po)return;const Hr=tt[jr.rowIdx],{key:bn,shiftKey:gn}=Br;if(Zt&&gn&&bn===" "){assertIsValidKeyGetter(ot);const tn=ot(Hr);xa({type:"ROW",row:Hr,checked:!ct.has(tn),isShiftClick:!1}),Br.preventDefault();return}Cs(jr)&&isDefaultCellInput(Br)&&zn(({idx:tn,rowIdx:an})=>({idx:tn,rowIdx:an,mode:"EDIT",row:Hr,originalRow:Hr}))}function Sl(Br){return Br>=Kn&&Br<=to}function $s(Br){return Br>=0&&Br=wn&&Hr<=Kr&&Sl(Br)}function Hs({idx:Br,rowIdx:Hr}){return $s(Hr)&&Sl(Br)}function Cs(Br){return Hs(Br)&&isSelectedCellEditable({columns:zr,rows:tt,selectedPosition:Br})}function gs(Br,Hr){if(!zs(Br))return;Ps();const bn=tt[Br.rowIdx],gn=isSamePosition(jr,Br);Hr&&Cs(Br)?zn({...Br,mode:"EDIT",row:bn,originalRow:bn}):gn?scrollIntoView(getCellToScroll(Mr.current)):(eo.current=!0,zn({...Br,mode:"SELECT"})),yt&&!gn&&yt({rowIdx:Br.rowIdx,row:bn,column:zr[Br.idx]})}function Lu(Br,Hr,bn){const{idx:gn,rowIdx:tn}=jr,an=fo&&gn===-1;switch(Br){case"ArrowUp":return{idx:gn,rowIdx:tn-1};case"ArrowDown":return{idx:gn,rowIdx:tn+1};case Ht:return{idx:gn-1,rowIdx:tn};case Dt:return{idx:gn+1,rowIdx:tn};case"Tab":return{idx:gn+(bn?-1:1),rowIdx:tn};case"Home":return an?{idx:gn,rowIdx:wn}:{idx:0,rowIdx:Hr?wn:tn};case"End":return an?{idx:gn,rowIdx:Kr}:{idx:to,rowIdx:Hr?Kr:tn};case"PageUp":{if(jr.rowIdx===wn)return jr;const Gn=cn(tn)+rn(tn)-Kt;return{idx:gn,rowIdx:Gn>0?en(Gn):0}}case"PageDown":{if(jr.rowIdx>=tt.length)return jr;const Gn=cn(tn)+Kt;return{idx:gn,rowIdx:GnBr&&Br>=sr)?jr.idx:void 0}function Tl(){const Br=getCellToScroll(Mr.current);if(Br===null)return;scrollIntoView(Br),(Br.querySelector('[tabindex="0"]')??Br).focus({preventScroll:!0})}function ju(){if(!(kt==null||jr.mode==="EDIT"||!Hs(jr)))return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:On+jr.rowIdx+1,rows:tt,columns:zr,selectedPosition:jr,isCellEditable:Cs,latestDraggedOverRowIdx:Mn,onRowsChange:it,onClick:Tl,onFill:kt,setDragging:fr,setDraggedOverRowIdx:Uo})}function Fu(Br){if(jr.rowIdx!==Br||jr.mode==="SELECT")return;const{idx:Hr,row:bn}=jr,gn=zr[Hr],tn=getColSpan(gn,Zr,{type:"ROW",row:bn}),an=Vn=>{eo.current=Vn,zn(({idx:no,rowIdx:Io})=>({idx:no,rowIdx:Io,mode:"SELECT"}))},Gn=(Vn,no,Io)=>{no?reactDomExports.flushSync(()=>{Xo(gn,jr.rowIdx,Vn),an(Io)}):zn(ts=>({...ts,row:Vn}))};return tt[jr.rowIdx]!==jr.originalRow&&an(!1),jsxRuntimeExports.jsx(EditCell,{column:gn,colSpan:tn,row:bn,rowIdx:Br,onRowChange:Gn,closeEditor:an,onKeyDown:xt,navigate:Ul},gn.key)}function ws(Br){const Hr=jr.idx===-1?void 0:zr[jr.idx];return Hr!==void 0&&jr.rowIdx===Br&&!_n.includes(Hr)?jr.idx>Nn?[..._n,Hr]:[..._n.slice(0,Zr+1),Hr,..._n.slice(Zr+1)]:_n}function Pu(){const Br=[],{idx:Hr,rowIdx:bn}=jr,gn=Po&&bnyr?yr+1:yr;for(let an=gn;an<=tn;an++){const Gn=an===er-1||an===yr+1,Vn=Gn?bn:an;let no=_n;const Io=Hr===-1?void 0:zr[Hr];Io!==void 0&&(Gn?no=[Io]:no=ws(Vn));const ts=tt[Vn],zu=On+Vn+1;let Gs=Vn,Al=!1;typeof ot=="function"&&(Gs=ot(ts),Al=(ct==null?void 0:ct.has(Gs))??!1),Br.push(_r(Gs,{"aria-rowindex":On+Vn+1,"aria-selected":Zt?Al:void 0,rowIdx:Vn,row:ts,viewportColumns:no,isRowSelected:Al,onCellClick:Zn,onCellDoubleClick:wo,onCellContextMenu:na,rowClass:Mt,gridRowStart:zu,height:rn(Vn),copiedCellIdx:Pr!==null&&Pr.row===ts?zr.findIndex(oo=>oo.key===Pr.columnKey):void 0,selectedCellIdx:bn===Vn?Hr:void 0,draggedOverCellIdx:Bu(Vn),setDraggedOverRowIdx:yn?Uo:void 0,lastFrozenColumnIndex:Zr,onRowChange:ga,selectCell:Go,selectedCellEditor:Fu(Vn)}))}return Br}(jr.idx>to||jr.rowIdx>Kr)&&(zn({idx:-1,rowIdx:wn-1,mode:"SELECT"}),Uo(void 0));let vs=`repeat(${sn}, ${Er}px)`;Sn>0&&(vs+=` repeat(${Sn}, ${hr}px)`),tt.length>0&&(vs+=nn),un>0&&(vs+=` repeat(${un}, ${hr}px)`);const Yl=jr.idx===-1&&jr.rowIdx!==wn-1;return jsxRuntimeExports.jsxs("div",{role:cr,"aria-label":Pt,"aria-labelledby":Gt,"aria-describedby":qt,"aria-multiselectable":Zt?!0:void 0,"aria-colcount":zr.length,"aria-rowcount":Qt,className:clsx(rootClassname,Ot,yn&&viewportDraggingClassname),style:{...jt,scrollPaddingInlineStart:jr.idx>Zr||(gr==null?void 0:gr.idx)!==void 0?`${qn}px`:void 0,scrollPaddingBlock:$s(jr.rowIdx)||(gr==null?void 0:gr.rowIdx)!==void 0?`${Dr+Sn*hr}px ${un*hr}px`:void 0,gridTemplateColumns:Ln,gridTemplateRows:vs,"--rdg-header-row-height":`${Er}px`,"--rdg-summary-row-height":`${hr}px`,"--rdg-sign":zt?-1:1,...jn},dir:vr,ref:Mr,onScroll:Yo,onKeyDown:es,"data-testid":Xt,children:[jsxRuntimeExports.jsx(DataGridDefaultRenderersProvider,{value:or,children:jsxRuntimeExports.jsxs(RowSelectionChangeProvider,{value:Ho,children:[jsxRuntimeExports.jsxs(RowSelectionProvider,{value:lr,children:[Array.from({length:Pn},(Br,Hr)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow$1,{rowIdx:Hr+1,level:-Pn+Hr,columns:ws(wn+Hr),selectedCellIdx:jr.rowIdx===wn+Hr?jr.idx:void 0,selectCell:ps},Hr)),jsxRuntimeExports.jsx(HeaderRow$1,{rowIdx:sn,columns:ws(fn),onColumnResize:xo,onColumnsReorder:_i,sortColumns:ft,onSortColumnsChange:zo,lastFrozenColumnIndex:Zr,selectedCellIdx:jr.rowIdx===fn?jr.idx:void 0,selectCell:ps,shouldFocusGrid:!fo,direction:vr})]}),tt.length===0&&pr?pr:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[rt==null?void 0:rt.map((Br,Hr)=>{const bn=sn+1+Hr,gn=fn+1+Hr,tn=jr.rowIdx===gn,an=Dr+hr*Hr;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":bn,rowIdx:gn,gridRowStart:bn,row:Br,top:an,bottom:void 0,viewportColumns:ws(gn),lastFrozenColumnIndex:Zr,selectedCellIdx:tn?jr.idx:void 0,isTop:!0,showBorder:Hr===Sn-1,selectCell:Go},Hr)}),Pu(),nt==null?void 0:nt.map((Br,Hr)=>{const bn=On+tt.length+Hr+1,gn=tt.length+Hr,tn=jr.rowIdx===gn,an=Kt>Lr?Ir-hr*(nt.length-Hr):void 0,Gn=an===void 0?hr*(nt.length-1-Hr):void 0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Qt-un+Hr+1,rowIdx:gn,gridRowStart:bn,row:Br,top:an,bottom:Gn,viewportColumns:ws(gn),lastFrozenColumnIndex:Zr,selectedCellIdx:tn?jr.idx:void 0,isTop:!1,showBorder:Hr===0,selectCell:Go},Hr)})]})]})}),ju(),renderMeasuringCells(_n),Co&&jsxRuntimeExports.jsx("div",{ref:mo,tabIndex:Yl?0:-1,className:clsx(focusSinkClassname,Yl&&[rowSelected,Zr!==-1&&rowSelectedWithFrozenCell],!$s(jr.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:jr.rowIdx+On+1}}),gr!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition:gr,setScrollToCellPosition:wr,gridElement:Mr.current})]})}function getCellToScroll(j){return j.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(j,_e){return j.idx===_e.idx&&j.rowIdx===_e.rowIdx}const DataGrid$1$1=reactExports.forwardRef(DataGrid$2),useGanttViewModel=()=>{const[j]=useInjected(GanttViewModelToken);return j},useGanttViewRows=()=>{const j=useGanttViewModel();return useState(j.rows$).toArray()},useToggleSubRows=()=>{const j=useGanttViewModel();return reactExports.useCallback(_e=>{j.toggleRow(_e)},[j])},useTasksTimeBoundaries=()=>{const j=useGanttViewModel();return[j.startTime,j.endTime]},useSelectedRow=()=>{const j=useGanttViewModel();return useState(j.selectedRowId$)},useSetSelectedRow=()=>{const j=useGanttViewModel();return useSetState(j.selectedRowId$)},GanttChartCell=({row:j})=>{const[_e,et]=useTasksTimeBoundaries(),tt=`${(j.startTime-_e)*100/(et-_e)}%`,rt=`${(et-j.endTime)*100/(et-_e)}%`,nt=j.children&&j.children.length>0,ot=j.isExpanded;return jsxRuntimeExports.jsx("div",{style:{marginLeft:tt,marginRight:rt,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:nt&&!ot?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(j.children??[]).map((it,st)=>{const lt=`${(it.endTime-it.startTime)*100/(j.endTime-j.startTime)}%`;return jsxRuntimeExports.jsx("div",{style:{backgroundColor:it.color??`rgba(0, 120, 212, ${1-.2*st})`,width:lt}},it.id)})}):jsxRuntimeExports.jsx("div",{style:{backgroundColor:j.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},NameCell=({row:j})=>{const _e=j.children!==void 0&&j.children.length>0,et=j.isExpanded,tt=useToggleSubRows(),rt=reactExports.useCallback(nt=>{nt.preventDefault(),nt.stopPropagation(),tt(j.id)},[j.id,tt]);return jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:j.level*24},children:[_e?jsxRuntimeExports.jsx("div",{onClick:rt,role:"button",children:et?"▼":"▶"}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),jsxRuntimeExports.jsx("div",{children:j.node_name||j.name})]})},defaultColumns=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:j}){return jsxRuntimeExports.jsx(NameCell,{row:j})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:j}){return jsxRuntimeExports.jsxs("div",{style:{textAlign:"right"},children:[Math.round((j.endTime-j.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:j}){return jsxRuntimeExports.jsx(GanttChartCell,{row:j})},renderHeaderCell:()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}],GanttGridView=({styles:j,getColumns:_e=et=>et})=>{const et=useGanttViewRows(),tt=useSetSelectedRow(),rt=useSelectedRow(),nt=reactExports.useCallback(st=>{const{row:lt}=st;tt(lt.id)},[tt]),ot=mergeStyles$1(j==null?void 0:j.grid,{borderBottom:"none",borderRight:"none"}),it=reactExports.useCallback(st=>mergeStyles$1(rt===st.id?j==null?void 0:j.selectedRow:""),[rt,j==null?void 0:j.selectedRow]);return jsxRuntimeExports.jsx(DataGrid$1$1,{rows:et,columns:_e(defaultColumns),onCellClick:nt,className:ot,rowClass:it})},Wrapper=({viewModel:j,children:_e})=>{const et=createRegistry({name:"gantt-wrapper"}),tt=reactExports.useCallback(rt=>{rt.register(GanttViewModelToken,{useValue:j})},[j]);return jsxRuntimeExports.jsx(et,{onInitialize:tt,children:_e})};var GanttGridTheme=(j=>(j.Light="rdg-light",j.Dark="rdg-dark",j))(GanttGridTheme||{});const Gantt=({viewModel:j,styles:_e,getColumns:et})=>jsxRuntimeExports.jsx(Wrapper,{viewModel:j,children:jsxRuntimeExports.jsx(GanttGridView,{styles:_e,getColumns:et})}),TraceDetailTemplate=({trace:j,JSONView:_e})=>{const et=mergeStyleSets({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),tt=j.node_name??j.name??"",rt=getTokensUsageByRow(j),nt=j.inputs??{},ot=j.output??{};return jsxRuntimeExports.jsxs("div",{className:et.root,children:[jsxRuntimeExports.jsx("div",{className:et.header,children:tt}),jsxRuntimeExports.jsxs("div",{className:et.section,children:[jsxRuntimeExports.jsx("div",{className:et.sectionTitle,children:"Overview"}),jsxRuntimeExports.jsx("div",{className:et.sectionContent,children:jsxRuntimeExports.jsxs("div",{className:et.overviewContainer,children:[jsxRuntimeExports.jsxs("div",{className:et.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:et.fieldTitle,children:"total tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(rt.totalTokens)}),jsxRuntimeExports.jsx("div",{className:et.fieldTitle,children:"prompt tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(rt.promptTokens)}),jsxRuntimeExports.jsx("div",{className:et.fieldTitle,children:"completion tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(rt.completionTokens)})]}),jsxRuntimeExports.jsxs("div",{className:et.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:et.fieldTitle,children:"duration"}),jsxRuntimeExports.jsx("div",{children:j.end_time&&j.start_time?`${Math.round((j.end_time-j.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),jsxRuntimeExports.jsx("div",{className:et.fieldTitle,children:"started at"}),jsxRuntimeExports.jsx("div",{children:j.start_time?timePDTFormatter(j.start_time*1e3):"N/A"}),jsxRuntimeExports.jsx("div",{className:et.fieldTitle,children:"finished at"}),jsxRuntimeExports.jsx("div",{children:j.end_time?timePDTFormatter(j.end_time*1e3):"N/A"})]})]})})]}),jsxRuntimeExports.jsxs("div",{className:et.section,children:[jsxRuntimeExports.jsx("div",{className:et.sectionTitle,children:"Inputs"}),jsxRuntimeExports.jsx("div",{className:et.sectionContent,children:jsxRuntimeExports.jsx(_e,{src:nt})})]}),jsxRuntimeExports.jsxs("div",{className:et.section,children:[jsxRuntimeExports.jsx("div",{className:et.sectionTitle,children:"Outputs"}),jsxRuntimeExports.jsx("div",{className:et.sectionContent,children:jsxRuntimeExports.jsx(_e,{src:ot})})]})]})},traceMap=new Map,hashTraceName=j=>{let _e=0,et=0;if(j.length===0)return _e;for(let tt=0;ttj.map(_e=>{const et=uuid_1.v4();return traceMap.set(et,_e),{startTime:_e.start_time??performance.now(),endTime:_e.end_time??performance.now(),color:SystemColors[hashTraceName(_e.name??"")%systemColorsLength],id:et,name:_e.name??"",node_name:_e.node_name??"",output:_e.output??[],children:_e.children?parseTrace(_e.children):void 0}}),DefaultGridContainer=({children:j,className:_e})=>jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},className:_e,defaultSize:{width:"50%",height:"100%"},children:j}),DefaultContainer=({children:j,className:_e})=>jsxRuntimeExports.jsx("div",{className:_e,children:j}),ApiLogs=reactExports.forwardRef(({traces:j,styles:_e,isDarkMode:et=!1,classNames:tt,RootContainer:rt=DefaultContainer,GridContainer:nt=DefaultGridContainer,DetailContainer:ot=DefaultContainer,renderDetail:it=ct=>jsxRuntimeExports.jsx(TraceDetailTemplate,{JSONView:dt=>jsxRuntimeExports.jsx("pre",{children:JSON.stringify(dt)}),trace:ct}),onChangeSelectedTrace:st,renderUnselectedHint:lt=()=>jsxRuntimeExports.jsx("div",{children:"Click on a row to see details"})},ut)=>{const ct=reactExports.useMemo(()=>j.reduce((St,Tt)=>[...St,...parseTrace(Tt)],[]),[j]),dt=reactExports.useMemo(()=>new GanttViewModel,[]);reactExports.useEffect(()=>{dt.setTasks(ct)},[ct,dt]);const ft=useState(dt.selectedRowId$),pt=useSetState(dt.selectedRowId$),gt=reactExports.useMemo(()=>ft?traceMap.get(ft):void 0,[ft]),mt=reactExports.useMemo(()=>({..._e,grid:mergeStyles$1(_e==null?void 0:_e.grid,et?GanttGridTheme.Dark:GanttGridTheme.Light)}),[_e,et]),bt=mergeStyles$1({display:"flex",height:"100%",borderTop:"1px solid #ccc"},tt==null?void 0:tt.root),_t=mergeStyles$1({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},tt==null?void 0:tt.gridContainer),xt=mergeStyles$1({height:"100%",width:"100%",padding:8},tt==null?void 0:tt.detailContainer),yt=reactExports.useCallback(St=>{var kt;const Tt=(kt=ct.find($t=>$t.node_name===St))==null?void 0:kt.id;Tt&&pt(Tt)},[ct,pt]);reactExports.useImperativeHandle(ut,()=>({setSelectedTraceRow:yt})),reactExports.useEffect(()=>{st&&st(gt)},[st,gt]),reactExports.useEffect(()=>{pt(void 0)},[j]);const Et=reactExports.useCallback(St=>{const Tt={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:Ct}){const It=getTokensUsageByRow(Ct),Nt=`prompt tokens: ${numberToDigitsString(It.promptTokens)}, - completion tokens: ${It.completionTokens}`;return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},title:Nt,children:numberToDigitsString(It.totalTokens)})}},[kt,...$t]=St;return[kt,Tt,...$t]},[]);return jsxRuntimeExports.jsxs(rt,{className:bt,children:[jsxRuntimeExports.jsx(nt,{className:_t,children:jsxRuntimeExports.jsx(Gantt,{viewModel:dt,styles:mt,getColumns:Et})}),jsxRuntimeExports.jsx(ot,{className:xt,children:gt?it(gt):lt()})]})});ApiLogs.displayName="ApiLogs";const $global=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();$global.trustedTypes===void 0&&($global.trustedTypes={createPolicy:(j,_e)=>_e});const propConfig={configurable:!1,enumerable:!1,writable:!1};$global.FAST===void 0&&Reflect.defineProperty($global,"FAST",Object.assign({value:Object.create(null)},propConfig));const FAST=$global.FAST;if(FAST.getById===void 0){const j=Object.create(null);Reflect.defineProperty(FAST,"getById",Object.assign({value(_e,et){let tt=j[_e];return tt===void 0&&(tt=et?j[_e]=et():null),tt}},propConfig))}const emptyArray=Object.freeze([]);function createMetadataLocator(){const j=new WeakMap;return function(_e){let et=j.get(_e);if(et===void 0){let tt=Reflect.getPrototypeOf(_e);for(;et===void 0&&tt!==null;)et=j.get(tt),tt=Reflect.getPrototypeOf(tt);et=et===void 0?[]:et.slice(0),j.set(_e,et)}return et}}const updateQueue=$global.FAST.getById(1,()=>{const j=[],_e=[];function et(){if(_e.length)throw _e.shift()}function tt(ot){try{ot.call()}catch(it){_e.push(it),setTimeout(et,0)}}function rt(){let it=0;for(;it1024){for(let st=0,lt=j.length-it;stj});let htmlPolicy=fastHTMLPolicy;const marker=`fast-${Math.random().toString(36).substring(2,8)}`,_interpolationStart=`${marker}{`,_interpolationEnd=`}${marker}`,DOM=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(j){if(htmlPolicy!==fastHTMLPolicy)throw new Error("The HTML policy can only be set once.");htmlPolicy=j},createHTML(j){return htmlPolicy.createHTML(j)},isMarker(j){return j&&j.nodeType===8&&j.data.startsWith(marker)},extractDirectiveIndexFromMarker(j){return parseInt(j.data.replace(`${marker}:`,""))},createInterpolationPlaceholder(j){return`${_interpolationStart}${j}${_interpolationEnd}`},createCustomAttributePlaceholder(j,_e){return`${j}="${this.createInterpolationPlaceholder(_e)}"`},createBlockPlaceholder(j){return``},queueUpdate:updateQueue.enqueue,processUpdates:updateQueue.process,nextUpdate(){return new Promise(updateQueue.enqueue)},setAttribute(j,_e,et){et==null?j.removeAttribute(_e):j.setAttribute(_e,et)},setBooleanAttribute(j,_e,et){et?j.setAttribute(_e,""):j.removeAttribute(_e)},removeChildNodes(j){for(let _e=j.firstChild;_e!==null;_e=j.firstChild)j.removeChild(_e)},createTemplateWalker(j){return document.createTreeWalker(j,133,null,!1)}});class SubscriberSet{constructor(_e,et){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=_e,this.sub1=et}has(_e){return this.spillover===void 0?this.sub1===_e||this.sub2===_e:this.spillover.indexOf(_e)!==-1}subscribe(_e){const et=this.spillover;if(et===void 0){if(this.has(_e))return;if(this.sub1===void 0){this.sub1=_e;return}if(this.sub2===void 0){this.sub2=_e;return}this.spillover=[this.sub1,this.sub2,_e],this.sub1=void 0,this.sub2=void 0}else et.indexOf(_e)===-1&&et.push(_e)}unsubscribe(_e){const et=this.spillover;if(et===void 0)this.sub1===_e?this.sub1=void 0:this.sub2===_e&&(this.sub2=void 0);else{const tt=et.indexOf(_e);tt!==-1&&et.splice(tt,1)}}notify(_e){const et=this.spillover,tt=this.source;if(et===void 0){const rt=this.sub1,nt=this.sub2;rt!==void 0&&rt.handleChange(tt,_e),nt!==void 0&&nt.handleChange(tt,_e)}else for(let rt=0,nt=et.length;rt{const j=/(:|&&|\|\||if)/,_e=new WeakMap,et=DOM.queueUpdate;let tt,rt=lt=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function nt(lt){let ut=lt.$fastController||_e.get(lt);return ut===void 0&&(Array.isArray(lt)?ut=rt(lt):_e.set(lt,ut=new PropertyChangeNotifier(lt))),ut}const ot=createMetadataLocator();class it{constructor(ut){this.name=ut,this.field=`_${ut}`,this.callback=`${ut}Changed`}getValue(ut){return tt!==void 0&&tt.watch(ut,this.name),ut[this.field]}setValue(ut,ct){const dt=this.field,ft=ut[dt];if(ft!==ct){ut[dt]=ct;const pt=ut[this.callback];typeof pt=="function"&&pt.call(ut,ft,ct),nt(ut).notify(this.name)}}}class st extends SubscriberSet{constructor(ut,ct,dt=!1){super(ut,ct),this.binding=ut,this.isVolatileBinding=dt,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(ut,ct){this.needsRefresh&&this.last!==null&&this.disconnect();const dt=tt;tt=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const ft=this.binding(ut,ct);return tt=dt,ft}disconnect(){if(this.last!==null){let ut=this.first;for(;ut!==void 0;)ut.notifier.unsubscribe(this,ut.propertyName),ut=ut.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(ut,ct){const dt=this.last,ft=nt(ut),pt=dt===null?this.first:{};if(pt.propertySource=ut,pt.propertyName=ct,pt.notifier=ft,ft.subscribe(this,ct),dt!==null){if(!this.needsRefresh){let gt;tt=void 0,gt=dt.propertySource[dt.propertyName],tt=this,ut===gt&&(this.needsRefresh=!0)}dt.next=pt}this.last=pt}handleChange(){this.needsQueue&&(this.needsQueue=!1,et(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let ut=this.first;return{next:()=>{const ct=ut;return ct===void 0?{value:void 0,done:!0}:(ut=ut.next,{value:ct,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(lt){rt=lt},getNotifier:nt,track(lt,ut){tt!==void 0&&tt.watch(lt,ut)},trackVolatile(){tt!==void 0&&(tt.needsRefresh=!0)},notify(lt,ut){nt(lt).notify(ut)},defineProperty(lt,ut){typeof ut=="string"&&(ut=new it(ut)),ot(lt).push(ut),Reflect.defineProperty(lt,ut.name,{enumerable:!0,get:function(){return ut.getValue(this)},set:function(ct){ut.setValue(this,ct)}})},getAccessors:ot,binding(lt,ut,ct=this.isVolatileBinding(lt)){return new st(lt,ut,ct)},isVolatileBinding(lt){return j.test(lt.toString())}})});function observable(j,_e){Observable$1.defineProperty(j,_e)}function volatile(j,_e,et){return Object.assign({},et,{get:function(){return Observable$1.trackVolatile(),et.get.apply(this)}})}const contextEvent=FAST.getById(3,()=>{let j=null;return{get(){return j},set(_e){j=_e}}});class ExecutionContext{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return contextEvent.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(_e){contextEvent.set(_e)}}Observable$1.defineProperty(ExecutionContext.prototype,"index");Observable$1.defineProperty(ExecutionContext.prototype,"length");const defaultExecutionContext=Object.seal(new ExecutionContext);class HTMLDirective{constructor(){this.targetIndex=0}}class TargetedHTMLDirective extends HTMLDirective{constructor(){super(...arguments),this.createPlaceholder=DOM.createInterpolationPlaceholder}}class AttachedBehaviorHTMLDirective extends HTMLDirective{constructor(_e,et,tt){super(),this.name=_e,this.behavior=et,this.options=tt}createPlaceholder(_e){return DOM.createCustomAttributePlaceholder(this.name,_e)}createBehavior(_e){return new this.behavior(_e,this.options)}}function normalBind(j,_e){this.source=j,this.context=_e,this.bindingObserver===null&&(this.bindingObserver=Observable$1.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(j,_e))}function triggerBind(j,_e){this.source=j,this.context=_e,this.target.addEventListener(this.targetName,this)}function normalUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function contentUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const j=this.target.$fastView;j!==void 0&&j.isComposed&&(j.unbind(),j.needsBindOnly=!0)}function triggerUnbind(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function updateAttributeTarget(j){DOM.setAttribute(this.target,this.targetName,j)}function updateBooleanAttributeTarget(j){DOM.setBooleanAttribute(this.target,this.targetName,j)}function updateContentTarget(j){if(j==null&&(j=""),j.create){this.target.textContent="";let _e=this.target.$fastView;_e===void 0?_e=j.create():this.target.$fastTemplate!==j&&(_e.isComposed&&(_e.remove(),_e.unbind()),_e=j.create()),_e.isComposed?_e.needsBindOnly&&(_e.needsBindOnly=!1,_e.bind(this.source,this.context)):(_e.isComposed=!0,_e.bind(this.source,this.context),_e.insertBefore(this.target),this.target.$fastView=_e,this.target.$fastTemplate=j)}else{const _e=this.target.$fastView;_e!==void 0&&_e.isComposed&&(_e.isComposed=!1,_e.remove(),_e.needsBindOnly?_e.needsBindOnly=!1:_e.unbind()),this.target.textContent=j}}function updatePropertyTarget(j){this.target[this.targetName]=j}function updateClassTarget(j){const _e=this.classVersions||Object.create(null),et=this.target;let tt=this.version||0;if(j!=null&&j.length){const rt=j.split(/\s+/);for(let nt=0,ot=rt.length;ntDOM.createHTML(et(tt,rt))}break;case"?":this.cleanedTargetName=_e.substr(1),this.updateTarget=updateBooleanAttributeTarget;break;case"@":this.cleanedTargetName=_e.substr(1),this.bind=triggerBind,this.unbind=triggerUnbind;break;default:this.cleanedTargetName=_e,_e==="class"&&(this.updateTarget=updateClassTarget);break}}targetAtContent(){this.updateTarget=updateContentTarget,this.unbind=contentUnbind}createBehavior(_e){return new BindingBehavior(_e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class BindingBehavior{constructor(_e,et,tt,rt,nt,ot,it){this.source=null,this.context=null,this.bindingObserver=null,this.target=_e,this.binding=et,this.isBindingVolatile=tt,this.bind=rt,this.unbind=nt,this.updateTarget=ot,this.targetName=it}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(_e){ExecutionContext.setEvent(_e);const et=this.binding(this.source,this.context);ExecutionContext.setEvent(null),et!==!0&&_e.preventDefault()}}let sharedContext=null;class CompilationContext{addFactory(_e){_e.targetIndex=this.targetIndex,this.behaviorFactories.push(_e)}captureContentBinding(_e){_e.targetAtContent(),this.addFactory(_e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){sharedContext=this}static borrow(_e){const et=sharedContext||new CompilationContext;return et.directives=_e,et.reset(),sharedContext=null,et}}function createAggregateBinding(j){if(j.length===1)return j[0];let _e;const et=j.length,tt=j.map(ot=>typeof ot=="string"?()=>ot:(_e=ot.targetName||_e,ot.binding)),rt=(ot,it)=>{let st="";for(let lt=0;ltit),lt.targetName=ot.name):lt=createAggregateBinding(st),lt!==null&&(_e.removeAttributeNode(ot),rt--,nt--,j.addFactory(lt))}}function compileContent(j,_e,et){const tt=parseContent(j,_e.textContent);if(tt!==null){let rt=_e;for(let nt=0,ot=tt.length;nt0}const et=this.fragment.cloneNode(!0),tt=this.viewBehaviorFactories,rt=new Array(this.behaviorCount),nt=DOM.createTemplateWalker(et);let ot=0,it=this.targetOffset,st=nt.nextNode();for(let lt=tt.length;ot=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function html(j,..._e){const et=[];let tt="";for(let rt=0,nt=j.length-1;rtst}if(typeof it=="function"&&(it=new HTMLBindingDirective(it)),it instanceof TargetedHTMLDirective){const st=lastAttributeNameRegex.exec(ot);st!==null&&(it.targetName=st[2])}it instanceof HTMLDirective?(tt+=it.createPlaceholder(et.length),et.push(it)):tt+=it}return tt+=j[j.length-1],new ViewTemplate(tt,et)}class ElementStyles{constructor(){this.targets=new WeakSet}addStylesTo(_e){this.targets.add(_e)}removeStylesFrom(_e){this.targets.delete(_e)}isAttachedTo(_e){return this.targets.has(_e)}withBehaviors(..._e){return this.behaviors=this.behaviors===null?_e:this.behaviors.concat(_e),this}}ElementStyles.create=(()=>{if(DOM.supportsAdoptedStyleSheets){const j=new Map;return _e=>new AdoptedStyleSheetsStyles(_e,j)}return j=>new StyleElementStyles(j)})();function reduceStyles(j){return j.map(_e=>_e instanceof ElementStyles?reduceStyles(_e.styles):[_e]).reduce((_e,et)=>_e.concat(et),[])}function reduceBehaviors(j){return j.map(_e=>_e instanceof ElementStyles?_e.behaviors:null).reduce((_e,et)=>et===null?_e:(_e===null&&(_e=[]),_e.concat(et)),null)}let addAdoptedStyleSheets=(j,_e)=>{j.adoptedStyleSheets=[...j.adoptedStyleSheets,..._e]},removeAdoptedStyleSheets=(j,_e)=>{j.adoptedStyleSheets=j.adoptedStyleSheets.filter(et=>_e.indexOf(et)===-1)};if(DOM.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),addAdoptedStyleSheets=(j,_e)=>{j.adoptedStyleSheets.push(..._e)},removeAdoptedStyleSheets=(j,_e)=>{for(const et of _e){const tt=j.adoptedStyleSheets.indexOf(et);tt!==-1&&j.adoptedStyleSheets.splice(tt,1)}}}catch{}class AdoptedStyleSheetsStyles extends ElementStyles{constructor(_e,et){super(),this.styles=_e,this.styleSheetCache=et,this._styleSheets=void 0,this.behaviors=reduceBehaviors(_e)}get styleSheets(){if(this._styleSheets===void 0){const _e=this.styles,et=this.styleSheetCache;this._styleSheets=reduceStyles(_e).map(tt=>{if(tt instanceof CSSStyleSheet)return tt;let rt=et.get(tt);return rt===void 0&&(rt=new CSSStyleSheet,rt.replaceSync(tt),et.set(tt,rt)),rt})}return this._styleSheets}addStylesTo(_e){addAdoptedStyleSheets(_e,this.styleSheets),super.addStylesTo(_e)}removeStylesFrom(_e){removeAdoptedStyleSheets(_e,this.styleSheets),super.removeStylesFrom(_e)}}let styleClassId=0;function getNextStyleClass(){return`fast-style-class-${++styleClassId}`}class StyleElementStyles extends ElementStyles{constructor(_e){super(),this.styles=_e,this.behaviors=null,this.behaviors=reduceBehaviors(_e),this.styleSheets=reduceStyles(_e),this.styleClass=getNextStyleClass()}addStylesTo(_e){const et=this.styleSheets,tt=this.styleClass;_e=this.normalizeTarget(_e);for(let rt=0;rt{tt.add(_e);const rt=_e[this.fieldName];switch(et){case"reflect":const nt=this.converter;DOM.setAttribute(_e,this.attribute,nt!==void 0?nt.toView(rt):rt);break;case"boolean":DOM.setBooleanAttribute(_e,this.attribute,rt);break}tt.delete(_e)})}static collect(_e,...et){const tt=[];et.push(AttributeConfiguration.locate(_e));for(let rt=0,nt=et.length;rt1&&(et.property=nt),AttributeConfiguration.locate(rt.constructor).push(et)}if(arguments.length>1){et={},tt(j,_e);return}return et=j===void 0?{}:j,tt}const defaultShadowOptions={mode:"open"},defaultElementOptions={},fastRegistry=FAST.getById(4,()=>{const j=new Map;return Object.freeze({register(_e){return j.has(_e.type)?!1:(j.set(_e.type,_e),!0)},getByType(_e){return j.get(_e)}})});class FASTElementDefinition{constructor(_e,et=_e.definition){typeof et=="string"&&(et={name:et}),this.type=_e,this.name=et.name,this.template=et.template;const tt=AttributeDefinition.collect(_e,et.attributes),rt=new Array(tt.length),nt={},ot={};for(let it=0,st=tt.length;it0){const nt=this.boundObservables=Object.create(null);for(let ot=0,it=rt.length;ot0||et>0;){if(_e===0){rt.push(EDIT_ADD),et--;continue}if(et===0){rt.push(EDIT_DELETE),_e--;continue}const nt=j[_e-1][et-1],ot=j[_e-1][et],it=j[_e][et-1];let st;ot=0){j.splice(it,1),it--,ot-=st.addedCount-st.removed.length,rt.addedCount+=st.addedCount-lt;const ut=rt.removed.length+st.removed.length-lt;if(!rt.addedCount&&!ut)nt=!0;else{let ct=st.removed;if(rt.indexst.index+st.addedCount){const dt=rt.removed.slice(st.index+st.addedCount-rt.index);$push.apply(ct,dt)}rt.removed=ct,st.indextt?et=tt-j.addedCount:et<0&&(et=tt+j.removed.length+et-j.addedCount),et<0&&(et=0),j.index=et,j}class ArrayObserver extends SubscriberSet{constructor(_e){super(_e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(_e,"$fastController",{value:this,enumerable:!1})}subscribe(_e){this.flush(),super.subscribe(_e)}addSplice(_e){this.splices===void 0?this.splices=[_e]:this.splices.push(_e),this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}reset(_e){this.oldCollection=_e,this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}flush(){const _e=this.splices,et=this.oldCollection;if(_e===void 0&&et===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const tt=et===void 0?projectArraySplices(this.source,_e):calcSplices(this.source,0,this.source.length,et,0,et.length);this.notify(tt)}}function enableArrayObservation(){if(arrayObservationEnabled)return;arrayObservationEnabled=!0,Observable$1.setArrayObserverFactory(st=>new ArrayObserver(st));const j=Array.prototype;if(j.$fastPatch)return;Reflect.defineProperty(j,"$fastPatch",{value:1,enumerable:!1});const _e=j.pop,et=j.push,tt=j.reverse,rt=j.shift,nt=j.sort,ot=j.splice,it=j.unshift;j.pop=function(){const st=this.length>0,lt=_e.apply(this,arguments),ut=this.$fastController;return ut!==void 0&&st&&ut.addSplice(newSplice(this.length,[lt],0)),lt},j.push=function(){const st=et.apply(this,arguments),lt=this.$fastController;return lt!==void 0&<.addSplice(adjustIndex(newSplice(this.length-arguments.length,[],arguments.length),this)),st},j.reverse=function(){let st;const lt=this.$fastController;lt!==void 0&&(lt.flush(),st=this.slice());const ut=tt.apply(this,arguments);return lt!==void 0&<.reset(st),ut},j.shift=function(){const st=this.length>0,lt=rt.apply(this,arguments),ut=this.$fastController;return ut!==void 0&&st&&ut.addSplice(newSplice(0,[lt],0)),lt},j.sort=function(){let st;const lt=this.$fastController;lt!==void 0&&(lt.flush(),st=this.slice());const ut=nt.apply(this,arguments);return lt!==void 0&<.reset(st),ut},j.splice=function(){const st=ot.apply(this,arguments),lt=this.$fastController;return lt!==void 0&<.addSplice(adjustIndex(newSplice(+arguments[0],st,arguments.length>2?arguments.length-2:0),this)),st},j.unshift=function(){const st=it.apply(this,arguments),lt=this.$fastController;return lt!==void 0&<.addSplice(adjustIndex(newSplice(0,[],arguments.length),this)),st}}class RefBehavior{constructor(_e,et){this.target=_e,this.propertyName=et}bind(_e){_e[this.propertyName]=this.target}unbind(){}}function ref(j){return new AttachedBehaviorHTMLDirective("fast-ref",RefBehavior,j)}const isFunction$1=j=>typeof j=="function",noTemplate=()=>null;function normalizeBinding(j){return j===void 0?noTemplate:isFunction$1(j)?j:()=>j}function when(j,_e,et){const tt=isFunction$1(j)?j:()=>j,rt=normalizeBinding(_e),nt=normalizeBinding(et);return(ot,it)=>tt(ot,it)?rt(ot,it):nt(ot,it)}function bindWithoutPositioning(j,_e,et,tt){j.bind(_e[et],tt)}function bindWithPositioning(j,_e,et,tt){const rt=Object.create(tt);rt.index=et,rt.length=_e.length,j.bind(_e[et],rt)}class RepeatBehavior{constructor(_e,et,tt,rt,nt,ot){this.location=_e,this.itemsBinding=et,this.templateBinding=rt,this.options=ot,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=bindWithoutPositioning,this.itemsBindingObserver=Observable$1.binding(et,this,tt),this.templateBindingObserver=Observable$1.binding(rt,this,nt),ot.positioning&&(this.bindView=bindWithPositioning)}bind(_e,et){this.source=_e,this.originalContext=et,this.childContext=Object.create(et),this.childContext.parent=_e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(_e,this.originalContext),this.template=this.templateBindingObserver.observe(_e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(_e,et){_e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):_e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(et)}observeItems(_e=!1){if(!this.items){this.items=emptyArray;return}const et=this.itemsObserver,tt=this.itemsObserver=Observable$1.getNotifier(this.items),rt=et!==tt;rt&&et!==null&&et.unsubscribe(this),(rt||_e)&&tt.subscribe(this)}updateViews(_e){const et=this.childContext,tt=this.views,rt=this.bindView,nt=this.items,ot=this.template,it=this.options.recycle,st=[];let lt=0,ut=0;for(let ct=0,dt=_e.length;ct0?(gt<=xt&&_t.length>0?(St=_t[gt],gt++):(St=st[lt],lt++),ut--):St=ot.create(),tt.splice(mt,0,St),rt(St,nt,mt,et),St.insertBefore(Et)}_t[gt]&&st.push(..._t.slice(gt))}for(let ct=lt,dt=st.length;cttt.name===et),this.source=_e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(emptyArray),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let _e=this.getNodes();return this.options.filter!==void 0&&(_e=_e.filter(this.options.filter)),_e}updateTarget(_e){this.source[this.options.property]=_e}}class SlottedBehavior extends NodeObservationBehavior{constructor(_e,et){super(_e,et)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function slotted(j){return typeof j=="string"&&(j={property:j}),new AttachedBehaviorHTMLDirective("fast-slotted",SlottedBehavior,j)}class ChildrenBehavior extends NodeObservationBehavior{constructor(_e,et){super(_e,et),this.observer=null,et.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function children(j){return typeof j=="string"&&(j={property:j}),new AttachedBehaviorHTMLDirective("fast-children",ChildrenBehavior,j)}class StartEnd{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const endSlotTemplate=(j,_e)=>html` - _e.end?"end":void 0} - > - - ${_e.end||""} - - -`,startSlotTemplate=(j,_e)=>html` - - - ${_e.start||""} - - -`;html` - - - -`;html` - - - -`;/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function __decorate(j,_e,et,tt){var rt=arguments.length,nt=rt<3?_e:tt===null?tt=Object.getOwnPropertyDescriptor(_e,et):tt,ot;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")nt=Reflect.decorate(j,_e,et,tt);else for(var it=j.length-1;it>=0;it--)(ot=j[it])&&(nt=(rt<3?ot(nt):rt>3?ot(_e,et,nt):ot(_e,et))||nt);return rt>3&&nt&&Object.defineProperty(_e,et,nt),nt}const metadataByTarget=new Map;"metadata"in Reflect||(Reflect.metadata=function(j,_e){return function(et){Reflect.defineMetadata(j,_e,et)}},Reflect.defineMetadata=function(j,_e,et){let tt=metadataByTarget.get(et);tt===void 0&&metadataByTarget.set(et,tt=new Map),tt.set(j,_e)},Reflect.getOwnMetadata=function(j,_e){const et=metadataByTarget.get(_e);if(et!==void 0)return et.get(j)});class ResolverBuilder{constructor(_e,et){this.container=_e,this.key=et}instance(_e){return this.registerResolver(0,_e)}singleton(_e){return this.registerResolver(1,_e)}transient(_e){return this.registerResolver(2,_e)}callback(_e){return this.registerResolver(3,_e)}cachedCallback(_e){return this.registerResolver(3,cacheCallbackResult(_e))}aliasTo(_e){return this.registerResolver(5,_e)}registerResolver(_e,et){const{container:tt,key:rt}=this;return this.container=this.key=void 0,tt.registerResolver(rt,new ResolverImpl(rt,_e,et))}}function cloneArrayWithPossibleProps(j){const _e=j.slice(),et=Object.keys(j),tt=et.length;let rt;for(let nt=0;ntnull,responsibleForOwnerRequests:!1,defaultResolver:DefaultResolver.singleton})}),dependencyLookup=new Map;function getParamTypes(j){return _e=>Reflect.getOwnMetadata(j,_e)}let rootDOMContainer=null;const DI=Object.freeze({createContainer(j){return new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,j))},findResponsibleContainer(j){const _e=j.$$container$$;return _e&&_e.responsibleForOwnerRequests?_e:DI.findParentContainer(j)},findParentContainer(j){const _e=new CustomEvent(DILocateParentEventType,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return j.dispatchEvent(_e),_e.detail.container||DI.getOrCreateDOMContainer()},getOrCreateDOMContainer(j,_e){return j?j.$$container$$||new ContainerImpl(j,Object.assign({},ContainerConfiguration.default,_e,{parentLocator:DI.findParentContainer})):rootDOMContainer||(rootDOMContainer=new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,_e,{parentLocator:()=>null})))},getDesignParamtypes:getParamTypes("design:paramtypes"),getAnnotationParamtypes:getParamTypes("di:paramtypes"),getOrCreateAnnotationParamTypes(j){let _e=this.getAnnotationParamtypes(j);return _e===void 0&&Reflect.defineMetadata("di:paramtypes",_e=[],j),_e},getDependencies(j){let _e=dependencyLookup.get(j);if(_e===void 0){const et=j.inject;if(et===void 0){const tt=DI.getDesignParamtypes(j),rt=DI.getAnnotationParamtypes(j);if(tt===void 0)if(rt===void 0){const nt=Object.getPrototypeOf(j);typeof nt=="function"&&nt!==Function.prototype?_e=cloneArrayWithPossibleProps(DI.getDependencies(nt)):_e=[]}else _e=cloneArrayWithPossibleProps(rt);else if(rt===void 0)_e=cloneArrayWithPossibleProps(tt);else{_e=cloneArrayWithPossibleProps(tt);let nt=rt.length,ot;for(let lt=0;lt{const ut=DI.findResponsibleContainer(this).get(et),ct=this[rt];ut!==ct&&(this[rt]=nt,it.notify(_e))};it.subscribe({handleChange:st},"isConnected")}return nt}})},createInterface(j,_e){const et=typeof j=="function"?j:_e,tt=typeof j=="string"?j:j&&"friendlyName"in j&&j.friendlyName||defaultFriendlyName,rt=typeof j=="string"?!1:j&&"respectConnection"in j&&j.respectConnection||!1,nt=function(ot,it,st){if(ot==null||new.target!==void 0)throw new Error(`No registration for interface: '${nt.friendlyName}'`);if(it)DI.defineProperty(ot,it,nt,rt);else{const lt=DI.getOrCreateAnnotationParamTypes(ot);lt[st]=nt}};return nt.$isInterface=!0,nt.friendlyName=tt??"(anonymous)",et!=null&&(nt.register=function(ot,it){return et(new ResolverBuilder(ot,it??nt))}),nt.toString=function(){return`InterfaceSymbol<${nt.friendlyName}>`},nt},inject(...j){return function(_e,et,tt){if(typeof tt=="number"){const rt=DI.getOrCreateAnnotationParamTypes(_e),nt=j[0];nt!==void 0&&(rt[tt]=nt)}else if(et)DI.defineProperty(_e,et,j[0]);else{const rt=tt?DI.getOrCreateAnnotationParamTypes(tt.value):DI.getOrCreateAnnotationParamTypes(_e);let nt;for(let ot=0;ot{tt.composedPath()[0]!==this.owner&&(tt.detail.container=this,tt.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(_e,...et){return this.context=_e,this.register(...et),this.context=null,this}register(..._e){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let et,tt,rt,nt,ot;const it=this.context;for(let st=0,lt=_e.length;stthis}))}jitRegister(_e,et){if(typeof _e!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${_e}'. Did you forget to register this dependency?`);if(InstrinsicTypeNames.has(_e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${_e.name}. Did you forget to add @inject(Key)`);if(isRegistry(_e)){const tt=_e.register(et);if(!(tt instanceof Object)||tt.resolve==null){const rt=et.resolvers.get(_e);if(rt!=null)return rt;throw new Error("A valid resolver was not returned from the static register method")}return tt}else{if(_e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${_e.friendlyName}`);{const tt=this.config.defaultResolver(_e,et);return et.resolvers.set(_e,tt),tt}}}}const cache=new WeakMap;function cacheCallbackResult(j){return function(_e,et,tt){if(cache.has(tt))return cache.get(tt);const rt=j(_e,et,tt);return cache.set(tt,rt),rt}}const Registration=Object.freeze({instance(j,_e){return new ResolverImpl(j,0,_e)},singleton(j,_e){return new ResolverImpl(j,1,_e)},transient(j,_e){return new ResolverImpl(j,2,_e)},callback(j,_e){return new ResolverImpl(j,3,_e)},cachedCallback(j,_e){return new ResolverImpl(j,3,cacheCallbackResult(_e))},aliasTo(j,_e){return new ResolverImpl(_e,5,j)}});function validateKey(j){if(j==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function buildAllResponse(j,_e,et){if(j instanceof ResolverImpl&&j.strategy===4){const tt=j.state;let rt=tt.length;const nt=new Array(rt);for(;rt--;)nt[rt]=tt[rt].resolve(_e,et);return nt}return[j.resolve(_e,et)]}const defaultFriendlyName="(anonymous)";function isObject$5(j){return typeof j=="object"&&j!==null||typeof j=="function"}const isNativeFunction=function(){const j=new WeakMap;let _e=!1,et="",tt=0;return function(rt){return _e=j.get(rt),_e===void 0&&(et=rt.toString(),tt=et.length,_e=tt>=29&&tt<=100&&et.charCodeAt(tt-1)===125&&et.charCodeAt(tt-2)<=32&&et.charCodeAt(tt-3)===93&&et.charCodeAt(tt-4)===101&&et.charCodeAt(tt-5)===100&&et.charCodeAt(tt-6)===111&&et.charCodeAt(tt-7)===99&&et.charCodeAt(tt-8)===32&&et.charCodeAt(tt-9)===101&&et.charCodeAt(tt-10)===118&&et.charCodeAt(tt-11)===105&&et.charCodeAt(tt-12)===116&&et.charCodeAt(tt-13)===97&&et.charCodeAt(tt-14)===110&&et.charCodeAt(tt-15)===88,j.set(rt,_e)),_e}}(),isNumericLookup={};function isArrayIndex(j){switch(typeof j){case"number":return j>=0&&(j|0)===j;case"string":{const _e=isNumericLookup[j];if(_e!==void 0)return _e;const et=j.length;if(et===0)return isNumericLookup[j]=!1;let tt=0;for(let rt=0;rt1||tt<48||tt>57)return isNumericLookup[j]=!1;return isNumericLookup[j]=!0}default:return!1}}function presentationKeyFromTag(j){return`${j.toLowerCase()}:presentation`}const presentationRegistry=new Map,ComponentPresentation=Object.freeze({define(j,_e,et){const tt=presentationKeyFromTag(j);presentationRegistry.get(tt)===void 0?presentationRegistry.set(tt,_e):presentationRegistry.set(tt,!1),et.register(Registration.instance(tt,_e))},forTag(j,_e){const et=presentationKeyFromTag(j),tt=presentationRegistry.get(et);return tt===!1?DI.findResponsibleContainer(_e).get(et):tt||null}});class DefaultComponentPresentation{constructor(_e,et){this.template=_e||null,this.styles=et===void 0?null:Array.isArray(et)?ElementStyles.create(et):et instanceof ElementStyles?et:ElementStyles.create([et])}applyTo(_e){const et=_e.$fastController;et.template===null&&(et.template=this.template),et.styles===null&&(et.styles=this.styles)}}class FoundationElement extends FASTElement{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=ComponentPresentation.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(_e){return(et={})=>new FoundationElementRegistry(this===FoundationElement?class extends FoundationElement{}:this,_e,et)}}__decorate([observable],FoundationElement.prototype,"template",void 0);__decorate([observable],FoundationElement.prototype,"styles",void 0);function resolveOption(j,_e,et){return typeof j=="function"?j(_e,et):j}class FoundationElementRegistry{constructor(_e,et,tt){this.type=_e,this.elementDefinition=et,this.overrideDefinition=tt,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(_e,et){const tt=this.definition,rt=this.overrideDefinition,ot=`${tt.prefix||et.elementPrefix}-${tt.baseName}`;et.tryDefineElement({name:ot,type:this.type,baseClass:this.elementDefinition.baseClass,callback:it=>{const st=new DefaultComponentPresentation(resolveOption(tt.template,it,tt),resolveOption(tt.styles,it,tt));it.definePresentation(st);let lt=resolveOption(tt.shadowOptions,it,tt);it.shadowRootMode&&(lt?rt.shadowOptions||(lt.mode=it.shadowRootMode):lt!==null&&(lt={mode:it.shadowRootMode})),it.defineElement({elementOptions:resolveOption(tt.elementOptions,it,tt),shadowOptions:lt,attributes:resolveOption(tt.attributes,it,tt)})}})}}function applyMixins(j,..._e){const et=AttributeConfiguration.locate(j);_e.forEach(tt=>{Object.getOwnPropertyNames(tt.prototype).forEach(nt=>{nt!=="constructor"&&Object.defineProperty(j.prototype,nt,Object.getOwnPropertyDescriptor(tt.prototype,nt))}),AttributeConfiguration.locate(tt).forEach(nt=>et.push(nt))})}const Orientation={horizontal:"horizontal",vertical:"vertical"};function findLastIndex(j,_e){let et=j.length;for(;et--;)if(_e(j[et],et,j))return et;return-1}function canUseDOM$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function isHTMLElement$1(...j){return j.every(_e=>_e instanceof HTMLElement)}function getNonce(){const j=document.querySelector('meta[property="csp-nonce"]');return j?j.getAttribute("content"):null}let _canUseFocusVisible;function canUseFocusVisible(){if(typeof _canUseFocusVisible=="boolean")return _canUseFocusVisible;if(!canUseDOM$1())return _canUseFocusVisible=!1,_canUseFocusVisible;const j=document.createElement("style"),_e=getNonce();_e!==null&&j.setAttribute("nonce",_e),document.head.appendChild(j);try{j.sheet.insertRule("foo:focus-visible {color:inherit}",0),_canUseFocusVisible=!0}catch{_canUseFocusVisible=!1}finally{document.head.removeChild(j)}return _canUseFocusVisible}const eventFocus="focus",eventFocusIn="focusin",eventFocusOut="focusout",eventKeyDown="keydown";var KeyCodes;(function(j){j[j.alt=18]="alt",j[j.arrowDown=40]="arrowDown",j[j.arrowLeft=37]="arrowLeft",j[j.arrowRight=39]="arrowRight",j[j.arrowUp=38]="arrowUp",j[j.back=8]="back",j[j.backSlash=220]="backSlash",j[j.break=19]="break",j[j.capsLock=20]="capsLock",j[j.closeBracket=221]="closeBracket",j[j.colon=186]="colon",j[j.colon2=59]="colon2",j[j.comma=188]="comma",j[j.ctrl=17]="ctrl",j[j.delete=46]="delete",j[j.end=35]="end",j[j.enter=13]="enter",j[j.equals=187]="equals",j[j.equals2=61]="equals2",j[j.equals3=107]="equals3",j[j.escape=27]="escape",j[j.forwardSlash=191]="forwardSlash",j[j.function1=112]="function1",j[j.function10=121]="function10",j[j.function11=122]="function11",j[j.function12=123]="function12",j[j.function2=113]="function2",j[j.function3=114]="function3",j[j.function4=115]="function4",j[j.function5=116]="function5",j[j.function6=117]="function6",j[j.function7=118]="function7",j[j.function8=119]="function8",j[j.function9=120]="function9",j[j.home=36]="home",j[j.insert=45]="insert",j[j.menu=93]="menu",j[j.minus=189]="minus",j[j.minus2=109]="minus2",j[j.numLock=144]="numLock",j[j.numPad0=96]="numPad0",j[j.numPad1=97]="numPad1",j[j.numPad2=98]="numPad2",j[j.numPad3=99]="numPad3",j[j.numPad4=100]="numPad4",j[j.numPad5=101]="numPad5",j[j.numPad6=102]="numPad6",j[j.numPad7=103]="numPad7",j[j.numPad8=104]="numPad8",j[j.numPad9=105]="numPad9",j[j.numPadDivide=111]="numPadDivide",j[j.numPadDot=110]="numPadDot",j[j.numPadMinus=109]="numPadMinus",j[j.numPadMultiply=106]="numPadMultiply",j[j.numPadPlus=107]="numPadPlus",j[j.openBracket=219]="openBracket",j[j.pageDown=34]="pageDown",j[j.pageUp=33]="pageUp",j[j.period=190]="period",j[j.print=44]="print",j[j.quote=222]="quote",j[j.scrollLock=145]="scrollLock",j[j.shift=16]="shift",j[j.space=32]="space",j[j.tab=9]="tab",j[j.tilde=192]="tilde",j[j.windowsLeft=91]="windowsLeft",j[j.windowsOpera=219]="windowsOpera",j[j.windowsRight=92]="windowsRight"})(KeyCodes||(KeyCodes={}));const keyArrowDown="ArrowDown",keyArrowLeft="ArrowLeft",keyArrowRight="ArrowRight",keyArrowUp="ArrowUp",keyEnter="Enter",keyEscape="Escape",keyHome="Home",keyEnd="End",keyFunction2="F2",keyPageDown="PageDown",keyPageUp="PageUp",keySpace=" ",keyTab="Tab",ArrowKeys={ArrowDown:keyArrowDown,ArrowLeft:keyArrowLeft,ArrowRight:keyArrowRight,ArrowUp:keyArrowUp};var Direction;(function(j){j.ltr="ltr",j.rtl="rtl"})(Direction||(Direction={}));function limit(j,_e,et){return Math.min(Math.max(et,j),_e)}function inRange(j,_e,et=0){return[_e,et]=[_e,et].sort((tt,rt)=>tt-rt),_e<=j&&jhtml` - - ${startSlotTemplate(j,_e)} - - - - ${endSlotTemplate(j,_e)} - -`;class ARIAGlobalStatesAndProperties{}__decorate([attr({attribute:"aria-atomic"})],ARIAGlobalStatesAndProperties.prototype,"ariaAtomic",void 0);__decorate([attr({attribute:"aria-busy"})],ARIAGlobalStatesAndProperties.prototype,"ariaBusy",void 0);__decorate([attr({attribute:"aria-controls"})],ARIAGlobalStatesAndProperties.prototype,"ariaControls",void 0);__decorate([attr({attribute:"aria-current"})],ARIAGlobalStatesAndProperties.prototype,"ariaCurrent",void 0);__decorate([attr({attribute:"aria-describedby"})],ARIAGlobalStatesAndProperties.prototype,"ariaDescribedby",void 0);__decorate([attr({attribute:"aria-details"})],ARIAGlobalStatesAndProperties.prototype,"ariaDetails",void 0);__decorate([attr({attribute:"aria-disabled"})],ARIAGlobalStatesAndProperties.prototype,"ariaDisabled",void 0);__decorate([attr({attribute:"aria-errormessage"})],ARIAGlobalStatesAndProperties.prototype,"ariaErrormessage",void 0);__decorate([attr({attribute:"aria-flowto"})],ARIAGlobalStatesAndProperties.prototype,"ariaFlowto",void 0);__decorate([attr({attribute:"aria-haspopup"})],ARIAGlobalStatesAndProperties.prototype,"ariaHaspopup",void 0);__decorate([attr({attribute:"aria-hidden"})],ARIAGlobalStatesAndProperties.prototype,"ariaHidden",void 0);__decorate([attr({attribute:"aria-invalid"})],ARIAGlobalStatesAndProperties.prototype,"ariaInvalid",void 0);__decorate([attr({attribute:"aria-keyshortcuts"})],ARIAGlobalStatesAndProperties.prototype,"ariaKeyshortcuts",void 0);__decorate([attr({attribute:"aria-label"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabel",void 0);__decorate([attr({attribute:"aria-labelledby"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabelledby",void 0);__decorate([attr({attribute:"aria-live"})],ARIAGlobalStatesAndProperties.prototype,"ariaLive",void 0);__decorate([attr({attribute:"aria-owns"})],ARIAGlobalStatesAndProperties.prototype,"ariaOwns",void 0);__decorate([attr({attribute:"aria-relevant"})],ARIAGlobalStatesAndProperties.prototype,"ariaRelevant",void 0);__decorate([attr({attribute:"aria-roledescription"})],ARIAGlobalStatesAndProperties.prototype,"ariaRoledescription",void 0);class Anchor extends FoundationElement{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var _e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((_e=this.$fastController.definition.shadowOptions)===null||_e===void 0)&&_e.delegatesFocus)&&(this.focus=()=>{var et;(et=this.control)===null||et===void 0||et.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}__decorate([attr],Anchor.prototype,"download",void 0);__decorate([attr],Anchor.prototype,"href",void 0);__decorate([attr],Anchor.prototype,"hreflang",void 0);__decorate([attr],Anchor.prototype,"ping",void 0);__decorate([attr],Anchor.prototype,"referrerpolicy",void 0);__decorate([attr],Anchor.prototype,"rel",void 0);__decorate([attr],Anchor.prototype,"target",void 0);__decorate([attr],Anchor.prototype,"type",void 0);__decorate([observable],Anchor.prototype,"defaultSlottedContent",void 0);class DelegatesARIALink{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIALink.prototype,"ariaExpanded",void 0);applyMixins(DelegatesARIALink,ARIAGlobalStatesAndProperties);applyMixins(Anchor,StartEnd,DelegatesARIALink);const getDirection=j=>{const _e=j.closest("[dir]");return _e!==null&&_e.dir==="rtl"?Direction.rtl:Direction.ltr},badgeTemplate=(j,_e)=>html` - -`;let Badge$1=class extends FoundationElement{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const _e=`background-color: var(--badge-fill-${this.fill});`,et=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?_e:this.color&&!this.fill?et:`${et} ${_e}`}}};__decorate([attr({attribute:"fill"})],Badge$1.prototype,"fill",void 0);__decorate([attr({attribute:"color"})],Badge$1.prototype,"color",void 0);__decorate([attr({mode:"boolean"})],Badge$1.prototype,"circular",void 0);const buttonTemplate=(j,_e)=>html` - -`,proxySlotName="form-associated-proxy",ElementInternalsKey="ElementInternals",supportsElementInternals=ElementInternalsKey in window&&"setFormValue"in window[ElementInternalsKey].prototype,InternalsMap=new WeakMap;function FormAssociated(j){const _e=class extends j{constructor(...et){super(...et),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return supportsElementInternals}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const et=this.proxy.labels,tt=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),rt=et?tt.concat(Array.from(et)):tt;return Object.freeze(rt)}else return emptyArray}valueChanged(et,tt){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(et,tt){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(et,tt){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),DOM.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(et,tt){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(et,tt){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),DOM.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!supportsElementInternals)return null;let et=InternalsMap.get(this);return et||(et=this.attachInternals(),InternalsMap.set(this,et)),et}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(et=>this.proxy.removeEventListener(et,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(et,tt,rt){this.elementInternals?this.elementInternals.setValidity(et,tt,rt):typeof tt=="string"&&this.proxy.setCustomValidity(tt)}formDisabledCallback(et){this.disabled=et}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var et;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(tt=>this.proxy.addEventListener(tt,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",proxySlotName),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",proxySlotName)),(et=this.shadowRoot)===null||et===void 0||et.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var et;this.removeChild(this.proxy),(et=this.shadowRoot)===null||et===void 0||et.removeChild(this.proxySlot)}validate(et){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,et)}setFormValue(et,tt){this.elementInternals&&this.elementInternals.setFormValue(et,tt||et)}_keypressHandler(et){switch(et.key){case keyEnter:if(this.form instanceof HTMLFormElement){const tt=this.form.querySelector("[type=submit]");tt==null||tt.click()}break}}stopPropagation(et){et.stopPropagation()}};return attr({mode:"boolean"})(_e.prototype,"disabled"),attr({mode:"fromView",attribute:"value"})(_e.prototype,"initialValue"),attr({attribute:"current-value"})(_e.prototype,"currentValue"),attr(_e.prototype,"name"),attr({mode:"boolean"})(_e.prototype,"required"),observable(_e.prototype,"value"),_e}function CheckableFormAssociated(j){class _e extends FormAssociated(j){}class et extends _e{constructor(...rt){super(rt),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(rt,nt){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),rt!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(rt,nt){this.checked=this.currentChecked}updateForm(){const rt=this.checked?this.value:null;this.setFormValue(rt,rt)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return attr({attribute:"checked",mode:"boolean"})(et.prototype,"checkedAttribute"),attr({attribute:"current-checked",converter:booleanConverter})(et.prototype,"currentChecked"),observable(et.prototype,"defaultChecked"),observable(et.prototype,"checked"),et}class _Button extends FoundationElement{}class FormAssociatedButton extends FormAssociated(_Button){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Button$1=class extends FormAssociatedButton{constructor(){super(...arguments),this.handleClick=_e=>{var et;this.disabled&&((et=this.defaultSlottedContent)===null||et===void 0?void 0:et.length)<=1&&_e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const _e=this.proxy.isConnected;_e||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),_e||this.detachProxy()},this.handleFormReset=()=>{var _e;(_e=this.form)===null||_e===void 0||_e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var _e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((_e=this.$fastController.definition.shadowOptions)===null||_e===void 0)&&_e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(_e,et){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),et==="submit"&&this.addEventListener("click",this.handleSubmission),_e==="submit"&&this.removeEventListener("click",this.handleSubmission),et==="reset"&&this.addEventListener("click",this.handleFormReset),_e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var _e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const et=Array.from((_e=this.control)===null||_e===void 0?void 0:_e.children);et&&et.forEach(tt=>{tt.addEventListener("click",this.handleClick)})}disconnectedCallback(){var _e;super.disconnectedCallback();const et=Array.from((_e=this.control)===null||_e===void 0?void 0:_e.children);et&&et.forEach(tt=>{tt.removeEventListener("click",this.handleClick)})}};__decorate([attr({mode:"boolean"})],Button$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],Button$1.prototype,"formId",void 0);__decorate([attr],Button$1.prototype,"formaction",void 0);__decorate([attr],Button$1.prototype,"formenctype",void 0);__decorate([attr],Button$1.prototype,"formmethod",void 0);__decorate([attr({mode:"boolean"})],Button$1.prototype,"formnovalidate",void 0);__decorate([attr],Button$1.prototype,"formtarget",void 0);__decorate([attr],Button$1.prototype,"type",void 0);__decorate([observable],Button$1.prototype,"defaultSlottedContent",void 0);class DelegatesARIAButton{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIAButton.prototype,"ariaExpanded",void 0);__decorate([attr({attribute:"aria-pressed"})],DelegatesARIAButton.prototype,"ariaPressed",void 0);applyMixins(DelegatesARIAButton,ARIAGlobalStatesAndProperties);applyMixins(Button$1,StartEnd,DelegatesARIAButton);const GenerateHeaderOptions={none:"none",default:"default",sticky:"sticky"},DataGridCellTypes={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},DataGridRowTypes={default:"default",header:"header",stickyHeader:"sticky-header"};let DataGridRow$1=class extends FoundationElement{constructor(){super(...arguments),this.rowType=DataGridRowTypes.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new RepeatDirective(_e=>_e.columnDefinitions,_e=>_e.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown)}handleFocusout(_e){this.contains(_e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(_e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(_e.target),this.$emit("row-focused",this)}handleKeydown(_e){if(_e.defaultPrevented)return;let et=0;switch(_e.key){case keyArrowLeft:et=Math.max(0,this.focusColumnIndex-1),this.cellElements[et].focus(),_e.preventDefault();break;case keyArrowRight:et=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[et].focus(),_e.preventDefault();break;case keyHome:_e.ctrlKey||(this.cellElements[0].focus(),_e.preventDefault());break;case keyEnd:_e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),_e.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===DataGridRowTypes.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===DataGridRowTypes.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};__decorate([attr({attribute:"grid-template-columns"})],DataGridRow$1.prototype,"gridTemplateColumns",void 0);__decorate([attr({attribute:"row-type"})],DataGridRow$1.prototype,"rowType",void 0);__decorate([observable],DataGridRow$1.prototype,"rowData",void 0);__decorate([observable],DataGridRow$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGridRow$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"rowIndex",void 0);__decorate([observable],DataGridRow$1.prototype,"isActiveRow",void 0);__decorate([observable],DataGridRow$1.prototype,"activeCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultHeaderCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"cellElements",void 0);function createRowItemTemplate(j){const _e=j.tagFor(DataGridRow$1);return html` - <${_e} - :rowData="${et=>et}" - :cellItemTemplate="${(et,tt)=>tt.parent.cellItemTemplate}" - :headerCellItemTemplate="${(et,tt)=>tt.parent.headerCellItemTemplate}" - > -`}const dataGridTemplate=(j,_e)=>{const et=createRowItemTemplate(j),tt=j.tagFor(DataGridRow$1);return html` - - `};let DataGrid$1=class Vp extends FoundationElement{constructor(){super(),this.noTabbing=!1,this.generateHeader=GenerateHeaderOptions.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(_e,et,tt)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const rt=Math.max(0,Math.min(this.rowElements.length-1,_e)),ot=this.rowElements[rt].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),it=Math.max(0,Math.min(ot.length-1,et)),st=ot[it];tt&&this.scrollHeight!==this.clientHeight&&(rt0||rt>this.focusRowIndex&&this.scrollTop{_e&&_e.length&&(_e.forEach(tt=>{tt.addedNodes.forEach(rt=>{rt.nodeType===1&&rt.getAttribute("role")==="row"&&(rt.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,DOM.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let _e=this.gridTemplateColumns;if(_e===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const et=this.rowElements[0];this.generatedGridTemplateColumns=new Array(et.cellElements.length).fill("1fr").join(" ")}_e=this.generatedGridTemplateColumns}this.rowElements.forEach((et,tt)=>{const rt=et;rt.rowIndex=tt,rt.gridTemplateColumns=_e,this.columnDefinitionsStale&&(rt.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(_e){let et="";return _e.forEach(tt=>{et=`${et}${et===""?"":" "}1fr`}),et}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Vp.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Vp.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new RepeatDirective(_e=>_e.rowsData,_e=>_e.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(eventFocus,this.handleFocus),this.addEventListener(eventKeyDown,this.handleKeydown),this.addEventListener(eventFocusOut,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(eventFocus,this.handleFocus),this.removeEventListener(eventKeyDown,this.handleKeydown),this.removeEventListener(eventFocusOut,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(_e){this.isUpdatingFocus=!0;const et=_e.target;this.focusRowIndex=this.rowElements.indexOf(et),this.focusColumnIndex=et.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(_e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(_e){(_e.relatedTarget===null||!this.contains(_e.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(_e){if(_e.defaultPrevented)return;let et;const tt=this.rowElements.length-1,rt=this.offsetHeight+this.scrollTop,nt=this.rowElements[tt];switch(_e.key){case keyArrowUp:_e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case keyArrowDown:_e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case keyPageUp:if(_e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(et=this.focusRowIndex-1,et;et>=0;et--){const ot=this.rowElements[et];if(ot.offsetTop=tt||nt.offsetTop+nt.offsetHeight<=rt){this.focusOnCell(tt,this.focusColumnIndex,!1);return}for(et=this.focusRowIndex+1,et;et<=tt;et++){const ot=this.rowElements[et];if(ot.offsetTop+ot.offsetHeight>rt){let it=0;this.generateHeader===GenerateHeaderOptions.sticky&&this.generatedHeader!==null&&(it=this.generatedHeader.clientHeight),this.scrollTop=ot.offsetTop-it;break}}this.focusOnCell(et,this.focusColumnIndex,!1);break;case keyHome:_e.ctrlKey&&(_e.preventDefault(),this.focusOnCell(0,0,!0));break;case keyEnd:_e.ctrlKey&&this.columnDefinitions!==null&&(_e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,DOM.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==GenerateHeaderOptions.none&&this.rowsData.length>0){const _e=document.createElement(this.rowElementTag);this.generatedHeader=_e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===GenerateHeaderOptions.sticky?DataGridRowTypes.stickyHeader:DataGridRowTypes.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(_e,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};DataGrid$1.generateColumns=j=>Object.getOwnPropertyNames(j).map((_e,et)=>({columnDataKey:_e,gridColumn:`${et}`}));__decorate([attr({attribute:"no-tabbing",mode:"boolean"})],DataGrid$1.prototype,"noTabbing",void 0);__decorate([attr({attribute:"generate-header"})],DataGrid$1.prototype,"generateHeader",void 0);__decorate([attr({attribute:"grid-template-columns"})],DataGrid$1.prototype,"gridTemplateColumns",void 0);__decorate([observable],DataGrid$1.prototype,"rowsData",void 0);__decorate([observable],DataGrid$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGrid$1.prototype,"rowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"focusRowIndex",void 0);__decorate([observable],DataGrid$1.prototype,"focusColumnIndex",void 0);__decorate([observable],DataGrid$1.prototype,"defaultRowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"rowElementTag",void 0);__decorate([observable],DataGrid$1.prototype,"rowElements",void 0);const defaultCellContentsTemplate=html` - -`,defaultHeaderCellContentsTemplate=html` - -`;let DataGridCell$1=class extends FoundationElement{constructor(){super(...arguments),this.cellType=DataGridCellTypes.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(_e,et){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var _e;super.connectedCallback(),this.addEventListener(eventFocusIn,this.handleFocusin),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.style.gridColumn=`${((_e=this.columnDefinition)===null||_e===void 0?void 0:_e.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(eventFocusIn,this.handleFocusin),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown),this.disconnectCellView()}handleFocusin(_e){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const et=this.columnDefinition.headerCellFocusTargetCallback(this);et!==null&&et.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const et=this.columnDefinition.cellFocusTargetCallback(this);et!==null&&et.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(_e){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(_e){if(!(_e.defaultPrevented||this.columnDefinition===null||this.cellType===DataGridCellTypes.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===DataGridCellTypes.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(_e.key){case keyEnter:case keyFunction2:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const et=this.columnDefinition.headerCellFocusTargetCallback(this);et!==null&&et.focus(),_e.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const et=this.columnDefinition.cellFocusTargetCallback(this);et!==null&&et.focus(),_e.preventDefault()}break}break;case keyEscape:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),_e.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case DataGridCellTypes.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=defaultHeaderCellContentsTemplate.render(this,this);break;case void 0:case DataGridCellTypes.rowHeader:case DataGridCellTypes.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=defaultCellContentsTemplate.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};__decorate([attr({attribute:"cell-type"})],DataGridCell$1.prototype,"cellType",void 0);__decorate([attr({attribute:"grid-column"})],DataGridCell$1.prototype,"gridColumn",void 0);__decorate([observable],DataGridCell$1.prototype,"rowData",void 0);__decorate([observable],DataGridCell$1.prototype,"columnDefinition",void 0);function createCellItemTemplate(j){const _e=j.tagFor(DataGridCell$1);return html` - <${_e} - cell-type="${et=>et.isRowHeader?"rowheader":void 0}" - grid-column="${(et,tt)=>tt.index+1}" - :rowData="${(et,tt)=>tt.parent.rowData}" - :columnDefinition="${et=>et}" - > -`}function createHeaderCellItemTemplate(j){const _e=j.tagFor(DataGridCell$1);return html` - <${_e} - cell-type="columnheader" - grid-column="${(et,tt)=>tt.index+1}" - :columnDefinition="${et=>et}" - > -`}const dataGridRowTemplate=(j,_e)=>{const et=createCellItemTemplate(j),tt=createHeaderCellItemTemplate(j);return html` - - `},dataGridCellTemplate=(j,_e)=>html` - - `,checkboxTemplate=(j,_e)=>html` - -`;class _Checkbox extends FoundationElement{}class FormAssociatedCheckbox extends CheckableFormAssociated(_Checkbox){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Checkbox$1=class extends FormAssociatedCheckbox{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=_e=>{if(!this.readOnly)switch(_e.key){case keySpace:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=_e=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Checkbox$1.prototype,"readOnly",void 0);__decorate([observable],Checkbox$1.prototype,"defaultSlottedNodes",void 0);__decorate([observable],Checkbox$1.prototype,"indeterminate",void 0);function isListboxOption(j){return isHTMLElement$1(j)&&(j.getAttribute("role")==="option"||j instanceof HTMLOptionElement)}class ListboxOption extends FoundationElement{constructor(_e,et,tt,rt){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,_e&&(this.textContent=_e),et&&(this.initialValue=et),tt&&(this.defaultSelected=tt),rt&&(this.selected=rt),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(_e,et){if(typeof et=="boolean"){this.ariaChecked=et?"true":"false";return}this.ariaChecked=null}contentChanged(_e,et){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(_e,et){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(_e,et){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var _e;return(_e=this.value)!==null&&_e!==void 0?_e:this.text}get text(){var _e,et;return(et=(_e=this.textContent)===null||_e===void 0?void 0:_e.replace(/\s+/g," ").trim())!==null&&et!==void 0?et:""}set value(_e){const et=`${_e??""}`;this._value=et,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=et),Observable$1.notify(this,"value")}get value(){var _e;return Observable$1.track(this,"value"),(_e=this._value)!==null&&_e!==void 0?_e:this.text}get form(){return this.proxy?this.proxy.form:null}}__decorate([observable],ListboxOption.prototype,"checked",void 0);__decorate([observable],ListboxOption.prototype,"content",void 0);__decorate([observable],ListboxOption.prototype,"defaultSelected",void 0);__decorate([attr({mode:"boolean"})],ListboxOption.prototype,"disabled",void 0);__decorate([attr({attribute:"selected",mode:"boolean"})],ListboxOption.prototype,"selectedAttribute",void 0);__decorate([observable],ListboxOption.prototype,"selected",void 0);__decorate([attr({attribute:"value",mode:"fromView"})],ListboxOption.prototype,"initialValue",void 0);class DelegatesARIAListboxOption{}__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaChecked",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaPosInSet",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSelected",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSetSize",void 0);applyMixins(DelegatesARIAListboxOption,ARIAGlobalStatesAndProperties);applyMixins(ListboxOption,StartEnd,DelegatesARIAListboxOption);class Listbox extends FoundationElement{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var _e;return(_e=this.selectedOptions[0])!==null&&_e!==void 0?_e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(_e=>_e.disabled)}get length(){var _e,et;return(et=(_e=this.options)===null||_e===void 0?void 0:_e.length)!==null&&et!==void 0?et:0}get options(){return Observable$1.track(this,"options"),this._options}set options(_e){this._options=_e,Observable$1.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(_e){this.typeaheadExpired=_e}clickHandler(_e){const et=_e.target.closest("option,[role=option]");if(et&&!et.disabled)return this.selectedIndex=this.options.indexOf(et),!0}focusAndScrollOptionIntoView(_e=this.firstSelectedOption){this.contains(document.activeElement)&&_e!==null&&(_e.focus(),requestAnimationFrame(()=>{_e.scrollIntoView({block:"nearest"})}))}focusinHandler(_e){!this.shouldSkipFocus&&_e.target===_e.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const _e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),et=new RegExp(`^${_e}`,"gi");return this.options.filter(tt=>tt.text.trim().match(et))}getSelectableIndex(_e=this.selectedIndex,et){const tt=_e>et?-1:_e!ot&&!it.disabled&&st!ot&&!it.disabled&&st>rt?it:ot,nt);break}}return this.options.indexOf(nt)}handleChange(_e,et){switch(et){case"selected":{Listbox.slottedOptionFilter(_e)&&(this.selectedIndex=this.options.indexOf(_e)),this.setSelectedOptions();break}}}handleTypeAhead(_e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Listbox.TYPE_AHEAD_TIMEOUT_MS),!(_e.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${_e}`)}keydownHandler(_e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const et=_e.key;switch(et){case keyHome:{_e.shiftKey||(_e.preventDefault(),this.selectFirstOption());break}case keyArrowDown:{_e.shiftKey||(_e.preventDefault(),this.selectNextOption());break}case keyArrowUp:{_e.shiftKey||(_e.preventDefault(),this.selectPreviousOption());break}case keyEnd:{_e.preventDefault(),this.selectLastOption();break}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEnter:case keyEscape:return!0;case keySpace:if(this.typeaheadExpired)return!0;default:return et.length===1&&this.handleTypeAhead(`${et}`),!0}}mousedownHandler(_e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(_e,et){this.ariaMultiSelectable=et?"true":null}selectedIndexChanged(_e,et){var tt;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((tt=this.options[this.selectedIndex])===null||tt===void 0)&&tt.disabled&&typeof _e=="number"){const rt=this.getSelectableIndex(_e,et),nt=rt>-1?rt:_e;this.selectedIndex=nt,et===nt&&this.selectedIndexChanged(et,nt);return}this.setSelectedOptions()}selectedOptionsChanged(_e,et){var tt;const rt=et.filter(Listbox.slottedOptionFilter);(tt=this.options)===null||tt===void 0||tt.forEach(nt=>{const ot=Observable$1.getNotifier(nt);ot.unsubscribe(this,"selected"),nt.selected=rt.includes(nt),ot.subscribe(this,"selected")})}selectFirstOption(){var _e,et;this.disabled||(this.selectedIndex=(et=(_e=this.options)===null||_e===void 0?void 0:_e.findIndex(tt=>!tt.disabled))!==null&&et!==void 0?et:-1)}selectLastOption(){this.disabled||(this.selectedIndex=findLastIndex(this.options,_e=>!_e.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var _e,et;this.selectedIndex=(et=(_e=this.options)===null||_e===void 0?void 0:_e.findIndex(tt=>tt.defaultSelected))!==null&&et!==void 0?et:-1}setSelectedOptions(){var _e,et,tt;!((_e=this.options)===null||_e===void 0)&&_e.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(tt=(et=this.firstSelectedOption)===null||et===void 0?void 0:et.id)!==null&&tt!==void 0?tt:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(_e,et){this.options=et.reduce((rt,nt)=>(isListboxOption(nt)&&rt.push(nt),rt),[]);const tt=`${this.options.length}`;this.options.forEach((rt,nt)=>{rt.id||(rt.id=uniqueId$1("option-")),rt.ariaPosInSet=`${nt+1}`,rt.ariaSetSize=tt}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(_e,et){if(this.$fastController.isConnected){const tt=this.getTypeaheadMatches();if(tt.length){const rt=this.options.indexOf(tt[0]);rt>-1&&(this.selectedIndex=rt)}this.typeaheadExpired=!1}}}Listbox.slottedOptionFilter=j=>isListboxOption(j)&&!j.hidden;Listbox.TYPE_AHEAD_TIMEOUT_MS=1e3;__decorate([attr({mode:"boolean"})],Listbox.prototype,"disabled",void 0);__decorate([observable],Listbox.prototype,"selectedIndex",void 0);__decorate([observable],Listbox.prototype,"selectedOptions",void 0);__decorate([observable],Listbox.prototype,"slottedOptions",void 0);__decorate([observable],Listbox.prototype,"typeaheadBuffer",void 0);class DelegatesARIAListbox{}__decorate([observable],DelegatesARIAListbox.prototype,"ariaActiveDescendant",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaDisabled",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaExpanded",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaMultiSelectable",void 0);applyMixins(DelegatesARIAListbox,ARIAGlobalStatesAndProperties);applyMixins(Listbox,DelegatesARIAListbox);const SelectPosition={above:"above",below:"below"};function composedParent(j){const _e=j.parentElement;if(_e)return _e;{const et=j.getRootNode();if(et.host instanceof HTMLElement)return et.host}return null}function composedContains(j,_e){let et=_e;for(;et!==null;){if(et===j)return!0;et=composedParent(et)}return!1}const defaultElement=document.createElement("div");function isFastElement(j){return j instanceof FASTElement}class QueuedStyleSheetTarget{setProperty(_e,et){DOM.queueUpdate(()=>this.target.setProperty(_e,et))}removeProperty(_e){DOM.queueUpdate(()=>this.target.removeProperty(_e))}}class ConstructableStyleSheetTarget extends QueuedStyleSheetTarget{constructor(_e){super();const et=new CSSStyleSheet;this.target=et.cssRules[et.insertRule(":host{}")].style,_e.$fastController.addStyles(ElementStyles.create([et]))}}class DocumentStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super();const _e=new CSSStyleSheet;this.target=_e.cssRules[_e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,_e]}}class HeadStyleElementStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:_e}=this.style;if(_e){const et=_e.insertRule(":root{}",_e.cssRules.length);this.target=_e.cssRules[et].style}}}class StyleElementStyleSheetTarget{constructor(_e){this.store=new Map,this.target=null;const et=_e.$fastController;this.style=document.createElement("style"),et.addStyles(this.style),Observable$1.getNotifier(et).subscribe(this,"isConnected"),this.handleChange(et,"isConnected")}targetChanged(){if(this.target!==null)for(const[_e,et]of this.store.entries())this.target.setProperty(_e,et)}setProperty(_e,et){this.store.set(_e,et),DOM.queueUpdate(()=>{this.target!==null&&this.target.setProperty(_e,et)})}removeProperty(_e){this.store.delete(_e),DOM.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(_e)})}handleChange(_e,et){const{sheet:tt}=this.style;if(tt){const rt=tt.insertRule(":host{}",tt.cssRules.length);this.target=tt.cssRules[rt].style}else this.target=null}}__decorate([observable],StyleElementStyleSheetTarget.prototype,"target",void 0);class ElementStyleSheetTarget{constructor(_e){this.target=_e.style}setProperty(_e,et){DOM.queueUpdate(()=>this.target.setProperty(_e,et))}removeProperty(_e){DOM.queueUpdate(()=>this.target.removeProperty(_e))}}class RootStyleSheetTarget{setProperty(_e,et){RootStyleSheetTarget.properties[_e]=et;for(const tt of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(tt)).setProperty(_e,et)}removeProperty(_e){delete RootStyleSheetTarget.properties[_e];for(const et of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(et)).removeProperty(_e)}static registerRoot(_e){const{roots:et}=RootStyleSheetTarget;if(!et.has(_e)){et.add(_e);const tt=PropertyTargetManager.getOrCreate(this.normalizeRoot(_e));for(const rt in RootStyleSheetTarget.properties)tt.setProperty(rt,RootStyleSheetTarget.properties[rt])}}static unregisterRoot(_e){const{roots:et}=RootStyleSheetTarget;if(et.has(_e)){et.delete(_e);const tt=PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(_e));for(const rt in RootStyleSheetTarget.properties)tt.removeProperty(rt)}}static normalizeRoot(_e){return _e===defaultElement?document:_e}}RootStyleSheetTarget.roots=new Set;RootStyleSheetTarget.properties={};const propertyTargetCache=new WeakMap,propertyTargetCtor=DOM.supportsAdoptedStyleSheets?ConstructableStyleSheetTarget:StyleElementStyleSheetTarget,PropertyTargetManager=Object.freeze({getOrCreate(j){if(propertyTargetCache.has(j))return propertyTargetCache.get(j);let _e;return j===defaultElement?_e=new RootStyleSheetTarget:j instanceof Document?_e=DOM.supportsAdoptedStyleSheets?new DocumentStyleSheetTarget:new HeadStyleElementStyleSheetTarget:isFastElement(j)?_e=new propertyTargetCtor(j):_e=new ElementStyleSheetTarget(j),propertyTargetCache.set(j,_e),_e}});class DesignTokenImpl extends CSSDirective{constructor(_e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=_e.name,_e.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${_e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=DesignTokenImpl.uniqueId(),DesignTokenImpl.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(_e){return new DesignTokenImpl({name:typeof _e=="string"?_e:_e.name,cssCustomPropertyName:typeof _e=="string"?_e:_e.cssCustomPropertyName===void 0?_e.name:_e.cssCustomPropertyName})}static isCSSDesignToken(_e){return typeof _e.cssCustomProperty=="string"}static isDerivedDesignTokenValue(_e){return typeof _e=="function"}static getTokenById(_e){return DesignTokenImpl.tokensById.get(_e)}getOrCreateSubscriberSet(_e=this){return this.subscribers.get(_e)||this.subscribers.set(_e,new Set)&&this.subscribers.get(_e)}createCSS(){return this.cssVar||""}getValueFor(_e){const et=DesignTokenNode.getOrCreate(_e).get(this);if(et!==void 0)return et;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${_e} or an ancestor of ${_e}.`)}setValueFor(_e,et){return this._appliedTo.add(_e),et instanceof DesignTokenImpl&&(et=this.alias(et)),DesignTokenNode.getOrCreate(_e).set(this,et),this}deleteValueFor(_e){return this._appliedTo.delete(_e),DesignTokenNode.existsFor(_e)&&DesignTokenNode.getOrCreate(_e).delete(this),this}withDefault(_e){return this.setValueFor(defaultElement,_e),this}subscribe(_e,et){const tt=this.getOrCreateSubscriberSet(et);et&&!DesignTokenNode.existsFor(et)&&DesignTokenNode.getOrCreate(et),tt.has(_e)||tt.add(_e)}unsubscribe(_e,et){const tt=this.subscribers.get(et||this);tt&&tt.has(_e)&&tt.delete(_e)}notify(_e){const et=Object.freeze({token:this,target:_e});this.subscribers.has(this)&&this.subscribers.get(this).forEach(tt=>tt.handleChange(et)),this.subscribers.has(_e)&&this.subscribers.get(_e).forEach(tt=>tt.handleChange(et))}alias(_e){return et=>_e.getValueFor(et)}}DesignTokenImpl.uniqueId=(()=>{let j=0;return()=>(j++,j.toString(16))})();DesignTokenImpl.tokensById=new Map;class CustomPropertyReflector{startReflection(_e,et){_e.subscribe(this,et),this.handleChange({token:_e,target:et})}stopReflection(_e,et){_e.unsubscribe(this,et),this.remove(_e,et)}handleChange(_e){const{token:et,target:tt}=_e;this.add(et,tt)}add(_e,et){PropertyTargetManager.getOrCreate(et).setProperty(_e.cssCustomProperty,this.resolveCSSValue(DesignTokenNode.getOrCreate(et).get(_e)))}remove(_e,et){PropertyTargetManager.getOrCreate(et).removeProperty(_e.cssCustomProperty)}resolveCSSValue(_e){return _e&&typeof _e.createCSS=="function"?_e.createCSS():_e}}class DesignTokenBindingObserver{constructor(_e,et,tt){this.source=_e,this.token=et,this.node=tt,this.dependencies=new Set,this.observer=Observable$1.binding(_e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,defaultExecutionContext))}}class Store{constructor(){this.values=new Map}set(_e,et){this.values.get(_e)!==et&&(this.values.set(_e,et),Observable$1.getNotifier(this).notify(_e.id))}get(_e){return Observable$1.track(this,_e.id),this.values.get(_e)}delete(_e){this.values.delete(_e)}all(){return this.values.entries()}}const nodeCache=new WeakMap,childToParent=new WeakMap;class DesignTokenNode{constructor(_e){this.target=_e,this.store=new Store,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(et,tt)=>{const rt=DesignTokenImpl.getTokenById(tt);if(rt&&(rt.notify(this.target),DesignTokenImpl.isCSSDesignToken(rt))){const nt=this.parent,ot=this.isReflecting(rt);if(nt){const it=nt.get(rt),st=et.get(rt);it!==st&&!ot?this.reflectToCSS(rt):it===st&&ot&&this.stopReflectToCSS(rt)}else ot||this.reflectToCSS(rt)}}},nodeCache.set(_e,this),Observable$1.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),_e instanceof FASTElement?_e.$fastController.addBehaviors([this]):_e.isConnected&&this.bind()}static getOrCreate(_e){return nodeCache.get(_e)||new DesignTokenNode(_e)}static existsFor(_e){return nodeCache.has(_e)}static findParent(_e){if(defaultElement!==_e.target){let et=composedParent(_e.target);for(;et!==null;){if(nodeCache.has(et))return nodeCache.get(et);et=composedParent(et)}return DesignTokenNode.getOrCreate(defaultElement)}return null}static findClosestAssignedNode(_e,et){let tt=et;do{if(tt.has(_e))return tt;tt=tt.parent?tt.parent:tt.target!==defaultElement?DesignTokenNode.getOrCreate(defaultElement):null}while(tt!==null);return null}get parent(){return childToParent.get(this)||null}has(_e){return this.assignedValues.has(_e)}get(_e){const et=this.store.get(_e);if(et!==void 0)return et;const tt=this.getRaw(_e);if(tt!==void 0)return this.hydrate(_e,tt),this.get(_e)}getRaw(_e){var et;return this.assignedValues.has(_e)?this.assignedValues.get(_e):(et=DesignTokenNode.findClosestAssignedNode(_e,this))===null||et===void 0?void 0:et.getRaw(_e)}set(_e,et){DesignTokenImpl.isDerivedDesignTokenValue(this.assignedValues.get(_e))&&this.tearDownBindingObserver(_e),this.assignedValues.set(_e,et),DesignTokenImpl.isDerivedDesignTokenValue(et)?this.setupBindingObserver(_e,et):this.store.set(_e,et)}delete(_e){this.assignedValues.delete(_e),this.tearDownBindingObserver(_e);const et=this.getRaw(_e);et?this.hydrate(_e,et):this.store.delete(_e)}bind(){const _e=DesignTokenNode.findParent(this);_e&&_e.appendChild(this);for(const et of this.assignedValues.keys())et.notify(this.target)}unbind(){this.parent&&childToParent.get(this).removeChild(this)}appendChild(_e){_e.parent&&childToParent.get(_e).removeChild(_e);const et=this.children.filter(tt=>_e.contains(tt));childToParent.set(_e,this),this.children.push(_e),et.forEach(tt=>_e.appendChild(tt)),Observable$1.getNotifier(this.store).subscribe(_e);for(const[tt,rt]of this.store.all())_e.hydrate(tt,this.bindingObservers.has(tt)?this.getRaw(tt):rt)}removeChild(_e){const et=this.children.indexOf(_e);return et!==-1&&this.children.splice(et,1),Observable$1.getNotifier(this.store).unsubscribe(_e),_e.parent===this?childToParent.delete(_e):!1}contains(_e){return composedContains(this.target,_e.target)}reflectToCSS(_e){this.isReflecting(_e)||(this.reflecting.add(_e),DesignTokenNode.cssCustomPropertyReflector.startReflection(_e,this.target))}stopReflectToCSS(_e){this.isReflecting(_e)&&(this.reflecting.delete(_e),DesignTokenNode.cssCustomPropertyReflector.stopReflection(_e,this.target))}isReflecting(_e){return this.reflecting.has(_e)}handleChange(_e,et){const tt=DesignTokenImpl.getTokenById(et);tt&&this.hydrate(tt,this.getRaw(tt))}hydrate(_e,et){if(!this.has(_e)){const tt=this.bindingObservers.get(_e);DesignTokenImpl.isDerivedDesignTokenValue(et)?tt?tt.source!==et&&(this.tearDownBindingObserver(_e),this.setupBindingObserver(_e,et)):this.setupBindingObserver(_e,et):(tt&&this.tearDownBindingObserver(_e),this.store.set(_e,et))}}setupBindingObserver(_e,et){const tt=new DesignTokenBindingObserver(et,_e,this);return this.bindingObservers.set(_e,tt),tt}tearDownBindingObserver(_e){return this.bindingObservers.has(_e)?(this.bindingObservers.get(_e).disconnect(),this.bindingObservers.delete(_e),!0):!1}}DesignTokenNode.cssCustomPropertyReflector=new CustomPropertyReflector;__decorate([observable],DesignTokenNode.prototype,"children",void 0);function create$2(j){return DesignTokenImpl.from(j)}const DesignToken=Object.freeze({create:create$2,notifyConnection(j){return!j.isConnected||!DesignTokenNode.existsFor(j)?!1:(DesignTokenNode.getOrCreate(j).bind(),!0)},notifyDisconnection(j){return j.isConnected||!DesignTokenNode.existsFor(j)?!1:(DesignTokenNode.getOrCreate(j).unbind(),!0)},registerRoot(j=defaultElement){RootStyleSheetTarget.registerRoot(j)},unregisterRoot(j=defaultElement){RootStyleSheetTarget.unregisterRoot(j)}}),ElementDisambiguation=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),elementTypesByTag=new Map,elementTagsByType=new Map;let rootDesignSystem=null;const designSystemKey=DI.createInterface(j=>j.cachedCallback(_e=>(rootDesignSystem===null&&(rootDesignSystem=new DefaultDesignSystem(null,_e)),rootDesignSystem))),DesignSystem=Object.freeze({tagFor(j){return elementTagsByType.get(j)},responsibleFor(j){const _e=j.$$designSystem$$;return _e||DI.findResponsibleContainer(j).get(designSystemKey)},getOrCreate(j){if(!j)return rootDesignSystem===null&&(rootDesignSystem=DI.getOrCreateDOMContainer().get(designSystemKey)),rootDesignSystem;const _e=j.$$designSystem$$;if(_e)return _e;const et=DI.getOrCreateDOMContainer(j);if(et.has(designSystemKey,!1))return et.get(designSystemKey);{const tt=new DefaultDesignSystem(j,et);return et.register(Registration.instance(designSystemKey,tt)),tt}}});function extractTryDefineElementParams(j,_e,et){return typeof j=="string"?{name:j,type:_e,callback:et}:j}class DefaultDesignSystem{constructor(_e,et){this.owner=_e,this.container=et,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ElementDisambiguation.definitionCallbackOnly,_e!==null&&(_e.$$designSystem$$=this)}withPrefix(_e){return this.prefix=_e,this}withShadowRootMode(_e){return this.shadowRootMode=_e,this}withElementDisambiguation(_e){return this.disambiguate=_e,this}withDesignTokenRoot(_e){return this.designTokenRoot=_e,this}register(..._e){const et=this.container,tt=[],rt=this.disambiguate,nt=this.shadowRootMode,ot={elementPrefix:this.prefix,tryDefineElement(it,st,lt){const ut=extractTryDefineElementParams(it,st,lt),{name:ct,callback:dt,baseClass:ft}=ut;let{type:pt}=ut,gt=ct,mt=elementTypesByTag.get(gt),bt=!0;for(;mt;){const _t=rt(gt,pt,mt);switch(_t){case ElementDisambiguation.ignoreDuplicate:return;case ElementDisambiguation.definitionCallbackOnly:bt=!1,mt=void 0;break;default:gt=_t,mt=elementTypesByTag.get(gt);break}}bt&&((elementTagsByType.has(pt)||pt===FoundationElement)&&(pt=class extends pt{}),elementTypesByTag.set(gt,pt),elementTagsByType.set(pt,gt),ft&&elementTagsByType.set(ft,gt)),tt.push(new ElementDefinitionEntry(et,gt,pt,nt,dt,bt))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&DesignToken.registerRoot(this.designTokenRoot)),et.registerWithContext(ot,..._e);for(const it of tt)it.callback(it),it.willDefine&&it.definition!==null&&it.definition.define();return this}}class ElementDefinitionEntry{constructor(_e,et,tt,rt,nt,ot){this.container=_e,this.name=et,this.type=tt,this.shadowRootMode=rt,this.callback=nt,this.willDefine=ot,this.definition=null}definePresentation(_e){ComponentPresentation.define(this.name,_e,this.container)}defineElement(_e){this.definition=new FASTElementDefinition(this.type,Object.assign(Object.assign({},_e),{name:this.name}))}tagFor(_e){return DesignSystem.tagFor(_e)}}const dividerTemplate=(j,_e)=>html` - -`,DividerRole={separator:"separator",presentation:"presentation"};let Divider$1=class extends FoundationElement{constructor(){super(...arguments),this.role=DividerRole.separator,this.orientation=Orientation.horizontal}};__decorate([attr],Divider$1.prototype,"role",void 0);__decorate([attr],Divider$1.prototype,"orientation",void 0);const listboxOptionTemplate=(j,_e)=>html` - -`;class ListboxElement extends Listbox{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var _e;return(_e=this.options)===null||_e===void 0?void 0:_e.filter(et=>et.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(_e,et){var tt,rt;this.ariaActiveDescendant=(rt=(tt=this.options[et])===null||tt===void 0?void 0:tt.id)!==null&&rt!==void 0?rt:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const _e=this.activeOption;_e&&(_e.checked=!0)}checkFirstOption(_e=!1){_e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((et,tt)=>{et.checked=inRange(tt,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(_e=!1){_e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((et,tt)=>{et.checked=inRange(tt,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(_e=!1){_e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((et,tt)=>{et.checked=inRange(tt,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{et.checked=inRange(tt,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(_e){var et;if(!this.multiple)return super.clickHandler(_e);const tt=(et=_e.target)===null||et===void 0?void 0:et.closest("[role=option]");if(!(!tt||tt.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(tt),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(_e){if(!this.multiple)return super.focusinHandler(_e);!this.shouldSkipFocus&&_e.target===_e.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(_e){this.multiple&&this.uncheckAllOptions()}keydownHandler(_e){if(!this.multiple)return super.keydownHandler(_e);if(this.disabled)return!0;const{key:et,shiftKey:tt}=_e;switch(this.shouldSkipFocus=!1,et){case keyHome:{this.checkFirstOption(tt);return}case keyArrowDown:{this.checkNextOption(tt);return}case keyArrowUp:{this.checkPreviousOption(tt);return}case keyEnd:{this.checkLastOption(tt);return}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEscape:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case keySpace:if(_e.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return et.length===1&&this.handleTypeAhead(`${et}`),!0}}mousedownHandler(_e){if(_e.offsetX>=0&&_e.offsetX<=this.scrollWidth)return super.mousedownHandler(_e)}multipleChanged(_e,et){var tt;this.ariaMultiSelectable=et?"true":null,(tt=this.options)===null||tt===void 0||tt.forEach(rt=>{rt.checked=et?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(_e=>_e.selected),this.focusAndScrollOptionIntoView())}sizeChanged(_e,et){var tt;const rt=Math.max(0,parseInt((tt=et==null?void 0:et.toFixed())!==null&&tt!==void 0?tt:"",10));rt!==et&&DOM.queueUpdate(()=>{this.size=rt})}toggleSelectedForAllCheckedOptions(){const _e=this.checkedOptions.filter(tt=>!tt.disabled),et=!_e.every(tt=>tt.selected);_e.forEach(tt=>tt.selected=et),this.selectedIndex=this.options.indexOf(_e[_e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(_e,et){if(!this.multiple){super.typeaheadBufferChanged(_e,et);return}if(this.$fastController.isConnected){const tt=this.getTypeaheadMatches(),rt=this.options.indexOf(tt[0]);rt>-1&&(this.activeIndex=rt,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(_e=!1){this.options.forEach(et=>et.checked=this.multiple?!1:void 0),_e||(this.rangeStartIndex=-1)}}__decorate([observable],ListboxElement.prototype,"activeIndex",void 0);__decorate([attr({mode:"boolean"})],ListboxElement.prototype,"multiple",void 0);__decorate([attr({converter:nullableNumberConverter})],ListboxElement.prototype,"size",void 0);class _TextField extends FoundationElement{}class FormAssociatedTextField extends FormAssociated(_TextField){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const TextFieldType={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let TextField$1=class extends FormAssociatedTextField{constructor(){super(...arguments),this.type=TextFieldType.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&DOM.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],TextField$1.prototype,"readOnly",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"autofocus",void 0);__decorate([attr],TextField$1.prototype,"placeholder",void 0);__decorate([attr],TextField$1.prototype,"type",void 0);__decorate([attr],TextField$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"minlength",void 0);__decorate([attr],TextField$1.prototype,"pattern",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"size",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"spellcheck",void 0);__decorate([observable],TextField$1.prototype,"defaultSlottedNodes",void 0);class DelegatesARIATextbox{}applyMixins(DelegatesARIATextbox,ARIAGlobalStatesAndProperties);applyMixins(TextField$1,StartEnd,DelegatesARIATextbox);const progressSegments=44,progressRingTemplate=(j,_e)=>html` - -`;class BaseProgress extends FoundationElement{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const _e=typeof this.min=="number"?this.min:0,et=typeof this.max=="number"?this.max:100,tt=typeof this.value=="number"?this.value:0,rt=et-_e;this.percentComplete=rt===0?0:Math.fround((tt-_e)/rt*100)}}__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"value",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"min",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"max",void 0);__decorate([attr({mode:"boolean"})],BaseProgress.prototype,"paused",void 0);__decorate([observable],BaseProgress.prototype,"percentComplete",void 0);const radioGroupTemplate=(j,_e)=>html` - -`;let RadioGroup$1=class extends FoundationElement{constructor(){super(...arguments),this.orientation=Orientation.horizontal,this.radioChangeHandler=_e=>{const et=_e.target;et.checked&&(this.slottedRadioButtons.forEach(tt=>{tt!==et&&(tt.checked=!1,this.isInsideFoundationToolbar||tt.setAttribute("tabindex","-1"))}),this.selectedRadio=et,this.value=et.value,et.setAttribute("tabindex","0"),this.focusedRadio=et),_e.stopPropagation()},this.moveToRadioByIndex=(_e,et)=>{const tt=_e[et];this.isInsideToolbar||(tt.setAttribute("tabindex","0"),tt.readOnly?this.slottedRadioButtons.forEach(rt=>{rt!==tt&&rt.setAttribute("tabindex","-1")}):(tt.checked=!0,this.selectedRadio=tt)),this.focusedRadio=tt,tt.focus()},this.moveRightOffGroup=()=>{var _e;(_e=this.nextElementSibling)===null||_e===void 0||_e.focus()},this.moveLeftOffGroup=()=>{var _e;(_e=this.previousElementSibling)===null||_e===void 0||_e.focus()},this.focusOutHandler=_e=>{const et=this.slottedRadioButtons,tt=_e.target,rt=tt!==null?et.indexOf(tt):0,nt=this.focusedRadio?et.indexOf(this.focusedRadio):-1;return(nt===0&&rt===nt||nt===et.length-1&&nt===rt)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),et.forEach(ot=>{ot!==this.selectedRadio&&ot.setAttribute("tabindex","-1")}))):(this.focusedRadio=et[0],this.focusedRadio.setAttribute("tabindex","0"),et.forEach(ot=>{ot!==this.focusedRadio&&ot.setAttribute("tabindex","-1")}))),!0},this.clickHandler=_e=>{const et=_e.target;if(et){const tt=this.slottedRadioButtons;et.checked||tt.indexOf(et)===0?(et.setAttribute("tabindex","0"),this.selectedRadio=et):(et.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=et}_e.preventDefault()},this.shouldMoveOffGroupToTheRight=(_e,et,tt)=>_e===et.length&&this.isInsideToolbar&&tt===keyArrowRight,this.shouldMoveOffGroupToTheLeft=(_e,et)=>(this.focusedRadio?_e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&et===keyArrowLeft,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=_e=>{const et=this.slottedRadioButtons;let tt=0;if(tt=this.focusedRadio?et.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(tt,et,_e.key)){this.moveRightOffGroup();return}else tt===et.length&&(tt=0);for(;tt1;)if(et[tt].disabled){if(this.focusedRadio&&tt===et.indexOf(this.focusedRadio))break;if(tt+1>=et.length){if(this.isInsideToolbar)break;tt=0}else tt+=1}else{this.moveToRadioByIndex(et,tt);break}},this.moveLeft=_e=>{const et=this.slottedRadioButtons;let tt=0;if(tt=this.focusedRadio?et.indexOf(this.focusedRadio)-1:0,tt=tt<0?et.length-1:tt,this.shouldMoveOffGroupToTheLeft(et,_e.key)){this.moveLeftOffGroup();return}for(;tt>=0&&et.length>1;)if(et[tt].disabled){if(this.focusedRadio&&tt===et.indexOf(this.focusedRadio))break;tt-1<0?tt=et.length-1:tt-=1}else{this.moveToRadioByIndex(et,tt);break}},this.keydownHandler=_e=>{const et=_e.key;if(et in ArrowKeys&&this.isInsideFoundationToolbar)return!0;switch(et){case keyEnter:{this.checkFocusedRadio();break}case keyArrowRight:case keyArrowDown:{this.direction===Direction.ltr?this.moveRight(_e):this.moveLeft(_e);break}case keyArrowLeft:case keyArrowUp:{this.direction===Direction.ltr?this.moveLeft(_e):this.moveRight(_e);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(_e=>{this.readOnly?_e.readOnly=!0:_e.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(_e=>{this.disabled?_e.disabled=!0:_e.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(_e=>{_e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(_e=>{_e.value===this.value&&(_e.checked=!0,this.selectedRadio=_e)}),this.$emit("change")}slottedRadioButtonsChanged(_e,et){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var _e;return(_e=this.parentToolbar)!==null&&_e!==void 0?_e:!1}get isInsideFoundationToolbar(){var _e;return!!(!((_e=this.parentToolbar)===null||_e===void 0)&&_e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=getDirection(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(_e=>{_e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const _e=this.slottedRadioButtons.filter(rt=>rt.hasAttribute("checked")),et=_e?_e.length:0;if(et>1){const rt=_e[et-1];rt.checked=!0}let tt=!1;if(this.slottedRadioButtons.forEach(rt=>{this.name!==void 0&&rt.setAttribute("name",this.name),this.disabled&&(rt.disabled=!0),this.readOnly&&(rt.readOnly=!0),this.value&&this.value===rt.value?(this.selectedRadio=rt,this.focusedRadio=rt,rt.checked=!0,rt.setAttribute("tabindex","0"),tt=!0):(this.isInsideFoundationToolbar||rt.setAttribute("tabindex","-1"),rt.checked=!1),rt.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const rt=this.slottedRadioButtons.filter(ot=>ot.hasAttribute("checked")),nt=rt!==null?rt.length:0;if(nt>0&&!tt){const ot=rt[nt-1];ot.checked=!0,this.focusedRadio=ot,ot.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};__decorate([attr({attribute:"readonly",mode:"boolean"})],RadioGroup$1.prototype,"readOnly",void 0);__decorate([attr({attribute:"disabled",mode:"boolean"})],RadioGroup$1.prototype,"disabled",void 0);__decorate([attr],RadioGroup$1.prototype,"name",void 0);__decorate([attr],RadioGroup$1.prototype,"value",void 0);__decorate([attr],RadioGroup$1.prototype,"orientation",void 0);__decorate([observable],RadioGroup$1.prototype,"childItems",void 0);__decorate([observable],RadioGroup$1.prototype,"slottedRadioButtons",void 0);const radioTemplate=(j,_e)=>html` - -`;class _Radio extends FoundationElement{}class FormAssociatedRadio extends CheckableFormAssociated(_Radio){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Radio$1=class extends FormAssociatedRadio{constructor(){super(),this.initialValue="on",this.keypressHandler=_e=>{switch(_e.key){case keySpace:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var _e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(_e=this.defaultChecked)!==null&&_e!==void 0?_e:!1,this.dirtyChecked=!1))}connectedCallback(){var _e,et;super.connectedCallback(),this.validate(),((_e=this.parentElement)===null||_e===void 0?void 0:_e.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(et=this.defaultChecked)!==null&&et!==void 0?et:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(_e){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Radio$1.prototype,"readOnly",void 0);__decorate([observable],Radio$1.prototype,"name",void 0);__decorate([observable],Radio$1.prototype,"defaultSlottedNodes",void 0);function whitespaceFilter(j,_e,et){return j.nodeType!==Node.TEXT_NODE?!0:typeof j.nodeValue=="string"&&!!j.nodeValue.trim().length}class _Select extends ListboxElement{}class FormAssociatedSelect extends FormAssociated(_Select){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Select extends FormAssociatedSelect{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=uniqueId$1("listbox-"),this.maxHeight=0}openChanged(_e,et){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,DOM.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Observable$1.track(this,"value"),this._value}set value(_e){var et,tt,rt,nt,ot,it,st;const lt=`${this._value}`;if(!((et=this._options)===null||et===void 0)&&et.length){const ut=this._options.findIndex(ft=>ft.value===_e),ct=(rt=(tt=this._options[this.selectedIndex])===null||tt===void 0?void 0:tt.value)!==null&&rt!==void 0?rt:null,dt=(ot=(nt=this._options[ut])===null||nt===void 0?void 0:nt.value)!==null&&ot!==void 0?ot:null;(ut===-1||ct!==dt)&&(_e="",this.selectedIndex=ut),_e=(st=(it=this.firstSelectedOption)===null||it===void 0?void 0:it.value)!==null&&st!==void 0?st:_e}lt!==_e&&(this._value=_e,super.valueChanged(lt,_e),Observable$1.notify(this,"value"),this.updateDisplayValue())}updateValue(_e){var et,tt;this.$fastController.isConnected&&(this.value=(tt=(et=this.firstSelectedOption)===null||et===void 0?void 0:et.value)!==null&&tt!==void 0?tt:""),_e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(_e,et){super.selectedIndexChanged(_e,et),this.updateValue()}positionChanged(_e,et){this.positionAttribute=et,this.setPositioning()}setPositioning(){const _e=this.getBoundingClientRect(),tt=window.innerHeight-_e.bottom;this.position=this.forcedPosition?this.positionAttribute:_e.top>tt?SelectPosition.above:SelectPosition.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===SelectPosition.above?~~_e.top:~~tt}get displayValue(){var _e,et;return Observable$1.track(this,"displayValue"),(et=(_e=this.firstSelectedOption)===null||_e===void 0?void 0:_e.text)!==null&&et!==void 0?et:""}disabledChanged(_e,et){super.disabledChanged&&super.disabledChanged(_e,et),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(_e){if(!this.disabled){if(this.open){const et=_e.target.closest("option,[role=option]");if(et&&et.disabled)return}return super.clickHandler(_e),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(_e){var et;if(super.focusoutHandler(_e),!this.open)return!0;const tt=_e.relatedTarget;if(this.isSameNode(tt)){this.focus();return}!((et=this.options)===null||et===void 0)&&et.includes(tt)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(_e,et){super.handleChange(_e,et),et==="value"&&this.updateValue()}slottedOptionsChanged(_e,et){this.options.forEach(tt=>{Observable$1.getNotifier(tt).unsubscribe(this,"value")}),super.slottedOptionsChanged(_e,et),this.options.forEach(tt=>{Observable$1.getNotifier(tt).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(_e){var et;return _e.offsetX>=0&&_e.offsetX<=((et=this.listbox)===null||et===void 0?void 0:et.scrollWidth)?super.mousedownHandler(_e):this.collapsible}multipleChanged(_e,et){super.multipleChanged(_e,et),this.proxy&&(this.proxy.multiple=et)}selectedOptionsChanged(_e,et){var tt;super.selectedOptionsChanged(_e,et),(tt=this.options)===null||tt===void 0||tt.forEach((rt,nt)=>{var ot;const it=(ot=this.proxy)===null||ot===void 0?void 0:ot.options.item(nt);it&&(it.selected=rt.selected)})}setDefaultSelectedOption(){var _e;const et=(_e=this.options)!==null&&_e!==void 0?_e:Array.from(this.children).filter(Listbox.slottedOptionFilter),tt=et==null?void 0:et.findIndex(rt=>rt.hasAttribute("selected")||rt.selected||rt.value===this.value);if(tt!==-1){this.selectedIndex=tt;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(_e=>{const et=_e.proxy||(_e instanceof HTMLOptionElement?_e.cloneNode():null);et&&this.proxy.options.add(et)}))}keydownHandler(_e){super.keydownHandler(_e);const et=_e.key||_e.key.charCodeAt(0);switch(et){case keySpace:{_e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case keyHome:case keyEnd:{_e.preventDefault();break}case keyEnter:{_e.preventDefault(),this.open=!this.open;break}case keyEscape:{this.collapsible&&this.open&&(_e.preventDefault(),this.open=!1);break}case keyTab:return this.collapsible&&this.open&&(_e.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(et===keyArrowDown||et===keyArrowUp)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(_e,et){super.sizeChanged(_e,et),this.proxy&&(this.proxy.size=et)}updateDisplayValue(){this.collapsible&&Observable$1.notify(this,"displayValue")}}__decorate([attr({attribute:"open",mode:"boolean"})],Select.prototype,"open",void 0);__decorate([volatile],Select.prototype,"collapsible",null);__decorate([observable],Select.prototype,"control",void 0);__decorate([attr({attribute:"position"})],Select.prototype,"positionAttribute",void 0);__decorate([observable],Select.prototype,"position",void 0);__decorate([observable],Select.prototype,"maxHeight",void 0);class DelegatesARIASelect{}__decorate([observable],DelegatesARIASelect.prototype,"ariaControls",void 0);applyMixins(DelegatesARIASelect,DelegatesARIAListbox);applyMixins(Select,StartEnd,DelegatesARIASelect);const selectTemplate=(j,_e)=>html` - -`,tabPanelTemplate=(j,_e)=>html` - -`;class TabPanel extends FoundationElement{}const tabTemplate=(j,_e)=>html` - -`;class Tab extends FoundationElement{}__decorate([attr({mode:"boolean"})],Tab.prototype,"disabled",void 0);const tabsTemplate=(j,_e)=>html` - -`,TabsOrientation={vertical:"vertical",horizontal:"horizontal"};class Tabs extends FoundationElement{constructor(){super(...arguments),this.orientation=TabsOrientation.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=_e=>_e.getAttribute("aria-disabled")==="true",this.isHiddenElement=_e=>_e.hasAttribute("hidden"),this.isFocusableElement=_e=>!this.isDisabledElement(_e)&&!this.isHiddenElement(_e),this.setTabs=()=>{const _e="gridColumn",et="gridRow",tt=this.isHorizontal()?_e:et;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((rt,nt)=>{if(rt.slot==="tab"){const ot=this.activeTabIndex===nt&&this.isFocusableElement(rt);this.activeindicator&&this.isFocusableElement(rt)&&(this.showActiveIndicator=!0);const it=this.tabIds[nt],st=this.tabpanelIds[nt];rt.setAttribute("id",it),rt.setAttribute("aria-selected",ot?"true":"false"),rt.setAttribute("aria-controls",st),rt.addEventListener("click",this.handleTabClick),rt.addEventListener("keydown",this.handleTabKeyDown),rt.setAttribute("tabindex",ot?"0":"-1"),ot&&(this.activetab=rt,this.activeid=it)}rt.style[_e]="",rt.style[et]="",rt.style[tt]=`${nt+1}`,this.isHorizontal()?rt.classList.remove("vertical"):rt.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((_e,et)=>{const tt=this.tabIds[et],rt=this.tabpanelIds[et];_e.setAttribute("id",rt),_e.setAttribute("aria-labelledby",tt),this.activeTabIndex!==et?_e.setAttribute("hidden",""):_e.removeAttribute("hidden")})},this.handleTabClick=_e=>{const et=_e.currentTarget;et.nodeType===1&&this.isFocusableElement(et)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(et),this.setComponent())},this.handleTabKeyDown=_e=>{if(this.isHorizontal())switch(_e.key){case keyArrowLeft:_e.preventDefault(),this.adjustBackward(_e);break;case keyArrowRight:_e.preventDefault(),this.adjustForward(_e);break}else switch(_e.key){case keyArrowUp:_e.preventDefault(),this.adjustBackward(_e);break;case keyArrowDown:_e.preventDefault(),this.adjustForward(_e);break}switch(_e.key){case keyHome:_e.preventDefault(),this.adjust(-this.activeTabIndex);break;case keyEnd:_e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=_e=>{const et=this.tabs;let tt=0;for(tt=this.activetab?et.indexOf(this.activetab)+1:1,tt===et.length&&(tt=0);tt1;)if(this.isFocusableElement(et[tt])){this.moveToTabByIndex(et,tt);break}else{if(this.activetab&&tt===et.indexOf(this.activetab))break;tt+1>=et.length?tt=0:tt+=1}},this.adjustBackward=_e=>{const et=this.tabs;let tt=0;for(tt=this.activetab?et.indexOf(this.activetab)-1:0,tt=tt<0?et.length-1:tt;tt>=0&&et.length>1;)if(this.isFocusableElement(et[tt])){this.moveToTabByIndex(et,tt);break}else tt-1<0?tt=et.length-1:tt-=1},this.moveToTabByIndex=(_e,et)=>{const tt=_e[et];this.activetab=tt,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=et,tt.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(_e,et){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(tt=>tt.id===_e),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(_e=>{var et;return(et=_e.getAttribute("id"))!==null&&et!==void 0?et:`tab-${uniqueId$1()}`})}getTabPanelIds(){return this.tabpanels.map(_e=>{var et;return(et=_e.getAttribute("id"))!==null&&et!==void 0?et:`panel-${uniqueId$1()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===TabsOrientation.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const _e=this.isHorizontal()?"gridColumn":"gridRow",et=this.isHorizontal()?"translateX":"translateY",tt=this.isHorizontal()?"offsetLeft":"offsetTop",rt=this.activeIndicatorRef[tt];this.activeIndicatorRef.style[_e]=`${this.activeTabIndex+1}`;const nt=this.activeIndicatorRef[tt];this.activeIndicatorRef.style[_e]=`${this.prevActiveTabIndex+1}`;const ot=nt-rt;this.activeIndicatorRef.style.transform=`${et}(${ot}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[_e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${et}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(_e){const et=this.tabs.filter(ot=>this.isFocusableElement(ot)),tt=et.indexOf(this.activetab),rt=limit(0,et.length-1,tt+_e),nt=this.tabs.indexOf(et[rt]);nt>-1&&this.moveToTabByIndex(this.tabs,nt)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}__decorate([attr],Tabs.prototype,"orientation",void 0);__decorate([attr],Tabs.prototype,"activeid",void 0);__decorate([observable],Tabs.prototype,"tabs",void 0);__decorate([observable],Tabs.prototype,"tabpanels",void 0);__decorate([attr({mode:"boolean"})],Tabs.prototype,"activeindicator",void 0);__decorate([observable],Tabs.prototype,"activeIndicatorRef",void 0);__decorate([observable],Tabs.prototype,"showActiveIndicator",void 0);applyMixins(Tabs,StartEnd);class _TextArea extends FoundationElement{}class FormAssociatedTextArea extends FormAssociated(_TextArea){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const TextAreaResize={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let TextArea$1=class extends FormAssociatedTextArea{constructor(){super(...arguments),this.resize=TextAreaResize.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"readOnly",void 0);__decorate([attr],TextArea$1.prototype,"resize",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],TextArea$1.prototype,"formId",void 0);__decorate([attr],TextArea$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"minlength",void 0);__decorate([attr],TextArea$1.prototype,"name",void 0);__decorate([attr],TextArea$1.prototype,"placeholder",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"cols",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"rows",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"spellcheck",void 0);__decorate([observable],TextArea$1.prototype,"defaultSlottedNodes",void 0);applyMixins(TextArea$1,DelegatesARIATextbox);const textAreaTemplate=(j,_e)=>html` - -`,textFieldTemplate=(j,_e)=>html` - -`,disabledCursor="not-allowed",hidden=":host([hidden]){display:none}";function display(j){return`${hidden}:host{display:${j}}`}const focusVisible=canUseFocusVisible()?"focus-visible":"focus",reservedReactProperties=new Set(["children","localName","ref","style","className"]),emptyProps=Object.freeze(Object.create(null)),DEFAULT_CACHE_NAME="_default",wrappersCache=new Map;function setRef(j,_e){typeof j=="function"?j(_e):j.current=_e}function getTagName(j,_e){if(!_e.name){const et=FASTElementDefinition.forType(j);if(et)_e.name=et.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return _e.name}function getElementEvents(j){return j.events||(j.events={})}function keyIsValid(j,_e,et){return reservedReactProperties.has(et)?(console.warn(`${getTagName(j,_e)} contains property ${et} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function getElementKeys(j,_e){if(!_e.keys)if(_e.properties)_e.keys=new Set(_e.properties.concat(Object.keys(getElementEvents(_e))));else{const et=new Set(Object.keys(getElementEvents(_e))),tt=Observable$1.getAccessors(j.prototype);if(tt.length>0)for(const rt of tt)keyIsValid(j,_e,rt.name)&&et.add(rt.name);else for(const rt in j.prototype)!(rt in HTMLElement.prototype)&&keyIsValid(j,_e,rt)&&et.add(rt);_e.keys=et}return _e.keys}function provideReactWrapper(j,_e){let et=[];const tt={register(nt,...ot){et.forEach(it=>it.register(nt,...ot)),et=[]}};function rt(nt,ot={}){var it,st;nt instanceof FoundationElementRegistry&&(_e?_e.register(nt):et.push(nt),nt=nt.type);const lt=wrappersCache.get(nt);if(lt){const dt=lt.get((it=ot.name)!==null&&it!==void 0?it:DEFAULT_CACHE_NAME);if(dt)return dt}class ut extends j.Component{constructor(){super(...arguments),this._element=null}_updateElement(ft){const pt=this._element;if(pt===null)return;const gt=this.props,mt=ft||emptyProps,bt=getElementEvents(ot);for(const _t in this._elementProps){const xt=gt[_t],yt=bt[_t];if(yt===void 0)pt[_t]=xt;else{const Et=mt[_t];if(xt===Et)continue;Et!==void 0&&pt.removeEventListener(yt,Et),xt!==void 0&&pt.addEventListener(yt,xt)}}}componentDidMount(){this._updateElement()}componentDidUpdate(ft){this._updateElement(ft)}render(){const ft=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==ft)&&(this._ref=_t=>{this._element===null&&(this._element=_t),ft!==null&&setRef(ft,_t),this._userRef=ft});const pt={ref:this._ref},gt=this._elementProps={},mt=getElementKeys(nt,ot),bt=this.props;for(const _t in bt){const xt=bt[_t];mt.has(_t)?gt[_t]=xt:pt[_t==="className"?"class":_t]=xt}return j.createElement(getTagName(nt,ot),pt)}}const ct=j.forwardRef((dt,ft)=>j.createElement(ut,Object.assign(Object.assign({},dt),{__forwardedRef:ft}),dt==null?void 0:dt.children));return wrappersCache.has(nt)||wrappersCache.set(nt,new Map),wrappersCache.get(nt).set((st=ot.name)!==null&&st!==void 0?st:DEFAULT_CACHE_NAME,ct),ct}return{wrap:rt,registry:tt}}function provideVSCodeDesignSystem(j){return DesignSystem.getOrCreate(j).withPrefix("vscode")}function initThemeChangeListener(j){window.addEventListener("load",()=>{new MutationObserver(()=>{applyCurrentTheme(j)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),applyCurrentTheme(j)})}function applyCurrentTheme(j){const _e=getComputedStyle(document.body),et=document.querySelector("body");if(et){const tt=et.getAttribute("data-vscode-theme-kind");for(const[rt,nt]of j){let ot=_e.getPropertyValue(rt).toString();if(tt==="vscode-high-contrast")ot.length===0&&nt.name.includes("background")&&(ot="transparent"),nt.name==="button-icon-hover-background"&&(ot="transparent");else if(tt==="vscode-high-contrast-light"){if(ot.length===0&&nt.name.includes("background"))switch(nt.name){case"button-primary-hover-background":ot="#0F4A85";break;case"button-secondary-hover-background":ot="transparent";break;case"button-icon-hover-background":ot="transparent";break}}else nt.name==="contrast-active-border"&&(ot="transparent");nt.setValueFor(et,ot)}}}const tokenMappings=new Map;let isThemeListenerInitialized=!1;function create$1(j,_e){const et=DesignToken.create(j);if(_e){if(_e.includes("--fake-vscode-token")){const tt="id"+Math.random().toString(16).slice(2);_e=`${_e}-${tt}`}tokenMappings.set(_e,et)}return isThemeListenerInitialized||(initThemeChangeListener(tokenMappings),isThemeListenerInitialized=!0),et}const background=create$1("background","--vscode-editor-background").withDefault("#1e1e1e"),borderWidth=create$1("border-width").withDefault(1),contrastActiveBorder=create$1("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");create$1("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const cornerRadius=create$1("corner-radius").withDefault(0),cornerRadiusRound=create$1("corner-radius-round").withDefault(2),designUnit=create$1("design-unit").withDefault(4),disabledOpacity=create$1("disabled-opacity").withDefault(.4),focusBorder=create$1("focus-border","--vscode-focusBorder").withDefault("#007fd4"),fontFamily=create$1("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");create$1("font-weight","--vscode-font-weight").withDefault("400");const foreground=create$1("foreground","--vscode-foreground").withDefault("#cccccc"),inputHeight=create$1("input-height").withDefault("26"),inputMinWidth=create$1("input-min-width").withDefault("100px"),typeRampBaseFontSize=create$1("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),typeRampBaseLineHeight=create$1("type-ramp-base-line-height").withDefault("normal"),typeRampMinus1FontSize=create$1("type-ramp-minus1-font-size").withDefault("11px"),typeRampMinus1LineHeight=create$1("type-ramp-minus1-line-height").withDefault("16px");create$1("type-ramp-minus2-font-size").withDefault("9px");create$1("type-ramp-minus2-line-height").withDefault("16px");create$1("type-ramp-plus1-font-size").withDefault("16px");create$1("type-ramp-plus1-line-height").withDefault("24px");const scrollbarWidth=create$1("scrollbarWidth").withDefault("10px"),scrollbarHeight=create$1("scrollbarHeight").withDefault("10px"),scrollbarSliderBackground=create$1("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),scrollbarSliderHoverBackground=create$1("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),scrollbarSliderActiveBackground=create$1("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),badgeBackground=create$1("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),badgeForeground=create$1("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),buttonBorder=create$1("button-border","--vscode-button-border").withDefault("transparent"),buttonIconBackground=create$1("button-icon-background").withDefault("transparent"),buttonIconCornerRadius=create$1("button-icon-corner-radius").withDefault("5px"),buttonIconFocusBorderOffset=create$1("button-icon-outline-offset").withDefault(0),buttonIconHoverBackground=create$1("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),buttonIconPadding=create$1("button-icon-padding").withDefault("3px"),buttonPrimaryBackground=create$1("button-primary-background","--vscode-button-background").withDefault("#0e639c"),buttonPrimaryForeground=create$1("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),buttonPrimaryHoverBackground=create$1("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),buttonSecondaryBackground=create$1("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),buttonSecondaryForeground=create$1("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),buttonSecondaryHoverBackground=create$1("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),buttonPaddingHorizontal=create$1("button-padding-horizontal").withDefault("11px"),buttonPaddingVertical=create$1("button-padding-vertical").withDefault("4px"),checkboxBackground=create$1("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),checkboxBorder=create$1("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),checkboxCornerRadius=create$1("checkbox-corner-radius").withDefault(3);create$1("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const listActiveSelectionBackground=create$1("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),listActiveSelectionForeground=create$1("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),listHoverBackground=create$1("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),dividerBackground=create$1("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),dropdownBackground=create$1("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),dropdownBorder=create$1("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");create$1("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const dropdownListMaxHeight=create$1("dropdown-list-max-height").withDefault("200px"),inputBackground=create$1("input-background","--vscode-input-background").withDefault("#3c3c3c"),inputForeground=create$1("input-foreground","--vscode-input-foreground").withDefault("#cccccc");create$1("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const linkActiveForeground=create$1("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),linkForeground=create$1("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),progressBackground=create$1("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),panelTabActiveBorder=create$1("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),panelTabActiveForeground=create$1("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),panelTabForeground=create$1("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");create$1("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");create$1("panel-view-border","--vscode-panel-border").withDefault("#80808059");const tagCornerRadius=create$1("tag-corner-radius").withDefault("2px"),badgeStyles=(j,_e)=>css$1` - ${display("inline-block")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampMinus1FontSize}; - line-height: ${typeRampMinus1LineHeight}; - text-align: center; - } - .control { - align-items: center; - background-color: ${badgeBackground}; - border: calc(${borderWidth} * 1px) solid ${buttonBorder}; - border-radius: 11px; - box-sizing: border-box; - color: ${badgeForeground}; - display: flex; - height: calc(${designUnit} * 4px); - justify-content: center; - min-width: calc(${designUnit} * 4px + 2px); - min-height: calc(${designUnit} * 4px + 2px); - padding: 3px 6px; - } -`;class Badge extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const vsCodeBadge=Badge.compose({baseName:"badge",template:badgeTemplate,styles:badgeStyles}),BaseButtonStyles=css$1` - ${display("inline-flex")} :host { - outline: none; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - color: ${buttonPrimaryForeground}; - background: ${buttonPrimaryBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - fill: currentColor; - cursor: pointer; - } - .control { - background: transparent; - height: inherit; - flex-grow: 1; - box-sizing: border-box; - display: inline-flex; - justify-content: center; - align-items: center; - padding: ${buttonPaddingVertical} ${buttonPaddingHorizontal}; - white-space: wrap; - outline: none; - text-decoration: none; - border: calc(${borderWidth} * 1px) solid ${buttonBorder}; - color: inherit; - border-radius: inherit; - fill: inherit; - cursor: inherit; - font-family: inherit; - } - :host(:hover) { - background: ${buttonPrimaryHoverBackground}; - } - :host(:active) { - background: ${buttonPrimaryBackground}; - } - .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: calc(${borderWidth} * 2px); - } - .control::-moz-focus-inner { - border: 0; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - background: ${buttonPrimaryBackground}; - cursor: ${disabledCursor}; - } - .content { - display: flex; - } - .start { - display: flex; - } - ::slotted(svg), - ::slotted(span) { - width: calc(${designUnit} * 4px); - height: calc(${designUnit} * 4px); - } - .start { - margin-inline-end: 8px; - } -`,PrimaryButtonStyles=css$1` - :host([appearance='primary']) { - background: ${buttonPrimaryBackground}; - color: ${buttonPrimaryForeground}; - } - :host([appearance='primary']:hover) { - background: ${buttonPrimaryHoverBackground}; - } - :host([appearance='primary']:active) .control:active { - background: ${buttonPrimaryBackground}; - } - :host([appearance='primary']) .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: calc(${borderWidth} * 2px); - } - :host([appearance='primary'][disabled]) { - background: ${buttonPrimaryBackground}; - } -`,SecondaryButtonStyles=css$1` - :host([appearance='secondary']) { - background: ${buttonSecondaryBackground}; - color: ${buttonSecondaryForeground}; - } - :host([appearance='secondary']:hover) { - background: ${buttonSecondaryHoverBackground}; - } - :host([appearance='secondary']:active) .control:active { - background: ${buttonSecondaryBackground}; - } - :host([appearance='secondary']) .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: calc(${borderWidth} * 2px); - } - :host([appearance='secondary'][disabled]) { - background: ${buttonSecondaryBackground}; - } -`,IconButtonStyles=css$1` - :host([appearance='icon']) { - background: ${buttonIconBackground}; - border-radius: ${buttonIconCornerRadius}; - color: ${foreground}; - } - :host([appearance='icon']:hover) { - background: ${buttonIconHoverBackground}; - outline: 1px dotted ${contrastActiveBorder}; - outline-offset: -1px; - } - :host([appearance='icon']) .control { - padding: ${buttonIconPadding}; - border: none; - } - :host([appearance='icon']:active) .control:active { - background: ${buttonIconHoverBackground}; - } - :host([appearance='icon']) .control:${focusVisible} { - outline: calc(${borderWidth} * 1px) solid ${focusBorder}; - outline-offset: ${buttonIconFocusBorderOffset}; - } - :host([appearance='icon'][disabled]) { - background: ${buttonIconBackground}; - } -`,buttonStyles=(j,_e)=>css$1` - ${BaseButtonStyles} - ${PrimaryButtonStyles} - ${SecondaryButtonStyles} - ${IconButtonStyles} -`;class Button extends Button$1{connectedCallback(){if(super.connectedCallback(),!this.appearance){const _e=this.getAttribute("appearance");this.appearance=_e}}attributeChangedCallback(_e,et,tt){_e==="appearance"&&tt==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),_e==="aria-label"&&(this.ariaLabel=tt),_e==="disabled"&&(this.disabled=tt!==null)}}__decorate$1([attr],Button.prototype,"appearance",void 0);const vsCodeButton=Button.compose({baseName:"button",template:buttonTemplate,styles:buttonStyles,shadowOptions:{delegatesFocus:!0}}),checkboxStyles=(j,_e)=>css$1` - ${display("inline-flex")} :host { - align-items: center; - outline: none; - margin: calc(${designUnit} * 1px) 0; - user-select: none; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - } - .control { - position: relative; - width: calc(${designUnit} * 4px + 2px); - height: calc(${designUnit} * 4px + 2px); - box-sizing: border-box; - border-radius: calc(${checkboxCornerRadius} * 1px); - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - background: ${checkboxBackground}; - outline: none; - cursor: pointer; - } - .label { - font-family: ${fontFamily}; - color: ${foreground}; - padding-inline-start: calc(${designUnit} * 2px + 2px); - margin-inline-end: calc(${designUnit} * 2px + 2px); - cursor: pointer; - } - .label__hidden { - display: none; - visibility: hidden; - } - .checked-indicator { - width: 100%; - height: 100%; - display: block; - fill: ${foreground}; - opacity: 0; - pointer-events: none; - } - .indeterminate-indicator { - border-radius: 2px; - background: ${foreground}; - position: absolute; - top: 50%; - left: 50%; - width: 50%; - height: 50%; - transform: translate(-50%, -50%); - opacity: 0; - } - :host(:enabled) .control:hover { - background: ${checkboxBackground}; - border-color: ${checkboxBorder}; - } - :host(:enabled) .control:active { - background: ${checkboxBackground}; - border-color: ${focusBorder}; - } - :host(:${focusVisible}) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host(.disabled) .label, - :host(.readonly) .label, - :host(.readonly) .control, - :host(.disabled) .control { - cursor: ${disabledCursor}; - } - :host(.checked:not(.indeterminate)) .checked-indicator, - :host(.indeterminate) .indeterminate-indicator { - opacity: 1; - } - :host(.disabled) { - opacity: ${disabledOpacity}; - } -`;class Checkbox extends Checkbox$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const vsCodeCheckbox=Checkbox.compose({baseName:"checkbox",template:checkboxTemplate,styles:checkboxStyles,checkedIndicator:` - - - - `,indeterminateIndicator:` -
- `}),dataGridStyles=(j,_e)=>css$1` - :host { - display: flex; - position: relative; - flex-direction: column; - width: 100%; - } -`,dataGridRowStyles=(j,_e)=>css$1` - :host { - display: grid; - padding: calc((${designUnit} / 4) * 1px) 0; - box-sizing: border-box; - width: 100%; - background: transparent; - } - :host(.header) { - } - :host(.sticky-header) { - background: ${background}; - position: sticky; - top: 0; - } - :host(:hover) { - background: ${listHoverBackground}; - outline: 1px dotted ${contrastActiveBorder}; - outline-offset: -1px; - } -`,dataGridCellStyles=(j,_e)=>css$1` - :host { - padding: calc(${designUnit} * 1px) calc(${designUnit} * 3px); - color: ${foreground}; - opacity: 1; - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - font-weight: 400; - border: solid calc(${borderWidth} * 1px) transparent; - border-radius: calc(${cornerRadius} * 1px); - white-space: wrap; - overflow-wrap: anywhere; - } - :host(.column-header) { - font-weight: 600; - } - :host(:${focusVisible}), - :host(:focus), - :host(:active) { - background: ${listActiveSelectionBackground}; - border: solid calc(${borderWidth} * 1px) ${focusBorder}; - color: ${listActiveSelectionForeground}; - outline: none; - } - :host(:${focusVisible}) ::slotted(*), - :host(:focus) ::slotted(*), - :host(:active) ::slotted(*) { - color: ${listActiveSelectionForeground} !important; - } -`;class DataGrid extends DataGrid$1{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const vsCodeDataGrid=DataGrid.compose({baseName:"data-grid",baseClass:DataGrid$1,template:dataGridTemplate,styles:dataGridStyles});class DataGridRow extends DataGridRow$1{}const vsCodeDataGridRow=DataGridRow.compose({baseName:"data-grid-row",baseClass:DataGridRow$1,template:dataGridRowTemplate,styles:dataGridRowStyles});class DataGridCell extends DataGridCell$1{}const vsCodeDataGridCell=DataGridCell.compose({baseName:"data-grid-cell",baseClass:DataGridCell$1,template:dataGridCellTemplate,styles:dataGridCellStyles}),dividerStyles=(j,_e)=>css$1` - ${display("block")} :host { - border: none; - border-top: calc(${borderWidth} * 1px) solid ${dividerBackground}; - box-sizing: content-box; - height: 0; - margin: calc(${designUnit} * 1px) 0; - width: 100%; - } -`;class Divider extends Divider$1{}const vsCodeDivider=Divider.compose({baseName:"divider",template:dividerTemplate,styles:dividerStyles}),dropdownStyles=(j,_e)=>css$1` - ${display("inline-flex")} :host { - background: ${dropdownBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - box-sizing: border-box; - color: ${foreground}; - contain: contents; - font-family: ${fontFamily}; - height: calc(${inputHeight} * 1px); - position: relative; - user-select: none; - min-width: ${inputMinWidth}; - outline: none; - vertical-align: top; - } - .control { - align-items: center; - box-sizing: border-box; - border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; - border-radius: calc(${cornerRadiusRound} * 1px); - cursor: pointer; - display: flex; - font-family: inherit; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - min-height: 100%; - padding: 2px 6px 2px 8px; - width: 100%; - } - .listbox { - background: ${dropdownBackground}; - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - border-radius: calc(${cornerRadiusRound} * 1px); - box-sizing: border-box; - display: inline-flex; - flex-direction: column; - left: 0; - max-height: ${dropdownListMaxHeight}; - padding: 0; - overflow-y: auto; - position: absolute; - width: 100%; - z-index: 1; - } - .listbox[hidden] { - display: none; - } - :host(:${focusVisible}) .control { - border-color: ${focusBorder}; - } - :host(:not([disabled]):hover) { - background: ${dropdownBackground}; - border-color: ${dropdownBorder}; - } - :host(:${focusVisible}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { - background: ${listActiveSelectionBackground}; - border: calc(${borderWidth} * 1px) solid transparent; - color: ${listActiveSelectionForeground}; - } - :host([disabled]) { - cursor: ${disabledCursor}; - opacity: ${disabledOpacity}; - } - :host([disabled]) .control { - cursor: ${disabledCursor}; - user-select: none; - } - :host([disabled]:hover) { - background: ${dropdownBackground}; - color: ${foreground}; - fill: currentcolor; - } - :host(:not([disabled])) .control:active { - border-color: ${focusBorder}; - } - :host(:empty) .listbox { - display: none; - } - :host([open]) .control { - border-color: ${focusBorder}; - } - :host([open][position='above']) .listbox { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - } - :host([open][position='below']) .listbox { - border-top-left-radius: 0; - border-top-right-radius: 0; - } - :host([open][position='above']) .listbox { - bottom: calc(${inputHeight} * 1px); - } - :host([open][position='below']) .listbox { - top: calc(${inputHeight} * 1px); - } - .selected-value { - flex: 1 1 auto; - font-family: inherit; - overflow: hidden; - text-align: start; - text-overflow: ellipsis; - white-space: nowrap; - } - .indicator { - flex: 0 0 auto; - margin-inline-start: 1em; - } - slot[name='listbox'] { - display: none; - width: 100%; - } - :host([open]) slot[name='listbox'] { - display: flex; - position: absolute; - } - .end { - margin-inline-start: auto; - } - .start, - .end, - .indicator, - .select-indicator, - ::slotted(svg), - ::slotted(span) { - fill: currentcolor; - height: 1em; - min-height: calc(${designUnit} * 4px); - min-width: calc(${designUnit} * 4px); - width: 1em; - } - ::slotted([role='option']), - ::slotted(option) { - flex: 0 0 auto; - } -`;class Dropdown extends Select{}const vsCodeDropdown=Dropdown.compose({baseName:"dropdown",template:selectTemplate,styles:dropdownStyles,indicator:` - - - - `}),linkStyles=(j,_e)=>css$1` - ${display("inline-flex")} :host { - background: transparent; - box-sizing: border-box; - color: ${linkForeground}; - cursor: pointer; - fill: currentcolor; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - outline: none; - } - .control { - background: transparent; - border: calc(${borderWidth} * 1px) solid transparent; - border-radius: calc(${cornerRadius} * 1px); - box-sizing: border-box; - color: inherit; - cursor: inherit; - fill: inherit; - font-family: inherit; - height: inherit; - padding: 0; - outline: none; - text-decoration: none; - word-break: break-word; - } - .control::-moz-focus-inner { - border: 0; - } - :host(:hover) { - color: ${linkActiveForeground}; - } - :host(:hover) .content { - text-decoration: underline; - } - :host(:active) { - background: transparent; - color: ${linkActiveForeground}; - } - :host(:${focusVisible}) .control, - :host(:focus) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } -`;class Link extends Anchor{}const vsCodeLink=Link.compose({baseName:"link",template:anchorTemplate,styles:linkStyles,shadowOptions:{delegatesFocus:!0}}),optionStyles=(j,_e)=>css$1` - ${display("inline-flex")} :host { - font-family: var(--body-font); - border-radius: ${cornerRadius}; - border: calc(${borderWidth} * 1px) solid transparent; - box-sizing: border-box; - color: ${foreground}; - cursor: pointer; - fill: currentcolor; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin: 0; - outline: none; - overflow: hidden; - padding: 0 calc((${designUnit} / 2) * 1px) - calc((${designUnit} / 4) * 1px); - user-select: none; - white-space: nowrap; - } - :host(:${focusVisible}) { - border-color: ${focusBorder}; - background: ${listActiveSelectionBackground}; - color: ${foreground}; - } - :host([aria-selected='true']) { - background: ${listActiveSelectionBackground}; - border: calc(${borderWidth} * 1px) solid transparent; - color: ${listActiveSelectionForeground}; - } - :host(:active) { - background: ${listActiveSelectionBackground}; - color: ${listActiveSelectionForeground}; - } - :host(:not([aria-selected='true']):hover) { - background: ${listActiveSelectionBackground}; - border: calc(${borderWidth} * 1px) solid transparent; - color: ${listActiveSelectionForeground}; - } - :host(:not([aria-selected='true']):active) { - background: ${listActiveSelectionBackground}; - color: ${foreground}; - } - :host([disabled]) { - cursor: ${disabledCursor}; - opacity: ${disabledOpacity}; - } - :host([disabled]:hover) { - background-color: inherit; - } - .content { - grid-column-start: 2; - justify-self: start; - overflow: hidden; - text-overflow: ellipsis; - } -`;let Option$1=class extends ListboxOption{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const vsCodeOption=Option$1.compose({baseName:"option",template:listboxOptionTemplate,styles:optionStyles}),panelsStyles=(j,_e)=>css$1` - ${display("grid")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - color: ${foreground}; - grid-template-columns: auto 1fr auto; - grid-template-rows: auto 1fr; - overflow-x: auto; - } - .tablist { - display: grid; - grid-template-rows: auto auto; - grid-template-columns: auto; - column-gap: calc(${designUnit} * 8px); - position: relative; - width: max-content; - align-self: end; - padding: calc(${designUnit} * 1px) calc(${designUnit} * 1px) 0; - box-sizing: border-box; - } - .start, - .end { - align-self: center; - } - .activeIndicator { - grid-row: 2; - grid-column: 1; - width: 100%; - height: calc((${designUnit} / 4) * 1px); - justify-self: center; - background: ${panelTabActiveForeground}; - margin: 0; - border-radius: calc(${cornerRadius} * 1px); - } - .activeIndicatorTransition { - transition: transform 0.01s linear; - } - .tabpanel { - grid-row: 2; - grid-column-start: 1; - grid-column-end: 4; - position: relative; - } -`,panelTabStyles=(j,_e)=>css$1` - ${display("inline-flex")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - height: calc(${designUnit} * 7px); - padding: calc(${designUnit} * 1px) 0; - color: ${panelTabForeground}; - fill: currentcolor; - border-radius: calc(${cornerRadius} * 1px); - border: solid calc(${borderWidth} * 1px) transparent; - align-items: center; - justify-content: center; - grid-row: 1; - cursor: pointer; - } - :host(:hover) { - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host(:active) { - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host([aria-selected='true']) { - background: transparent; - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host([aria-selected='true']:hover) { - background: transparent; - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host([aria-selected='true']:active) { - background: transparent; - color: ${panelTabActiveForeground}; - fill: currentcolor; - } - :host(:${focusVisible}) { - outline: none; - border: solid calc(${borderWidth} * 1px) ${panelTabActiveBorder}; - } - :host(:focus) { - outline: none; - } - ::slotted(vscode-badge) { - margin-inline-start: calc(${designUnit} * 2px); - } -`,panelViewStyles=(j,_e)=>css$1` - ${display("flex")} :host { - color: inherit; - background-color: transparent; - border: solid calc(${borderWidth} * 1px) transparent; - box-sizing: border-box; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - padding: 10px calc((${designUnit} + 2) * 1px); - } -`;class Panels extends Tabs{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=TabsOrientation.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const vsCodePanels=Panels.compose({baseName:"panels",template:tabsTemplate,styles:panelsStyles});class PanelTab extends Tab{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const vsCodePanelTab=PanelTab.compose({baseName:"panel-tab",template:tabTemplate,styles:panelTabStyles});class PanelView extends TabPanel{}const vsCodePanelView=PanelView.compose({baseName:"panel-view",template:tabPanelTemplate,styles:panelViewStyles}),progressRingStyles=(j,_e)=>css$1` - ${display("flex")} :host { - align-items: center; - outline: none; - height: calc(${designUnit} * 7px); - width: calc(${designUnit} * 7px); - margin: 0; - } - .progress { - height: 100%; - width: 100%; - } - .background { - fill: none; - stroke: transparent; - stroke-width: calc(${designUnit} / 2 * 1px); - } - .indeterminate-indicator-1 { - fill: none; - stroke: ${progressBackground}; - stroke-width: calc(${designUnit} / 2 * 1px); - stroke-linecap: square; - transform-origin: 50% 50%; - transform: rotate(-90deg); - transition: all 0.2s ease-in-out; - animation: spin-infinite 2s linear infinite; - } - @keyframes spin-infinite { - 0% { - stroke-dasharray: 0.01px 43.97px; - transform: rotate(0deg); - } - 50% { - stroke-dasharray: 21.99px 21.99px; - transform: rotate(450deg); - } - 100% { - stroke-dasharray: 0.01px 43.97px; - transform: rotate(1080deg); - } - } -`;class ProgressRing extends BaseProgress{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(_e,et,tt){_e==="value"&&this.removeAttribute("value")}}const vsCodeProgressRing=ProgressRing.compose({baseName:"progress-ring",template:progressRingTemplate,styles:progressRingStyles,indeterminateIndicator:` - - - - - `}),radioGroupStyles=(j,_e)=>css$1` - ${display("flex")} :host { - align-items: flex-start; - margin: calc(${designUnit} * 1px) 0; - flex-direction: column; - } - .positioning-region { - display: flex; - flex-wrap: wrap; - } - :host([orientation='vertical']) .positioning-region { - flex-direction: column; - } - :host([orientation='horizontal']) .positioning-region { - flex-direction: row; - } - ::slotted([slot='label']) { - color: ${foreground}; - font-size: ${typeRampBaseFontSize}; - margin: calc(${designUnit} * 1px) 0; - } -`;class RadioGroup extends RadioGroup$1{connectedCallback(){super.connectedCallback();const _e=this.querySelector("label");if(_e){const et="radio-group-"+Math.random().toString(16).slice(2);_e.setAttribute("id",et),this.setAttribute("aria-labelledby",et)}}}const vsCodeRadioGroup=RadioGroup.compose({baseName:"radio-group",template:radioGroupTemplate,styles:radioGroupStyles}),radioStyles=(j,_e)=>css$1` - ${display("inline-flex")} :host { - align-items: center; - flex-direction: row; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin: calc(${designUnit} * 1px) 0; - outline: none; - position: relative; - transition: all 0.2s ease-in-out; - user-select: none; - } - .control { - background: ${checkboxBackground}; - border-radius: 999px; - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - box-sizing: border-box; - cursor: pointer; - height: calc(${designUnit} * 4px); - position: relative; - outline: none; - width: calc(${designUnit} * 4px); - } - .label { - color: ${foreground}; - cursor: pointer; - font-family: ${fontFamily}; - margin-inline-end: calc(${designUnit} * 2px + 2px); - padding-inline-start: calc(${designUnit} * 2px + 2px); - } - .label__hidden { - display: none; - visibility: hidden; - } - .control, - .checked-indicator { - flex-shrink: 0; - } - .checked-indicator { - background: ${foreground}; - border-radius: 999px; - display: inline-block; - inset: calc(${designUnit} * 1px); - opacity: 0; - pointer-events: none; - position: absolute; - } - :host(:not([disabled])) .control:hover { - background: ${checkboxBackground}; - border-color: ${checkboxBorder}; - } - :host(:not([disabled])) .control:active { - background: ${checkboxBackground}; - border-color: ${focusBorder}; - } - :host(:${focusVisible}) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host([aria-checked='true']) .control { - background: ${checkboxBackground}; - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - } - :host([aria-checked='true']:not([disabled])) .control:hover { - background: ${checkboxBackground}; - border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; - } - :host([aria-checked='true']:not([disabled])) .control:active { - background: ${checkboxBackground}; - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host([aria-checked="true"]:${focusVisible}:not([disabled])) .control { - border: calc(${borderWidth} * 1px) solid ${focusBorder}; - } - :host([disabled]) .label, - :host([readonly]) .label, - :host([readonly]) .control, - :host([disabled]) .control { - cursor: ${disabledCursor}; - } - :host([aria-checked='true']) .checked-indicator { - opacity: 1; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - } -`;class Radio extends Radio$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const vsCodeRadio=Radio.compose({baseName:"radio",template:radioTemplate,styles:radioStyles,checkedIndicator:` -
- `}),tagStyles=(j,_e)=>css$1` - ${display("inline-block")} :host { - box-sizing: border-box; - font-family: ${fontFamily}; - font-size: ${typeRampMinus1FontSize}; - line-height: ${typeRampMinus1LineHeight}; - } - .control { - background-color: ${badgeBackground}; - border: calc(${borderWidth} * 1px) solid ${buttonBorder}; - border-radius: ${tagCornerRadius}; - color: ${badgeForeground}; - padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 1px); - text-transform: uppercase; - } -`;class Tag extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const vsCodeTag=Tag.compose({baseName:"tag",template:badgeTemplate,styles:tagStyles}),textAreaStyles=(j,_e)=>css$1` - ${display("inline-block")} :host { - font-family: ${fontFamily}; - outline: none; - user-select: none; - } - .control { - box-sizing: border-box; - position: relative; - color: ${inputForeground}; - background: ${inputBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; - font: inherit; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - padding: calc(${designUnit} * 2px + 1px); - width: 100%; - min-width: ${inputMinWidth}; - resize: none; - } - .control:hover:enabled { - background: ${inputBackground}; - border-color: ${dropdownBorder}; - } - .control:active:enabled { - background: ${inputBackground}; - border-color: ${focusBorder}; - } - .control:hover, - .control:${focusVisible}, - .control:disabled, - .control:active { - outline: none; - } - .control::-webkit-scrollbar { - width: ${scrollbarWidth}; - height: ${scrollbarHeight}; - } - .control::-webkit-scrollbar-corner { - background: ${inputBackground}; - } - .control::-webkit-scrollbar-thumb { - background: ${scrollbarSliderBackground}; - } - .control::-webkit-scrollbar-thumb:hover { - background: ${scrollbarSliderHoverBackground}; - } - .control::-webkit-scrollbar-thumb:active { - background: ${scrollbarSliderActiveBackground}; - } - :host(:focus-within:not([disabled])) .control { - border-color: ${focusBorder}; - } - :host([resize='both']) .control { - resize: both; - } - :host([resize='horizontal']) .control { - resize: horizontal; - } - :host([resize='vertical']) .control { - resize: vertical; - } - .label { - display: block; - color: ${foreground}; - cursor: pointer; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin-bottom: 2px; - } - .label__hidden { - display: none; - visibility: hidden; - } - :host([disabled]) .label, - :host([readonly]) .label, - :host([readonly]) .control, - :host([disabled]) .control { - cursor: ${disabledCursor}; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - } - :host([disabled]) .control { - border-color: ${dropdownBorder}; - } -`;class TextArea extends TextArea$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const vsCodeTextArea=TextArea.compose({baseName:"text-area",template:textAreaTemplate,styles:textAreaStyles,shadowOptions:{delegatesFocus:!0}}),textFieldStyles=(j,_e)=>css$1` - ${display("inline-block")} :host { - font-family: ${fontFamily}; - outline: none; - user-select: none; - } - .root { - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: row; - color: ${inputForeground}; - background: ${inputBackground}; - border-radius: calc(${cornerRadiusRound} * 1px); - border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; - height: calc(${inputHeight} * 1px); - min-width: ${inputMinWidth}; - } - .control { - -webkit-appearance: none; - font: inherit; - background: transparent; - border: 0; - color: inherit; - height: calc(100% - (${designUnit} * 1px)); - width: 100%; - margin-top: auto; - margin-bottom: auto; - border: none; - padding: 0 calc(${designUnit} * 2px + 1px); - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - } - .control:hover, - .control:${focusVisible}, - .control:disabled, - .control:active { - outline: none; - } - .label { - display: block; - color: ${foreground}; - cursor: pointer; - font-size: ${typeRampBaseFontSize}; - line-height: ${typeRampBaseLineHeight}; - margin-bottom: 2px; - } - .label__hidden { - display: none; - visibility: hidden; - } - .start, - .end { - display: flex; - margin: auto; - fill: currentcolor; - } - ::slotted(svg), - ::slotted(span) { - width: calc(${designUnit} * 4px); - height: calc(${designUnit} * 4px); - } - .start { - margin-inline-start: calc(${designUnit} * 2px); - } - .end { - margin-inline-end: calc(${designUnit} * 2px); - } - :host(:hover:not([disabled])) .root { - background: ${inputBackground}; - border-color: ${dropdownBorder}; - } - :host(:active:not([disabled])) .root { - background: ${inputBackground}; - border-color: ${focusBorder}; - } - :host(:focus-within:not([disabled])) .root { - border-color: ${focusBorder}; - } - :host([disabled]) .label, - :host([readonly]) .label, - :host([readonly]) .control, - :host([disabled]) .control { - cursor: ${disabledCursor}; - } - :host([disabled]) { - opacity: ${disabledOpacity}; - } - :host([disabled]) .control { - border-color: ${dropdownBorder}; - } -`;class TextField extends TextField$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const vsCodeTextField=TextField.compose({baseName:"text-field",template:textFieldTemplate,styles:textFieldStyles,shadowOptions:{delegatesFocus:!0}}),{wrap}=provideReactWrapper(React,provideVSCodeDesignSystem());wrap(vsCodeBadge(),{name:"vscode-badge"});wrap(vsCodeButton(),{name:"vscode-button"});wrap(vsCodeCheckbox(),{name:"vscode-checkbox",events:{onChange:"change"}});wrap(vsCodeDataGrid(),{name:"vscode-data-grid"});wrap(vsCodeDataGridCell(),{name:"vscode-data-grid-cell"});wrap(vsCodeDataGridRow(),{name:"vscode-data-grid-row"});wrap(vsCodeDivider(),{name:"vscode-divider"});wrap(vsCodeDropdown(),{name:"vscode-dropdown",events:{onChange:"change"}});wrap(vsCodeLink(),{name:"vscode-link"});wrap(vsCodeOption(),{name:"vscode-option"});wrap(vsCodePanels(),{name:"vscode-panels",events:{onChange:"change"}});wrap(vsCodePanelTab(),{name:"vscode-panel-tab"});wrap(vsCodePanelView(),{name:"vscode-panel-view"});const VSCodeProgressRing=wrap(vsCodeProgressRing(),{name:"vscode-progress-ring"});wrap(vsCodeRadio(),{name:"vscode-radio",events:{onChange:"change"}});wrap(vsCodeRadioGroup(),{name:"vscode-radio-group",events:{onChange:"change"}});wrap(vsCodeTag(),{name:"vscode-tag"});wrap(vsCodeTextArea(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});wrap(vsCodeTextField(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});const Loading=({isFullPage:j=!1,style:_e={}})=>{const et=j?{..._e,height:"100vh",width:"100%"}:{..._e};return jsxRuntimeExports.jsx(Stack$1,{horizontalAlign:"center",verticalAlign:"center",verticalFill:!0,style:et,children:jsxRuntimeExports.jsx(VSCodeProgressRing,{})})};memoizeFunction((j,_e)=>mergeStyleSets({root:mergeStyles$1({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",..._e&&{position:"fixed",top:0,zIndex:100}},j),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var toggleSelection=function(){var j=document.getSelection();if(!j.rangeCount)return function(){};for(var _e=document.activeElement,et=[],tt=0;tt"u"){et&&console.warn("unable to use e.clipboardData"),et&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ct=clipboardToIE11Formatting[_e.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(ct,j)}else ut.clipboardData.clearData(),ut.clipboardData.setData(_e.format,j);_e.onCopy&&(ut.preventDefault(),_e.onCopy(ut.clipboardData))}),document.body.appendChild(it),nt.selectNodeContents(it),ot.addRange(nt);var lt=document.execCommand("copy");if(!lt)throw new Error("copy command was unsuccessful");st=!0}catch(ut){et&&console.error("unable to copy using execCommand: ",ut),et&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(_e.format||"text",j),_e.onCopy&&_e.onCopy(window.clipboardData),st=!0}catch(ct){et&&console.error("unable to copy using clipboardData: ",ct),et&&console.error("falling back to prompt"),tt=format$1("message"in _e?_e.message:defaultMessage),window.prompt(tt,j)}}finally{ot&&(typeof ot.removeRange=="function"?ot.removeRange(nt):ot.removeAllRanges()),it&&document.body.removeChild(it),rt()}return st}var copyToClipboard=copy$3;const copy$4=getDefaultExportFromCjs(copyToClipboard);var main={exports:{}};(function(j,_e){(function(et,tt){j.exports=tt(reactExports)})(commonjsGlobal,function(et){return function(tt){var rt={};function nt(ot){if(rt[ot])return rt[ot].exports;var it=rt[ot]={i:ot,l:!1,exports:{}};return tt[ot].call(it.exports,it,it.exports,nt),it.l=!0,it.exports}return nt.m=tt,nt.c=rt,nt.d=function(ot,it,st){nt.o(ot,it)||Object.defineProperty(ot,it,{enumerable:!0,get:st})},nt.r=function(ot){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ot,"__esModule",{value:!0})},nt.t=function(ot,it){if(1&it&&(ot=nt(ot)),8&it||4&it&&typeof ot=="object"&&ot&&ot.__esModule)return ot;var st=Object.create(null);if(nt.r(st),Object.defineProperty(st,"default",{enumerable:!0,value:ot}),2&it&&typeof ot!="string")for(var lt in ot)nt.d(st,lt,(function(ut){return ot[ut]}).bind(null,lt));return st},nt.n=function(ot){var it=ot&&ot.__esModule?function(){return ot.default}:function(){return ot};return nt.d(it,"a",it),it},nt.o=function(ot,it){return Object.prototype.hasOwnProperty.call(ot,it)},nt.p="",nt(nt.s=48)}([function(tt,rt){tt.exports=et},function(tt,rt){var nt=tt.exports={version:"2.6.12"};typeof __e=="number"&&(__e=nt)},function(tt,rt,nt){var ot=nt(26)("wks"),it=nt(17),st=nt(3).Symbol,lt=typeof st=="function";(tt.exports=function(ut){return ot[ut]||(ot[ut]=lt&&st[ut]||(lt?st:it)("Symbol."+ut))}).store=ot},function(tt,rt){var nt=tt.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=nt)},function(tt,rt,nt){tt.exports=!nt(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(tt,rt){var nt={}.hasOwnProperty;tt.exports=function(ot,it){return nt.call(ot,it)}},function(tt,rt,nt){var ot=nt(7),it=nt(16);tt.exports=nt(4)?function(st,lt,ut){return ot.f(st,lt,it(1,ut))}:function(st,lt,ut){return st[lt]=ut,st}},function(tt,rt,nt){var ot=nt(10),it=nt(35),st=nt(23),lt=Object.defineProperty;rt.f=nt(4)?Object.defineProperty:function(ut,ct,dt){if(ot(ut),ct=st(ct,!0),ot(dt),it)try{return lt(ut,ct,dt)}catch{}if("get"in dt||"set"in dt)throw TypeError("Accessors not supported!");return"value"in dt&&(ut[ct]=dt.value),ut}},function(tt,rt){tt.exports=function(nt){try{return!!nt()}catch{return!0}}},function(tt,rt,nt){var ot=nt(40),it=nt(22);tt.exports=function(st){return ot(it(st))}},function(tt,rt,nt){var ot=nt(11);tt.exports=function(it){if(!ot(it))throw TypeError(it+" is not an object!");return it}},function(tt,rt){tt.exports=function(nt){return typeof nt=="object"?nt!==null:typeof nt=="function"}},function(tt,rt){tt.exports={}},function(tt,rt,nt){var ot=nt(39),it=nt(27);tt.exports=Object.keys||function(st){return ot(st,it)}},function(tt,rt){tt.exports=!0},function(tt,rt,nt){var ot=nt(3),it=nt(1),st=nt(53),lt=nt(6),ut=nt(5),ct=function(dt,ft,pt){var gt,mt,bt,_t=dt&ct.F,xt=dt&ct.G,yt=dt&ct.S,Et=dt&ct.P,St=dt&ct.B,Tt=dt&ct.W,kt=xt?it:it[ft]||(it[ft]={}),$t=kt.prototype,Ct=xt?ot:yt?ot[ft]:(ot[ft]||{}).prototype;for(gt in xt&&(pt=ft),pt)(mt=!_t&&Ct&&Ct[gt]!==void 0)&&ut(kt,gt)||(bt=mt?Ct[gt]:pt[gt],kt[gt]=xt&&typeof Ct[gt]!="function"?pt[gt]:St&&mt?st(bt,ot):Tt&&Ct[gt]==bt?function(It){var Nt=function(Ot,jt,Mt){if(this instanceof It){switch(arguments.length){case 0:return new It;case 1:return new It(Ot);case 2:return new It(Ot,jt)}return new It(Ot,jt,Mt)}return It.apply(this,arguments)};return Nt.prototype=It.prototype,Nt}(bt):Et&&typeof bt=="function"?st(Function.call,bt):bt,Et&&((kt.virtual||(kt.virtual={}))[gt]=bt,dt&ct.R&&$t&&!$t[gt]&<($t,gt,bt)))};ct.F=1,ct.G=2,ct.S=4,ct.P=8,ct.B=16,ct.W=32,ct.U=64,ct.R=128,tt.exports=ct},function(tt,rt){tt.exports=function(nt,ot){return{enumerable:!(1&nt),configurable:!(2&nt),writable:!(4&nt),value:ot}}},function(tt,rt){var nt=0,ot=Math.random();tt.exports=function(it){return"Symbol(".concat(it===void 0?"":it,")_",(++nt+ot).toString(36))}},function(tt,rt,nt){var ot=nt(22);tt.exports=function(it){return Object(ot(it))}},function(tt,rt){rt.f={}.propertyIsEnumerable},function(tt,rt,nt){var ot=nt(52)(!0);nt(34)(String,"String",function(it){this._t=String(it),this._i=0},function(){var it,st=this._t,lt=this._i;return lt>=st.length?{value:void 0,done:!0}:(it=ot(st,lt),this._i+=it.length,{value:it,done:!1})})},function(tt,rt){var nt=Math.ceil,ot=Math.floor;tt.exports=function(it){return isNaN(it=+it)?0:(it>0?ot:nt)(it)}},function(tt,rt){tt.exports=function(nt){if(nt==null)throw TypeError("Can't call method on "+nt);return nt}},function(tt,rt,nt){var ot=nt(11);tt.exports=function(it,st){if(!ot(it))return it;var lt,ut;if(st&&typeof(lt=it.toString)=="function"&&!ot(ut=lt.call(it))||typeof(lt=it.valueOf)=="function"&&!ot(ut=lt.call(it))||!st&&typeof(lt=it.toString)=="function"&&!ot(ut=lt.call(it)))return ut;throw TypeError("Can't convert object to primitive value")}},function(tt,rt){var nt={}.toString;tt.exports=function(ot){return nt.call(ot).slice(8,-1)}},function(tt,rt,nt){var ot=nt(26)("keys"),it=nt(17);tt.exports=function(st){return ot[st]||(ot[st]=it(st))}},function(tt,rt,nt){var ot=nt(1),it=nt(3),st=it["__core-js_shared__"]||(it["__core-js_shared__"]={});(tt.exports=function(lt,ut){return st[lt]||(st[lt]=ut!==void 0?ut:{})})("versions",[]).push({version:ot.version,mode:nt(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(tt,rt){tt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(tt,rt,nt){var ot=nt(7).f,it=nt(5),st=nt(2)("toStringTag");tt.exports=function(lt,ut,ct){lt&&!it(lt=ct?lt:lt.prototype,st)&&ot(lt,st,{configurable:!0,value:ut})}},function(tt,rt,nt){nt(62);for(var ot=nt(3),it=nt(6),st=nt(12),lt=nt(2)("toStringTag"),ut="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),ct=0;ctdocument.F=Object<\/script>"),dt.close(),ct=dt.F;pt--;)delete ct.prototype[st[pt]];return ct()};tt.exports=Object.create||function(dt,ft){var pt;return dt!==null?(ut.prototype=ot(dt),pt=new ut,ut.prototype=null,pt[lt]=dt):pt=ct(),ft===void 0?pt:it(pt,ft)}},function(tt,rt,nt){var ot=nt(5),it=nt(9),st=nt(57)(!1),lt=nt(25)("IE_PROTO");tt.exports=function(ut,ct){var dt,ft=it(ut),pt=0,gt=[];for(dt in ft)dt!=lt&&ot(ft,dt)&>.push(dt);for(;ct.length>pt;)ot(ft,dt=ct[pt++])&&(~st(gt,dt)||gt.push(dt));return gt}},function(tt,rt,nt){var ot=nt(24);tt.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return ot(it)=="String"?it.split(""):Object(it)}},function(tt,rt,nt){var ot=nt(39),it=nt(27).concat("length","prototype");rt.f=Object.getOwnPropertyNames||function(st){return ot(st,it)}},function(tt,rt,nt){var ot=nt(24),it=nt(2)("toStringTag"),st=ot(function(){return arguments}())=="Arguments";tt.exports=function(lt){var ut,ct,dt;return lt===void 0?"Undefined":lt===null?"Null":typeof(ct=function(ft,pt){try{return ft[pt]}catch{}}(ut=Object(lt),it))=="string"?ct:st?ot(ut):(dt=ot(ut))=="Object"&&typeof ut.callee=="function"?"Arguments":dt}},function(tt,rt){var nt;nt=function(){return this}();try{nt=nt||new Function("return this")()}catch{typeof window=="object"&&(nt=window)}tt.exports=nt},function(tt,rt){var nt=/-?\d+(\.\d+)?%?/g;tt.exports=function(ot){return ot.match(nt)}},function(tt,rt,nt){Object.defineProperty(rt,"__esModule",{value:!0}),rt.getBase16Theme=rt.createStyling=rt.invertTheme=void 0;var ot=mt(nt(49)),it=mt(nt(76)),st=mt(nt(81)),lt=mt(nt(89)),ut=mt(nt(93)),ct=function($t){if($t&&$t.__esModule)return $t;var Ct={};if($t!=null)for(var It in $t)Object.prototype.hasOwnProperty.call($t,It)&&(Ct[It]=$t[It]);return Ct.default=$t,Ct}(nt(94)),dt=mt(nt(132)),ft=mt(nt(133)),pt=mt(nt(138)),gt=nt(139);function mt($t){return $t&&$t.__esModule?$t:{default:$t}}var bt=ct.default,_t=(0,lt.default)(bt),xt=(0,pt.default)(ft.default,gt.rgb2yuv,function($t){var Ct,It=(0,st.default)($t,3),Nt=It[0],Ot=It[1],jt=It[2];return[(Ct=Nt,Ct<.25?1:Ct<.5?.9-Ct:1.1-Ct),Ot,jt]},gt.yuv2rgb,dt.default),yt=function($t){return function(Ct){return{className:[Ct.className,$t.className].filter(Boolean).join(" "),style:(0,it.default)({},Ct.style||{},$t.style||{})}}},Et=function($t,Ct){var It=(0,lt.default)(Ct);for(var Nt in $t)It.indexOf(Nt)===-1&&It.push(Nt);return It.reduce(function(Ot,jt){return Ot[jt]=function(Mt,Rt){if(Mt===void 0)return Rt;if(Rt===void 0)return Mt;var Lt=Mt===void 0?"undefined":(0,ot.default)(Mt),Pt=Rt===void 0?"undefined":(0,ot.default)(Rt);switch(Lt){case"string":switch(Pt){case"string":return[Rt,Mt].filter(Boolean).join(" ");case"object":return yt({className:Mt,style:Rt});case"function":return function(Gt){for(var qt=arguments.length,Yt=Array(qt>1?qt-1:0),Xt=1;Xt1?qt-1:0),Xt=1;Xt1?qt-1:0),Xt=1;Xt1?qt-1:0),Xt=1;Xt1?qt-1:0),Xt=1;Xt2?It-2:0),Ot=2;Ot3?Ct-3:0),Nt=3;Nt1&&arguments[1]!==void 0?arguments[1]:{},jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Mt=Ot.defaultBase16,Rt=Mt===void 0?bt:Mt,Lt=Ot.base16Themes,Pt=Lt===void 0?null:Lt,Gt=kt(jt,Pt);Gt&&(jt=(0,it.default)({},Gt,jt));var qt=_t.reduce(function(cr,mr){return cr[mr]=jt[mr]||Rt[mr],cr},{}),Yt=(0,lt.default)(jt).reduce(function(cr,mr){return _t.indexOf(mr)===-1&&(cr[mr]=jt[mr]),cr},{}),Xt=$t(qt),tr=Et(Yt,Xt);return(0,ut.default)(St,2).apply(void 0,[tr].concat(It))},3),rt.getBase16Theme=function($t,Ct){if($t&&$t.extend&&($t=$t.extend),typeof $t=="string"){var It=$t.split(":"),Nt=(0,st.default)(It,2),Ot=Nt[0],jt=Nt[1];$t=(Ct||{})[Ot]||ct[Ot],jt==="inverted"&&($t=Tt($t))}return $t&&$t.hasOwnProperty("base00")?$t:void 0})},function(tt,rt,nt){var ot,it=typeof Reflect=="object"?Reflect:null,st=it&&typeof it.apply=="function"?it.apply:function(yt,Et,St){return Function.prototype.apply.call(yt,Et,St)};ot=it&&typeof it.ownKeys=="function"?it.ownKeys:Object.getOwnPropertySymbols?function(yt){return Object.getOwnPropertyNames(yt).concat(Object.getOwnPropertySymbols(yt))}:function(yt){return Object.getOwnPropertyNames(yt)};var lt=Number.isNaN||function(yt){return yt!=yt};function ut(){ut.init.call(this)}tt.exports=ut,tt.exports.once=function(yt,Et){return new Promise(function(St,Tt){function kt(){$t!==void 0&&yt.removeListener("error",$t),St([].slice.call(arguments))}var $t;Et!=="error"&&($t=function(Ct){yt.removeListener(Et,kt),Tt(Ct)},yt.once("error",$t)),yt.once(Et,kt)})},ut.EventEmitter=ut,ut.prototype._events=void 0,ut.prototype._eventsCount=0,ut.prototype._maxListeners=void 0;var ct=10;function dt(yt){if(typeof yt!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof yt)}function ft(yt){return yt._maxListeners===void 0?ut.defaultMaxListeners:yt._maxListeners}function pt(yt,Et,St,Tt){var kt,$t,Ct,It;if(dt(St),($t=yt._events)===void 0?($t=yt._events=Object.create(null),yt._eventsCount=0):($t.newListener!==void 0&&(yt.emit("newListener",Et,St.listener?St.listener:St),$t=yt._events),Ct=$t[Et]),Ct===void 0)Ct=$t[Et]=St,++yt._eventsCount;else if(typeof Ct=="function"?Ct=$t[Et]=Tt?[St,Ct]:[Ct,St]:Tt?Ct.unshift(St):Ct.push(St),(kt=ft(yt))>0&&Ct.length>kt&&!Ct.warned){Ct.warned=!0;var Nt=new Error("Possible EventEmitter memory leak detected. "+Ct.length+" "+String(Et)+" listeners added. Use emitter.setMaxListeners() to increase limit");Nt.name="MaxListenersExceededWarning",Nt.emitter=yt,Nt.type=Et,Nt.count=Ct.length,It=Nt,console&&console.warn&&console.warn(It)}return yt}function gt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function mt(yt,Et,St){var Tt={fired:!1,wrapFn:void 0,target:yt,type:Et,listener:St},kt=gt.bind(Tt);return kt.listener=St,Tt.wrapFn=kt,kt}function bt(yt,Et,St){var Tt=yt._events;if(Tt===void 0)return[];var kt=Tt[Et];return kt===void 0?[]:typeof kt=="function"?St?[kt.listener||kt]:[kt]:St?function($t){for(var Ct=new Array($t.length),It=0;It0&&($t=Et[0]),$t instanceof Error)throw $t;var Ct=new Error("Unhandled error."+($t?" ("+$t.message+")":""));throw Ct.context=$t,Ct}var It=kt[yt];if(It===void 0)return!1;if(typeof It=="function")st(It,this,Et);else{var Nt=It.length,Ot=xt(It,Nt);for(St=0;St=0;$t--)if(St[$t]===Et||St[$t].listener===Et){Ct=St[$t].listener,kt=$t;break}if(kt<0)return this;kt===0?St.shift():function(It,Nt){for(;Nt+1=0;Tt--)this.removeListener(yt,Et[Tt]);return this},ut.prototype.listeners=function(yt){return bt(this,yt,!0)},ut.prototype.rawListeners=function(yt){return bt(this,yt,!1)},ut.listenerCount=function(yt,Et){return typeof yt.listenerCount=="function"?yt.listenerCount(Et):_t.call(yt,Et)},ut.prototype.listenerCount=_t,ut.prototype.eventNames=function(){return this._eventsCount>0?ot(this._events):[]}},function(tt,rt,nt){tt.exports.Dispatcher=nt(140)},function(tt,rt,nt){tt.exports=nt(142)},function(tt,rt,nt){rt.__esModule=!0;var ot=lt(nt(50)),it=lt(nt(65)),st=typeof it.default=="function"&&typeof ot.default=="symbol"?function(ut){return typeof ut}:function(ut){return ut&&typeof it.default=="function"&&ut.constructor===it.default&&ut!==it.default.prototype?"symbol":typeof ut};function lt(ut){return ut&&ut.__esModule?ut:{default:ut}}rt.default=typeof it.default=="function"&&st(ot.default)==="symbol"?function(ut){return ut===void 0?"undefined":st(ut)}:function(ut){return ut&&typeof it.default=="function"&&ut.constructor===it.default&&ut!==it.default.prototype?"symbol":ut===void 0?"undefined":st(ut)}},function(tt,rt,nt){tt.exports={default:nt(51),__esModule:!0}},function(tt,rt,nt){nt(20),nt(29),tt.exports=nt(30).f("iterator")},function(tt,rt,nt){var ot=nt(21),it=nt(22);tt.exports=function(st){return function(lt,ut){var ct,dt,ft=String(it(lt)),pt=ot(ut),gt=ft.length;return pt<0||pt>=gt?st?"":void 0:(ct=ft.charCodeAt(pt))<55296||ct>56319||pt+1===gt||(dt=ft.charCodeAt(pt+1))<56320||dt>57343?st?ft.charAt(pt):ct:st?ft.slice(pt,pt+2):dt-56320+(ct-55296<<10)+65536}}},function(tt,rt,nt){var ot=nt(54);tt.exports=function(it,st,lt){if(ot(it),st===void 0)return it;switch(lt){case 1:return function(ut){return it.call(st,ut)};case 2:return function(ut,ct){return it.call(st,ut,ct)};case 3:return function(ut,ct,dt){return it.call(st,ut,ct,dt)}}return function(){return it.apply(st,arguments)}}},function(tt,rt){tt.exports=function(nt){if(typeof nt!="function")throw TypeError(nt+" is not a function!");return nt}},function(tt,rt,nt){var ot=nt(38),it=nt(16),st=nt(28),lt={};nt(6)(lt,nt(2)("iterator"),function(){return this}),tt.exports=function(ut,ct,dt){ut.prototype=ot(lt,{next:it(1,dt)}),st(ut,ct+" Iterator")}},function(tt,rt,nt){var ot=nt(7),it=nt(10),st=nt(13);tt.exports=nt(4)?Object.defineProperties:function(lt,ut){it(lt);for(var ct,dt=st(ut),ft=dt.length,pt=0;ft>pt;)ot.f(lt,ct=dt[pt++],ut[ct]);return lt}},function(tt,rt,nt){var ot=nt(9),it=nt(58),st=nt(59);tt.exports=function(lt){return function(ut,ct,dt){var ft,pt=ot(ut),gt=it(pt.length),mt=st(dt,gt);if(lt&&ct!=ct){for(;gt>mt;)if((ft=pt[mt++])!=ft)return!0}else for(;gt>mt;mt++)if((lt||mt in pt)&&pt[mt]===ct)return lt||mt||0;return!lt&&-1}}},function(tt,rt,nt){var ot=nt(21),it=Math.min;tt.exports=function(st){return st>0?it(ot(st),9007199254740991):0}},function(tt,rt,nt){var ot=nt(21),it=Math.max,st=Math.min;tt.exports=function(lt,ut){return(lt=ot(lt))<0?it(lt+ut,0):st(lt,ut)}},function(tt,rt,nt){var ot=nt(3).document;tt.exports=ot&&ot.documentElement},function(tt,rt,nt){var ot=nt(5),it=nt(18),st=nt(25)("IE_PROTO"),lt=Object.prototype;tt.exports=Object.getPrototypeOf||function(ut){return ut=it(ut),ot(ut,st)?ut[st]:typeof ut.constructor=="function"&&ut instanceof ut.constructor?ut.constructor.prototype:ut instanceof Object?lt:null}},function(tt,rt,nt){var ot=nt(63),it=nt(64),st=nt(12),lt=nt(9);tt.exports=nt(34)(Array,"Array",function(ut,ct){this._t=lt(ut),this._i=0,this._k=ct},function(){var ut=this._t,ct=this._k,dt=this._i++;return!ut||dt>=ut.length?(this._t=void 0,it(1)):it(0,ct=="keys"?dt:ct=="values"?ut[dt]:[dt,ut[dt]])},"values"),st.Arguments=st.Array,ot("keys"),ot("values"),ot("entries")},function(tt,rt){tt.exports=function(){}},function(tt,rt){tt.exports=function(nt,ot){return{value:ot,done:!!nt}}},function(tt,rt,nt){tt.exports={default:nt(66),__esModule:!0}},function(tt,rt,nt){nt(67),nt(73),nt(74),nt(75),tt.exports=nt(1).Symbol},function(tt,rt,nt){var ot=nt(3),it=nt(5),st=nt(4),lt=nt(15),ut=nt(37),ct=nt(68).KEY,dt=nt(8),ft=nt(26),pt=nt(28),gt=nt(17),mt=nt(2),bt=nt(30),_t=nt(31),xt=nt(69),yt=nt(70),Et=nt(10),St=nt(11),Tt=nt(18),kt=nt(9),$t=nt(23),Ct=nt(16),It=nt(38),Nt=nt(71),Ot=nt(72),jt=nt(32),Mt=nt(7),Rt=nt(13),Lt=Ot.f,Pt=Mt.f,Gt=Nt.f,qt=ot.Symbol,Yt=ot.JSON,Xt=Yt&&Yt.stringify,tr=mt("_hidden"),cr=mt("toPrimitive"),mr={}.propertyIsEnumerable,Er=ft("symbol-registry"),hr=ft("symbols"),_r=ft("op-symbols"),Ut=Object.prototype,ar=typeof qt=="function"&&!!jt.f,pr=ot.QObject,rr=!pr||!pr.prototype||!pr.prototype.findChild,vr=st&&dt(function(){return It(Pt({},"a",{get:function(){return Pt(this,"a",{value:7}).a}})).a!=7})?function(ir,gr,wr){var Mr=Lt(Ut,gr);Mr&&delete Ut[gr],Pt(ir,gr,wr),Mr&&ir!==Ut&&Pt(Ut,gr,Mr)}:Pt,$r=function(ir){var gr=hr[ir]=It(qt.prototype);return gr._k=ir,gr},Rr=ar&&typeof qt.iterator=="symbol"?function(ir){return typeof ir=="symbol"}:function(ir){return ir instanceof qt},Cr=function(ir,gr,wr){return ir===Ut&&Cr(_r,gr,wr),Et(ir),gr=$t(gr,!0),Et(wr),it(hr,gr)?(wr.enumerable?(it(ir,tr)&&ir[tr][gr]&&(ir[tr][gr]=!1),wr=It(wr,{enumerable:Ct(0,!1)})):(it(ir,tr)||Pt(ir,tr,Ct(1,{})),ir[tr][gr]=!0),vr(ir,gr,wr)):Pt(ir,gr,wr)},Nr=function(ir,gr){Et(ir);for(var wr,Mr=xt(gr=kt(gr)),Sr=0,Ir=Mr.length;Ir>Sr;)Cr(ir,wr=Mr[Sr++],gr[wr]);return ir},Gr=function(ir){var gr=mr.call(this,ir=$t(ir,!0));return!(this===Ut&&it(hr,ir)&&!it(_r,ir))&&(!(gr||!it(this,ir)||!it(hr,ir)||it(this,tr)&&this[tr][ir])||gr)},qr=function(ir,gr){if(ir=kt(ir),gr=$t(gr,!0),ir!==Ut||!it(hr,gr)||it(_r,gr)){var wr=Lt(ir,gr);return!wr||!it(hr,gr)||it(ir,tr)&&ir[tr][gr]||(wr.enumerable=!0),wr}},Qr=function(ir){for(var gr,wr=Gt(kt(ir)),Mr=[],Sr=0;wr.length>Sr;)it(hr,gr=wr[Sr++])||gr==tr||gr==ct||Mr.push(gr);return Mr},Yr=function(ir){for(var gr,wr=ir===Ut,Mr=Gt(wr?_r:kt(ir)),Sr=[],Ir=0;Mr.length>Ir;)!it(hr,gr=Mr[Ir++])||wr&&!it(Ut,gr)||Sr.push(hr[gr]);return Sr};ar||(ut((qt=function(){if(this instanceof qt)throw TypeError("Symbol is not a constructor!");var ir=gt(arguments.length>0?arguments[0]:void 0),gr=function(wr){this===Ut&&gr.call(_r,wr),it(this,tr)&&it(this[tr],ir)&&(this[tr][ir]=!1),vr(this,ir,Ct(1,wr))};return st&&rr&&vr(Ut,ir,{configurable:!0,set:gr}),$r(ir)}).prototype,"toString",function(){return this._k}),Ot.f=qr,Mt.f=Cr,nt(41).f=Nt.f=Qr,nt(19).f=Gr,jt.f=Yr,st&&!nt(14)&&ut(Ut,"propertyIsEnumerable",Gr,!0),bt.f=function(ir){return $r(mt(ir))}),lt(lt.G+lt.W+lt.F*!ar,{Symbol:qt});for(var Pr="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Vr=0;Pr.length>Vr;)mt(Pr[Vr++]);for(var yn=Rt(mt.store),fr=0;yn.length>fr;)_t(yn[fr++]);lt(lt.S+lt.F*!ar,"Symbol",{for:function(ir){return it(Er,ir+="")?Er[ir]:Er[ir]=qt(ir)},keyFor:function(ir){if(!Rr(ir))throw TypeError(ir+" is not a symbol!");for(var gr in Er)if(Er[gr]===ir)return gr},useSetter:function(){rr=!0},useSimple:function(){rr=!1}}),lt(lt.S+lt.F*!ar,"Object",{create:function(ir,gr){return gr===void 0?It(ir):Nr(It(ir),gr)},defineProperty:Cr,defineProperties:Nr,getOwnPropertyDescriptor:qr,getOwnPropertyNames:Qr,getOwnPropertySymbols:Yr});var sr=dt(function(){jt.f(1)});lt(lt.S+lt.F*sr,"Object",{getOwnPropertySymbols:function(ir){return jt.f(Tt(ir))}}),Yt&<(lt.S+lt.F*(!ar||dt(function(){var ir=qt();return Xt([ir])!="[null]"||Xt({a:ir})!="{}"||Xt(Object(ir))!="{}"})),"JSON",{stringify:function(ir){for(var gr,wr,Mr=[ir],Sr=1;arguments.length>Sr;)Mr.push(arguments[Sr++]);if(wr=gr=Mr[1],(St(gr)||ir!==void 0)&&!Rr(ir))return yt(gr)||(gr=function(Ir,zr){if(typeof wr=="function"&&(zr=wr.call(this,Ir,zr)),!Rr(zr))return zr}),Mr[1]=gr,Xt.apply(Yt,Mr)}}),qt.prototype[cr]||nt(6)(qt.prototype,cr,qt.prototype.valueOf),pt(qt,"Symbol"),pt(Math,"Math",!0),pt(ot.JSON,"JSON",!0)},function(tt,rt,nt){var ot=nt(17)("meta"),it=nt(11),st=nt(5),lt=nt(7).f,ut=0,ct=Object.isExtensible||function(){return!0},dt=!nt(8)(function(){return ct(Object.preventExtensions({}))}),ft=function(gt){lt(gt,ot,{value:{i:"O"+ ++ut,w:{}}})},pt=tt.exports={KEY:ot,NEED:!1,fastKey:function(gt,mt){if(!it(gt))return typeof gt=="symbol"?gt:(typeof gt=="string"?"S":"P")+gt;if(!st(gt,ot)){if(!ct(gt))return"F";if(!mt)return"E";ft(gt)}return gt[ot].i},getWeak:function(gt,mt){if(!st(gt,ot)){if(!ct(gt))return!0;if(!mt)return!1;ft(gt)}return gt[ot].w},onFreeze:function(gt){return dt&&pt.NEED&&ct(gt)&&!st(gt,ot)&&ft(gt),gt}}},function(tt,rt,nt){var ot=nt(13),it=nt(32),st=nt(19);tt.exports=function(lt){var ut=ot(lt),ct=it.f;if(ct)for(var dt,ft=ct(lt),pt=st.f,gt=0;ft.length>gt;)pt.call(lt,dt=ft[gt++])&&ut.push(dt);return ut}},function(tt,rt,nt){var ot=nt(24);tt.exports=Array.isArray||function(it){return ot(it)=="Array"}},function(tt,rt,nt){var ot=nt(9),it=nt(41).f,st={}.toString,lt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];tt.exports.f=function(ut){return lt&&st.call(ut)=="[object Window]"?function(ct){try{return it(ct)}catch{return lt.slice()}}(ut):it(ot(ut))}},function(tt,rt,nt){var ot=nt(19),it=nt(16),st=nt(9),lt=nt(23),ut=nt(5),ct=nt(35),dt=Object.getOwnPropertyDescriptor;rt.f=nt(4)?dt:function(ft,pt){if(ft=st(ft),pt=lt(pt,!0),ct)try{return dt(ft,pt)}catch{}if(ut(ft,pt))return it(!ot.f.call(ft,pt),ft[pt])}},function(tt,rt){},function(tt,rt,nt){nt(31)("asyncIterator")},function(tt,rt,nt){nt(31)("observable")},function(tt,rt,nt){rt.__esModule=!0;var ot,it=nt(77),st=(ot=it)&&ot.__esModule?ot:{default:ot};rt.default=st.default||function(lt){for(var ut=1;utbt;)for(var yt,Et=ct(arguments[bt++]),St=_t?it(Et).concat(_t(Et)):it(Et),Tt=St.length,kt=0;Tt>kt;)yt=St[kt++],ot&&!xt.call(Et,yt)||(gt[yt]=Et[yt]);return gt}:dt},function(tt,rt,nt){rt.__esModule=!0;var ot=st(nt(82)),it=st(nt(85));function st(lt){return lt&<.__esModule?lt:{default:lt}}rt.default=function(lt,ut){if(Array.isArray(lt))return lt;if((0,ot.default)(Object(lt)))return function(ct,dt){var ft=[],pt=!0,gt=!1,mt=void 0;try{for(var bt,_t=(0,it.default)(ct);!(pt=(bt=_t.next()).done)&&(ft.push(bt.value),!dt||ft.length!==dt);pt=!0);}catch(xt){gt=!0,mt=xt}finally{try{!pt&&_t.return&&_t.return()}finally{if(gt)throw mt}}return ft}(lt,ut);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(tt,rt,nt){tt.exports={default:nt(83),__esModule:!0}},function(tt,rt,nt){nt(29),nt(20),tt.exports=nt(84)},function(tt,rt,nt){var ot=nt(42),it=nt(2)("iterator"),st=nt(12);tt.exports=nt(1).isIterable=function(lt){var ut=Object(lt);return ut[it]!==void 0||"@@iterator"in ut||st.hasOwnProperty(ot(ut))}},function(tt,rt,nt){tt.exports={default:nt(86),__esModule:!0}},function(tt,rt,nt){nt(29),nt(20),tt.exports=nt(87)},function(tt,rt,nt){var ot=nt(10),it=nt(88);tt.exports=nt(1).getIterator=function(st){var lt=it(st);if(typeof lt!="function")throw TypeError(st+" is not iterable!");return ot(lt.call(st))}},function(tt,rt,nt){var ot=nt(42),it=nt(2)("iterator"),st=nt(12);tt.exports=nt(1).getIteratorMethod=function(lt){if(lt!=null)return lt[it]||lt["@@iterator"]||st[ot(lt)]}},function(tt,rt,nt){tt.exports={default:nt(90),__esModule:!0}},function(tt,rt,nt){nt(91),tt.exports=nt(1).Object.keys},function(tt,rt,nt){var ot=nt(18),it=nt(13);nt(92)("keys",function(){return function(st){return it(ot(st))}})},function(tt,rt,nt){var ot=nt(15),it=nt(1),st=nt(8);tt.exports=function(lt,ut){var ct=(it.Object||{})[lt]||Object[lt],dt={};dt[lt]=ut(ct),ot(ot.S+ot.F*st(function(){ct(1)}),"Object",dt)}},function(tt,rt,nt){(function(ot){var it=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],st=/^\s+|\s+$/g,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,dt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,bt=parseInt,_t=typeof ot=="object"&&ot&&ot.Object===Object&&ot,xt=typeof self=="object"&&self&&self.Object===Object&&self,yt=_t||xt||Function("return this")();function Et(fr,sr,ir){switch(ir.length){case 0:return fr.call(sr);case 1:return fr.call(sr,ir[0]);case 2:return fr.call(sr,ir[0],ir[1]);case 3:return fr.call(sr,ir[0],ir[1],ir[2])}return fr.apply(sr,ir)}function St(fr,sr){return!!(fr&&fr.length)&&function(ir,gr,wr){if(gr!=gr)return function(Ir,zr,Xr,Zr){for(var sn=Ir.length,$n=Xr+(Zr?1:-1);Zr?$n--:++$n-1}function Tt(fr){return fr!=fr}function kt(fr,sr){for(var ir=fr.length,gr=0;ir--;)fr[ir]===sr&&gr++;return gr}function $t(fr,sr){for(var ir=-1,gr=fr.length,wr=0,Mr=[];++ir2?It:void 0);function mr(fr){return Pr(fr)?Yt(fr):{}}function Er(fr){return!(!Pr(fr)||function(sr){return!!Rt&&Rt in sr}(fr))&&(function(sr){var ir=Pr(sr)?Gt.call(sr):"";return ir=="[object Function]"||ir=="[object GeneratorFunction]"}(fr)||function(sr){var ir=!1;if(sr!=null&&typeof sr.toString!="function")try{ir=!!(sr+"")}catch{}return ir}(fr)?qt:pt).test(function(sr){if(sr!=null){try{return Lt.call(sr)}catch{}try{return sr+""}catch{}}return""}(fr))}function hr(fr,sr,ir,gr){for(var wr=-1,Mr=fr.length,Sr=ir.length,Ir=-1,zr=sr.length,Xr=Xt(Mr-Sr,0),Zr=Array(zr+Xr),sn=!gr;++Ir1&&un.reverse(),Zr&&zr1?"& ":"")+sr[gr],sr=sr.join(ir>2?", ":" "),fr.replace(lt,`{ -/* [wrapped with `+sr+`] */ -`)}function Nr(fr,sr){return!!(sr=sr??9007199254740991)&&(typeof fr=="number"||mt.test(fr))&&fr>-1&&fr%1==0&&fr1&&st--,ut=6*st<1?ot+6*(it-ot)*st:2*st<1?it:3*st<2?ot+(it-ot)*(2/3-st)*6:ot,lt[pt]=255*ut;return lt}},function(tt,rt,nt){(function(ot){var it=typeof ot=="object"&&ot&&ot.Object===Object&&ot,st=typeof self=="object"&&self&&self.Object===Object&&self,lt=it||st||Function("return this")();function ut($t,Ct,It){switch(It.length){case 0:return $t.call(Ct);case 1:return $t.call(Ct,It[0]);case 2:return $t.call(Ct,It[0],It[1]);case 3:return $t.call(Ct,It[0],It[1],It[2])}return $t.apply(Ct,It)}function ct($t,Ct){for(var It=-1,Nt=Ct.length,Ot=$t.length;++It-1&&Ot%1==0&&Ot<=9007199254740991}(Nt.length)&&!function(Ot){var jt=function(Mt){var Rt=typeof Mt;return!!Mt&&(Rt=="object"||Rt=="function")}(Ot)?pt.call(Ot):"";return jt=="[object Function]"||jt=="[object GeneratorFunction]"}(Nt)}(It)}(Ct)&&ft.call(Ct,"callee")&&(!mt.call(Ct,"callee")||pt.call(Ct)=="[object Arguments]")}($t)||!!(bt&&$t&&$t[bt])}var yt=Array.isArray,Et,St,Tt,kt=(St=function($t){var Ct=($t=function Nt(Ot,jt,Mt,Rt,Lt){var Pt=-1,Gt=Ot.length;for(Mt||(Mt=xt),Lt||(Lt=[]);++Pt0&&Mt(qt)?jt>1?Nt(qt,jt-1,Mt,Rt,Lt):ct(Lt,qt):Rt||(Lt[Lt.length]=qt)}return Lt}($t,1)).length,It=Ct;for(Et;It--;)if(typeof $t[It]!="function")throw new TypeError("Expected a function");return function(){for(var Nt=0,Ot=Ct?$t[Nt].apply(this,arguments):arguments[0];++Nt2?st-2:0),ut=2;ut"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var zt,Ht=pt(Kt);if(Zt){var Dt=pt(this).constructor;zt=Reflect.construct(Ht,arguments,Dt)}else zt=Ht.apply(this,arguments);return bt(this,zt)}}nt.r(rt);var xt=nt(0),yt=nt.n(xt);function Et(){var Kt=this.constructor.getDerivedStateFromProps(this.props,this.state);Kt!=null&&this.setState(Kt)}function St(Kt){this.setState((function(Zt){var zt=this.constructor.getDerivedStateFromProps(Kt,Zt);return zt??null}).bind(this))}function Tt(Kt,Zt){try{var zt=this.props,Ht=this.state;this.props=Kt,this.state=Zt,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(zt,Ht)}finally{this.props=zt,this.state=Ht}}function kt(Kt){var Zt=Kt.prototype;if(!Zt||!Zt.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Kt.getDerivedStateFromProps!="function"&&typeof Zt.getSnapshotBeforeUpdate!="function")return Kt;var zt=null,Ht=null,Dt=null;if(typeof Zt.componentWillMount=="function"?zt="componentWillMount":typeof Zt.UNSAFE_componentWillMount=="function"&&(zt="UNSAFE_componentWillMount"),typeof Zt.componentWillReceiveProps=="function"?Ht="componentWillReceiveProps":typeof Zt.UNSAFE_componentWillReceiveProps=="function"&&(Ht="UNSAFE_componentWillReceiveProps"),typeof Zt.componentWillUpdate=="function"?Dt="componentWillUpdate":typeof Zt.UNSAFE_componentWillUpdate=="function"&&(Dt="UNSAFE_componentWillUpdate"),zt!==null||Ht!==null||Dt!==null){var Qt=Kt.displayName||Kt.name,or=typeof Kt.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+Qt+" uses "+or+" but also contains the following legacy lifecycles:"+(zt!==null?` - `+zt:"")+(Ht!==null?` - `+Ht:"")+(Dt!==null?` - `+Dt:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Kt.getDerivedStateFromProps=="function"&&(Zt.componentWillMount=Et,Zt.componentWillReceiveProps=St),typeof Zt.getSnapshotBeforeUpdate=="function"){if(typeof Zt.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Zt.componentWillUpdate=Tt;var lr=Zt.componentDidUpdate;Zt.componentDidUpdate=function(er,yr,Lr){var nn=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Lr;lr.call(this,er,yr,nn)}}return Kt}function $t(Kt,Zt){if(Kt==null)return{};var zt,Ht,Dt=function(or,lr){if(or==null)return{};var er,yr,Lr={},nn=Object.keys(or);for(yr=0;yr=0||(Lr[er]=or[er]);return Lr}(Kt,Zt);if(Object.getOwnPropertySymbols){var Qt=Object.getOwnPropertySymbols(Kt);for(Ht=0;Ht=0||Object.prototype.propertyIsEnumerable.call(Kt,zt)&&(Dt[zt]=Kt[zt])}return Dt}function Ct(Kt){var Zt=function(zt){return{}.toString.call(zt).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Kt);return Zt==="number"&&(Zt=isNaN(Kt)?"nan":(0|Kt)!=Kt?"float":"integer"),Zt}Et.__suppressDeprecationWarning=!0,St.__suppressDeprecationWarning=!0,Tt.__suppressDeprecationWarning=!0;var It={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Nt={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},Ot={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},jt=nt(45),Mt=function(Kt){var Zt=function(zt){return{backgroundColor:zt.base00,ellipsisColor:zt.base09,braceColor:zt.base07,expandedIcon:zt.base0D,collapsedIcon:zt.base0E,keyColor:zt.base07,arrayKeyColor:zt.base0C,objectSize:zt.base04,copyToClipboard:zt.base0F,copyToClipboardCheck:zt.base0D,objectBorder:zt.base02,dataTypes:{boolean:zt.base0E,date:zt.base0D,float:zt.base0B,function:zt.base0D,integer:zt.base0F,string:zt.base09,nan:zt.base08,null:zt.base0A,undefined:zt.base05,regexp:zt.base0A,background:zt.base02},editVariable:{editIcon:zt.base0E,cancelIcon:zt.base09,removeIcon:zt.base09,addIcon:zt.base0E,checkIcon:zt.base0E,background:zt.base01,color:zt.base0A,border:zt.base07},addKeyModal:{background:zt.base05,border:zt.base04,color:zt.base0A,labelColor:zt.base01},validationFailure:{background:zt.base09,iconColor:zt.base01,fontColor:zt.base01}}}(Kt);return{"app-container":{fontFamily:Ot.globalFontFamily,cursor:Ot.globalCursor,backgroundColor:Zt.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Zt.ellipsisColor,fontSize:Ot.ellipsisFontSize,lineHeight:Ot.ellipsisLineHeight,cursor:Ot.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Ot.braceCursor,fontWeight:Ot.braceFontWeight,color:Zt.braceColor},"expanded-icon":{color:Zt.expandedIcon},"collapsed-icon":{color:Zt.collapsedIcon},colon:{display:"inline-block",margin:Ot.keyMargin,color:Zt.keyColor,verticalAlign:"top"},objectKeyVal:function(zt,Ht){return{style:st({paddingTop:Ot.keyValPaddingTop,paddingRight:Ot.keyValPaddingRight,paddingBottom:Ot.keyValPaddingBottom,borderLeft:Ot.keyValBorderLeft+" "+Zt.objectBorder,":hover":{paddingLeft:Ht.paddingLeft-1+"px",borderLeft:Ot.keyValBorderHover+" "+Zt.objectBorder}},Ht)}},"object-key-val-no-border":{padding:Ot.keyValPadding},"pushed-content":{marginLeft:Ot.pushedContentMarginLeft},variableValue:function(zt,Ht){return{style:st({display:"inline-block",paddingRight:Ot.variableValuePaddingRight,position:"relative"},Ht)}},"object-name":{display:"inline-block",color:Zt.keyColor,letterSpacing:Ot.keyLetterSpacing,fontStyle:Ot.keyFontStyle,verticalAlign:Ot.keyVerticalAlign,opacity:Ot.keyOpacity,":hover":{opacity:Ot.keyOpacityHover}},"array-key":{display:"inline-block",color:Zt.arrayKeyColor,letterSpacing:Ot.keyLetterSpacing,fontStyle:Ot.keyFontStyle,verticalAlign:Ot.keyVerticalAlign,opacity:Ot.keyOpacity,":hover":{opacity:Ot.keyOpacityHover}},"object-size":{color:Zt.objectSize,borderRadius:Ot.objectSizeBorderRadius,fontStyle:Ot.objectSizeFontStyle,margin:Ot.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Ot.dataTypeFontSize,marginRight:Ot.dataTypeMarginRight,opacity:Ot.datatypeOpacity},boolean:{display:"inline-block",color:Zt.dataTypes.boolean},date:{display:"inline-block",color:Zt.dataTypes.date},"date-value":{marginLeft:Ot.dateValueMarginLeft},float:{display:"inline-block",color:Zt.dataTypes.float},function:{display:"inline-block",color:Zt.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Zt.dataTypes.integer},string:{display:"inline-block",color:Zt.dataTypes.string},nan:{display:"inline-block",color:Zt.dataTypes.nan,fontSize:Ot.nanFontSize,fontWeight:Ot.nanFontWeight,backgroundColor:Zt.dataTypes.background,padding:Ot.nanPadding,borderRadius:Ot.nanBorderRadius},null:{display:"inline-block",color:Zt.dataTypes.null,fontSize:Ot.nullFontSize,fontWeight:Ot.nullFontWeight,backgroundColor:Zt.dataTypes.background,padding:Ot.nullPadding,borderRadius:Ot.nullBorderRadius},undefined:{display:"inline-block",color:Zt.dataTypes.undefined,fontSize:Ot.undefinedFontSize,padding:Ot.undefinedPadding,borderRadius:Ot.undefinedBorderRadius,backgroundColor:Zt.dataTypes.background},regexp:{display:"inline-block",color:Zt.dataTypes.regexp},"copy-to-clipboard":{cursor:Ot.clipboardCursor},"copy-icon":{color:Zt.copyToClipboard,fontSize:Ot.iconFontSize,marginRight:Ot.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Zt.copyToClipboardCheck,marginLeft:Ot.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Ot.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Ot.metaDataPadding},"icon-container":{display:"inline-block",width:Ot.iconContainerWidth},tooltip:{padding:Ot.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Zt.editVariable.removeIcon,cursor:Ot.iconCursor,fontSize:Ot.iconFontSize,marginRight:Ot.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Zt.editVariable.addIcon,cursor:Ot.iconCursor,fontSize:Ot.iconFontSize,marginRight:Ot.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Zt.editVariable.editIcon,cursor:Ot.iconCursor,fontSize:Ot.iconFontSize,marginRight:Ot.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Ot.iconCursor,color:Zt.editVariable.checkIcon,fontSize:Ot.iconFontSize,paddingRight:Ot.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Ot.iconCursor,color:Zt.editVariable.cancelIcon,fontSize:Ot.iconFontSize,paddingRight:Ot.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Ot.editInputMinWidth,borderRadius:Ot.editInputBorderRadius,backgroundColor:Zt.editVariable.background,color:Zt.editVariable.color,padding:Ot.editInputPadding,marginRight:Ot.editInputMarginRight,fontFamily:Ot.editInputFontFamily},"detected-row":{paddingTop:Ot.detectedRowPaddingTop},"key-modal-request":{position:Ot.addKeyCoverPosition,top:Ot.addKeyCoverPositionPx,left:Ot.addKeyCoverPositionPx,right:Ot.addKeyCoverPositionPx,bottom:Ot.addKeyCoverPositionPx,backgroundColor:Ot.addKeyCoverBackground},"key-modal":{width:Ot.addKeyModalWidth,backgroundColor:Zt.addKeyModal.background,marginLeft:Ot.addKeyModalMargin,marginRight:Ot.addKeyModalMargin,padding:Ot.addKeyModalPadding,borderRadius:Ot.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Zt.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Zt.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Zt.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Zt.addKeyModal.labelColor,fontSize:Ot.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Zt.editVariable.addIcon,fontSize:Ot.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Zt.ellipsisColor,fontSize:Ot.ellipsisFontSize,lineHeight:Ot.ellipsisLineHeight,cursor:Ot.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Zt.validationFailure.fontColor,backgroundColor:Zt.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Zt.validationFailure.iconColor,fontSize:Ot.iconFontSize,transform:"rotate(45deg)"}}};function Rt(Kt,Zt,zt){return Kt||console.error("theme has not been set"),function(Ht){var Dt=It;return Ht!==!1&&Ht!=="none"||(Dt=Nt),Object(jt.createStyling)(Mt,{defaultBase16:Dt})(Ht)}(Kt)(Zt,zt)}var Lt=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=(Ht.rjvId,Ht.type_name),Qt=Ht.displayDataTypes,or=Ht.theme;return Qt?yt.a.createElement("span",Object.assign({className:"data-type-label"},Rt(or,"data-type-label")),Dt):null}}]),zt}(yt.a.PureComponent),Pt=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props;return yt.a.createElement("div",Rt(Ht.theme,"boolean"),yt.a.createElement(Lt,Object.assign({type_name:"bool"},Ht)),Ht.value?"true":"false")}}]),zt}(yt.a.PureComponent),Gt=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props;return yt.a.createElement("div",Rt(Ht.theme,"date"),yt.a.createElement(Lt,Object.assign({type_name:"date"},Ht)),yt.a.createElement("span",Object.assign({className:"date-value"},Rt(Ht.theme,"date-value")),Ht.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),zt}(yt.a.PureComponent),qt=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props;return yt.a.createElement("div",Rt(Ht.theme,"float"),yt.a.createElement(Lt,Object.assign({type_name:"float"},Ht)),this.props.value)}}]),zt}(yt.a.PureComponent);function Yt(Kt,Zt){(Zt==null||Zt>Kt.length)&&(Zt=Kt.length);for(var zt=0,Ht=new Array(Zt);zt"u"||Kt[Symbol.iterator]==null){if(Array.isArray(Kt)||(zt=Xt(Kt))||Zt&&Kt&&typeof Kt.length=="number"){zt&&(Kt=zt);var Ht=0,Dt=function(){};return{s:Dt,n:function(){return Ht>=Kt.length?{done:!0}:{done:!1,value:Kt[Ht++]}},e:function(er){throw er},f:Dt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Qt,or=!0,lr=!1;return{s:function(){zt=Kt[Symbol.iterator]()},n:function(){var er=zt.next();return or=er.done,er},e:function(er){lr=!0,Qt=er},f:function(){try{or||zt.return==null||zt.return()}finally{if(lr)throw Qt}}}}function cr(Kt){return function(Zt){if(Array.isArray(Zt))return Yt(Zt)}(Kt)||function(Zt){if(typeof Symbol<"u"&&Symbol.iterator in Object(Zt))return Array.from(Zt)}(Kt)||Xt(Kt)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var mr=nt(46),Er=new(nt(47)).Dispatcher,hr=new(function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){var Ht;lt(this,zt);for(var Dt=arguments.length,Qt=new Array(Dt),or=0;orDt&&(lr.style.cursor="pointer",this.state.collapsed&&(or=yt.a.createElement("span",null,or.substring(0,Dt),yt.a.createElement("span",Rt(Qt,"ellipsis")," ...")))),yt.a.createElement("div",Rt(Qt,"string"),yt.a.createElement(Lt,Object.assign({type_name:"string"},Ht)),yt.a.createElement("span",Object.assign({className:"string-value"},lr,{onClick:this.toggleCollapsed}),'"',or,'"'))}}]),zt}(yt.a.PureComponent),Rr=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){return yt.a.createElement("div",Rt(this.props.theme,"undefined"),"undefined")}}]),zt}(yt.a.PureComponent);function Cr(){return(Cr=Object.assign||function(Kt){for(var Zt=1;Zt=0||(Po[to]=dn[to]);return Po}(Kt,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Lr,nn=yr.value!==void 0,cn=Object(xt.useRef)(null),rn=Qr(cn,Zt),en=Object(xt.useRef)(0),_n=Object(xt.useRef)(),Ln=function(){var dn=cn.current,Kn=zt&&_n.current?_n.current:function(xo){var _i=window.getComputedStyle(xo);if(_i===null)return null;var zo,Zn=(zo=_i,fr.reduce(function(na,Ho){return na[Ho]=zo[Ho],na},{})),wo=Zn.boxSizing;return wo===""?null:(sr&&wo==="border-box"&&(Zn.width=parseFloat(Zn.width)+parseFloat(Zn.borderRightWidth)+parseFloat(Zn.borderLeftWidth)+parseFloat(Zn.paddingRight)+parseFloat(Zn.paddingLeft)+"px"),{sizingStyle:Zn,paddingSize:parseFloat(Zn.paddingBottom)+parseFloat(Zn.paddingTop),borderSize:parseFloat(Zn.borderBottomWidth)+parseFloat(Zn.borderTopWidth)})}(dn);if(Kn){_n.current=Kn;var to=function(xo,_i,zo,Zn){zo===void 0&&(zo=1),Zn===void 0&&(Zn=1/0),Vr||((Vr=document.createElement("textarea")).setAttribute("tab-index","-1"),Vr.setAttribute("aria-hidden","true"),Pr(Vr)),Vr.parentNode===null&&document.body.appendChild(Vr);var wo=xo.paddingSize,na=xo.borderSize,Ho=xo.sizingStyle,ga=Ho.boxSizing;Object.keys(Ho).forEach(function(es){var Yo=es;Vr.style[Yo]=Ho[Yo]}),Pr(Vr),Vr.value=_i;var Go=function(es,Yo){var Xo=es.scrollHeight;return Yo.sizingStyle.boxSizing==="border-box"?Xo+Yo.borderSize:Xo-Yo.paddingSize}(Vr,xo);Vr.value="x";var ps=Vr.scrollHeight-wo,Uo=ps*zo;ga==="border-box"&&(Uo=Uo+wo+na),Go=Math.max(Uo,Go);var xa=ps*Zn;return ga==="border-box"&&(xa=xa+wo+na),[Go=Math.min(xa,Go),ps]}(Kn,dn.value||dn.placeholder||"x",Dt,Ht),fo=to[0],Po=to[1];en.current!==fo&&(en.current=fo,dn.style.setProperty("height",fo+"px","important"),er(fo,{rowHeight:Po}))}};return Object(xt.useLayoutEffect)(Ln),Lr=Gr(Ln),Object(xt.useLayoutEffect)(function(){var dn=function(Kn){Lr.current(Kn)};return window.addEventListener("resize",dn),function(){window.removeEventListener("resize",dn)}},[]),Object(xt.createElement)("textarea",Cr({},yr,{onChange:function(dn){nn||Ln(),or(dn)},ref:rn}))},gr=Object(xt.forwardRef)(ir);function wr(Kt){Kt=Kt.trim();try{if((Kt=JSON.stringify(JSON.parse(Kt)))[0]==="[")return Mr("array",JSON.parse(Kt));if(Kt[0]==="{")return Mr("object",JSON.parse(Kt));if(Kt.match(/\-?\d+\.\d+/)&&Kt.match(/\-?\d+\.\d+/)[0]===Kt)return Mr("float",parseFloat(Kt));if(Kt.match(/\-?\d+e-\d+/)&&Kt.match(/\-?\d+e-\d+/)[0]===Kt)return Mr("float",Number(Kt));if(Kt.match(/\-?\d+/)&&Kt.match(/\-?\d+/)[0]===Kt)return Mr("integer",parseInt(Kt));if(Kt.match(/\-?\d+e\+\d+/)&&Kt.match(/\-?\d+e\+\d+/)[0]===Kt)return Mr("integer",Number(Kt))}catch{}switch(Kt=Kt.toLowerCase()){case"undefined":return Mr("undefined",void 0);case"nan":return Mr("nan",NaN);case"null":return Mr("null",null);case"true":return Mr("boolean",!0);case"false":return Mr("boolean",!1);default:if(Kt=Date.parse(Kt))return Mr("date",new Date(Kt))}return Mr(!1,null)}function Mr(Kt,Zt){return{type:Kt,value:Zt}}var Sr=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),zt}(yt.a.PureComponent),Ir=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),zt}(yt.a.PureComponent),zr=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]),or=un(Dt).style;return yt.a.createElement("span",Qt,yt.a.createElement("svg",{fill:or.color,width:or.height,height:or.width,style:or,viewBox:"0 0 1792 1792"},yt.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),zt}(yt.a.PureComponent),Xr=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]),or=un(Dt).style;return yt.a.createElement("span",Qt,yt.a.createElement("svg",{fill:or.color,width:or.height,height:or.width,style:or,viewBox:"0 0 1792 1792"},yt.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),zt}(yt.a.PureComponent),Zr=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",{style:st(st({},un(Dt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},yt.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),zt}(yt.a.PureComponent),sn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",{style:st(st({},un(Dt).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},yt.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),zt}(yt.a.PureComponent),$n=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("g",null,yt.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),zt}(yt.a.PureComponent),Nn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("g",null,yt.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),zt}(yt.a.PureComponent),hn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("g",null,yt.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),zt}(yt.a.PureComponent),jn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("g",null,yt.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),zt}(yt.a.PureComponent),qn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("g",null,yt.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),zt}(yt.a.PureComponent),Sn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){return lt(this,zt),Zt.apply(this,arguments)}return ct(zt,[{key:"render",value:function(){var Ht=this.props,Dt=Ht.style,Qt=$t(Ht,["style"]);return yt.a.createElement("span",Qt,yt.a.createElement("svg",Object.assign({},un(Dt),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),yt.a.createElement("g",null,yt.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),zt}(yt.a.PureComponent);function un(Kt){return Kt||(Kt={}),{style:st(st({verticalAlign:"middle"},Kt),{},{color:Kt.color?Kt.color:"#000000",height:"1em",width:"1em"})}}var Fn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(Ht){var Dt;return lt(this,zt),(Dt=Zt.call(this,Ht)).copiedTimer=null,Dt.handleCopy=function(){var Qt=document.createElement("textarea"),or=Dt.props,lr=or.clickCallback,er=or.src,yr=or.namespace;Qt.innerHTML=JSON.stringify(Dt.clipboardValue(er),null," "),document.body.appendChild(Qt),Qt.select(),document.execCommand("copy"),document.body.removeChild(Qt),Dt.copiedTimer=setTimeout(function(){Dt.setState({copied:!1})},5500),Dt.setState({copied:!0},function(){typeof lr=="function"&&lr({src:er,namespace:yr,name:yr[yr.length-1]})})},Dt.getClippyIcon=function(){var Qt=Dt.props.theme;return Dt.state.copied?yt.a.createElement("span",null,yt.a.createElement($n,Object.assign({className:"copy-icon"},Rt(Qt,"copy-icon"))),yt.a.createElement("span",Rt(Qt,"copy-icon-copied"),"✔")):yt.a.createElement($n,Object.assign({className:"copy-icon"},Rt(Qt,"copy-icon")))},Dt.clipboardValue=function(Qt){switch(Ct(Qt)){case"function":case"regexp":return Qt.toString();default:return Qt}},Dt.state={copied:!1},Dt}return ct(zt,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var Ht=this.props,Dt=(Ht.src,Ht.theme),Qt=Ht.hidden,or=Ht.rowHovered,lr=Rt(Dt,"copy-to-clipboard").style,er="inline";return Qt&&(er="none"),yt.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:or?"inline-block":"none"}},yt.a.createElement("span",{style:st(st({},lr),{},{display:er}),onClick:this.handleCopy},this.getClippyIcon()))}}]),zt}(yt.a.PureComponent),On=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(Ht){var Dt;return lt(this,zt),(Dt=Zt.call(this,Ht)).getEditIcon=function(){var Qt=Dt.props,or=Qt.variable,lr=Qt.theme;return yt.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Dt.state.hovered?"inline-block":"none"}},yt.a.createElement(qn,Object.assign({className:"click-to-edit-icon"},Rt(lr,"editVarIcon"),{onClick:function(){Dt.prepopInput(or)}})))},Dt.prepopInput=function(Qt){if(Dt.props.onEdit!==!1){var or=function(er){var yr;switch(Ct(er)){case"undefined":yr="undefined";break;case"nan":yr="NaN";break;case"string":yr=er;break;case"date":case"function":case"regexp":yr=er.toString();break;default:try{yr=JSON.stringify(er,null," ")}catch{yr=""}}return yr}(Qt.value),lr=wr(or);Dt.setState({editMode:!0,editValue:or,parsedInput:{type:lr.type,value:lr.value}})}},Dt.getRemoveIcon=function(){var Qt=Dt.props,or=Qt.variable,lr=Qt.namespace,er=Qt.theme,yr=Qt.rjvId;return yt.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Dt.state.hovered?"inline-block":"none"}},yt.a.createElement(Nn,Object.assign({className:"click-to-remove-icon"},Rt(er,"removeVarIcon"),{onClick:function(){Er.dispatch({name:"VARIABLE_REMOVED",rjvId:yr,data:{name:or.name,namespace:lr,existing_value:or.value,variable_removed:!0}})}})))},Dt.getValue=function(Qt,or){var lr=!or&&Qt.type,er=mt(Dt).props;switch(lr){case!1:return Dt.getEditInput();case"string":return yt.a.createElement($r,Object.assign({value:Qt.value},er));case"integer":return yt.a.createElement(rr,Object.assign({value:Qt.value},er));case"float":return yt.a.createElement(qt,Object.assign({value:Qt.value},er));case"boolean":return yt.a.createElement(Pt,Object.assign({value:Qt.value},er));case"function":return yt.a.createElement(Ut,Object.assign({value:Qt.value},er));case"null":return yt.a.createElement(pr,er);case"nan":return yt.a.createElement(ar,er);case"undefined":return yt.a.createElement(Rr,er);case"date":return yt.a.createElement(Gt,Object.assign({value:Qt.value},er));case"regexp":return yt.a.createElement(vr,Object.assign({value:Qt.value},er));default:return yt.a.createElement("div",{className:"object-value"},JSON.stringify(Qt.value))}},Dt.getEditInput=function(){var Qt=Dt.props.theme,or=Dt.state.editValue;return yt.a.createElement("div",null,yt.a.createElement(gr,Object.assign({type:"text",inputRef:function(lr){return lr&&lr.focus()},value:or,className:"variable-editor",onChange:function(lr){var er=lr.target.value,yr=wr(er);Dt.setState({editValue:er,parsedInput:{type:yr.type,value:yr.value}})},onKeyDown:function(lr){switch(lr.key){case"Escape":Dt.setState({editMode:!1,editValue:""});break;case"Enter":(lr.ctrlKey||lr.metaKey)&&Dt.submitEdit(!0)}lr.stopPropagation()},placeholder:"update this value",minRows:2},Rt(Qt,"edit-input"))),yt.a.createElement("div",Rt(Qt,"edit-icon-container"),yt.a.createElement(Nn,Object.assign({className:"edit-cancel"},Rt(Qt,"cancel-icon"),{onClick:function(){Dt.setState({editMode:!1,editValue:""})}})),yt.a.createElement(Sn,Object.assign({className:"edit-check string-value"},Rt(Qt,"check-icon"),{onClick:function(){Dt.submitEdit()}})),yt.a.createElement("div",null,Dt.showDetected())))},Dt.submitEdit=function(Qt){var or=Dt.props,lr=or.variable,er=or.namespace,yr=or.rjvId,Lr=Dt.state,nn=Lr.editValue,cn=Lr.parsedInput,rn=nn;Qt&&cn.type&&(rn=cn.value),Dt.setState({editMode:!1}),Er.dispatch({name:"VARIABLE_UPDATED",rjvId:yr,data:{name:lr.name,namespace:er,existing_value:lr.value,new_value:rn,variable_removed:!1}})},Dt.showDetected=function(){var Qt=Dt.props,or=Qt.theme,lr=(Qt.variable,Qt.namespace,Qt.rjvId,Dt.state.parsedInput),er=(lr.type,lr.value,Dt.getDetectedInput());if(er)return yt.a.createElement("div",null,yt.a.createElement("div",Rt(or,"detected-row"),er,yt.a.createElement(Sn,{className:"edit-check detected",style:st({verticalAlign:"top",paddingLeft:"3px"},Rt(or,"check-icon").style),onClick:function(){Dt.submitEdit(!0)}})))},Dt.getDetectedInput=function(){var Qt=Dt.state.parsedInput,or=Qt.type,lr=Qt.value,er=mt(Dt).props,yr=er.theme;if(or!==!1)switch(or.toLowerCase()){case"object":return yt.a.createElement("span",null,yt.a.createElement("span",{style:st(st({},Rt(yr,"brace").style),{},{cursor:"default"})},"{"),yt.a.createElement("span",{style:st(st({},Rt(yr,"ellipsis").style),{},{cursor:"default"})},"..."),yt.a.createElement("span",{style:st(st({},Rt(yr,"brace").style),{},{cursor:"default"})},"}"));case"array":return yt.a.createElement("span",null,yt.a.createElement("span",{style:st(st({},Rt(yr,"brace").style),{},{cursor:"default"})},"["),yt.a.createElement("span",{style:st(st({},Rt(yr,"ellipsis").style),{},{cursor:"default"})},"..."),yt.a.createElement("span",{style:st(st({},Rt(yr,"brace").style),{},{cursor:"default"})},"]"));case"string":return yt.a.createElement($r,Object.assign({value:lr},er));case"integer":return yt.a.createElement(rr,Object.assign({value:lr},er));case"float":return yt.a.createElement(qt,Object.assign({value:lr},er));case"boolean":return yt.a.createElement(Pt,Object.assign({value:lr},er));case"function":return yt.a.createElement(Ut,Object.assign({value:lr},er));case"null":return yt.a.createElement(pr,er);case"nan":return yt.a.createElement(ar,er);case"undefined":return yt.a.createElement(Rr,er);case"date":return yt.a.createElement(Gt,Object.assign({value:new Date(lr)},er))}},Dt.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Dt}return ct(zt,[{key:"render",value:function(){var Ht=this,Dt=this.props,Qt=Dt.variable,or=Dt.singleIndent,lr=Dt.type,er=Dt.theme,yr=Dt.namespace,Lr=Dt.indentWidth,nn=Dt.enableClipboard,cn=Dt.onEdit,rn=Dt.onDelete,en=Dt.onSelect,_n=Dt.displayArrayKey,Ln=Dt.quotesOnKeys,dn=this.state.editMode;return yt.a.createElement("div",Object.assign({},Rt(er,"objectKeyVal",{paddingLeft:Lr*or}),{onMouseEnter:function(){return Ht.setState(st(st({},Ht.state),{},{hovered:!0}))},onMouseLeave:function(){return Ht.setState(st(st({},Ht.state),{},{hovered:!1}))},className:"variable-row",key:Qt.name}),lr=="array"?_n?yt.a.createElement("span",Object.assign({},Rt(er,"array-key"),{key:Qt.name+"_"+yr}),Qt.name,yt.a.createElement("div",Rt(er,"colon"),":")):null:yt.a.createElement("span",null,yt.a.createElement("span",Object.assign({},Rt(er,"object-name"),{className:"object-key",key:Qt.name+"_"+yr}),!!Ln&&yt.a.createElement("span",{style:{verticalAlign:"top"}},'"'),yt.a.createElement("span",{style:{display:"inline-block"}},Qt.name),!!Ln&&yt.a.createElement("span",{style:{verticalAlign:"top"}},'"')),yt.a.createElement("span",Rt(er,"colon"),":")),yt.a.createElement("div",Object.assign({className:"variable-value",onClick:en===!1&&cn===!1?null:function(Kn){var to=cr(yr);(Kn.ctrlKey||Kn.metaKey)&&cn!==!1?Ht.prepopInput(Qt):en!==!1&&(to.shift(),en(st(st({},Qt),{},{namespace:to})))}},Rt(er,"variableValue",{cursor:en===!1?"default":"pointer"})),this.getValue(Qt,dn)),nn?yt.a.createElement(Fn,{rowHovered:this.state.hovered,hidden:dn,src:Qt.value,clickCallback:nn,theme:er,namespace:[].concat(cr(yr),[Qt.name])}):null,cn!==!1&&dn==0?this.getEditIcon():null,rn!==!1&&dn==0?this.getRemoveIcon():null)}}]),zt}(yt.a.PureComponent),Pn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){var Ht;lt(this,zt);for(var Dt=arguments.length,Qt=new Array(Dt),or=0;or0?nn:null,namespace:Lr.splice(0,Lr.length-1),existing_value:cn,variable_removed:!1,key_name:null};Ct(cn)==="object"?Er.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:rn,data:_n}):Er.dispatch({name:"VARIABLE_ADDED",rjvId:rn,data:st(st({},_n),{},{new_value:[].concat(cr(cn),[null])})})}})))},Ht.getRemoveObject=function(lr){var er=Ht.props,yr=er.theme,Lr=(er.hover,er.namespace),nn=er.name,cn=er.src,rn=er.rjvId;if(Lr.length!==1)return yt.a.createElement("span",{className:"click-to-remove",style:{display:lr?"inline-block":"none"}},yt.a.createElement(Nn,Object.assign({className:"click-to-remove-icon"},Rt(yr,"removeVarIcon"),{onClick:function(){Er.dispatch({name:"VARIABLE_REMOVED",rjvId:rn,data:{name:nn,namespace:Lr.splice(0,Lr.length-1),existing_value:cn,variable_removed:!0}})}})))},Ht.render=function(){var lr=Ht.props,er=lr.theme,yr=lr.onDelete,Lr=lr.onAdd,nn=lr.enableClipboard,cn=lr.src,rn=lr.namespace,en=lr.rowHovered;return yt.a.createElement("div",Object.assign({},Rt(er,"object-meta-data"),{className:"object-meta-data",onClick:function(_n){_n.stopPropagation()}}),Ht.getObjectSize(),nn?yt.a.createElement(Fn,{rowHovered:en,clickCallback:nn,src:cn,theme:er,namespace:rn}):null,Lr!==!1?Ht.getAddAttribute(en):null,yr!==!1?Ht.getRemoveObject(en):null)},Ht}return zt}(yt.a.PureComponent);function wn(Kt){var Zt=Kt.parent_type,zt=Kt.namespace,Ht=Kt.quotesOnKeys,Dt=Kt.theme,Qt=Kt.jsvRoot,or=Kt.name,lr=Kt.displayArrayKey,er=Kt.name?Kt.name:"";return!Qt||or!==!1&&or!==null?Zt=="array"?lr?yt.a.createElement("span",Object.assign({},Rt(Dt,"array-key"),{key:zt}),yt.a.createElement("span",{className:"array-key"},er),yt.a.createElement("span",Rt(Dt,"colon"),":")):yt.a.createElement("span",null):yt.a.createElement("span",Object.assign({},Rt(Dt,"object-name"),{key:zt}),yt.a.createElement("span",{className:"object-key"},Ht&&yt.a.createElement("span",{style:{verticalAlign:"top"}},'"'),yt.a.createElement("span",null,er),Ht&&yt.a.createElement("span",{style:{verticalAlign:"top"}},'"')),yt.a.createElement("span",Rt(Dt,"colon"),":")):yt.a.createElement("span",null)}function fn(Kt){var Zt=Kt.theme;switch(Kt.iconStyle){case"triangle":return yt.a.createElement(sn,Object.assign({},Rt(Zt,"expanded-icon"),{className:"expanded-icon"}));case"square":return yt.a.createElement(zr,Object.assign({},Rt(Zt,"expanded-icon"),{className:"expanded-icon"}));default:return yt.a.createElement(Sr,Object.assign({},Rt(Zt,"expanded-icon"),{className:"expanded-icon"}))}}function Kr(Kt){var Zt=Kt.theme;switch(Kt.iconStyle){case"triangle":return yt.a.createElement(Zr,Object.assign({},Rt(Zt,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return yt.a.createElement(Xr,Object.assign({},Rt(Zt,"collapsed-icon"),{className:"collapsed-icon"}));default:return yt.a.createElement(Ir,Object.assign({},Rt(Zt,"collapsed-icon"),{className:"collapsed-icon"}))}}var jr=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(Ht){var Dt;return lt(this,zt),(Dt=Zt.call(this,Ht)).toggleCollapsed=function(Qt){var or=[];for(var lr in Dt.state.expanded)or.push(Dt.state.expanded[lr]);or[Qt]=!or[Qt],Dt.setState({expanded:or})},Dt.state={expanded:[]},Dt}return ct(zt,[{key:"getExpandedIcon",value:function(Ht){var Dt=this.props,Qt=Dt.theme,or=Dt.iconStyle;return this.state.expanded[Ht]?yt.a.createElement(fn,{theme:Qt,iconStyle:or}):yt.a.createElement(Kr,{theme:Qt,iconStyle:or})}},{key:"render",value:function(){var Ht=this,Dt=this.props,Qt=Dt.src,or=Dt.groupArraysAfterLength,lr=(Dt.depth,Dt.name),er=Dt.theme,yr=Dt.jsvRoot,Lr=Dt.namespace,nn=(Dt.parent_type,$t(Dt,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),cn=0,rn=5*this.props.indentWidth;yr||(cn=5*this.props.indentWidth);var en=or,_n=Math.ceil(Qt.length/en);return yt.a.createElement("div",Object.assign({className:"object-key-val"},Rt(er,yr?"jsv-root":"objectKeyVal",{paddingLeft:cn})),yt.a.createElement(wn,this.props),yt.a.createElement("span",null,yt.a.createElement(Pn,Object.assign({size:Qt.length},this.props))),cr(Array(_n)).map(function(Ln,dn){return yt.a.createElement("div",Object.assign({key:dn,className:"object-key-val array-group"},Rt(er,"objectKeyVal",{marginLeft:6,paddingLeft:rn})),yt.a.createElement("span",Rt(er,"brace-row"),yt.a.createElement("div",Object.assign({className:"icon-container"},Rt(er,"icon-container"),{onClick:function(Kn){Ht.toggleCollapsed(dn)}}),Ht.getExpandedIcon(dn)),Ht.state.expanded[dn]?yt.a.createElement(Mn,Object.assign({key:lr+dn,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:en,index_offset:dn*en,src:Qt.slice(dn*en,dn*en+en),namespace:Lr,type:"array",parent_type:"array_group",theme:er},nn)):yt.a.createElement("span",Object.assign({},Rt(er,"brace"),{onClick:function(Kn){Ht.toggleCollapsed(dn)},className:"array-group-brace"}),"[",yt.a.createElement("div",Object.assign({},Rt(er,"array-group-meta-data"),{className:"array-group-meta-data"}),yt.a.createElement("span",Object.assign({className:"object-size"},Rt(er,"object-size")),dn*en," - ",dn*en+en>Qt.length?Qt.length:dn*en+en)),"]")))}))}}]),zt}(yt.a.PureComponent),zn=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(Ht){var Dt;lt(this,zt),(Dt=Zt.call(this,Ht)).toggleCollapsed=function(){Dt.setState({expanded:!Dt.state.expanded},function(){_r.set(Dt.props.rjvId,Dt.props.namespace,"expanded",Dt.state.expanded)})},Dt.getObjectContent=function(or,lr,er){return yt.a.createElement("div",{className:"pushed-content object-container"},yt.a.createElement("div",Object.assign({className:"object-content"},Rt(Dt.props.theme,"pushed-content")),Dt.renderObjectContents(lr,er)))},Dt.getEllipsis=function(){return Dt.state.size===0?null:yt.a.createElement("div",Object.assign({},Rt(Dt.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Dt.toggleCollapsed}),"...")},Dt.getObjectMetaData=function(or){var lr=Dt.props,er=(lr.rjvId,lr.theme,Dt.state),yr=er.size,Lr=er.hovered;return yt.a.createElement(Pn,Object.assign({rowHovered:Lr,size:yr},Dt.props))},Dt.renderObjectContents=function(or,lr){var er,yr=Dt.props,Lr=yr.depth,nn=yr.parent_type,cn=yr.index_offset,rn=yr.groupArraysAfterLength,en=yr.namespace,_n=Dt.state.object_type,Ln=[],dn=Object.keys(or||{});return Dt.props.sortKeys&&_n!=="array"&&(dn=dn.sort()),dn.forEach(function(Kn){if(er=new ro(Kn,or[Kn]),nn==="array_group"&&cn&&(er.name=parseInt(er.name)+cn),or.hasOwnProperty(Kn))if(er.type==="object")Ln.push(yt.a.createElement(Mn,Object.assign({key:er.name,depth:Lr+1,name:er.name,src:er.value,namespace:en.concat(er.name),parent_type:_n},lr)));else if(er.type==="array"){var to=Mn;rn&&er.value.length>rn&&(to=jr),Ln.push(yt.a.createElement(to,Object.assign({key:er.name,depth:Lr+1,name:er.name,src:er.value,namespace:en.concat(er.name),type:"array",parent_type:_n},lr)))}else Ln.push(yt.a.createElement(On,Object.assign({key:er.name+"_"+en,variable:er,singleIndent:5,namespace:en,type:Dt.props.type},lr)))}),Ln};var Qt=zt.getState(Ht);return Dt.state=st(st({},Qt),{},{prevProps:{}}),Dt}return ct(zt,[{key:"getBraceStart",value:function(Ht,Dt){var Qt=this,or=this.props,lr=or.src,er=or.theme,yr=or.iconStyle;if(or.parent_type==="array_group")return yt.a.createElement("span",null,yt.a.createElement("span",Rt(er,"brace"),Ht==="array"?"[":"{"),Dt?this.getObjectMetaData(lr):null);var Lr=Dt?fn:Kr;return yt.a.createElement("span",null,yt.a.createElement("span",Object.assign({onClick:function(nn){Qt.toggleCollapsed()}},Rt(er,"brace-row")),yt.a.createElement("div",Object.assign({className:"icon-container"},Rt(er,"icon-container")),yt.a.createElement(Lr,{theme:er,iconStyle:yr})),yt.a.createElement(wn,this.props),yt.a.createElement("span",Rt(er,"brace"),Ht==="array"?"[":"{")),Dt?this.getObjectMetaData(lr):null)}},{key:"render",value:function(){var Ht=this,Dt=this.props,Qt=Dt.depth,or=Dt.src,lr=(Dt.namespace,Dt.name,Dt.type,Dt.parent_type),er=Dt.theme,yr=Dt.jsvRoot,Lr=Dt.iconStyle,nn=$t(Dt,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),cn=this.state,rn=cn.object_type,en=cn.expanded,_n={};return yr||lr==="array_group"?lr==="array_group"&&(_n.borderLeft=0,_n.display="inline"):_n.paddingLeft=5*this.props.indentWidth,yt.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return Ht.setState(st(st({},Ht.state),{},{hovered:!0}))},onMouseLeave:function(){return Ht.setState(st(st({},Ht.state),{},{hovered:!1}))}},Rt(er,yr?"jsv-root":"objectKeyVal",_n)),this.getBraceStart(rn,en),en?this.getObjectContent(Qt,or,st({theme:er,iconStyle:Lr},nn)):this.getEllipsis(),yt.a.createElement("span",{className:"brace-row"},yt.a.createElement("span",{style:st(st({},Rt(er,"brace").style),{},{paddingLeft:en?"3px":"0px"})},rn==="array"?"]":"}"),en?null:this.getObjectMetaData(or)))}}],[{key:"getDerivedStateFromProps",value:function(Ht,Dt){var Qt=Dt.prevProps;return Ht.src!==Qt.src||Ht.collapsed!==Qt.collapsed||Ht.name!==Qt.name||Ht.namespace!==Qt.namespace||Ht.rjvId!==Qt.rjvId?st(st({},zt.getState(Ht)),{},{prevProps:Ht}):null}}]),zt}(yt.a.PureComponent);zn.getState=function(Kt){var Zt=Object.keys(Kt.src).length,zt=(Kt.collapsed===!1||Kt.collapsed!==!0&&Kt.collapsed>Kt.depth)&&(!Kt.shouldCollapse||Kt.shouldCollapse({name:Kt.name,src:Kt.src,type:Ct(Kt.src),namespace:Kt.namespace})===!1)&&Zt!==0;return{expanded:_r.get(Kt.rjvId,Kt.namespace,"expanded",zt),object_type:Kt.type==="array"?"array":"object",parent_type:Kt.type==="array"?"array":"object",size:Zt,hovered:!1}};var ro=function Kt(Zt,zt){lt(this,Kt),this.name=Zt,this.value=zt,this.type=Ct(zt)};kt(zn);var Mn=zn,Fo=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){var Ht;lt(this,zt);for(var Dt=arguments.length,Qt=new Array(Dt),or=0;orlr.groupArraysAfterLength&&(yr=jr),yt.a.createElement("div",{className:"pretty-json-container object-container"},yt.a.createElement("div",{className:"object-content"},yt.a.createElement(yr,Object.assign({namespace:er,depth:0,jsvRoot:!0},lr))))},Ht}return zt}(yt.a.PureComponent),mo=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(Ht){var Dt;return lt(this,zt),(Dt=Zt.call(this,Ht)).closeModal=function(){Er.dispatch({rjvId:Dt.props.rjvId,name:"RESET"})},Dt.submit=function(){Dt.props.submit(Dt.state.input)},Dt.state={input:Ht.input?Ht.input:""},Dt}return ct(zt,[{key:"render",value:function(){var Ht=this,Dt=this.props,Qt=Dt.theme,or=Dt.rjvId,lr=Dt.isValid,er=this.state.input,yr=lr(er);return yt.a.createElement("div",Object.assign({className:"key-modal-request"},Rt(Qt,"key-modal-request"),{onClick:this.closeModal}),yt.a.createElement("div",Object.assign({},Rt(Qt,"key-modal"),{onClick:function(Lr){Lr.stopPropagation()}}),yt.a.createElement("div",Rt(Qt,"key-modal-label"),"Key Name:"),yt.a.createElement("div",{style:{position:"relative"}},yt.a.createElement("input",Object.assign({},Rt(Qt,"key-modal-input"),{className:"key-modal-input",ref:function(Lr){return Lr&&Lr.focus()},spellCheck:!1,value:er,placeholder:"...",onChange:function(Lr){Ht.setState({input:Lr.target.value})},onKeyPress:function(Lr){yr&&Lr.key==="Enter"?Ht.submit():Lr.key==="Escape"&&Ht.closeModal()}})),yr?yt.a.createElement(Sn,Object.assign({},Rt(Qt,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Lr){return Ht.submit()}})):null),yt.a.createElement("span",Rt(Qt,"key-modal-cancel"),yt.a.createElement(jn,Object.assign({},Rt(Qt,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Er.dispatch({rjvId:or,name:"RESET"})}})))))}}]),zt}(yt.a.PureComponent),eo=function(Kt){ft(zt,Kt);var Zt=_t(zt);function zt(){var Ht;lt(this,zt);for(var Dt=arguments.length,Qt=new Array(Dt),or=0;or=0)&&(et[rt]=j[rt]);return et}function _objectWithoutProperties$g(j,_e){if(j==null)return{};var et=_objectWithoutPropertiesLoose$g(j,_e),tt,rt;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(j);for(rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _slicedToArray$c(j,_e){return _arrayWithHoles$d(j)||_iterableToArrayLimit$c(j,_e)||_unsupportedIterableToArray$k(j,_e)||_nonIterableRest$d()}function _arrayWithHoles$d(j){if(Array.isArray(j))return j}function _iterableToArrayLimit$c(j,_e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(j)))){var et=[],tt=!0,rt=!1,nt=void 0;try{for(var ot=j[Symbol.iterator](),it;!(tt=(it=ot.next()).done)&&(et.push(it.value),!(_e&&et.length===_e));tt=!0);}catch(st){rt=!0,nt=st}finally{try{!tt&&ot.return!=null&&ot.return()}finally{if(rt)throw nt}}return et}}function _unsupportedIterableToArray$k(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$k(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$k(j,_e)}}function _arrayLikeToArray$k(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _nonIterableRest$d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _defineProperty$A(j,_e,et){return _e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function ownKeys$y(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread2(j){for(var _e=1;_e=j.length?j.apply(this,rt):function(){for(var ot=arguments.length,it=new Array(ot),st=0;st1&&arguments[1]!==void 0?arguments[1]:{};validators$1.initial(j),validators$1.handler(_e);var et={current:j},tt=curry$2(didStateUpdate)(et,_e),rt=curry$2(updateState)(et),nt=curry$2(validators$1.changes)(j),ot=curry$2(extractChanges)(et);function it(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(ut){return ut};return validators$1.selector(lt),lt(et.current)}function st(lt){compose$2(tt,rt,nt,ot)(lt)}return[it,st]}function extractChanges(j,_e){return isFunction(_e)?_e(j.current):_e}function updateState(j,_e){return j.current=_objectSpread2(_objectSpread2({},j.current),_e),_e}function didStateUpdate(j,_e,et){return isFunction(_e)?_e(j.current):Object.keys(et).forEach(function(tt){var rt;return(rt=_e[tt])===null||rt===void 0?void 0:rt.call(_e,j.current[tt])}),et}var index={create},config$2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function curry$1(j){return function _e(){for(var et=this,tt=arguments.length,rt=new Array(tt),nt=0;nt=j.length?j.apply(this,rt):function(){for(var ot=arguments.length,it=new Array(ot),st=0;st{tt.current=!1}:j,_e)}var l$4=he$1;function D$3(){}function h$6(j,_e,et,tt){return De(j,tt)||be$1(j,_e,et,tt)}function De(j,_e){return j.editor.getModel(te$1(j,_e))}function be$1(j,_e,et,tt){return j.editor.createModel(_e,et,tt?te$1(j,tt):void 0)}function te$1(j,_e){return j.Uri.parse(_e)}function Oe$1({original:j,modified:_e,language:et,originalLanguage:tt,modifiedLanguage:rt,originalModelPath:nt,modifiedModelPath:ot,keepCurrentOriginalModel:it=!1,keepCurrentModifiedModel:st=!1,theme:lt="light",loading:ut="Loading...",options:ct={},height:dt="100%",width:ft="100%",className:pt,wrapperProps:gt={},beforeMount:mt=D$3,onMount:bt=D$3}){let[_t,xt]=reactExports.useState(!1),[yt,Et]=reactExports.useState(!0),St=reactExports.useRef(null),Tt=reactExports.useRef(null),kt=reactExports.useRef(null),$t=reactExports.useRef(bt),Ct=reactExports.useRef(mt),It=reactExports.useRef(!1);k$5(()=>{let Mt=loader.init();return Mt.then(Rt=>(Tt.current=Rt)&&Et(!1)).catch(Rt=>(Rt==null?void 0:Rt.type)!=="cancelation"&&console.error("Monaco initialization: error:",Rt)),()=>St.current?jt():Mt.cancel()}),l$4(()=>{if(St.current&&Tt.current){let Mt=St.current.getOriginalEditor(),Rt=h$6(Tt.current,j||"",tt||et||"text",nt||"");Rt!==Mt.getModel()&&Mt.setModel(Rt)}},[nt],_t),l$4(()=>{if(St.current&&Tt.current){let Mt=St.current.getModifiedEditor(),Rt=h$6(Tt.current,_e||"",rt||et||"text",ot||"");Rt!==Mt.getModel()&&Mt.setModel(Rt)}},[ot],_t),l$4(()=>{let Mt=St.current.getModifiedEditor();Mt.getOption(Tt.current.editor.EditorOption.readOnly)?Mt.setValue(_e||""):_e!==Mt.getValue()&&(Mt.executeEdits("",[{range:Mt.getModel().getFullModelRange(),text:_e||"",forceMoveMarkers:!0}]),Mt.pushUndoStop())},[_e],_t),l$4(()=>{var Mt,Rt;(Rt=(Mt=St.current)==null?void 0:Mt.getModel())==null||Rt.original.setValue(j||"")},[j],_t),l$4(()=>{let{original:Mt,modified:Rt}=St.current.getModel();Tt.current.editor.setModelLanguage(Mt,tt||et||"text"),Tt.current.editor.setModelLanguage(Rt,rt||et||"text")},[et,tt,rt],_t),l$4(()=>{var Mt;(Mt=Tt.current)==null||Mt.editor.setTheme(lt)},[lt],_t),l$4(()=>{var Mt;(Mt=St.current)==null||Mt.updateOptions(ct)},[ct],_t);let Nt=reactExports.useCallback(()=>{var Lt;if(!Tt.current)return;Ct.current(Tt.current);let Mt=h$6(Tt.current,j||"",tt||et||"text",nt||""),Rt=h$6(Tt.current,_e||"",rt||et||"text",ot||"");(Lt=St.current)==null||Lt.setModel({original:Mt,modified:Rt})},[et,_e,rt,j,tt,nt,ot]),Ot=reactExports.useCallback(()=>{var Mt;!It.current&&kt.current&&(St.current=Tt.current.editor.createDiffEditor(kt.current,{automaticLayout:!0,...ct}),Nt(),(Mt=Tt.current)==null||Mt.editor.setTheme(lt),xt(!0),It.current=!0)},[ct,lt,Nt]);reactExports.useEffect(()=>{_t&&$t.current(St.current,Tt.current)},[_t]),reactExports.useEffect(()=>{!yt&&!_t&&Ot()},[yt,_t,Ot]);function jt(){var Rt,Lt,Pt,Gt;let Mt=(Rt=St.current)==null?void 0:Rt.getModel();it||((Lt=Mt==null?void 0:Mt.original)==null||Lt.dispose()),st||((Pt=Mt==null?void 0:Mt.modified)==null||Pt.dispose()),(Gt=St.current)==null||Gt.dispose()}return React.createElement(H$3,{width:ft,height:dt,isEditorReady:_t,loading:ut,_ref:kt,className:pt,wrapperProps:gt})}var ie$1=Oe$1;reactExports.memo(ie$1);function He$1(j){let _e=reactExports.useRef();return reactExports.useEffect(()=>{_e.current=j},[j]),_e.current}var se$1=He$1,_=new Map;function Ve$1({defaultValue:j,defaultLanguage:_e,defaultPath:et,value:tt,language:rt,path:nt,theme:ot="light",line:it,loading:st="Loading...",options:lt={},overrideServices:ut={},saveViewState:ct=!0,keepCurrentModel:dt=!1,width:ft="100%",height:pt="100%",className:gt,wrapperProps:mt={},beforeMount:bt=D$3,onMount:_t=D$3,onChange:xt,onValidate:yt=D$3}){let[Et,St]=reactExports.useState(!1),[Tt,kt]=reactExports.useState(!0),$t=reactExports.useRef(null),Ct=reactExports.useRef(null),It=reactExports.useRef(null),Nt=reactExports.useRef(_t),Ot=reactExports.useRef(bt),jt=reactExports.useRef(),Mt=reactExports.useRef(tt),Rt=se$1(nt),Lt=reactExports.useRef(!1),Pt=reactExports.useRef(!1);k$5(()=>{let Yt=loader.init();return Yt.then(Xt=>($t.current=Xt)&&kt(!1)).catch(Xt=>(Xt==null?void 0:Xt.type)!=="cancelation"&&console.error("Monaco initialization: error:",Xt)),()=>Ct.current?qt():Yt.cancel()}),l$4(()=>{var Xt,tr,cr,mr;let Yt=h$6($t.current,j||tt||"",_e||rt||"",nt||et||"");Yt!==((Xt=Ct.current)==null?void 0:Xt.getModel())&&(ct&&_.set(Rt,(tr=Ct.current)==null?void 0:tr.saveViewState()),(cr=Ct.current)==null||cr.setModel(Yt),ct&&((mr=Ct.current)==null||mr.restoreViewState(_.get(nt))))},[nt],Et),l$4(()=>{var Yt;(Yt=Ct.current)==null||Yt.updateOptions(lt)},[lt],Et),l$4(()=>{!Ct.current||tt===void 0||(Ct.current.getOption($t.current.editor.EditorOption.readOnly)?Ct.current.setValue(tt):tt!==Ct.current.getValue()&&(Pt.current=!0,Ct.current.executeEdits("",[{range:Ct.current.getModel().getFullModelRange(),text:tt,forceMoveMarkers:!0}]),Ct.current.pushUndoStop(),Pt.current=!1))},[tt],Et),l$4(()=>{var Xt,tr;let Yt=(Xt=Ct.current)==null?void 0:Xt.getModel();Yt&&rt&&((tr=$t.current)==null||tr.editor.setModelLanguage(Yt,rt))},[rt],Et),l$4(()=>{var Yt;it!==void 0&&((Yt=Ct.current)==null||Yt.revealLine(it))},[it],Et),l$4(()=>{var Yt;(Yt=$t.current)==null||Yt.editor.setTheme(ot)},[ot],Et);let Gt=reactExports.useCallback(()=>{var Yt;if(!(!It.current||!$t.current)&&!Lt.current){Ot.current($t.current);let Xt=nt||et,tr=h$6($t.current,tt||j||"",_e||rt||"",Xt||"");Ct.current=(Yt=$t.current)==null?void 0:Yt.editor.create(It.current,{model:tr,automaticLayout:!0,...lt},ut),ct&&Ct.current.restoreViewState(_.get(Xt)),$t.current.editor.setTheme(ot),it!==void 0&&Ct.current.revealLine(it),St(!0),Lt.current=!0}},[j,_e,et,tt,rt,nt,lt,ut,ct,ot,it]);reactExports.useEffect(()=>{Et&&Nt.current(Ct.current,$t.current)},[Et]),reactExports.useEffect(()=>{!Tt&&!Et&&Gt()},[Tt,Et,Gt]),Mt.current=tt,reactExports.useEffect(()=>{var Yt,Xt;Et&&xt&&((Yt=jt.current)==null||Yt.dispose(),jt.current=(Xt=Ct.current)==null?void 0:Xt.onDidChangeModelContent(tr=>{Pt.current||xt(Ct.current.getValue(),tr)}))},[Et,xt]),reactExports.useEffect(()=>{if(Et){let Yt=$t.current.editor.onDidChangeMarkers(Xt=>{var cr;let tr=(cr=Ct.current.getModel())==null?void 0:cr.uri;if(tr&&Xt.find(mr=>mr.path===tr.path)){let mr=$t.current.editor.getModelMarkers({resource:tr});yt==null||yt(mr)}});return()=>{Yt==null||Yt.dispose()}}return()=>{}},[Et,yt]);function qt(){var Yt,Xt;(Yt=jt.current)==null||Yt.dispose(),dt?ct&&_.set(nt,Ct.current.saveViewState()):(Xt=Ct.current.getModel())==null||Xt.dispose(),Ct.current.dispose()}return React.createElement(H$3,{width:ft,height:pt,isEditorReady:Et,loading:st,_ref:It,className:gt,wrapperProps:mt})}var fe$1=Ve$1,de$1=reactExports.memo(fe$1),Ft=de$1;const JinjaSyntaxHighlighter=({value:j,theme:_e})=>jsxRuntimeExports.jsx(Ft,{value:j,theme:_e,options:{readOnly:!0,minimap:{enabled:!1}},defaultLanguage:"jinja2",onMount:(et,tt)=>{tt.languages.register({id:"jinja2"}),tt.languages.setLanguageConfiguration("jinja2",{comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["{","}"]],folding:{markers:{start:/\{%\s*(block|for|if)/,end:/\{%\s*end(block|for|if)/}}}),tt.languages.setMonarchTokensProvider("jinja2",{tokenizer:{root:[[/\{\{/,"delimiter"],[/\}\}/,"delimiter"],[/\{#/,"comment"],[/#\}/,"comment"],[/\{%/,"control"],[/%\}/,"control"],[/\b(if|else|elif|endif|for|endfor|set|extends|include|block|endblock|macro|endmacro)\b/,"keyword"],[/\b(length|list|lower|upper|trim|truncate|replace|round|urlencode|urlize)\b/,"filter"],[/\b(\+|-|\*|\/|%|\*\*|\/\/)\b/,"operator"],[/\b(\d+|\d*\.\d+)\b/,"number"],[/(^user:|^# user:|^system:|^# system:|^assistant:|^# assistant:)/,"keyword"]]}})}}),locStringsInjectionToken=createInjectionToken("locStrings",{}),useLocStrings=()=>{const[j]=useInjected(locStringsInjectionToken);return j},StreamSwitcher=({isStreaming:j,style:_e,onIsStreamingChange:et,labelName:tt})=>{const rt=useLocStrings();return jsxRuntimeExports.jsx(Switch,{label:tt||rt.Streaming,labelPosition:"before",checked:j,onChange:(nt,ot)=>et(ot.checked),style:_e})},safeJSONParse=j=>{try{return JSON.parse(j)}catch{return j}},timeFormat$1=j=>(j&&!j.endsWith("Z")&&(j+="Z"),j?new Date(j).toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"--"),parseSpanOutput=j=>{var et;const _e=(et=j==null?void 0:j.attributes)==null?void 0:et.output;if(typeof _e=="string")try{const tt=JSON.parse(_e);if(typeof tt.usage=="string")try{tt.usage=JSON.parse(tt.usage)}catch{tt.usage={}}return tt}catch{return _e}return _e},parseHttpSpanAttributes=j=>{var tt;const _e=j==null?void 0:j.attributes;if(!_e||((tt=_e.span_type)==null?void 0:tt.toLowerCase())!=="http")return;const et={response:{headers:{}},request:{headers:{}}};return Object.entries(_e).forEach(([rt,nt])=>{const ot=rt.toLowerCase();if(ot==="url.full"){et.urlFull=nt;return}const[it,st,lt,...ut]=ot.split(".");if(it==="http")switch(st){case"request":lt==="header"?et.request.headers[ut.join(".")]=nt:et.request[[lt,...ut].join(".")]=nt;break;case"response":lt==="header"?et.response.headers[ut.join(".")]=nt:et.response[[lt,...ut].join(".")]=nt;break;case"status_code":et.status_code=nt;break;case"method":et.method=nt;break;default:et[rt.substring(5)]=nt}}),et},convertToTraceListRow=j=>{var et,tt,rt;const _e=j.end_time&&j.start_time?Date.parse(j.end_time)-Date.parse(j.start_time):0;return{...j,latency:_e,total_tokens:((et=j==null?void 0:j.cumulative_token_count)==null?void 0:et.total)??0,prompt_tokens:(tt=j==null?void 0:j.cumulative_token_count)==null?void 0:tt.prompt,completion_tokens:(rt=j==null?void 0:j.cumulative_token_count)==null?void 0:rt.completion}};var _a;const initialTableColumnNames={normalColumns:[],evaluationColumns:[]};var ViewStatus=(j=>(j.loading="loading",j.loaded="loaded",j.error="error",j.hidden="hidden",j))(ViewStatus||{});const Xp=class Xp{constructor(_e){this.selectedSpanId$=new State$1(void 0),this.selectedTraceId$=new State$1(void 0),this.spans$=new ObservableMap,this.traces$=new ObservableOrderedMap,this.tableColumnNames$=new State$1(initialTableColumnNames),this.tableHiddenColumnKeys$=new State$1([]),this.isTraceDetailOpen$=new State$1(!1),this.isGanttChartOpen$=new State$1(!1),this.traceListStatus$=new State$1("loading"),this.traceDetailStatus$=new State$1("loading"),this.traceListShowMetrics$=new State$1(!0),this.messagesBySpanId$=new ObservableOrderedMap,this.sortColumn$=new State$1(void 0),this.sortableColumns=[];const{traceListConfig:et}=_e||{};et&&(this.traceListColumnModifier=et.columnModifier,et.showMetrics!==void 0&&this.traceListShowMetrics$.setState(et.showMetrics),et.defaultHiddenColumnKeys!==void 0&&this.tableHiddenColumnKeys$.setState(et.defaultHiddenColumnKeys),et.sortableColumns&&(this.sortableColumns=et.sortableColumns)),this.selectedTrace$=Computed$1.fromStates([this.selectedTraceId$,this.traces$],([tt,rt])=>tt&&rt.get(tt)||void 0),this.selectedTraceId$.subscribe(tt=>{var nt;if(!tt)return;const rt=this.traces$.get(tt);(nt=this._traceDetailDidOpenCallback)==null||nt.call(this,tt,rt)}),this.isTraceDetailOpen$.subscribe(tt=>{var ot;const rt=this.selectedTraceId$.getSnapshot(),nt=this.selectedTrace$.getSnapshot();!tt&&rt&&((ot=this._traceDetailDidCloseCallback)==null||ot.call(this,rt,nt),this.traceDetailStatus$.setState("hidden"),this.selectedTraceId$.next(void 0))}),this.sortColumn$.subscribe(tt=>{var rt;(rt=this._traceListSortColumnDidChangeCallback)==null||rt.call(this,tt)})}traceDetailDidOpen(_e){this._traceDetailDidOpenCallback=_e}traceDetailDidClose(_e){this._traceDetailDidCloseCallback=_e}traceListSortColumnDidChange(_e){this._traceListSortColumnDidChangeCallback=_e}refreshSpans(){var tt;const _e=this.selectedTraceId$.getSnapshot(),et=this.selectedTrace$.getSnapshot();_e&&((tt=this._refreshSpansCallback)==null||tt.call(this,_e,et))}onRefreshSpans(_e){this._refreshSpansCallback=_e}setOnRefreshTraces(_e){this._refreshTracesCallback=_e}refreshTraces(){var _e;(_e=this._refreshTracesCallback)==null||_e.call(this)}clear(){this.traces$.clear(),this.spans$.clear()}appendTraces(_e,et){_e.forEach(tt=>{tt.trace_id!==void 0&&(et?this.traces$.set(tt.trace_id,tt).sortByValue(et):this.traces$.set(tt.trace_id,tt))})}appendSpans(_e){_e.forEach(et=>{var ot,it;const tt=(ot=et==null?void 0:et.context)==null?void 0:ot.trace_id,rt=(it=et==null?void 0:et.context)==null?void 0:it.span_id;if(!tt||!rt)return;const nt=this.spans$.get(tt)||new ObservableOrderedMap;this.spans$.set(tt,nt.set(rt,et))})}toggleIsGanttChartOpen(){this.isGanttChartOpen$.setState(!this.isGanttChartOpen$.getSnapshot())}getTraceById(_e){return _e?this.traces$.get(_e):void 0}setTraceListStatus(_e){this.traceListStatus$.setState(_e)}setTraceDetailStatus(_e){this.traceDetailStatus$.setState(_e)}setTraceDetailOpen(_e,et){this.isTraceDetailOpen$.setState(_e),this.selectedTraceId$.setState(_e?et:void 0)}sortTraces(_e){this.traces$.sortByValue(_e)}};_a=SINGLETON,Xp[_a]=!0;let TraceViewModel=Xp;const TraceViewModelToken=createInjectionToken("TraceViewModel",new TraceViewModel),useTraceViewModel=()=>{const[j]=useInjected(TraceViewModelToken);return j},useSelectedSpanId=()=>{const j=useTraceViewModel();return useState(j.selectedSpanId$)},useSelectedSpan=()=>{var tt;const j=useTraceViewModel(),_e=useSelectedSpanId(),et=useSelectedTraceId();if(!(!_e||!et))return(tt=j.spans$.get(et))==null?void 0:tt.get(_e)},useParentSpanOfSelectedSpan=()=>{var tt;const j=useTraceViewModel(),_e=useSelectedTraceId(),et=useSelectedSpan();if(!(!et||!_e||!et.parent_id))return(tt=j.spans$.get(_e))==null?void 0:tt.get(et.parent_id)},useSetSelectedSpanId=()=>useSetState(useTraceViewModel().selectedSpanId$),useSelectedTraceId=()=>useState(useTraceViewModel().selectedTraceId$),useSetSelectedTraceId=()=>useSetState(useTraceViewModel().selectedTraceId$),useSelectedTrace=()=>{const j=useTraceViewModel(),_e=useSelectedTraceId();return _e?j.traces$.value.find(et=>et.trace_id===_e):void 0},useSpansOfSelectedTrace=()=>{const j=useTraceViewModel(),_e=useSelectedTraceId(),et=useState(j.spans$.get(_e??"")??new ObservableOrderedMap);return Array.from(et.values())},useTraces=()=>Array.from(useState(useTraceViewModel().traces$).values()),useParseTraceOutput=j=>reactExports.useMemo(()=>parseSpanOutput(j),[j]),useEvaluationSpansOfSelectedSpan=()=>{const j=useTraceViewModel(),_e=[],et=useSelectedTrace();return et?(Object.keys(et.evaluations??[]).forEach(tt=>{var nt,ot;const rt=(nt=et==null?void 0:et.evaluations)==null?void 0:nt[tt];if(rt){const it=Array.from(((ot=j.spans$.get(rt.trace_id??""))==null?void 0:ot.getState().values())??[]);_e.push({evaluationName:rt.display_name??tt,evaluationTraces:it})}}),_e):[]},useRootSpanIdOfSelectedSpans=()=>{const j=useSelectedTrace();return j==null?void 0:j.root_span_id},useTableColumnNames=()=>useState(useTraceViewModel().tableColumnNames$),useSetTableColumnNames=()=>useSetState(useTraceViewModel().tableColumnNames$),useTableHiddenColumnKeys=()=>useState(useTraceViewModel().tableHiddenColumnKeys$),useSetTableHiddenColumnKeys=()=>useSetState(useTraceViewModel().tableHiddenColumnKeys$),useIsTraceDetailOpen=()=>useState(useTraceViewModel().isTraceDetailOpen$),useSetIsTraceDetailOpen=()=>useSetState(useTraceViewModel().isTraceDetailOpen$),useTraceDetailRefreshKey=()=>{const j=useTraceViewModel(),_e=useSelectedTraceId(),et=useState(j.spans$),tt=Array.from(useState(et.get(_e??"")??new ObservableOrderedMap).keys());return`${_e}-${tt.join("-")}`},useIsGanttChartOpen=()=>useState(useTraceViewModel().isGanttChartOpen$),useTraceListColumnModifier=()=>useTraceViewModel().traceListColumnModifier,useTraceListShowMetrics=()=>useState(useTraceViewModel().traceListShowMetrics$),useMessagesBySpanId=j=>{var ut,ct,dt,ft,pt;const _e=useTraceViewModel(),et=useState(_e.selectedTraceId$);if(!et)return{inputMessages:[],outputMessages:[]};const tt=(ut=_e.spans$.get(et))==null?void 0:ut.get(j),rt=safeJSONParse(((ct=tt==null?void 0:tt.attributes)==null?void 0:ct.inputs)??"{}"),nt=safeJSONParse(((dt=tt==null?void 0:tt.attributes)==null?void 0:dt.output)??"{}"),ot=(ft=tt==null?void 0:tt.attributes)==null?void 0:ft["llm.generated_message"],it=ot?safeJSONParse(ot):void 0,st=(rt==null?void 0:rt.messages)??[],lt=((pt=nt==null?void 0:nt.choices)==null?void 0:pt.reduce((gt,mt)=>mt.message?[...gt,mt.message]:mt.text?[...gt,{content:mt.text,role:"assistant"}]:gt,[]))??[];return it&<.push(it),{inputMessages:st,outputMessages:lt}},useMessagesOfSelectedSpan=()=>{const j=useSelectedSpanId();return useMessagesBySpanId(j??"")},useLastInputMessageBySpanId=j=>{const{inputMessages:_e}=useMessagesBySpanId(j);return _e.slice(-1)[0]},useGetAllTraces=()=>{const j=useTraceViewModel();return reactExports.useCallback(()=>Array.from(j.traces$.getState().values()),[j.traces$])},useGetAllSpans=()=>{const j=useTraceViewModel();return reactExports.useCallback(()=>{const _e=[];return j.spans$.getState().forEach(tt=>{tt.getState().forEach(nt=>{_e.push(nt)})}),_e},[j.spans$])},useSortColumn=()=>{const j=useTraceViewModel();return useState(j.sortColumn$)},useSetSortColumn=()=>useSetState(useTraceViewModel().sortColumn$),useSortableColumns=()=>useTraceViewModel().sortableColumns,traceDetailErrorInjectionToken=createInjectionToken("traceDetailErrorInjectionToken",()=>{const j=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:j.Failed_to_load_trace})}),traceDetailLoadingInjectionToken=createInjectionToken("traceDetailLoadingInjectionToken",Loading),traceListErrorInjectionToken=createInjectionToken("traceListErrorInjectionToken",()=>{const j=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:j.Failed_to_load_traces})}),traceListLoadingInjectionToken=createInjectionToken("traceListLoadingInjectionToken",Loading),useTraceListViewStatus=()=>{const j=useTraceViewModel();return useState(j.traceListStatus$)},useTraceDetailViewStatus=()=>{const j=useTraceViewModel();return useState(j.traceDetailStatus$)},useTraceListLoadingComponent=()=>{const[j]=useInjected(traceListLoadingInjectionToken);return j},useTraceListErrorComponent=()=>{const[j]=useInjected(traceListErrorInjectionToken);return j},useTraceDetailLoadingComponent=()=>{const[j]=useInjected(traceDetailLoadingInjectionToken);return j},useTraceDetailErrorComponent=()=>{const[j]=useInjected(traceDetailErrorInjectionToken);return j},TREE_NODE_HEIGHT=58,TREE_NODE_WIDTH=400,TREE_NODE_PADDING=10,TREE_NODE_INDENT=48,sortTraceByStartTime=(j,_e)=>j.start_time&&_e.start_time?Date.parse(_e.start_time)-Date.parse(j.start_time):1,defaultGetNodeX=({level:j})=>j*TREE_NODE_INDENT,defaultGetNodeWidth=()=>TREE_NODE_WIDTH,defaultGetNodeHeight=()=>TREE_NODE_HEIGHT,spansToGraphModel=(j,{isEdgesHidden:_e=!1,getNodeX:et=defaultGetNodeX,getNodeWidth:tt=defaultGetNodeWidth,getNodeHeight:rt=defaultGetNodeHeight})=>{const nt=[],ot=[],it=new Map,st=new Set,lt=new Set(j.map(dt=>{var ft;return(ft=dt.context)==null?void 0:ft.span_id}).filter(dt=>!!dt));j.forEach(dt=>{var ft,pt;(ft=dt.context)!=null&&ft.span_id&&(dt.parent_id&<.has(dt.parent_id)?it.has(dt.parent_id)?it.get(dt.parent_id).push(dt):it.set(dt.parent_id,[dt]):st.add((pt=dt.context)==null?void 0:pt.span_id))});const ut=j.filter(dt=>{var ft,pt;return((ft=dt.context)==null?void 0:ft.span_id)&&st.has((pt=dt.context)==null?void 0:pt.span_id)}).sort((dt,ft)=>Date.parse(dt.start_time??"")??0-Date.parse(ft.start_time??"")??0);let ct=0;return ut.sort(sortTraceByStartTime).forEach(dt=>{var pt,gt;const ft=[{span:dt,level:0}];for(;ft.length>0;){const{span:mt,level:bt}=ft.pop(),_t=rt({span:mt,level:bt,index:ct});nt.push({id:((pt=mt==null?void 0:mt.context)==null?void 0:pt.span_id)??"",width:tt({span:mt,level:bt,index:ct}),height:_t,x:et({span:mt,level:bt,index:ct}),y:ct*(_t+TREE_NODE_PADDING),ports:[{id:"port",name:"port",position:[0,.5]}]}),ct++,(gt=mt==null?void 0:mt.context)!=null&>.span_id&&it.has(mt.context.span_id)&&it.get(mt.context.span_id).sort(sortTraceByStartTime).forEach(xt=>{var yt,Et;!_e&&((yt=mt==null?void 0:mt.context)!=null&&yt.span_id)&&((Et=xt==null?void 0:xt.context)!=null&&Et.span_id)&&ot.push({id:`${mt.context.span_id}-${xt.context.span_id}`,source:mt.context.span_id,sourcePortId:"port",target:xt.context.span_id,targetPortId:"port"}),ft.push({span:xt,level:bt+1})})}}),{graph:GraphModel.fromJSON({nodes:nt,edges:ot}),rootIds:Array.from(st.values())}};class EdgeConfig{render({x1:_e,x2:et,y1:tt,y2:rt,model:nt,data:ot}){if(!ot.nodes.get(nt.source)||!ot.nodes.get(nt.target))return null;const lt=_e+30,ut=et+20,ct=tt+10,dt=`M ${lt} ${ct} L ${lt} ${rt} L ${ut} ${rt}`;return jsxRuntimeExports.jsx("path",{d:dt,stroke:tokens.colorNeutralStrokeAccessible,strokeWidth:1,fill:"none"})}}const GanttTreeNode=({node:j})=>{const _e=bitset.has(GraphNodeStatus.Selected)(j.status),et=bitset.has(GraphNodeStatus.Activated)(j.status);let tt=tokens.colorNeutralStroke1,rt=tokens.colorBrandBackground2,nt=1;return _e&&(tt=tokens.colorBrandStroke2,nt=2,rt=tokens.colorBrandBackground2Pressed),et&&(rt=tokens.colorBrandBackground2Hover),jsxRuntimeExports.jsx("foreignObject",{x:j.x,y:j.y,width:j.width,height:j.height,style:{border:`${nt}px solid ${tt}`,backgroundColor:rt,borderRadius:10,paddingLeft:10},children:jsxRuntimeExports.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",cursor:"pointer"}})})};class GanttNodeConfig{constructor(_e){this.options=_e}render(_e){const et=this.options.spans.find(tt=>{var rt;return((rt=tt==null?void 0:tt.context)==null?void 0:rt.span_id)===_e.model.id});return et?jsxRuntimeExports.jsx(GanttTreeNode,{node:_e.model,span:et}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const GanttTimeline=({startMs:j,endMs:_e})=>{const et=_e-j,tt=Math.pow(10,Math.floor(Math.log10(et))-1),rt=Math.ceil(et/tt),nt=[],ot=[];for(let it=0;itjsxRuntimeExports.jsx("div",{style:{width:"100%",height:"100%"},children:jsxRuntimeExports.jsx(ReactDagEditor,{state:j,dispatch:_e,style:{height:"100%",flexGrow:1,display:"flex"},children:jsxRuntimeExports.jsx(Graph,{canvasMouseMode:CanvasMouseMode.Pan})})}),GanttView=()=>{var ft;const j=useSpansOfSelectedTrace(),_e=useSetSelectedSpanId(),et=useSelectedSpanId(),tt=pt=>(gt,mt)=>(mt&&mt.type===GraphNodeEvent.Click&&_e(mt.node.id),pt(gt,mt)),rt=GraphConfigBuilder.default().registerNode(()=>new GanttNodeConfig({spans:j})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build();previewMode.add(GraphFeatures.ClickNodeToSelect);const[ot,it]=useGraphReducer({data:GraphModel.empty(),settings:{features:previewMode,graphConfig:rt}},tt),st=((ft=ot.viewport.rect)==null?void 0:ft.width)||1200;let lt=Number.MAX_SAFE_INTEGER,ut=0;j.forEach(pt=>{const gt=Date.parse(pt.start_time??"");gtut&&(ut=mt)});const ct=reactExports.useCallback(({span:pt})=>st/(ut-lt)*(Date.parse(pt.start_time??"")-lt),[ut,st,lt]),dt=reactExports.useCallback(({span:pt})=>st/(ut-lt)*(Date.parse(pt.end_time??"")-Date.parse(pt.start_time??"")),[ut,st,lt]);return reactExports.useEffect(()=>{it({type:GraphCanvasEvent.SetData,data:spansToGraphModel(j,{isEdgesHidden:!0,getNodeX:ct,getNodeWidth:dt,getNodeHeight:()=>24}).graph.selectNodes(pt=>pt.id===et)})},[]),reactExports.useEffect(()=>{et&&it({type:GraphNodeEvent.Select,nodes:[et]})},[et]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GanttTimeline,{startMs:lt,endMs:ut}),jsxRuntimeExports.jsx(TreeGraph,{state:ot,dispatch:it})]})},useNodeDetailClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},headerWrapper:{display:"flex",boxSizing:"border-box",width:"100%",...shorthands.padding("12px","12px",0,"12px"),flexDirection:"row",alignItems:"center",...shorthands.gap("12px")},headerTitle:{flexGrow:1,flexShrink:1,...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis"},headerItem:{display:"flex",alignItems:"center"},tabDivider:{...shorthands.flex("none"),...shorthands.padding(0,"12px")},content:{...shorthands.flex(1),...shorthands.padding("12px"),...shorthands.overflow("auto")},panels:{...shorthands.padding(0,"10px"),"& th":{textAlign:"left",...shorthands.padding(0,"30px",0,0)}},cardWrapper:{backgroundColor:tokens.colorNeutralBackground3},cardTitle:{fontSize:"16px",fontWeight:600},innerCardWrapper:{...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens.colorNeutralForeground1),...shorthands.borderRadius("8px")}}),useRetrievalNodeDetailClasses=makeStyles({accordionHeader:{"& button":{...shorthands.padding(0),fontWeight:600}}}),getToolTypeFromSpan=j=>{var et;const _e=(et=j==null?void 0:j.attributes)==null?void 0:et.span_type;return _e==null?void 0:_e.split(".").pop()};function isObject$2(j){return Object.prototype.toString.call(j)==="[object Object]"}function objectSize(j){return Array.isArray(j)?j.length:isObject$2(j)?Object.keys(j).length:0}function stringifyForCopying(j,_e){if(typeof j=="string")return j;try{return JSON.stringify(j,(et,tt)=>{switch(typeof tt){case"bigint":return String(tt)+"n";case"number":case"boolean":case"object":case"string":return tt;default:return String(tt)}},_e)}catch(et){return`${et.name}: ${et.message}`||"JSON.stringify failed"}}function isCollapsed(j,_e,et,tt,rt,nt){if(nt&&nt.collapsed!==void 0)return!!nt.collapsed;if(typeof tt=="boolean")return tt;if(typeof tt=="number"&&_e>tt)return!0;const ot=objectSize(j);if(typeof tt=="function"){const it=safeCall(tt,[{node:j,depth:_e,indexOrName:et,size:ot}]);if(typeof it=="boolean")return it}return!!(Array.isArray(j)&&ot>rt||isObject$2(j)&&ot>rt)}function isCollapsed_largeArray(j,_e,et,tt,rt,nt){if(nt&&nt.collapsed!==void 0)return!!nt.collapsed;if(typeof tt=="boolean")return tt;if(typeof tt=="number"&&_e>tt)return!0;const ot=Math.ceil(j.length/100);if(typeof tt=="function"){const it=safeCall(tt,[{node:j,depth:_e,indexOrName:et,size:ot}]);if(typeof it=="boolean")return it}return!!(Array.isArray(j)&&ot>rt||isObject$2(j)&&ot>rt)}function ifDisplay(j,_e,et){return typeof j=="boolean"?j:!!(typeof j=="number"&&_e>j||j==="collapsed"&&et||j==="expanded"&&!et)}function safeCall(j,_e){try{return j(..._e)}catch(et){reportError(et)}}function editableAdd(j){if(j===!0||isObject$2(j)&&j.add===!0)return!0}function editableEdit(j){if(j===!0||isObject$2(j)&&j.edit===!0)return!0}function editableDelete(j){if(j===!0||isObject$2(j)&&j.delete===!0)return!0}function isReactComponent(j){return typeof j=="function"}function customAdd(j){return!j||j.add===void 0||!!j.add}function customEdit(j){return!j||j.edit===void 0||!!j.edit}function customDelete(j){return!j||j.delete===void 0||!!j.delete}function customCopy(j){return!j||j.enableClipboard===void 0||!!j.enableClipboard}function customMatchesURL(j){return!j||j.matchesURL===void 0||!!j.matchesURL}function resolveEvalFailedNewValue(j,_e){return j==="string"?_e.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):_e}var _path$8;function _extends$8$1(){return _extends$8$1=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e{rt.stopPropagation();const nt=_e(j);typeof nt=="string"&&nt&&navigator.clipboard.writeText(nt),tt(!0),setTimeout(()=>tt(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:j,value:_e,depth:et,parent:tt,deleteHandle:rt,editHandle:nt}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof j=="number"?"json-view--index":"json-view--property"},{children:j})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:_e,depth:et+1,deleteHandle:rt,editHandle:nt,parent:tt,indexOrName:j})]}))}var _path$5,_path2$4;function _extends$5$1(){return _extends$5$1=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e{j[_t]=xt,lt&<({newValue:xt,oldValue:yt,depth:et,src:st,indexOrName:_t,parentType:"array"}),ut&&ut({type:"edit",depth:et,src:st,indexOrName:_t,parentType:"array"}),ct()},[_e,lt,ut,ct]),mt=_t=>{j.splice(_t,1),ct()},bt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!ft&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>pt(!0),className:"jv-size-chevron"},{children:[ifDisplay(dt,et,ft)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(_e)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),!ft&&it&&customCopy(nt)&&jsxRuntimeExports.jsx(CopyButton$1,{node:_e})]});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{children:"["}),bt,ft?jsxRuntimeExports.jsxs("button",Object.assign({onClick:()=>pt(!1),className:"jv-button"},{children:[ot," ... ",ot+_e.length-1]})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:_e.map((_t,xt)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:xt+ot,value:_t,depth:et,parent:_e,deleteHandle:mt,editHandle:gt},String(tt)+String(xt)))})),jsxRuntimeExports.jsx("span",{children:"]"})]})}function LargeArray({node:j,depth:_e,deleteHandle:et,indexOrName:tt,customOptions:rt}){const nt=[];for(let Nt=0;Nt{_t(isCollapsed_largeArray(j,_e,tt,ot,st,rt))},[ot,st]);const[xt,yt]=reactExports.useState(!1),Et=()=>{yt(!1),et&&et(tt),ut&&ut({value:j,depth:_e,src:ct,indexOrName:tt,parentType:"array"}),pt&&pt({type:"delete",depth:_e,src:ct,indexOrName:tt,parentType:"array"})},[St,Tt]=reactExports.useState(!1),kt=()=>{const Nt=j;Nt.push(null),dt&&dt({indexOrName:Nt.length-1,depth:_e,src:ct,parentType:"array"}),pt&&pt({type:"add",indexOrName:Nt.length-1,depth:_e,src:ct,parentType:"array"}),gt()},$t=xt||St,Ct=()=>{yt(!1),Tt(!1)},It=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!bt&&!$t&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_t(!0),className:"jv-size-chevron"},{children:[ifDisplay(mt,_e,bt)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[j.length," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),$t&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:St?kt:Et}),$t&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:Ct}),!bt&&!$t&&it&&customCopy(rt)&&jsxRuntimeExports.jsx(CopyButton$1,{node:j}),!bt&&!$t&&editableAdd(lt)&&customAdd(rt)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{kt()}}),!bt&&!$t&&editableDelete(lt)&&customDelete(rt)&&et&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>yt(!0)})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),It,bt?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>_t(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:nt.map((Nt,Ot)=>jsxRuntimeExports.jsx(LargeArrayNode,{originNode:j,node:Nt,depth:_e,index:Ot,startIndex:Ot*100},String(tt)+String(Ot)))})),jsxRuntimeExports.jsx("span",{children:"]"}),bt&&ifDisplay(mt,_e,bt)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_t(!1),className:"jv-size"},{children:[j.length," Items"]}))]})}function ObjectNode({node:j,depth:_e,indexOrName:et,deleteHandle:tt,customOptions:rt}){if(Array.isArray(j)&&j.length>100)return jsxRuntimeExports.jsx(LargeArray,{node:j,depth:_e,indexOrName:et,deleteHandle:tt,customOptions:rt});const{collapsed:nt,enableClipboard:ot,collapseObjectsAfterLength:it,editable:st,onDelete:lt,src:ut,onAdd:ct,onEdit:dt,onChange:ft,forceUpdate:pt,displaySize:gt}=reactExports.useContext(JsonViewContext),mt=isObject$2(j),[bt,_t]=reactExports.useState(isCollapsed(j,_e,et,nt,it,rt));reactExports.useEffect(()=>{_t(isCollapsed(j,_e,et,nt,it,rt))},[nt,it]);const xt=reactExports.useCallback((Rt,Lt,Pt)=>{Array.isArray(j)?j[+Rt]=Lt:j&&(j[Rt]=Lt),dt&&dt({newValue:Lt,oldValue:Pt,depth:_e,src:ut,indexOrName:Rt,parentType:mt?"object":"array"}),ft&&ft({type:"edit",depth:_e,src:ut,indexOrName:Rt,parentType:mt?"object":"array"}),pt()},[j,dt,ft,pt]),yt=Rt=>{Array.isArray(j)?j.splice(+Rt,1):j&&delete j[Rt],pt()},[Et,St]=reactExports.useState(!1),Tt=()=>{St(!1),tt&&tt(et),lt&<({value:j,depth:_e,src:ut,indexOrName:et,parentType:mt?"object":"array"}),ft&&ft({type:"delete",depth:_e,src:ut,indexOrName:et,parentType:mt?"object":"array"})},[kt,$t]=reactExports.useState(!1),Ct=reactExports.useRef(null),It=()=>{var Rt;if(mt){const Lt=(Rt=Ct.current)===null||Rt===void 0?void 0:Rt.value;Lt&&(j[Lt]=null,Ct.current&&(Ct.current.value=""),$t(!1),ct&&ct({indexOrName:Lt,depth:_e,src:ut,parentType:"object"}),ft&&ft({type:"add",indexOrName:Lt,depth:_e,src:ut,parentType:"object"}))}else if(Array.isArray(j)){const Lt=j;Lt.push(null),ct&&ct({indexOrName:Lt.length-1,depth:_e,src:ut,parentType:"array"}),ft&&ft({type:"add",indexOrName:Lt.length-1,depth:_e,src:ut,parentType:"array"})}pt()},Nt=Rt=>{Rt.key==="Enter"?(Rt.preventDefault(),It()):Rt.key==="Escape"&&jt()},Ot=Et||kt,jt=()=>{St(!1),$t(!1)},Mt=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!bt&&!Ot&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_t(!0),className:"jv-size-chevron"},{children:[ifDisplay(gt,_e,bt)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(j)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),kt&&mt&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:Ct,onKeyDown:Nt}),Ot&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:kt?It:Tt}),Ot&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:jt}),!bt&&!Ot&&ot&&customCopy(rt)&&jsxRuntimeExports.jsx(CopyButton$1,{node:j}),!bt&&!Ot&&editableAdd(st)&&customAdd(rt)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{mt?($t(!0),setTimeout(()=>{var Rt;return(Rt=Ct.current)===null||Rt===void 0?void 0:Rt.focus()})):It()}}),!bt&&!Ot&&editableDelete(st)&&customDelete(rt)&&tt&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>St(!0)})]});return Array.isArray(j)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),Mt,bt?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>_t(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:j.map((Rt,Lt)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Lt,value:Rt,depth:_e,parent:j,deleteHandle:yt,editHandle:xt},String(et)+String(Lt)))})),jsxRuntimeExports.jsx("span",{children:"]"}),bt&&ifDisplay(gt,_e,bt)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_t(!1),className:"jv-size"},{children:[objectSize(j)," Items"]}))]}):mt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),Mt,bt?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>_t(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(j).map(([Rt,Lt])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Rt,value:Lt,depth:_e,parent:j,deleteHandle:yt,editHandle:xt},String(et)+String(Rt)))})),jsxRuntimeExports.jsx("span",{children:"}"}),bt&&ifDisplay(gt,_e,bt)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_t(!1),className:"jv-size"},{children:[objectSize(j)," Items"]}))]}):null}const LongString=React.forwardRef(({str:j,className:_e,ctrlClick:et},tt)=>{let{collapseStringMode:rt,collapseStringsAfterLength:nt}=reactExports.useContext(JsonViewContext);const[ot,it]=reactExports.useState(!0);nt=nt>0?nt:0;const st=j.replace(/\s+/g," "),lt=ut=>{(ut.ctrlKey||ut.metaKey)&&et?et(ut):it(!ot)};if(j.length<=nt)return jsxRuntimeExports.jsxs("span",Object.assign({className:_e,onClick:et},{children:['"',j,'"']}));if(rt==="address")return j.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({className:_e,onClick:et},{children:['"',j,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({onClick:lt,className:_e+" cursor-pointer"},{children:['"',ot?st.slice(0,6)+"..."+st.slice(-4):j,'"']}));if(rt==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({onClick:lt,className:_e+" cursor-pointer"},{children:['"',ot?st.slice(0,nt)+"...":j,'"']}));if(rt==="word"){let ut=nt,ct=nt+1,dt=st,ft=1;for(;;){if(/\W/.test(j[ut])){dt=j.slice(0,ut);break}if(/\W/.test(j[ct])){dt=j.slice(0,ct);break}if(ft===6){dt=j.slice(0,nt);break}ft++,ut--,ct++}return jsxRuntimeExports.jsxs("span",Object.assign({onClick:lt,className:_e+" cursor-pointer"},{children:['"',ot?dt+"...":j,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({className:_e},{children:['"',j,'"']}))});var _path$1;function _extends$1$1(){return _extends$1$1=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e{setEditing(!0),setTimeout(()=>{var j,_e;(j=window.getSelection())===null||j===void 0||j.selectAllChildren(valueRef.current),(_e=valueRef.current)===null||_e===void 0||_e.focus()})},done=reactExports.useCallback(()=>{const newValue=valueRef.current.innerText;try{const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(j){const _e=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,_e,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(j=>{j.key==="Enter"?(j.preventDefault(),done()):j.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?j=>{(j.ctrlKey||j.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton$1,{node}),!isEditing&&matchesURL&&type==="string"&&urlRegExp.test(node)&&customMatchesURL(customReturn)&&jsxRuntimeExports.jsx("a",Object.assign({href:node,target:"_blank",className:"json-view--link"},{children:jsxRuntimeExports.jsx(SvgLink,{})})),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const defaultURLRegExp=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,matchesURL:!1,urlRegExp:defaultURLRegExp});function JsonView({src:j,collapseStringsAfterLength:_e=99,collapseStringMode:et="directly",collapseObjectsAfterLength:tt=99,collapsed:rt,enableClipboard:nt=!0,editable:ot=!1,onEdit:it,onDelete:st,onAdd:lt,onChange:ut,dark:ct=!1,theme:dt="default",customizeNode:ft,customizeCopy:pt=stringifyForCopying,displaySize:gt,style:mt,className:bt,matchesURL:_t=!1,urlRegExp:xt=defaultURLRegExp}){const[yt,Et]=reactExports.useState(0),St=reactExports.useCallback(()=>Et(Tt=>++Tt),[]);return jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:j,collapseStringsAfterLength:_e,collapseStringMode:et,collapseObjectsAfterLength:tt,collapsed:rt,enableClipboard:nt,editable:ot,onEdit:it,onDelete:st,onAdd:lt,onChange:ut,forceUpdate:St,customizeNode:ft,customizeCopy:pt,displaySize:gt,matchesURL:_t,urlRegExp:xt}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(ct?" dark":"")+(dt&&dt!=="default"?" json-view_"+dt:"")+(bt?" "+bt:""),style:mt},{children:jsxRuntimeExports.jsx(JsonNode,{node:j,depth:1})}))}))}const TraceViewThemeContext=reactExports.createContext(!1),useIsDark=()=>reactExports.useContext(TraceViewThemeContext),JsonNodeCard=({title:j,src:_e,wrapperStyle:et={}})=>{let tt="";if(typeof _e=="string")try{tt=JSON.parse(_e)}catch{tt=_e}else typeof _e=="object"&&(tt=_e);const rt=useIsDark();return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,...et},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:j})})}),jsxRuntimeExports.jsx(JsonView,{src:tt,theme:"vscode",dark:rt})]})},DefaultNodeInfo=()=>{var _e,et;const j=useSelectedSpan();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JsonNodeCard,{title:"Input",src:(_e=j==null?void 0:j.attributes)==null?void 0:_e.inputs}),jsxRuntimeExports.jsx(JsonNodeCard,{title:"Output",src:(et=j==null?void 0:j.attributes)==null?void 0:et.output})]})},BlockquoteType="blockquote",BreakType="break",CodeType="code",DefinitionType="definition",DeleteType="delete",EmphasisType="emphasis",HeadingType="heading",HtmlType="html";var HtmlContentType;(function(j){j.CDATA="cdata",j.Closing="closing",j.Comment="comment",j.Declaration="declaration",j.Instruction="instruction",j.Open="open"})(HtmlContentType||(HtmlContentType={}));const ImageReferenceType="imageReference",ImageType$1="image",InlineCodeType="inlineCode",LinkReferenceType="linkReference",LinkType="link",ListItemType="listItem";var TaskStatus;(function(j){j.TODO="todo",j.DOING="doing",j.DONE="done"})(TaskStatus||(TaskStatus={}));const ListType="list",ParagraphType$1="paragraph",StrongType="strong",TableType="table",TextType$1="text",ThematicBreakType="thematicBreak";var AsciiCodePoint;(function(j){j[j.NUL=0]="NUL",j[j.SOH=1]="SOH",j[j.STX=2]="STX",j[j.ETX=3]="ETX",j[j.EOT=4]="EOT",j[j.ENQ=5]="ENQ",j[j.ACK=6]="ACK",j[j.BEL=7]="BEL",j[j.BS=8]="BS",j[j.HT=9]="HT",j[j.LF=10]="LF",j[j.VT=11]="VT",j[j.FF=12]="FF",j[j.CR=13]="CR",j[j.SO=14]="SO",j[j.SI=15]="SI",j[j.DLE=16]="DLE",j[j.DC1=17]="DC1",j[j.DC2=18]="DC2",j[j.DC3=19]="DC3",j[j.DC4=20]="DC4",j[j.NAK=21]="NAK",j[j.SYN=22]="SYN",j[j.ETB=23]="ETB",j[j.CAN=24]="CAN",j[j.EM=25]="EM",j[j.SUB=26]="SUB",j[j.ESC=27]="ESC",j[j.FS=28]="FS",j[j.GS=29]="GS",j[j.RS=30]="RS",j[j.US=31]="US",j[j.SPACE=32]="SPACE",j[j.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",j[j.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",j[j.NUMBER_SIGN=35]="NUMBER_SIGN",j[j.DOLLAR_SIGN=36]="DOLLAR_SIGN",j[j.PERCENT_SIGN=37]="PERCENT_SIGN",j[j.AMPERSAND=38]="AMPERSAND",j[j.SINGLE_QUOTE=39]="SINGLE_QUOTE",j[j.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",j[j.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",j[j.ASTERISK=42]="ASTERISK",j[j.PLUS_SIGN=43]="PLUS_SIGN",j[j.COMMA=44]="COMMA",j[j.MINUS_SIGN=45]="MINUS_SIGN",j[j.DOT=46]="DOT",j[j.SLASH=47]="SLASH",j[j.DIGIT0=48]="DIGIT0",j[j.DIGIT1=49]="DIGIT1",j[j.DIGIT2=50]="DIGIT2",j[j.DIGIT3=51]="DIGIT3",j[j.DIGIT4=52]="DIGIT4",j[j.DIGIT5=53]="DIGIT5",j[j.DIGIT6=54]="DIGIT6",j[j.DIGIT7=55]="DIGIT7",j[j.DIGIT8=56]="DIGIT8",j[j.DIGIT9=57]="DIGIT9",j[j.COLON=58]="COLON",j[j.SEMICOLON=59]="SEMICOLON",j[j.OPEN_ANGLE=60]="OPEN_ANGLE",j[j.EQUALS_SIGN=61]="EQUALS_SIGN",j[j.CLOSE_ANGLE=62]="CLOSE_ANGLE",j[j.QUESTION_MARK=63]="QUESTION_MARK",j[j.AT_SIGN=64]="AT_SIGN",j[j.UPPERCASE_A=65]="UPPERCASE_A",j[j.UPPERCASE_B=66]="UPPERCASE_B",j[j.UPPERCASE_C=67]="UPPERCASE_C",j[j.UPPERCASE_D=68]="UPPERCASE_D",j[j.UPPERCASE_E=69]="UPPERCASE_E",j[j.UPPERCASE_F=70]="UPPERCASE_F",j[j.UPPERCASE_G=71]="UPPERCASE_G",j[j.UPPERCASE_H=72]="UPPERCASE_H",j[j.UPPERCASE_I=73]="UPPERCASE_I",j[j.UPPERCASE_J=74]="UPPERCASE_J",j[j.UPPERCASE_K=75]="UPPERCASE_K",j[j.UPPERCASE_L=76]="UPPERCASE_L",j[j.UPPERCASE_M=77]="UPPERCASE_M",j[j.UPPERCASE_N=78]="UPPERCASE_N",j[j.UPPERCASE_O=79]="UPPERCASE_O",j[j.UPPERCASE_P=80]="UPPERCASE_P",j[j.UPPERCASE_Q=81]="UPPERCASE_Q",j[j.UPPERCASE_R=82]="UPPERCASE_R",j[j.UPPERCASE_S=83]="UPPERCASE_S",j[j.UPPERCASE_T=84]="UPPERCASE_T",j[j.UPPERCASE_U=85]="UPPERCASE_U",j[j.UPPERCASE_V=86]="UPPERCASE_V",j[j.UPPERCASE_W=87]="UPPERCASE_W",j[j.UPPERCASE_X=88]="UPPERCASE_X",j[j.UPPERCASE_Y=89]="UPPERCASE_Y",j[j.UPPERCASE_Z=90]="UPPERCASE_Z",j[j.OPEN_BRACKET=91]="OPEN_BRACKET",j[j.BACKSLASH=92]="BACKSLASH",j[j.CLOSE_BRACKET=93]="CLOSE_BRACKET",j[j.CARET=94]="CARET",j[j.UNDERSCORE=95]="UNDERSCORE",j[j.BACKTICK=96]="BACKTICK",j[j.LOWERCASE_A=97]="LOWERCASE_A",j[j.LOWERCASE_B=98]="LOWERCASE_B",j[j.LOWERCASE_C=99]="LOWERCASE_C",j[j.LOWERCASE_D=100]="LOWERCASE_D",j[j.LOWERCASE_E=101]="LOWERCASE_E",j[j.LOWERCASE_F=102]="LOWERCASE_F",j[j.LOWERCASE_G=103]="LOWERCASE_G",j[j.LOWERCASE_H=104]="LOWERCASE_H",j[j.LOWERCASE_I=105]="LOWERCASE_I",j[j.LOWERCASE_J=106]="LOWERCASE_J",j[j.LOWERCASE_K=107]="LOWERCASE_K",j[j.LOWERCASE_L=108]="LOWERCASE_L",j[j.LOWERCASE_M=109]="LOWERCASE_M",j[j.LOWERCASE_N=110]="LOWERCASE_N",j[j.LOWERCASE_O=111]="LOWERCASE_O",j[j.LOWERCASE_P=112]="LOWERCASE_P",j[j.LOWERCASE_Q=113]="LOWERCASE_Q",j[j.LOWERCASE_R=114]="LOWERCASE_R",j[j.LOWERCASE_S=115]="LOWERCASE_S",j[j.LOWERCASE_T=116]="LOWERCASE_T",j[j.LOWERCASE_U=117]="LOWERCASE_U",j[j.LOWERCASE_V=118]="LOWERCASE_V",j[j.LOWERCASE_W=119]="LOWERCASE_W",j[j.LOWERCASE_X=120]="LOWERCASE_X",j[j.LOWERCASE_Y=121]="LOWERCASE_Y",j[j.LOWERCASE_Z=122]="LOWERCASE_Z",j[j.OPEN_BRACE=123]="OPEN_BRACE",j[j.VERTICAL_SLASH=124]="VERTICAL_SLASH",j[j.CLOSE_BRACE=125]="CLOSE_BRACE",j[j.TILDE=126]="TILDE",j[j.DELETE=127]="DELETE"})(AsciiCodePoint||(AsciiCodePoint={}));const foldingCaseCodeMap={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},entityReferences=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` -`},{key:[78,102,114,59],value:"𝔑"},{key:[78,111,66,114,101,97,107,59],value:"⁠"},{key:[78,111,110,66,114,101,97,107,105,110,103,83,112,97,99,101,59],value:" "},{key:[78,111,112,102,59],value:"ℕ"},{key:[78,111,116,59],value:"⫬"},{key:[78,111,116,67,111,110,103,114,117,101,110,116,59],value:"≢"},{key:[78,111,116,67,117,112,67,97,112,59],value:"≭"},{key:[78,111,116,68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∦"},{key:[78,111,116,69,108,101,109,101,110,116,59],value:"∉"},{key:[78,111,116,69,113,117,97,108,59],value:"≠"},{key:[78,111,116,69,113,117,97,108,84,105,108,100,101,59],value:"≂̸"},{key:[78,111,116,69,120,105,115,116,115,59],value:"∄"},{key:[78,111,116,71,114,101,97,116,101,114,59],value:"≯"},{key:[78,111,116,71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≱"},{key:[78,111,116,71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧̸"},{key:[78,111,116,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫̸"},{key:[78,111,116,71,114,101,97,116,101,114,76,101,115,115,59],value:"≹"},{key:[78,111,116,71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾̸"},{key:[78,111,116,71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≵"},{key:[78,111,116,72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎̸"},{key:[78,111,116,72,117,109,112,69,113,117,97,108,59],value:"≏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⋪"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋬"},{key:[78,111,116,76,101,115,115,59],value:"≮"},{key:[78,111,116,76,101,115,115,69,113,117,97,108,59],value:"≰"},{key:[78,111,116,76,101,115,115,71,114,101,97,116,101,114,59],value:"≸"},{key:[78,111,116,76,101,115,115,76,101,115,115,59],value:"≪̸"},{key:[78,111,116,76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽̸"},{key:[78,111,116,76,101,115,115,84,105,108,100,101,59],value:"≴"},{key:[78,111,116,78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢̸"},{key:[78,111,116,78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"⪡̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,59],value:"⊀"},{key:[78,111,116,80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋠"},{key:[78,111,116,82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∌"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⋫"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐̸"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋭"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⋢"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⋣"},{key:[78,111,116,83,117,98,115,101,116,59],value:"⊂⃒"},{key:[78,111,116,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊈"},{key:[78,111,116,83,117,99,99,101,101,100,115,59],value:"⊁"},{key:[78,111,116,83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰̸"},{key:[78,111,116,83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋡"},{key:[78,111,116,83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿̸"},{key:[78,111,116,83,117,112,101,114,115,101,116,59],value:"⊃⃒"},{key:[78,111,116,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊉"},{key:[78,111,116,84,105,108,100,101,59],value:"≁"},{key:[78,111,116,84,105,108,100,101,69,113,117,97,108,59],value:"≄"},{key:[78,111,116,84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≇"},{key:[78,111,116,84,105,108,100,101,84,105,108,100,101,59],value:"≉"},{key:[78,111,116,86,101,114,116,105,99,97,108,66,97,114,59],value:"∤"},{key:[78,115,99,114,59],value:"𝒩"},{key:[78,116,105,108,100,101,59],value:"Ñ"},{key:[78,117,59],value:"Ν"},{key:[79,69,108,105,103,59],value:"Œ"},{key:[79,97,99,117,116,101,59],value:"Ó"},{key:[79,99,105,114,99,59],value:"Ô"},{key:[79,99,121,59],value:"О"},{key:[79,100,98,108,97,99,59],value:"Ő"},{key:[79,102,114,59],value:"𝔒"},{key:[79,103,114,97,118,101,59],value:"Ò"},{key:[79,109,97,99,114,59],value:"Ō"},{key:[79,109,101,103,97,59],value:"Ω"},{key:[79,109,105,99,114,111,110,59],value:"Ο"},{key:[79,111,112,102,59],value:"𝕆"},{key:[79,112,101,110,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"“"},{key:[79,112,101,110,67,117,114,108,121,81,117,111,116,101,59],value:"‘"},{key:[79,114,59],value:"⩔"},{key:[79,115,99,114,59],value:"𝒪"},{key:[79,115,108,97,115,104,59],value:"Ø"},{key:[79,116,105,108,100,101,59],value:"Õ"},{key:[79,116,105,109,101,115,59],value:"⨷"},{key:[79,117,109,108,59],value:"Ö"},{key:[79,118,101,114,66,97,114,59],value:"‾"},{key:[79,118,101,114,66,114,97,99,101,59],value:"⏞"},{key:[79,118,101,114,66,114,97,99,107,101,116,59],value:"⎴"},{key:[79,118,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏜"},{key:[80,97,114,116,105,97,108,68,59],value:"∂"},{key:[80,99,121,59],value:"П"},{key:[80,102,114,59],value:"𝔓"},{key:[80,104,105,59],value:"Φ"},{key:[80,105,59],value:"Π"},{key:[80,108,117,115,77,105,110,117,115,59],value:"±"},{key:[80,111,105,110,99,97,114,101,112,108,97,110,101,59],value:"ℌ"},{key:[80,111,112,102,59],value:"ℙ"},{key:[80,114,59],value:"⪻"},{key:[80,114,101,99,101,100,101,115,59],value:"≺"},{key:[80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯"},{key:[80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"≼"},{key:[80,114,101,99,101,100,101,115,84,105,108,100,101,59],value:"≾"},{key:[80,114,105,109,101,59],value:"″"},{key:[80,114,111,100,117,99,116,59],value:"∏"},{key:[80,114,111,112,111,114,116,105,111,110,59],value:"∷"},{key:[80,114,111,112,111,114,116,105,111,110,97,108,59],value:"∝"},{key:[80,115,99,114,59],value:"𝒫"},{key:[80,115,105,59],value:"Ψ"},{key:[81,85,79,84,59],value:'"'},{key:[81,102,114,59],value:"𝔔"},{key:[81,111,112,102,59],value:"ℚ"},{key:[81,115,99,114,59],value:"𝒬"},{key:[82,66,97,114,114,59],value:"⤐"},{key:[82,69,71,59],value:"®"},{key:[82,97,99,117,116,101,59],value:"Ŕ"},{key:[82,97,110,103,59],value:"⟫"},{key:[82,97,114,114,59],value:"↠"},{key:[82,97,114,114,116,108,59],value:"⤖"},{key:[82,99,97,114,111,110,59],value:"Ř"},{key:[82,99,101,100,105,108,59],value:"Ŗ"},{key:[82,99,121,59],value:"Р"},{key:[82,101,59],value:"ℜ"},{key:[82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∋"},{key:[82,101,118,101,114,115,101,69,113,117,105,108,105,98,114,105,117,109,59],value:"⇋"},{key:[82,101,118,101,114,115,101,85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥯"},{key:[82,102,114,59],value:"ℜ"},{key:[82,104,111,59],value:"Ρ"},{key:[82,105,103,104,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟩"},{key:[82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[82,105,103,104,116,65,114,114,111,119,66,97,114,59],value:"⇥"},{key:[82,105,103,104,116,65,114,114,111,119,76,101,102,116,65,114,114,111,119,59],value:"⇄"},{key:[82,105,103,104,116,67,101,105,108,105,110,103,59],value:"⌉"},{key:[82,105,103,104,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟧"},{key:[82,105,103,104,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥝"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇂"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥕"},{key:[82,105,103,104,116,70,108,111,111,114,59],value:"⌋"},{key:[82,105,103,104,116,84,101,101,59],value:"⊢"},{key:[82,105,103,104,116,84,101,101,65,114,114,111,119,59],value:"↦"},{key:[82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥛"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⊳"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊵"},{key:[82,105,103,104,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥏"},{key:[82,105,103,104,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥜"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,59],value:"↾"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥔"},{key:[82,105,103,104,116,86,101,99,116,111,114,59],value:"⇀"},{key:[82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥓"},{key:[82,105,103,104,116,97,114,114,111,119,59],value:"⇒"},{key:[82,111,112,102,59],value:"ℝ"},{key:[82,111,117,110,100,73,109,112,108,105,101,115,59],value:"⥰"},{key:[82,114,105,103,104,116,97,114,114,111,119,59],value:"⇛"},{key:[82,115,99,114,59],value:"ℛ"},{key:[82,115,104,59],value:"↱"},{key:[82,117,108,101,68,101,108,97,121,101,100,59],value:"⧴"},{key:[83,72,67,72,99,121,59],value:"Щ"},{key:[83,72,99,121,59],value:"Ш"},{key:[83,79,70,84,99,121,59],value:"Ь"},{key:[83,97,99,117,116,101,59],value:"Ś"},{key:[83,99,59],value:"⪼"},{key:[83,99,97,114,111,110,59],value:"Š"},{key:[83,99,101,100,105,108,59],value:"Ş"},{key:[83,99,105,114,99,59],value:"Ŝ"},{key:[83,99,121,59],value:"С"},{key:[83,102,114,59],value:"𝔖"},{key:[83,104,111,114,116,68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[83,104,111,114,116,76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[83,104,111,114,116,82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[83,104,111,114,116,85,112,65,114,114,111,119,59],value:"↑"},{key:[83,105,103,109,97,59],value:"Σ"},{key:[83,109,97,108,108,67,105,114,99,108,101,59],value:"∘"},{key:[83,111,112,102,59],value:"𝕊"},{key:[83,113,114,116,59],value:"√"},{key:[83,113,117,97,114,101,59],value:"□"},{key:[83,113,117,97,114,101,73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⊓"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊑"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊒"},{key:[83,113,117,97,114,101,85,110,105,111,110,59],value:"⊔"},{key:[83,115,99,114,59],value:"𝒮"},{key:[83,116,97,114,59],value:"⋆"},{key:[83,117,98,59],value:"⋐"},{key:[83,117,98,115,101,116,59],value:"⋐"},{key:[83,117,98,115,101,116,69,113,117,97,108,59],value:"⊆"},{key:[83,117,99,99,101,101,100,115,59],value:"≻"},{key:[83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰"},{key:[83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"≽"},{key:[83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿"},{key:[83,117,99,104,84,104,97,116,59],value:"∋"},{key:[83,117,109,59],value:"∑"},{key:[83,117,112,59],value:"⋑"},{key:[83,117,112,101,114,115,101,116,59],value:"⊃"},{key:[83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊇"},{key:[83,117,112,115,101,116,59],value:"⋑"},{key:[84,72,79,82,78,59],value:"Þ"},{key:[84,82,65,68,69,59],value:"™"},{key:[84,83,72,99,121,59],value:"Ћ"},{key:[84,83,99,121,59],value:"Ц"},{key:[84,97,98,59],value:" "},{key:[84,97,117,59],value:"Τ"},{key:[84,99,97,114,111,110,59],value:"Ť"},{key:[84,99,101,100,105,108,59],value:"Ţ"},{key:[84,99,121,59],value:"Т"},{key:[84,102,114,59],value:"𝔗"},{key:[84,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[84,104,101,116,97,59],value:"Θ"},{key:[84,104,105,99,107,83,112,97,99,101,59],value:"  "},{key:[84,104,105,110,83,112,97,99,101,59],value:" "},{key:[84,105,108,100,101,59],value:"∼"},{key:[84,105,108,100,101,69,113,117,97,108,59],value:"≃"},{key:[84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≅"},{key:[84,105,108,100,101,84,105,108,100,101,59],value:"≈"},{key:[84,111,112,102,59],value:"𝕋"},{key:[84,114,105,112,108,101,68,111,116,59],value:"⃛"},{key:[84,115,99,114,59],value:"𝒯"},{key:[84,115,116,114,111,107,59],value:"Ŧ"},{key:[85,97,99,117,116,101,59],value:"Ú"},{key:[85,97,114,114,59],value:"↟"},{key:[85,97,114,114,111,99,105,114,59],value:"⥉"},{key:[85,98,114,99,121,59],value:"Ў"},{key:[85,98,114,101,118,101,59],value:"Ŭ"},{key:[85,99,105,114,99,59],value:"Û"},{key:[85,99,121,59],value:"У"},{key:[85,100,98,108,97,99,59],value:"Ű"},{key:[85,102,114,59],value:"𝔘"},{key:[85,103,114,97,118,101,59],value:"Ù"},{key:[85,109,97,99,114,59],value:"Ū"},{key:[85,110,100,101,114,66,97,114,59],value:"_"},{key:[85,110,100,101,114,66,114,97,99,101,59],value:"⏟"},{key:[85,110,100,101,114,66,114,97,99,107,101,116,59],value:"⎵"},{key:[85,110,100,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏝"},{key:[85,110,105,111,110,59],value:"⋃"},{key:[85,110,105,111,110,80,108,117,115,59],value:"⊎"},{key:[85,111,103,111,110,59],value:"Ų"},{key:[85,111,112,102,59],value:"𝕌"},{key:[85,112,65,114,114,111,119,59],value:"↑"},{key:[85,112,65,114,114,111,119,66,97,114,59],value:"⤒"},{key:[85,112,65,114,114,111,119,68,111,119,110,65,114,114,111,119,59],value:"⇅"},{key:[85,112,68,111,119,110,65,114,114,111,119,59],value:"↕"},{key:[85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥮"},{key:[85,112,84,101,101,59],value:"⊥"},{key:[85,112,84,101,101,65,114,114,111,119,59],value:"↥"},{key:[85,112,97,114,114,111,119,59],value:"⇑"},{key:[85,112,100,111,119,110,97,114,114,111,119,59],value:"⇕"},{key:[85,112,112,101,114,76,101,102,116,65,114,114,111,119,59],value:"↖"},{key:[85,112,112,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↗"},{key:[85,112,115,105,59],value:"ϒ"},{key:[85,112,115,105,108,111,110,59],value:"Υ"},{key:[85,114,105,110,103,59],value:"Ů"},{key:[85,115,99,114,59],value:"𝒰"},{key:[85,116,105,108,100,101,59],value:"Ũ"},{key:[85,117,109,108,59],value:"Ü"},{key:[86,68,97,115,104,59],value:"⊫"},{key:[86,98,97,114,59],value:"⫫"},{key:[86,99,121,59],value:"В"},{key:[86,100,97,115,104,59],value:"⊩"},{key:[86,100,97,115,104,108,59],value:"⫦"},{key:[86,101,101,59],value:"⋁"},{key:[86,101,114,98,97,114,59],value:"‖"},{key:[86,101,114,116,59],value:"‖"},{key:[86,101,114,116,105,99,97,108,66,97,114,59],value:"∣"},{key:[86,101,114,116,105,99,97,108,76,105,110,101,59],value:"|"},{key:[86,101,114,116,105,99,97,108,83,101,112,97,114,97,116,111,114,59],value:"❘"},{key:[86,101,114,116,105,99,97,108,84,105,108,100,101,59],value:"≀"},{key:[86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:" "},{key:[86,102,114,59],value:"𝔙"},{key:[86,111,112,102,59],value:"𝕍"},{key:[86,115,99,114,59],value:"𝒱"},{key:[86,118,100,97,115,104,59],value:"⊪"},{key:[87,99,105,114,99,59],value:"Ŵ"},{key:[87,101,100,103,101,59],value:"⋀"},{key:[87,102,114,59],value:"𝔚"},{key:[87,111,112,102,59],value:"𝕎"},{key:[87,115,99,114,59],value:"𝒲"},{key:[88,102,114,59],value:"𝔛"},{key:[88,105,59],value:"Ξ"},{key:[88,111,112,102,59],value:"𝕏"},{key:[88,115,99,114,59],value:"𝒳"},{key:[89,65,99,121,59],value:"Я"},{key:[89,73,99,121,59],value:"Ї"},{key:[89,85,99,121,59],value:"Ю"},{key:[89,97,99,117,116,101,59],value:"Ý"},{key:[89,99,105,114,99,59],value:"Ŷ"},{key:[89,99,121,59],value:"Ы"},{key:[89,102,114,59],value:"𝔜"},{key:[89,111,112,102,59],value:"𝕐"},{key:[89,115,99,114,59],value:"𝒴"},{key:[89,117,109,108,59],value:"Ÿ"},{key:[90,72,99,121,59],value:"Ж"},{key:[90,97,99,117,116,101,59],value:"Ź"},{key:[90,99,97,114,111,110,59],value:"Ž"},{key:[90,99,121,59],value:"З"},{key:[90,100,111,116,59],value:"Ż"},{key:[90,101,114,111,87,105,100,116,104,83,112,97,99,101,59],value:"​"},{key:[90,101,116,97,59],value:"Ζ"},{key:[90,102,114,59],value:"ℨ"},{key:[90,111,112,102,59],value:"ℤ"},{key:[90,115,99,114,59],value:"𝒵"},{key:[97,97,99,117,116,101,59],value:"á"},{key:[97,98,114,101,118,101,59],value:"ă"},{key:[97,99,59],value:"∾"},{key:[97,99,69,59],value:"∾̳"},{key:[97,99,100,59],value:"∿"},{key:[97,99,105,114,99,59],value:"â"},{key:[97,99,117,116,101,59],value:"´"},{key:[97,99,121,59],value:"а"},{key:[97,101,108,105,103,59],value:"æ"},{key:[97,102,59],value:"⁡"},{key:[97,102,114,59],value:"𝔞"},{key:[97,103,114,97,118,101,59],value:"à"},{key:[97,108,101,102,115,121,109,59],value:"ℵ"},{key:[97,108,101,112,104,59],value:"ℵ"},{key:[97,108,112,104,97,59],value:"α"},{key:[97,109,97,99,114,59],value:"ā"},{key:[97,109,97,108,103,59],value:"⨿"},{key:[97,109,112,59],value:"&"},{key:[97,110,100,59],value:"∧"},{key:[97,110,100,97,110,100,59],value:"⩕"},{key:[97,110,100,100,59],value:"⩜"},{key:[97,110,100,115,108,111,112,101,59],value:"⩘"},{key:[97,110,100,118,59],value:"⩚"},{key:[97,110,103,59],value:"∠"},{key:[97,110,103,101,59],value:"⦤"},{key:[97,110,103,108,101,59],value:"∠"},{key:[97,110,103,109,115,100,59],value:"∡"},{key:[97,110,103,109,115,100,97,97,59],value:"⦨"},{key:[97,110,103,109,115,100,97,98,59],value:"⦩"},{key:[97,110,103,109,115,100,97,99,59],value:"⦪"},{key:[97,110,103,109,115,100,97,100,59],value:"⦫"},{key:[97,110,103,109,115,100,97,101,59],value:"⦬"},{key:[97,110,103,109,115,100,97,102,59],value:"⦭"},{key:[97,110,103,109,115,100,97,103,59],value:"⦮"},{key:[97,110,103,109,115,100,97,104,59],value:"⦯"},{key:[97,110,103,114,116,59],value:"∟"},{key:[97,110,103,114,116,118,98,59],value:"⊾"},{key:[97,110,103,114,116,118,98,100,59],value:"⦝"},{key:[97,110,103,115,112,104,59],value:"∢"},{key:[97,110,103,115,116,59],value:"Å"},{key:[97,110,103,122,97,114,114,59],value:"⍼"},{key:[97,111,103,111,110,59],value:"ą"},{key:[97,111,112,102,59],value:"𝕒"},{key:[97,112,59],value:"≈"},{key:[97,112,69,59],value:"⩰"},{key:[97,112,97,99,105,114,59],value:"⩯"},{key:[97,112,101,59],value:"≊"},{key:[97,112,105,100,59],value:"≋"},{key:[97,112,111,115,59],value:"'"},{key:[97,112,112,114,111,120,59],value:"≈"},{key:[97,112,112,114,111,120,101,113,59],value:"≊"},{key:[97,114,105,110,103,59],value:"å"},{key:[97,115,99,114,59],value:"𝒶"},{key:[97,115,116,59],value:"*"},{key:[97,115,121,109,112,59],value:"≈"},{key:[97,115,121,109,112,101,113,59],value:"≍"},{key:[97,116,105,108,100,101,59],value:"ã"},{key:[97,117,109,108,59],value:"ä"},{key:[97,119,99,111,110,105,110,116,59],value:"∳"},{key:[97,119,105,110,116,59],value:"⨑"},{key:[98,78,111,116,59],value:"⫭"},{key:[98,97,99,107,99,111,110,103,59],value:"≌"},{key:[98,97,99,107,101,112,115,105,108,111,110,59],value:"϶"},{key:[98,97,99,107,112,114,105,109,101,59],value:"‵"},{key:[98,97,99,107,115,105,109,59],value:"∽"},{key:[98,97,99,107,115,105,109,101,113,59],value:"⋍"},{key:[98,97,114,118,101,101,59],value:"⊽"},{key:[98,97,114,119,101,100,59],value:"⌅"},{key:[98,97,114,119,101,100,103,101,59],value:"⌅"},{key:[98,98,114,107,59],value:"⎵"},{key:[98,98,114,107,116,98,114,107,59],value:"⎶"},{key:[98,99,111,110,103,59],value:"≌"},{key:[98,99,121,59],value:"б"},{key:[98,100,113,117,111,59],value:"„"},{key:[98,101,99,97,117,115,59],value:"∵"},{key:[98,101,99,97,117,115,101,59],value:"∵"},{key:[98,101,109,112,116,121,118,59],value:"⦰"},{key:[98,101,112,115,105,59],value:"϶"},{key:[98,101,114,110,111,117,59],value:"ℬ"},{key:[98,101,116,97,59],value:"β"},{key:[98,101,116,104,59],value:"ℶ"},{key:[98,101,116,119,101,101,110,59],value:"≬"},{key:[98,102,114,59],value:"𝔟"},{key:[98,105,103,99,97,112,59],value:"⋂"},{key:[98,105,103,99,105,114,99,59],value:"◯"},{key:[98,105,103,99,117,112,59],value:"⋃"},{key:[98,105,103,111,100,111,116,59],value:"⨀"},{key:[98,105,103,111,112,108,117,115,59],value:"⨁"},{key:[98,105,103,111,116,105,109,101,115,59],value:"⨂"},{key:[98,105,103,115,113,99,117,112,59],value:"⨆"},{key:[98,105,103,115,116,97,114,59],value:"★"},{key:[98,105,103,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▽"},{key:[98,105,103,116,114,105,97,110,103,108,101,117,112,59],value:"△"},{key:[98,105,103,117,112,108,117,115,59],value:"⨄"},{key:[98,105,103,118,101,101,59],value:"⋁"},{key:[98,105,103,119,101,100,103,101,59],value:"⋀"},{key:[98,107,97,114,111,119,59],value:"⤍"},{key:[98,108,97,99,107,108,111,122,101,110,103,101,59],value:"⧫"},{key:[98,108,97,99,107,115,113,117,97,114,101,59],value:"▪"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,59],value:"▴"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▾"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◂"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▸"},{key:[98,108,97,110,107,59],value:"␣"},{key:[98,108,107,49,50,59],value:"▒"},{key:[98,108,107,49,52,59],value:"░"},{key:[98,108,107,51,52,59],value:"▓"},{key:[98,108,111,99,107,59],value:"█"},{key:[98,110,101,59],value:"=⃥"},{key:[98,110,101,113,117,105,118,59],value:"≡⃥"},{key:[98,110,111,116,59],value:"⌐"},{key:[98,111,112,102,59],value:"𝕓"},{key:[98,111,116,59],value:"⊥"},{key:[98,111,116,116,111,109,59],value:"⊥"},{key:[98,111,119,116,105,101,59],value:"⋈"},{key:[98,111,120,68,76,59],value:"╗"},{key:[98,111,120,68,82,59],value:"╔"},{key:[98,111,120,68,108,59],value:"╖"},{key:[98,111,120,68,114,59],value:"╓"},{key:[98,111,120,72,59],value:"═"},{key:[98,111,120,72,68,59],value:"╦"},{key:[98,111,120,72,85,59],value:"╩"},{key:[98,111,120,72,100,59],value:"╤"},{key:[98,111,120,72,117,59],value:"╧"},{key:[98,111,120,85,76,59],value:"╝"},{key:[98,111,120,85,82,59],value:"╚"},{key:[98,111,120,85,108,59],value:"╜"},{key:[98,111,120,85,114,59],value:"╙"},{key:[98,111,120,86,59],value:"║"},{key:[98,111,120,86,72,59],value:"╬"},{key:[98,111,120,86,76,59],value:"╣"},{key:[98,111,120,86,82,59],value:"╠"},{key:[98,111,120,86,104,59],value:"╫"},{key:[98,111,120,86,108,59],value:"╢"},{key:[98,111,120,86,114,59],value:"╟"},{key:[98,111,120,98,111,120,59],value:"⧉"},{key:[98,111,120,100,76,59],value:"╕"},{key:[98,111,120,100,82,59],value:"╒"},{key:[98,111,120,100,108,59],value:"┐"},{key:[98,111,120,100,114,59],value:"┌"},{key:[98,111,120,104,59],value:"─"},{key:[98,111,120,104,68,59],value:"╥"},{key:[98,111,120,104,85,59],value:"╨"},{key:[98,111,120,104,100,59],value:"┬"},{key:[98,111,120,104,117,59],value:"┴"},{key:[98,111,120,109,105,110,117,115,59],value:"⊟"},{key:[98,111,120,112,108,117,115,59],value:"⊞"},{key:[98,111,120,116,105,109,101,115,59],value:"⊠"},{key:[98,111,120,117,76,59],value:"╛"},{key:[98,111,120,117,82,59],value:"╘"},{key:[98,111,120,117,108,59],value:"┘"},{key:[98,111,120,117,114,59],value:"└"},{key:[98,111,120,118,59],value:"│"},{key:[98,111,120,118,72,59],value:"╪"},{key:[98,111,120,118,76,59],value:"╡"},{key:[98,111,120,118,82,59],value:"╞"},{key:[98,111,120,118,104,59],value:"┼"},{key:[98,111,120,118,108,59],value:"┤"},{key:[98,111,120,118,114,59],value:"├"},{key:[98,112,114,105,109,101,59],value:"‵"},{key:[98,114,101,118,101,59],value:"˘"},{key:[98,114,118,98,97,114,59],value:"¦"},{key:[98,115,99,114,59],value:"𝒷"},{key:[98,115,101,109,105,59],value:"⁏"},{key:[98,115,105,109,59],value:"∽"},{key:[98,115,105,109,101,59],value:"⋍"},{key:[98,115,111,108,59],value:"\\"},{key:[98,115,111,108,98,59],value:"⧅"},{key:[98,115,111,108,104,115,117,98,59],value:"⟈"},{key:[98,117,108,108,59],value:"•"},{key:[98,117,108,108,101,116,59],value:"•"},{key:[98,117,109,112,59],value:"≎"},{key:[98,117,109,112,69,59],value:"⪮"},{key:[98,117,109,112,101,59],value:"≏"},{key:[98,117,109,112,101,113,59],value:"≏"},{key:[99,97,99,117,116,101,59],value:"ć"},{key:[99,97,112,59],value:"∩"},{key:[99,97,112,97,110,100,59],value:"⩄"},{key:[99,97,112,98,114,99,117,112,59],value:"⩉"},{key:[99,97,112,99,97,112,59],value:"⩋"},{key:[99,97,112,99,117,112,59],value:"⩇"},{key:[99,97,112,100,111,116,59],value:"⩀"},{key:[99,97,112,115,59],value:"∩︀"},{key:[99,97,114,101,116,59],value:"⁁"},{key:[99,97,114,111,110,59],value:"ˇ"},{key:[99,99,97,112,115,59],value:"⩍"},{key:[99,99,97,114,111,110,59],value:"č"},{key:[99,99,101,100,105,108,59],value:"ç"},{key:[99,99,105,114,99,59],value:"ĉ"},{key:[99,99,117,112,115,59],value:"⩌"},{key:[99,99,117,112,115,115,109,59],value:"⩐"},{key:[99,100,111,116,59],value:"ċ"},{key:[99,101,100,105,108,59],value:"¸"},{key:[99,101,109,112,116,121,118,59],value:"⦲"},{key:[99,101,110,116,59],value:"¢"},{key:[99,101,110,116,101,114,100,111,116,59],value:"·"},{key:[99,102,114,59],value:"𝔠"},{key:[99,104,99,121,59],value:"ч"},{key:[99,104,101,99,107,59],value:"✓"},{key:[99,104,101,99,107,109,97,114,107,59],value:"✓"},{key:[99,104,105,59],value:"χ"},{key:[99,105,114,59],value:"○"},{key:[99,105,114,69,59],value:"⧃"},{key:[99,105,114,99,59],value:"ˆ"},{key:[99,105,114,99,101,113,59],value:"≗"},{key:[99,105,114,99,108,101,97,114,114,111,119,108,101,102,116,59],value:"↺"},{key:[99,105,114,99,108,101,97,114,114,111,119,114,105,103,104,116,59],value:"↻"},{key:[99,105,114,99,108,101,100,82,59],value:"®"},{key:[99,105,114,99,108,101,100,83,59],value:"Ⓢ"},{key:[99,105,114,99,108,101,100,97,115,116,59],value:"⊛"},{key:[99,105,114,99,108,101,100,99,105,114,99,59],value:"⊚"},{key:[99,105,114,99,108,101,100,100,97,115,104,59],value:"⊝"},{key:[99,105,114,101,59],value:"≗"},{key:[99,105,114,102,110,105,110,116,59],value:"⨐"},{key:[99,105,114,109,105,100,59],value:"⫯"},{key:[99,105,114,115,99,105,114,59],value:"⧂"},{key:[99,108,117,98,115,59],value:"♣"},{key:[99,108,117,98,115,117,105,116,59],value:"♣"},{key:[99,111,108,111,110,59],value:":"},{key:[99,111,108,111,110,101,59],value:"≔"},{key:[99,111,108,111,110,101,113,59],value:"≔"},{key:[99,111,109,109,97,59],value:","},{key:[99,111,109,109,97,116,59],value:"@"},{key:[99,111,109,112,59],value:"∁"},{key:[99,111,109,112,102,110,59],value:"∘"},{key:[99,111,109,112,108,101,109,101,110,116,59],value:"∁"},{key:[99,111,109,112,108,101,120,101,115,59],value:"ℂ"},{key:[99,111,110,103,59],value:"≅"},{key:[99,111,110,103,100,111,116,59],value:"⩭"},{key:[99,111,110,105,110,116,59],value:"∮"},{key:[99,111,112,102,59],value:"𝕔"},{key:[99,111,112,114,111,100,59],value:"∐"},{key:[99,111,112,121,59],value:"©"},{key:[99,111,112,121,115,114,59],value:"℗"},{key:[99,114,97,114,114,59],value:"↵"},{key:[99,114,111,115,115,59],value:"✗"},{key:[99,115,99,114,59],value:"𝒸"},{key:[99,115,117,98,59],value:"⫏"},{key:[99,115,117,98,101,59],value:"⫑"},{key:[99,115,117,112,59],value:"⫐"},{key:[99,115,117,112,101,59],value:"⫒"},{key:[99,116,100,111,116,59],value:"⋯"},{key:[99,117,100,97,114,114,108,59],value:"⤸"},{key:[99,117,100,97,114,114,114,59],value:"⤵"},{key:[99,117,101,112,114,59],value:"⋞"},{key:[99,117,101,115,99,59],value:"⋟"},{key:[99,117,108,97,114,114,59],value:"↶"},{key:[99,117,108,97,114,114,112,59],value:"⤽"},{key:[99,117,112,59],value:"∪"},{key:[99,117,112,98,114,99,97,112,59],value:"⩈"},{key:[99,117,112,99,97,112,59],value:"⩆"},{key:[99,117,112,99,117,112,59],value:"⩊"},{key:[99,117,112,100,111,116,59],value:"⊍"},{key:[99,117,112,111,114,59],value:"⩅"},{key:[99,117,112,115,59],value:"∪︀"},{key:[99,117,114,97,114,114,59],value:"↷"},{key:[99,117,114,97,114,114,109,59],value:"⤼"},{key:[99,117,114,108,121,101,113,112,114,101,99,59],value:"⋞"},{key:[99,117,114,108,121,101,113,115,117,99,99,59],value:"⋟"},{key:[99,117,114,108,121,118,101,101,59],value:"⋎"},{key:[99,117,114,108,121,119,101,100,103,101,59],value:"⋏"},{key:[99,117,114,114,101,110,59],value:"¤"},{key:[99,117,114,118,101,97,114,114,111,119,108,101,102,116,59],value:"↶"},{key:[99,117,114,118,101,97,114,114,111,119,114,105,103,104,116,59],value:"↷"},{key:[99,117,118,101,101,59],value:"⋎"},{key:[99,117,119,101,100,59],value:"⋏"},{key:[99,119,99,111,110,105,110,116,59],value:"∲"},{key:[99,119,105,110,116,59],value:"∱"},{key:[99,121,108,99,116,121,59],value:"⌭"},{key:[100,65,114,114,59],value:"⇓"},{key:[100,72,97,114,59],value:"⥥"},{key:[100,97,103,103,101,114,59],value:"†"},{key:[100,97,108,101,116,104,59],value:"ℸ"},{key:[100,97,114,114,59],value:"↓"},{key:[100,97,115,104,59],value:"‐"},{key:[100,97,115,104,118,59],value:"⊣"},{key:[100,98,107,97,114,111,119,59],value:"⤏"},{key:[100,98,108,97,99,59],value:"˝"},{key:[100,99,97,114,111,110,59],value:"ď"},{key:[100,99,121,59],value:"д"},{key:[100,100,59],value:"ⅆ"},{key:[100,100,97,103,103,101,114,59],value:"‡"},{key:[100,100,97,114,114,59],value:"⇊"},{key:[100,100,111,116,115,101,113,59],value:"⩷"},{key:[100,101,103,59],value:"°"},{key:[100,101,108,116,97,59],value:"δ"},{key:[100,101,109,112,116,121,118,59],value:"⦱"},{key:[100,102,105,115,104,116,59],value:"⥿"},{key:[100,102,114,59],value:"𝔡"},{key:[100,104,97,114,108,59],value:"⇃"},{key:[100,104,97,114,114,59],value:"⇂"},{key:[100,105,97,109,59],value:"⋄"},{key:[100,105,97,109,111,110,100,59],value:"⋄"},{key:[100,105,97,109,111,110,100,115,117,105,116,59],value:"♦"},{key:[100,105,97,109,115,59],value:"♦"},{key:[100,105,101,59],value:"¨"},{key:[100,105,103,97,109,109,97,59],value:"ϝ"},{key:[100,105,115,105,110,59],value:"⋲"},{key:[100,105,118,59],value:"÷"},{key:[100,105,118,105,100,101,59],value:"÷"},{key:[100,105,118,105,100,101,111,110,116,105,109,101,115,59],value:"⋇"},{key:[100,105,118,111,110,120,59],value:"⋇"},{key:[100,106,99,121,59],value:"ђ"},{key:[100,108,99,111,114,110,59],value:"⌞"},{key:[100,108,99,114,111,112,59],value:"⌍"},{key:[100,111,108,108,97,114,59],value:"$"},{key:[100,111,112,102,59],value:"𝕕"},{key:[100,111,116,59],value:"˙"},{key:[100,111,116,101,113,59],value:"≐"},{key:[100,111,116,101,113,100,111,116,59],value:"≑"},{key:[100,111,116,109,105,110,117,115,59],value:"∸"},{key:[100,111,116,112,108,117,115,59],value:"∔"},{key:[100,111,116,115,113,117,97,114,101,59],value:"⊡"},{key:[100,111,117,98,108,101,98,97,114,119,101,100,103,101,59],value:"⌆"},{key:[100,111,119,110,97,114,114,111,119,59],value:"↓"},{key:[100,111,119,110,100,111,119,110,97,114,114,111,119,115,59],value:"⇊"},{key:[100,111,119,110,104,97,114,112,111,111,110,108,101,102,116,59],value:"⇃"},{key:[100,111,119,110,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"⇂"},{key:[100,114,98,107,97,114,111,119,59],value:"⤐"},{key:[100,114,99,111,114,110,59],value:"⌟"},{key:[100,114,99,114,111,112,59],value:"⌌"},{key:[100,115,99,114,59],value:"𝒹"},{key:[100,115,99,121,59],value:"ѕ"},{key:[100,115,111,108,59],value:"⧶"},{key:[100,115,116,114,111,107,59],value:"đ"},{key:[100,116,100,111,116,59],value:"⋱"},{key:[100,116,114,105,59],value:"▿"},{key:[100,116,114,105,102,59],value:"▾"},{key:[100,117,97,114,114,59],value:"⇵"},{key:[100,117,104,97,114,59],value:"⥯"},{key:[100,119,97,110,103,108,101,59],value:"⦦"},{key:[100,122,99,121,59],value:"џ"},{key:[100,122,105,103,114,97,114,114,59],value:"⟿"},{key:[101,68,68,111,116,59],value:"⩷"},{key:[101,68,111,116,59],value:"≑"},{key:[101,97,99,117,116,101,59],value:"é"},{key:[101,97,115,116,101,114,59],value:"⩮"},{key:[101,99,97,114,111,110,59],value:"ě"},{key:[101,99,105,114,59],value:"≖"},{key:[101,99,105,114,99,59],value:"ê"},{key:[101,99,111,108,111,110,59],value:"≕"},{key:[101,99,121,59],value:"э"},{key:[101,100,111,116,59],value:"ė"},{key:[101,101,59],value:"ⅇ"},{key:[101,102,68,111,116,59],value:"≒"},{key:[101,102,114,59],value:"𝔢"},{key:[101,103,59],value:"⪚"},{key:[101,103,114,97,118,101,59],value:"è"},{key:[101,103,115,59],value:"⪖"},{key:[101,103,115,100,111,116,59],value:"⪘"},{key:[101,108,59],value:"⪙"},{key:[101,108,105,110,116,101,114,115,59],value:"⏧"},{key:[101,108,108,59],value:"ℓ"},{key:[101,108,115,59],value:"⪕"},{key:[101,108,115,100,111,116,59],value:"⪗"},{key:[101,109,97,99,114,59],value:"ē"},{key:[101,109,112,116,121,59],value:"∅"},{key:[101,109,112,116,121,115,101,116,59],value:"∅"},{key:[101,109,112,116,121,118,59],value:"∅"},{key:[101,109,115,112,49,51,59],value:" "},{key:[101,109,115,112,49,52,59],value:" "},{key:[101,109,115,112,59],value:" "},{key:[101,110,103,59],value:"ŋ"},{key:[101,110,115,112,59],value:" "},{key:[101,111,103,111,110,59],value:"ę"},{key:[101,111,112,102,59],value:"𝕖"},{key:[101,112,97,114,59],value:"⋕"},{key:[101,112,97,114,115,108,59],value:"⧣"},{key:[101,112,108,117,115,59],value:"⩱"},{key:[101,112,115,105,59],value:"ε"},{key:[101,112,115,105,108,111,110,59],value:"ε"},{key:[101,112,115,105,118,59],value:"ϵ"},{key:[101,113,99,105,114,99,59],value:"≖"},{key:[101,113,99,111,108,111,110,59],value:"≕"},{key:[101,113,115,105,109,59],value:"≂"},{key:[101,113,115,108,97,110,116,103,116,114,59],value:"⪖"},{key:[101,113,115,108,97,110,116,108,101,115,115,59],value:"⪕"},{key:[101,113,117,97,108,115,59],value:"="},{key:[101,113,117,101,115,116,59],value:"≟"},{key:[101,113,117,105,118,59],value:"≡"},{key:[101,113,117,105,118,68,68,59],value:"⩸"},{key:[101,113,118,112,97,114,115,108,59],value:"⧥"},{key:[101,114,68,111,116,59],value:"≓"},{key:[101,114,97,114,114,59],value:"⥱"},{key:[101,115,99,114,59],value:"ℯ"},{key:[101,115,100,111,116,59],value:"≐"},{key:[101,115,105,109,59],value:"≂"},{key:[101,116,97,59],value:"η"},{key:[101,116,104,59],value:"ð"},{key:[101,117,109,108,59],value:"ë"},{key:[101,117,114,111,59],value:"€"},{key:[101,120,99,108,59],value:"!"},{key:[101,120,105,115,116,59],value:"∃"},{key:[101,120,112,101,99,116,97,116,105,111,110,59],value:"ℰ"},{key:[101,120,112,111,110,101,110,116,105,97,108,101,59],value:"ⅇ"},{key:[102,97,108,108,105,110,103,100,111,116,115,101,113,59],value:"≒"},{key:[102,99,121,59],value:"ф"},{key:[102,101,109,97,108,101,59],value:"♀"},{key:[102,102,105,108,105,103,59],value:"ffi"},{key:[102,102,108,105,103,59],value:"ff"},{key:[102,102,108,108,105,103,59],value:"ffl"},{key:[102,102,114,59],value:"𝔣"},{key:[102,105,108,105,103,59],value:"fi"},{key:[102,106,108,105,103,59],value:"fj"},{key:[102,108,97,116,59],value:"♭"},{key:[102,108,108,105,103,59],value:"fl"},{key:[102,108,116,110,115,59],value:"▱"},{key:[102,110,111,102,59],value:"ƒ"},{key:[102,111,112,102,59],value:"𝕗"},{key:[102,111,114,97,108,108,59],value:"∀"},{key:[102,111,114,107,59],value:"⋔"},{key:[102,111,114,107,118,59],value:"⫙"},{key:[102,112,97,114,116,105,110,116,59],value:"⨍"},{key:[102,114,97,99,49,50,59],value:"½"},{key:[102,114,97,99,49,51,59],value:"⅓"},{key:[102,114,97,99,49,52,59],value:"¼"},{key:[102,114,97,99,49,53,59],value:"⅕"},{key:[102,114,97,99,49,54,59],value:"⅙"},{key:[102,114,97,99,49,56,59],value:"⅛"},{key:[102,114,97,99,50,51,59],value:"⅔"},{key:[102,114,97,99,50,53,59],value:"⅖"},{key:[102,114,97,99,51,52,59],value:"¾"},{key:[102,114,97,99,51,53,59],value:"⅗"},{key:[102,114,97,99,51,56,59],value:"⅜"},{key:[102,114,97,99,52,53,59],value:"⅘"},{key:[102,114,97,99,53,54,59],value:"⅚"},{key:[102,114,97,99,53,56,59],value:"⅝"},{key:[102,114,97,99,55,56,59],value:"⅞"},{key:[102,114,97,115,108,59],value:"⁄"},{key:[102,114,111,119,110,59],value:"⌢"},{key:[102,115,99,114,59],value:"𝒻"},{key:[103,69,59],value:"≧"},{key:[103,69,108,59],value:"⪌"},{key:[103,97,99,117,116,101,59],value:"ǵ"},{key:[103,97,109,109,97,59],value:"γ"},{key:[103,97,109,109,97,100,59],value:"ϝ"},{key:[103,97,112,59],value:"⪆"},{key:[103,98,114,101,118,101,59],value:"ğ"},{key:[103,99,105,114,99,59],value:"ĝ"},{key:[103,99,121,59],value:"г"},{key:[103,100,111,116,59],value:"ġ"},{key:[103,101,59],value:"≥"},{key:[103,101,108,59],value:"⋛"},{key:[103,101,113,59],value:"≥"},{key:[103,101,113,113,59],value:"≧"},{key:[103,101,113,115,108,97,110,116,59],value:"⩾"},{key:[103,101,115,59],value:"⩾"},{key:[103,101,115,99,99,59],value:"⪩"},{key:[103,101,115,100,111,116,59],value:"⪀"},{key:[103,101,115,100,111,116,111,59],value:"⪂"},{key:[103,101,115,100,111,116,111,108,59],value:"⪄"},{key:[103,101,115,108,59],value:"⋛︀"},{key:[103,101,115,108,101,115,59],value:"⪔"},{key:[103,102,114,59],value:"𝔤"},{key:[103,103,59],value:"≫"},{key:[103,103,103,59],value:"⋙"},{key:[103,105,109,101,108,59],value:"ℷ"},{key:[103,106,99,121,59],value:"ѓ"},{key:[103,108,59],value:"≷"},{key:[103,108,69,59],value:"⪒"},{key:[103,108,97,59],value:"⪥"},{key:[103,108,106,59],value:"⪤"},{key:[103,110,69,59],value:"≩"},{key:[103,110,97,112,59],value:"⪊"},{key:[103,110,97,112,112,114,111,120,59],value:"⪊"},{key:[103,110,101,59],value:"⪈"},{key:[103,110,101,113,59],value:"⪈"},{key:[103,110,101,113,113,59],value:"≩"},{key:[103,110,115,105,109,59],value:"⋧"},{key:[103,111,112,102,59],value:"𝕘"},{key:[103,114,97,118,101,59],value:"`"},{key:[103,115,99,114,59],value:"ℊ"},{key:[103,115,105,109,59],value:"≳"},{key:[103,115,105,109,101,59],value:"⪎"},{key:[103,115,105,109,108,59],value:"⪐"},{key:[103,116,59],value:">"},{key:[103,116,99,99,59],value:"⪧"},{key:[103,116,99,105,114,59],value:"⩺"},{key:[103,116,100,111,116,59],value:"⋗"},{key:[103,116,108,80,97,114,59],value:"⦕"},{key:[103,116,113,117,101,115,116,59],value:"⩼"},{key:[103,116,114,97,112,112,114,111,120,59],value:"⪆"},{key:[103,116,114,97,114,114,59],value:"⥸"},{key:[103,116,114,100,111,116,59],value:"⋗"},{key:[103,116,114,101,113,108,101,115,115,59],value:"⋛"},{key:[103,116,114,101,113,113,108,101,115,115,59],value:"⪌"},{key:[103,116,114,108,101,115,115,59],value:"≷"},{key:[103,116,114,115,105,109,59],value:"≳"},{key:[103,118,101,114,116,110,101,113,113,59],value:"≩︀"},{key:[103,118,110,69,59],value:"≩︀"},{key:[104,65,114,114,59],value:"⇔"},{key:[104,97,105,114,115,112,59],value:" "},{key:[104,97,108,102,59],value:"½"},{key:[104,97,109,105,108,116,59],value:"ℋ"},{key:[104,97,114,100,99,121,59],value:"ъ"},{key:[104,97,114,114,59],value:"↔"},{key:[104,97,114,114,99,105,114,59],value:"⥈"},{key:[104,97,114,114,119,59],value:"↭"},{key:[104,98,97,114,59],value:"ℏ"},{key:[104,99,105,114,99,59],value:"ĥ"},{key:[104,101,97,114,116,115,59],value:"♥"},{key:[104,101,97,114,116,115,117,105,116,59],value:"♥"},{key:[104,101,108,108,105,112,59],value:"…"},{key:[104,101,114,99,111,110,59],value:"⊹"},{key:[104,102,114,59],value:"𝔥"},{key:[104,107,115,101,97,114,111,119,59],value:"⤥"},{key:[104,107,115,119,97,114,111,119,59],value:"⤦"},{key:[104,111,97,114,114,59],value:"⇿"},{key:[104,111,109,116,104,116,59],value:"∻"},{key:[104,111,111,107,108,101,102,116,97,114,114,111,119,59],value:"↩"},{key:[104,111,111,107,114,105,103,104,116,97,114,114,111,119,59],value:"↪"},{key:[104,111,112,102,59],value:"𝕙"},{key:[104,111,114,98,97,114,59],value:"―"},{key:[104,115,99,114,59],value:"𝒽"},{key:[104,115,108,97,115,104,59],value:"ℏ"},{key:[104,115,116,114,111,107,59],value:"ħ"},{key:[104,121,98,117,108,108,59],value:"⁃"},{key:[104,121,112,104,101,110,59],value:"‐"},{key:[105,97,99,117,116,101,59],value:"í"},{key:[105,99,59],value:"⁣"},{key:[105,99,105,114,99,59],value:"î"},{key:[105,99,121,59],value:"и"},{key:[105,101,99,121,59],value:"е"},{key:[105,101,120,99,108,59],value:"¡"},{key:[105,102,102,59],value:"⇔"},{key:[105,102,114,59],value:"𝔦"},{key:[105,103,114,97,118,101,59],value:"ì"},{key:[105,105,59],value:"ⅈ"},{key:[105,105,105,105,110,116,59],value:"⨌"},{key:[105,105,105,110,116,59],value:"∭"},{key:[105,105,110,102,105,110,59],value:"⧜"},{key:[105,105,111,116,97,59],value:"℩"},{key:[105,106,108,105,103,59],value:"ij"},{key:[105,109,97,99,114,59],value:"ī"},{key:[105,109,97,103,101,59],value:"ℑ"},{key:[105,109,97,103,108,105,110,101,59],value:"ℐ"},{key:[105,109,97,103,112,97,114,116,59],value:"ℑ"},{key:[105,109,97,116,104,59],value:"ı"},{key:[105,109,111,102,59],value:"⊷"},{key:[105,109,112,101,100,59],value:"Ƶ"},{key:[105,110,59],value:"∈"},{key:[105,110,99,97,114,101,59],value:"℅"},{key:[105,110,102,105,110,59],value:"∞"},{key:[105,110,102,105,110,116,105,101,59],value:"⧝"},{key:[105,110,111,100,111,116,59],value:"ı"},{key:[105,110,116,59],value:"∫"},{key:[105,110,116,99,97,108,59],value:"⊺"},{key:[105,110,116,101,103,101,114,115,59],value:"ℤ"},{key:[105,110,116,101,114,99,97,108,59],value:"⊺"},{key:[105,110,116,108,97,114,104,107,59],value:"⨗"},{key:[105,110,116,112,114,111,100,59],value:"⨼"},{key:[105,111,99,121,59],value:"ё"},{key:[105,111,103,111,110,59],value:"į"},{key:[105,111,112,102,59],value:"𝕚"},{key:[105,111,116,97,59],value:"ι"},{key:[105,112,114,111,100,59],value:"⨼"},{key:[105,113,117,101,115,116,59],value:"¿"},{key:[105,115,99,114,59],value:"𝒾"},{key:[105,115,105,110,59],value:"∈"},{key:[105,115,105,110,69,59],value:"⋹"},{key:[105,115,105,110,100,111,116,59],value:"⋵"},{key:[105,115,105,110,115,59],value:"⋴"},{key:[105,115,105,110,115,118,59],value:"⋳"},{key:[105,115,105,110,118,59],value:"∈"},{key:[105,116,59],value:"⁢"},{key:[105,116,105,108,100,101,59],value:"ĩ"},{key:[105,117,107,99,121,59],value:"і"},{key:[105,117,109,108,59],value:"ï"},{key:[106,99,105,114,99,59],value:"ĵ"},{key:[106,99,121,59],value:"й"},{key:[106,102,114,59],value:"𝔧"},{key:[106,109,97,116,104,59],value:"ȷ"},{key:[106,111,112,102,59],value:"𝕛"},{key:[106,115,99,114,59],value:"𝒿"},{key:[106,115,101,114,99,121,59],value:"ј"},{key:[106,117,107,99,121,59],value:"є"},{key:[107,97,112,112,97,59],value:"κ"},{key:[107,97,112,112,97,118,59],value:"ϰ"},{key:[107,99,101,100,105,108,59],value:"ķ"},{key:[107,99,121,59],value:"к"},{key:[107,102,114,59],value:"𝔨"},{key:[107,103,114,101,101,110,59],value:"ĸ"},{key:[107,104,99,121,59],value:"х"},{key:[107,106,99,121,59],value:"ќ"},{key:[107,111,112,102,59],value:"𝕜"},{key:[107,115,99,114,59],value:"𝓀"},{key:[108,65,97,114,114,59],value:"⇚"},{key:[108,65,114,114,59],value:"⇐"},{key:[108,65,116,97,105,108,59],value:"⤛"},{key:[108,66,97,114,114,59],value:"⤎"},{key:[108,69,59],value:"≦"},{key:[108,69,103,59],value:"⪋"},{key:[108,72,97,114,59],value:"⥢"},{key:[108,97,99,117,116,101,59],value:"ĺ"},{key:[108,97,101,109,112,116,121,118,59],value:"⦴"},{key:[108,97,103,114,97,110,59],value:"ℒ"},{key:[108,97,109,98,100,97,59],value:"λ"},{key:[108,97,110,103,59],value:"⟨"},{key:[108,97,110,103,100,59],value:"⦑"},{key:[108,97,110,103,108,101,59],value:"⟨"},{key:[108,97,112,59],value:"⪅"},{key:[108,97,113,117,111,59],value:"«"},{key:[108,97,114,114,59],value:"←"},{key:[108,97,114,114,98,59],value:"⇤"},{key:[108,97,114,114,98,102,115,59],value:"⤟"},{key:[108,97,114,114,102,115,59],value:"⤝"},{key:[108,97,114,114,104,107,59],value:"↩"},{key:[108,97,114,114,108,112,59],value:"↫"},{key:[108,97,114,114,112,108,59],value:"⤹"},{key:[108,97,114,114,115,105,109,59],value:"⥳"},{key:[108,97,114,114,116,108,59],value:"↢"},{key:[108,97,116,59],value:"⪫"},{key:[108,97,116,97,105,108,59],value:"⤙"},{key:[108,97,116,101,59],value:"⪭"},{key:[108,97,116,101,115,59],value:"⪭︀"},{key:[108,98,97,114,114,59],value:"⤌"},{key:[108,98,98,114,107,59],value:"❲"},{key:[108,98,114,97,99,101,59],value:"{ "},{key:[108,98,114,97,99,107,59],value:"["},{key:[108,98,114,107,101,59],value:"⦋"},{key:[108,98,114,107,115,108,100,59],value:"⦏"},{key:[108,98,114,107,115,108,117,59],value:"⦍"},{key:[108,99,97,114,111,110,59],value:"ľ"},{key:[108,99,101,100,105,108,59],value:"ļ"},{key:[108,99,101,105,108,59],value:"⌈"},{key:[108,99,117,98,59],value:"{ "},{key:[108,99,121,59],value:"л"},{key:[108,100,99,97,59],value:"⤶"},{key:[108,100,113,117,111,59],value:"“"},{key:[108,100,113,117,111,114,59],value:"„"},{key:[108,100,114,100,104,97,114,59],value:"⥧"},{key:[108,100,114,117,115,104,97,114,59],value:"⥋"},{key:[108,100,115,104,59],value:"↲"},{key:[108,101,59],value:"≤"},{key:[108,101,102,116,97,114,114,111,119,59],value:"←"},{key:[108,101,102,116,97,114,114,111,119,116,97,105,108,59],value:"↢"},{key:[108,101,102,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"↽"},{key:[108,101,102,116,104,97,114,112,111,111,110,117,112,59],value:"↼"},{key:[108,101,102,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇇"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↔"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇆"},{key:[108,101,102,116,114,105,103,104,116,104,97,114,112,111,111,110,115,59],value:"⇋"},{key:[108,101,102,116,114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↭"},{key:[108,101,102,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋋"},{key:[108,101,103,59],value:"⋚"},{key:[108,101,113,59],value:"≤"},{key:[108,101,113,113,59],value:"≦"},{key:[108,101,113,115,108,97,110,116,59],value:"⩽"},{key:[108,101,115,59],value:"⩽"},{key:[108,101,115,99,99,59],value:"⪨"},{key:[108,101,115,100,111,116,59],value:"⩿"},{key:[108,101,115,100,111,116,111,59],value:"⪁"},{key:[108,101,115,100,111,116,111,114,59],value:"⪃"},{key:[108,101,115,103,59],value:"⋚︀"},{key:[108,101,115,103,101,115,59],value:"⪓"},{key:[108,101,115,115,97,112,112,114,111,120,59],value:"⪅"},{key:[108,101,115,115,100,111,116,59],value:"⋖"},{key:[108,101,115,115,101,113,103,116,114,59],value:"⋚"},{key:[108,101,115,115,101,113,113,103,116,114,59],value:"⪋"},{key:[108,101,115,115,103,116,114,59],value:"≶"},{key:[108,101,115,115,115,105,109,59],value:"≲"},{key:[108,102,105,115,104,116,59],value:"⥼"},{key:[108,102,108,111,111,114,59],value:"⌊"},{key:[108,102,114,59],value:"𝔩"},{key:[108,103,59],value:"≶"},{key:[108,103,69,59],value:"⪑"},{key:[108,104,97,114,100,59],value:"↽"},{key:[108,104,97,114,117,59],value:"↼"},{key:[108,104,97,114,117,108,59],value:"⥪"},{key:[108,104,98,108,107,59],value:"▄"},{key:[108,106,99,121,59],value:"љ"},{key:[108,108,59],value:"≪"},{key:[108,108,97,114,114,59],value:"⇇"},{key:[108,108,99,111,114,110,101,114,59],value:"⌞"},{key:[108,108,104,97,114,100,59],value:"⥫"},{key:[108,108,116,114,105,59],value:"◺"},{key:[108,109,105,100,111,116,59],value:"ŀ"},{key:[108,109,111,117,115,116,59],value:"⎰"},{key:[108,109,111,117,115,116,97,99,104,101,59],value:"⎰"},{key:[108,110,69,59],value:"≨"},{key:[108,110,97,112,59],value:"⪉"},{key:[108,110,97,112,112,114,111,120,59],value:"⪉"},{key:[108,110,101,59],value:"⪇"},{key:[108,110,101,113,59],value:"⪇"},{key:[108,110,101,113,113,59],value:"≨"},{key:[108,110,115,105,109,59],value:"⋦"},{key:[108,111,97,110,103,59],value:"⟬"},{key:[108,111,97,114,114,59],value:"⇽"},{key:[108,111,98,114,107,59],value:"⟦"},{key:[108,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟵"},{key:[108,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟷"},{key:[108,111,110,103,109,97,112,115,116,111,59],value:"⟼"},{key:[108,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟶"},{key:[108,111,111,112,97,114,114,111,119,108,101,102,116,59],value:"↫"},{key:[108,111,111,112,97,114,114,111,119,114,105,103,104,116,59],value:"↬"},{key:[108,111,112,97,114,59],value:"⦅"},{key:[108,111,112,102,59],value:"𝕝"},{key:[108,111,112,108,117,115,59],value:"⨭"},{key:[108,111,116,105,109,101,115,59],value:"⨴"},{key:[108,111,119,97,115,116,59],value:"∗"},{key:[108,111,119,98,97,114,59],value:"_"},{key:[108,111,122,59],value:"◊"},{key:[108,111,122,101,110,103,101,59],value:"◊"},{key:[108,111,122,102,59],value:"⧫"},{key:[108,112,97,114,59],value:"("},{key:[108,112,97,114,108,116,59],value:"⦓"},{key:[108,114,97,114,114,59],value:"⇆"},{key:[108,114,99,111,114,110,101,114,59],value:"⌟"},{key:[108,114,104,97,114,59],value:"⇋"},{key:[108,114,104,97,114,100,59],value:"⥭"},{key:[108,114,109,59],value:"‎"},{key:[108,114,116,114,105,59],value:"⊿"},{key:[108,115,97,113,117,111,59],value:"‹"},{key:[108,115,99,114,59],value:"𝓁"},{key:[108,115,104,59],value:"↰"},{key:[108,115,105,109,59],value:"≲"},{key:[108,115,105,109,101,59],value:"⪍"},{key:[108,115,105,109,103,59],value:"⪏"},{key:[108,115,113,98,59],value:"["},{key:[108,115,113,117,111,59],value:"‘"},{key:[108,115,113,117,111,114,59],value:"‚"},{key:[108,115,116,114,111,107,59],value:"ł"},{key:[108,116,59],value:"<"},{key:[108,116,99,99,59],value:"⪦"},{key:[108,116,99,105,114,59],value:"⩹"},{key:[108,116,100,111,116,59],value:"⋖"},{key:[108,116,104,114,101,101,59],value:"⋋"},{key:[108,116,105,109,101,115,59],value:"⋉"},{key:[108,116,108,97,114,114,59],value:"⥶"},{key:[108,116,113,117,101,115,116,59],value:"⩻"},{key:[108,116,114,80,97,114,59],value:"⦖"},{key:[108,116,114,105,59],value:"◃"},{key:[108,116,114,105,101,59],value:"⊴"},{key:[108,116,114,105,102,59],value:"◂"},{key:[108,117,114,100,115,104,97,114,59],value:"⥊"},{key:[108,117,114,117,104,97,114,59],value:"⥦"},{key:[108,118,101,114,116,110,101,113,113,59],value:"≨︀"},{key:[108,118,110,69,59],value:"≨︀"},{key:[109,68,68,111,116,59],value:"∺"},{key:[109,97,99,114,59],value:"¯"},{key:[109,97,108,101,59],value:"♂"},{key:[109,97,108,116,59],value:"✠"},{key:[109,97,108,116,101,115,101,59],value:"✠"},{key:[109,97,112,59],value:"↦"},{key:[109,97,112,115,116,111,59],value:"↦"},{key:[109,97,112,115,116,111,100,111,119,110,59],value:"↧"},{key:[109,97,112,115,116,111,108,101,102,116,59],value:"↤"},{key:[109,97,112,115,116,111,117,112,59],value:"↥"},{key:[109,97,114,107,101,114,59],value:"▮"},{key:[109,99,111,109,109,97,59],value:"⨩"},{key:[109,99,121,59],value:"м"},{key:[109,100,97,115,104,59],value:"—"},{key:[109,101,97,115,117,114,101,100,97,110,103,108,101,59],value:"∡"},{key:[109,102,114,59],value:"𝔪"},{key:[109,104,111,59],value:"℧"},{key:[109,105,99,114,111,59],value:"µ"},{key:[109,105,100,59],value:"∣"},{key:[109,105,100,97,115,116,59],value:"*"},{key:[109,105,100,99,105,114,59],value:"⫰"},{key:[109,105,100,100,111,116,59],value:"·"},{key:[109,105,110,117,115,59],value:"−"},{key:[109,105,110,117,115,98,59],value:"⊟"},{key:[109,105,110,117,115,100,59],value:"∸"},{key:[109,105,110,117,115,100,117,59],value:"⨪"},{key:[109,108,99,112,59],value:"⫛"},{key:[109,108,100,114,59],value:"…"},{key:[109,110,112,108,117,115,59],value:"∓"},{key:[109,111,100,101,108,115,59],value:"⊧"},{key:[109,111,112,102,59],value:"𝕞"},{key:[109,112,59],value:"∓"},{key:[109,115,99,114,59],value:"𝓂"},{key:[109,115,116,112,111,115,59],value:"∾"},{key:[109,117,59],value:"μ"},{key:[109,117,108,116,105,109,97,112,59],value:"⊸"},{key:[109,117,109,97,112,59],value:"⊸"},{key:[110,71,103,59],value:"⋙̸"},{key:[110,71,116,59],value:"≫⃒"},{key:[110,71,116,118,59],value:"≫̸"},{key:[110,76,101,102,116,97,114,114,111,119,59],value:"⇍"},{key:[110,76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇎"},{key:[110,76,108,59],value:"⋘̸"},{key:[110,76,116,59],value:"≪⃒"},{key:[110,76,116,118,59],value:"≪̸"},{key:[110,82,105,103,104,116,97,114,114,111,119,59],value:"⇏"},{key:[110,86,68,97,115,104,59],value:"⊯"},{key:[110,86,100,97,115,104,59],value:"⊮"},{key:[110,97,98,108,97,59],value:"∇"},{key:[110,97,99,117,116,101,59],value:"ń"},{key:[110,97,110,103,59],value:"∠⃒"},{key:[110,97,112,59],value:"≉"},{key:[110,97,112,69,59],value:"⩰̸"},{key:[110,97,112,105,100,59],value:"≋̸"},{key:[110,97,112,111,115,59],value:"ʼn"},{key:[110,97,112,112,114,111,120,59],value:"≉"},{key:[110,97,116,117,114,59],value:"♮"},{key:[110,97,116,117,114,97,108,59],value:"♮"},{key:[110,97,116,117,114,97,108,115,59],value:"ℕ"},{key:[110,98,115,112,59],value:" "},{key:[110,98,117,109,112,59],value:"≎̸"},{key:[110,98,117,109,112,101,59],value:"≏̸"},{key:[110,99,97,112,59],value:"⩃"},{key:[110,99,97,114,111,110,59],value:"ň"},{key:[110,99,101,100,105,108,59],value:"ņ"},{key:[110,99,111,110,103,59],value:"≇"},{key:[110,99,111,110,103,100,111,116,59],value:"⩭̸"},{key:[110,99,117,112,59],value:"⩂"},{key:[110,99,121,59],value:"н"},{key:[110,100,97,115,104,59],value:"–"},{key:[110,101,59],value:"≠"},{key:[110,101,65,114,114,59],value:"⇗"},{key:[110,101,97,114,104,107,59],value:"⤤"},{key:[110,101,97,114,114,59],value:"↗"},{key:[110,101,97,114,114,111,119,59],value:"↗"},{key:[110,101,100,111,116,59],value:"≐̸"},{key:[110,101,113,117,105,118,59],value:"≢"},{key:[110,101,115,101,97,114,59],value:"⤨"},{key:[110,101,115,105,109,59],value:"≂̸"},{key:[110,101,120,105,115,116,59],value:"∄"},{key:[110,101,120,105,115,116,115,59],value:"∄"},{key:[110,102,114,59],value:"𝔫"},{key:[110,103,69,59],value:"≧̸"},{key:[110,103,101,59],value:"≱"},{key:[110,103,101,113,59],value:"≱"},{key:[110,103,101,113,113,59],value:"≧̸"},{key:[110,103,101,113,115,108,97,110,116,59],value:"⩾̸"},{key:[110,103,101,115,59],value:"⩾̸"},{key:[110,103,115,105,109,59],value:"≵"},{key:[110,103,116,59],value:"≯"},{key:[110,103,116,114,59],value:"≯"},{key:[110,104,65,114,114,59],value:"⇎"},{key:[110,104,97,114,114,59],value:"↮"},{key:[110,104,112,97,114,59],value:"⫲"},{key:[110,105,59],value:"∋"},{key:[110,105,115,59],value:"⋼"},{key:[110,105,115,100,59],value:"⋺"},{key:[110,105,118,59],value:"∋"},{key:[110,106,99,121,59],value:"њ"},{key:[110,108,65,114,114,59],value:"⇍"},{key:[110,108,69,59],value:"≦̸"},{key:[110,108,97,114,114,59],value:"↚"},{key:[110,108,100,114,59],value:"‥"},{key:[110,108,101,59],value:"≰"},{key:[110,108,101,102,116,97,114,114,111,119,59],value:"↚"},{key:[110,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↮"},{key:[110,108,101,113,59],value:"≰"},{key:[110,108,101,113,113,59],value:"≦̸"},{key:[110,108,101,113,115,108,97,110,116,59],value:"⩽̸"},{key:[110,108,101,115,59],value:"⩽̸"},{key:[110,108,101,115,115,59],value:"≮"},{key:[110,108,115,105,109,59],value:"≴"},{key:[110,108,116,59],value:"≮"},{key:[110,108,116,114,105,59],value:"⋪"},{key:[110,108,116,114,105,101,59],value:"⋬"},{key:[110,109,105,100,59],value:"∤"},{key:[110,111,112,102,59],value:"𝕟"},{key:[110,111,116,59],value:"¬"},{key:[110,111,116,105,110,59],value:"∉"},{key:[110,111,116,105,110,69,59],value:"⋹̸"},{key:[110,111,116,105,110,100,111,116,59],value:"⋵̸"},{key:[110,111,116,105,110,118,97,59],value:"∉"},{key:[110,111,116,105,110,118,98,59],value:"⋷"},{key:[110,111,116,105,110,118,99,59],value:"⋶"},{key:[110,111,116,110,105,59],value:"∌"},{key:[110,111,116,110,105,118,97,59],value:"∌"},{key:[110,111,116,110,105,118,98,59],value:"⋾"},{key:[110,111,116,110,105,118,99,59],value:"⋽"},{key:[110,112,97,114,59],value:"∦"},{key:[110,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,112,97,114,115,108,59],value:"⫽⃥"},{key:[110,112,97,114,116,59],value:"∂̸"},{key:[110,112,111,108,105,110,116,59],value:"⨔"},{key:[110,112,114,59],value:"⊀"},{key:[110,112,114,99,117,101,59],value:"⋠"},{key:[110,112,114,101,59],value:"⪯̸"},{key:[110,112,114,101,99,59],value:"⊀"},{key:[110,112,114,101,99,101,113,59],value:"⪯̸"},{key:[110,114,65,114,114,59],value:"⇏"},{key:[110,114,97,114,114,59],value:"↛"},{key:[110,114,97,114,114,99,59],value:"⤳̸"},{key:[110,114,97,114,114,119,59],value:"↝̸"},{key:[110,114,105,103,104,116,97,114,114,111,119,59],value:"↛"},{key:[110,114,116,114,105,59],value:"⋫"},{key:[110,114,116,114,105,101,59],value:"⋭"},{key:[110,115,99,59],value:"⊁"},{key:[110,115,99,99,117,101,59],value:"⋡"},{key:[110,115,99,101,59],value:"⪰̸"},{key:[110,115,99,114,59],value:"𝓃"},{key:[110,115,104,111,114,116,109,105,100,59],value:"∤"},{key:[110,115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,115,105,109,59],value:"≁"},{key:[110,115,105,109,101,59],value:"≄"},{key:[110,115,105,109,101,113,59],value:"≄"},{key:[110,115,109,105,100,59],value:"∤"},{key:[110,115,112,97,114,59],value:"∦"},{key:[110,115,113,115,117,98,101,59],value:"⋢"},{key:[110,115,113,115,117,112,101,59],value:"⋣"},{key:[110,115,117,98,59],value:"⊄"},{key:[110,115,117,98,69,59],value:"⫅̸"},{key:[110,115,117,98,101,59],value:"⊈"},{key:[110,115,117,98,115,101,116,59],value:"⊂⃒"},{key:[110,115,117,98,115,101,116,101,113,59],value:"⊈"},{key:[110,115,117,98,115,101,116,101,113,113,59],value:"⫅̸"},{key:[110,115,117,99,99,59],value:"⊁"},{key:[110,115,117,99,99,101,113,59],value:"⪰̸"},{key:[110,115,117,112,59],value:"⊅"},{key:[110,115,117,112,69,59],value:"⫆̸"},{key:[110,115,117,112,101,59],value:"⊉"},{key:[110,115,117,112,115,101,116,59],value:"⊃⃒"},{key:[110,115,117,112,115,101,116,101,113,59],value:"⊉"},{key:[110,115,117,112,115,101,116,101,113,113,59],value:"⫆̸"},{key:[110,116,103,108,59],value:"≹"},{key:[110,116,105,108,100,101,59],value:"ñ"},{key:[110,116,108,103,59],value:"≸"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⋪"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⋬"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⋫"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⋭"},{key:[110,117,59],value:"ν"},{key:[110,117,109,59],value:"#"},{key:[110,117,109,101,114,111,59],value:"№"},{key:[110,117,109,115,112,59],value:" "},{key:[110,118,68,97,115,104,59],value:"⊭"},{key:[110,118,72,97,114,114,59],value:"⤄"},{key:[110,118,97,112,59],value:"≍⃒"},{key:[110,118,100,97,115,104,59],value:"⊬"},{key:[110,118,103,101,59],value:"≥⃒"},{key:[110,118,103,116,59],value:">⃒"},{key:[110,118,105,110,102,105,110,59],value:"⧞"},{key:[110,118,108,65,114,114,59],value:"⤂"},{key:[110,118,108,101,59],value:"≤⃒"},{key:[110,118,108,116,59],value:"<⃒"},{key:[110,118,108,116,114,105,101,59],value:"⊴⃒"},{key:[110,118,114,65,114,114,59],value:"⤃"},{key:[110,118,114,116,114,105,101,59],value:"⊵⃒"},{key:[110,118,115,105,109,59],value:"∼⃒"},{key:[110,119,65,114,114,59],value:"⇖"},{key:[110,119,97,114,104,107,59],value:"⤣"},{key:[110,119,97,114,114,59],value:"↖"},{key:[110,119,97,114,114,111,119,59],value:"↖"},{key:[110,119,110,101,97,114,59],value:"⤧"},{key:[111,83,59],value:"Ⓢ"},{key:[111,97,99,117,116,101,59],value:"ó"},{key:[111,97,115,116,59],value:"⊛"},{key:[111,99,105,114,59],value:"⊚"},{key:[111,99,105,114,99,59],value:"ô"},{key:[111,99,121,59],value:"о"},{key:[111,100,97,115,104,59],value:"⊝"},{key:[111,100,98,108,97,99,59],value:"ő"},{key:[111,100,105,118,59],value:"⨸"},{key:[111,100,111,116,59],value:"⊙"},{key:[111,100,115,111,108,100,59],value:"⦼"},{key:[111,101,108,105,103,59],value:"œ"},{key:[111,102,99,105,114,59],value:"⦿"},{key:[111,102,114,59],value:"𝔬"},{key:[111,103,111,110,59],value:"˛"},{key:[111,103,114,97,118,101,59],value:"ò"},{key:[111,103,116,59],value:"⧁"},{key:[111,104,98,97,114,59],value:"⦵"},{key:[111,104,109,59],value:"Ω"},{key:[111,105,110,116,59],value:"∮"},{key:[111,108,97,114,114,59],value:"↺"},{key:[111,108,99,105,114,59],value:"⦾"},{key:[111,108,99,114,111,115,115,59],value:"⦻"},{key:[111,108,105,110,101,59],value:"‾"},{key:[111,108,116,59],value:"⧀"},{key:[111,109,97,99,114,59],value:"ō"},{key:[111,109,101,103,97,59],value:"ω"},{key:[111,109,105,99,114,111,110,59],value:"ο"},{key:[111,109,105,100,59],value:"⦶"},{key:[111,109,105,110,117,115,59],value:"⊖"},{key:[111,111,112,102,59],value:"𝕠"},{key:[111,112,97,114,59],value:"⦷"},{key:[111,112,101,114,112,59],value:"⦹"},{key:[111,112,108,117,115,59],value:"⊕"},{key:[111,114,59],value:"∨"},{key:[111,114,97,114,114,59],value:"↻"},{key:[111,114,100,59],value:"⩝"},{key:[111,114,100,101,114,59],value:"ℴ"},{key:[111,114,100,101,114,111,102,59],value:"ℴ"},{key:[111,114,100,102,59],value:"ª"},{key:[111,114,100,109,59],value:"º"},{key:[111,114,105,103,111,102,59],value:"⊶"},{key:[111,114,111,114,59],value:"⩖"},{key:[111,114,115,108,111,112,101,59],value:"⩗"},{key:[111,114,118,59],value:"⩛"},{key:[111,115,99,114,59],value:"ℴ"},{key:[111,115,108,97,115,104,59],value:"ø"},{key:[111,115,111,108,59],value:"⊘"},{key:[111,116,105,108,100,101,59],value:"õ"},{key:[111,116,105,109,101,115,59],value:"⊗"},{key:[111,116,105,109,101,115,97,115,59],value:"⨶"},{key:[111,117,109,108,59],value:"ö"},{key:[111,118,98,97,114,59],value:"⌽"},{key:[112,97,114,59],value:"∥"},{key:[112,97,114,97,59],value:"¶"},{key:[112,97,114,97,108,108,101,108,59],value:"∥"},{key:[112,97,114,115,105,109,59],value:"⫳"},{key:[112,97,114,115,108,59],value:"⫽"},{key:[112,97,114,116,59],value:"∂"},{key:[112,99,121,59],value:"п"},{key:[112,101,114,99,110,116,59],value:"%"},{key:[112,101,114,105,111,100,59],value:"."},{key:[112,101,114,109,105,108,59],value:"‰"},{key:[112,101,114,112,59],value:"⊥"},{key:[112,101,114,116,101,110,107,59],value:"‱"},{key:[112,102,114,59],value:"𝔭"},{key:[112,104,105,59],value:"φ"},{key:[112,104,105,118,59],value:"ϕ"},{key:[112,104,109,109,97,116,59],value:"ℳ"},{key:[112,104,111,110,101,59],value:"☎"},{key:[112,105,59],value:"π"},{key:[112,105,116,99,104,102,111,114,107,59],value:"⋔"},{key:[112,105,118,59],value:"ϖ"},{key:[112,108,97,110,99,107,59],value:"ℏ"},{key:[112,108,97,110,99,107,104,59],value:"ℎ"},{key:[112,108,97,110,107,118,59],value:"ℏ"},{key:[112,108,117,115,59],value:"+"},{key:[112,108,117,115,97,99,105,114,59],value:"⨣"},{key:[112,108,117,115,98,59],value:"⊞"},{key:[112,108,117,115,99,105,114,59],value:"⨢"},{key:[112,108,117,115,100,111,59],value:"∔"},{key:[112,108,117,115,100,117,59],value:"⨥"},{key:[112,108,117,115,101,59],value:"⩲"},{key:[112,108,117,115,109,110,59],value:"±"},{key:[112,108,117,115,115,105,109,59],value:"⨦"},{key:[112,108,117,115,116,119,111,59],value:"⨧"},{key:[112,109,59],value:"±"},{key:[112,111,105,110,116,105,110,116,59],value:"⨕"},{key:[112,111,112,102,59],value:"𝕡"},{key:[112,111,117,110,100,59],value:"£"},{key:[112,114,59],value:"≺"},{key:[112,114,69,59],value:"⪳"},{key:[112,114,97,112,59],value:"⪷"},{key:[112,114,99,117,101,59],value:"≼"},{key:[112,114,101,59],value:"⪯"},{key:[112,114,101,99,59],value:"≺"},{key:[112,114,101,99,97,112,112,114,111,120,59],value:"⪷"},{key:[112,114,101,99,99,117,114,108,121,101,113,59],value:"≼"},{key:[112,114,101,99,101,113,59],value:"⪯"},{key:[112,114,101,99,110,97,112,112,114,111,120,59],value:"⪹"},{key:[112,114,101,99,110,101,113,113,59],value:"⪵"},{key:[112,114,101,99,110,115,105,109,59],value:"⋨"},{key:[112,114,101,99,115,105,109,59],value:"≾"},{key:[112,114,105,109,101,59],value:"′"},{key:[112,114,105,109,101,115,59],value:"ℙ"},{key:[112,114,110,69,59],value:"⪵"},{key:[112,114,110,97,112,59],value:"⪹"},{key:[112,114,110,115,105,109,59],value:"⋨"},{key:[112,114,111,100,59],value:"∏"},{key:[112,114,111,102,97,108,97,114,59],value:"⌮"},{key:[112,114,111,102,108,105,110,101,59],value:"⌒"},{key:[112,114,111,102,115,117,114,102,59],value:"⌓"},{key:[112,114,111,112,59],value:"∝"},{key:[112,114,111,112,116,111,59],value:"∝"},{key:[112,114,115,105,109,59],value:"≾"},{key:[112,114,117,114,101,108,59],value:"⊰"},{key:[112,115,99,114,59],value:"𝓅"},{key:[112,115,105,59],value:"ψ"},{key:[112,117,110,99,115,112,59],value:" "},{key:[113,102,114,59],value:"𝔮"},{key:[113,105,110,116,59],value:"⨌"},{key:[113,111,112,102,59],value:"𝕢"},{key:[113,112,114,105,109,101,59],value:"⁗"},{key:[113,115,99,114,59],value:"𝓆"},{key:[113,117,97,116,101,114,110,105,111,110,115,59],value:"ℍ"},{key:[113,117,97,116,105,110,116,59],value:"⨖"},{key:[113,117,101,115,116,59],value:"?"},{key:[113,117,101,115,116,101,113,59],value:"≟"},{key:[113,117,111,116,59],value:'"'},{key:[114,65,97,114,114,59],value:"⇛"},{key:[114,65,114,114,59],value:"⇒"},{key:[114,65,116,97,105,108,59],value:"⤜"},{key:[114,66,97,114,114,59],value:"⤏"},{key:[114,72,97,114,59],value:"⥤"},{key:[114,97,99,101,59],value:"∽̱"},{key:[114,97,99,117,116,101,59],value:"ŕ"},{key:[114,97,100,105,99,59],value:"√"},{key:[114,97,101,109,112,116,121,118,59],value:"⦳"},{key:[114,97,110,103,59],value:"⟩"},{key:[114,97,110,103,100,59],value:"⦒"},{key:[114,97,110,103,101,59],value:"⦥"},{key:[114,97,110,103,108,101,59],value:"⟩"},{key:[114,97,113,117,111,59],value:"»"},{key:[114,97,114,114,59],value:"→"},{key:[114,97,114,114,97,112,59],value:"⥵"},{key:[114,97,114,114,98,59],value:"⇥"},{key:[114,97,114,114,98,102,115,59],value:"⤠"},{key:[114,97,114,114,99,59],value:"⤳"},{key:[114,97,114,114,102,115,59],value:"⤞"},{key:[114,97,114,114,104,107,59],value:"↪"},{key:[114,97,114,114,108,112,59],value:"↬"},{key:[114,97,114,114,112,108,59],value:"⥅"},{key:[114,97,114,114,115,105,109,59],value:"⥴"},{key:[114,97,114,114,116,108,59],value:"↣"},{key:[114,97,114,114,119,59],value:"↝"},{key:[114,97,116,97,105,108,59],value:"⤚"},{key:[114,97,116,105,111,59],value:"∶"},{key:[114,97,116,105,111,110,97,108,115,59],value:"ℚ"},{key:[114,98,97,114,114,59],value:"⤍"},{key:[114,98,98,114,107,59],value:"❳"},{key:[114,98,114,97,99,101,59],value:" }"},{key:[114,98,114,97,99,107,59],value:"]"},{key:[114,98,114,107,101,59],value:"⦌"},{key:[114,98,114,107,115,108,100,59],value:"⦎"},{key:[114,98,114,107,115,108,117,59],value:"⦐"},{key:[114,99,97,114,111,110,59],value:"ř"},{key:[114,99,101,100,105,108,59],value:"ŗ"},{key:[114,99,101,105,108,59],value:"⌉"},{key:[114,99,117,98,59],value:" }"},{key:[114,99,121,59],value:"р"},{key:[114,100,99,97,59],value:"⤷"},{key:[114,100,108,100,104,97,114,59],value:"⥩"},{key:[114,100,113,117,111,59],value:"”"},{key:[114,100,113,117,111,114,59],value:"”"},{key:[114,100,115,104,59],value:"↳"},{key:[114,101,97,108,59],value:"ℜ"},{key:[114,101,97,108,105,110,101,59],value:"ℛ"},{key:[114,101,97,108,112,97,114,116,59],value:"ℜ"},{key:[114,101,97,108,115,59],value:"ℝ"},{key:[114,101,99,116,59],value:"▭"},{key:[114,101,103,59],value:"®"},{key:[114,102,105,115,104,116,59],value:"⥽"},{key:[114,102,108,111,111,114,59],value:"⌋"},{key:[114,102,114,59],value:"𝔯"},{key:[114,104,97,114,100,59],value:"⇁"},{key:[114,104,97,114,117,59],value:"⇀"},{key:[114,104,97,114,117,108,59],value:"⥬"},{key:[114,104,111,59],value:"ρ"},{key:[114,104,111,118,59],value:"ϱ"},{key:[114,105,103,104,116,97,114,114,111,119,59],value:"→"},{key:[114,105,103,104,116,97,114,114,111,119,116,97,105,108,59],value:"↣"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"⇁"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,117,112,59],value:"⇀"},{key:[114,105,103,104,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇄"},{key:[114,105,103,104,116,108,101,102,116,104,97,114,112,111,111,110,115,59],value:"⇌"},{key:[114,105,103,104,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇉"},{key:[114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↝"},{key:[114,105,103,104,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋌"},{key:[114,105,110,103,59],value:"˚"},{key:[114,105,115,105,110,103,100,111,116,115,101,113,59],value:"≓"},{key:[114,108,97,114,114,59],value:"⇄"},{key:[114,108,104,97,114,59],value:"⇌"},{key:[114,108,109,59],value:"‏"},{key:[114,109,111,117,115,116,59],value:"⎱"},{key:[114,109,111,117,115,116,97,99,104,101,59],value:"⎱"},{key:[114,110,109,105,100,59],value:"⫮"},{key:[114,111,97,110,103,59],value:"⟭"},{key:[114,111,97,114,114,59],value:"⇾"},{key:[114,111,98,114,107,59],value:"⟧"},{key:[114,111,112,97,114,59],value:"⦆"},{key:[114,111,112,102,59],value:"𝕣"},{key:[114,111,112,108,117,115,59],value:"⨮"},{key:[114,111,116,105,109,101,115,59],value:"⨵"},{key:[114,112,97,114,59],value:")"},{key:[114,112,97,114,103,116,59],value:"⦔"},{key:[114,112,112,111,108,105,110,116,59],value:"⨒"},{key:[114,114,97,114,114,59],value:"⇉"},{key:[114,115,97,113,117,111,59],value:"›"},{key:[114,115,99,114,59],value:"𝓇"},{key:[114,115,104,59],value:"↱"},{key:[114,115,113,98,59],value:"]"},{key:[114,115,113,117,111,59],value:"’"},{key:[114,115,113,117,111,114,59],value:"’"},{key:[114,116,104,114,101,101,59],value:"⋌"},{key:[114,116,105,109,101,115,59],value:"⋊"},{key:[114,116,114,105,59],value:"▹"},{key:[114,116,114,105,101,59],value:"⊵"},{key:[114,116,114,105,102,59],value:"▸"},{key:[114,116,114,105,108,116,114,105,59],value:"⧎"},{key:[114,117,108,117,104,97,114,59],value:"⥨"},{key:[114,120,59],value:"℞"},{key:[115,97,99,117,116,101,59],value:"ś"},{key:[115,98,113,117,111,59],value:"‚"},{key:[115,99,59],value:"≻"},{key:[115,99,69,59],value:"⪴"},{key:[115,99,97,112,59],value:"⪸"},{key:[115,99,97,114,111,110,59],value:"š"},{key:[115,99,99,117,101,59],value:"≽"},{key:[115,99,101,59],value:"⪰"},{key:[115,99,101,100,105,108,59],value:"ş"},{key:[115,99,105,114,99,59],value:"ŝ"},{key:[115,99,110,69,59],value:"⪶"},{key:[115,99,110,97,112,59],value:"⪺"},{key:[115,99,110,115,105,109,59],value:"⋩"},{key:[115,99,112,111,108,105,110,116,59],value:"⨓"},{key:[115,99,115,105,109,59],value:"≿"},{key:[115,99,121,59],value:"с"},{key:[115,100,111,116,59],value:"⋅"},{key:[115,100,111,116,98,59],value:"⊡"},{key:[115,100,111,116,101,59],value:"⩦"},{key:[115,101,65,114,114,59],value:"⇘"},{key:[115,101,97,114,104,107,59],value:"⤥"},{key:[115,101,97,114,114,59],value:"↘"},{key:[115,101,97,114,114,111,119,59],value:"↘"},{key:[115,101,99,116,59],value:"§"},{key:[115,101,109,105,59],value:";"},{key:[115,101,115,119,97,114,59],value:"⤩"},{key:[115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,101,116,109,110,59],value:"∖"},{key:[115,101,120,116,59],value:"✶"},{key:[115,102,114,59],value:"𝔰"},{key:[115,102,114,111,119,110,59],value:"⌢"},{key:[115,104,97,114,112,59],value:"♯"},{key:[115,104,99,104,99,121,59],value:"щ"},{key:[115,104,99,121,59],value:"ш"},{key:[115,104,111,114,116,109,105,100,59],value:"∣"},{key:[115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∥"},{key:[115,104,121,59],value:"­"},{key:[115,105,103,109,97,59],value:"σ"},{key:[115,105,103,109,97,102,59],value:"ς"},{key:[115,105,103,109,97,118,59],value:"ς"},{key:[115,105,109,59],value:"∼"},{key:[115,105,109,100,111,116,59],value:"⩪"},{key:[115,105,109,101,59],value:"≃"},{key:[115,105,109,101,113,59],value:"≃"},{key:[115,105,109,103,59],value:"⪞"},{key:[115,105,109,103,69,59],value:"⪠"},{key:[115,105,109,108,59],value:"⪝"},{key:[115,105,109,108,69,59],value:"⪟"},{key:[115,105,109,110,101,59],value:"≆"},{key:[115,105,109,112,108,117,115,59],value:"⨤"},{key:[115,105,109,114,97,114,114,59],value:"⥲"},{key:[115,108,97,114,114,59],value:"←"},{key:[115,109,97,108,108,115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,109,97,115,104,112,59],value:"⨳"},{key:[115,109,101,112,97,114,115,108,59],value:"⧤"},{key:[115,109,105,100,59],value:"∣"},{key:[115,109,105,108,101,59],value:"⌣"},{key:[115,109,116,59],value:"⪪"},{key:[115,109,116,101,59],value:"⪬"},{key:[115,109,116,101,115,59],value:"⪬︀"},{key:[115,111,102,116,99,121,59],value:"ь"},{key:[115,111,108,59],value:"/"},{key:[115,111,108,98,59],value:"⧄"},{key:[115,111,108,98,97,114,59],value:"⌿"},{key:[115,111,112,102,59],value:"𝕤"},{key:[115,112,97,100,101,115,59],value:"♠"},{key:[115,112,97,100,101,115,117,105,116,59],value:"♠"},{key:[115,112,97,114,59],value:"∥"},{key:[115,113,99,97,112,59],value:"⊓"},{key:[115,113,99,97,112,115,59],value:"⊓︀"},{key:[115,113,99,117,112,59],value:"⊔"},{key:[115,113,99,117,112,115,59],value:"⊔︀"},{key:[115,113,115,117,98,59],value:"⊏"},{key:[115,113,115,117,98,101,59],value:"⊑"},{key:[115,113,115,117,98,115,101,116,59],value:"⊏"},{key:[115,113,115,117,98,115,101,116,101,113,59],value:"⊑"},{key:[115,113,115,117,112,59],value:"⊐"},{key:[115,113,115,117,112,101,59],value:"⊒"},{key:[115,113,115,117,112,115,101,116,59],value:"⊐"},{key:[115,113,115,117,112,115,101,116,101,113,59],value:"⊒"},{key:[115,113,117,59],value:"□"},{key:[115,113,117,97,114,101,59],value:"□"},{key:[115,113,117,97,114,102,59],value:"▪"},{key:[115,113,117,102,59],value:"▪"},{key:[115,114,97,114,114,59],value:"→"},{key:[115,115,99,114,59],value:"𝓈"},{key:[115,115,101,116,109,110,59],value:"∖"},{key:[115,115,109,105,108,101,59],value:"⌣"},{key:[115,115,116,97,114,102,59],value:"⋆"},{key:[115,116,97,114,59],value:"☆"},{key:[115,116,97,114,102,59],value:"★"},{key:[115,116,114,97,105,103,104,116,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[115,116,114,97,105,103,104,116,112,104,105,59],value:"ϕ"},{key:[115,116,114,110,115,59],value:"¯"},{key:[115,117,98,59],value:"⊂"},{key:[115,117,98,69,59],value:"⫅"},{key:[115,117,98,100,111,116,59],value:"⪽"},{key:[115,117,98,101,59],value:"⊆"},{key:[115,117,98,101,100,111,116,59],value:"⫃"},{key:[115,117,98,109,117,108,116,59],value:"⫁"},{key:[115,117,98,110,69,59],value:"⫋"},{key:[115,117,98,110,101,59],value:"⊊"},{key:[115,117,98,112,108,117,115,59],value:"⪿"},{key:[115,117,98,114,97,114,114,59],value:"⥹"},{key:[115,117,98,115,101,116,59],value:"⊂"},{key:[115,117,98,115,101,116,101,113,59],value:"⊆"},{key:[115,117,98,115,101,116,101,113,113,59],value:"⫅"},{key:[115,117,98,115,101,116,110,101,113,59],value:"⊊"},{key:[115,117,98,115,101,116,110,101,113,113,59],value:"⫋"},{key:[115,117,98,115,105,109,59],value:"⫇"},{key:[115,117,98,115,117,98,59],value:"⫕"},{key:[115,117,98,115,117,112,59],value:"⫓"},{key:[115,117,99,99,59],value:"≻"},{key:[115,117,99,99,97,112,112,114,111,120,59],value:"⪸"},{key:[115,117,99,99,99,117,114,108,121,101,113,59],value:"≽"},{key:[115,117,99,99,101,113,59],value:"⪰"},{key:[115,117,99,99,110,97,112,112,114,111,120,59],value:"⪺"},{key:[115,117,99,99,110,101,113,113,59],value:"⪶"},{key:[115,117,99,99,110,115,105,109,59],value:"⋩"},{key:[115,117,99,99,115,105,109,59],value:"≿"},{key:[115,117,109,59],value:"∑"},{key:[115,117,110,103,59],value:"♪"},{key:[115,117,112,49,59],value:"¹"},{key:[115,117,112,50,59],value:"²"},{key:[115,117,112,51,59],value:"³"},{key:[115,117,112,59],value:"⊃"},{key:[115,117,112,69,59],value:"⫆"},{key:[115,117,112,100,111,116,59],value:"⪾"},{key:[115,117,112,100,115,117,98,59],value:"⫘"},{key:[115,117,112,101,59],value:"⊇"},{key:[115,117,112,101,100,111,116,59],value:"⫄"},{key:[115,117,112,104,115,111,108,59],value:"⟉"},{key:[115,117,112,104,115,117,98,59],value:"⫗"},{key:[115,117,112,108,97,114,114,59],value:"⥻"},{key:[115,117,112,109,117,108,116,59],value:"⫂"},{key:[115,117,112,110,69,59],value:"⫌"},{key:[115,117,112,110,101,59],value:"⊋"},{key:[115,117,112,112,108,117,115,59],value:"⫀"},{key:[115,117,112,115,101,116,59],value:"⊃"},{key:[115,117,112,115,101,116,101,113,59],value:"⊇"},{key:[115,117,112,115,101,116,101,113,113,59],value:"⫆"},{key:[115,117,112,115,101,116,110,101,113,59],value:"⊋"},{key:[115,117,112,115,101,116,110,101,113,113,59],value:"⫌"},{key:[115,117,112,115,105,109,59],value:"⫈"},{key:[115,117,112,115,117,98,59],value:"⫔"},{key:[115,117,112,115,117,112,59],value:"⫖"},{key:[115,119,65,114,114,59],value:"⇙"},{key:[115,119,97,114,104,107,59],value:"⤦"},{key:[115,119,97,114,114,59],value:"↙"},{key:[115,119,97,114,114,111,119,59],value:"↙"},{key:[115,119,110,119,97,114,59],value:"⤪"},{key:[115,122,108,105,103,59],value:"ß"},{key:[116,97,114,103,101,116,59],value:"⌖"},{key:[116,97,117,59],value:"τ"},{key:[116,98,114,107,59],value:"⎴"},{key:[116,99,97,114,111,110,59],value:"ť"},{key:[116,99,101,100,105,108,59],value:"ţ"},{key:[116,99,121,59],value:"т"},{key:[116,100,111,116,59],value:"⃛"},{key:[116,101,108,114,101,99,59],value:"⌕"},{key:[116,102,114,59],value:"𝔱"},{key:[116,104,101,114,101,52,59],value:"∴"},{key:[116,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[116,104,101,116,97,59],value:"θ"},{key:[116,104,101,116,97,115,121,109,59],value:"ϑ"},{key:[116,104,101,116,97,118,59],value:"ϑ"},{key:[116,104,105,99,107,97,112,112,114,111,120,59],value:"≈"},{key:[116,104,105,99,107,115,105,109,59],value:"∼"},{key:[116,104,105,110,115,112,59],value:" "},{key:[116,104,107,97,112,59],value:"≈"},{key:[116,104,107,115,105,109,59],value:"∼"},{key:[116,104,111,114,110,59],value:"þ"},{key:[116,105,108,100,101,59],value:"˜"},{key:[116,105,109,101,115,59],value:"×"},{key:[116,105,109,101,115,98,59],value:"⊠"},{key:[116,105,109,101,115,98,97,114,59],value:"⨱"},{key:[116,105,109,101,115,100,59],value:"⨰"},{key:[116,105,110,116,59],value:"∭"},{key:[116,111,101,97,59],value:"⤨"},{key:[116,111,112,59],value:"⊤"},{key:[116,111,112,98,111,116,59],value:"⌶"},{key:[116,111,112,99,105,114,59],value:"⫱"},{key:[116,111,112,102,59],value:"𝕥"},{key:[116,111,112,102,111,114,107,59],value:"⫚"},{key:[116,111,115,97,59],value:"⤩"},{key:[116,112,114,105,109,101,59],value:"‴"},{key:[116,114,97,100,101,59],value:"™"},{key:[116,114,105,97,110,103,108,101,59],value:"▵"},{key:[116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▿"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◃"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⊴"},{key:[116,114,105,97,110,103,108,101,113,59],value:"≜"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▹"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⊵"},{key:[116,114,105,100,111,116,59],value:"◬"},{key:[116,114,105,101,59],value:"≜"},{key:[116,114,105,109,105,110,117,115,59],value:"⨺"},{key:[116,114,105,112,108,117,115,59],value:"⨹"},{key:[116,114,105,115,98,59],value:"⧍"},{key:[116,114,105,116,105,109,101,59],value:"⨻"},{key:[116,114,112,101,122,105,117,109,59],value:"⏢"},{key:[116,115,99,114,59],value:"𝓉"},{key:[116,115,99,121,59],value:"ц"},{key:[116,115,104,99,121,59],value:"ћ"},{key:[116,115,116,114,111,107,59],value:"ŧ"},{key:[116,119,105,120,116,59],value:"≬"},{key:[116,119,111,104,101,97,100,108,101,102,116,97,114,114,111,119,59],value:"↞"},{key:[116,119,111,104,101,97,100,114,105,103,104,116,97,114,114,111,119,59],value:"↠"},{key:[117,65,114,114,59],value:"⇑"},{key:[117,72,97,114,59],value:"⥣"},{key:[117,97,99,117,116,101,59],value:"ú"},{key:[117,97,114,114,59],value:"↑"},{key:[117,98,114,99,121,59],value:"ў"},{key:[117,98,114,101,118,101,59],value:"ŭ"},{key:[117,99,105,114,99,59],value:"û"},{key:[117,99,121,59],value:"у"},{key:[117,100,97,114,114,59],value:"⇅"},{key:[117,100,98,108,97,99,59],value:"ű"},{key:[117,100,104,97,114,59],value:"⥮"},{key:[117,102,105,115,104,116,59],value:"⥾"},{key:[117,102,114,59],value:"𝔲"},{key:[117,103,114,97,118,101,59],value:"ù"},{key:[117,104,97,114,108,59],value:"↿"},{key:[117,104,97,114,114,59],value:"↾"},{key:[117,104,98,108,107,59],value:"▀"},{key:[117,108,99,111,114,110,59],value:"⌜"},{key:[117,108,99,111,114,110,101,114,59],value:"⌜"},{key:[117,108,99,114,111,112,59],value:"⌏"},{key:[117,108,116,114,105,59],value:"◸"},{key:[117,109,97,99,114,59],value:"ū"},{key:[117,109,108,59],value:"¨"},{key:[117,111,103,111,110,59],value:"ų"},{key:[117,111,112,102,59],value:"𝕦"},{key:[117,112,97,114,114,111,119,59],value:"↑"},{key:[117,112,100,111,119,110,97,114,114,111,119,59],value:"↕"},{key:[117,112,104,97,114,112,111,111,110,108,101,102,116,59],value:"↿"},{key:[117,112,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"↾"},{key:[117,112,108,117,115,59],value:"⊎"},{key:[117,112,115,105,59],value:"υ"},{key:[117,112,115,105,104,59],value:"ϒ"},{key:[117,112,115,105,108,111,110,59],value:"υ"},{key:[117,112,117,112,97,114,114,111,119,115,59],value:"⇈"},{key:[117,114,99,111,114,110,59],value:"⌝"},{key:[117,114,99,111,114,110,101,114,59],value:"⌝"},{key:[117,114,99,114,111,112,59],value:"⌎"},{key:[117,114,105,110,103,59],value:"ů"},{key:[117,114,116,114,105,59],value:"◹"},{key:[117,115,99,114,59],value:"𝓊"},{key:[117,116,100,111,116,59],value:"⋰"},{key:[117,116,105,108,100,101,59],value:"ũ"},{key:[117,116,114,105,59],value:"▵"},{key:[117,116,114,105,102,59],value:"▴"},{key:[117,117,97,114,114,59],value:"⇈"},{key:[117,117,109,108,59],value:"ü"},{key:[117,119,97,110,103,108,101,59],value:"⦧"},{key:[118,65,114,114,59],value:"⇕"},{key:[118,66,97,114,59],value:"⫨"},{key:[118,66,97,114,118,59],value:"⫩"},{key:[118,68,97,115,104,59],value:"⊨"},{key:[118,97,110,103,114,116,59],value:"⦜"},{key:[118,97,114,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[118,97,114,107,97,112,112,97,59],value:"ϰ"},{key:[118,97,114,110,111,116,104,105,110,103,59],value:"∅"},{key:[118,97,114,112,104,105,59],value:"ϕ"},{key:[118,97,114,112,105,59],value:"ϖ"},{key:[118,97,114,112,114,111,112,116,111,59],value:"∝"},{key:[118,97,114,114,59],value:"↕"},{key:[118,97,114,114,104,111,59],value:"ϱ"},{key:[118,97,114,115,105,103,109,97,59],value:"ς"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,59],value:"⊊︀"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,113,59],value:"⫋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,59],value:"⊋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,113,59],value:"⫌︀"},{key:[118,97,114,116,104,101,116,97,59],value:"ϑ"},{key:[118,97,114,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⊲"},{key:[118,97,114,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⊳"},{key:[118,99,121,59],value:"в"},{key:[118,100,97,115,104,59],value:"⊢"},{key:[118,101,101,59],value:"∨"},{key:[118,101,101,98,97,114,59],value:"⊻"},{key:[118,101,101,101,113,59],value:"≚"},{key:[118,101,108,108,105,112,59],value:"⋮"},{key:[118,101,114,98,97,114,59],value:"|"},{key:[118,101,114,116,59],value:"|"},{key:[118,102,114,59],value:"𝔳"},{key:[118,108,116,114,105,59],value:"⊲"},{key:[118,110,115,117,98,59],value:"⊂⃒"},{key:[118,110,115,117,112,59],value:"⊃⃒"},{key:[118,111,112,102,59],value:"𝕧"},{key:[118,112,114,111,112,59],value:"∝"},{key:[118,114,116,114,105,59],value:"⊳"},{key:[118,115,99,114,59],value:"𝓋"},{key:[118,115,117,98,110,69,59],value:"⫋︀"},{key:[118,115,117,98,110,101,59],value:"⊊︀"},{key:[118,115,117,112,110,69,59],value:"⫌︀"},{key:[118,115,117,112,110,101,59],value:"⊋︀"},{key:[118,122,105,103,122,97,103,59],value:"⦚"},{key:[119,99,105,114,99,59],value:"ŵ"},{key:[119,101,100,98,97,114,59],value:"⩟"},{key:[119,101,100,103,101,59],value:"∧"},{key:[119,101,100,103,101,113,59],value:"≙"},{key:[119,101,105,101,114,112,59],value:"℘"},{key:[119,102,114,59],value:"𝔴"},{key:[119,111,112,102,59],value:"𝕨"},{key:[119,112,59],value:"℘"},{key:[119,114,59],value:"≀"},{key:[119,114,101,97,116,104,59],value:"≀"},{key:[119,115,99,114,59],value:"𝓌"},{key:[120,99,97,112,59],value:"⋂"},{key:[120,99,105,114,99,59],value:"◯"},{key:[120,99,117,112,59],value:"⋃"},{key:[120,100,116,114,105,59],value:"▽"},{key:[120,102,114,59],value:"𝔵"},{key:[120,104,65,114,114,59],value:"⟺"},{key:[120,104,97,114,114,59],value:"⟷"},{key:[120,105,59],value:"ξ"},{key:[120,108,65,114,114,59],value:"⟸"},{key:[120,108,97,114,114,59],value:"⟵"},{key:[120,109,97,112,59],value:"⟼"},{key:[120,110,105,115,59],value:"⋻"},{key:[120,111,100,111,116,59],value:"⨀"},{key:[120,111,112,102,59],value:"𝕩"},{key:[120,111,112,108,117,115,59],value:"⨁"},{key:[120,111,116,105,109,101,59],value:"⨂"},{key:[120,114,65,114,114,59],value:"⟹"},{key:[120,114,97,114,114,59],value:"⟶"},{key:[120,115,99,114,59],value:"𝓍"},{key:[120,115,113,99,117,112,59],value:"⨆"},{key:[120,117,112,108,117,115,59],value:"⨄"},{key:[120,117,116,114,105,59],value:"△"},{key:[120,118,101,101,59],value:"⋁"},{key:[120,119,101,100,103,101,59],value:"⋀"},{key:[121,97,99,117,116,101,59],value:"ý"},{key:[121,97,99,121,59],value:"я"},{key:[121,99,105,114,99,59],value:"ŷ"},{key:[121,99,121,59],value:"ы"},{key:[121,101,110,59],value:"¥"},{key:[121,102,114,59],value:"𝔶"},{key:[121,105,99,121,59],value:"ї"},{key:[121,111,112,102,59],value:"𝕪"},{key:[121,115,99,114,59],value:"𝓎"},{key:[121,117,99,121,59],value:"ю"},{key:[121,117,109,108,59],value:"ÿ"},{key:[122,97,99,117,116,101,59],value:"ź"},{key:[122,99,97,114,111,110,59],value:"ž"},{key:[122,99,121,59],value:"з"},{key:[122,100,111,116,59],value:"ż"},{key:[122,101,101,116,114,102,59],value:"ℨ"},{key:[122,101,116,97,59],value:"ζ"},{key:[122,102,114,59],value:"𝔷"},{key:[122,104,99,121,59],value:"ж"},{key:[122,105,103,114,97,114,114,59],value:"⇝"},{key:[122,111,112,102,59],value:"𝕫"},{key:[122,115,99,114,59],value:"𝓏"},{key:[122,119,106,59],value:"‍"},{key:[122,119,110,106,59],value:"‌"}];var UnicodePcCodePoint;(function(j){j[j.LOW_LINE=95]="LOW_LINE",j[j.UNDERTIE=8255]="UNDERTIE",j[j.CHARACTER_TIE=8256]="CHARACTER_TIE",j[j.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",j[j.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",j[j.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",j[j.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",j[j.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",j[j.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",j[j.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(UnicodePcCodePoint||(UnicodePcCodePoint={}));var UnicodePdCodePoint;(function(j){j[j.HYPHEN_MINUS=45]="HYPHEN_MINUS",j[j.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",j[j.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",j[j.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",j[j.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",j[j.HYPHEN=8208]="HYPHEN",j[j.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",j[j.FIGURE_DASH=8210]="FIGURE_DASH",j[j.EN_DASH=8211]="EN_DASH",j[j.EM_DASH=8212]="EM_DASH",j[j.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",j[j.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",j[j.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",j[j.TWO_EM_DASH=11834]="TWO_EM_DASH",j[j.THREE_EM_DASH=11835]="THREE_EM_DASH",j[j.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",j[j.WAVE_DASH=12316]="WAVE_DASH",j[j.WAVY_DASH=12336]="WAVY_DASH",j[j.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",j[j.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",j[j.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",j[j.SMALL_EM_DASH=65112]="SMALL_EM_DASH",j[j.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",j[j.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",j[j.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(UnicodePdCodePoint||(UnicodePdCodePoint={}));var UnicodePeCodePoint;(function(j){j[j.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",j[j.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",j[j.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",j[j.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",j[j.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",j[j.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",j[j.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",j[j.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",j[j.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",j[j.RIGHT_CEILING=8969]="RIGHT_CEILING",j[j.RIGHT_FLOOR=8971]="RIGHT_FLOOR",j[j.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",j[j.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",j[j.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",j[j.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",j[j.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",j[j.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",j[j.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",j[j.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",j[j.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",j[j.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",j[j.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",j[j.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",j[j.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",j[j.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",j[j.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",j[j.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",j[j.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",j[j.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",j[j.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",j[j.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",j[j.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",j[j.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",j[j.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",j[j.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",j[j.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",j[j.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",j[j.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",j[j.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",j[j.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",j[j.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",j[j.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",j[j.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",j[j.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",j[j.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",j[j.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",j[j.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",j[j.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",j[j.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",j[j.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",j[j.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",j[j.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",j[j.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",j[j.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",j[j.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",j[j.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",j[j.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",j[j.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",j[j.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",j[j.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",j[j.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",j[j.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",j[j.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(UnicodePeCodePoint||(UnicodePeCodePoint={}));var UnicodePfCodePoint;(function(j){j[j.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",j[j.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",j[j.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",j[j.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",j[j.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",j[j.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",j[j.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",j[j.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",j[j.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",j[j.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(UnicodePfCodePoint||(UnicodePfCodePoint={}));var UnicodePiCodePoint;(function(j){j[j.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",j[j.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",j[j.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",j[j.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",j[j.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",j[j.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",j[j.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",j[j.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",j[j.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",j[j.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",j[j.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",j[j.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(UnicodePiCodePoint||(UnicodePiCodePoint={}));var UnicodePoCodePoint;(function(j){j[j.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",j[j.QUOTATION_MARK=34]="QUOTATION_MARK",j[j.NUMBER_SIGN=35]="NUMBER_SIGN",j[j.PERCENT_SIGN=37]="PERCENT_SIGN",j[j.AMPERSAND=38]="AMPERSAND",j[j.APOSTROPHE=39]="APOSTROPHE",j[j.ASTERISK=42]="ASTERISK",j[j.COMMA=44]="COMMA",j[j.FULL_STOP=46]="FULL_STOP",j[j.SOLIDUS=47]="SOLIDUS",j[j.COLON=58]="COLON",j[j.SEMICOLON=59]="SEMICOLON",j[j.QUESTION_MARK=63]="QUESTION_MARK",j[j.COMMERCIAL_AT=64]="COMMERCIAL_AT",j[j.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",j[j.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",j[j.SECTION_SIGN=167]="SECTION_SIGN",j[j.PILCROW_SIGN=182]="PILCROW_SIGN",j[j.MIDDLE_DOT=183]="MIDDLE_DOT",j[j.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",j[j.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",j[j.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",j[j.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",j[j.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",j[j.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",j[j.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",j[j.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",j[j.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",j[j.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",j[j.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",j[j.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",j[j.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",j[j.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",j[j.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",j[j.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",j[j.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",j[j.ARABIC_COMMA=1548]="ARABIC_COMMA",j[j.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",j[j.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",j[j.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",j[j.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",j[j.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",j[j.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",j[j.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",j[j.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",j[j.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",j[j.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",j[j.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",j[j.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",j[j.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",j[j.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",j[j.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",j[j.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",j[j.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",j[j.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",j[j.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",j[j.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",j[j.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",j[j.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",j[j.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",j[j.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",j[j.NKO_COMMA=2040]="NKO_COMMA",j[j.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",j[j.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",j[j.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",j[j.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",j[j.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",j[j.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",j[j.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",j[j.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",j[j.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",j[j.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",j[j.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",j[j.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",j[j.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",j[j.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",j[j.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",j[j.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",j[j.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",j[j.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",j[j.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",j[j.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",j[j.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",j[j.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",j[j.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",j[j.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",j[j.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",j[j.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",j[j.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",j[j.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",j[j.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",j[j.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",j[j.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",j[j.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",j[j.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",j[j.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",j[j.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",j[j.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",j[j.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",j[j.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",j[j.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",j[j.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",j[j.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",j[j.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",j[j.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",j[j.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",j[j.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",j[j.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",j[j.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",j[j.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",j[j.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",j[j.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",j[j.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",j[j.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",j[j.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",j[j.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",j[j.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",j[j.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",j[j.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",j[j.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",j[j.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",j[j.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",j[j.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",j[j.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",j[j.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",j[j.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",j[j.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",j[j.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",j[j.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",j[j.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",j[j.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",j[j.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",j[j.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",j[j.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",j[j.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",j[j.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",j[j.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",j[j.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",j[j.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",j[j.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",j[j.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",j[j.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",j[j.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",j[j.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",j[j.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",j[j.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",j[j.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",j[j.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",j[j.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",j[j.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",j[j.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",j[j.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",j[j.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",j[j.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",j[j.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",j[j.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",j[j.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",j[j.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",j[j.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",j[j.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",j[j.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",j[j.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",j[j.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",j[j.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",j[j.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",j[j.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",j[j.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",j[j.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",j[j.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",j[j.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",j[j.BALINESE_PANTI=7002]="BALINESE_PANTI",j[j.BALINESE_PAMADA=7003]="BALINESE_PAMADA",j[j.BALINESE_WINDU=7004]="BALINESE_WINDU",j[j.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",j[j.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",j[j.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",j[j.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",j[j.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",j[j.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",j[j.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",j[j.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",j[j.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",j[j.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",j[j.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",j[j.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",j[j.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",j[j.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",j[j.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",j[j.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",j[j.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",j[j.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",j[j.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",j[j.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",j[j.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",j[j.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",j[j.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",j[j.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",j[j.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",j[j.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",j[j.DAGGER=8224]="DAGGER",j[j.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",j[j.BULLET=8226]="BULLET",j[j.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",j[j.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",j[j.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",j[j.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",j[j.HYPHENATION_POINT=8231]="HYPHENATION_POINT",j[j.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",j[j.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",j[j.PRIME=8242]="PRIME",j[j.DOUBLE_PRIME=8243]="DOUBLE_PRIME",j[j.TRIPLE_PRIME=8244]="TRIPLE_PRIME",j[j.REVERSED_PRIME=8245]="REVERSED_PRIME",j[j.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",j[j.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",j[j.CARET=8248]="CARET",j[j.REFERENCE_MARK=8251]="REFERENCE_MARK",j[j.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",j[j.INTERROBANG=8253]="INTERROBANG",j[j.OVERLINE=8254]="OVERLINE",j[j.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",j[j.ASTERISM=8258]="ASTERISM",j[j.HYPHEN_BULLET=8259]="HYPHEN_BULLET",j[j.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",j[j.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",j[j.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",j[j.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",j[j.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",j[j.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",j[j.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",j[j.LOW_ASTERISK=8270]="LOW_ASTERISK",j[j.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",j[j.CLOSE_UP=8272]="CLOSE_UP",j[j.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",j[j.SWUNG_DASH=8275]="SWUNG_DASH",j[j.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",j[j.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",j[j.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",j[j.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",j[j.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",j[j.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",j[j.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",j[j.DOTTED_CROSS=8284]="DOTTED_CROSS",j[j.TRICOLON=8285]="TRICOLON",j[j.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",j[j.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",j[j.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",j[j.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",j[j.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",j[j.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",j[j.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",j[j.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",j[j.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",j[j.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",j[j.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",j[j.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",j[j.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",j[j.RAISED_SQUARE=11787]="RAISED_SQUARE",j[j.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",j[j.PARAGRAPHOS=11791]="PARAGRAPHOS",j[j.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",j[j.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",j[j.HYPODIASTOLE=11794]="HYPODIASTOLE",j[j.DOTTED_OBELOS=11795]="DOTTED_OBELOS",j[j.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",j[j.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",j[j.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",j[j.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",j[j.PALM_BRANCH=11801]="PALM_BRANCH",j[j.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",j[j.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",j[j.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",j[j.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",j[j.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",j[j.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",j[j.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",j[j.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",j[j.RING_POINT=11824]="RING_POINT",j[j.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",j[j.TURNED_COMMA=11826]="TURNED_COMMA",j[j.RAISED_DOT=11827]="RAISED_DOT",j[j.RAISED_COMMA=11828]="RAISED_COMMA",j[j.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",j[j.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",j[j.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",j[j.TURNED_DAGGER=11832]="TURNED_DAGGER",j[j.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",j[j.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",j[j.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",j[j.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",j[j.CAPITULUM=11839]="CAPITULUM",j[j.REVERSED_COMMA=11841]="REVERSED_COMMA",j[j.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",j[j.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",j[j.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",j[j.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",j[j.LOW_KAVYKA=11847]="LOW_KAVYKA",j[j.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",j[j.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",j[j.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",j[j.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",j[j.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",j[j.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",j[j.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",j[j.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",j[j.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",j[j.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",j[j.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",j[j.DITTO_MARK=12291]="DITTO_MARK",j[j.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",j[j.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",j[j.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",j[j.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",j[j.VAI_COMMA=42509]="VAI_COMMA",j[j.VAI_FULL_STOP=42510]="VAI_FULL_STOP",j[j.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",j[j.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",j[j.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",j[j.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",j[j.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",j[j.BAMUM_COLON=42740]="BAMUM_COLON",j[j.BAMUM_COMMA=42741]="BAMUM_COMMA",j[j.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",j[j.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",j[j.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",j[j.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",j[j.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",j[j.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",j[j.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",j[j.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",j[j.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",j[j.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",j[j.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",j[j.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",j[j.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",j[j.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",j[j.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",j[j.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",j[j.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",j[j.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",j[j.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",j[j.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",j[j.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",j[j.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",j[j.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",j[j.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",j[j.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",j[j.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",j[j.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",j[j.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",j[j.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",j[j.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",j[j.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",j[j.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",j[j.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",j[j.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",j[j.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",j[j.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",j[j.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",j[j.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",j[j.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",j[j.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",j[j.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",j[j.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",j[j.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",j[j.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",j[j.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",j[j.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",j[j.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",j[j.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",j[j.SESAME_DOT=65093]="SESAME_DOT",j[j.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",j[j.DASHED_OVERLINE=65097]="DASHED_OVERLINE",j[j.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",j[j.WAVY_OVERLINE=65099]="WAVY_OVERLINE",j[j.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",j[j.SMALL_COMMA=65104]="SMALL_COMMA",j[j.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",j[j.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",j[j.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",j[j.SMALL_COLON=65109]="SMALL_COLON",j[j.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",j[j.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",j[j.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",j[j.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",j[j.SMALL_ASTERISK=65121]="SMALL_ASTERISK",j[j.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",j[j.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",j[j.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",j[j.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",j[j.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",j[j.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",j[j.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",j[j.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",j[j.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",j[j.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",j[j.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",j[j.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",j[j.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",j[j.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",j[j.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",j[j.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",j[j.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",j[j.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",j[j.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",j[j.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",j[j.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",j[j.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",j[j.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",j[j.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",j[j.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",j[j.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",j[j.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",j[j.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",j[j.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",j[j.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",j[j.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",j[j.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",j[j.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",j[j.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",j[j.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",j[j.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",j[j.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",j[j.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",j[j.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",j[j.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",j[j.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",j[j.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",j[j.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",j[j.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",j[j.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",j[j.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",j[j.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",j[j.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",j[j.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",j[j.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",j[j.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",j[j.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",j[j.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",j[j.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",j[j.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",j[j.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",j[j.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",j[j.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",j[j.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",j[j.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",j[j.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",j[j.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",j[j.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",j[j.BRAHMI_DANDA=69703]="BRAHMI_DANDA",j[j.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",j[j.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",j[j.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",j[j.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",j[j.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",j[j.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",j[j.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",j[j.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",j[j.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",j[j.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",j[j.KAITHI_DANDA=69824]="KAITHI_DANDA",j[j.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",j[j.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",j[j.CHAKMA_DANDA=69953]="CHAKMA_DANDA",j[j.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",j[j.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",j[j.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",j[j.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",j[j.SHARADA_DANDA=70085]="SHARADA_DANDA",j[j.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",j[j.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",j[j.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",j[j.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",j[j.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",j[j.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",j[j.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",j[j.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",j[j.KHOJKI_DANDA=70200]="KHOJKI_DANDA",j[j.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",j[j.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",j[j.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",j[j.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",j[j.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",j[j.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",j[j.NEWA_DANDA=70731]="NEWA_DANDA",j[j.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",j[j.NEWA_COMMA=70733]="NEWA_COMMA",j[j.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",j[j.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",j[j.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",j[j.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",j[j.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",j[j.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",j[j.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",j[j.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",j[j.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",j[j.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",j[j.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",j[j.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",j[j.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",j[j.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",j[j.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",j[j.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",j[j.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",j[j.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",j[j.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",j[j.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",j[j.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",j[j.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",j[j.MODI_DANDA=71233]="MODI_DANDA",j[j.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",j[j.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",j[j.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",j[j.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",j[j.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",j[j.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",j[j.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",j[j.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",j[j.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",j[j.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",j[j.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",j[j.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",j[j.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",j[j.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",j[j.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",j[j.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",j[j.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",j[j.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",j[j.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",j[j.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",j[j.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",j[j.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",j[j.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",j[j.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",j[j.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",j[j.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",j[j.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",j[j.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",j[j.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",j[j.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",j[j.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",j[j.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",j[j.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",j[j.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",j[j.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",j[j.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",j[j.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",j[j.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",j[j.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",j[j.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",j[j.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",j[j.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",j[j.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",j[j.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",j[j.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",j[j.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",j[j.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",j[j.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",j[j.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",j[j.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",j[j.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",j[j.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",j[j.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",j[j.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",j[j.MRO_DANDA=92782]="MRO_DANDA",j[j.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",j[j.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",j[j.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",j[j.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",j[j.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",j[j.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",j[j.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",j[j.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",j[j.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",j[j.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",j[j.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",j[j.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",j[j.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",j[j.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",j[j.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",j[j.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",j[j.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",j[j.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",j[j.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",j[j.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",j[j.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(UnicodePoCodePoint||(UnicodePoCodePoint={}));var UnicodePsCodePoint;(function(j){j[j.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",j[j.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",j[j.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",j[j.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",j[j.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",j[j.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",j[j.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",j[j.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",j[j.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",j[j.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",j[j.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",j[j.LEFT_CEILING=8968]="LEFT_CEILING",j[j.LEFT_FLOOR=8970]="LEFT_FLOOR",j[j.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",j[j.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",j[j.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",j[j.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",j[j.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",j[j.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",j[j.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",j[j.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",j[j.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",j[j.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",j[j.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",j[j.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",j[j.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",j[j.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",j[j.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",j[j.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",j[j.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",j[j.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",j[j.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",j[j.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",j[j.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",j[j.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",j[j.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",j[j.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",j[j.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",j[j.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",j[j.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",j[j.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",j[j.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",j[j.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",j[j.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",j[j.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",j[j.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",j[j.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",j[j.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",j[j.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",j[j.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",j[j.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",j[j.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",j[j.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",j[j.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",j[j.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",j[j.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",j[j.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",j[j.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",j[j.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",j[j.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",j[j.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",j[j.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",j[j.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",j[j.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",j[j.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",j[j.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(UnicodePsCodePoint||(UnicodePsCodePoint={}));var UnicodeZsCodePoint;(function(j){j[j.SPACE=32]="SPACE",j[j.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",j[j.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",j[j.EN_QUAD=8192]="EN_QUAD",j[j.EM_QUAD=8193]="EM_QUAD",j[j.EN_SPACE=8194]="EN_SPACE",j[j.EM_SPACE=8195]="EM_SPACE",j[j.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",j[j.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",j[j.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",j[j.FIGURE_SPACE=8199]="FIGURE_SPACE",j[j.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",j[j.THIN_SPACE=8201]="THIN_SPACE",j[j.HAIR_SPACE=8202]="HAIR_SPACE",j[j.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",j[j.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",j[j.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(UnicodeZsCodePoint||(UnicodeZsCodePoint={}));var VirtualCodePoint;(function(j){j[j.LINE_END=-1]="LINE_END",j[j.SPACE=-2]="SPACE"})(VirtualCodePoint||(VirtualCodePoint={}));function createCodePointSearcher(j){const _e=[...new Set(j)].sort((rt,nt)=>rt-nt),et=_e.length;if(et<8)return[rt=>{for(let nt=0;nt<_e.length;++nt)if(rt===_e[nt])return!0;return!1},[..._e]];const tt=[];for(let rt=0,nt;rtot+nt);++nt);tt.push(ot,ot+nt)}if(tt.length*1.5{for(let ot=0;ot{let ot=0,it=rt;for(;ot>>1;nt{let nt=0,ot=et;for(;nt>>1;rt<_e[it]?ot=it:nt=it+1}return ot<=0?!1:_e[ot-1]===rt},[..._e]]}function collectCodePointsFromEnum(j){return Object.values(j).filter(_e=>typeof _e=="number")}createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SPACE]);const[isAsciiPunctuationCharacter,asciiPunctuationCharacters]=createCodePointSearcher([AsciiCodePoint.EXCLAMATION_MARK,AsciiCodePoint.DOUBLE_QUOTE,AsciiCodePoint.NUMBER_SIGN,AsciiCodePoint.DOLLAR_SIGN,AsciiCodePoint.PERCENT_SIGN,AsciiCodePoint.AMPERSAND,AsciiCodePoint.SINGLE_QUOTE,AsciiCodePoint.OPEN_PARENTHESIS,AsciiCodePoint.CLOSE_PARENTHESIS,AsciiCodePoint.ASTERISK,AsciiCodePoint.PLUS_SIGN,AsciiCodePoint.COMMA,AsciiCodePoint.MINUS_SIGN,AsciiCodePoint.DOT,AsciiCodePoint.SLASH,AsciiCodePoint.COLON,AsciiCodePoint.SEMICOLON,AsciiCodePoint.OPEN_ANGLE,AsciiCodePoint.EQUALS_SIGN,AsciiCodePoint.CLOSE_ANGLE,AsciiCodePoint.QUESTION_MARK,AsciiCodePoint.AT_SIGN,AsciiCodePoint.OPEN_BRACKET,AsciiCodePoint.BACKSLASH,AsciiCodePoint.CLOSE_BRACKET,AsciiCodePoint.CARET,AsciiCodePoint.UNDERSCORE,AsciiCodePoint.BACKTICK,AsciiCodePoint.OPEN_BRACE,AsciiCodePoint.VERTICAL_SLASH,AsciiCodePoint.CLOSE_BRACE,AsciiCodePoint.TILDE]),isAsciiDigitCharacter=j=>j>=AsciiCodePoint.DIGIT0&&j<=AsciiCodePoint.DIGIT9,isAsciiLowerLetter=j=>j>=AsciiCodePoint.LOWERCASE_A&&j<=AsciiCodePoint.LOWERCASE_Z,isAsciiUpperLetter=j=>j>=AsciiCodePoint.UPPERCASE_A&&j<=AsciiCodePoint.UPPERCASE_Z,isAsciiLetter=j=>isAsciiLowerLetter(j)||isAsciiUpperLetter(j),isAlphanumeric=j=>isAsciiLowerLetter(j)||isAsciiUpperLetter(j)||isAsciiDigitCharacter(j),isAsciiCharacter=j=>j>=AsciiCodePoint.NUL&&j<=AsciiCodePoint.DELETE,[isAsciiControlCharacter,asciiControlCharacters]=createCodePointSearcher([AsciiCodePoint.NUL,AsciiCodePoint.SOH,AsciiCodePoint.STX,AsciiCodePoint.ETX,AsciiCodePoint.EOT,AsciiCodePoint.ENQ,AsciiCodePoint.ACK,AsciiCodePoint.BEL,AsciiCodePoint.BS,AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SO,AsciiCodePoint.SI,AsciiCodePoint.DLE,AsciiCodePoint.DC1,AsciiCodePoint.DC2,AsciiCodePoint.DC3,AsciiCodePoint.DC4,AsciiCodePoint.NAK,AsciiCodePoint.SYN,AsciiCodePoint.ETB,AsciiCodePoint.CAN,AsciiCodePoint.EM,AsciiCodePoint.SUB,AsciiCodePoint.ESC,AsciiCodePoint.FS,AsciiCodePoint.GS,AsciiCodePoint.RS,AsciiCodePoint.US,AsciiCodePoint.DELETE]),[isWhitespaceCharacter,whitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.SPACE,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END]);AsciiCodePoint.SPACE,VirtualCodePoint.SPACE;const isSpaceCharacter=j=>j===AsciiCodePoint.SPACE||j===VirtualCodePoint.SPACE,isLineEnding=j=>j===VirtualCodePoint.LINE_END,[isPunctuationCharacter,punctuationCharacters]=createCodePointSearcher([...asciiPunctuationCharacters,...collectCodePointsFromEnum(UnicodePcCodePoint),...collectCodePointsFromEnum(UnicodePdCodePoint),...collectCodePointsFromEnum(UnicodePeCodePoint),...collectCodePointsFromEnum(UnicodePfCodePoint),...collectCodePointsFromEnum(UnicodePiCodePoint),...collectCodePointsFromEnum(UnicodePoCodePoint),...collectCodePointsFromEnum(UnicodePsCodePoint)]),isSpaceLike=j=>isSpaceCharacter(j)||isLineEnding(j),[isUnicodeWhitespaceCharacter,unicodeWhitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.FF,AsciiCodePoint.CR,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END,...collectCodePointsFromEnum(UnicodeZsCodePoint)]);var UnicodeCodePoint;(function(j){j[j.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(UnicodeCodePoint||(UnicodeCodePoint={}));function createEntityReferenceTrie(){const j=(rt,nt)=>{if(rt.length<=4){for(let st=0;st=nt)return st;return rt.length}let ot=0,it=rt.length;for(;ot>>1;rt[st].key{let ot=_e;for(const it of rt){const st=j(ot.children,it);if(st>=ot.children.length){const ut={key:it,children:[]};ot.children.push(ut),ot=ut;continue}let lt=ot.children[st];if(lt.key===it){ot=lt;continue}lt={key:it,children:[]},ot.children.splice(st,0,lt),ot=lt}ot.value=nt},search:(rt,nt,ot)=>{let it=_e;for(let st=nt;st=it.children.length)return null;const ct=it.children[ut];if(ct.key!==lt)return null;if(ct.value!=null)return{nextIndex:st+1,value:ct.value};it=ct}return null}}}const entityReferenceTrie=createEntityReferenceTrie();entityReferences.forEach(j=>entityReferenceTrie.insert(j.key,j.value));function eatEntityReference(j,_e,et){if(_e+1>=et)return null;const tt=entityReferenceTrie.search(j,_e,et);if(tt!=null)return tt;if(j[_e].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;let rt=0,nt=_e+1;if(j[nt].codePoint===AsciiCodePoint.LOWERCASE_X||j[nt].codePoint===AsciiCodePoint.UPPERCASE_X){nt+=1;for(let it=1;it<=6&&nt=AsciiCodePoint.UPPERCASE_A&&st<=AsciiCodePoint.UPPERCASE_F){rt=(rt<<4)+(st-AsciiCodePoint.UPPERCASE_A+10);continue}if(st>=AsciiCodePoint.LOWERCASE_A&&st<=AsciiCodePoint.LOWERCASE_F){rt=(rt<<4)+(st-AsciiCodePoint.LOWERCASE_A+10);continue}break}}else for(let it=1;it<=7&&nt=et||j[nt].codePoint!==AsciiCodePoint.SEMICOLON)return null;let ot;try{rt===0&&(rt=UnicodeCodePoint.REPLACEMENT_CHARACTER),ot=String.fromCodePoint(rt)}catch{ot=String.fromCodePoint(UnicodeCodePoint.REPLACEMENT_CHARACTER)}return{nextIndex:nt+1,value:ot}}function foldCase(j){return Array.from(j).map(_e=>foldingCaseCodeMap[_e]??_e).join("")}(()=>{try{const j=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,_e=new RegExp(`(${j})\\n+(${j})`,"gu");return et=>et.replace(_e,"$1$2")}catch{const j=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,_e=new RegExp(`(${j})\\n+(${j})`,"gu");return et=>et.replace(_e,"$1$2")}})();(()=>{try{const j=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,_e=new RegExp(`(${j})[\\s\\n]+(${j})`,"gu");return et=>et.replace(_e,"$1$2")}catch{const j=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,_e=new RegExp(`(${j})[\\s\\n]+(${j})`,"gu");return et=>et.replace(_e,"$1$2")}})();function*createNodePointGenerator(j){let _e=0,et=1,tt=1;const rt=typeof j=="string"?[j]:j;for(const nt of rt){const ot=[];for(const lt of nt){const ut=lt.codePointAt(0);ot.push(ut)}const it=[],st=ot.length;for(let lt=0;lt>2,lt=ot-nt&3;for(let ut=0;ut>2,lt=ot-nt&3;for(let ut=0;ut!0;if(j instanceof Function)return j;if(j.length===0)return()=>!1;if(j.length===1){const _e=j[0];return et=>et.type===_e}if(j.length===2){const[_e,et]=j;return tt=>tt.type===_e||tt.type===et}return _e=>{for(const et of j)if(_e.type===et)return!0;return!1}}function traverseAst(j,_e,et){const tt=createNodeMatcher(_e),rt=nt=>{const{children:ot}=nt;for(let it=0;it{const tt={};traverseAst(j,_e,ot=>{const it=ot;tt[it.identifier]===void 0&&(tt[it.identifier]=it)});const rt=[];for(const ot of et)tt[ot.identifier]===void 0&&(tt[ot.identifier]=ot,rt.push(ot));return{root:rt.length>0?{...j,children:j.children.concat(rt)}:j,definitionMap:tt}},astClasses=mergeStyleSets({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),NodeRendererContextType=React.createContext(null);NodeRendererContextType.displayName="NodeRendererContextType";const useNodeRendererContext=()=>React.useContext(NodeRendererContextType);function disposeAll(j){const _e=[];for(const et of j)try{et.dispose()}catch(tt){_e.push(tt)}if(_e.length===1)throw _e[0];if(_e.length>1)throw new AggregateError(_e,"Encountered errors while disposing")}class BatchDisposable{constructor(){Fr(this,"_disposed");Fr(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{disposeAll(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(_e){_e.disposed||(this._disposed?_e.dispose():this._disposables.push(_e))}}class Disposable{constructor(_e){Fr(this,"_onDispose");Fr(this,"_disposed");this._onDispose=_e,this._disposed=!1}static fromCallback(_e){return new Disposable(_e)}static fromUnsubscribable(_e){return new Disposable(()=>_e.unsubscribe())}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function isDisposable(j){return j===null||typeof j!="object"?!1:typeof Reflect.get(j,"dispose")=="function"&&typeof Reflect.get(j,"disposed")=="boolean"}var ScheduleTransactionStatus;(function(j){j[j.NOT_STARTED=0]="NOT_STARTED",j[j.STARTED=1]="STARTED",j[j.COMPLETED=2]="COMPLETED"})(ScheduleTransactionStatus||(ScheduleTransactionStatus={}));function noop$1(...j){}const noopUnsubscribable={unsubscribe:noop$1};class Schedulable{constructor(_e){Fr(this,"_scheduled");Fr(this,"_run");this._scheduled=!1,this._run=_e}get scheduled(){return this._scheduled}schedule(){this._scheduled||(this._scheduled=!0,this._run())}}class Observable extends BatchDisposable{constructor(et,tt={}){super();Fr(this,"equals");Fr(this,"_value");Fr(this,"_subscribers");this._value=et,this._subscribers=[],this.equals=tt.equals??((rt,nt)=>Object.is(rt,nt))}dispose(){if(!this.disposed){super.dispose();const et=this._subscribers;this._subscribers=[];for(const tt of et)tt.complete()}}getSnapshot(){return this._value}subscribe(et){return this.disposed?(et.complete(),noopUnsubscribable):(this._subscribers.includes(et)||(this._subscribers=[...this._subscribers,et]),{unsubscribe:()=>{this._subscribers.includes(et)&&(this._subscribers=this._subscribers.filter(tt=>tt!==et))}})}next(et,tt){if(this.disposed){console.warn("[Observable] Don't update a disposed observable. value:",et);return}const rt=this._value;this.equals(et,rt)||(this._value=et,this.notify(et,rt,tt))}notify(et,tt,rt){if(rt){rt.step(new Schedulable(()=>this.notifyImmediate(et,tt)));return}this.notifyImmediate(et,tt)}notifyImmediate(et,tt){const rt=this._subscribers;for(const nt of rt)nt.next(et,tt)}}class Ticker extends Observable{constructor(et,tt={}){const rt=new Set,nt=Number(tt.delay||0)||0,ot=Math.max(0,Number(tt.threshold||0)||0);super(et??0,{equals:(it,st)=>it===st});Fr(this,"_observes");Fr(this,"_delay");Fr(this,"_threshold");Fr(this,"_caller");this._observes=rt,this._delay=nt>=0?nt:-1,this._threshold=ot,this._caller=void 0}dispose(){this.disposed||(super.dispose(),this.flush(),this._observes.clear())}tick(et){this.next(this._value+1,et)}observe(et){if(this.disposed){console.warn("[Ticker.observe] the ticker has been disposed.");return}if(!this._observes.has(et)){const tt=et.subscribe({next:()=>{rt.disposed||this.tick()},complete:()=>rt.dispose()}),rt=Disposable.fromUnsubscribable(tt);this._observes.add(et),this.registerDisposable(rt)}}notify(et,tt,rt){if(rt){this.flush(),rt.step(new Schedulable(()=>this.notifyImmediate(et,tt)));return}if(this._delay<0){this.notifyImmediate(et,tt);return}const{_delay:nt,_threshold:ot,_caller:it}=this;let st=Date.now();const lt=()=>this.notifyImmediate(et,tt),ut=setTimeout(()=>{this._caller=void 0,lt()},nt);it!==void 0&&(this._caller=void 0,clearTimeout(it.timer),it.createdAt+ot<=st?it.call():st=it.createdAt),this._caller={timer:ut,createdAt:st,call:lt}}flush(){const et=this._caller;et!==void 0&&(this._caller=void 0,clearTimeout(et.timer),et.call())}}class Computed{constructor(_e){Fr(this,"_observable");Fr(this,"getSnapshot",()=>this._observable.getSnapshot());Fr(this,"getServerSnapshot",()=>this._observable.getSnapshot());Fr(this,"subscribeStateChange",_e=>{const et={next:()=>_e(),complete:()=>{}},tt=this._observable.subscribe(et),rt=Disposable.fromUnsubscribable(tt);return this._observable.registerDisposable(rt),()=>rt.dispose()});this._observable=_e}static fromObservables(_e,et,tt){const rt=new Ticker;for(const it of _e)rt.observe(it);const nt=()=>{const it=_e.map(st=>st.getSnapshot());return et(it)},ot=new Observable(nt(),tt);return ot.registerDisposable(rt),rt.subscribe({next:()=>{ot.disposed||ot.next(nt())},complete:()=>ot.dispose()}),new Computed(ot)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(_e){this._observable.registerDisposable(_e)}subscribe(_e){return this._observable.subscribe(_e)}}class State extends Observable{constructor(){super(...arguments);Fr(this,"getSnapshot",()=>super.getSnapshot());Fr(this,"getServerSnapshot",()=>super.getSnapshot());Fr(this,"setState",et=>{const tt=typeof et=="function"?et(this.getSnapshot()):et;super.next(tt)});Fr(this,"subscribeStateChange",et=>{const tt={next:()=>et(),complete:()=>{}},rt=super.subscribe(tt),nt=Disposable.fromUnsubscribable(rt);return this.registerDisposable(nt),()=>nt.dispose()})}}function isObservable(j){return j===null||typeof j!="object"?!1:typeof Reflect.get(j,"dispose")=="function"&&typeof Reflect.get(j,"disposed")=="boolean"&&typeof Reflect.get(j,"subscribe")=="function"&&typeof Reflect.get(j,"equals")=="function"&&typeof Reflect.get(j,"getSnapshot")=="function"&&typeof Reflect.get(j,"next")=="function"}class ViewModel extends BatchDisposable{constructor(){super();Fr(this,"_tickerMap");this._tickerMap=new Map}dispose(){this.disposed||(super.dispose(),Reflect.ownKeys(this).forEach(et=>{if(typeof et=="string"&&et.endsWith("$")){const tt=this[et];isDisposable(tt)&&tt.dispose()}}))}ticker(et){const tt=Array.from(new Set(et)).sort(),rt=tt.join("|");let nt=this._tickerMap.get(rt);if(nt===void 0){const ot=new Ticker;nt={keys:tt,ticker:ot},this.registerDisposable(ot),this._tickerMap.set(rt,nt);for(const it of tt){const st=this[it];if(!isObservable(st)){console.warn("[ViewModel.ticker] not an observable, key:",it,"val:",st);continue}ot.observe(st)}}return nt}}class ReactMarkdownViewModel extends ViewModel{constructor(_e){super(),this.preferCodeWrap$=new State(!1);const{definitionMap:et,rendererMap:tt,showCodeLineno:rt,themeScheme:nt}=_e;this.definitionMap$=new State(et),this.rendererMap$=new State(tt),this.showCodeLineno$=new State(rt),this.themeScheme$=new State(nt)}}function isEqual$2(j,_e){if(j===null||_e===null||j===void 0||_e===void 0)return j===_e;if(typeof j!=typeof _e)return!1;if(Object.is(j,_e))return!0;if(typeof j=="object"){if(j.constructor!==_e.constructor)return!1;if(Array.isArray(j)){if(j.length!==_e.length)return!1;for(let tt=0;tt{rt.value=tt,rt.getSnapshot=_e,checkIfSnapshotChanged(rt)&&nt({inst:rt})},[j,tt,_e]),reactExports.useEffect(()=>(checkIfSnapshotChanged(rt)&&nt({inst:rt}),j(()=>{checkIfSnapshotChanged(rt)&&nt({inst:rt})})),[j]),reactExports.useDebugValue(tt),tt}function checkIfSnapshotChanged(j){const _e=j.getSnapshot,et=j.value;try{const tt=_e();return!Object.is(et,tt)}catch{return!0}}function useSyncExternalStore$1(j,_e,et){return _e()}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",shim=canUseDOM?useSyncExternalStore$2:useSyncExternalStore$1,builtin=reactExports.useSyncExternalStore,useSyncExternalStore=builtin||shim;function useStateValue(j){const{getSnapshot:_e,getServerSnapshot:et,subscribeStateChange:tt}=j;return useSyncExternalStore(tt,_e,et)}const NodesRenderer=j=>{const{nodes:_e}=j,{viewmodel:et}=useNodeRendererContext(),tt=useStateValue(et.rendererMap$);return!Array.isArray(_e)||_e.length<=0?jsxRuntimeExports.jsx(React.Fragment,{}):jsxRuntimeExports.jsx(NodesRendererInner,{nodes:_e,rendererMap:tt})};class NodesRendererInner extends React.Component{shouldComponentUpdate(_e){const et=this.props;return!lodashExports.isEqual(et.nodes,_e.nodes)||et.rendererMap!==_e.rendererMap}render(){const{nodes:_e,rendererMap:et}=this.props;return jsxRuntimeExports.jsx(React.Fragment,{children:_e.map((tt,rt)=>{const nt=`${tt.type}-${rt}`,ot=et[tt.type]??et._fallback;return jsxRuntimeExports.jsx(ot,{...tt},nt)})})}}var TokenizerType;(function(j){j.BLOCK="block",j.INLINE="inline"})(TokenizerType||(TokenizerType={}));var TokenizerPriority;(function(j){j[j.ATOMIC=10]="ATOMIC",j[j.FENCED_BLOCK=10]="FENCED_BLOCK",j[j.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",j[j.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",j[j.IMAGES=4]="IMAGES",j[j.LINKS=3]="LINKS",j[j.CONTAINING_INLINE=2]="CONTAINING_INLINE",j[j.SOFT_INLINE=1]="SOFT_INLINE",j[j.FALLBACK=-1]="FALLBACK"})(TokenizerPriority||(TokenizerPriority={}));class BaseInlineTokenizer{constructor(_e){Fr(this,"type",TokenizerType.INLINE);Fr(this,"name");Fr(this,"priority");this.name=_e.name,this.priority=_e.priority}toString(){return this.name}}function*genFindDelimiter(j){let _e=-1,et=null;for(;;){const[tt,rt]=yield et;_e===rt&&(et==null||et.startIndex>=tt)||(_e=rt,et=j(tt,rt))}}class BaseBlockTokenizer{constructor(_e){Fr(this,"type",TokenizerType.BLOCK);Fr(this,"name");Fr(this,"priority");this.name=_e.name,this.priority=_e.priority}extractPhrasingContentLines(_e){return null}buildBlockToken(_e,et){return null}toString(){return this.name}}function calcStartPoint(j,_e){const{line:et,column:tt,offset:rt}=j[_e];return{line:et,column:tt,offset:rt}}function calcEndPoint(j,_e){const{line:et,column:tt,offset:rt}=j[_e];return{line:et,column:tt+1,offset:rt+1}}function calcPositionFromPhrasingContentLines(j){const _e=j[0],et=j[j.length-1];return{start:calcStartPoint(_e.nodePoints,_e.startIndex),end:calcEndPoint(et.nodePoints,et.endIndex-1)}}function mergeContentLinesFaithfully(j,_e=0,et=j.length){if(_e>=et||_e<0||et>j.length)return[];const tt=[];for(let rt=_e;rt=et||_e<0||et>j.length)return[];for(let st=_e;st+1=0;--it){const st=rt[it];if(!isWhitespaceCharacter(st.codePoint))break}for(let st=ot;st<=it;++st)tt.push(rt[st]);return tt}function encodeLinkDestination(j){let _e=j;for(;;)try{const et=decodeURIComponent(_e);if(et===_e)break;_e=et}catch{break}return encodeURI(_e)}function resolveLabelToIdentifier(j){const _e=j.trim().replace(/\s+/gu," ").toLowerCase();return foldCase(_e)}function resolveLinkLabelAndIdentifier(j,_e,et){const tt=calcStringFromNodePoints(j,_e,et,!0);if(tt.length<=0)return null;const rt=resolveLabelToIdentifier(tt);return{label:tt,identifier:rt}}function eatLinkLabel(j,_e,et){let tt=_e+1;const rt=Math.min(tt+1e3,et);for(;tt_e;--et){const tt=j[et];if(tt.firstNonWhitespaceIndexet?[]:j.slice(_e,et+1)}const prefix$2="Invariant failed";function invariant$1(j,_e){if(!j)throw new Error(prefix$2)}const createBlockContentProcessor=(j,_e)=>{const et={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},tt=[];tt.push({hook:{isContainingBlock:!0},token:et});let rt=0;const nt=ft=>{for(let pt=rt;pt>=0;--pt){const gt=tt[pt];gt.token.position.end={...ft}}},ot=(ft,pt)=>{if(pt.length<=0)return null;const gt=j.filter(bt=>bt!==ft),mt=createBlockContentProcessor(gt,_e);for(const bt of pt)mt.consume(bt);return mt},it=()=>{const ft=tt.pop();if(ft!=null){if(tt.length>0){const pt=tt[tt.length-1];if(ft.hook.onClose!=null){const gt=ft.hook.onClose(ft.token);if(gt!=null)switch(gt.status){case"closingAndRollback":{const mt=ot(ft.hook,gt.lines);if(mt==null)break;const bt=mt.done();pt.token.children.push(...bt.children);break}case"failedAndRollback":{pt.token.children.pop();const mt=ot(ft.hook,gt.lines);if(mt==null)break;const bt=mt.done();pt.token.children.push(...bt.children);break}}}}return rt>=tt.length&&(rt=tt.length-1),ft}},st=ft=>{for(;tt.length>ft;)it()},lt=(ft,pt,gt)=>{st(rt+1),tt[rt].token.children.push(pt),nt(pt.position.end),rt+=1,tt.push({hook:ft,token:pt}),gt&&it()},ut=(ft,pt,gt)=>{const mt=ot(ft,pt);if(mt==null)return!1;const bt=mt.shallowSnapshot(),_t=bt[0];_t.token.children!=null&>.token.children.push(..._t.token.children),nt(_t.token.position.end);for(let xt=1;xt{const{nodePoints:pt,startIndex:gt,endIndex:mt}=ft;let{firstNonWhitespaceIndex:bt,countOfPrecedeSpaces:_t,startIndex:xt}=ft;const yt=()=>({nodePoints:pt,startIndex:xt,endIndex:mt,firstNonWhitespaceIndex:bt,countOfPrecedeSpaces:_t}),Et=(It,Nt)=>{if(invariant$1(xt<=It),Nt){const Ot=calcEndPoint(pt,It-1);nt(Ot)}if(xt!==It)for(xt=It,_t=0,bt=It;bt{const{token:Ot}=tt[rt],jt=It.eatOpener(Nt,Ot);if(jt==null)return!1;invariant$1(jt.nextIndex>xt,`[consumeNewOpener] The marker of the new data node cannot be empty. - tokenizer(${jt.token._tokenizer})`),Et(jt.nextIndex,!1);const Mt=jt.token;return Mt._tokenizer=It.name,lt(It,Mt,!!jt.saturated),!0},Tt=(It,Nt)=>{if(It.eatAndInterruptPreviousSibling==null)return!1;const{hook:Ot,token:jt}=tt[rt],{token:Mt}=tt[rt-1];if(It.priority<=Ot.priority)return!1;const Rt=It.eatAndInterruptPreviousSibling(Nt,jt,Mt);if(Rt==null)return!1;st(rt),Mt.children.pop(),Rt.remainingSibling!=null&&(Array.isArray(Rt.remainingSibling)?Mt.children.push(...Rt.remainingSibling):Mt.children.push(Rt.remainingSibling)),Et(Rt.nextIndex,!1);const Lt=Rt.token;return Lt._tokenizer=It.name,lt(It,Lt,!!Rt.saturated),!0},kt=()=>{if(rt=1,tt.length<2)return;let{token:It}=tt[rt-1];for(;xtPt!==Ot&&Tt(Pt,jt)))break;const Mt=Ot.eatContinuationText==null?{status:"notMatched"}:Ot.eatContinuationText(jt,Nt.token,It);let Rt=!1,Lt=!1;switch(Mt.status){case"failedAndRollback":{if(It.children.pop(),tt.length=rt,rt-=1,Mt.lines.length>0){const Pt=tt[rt];if(ut(Ot,Mt.lines,Pt)){Lt=!0;break}}Rt=!0;break}case"closingAndRollback":{if(st(rt),Mt.lines.length>0){const Pt=tt[rt];if(ut(Ot,Mt.lines,Pt)){Lt=!0;break}}Rt=!0;break}case"notMatched":{rt-=1,Rt=!0;break}case"closing":{Et(Mt.nextIndex,!0),rt-=1,Rt=!0;break}case"opening":{Et(Mt.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${Mt.status}).`)}if(Rt)break;Lt||(rt+=1,It=Nt.token)}},$t=()=>{if(!(xt>=mt)){if(rt=4)return}else rt=tt.length-1;for(;xt{if(xt>=mt||rt+1>=tt.length)return!1;const{hook:It,token:Nt}=tt[tt.length-1];if(It.eatLazyContinuationText==null)return!1;const{token:Ot}=tt[tt.length-2],jt=yt(),Mt=It.eatLazyContinuationText(jt,Nt,Ot);switch(Mt.status){case"notMatched":return!1;case"opening":return rt=tt.length-1,Et(Mt.nextIndex,!0),rt=tt.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${Mt.status}).`)}};if(kt(),$t(),Ct()||st(rt+1),_e!=null&&xt=mt)},done:()=>{for(;tt.length>1;)it();return et},shallowSnapshot:()=>[...tt]}},createSinglePriorityDelimiterProcessor=()=>{let j=0;const _e=[],et=[],tt=[],rt=ct=>{let dt=ct-1;for(;dt>=0&&et[dt].inactive;)dt-=1;et.length=dt+1},nt=(ct,dt)=>{et.push({hook:ct,delimiter:dt,inactive:!1,tokenStackIndex:tt.length})},ot=(ct,dt)=>{if(et.length<=0)return null;let ft=null;for(let pt=et.length-1;pt>=0;--pt){if(ft=et[pt],ft.inactive||ft.hook!==ct)continue;const gt=ft.delimiter,mt=ct.isDelimiterPair(gt,dt,_e);if(mt.paired)return gt;if(!mt.closer)return null}return null},it=(ct,dt)=>{if(et.length<=0)return dt;let ft,pt=dt,gt=[];for(let mt=et.length-1;mt>=0;--mt){const bt=et[mt];if(bt.hook!==ct||bt.inactive)continue;const _t=bt.tokenStackIndex;for(_t0){for(const St of Et)St._tokenizer=ct.name;gt.unshift(...Et)}ft=void 0,bt.inactive=!0}if(!xt.closer){const Et=ct.processSingleDelimiter(pt);if(Et.length>0){for(const St of Et)St._tokenizer=ct.name;gt.push(...Et)}pt=void 0}break}const yt=ct.processDelimiterPair(ft,pt,gt);{for(const Et of yt.tokens)Et._tokenizer==null&&(Et._tokenizer=ct.name);gt=yt.tokens}ft=yt.remainOpenerDelimiter,pt=yt.remainCloserDelimiter,rt(mt),mt=Math.min(mt,et.length),ft!=null&&nt(ct,ft)}if(pt==null||pt.type==="full")break}if(tt.push(...gt),pt==null)return null;if(pt.type==="full"||pt.type==="closer"){const mt=ct.processSingleDelimiter(pt);for(const bt of mt)bt._tokenizer=ct.name,tt.push(bt);return null}return pt};return{process:(ct,dt)=>{for(;j<_e.length;++j){const ft=_e[j];if(ft.startIndex>=dt.endIndex)break;ft.startIndex>=dt.startIndex||tt.push(ft)}switch(dt.type){case"opener":{nt(ct,dt);break}case"both":{const ft=it(ct,dt);ft!=null&&nt(ct,ft);break}case"closer":{it(ct,dt);break}case"full":{const ft=ct.processSingleDelimiter(dt);for(const pt of ft)pt._tokenizer=ct.name,tt.push(pt);break}default:throw new TypeError(`Unexpected delimiter type(${dt.type}) from ${ct.name}.`)}},done:()=>{const ct=[];for(const{delimiter:ft,hook:pt}of et){const gt=pt.processSingleDelimiter(ft);for(const mt of gt)mt._tokenizer=pt.name,ct.push(mt)}if(et.length=0,ct.length>0){const ft=mergeSortedTokenStack(tt,ct);tt.length=0,tt.push(...ft)}return tt.concat(_e.slice(j))},reset:ct=>{_e.length=ct.length;for(let dt=0;dt{if(j.length<=0)return _e;if(_e.length<=0)return j;const et=[];let tt=0,rt=0;for(;tt{const et=(nt,ot,it)=>{let st=[],lt=null;const ut=[nt,ot];for(const dt of it){const ft=dt.findDelimiter(ut);if(ft!=null){if(lt!=null){if(ft.startIndex>lt)continue;ft.startIndex1){let dt=0;for(const ft of st){const pt=ft.delimiter.type;if(pt==="full")return{items:[ft],nextIndex:ft.delimiter.endIndex};(pt==="both"||pt==="closer")&&(dt+=1)}if(dt>1){let ft=-1,pt=-1;for(let mt=0;mt-1?[st[ft]]:st.filter(mt=>mt.delimiter.type!=="closer"),nextIndex:ct}}}return{items:st,nextIndex:ct}},tt=createSinglePriorityDelimiterProcessor();return{process:(nt,ot,it)=>{let st=nt;for(let lt=_e;lt{const tt=[];for(let rt=0;rt{let dt=ot.process(lt,ut,ct);return dt=et(dt,ut,ct),dt}}),st=j[rt].priority;for(;rt{let et;const tt=j.match(_e);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(rt,nt,ot)=>({tokens:ot}),processSingleDelimiter:()=>[],...tt,name:j.name,priority:j.priority,findDelimiter:rt=>et.next(rt).value,reset:()=>{et=tt.findDelimiter(),et.next()}}};function createProcessor(j){const{inlineTokenizers:_e,inlineTokenizerMap:et,blockTokenizers:tt,blockTokenizerMap:rt,blockFallbackTokenizer:nt,inlineFallbackTokenizer:ot,shouldReservePosition:it,presetDefinitions:st,presetFootnoteDefinitions:lt,formatUrl:ut}=j;let ct=!1;const dt=new Set,ft=new Set;let pt=[],gt=-1,mt=-1;const bt=Object.freeze({matchBlockApi:{extractPhrasingLines:$t,rollbackPhrasingLines:Ct,registerDefinitionIdentifier:Lt=>{ct&&dt.add(Lt)},registerFootnoteDefinitionIdentifier:Lt=>{ct&&ft.add(Lt)}},parseBlockApi:{shouldReservePosition:it,formatUrl:ut,processInlines:jt,parseBlockTokens:Ot},matchInlineApi:{hasDefinition:Lt=>dt.has(Lt),hasFootnoteDefinition:Lt=>ft.has(Lt),getNodePoints:()=>pt,getBlockStartIndex:()=>gt,getBlockEndIndex:()=>mt,resolveFallbackTokens:It},parseInlineApi:{shouldReservePosition:it,calcPosition:Lt=>({start:calcStartPoint(pt,Lt.startIndex),end:calcEndPoint(pt,Lt.endIndex-1)}),formatUrl:ut,getNodePoints:()=>pt,hasDefinition:Lt=>dt.has(Lt),hasFootnoteDefinition:Lt=>ft.has(Lt),parseInlineTokens:Rt}}),_t=tt.map(Lt=>({...Lt.match(bt.matchBlockApi),name:Lt.name,priority:Lt.priority})),xt=new Map(Array.from(rt.entries()).map(Lt=>[Lt[0],Lt[1].parse(bt.parseBlockApi)])),yt=nt?{...nt.match(bt.matchBlockApi),name:nt.name,priority:nt.priority}:null,Et=createProcessorHookGroups(_e,bt.matchInlineApi,It),St=new Map(Array.from(et.entries()).map(Lt=>[Lt[0],Lt[1].parse(bt.parseInlineApi)])),Tt=createPhrasingContentProcessor(Et,0);return{process:kt};function kt(Lt){dt.clear(),ft.clear(),ct=!0;const Pt=Nt(Lt);ct=!1;for(const Yt of st)dt.add(Yt.identifier);for(const Yt of lt)ft.add(Yt.identifier);const Gt=Ot(Pt.children);return it?{type:"root",position:Pt.position,children:Gt}:{type:"root",children:Gt}}function $t(Lt){const Pt=rt.get(Lt._tokenizer);return(Pt==null?void 0:Pt.extractPhrasingContentLines(Lt))??null}function Ct(Lt,Pt){if(Pt!=null){const qt=rt.get(Pt._tokenizer);if(qt!==void 0&&qt.buildBlockToken!=null){const Yt=qt.buildBlockToken(Lt,Pt);if(Yt!==null)return Yt._tokenizer=qt.name,[Yt]}}return Nt([Lt]).children}function It(Lt,Pt,Gt){if(ot==null)return Lt;let qt=Pt;const Yt=[];for(const Xt of Lt){if(qtot.priority)break}nt<0||nt>=_e.length?_e.push(tt):_e.splice(nt,0,tt)}_unregisterTokenizer(_e,et,tt){var it,st;const rt=typeof tt=="string"?tt:tt.name;if(!et.delete(rt))return;((it=this.blockFallbackTokenizer)==null?void 0:it.name)===rt&&(this.blockFallbackTokenizer=null),((st=this.inlineFallbackTokenizer)==null?void 0:st.name)===rt&&(this.inlineFallbackTokenizer=null);const ot=_e.findIndex(lt=>lt.name===rt);ot>=0&&_e.splice(ot,1)}}function eatEmailAddress(j,_e,et){let tt=_e;for(;tt=et||j[tt].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(j[tt+1].codePoint))return{valid:!1,nextIndex:tt+1};for(tt=eatAddressPart0(j,tt+2,et);tt+1=_e?rt+1:_e}function eatAbsoluteUri(j,_e,et){const tt=eatAutolinkSchema(j,_e,et);let{nextIndex:rt}=tt;if(!tt.valid||rt>=et||j[rt].codePoint!==AsciiCodePoint.COLON)return{valid:!1,nextIndex:rt};for(rt+=1;rt32?{valid:!1,nextIndex:tt+1}:{valid:!0,nextIndex:tt}}const helpers=[{contentType:"uri",eat:eatAbsoluteUri},{contentType:"email",eat:eatEmailAddress}],match$l=function(j){return{findDelimiter:()=>genFindDelimiter(_e),processSingleDelimiter:et};function _e(tt,rt){const nt=j.getNodePoints();for(let ot=tt;ot_e.map(et=>{const tt=j.getNodePoints();let rt=calcStringFromNodePoints(tt,et.startIndex+1,et.endIndex-1);et.contentType==="email"&&(rt="mailto:"+rt);const nt=j.formatUrl(rt),ot=j.parseInlineTokens(et.children);return j.shouldReservePosition?{type:LinkType,position:j.calcPosition(et),url:nt,children:ot}:{type:LinkType,url:nt,children:ot}})}},uniqueName$j="@yozora/tokenizer-autolink";class AutolinkTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$j,priority:et.priority??TokenizerPriority.ATOMIC});Fr(this,"match",match$l);Fr(this,"parse",parse$l)}}const match$k=function(){return{isContainingBlock:!0,eatOpener:j,eatAndInterruptPreviousSibling:_e,eatContinuationText:et};function j(tt){if(tt.countOfPrecedeSpaces>=4)return null;const{nodePoints:rt,startIndex:nt,endIndex:ot,firstNonWhitespaceIndex:it}=tt;if(it>=ot||rt[it].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;let st=it+1;return st=4||lt>=st||ot[lt].codePoint!==AsciiCodePoint.CLOSE_ANGLE?nt.nodeType===BlockquoteType?{status:"opening",nextIndex:it}:{status:"notMatched"}:{status:"opening",nextIndex:lt+1_e.map(et=>{const tt=j.parseBlockTokens(et.children);return j.shouldReservePosition?{type:BlockquoteType,position:et.position,children:tt}:{type:BlockquoteType,children:tt}})}},uniqueName$i="@yozora/tokenizer-blockquote";class BlockquoteTokenizer extends BaseBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName$i,priority:et.priority??TokenizerPriority.CONTAINING_BLOCK});Fr(this,"match",match$k);Fr(this,"parse",parse$k)}}const uniqueName$h="@yozora/tokenizer-break";var BreakTokenMarkerType;(function(j){j.BACKSLASH="backslash",j.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(BreakTokenMarkerType||(BreakTokenMarkerType={}));const match$j=function(j){return{findDelimiter:()=>genFindDelimiter(_e),processSingleDelimiter:et};function _e(tt,rt){const nt=j.getNodePoints();for(let ot=tt+1;ot=tt&&nt[ut].codePoint===AsciiCodePoint.BACKSLASH;ut-=1);ot-ut&1||(st=ot-1,lt=BreakTokenMarkerType.BACKSLASH);break}case AsciiCodePoint.SPACE:{let ut=ot-2;for(;ut>=tt&&nt[ut].codePoint===AsciiCodePoint.SPACE;ut-=1);ot-ut>2&&(st=ut+1,lt=BreakTokenMarkerType.MORE_THAN_TWO_SPACES);break}}if(!(st==null||lt==null))return{type:"full",markerType:lt,startIndex:st,endIndex:ot}}return null}function et(tt){return[{nodeType:BreakType,startIndex:tt.startIndex,endIndex:tt.endIndex}]}},parse$j=function(j){return{parse:_e=>_e.map(et=>j.shouldReservePosition?{type:BreakType,position:j.calcPosition(et)}:{type:BreakType})}};class BreakTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$h,priority:et.priority??TokenizerPriority.SOFT_INLINE});Fr(this,"match",match$j);Fr(this,"parse",parse$j)}}function eatAndCollectLinkDestination(j,_e,et,tt){let rt=_e;tt==null&&(tt={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const nt=eatOptionalWhitespaces(j,rt,et);if(nt>=et)return{nextIndex:-1,state:tt};if(tt.nodePoints.length<=0){rt=nt;const ot=j[rt];ot.codePoint===AsciiCodePoint.OPEN_ANGLE&&(rt+=1,tt.hasOpenAngleBracket=!0,tt.nodePoints.push(ot))}if(tt.hasOpenAngleBracket){for(;rt=et)return{nextIndex:-1,state:tt};if(tt.nodePoints.length<=0){rt=nt;const ot=j[rt];if(ot.codePoint!==AsciiCodePoint.OPEN_BRACKET)return{nextIndex:-1,state:tt};rt+=1,tt.nodePoints.push(ot)}for(;rt=et)return{nextIndex:-1,state:tt};if(tt.nodePoints.length<=0){rt=nt;const ot=j[rt];switch(ot.codePoint){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:case AsciiCodePoint.OPEN_PARENTHESIS:tt.wrapSymbol=ot.codePoint,tt.nodePoints.push(ot),rt+=1;break;default:return{nextIndex:-1,state:tt}}}if(tt.wrapSymbol==null)return{nextIndex:-1,state:tt};switch(tt.wrapSymbol){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(;rt=et||j[rt+1].codePoint===VirtualCodePoint.LINE_END){tt.nodePoints.push(ot),tt.saturated=!0;break}return{nextIndex:-1,state:tt};default:tt.nodePoints.push(ot)}}break}}return{nextIndex:et,state:tt}}const match$i=function(j){return{isContainingBlock:!1,eatOpener:_e,eatContinuationText:et,onClose:tt};function _e(rt){if(rt.countOfPrecedeSpaces>=4)return null;const{nodePoints:nt,startIndex:ot,endIndex:it,firstNonWhitespaceIndex:st}=rt;if(st>=it)return null;let lt=st;const{nextIndex:ut,state:ct}=eatAndCollectLinkLabel(nt,lt,it,null);if(ut<0)return null;const dt=nt[ot].line,ft=()=>({nodeType:DefinitionType,position:{start:calcStartPoint(nt,ot),end:calcEndPoint(nt,it-1)},label:ct,destination:null,title:null,lineNoOfLabel:dt,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[rt]});if(!ct.saturated)return{token:ft(),nextIndex:it};if(ut<0||ut+1>=it||nt[ut].codePoint!==AsciiCodePoint.COLON)return null;if(lt=eatOptionalWhitespaces(nt,ut+1,it),lt>=it)return{token:ft(),nextIndex:it};const{nextIndex:pt,state:gt}=eatAndCollectLinkDestination(nt,lt,it,null);if(pt<0||!gt.saturated&&pt!==it)return null;if(lt=eatOptionalWhitespaces(nt,pt,it),lt>=it){const xt=ft();return xt.destination=gt,xt.lineNoOfDestination=dt,{token:xt,nextIndex:it}}if(lt===pt)return null;const{nextIndex:mt,state:bt}=eatAndCollectLinkTitle(nt,lt,it,null);if(mt>=0&&(lt=mt),lt=lt||ot[mt].codePoint!==AsciiCodePoint.COLON)return{status:"failedAndRollback",lines:nt.lines};ct=mt+1}if(nt.destination==null){if(ct=eatOptionalWhitespaces(ot,ct,lt),ct>=lt)return{status:"failedAndRollback",lines:nt.lines};const{nextIndex:mt,state:bt}=eatAndCollectLinkDestination(ot,ct,lt,null);if(mt<0||!bt.saturated)return{status:"failedAndRollback",lines:nt.lines};if(ct=eatOptionalWhitespaces(ot,mt,lt),ct>=lt)return nt.destination=bt,nt.lines.push(rt),{status:"opening",nextIndex:lt};nt.lineNoOfDestination=ut,nt.lineNoOfTitle=ut}nt.lineNoOfTitle<0&&(nt.lineNoOfTitle=ut);const{nextIndex:dt,state:ft}=eatAndCollectLinkTitle(ot,ct,lt,nt.title);if(nt.title=ft,dt<0||ft.nodePoints.length<=0||ft.saturated&&eatOptionalWhitespaces(ot,dt,lt)_e.map(et=>{const tt=et._label,rt=et._identifier,nt=et.destination.nodePoints,ot=nt[0].codePoint===AsciiCodePoint.OPEN_ANGLE?calcEscapedStringFromNodePoints(nt,1,nt.length-1,!0):calcEscapedStringFromNodePoints(nt,0,nt.length,!0),it=j.formatUrl(ot),st=et.title==null?void 0:calcEscapedStringFromNodePoints(et.title.nodePoints,1,et.title.nodePoints.length-1);return j.shouldReservePosition?{type:DefinitionType,position:et.position,identifier:rt,label:tt,url:it,title:st}:{type:DefinitionType,identifier:rt,label:tt,url:it,title:st}})}},uniqueName$g="@yozora/tokenizer-definition";class DefinitionTokenizer extends BaseBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName$g,priority:et.priority??TokenizerPriority.ATOMIC});Fr(this,"match",match$i);Fr(this,"parse",parse$i)}}const match$h=function(j){return{findDelimiter:()=>genFindDelimiter(_e),isDelimiterPair:et,processDelimiterPair:tt};function _e(rt,nt){const ot=j.getNodePoints(),it=j.getBlockStartIndex(),st=j.getBlockEndIndex(),lt=(ct,dt)=>{if(dt===st)return!1;if(dt===nt)return!0;const ft=ot[dt];if(isUnicodeWhitespaceCharacter(ft.codePoint))return!1;if(!isPunctuationCharacter(ft.codePoint)||ct<=rt)return!0;const pt=ot[ct-1];return isUnicodeWhitespaceCharacter(pt.codePoint)||isPunctuationCharacter(pt.codePoint)},ut=(ct,dt)=>{if(ct===it)return!1;if(ct===rt)return!0;const ft=ot[ct-1];if(isUnicodeWhitespaceCharacter(ft.codePoint))return!1;if(!isPunctuationCharacter(ft.codePoint)||dt>=nt)return!0;const pt=ot[dt];return isUnicodeWhitespaceCharacter(pt.codePoint)||isPunctuationCharacter(pt.codePoint)};for(let ct=rt;ctrt&&!isPunctuationCharacter(ot[ft-1].codePoint)&&(bt=!1);const yt=ot[pt];isPunctuationCharacter(yt.codePoint)||(_t=!1)}if(!bt&&!_t)break;const xt=pt-ft;return{type:bt?_t?"both":"opener":"closer",startIndex:ft,endIndex:pt,thickness:xt,originalThickness:xt}}}}return null}function et(rt,nt){const ot=j.getNodePoints();return ot[rt.startIndex].codePoint!==ot[nt.startIndex].codePoint||(rt.type==="both"||nt.type==="both")&&(rt.originalThickness+nt.originalThickness)%3===0&&rt.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function tt(rt,nt,ot){let it=1;rt.thickness>1&&nt.thickness>1&&(it=2),ot=j.resolveInternalTokens(ot,rt.endIndex,nt.startIndex);const st={nodeType:it===1?EmphasisType:StrongType,startIndex:rt.endIndex-it,endIndex:nt.startIndex+it,thickness:it,children:ot},lt=rt.thickness>it?{type:rt.type,startIndex:rt.startIndex,endIndex:rt.endIndex-it,thickness:rt.thickness-it,originalThickness:rt.originalThickness}:void 0,ut=nt.thickness>it?{type:nt.type,startIndex:nt.startIndex+it,endIndex:nt.endIndex,thickness:nt.thickness-it,originalThickness:nt.originalThickness}:void 0;return{tokens:[st],remainOpenerDelimiter:lt,remainCloserDelimiter:ut}}},parse$h=function(j){return{parse:_e=>_e.map(et=>{const tt=j.parseInlineTokens(et.children);return j.shouldReservePosition?{type:et.nodeType,position:j.calcPosition(et),children:tt}:{type:et.nodeType,children:tt}})}},uniqueName$f="@yozora/tokenizer-emphasis";class EmphasisTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$f,priority:et.priority??TokenizerPriority.CONTAINING_INLINE});Fr(this,"match",match$h);Fr(this,"parse",parse$h)}}function match$g(j){const{nodeType:_e,markers:et,markersRequired:tt,checkInfoString:rt}=this;return{isContainingBlock:!1,eatOpener:nt,eatAndInterruptPreviousSibling:ot,eatContinuationText:it};function nt(st){if(st.countOfPrecedeSpaces>=4)return null;const{endIndex:lt,firstNonWhitespaceIndex:ut}=st;if(ut+tt-1>=lt)return null;const{nodePoints:ct,startIndex:dt}=st,ft=ct[ut].codePoint;if(et.indexOf(ft)<0)return null;const pt=eatOptionalCharacters(ct,ut+1,lt,ft),gt=pt-ut;if(gt=lt.markerCount){for(;mt=dt)return{status:"closing",nextIndex:dt}}}const gt=Math.min(ct+lt.indent,ft,dt-1);return lt.lines.push({nodePoints:ut,startIndex:gt,endIndex:dt,firstNonWhitespaceIndex:ft,countOfPrecedeSpaces:pt}),{status:"opening",nextIndex:dt}}}class FencedBlockTokenizer extends BaseBlockTokenizer{constructor(et){super({name:et.name,priority:et.priority??TokenizerPriority.FENCED_BLOCK});Fr(this,"nodeType");Fr(this,"markers",[]);Fr(this,"markersRequired");Fr(this,"checkInfoString");Fr(this,"match",match$g);this.nodeType=et.nodeType,this.markers=et.markers,this.markersRequired=et.markersRequired,this.checkInfoString=et.checkInfoString}}const match$f=function(j){return{...match$g.call(this,j),isContainingBlock:!1}},parse$g=function(j){return{parse:_e=>_e.map(et=>{const tt=et.infoString;let rt=0;const nt=[];for(;rt0?ot:null,meta:it.length>0?it:null,value:lt}:{type:CodeType,lang:ot.length>0?ot:null,meta:it.length>0?it:null,value:lt}})}},uniqueName$e="@yozora/tokenizer-fenced-code";class FencedCodeTokenizer extends FencedBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName$e,priority:et.priority??TokenizerPriority.FENCED_BLOCK,nodeType:CodeType,markers:[AsciiCodePoint.BACKTICK,AsciiCodePoint.TILDE],markersRequired:3,checkInfoString:(tt,rt)=>{if(rt===AsciiCodePoint.BACKTICK){for(const nt of tt)if(nt.codePoint===AsciiCodePoint.BACKTICK)return!1}return!0}});Fr(this,"match",match$f);Fr(this,"parse",parse$g)}}const match$e=function(){return{isContainingBlock:!1,eatOpener:j,eatAndInterruptPreviousSibling:_e};function j(et){if(et.countOfPrecedeSpaces>=4)return null;const{nodePoints:tt,startIndex:rt,endIndex:nt,firstNonWhitespaceIndex:ot}=et;if(ot>=nt||tt[ot].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;const it=eatOptionalCharacters(tt,ot+1,nt,AsciiCodePoint.NUMBER_SIGN),st=it-ot;if(st>6||it+1_e.map(et=>{const{nodePoints:tt,firstNonWhitespaceIndex:rt,endIndex:nt}=et.line;let[ot,it]=calcTrimBoundaryOfCodePoints(tt,rt+et.depth,nt),st=0;for(let ft=it-1;ft>=ot&&tt[ft].codePoint===AsciiCodePoint.NUMBER_SIGN;--ft)st+=1;if(st>0){let ft=0,pt=it-1-st;for(;pt>=ot;--pt){const gt=tt[pt].codePoint;if(!isWhitespaceCharacter(gt))break;ft+=1}(ft>0||pt=et)return null;const rt=tt;let nt=j[tt].codePoint;if(!isAsciiLetter(nt)&&nt!==AsciiCodePoint.UNDERSCORE&&nt!==AsciiCodePoint.COLON)return null;for(tt=rt+1;ttlt&&(it.value={startIndex:lt,endIndex:ut});break}}if(it.value!=null)return{attribute:it,nextIndex:tt}}return{attribute:it,nextIndex:ot}}function eatHTMLTagName(j,_e,et){if(_e>=et||!isAsciiLetter(j[_e].codePoint))return null;let tt=_e;for(;tt=et)return et;const rt=j[_e].codePoint;return isWhitespaceCharacter(rt)||rt===AsciiCodePoint.CLOSE_ANGLE?_e+1:null}function eatEndCondition1(j,_e,et){for(let tt=_e;tt=et||j[nt].codePoint!==AsciiCodePoint.CLOSE_ANGLE){tt+=1;continue}const it=calcStringFromNodePoints(j,rt,nt,!0).toLowerCase();if(includedTags$1.includes(it))return nt}return null}function eatStartCondition2(j,_e,et){const tt=_e;return tt+2=et)return et;const rt=j[_e].codePoint;return isWhitespaceCharacter(rt)||rt===AsciiCodePoint.CLOSE_ANGLE?_e+1:rt===AsciiCodePoint.SLASH&&_e+1=et)return null;let nt=_e;if(rt){for(;nt=et)return null;j[nt].codePoint===AsciiCodePoint.SLASH&&(nt+=1)}else nt=eatOptionalWhitespaces(j,_e,et);if(nt>=et||j[nt].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;for(nt+=1;nt=4)return null;const{nodePoints:ot,startIndex:it,endIndex:st,firstNonWhitespaceIndex:lt}=nt;if(lt>=st||ot[lt].codePoint!==AsciiCodePoint.OPEN_ANGLE)return null;const ut=lt+1,ct=tt(ot,ut,st);if(ct==null)return null;const{condition:dt}=ct;let ft=!1;dt!==6&&dt!==7&&rt(ot,ct.nextIndex,st,dt)!=null&&(ft=!0);const pt=st;return{token:{nodeType:HtmlType,position:{start:calcStartPoint(ot,it),end:calcEndPoint(ot,pt-1)},condition:dt,lines:[nt]},nextIndex:pt,saturated:ft}}function _e(nt,ot){const it=j(nt);if(it==null||it.token.condition===7)return null;const{token:st,nextIndex:lt}=it;return{token:st,nextIndex:lt,remainingSibling:ot}}function et(nt,ot){const{nodePoints:it,endIndex:st,firstNonWhitespaceIndex:lt}=nt,ut=rt(it,lt,st,ot.condition);return ut===-1?{status:"notMatched"}:(ot.lines.push(nt),ut!=null?{status:"closing",nextIndex:st}:{status:"opening",nextIndex:st})}function tt(nt,ot,it){let st=null;if(ot>=it)return null;if(st=eatStartCondition2(nt,ot,it),st!=null)return{nextIndex:st,condition:2};if(st=eatStartCondition3(nt,ot,it),st!=null)return{nextIndex:st,condition:3};if(st=eatStartCondition4(nt,ot,it),st!=null)return{nextIndex:st,condition:4};if(st=eatStartCondition5(nt,ot,it),st!=null)return{nextIndex:st,condition:5};if(nt[ot].codePoint!==AsciiCodePoint.SLASH){const pt=ot,gt=eatHTMLTagName(nt,pt,it);if(gt==null)return null;const mt={startIndex:pt,endIndex:gt},_t=calcStringFromNodePoints(nt,mt.startIndex,mt.endIndex).toLowerCase();return st=eatStartCondition1(nt,mt.endIndex,it,_t),st!=null?{nextIndex:st,condition:1}:(st=eatStartCondition6(nt,mt.endIndex,it,_t),st!=null?{nextIndex:st,condition:6}:(st=eatStartCondition7(nt,mt.endIndex,it,_t,!0),st!=null?{nextIndex:st,condition:7}:null))}const lt=ot+1,ut=eatHTMLTagName(nt,lt,it);if(ut==null)return null;const ct={startIndex:lt,endIndex:ut},ft=calcStringFromNodePoints(nt,ct.startIndex,ct.endIndex).toLowerCase();return st=eatStartCondition6(nt,ct.endIndex,it,ft),st!=null?{nextIndex:st,condition:6}:(st=eatStartCondition7(nt,ct.endIndex,it,ft,!1),st!=null?{nextIndex:st,condition:7}:null)}function rt(nt,ot,it,st){switch(st){case 1:return eatEndCondition1(nt,ot,it)==null?null:it;case 2:return eatEndCondition2(nt,ot,it)==null?null:it;case 3:return eatEndCondition3(nt,ot,it)==null?null:it;case 4:return eatEndCondition4(nt,ot,it)==null?null:it;case 5:return eatEndCondition5(nt,ot,it)==null?null:it;case 6:case 7:return eatOptionalWhitespaces(nt,ot,it)>=it?-1:null}}},parse$e=function(j){return{parse:_e=>_e.map(et=>{const tt=mergeContentLinesFaithfully(et.lines);return j.shouldReservePosition?{type:"html",position:et.position,value:calcStringFromNodePoints(tt)}:{type:"html",value:calcStringFromNodePoints(tt)}})}},uniqueName$c="@yozora/tokenizer-html-block";class HtmlBlockTokenizer extends BaseBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName$c,priority:et.priority??TokenizerPriority.ATOMIC});Fr(this,"match",match$d);Fr(this,"parse",parse$e)}}function eatHtmlInlineCDataDelimiter(j,_e,et){let tt=_e;if(tt+11>=et||j[tt+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||j[tt+2].codePoint!==AsciiCodePoint.OPEN_BRACKET||j[tt+3].codePoint!==AsciiCodePoint.UPPERCASE_C||j[tt+4].codePoint!==AsciiCodePoint.UPPERCASE_D||j[tt+5].codePoint!==AsciiCodePoint.UPPERCASE_A||j[tt+6].codePoint!==AsciiCodePoint.UPPERCASE_T||j[tt+7].codePoint!==AsciiCodePoint.UPPERCASE_A||j[tt+8].codePoint!==AsciiCodePoint.OPEN_BRACKET)return null;const rt=tt+9;for(tt=rt;tt=et)return null;if(j[tt+1].codePoint===AsciiCodePoint.CLOSE_BRACKET&&j[tt+2].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:_e,endIndex:tt+3,htmlType:"cdata"}}return null}function eatHtmlInlineClosingDelimiter(j,_e,et){let tt=_e;if(tt+3>=et||j[tt+1].codePoint!==AsciiCodePoint.SLASH)return null;const rt=tt+2,nt=eatHTMLTagName(j,rt,et);return nt==null||(tt=eatOptionalWhitespaces(j,nt,et),tt>=et||j[tt].codePoint!==AsciiCodePoint.CLOSE_ANGLE)?null:{type:"full",startIndex:_e,endIndex:tt+1,htmlType:"closing",tagName:{startIndex:rt,endIndex:nt}}}function eatHtmlInlineCommentDelimiter(j,_e,et){let tt=_e;if(tt+6>=et||j[tt+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||j[tt+2].codePoint!==AsciiCodePoint.MINUS_SIGN||j[tt+3].codePoint!==AsciiCodePoint.MINUS_SIGN||j[tt+4].codePoint===AsciiCodePoint.CLOSE_ANGLE||j[tt+4].codePoint===AsciiCodePoint.MINUS_SIGN&&j[tt+5].codePoint===AsciiCodePoint.CLOSE_ANGLE)return null;const rt=tt+4;for(tt=rt;tt2||tt+2>=et||j[tt+2].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:_e,endIndex:tt+3,htmlType:"comment"}}return null}function eatHtmlInlineDeclarationDelimiter(j,_e,et){let tt=_e;if(tt+4>=et||j[tt+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK)return null;const rt=tt+2;for(tt=rt;tt=et||!isWhitespaceCharacter(j[tt].codePoint))return null;const nt=tt,ot=tt+1;for(tt=ot;tt=et||j[tt+1].codePoint!==AsciiCodePoint.QUESTION_MARK)return null;const rt=tt+2;for(tt=rt;tt=et)return null;if(j[tt+1].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:_e,endIndex:tt+2,htmlType:"instruction"}}return null}function eatHtmlInlineTokenOpenDelimiter(j,_e,et){let tt=_e;if(tt+2>=et)return null;const rt=tt+1,nt=eatHTMLTagName(j,rt,et);if(nt==null)return null;const ot=[];for(tt=nt;tt=et)return null;let it=!1;return j[tt].codePoint===AsciiCodePoint.SLASH&&(tt+=1,it=!0),tt>=et||j[tt].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:_e,endIndex:tt+1,htmlType:"open",tagName:{startIndex:rt,endIndex:nt},attributes:ot,selfClosed:it}}const match$c=function(j){return{findDelimiter:()=>genFindDelimiter(_e),processSingleDelimiter:et};function _e(tt,rt){const nt=j.getNodePoints();for(let ot=tt;ot=rt));++ot)switch(nt[ot].codePoint){case AsciiCodePoint.BACKSLASH:ot+=1;break;case AsciiCodePoint.OPEN_ANGLE:{const st=tryToEatDelimiter(nt,ot,rt);if(st!=null)return st;break}}return null}function et(tt){return[{...tt,nodeType:HtmlType}]}};function tryToEatDelimiter(j,_e,et){let tt=null;return tt=eatHtmlInlineTokenOpenDelimiter(j,_e,et),tt!=null||(tt=eatHtmlInlineClosingDelimiter(j,_e,et),tt!=null)||(tt=eatHtmlInlineCommentDelimiter(j,_e,et),tt!=null)||(tt=eatHtmlInlineInstructionDelimiter(j,_e,et),tt!=null)||(tt=eatHtmlInlineDeclarationDelimiter(j,_e,et),tt!=null)||(tt=eatHtmlInlineCDataDelimiter(j,_e,et)),tt}const parse$d=function(j){return{parse:_e=>_e.map(et=>{const{startIndex:tt,endIndex:rt}=et,nt=j.getNodePoints(),ot=calcStringFromNodePoints(nt,tt,rt);return j.shouldReservePosition?{type:HtmlType,position:j.calcPosition(et),value:ot}:{type:HtmlType,value:ot}})}},uniqueName$b="@yozora/tokenizer-html-inline";class HtmlInlineTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$b,priority:et.priority??TokenizerPriority.ATOMIC});Fr(this,"match",match$c);Fr(this,"parse",parse$d)}}const checkBalancedBracketsStatus=(j,_e,et,tt)=>{let rt=j,nt=0;const ot=()=>{switch(tt[rt].codePoint){case AsciiCodePoint.BACKSLASH:rt+=1;break;case AsciiCodePoint.OPEN_BRACKET:nt+=1;break;case AsciiCodePoint.CLOSE_BRACKET:nt-=1;break}};for(const it of et)if(!(it.startIndex_e)break;for(;rt0?1:0};function eatLinkDestination(j,_e,et){if(_e>=et)return-1;let tt=_e;switch(j[tt].codePoint){case AsciiCodePoint.OPEN_ANGLE:{for(tt+=1;tt=et)return-1;let tt=_e;const rt=j[tt].codePoint;switch(rt){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(tt+=1;ttnt.line+1)return-1;break}}}break}case AsciiCodePoint.OPEN_PARENTHESIS:{let nt=1;for(tt+=1;ttot.line+1)return-1;break}case AsciiCodePoint.OPEN_PARENTHESIS:nt+=1;break;case AsciiCodePoint.CLOSE_PARENTHESIS:if(nt-=1,nt===0)return tt+1;break}}break}case AsciiCodePoint.CLOSE_PARENTHESIS:return tt;default:return-1}return-1}const match$b=function(j){return{findDelimiter:()=>genFindDelimiter(_e),isDelimiterPair:et,processDelimiterPair:tt};function _e(rt,nt){const ot=j.getNodePoints(),it=j.getBlockEndIndex();for(let st=rt;st=nt||ot[st+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const ut=eatOptionalWhitespaces(ot,st+2,it),ct=eatLinkDestination(ot,ut,it);if(ct<0)break;const dt=eatOptionalWhitespaces(ot,ct,it),ft=eatLinkTitle(ot,dt,it);if(ft<0)break;const pt=st,gt=eatOptionalWhitespaces(ot,ft,it)+1;if(gt>it||ot[gt-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:pt,endIndex:gt,destinationContent:ut_e.map(et=>{const tt=j.getNodePoints();let rt="";if(et.destinationContent!=null){let{startIndex:st,endIndex:lt}=et.destinationContent;tt[st].codePoint===AsciiCodePoint.OPEN_ANGLE&&(st+=1,lt-=1);const ut=calcEscapedStringFromNodePoints(tt,st,lt,!0);rt=j.formatUrl(ut)}let nt;if(et.titleContent!=null){const{startIndex:st,endIndex:lt}=et.titleContent;nt=calcEscapedStringFromNodePoints(tt,st+1,lt-1)}const ot=j.parseInlineTokens(et.children);return j.shouldReservePosition?{type:LinkType,position:j.calcPosition(et),url:rt,title:nt,children:ot}:{type:LinkType,url:rt,title:nt,children:ot}})}},uniqueName$a="@yozora/tokenizer-link";class LinkTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$a,priority:et.priority??TokenizerPriority.LINKS});Fr(this,"match",match$b);Fr(this,"parse",parse$c)}}function calcImageAlt(j){return j.map(_e=>_e.value!=null?_e.value:_e.alt!=null?_e.alt:_e.children!=null?calcImageAlt(_e.children):"").join("")}const match$a=function(j){return{findDelimiter:()=>genFindDelimiter(_e),isDelimiterPair:et,processDelimiterPair:tt};function _e(rt,nt){const ot=j.getNodePoints(),it=j.getBlockEndIndex();for(let st=rt;st=nt||ot[st+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const ut=eatOptionalWhitespaces(ot,st+2,it),ct=eatLinkDestination(ot,ut,it);if(ct<0)break;const dt=eatOptionalWhitespaces(ot,ct,it),ft=eatLinkTitle(ot,dt,it);if(ft<0)break;const pt=st,gt=eatOptionalWhitespaces(ot,ft,it)+1;if(gt>it||ot[gt-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:pt,endIndex:gt,destinationContent:ut_e.map(et=>{const tt=j.getNodePoints();let rt="";if(et.destinationContent!=null){let{startIndex:lt,endIndex:ut}=et.destinationContent;tt[lt].codePoint===AsciiCodePoint.OPEN_ANGLE&&(lt+=1,ut-=1);const ct=calcEscapedStringFromNodePoints(tt,lt,ut,!0);rt=j.formatUrl(ct)}const nt=j.parseInlineTokens(et.children),ot=calcImageAlt(nt);let it;if(et.titleContent!=null){const{startIndex:lt,endIndex:ut}=et.titleContent;it=calcEscapedStringFromNodePoints(tt,lt+1,ut-1)}return j.shouldReservePosition?{type:ImageType$1,position:j.calcPosition(et),url:rt,alt:ot,title:it}:{type:ImageType$1,url:rt,alt:ot,title:it}})}},uniqueName$9="@yozora/tokenizer-image";class ImageTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$9,priority:et.priority??TokenizerPriority.LINKS});Fr(this,"match",match$a);Fr(this,"parse",parse$b)}}const match$9=function(j){return{findDelimiter:()=>genFindDelimiter(_e),isDelimiterPair:et,processDelimiterPair:tt};function _e(rt,nt){const ot=j.getNodePoints();for(let it=rt;it=nt||ot[it+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;return{type:"opener",startIndex:it,endIndex:it+2,brackets:[]}}case AsciiCodePoint.CLOSE_BRACKET:{const lt={type:"closer",startIndex:it,endIndex:it+1,brackets:[]};if(it+1>=nt||ot[it+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)return lt;const ut=eatLinkLabel(ot,it+1,nt);return ut.nextIndex<0?lt:ut.labelAndIdentifier==null?{type:"closer",startIndex:it,endIndex:ut.nextIndex,brackets:[{startIndex:it+1,endIndex:ut.nextIndex}]}:{type:"closer",startIndex:it,endIndex:ut.nextIndex,brackets:[{startIndex:it+1,endIndex:ut.nextIndex,label:ut.labelAndIdentifier.label,identifier:ut.labelAndIdentifier.identifier}]}}}return null}function et(rt,nt,ot){const it=j.getNodePoints();switch(checkBalancedBracketsStatus(rt.endIndex,nt.startIndex,ot,it)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function tt(rt,nt,ot){const it=j.getNodePoints(),st=nt.brackets[0];if(st!=null&&st.identifier!=null)return j.hasDefinition(st.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:rt.startIndex,endIndex:st.endIndex,referenceType:"full",label:st.label,identifier:st.identifier,children:j.resolveInternalTokens(ot,rt.endIndex,nt.startIndex)}]}:{tokens:ot};const{nextIndex:lt,labelAndIdentifier:ut}=eatLinkLabel(it,rt.endIndex-1,nt.startIndex+1);return lt===nt.startIndex+1&&ut!=null&&j.hasDefinition(ut.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:rt.startIndex,endIndex:nt.endIndex,referenceType:st==null?"shortcut":"collapsed",label:ut.label,identifier:ut.identifier,children:j.resolveInternalTokens(ot,rt.endIndex,nt.startIndex)}]}:{tokens:ot}}},parse$a=function(j){return{parse:_e=>_e.map(et=>{const{identifier:tt,label:rt,referenceType:nt}=et,ot=j.parseInlineTokens(et.children),it=calcImageAlt(ot);return j.shouldReservePosition?{type:ImageReferenceType,position:j.calcPosition(et),identifier:tt,label:rt,referenceType:nt,alt:it}:{type:ImageReferenceType,identifier:tt,label:rt,referenceType:nt,alt:it}})}},uniqueName$8="@yozora/tokenizer-image-reference";class ImageReferenceTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$8,priority:et.priority??TokenizerPriority.LINKS});Fr(this,"match",match$9);Fr(this,"parse",parse$a)}}const match$8=function(){return{isContainingBlock:!1,eatOpener:j,eatContinuationText:_e};function j(et){if(et.countOfPrecedeSpaces<4)return null;const{nodePoints:tt,startIndex:rt,firstNonWhitespaceIndex:nt,endIndex:ot}=et;let it=rt+4;if(tt[rt].codePoint===AsciiCodePoint.SPACE&&tt[rt+3].codePoint===VirtualCodePoint.SPACE){let ut=rt+1;for(;ut_e.map(et=>{const{lines:tt}=et;let rt=0,nt=tt.length;for(;rtut+1&&ot.push({type:"opener",startIndex:ut+1,endIndex:dt}),ut=dt-1}break}case AsciiCodePoint.BACKTICK:{const dt=ut,ft=eatOptionalCharacters(tt,ut+1,nt,ct);ot.push({type:"both",startIndex:dt,endIndex:ft}),ut=ft-1;break}}}let it=0,st=-1,lt=null;for(;it=ut))continue;st=ct;let dt=null,ft=null;for(;it=ut&>.type!=="closer")break}if(it+1>=ot.length)return;dt=ot[it];const pt=dt.endIndex-dt.startIndex;for(let gt=it+1;gt_e.map(et=>{const tt=j.getNodePoints();let rt=et.startIndex+et.thickness,nt=et.endIndex-et.thickness,ot=!0;for(let lt=rt;ltgenFindDelimiter(_e),isDelimiterPair:et,processDelimiterPair:tt,processSingleDelimiter:rt};function _e(nt,ot){const it=j.getNodePoints();for(let st=nt;st=ot||it[st+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;const ut=eatLinkLabel(it,st+1,ot);if(ut.nextIndex===-1)return{type:"opener",startIndex:st+1,endIndex:st+2,brackets:[]};if(ut.labelAndIdentifier==null){st=ut.nextIndex-1;break}const ct=[{startIndex:st+1,endIndex:ut.nextIndex,label:ut.labelAndIdentifier.label,identifier:ut.labelAndIdentifier.identifier}],dt={type:"closer",startIndex:st,endIndex:ut.nextIndex,brackets:ct};for(st=ut.nextIndex;st=it.length)break;if(lt+1_e.map(et=>{const{identifier:tt,label:rt,referenceType:nt}=et,ot=j.parseInlineTokens(et.children);return j.shouldReservePosition?{type:LinkReferenceType,position:j.calcPosition(et),identifier:tt,label:rt,referenceType:nt,children:ot}:{type:LinkReferenceType,identifier:tt,label:rt,referenceType:nt,children:ot}})}},uniqueName$5="@yozora/tokenizer-link-reference";class LinkReferenceTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$5,priority:et.priority??TokenizerPriority.LINKS});Fr(this,"match",match$6);Fr(this,"parse",parse$7)}}const match$5=function(){const{emptyItemCouldNotInterruptedTypes:j,enableTaskListItem:_e}=this;return{isContainingBlock:!0,eatOpener:et,eatAndInterruptPreviousSibling:tt,eatContinuationText:rt};function et(nt){if(nt.countOfPrecedeSpaces>=4)return null;const{nodePoints:ot,startIndex:it,endIndex:st,firstNonWhitespaceIndex:lt}=nt;if(lt>=st)return null;let ut=!1,ct=null,dt,ft,pt=lt,gt=ot[pt].codePoint;if(pt+1lt&&pt-lt<=9&&(gt===AsciiCodePoint.DOT||gt===AsciiCodePoint.CLOSE_PARENTHESIS)&&(pt+=1,ut=!0,ct=gt)}if(ut||(gt===AsciiCodePoint.PLUS_SIGN||gt===AsciiCodePoint.MINUS_SIGN||gt===AsciiCodePoint.ASTERISK)&&(pt+=1,ct=gt),ct==null)return null;let mt=0,bt=pt;for(bt4&&(bt-=mt-1,mt=1),mt===0&&bt=st){if(ot.countOfTopBlankLine>=0&&(ot.countOfTopBlankLine+=1,ot.countOfTopBlankLine>1))return{status:"notMatched"}}else ot.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(it+ot.indent,st-1)}}};function eatTaskStatus(j,_e,et){let tt=_e;for(;tt=et||j[tt].codePoint!==AsciiCodePoint.OPEN_BRACKET||j[tt+2].codePoint!==AsciiCodePoint.CLOSE_BRACKET||!isWhitespaceCharacter(j[tt+3].codePoint))return{status:null,nextIndex:_e};let rt;switch(j[tt+1].codePoint){case AsciiCodePoint.SPACE:rt=TaskStatus.TODO;break;case AsciiCodePoint.MINUS_SIGN:rt=TaskStatus.DOING;break;case AsciiCodePoint.LOWERCASE_X:case AsciiCodePoint.UPPERCASE_X:rt=TaskStatus.DONE;break;default:return{status:null,nextIndex:_e}}return{status:rt,nextIndex:tt+4}}const parse$6=function(j){return{parse:_e=>{const et=[];let tt=[];for(let nt=0;nt<_e.length;++nt){const ot=_e[nt];if(tt.length<=0||tt[0].ordered!==ot.ordered||tt[0].orderType!==ot.orderType||tt[0].marker!==ot.marker){const it=resolveList(tt,j);it&&et.push(it),tt=[ot];continue}tt.push(ot)}const rt=resolveList(tt,j);return rt&&et.push(rt),et}}},resolveList=(j,_e)=>{if(j.length<=0)return null;let et=j.some(nt=>{if(nt.children==null||nt.children.length<=1)return!1;let ot=nt.children[0].position;for(let it=1;it1){let nt=j[0];for(let ot=1;ot{const ot=_e.parseBlockTokens(nt.children),it=et?ot:ot.map(lt=>lt.type===ParagraphType$1?lt.children:lt).flat();return _e.shouldReservePosition?{type:ListItemType,position:nt.position,status:nt.status,children:it}:{type:ListItemType,status:nt.status,children:it}});return _e.shouldReservePosition?{type:ListType,position:{start:{...j[0].position.start},end:{...j[j.length-1].position.end}},ordered:j[0].ordered,orderType:j[0].orderType,start:j[0].order,marker:j[0].marker,spread:et,children:tt}:{type:ListType,ordered:j[0].ordered,orderType:j[0].orderType,start:j[0].order,marker:j[0].marker,spread:et,children:tt}},uniqueName$4="@yozora/tokenizer-list";class ListTokenizer extends BaseBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName$4,priority:et.priority??TokenizerPriority.CONTAINING_BLOCK});Fr(this,"enableTaskListItem");Fr(this,"emptyItemCouldNotInterruptedTypes");Fr(this,"match",match$5);Fr(this,"parse",parse$6);this.enableTaskListItem=et.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=et.emptyItemCouldNotInterruptedTypes??[ParagraphType$1]}}const match$4=function(){return{isContainingBlock:!1,eatOpener:j,eatContinuationText:_e,eatLazyContinuationText:et};function j(tt){const{endIndex:rt,firstNonWhitespaceIndex:nt}=tt;if(nt>=rt)return null;const ot=[tt],it=calcPositionFromPhrasingContentLines(ot);return{token:{nodeType:ParagraphType$1,position:it,lines:ot},nextIndex:rt}}function _e(tt,rt){const{endIndex:nt,firstNonWhitespaceIndex:ot}=tt;return ot>=nt?{status:"notMatched"}:(rt.lines.push(tt),{status:"opening",nextIndex:nt})}function et(tt,rt){return _e(tt,rt)}},parse$5=function(j){return{parse:_e=>{const et=[];for(const tt of _e){const rt=mergeAndStripContentLines(tt.lines),nt=j.processInlines(rt);if(nt.length<=0)continue;const ot=j.shouldReservePosition?{type:ParagraphType$1,position:tt.position,children:nt}:{type:ParagraphType$1,children:nt};et.push(ot)}return et}}},uniqueName$3="@yozora/tokenizer-paragraph";class ParagraphTokenizer extends BaseBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName$3,priority:et.priority??TokenizerPriority.FALLBACK});Fr(this,"match",match$4);Fr(this,"parse",parse$5)}extractPhrasingContentLines(et){return et.lines}buildBlockToken(et){const tt=trimBlankLines(et);if(tt.length<=0)return null;const rt=calcPositionFromPhrasingContentLines(tt);return{nodeType:ParagraphType$1,lines:tt,position:rt}}}const match$3=function(j){return{isContainingBlock:!1,eatOpener:_e,eatAndInterruptPreviousSibling:et};function _e(){return null}function et(tt,rt){const{nodePoints:nt,endIndex:ot,firstNonWhitespaceIndex:it,countOfPrecedeSpaces:st}=tt;if(st>=4||it>=ot)return null;let lt=null,ut=!1;for(let pt=it;pt_e.map(et=>{let tt=1;switch(et.marker){case AsciiCodePoint.EQUALS_SIGN:tt=1;break;case AsciiCodePoint.MINUS_SIGN:tt=2;break}const rt=mergeAndStripContentLines(et.lines),nt=j.processInlines(rt);return j.shouldReservePosition?{type:HeadingType,position:et.position,depth:tt,children:nt}:{type:HeadingType,depth:tt,children:nt}})}},uniqueName$2="@yozora/tokenizer-setext-heading";class SetextHeadingTokenizer extends BaseBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName$2,priority:et.priority??TokenizerPriority.ATOMIC});Fr(this,"match",match$3);Fr(this,"parse",parse$4)}}const match$2=function(){return{findDelimiter:()=>genFindDelimiter((j,_e)=>({type:"full",startIndex:j,endIndex:_e})),processSingleDelimiter:j=>[{nodeType:TextType$1,startIndex:j.startIndex,endIndex:j.endIndex}]}},parse$3=function(j){return{parse:_e=>_e.map(et=>{const tt=j.getNodePoints();let rt=calcEscapedStringFromNodePoints(tt,et.startIndex,et.endIndex);return rt=stripSpaces(rt),j.shouldReservePosition?{type:TextType$1,position:j.calcPosition(et),value:rt}:{type:TextType$1,value:rt}})}},_stripRegex=/[^\S\n]*\n[^\S\n]*/g,stripSpaces=j=>j.replace(_stripRegex,` -`),uniqueName$1="@yozora/tokenizer-text";class TextTokenizer extends BaseInlineTokenizer{constructor(et={}){super({name:et.name??uniqueName$1,priority:et.priority??TokenizerPriority.FALLBACK});Fr(this,"match",match$2);Fr(this,"parse",parse$3)}findAndHandleDelimiter(et,tt){return{nodeType:TextType$1,startIndex:et,endIndex:tt}}}const match$1=function(){return{isContainingBlock:!1,eatOpener:j,eatAndInterruptPreviousSibling:_e};function j(et){if(et.countOfPrecedeSpaces>=4)return null;const{nodePoints:tt,startIndex:rt,endIndex:nt,firstNonWhitespaceIndex:ot}=et;if(ot+2>=nt)return null;let it,st=0,lt=!0,ut=!1;for(let dt=ot;dt_e.map(et=>j.shouldReservePosition?{type:ThematicBreakType,position:et.position}:{type:ThematicBreakType})}},uniqueName="@yozora/tokenizer-thematic-break";class ThematicBreakTokenizer extends BaseBlockTokenizer{constructor(et={}){super({name:et.name??uniqueName,priority:et.priority??TokenizerPriority.ATOMIC});Fr(this,"match",match$1);Fr(this,"parse",parse$2)}}class GfmParser extends DefaultParser{constructor(_e={}){super({..._e,blockFallbackTokenizer:_e.blockFallbackTokenizer??new ParagraphTokenizer,inlineFallbackTokenizer:_e.inlineFallbackTokenizer??new TextTokenizer}),this.useTokenizer(new IndentedCodeTokenizer).useTokenizer(new HtmlBlockTokenizer).useTokenizer(new SetextHeadingTokenizer).useTokenizer(new ThematicBreakTokenizer).useTokenizer(new BlockquoteTokenizer).useTokenizer(new ListTokenizer({enableTaskListItem:!1})).useTokenizer(new HeadingTokenizer).useTokenizer(new FencedCodeTokenizer).useTokenizer(new DefinitionTokenizer).useTokenizer(new HtmlInlineTokenizer).useTokenizer(new InlineCodeTokenizer).useTokenizer(new AutolinkTokenizer).useTokenizer(new BreakTokenizer).useTokenizer(new ImageTokenizer).useTokenizer(new ImageReferenceTokenizer).useTokenizer(new LinkTokenizer).useTokenizer(new LinkReferenceTokenizer).useTokenizer(new EmphasisTokenizer)}}const parser=new GfmParser({defaultParseOptions:{shouldReservePosition:!1}});class BlockquoteRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.children!==_e.children}render(){const _e=this.props.children;return jsxRuntimeExports.jsx("blockquote",{className:cls$b,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:_e})})}}const cls$b=mergeStyles$1(astClasses.blockquote,{boxSizing:"border-box",padding:"0.625em 1em",borderLeft:"0.25em solid var(--colorBorderBlockquote)",margin:"0px 0px 1.25em 0px",background:"var(--colorBgBlockquote)",boxShadow:"0 1px 2px 0 hsla(0deg, 0%, 0%, 0.1)","> :last-child":{marginBottom:0}});class BreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("br",{className:cls$a})}}const cls$a=mergeStyles$1(astClasses.break,{boxSizing:"border-box"});var prism={exports:{}};(function(j){var _e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** - * Prism: Lightweight, robust, elegant syntax highlighting - * - * @license MIT - * @author Lea Verou - * @namespace - * @public - */var et=function(tt){var rt=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,nt=0,ot={},it={manual:tt.Prism&&tt.Prism.manual,disableWorkerMessageHandler:tt.Prism&&tt.Prism.disableWorkerMessageHandler,util:{encode:function _t(xt){return xt instanceof st?new st(xt.type,_t(xt.content),xt.alias):Array.isArray(xt)?xt.map(_t):xt.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(Et){var _t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Et.stack)||[])[1];if(_t){var xt=document.getElementsByTagName("script");for(var yt in xt)if(xt[yt].src==_t)return xt[yt]}return null}},isActive:function(_t,xt,yt){for(var Et="no-"+xt;_t;){var St=_t.classList;if(St.contains(xt))return!0;if(St.contains(Et))return!1;_t=_t.parentElement}return!!yt}},languages:{plain:ot,plaintext:ot,text:ot,txt:ot,extend:function(_t,xt){var yt=it.util.clone(it.languages[_t]);for(var Et in xt)yt[Et]=xt[Et];return yt},insertBefore:function(_t,xt,yt,Et){Et=Et||it.languages;var St=Et[_t],Tt={};for(var kt in St)if(St.hasOwnProperty(kt)){if(kt==xt)for(var $t in yt)yt.hasOwnProperty($t)&&(Tt[$t]=yt[$t]);yt.hasOwnProperty(kt)||(Tt[kt]=St[kt])}var Ct=Et[_t];return Et[_t]=Tt,it.languages.DFS(it.languages,function(It,Nt){Nt===Ct&&It!=_t&&(this[It]=Tt)}),Tt},DFS:function _t(xt,yt,Et,St){St=St||{};var Tt=it.util.objId;for(var kt in xt)if(xt.hasOwnProperty(kt)){yt.call(xt,kt,xt[kt],Et||kt);var $t=xt[kt],Ct=it.util.type($t);Ct==="Object"&&!St[Tt($t)]?(St[Tt($t)]=!0,_t($t,yt,null,St)):Ct==="Array"&&!St[Tt($t)]&&(St[Tt($t)]=!0,_t($t,yt,kt,St))}}},plugins:{},highlightAll:function(_t,xt){it.highlightAllUnder(document,_t,xt)},highlightAllUnder:function(_t,xt,yt){var Et={callback:yt,container:_t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};it.hooks.run("before-highlightall",Et),Et.elements=Array.prototype.slice.apply(Et.container.querySelectorAll(Et.selector)),it.hooks.run("before-all-elements-highlight",Et);for(var St=0,Tt;Tt=Et.elements[St++];)it.highlightElement(Tt,xt===!0,Et.callback)},highlightElement:function(_t,xt,yt){var Et=it.util.getLanguage(_t),St=it.languages[Et];it.util.setLanguage(_t,Et);var Tt=_t.parentElement;Tt&&Tt.nodeName.toLowerCase()==="pre"&&it.util.setLanguage(Tt,Et);var kt=_t.textContent,$t={element:_t,language:Et,grammar:St,code:kt};function Ct(Nt){$t.highlightedCode=Nt,it.hooks.run("before-insert",$t),$t.element.innerHTML=$t.highlightedCode,it.hooks.run("after-highlight",$t),it.hooks.run("complete",$t),yt&&yt.call($t.element)}if(it.hooks.run("before-sanity-check",$t),Tt=$t.element.parentElement,Tt&&Tt.nodeName.toLowerCase()==="pre"&&!Tt.hasAttribute("tabindex")&&Tt.setAttribute("tabindex","0"),!$t.code){it.hooks.run("complete",$t),yt&&yt.call($t.element);return}if(it.hooks.run("before-highlight",$t),!$t.grammar){Ct(it.util.encode($t.code));return}if(xt&&tt.Worker){var It=new Worker(it.filename);It.onmessage=function(Nt){Ct(Nt.data)},It.postMessage(JSON.stringify({language:$t.language,code:$t.code,immediateClose:!0}))}else Ct(it.highlight($t.code,$t.grammar,$t.language))},highlight:function(_t,xt,yt){var Et={code:_t,grammar:xt,language:yt};if(it.hooks.run("before-tokenize",Et),!Et.grammar)throw new Error('The language "'+Et.language+'" has no grammar.');return Et.tokens=it.tokenize(Et.code,Et.grammar),it.hooks.run("after-tokenize",Et),st.stringify(it.util.encode(Et.tokens),Et.language)},tokenize:function(_t,xt){var yt=xt.rest;if(yt){for(var Et in yt)xt[Et]=yt[Et];delete xt.rest}var St=new ct;return dt(St,St.head,_t),ut(_t,St,xt,St.head,0),pt(St)},hooks:{all:{},add:function(_t,xt){var yt=it.hooks.all;yt[_t]=yt[_t]||[],yt[_t].push(xt)},run:function(_t,xt){var yt=it.hooks.all[_t];if(!(!yt||!yt.length))for(var Et=0,St;St=yt[Et++];)St(xt)}},Token:st};tt.Prism=it;function st(_t,xt,yt,Et){this.type=_t,this.content=xt,this.alias=yt,this.length=(Et||"").length|0}st.stringify=function _t(xt,yt){if(typeof xt=="string")return xt;if(Array.isArray(xt)){var Et="";return xt.forEach(function(Ct){Et+=_t(Ct,yt)}),Et}var St={type:xt.type,content:_t(xt.content,yt),tag:"span",classes:["token",xt.type],attributes:{},language:yt},Tt=xt.alias;Tt&&(Array.isArray(Tt)?Array.prototype.push.apply(St.classes,Tt):St.classes.push(Tt)),it.hooks.run("wrap",St);var kt="";for(var $t in St.attributes)kt+=" "+$t+'="'+(St.attributes[$t]||"").replace(/"/g,""")+'"';return"<"+St.tag+' class="'+St.classes.join(" ")+'"'+kt+">"+St.content+""};function lt(_t,xt,yt,Et){_t.lastIndex=xt;var St=_t.exec(yt);if(St&&Et&&St[1]){var Tt=St[1].length;St.index+=Tt,St[0]=St[0].slice(Tt)}return St}function ut(_t,xt,yt,Et,St,Tt){for(var kt in yt)if(!(!yt.hasOwnProperty(kt)||!yt[kt])){var $t=yt[kt];$t=Array.isArray($t)?$t:[$t];for(var Ct=0;Ct<$t.length;++Ct){if(Tt&&Tt.cause==kt+","+Ct)return;var It=$t[Ct],Nt=It.inside,Ot=!!It.lookbehind,jt=!!It.greedy,Mt=It.alias;if(jt&&!It.pattern.global){var Rt=It.pattern.toString().match(/[imsuy]*$/)[0];It.pattern=RegExp(It.pattern.source,Rt+"g")}for(var Lt=It.pattern||It,Pt=Et.next,Gt=St;Pt!==xt.tail&&!(Tt&&Gt>=Tt.reach);Gt+=Pt.value.length,Pt=Pt.next){var qt=Pt.value;if(xt.length>_t.length)return;if(!(qt instanceof st)){var Yt=1,Xt;if(jt){if(Xt=lt(Lt,Gt,_t,Ot),!Xt||Xt.index>=_t.length)break;var Er=Xt.index,tr=Xt.index+Xt[0].length,cr=Gt;for(cr+=Pt.value.length;Er>=cr;)Pt=Pt.next,cr+=Pt.value.length;if(cr-=Pt.value.length,Gt=cr,Pt.value instanceof st)continue;for(var mr=Pt;mr!==xt.tail&&(crTt.reach&&(Tt.reach=ar);var pr=Pt.prev;_r&&(pr=dt(xt,pr,_r),Gt+=_r.length),ft(xt,pr,Yt);var rr=new st(kt,Nt?it.tokenize(hr,Nt):hr,Mt,hr);if(Pt=dt(xt,pr,rr),Ut&&dt(xt,Pt,Ut),Yt>1){var vr={cause:kt+","+Ct,reach:ar};ut(_t,xt,yt,Pt.prev,Gt,vr),Tt&&vr.reach>Tt.reach&&(Tt.reach=vr.reach)}}}}}}function ct(){var _t={value:null,prev:null,next:null},xt={value:null,prev:_t,next:null};_t.next=xt,this.head=_t,this.tail=xt,this.length=0}function dt(_t,xt,yt){var Et=xt.next,St={value:yt,prev:xt,next:Et};return xt.next=St,Et.prev=St,_t.length++,St}function ft(_t,xt,yt){for(var Et=xt.next,St=0;St/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},et.languages.markup.tag.inside["attr-value"].inside.entity=et.languages.markup.entity,et.languages.markup.doctype.inside["internal-subset"].inside=et.languages.markup,et.hooks.add("wrap",function(tt){tt.type==="entity"&&(tt.attributes.title=tt.content.replace(/&/,"&"))}),Object.defineProperty(et.languages.markup.tag,"addInlined",{value:function(rt,nt){var ot={};ot["language-"+nt]={pattern:/(^$)/i,lookbehind:!0,inside:et.languages[nt]},ot.cdata=/^$/i;var it={"included-cdata":{pattern://i,inside:ot}};it["language-"+nt]={pattern:/[\s\S]+/,inside:et.languages[nt]};var st={};st[rt]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return rt}),"i"),lookbehind:!0,greedy:!0,inside:it},et.languages.insertBefore("markup","cdata",st)}}),Object.defineProperty(et.languages.markup.tag,"addAttribute",{value:function(tt,rt){et.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+tt+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[rt,"language-"+rt],inside:et.languages[rt]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),et.languages.html=et.languages.markup,et.languages.mathml=et.languages.markup,et.languages.svg=et.languages.markup,et.languages.xml=et.languages.extend("markup",{}),et.languages.ssml=et.languages.xml,et.languages.atom=et.languages.xml,et.languages.rss=et.languages.xml,function(tt){var rt=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;tt.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+rt.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+rt.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+rt.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+rt.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:rt,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},tt.languages.css.atrule.inside.rest=tt.languages.css;var nt=tt.languages.markup;nt&&(nt.tag.addInlined("style","css"),nt.tag.addAttribute("style","css"))}(et),et.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},et.languages.javascript=et.languages.extend("clike",{"class-name":[et.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),et.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,et.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:et.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:et.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:et.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:et.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:et.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),et.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:et.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),et.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),et.languages.markup&&(et.languages.markup.tag.addInlined("script","javascript"),et.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),et.languages.js=et.languages.javascript,function(){if(typeof et>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var tt="Loading…",rt=function(gt,mt){return"✖ Error "+gt+" while fetching file: "+mt},nt="✖ Error: File does not exist or is empty",ot={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},it="data-src-status",st="loading",lt="loaded",ut="failed",ct="pre[data-src]:not(["+it+'="'+lt+'"]):not(['+it+'="'+st+'"])';function dt(gt,mt,bt){var _t=new XMLHttpRequest;_t.open("GET",gt,!0),_t.onreadystatechange=function(){_t.readyState==4&&(_t.status<400&&_t.responseText?mt(_t.responseText):_t.status>=400?bt(rt(_t.status,_t.statusText)):bt(nt))},_t.send(null)}function ft(gt){var mt=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(gt||"");if(mt){var bt=Number(mt[1]),_t=mt[2],xt=mt[3];return _t?xt?[bt,Number(xt)]:[bt,void 0]:[bt,bt]}}et.hooks.add("before-highlightall",function(gt){gt.selector+=", "+ct}),et.hooks.add("before-sanity-check",function(gt){var mt=gt.element;if(mt.matches(ct)){gt.code="",mt.setAttribute(it,st);var bt=mt.appendChild(document.createElement("CODE"));bt.textContent=tt;var _t=mt.getAttribute("data-src"),xt=gt.language;if(xt==="none"){var yt=(/\.(\w+)$/.exec(_t)||[,"none"])[1];xt=ot[yt]||yt}et.util.setLanguage(bt,xt),et.util.setLanguage(mt,xt);var Et=et.plugins.autoloader;Et&&Et.loadLanguages(xt),dt(_t,function(St){mt.setAttribute(it,lt);var Tt=ft(mt.getAttribute("data-range"));if(Tt){var kt=St.split(/\r\n?|\n/g),$t=Tt[0],Ct=Tt[1]==null?kt.length:Tt[1];$t<0&&($t+=kt.length),$t=Math.max(0,Math.min($t-1,kt.length)),Ct<0&&(Ct+=kt.length),Ct=Math.max(0,Math.min(Ct,kt.length)),St=kt.slice($t,Ct).join(` -`),mt.hasAttribute("data-start")||mt.setAttribute("data-start",String($t+1))}bt.textContent=St,et.highlightElement(bt)},function(St){mt.setAttribute(it,ut),bt.textContent=St})}}),et.plugins.fileHighlight={highlight:function(mt){for(var bt=(mt||document).querySelectorAll(ct),_t=0,xt;xt=bt[_t++];)et.highlightElement(xt)}};var pt=!1;et.fileHighlight=function(){pt||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),pt=!0),et.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports);function sheetForTag(j){if(j.sheet)return j.sheet;for(var _e=0;_e0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$1(character)>3?"":" "}function escaping(j,_e){for(;--_e&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(j,caret()+(_e<6&&peek()==32&&next()==32))}function delimiter(j){for(;next();)switch(character){case j:return position;case 34:case 39:j!==34&&j!==39&&delimiter(character);break;case 40:j===41&&delimiter(j);break;case 92:next();break}return position}function commenter(j,_e){for(;next()&&j+character!==57;)if(j+character===84&&peek()===47)break;return"/*"+slice(_e,position-1)+"*"+from(j===47?j:next())}function identifier(j){for(;!token$1(peek());)next();return slice(j,position)}function compile(j){return dealloc(parse$1("",null,null,null,[""],j=alloc(j),0,[0],j))}function parse$1(j,_e,et,tt,rt,nt,ot,it,st){for(var lt=0,ut=0,ct=ot,dt=0,ft=0,pt=0,gt=1,mt=1,bt=1,_t=0,xt="",yt=rt,Et=nt,St=tt,Tt=xt;mt;)switch(pt=_t,_t=next()){case 40:if(pt!=108&&charat(Tt,ct-1)==58){indexof(Tt+=replace(delimit(_t),"&","&\f"),"&\f")!=-1&&(bt=-1);break}case 34:case 39:case 91:Tt+=delimit(_t);break;case 9:case 10:case 13:case 32:Tt+=whitespace(pt);break;case 92:Tt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append$1(comment(commenter(next(),caret()),_e,et),st);break;default:Tt+="/"}break;case 123*gt:it[lt++]=strlen(Tt)*bt;case 125*gt:case 59:case 0:switch(_t){case 0:case 125:mt=0;case 59+ut:bt==-1&&(Tt=replace(Tt,/\f/g,"")),ft>0&&strlen(Tt)-ct&&append$1(ft>32?declaration(Tt+";",tt,et,ct-1):declaration(replace(Tt," ","")+";",tt,et,ct-2),st);break;case 59:Tt+=";";default:if(append$1(St=ruleset(Tt,_e,et,lt,ut,rt,it,xt,yt=[],Et=[],ct),nt),_t===123)if(ut===0)parse$1(Tt,_e,St,St,yt,nt,ct,it,Et);else switch(dt===99&&charat(Tt,3)===110?100:dt){case 100:case 108:case 109:case 115:parse$1(j,St,St,tt&&append$1(ruleset(j,St,St,0,0,rt,it,xt,rt,yt=[],ct),Et),rt,Et,ct,it,tt?yt:Et);break;default:parse$1(Tt,St,St,St,[""],Et,0,it,Et)}}lt=ut=ft=0,gt=bt=1,xt=Tt="",ct=ot;break;case 58:ct=1+strlen(Tt),ft=pt;default:if(gt<1){if(_t==123)--gt;else if(_t==125&>++==0&&prev()==125)continue}switch(Tt+=from(_t),_t*gt){case 38:bt=ut>0?1:(Tt+="\f",-1);break;case 44:it[lt++]=(strlen(Tt)-1)*bt,bt=1;break;case 64:peek()===45&&(Tt+=delimit(next())),dt=peek(),ut=ct=strlen(xt=Tt+=identifier(caret())),_t++;break;case 45:pt===45&&strlen(Tt)==2&&(gt=0)}}return nt}function ruleset(j,_e,et,tt,rt,nt,ot,it,st,lt,ut){for(var ct=rt-1,dt=rt===0?nt:[""],ft=sizeof(dt),pt=0,gt=0,mt=0;pt0?dt[bt]+" "+_t:replace(_t,/&\f/g,dt[bt])))&&(st[mt++]=xt);return node(j,_e,et,rt===0?RULESET:it,st,lt,ut)}function comment(j,_e,et){return node(j,_e,et,COMMENT,from(char()),substr(j,2,-2),0)}function declaration(j,_e,et,tt){return node(j,_e,et,DECLARATION,substr(j,0,tt),substr(j,tt+1,-1),tt)}function serialize(j,_e){for(var et="",tt=sizeof(j),rt=0;rt6)switch(charat(j,_e+1)){case 109:if(charat(j,_e+4)!==45)break;case 102:return replace(j,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(j,_e+3)==108?"$3":"$2-$3"))+j;case 115:return~indexof(j,"stretch")?prefix$1(replace(j,"stretch","fill-available"),_e)+j:j}break;case 4949:if(charat(j,_e+1)!==115)break;case 6444:switch(charat(j,strlen(j)-3-(~indexof(j,"!important")&&10))){case 107:return replace(j,":",":"+WEBKIT)+j;case 101:return replace(j,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(j,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+j}break;case 5936:switch(charat(j,_e+11)){case 114:return WEBKIT+j+MS+replace(j,/[svh]\w+-[tblr]{2}/,"tb")+j;case 108:return WEBKIT+j+MS+replace(j,/[svh]\w+-[tblr]{2}/,"tb-rl")+j;case 45:return WEBKIT+j+MS+replace(j,/[svh]\w+-[tblr]{2}/,"lr")+j}return WEBKIT+j+MS+j+j}return j}var prefixer=function j(_e,et,tt,rt){if(_e.length>-1&&!_e.return)switch(_e.type){case DECLARATION:_e.return=prefix$1(_e.value,_e.length);break;case KEYFRAMES:return serialize([copy$2(_e,{value:replace(_e.value,"@","@"+WEBKIT)})],rt);case RULESET:if(_e.length)return combine(_e.props,function(nt){switch(match(nt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy$2(_e,{props:[replace(nt,/:(read-\w+)/,":"+MOZ+"$1")]})],rt);case"::placeholder":return serialize([copy$2(_e,{props:[replace(nt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy$2(_e,{props:[replace(nt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy$2(_e,{props:[replace(nt,/:(plac\w+)/,MS+"input-$1")]})],rt)}return""})}},defaultStylisPlugins=[prefixer],createCache=function j(_e){var et=_e.key;if(et==="css"){var tt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(tt,function(gt){var mt=gt.getAttribute("data-emotion");mt.indexOf(" ")!==-1&&(document.head.appendChild(gt),gt.setAttribute("data-s",""))})}var rt=_e.stylisPlugins||defaultStylisPlugins,nt={},ot,it=[];ot=_e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+et+' "]'),function(gt){for(var mt=gt.getAttribute("data-emotion").split(" "),bt=1;btNumber.isNaN(Number(j))).map(([j,_e])=>[j,`var(${_e})`]));Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(j){j.type==="entity"&&j.attributes&&(j.attributes.title=j.content.replace(/&/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function j(_e,et){const tt={};tt["language-"+et]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[et]},tt.cdata=/^$/i;const rt={"included-cdata":{pattern://i,inside:tt}};rt["language-"+et]={pattern:/[\s\S]+/,inside:Prism.languages[et]};const nt={};nt[_e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return _e}),"i"),lookbehind:!0,greedy:!0,inside:rt},Prism.languages.insertBefore("markup","cdata",nt)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(j,_e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+j+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[_e,"language-"+_e],inside:Prism.languages[_e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;const envVars="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};commandAfterHeredoc.inside=Prism.languages.bash;const toBeCopied=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside$1=insideString.variable[1].inside;for(let j=0;j>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;const string$1=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+string$1.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string$1.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string$1.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string$1.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string$1,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};Prism.languages.css.atrule.inside.rest=Prism.languages.css;const markup=Prism.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"));const keyword=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,modName=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return keyword.source});Prism.languages.cpp=Prism.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return keyword.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});Prism.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return modName})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});Prism.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Prism.languages.cpp}}}});Prism.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});Prism.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Prism.languages.extend("cpp",{})}});Prism.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Prism.languages.cpp["base-clause"]);const ID="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",IDInside={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:Prism.languages.markup}};function withID(j,_e){return RegExp(j.replace(//g,function(){return ID}),_e)}Prism.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:withID(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:IDInside},"attr-value":{pattern:withID(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:IDInside},"attr-name":{pattern:withID(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:IDInside},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:withID(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:IDInside},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};Prism.languages.gv=Prism.languages.dot;Prism.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const PREFIXES={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(PREFIXES).forEach(function(j){const _e=PREFIXES[j],et=[];/^\w+$/.test(j)||et.push(/\w+/.exec(j)[0]),j==="diff"&&et.push("bold"),Prism.languages.diff[j]={pattern:RegExp("^(?:["+_e+`].*(?:\r -?| -|(?![\\s\\S])))+`,"m"),alias:et,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(j)[0]}}}});Object.defineProperty(Prism.languages.diff,"PREFIXES",{value:PREFIXES});Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m};Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];const keywords=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,classNamePrefix=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,className={pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};Prism.languages.java=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[className,{pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:className.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+classNamePrefix+/[A-Z]\w*\b/.source),lookbehind:!0,inside:className.inside}],keyword:keywords,function:[Prism.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/});Prism.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});Prism.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":className,keyword:keywords,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+classNamePrefix+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:className.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+classNamePrefix+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:className.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return keywords.source})),lookbehind:!0,inside:{punctuation:/\./}}});Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});if(Prism.languages.markup){const j=Prism.languages.markup;j.tag.addInlined("script","javascript"),j.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}Prism.languages.js=Prism.languages.javascript;Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;const javascript=Prism.util.clone(Prism.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re$2(j,_e){const et=j.replace(//g,()=>space).replace(//g,()=>braces).replace(//g,()=>spread);return RegExp(et,_e)}spread=re$2(spread).source;Prism.languages.jsx=Prism.languages.extend("markup",javascript);const jsx=Prism.languages.jsx;jsx.tag.pattern=re$2(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);jsx.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;jsx.tag.inside.comment=javascript.comment;Prism.languages.insertBefore("inside","attr-name",{spread:{pattern:re$2(//.source),inside:Prism.languages.jsx}},jsx.tag);Prism.languages.insertBefore("inside","special-attr",{script:{pattern:re$2(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism.languages.jsx}}},jsx.tag);const stringifyToken=function(j){return j?typeof j=="string"?j:typeof j.content=="string"?j.content:j.content.map(stringifyToken).join(""):""},walkTokens=function(j){const _e=[];for(let et=0;et0&&_e[_e.length-1].tagName===stringifyToken(nt[0].content[1])&&_e.pop():nt[nt.length-1].content==="/>"||_e.push({tagName:stringifyToken(nt[0].content[1]),openedBraces:0}):_e.length>0&&tt.type==="punctuation"&&tt.content==="{"?_e[_e.length-1].openedBraces+=1:_e.length>0&&_e[_e.length-1].openedBraces>0&&tt.type==="punctuation"&&tt.content==="}"?_e[_e.length-1].openedBraces-=1:rt=!0}if((rt||typeof tt=="string")&&_e.length>0&&_e[_e.length-1].openedBraces===0){let nt=stringifyToken(tt);et0&&(typeof j[et-1]=="string"||j[et-1].type==="plain-text")&&(nt=stringifyToken(j[et-1])+nt,j.splice(et-1,1),et-=1),j[et]=new Prism.Token("plain-text",nt,void 0,nt)}typeof tt!="string"&&tt.content&&typeof tt.content!="string"&&walkTokens(tt.content)}};Prism.hooks.add("after-tokenize",function(j){j.language!=="jsx"&&j.language!=="tsx"||walkTokens(j.tokens)});Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};const inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(j){const _e=j.replace(//g,function(){return inner});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+_e+")")}const tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism.languages.markdown=Prism.languages.extend("markup",{});Prism.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}});["url","bold","italic","strike"].forEach(function(j){["url","bold","italic","strike","code-snippet"].forEach(function(_e){if(j!==_e){const et=Prism.languages.markdown;et[j].inside.content.inside[_e]=et[_e]}})});Prism.hooks.add("after-tokenize",function(j){if(j.language!=="markdown"&&j.language!=="md")return;function _e(et){if(!(!et||typeof et=="string"))for(let tt=0,rt=et.length;tt",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(j){let _e=j.replace(tagPattern,"");return _e=_e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(et,tt){if(tt=tt.toLowerCase(),tt[0]==="#"){let rt;return tt[1]==="x"?rt=parseInt(tt.slice(2),16):rt=Number(tt.slice(1)),fromCodePoint(rt)}else{const rt=KNOWN_ENTITY_NAMES[tt];return rt||et}}),_e}Prism.languages.md=Prism.languages.markdown;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});Prism.languages.scss.atrule.inside.rest=Prism.languages.scss;Prism.languages.sass=Prism.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});Prism.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete Prism.languages.sass.atrule;const variable=/\$[-\w]+|#\{\$[-\w]+\}/,operator=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];Prism.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable,operator}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable,operator,important:Prism.languages.sass.important}}});delete Prism.languages.sass.property;delete Prism.languages.sass.important;Prism.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};const unit$1={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number$3={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},inside={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:unit$1,number:number$3,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:unit$1,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:number$3,punctuation:/[{}()[\];:,]/};inside.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:inside}};inside.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:inside}};Prism.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:inside}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:inside}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:inside}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:inside.interpolation}},rest:inside}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:inside.interpolation,comment:inside.comment,punctuation:/[{},]/}},func:inside.func,string:inside.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:inside.interpolation,punctuation:/[{}()[\];:.]/};Prism.languages.typescript=Prism.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/});Prism.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[{*]|$))/);delete Prism.languages.typescript.parameter;delete Prism.languages.typescript["literal-property"];const typeInside=Prism.languages.extend("typescript",{});delete typeInside["class-name"];Prism.languages.typescript["class-name"].inside=typeInside;Prism.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}});Prism.languages.ts=Prism.languages.typescript;const typescript=Prism.util.clone(Prism.languages.typescript);Prism.languages.tsx=Prism.languages.extend("jsx",typescript);delete Prism.languages.tsx.parameter;delete Prism.languages.tsx["literal-property"];const tag$1=Prism.languages.tsx.tag;tag$1.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag$1.pattern.source+")",tag$1.pattern.flags);tag$1.lookbehind=!0;Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/};Prism.languages.vb=Prism.languages["visual-basic"];Prism.languages.vba=Prism.languages["visual-basic"];Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,()=>/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source),string$2=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(j,_e){const et=(_e||"").replace(/m/g,"")+"m",tt=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return j});return RegExp(tt,et)}Prism.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return"(?:"+plainKey+"|"+string$2+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string$2),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};Prism.languages.yml=Prism.languages.yaml;const vscDarkTheme={plain:{color:"#d4d4d4",backgroundColor:"#1e1e1e"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment","punctuation"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin"],style:{color:"rgb(79, 193, 255)"}},{types:["number","variable","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["operator"],style:{color:"rgb(212, 212, 212)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["tag","changed","function","keyword"],style:{color:"rgb(86, 156, 214)"}},{types:["attr-name"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value"],style:{color:"rgb(206, 145, 120)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}}]},vscLightTheme={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},vars={border:`1px solid var(${TokenNames.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${TokenNames.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${CommonTokenNames.fontSizeCode}, 14px)`,lineHeightCode:`var(${CommonTokenNames.lineHeightCode}, 1.6)`},classes$2={container:css({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,padding:0,transition:"max-height 0.5s ease-in-out",tabSize:2,fontSmooth:"always",whiteSpace:"pre",wordBreak:"keep-all",wordSpacing:"normal",wordWrap:"normal"}),line:css({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,height:vars.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:css({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:css({background:vars.highlightBackground,borderColor:"transparent"}),lineno:css({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:vars.border}),codes:css({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode}),codeWrapper:css({minWidth:"100%",width:"fit-content"}),codeLine:css({boxSizing:"border-box",padding:"0 12px"})},languageMap={js:"javascript",ts:"typescript"},themeToDict=(j,_e)=>{j=languageMap[j]??j;const{plain:et}=_e,tt=Object.create(null),rt=_e.styles.reduce((nt,ot)=>{const{types:it,style:st,languages:lt}=ot;if(lt&&!lt.includes(j))return nt;for(const ut of it){const ct={...nt[ut],...st};nt[ut]=ct}return nt},tt);return rt.root=et,rt.plain={...et,backgroundColor:void 0},rt},newlineRegex=/\r\n|\r|\n/,normalizeEmptyLines=j=>{j.length===0?j.push({types:["plain"],content:` -`,empty:!0}):j.length===1&&j[0].content===""&&(j[0].content=` -`,j[0].empty=!0)},appendTypes=(j,_e)=>{const et=j.length;return et>0&&j[et-1]===_e?j:j.concat(_e)},normalizeTokens=j=>{const _e=[[]],et=[j],tt=[0],rt=[j.length];let nt=[];const ot=[nt];for(let it=0;it>-1;--it){for(let st=0;(st=tt[it]++)0?ut:["plain"],lt=dt):(ut=appendTypes(ut,dt.type),dt.alias&&(ut=appendTypes(ut,dt.alias)),lt=dt.content),typeof lt!="string"){it+=1,_e.push(ut),et.push(lt),tt.push(0),rt.push(lt.length);continue}const ft=lt.split(newlineRegex),pt=ft.length;nt.push({types:ut,content:ft[0]});for(let gt=1;gt{var nt,ot;const tt=et.target;if(tt==null)return;const{scrollTop:rt}=tt;(ot=(nt=this.linenoRef.current)==null?void 0:nt.scrollTo)==null||ot.call(nt,0,rt)});const tt=themeToDict(et.language,et.theme),rt=this.tokenize(et.code,et.language),nt=et.showLineno?`${Math.max(2,String(rt.length).length)*1.1}em`:void 0;this.state={linenoWidth:nt,themeDict:tt,tokens:rt},this.linenoRef={current:null}}shouldComponentUpdate(et,tt){const rt=this.props,nt=this.state;return nt.linenoWidth!==tt.linenoWidth||nt.themeDict!==tt.themeDict||nt.tokens!==tt.tokens||rt.code!==et.code||rt.codesRef!==et.codesRef||rt.collapsed!==et.collapsed||rt.language!==et.language||rt.maxLines!==et.maxLines||rt.showLineno!==et.showLineno||!isEqual$2(rt.theme,et.theme)||!isEqual$2(rt.highlightLinenos,et.highlightLinenos)}render(){const{linenoRef:et,onScroll:tt}=this,{codesRef:rt,collapsed:nt,highlightLinenos:ot,language:it,maxLines:st,showLineno:lt=!0}=this.props,{linenoWidth:ut,tokens:ct}=this.state,dt=ct.length,ft=st>0?Math.min(st,dt):dt,pt={...this.state.themeDict.root,backgroundColor:"none",...nt?{maxHeight:0}:{maxHeight:`calc(calc(${vars.lineHeightCode} * ${ft+.8}) + 6px)`,minHeight:"100%"}};return React.createElement("div",{className:cx(classes$2.container,it?`prism-code language-${it}`:"prism-code"),style:pt},lt&&React.createElement("div",{key:"linenos",className:classes$2.lineno,style:{width:ut},ref:et},React.createElement(HighlightLinenos,{countOfLines:dt,highlightLinenos:ot})),React.createElement("div",{key:"codes",ref:rt,className:classes$2.codes,onScroll:tt},React.createElement("div",{className:classes$2.codeWrapper},ct.map((gt,mt)=>{const bt=ot.includes(mt+1),_t=this.getLineProps({line:gt});return React.createElement("div",{..._t,key:mt,className:cx(classes$2.line,classes$2.codeLine,bt&&classes$2.highlightLine,_t.className)},gt.map((xt,yt)=>React.createElement("span",{...this.getTokenProps({token:xt}),key:yt})))}))))}componentDidMount(){var et,tt;(tt=(et=this.props).onLinenoWidthChange)==null||tt.call(et,this.state.linenoWidth)}componentDidUpdate(et,tt){var it,st;const rt=this.props,nt=this.state,ot=rt.language!==et.language||!isEqual$2(rt.theme,et.theme)?themeToDict(rt.language,rt.theme):nt.themeDict;if(rt.code!==et.code||rt.language!==et.language||ot!==tt.themeDict){const lt=this.tokenize(rt.code,rt.language),ut=rt.showLineno?`${Math.max(2,String(lt.length).length)*1.1}em`:void 0;this.setState({linenoWidth:ut,themeDict:ot,tokens:lt})}nt.linenoWidth!==tt.linenoWidth&&((st=(it=this.props).onLinenoWidthChange)==null||st.call(it,nt.linenoWidth))}tokenize(et,tt){const rt=tt?Prism.languages[tt]:void 0;if(rt){const nt={code:et,grammar:rt,language:tt,tokens:[]};return Prism.hooks.run("before-tokenize",nt),nt.tokens=Prism.tokenize(nt.code,nt.grammar),Prism.hooks.run("after-tokenize",nt),normalizeTokens(nt.tokens)}else return normalizeTokens([et])}getLineProps(et){const{themeDict:tt}=this.state,{key:rt,className:nt,style:ot,line:it,...st}=et,lt={...st,className:"token-line",style:void 0,key:void 0};return tt!==void 0&&(lt.style=tt.plain),ot!==void 0&&(lt.style=lt.style!==void 0?{...lt.style,...ot}:ot),rt!==void 0&&(lt.key=rt),nt&&(lt.className+=` ${nt}`),lt}getStyleForToken({types:et,empty:tt}){const{themeDict:rt}=this.state,nt=et.length;if(rt===void 0)return;if(nt===1&&et[0]==="plain")return tt?{display:"inline-block"}:void 0;if(nt===1&&!tt)return rt[et[0]];const ot=tt?{display:"inline-block"}:{};for(const it of et){const st=rt[it];Object.assign(ot,st)}return ot}getTokenProps(et){const{key:tt,className:rt,style:nt,token:ot,...it}=et,st={...it,className:`token ${ot.types.join(" ")}`,children:ot.content,style:this.getStyleForToken(ot),key:void 0};return nt!==void 0&&(st.style=st.style!==void 0?{...st.style,...nt}:nt),tt!==void 0&&(st.key=tt),rt&&(st.className+=` ${rt}`),st}}Fr(HighlightContent,"displayName","HighlightContent"),Fr(HighlightContent,"propTypes",{code:PropTypes.string.isRequired,codesRef:PropTypes.any,collapsed:PropTypes.bool.isRequired,language:PropTypes.string.isRequired,maxLines:PropTypes.number.isRequired,showLineno:PropTypes.bool.isRequired,theme:PropTypes.object.isRequired,highlightLinenos:PropTypes.array.isRequired,onLinenoWidthChange:PropTypes.func});class CodeHighlighter extends React.PureComponent{render(){const{lang:_e,value:et,darken:tt=!0,highlightLinenos:rt=[],maxLines:nt=-1,collapsed:ot=!1,showLineNo:it=!0,codesRef:st,onLinenoWidthChange:lt}=this.props,ut=this.props.theme??(tt?vscDarkTheme:vscLightTheme);return React.createElement(HighlightContent,{code:et,codesRef:st,collapsed:ot,highlightLinenos:rt,language:_e??"",maxLines:nt,showLineno:it,theme:ut,onLinenoWidthChange:lt})}}Fr(CodeHighlighter,"displayName","YozoraCodeHighlighter"),Fr(CodeHighlighter,"propTypes",{codesRef:PropTypes.any,collapsed:PropTypes.bool,darken:PropTypes.bool,highlightLinenos:PropTypes.arrayOf(PropTypes.number),lang:PropTypes.string,maxLines:PropTypes.number,onLinenoWidthChange:PropTypes.func,showLineNo:PropTypes.bool,theme:PropTypes.any,value:PropTypes.string.isRequired});const CopyButton=j=>{const{className:_e,delay:et=1500,calcContentForCopy:tt}=j,[rt,nt]=React.useState(0),ot=useStyles$g(),it=rt!==0,st=()=>{if(rt===0){nt(1);try{const lt=tt();copy$4(lt),nt(2)}catch{nt(3)}}};return React.useEffect(()=>{if(rt===2||rt===3){const lt=setTimeout(()=>nt(0),et);return()=>{lt&&clearTimeout(lt)}}},[rt,et]),jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",className:mergeClasses(ot.copyButton,_e),disabled:it,as:"button",icon:rt===0?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),onClick:st})},useStyles$g=makeStyles({copyButton:{cursor:"pointer"}});class CodeRendererInner extends React.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:_e}=this,{darken:et,lang:tt,value:rt,preferCodeWrap:nt,showCodeLineno:ot}=this.props;return jsxRuntimeExports.jsxs("code",{className:codeCls,"data-wrap":nt,children:[jsxRuntimeExports.jsx(CodeHighlighter,{lang:tt,value:rt,collapsed:!1,showLineNo:ot&&!nt,darken:et}),jsxRuntimeExports.jsx("div",{className:copyBtnCls,children:jsxRuntimeExports.jsx(CopyButton,{calcContentForCopy:_e})})]})}}const copyBtnCls=mergeStyles$1({position:"absolute",right:"4px",top:"4px",display:"none"}),codeCls=mergeStyles$1(astClasses.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${copyBtnCls}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),CodeRenderer=j=>{const{lang:_e}=j,et=j.value.replace(/[\r\n]+$/,""),{viewmodel:tt}=useNodeRendererContext(),rt=useStateValue(tt.preferCodeWrap$),nt=useStateValue(tt.showCodeLineno$),it=useStateValue(tt.themeScheme$)==="darken";return jsxRuntimeExports.jsx(CodeRendererInner,{darken:it,lang:_e??"text",value:et,preferCodeWrap:rt,showCodeLineno:nt})};class DeleteRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.children!==_e.children}render(){const _e=this.props.children;return jsxRuntimeExports.jsx("del",{className:cls$9,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:_e})})}}const cls$9=mergeStyles$1(astClasses.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class EmphasisRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.children!==_e.children}render(){const _e=this.props.children;return jsxRuntimeExports.jsx("em",{className:cls$8,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:_e})})}}const cls$8=mergeStyles$1(astClasses.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class HeadingRenderer extends React.Component{shouldComponentUpdate(_e){const et=this.props;return et.depth!==_e.depth||et.identifier!==_e.identifier||et.children!==_e.children||et.linkIcon!==_e.linkIcon}render(){const{depth:_e,identifier:et,children:tt,linkIcon:rt="¶"}=this.props,nt=et==null?void 0:encodeURIComponent(et),ot="h"+_e,it=ot,st=mergeStyles$1(astClasses.heading,classes$1.heading,classes$1[ot]);return jsxRuntimeExports.jsxs(it,{id:nt,className:st,children:[jsxRuntimeExports.jsx("p",{className:classes$1.content,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:tt})}),et&&jsxRuntimeExports.jsx("a",{className:classes$1.anchor,href:"#"+nt,children:rt})]})}}const anchorCls=mergeStyles$1({flex:"0 0 3rem",paddingLeft:"0.5rem",color:"var(--colorLink)",opacity:0,transition:"color 0.2s ease-in-out, opacity 0.2s ease-in-out",userSelect:"none",textDecoration:"none","> svg":{overflow:"hidden",display:"inline-block",verticalAlign:"middle",fill:"currentColor"}}),classes$1=mergeStyleSets({heading:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"0px",margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.25",fontFamily:"var(--fontFamilyHeading)",color:"var(--colorHeading)",[`&:active .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:anchorCls,content:{flex:"0 1 auto",minWidth:0,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre-wrap",lineHeight:"1.7"},h1:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"2rem",fontStyle:"normal",fontWeight:500},h2:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"1.5rem",fontStyle:"normal",fontWeight:500,marginBottom:"0.875rem"},h3:{fontSize:"1.25rem",fontStyle:"normal",fontWeight:500},h4:{fontSize:"1rem",fontStyle:"normal",fontWeight:500},h5:{fontSize:"0.875rem",fontStyle:"normal",fontWeight:500},h6:{fontSize:"0.85rem",fontStyle:"normal",fontWeight:500}});class ImageRendererInner extends React.Component{shouldComponentUpdate(_e){const et=this.props;return et.src!==_e.src||et.alt!==_e.alt||et.title!==_e.title||et.srcSet!==_e.srcSet||et.sizes!==_e.sizes||et.loading!==_e.loading||et.className!==_e.className}render(){const{src:_e,alt:et,title:tt,srcSet:rt,sizes:nt,loading:ot,className:it}=this.props;return jsxRuntimeExports.jsxs("figure",{className:`${it} ${cls$7}`,children:[jsxRuntimeExports.jsx("img",{alt:et,src:_e,title:tt,srcSet:rt,sizes:nt,loading:ot}),tt&&jsxRuntimeExports.jsx("figcaption",{children:tt})]})}}const cls$7=mergeStyles$1({boxSizing:"border-box",maxWidth:"80%",display:"flex",flexDirection:"column",alignItems:"center",margin:0,"> img":{flex:"1 0 auto",boxSizing:"border-box",maxWidth:"100%",border:"1px solid var(--colorBorderImage)",boxShadow:"0 0 20px 1px rgba(126, 125, 150, 0.6)"},"> figcaption":{textAlign:"center",fontStyle:"italic",fontSize:"1em",color:"var(--colorImageTitle)"}}),ImageRenderer=j=>{const{url:_e,alt:et,title:tt,srcSet:rt,sizes:nt,loading:ot}=j;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:et,src:_e,title:tt,srcSet:rt,sizes:nt,loading:ot,className:astClasses.image})},ImageReferenceRenderer=j=>{const{viewmodel:_e}=useNodeRendererContext(),et=useStateValue(_e.definitionMap$),{alt:tt,srcSet:rt,sizes:nt,loading:ot}=j,it=et[j.identifier],st=(it==null?void 0:it.url)??"",lt=it==null?void 0:it.title;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:tt,src:st,title:lt,srcSet:rt,sizes:nt,loading:ot,className:astClasses.imageReference})};class InlineCodeRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.value!==_e.value}render(){return jsxRuntimeExports.jsx("code",{className:cls$6,children:this.props.value})}}const cls$6=mergeStyles$1(astClasses.inlineCode,{padding:"1px 4px",borderRadius:"4px",margin:0,background:"hsla(210deg, 15%, 60%, 0.15)",lineHeight:"1.375",color:"var(--colorInlineCode)",fontFamily:"var(--fontFamilyCode)",fontSize:"min(1rem, 18px)",fontWeight:500});class LinkRendererInner extends React.Component{shouldComponentUpdate(_e){const et=this.props;return et.url!==_e.url||et.title!==_e.title||et.childNodes!==_e.childNodes||et.className!==_e.className}render(){const{url:_e,title:et,childNodes:tt,className:rt}=this.props;return jsxRuntimeExports.jsx("a",{className:mergeStyles$1(cls$5,rt),href:_e,title:et,rel:"noopener, noreferrer",target:"_blank",children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:tt})})}}const cls$5=mergeStyles$1({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none",background:"linear-gradient(90deg, hsla(358deg, 100%, 62%, 0.8), hsla(048deg, 100%, 50%, 0.8), hsla(196deg, 100%, 53%, 0.8))",backgroundSize:"0 3px",backgroundRepeat:"no-repeat",backgroundPosition:"50% 100%",transition:"all 0.3s ease-in-out","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",backgroundSize:"100% 3px",backgroundPositionX:0},"&:visited":{color:"var(--colorLinkVisited)"}}),LinkRenderer=j=>{const{url:_e,title:et,children:tt}=j;return jsxRuntimeExports.jsx(LinkRendererInner,{url:_e,title:et,childNodes:tt,className:astClasses.link})},LinkReferenceRenderer=j=>{const{viewmodel:_e}=useNodeRendererContext(),tt=useStateValue(_e.definitionMap$)[j.identifier],rt=(tt==null?void 0:tt.url)??"",nt=tt==null?void 0:tt.title;return jsxRuntimeExports.jsx(LinkRendererInner,{url:rt,title:nt,childNodes:j.children,className:astClasses.linkReference})};class ListRenderer extends React.Component{shouldComponentUpdate(_e){const et=this.props;return et.ordered!==_e.ordered||et.orderType!==_e.orderType||et.start!==_e.start||et.children!==_e.children}render(){const{ordered:_e,orderType:et,start:tt,children:rt}=this.props;return _e?jsxRuntimeExports.jsx("ol",{className:cls$4,type:et,start:tt,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:rt})}):jsxRuntimeExports.jsx("ul",{className:cls$4,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:rt})})}}const cls$4=mergeStyles$1(astClasses.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class ListItemRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.children!==_e.children}render(){const _e=this.props.children;return jsxRuntimeExports.jsx("li",{className:cls$3,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:_e})})}}const cls$3=mergeStyles$1(astClasses.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class ParagraphRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.children!==_e.children}render(){const _e=this.props.children;return _e.some(tt=>tt.type===ImageType$1||tt.type===ImageReferenceType)?jsxRuntimeExports.jsx("div",{className:paragraphDisplayCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:_e})}):jsxRuntimeExports.jsx("p",{className:paragraphCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:_e})})}}const paragraphCls=mergeStyles$1(astClasses.paragraph,{overflow:"hidden",padding:0,margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.8",hyphens:"auto",wordBreak:"normal",letterSpacing:"1px",overflowWrap:"break-word","> :last-child":{marginBottom:0}}),paragraphDisplayCls=mergeStyles$1(paragraphCls,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class StrongRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.children!==_e.children}render(){const _e=this.props.children;return jsxRuntimeExports.jsx("strong",{className:cls$2,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:_e})})}}const cls$2=mergeStyles$1(astClasses.strong,{fontWeight:600});class TableRenderer extends React.Component{shouldComponentUpdate(_e){const et=this.props;return!isEqual$2(et.columns,_e.columns)||!isEqual$2(et.children,_e.children)}render(){const{columns:_e,children:et}=this.props,tt=_e.map(ot=>ot.align??void 0),[rt,...nt]=et.map(ot=>ot.children.map((it,st)=>jsxRuntimeExports.jsx(NodesRenderer,{nodes:it.children},st)));return jsxRuntimeExports.jsxs("table",{className:cls$1,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:rt.map((ot,it)=>jsxRuntimeExports.jsx(Th,{align:tt[it],children:ot},it))})}),jsxRuntimeExports.jsx("tbody",{children:nt.map((ot,it)=>jsxRuntimeExports.jsx("tr",{children:ot.map((st,lt)=>jsxRuntimeExports.jsx("td",{align:tt[lt],children:st},lt))},it))})]})}}class Th extends React.Component{constructor(_e){super(_e),this.ref={current:null}}shouldComponentUpdate(_e){const et=this.props;return et.align!==_e.align||et.children!==_e.children}render(){const{align:_e,children:et}=this.props;return jsxRuntimeExports.jsx("th",{ref:this.ref,align:_e,children:et})}componentDidMount(){const _e=this.ref.current;_e&&_e.setAttribute("title",_e.innerText)}componentDidUpdate(){const _e=this.ref.current;_e&&_e.setAttribute("title",_e.innerText)}}const cls$1=mergeStyles$1(astClasses.table,{display:"block",overflow:"auto",width:"max-content",maxWidth:"100%",padding:0,borderCollapse:"collapse",borderRadius:"6px",borderSpacing:"0px",border:"1px solid var(--colorBorderTable)",margin:"0 auto 1.25em",lineHeight:"1.6","> thead":{backgroundColor:"var(--colorBgTableHead)",borderBottom:"1px solid #f0f0f0",th:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)",wordBreak:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:first-child":{borderLeft:"none"}}},"> tbody":{tr:{borderTop:"1px solid var(--colorBorderTable)",backgroundColor:"var(--colorBgTableOddRow)"},"tr:nth-child(2n)":{backgroundColor:"var(--colorBgTableEvenRow)"},td:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)","&:first-child":{borderLeft:"none"}}}});class TextRenderer extends React.Component{shouldComponentUpdate(_e){return this.props.value!==_e.value}render(){return jsxRuntimeExports.jsx(React.Fragment,{children:this.props.value})}}class ThematicBreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("hr",{className:cls})}}const cls=mergeStyles$1(astClasses.thematicBreak,{boxSizing:"content-box",display:"block",height:0,width:"100%",padding:0,border:0,borderBottom:"1px solid #dadada",outline:0,margin:"1.5em 0px"});function buildNodeRendererMap(j){if(j==null)return defaultNodeRendererMap;let _e=!1;const et={};for(const[tt,rt]of Object.entries(j))rt&&rt!==defaultNodeRendererMap[tt]&&(_e=!0,et[tt]=rt);return _e?{...defaultNodeRendererMap,...et}:defaultNodeRendererMap}const defaultNodeRendererMap={[BlockquoteType]:BlockquoteRenderer,[BreakType]:BreakRenderer,[CodeType]:CodeRenderer,[DefinitionType]:()=>null,[DeleteType]:DeleteRenderer,[EmphasisType]:EmphasisRenderer,[HeadingType]:HeadingRenderer,[HtmlType]:()=>null,[ImageType$1]:ImageRenderer,[ImageReferenceType]:ImageReferenceRenderer,[InlineCodeType]:InlineCodeRenderer,[LinkType]:LinkRenderer,[LinkReferenceType]:LinkReferenceRenderer,[ListType]:ListRenderer,[ListItemType]:ListItemRenderer,[ParagraphType$1]:ParagraphRenderer,[StrongType]:StrongRenderer,[TableType]:TableRenderer,[TextType$1]:TextRenderer,[ThematicBreakType]:ThematicBreakRenderer,_fallback:function j(_e,et){return console.warn(`Cannot find render for \`${_e.type}\` type node with key \`${et}\`:`,_e),null}},ReactMarkdown=j=>{const{presetDefinitionMap:_e,customizedRendererMap:et,preferCodeWrap:tt=!1,showCodeLineno:rt=!0,text:nt,themeScheme:ot="lighten",className:it,style:st}=j,lt=React.useMemo(()=>parser.parse(nt),[nt]),ut=React.useMemo(()=>calcDefinitionMap(lt).definitionMap,[lt]),[ct]=React.useState(()=>new ReactMarkdownViewModel({definitionMap:{..._e,...ut},rendererMap:buildNodeRendererMap(et),preferCodeWrap:tt,showCodeLineno:rt,themeScheme:ot})),dt=React.useMemo(()=>({viewmodel:ct}),[ct]),ft=mergeClasses(rootCls,ot==="darken"&&astClasses.rootDarken,it);return React.useEffect(()=>{ct.preferCodeWrap$.next(tt)},[ct,tt]),React.useEffect(()=>{ct.showCodeLineno$.next(rt)},[ct,rt]),React.useEffect(()=>{ct.themeScheme$.next(ot)},[ct,ot]),jsxRuntimeExports.jsx("div",{className:ft,style:st,children:jsxRuntimeExports.jsx(NodeRendererContextType.Provider,{value:dt,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:lt.children})})})},rootCls=mergeStyles$1(astClasses.root,{wordBreak:"break-all",userSelect:"unset",[astClasses.listItem]:{[`> ${astClasses.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}}),BasicViewer=({styles:j,showEmpty:_e,emptyRender:et,previewRender:tt,rawRender:rt,headerRender:nt})=>{const ot=useClasses$o(),[it,st]=reactExports.useState("preview"),lt=reactExports.useCallback(ct=>{st(ct)},[]),ut=useLocStrings();return _e?et?et():jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:ut["No content"]}):jsxRuntimeExports.jsxs("div",{className:j==null?void 0:j.root,children:[rt&&jsxRuntimeExports.jsxs("div",{className:ot.header,children:[jsxRuntimeExports.jsx("div",{style:{flex:1},children:nt==null?void 0:nt()}),jsxRuntimeExports.jsx("div",{className:ot.groupWrapper,children:jsxRuntimeExports.jsxs("div",{className:ot.buttonGroup,children:[jsxRuntimeExports.jsx(Button$2,{value:"preview",size:"small",appearance:it==="preview"?void 0:"transparent",onClick:()=>lt("preview"),children:ut.Preview}),jsxRuntimeExports.jsx(Button$2,{value:"raw",size:"small",appearance:it==="raw"?void 0:"transparent",onClick:()=>lt("raw"),children:ut.Raw})]})})]}),it==="preview"||!rt?tt():null,it==="raw"&&rt?rt():null]})},useClasses$o=makeStyles({header:{display:"flex",alignItems:"center",marginBottom:"12px"},groupWrapper:{display:"flex",flexDirection:"row-reverse"},buttonGroup:{display:"inline-flex",...shorthands.borderRadius("5px"),backgroundColor:tokens.colorNeutralBackground5}}),MarkdownViewer=({content:j})=>{const _e=useStyles$f();return jsxRuntimeExports.jsx(BasicViewer,{styles:_e,showEmpty:!j,previewRender:()=>jsxRuntimeExports.jsx(ReactMarkdown,{text:`${j}`}),rawRender:()=>jsxRuntimeExports.jsx("div",{style:{marginTop:6},children:`${j}`})})},useStyles$f=makeStyles({root:{wordBreak:"break-all",whiteSpace:"break-spaces",...shorthands.overflow("auto")}}),EmbeddingNodeInfo=()=>{var rt,nt,ot;const j=useSelectedSpan(),_e=((rt=j==null?void 0:j.attributes)==null?void 0:rt["llm.response.model"])??((nt=j==null?void 0:j.attributes)==null?void 0:nt["embedding.model"]),et=JSON.parse(((ot=j==null?void 0:j.attributes)==null?void 0:ot["embedding.embeddings"])??"[]")??[],tt=useLocStrings();return jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("span",{children:_e})}),et.map((it,st)=>jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("i",{children:tt.Embedded_text})}),it["embedding.text"]?jsxRuntimeExports.jsx(MarkdownViewer,{content:it["embedding.text"]}):null]},st))]})},CollapsibleTextArea=({children:j})=>{const[_e,et]=reactExports.useState(!0),tt=useClasses$n();return jsxRuntimeExports.jsxs("div",{className:tt.wrapper,children:[jsxRuntimeExports.jsx(Button$2,{icon:_e?jsxRuntimeExports.jsx(TextWrapOff16Regular,{}):jsxRuntimeExports.jsx(TextWrap16Regular,{}),onClick:()=>et(!_e),size:"small"}),jsxRuntimeExports.jsx("pre",{className:`${_e&&tt.wrap} ${tt.pre}`,children:j})]})},useClasses$n=makeStyles({wrapper:{width:"95%",height:"100%",paddingLeft:tokens.spacingHorizontalM,color:tokens.colorNeutralForeground1,display:"flex",flexDirection:"column"},wrap:{wordBreak:"break-all",whiteSpace:"pre-wrap"},pre:{marginTop:0}}),ErrorsTab=()=>{var st;const j=useClasses$m(),_e=useSelectedSpan(),et=(_e==null?void 0:_e.events)??[],[tt,rt]=reactExports.useState((st=et[0])==null?void 0:st.name),nt=et.find(lt=>lt.name===tt),ot=useIsDark(),it=useLocStrings();return jsxRuntimeExports.jsx(Card,{style:{height:"100%"},children:et.length===0?jsxRuntimeExports.jsxs("div",{className:j.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$2,{className:j.emptyText,children:[" ",it.No_Events_found]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx(TabList,{selectedValue:tt,onTabSelect:(lt,ut)=>{rt(ut.value)},children:et.map(lt=>jsxRuntimeExports.jsx(Tab$1,{value:lt.name,children:lt.name},lt.name))})}),jsxRuntimeExports.jsx("div",{className:j.wrapper,children:nt&&jsxRuntimeExports.jsx(JsonView,{src:nt,collapseStringsAfterLength:1e4,theme:"vscode",dark:ot,customizeNode:({node:lt,indexOrName:ut})=>{if(ut==="exception.message"||ut==="exception.stacktrace")return jsxRuntimeExports.jsx(CollapsibleTextArea,{children:lt})}})})]})})},useClasses$m=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%",...shorthands.overflow("auto"),...shorthands.gap("8px")},grid:{flexGrow:1},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens.spacingVerticalM},exceptionText:{width:"100%",paddingLeft:tokens.spacingHorizontalM,color:tokens.colorNeutralForeground1,...shorthands.margin("0")}}),useEvaluationTracesListRow=j=>{const[_e,et]=reactExports.useState([]),tt=reactExports.useMemo(()=>{const it={};return j.forEach(st=>{var lt;(lt=st==null?void 0:st.context)!=null&<.span_id&&(it[st.context.span_id]={...st,children:[],depth:0})}),j.forEach(st=>{var lt;if(st.parent_id&&((lt=st==null?void 0:st.context)!=null&<.span_id)&&st.parent_id!==""){const ut=it[st.parent_id],ct=it[st.context.span_id];ct.depth=ut.depth+1,ut.children.push(ct)}}),Object.values(it).filter(st=>!st.parent_id)},[j]),rt=reactExports.useCallback(it=>{if(_e.includes(it)){const lt=findRowById(it,tt);if(!lt)return;const ct=(lt.children?findAllDescendants(lt):[]).map(ft=>{var pt;return(pt=ft==null?void 0:ft.context)==null?void 0:pt.span_id}).filter(ft=>ft!==void 0),dt=_e.filter(ft=>ft!==it).filter(ft=>!ct.includes(ft));et(dt)}else et([..._e,it])},[_e,tt]),nt=reactExports.useMemo(()=>{const it=st=>st.reduce((lt,ut)=>{var ft,pt;const dt=((ft=ut==null?void 0:ut.context)!=null&&ft.span_id?_e.includes((pt=ut==null?void 0:ut.context)==null?void 0:pt.span_id):!1)?it(ut.children):[];return[...lt,ut,...dt]},[]);return it(tt)},[_e,tt]),ot=reactExports.useCallback(it=>it?_e.includes(it):!1,[_e]);return{rows:nt,toggleSubRows:rt,isRowExpanded:ot}},findAllDescendants=j=>{let _e=[...j.children];return j.children.forEach(et=>{_e=[..._e,...findAllDescendants(et)]}),_e},findRowById=(j,_e)=>{var et;for(const tt of _e){if(((et=tt==null?void 0:tt.context)==null?void 0:et.span_id)===j)return tt;const rt=findRowById(j,tt.children);if(rt)return rt}return null},CellExpander=({isExpanded:j=!1,onToggle:_e})=>{const et=useClasses$l();return jsxRuntimeExports.jsx("div",{className:et.wrapper,onClick:()=>_e&&_e(!j),children:j?jsxRuntimeExports.jsx(ChevronDown16Filled,{}):jsxRuntimeExports.jsx(ChevronRight16Filled,{})})},useClasses$l=makeStyles({wrapper:{cursor:"pointer",display:"flex"}}),UNDEFINED_VALUE_PLACEHOLDER="N/A",TRACE_POLLING_GAP=6e4,SPAN_POLLING_GAP=3e4,LOCAL_URL_PREFIX="";function KindText({kind:j}){return jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",size:"medium",children:j||UNDEFINED_VALUE_PLACEHOLDER})}function formatDecimal(j){return Math.abs(j=Math.round(j))>=1e21?j.toLocaleString("en").replace(/,/g,""):j.toString(10)}function formatDecimalParts(j,_e){if((et=(j=_e?j.toExponential(_e-1):j.toExponential()).indexOf("e"))<0)return null;var et,tt=j.slice(0,et);return[tt.length>1?tt[0]+tt.slice(2):tt,+j.slice(et+1)]}function exponent(j){return j=formatDecimalParts(Math.abs(j)),j?j[1]:NaN}function formatGroup(j,_e){return function(et,tt){for(var rt=et.length,nt=[],ot=0,it=j[0],st=0;rt>0&&it>0&&(st+it+1>tt&&(it=Math.max(1,tt-st)),nt.push(et.substring(rt-=it,rt+it)),!((st+=it+1)>tt));)it=j[ot=(ot+1)%j.length];return nt.reverse().join(_e)}}function formatNumerals(j){return function(_e){return _e.replace(/[0-9]/g,function(et){return j[+et]})}}var re$1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(j){if(!(_e=re$1.exec(j)))throw new Error("invalid format: "+j);var _e;return new FormatSpecifier({fill:_e[1],align:_e[2],sign:_e[3],symbol:_e[4],zero:_e[5],width:_e[6],comma:_e[7],precision:_e[8]&&_e[8].slice(1),trim:_e[9],type:_e[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(j){this.fill=j.fill===void 0?" ":j.fill+"",this.align=j.align===void 0?">":j.align+"",this.sign=j.sign===void 0?"-":j.sign+"",this.symbol=j.symbol===void 0?"":j.symbol+"",this.zero=!!j.zero,this.width=j.width===void 0?void 0:+j.width,this.comma=!!j.comma,this.precision=j.precision===void 0?void 0:+j.precision,this.trim=!!j.trim,this.type=j.type===void 0?"":j.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(j){e:for(var _e=j.length,et=1,tt=-1,rt;et<_e;++et)switch(j[et]){case".":tt=rt=et;break;case"0":tt===0&&(tt=et),rt=et;break;default:if(!+j[et])break e;tt>0&&(tt=0);break}return tt>0?j.slice(0,tt)+j.slice(rt+1):j}var prefixExponent;function formatPrefixAuto(j,_e){var et=formatDecimalParts(j,_e);if(!et)return j+"";var tt=et[0],rt=et[1],nt=rt-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(rt/3)))*3)+1,ot=tt.length;return nt===ot?tt:nt>ot?tt+new Array(nt-ot+1).join("0"):nt>0?tt.slice(0,nt)+"."+tt.slice(nt):"0."+new Array(1-nt).join("0")+formatDecimalParts(j,Math.max(0,_e+nt-1))[0]}function formatRounded(j,_e){var et=formatDecimalParts(j,_e);if(!et)return j+"";var tt=et[0],rt=et[1];return rt<0?"0."+new Array(-rt).join("0")+tt:tt.length>rt+1?tt.slice(0,rt+1)+"."+tt.slice(rt+1):tt+new Array(rt-tt.length+2).join("0")}const formatTypes={"%":(j,_e)=>(j*100).toFixed(_e),b:j=>Math.round(j).toString(2),c:j=>j+"",d:formatDecimal,e:(j,_e)=>j.toExponential(_e),f:(j,_e)=>j.toFixed(_e),g:(j,_e)=>j.toPrecision(_e),o:j=>Math.round(j).toString(8),p:(j,_e)=>formatRounded(j*100,_e),r:formatRounded,s:formatPrefixAuto,X:j=>Math.round(j).toString(16).toUpperCase(),x:j=>Math.round(j).toString(16)};function identity$4(j){return j}var map$2=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(j){var _e=j.grouping===void 0||j.thousands===void 0?identity$4:formatGroup(map$2.call(j.grouping,Number),j.thousands+""),et=j.currency===void 0?"":j.currency[0]+"",tt=j.currency===void 0?"":j.currency[1]+"",rt=j.decimal===void 0?".":j.decimal+"",nt=j.numerals===void 0?identity$4:formatNumerals(map$2.call(j.numerals,String)),ot=j.percent===void 0?"%":j.percent+"",it=j.minus===void 0?"−":j.minus+"",st=j.nan===void 0?"NaN":j.nan+"";function lt(ct){ct=formatSpecifier(ct);var dt=ct.fill,ft=ct.align,pt=ct.sign,gt=ct.symbol,mt=ct.zero,bt=ct.width,_t=ct.comma,xt=ct.precision,yt=ct.trim,Et=ct.type;Et==="n"?(_t=!0,Et="g"):formatTypes[Et]||(xt===void 0&&(xt=12),yt=!0,Et="g"),(mt||dt==="0"&&ft==="=")&&(mt=!0,dt="0",ft="=");var St=gt==="$"?et:gt==="#"&&/[boxX]/.test(Et)?"0"+Et.toLowerCase():"",Tt=gt==="$"?tt:/[%p]/.test(Et)?ot:"",kt=formatTypes[Et],$t=/[defgprs%]/.test(Et);xt=xt===void 0?6:/[gprs]/.test(Et)?Math.max(1,Math.min(21,xt)):Math.max(0,Math.min(20,xt));function Ct(It){var Nt=St,Ot=Tt,jt,Mt,Rt;if(Et==="c")Ot=kt(It)+Ot,It="";else{It=+It;var Lt=It<0||1/It<0;if(It=isNaN(It)?st:kt(Math.abs(It),xt),yt&&(It=formatTrim(It)),Lt&&+It==0&&pt!=="+"&&(Lt=!1),Nt=(Lt?pt==="("?pt:it:pt==="-"||pt==="("?"":pt)+Nt,Ot=(Et==="s"?prefixes[8+prefixExponent/3]:"")+Ot+(Lt&&pt==="("?")":""),$t){for(jt=-1,Mt=It.length;++jtRt||Rt>57){Ot=(Rt===46?rt+It.slice(jt+1):It.slice(jt))+Ot,It=It.slice(0,jt);break}}}_t&&!mt&&(It=_e(It,1/0));var Pt=Nt.length+It.length+Ot.length,Gt=Pt>1)+Nt+It+Ot+Gt.slice(Pt);break;default:It=Gt+Nt+It+Ot;break}return nt(It)}return Ct.toString=function(){return ct+""},Ct}function ut(ct,dt){var ft=lt((ct=formatSpecifier(ct),ct.type="f",ct)),pt=Math.max(-8,Math.min(8,Math.floor(exponent(dt)/3)))*3,gt=Math.pow(10,-pt),mt=prefixes[8+pt/3];return function(bt){return ft(gt*bt)+mt}}return{format:lt,formatPrefix:ut}}var locale$1,format,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(j){return locale$1=formatLocale$1(j),format=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(j){return Math.max(0,-exponent(Math.abs(j)))}function precisionPrefix(j,_e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(_e)/3)))*3-exponent(Math.abs(j)))}function precisionRound(j,_e){return j=Math.abs(j),_e=Math.abs(_e)-j,Math.max(0,exponent(_e)-exponent(j))+1}function formatInt(j){return Math.abs(j)<1e6?format(",")(j):format("0.2s")(j)}function formatFloat(j){const _e=Math.abs(j);return _e===0?"0.00":_e<.01?format(".2e")(j):_e<1e3?format("0.2f")(j):format("0.2s")(j)}function formatNumber(j){return Number.isInteger(j)?formatInt(j):formatFloat(j)}function createNumberFormatter(j){return _e=>typeof _e!="number"?"--":j(_e)}const intFormatter=createNumberFormatter(formatInt),floatFormatter=createNumberFormatter(formatFloat),numberFormatter=createNumberFormatter(formatNumber),LatencyText=({startTimeISOString:j,endTimeISOString:_e,textSize:et,tipTextSize:tt})=>{const rt=useClasses$k(),nt=j?new Date(j):void 0,ot=_e?new Date(_e):void 0,it=nt&&ot?ot.getTime()-nt.getTime():void 0,st=reactExports.useMemo(()=>it===void 0?"N/A":it===0?"0 ms":it<10?formatFloat(it)+"ms":formatFloat(it/1e3)+"s",[it]);return jsxRuntimeExports.jsx(Tooltip$1,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Text$2,{size:tt,weight:"bold",block:!0,children:"Start Time"}),jsxRuntimeExports.jsx(Text$2,{size:tt,block:!0,children:timeFormat$1(j)}),jsxRuntimeExports.jsx(Text$2,{size:tt,weight:"bold",block:!0,children:"End Time"}),jsxRuntimeExports.jsx(Text$2,{size:tt,block:!0,children:timeFormat$1(_e)})]}),relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:rt.wrapper,children:[jsxRuntimeExports.jsx(Clock20Regular,{}),jsxRuntimeExports.jsx(Text$2,{size:et,children:st})]})})},useClasses$k=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center","> svg":{marginRight:"5px"}}});function StatusText({statusCode:j,showText:_e=!1,textSize:et,tooltipContent:tt}){const rt=useClasses$j(),nt=useLocStrings();j=j||nt.unknown;const[ot,it]=reactExports.useMemo(()=>{switch(j==null?void 0:j.toLowerCase()){case"ok":case"completed":return[jsxRuntimeExports.jsx(CheckmarkCircle20Regular,{},"ok"),tokens.colorPaletteGreenForeground1];case"error":return[jsxRuntimeExports.jsx(DismissCircle20Regular,{},"error"),tokens.colorPaletteRedForeground1];case"unset":return[jsxRuntimeExports.jsx(ErrorCircle20Regular,{},"unset"),tokens.colorPaletteYellowForeground1];case"running":return[jsxRuntimeExports.jsx(ArrowClockwiseDashes20Regular,{className:rt.rotate},"running"),tokens.colorPaletteYellowForeground1];default:return[jsxRuntimeExports.jsx(QuestionCircle20Regular,{},"unknown"),tokens.colorPaletteYellowForeground1]}},[rt.rotate,j]);return jsxRuntimeExports.jsx(Tooltip$1,{content:tt??j??"",relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:rt.wrapper,style:{color:it},children:[ot,_e&&jsxRuntimeExports.jsx(Text$2,{size:et,children:j})]})})}const useClasses$j=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center","> svg":{marginRight:"5px"}},rotate:{animationDuration:"2s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}});function TimeText({time:j}){const _e=timeFormat$1(j);return jsxRuntimeExports.jsx("time",{children:_e})}function TokenText({token:j,info:_e}){const et=useClasses$i(),tt=typeof j=="number"?intFormatter(j):j;return jsxRuntimeExports.jsxs("div",{className:et.wrapper,children:[jsxRuntimeExports.jsx(NumberCircle020Regular,{}),_e?jsxRuntimeExports.jsx(Tooltip$1,{content:_e,relationship:"description",children:jsxRuntimeExports.jsx("div",{style:{lineHeight:"30px",marginLeft:-24,paddingLeft:24},children:tt})}):jsxRuntimeExports.jsx(Text$2,{children:tt})]})}const useClasses$i=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center","> svg":{marginRight:"5px"}}}),CellWrapper=({children:j})=>{const _e=useClasses$h();return jsxRuntimeExports.jsx("div",{className:_e.cellWrapper,children:j})},TextCellWrapper=({children:j})=>{const _e=useClasses$h();return jsxRuntimeExports.jsx("div",{className:_e.textCellWrapper,children:jsxRuntimeExports.jsx("p",{className:_e.textCellP,children:j})})},CellSkeleton=({height:j})=>{const _e=useClasses$h();return jsxRuntimeExports.jsx(Skeleton,{className:_e.textCellWrapper,children:jsxRuntimeExports.jsx(SkeletonItem,{style:{height:`${j??20}px`}})})},useClasses$h=makeStyles({cellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},textCellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%",width:"100%"},textCellP:{wordWrap:"break-word",maxWidth:"100%",lineHeight:tokens.lineHeightBase200,fontSize:tokens.fontSizeBase300,maxHeight:"100%",whiteSpace:"normal",...shorthands.padding(tokens.spacingVerticalS,tokens.spacingHorizontalXS)}}),isValidJson=j=>{if(typeof j=="string")return!1;try{return JSON.stringify(j),!0}catch{return!1}},TraceListJsonCell=({jsonObject:j,isViewDetailEnabled:_e=!1})=>{const et=isValidJson(j);return jsxRuntimeExports.jsx(CellWrapper,{children:et?jsxRuntimeExports.jsx(TraceListObjectCell,{object:j,isViewDetailEnabled:_e}):jsxRuntimeExports.jsx(TextCellWrapper,{children:formatText(String(j))})})},TraceListObjectCell=({object:j,isViewDetailEnabled:_e})=>{const et=useIsDark();return _e?jsxRuntimeExports.jsxs(Dialog,{children:[jsxRuntimeExports.jsx(DialogTrigger,{children:jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonView,{src:j,enableClipboard:!1,collapsed:1,dark:et,theme:"vscode"})})}),jsxRuntimeExports.jsx(DialogSurface,{children:jsxRuntimeExports.jsx("div",{style:{height:"800px",width:"800ppx",marginTop:"12px",lineHeight:"16px",overflow:"auto"},children:jsxRuntimeExports.jsx(JsonView,{src:j,enableClipboard:!0,collapseStringsAfterLength:200,dark:et,theme:"vscode"})})})]}):jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonView,{src:j,enableClipboard:!1,collapseStringsAfterLength:50,collapsed:1,dark:et,theme:"vscode"})})},MAX_LENGTH=80;function formatText(j){return j.length>MAX_LENGTH?`${j.slice(0,MAX_LENGTH)}...`:j}const useClasses$g=makeStyles({grid:{},row:{cursor:"pointer"},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}},kindCell:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"100%",...shorthands.gap("4px")}}),EvaluationTracesList=({evaluationSpans:j,className:_e})=>{const et=useClasses$g(),tt=useIsDark(),{rows:rt,toggleSubRows:nt,isRowExpanded:ot}=useEvaluationTracesListRow(j),it=useLocStrings();return jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${mergeStyles$1(et.grid,_e)} ${tt?"rdg-dark":"rdg-light"}`,rowClass:()=>et.row,columns:[{key:"kind",name:it.Kind,minWidth:150,maxWidth:300,renderCell:({row:st})=>{var ut,ct,dt;const lt=((ut=st==null?void 0:st.children)==null?void 0:ut.length)>0;return jsxRuntimeExports.jsxs("div",{className:et.kindCell,style:{paddingLeft:st.depth*16+(lt?0:20)},children:[lt&&jsxRuntimeExports.jsx(CellExpander,{isExpanded:ot((ct=st==null?void 0:st.context)==null?void 0:ct.span_id),onToggle:()=>{var ft,pt;(ft=st==null?void 0:st.context)!=null&&ft.span_id&&nt((pt=st==null?void 0:st.context)==null?void 0:pt.span_id)}}),jsxRuntimeExports.jsx(KindText,{kind:(dt=st.attributes)==null?void 0:dt.span_type})]})}},{key:"name",name:it.Name,minWidth:150,maxWidth:300,renderCell:({row:st})=>jsxRuntimeExports.jsx(Tooltip$1,{content:st.name??"",relationship:"label",children:jsxRuntimeExports.jsx("span",{className:et.nameCell,title:st.name,children:st.name})})},{key:"input",name:it.Input,minWidth:200,renderCell:({row:st})=>{var lt;return jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:JSON.parse(((lt=st.attributes)==null?void 0:lt.inputs)??"{}")})}},{key:"output",name:it.Output,minWidth:200,renderCell:({row:st})=>{var lt;return jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:JSON.parse(((lt=st.attributes)==null?void 0:lt.output)??"{}")})}},{key:"start_time",name:it.Start_time,minWidth:150,renderCell:({row:st})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:st.start_time})})},{key:"end_time",name:it.End_time,minWidth:150,renderCell:({row:st})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:st.end_time})})},{key:"latency",name:it.Latency,minWidth:120,renderCell:({row:st})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:st.start_time,endTimeISOString:st.end_time})})},{key:"total_tokens",name:it.Total_tokens,minWidth:120,renderCell:({row:st})=>{var lt;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TokenText,{token:Number.parseInt(((lt=st.attributes)==null?void 0:lt["__computed__.cumulative_token_count.total"])??"0")})})}},{key:"status",name:it.Status,minWidth:120,renderCell:({row:st})=>{var lt;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:(lt=st.status)==null?void 0:lt.status_code})})}}],rows:rt,headerRowHeight:26,rowHeight:80,defaultColumnOptions:{resizable:!0}})},MetricTag=({tag:j})=>{const _e=useClasses$f(),[et,tt]=React.useState(!0),rt=reactExports.useMemo(()=>{if(typeof j.value=="number")return formatNumber(j.value);{const nt=j.value.toString();return et&&nt.length>20?nt.substring(0,20)+"...":nt}},[j.value,et]);return jsxRuntimeExports.jsxs(Badge$2,{className:_e.wrapper,size:"medium",shape:"rounded",appearance:"outline",onClick:()=>tt(!et),children:[jsxRuntimeExports.jsxs("span",{className:_e.name,children:[j.name," "]}),jsxRuntimeExports.jsx("span",{className:_e.data,children:rt})]})},useClasses$f=makeStyles({wrapper:{display:"inline-flex",fontSize:"12px",cursor:"pointer",...shorthands.padding("0px","8px","1px"),...shorthands.borderColor(tokens.colorPaletteGreenBorder2),...shorthands.gap("0.5rem")},name:{color:tokens.colorPaletteGreenBorder2,fontWeight:tokens.fontWeightRegular},data:{color:tokens.colorNeutralForeground1,fontWeight:tokens.fontWeightRegular}}),EvaluationsTab=()=>{var st,lt,ut;const j=useClasses$e(),_e=useEvaluationSpansOfSelectedSpan(),[et,tt]=reactExports.useState((st=_e[0])==null?void 0:st.evaluationName),rt=((lt=_e.find(ct=>ct.evaluationName===et))==null?void 0:lt.evaluationTraces)??[],nt=useSelectedTrace(),ot=(nt==null?void 0:nt.evaluations)??{},it=((ut=ot[et??""])==null?void 0:ut.outputs)??{};return jsxRuntimeExports.jsxs(Card,{style:{height:"100%"},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx(TabList,{selectedValue:et,onTabSelect:(ct,dt)=>{tt(dt.value)},children:_e.map(ct=>jsxRuntimeExports.jsx(Tab$1,{value:ct.evaluationName,children:ct.evaluationName},ct.evaluationName))})}),jsxRuntimeExports.jsxs("div",{className:j.wrapper,children:[et&&ot[et]&&Object.keys(it).map(ct=>{const dt=it[ct];return dt?jsxRuntimeExports.jsx(MetricTag,{tag:{name:ct,value:dt}},ct):null}),jsxRuntimeExports.jsx(EvaluationTracesList,{evaluationSpans:rt,className:j.grid})]})]})},useClasses$e=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%",...shorthands.gap("8px")},grid:{flexGrow:1}}),useMessageCardClasses=makeStyles({card:{...shorthands.borderRadius("8px"),...shorthands.borderColor(tokens.colorNeutralStroke1),...shorthands.borderWidth("1px"),...shorthands.borderStyle("solid"),...shorthands.padding("16px"),...shorthands.margin("16px")}}),LLMNodeInvocationParametersTab=({invocationParameters:j})=>{const _e=useMessageCardClasses();return jsxRuntimeExports.jsx(Card,{className:_e.card,children:jsxRuntimeExports.jsx(JsonView,{src:j})})};var ChatMessageCategory=(j=>(j.System="system",j.Error="error",j.Chatbot="chatbot",j.User="user",j))(ChatMessageCategory||{}),ChatMessageType=(j=>(j.Message="message",j.SessionSplit="session-split",j))(ChatMessageType||{}),CopyStatus=(j=>(j[j.PENDING=0]="PENDING",j[j.COPYING=1]="COPYING",j[j.COPIED=2]="COPIED",j[j.FAILED=3]="FAILED",j))(CopyStatus||{}),ChatboxLocator=(j=>(j.MessageBubble="chatbox-message-bubble",j.MessageContent="chatbox-message-content",j.MessageList="chatbox-message-list",j.MessageActionBar="chatbox-message-action-bar",j))(ChatboxLocator||{}),ChatboxSelector=(j=>(j.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',j.MessageContent='[data-chatbox-locator="chatbox-message-content"]',j.MessageList='[data-chatbox-locator="chatbox-message-list"]',j.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',j))(ChatboxSelector||{});const defaultLocStrings$1={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class ChatboxViewModel{constructor(_e){this.calcContentForCopy=ct=>this.calcContentForCopy$.getSnapshot()(ct),this.monitorInputContentChange=ct=>this.inputContentChangeTick$.subscribeStateChange(ct),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(ct=>ct+1)},this.sendMessage=ct=>{const dt=this.editorRef.current;if(!dt){console.log("!!!editorRef is not mounted.");return}const ft=ct??dt.getContent(),pt=this.sendMessage$.getSnapshot(),mt=this.makeUserMessage$.getSnapshot()(ft);this.messages$.setState(bt=>[...bt,mt]),dt.clear(),this.isOthersTyping$.next(!0),pt(ft,this,mt).then(bt=>{bt!==void 0&&this.messages$.setState(_t=>[..._t,bt])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=ct=>{this.calcContentForCopy$.next(ct)},this.setMakeUserMessage=ct=>{this.makeUserMessage$.next(ct)},this.setSendMessage=ct=>{this.sendMessage$.next(ct)},this.sessionSplit=ct=>{const dt={id:uuid_1.v4(),type:ChatMessageType.SessionSplit,history:[{category:ChatMessageCategory.System,from:"system",content:ct??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(ft=>[...ft,dt]),dt};const{alias:et="",initialDisabled:tt=!1,initialMessages:rt=[],locStrings:nt=defaultLocStrings$1,calcContentForCopy:ot=ct=>typeof ct.content=="string"?ct.content:JSON.stringify(ct.content),makeUserMessage:it=ct=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:ct}]}),sendMessage:st=async ct=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:ct}]})}=_e;this.editorRef={current:null};const lt=new State(0),ut=Computed.fromObservables([lt],()=>{var ct;return(ct=this.editorRef.current)==null?void 0:ct.isEmpty()});this.alias$=new State(et),this.disabled$=new State(tt),this.inputContentChangeTick$=lt,this.isEditorEmpty$=ut,this.isOthersTyping$=new State(!1),this.locStrings$=new State(nt),this.messages$=new State(rt),this.calcContentForCopy$=new State(ot),this.makeUserMessage$=new State(it),this.sendMessage$=new State(st)}}const viewmodel=new ChatboxViewModel({sendMessage:()=>Promise.resolve({id:Date.now(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})});React.createContext({viewmodel});function useEventCallback$1(j){const _e=reactExports.useRef(j);return reactExports.useLayoutEffect(()=>{_e.current=j}),reactExports.useCallback((...et)=>{const tt=_e.current;return tt(...et)},[])}function useCopyAction(j,_e){const[et,tt]=React.useState(CopyStatus.PENDING),rt=useEventCallback$3(ot=>{if(et===CopyStatus.PENDING){tt(CopyStatus.COPYING);try{const it=_e(ot);copy$4(it),tt(CopyStatus.COPIED)}catch{tt(CopyStatus.FAILED)}}});return React.useEffect(()=>{if(et===CopyStatus.COPIED||et===CopyStatus.FAILED){let ot=setTimeout(()=>{ot=void 0,tt(CopyStatus.PENDING)},1500);return()=>{ot&&clearTimeout(ot)}}},[et]),React.useMemo(()=>({key:"copy",group:2,icon:et===CopyStatus.PENDING?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),tooltip:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:j.CopyToClipboard}),disabled:et!==CopyStatus.PENDING,onClick:rt,condition:ot=>ot.category===ChatMessageCategory.Chatbot||ot.category===ChatMessageCategory.User||ot.category===ChatMessageCategory.Error}),[j,et,rt])}makeStyles({copyButton:{cursor:"pointer"}});const defaultUploadPopoverLocStrings={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},ImageView=j=>{const{src:_e,alt:et,loading:tt=!1,width:rt,height:nt,styles:ot}=j;return _e?tt?jsxRuntimeExports.jsx("div",{children:"Loading..."}):jsxRuntimeExports.jsx("div",{className:ot==null?void 0:ot.root,children:jsxRuntimeExports.jsx("img",{className:ot==null?void 0:ot.image,src:_e,alt:et,width:rt,height:nt})}):jsxRuntimeExports.jsx("div",{children:"This image can not be previewed."})},ImageViewModal=j=>{const{src:_e,alt:et,visible:tt,loading:rt=!1,width:nt,height:ot,onDismiss:it}=j,st=useStyles$e(),lt=jsxRuntimeExports.jsxs("div",{className:st.container,children:[jsxRuntimeExports.jsxs("div",{className:st.header,children:[jsxRuntimeExports.jsx("h2",{className:st.heading,children:"Preview"}),jsxRuntimeExports.jsx(Button$2,{as:"button",appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),className:st.dismissBtn,onClick:it})]}),jsxRuntimeExports.jsx("div",{className:st.main,children:jsxRuntimeExports.jsx(ImageView,{src:_e,alt:et,loading:rt,width:nt,height:ot,styles:{image:st.image}})})]});return jsxRuntimeExports.jsx(Modal,{isOpen:tt,isBlocking:!1,onDismiss:it,children:lt})},useStyles$e=makeStyles({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...shorthands.padding("16px")},header:{...shorthands.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...shorthands.margin(0),fontWeight:FontWeights.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:tokens.colorNeutralStroke1}},main:{...shorthands.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),IMAGE_WIDTH="48px",MASK_SELECTOR_CLASS_NAME="__MASK_SELECTOR_CLASS_NAME__",UploadPopoverImagePreview=j=>{const{image:_e,alt:et,isReadonly:tt,onClickDelete:rt}=j,[nt,ot]=React.useState(!1),it=useStyles$d(),st=React.useMemo(()=>{if(_e)return typeof _e=="string"?_e:URL.createObjectURL(_e)},[_e]),lt=React.useCallback(()=>{ot(ct=>!ct)},[]),ut=st||"";return jsxRuntimeExports.jsxs("div",{className:mergeClasses(it.root,tt?it.readonlyRoot:void 0),children:[jsxRuntimeExports.jsxs("div",{className:it.imageContainer,children:[jsxRuntimeExports.jsx("img",{decoding:"async",className:it.image,src:ut,alt:et}),jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:mergeClasses(it.mask,MASK_SELECTOR_CLASS_NAME),onClick:lt,role:"button",children:jsxRuntimeExports.jsx(ZoomIn20Regular,{})})]}),!tt&&jsxRuntimeExports.jsx(Button$2,{as:"button",className:it.closeButton,icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:rt}),jsxRuntimeExports.jsx(ImageViewModal,{src:ut,alt:et||"",visible:nt,onDismiss:lt})]})},useStyles$d=makeStyles({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...shorthands.border("1px","solid",tokens.colorNeutralStroke2),...shorthands.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:IMAGE_WIDTH,[`:hover .${MASK_SELECTOR_CLASS_NAME}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${IMAGE_WIDTH} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:tokens.colorNeutralForegroundStaticInverted,...shorthands.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...shorthands.border(0)}}),UploadPopoverTrigger=React.forwardRef((j,_e)=>jsxRuntimeExports.jsx(Button$2,{...j,ref:_e,as:"button",appearance:"transparent",size:"medium",icon:jsxRuntimeExports.jsx(Attach16Regular,{})}));UploadPopoverTrigger.displayName="UploadPopoverTrigger";const mergeStyleSlots=(j,..._e)=>{const et={...j};for(const tt of Object.keys(j))et[tt]=mergeClasses(j[tt],..._e.map(rt=>rt==null?void 0:rt[tt]));return et},UploadPopover=React.forwardRef(({isUploading:j,disabled:_e,trigger:et=jsxRuntimeExports.jsx(UploadPopoverTrigger,{}),locStrings:tt=defaultUploadPopoverLocStrings,styles:rt,events:nt,onUpload:ot,onRenderImagePreview:it},st)=>{const lt=mergeStyleSlots(useStyles$c(),rt),{onDelete:ut,onInputBlur:ct,onPaste:dt,onLocalUpload:ft}=nt??{};React.useImperativeHandle(st,()=>({open(){gt(!0)},close(){gt(!1)},reset:()=>{St()},retrieve:()=>_t}));const[pt,gt]=React.useState(!1),[mt,bt]=React.useState(""),[_t,xt]=React.useState(void 0),yt=React.useRef(null),Et=React.useCallback((Nt,Ot)=>{gt(Ot.open||!1)},[]),St=React.useCallback(()=>{bt(""),xt(void 0),yt.current&&(yt.current.value="")},[]),Tt=React.useCallback(Nt=>{const Ot=Nt[0];xt(Ot),dt==null||dt(Ot)},[dt]),kt=React.useCallback(Nt=>{Nt.clipboardData.files&&Tt&&Tt(Nt.clipboardData.files)},[Tt]),$t=React.useCallback(()=>{ct==null||ct(mt),xt(mt)},[mt,ct]),Ct=React.useCallback(()=>{_t&&ot(_t)},[_t,ot]),It=React.useMemo(()=>it?it({cachedImage:_t,customerInputContent:mt,isReadonly:_e||j||!1}):jsxRuntimeExports.jsx(UploadPopoverImagePreview,{image:_t||mt,alt:mt||"",isReadonly:j,onClickDelete:()=>{St(),ut==null||ut()}}),[mt,_t,St,_e,j,ut,it]);return jsxRuntimeExports.jsxs(Popover,{positioning:"above-end",open:pt,onOpenChange:Et,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:et}),jsxRuntimeExports.jsxs(PopoverSurface,{className:lt.attachUploadPopover,children:[jsxRuntimeExports.jsxs("div",{className:lt.attachUploadHeader,children:[jsxRuntimeExports.jsx("span",{children:tt.AddAnImage}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:_e,appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),onClick:()=>{gt(!1)}})]}),jsxRuntimeExports.jsxs("div",{className:lt.attachUploadInputWrapper,children:[_t?It:jsxRuntimeExports.jsx(Input,{className:lt.attachUploadInput,value:mt,disabled:_e,placeholder:tt.PasteImageOrLinkHere,onChange:(Nt,Ot)=>{xt(void 0),bt(Ot.value)},onPaste:kt,onBlur:$t}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:_e||j||!_t&&!mt,className:lt.addButton,onClick:Ct,children:j?jsxRuntimeExports.jsx(Spinner,{size:"tiny"}):tt.Add})]}),jsxRuntimeExports.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:yt,disabled:_e,className:lt.invisibleFileInput,onChange:Nt=>{var jt;const Ot=(jt=Nt.target.files)==null?void 0:jt[0];Ot&&(ft==null||ft(Ot)),xt(Ot)},type:"file",accept:"image/*"}),jsxRuntimeExports.jsx("div",{className:lt.triggerUploadButton,children:jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:_e,appearance:"transparent",icon:jsxRuntimeExports.jsx(ArrowUpload24Regular,{}),onClick:()=>{var Nt;(Nt=yt.current)==null||Nt.click()},children:tt.UploadFromThisDevice})})]})]})});UploadPopover.displayName="UploadPopover";const useStyles$c=makeStyles({attachUploadPopover:{width:"400px",backgroundColor:tokens.colorNeutralBackground1,...shorthands.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}});function DefaultMessageContentRenderer(j){const{content:_e,className:et}=j,tt=useStyles$b(),rt=mergeClasses(tt.content,et);if(typeof _e=="string")return jsxRuntimeExports.jsx("p",{className:rt,children:_e});const nt=JSON.stringify(_e,null,2);return jsxRuntimeExports.jsx("pre",{className:rt,children:nt})}DefaultMessageContentRenderer.displayName="DefaultMessageContentRenderer";const useStyles$b=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function DefaultMessageErrorRenderer(j){const{error:_e,locStrings:et,className:tt}=j,[rt,nt]=React.useState(!1),ot=useStyles$a(),it=mergeClasses(ot.errorMessageDetail,!rt&&ot.errorMessageDetailHidden,tt);return jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(Link$1,{onClick:()=>nt(st=>!st),children:rt?et.MessageError_HideDetail:et.MessageError_ShowDetail})}),jsxRuntimeExports.jsx("p",{className:it,children:_e})]})}DefaultMessageErrorRenderer.displayName="DefaultMessageErrorRenderer";const useStyles$a=makeStyles({errorMessageDetail:{...shorthands.margin("0","0","0","0"),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),useToolbarDefaultActions=()=>React.useMemo(()=>[],[]);function DefaultMessageActionBarRenderer(j){const{useMessageActions:_e=useToolbarDefaultActions,data:et,className:tt}=j,rt=_e(et),nt=useStyles$9(),ot=React.useMemo(()=>{const lt=rt.filter(ct=>!ct.condition||ct.condition(et)).sort((ct,dt)=>ct.group-dt.group),ut=[];for(let ct=0,dt;ct0))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const st=[];for(let lt=0;ltmt(et)},dt)},dt))}lt+1{et>0&&rt(et-1)},it=()=>{et=Mt?jt:""+Array(Mt+1-Lt.length).join(Rt)+jt},yt={s:xt,z:function(jt){var Mt=-jt.utcOffset(),Rt=Math.abs(Mt),Lt=Math.floor(Rt/60),Pt=Rt%60;return(Mt<=0?"+":"-")+xt(Lt,2,"0")+":"+xt(Pt,2,"0")},m:function jt(Mt,Rt){if(Mt.date()1)return jt(qt[0])}else{var Yt=Mt.name;St[Yt]=Mt,Pt=Yt}return!Lt&&Pt&&(Et=Pt),Pt||!Lt&&Et},Ct=function(jt,Mt){if(kt(jt))return jt.clone();var Rt=typeof Mt=="object"?Mt:{};return Rt.date=jt,Rt.args=arguments,new Nt(Rt)},It=yt;It.l=$t,It.i=kt,It.w=function(jt,Mt){return Ct(jt,{locale:Mt.$L,utc:Mt.$u,x:Mt.$x,$offset:Mt.$offset})};var Nt=function(){function jt(Rt){this.$L=$t(Rt.locale,null,!0),this.parse(Rt),this.$x=this.$x||Rt.x||{},this[Tt]=!0}var Mt=jt.prototype;return Mt.parse=function(Rt){this.$d=function(Lt){var Pt=Lt.date,Gt=Lt.utc;if(Pt===null)return new Date(NaN);if(It.u(Pt))return new Date;if(Pt instanceof Date)return new Date(Pt);if(typeof Pt=="string"&&!/Z$/i.test(Pt)){var qt=Pt.match(mt);if(qt){var Yt=qt[2]-1||0,Xt=(qt[7]||"0").substring(0,3);return Gt?new Date(Date.UTC(qt[1],Yt,qt[3]||1,qt[4]||0,qt[5]||0,qt[6]||0,Xt)):new Date(qt[1],Yt,qt[3]||1,qt[4]||0,qt[5]||0,qt[6]||0,Xt)}}return new Date(Pt)}(Rt),this.init()},Mt.init=function(){var Rt=this.$d;this.$y=Rt.getFullYear(),this.$M=Rt.getMonth(),this.$D=Rt.getDate(),this.$W=Rt.getDay(),this.$H=Rt.getHours(),this.$m=Rt.getMinutes(),this.$s=Rt.getSeconds(),this.$ms=Rt.getMilliseconds()},Mt.$utils=function(){return It},Mt.isValid=function(){return this.$d.toString()!==gt},Mt.isSame=function(Rt,Lt){var Pt=Ct(Rt);return this.startOf(Lt)<=Pt&&Pt<=this.endOf(Lt)},Mt.isAfter=function(Rt,Lt){return Ct(Rt){const{duration:_e,tokens:et,locStrings:tt,className:rt}=j,nt=_e.toFixed(2).replace(/\.?0*$/,"");return jsxRuntimeExports.jsxs("div",{className:rt,children:[et>0&&jsxRuntimeExports.jsxs(React.Fragment,{children:[`${tt.MessageStatus_TokensDesc}: `,jsxRuntimeExports.jsx("b",{children:et}),` ${tt.MessageStatus_TokensUint}, `]}),`${et>0?tt.MessageStatus_TimeSpentDesc:tt.MessageStatus_TimeSpentDscCapitalized}: `,jsxRuntimeExports.jsx("b",{children:nt}),` ${tt.MessageStatus_TimeSpent_Unit}`]})};DefaultMessageStatusRenderer.displayName="DefaultMessageStatusRenderer";const EMPTY_CONTEXTUAL_MENU_ITEMS=[],defaultUseContextualMenuItems=j=>EMPTY_CONTEXTUAL_MENU_ITEMS;function DefaultMessageBubbleRenderer(j){const{MessageAvatarRenderer:_e,MessageContentRenderer:et=DefaultMessageContentRenderer,MessageErrorRenderer:tt=DefaultMessageErrorRenderer,MessageSenderRenderer:rt=DefaultMessageSenderRenderer,MessagePaginationRenderer:nt=DefaultMessagePaginationRenderer,MessageActionBarRenderer:ot=DefaultMessageActionBarRenderer,MessageStatusRenderer:it=DefaultMessageStatusRenderer,useMessageContextualMenuItems:st=defaultUseContextualMenuItems,useMessageActions:lt,initialPage:ut=-1,locStrings:ct,message:dt,className:ft}=j,pt=useStyles$7(),[gt,mt]=React.useState((ut%dt.history.length+dt.history.length)%dt.history.length),[bt,_t]=React.useState(!1),xt=React.useRef(null),yt=React.useRef(null),Et=React.useCallback(()=>{_t(!1)},[]),St=React.useCallback(It=>{const Nt=xt.current,Ot=yt.current;if(Nt&&Ot){const jt=It.clientX,Mt=It.clientY,Rt=Nt.getBoundingClientRect(),Lt=Rt.left+window.scrollX,Pt=Rt.top+window.scrollY,Gt=jt-Lt,qt=Mt-Pt;Ot.style.left=`${Gt}px`,Ot.style.top=`${qt}px`}},[]),Tt=React.useCallback(It=>{It.preventDefault(),St(It),_t(!0)},[]),kt=dt.history[gt],$t=kt.category===ChatMessageCategory.User?"right":"left",Ct=st(kt);return React.useEffect(()=>{const It=()=>{_t(!1)};return document.addEventListener("mousedown",It),()=>document.removeEventListener("mousedown",It)},[]),jsxRuntimeExports.jsx("div",{className:pt.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":$t,children:jsxRuntimeExports.jsxs("div",{className:mergeClasses(pt.message,ft),"data-position":$t,children:[jsxRuntimeExports.jsx("div",{className:pt.avatar,children:_e&&jsxRuntimeExports.jsx(_e,{data:kt,position:$t})}),jsxRuntimeExports.jsxs("div",{className:pt.main,children:[jsxRuntimeExports.jsx("div",{className:pt.sender,children:jsxRuntimeExports.jsx(rt,{data:kt,position:$t})}),jsxRuntimeExports.jsxs("div",{ref:xt,className:pt.content,"data-category":kt.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Tt,onClick:St,children:[jsxRuntimeExports.jsx(et,{content:kt.content,className:pt.contentMain}),kt.error&&jsxRuntimeExports.jsx(tt,{error:kt.error,locStrings:ct,className:pt.error}),typeof kt.duration=="number"&&typeof kt.tokens=="number"&&jsxRuntimeExports.jsx(it,{duration:kt.duration,tokens:kt.tokens,locStrings:ct,className:pt.status}),dt.history.length>1&&jsxRuntimeExports.jsx(nt,{className:pt.pagination,message:dt,current:gt,setCurrent:mt}),jsxRuntimeExports.jsx("div",{ref:yt,className:pt.contentMenuAnchor}),Ct.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Ct,hidden:!bt,target:yt,onItemClick:Et,onDismiss:Et,className:pt.contextualMenu}),jsxRuntimeExports.jsx("div",{className:pt.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(ot,{data:kt,locStrings:ct,useMessageActions:lt})})]})]})]})})}DefaultMessageBubbleRenderer.displayName="DefaultMessageBubbleRenderer";const useStyles$7=makeStyles({container:{...shorthands.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto")},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens.colorPaletteRedBackground2,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens.colorNeutralBackground4,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens.colorBrandBackground2,color:tokens.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function DefaultSessionSplitRenderer(j){const{locStrings:_e,className:et}=j,tt=useStyles$6();return jsxRuntimeExports.jsx("div",{className:mergeClasses(tt.sessionSplit,et),children:jsxRuntimeExports.jsxs("span",{children:["--- ",_e.SessionSplit_Desc," ---"]})})}DefaultSessionSplitRenderer.displayName="DefaultSessionSplitRenderer";const useStyles$6=makeStyles({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:tokens.colorNeutralForeground4}});makeStyles({hintTyping:{...shorthands.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...shorthands.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...shorthands.borderRadius("50%"),...shorthands.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:tokens.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...shorthands.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});makeStyles({toolbar:{display:"flex",justifyContent:"flex-end"}});makeStyles({input:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...shorthands.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function MessageListRenderer(j){const{MessageAvatarRenderer:_e,MessageContentRenderer:et,MessageErrorRenderer:tt,MessageSenderRenderer:rt,MessageBubbleRenderer:nt=DefaultMessageBubbleRenderer,SessionSplitRenderer:ot=DefaultSessionSplitRenderer,className:it,bubbleClassName:st,sessionSplitClassName:lt,locStrings:ut,messages:ct,useMessageContextualMenuItems:dt,useMessageActions:ft}=j,pt=useStyles$5();return jsxRuntimeExports.jsx("div",{className:mergeClasses(pt.container,it),"data-chatbox-locator":ChatboxLocator.MessageList,children:ct.map(gt=>{switch(gt.type){case ChatMessageType.Message:return jsxRuntimeExports.jsx(nt,{MessageAvatarRenderer:_e,MessageContentRenderer:et,MessageErrorRenderer:tt,MessageSenderRenderer:rt,locStrings:ut,message:gt,className:st,useMessageContextualMenuItems:dt,useMessageActions:ft},gt.id);case ChatMessageType.SessionSplit:return jsxRuntimeExports.jsx(ot,{locStrings:ut,className:lt},gt.id);default:return jsxRuntimeExports.jsx(React.Fragment,{},gt.id)}})})}MessageListRenderer.displayName="MessageListRenderer";const useStyles$5=makeStyles({container:{boxSizing:"border-box"}}),Zp=class Zp extends React.PureComponent{render(){const{elements:_e,deltaH:et,deltaW:tt,scaleH:rt,scaleW:nt,className:ot,elementClassName:it}=this.props;return jsxRuntimeExports.jsx("div",{className:ot,children:_e.map((st,lt)=>{const ut=(st.top-et)*rt,ct=(st.left-tt)*nt,dt=st.height*rt,ft=st.width*nt,pt={top:ut,left:ct,height:dt,width:ft};return st.backgroundColor&&(pt.backgroundColor=st.backgroundColor),jsxRuntimeExports.jsx("div",{className:it,style:pt},lt)})})}};Zp.displayName="MinimapOverview";let MinimapOverview=Zp;const MinimapViewport=j=>{const{scaleH:_e,sourceRootRef:et,sourceQuerySelector:tt,className:rt}=j,[nt,ot]=React.useState(0),[it,st]=React.useState(0),lt=useStyles$4();return React.useLayoutEffect(()=>{var ft,pt;const ut=(pt=(ft=et.current)==null?void 0:ft.querySelector(tt))==null?void 0:pt.parentElement;if(!ut)return()=>{};const{height:ct}=ut.getBoundingClientRect();st(ct);const dt=()=>{ot(ut.scrollTop||0)};return ut.addEventListener("scroll",dt),()=>ut.removeEventListener("scroll",dt)},[et.current]),jsxRuntimeExports.jsx("div",{className:mergeClasses(lt.viewport,rt),style:{position:"absolute",top:nt*_e,height:`${it*_e}px`}})};MinimapViewport.displayName="MinimapViewport";const useStyles$4=makeStyles({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}}),Minimap=j=>{const{SCROLL_DELTA_THRESHOLD:_e=5,sourceRootRef:et,sourceQuerySelector:tt,sourceElementQuerySelector:rt,className:nt,overviewClassName:ot,overviewElementClassName:it,viewportClassName:st,style:lt}=j,[ut,ct]=React.useState([]),[dt,ft]=React.useState(0),[pt,gt]=React.useState(0),[mt,bt]=React.useState(0),[_t,xt]=React.useState(0),[yt,Et]=React.useState(0),[St,Tt]=React.useState(0),[kt,$t]=React.useState(0),[Ct,It]=React.useState(0),Nt=_t<=0?0:pt/_t||.1,Ot=mt<=0?0:Math.max(1/mt,Math.min(Nt,(dt-10)/mt||.1)),jt=React.useRef(null),Mt=React.useRef(null),Rt=React.useRef(!1),Lt=useEventCallback$1(tr=>{var mr,Er;if(tr.preventDefault(),tr.stopPropagation(),Rt.current=!0,!Mt.current)return;const cr=(Er=(mr=et.current)==null?void 0:mr.querySelector(tt))==null?void 0:Er.parentElement;if(cr){const _r=(tr.clientY-Mt.current.getBoundingClientRect().top)/Ot;Math.abs(cr.scrollTop-_r)>_e&&(cr.scrollTop=_r)}}),Pt=useEventCallback$1(tr=>{var mr,Er;if(tr.preventDefault(),tr.stopPropagation(),!Rt.current||!Mt.current)return;const cr=(Er=(mr=et.current)==null?void 0:mr.querySelector(tt))==null?void 0:Er.parentElement;if(cr){const _r=(tr.clientY-Mt.current.getBoundingClientRect().top)/Ot;Math.abs(cr.scrollTop-_r)>_e&&(cr.scrollTop=_r)}}),Gt=React.useCallback(tr=>{const cr=tr.querySelector(tt);if(!cr)return;const mr=cr.querySelectorAll(rt),Er=[];for(let _r=0;_r{const tr=()=>{Rt.current=!1};return document.addEventListener("mouseup",tr),()=>document.removeEventListener("mouseup",tr)},[]),React.useLayoutEffect(()=>{const tr=jt.current;if(!tr)return;const{height:cr,width:mr}=tr.getBoundingClientRect();ft(cr),gt(mr)},[]),React.useLayoutEffect(()=>{const tr=et.current;if(!tr)return()=>{};Gt(tr);const cr=new MutationObserver(mr=>{for(const Er of mr)Er.type==="childList"&&Gt(tr)});return cr.observe(tr,{childList:!0,subtree:!0}),()=>{cr.disconnect()}},[et.current,Gt]);const qt=useStyles$3(),Yt=mt+yt-kt,Xt=_t+St-Ct;return jsxRuntimeExports.jsx("div",{ref:jt,className:mergeClasses(qt.container,nt),style:lt,children:jsxRuntimeExports.jsxs("div",{ref:Mt,className:qt.minimap,onMouseDown:Lt,onMouseMove:Pt,children:[jsxRuntimeExports.jsx(MinimapOverview,{elements:ut,deltaH:Yt,deltaW:Xt,scaleH:Ot,scaleW:Nt,className:mergeClasses(qt.overview,ot),elementClassName:mergeClasses(qt.minimapElement,it)}),jsxRuntimeExports.jsx(MinimapViewport,{scaleH:Ot,sourceRootRef:et,sourceQuerySelector:tt,className:st})]})})};Minimap.displayName="Minimap";const useStyles$3=makeStyles({container:{height:"100%",width:"100%",...shorthands.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:tokens.colorNeutralBackgroundDisabled}},textarea:{...shorthands.padding("0px"),...shorthands.overflow("hidden","auto"),...shorthands.borderWidth(0),...shorthands.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:tokens.colorNeutralForeground1,userSelect:"text"}});var LexicalLink_prod={},LexicalUtils_prod={},LexicalSelection_prod={},Lexical_prod={};let ba={},ca={},da={},ea={},fa={},ka$1={},la={},ma={},oa={},pa={},qa={},ra={},sa={},ta={},ua={},va={},wa={},ya={},za={},Aa={},Ba={},Ca={},Da={},Ga={},Ha={},Ia={},Ja={},Ka={},La={},Ma={},Na={},Oa={},Pa={},Qa={},Ra={},Sa={};function n$6(j){let _e=new URLSearchParams;_e.append("code",j);for(let et=1;et{let _e=u$7();return _e!==null?_e.clone():null})}function ub(j,_e,et){pb=!0;let tt=100{let rt=u$7()||tb(j);var nt=new Map,ot=j.getRootElement(),it=j._editorState,st=j._blockCursorElement;let lt=!1,ut="";for(var ct=0;ct<_e.length;ct++){var dt=_e[ct],ft=dt.type,pt=dt.target,gt=vb(pt,it);if(!(gt===null&&pt!==ot||y$7(gt))){if(ft==="characterData"){if(dt=tt&&B$5(gt))e:{dt=rt,ft=pt;var mt=gt;if(C$5(dt)){var bt=dt.anchor.getNode();if(bt.is(mt)&&dt.format!==bt.getFormat()){dt=!1;break e}}dt=ft.nodeType===3&&mt.isAttached()}dt&&(mt=wb(j._window),ft=dt=null,mt!==null&&mt.anchorNode===pt&&(dt=mt.anchorOffset,ft=mt.focusOffset),pt=pt.nodeValue,pt!==null&&xb(gt,pt,dt,ft,!1))}else if(ft==="childList"){for(lt=!0,ft=dt.addedNodes,mt=0;mt{ub(j,_e,et)})}function Eb(j,_e){let et=j.__mode,tt=j.__format;j=j.__style;let rt=_e.__mode,nt=_e.__format;return _e=_e.__style,(et===null||et===rt)&&(tt===null||tt===nt)&&(j===null||j===_e)}function Fb(j,_e){let et=j.mergeWithSibling(_e),tt=F$3()._normalizedNodes;return tt.add(j.__key),tt.add(_e.__key),et}function Gb(j){if(j.__text===""&&j.isSimpleText()&&!j.isUnmergeable())j.remove();else{for(var _e;(_e=j.getPreviousSibling())!==null&&B$5(_e)&&_e.isSimpleText()&&!_e.isUnmergeable();)if(_e.__text==="")_e.remove();else{Eb(_e,j)&&(j=Fb(_e,j));break}for(var et;(et=j.getNextSibling())!==null&&B$5(et)&&et.isSimpleText()&&!et.isUnmergeable();)if(et.__text==="")et.remove();else{Eb(j,et)&&Fb(j,et);break}}}function Hb(j){return Ib(j.anchor),Ib(j.focus),j}function Ib(j){for(;j.type==="element";){var _e=j.getNode(),et=j.offset;if(et===_e.getChildrenSize()?(_e=_e.getChildAtIndex(et-1),et=!0):(_e=_e.getChildAtIndex(et),et=!1),B$5(_e)){j.set(_e.__key,et?_e.getTextContentSize():0,"text");break}else if(!E$3(_e))break;j.set(_e.__key,et?_e.getChildrenSize():0,"element")}}let Jb=1,Kb=typeof queueMicrotask=="function"?queueMicrotask:j=>{Promise.resolve().then(j)};function Rb(j){let _e=document.activeElement;if(_e===null)return!1;let et=_e.nodeName;return y$7(vb(j))&&(et==="INPUT"||et==="TEXTAREA"||_e.contentEditable==="true"&&_e.__lexicalEditor==null)}function Sb(j,_e,et){let tt=j.getRootElement();try{return tt!==null&&tt.contains(_e)&&tt.contains(et)&&_e!==null&&!Rb(_e)&&Tb(_e)===j}catch{return!1}}function Tb(j){for(;j!=null;){let _e=j.__lexicalEditor;if(_e!=null)return _e;j=Ub(j)}return null}function Vb(j){return j.isToken()||j.isSegmented()}function Wb(j){for(;j!=null;){if(j.nodeType===3)return j;j=j.firstChild}return null}function Xb(j,_e,et){let tt=gb[_e];return et!==null&&(j&tt)===(et&tt)||(j^=tt,_e==="subscript"?j&=~gb.superscript:_e==="superscript"&&(j&=~gb.subscript)),j}function Yb(j,_e){if(_e!=null)j.__key=_e;else{G$3(),99J$1().getTextContent())}function gc(j,_e){v$6(j,()=>{var et=$b();if(!et.isEmpty())if(_e==="root")J$1().markDirty();else{et=et._nodeMap;for(let[,tt]of et)tt.markDirty()}},j._pendingEditorState===null?{tag:"history-merge"}:void 0)}function J$1(){return $b()._nodeMap.get("root")}function zb(j){G$3();let _e=$b();j!==null&&(j.dirty=!0,j.setCachedNodes(null)),_e._selection=j}function hc(j){var _e=F$3(),et;e:{for(et=j;et!=null;){let tt=et[`__lexicalKey_${_e._key}`];if(tt!==void 0){et=tt;break e}et=Ub(et)}et=null}return et===null?(_e=_e.getRootElement(),j===_e?I$1("root"):null):I$1(et)}function ic(j){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(j)}function jc(j){let _e=[];for(;j!==null;)_e.push(j),j=j._parentEditor;return _e}function kc(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function lc(j,_e,et){if(_e=wb(_e._window),_e!==null){var tt=_e.anchorNode,{anchorOffset:rt,focusOffset:nt}=_e;if(tt!==null&&(_e=tt.nodeType===3?tt.nodeValue:null,tt=vb(tt),_e!==null&&B$5(tt))){if(_e===cb&&et){let ot=et.length;_e=et,nt=rt=ot}_e!==null&&xb(tt,_e,rt,nt,j)}}}function xb(j,_e,et,tt,rt){let nt=j;if(nt.isAttached()&&(rt||!nt.isDirty())){let lt=nt.isComposing(),ut=_e;if((lt||rt)&&_e[_e.length-1]===cb&&(ut=_e.slice(0,-1)),_e=nt.getTextContent(),rt||ut!==_e)if(ut==="")if(H$2(null),Ya||Za||bb)nt.remove();else{let ct=F$3();setTimeout(()=>{ct.update(()=>{nt.isAttached()&&nt.remove()})},20)}else{rt=nt.getParent(),_e=mc();var ot=nt.getTextContentSize(),it=cc(),st=nt.getKey();nt.isToken()||it!==null&&st===it&&!lt||C$5(_e)&&(rt!==null&&!rt.canInsertTextBefore()&&_e.anchor.offset===0||_e.anchor.key===j.__key&&_e.anchor.offset===0&&!nt.canInsertTextBefore()&&!lt||_e.focus.key===j.__key&&_e.focus.offset===ot&&!nt.canInsertTextAfter()&&!lt)?nt.markDirty():(j=u$7(),C$5(j)&&et!==null&&tt!==null&&(j.setTextNodeRange(nt,et,nt,tt),nt.isSegmented()&&(et=nt.getTextContent(),et=K(et),nt.replace(et),nt=et)),nt.setTextContent(ut))}}}function nc(j,_e){if(_e.isSegmented())return!0;if(!j.isCollapsed())return!1;j=j.anchor.offset;let et=_e.getParentOrThrow(),tt=_e.isToken();return j===0?((j=!_e.canInsertTextBefore()||!et.canInsertTextBefore()||tt)||(_e=_e.getPreviousSibling(),j=(B$5(_e)||E$3(_e)&&_e.isInline())&&!_e.canInsertTextAfter()),j):j===_e.getTextContentSize()?!_e.canInsertTextAfter()||!et.canInsertTextAfter()||tt:!1}function oc(j,_e){j.__lexicalClassNameCache===void 0&&(j.__lexicalClassNameCache={});let et=j.__lexicalClassNameCache,tt=et[_e];return tt!==void 0?tt:(j=j[_e],typeof j=="string"?(j=j.split(" "),et[_e]=j):j)}function pc(j,_e,et,tt,rt){et.size!==0&&(et=tt.__type,tt=tt.__key,_e=_e.get(et),_e===void 0&&n$6(33,et),et=_e.klass,_e=j.get(et),_e===void 0&&(_e=new Map,j.set(et,_e)),j=_e.get(tt),et=j==="destroyed"&&rt==="created",(j===void 0||et)&&_e.set(tt,et?"updated":rt))}function qc(j,_e,et){let tt=j.getParent(),rt=et;return tt!==null&&(_e&&et===0?(rt=j.getIndexWithinParent(),j=tt):_e||et!==j.getChildrenSize()||(rt=j.getIndexWithinParent()+1,j=tt)),j.getChildAtIndex(_e?rt-1:rt)}function rc(j,_e){var et=j.offset;return j.type==="element"?(j=j.getNode(),qc(j,_e,et)):(j=j.getNode(),_e&&et===0||!_e&&et===j.getTextContentSize()?(et=_e?j.getPreviousSibling():j.getNextSibling(),et===null?qc(j.getParentOrThrow(),_e,j.getIndexWithinParent()+(_e?0:1)):et):null)}function Ab(j){return j=(j=Db(j).event)&&j.inputType,j==="insertFromPaste"||j==="insertFromPasteAsQuotation"}function sc(j){return!L(j)&&!j.isLastChild()&&!j.isInline()}function tc(j,_e){return j=j._keyToDOMMap.get(_e),j===void 0&&n$6(75,_e),j}function Ub(j){return j=j.assignedSlot||j.parentElement,j!==null&&j.nodeType===11?j.host:j}function uc(j,_e){for(j=j.getParent();j!==null;){if(j.is(_e))return!0;j=j.getParent()}return!1}function Db(j){return j=j._window,j===null&&n$6(78),j}function vc(j){for(j=j.getParentOrThrow();j!==null&&!wc(j);)j=j.getParentOrThrow();return j}function wc(j){return L(j)||E$3(j)&&j.isShadowRoot()}function xc(j){return j=j.constructor.clone(j),Yb(j,null),j}function yc(j){var _e=F$3();let et=j.constructor.getType();return _e=_e._nodes.get(et),_e===void 0&&n$6(97),_e=_e.replace,_e!==null?(_e=_e(j),_e instanceof j.constructor||n$6(98),_e):j}function zc(j,_e){j=j.getParent(),!L(j)||E$3(_e)||y$7(_e)||n$6(99)}function Ac(j){return(y$7(j)||E$3(j)&&!j.canBeEmpty())&&!j.isInline()}function Bc(j,_e,et){et.style.removeProperty("caret-color"),_e._blockCursorElement=null,_e=j.parentElement,_e!==null&&_e.removeChild(j)}function wb(j){return Ta?(j||window).getSelection():null}function Cc(j){return j.nodeType===1}function Dc(j){if(y$7(j)&&!j.isInline())return!0;if(!E$3(j)||wc(j))return!1;var _e=j.getFirstChild();return _e=_e===null||Ec(_e)||B$5(_e)||_e.isInline(),!j.isInline()&&j.canBeEmpty()!==!1&&_e}function Fc(j,_e){for(;j!==null&&j.getParent()!==null&&!_e(j);)j=j.getParentOrThrow();return _e(j)?j:null}function Gc(j,_e,et,tt,rt,nt){for(j=j.getFirstChild();j!==null;){let ot=j.__key;j.__parent===_e&&(E$3(j)&&Gc(j,ot,et,tt,rt,nt),et.has(ot)||nt.delete(ot),rt.push(ot)),j=j.getNextSibling()}}function Hc(j,_e,et,tt){j=j._nodeMap,_e=_e._nodeMap;let rt=[];for(let[nt]of tt){let ot=_e.get(nt);ot===void 0||ot.isAttached()||(E$3(ot)&&Gc(ot,nt,j,_e,rt,tt),j.has(nt)||tt.delete(nt),rt.push(nt))}for(let nt of rt)_e.delete(nt);for(let nt of et)tt=_e.get(nt),tt===void 0||tt.isAttached()||(j.has(nt)||et.delete(nt),_e.delete(nt))}let M="",N="",Ic="",Jc,O,Kc,Lc=!1,Mc=!1,Nc,Oc=null,Pc,Zc,$c,ad,bd,cd;function dd(j,_e){let et=$c.get(j);if(_e!==null){let tt=ed(j);tt.parentNode===_e&&_e.removeChild(tt)}ad.has(j)||O._keyToDOMMap.delete(j),E$3(et)&&(j=fd(et,$c),gd(j,0,j.length-1,null)),et!==void 0&&pc(cd,Kc,Nc,et,"destroyed")}function gd(j,_e,et,tt){for(;_e<=et;++_e){let rt=j[_e];rt!==void 0&&dd(rt,tt)}}function hd(j,_e){j.setProperty("text-align",_e)}function id(j,_e){var et=Jc.theme.indent;if(typeof et=="string"){let tt=j.classList.contains(et);0<_e&&!tt?j.classList.add(et):1>_e&&tt&&j.classList.remove(et)}et=getComputedStyle(j).getPropertyValue("--lexical-indent-base-value")||"40px",j.style.setProperty("padding-inline-start",_e===0?"":`calc(${_e} * ${et})`)}function jd(j,_e){j=j.style,_e===0?hd(j,""):_e===1?hd(j,"left"):_e===2?hd(j,"center"):_e===3?hd(j,"right"):_e===4?hd(j,"justify"):_e===5?hd(j,"start"):_e===6&&hd(j,"end")}function kd(j,_e,et){let tt=ad.get(j);tt===void 0&&n$6(60);let rt=tt.createDOM(Jc,O);var nt=O._keyToDOMMap;if(rt["__lexicalKey_"+O._key]=j,nt.set(j,rt),B$5(tt)?rt.setAttribute("data-lexical-text","true"):y$7(tt)&&rt.setAttribute("data-lexical-decorator","true"),E$3(tt)){if(j=tt.__indent,nt=tt.__size,j!==0&&id(rt,j),nt!==0){--nt,j=fd(tt,ad);var ot=N;N="",ld(j,tt,0,nt,rt,null),md(tt,rt),N=ot}j=tt.__format,j!==0&&jd(rt,j),tt.isInline()||nd(null,tt,rt),sc(tt)&&(M+=` - -`,Ic+=` - -`)}else nt=tt.getTextContent(),y$7(tt)?(ot=tt.decorate(O,Jc),ot!==null&&od(j,ot),rt.contentEditable="false"):B$5(tt)&&(tt.isDirectionless()||(N+=nt)),M+=nt,Ic+=nt;return _e!==null&&(et!=null?_e.insertBefore(rt,et):(et=_e.__lexicalLineBreak,et!=null?_e.insertBefore(rt,et):_e.appendChild(rt))),pc(cd,Kc,Nc,tt,"created"),rt}function ld(j,_e,et,tt,rt,nt){let ot=M;for(M="";et<=tt;++et)kd(j[et],rt,nt);sc(_e)&&(M+=` - -`),rt.__lexicalTextContent=M,M=ot+M}function pd(j,_e){return j=_e.get(j),Ec(j)||y$7(j)&&j.isInline()}function nd(j,_e,et){j=j!==null&&(j.__size===0||pd(j.__last,$c)),_e=_e.__size===0||pd(_e.__last,ad),j?_e||(_e=et.__lexicalLineBreak,_e!=null&&et.removeChild(_e),et.__lexicalLineBreak=null):_e&&(_e=document.createElement("br"),et.__lexicalLineBreak=_e,et.appendChild(_e))}function md(j,_e){var et=_e.__lexicalDir;if(_e.__lexicalDirTextContent!==N||et!==Oc){let nt=N==="";if(nt)var tt=Oc;else tt=N,tt=eb.test(tt)?"rtl":fb.test(tt)?"ltr":null;if(tt!==et){let ot=_e.classList,it=Jc.theme;var rt=et!==null?it[et]:void 0;let st=tt!==null?it[tt]:void 0;rt!==void 0&&(typeof rt=="string"&&(rt=rt.split(" "),rt=it[et]=rt),ot.remove(...rt)),tt===null||nt&&tt==="ltr"?_e.removeAttribute("dir"):(st!==void 0&&(typeof st=="string"&&(et=st.split(" "),st=it[tt]=et),st!==void 0&&ot.add(...st)),_e.dir=tt),Mc||(j.getWritable().__dir=tt)}Oc=tt,_e.__lexicalDirTextContent=N,_e.__lexicalDir=tt}}function fd(j,_e){let et=[];for(j=j.__first;j!==null;){let tt=_e.get(j);tt===void 0&&n$6(101),et.push(j),j=tt.__next}return et}function qd(j,_e){var et=$c.get(j),tt=ad.get(j);et!==void 0&&tt!==void 0||n$6(61);var rt=Lc||Zc.has(j)||Pc.has(j);let nt=tc(O,j);if(et===tt&&!rt)return E$3(et)?(tt=nt.__lexicalTextContent,tt!==void 0&&(M+=tt,Ic+=tt),tt=nt.__lexicalDirTextContent,tt!==void 0&&(N+=tt)):(tt=et.getTextContent(),B$5(et)&&!et.isDirectionless()&&(N+=tt),Ic+=tt,M+=tt),nt;if(et!==tt&&rt&&pc(cd,Kc,Nc,tt,"updated"),tt.updateDOM(et,nt,Jc))return tt=kd(j,null,null),_e===null&&n$6(62),_e.replaceChild(tt,nt),dd(j,null),tt;if(E$3(et)&&E$3(tt)){if(j=tt.__indent,j!==et.__indent&&id(nt,j),j=tt.__format,j!==et.__format&&jd(nt,j),rt){j=N,N="",rt=M;var ot=et.__size,it=tt.__size;if(M="",ot===1&&it===1){var st=et.__first;if(_e=tt.__first,st===_e)qd(st,nt);else{var lt=ed(st);_e=kd(_e,null,null),nt.replaceChild(_e,lt),dd(st,null)}}else{_e=fd(et,$c);var ut=fd(tt,ad);if(ot===0)it!==0&&ld(ut,tt,0,it-1,nt,null);else if(it===0)ot!==0&&(st=nt.__lexicalLineBreak==null,gd(_e,0,ot-1,st?null:nt),st&&(nt.textContent=""));else{var ct=_e;_e=ut,ut=ot-1,ot=it-1;let ft=nt.firstChild,pt=0;for(it=0;pt<=ut&&it<=ot;){var dt=ct[pt];let gt=_e[it];if(dt===gt)ft=rd(qd(gt,nt)),pt++,it++;else{st===void 0&&(st=new Set(ct)),lt===void 0&&(lt=new Set(_e));let mt=lt.has(dt),bt=st.has(gt);mt?(bt?(dt=tc(O,gt),dt===ft?ft=rd(qd(gt,nt)):(ft!=null?nt.insertBefore(dt,ft):nt.appendChild(dt),qd(gt,nt)),pt++):kd(gt,nt,ft),it++):(ft=rd(ed(dt)),dd(dt,nt),pt++)}}st=pt>ut,lt=it>ot,st&&!lt?(st=_e[ot+1],st=st===void 0?null:O.getElementByKey(st),ld(_e,tt,it,ot,nt,st)):lt&&!st&&gd(ct,pt,ut,nt)}}sc(tt)&&(M+=` - -`),nt.__lexicalTextContent=M,M=rt+M,md(tt,nt),N=j,L(tt)||tt.isInline()||nd(et,tt,nt)}sc(tt)&&(M+=` - -`,Ic+=` - -`)}else et=tt.getTextContent(),y$7(tt)?(rt=tt.decorate(O,Jc),rt!==null&&od(j,rt)):B$5(tt)&&!tt.isDirectionless()&&(N+=et),M+=et,Ic+=et;return!Mc&&L(tt)&&tt.__cachedText!==Ic&&(tt.getWritable().__cachedText=Ic),nt}function od(j,_e){let et=O._pendingDecorators,tt=O._decorators;if(et===null){if(tt[j]===_e)return;et=ec(O)}et[j]=_e}function rd(j){return j=j.nextSibling,j!==null&&j===O._blockCursorElement&&(j=j.nextSibling),j}function ed(j){let _e=bd.get(j);return _e===void 0&&n$6(75,j),_e}let sd=Object.freeze({}),zd=[["keydown",td],["pointerdown",ud],["compositionstart",vd],["compositionend",wd],["input",xd],["click",yd],["cut",sd],["copy",sd],["dragstart",sd],["dragover",sd],["dragend",sd],["paste",sd],["focus",sd],["blur",sd],["drop",sd]];Xa&&zd.push(["beforeinput",(j,_e)=>Ad(j,_e)]);let Bd=0,Cd=0,Dd=0,Ed=null,Fd=0,Gd=!1,Hd=!1,Id=!1,Jd=!1,Kd=[0,"",0,"root",0];function Ld(j,_e,et,tt,rt){let nt=j.anchor,ot=j.focus,it=nt.getNode();var st=F$3();let lt=wb(st._window),ut=lt!==null?lt.anchorNode:null,ct=nt.key;st=st.getElementByKey(ct);let dt=et.length;return ct!==ot.key||!B$5(it)||(!rt&&(!Xa||Dddt||ic(et))&&nt.offset!==ot.offset&&!it.isComposing()||Vb(it)||it.isDirty()&&1{if(!et)zb(null);else if(Sb(_e,tt,nt)){var it=u$7();if(C$5(it)){var st=it.anchor,lt=st.getNode();if(it.isCollapsed()){j.type==="Range"&&j.anchorNode===j.focusNode&&(it.dirty=!0);var ut=Db(_e).event;ut=ut?ut.timeStamp:performance.now();let[gt,mt,bt,_t,xt]=Kd;var ct=J$1();ct=_e.isComposing()===!1&&ct.getTextContent()==="",ut{let et=u$7();var tt=wb(_e._window);let rt=mc();if(tt)if(C$5(et)){let ot=et.anchor;var nt=ot.getNode();ot.type==="element"&&ot.offset===0&&et.isCollapsed()&&!L(nt)&&J$1().getChildrenSize()===1&&nt.getTopLevelElementOrThrow().isEmpty()&&rt!==null&&et.is(rt)?(tt.removeAllRanges(),et.dirty=!0):j.detail!==3||et.isCollapsed()||(tt=et.focus.getNode(),nt!==tt&&(E$3(nt)?nt.select(0):nt.getParentOrThrow().select(0)))}else j.pointerType==="touch"&&(nt=tt.anchorNode,nt!==null&&(nt=nt.nodeType,nt===1||nt===3))&&(tt=Od(rt,tt,_e,j),zb(tt));R(_e,ca,j)})}function ud(j,_e){let et=j.target;j=j.pointerType,et instanceof Node&&j!=="touch"&&v$6(_e,()=>{y$7(vb(et))||(Hd=!0)})}function Pd(j){return j.getTargetRanges?(j=j.getTargetRanges(),j.length===0?null:j[0]):null}function Qd(j,_e){return j!==_e||E$3(j)||E$3(_e)||!j.isToken()||!_e.isToken()}function Ad(j,_e){let et=j.inputType,tt=Pd(j);et==="deleteCompositionText"||Wa&&Ab(_e)||et!=="insertCompositionText"&&v$6(_e,()=>{let rt=u$7();if(et==="deleteContentBackward"){if(rt===null){var nt=mc();if(!C$5(nt))return;zb(nt.clone())}if(C$5(rt)){$a&&H$2(rt.anchor.key),Cd===229&&j.timeStamp{v$6(_e,()=>{H$2(null)})},30),C$5(rt)&&(nt=rt.anchor.getNode(),nt.markDirty(),rt.format=nt.getFormat(),B$5(nt)||n$6(142),rt.style=nt.getStyle()),1>=rt.anchor.getNode().getTextContent().length&&(j.preventDefault(),R(_e,da,!0))):(H$2(null),j.preventDefault(),R(_e,da,!0));return}}if(C$5(rt)){nt=j.data,Ed!==null&&lc(!1,_e,Ed),rt.dirty&&Ed===null||!rt.isCollapsed()||L(rt.anchor.getNode())||tt===null||rt.applyDOMRange(tt),Ed=null;var ot=rt.focus,it=rt.anchor.getNode();if(ot=ot.getNode(),et==="insertText"||et==="insertTranspose")nt===` -`?(j.preventDefault(),R(_e,ea,!1)):nt===` - -`?(j.preventDefault(),R(_e,fa,void 0)):nt==null&&j.dataTransfer?(nt=j.dataTransfer.getData("text/plain"),j.preventDefault(),rt.insertRawText(nt)):nt!=null&&Ld(rt,tt,nt,j.timeStamp,!0)?(j.preventDefault(),R(_e,ka$1,nt)):Ed=nt,Dd=j.timeStamp;else switch(j.preventDefault(),et){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":R(_e,ka$1,j);break;case"insertFromComposition":H$2(null),R(_e,ka$1,j);break;case"insertLineBreak":H$2(null),R(_e,ea,!1);break;case"insertParagraph":H$2(null),Id&&!Za?(Id=!1,R(_e,ea,!1)):R(_e,fa,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":R(_e,la,j);break;case"deleteByComposition":Qd(it,ot)&&R(_e,ma,j);break;case"deleteByDrag":case"deleteByCut":R(_e,ma,j);break;case"deleteContent":R(_e,da,!1);break;case"deleteWordBackward":R(_e,oa,!0);break;case"deleteWordForward":R(_e,oa,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":R(_e,pa,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":R(_e,pa,!1);break;case"formatStrikeThrough":R(_e,qa,"strikethrough");break;case"formatBold":R(_e,qa,"bold");break;case"formatItalic":R(_e,qa,"italic");break;case"formatUnderline":R(_e,qa,"underline");break;case"historyUndo":R(_e,ra,void 0);break;case"historyRedo":R(_e,sa,void 0)}}})}function xd(j,_e){j.stopPropagation(),v$6(_e,()=>{var et=u$7(),tt=j.data,rt=Pd(j);if(tt!=null&&C$5(et)&&Ld(et,rt,tt,j.timeStamp,!1)){Jd&&(Rd(_e,tt),Jd=!1);var nt=et.anchor,ot=nt.getNode();if(rt=wb(_e._window),rt===null)return;let it=nt.offset;(nt=Xa&&!et.isCollapsed()&&B$5(ot)&&rt.anchorNode!==null)&&(ot=ot.getTextContent().slice(0,it)+tt+ot.getTextContent().slice(it+et.focus.offset),rt=rt.anchorNode,nt=ot===(rt.nodeType===3?rt.nodeValue:null)),nt||R(_e,ka$1,tt),tt=tt.length,Wa&&1{let et=u$7();if(C$5(et)&&!_e.isComposing()){let tt=et.anchor,rt=et.anchor.getNode();H$2(tt.key),(j.timeStamp{Rd(_e,j.data)})}function td(j,_e){if(Bd=j.timeStamp,Cd=j.keyCode,!_e.isComposing()){var{keyCode:et,shiftKey:tt,ctrlKey:rt,metaKey:nt,altKey:ot}=j;if(!R(_e,ta,j)){if(et!==39||rt||nt||ot)if(et!==39||ot||tt||!rt&&!nt)if(et!==37||rt||nt||ot)if(et!==37||ot||tt||!rt&&!nt)if(et!==38||rt||nt)if(et!==40||rt||nt)if(et===13&&tt)Id=!0,R(_e,Ba,j);else if(et===32)R(_e,Ca,j);else if(t$5&&rt&&et===79)j.preventDefault(),Id=!0,R(_e,ea,!0);else if(et!==13||tt){var it=t$5?ot||nt?!1:et===8||et===72&&rt:rt||ot||nt?!1:et===8;it?et===8?R(_e,Da,j):(j.preventDefault(),R(_e,da,!0)):et===27?R(_e,Ga,j):(it=t$5?tt||ot||nt?!1:et===46||et===68&&rt:rt||ot||nt?!1:et===46,it?et===46?R(_e,Ha,j):(j.preventDefault(),R(_e,da,!1)):et===8&&(t$5?ot:rt)?(j.preventDefault(),R(_e,oa,!0)):et===46&&(t$5?ot:rt)?(j.preventDefault(),R(_e,oa,!1)):t$5&&nt&&et===8?(j.preventDefault(),R(_e,pa,!0)):t$5&&nt&&et===46?(j.preventDefault(),R(_e,pa,!1)):et===66&&!ot&&(t$5?nt:rt)?(j.preventDefault(),R(_e,qa,"bold")):et===85&&!ot&&(t$5?nt:rt)?(j.preventDefault(),R(_e,qa,"underline")):et===73&&!ot&&(t$5?nt:rt)?(j.preventDefault(),R(_e,qa,"italic")):et!==9||ot||rt||nt?et===90&&!tt&&(t$5?nt:rt)?(j.preventDefault(),R(_e,ra,void 0)):(it=t$5?et===90&&nt&&tt:et===89&&rt||et===90&&rt&&tt,it?(j.preventDefault(),R(_e,sa,void 0)):Sd(_e._editorState._selection)?(it=tt?!1:et===67?t$5?nt:rt:!1,it?(j.preventDefault(),R(_e,Na,j)):(it=tt?!1:et===88?t$5?nt:rt:!1,it?(j.preventDefault(),R(_e,Oa,j)):et===65&&(t$5?nt:rt)&&(j.preventDefault(),R(_e,Pa,j)))):!Wa&&et===65&&(t$5?nt:rt)&&(j.preventDefault(),R(_e,Pa,j))):R(_e,Ia,j))}else Id=!1,R(_e,Ba,j);else R(_e,Aa,j);else R(_e,za,j);else R(_e,ya,j);else R(_e,wa,j);else R(_e,va,j);else R(_e,ua,j);(rt||tt||ot||nt)&&R(_e,Sa,j)}}}function Td(j){let _e=j.__lexicalEventHandles;return _e===void 0&&(_e=[],j.__lexicalEventHandles=_e),_e}let Ud=new Map;function Vd(j){var _e=j.target;let et=wb(_e==null?null:_e.nodeType===9?_e.defaultView:_e.ownerDocument.defaultView);if(et!==null){var tt=Tb(et.anchorNode);if(tt!==null){Hd&&(Hd=!1,v$6(tt,()=>{var it=mc(),st=et.anchorNode;st!==null&&(st=st.nodeType,st===1||st===3)&&(it=Od(it,et,tt,j),zb(it))})),_e=jc(tt),_e=_e[_e.length-1];var rt=_e._key,nt=Ud.get(rt),ot=nt||_e;ot!==tt&&Nd(et,ot,!1),Nd(et,tt,!0),tt!==_e?Ud.set(rt,tt):nt&&Ud.delete(rt)}}}function Wd(j,_e){Fd===0&&j.ownerDocument.addEventListener("selectionchange",Vd),Fd++,j.__lexicalEditor=_e;let et=Td(j);for(let tt=0;tt{it._lexicalHandled!==!0&&(it._lexicalHandled=!0,_e.isEditable()&&nt(it,_e))}:it=>{if(it._lexicalHandled!==!0&&(it._lexicalHandled=!0,_e.isEditable()))switch(rt){case"cut":return R(_e,Oa,it);case"copy":return R(_e,Na,it);case"paste":return R(_e,la,it);case"dragstart":return R(_e,Ka,it);case"dragover":return R(_e,La,it);case"dragend":return R(_e,Ma,it);case"focus":return R(_e,Qa,it);case"blur":return R(_e,Ra,it);case"drop":return R(_e,Ja,it)}};j.addEventListener(rt,ot),et.push(()=>{j.removeEventListener(rt,ot)})}}function Xd(j,_e,et){G$3();var tt=j.__key;let rt=j.getParent();if(rt!==null){var nt=u$7();if(C$5(nt)&&E$3(j)){var{anchor:ot,focus:it}=nt,st=ot.getNode(),lt=it.getNode();uc(st,j)&&ot.set(j.__key,0,"element"),uc(lt,j)&&it.set(j.__key,0,"element")}if(st=nt,lt=!1,C$5(st)&&_e){nt=st.anchor;let ut=st.focus;nt.key===tt&&(Yd(nt,j,rt,j.getPreviousSibling(),j.getNextSibling()),lt=!0),ut.key===tt&&(Yd(ut,j,rt,j.getPreviousSibling(),j.getNextSibling()),lt=!0)}else Sd(st)&&_e&&j.isSelected()&&j.selectPrevious();C$5(st)&&_e&&!lt?(tt=j.getIndexWithinParent(),ac(j),Zd(st,rt,tt,-1)):ac(j),et||wc(rt)||rt.canBeEmpty()||!rt.isEmpty()||Xd(rt,_e),_e&&L(rt)&&rt.isEmpty()&&rt.selectEnd()}}class $d{static getType(){n$6(64,this.name)}static clone(){n$6(65,this.name)}constructor(_e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Yb(this,_e)}getType(){return this.__type}isInline(){n$6(137,this.constructor.name)}isAttached(){for(var _e=this.__key;_e!==null;){if(_e==="root")return!0;if(_e=I$1(_e),_e===null)break;_e=_e.__parent}return!1}isSelected(_e){if(_e=_e||u$7(),_e==null)return!1;let et=_e.getNodes().some(tt=>tt.__key===this.__key);return B$5(this)?et:C$5(_e)&&_e.anchor.type==="element"&&_e.focus.type==="element"&&_e.anchor.key===_e.focus.key&&_e.anchor.offset===_e.focus.offset?!1:et}getKey(){return this.__key}getIndexWithinParent(){var _e=this.getParent();if(_e===null)return-1;_e=_e.getFirstChild();let et=0;for(;_e!==null;){if(this.is(_e))return et;et++,_e=_e.getNextSibling()}return-1}getParent(){let _e=this.getLatest().__parent;return _e===null?null:I$1(_e)}getParentOrThrow(){let _e=this.getParent();return _e===null&&n$6(66,this.__key),_e}getTopLevelElement(){let _e=this;for(;_e!==null;){let et=_e.getParent();if(wc(et))return E$3(_e)||n$6(138),_e;_e=et}return null}getTopLevelElementOrThrow(){let _e=this.getTopLevelElement();return _e===null&&n$6(67,this.__key),_e}getParents(){let _e=[],et=this.getParent();for(;et!==null;)_e.push(et),et=et.getParent();return _e}getParentKeys(){let _e=[],et=this.getParent();for(;et!==null;)_e.push(et.__key),et=et.getParent();return _e}getPreviousSibling(){let _e=this.getLatest().__prev;return _e===null?null:I$1(_e)}getPreviousSiblings(){let _e=[];var et=this.getParent();if(et===null)return _e;for(et=et.getFirstChild();et!==null&&!et.is(this);)_e.push(et),et=et.getNextSibling();return _e}getNextSibling(){let _e=this.getLatest().__next;return _e===null?null:I$1(_e)}getNextSiblings(){let _e=[],et=this.getNextSibling();for(;et!==null;)_e.push(et),et=et.getNextSibling();return _e}getCommonAncestor(_e){let et=this.getParents();var tt=_e.getParents();E$3(this)&&et.unshift(this),E$3(_e)&&tt.unshift(_e),_e=et.length;var rt=tt.length;if(_e===0||rt===0||et[_e-1]!==tt[rt-1])return null;for(tt=new Set(tt),rt=0;rt<_e;rt++){let nt=et[rt];if(tt.has(nt))return nt}return null}is(_e){return _e==null?!1:this.__key===_e.__key}isBefore(_e){if(this===_e)return!1;if(_e.isParentOf(this))return!0;if(this.isParentOf(_e))return!1;var et=this.getCommonAncestor(_e);let tt=this;for(;;){var rt=tt.getParentOrThrow();if(rt===et){rt=tt.getIndexWithinParent();break}tt=rt}for(tt=_e;;){if(_e=tt.getParentOrThrow(),_e===et){et=tt.getIndexWithinParent();break}tt=_e}return rt{it.append(pt)})),C$5(tt)&&(zb(tt),et=tt.anchor,tt=tt.focus,et.key===nt&&ae(et,it),tt.key===nt&&ae(tt,it)),cc()===nt&&H$2(ot),it}insertAfter(_e,et=!0){G$3(),zc(this,_e);var tt=this.getWritable();let rt=_e.getWritable();var nt=rt.getParent();let ot=u$7();var it=!1,st=!1;if(nt!==null){var lt=_e.getIndexWithinParent();ac(rt),C$5(ot)&&(st=nt.__key,it=ot.anchor,nt=ot.focus,it=it.type==="element"&&it.key===st&&it.offset===lt+1,st=nt.type==="element"&&nt.key===st&&nt.offset===lt+1)}nt=this.getNextSibling(),lt=this.getParentOrThrow().getWritable();let ut=rt.__key,ct=tt.__next;return nt===null?lt.__last=ut:nt.getWritable().__prev=ut,lt.__size++,tt.__next=ut,rt.__next=ct,rt.__prev=tt.__key,rt.__parent=tt.__parent,et&&C$5(ot)&&(et=this.getIndexWithinParent(),Zd(ot,lt,et+1),tt=lt.__key,it&&ot.anchor.set(tt,et+2,"element"),st&&ot.focus.set(tt,et+2,"element")),_e}insertBefore(_e,et=!0){G$3(),zc(this,_e);var tt=this.getWritable();let rt=_e.getWritable(),nt=rt.__key;ac(rt);let ot=this.getPreviousSibling(),it=this.getParentOrThrow().getWritable(),st=tt.__prev,lt=this.getIndexWithinParent();return ot===null?it.__first=nt:ot.getWritable().__next=nt,it.__size++,tt.__prev=nt,rt.__prev=st,rt.__next=tt.__key,rt.__parent=tt.__parent,tt=u$7(),et&&C$5(tt)&&(et=this.getParentOrThrow(),Zd(tt,et,lt)),_e}isParentRequired(){return!1}createParentElementNode(){return be()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(_e,et){G$3();let tt=this.getPreviousSibling(),rt=this.getParentOrThrow();return tt===null?rt.select(0,0):E$3(tt)?tt.select():B$5(tt)?tt.select(_e,et):(_e=tt.getIndexWithinParent()+1,rt.select(_e,_e))}selectNext(_e,et){G$3();let tt=this.getNextSibling(),rt=this.getParentOrThrow();return tt===null?rt.select():E$3(tt)?tt.select(0,0):B$5(tt)?tt.select(_e,et):(_e=tt.getIndexWithinParent(),rt.select(_e,_e))}markDirty(){this.getWritable()}}function ce(j,_e,et){et=et||_e.getParentOrThrow().getLastChild();let tt=_e;for(_e=[_e];tt!==et;)tt.getNextSibling()||n$6(140),tt=tt.getNextSibling(),_e.push(tt);for(let rt of _e)j=j.insertAfter(rt)}class de extends $d{static getType(){return"linebreak"}static clone(_e){return new de(_e.__key)}constructor(_e){super(_e)}getTextContent(){return` -`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:_e=>{e:{var et=_e.parentElement;if(et!==null){let tt=et.firstChild;if((tt===_e||tt.nextSibling===_e&&ee(tt))&&(et=et.lastChild,et===_e||et.previousSibling===_e&&ee(et))){_e=!0;break e}}_e=!1}return _e?null:{conversion:fe,priority:0}}}}static importJSON(){return ge()}exportJSON(){return{type:"linebreak",version:1}}}function fe(){return{node:ge()}}function ge(){return yc(new de)}function Ec(j){return j instanceof de}function ee(j){return j.nodeType===3&&/^( |\t|\r?\n)+$/.test(j.textContent||"")}function he(j,_e){return _e&16?"code":_e&128?"mark":_e&32?"sub":_e&64?"sup":null}function ie(j,_e){return _e&1?"strong":_e&2?"em":"span"}function je(j,_e,et,tt,rt){j=tt.classList,tt=oc(rt,"base"),tt!==void 0&&j.add(...tt),tt=oc(rt,"underlineStrikethrough");let nt=!1,ot=_e&8&&_e&4;var it=et&8&&et&4;tt!==void 0&&(it?(nt=!0,ot||j.add(...tt)):ot&&j.remove(...tt));for(let st in gb)it=gb[st],tt=oc(rt,st),tt!==void 0&&(et&it?!nt||st!=="underline"&&st!=="strikethrough"?(!(_e&it)||ot&&st==="underline"||st==="strikethrough")&&j.add(...tt):_e&it&&j.remove(...tt):_e&it&&j.remove(...tt))}function ke(j,_e,et){let tt=_e.firstChild;if(et=et.isComposing(),j+=et?cb:"",tt==null)_e.textContent=j;else if(_e=tt.nodeValue,_e!==j)if(et||Wa){et=_e.length;let rt=j.length,nt=0,ot=0;for(;nt({conversion:ne,priority:0}),b:()=>({conversion:oe,priority:0}),code:()=>({conversion:pe,priority:0}),em:()=>({conversion:pe,priority:0}),i:()=>({conversion:pe,priority:0}),s:()=>({conversion:pe,priority:0}),span:()=>({conversion:qe,priority:0}),strong:()=>({conversion:pe,priority:0}),sub:()=>({conversion:pe,priority:0}),sup:()=>({conversion:pe,priority:0}),u:()=>({conversion:pe,priority:0})}}static importJSON(_e){let et=K(_e.text);return et.setFormat(_e.format),et.setDetail(_e.detail),et.setMode(_e.mode),et.setStyle(_e.style),et}exportDOM(_e){return{element:_e}=super.exportDOM(_e),_e!==null&&Cc(_e)||n$6(132),_e.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(_e=le(_e,"b")),this.hasFormat("italic")&&(_e=le(_e,"i")),this.hasFormat("strikethrough")&&(_e=le(_e,"s")),this.hasFormat("underline")&&(_e=le(_e,"u")),{element:_e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(_e){let et=this.getWritable();return et.__format=typeof _e=="string"?gb[_e]:_e,et}setDetail(_e){let et=this.getWritable();return et.__detail=typeof _e=="string"?hb[_e]:_e,et}setStyle(_e){let et=this.getWritable();return et.__style=_e,et}toggleFormat(_e){let et=this.getFormat();return _e=Xb(et,_e,null),this.setFormat(_e)}toggleDirectionless(){let _e=this.getWritable();return _e.__detail^=1,_e}toggleUnmergeable(){let _e=this.getWritable();return _e.__detail^=2,_e}setMode(_e){if(_e=nb[_e],this.__mode===_e)return this;let et=this.getWritable();return et.__mode=_e,et}setTextContent(_e){if(this.__text===_e)return this;let et=this.getWritable();return et.__text=_e,et}select(_e,et){G$3();let tt=u$7();var rt=this.getTextContent();let nt=this.__key;if(typeof rt=="string"?(rt=rt.length,_e===void 0&&(_e=rt),et===void 0&&(et=rt)):et=_e=0,C$5(tt))rt=cc(),rt!==tt.anchor.key&&rt!==tt.focus.key||H$2(nt),tt.setTextNodeRange(this,_e,this,et);else return re(nt,_e,nt,et,"text","text");return tt}selectStart(){return this.select(0,0)}selectEnd(){let _e=this.getTextContentSize();return this.select(_e,_e)}spliceText(_e,et,tt,rt){let nt=this.getWritable(),ot=nt.__text,it=tt.length,st=_e;0>st&&(st=it+st,0>st&&(st=0));let lt=u$7();return rt&&C$5(lt)&&(_e+=it,lt.setTextNodeRange(nt,_e,nt,_e)),et=ot.slice(0,st)+tt+ot.slice(st+et),nt.__text=et,nt}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(..._e){G$3();var et=this.getLatest(),tt=et.getTextContent(),rt=et.__key,nt=cc(),ot=new Set(_e);_e=[];for(var it=tt.length,st="",lt=0;ltut&&bt.offset<=pt&&(bt.key=mt,bt.offset-=ut,et.dirty=!0),_t.key===rt&&_t.type==="text"&&_t.offset>ut&&_t.offset<=pt&&(_t.key=mt,_t.offset-=ut,et.dirty=!0)}nt===rt&&H$2(mt),ut=pt,st.push(ft)}return rt=this.getPreviousSibling(),nt=this.getNextSibling(),rt!==null&&bc(rt),nt!==null&&bc(nt),rt=tt.getWritable(),nt=this.getIndexWithinParent(),it?(rt.splice(nt,0,st),this.remove()):rt.splice(nt,1,st),C$5(et)&&Zd(et,tt,nt,ot-1),st}mergeWithSibling(_e){var et=_e===this.getPreviousSibling();et||_e===this.getNextSibling()||n$6(50);var tt=this.__key;let rt=_e.__key,nt=this.__text,ot=nt.length;cc()===rt&&H$2(tt);let it=u$7();if(C$5(it)){let st=it.anchor,lt=it.focus;st!==null&&st.key===rt&&(se(st,et,tt,_e,ot),it.dirty=!0),lt!==null&<.key===rt&&(se(lt,et,tt,_e,ot),it.dirty=!0)}return tt=_e.__text,this.setTextContent(et?tt+nt:nt+tt),et=this.getWritable(),_e.remove(),et}isTextEntity(){return!1}}function qe(j){let _e=j.style.fontWeight==="700",et=j.style.textDecoration==="line-through",tt=j.style.fontStyle==="italic",rt=j.style.textDecoration==="underline",nt=j.style.verticalAlign;return{forChild:ot=>(B$5(ot)&&(_e&&ot.toggleFormat("bold"),et&&ot.toggleFormat("strikethrough"),tt&&ot.toggleFormat("italic"),rt&&ot.toggleFormat("underline"),nt==="sub"&&ot.toggleFormat("subscript"),nt==="super"&&ot.toggleFormat("superscript")),ot),node:null}}function oe(j){let _e=j.style.fontWeight==="normal";return{forChild:et=>(B$5(et)&&!_e&&et.toggleFormat("bold"),et),node:null}}let te=new WeakMap;function ne(j){j.parentElement===null&&n$6(129);for(var _e=j.textContent||"",et,tt=j.parentNode,rt=[j];tt!==null&&(et=te.get(tt))===void 0&&!(tt.nodeName==="PRE"||tt.nodeType===1&&tt.style!==void 0&&tt.style.whiteSpace!==void 0&&tt.style.whiteSpace.startsWith("pre"));)rt.push(tt),tt=tt.parentNode;for(et=et===void 0?tt:et,tt=0;tt(B$5(et)&&!et.hasFormat(_e)&&et.toggleFormat(_e),et),node:null}}function K(j=""){return yc(new me(j))}function B$5(j){return j instanceof me}class He extends me{static getType(){return"tab"}static clone(_e){let et=new He(_e.__key);return et.__text=_e.__text,et.__format=_e.__format,et.__style=_e.__style,et}constructor(_e){super(" ",_e),this.__detail=2}static importDOM(){return null}static importJSON(_e){let et=ue();return et.setFormat(_e.format),et.setStyle(_e.style),et}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){n$6(126)}setDetail(){n$6(127)}setMode(){n$6(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function ue(){return yc(new He)}function Ie(j){return j instanceof He}class Je{constructor(_e,et,tt){this._selection=null,this.key=_e,this.offset=et,this.type=tt}is(_e){return this.key===_e.key&&this.offset===_e.offset&&this.type===_e.type}isBefore(_e){let et=this.getNode(),tt=_e.getNode(),rt=this.offset;if(_e=_e.offset,E$3(et)){var nt=et.getDescendantByIndex(rt);et=nt??et}return E$3(tt)&&(nt=tt.getDescendantByIndex(_e),tt=nt??tt),et===tt?rt<_e:et.isBefore(tt)}getNode(){let _e=I$1(this.key);return _e===null&&n$6(20),_e}set(_e,et,tt){let rt=this._selection,nt=this.key;this.key=_e,this.offset=et,this.type=tt,dc()||(cc()===nt&&H$2(_e),rt!==null&&(rt.setCachedNodes(null),rt.dirty=!0))}}function Ke(j,_e,et){return new Je(j,_e,et)}function Le(j,_e){let et=_e.__key,tt=j.offset,rt="element";if(B$5(_e))rt="text",_e=_e.getTextContentSize(),tt>_e&&(tt=_e);else if(!E$3(_e)){var nt=_e.getNextSibling();B$5(nt)?(et=nt.__key,tt=0,rt="text"):(nt=_e.getParent())&&(et=nt.__key,tt=_e.getIndexWithinParent()+1)}j.set(et,tt,rt)}function ae(j,_e){if(E$3(_e)){let et=_e.getLastDescendant();E$3(et)||B$5(et)?Le(j,et):Le(j,_e)}else Le(j,_e)}function Me(j,_e,et,tt){let rt=j.getNode(),nt=rt.getChildAtIndex(j.offset),ot=K(),it=L(rt)?be().append(ot):ot;ot.setFormat(et),ot.setStyle(tt),nt===null?rt.append(it):nt.insertBefore(it),j.is(_e)&&_e.set(ot.__key,0,"text"),j.set(ot.__key,0,"text")}function Ne(j,_e,et,tt){j.key=_e,j.offset=et,j.type=tt}class Oe{constructor(_e){this._cachedNodes=null,this._nodes=_e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(_e){this._cachedNodes=_e}is(_e){if(!Sd(_e))return!1;let et=this._nodes,tt=_e._nodes;return et.size===tt.size&&Array.from(et).every(rt=>tt.has(rt))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(_e){this.dirty=!0,this._nodes.add(_e),this._cachedNodes=null}delete(_e){this.dirty=!0,this._nodes.delete(_e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(_e){return this._nodes.has(_e)}clone(){return new Oe(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(_e){let et=this.getNodes(),tt=et.length;var rt=et[tt-1];if(B$5(rt))rt=rt.select();else{let nt=rt.getIndexWithinParent()+1;rt=rt.getParentOrThrow().select(nt,nt)}for(rt.insertNodes(_e),_e=0;_e(E$3(it)||y$7(it))&&!it.isInline())){et=Ue(_e),_e=et.getLastDescendant();var nt=et.getChildren();et=E$3(tt)&&tt.isEmpty()?null:this.insertParagraph(),rt=nt[nt.length-1];var ot=nt[0];(it=>E$3(it)&&Dc(it)&&!it.isEmpty()&&E$3(tt)&&(!tt.isEmpty()||"__value"in tt&&"__checked"in tt))(ot)&&(E$3(tt)||n$6(135),tt.append(...ot.getChildren()),ot=nt[1]),ot&&ce(tt,ot),nt=Fc(_e,Dc),et&&E$3(nt)&&("__value"in et&&"__checked"in et||Dc(rt))&&(nt.append(...et.getChildren()),et.remove()),E$3(tt)&&tt.isEmpty()&&tt.remove(),_e.selectEnd(),_e=E$3(tt)?tt.getLastChild():null,Ec(_e)&&nt!==tt&&_e.remove()}else E$3(tt)||n$6(135),rt=Te(this),tt.splice(rt,0,_e),et.selectEnd()}}insertParagraph(){if(this.anchor.key==="root"){var _e=be();return J$1().splice(this.anchor.offset,0,[_e]),_e.select(),_e}var et=Te(this);return _e=Fc(this.anchor.getNode(),Dc),E$3(_e)||n$6(136),et=(et=_e.getChildAtIndex(et))?[et,...et.getNextSiblings()]:[],(_e=_e.insertNewAfter(this,!1))?(_e.append(...et),_e.selectStart(),_e):null}insertLineBreak(_e){var et=ge();this.insertNodes([et]),_e&&(_e=et.getParentOrThrow(),et=et.getIndexWithinParent(),_e.select(et,et))}extract(){var _e=this.getNodes(),et=_e.length,tt=et-1,rt=this.anchor;let nt=this.focus;var ot=_e[0];let it=_e[tt],[st,lt]=Qe(this);return et===0?[]:et===1?B$5(ot)&&!this.isCollapsed()?(_e=st>lt?lt:st,tt=ot.splitText(_e,st>lt?st:lt),_e=_e===0?tt[0]:tt[1],_e!=null?[_e]:[]):[ot]:(et=rt.isBefore(nt),B$5(ot)&&(rt=et?st:lt,rt===ot.getTextContentSize()?_e.shift():rt!==0&&([,ot]=ot.splitText(rt),_e[0]=ot)),B$5(it)&&(ot=it.getTextContent().length,et=et?lt:st,et===0?_e.pop():et!==ot&&([it]=it.splitText(et),_e[tt]=it)),_e)}modify(_e,et,tt){var rt=this.focus,nt=this.anchor,ot=_e==="move",it=rc(rt,et);if(y$7(it)&&!it.isIsolated())ot&&it.isKeyboardSelectable()?(et=Ve(),et.add(it.__key),zb(et)):(_e=et?it.getPreviousSibling():it.getNextSibling(),B$5(_e)?(it=_e.__key,et=et?_e.getTextContent().length:0,rt.set(it,et,"text"),ot&&nt.set(it,et,"text")):(tt=it.getParentOrThrow(),E$3(_e)?(tt=_e.__key,it=et?_e.getChildrenSize():0):(it=it.getIndexWithinParent(),tt=tt.__key,et||it++),rt.set(tt,it,"element"),ot&&nt.set(tt,it,"element")));else if(nt=F$3(),rt=wb(nt._window)){var st=nt._blockCursorElement,lt=nt._rootElement;if(lt===null||st===null||!E$3(it)||it.isInline()||it.canBeEmpty()||Bc(st,nt,lt),rt.modify(_e,et?"backward":"forward",tt),0et||lt){tt.splice(it,1),lt&&(ot=void 0);break}}_e=tt.join("").trim(),_e===""?j.remove():(j.setTextContent(_e),j.select(ot,ot))}function Ye(j,_e,et,tt){var rt=_e;if(j.nodeType===1){let it=!1;var nt=j.childNodes,ot=nt.length;rt===ot&&(it=!0,rt=ot-1);let st=nt[rt];if(ot=!1,st===tt._blockCursorElement?(st=nt[rt+1],ot=!0):tt._blockCursorElement!==null&&rt--,tt=hc(st),B$5(tt))rt=it?tt.getTextContentSize():0;else{if(nt=hc(j),nt===null)return null;if(E$3(nt)?(j=nt.getChildAtIndex(rt),(_e=E$3(j))&&(_e=j.getParent(),_e=et===null||_e===null||!_e.canBeEmpty()||_e!==et.getNode()),_e&&(et=it?j.getLastDescendant():j.getFirstDescendant(),et===null?(nt=j,rt=0):(j=et,nt=E$3(j)?j:j.getParentOrThrow())),B$5(j)?(tt=j,nt=null,rt=it?j.getTextContentSize():0):j!==nt&&it&&!ot&&rt++):(rt=nt.getIndexWithinParent(),rt=_e===0&&y$7(nt)&&hc(j)===nt?rt:rt+1,nt=nt.getParentOrThrow()),E$3(nt))return Ke(nt.__key,rt,"element")}}else tt=hc(j);return B$5(tt)?Ke(tt.__key,rt,"text"):null}function Ze(j,_e,et){var tt=j.offset,rt=j.getNode();tt===0?(tt=rt.getPreviousSibling(),rt=rt.getParent(),_e?(et||!_e)&&tt===null&&E$3(rt)&&rt.isInline()&&(_e=rt.getPreviousSibling(),B$5(_e)&&(j.key=_e.__key,j.offset=_e.getTextContent().length)):E$3(tt)&&!et&&tt.isInline()?(j.key=tt.__key,j.offset=tt.getChildrenSize(),j.type="element"):B$5(tt)&&(j.key=tt.__key,j.offset=tt.getTextContent().length)):tt===rt.getTextContent().length&&(tt=rt.getNextSibling(),rt=rt.getParent(),_e&&E$3(tt)&&tt.isInline()?(j.key=tt.__key,j.offset=0,j.type="element"):(et||_e)&&tt===null&&E$3(rt)&&rt.isInline()&&!rt.canInsertTextAfter()&&(_e=rt.getNextSibling(),B$5(_e)&&(j.key=_e.__key,j.offset=0)))}function Se(j,_e,et){if(j.type==="text"&&_e.type==="text"){var tt=j.isBefore(_e);let rt=j.is(_e);Ze(j,tt,rt),Ze(_e,!tt,rt),rt&&(_e.key=j.key,_e.offset=j.offset,_e.type=j.type),tt=F$3(),tt.isComposing()&&tt._compositionKey!==j.key&&C$5(et)&&(tt=et.anchor,et=et.focus,Ne(j,tt.key,tt.offset,tt.type),Ne(_e,et.key,et.offset,et.type))}}function Re(j,_e,et,tt,rt,nt){return j===null||et===null||!Sb(rt,j,et)||(_e=Ye(j,_e,C$5(nt)?nt.anchor:null,rt),_e===null)||(tt=Ye(et,tt,C$5(nt)?nt.focus:null,rt),tt===null||_e.type==="element"&&tt.type==="element"&&(j=hc(j),et=hc(et),y$7(j)&&y$7(et)))?null:(Se(_e,tt,nt),[_e,tt])}function re(j,_e,et,tt,rt,nt){let ot=$b();return j=new Pe(Ke(j,_e,rt),Ke(et,tt,nt),0,""),j.dirty=!0,ot._selection=j}function Ve(){return new Oe(new Set)}function $e(j){let _e=j.getEditorState()._selection,et=wb(j._window);return C$5(_e)||_e==null?Od(_e,et,j,null):_e.clone()}function Od(j,_e,et,tt){var rt=et._window;if(rt===null)return null;var nt=(rt=tt||rt.event)?rt.type:void 0;tt=nt==="selectionchange",rt=!pb&&(tt||nt==="beforeinput"||nt==="compositionstart"||nt==="compositionend"||nt==="click"&&rt&&rt.detail===3||nt==="drop"||nt===void 0);let ot;if(!C$5(j)||rt){if(_e===null)return null;if(rt=_e.anchorNode,nt=_e.focusNode,ot=_e.anchorOffset,_e=_e.focusOffset,tt&&C$5(j)&&!Sb(et,rt,nt))return j.clone()}else return j.clone();if(et=Re(rt,ot,nt,_e,et,j),et===null)return null;let[it,st]=et;return new Pe(it,st,C$5(j)?j.format:0,C$5(j)?j.style:"")}function u$7(){return $b()._selection}function mc(){return F$3()._editorState._selection}function Zd(j,_e,et,tt=1){var rt=j.anchor,nt=j.focus,ot=rt.getNode(),it=nt.getNode();if(_e.is(ot)||_e.is(it)){if(ot=_e.__key,j.isCollapsed())_e=rt.offset,(et<=_e&&0tt)&&(et=Math.max(0,_e+tt),rt.set(ot,et,"element"),nt.set(ot,et,"element"),af(j));else{let lt=j.isBackward();it=lt?nt:rt;var st=it.getNode();rt=lt?rt:nt,nt=rt.getNode(),_e.is(st)&&(st=it.offset,(et<=st&&0tt)&&it.set(ot,Math.max(0,st+tt),"element")),_e.is(nt)&&(_e=rt.offset,(et<=_e&&0tt)&&rt.set(ot,Math.max(0,_e+tt),"element"))}af(j)}}function af(j){var _e=j.anchor,et=_e.offset;let tt=j.focus;var rt=tt.offset,nt=_e.getNode(),ot=tt.getNode();if(j.isCollapsed())E$3(nt)&&(ot=nt.getChildrenSize(),ot=(rt=et>=ot)?nt.getChildAtIndex(ot-1):nt.getChildAtIndex(et),B$5(ot)&&(et=0,rt&&(et=ot.getTextContentSize()),_e.set(ot.__key,et,"text"),tt.set(ot.__key,et,"text")));else{if(E$3(nt)){let it=nt.getChildrenSize();et=(j=et>=it)?nt.getChildAtIndex(it-1):nt.getChildAtIndex(et),B$5(et)&&(nt=0,j&&(nt=et.getTextContentSize()),_e.set(et.__key,nt,"text"))}E$3(ot)&&(et=ot.getChildrenSize(),rt=(_e=rt>=et)?ot.getChildAtIndex(et-1):ot.getChildAtIndex(rt),B$5(rt)&&(ot=0,_e&&(ot=rt.getTextContentSize()),tt.set(rt.__key,ot,"text")))}}function bf(j,_e){if(_e=_e.getEditorState()._selection,j=j._selection,C$5(j)){var et=j.anchor;let tt=j.focus,rt;et.type==="text"&&(rt=et.getNode(),rt.selectionTransform(_e,j)),tt.type==="text"&&(et=tt.getNode(),rt!==et&&et.selectionTransform(_e,j))}}function Yd(j,_e,et,tt,rt){let nt=null,ot=0,it=null;tt!==null?(nt=tt.__key,B$5(tt)?(ot=tt.getTextContentSize(),it="text"):E$3(tt)&&(ot=tt.getChildrenSize(),it="element")):rt!==null&&(nt=rt.__key,B$5(rt)?it="text":E$3(rt)&&(it="element")),nt!==null&&it!==null?j.set(nt,ot,it):(ot=_e.getIndexWithinParent(),ot===-1&&(ot=et.getChildrenSize()),j.set(et.__key,ot,"element"))}function se(j,_e,et,tt,rt){j.type==="text"?(j.key=et,_e||(j.offset+=rt)):j.offset>tt.getIndexWithinParent()&&--j.offset}function Te(j){j.isCollapsed()||j.removeText();var _e=j.anchor;for(j=_e.getNode(),_e=_e.offset;!Dc(j);)[j,_e]=cf(j,_e);return _e}function cf(j,_e){var et=j.getParent();if(!et)return et=be(),J$1().append(et),et.select(),[J$1(),0];if(B$5(j)){var tt=j.splitText(_e);return tt.length===0?[et,j.getIndexWithinParent()]:(j=_e===0?0:1,j=tt[0].getIndexWithinParent()+j,[et,j])}return!E$3(j)||_e===0?[et,j.getIndexWithinParent()]:((tt=j.getChildAtIndex(_e))&&(_e=new Pe(Ke(j.__key,_e,"element"),Ke(j.__key,_e,"element"),0,""),(_e=j.insertNewAfter(_e))&&_e.append(tt,...tt.getNextSiblings())),[et,j.getIndexWithinParent()+1])}function Ue(j){let _e=be(),et=null;for(let tt=0;ttar&&(gr=_r-ar),gr!==0)if(ir)sr.scrollBy(0,gr);else{let wr=pr.scrollTop;pr.scrollTop+=gr;let Mr=pr.scrollTop-wr;hr-=Mr,_r-=Mr}if(ir)break;pr=Ub(pr)}}}Gd=!0}}else ot!==null&&Sb(j,Gr,qr)&&It.removeAllRanges()}}e:{let Nr=j._blockCursorElement;if(C$5(it)&&it.isCollapsed()&&it.anchor.type==="element"&&tt.contains(document.activeElement)){let Gr=it.anchor,qr=Gr.getNode(),Qr=Gr.offset,Yr=qr.getChildrenSize(),Pr=!1,Vr=null;if(Qr===Yr){let yn=qr.getChildAtIndex(Qr-1);Ac(yn)&&(Pr=!0)}else{let yn=qr.getChildAtIndex(Qr);if(Ac(yn)){let fr=yn.getPreviousSibling();(fr===null||Ac(fr))&&(Pr=!0,Vr=j.getElementByKey(yn.__key))}}if(Pr){let yn=j.getElementByKey(qr.__key);if(Nr===null){let fr=j._config.theme,sr=document.createElement("div");sr.contentEditable="false",sr.setAttribute("data-lexical-cursor","true");let ir=fr.blockCursor;if(ir!==void 0){if(typeof ir=="string"){let gr=ir.split(" ");ir=fr.blockCursor=gr}ir!==void 0&&sr.classList.add(...ir)}j._blockCursorElement=Nr=sr}tt.style.caretColor="transparent",Vr===null?yn.appendChild(Nr):yn.insertBefore(Nr,Vr);break e}}Nr!==null&&Bc(Nr,j,tt)}ft!==null&&ft.observe(tt,ef)}finally{T=ct,S=lt}}if(pt!==null){var rr=pt;let Nr=Array.from(j._listeners.mutation),Gr=Nr.length;for(let qr=0;qr{nt=R(j,_e,et)}),nt}let tt=jc(j);for(let nt=4;0<=nt;nt--)for(let ot=0;ot{lf(j)}):(ot._flushSync=!1,it&&(tt.clear(),j._deferred=[],j._pendingEditorState=null))}function v$6(j,_e,et){j._updating?j._updates.push([_e,et]):of(j,_e,et)}class sf extends $d{constructor(_e){super(_e)}decorate(){n$6(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function y$7(j){return j instanceof sf}class tf extends $d{constructor(_e){super(_e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let _e=this.getFormat();return mb[_e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let _e=[],et=this.getFirstChild();for(;et!==null;)_e.push(et),et=et.getNextSibling();return _e}getChildrenKeys(){let _e=[],et=this.getFirstChild();for(;et!==null;)_e.push(et.__key),et=et.getNextSibling();return _e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){let _e=F$3()._dirtyElements;return _e!==null&&_e.has(this.__key)}isLastChild(){let _e=this.getLatest(),et=this.getParentOrThrow().getLastChild();return et!==null&&et.is(_e)}getAllTextNodes(){let _e=[],et=this.getFirstChild();for(;et!==null;){if(B$5(et)&&_e.push(et),E$3(et)){let tt=et.getAllTextNodes();_e.push(...tt)}et=et.getNextSibling()}return _e}getFirstDescendant(){let _e=this.getFirstChild();for(;_e!==null;){if(E$3(_e)){let et=_e.getFirstChild();if(et!==null){_e=et;continue}}break}return _e}getLastDescendant(){let _e=this.getLastChild();for(;_e!==null;){if(E$3(_e)){let et=_e.getLastChild();if(et!==null){_e=et;continue}}break}return _e}getDescendantByIndex(_e){let et=this.getChildren(),tt=et.length;return _e>=tt?(_e=et[tt-1],E$3(_e)&&_e.getLastDescendant()||_e||null):(_e=et[_e],E$3(_e)&&_e.getFirstDescendant()||_e||null)}getFirstChild(){let _e=this.getLatest().__first;return _e===null?null:I$1(_e)}getFirstChildOrThrow(){let _e=this.getFirstChild();return _e===null&&n$6(45,this.__key),_e}getLastChild(){let _e=this.getLatest().__last;return _e===null?null:I$1(_e)}getLastChildOrThrow(){let _e=this.getLastChild();return _e===null&&n$6(96,this.__key),_e}getChildAtIndex(_e){var et=this.getChildrenSize();let tt;if(_e=_e;){if(et===_e)return tt;tt=tt.getPreviousSibling(),et--}return null}getTextContent(){let _e="",et=this.getChildren(),tt=et.length;for(let rt=0;rtet.remove()),_e}append(..._e){return this.splice(this.getChildrenSize(),0,_e)}setDirection(_e){let et=this.getWritable();return et.__dir=_e,et}setFormat(_e){return this.getWritable().__format=_e!==""?lb[_e]:0,this}setIndent(_e){return this.getWritable().__indent=_e,this}splice(_e,et,tt){let rt=tt.length,nt=this.getChildrenSize(),ot=this.getWritable(),it=ot.__key;var st=[],lt=[];let ut=this.getChildAtIndex(_e+et),ct=null,dt=nt-et+rt;if(_e!==0)if(_e===nt)ct=this.getLastChild();else{var ft=this.getChildAtIndex(_e);ft!==null&&(ct=ft.getPreviousSibling())}if(0({root:xf(J$1())}))}}class Df extends tf{static getType(){return"paragraph"}static clone(_e){return new Df(_e.__key)}createDOM(_e){let et=document.createElement("p");return _e=oc(_e.theme,"paragraph"),_e!==void 0&&et.classList.add(..._e),et}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:Ef,priority:0})}}exportDOM(_e){if({element:_e}=super.exportDOM(_e),_e&&Cc(_e)){this.isEmpty()&&_e.append(document.createElement("br"));var et=this.getFormatType();_e.style.textAlign=et,(et=this.getDirection())&&(_e.dir=et),et=this.getIndent(),0{Object.keys(nt).forEach(ot=>{let it=et.get(ot);it===void 0&&(it=[],et.set(ot,it)),it.push(nt[ot])})};return j.forEach(nt=>{nt=nt.klass.importDOM!=null?nt.klass.importDOM.bind(nt.klass):null,nt==null||tt.has(nt)||(tt.add(nt),nt=nt(),nt!==null&&rt(nt))}),_e&&rt(_e),et}class Gf{constructor(_e,et,tt,rt,nt,ot,it){this._parentEditor=et,this._rootElement=null,this._editorState=_e,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=rt,this._nodes=tt,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=kc(),this._onError=nt,this._htmlConversions=ot,this._editable=it,this._headless=et!==null&&et._headless,this._blockCursorElement=this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(_e){let et=this._listeners.update;return et.add(_e),()=>{et.delete(_e)}}registerEditableListener(_e){let et=this._listeners.editable;return et.add(_e),()=>{et.delete(_e)}}registerDecoratorListener(_e){let et=this._listeners.decorator;return et.add(_e),()=>{et.delete(_e)}}registerTextContentListener(_e){let et=this._listeners.textcontent;return et.add(_e),()=>{et.delete(_e)}}registerRootListener(_e){let et=this._listeners.root;return _e(this._rootElement,null),et.add(_e),()=>{_e(null,this._rootElement),et.delete(_e)}}registerCommand(_e,et,tt){tt===void 0&&n$6(35);let rt=this._commands;rt.has(_e)||rt.set(_e,[new Set,new Set,new Set,new Set,new Set]);let nt=rt.get(_e);nt===void 0&&n$6(36,String(_e));let ot=nt[tt];return ot.add(et),()=>{ot.delete(et),nt.every(it=>it.size===0)&&rt.delete(_e)}}registerMutationListener(_e,et){this._nodes.get(_e.getType())===void 0&&n$6(37,_e.name);let tt=this._listeners.mutation;return tt.set(et,_e),()=>{tt.delete(et)}}registerNodeTransformToKlass(_e,et){var tt=_e.getType();return tt=this._nodes.get(tt),tt===void 0&&n$6(37,_e.name),tt.transforms.add(et),tt}registerNodeTransform(_e,et){var tt=this.registerNodeTransformToKlass(_e,et);let rt=[tt];return tt=tt.replaceWithKlass,tt!=null&&(tt=this.registerNodeTransformToKlass(tt,et),rt.push(tt)),gc(this,_e.getType()),()=>{rt.forEach(nt=>nt.transforms.delete(et))}}hasNode(_e){return this._nodes.has(_e.getType())}hasNodes(_e){return _e.every(this.hasNode.bind(this))}dispatchCommand(_e,et){return R(this,_e,et)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(_e){let et=this._rootElement;if(_e!==et){let ot=oc(this._config.theme,"root");var tt=this._pendingEditorState||this._editorState;if(this._rootElement=_e,mf(this,et,_e,tt),et!==null){if(!this._config.disableEvents){Fd!==0&&(Fd--,Fd===0&&et.ownerDocument.removeEventListener("selectionchange",Vd));var rt=et.__lexicalEditor;if(rt!=null){if(rt._parentEditor!==null){var nt=jc(rt);nt=nt[nt.length-1]._key,Ud.get(nt)===rt&&Ud.delete(nt)}else Ud.delete(rt._key);et.__lexicalEditor=null}for(rt=Td(et),nt=0;nt{let rt=u$7(),nt=J$1();rt!==null?rt.dirty=!0:nt.getChildrenSize()!==0&&(et.defaultSelection==="rootStart"?nt.selectStart():nt.selectEnd())},{onUpdate:()=>{tt.removeAttribute("autocapitalize"),_e&&_e()},tag:"focus"}),this._pendingEditorState===null&&tt.removeAttribute("autocapitalize"))}blur(){var _e=this._rootElement;_e!==null&&_e.blur(),_e=wb(this._window),_e!==null&&_e.removeAllRanges()}isEditable(){return this._editable}setEditable(_e){this._editable!==_e&&(this._editable=_e,nf("editable",this,!0,_e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Lexical_prod.$addUpdateTag=function(j){G$3(),F$3()._updateTags.add(j)};Lexical_prod.$applyNodeReplacement=yc;Lexical_prod.$copyNode=xc;Lexical_prod.$createLineBreakNode=ge;Lexical_prod.$createNodeSelection=Ve;Lexical_prod.$createParagraphNode=be;Lexical_prod.$createPoint=Ke;Lexical_prod.$createRangeSelection=function(){let j=Ke("root",0,"element"),_e=Ke("root",0,"element");return new Pe(j,_e,0,"")};Lexical_prod.$createTabNode=ue;Lexical_prod.$createTextNode=K;Lexical_prod.$getAdjacentNode=rc;Lexical_prod.$getCharacterOffsets=Qe;Lexical_prod.$getEditor=function(){return F$3()};Lexical_prod.$getNearestNodeFromDOMNode=vb;Lexical_prod.$getNearestRootOrShadowRoot=vc;Lexical_prod.$getNodeByKey=I$1;Lexical_prod.$getPreviousSelection=mc;Lexical_prod.$getRoot=J$1;Lexical_prod.$getSelection=u$7;Lexical_prod.$getTextContent=function(){let j=u$7();return j===null?"":j.getTextContent()};Lexical_prod.$hasAncestor=uc;Lexical_prod.$hasUpdateTag=function(j){return F$3()._updateTags.has(j)};Lexical_prod.$insertNodes=function(j){let _e=u$7()||mc();_e===null&&(_e=J$1().selectEnd()),_e.insertNodes(j)};Lexical_prod.$isBlockElementNode=function(j){return E$3(j)&&!j.isInline()};Lexical_prod.$isDecoratorNode=y$7;Lexical_prod.$isElementNode=E$3;Lexical_prod.$isInlineElementOrDecoratorNode=function(j){return E$3(j)&&j.isInline()||y$7(j)&&j.isInline()};Lexical_prod.$isLeafNode=function(j){return B$5(j)||Ec(j)||y$7(j)};Lexical_prod.$isLineBreakNode=Ec;Lexical_prod.$isNodeSelection=Sd;Lexical_prod.$isParagraphNode=function(j){return j instanceof Df};Lexical_prod.$isRangeSelection=C$5;Lexical_prod.$isRootNode=L;Lexical_prod.$isRootOrShadowRoot=wc;Lexical_prod.$isTabNode=Ie;Lexical_prod.$isTextNode=B$5;Lexical_prod.$nodesOfType=function(j){var _e=$b();let et=_e._readOnly,tt=j.getType();_e=_e._nodeMap;let rt=[];for(let[,nt]of _e)nt instanceof j&&nt.__type===tt&&(et||nt.isAttached())&&rt.push(nt);return rt};Lexical_prod.$normalizeSelection__EXPERIMENTAL=Hb;Lexical_prod.$parseSerializedNode=function(j){return jf(j,F$3()._nodes)};Lexical_prod.$selectAll=function(){var j=J$1();j=j.select(0,j.getChildrenSize()),zb(Hb(j))};Lexical_prod.$setCompositionKey=H$2;Lexical_prod.$setSelection=zb;Lexical_prod.$splitNode=function(j,_e){let et=j.getChildAtIndex(_e);et==null&&(et=j),wc(j)&&n$6(102);let tt=ot=>{const it=ot.getParentOrThrow(),st=wc(it),lt=ot!==et||st?xc(ot):ot;if(st)return E$3(ot)&&E$3(lt)||n$6(133),ot.insertAfter(lt),[ot,lt,lt];const[ut,ct,dt]=tt(it);return ot=ot.getNextSiblings(),dt.append(lt,...ot),[ut,ct,lt]},[rt,nt]=tt(et);return[rt,nt]};Lexical_prod.BLUR_COMMAND=Ra;Lexical_prod.CAN_REDO_COMMAND={};Lexical_prod.CAN_UNDO_COMMAND={};Lexical_prod.CLEAR_EDITOR_COMMAND={};Lexical_prod.CLEAR_HISTORY_COMMAND={};Lexical_prod.CLICK_COMMAND=ca;Lexical_prod.COMMAND_PRIORITY_CRITICAL=4;Lexical_prod.COMMAND_PRIORITY_EDITOR=0;Lexical_prod.COMMAND_PRIORITY_HIGH=3;Lexical_prod.COMMAND_PRIORITY_LOW=1;Lexical_prod.COMMAND_PRIORITY_NORMAL=2;Lexical_prod.CONTROLLED_TEXT_INSERTION_COMMAND=ka$1;Lexical_prod.COPY_COMMAND=Na;Lexical_prod.CUT_COMMAND=Oa;Lexical_prod.DELETE_CHARACTER_COMMAND=da;Lexical_prod.DELETE_LINE_COMMAND=pa;Lexical_prod.DELETE_WORD_COMMAND=oa;Lexical_prod.DRAGEND_COMMAND=Ma;Lexical_prod.DRAGOVER_COMMAND=La;Lexical_prod.DRAGSTART_COMMAND=Ka;Lexical_prod.DROP_COMMAND=Ja;Lexical_prod.DecoratorNode=sf;Lexical_prod.ElementNode=tf;Lexical_prod.FOCUS_COMMAND=Qa;Lexical_prod.FORMAT_ELEMENT_COMMAND={};Lexical_prod.FORMAT_TEXT_COMMAND=qa;Lexical_prod.INDENT_CONTENT_COMMAND={};Lexical_prod.INSERT_LINE_BREAK_COMMAND=ea;Lexical_prod.INSERT_PARAGRAPH_COMMAND=fa;Lexical_prod.INSERT_TAB_COMMAND={};Lexical_prod.KEY_ARROW_DOWN_COMMAND=Aa;Lexical_prod.KEY_ARROW_LEFT_COMMAND=wa;Lexical_prod.KEY_ARROW_RIGHT_COMMAND=ua;Lexical_prod.KEY_ARROW_UP_COMMAND=za;Lexical_prod.KEY_BACKSPACE_COMMAND=Da;Lexical_prod.KEY_DELETE_COMMAND=Ha;Lexical_prod.KEY_DOWN_COMMAND=ta;Lexical_prod.KEY_ENTER_COMMAND=Ba;Lexical_prod.KEY_ESCAPE_COMMAND=Ga;Lexical_prod.KEY_MODIFIER_COMMAND=Sa;Lexical_prod.KEY_SPACE_COMMAND=Ca;Lexical_prod.KEY_TAB_COMMAND=Ia;Lexical_prod.LineBreakNode=de;Lexical_prod.MOVE_TO_END=va;Lexical_prod.MOVE_TO_START=ya;Lexical_prod.OUTDENT_CONTENT_COMMAND={};Lexical_prod.PASTE_COMMAND=la;Lexical_prod.ParagraphNode=Df;Lexical_prod.REDO_COMMAND=sa;Lexical_prod.REMOVE_TEXT_COMMAND=ma;Lexical_prod.RootNode=vf;Lexical_prod.SELECTION_CHANGE_COMMAND=ba;Lexical_prod.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND={};Lexical_prod.SELECT_ALL_COMMAND=Pa;Lexical_prod.TabNode=He;Lexical_prod.TextNode=me;Lexical_prod.UNDO_COMMAND=ra;Lexical_prod.createCommand=function(){return{}};Lexical_prod.createEditor=function(j){var _e=j||{},et=T,tt=_e.theme||{};let rt=j===void 0?et:_e.parentEditor||null,nt=_e.disableEvents||!1,ot=wf(),it=_e.namespace||(rt!==null?rt._config.namespace:kc()),st=_e.editorState,lt=[vf,me,de,He,Df,..._e.nodes||[]],{onError:ut,html:ct}=_e;if(_e=_e.editable!==void 0?_e.editable:!0,j===void 0&&et!==null)j=et._nodes;else for(j=new Map,et=0;et(ot instanceof Function?rt[nt]=ot(et[nt]):ot===null?delete rt[nt]:rt[nt]=ot,rt),{...et});let tt=A$1(_e);j.setStyle(tt),v$5.set(tt,_e)}function C$4(j){for(;j!==null&&!k$4.$isRootOrShadowRoot(j);){let _e=j.getLatest(),et=j.getParent();_e.getChildrenSize()===0&&j.remove(!0),j=et}}function D$2(j,_e,et,tt,rt=null){if(_e.length!==0){var nt=_e[0],ot=new Map,it=[];nt=k$4.$isElementNode(nt)?nt:nt.getParentOrThrow(),nt.isInline()&&(nt=nt.getParentOrThrow());for(var st=!1;nt!==null;){var lt=nt.getPreviousSibling();if(lt!==null){nt=lt,st=!0;break}if(nt=nt.getParentOrThrow(),k$4.$isRootOrShadowRoot(nt))break}lt=new Set;for(var ut=0;ut{pt.append(gt),dt.add(gt.getKey()),k$4.$isElementNode(gt)&>.getChildrenKeys().forEach(mt=>dt.add(mt))}),C$4(ft)}}else if(lt.has(ct.getKey())){if(!k$4.$isElementNode(ct))throw Error("Expected node in emptyElements to be an ElementNode");ft=tt(),ft.setFormat(ct.getFormatType()),ft.setIndent(ct.getIndent()),it.push(ft),ct.remove(!0)}}if(rt!==null)for(_e=0;_elt?lt:ut,j=pt==="element"?st:ut>lt?ut:lt,dt!==j&&(dt===0&&j===st?(B$4(rt,_e),rt.select(dt,j)):(et=rt.splitText(dt,j),et=dt===0?et[0]:et[1],B$4(et,_e),et.select(0,j-dt))));else for(k$4.$isTextNode(rt)&&dtut?ut:lt,ot=lt>ut?lt:ut):nt?(tt=et?ut:lt,ot=void 0):rt&&(et=et?lt:ut,tt=0,ot=et),_e.__text=_e.__text.slice(tt,ot)}}return _e};LexicalSelection_prod.$wrapNodes=function(j,_e,et=null){var tt=j.getStartEndPoints(),rt=tt?tt[0]:null;tt=j.getNodes();let nt=tt.length;if(rt!==null&&(nt===0||nt===1&&rt.type==="element"&&rt.getNode().getChildrenSize()===0)){j=rt.type==="text"?rt.getNode().getParentOrThrow():rt.getNode(),tt=j.getChildren();let it=_e();it.setFormat(j.getFormatType()),it.setIndent(j.getIndent()),tt.forEach(st=>it.append(st)),et&&(it=et.append(it)),j.replace(it)}else{rt=null;var ot=[];for(let it=0;it{let it=nt.top-ot.top;return 3>=Math.abs(it)?nt.left-ot.left:it});let rt;for(let nt=0;ntot.top&&rt.left+rt.width>ot.left||it?(_e.splice(nt--,1),tt--):rt=ot}return _e};LexicalSelection_prod.getStyleObjectFromCSS=z$3;LexicalSelection_prod.trimTextContentFromAnchor=function(j,_e,et){let tt=_e.getNode();if(k$4.$isElementNode(tt)){var rt=tt.getDescendantByIndex(_e.offset);rt!==null&&(tt=rt)}for(;0=rt)it=tt.getParent(),tt.remove(),it==null||it.getChildrenSize()!==0||k$4.$isRootNode(it)||it.remove(),et-=rt+ot,tt=nt;else{let st=tt.getKey();ot=j.getEditorState().read(()=>{const ut=k$4.$getNodeByKey(st);return k$4.$isTextNode(ut)&&ut.isSimpleText()?ut.getTextContent():null}),nt=rt-et;let lt=it.slice(0,nt);ot!==null&&ot!==it?(et=k$4.$getPreviousSelection(),rt=tt,tt.isSimpleText()?tt.setTextContent(ot):(rt=k$4.$createTextNode(ot),tt.replace(rt)),k$4.$isRangeSelection(et)&&et.isCollapsed()&&(et=et.anchor.offset,rt.select(et,et))):tt.isSimpleText()?(ot=_e.key===st,it=_e.offset,it{j.forEach(_e=>_e())}}let E$1={attributes:!0,characterData:!0,childList:!0,subtree:!0};function F$1(j,_e,et){function tt(){if(ot===null)throw Error("Unexpected null rootDOMNode");if(it===null)throw Error("Unexpected null parentDOMNode");let{left:dt,top:ft}=ot.getBoundingClientRect();var pt=it;let gt=h$5.createRectsFromDOMRange(j,_e);ut.isConnected||pt.append(ut),pt=!1;for(let _t=0;_tgt.length;)lt.pop();pt&&et(lt)}function rt(){ot=it=null,st!==null&&st.disconnect(),st=null,ut.remove();for(let dt of lt)dt.remove();lt=[]}function nt(){let dt=j.getRootElement();if(dt===null)return rt();let ft=dt.parentElement;if(!(ft instanceof HTMLElement))return rt();rt(),ot=dt,it=ft,st=new MutationObserver(pt=>{let gt=j.getRootElement(),mt=gt&>.parentElement;if(gt!==ot||mt!==it)return nt();for(let bt of pt)if(!ut.contains(bt.target))return tt()}),st.observe(ft,E$1),tt()}let ot=null,it=null,st=null,lt=[],ut=document.createElement("div"),ct=j.registerRootListener(nt);return()=>{ct(),rt()}}function G$1(j,_e){for(let et of _e)if(j.type.startsWith(et))return!0;return!1}let H$1=(j,_e)=>{for(;j!==B$3.$getRoot()&&j!=null;){if(_e(j))return j;j=j.getParent()}return null};LexicalUtils_prod.$splitNode=B$3.$splitNode;LexicalUtils_prod.isHTMLAnchorElement=B$3.isHTMLAnchorElement;LexicalUtils_prod.isHTMLElement=B$3.isHTMLElement;LexicalUtils_prod.$dfs=function(j,_e){let et=[];j=(j||B$3.$getRoot()).getLatest(),_e=_e||(B$3.$isElementNode(j)?j.getLastDescendant():j);for(var tt=j,rt=0;(tt=tt.getParent())!==null;)rt++;for(tt=rt;j!==null&&!j.is(_e);)if(et.push({depth:tt,node:j}),B$3.$isElementNode(j)&&0B$3.$isElementNode(et)&&!et.isInline());return B$3.$isElementNode(_e)||C$3(4,j.__key),_e};LexicalUtils_prod.$getNearestNodeOfType=function(j,_e){for(;j!=null;){if(j instanceof _e)return j;j=j.getParent()}return null};LexicalUtils_prod.$insertFirst=function(j,_e){let et=j.getFirstChild();et!==null?et.insertBefore(_e):j.append(_e)};LexicalUtils_prod.$insertNodeToNearestRoot=function(j){var _e=B$3.$getSelection()||B$3.$getPreviousSelection();if(B$3.$isRangeSelection(_e)){var{focus:et}=_e;if(_e=et.getNode(),et=et.offset,B$3.$isRootOrShadowRoot(_e))et=_e.getChildAtIndex(et),et==null?_e.append(j):et.insertBefore(j),j.selectNext();else{let tt,rt;B$3.$isTextNode(_e)?(tt=_e.getParentOrThrow(),rt=_e.getIndexWithinParent(),0{typeof et=="string"&&(et=et.split(" ").filter(tt=>tt!==""),j.classList.add(...et))})};LexicalUtils_prod.isMimeType=G$1;LexicalUtils_prod.markSelection=function(j,_e){function et(st){st.read(()=>{var lt=B$3.$getSelection();if(B$3.$isRangeSelection(lt)){var{anchor:ut,focus:ct}=lt;lt=ut.getNode();var dt=lt.getKey(),ft=ut.offset,pt=ct.getNode(),gt=pt.getKey(),mt=ct.offset,bt=j.getElementByKey(dt),_t=j.getElementByKey(gt);if(dt=tt===null||bt===null||ft!==rt||dt!==tt.getKey()||lt!==tt&&(!(tt instanceof B$3.TextNode)||lt.updateDOM(tt,bt,j._config)),gt=nt===null||_t===null||mt!==ot||gt!==nt.getKey()||pt!==nt&&(!(nt instanceof B$3.TextNode)||pt.updateDOM(nt,_t,j._config)),dt||gt){bt=j.getElementByKey(ut.getNode().getKey());var xt=j.getElementByKey(ct.getNode().getKey());if(bt!==null&&xt!==null&&bt.tagName==="SPAN"&&xt.tagName==="SPAN"){if(gt=document.createRange(),ct.isBefore(ut)?(dt=xt,_t=ct.offset,xt=bt,bt=ut.offset):(dt=bt,_t=ut.offset,bt=ct.offset),dt=dt.firstChild,dt===null||(xt=xt.firstChild,xt===null))throw Error("Expected text node to be first child of span");gt.setStart(dt,_t),gt.setEnd(xt,bt),it(),it=F$1(j,gt,yt=>{for(let Et of yt){let St=Et.style;St.background!=="Highlight"&&(St.background="Highlight"),St.color!=="HighlightText"&&(St.color="HighlightText"),St.zIndex!=="-1"&&(St.zIndex="-1"),St.pointerEvents!=="none"&&(St.pointerEvents="none"),St.marginTop!=="-1.5px"&&(St.marginTop="-1.5px"),St.paddingTop!=="4px"&&(St.paddingTop="4px"),St.paddingBottom!=="0px"&&(St.paddingBottom="0px")}_e!==void 0&&_e(yt)})}}tt=lt,rt=ft,nt=pt,ot=mt}else ot=nt=rt=tt=null,it(),it=()=>{}})}let tt=null,rt=null,nt=null,ot=null,it=()=>{};return et(j.getEditorState()),D$1(j.registerUpdateListener(({editorState:st})=>et(st)),it,()=>{it()})};LexicalUtils_prod.mediaFileReader=function(j,_e){let et=j[Symbol.iterator]();return new Promise((tt,rt)=>{let nt=[],ot=()=>{const{done:it,value:st}=et.next();if(it)return tt(nt);const lt=new FileReader;lt.addEventListener("error",rt),lt.addEventListener("load",()=>{const ut=lt.result;typeof ut=="string"&&nt.push({file:st,result:ut}),ot()}),G$1(st,_e)?lt.readAsDataURL(st):ot()};ot()})};LexicalUtils_prod.mergeRegister=D$1;LexicalUtils_prod.objectKlassEquals=function(j,_e){return j!==null?Object.getPrototypeOf(j).constructor.name===_e.name:!1};LexicalUtils_prod.positionNodeOnRange=F$1;LexicalUtils_prod.registerNestedElementResolver=function(j,_e,et,tt){return j.registerNodeTransform(_e,rt=>{e:{for(var nt=rt.getChildren(),ot=0;ot{typeof et=="string"&&j.classList.remove(...et.split(" "))})};const LexicalUtils=LexicalUtils_prod;var LexicalUtils_1=LexicalUtils,l$3=LexicalUtils_1,m$6=Lexical_1;let n$5=new Set(["http:","https:","mailto:","sms:","tel:"]),p$5=class iv extends m$6.ElementNode{static getType(){return"link"}static clone(_e){return new iv(_e.__url,{rel:_e.__rel,target:_e.__target,title:_e.__title},_e.__key)}constructor(_e,et={},tt){super(tt);let{target:rt=null,rel:nt=null,title:ot=null}=et;this.__url=_e,this.__target=rt,this.__rel=nt,this.__title=ot}createDOM(_e){let et=document.createElement("a");return et.href=this.sanitizeUrl(this.__url),this.__target!==null&&(et.target=this.__target),this.__rel!==null&&(et.rel=this.__rel),this.__title!==null&&(et.title=this.__title),l$3.addClassNamesToElement(et,_e.theme.link),et}updateDOM(_e,et){let tt=this.__url,rt=this.__target,nt=this.__rel,ot=this.__title;return tt!==_e.__url&&(et.href=tt),rt!==_e.__target&&(rt?et.target=rt:et.removeAttribute("target")),nt!==_e.__rel&&(nt?et.rel=nt:et.removeAttribute("rel")),ot!==_e.__title&&(ot?et.title=ot:et.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:q$4,priority:1})}}static importJSON(_e){let et=r$5(_e.url,{rel:_e.rel,target:_e.target,title:_e.title});return et.setFormat(_e.format),et.setIndent(_e.indent),et.setDirection(_e.direction),et}sanitizeUrl(_e){try{let et=new URL(_e);if(!n$5.has(et.protocol))return"about:blank"}catch{}return _e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(_e){this.getWritable().__url=_e}getTarget(){return this.getLatest().__target}setTarget(_e){this.getWritable().__target=_e}getRel(){return this.getLatest().__rel}setRel(_e){this.getWritable().__rel=_e}getTitle(){return this.getLatest().__title}setTitle(_e){this.getWritable().__title=_e}insertNewAfter(_e,et=!0){return _e=r$5(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),this.insertAfter(_e,et),_e}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(_e,et){if(!m$6.$isRangeSelection(et))return!1;_e=et.anchor.getNode();let tt=et.focus.getNode();return this.isParentOf(_e)&&this.isParentOf(tt)&&0{if(nt=nt.getParent(),u$6(nt)){let ot=nt.getChildren();for(let it=0;it{var st=it.getParent();if(st!==ot&&st!==null&&(!m$6.$isElementNode(it)||it.isInline()))if(u$6(st))ot=st,st.setURL(j),et!==void 0&&st.setTarget(et),rt!==null&&ot.setRel(rt),tt!==void 0&&ot.setTitle(tt);else if(st.is(nt)||(nt=st,ot=r$5(j,{rel:rt,target:et,title:tt}),u$6(st)?it.getPreviousSibling()===null?st.insertBefore(ot):st.insertAfter(ot):it.insertBefore(ot)),u$6(it)){if(!it.is(ot)){if(ot!==null){st=it.getChildren();for(let lt=0;lt{var et=f$3.$getRoot();if(et.isEmpty()){let tt=f$3.$createParagraphNode();et.append(tt),et=m$5?document.activeElement:null,(f$3.$getSelection()!==null||et!==null&&et===j.getRootElement())&&tt.select()}},p$4);else if(_e!==null)switch(typeof _e){case"string":let et=j.parseEditorState(_e);j.setEditorState(et,p$4);break;case"object":j.setEditorState(_e,p$4);break;case"function":j.update(()=>{f$3.$getRoot().isEmpty()&&_e(j)},p$4)}}}LexicalComposer_prod.LexicalComposer=function({initialConfig:j,children:_e}){let et=g$6.useMemo(()=>{const{theme:tt,namespace:rt,editor__DEPRECATED:nt,nodes:ot,onError:it,editorState:st,html:lt}=j,ut=e.createLexicalComposerContext(null,tt);let ct=nt||null;if(ct===null){const dt=f$3.createEditor({editable:j.editable,html:lt,namespace:rt,nodes:ot,onError:ft=>it(ft,dt),theme:tt});q$3(dt,st),ct=dt}return[ct,ut]},[]);return n$4(()=>{let tt=j.editable,[rt]=et;rt.setEditable(tt!==void 0?tt:!0)},[]),g$6.createElement(e.LexicalComposerContext.Provider,{value:et},_e)};const LexicalComposer=LexicalComposer_prod;var LexicalComposer_1=LexicalComposer,LexicalContentEditable_prod={},c$5=LexicalComposerContext_1,h$4=reactExports;function n$3(){return n$3=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e{xt.setRootElement(Tt)},[xt]);return p$3(()=>(Et(xt.isEditable()),xt.registerEditableListener(Tt=>{Et(Tt)})),[xt]),h$4.createElement("div",n$3({},_t,{"aria-activedescendant":yt?j:void 0,"aria-autocomplete":yt?_e:"none","aria-controls":yt?et:void 0,"aria-describedby":tt,"aria-expanded":yt&&ft==="combobox"?!!rt:void 0,"aria-label":nt,"aria-labelledby":ot,"aria-multiline":it,"aria-owns":yt?st:void 0,"aria-readonly":yt?void 0:!0,"aria-required":lt,autoCapitalize:ut,className:ct,contentEditable:yt,"data-testid":bt,id:dt,ref:St,role:ft,spellCheck:pt,style:gt,tabIndex:mt}))};const LexicalContentEditable=LexicalContentEditable_prod;var LexicalContentEditable_1=LexicalContentEditable,h$3=reactExports;function m$4(j,_e){return m$4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(et,tt){return et.__proto__=tt,et},m$4(j,_e)}function n$2(j,_e){j.prototype=Object.create(_e.prototype),j.prototype.constructor=j,m$4(j,_e)}function r$4(j,_e){return j===void 0&&(j=[]),_e===void 0&&(_e=[]),j.length!==_e.length||j.some(function(et,tt){return!Object.is(et,_e[tt])})}var t$4={error:null},u$5=function(j){function _e(){for(var tt,rt=arguments.length,nt=Array(rt),ot=0;ot{let ut=Date.now();if(lt.has("historic"))return tt=0,et=ut,2;let ct=y$4(rt,nt,it,st,j.isComposing()),dt=(()=>{var ft=ot===null||ot.editor===j,pt=lt.has("history-push");if(!pt&&ft&<.has("history-merge"))return 0;if(rt===null)return 1;var gt=nt._selection;if(!(0{const ct=_e.current,dt=_e.redoStack,ft=_e.undoStack,pt=ct===null?null:ct.editorState;if(ct===null||ot!==pt){if(it=tt(it,ot,ct,st,lt,ut),it===1)dt.length!==0&&(_e.redoStack=[],j.dispatchCommand(x$4.CAN_REDO_COMMAND,!1)),ct!==null&&(ft.push({...ct}),j.dispatchCommand(x$4.CAN_UNDO_COMMAND,!0));else if(it===2)return;_e.current={editor:j,editorState:ot}}};let rt=c$4.mergeRegister(j.registerCommand(x$4.UNDO_COMMAND,()=>{let ot=_e.redoStack,it=_e.undoStack;if(it.length!==0){let st=_e.current,lt=it.pop();st!==null&&(ot.push(st),j.dispatchCommand(x$4.CAN_REDO_COMMAND,!0)),it.length===0&&j.dispatchCommand(x$4.CAN_UNDO_COMMAND,!1),_e.current=lt||null,lt&<.editor.setEditorState(lt.editorState,{tag:"historic"})}return!0},x$4.COMMAND_PRIORITY_EDITOR),j.registerCommand(x$4.REDO_COMMAND,()=>{let ot=_e.redoStack;var it=_e.undoStack;if(ot.length!==0){let st=_e.current;st!==null&&(it.push(st),j.dispatchCommand(x$4.CAN_UNDO_COMMAND,!0)),it=ot.pop(),ot.length===0&&j.dispatchCommand(x$4.CAN_REDO_COMMAND,!1),_e.current=it||null,it&&it.editor.setEditorState(it.editorState,{tag:"historic"})}return!0},x$4.COMMAND_PRIORITY_EDITOR),j.registerCommand(x$4.CLEAR_EDITOR_COMMAND,()=>(_e.undoStack=[],_e.redoStack=[],_e.current=null,!1),x$4.COMMAND_PRIORITY_EDITOR),j.registerCommand(x$4.CLEAR_HISTORY_COMMAND,()=>(_e.undoStack=[],_e.redoStack=[],_e.current=null,j.dispatchCommand(x$4.CAN_REDO_COMMAND,!1),j.dispatchCommand(x$4.CAN_UNDO_COMMAND,!1),!0),x$4.COMMAND_PRIORITY_EDITOR),j.registerUpdateListener(et)),nt=j.registerUpdateListener(et);return()=>{rt(),nt()}};const LexicalHistory=LexicalHistory_prod;var LexicalHistory_1=LexicalHistory,c$3=LexicalComposerContext_1,history=LexicalHistory_1,f$2=reactExports;function g$5(j,_e,et=1e3){let tt=f$2.useMemo(()=>_e||history.createEmptyHistoryState(),[_e]);f$2.useEffect(()=>history.registerHistory(j,tt,et),[et,j,tt])}LexicalHistoryPlugin_prod.createEmptyHistoryState=history.createEmptyHistoryState;LexicalHistoryPlugin_prod.HistoryPlugin=function({externalHistoryState:j}){let[_e]=c$3.useLexicalComposerContext();return g$5(_e,j),null};const LexicalHistoryPlugin=LexicalHistoryPlugin_prod;var LexicalHistoryPlugin_1=LexicalHistoryPlugin,LexicalOnChangePlugin_prod={},c$2=LexicalComposerContext_1,g$4=reactExports,h$2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?g$4.useLayoutEffect:g$4.useEffect;LexicalOnChangePlugin_prod.OnChangePlugin=function({ignoreHistoryMergeTagChange:j=!0,ignoreSelectionChange:_e=!1,onChange:et}){let[tt]=c$2.useLexicalComposerContext();return h$2(()=>{if(et)return tt.registerUpdateListener(({editorState:rt,dirtyElements:nt,dirtyLeaves:ot,prevEditorState:it,tags:st})=>{_e&&nt.size===0&&ot.size===0||j&&st.has("history-merge")||it.isEmpty()||et(rt,tt,st)})},[tt,j,_e,et]),null};const LexicalOnChangePlugin=LexicalOnChangePlugin_prod;var LexicalOnChangePlugin_1=LexicalOnChangePlugin,LexicalRichTextPlugin_prod={},b$2=LexicalComposerContext_1,k$3=reactExports,l$2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?k$3.useLayoutEffect:k$3.useEffect;function m$3(j){let[_e]=b$2.useLexicalComposerContext(),et=k$3.useMemo(()=>j(_e),[_e,j]),tt=k$3.useRef(et.initialValueFn()),[rt,nt]=k$3.useState(tt.current);return l$2(()=>{let{initialValueFn:ot,subscribe:it}=et,st=ot();return tt.current!==st&&(tt.current=st,nt(st)),it(lt=>{tt.current=lt,nt(lt)})},[et,j]),rt}function r$3(j){return{initialValueFn:()=>j.isEditable(),subscribe:_e=>j.registerEditableListener(_e)}}var useLexicalEditable_prod=function(){return m$3(r$3)};const useLexicalEditable=useLexicalEditable_prod;var useLexicalEditable_1=useLexicalEditable,LexicalText_prod={},g$3=Lexical_1;function r$2(j,_e=!0){return j?!1:(j=t$3(),_e&&(j=j.trim()),j==="")}function t$3(){return g$3.$getRoot().getTextContent()}function u$4(j){if(!r$2(j,!1))return!1;j=g$3.$getRoot().getChildren();let _e=j.length;if(1<_e)return!1;for(let tt=0;tt<_e;tt++){var et=j[tt];if(g$3.$isDecoratorNode(et))return!1;if(g$3.$isElementNode(et)){if(!g$3.$isParagraphNode(et)||et.__indent!==0)return!1;et=et.getChildren();let rt=et.length;for(let nt=0;ntu$4(j)};LexicalText_prod.$findTextIntersectionFromCharacters=function(j,_e){var et=j.getFirstChild();j=0;e:for(;et!==null;){if(g$3.$isElementNode(et)){var tt=et.getFirstChild();if(tt!==null){et=tt;continue}}else if(g$3.$isTextNode(et)){if(tt=et.getTextContentSize(),j+tt>_e)return{node:et,offset:_e-j};j+=tt}if(tt=et.getNextSibling(),tt!==null)et=tt;else{for(et=et.getParent();et!==null;){if(tt=et.getNextSibling(),tt!==null){et=tt;continue e}et=et.getParent()}break}}return null};LexicalText_prod.$isRootTextContentEmpty=r$2;LexicalText_prod.$isRootTextContentEmptyCurry=function(j,_e){return()=>r$2(j,_e)};LexicalText_prod.$rootTextContent=t$3;LexicalText_prod.registerLexicalTextEntity=function(j,_e,et,tt){let rt=ot=>{const it=g$3.$createTextNode(ot.getTextContent());it.setFormat(ot.getFormat()),ot.replace(it)},nt=j.registerNodeTransform(g$3.TextNode,ot=>{if(ot.isSimpleText()){var it=ot.getPreviousSibling(),st=ot.getTextContent(),lt=ot;if(g$3.$isTextNode(it)){var ut=it.getTextContent(),ct=_e(ut+st);if(it instanceof et){if(ct===null||it.getLatest().__mode!==0){rt(it);return}if(ct=ct.end-ut.length,0{var it=ot.getTextContent();const st=_e(it);st===null||st.start!==0?rt(ot):it.length>st.end?ot.splitText(st.end):(it=ot.getPreviousSibling(),g$3.$isTextNode(it)&&it.isTextEntity()&&(rt(it),rt(ot)),it=ot.getNextSibling(),g$3.$isTextNode(it)&&it.isTextEntity()&&(rt(it),ot instanceof et&&rt(ot)))}),[nt,j]};const LexicalText=LexicalText_prod;var LexicalText_1=LexicalText,LexicalDragon_prod={},g$2=Lexical_1;LexicalDragon_prod.registerDragonSupport=function(j){let _e=window.location.origin,et=tt=>{if(tt.origin===_e){var rt=j.getRootElement();if(document.activeElement===rt&&(rt=tt.data,typeof rt=="string")){try{var nt=JSON.parse(rt)}catch{return}if(nt&&nt.protocol==="nuanria_messaging"&&nt.type==="request"&&(nt=nt.payload)&&nt.functionId==="makeChanges"&&(nt=nt.args)){const[ot,it,st,lt,ut]=nt;j.update(()=>{const ct=g$2.$getSelection();if(g$2.$isRangeSelection(ct)){var dt=ct.anchor;let ft=dt.getNode(),pt=0,gt=0;g$2.$isTextNode(ft)&&0<=ot&&0<=it&&(pt=ot,gt=ot+it,ct.setTextNodeRange(ft,pt,ft,gt)),(pt!==gt||st!=="")&&(ct.insertRawText(st),ft=dt.getNode()),g$2.$isTextNode(ft)&&(pt=lt,gt=lt+ut,dt=ft.getTextContentSize(),pt=pt>dt?dt:pt,gt=gt>dt?dt:gt,ct.setTextNodeRange(ft,pt,ft,gt)),tt.stopImmediatePropagation()}})}}}};return window.addEventListener("message",et,!0),()=>{window.removeEventListener("message",et,!0)}};const LexicalDragon=LexicalDragon_prod;var LexicalDragon_1=LexicalDragon,LexicalRichText_prod={},LexicalClipboard_prod={},LexicalHtml_prod={},m$2=LexicalSelection_1,p$2=LexicalUtils_1,q$2=Lexical_1;function u$3(j,_e,et,tt=null){let rt=tt!==null?_e.isSelected(tt):!0,nt=q$2.$isElementNode(_e)&&_e.excludeFromCopy("html");var ot=_e;tt!==null&&(ot=m$2.$cloneWithProperties(_e),ot=q$2.$isTextNode(ot)&&tt!==null?m$2.$sliceSelectedTextNodeContent(tt,ot):ot);let it=q$2.$isElementNode(ot)?ot.getChildren():[];var st=j._nodes.get(ot.getType());st=st&&st.exportDOM!==void 0?st.exportDOM(j,ot):ot.exportDOM(j);let{element:lt,after:ut}=st;if(!lt)return!1;st=document.createDocumentFragment();for(let ct=0;ct"u"||typeof window>"u"&&typeof commonjsGlobal.window>"u")throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let et=document.createElement("div"),tt=q$2.$getRoot().getChildren();for(let rt=0;rt{j.update(()=>{ot(C$2(j,_e))})});var et=j.getRootElement();let tt=j._window==null?window.document:j._window.document,rt=u$2?(j._window||window).getSelection():null;if(et===null||rt===null)return!1;let nt=tt.createElement("span");return nt.style.cssText="position: fixed; top: -1000px;",nt.append(tt.createTextNode("#")),et.append(nt),et=new Range,et.setStart(nt,0),et.setEnd(nt,1),rt.removeAllRanges(),rt.addRange(et),new Promise(ot=>{let it=j.registerCommand(r$1.COPY_COMMAND,st=>(q$1.objectKlassEquals(st,ClipboardEvent)&&(it(),B$2!==null&&(window.clearTimeout(B$2),B$2=null),ot(C$2(j,st))),!0),r$1.COMMAND_PRIORITY_CRITICAL);B$2=window.setTimeout(()=>{it(),B$2=null,ot(!1)},50),tt.execCommand("copy"),nt.remove()})};const LexicalClipboard=LexicalClipboard_prod;var LexicalClipboard_1=LexicalClipboard,c$1=LexicalClipboard_1,g$1=LexicalSelection_1,h$1=LexicalUtils_1,k$2=Lexical_1;function l$1(j,_e){return typeof document.caretRangeFromPoint<"u"?(j=document.caretRangeFromPoint(j,_e),j===null?null:{node:j.startContainer,offset:j.startOffset}):document.caretPositionFromPoint!=="undefined"?(j=document.caretPositionFromPoint(j,_e),j===null?null:{node:j.offsetNode,offset:j.offset}):null}let n$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",p$1=n$1&&"documentMode"in document?document.documentMode:null,q=n$1&&"InputEvent"in window&&!p$1?"getTargetRanges"in new window.InputEvent("input"):!1,r=n$1&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),t$1=n$1&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,u$1=n$1&&/^(?=.*Chrome).*/i.test(navigator.userAgent),v$1=n$1&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!u$1,w$1=k$2.createCommand("DRAG_DROP_PASTE_FILE"),x$2=class sv extends k$2.ElementNode{static getType(){return"quote"}static clone(_e){return new sv(_e.__key)}constructor(_e){super(_e)}createDOM(_e){let et=document.createElement("blockquote");return h$1.addClassNamesToElement(et,_e.theme.quote),et}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:y$2,priority:0})}}exportDOM(_e){if({element:_e}=super.exportDOM(_e),_e&&h$1.isHTMLElement(_e)){this.isEmpty()&&_e.append(document.createElement("br"));var et=this.getFormatType();_e.style.textAlign=et,(et=this.getDirection())&&(_e.dir=et)}return{element:_e}}static importJSON(_e){let et=z();return et.setFormat(_e.format),et.setIndent(_e.indent),et.setDirection(_e.direction),et}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(_e,et){_e=k$2.$createParagraphNode();let tt=this.getDirection();return _e.setDirection(tt),this.insertAfter(_e,et),_e}collapseAtStart(){let _e=k$2.$createParagraphNode();return this.getChildren().forEach(et=>_e.append(et)),this.replace(_e),!0}};function z(){return k$2.$applyNodeReplacement(new x$2)}let B$1=class lv extends k$2.ElementNode{static getType(){return"heading"}static clone(_e){return new lv(_e.__tag,_e.__key)}constructor(_e,et){super(et),this.__tag=_e}getTag(){return this.__tag}createDOM(_e){let et=this.__tag,tt=document.createElement(et);return _e=_e.theme.heading,_e!==void 0&&h$1.addClassNamesToElement(tt,_e[et]),tt}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:C$1,priority:0}),h2:()=>({conversion:C$1,priority:0}),h3:()=>({conversion:C$1,priority:0}),h4:()=>({conversion:C$1,priority:0}),h5:()=>({conversion:C$1,priority:0}),h6:()=>({conversion:C$1,priority:0}),p:_e=>(_e=_e.firstChild,_e!==null&&D(_e)?{conversion:()=>({node:null}),priority:3}:null),span:_e=>D(_e)?{conversion:()=>({node:E("h1")}),priority:3}:null}}exportDOM(_e){if({element:_e}=super.exportDOM(_e),_e&&h$1.isHTMLElement(_e)){this.isEmpty()&&_e.append(document.createElement("br"));var et=this.getFormatType();_e.style.textAlign=et,(et=this.getDirection())&&(_e.dir=et)}return{element:_e}}static importJSON(_e){let et=E(_e.tag);return et.setFormat(_e.format),et.setIndent(_e.indent),et.setDirection(_e.direction),et}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(_e,et=!0){let tt=_e?_e.anchor.offset:0,rt=tt!==this.getTextContentSize()&&_e?E(this.getTag()):k$2.$createParagraphNode(),nt=this.getDirection();return rt.setDirection(nt),this.insertAfter(rt,et),tt===0&&!this.isEmpty()&&_e&&(_e=k$2.$createParagraphNode(),_e.select(),this.replace(_e,!0)),rt}collapseAtStart(){let _e=this.isEmpty()?k$2.$createParagraphNode():E(this.getTag());return this.getChildren().forEach(et=>_e.append(et)),this.replace(_e),!0}extractWithChild(){return!0}};function D(j){return j.nodeName.toLowerCase()==="span"?j.style.fontSize==="26pt":!1}function C$1(j){let _e=j.nodeName.toLowerCase(),et=null;return(_e==="h1"||_e==="h2"||_e==="h3"||_e==="h4"||_e==="h5"||_e==="h6")&&(et=E(_e),j.style!==null&&et.setFormat(j.style.textAlign)),{node:et}}function y$2(j){let _e=z();return j.style!==null&&_e.setFormat(j.style.textAlign),{node:_e}}function E(j){return k$2.$applyNodeReplacement(new B$1(j))}function F(j,_e){j.preventDefault(),_e.update(()=>{let et=k$2.$getSelection(),tt=j instanceof InputEvent||j instanceof KeyboardEvent?null:j.clipboardData;tt!=null&&et!==null&&c$1.$insertDataTransferForRichText(tt,et,_e)},{tag:"paste"})}async function G(j,_e){await c$1.copyToClipboard(_e,h$1.objectKlassEquals(j,ClipboardEvent)?j:null),_e.update(()=>{let et=k$2.$getSelection();k$2.$isRangeSelection(et)?et.removeText():k$2.$isNodeSelection(et)&&et.getNodes().forEach(tt=>tt.remove())})}function H(j){let _e=null;if(j instanceof DragEvent?_e=j.dataTransfer:j instanceof ClipboardEvent&&(_e=j.clipboardData),_e===null)return[!1,[],!1];var et=_e.types;return j=et.includes("Files"),et=et.includes("text/html")||et.includes("text/plain"),[j,Array.from(_e.files),et]}function I(j){var _e=k$2.$getSelection();if(!k$2.$isRangeSelection(_e))return!1;let et=new Set;_e=_e.getNodes();for(let nt=0;nt<_e.length;nt++){var tt=_e[nt],rt=tt.getKey();et.has(rt)||(tt=h$1.$getNearestBlockElementAncestorOrThrow(tt),rt=tt.getKey(),tt.canIndent()&&!et.has(rt)&&(et.add(rt),j(tt)))}return 0{const _e=k$2.$getSelection();return k$2.$isNodeSelection(_e)?(_e.clear(),!0):!1},0),j.registerCommand(k$2.DELETE_CHARACTER_COMMAND,_e=>{const et=k$2.$getSelection();return k$2.$isRangeSelection(et)?(et.deleteCharacter(_e),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.DELETE_WORD_COMMAND,_e=>{const et=k$2.$getSelection();return k$2.$isRangeSelection(et)?(et.deleteWord(_e),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.DELETE_LINE_COMMAND,_e=>{const et=k$2.$getSelection();return k$2.$isRangeSelection(et)?(et.deleteLine(_e),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.CONTROLLED_TEXT_INSERTION_COMMAND,_e=>{const et=k$2.$getSelection();if(typeof _e=="string")et!==null&&et.insertText(_e);else{if(et===null)return!1;const tt=_e.dataTransfer;tt!=null?c$1.$insertDataTransferForRichText(tt,et,j):k$2.$isRangeSelection(et)&&(_e=_e.data)&&et.insertText(_e)}return!0},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.REMOVE_TEXT_COMMAND,()=>{const _e=k$2.$getSelection();return k$2.$isRangeSelection(_e)?(_e.removeText(),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.FORMAT_TEXT_COMMAND,_e=>{const et=k$2.$getSelection();return k$2.$isRangeSelection(et)?(et.formatText(_e),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.FORMAT_ELEMENT_COMMAND,_e=>{var et=k$2.$getSelection();if(!k$2.$isRangeSelection(et)&&!k$2.$isNodeSelection(et))return!1;et=et.getNodes();for(const tt of et)et=h$1.$findMatchingParent(tt,rt=>k$2.$isElementNode(rt)&&!rt.isInline()),et!==null&&et.setFormat(_e);return!0},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.INSERT_LINE_BREAK_COMMAND,_e=>{const et=k$2.$getSelection();return k$2.$isRangeSelection(et)?(et.insertLineBreak(_e),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.INSERT_PARAGRAPH_COMMAND,()=>{const _e=k$2.$getSelection();return k$2.$isRangeSelection(_e)?(_e.insertParagraph(),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.INSERT_TAB_COMMAND,()=>(k$2.$insertNodes([k$2.$createTabNode()]),!0),k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.INDENT_CONTENT_COMMAND,()=>I(_e=>{const et=_e.getIndent();_e.setIndent(et+1)}),k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.OUTDENT_CONTENT_COMMAND,()=>I(_e=>{const et=_e.getIndent();0{var et=k$2.$getSelection();if(k$2.$isNodeSelection(et)&&!J(_e.target)){if(_e=et.getNodes(),0<_e.length)return _e[0].selectPrevious(),!0}else if(k$2.$isRangeSelection(et)&&(et=k$2.$getAdjacentNode(et.focus,!0),!_e.shiftKey&&k$2.$isDecoratorNode(et)&&!et.isIsolated()&&!et.isInline()))return et.selectPrevious(),_e.preventDefault(),!0;return!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.KEY_ARROW_DOWN_COMMAND,_e=>{var et=k$2.$getSelection();if(k$2.$isNodeSelection(et)){if(_e=et.getNodes(),0<_e.length)return _e[0].selectNext(0,0),!0}else if(k$2.$isRangeSelection(et)){let tt=et.focus;if(tt.key==="root"&&tt.offset===k$2.$getRoot().getChildrenSize())return _e.preventDefault(),!0;if(et=k$2.$getAdjacentNode(et.focus,!1),!_e.shiftKey&&k$2.$isDecoratorNode(et)&&!et.isIsolated()&&!et.isInline())return et.selectNext(),_e.preventDefault(),!0}return!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.KEY_ARROW_LEFT_COMMAND,_e=>{const et=k$2.$getSelection();if(k$2.$isNodeSelection(et)){var tt=et.getNodes();if(0{const et=k$2.$getSelection();if(k$2.$isNodeSelection(et)&&!J(_e.target)){var tt=et.getNodes();if(0{if(J(_e.target))return!1;const et=k$2.$getSelection();if(!k$2.$isRangeSelection(et))return!1;_e.preventDefault(),{anchor:_e}=et;const tt=_e.getNode();return et.isCollapsed()&&_e.offset===0&&!k$2.$isRootNode(tt)&&0{if(J(_e.target))return!1;const et=k$2.$getSelection();return k$2.$isRangeSelection(et)?(_e.preventDefault(),j.dispatchCommand(k$2.DELETE_CHARACTER_COMMAND,!1)):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.KEY_ENTER_COMMAND,_e=>{const et=k$2.$getSelection();if(!k$2.$isRangeSelection(et))return!1;if(_e!==null){if((t$1||r||v$1)&&q)return!1;if(_e.preventDefault(),_e.shiftKey)return j.dispatchCommand(k$2.INSERT_LINE_BREAK_COMMAND,!1)}return j.dispatchCommand(k$2.INSERT_PARAGRAPH_COMMAND,void 0)},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.KEY_ESCAPE_COMMAND,()=>{const _e=k$2.$getSelection();return k$2.$isRangeSelection(_e)?(j.blur(),!0):!1},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.DROP_COMMAND,_e=>{const[,et]=H(_e);if(0{[_e]=H(_e);const et=k$2.$getSelection();return!(_e&&!k$2.$isRangeSelection(et))},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.DRAGOVER_COMMAND,_e=>{var[et]=H(_e);const tt=k$2.$getSelection();return et&&!k$2.$isRangeSelection(tt)?!1:(et=l$1(_e.clientX,_e.clientY),et!==null&&(et=k$2.$getNearestNodeFromDOMNode(et.node),k$2.$isDecoratorNode(et)&&_e.preventDefault()),!0)},k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.SELECT_ALL_COMMAND,()=>(k$2.$selectAll(),!0),k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.COPY_COMMAND,_e=>(c$1.copyToClipboard(j,h$1.objectKlassEquals(_e,ClipboardEvent)?_e:null),!0),k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.CUT_COMMAND,_e=>(G(_e,j),!0),k$2.COMMAND_PRIORITY_EDITOR),j.registerCommand(k$2.PASTE_COMMAND,_e=>{const[,et,tt]=H(_e);return 0w(j));return v(()=>{function tt(){let rt=w(j);et(rt)}return tt(),n.mergeRegister(j.registerUpdateListener(()=>{tt()}),j.registerEditableListener(()=>{tt()}))},[j]),_e}function y$1(j,_e){let[et,tt]=l.useState(()=>j.getDecorators());return v(()=>j.registerDecoratorListener(rt=>{p.flushSync(()=>{tt(rt)})}),[j]),l.useEffect(()=>{tt(j.getDecorators())},[j]),l.useMemo(()=>{let rt=[],nt=Object.keys(et);for(let ot=0;otj._onError(ut)},l.createElement(l.Suspense,{fallback:null},et[it])),lt=j.getElementByKey(it);lt!==null&&rt.push(p.createPortal(st,lt,it))}return rt},[_e,et,j])}function B(j){v(()=>n.mergeRegister(u.registerRichText(j),t.registerDragonSupport(j)),[j])}function C({content:j}){var[_e]=b$1.useLexicalComposerContext();_e=x$1(_e);let et=g();return _e?typeof j=="function"?j(et):j:null}LexicalRichTextPlugin_prod.RichTextPlugin=function({contentEditable:j,placeholder:_e,ErrorBoundary:et}){let[tt]=b$1.useLexicalComposerContext();return et=y$1(tt,et),B(tt),l.createElement(l.Fragment,null,j,l.createElement(C,{content:_e}),et)};const LexicalRichTextPlugin=LexicalRichTextPlugin_prod;var LexicalRichTextPlugin_1=LexicalRichTextPlugin,RichEditorContentType=(j=>(j.IMAGE="image",j.TEXT="text",j))(RichEditorContentType||{});const FAKE_PROTOCOL="fake:",CAN_USE_DOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var useLexicalNodeSelection_prod={},b=LexicalComposerContext_1,f=Lexical_1,h=reactExports;function k$1(j,_e){return j.getEditorState().read(()=>{let et=f.$getNodeByKey(_e);return et===null?!1:et.isSelected()})}useLexicalNodeSelection_prod.useLexicalNodeSelection=function(j){let[_e]=b.useLexicalComposerContext(),[et,tt]=h.useState(()=>k$1(_e,j));h.useEffect(()=>{let ot=!0,it=_e.registerUpdateListener(()=>{ot&&tt(k$1(_e,j))});return()=>{ot=!1,it()}},[_e,j]);let rt=h.useCallback(ot=>{_e.update(()=>{let it=f.$getSelection();f.$isNodeSelection(it)||(it=f.$createNodeSelection(),f.$setSelection(it)),f.$isNodeSelection(it)&&(ot?it.add(j):it.delete(j))})},[_e,j]),nt=h.useCallback(()=>{_e.update(()=>{const ot=f.$getSelection();f.$isNodeSelection(ot)&&ot.clear()})},[_e]);return[et,rt,nt]};const useLexicalNodeSelection=useLexicalNodeSelection_prod;var useLexicalNodeSelection_1=useLexicalNodeSelection;function useEventCallback(j){const _e=reactExports.useRef(j);return reactExports.useLayoutEffect(()=>{_e.current=j}),reactExports.useCallback((...et)=>{const tt=_e.current;return tt(...et)},[])}const INSERT_IMAGE_COMMAND=Lexical_1.createCommand("INSERT_IMAGE_COMMAND"),INSERT_MULTIPLE_NODES_COMMAND=Lexical_1.createCommand("INSERT_MULTIPLE_NODES_COMMAND"),RIGHT_CLICK_IMAGE_COMMAND=Lexical_1.createCommand("RIGHT_CLICK_IMAGE_COMMAND");class RichEditorViewModel extends ViewModel{constructor(_e){super(),this.editor$=new State(void 0),this.maxHeight$=new State(void 0),this.resolveUrlByPath$=new State(void 0),this.resolveUrlByFile$=new State(void 0),this._resetEditorState=_e.resetEditorState,this._replaceImageSrc=_e.replaceImageSrc,this._extractEditorData=_e.extractEditorData}get requiredEditor(){const _e=this.editor$.getSnapshot();if(!_e)throw new Error("[RichEditor] editor is not prepared.");return _e}focus(){this.requiredEditor.focus()}getContent(){const et=this.requiredEditor.getEditorState();return this._extractEditorData(et)}insert(_e){this.requiredEditor.dispatchCommand(INSERT_MULTIPLE_NODES_COMMAND,{nodes:_e})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const rt=Lexical_1.$getRoot(),nt=rt.getFirstChild();return nt?rt.getChildrenSize()===1&&nt instanceof Lexical_1.ElementNode?nt.isEmpty():!1:!0})}replaceImageSrc(_e,et){const tt=this.editor$.getSnapshot();if(!tt)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(tt,_e,et)}reset(_e){const et=this.requiredEditor;this._resetEditorState(_e)(et)}async resolveUrlByFile(_e){const et=this.resolveUrlByFile$.getSnapshot();return et?et(_e):""}async resolveUrlByPath(_e){if(_e.startsWith(FAKE_PROTOCOL))return _e;const et=this.resolveUrlByPath$.getSnapshot();return(et==null?void 0:et(_e))??_e}}const RichEditorContextType=reactExports.createContext({viewmodel:new RichEditorViewModel({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),useRichEditorContext=()=>{const j=reactExports.useContext(RichEditorContextType),_e=reactExports.useContext(LexicalComposerContext_1.LexicalComposerContext),et=(_e==null?void 0:_e[0])??void 0;return et&&j.viewmodel.editor$.next(et),j},useAutoResize=()=>{const[j]=LexicalComposerContext_1.useLexicalComposerContext(),{viewmodel:_e}=useRichEditorContext(),et=useStateValue(_e.maxHeight$);return useEventCallback(()=>{if(et===void 0)return;const rt=j==null?void 0:j.getRootElement();if(rt){rt.style.height="24px";const nt=Math.min(et,rt.scrollHeight);rt.style.height=`${nt}px`}})},imageCache=new Set;function useSuspenseImage(j){imageCache.has(j)||new Promise(_e=>{const et=new Image;et.src=j,et.onload=()=>{imageCache.add(j),_e(null)}})}function LazyImage({alt:j,className:_e,imageRef:et,src:tt,width:rt,height:nt,maxWidth:ot,onLoad:it}){return useSuspenseImage(tt),jsxRuntimeExports.jsx("img",{className:_e||void 0,src:tt,alt:j,ref:et,style:{height:nt,maxWidth:ot,width:rt,border:"1px solid #E5E5E5"},draggable:!1,onLoad:it})}const ImageComponent=j=>{const{viewmodel:_e}=useRichEditorContext(),et=useAutoResize(),{src:tt,alt:rt,nodeKey:nt,width:ot,height:it,maxWidth:st,isImageNode:lt}=j,[ut,ct]=reactExports.useState(tt),dt=reactExports.useRef(null),ft=reactExports.useRef(null),[pt,gt,mt]=useLexicalNodeSelection_1.useLexicalNodeSelection(nt),[bt]=LexicalComposerContext_1.useLexicalComposerContext(),[_t,xt]=reactExports.useState(null),yt=reactExports.useRef(null),Et=reactExports.useCallback(Mt=>{if(pt&&Lexical_1.$isNodeSelection(Lexical_1.$getSelection())){Mt.preventDefault();const Lt=Lexical_1.$getNodeByKey(nt);lt(Lt)&&Lt.remove()}return!1},[pt,nt,lt]),St=reactExports.useCallback(Mt=>{const Rt=Lexical_1.$getSelection(),Lt=ft.current;return pt&&Lexical_1.$isNodeSelection(Rt)&&Rt.getNodes().length===1&&Lt!==null&&Lt!==document.activeElement?(Mt.preventDefault(),Lt.focus(),!0):!1},[pt]),Tt=reactExports.useCallback(Mt=>Mt.target===dt.current?(Mt.preventDefault(),!0):!1,[]),kt=reactExports.useCallback(Mt=>ft.current===Mt.target?(Lexical_1.$setSelection(null),bt.update(()=>{gt(!0);const Rt=bt.getRootElement();Rt!==null&&Rt.focus()}),!0):!1,[bt,gt]),$t=reactExports.useCallback(Mt=>{const Rt=Mt;return Rt.target===dt.current?(Rt.shiftKey?gt(!pt):(mt(),gt(!0)),!0):!1},[pt,gt,mt]),Ct=reactExports.useCallback(Mt=>{bt.getEditorState().read(()=>{const Rt=Lexical_1.$getSelection();Mt.target.tagName==="IMG"&&Lexical_1.$isRangeSelection(Rt)&&Rt.getNodes().length===1&&bt.dispatchCommand(RIGHT_CLICK_IMAGE_COMMAND,Mt)})},[bt]);reactExports.useEffect(()=>{let Mt=!1;return _e.resolveUrlByPath(tt).then(Rt=>{Mt||ct(Rt)}),()=>{Mt=!0}},[_e,tt]),reactExports.useEffect(()=>{let Mt=!0;const Rt=bt.getRootElement(),Lt=LexicalUtils_1.mergeRegister(bt.registerUpdateListener(({editorState:Pt})=>{Mt&&xt(Pt.read(Lexical_1.$getSelection))}),bt.registerCommand(Lexical_1.SELECTION_CHANGE_COMMAND,(Pt,Gt)=>(yt.current=Gt,!1),Lexical_1.COMMAND_PRIORITY_LOW),bt.registerCommand(Lexical_1.CLICK_COMMAND,$t,Lexical_1.COMMAND_PRIORITY_LOW),bt.registerCommand(RIGHT_CLICK_IMAGE_COMMAND,$t,Lexical_1.COMMAND_PRIORITY_LOW),bt.registerCommand(Lexical_1.DRAGSTART_COMMAND,Tt,Lexical_1.COMMAND_PRIORITY_LOW),bt.registerCommand(Lexical_1.KEY_DELETE_COMMAND,Et,Lexical_1.COMMAND_PRIORITY_LOW),bt.registerCommand(Lexical_1.KEY_BACKSPACE_COMMAND,Et,Lexical_1.COMMAND_PRIORITY_LOW),bt.registerCommand(Lexical_1.KEY_ENTER_COMMAND,St,Lexical_1.COMMAND_PRIORITY_LOW),bt.registerCommand(Lexical_1.KEY_ESCAPE_COMMAND,kt,Lexical_1.COMMAND_PRIORITY_LOW));return Rt==null||Rt.addEventListener("contextmenu",Ct),()=>{Mt=!1,Lt(),Rt==null||Rt.removeEventListener("contextmenu",Ct)}},[bt,pt,nt,mt,Et,Tt,St,kt,$t,Ct,gt]);const It=pt&&Lexical_1.$isNodeSelection(_t),Ot=pt?`focused ${Lexical_1.$isNodeSelection(_t)?"draggable":""}`:void 0,jt=(ut.startsWith(FAKE_PROTOCOL)?ut.slice(FAKE_PROTOCOL.length):ut).replace(/#[\s\S]*$/,"");return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx("div",{draggable:It,children:jsxRuntimeExports.jsx(LazyImage,{className:Ot,src:jt,alt:rt,imageRef:dt,width:ot,height:it,maxWidth:st,onLoad:et})})})};class ImageNode extends Lexical_1.DecoratorNode{constructor(_e,et,tt,rt,nt,ot){super(ot),this.src=_e,this.alt=et,this.maxWidth=tt,this.width=rt||"inherit",this.height=nt||"inherit"}static getType(){return RichEditorContentType.IMAGE}static clone(_e){return new ImageNode(_e.src,_e.alt,_e.maxWidth,_e.width,_e.height,_e.__key)}static importDOM(){return{img:_e=>({conversion:convertImageElement,priority:0})}}static importJSON(_e){const{alt:et,height:tt,width:rt,maxWidth:nt,src:ot}=_e;return $createImageNode({alt:et,height:tt,maxWidth:nt,src:ot,width:rt})}exportDOM(){const _e=document.createElement("img");return _e.setAttribute("src",this.src),_e.setAttribute("alt",this.alt),_e.setAttribute("width",this.width.toString()),_e.setAttribute("height",this.height.toString()),{element:_e}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:RichEditorContentType.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(_e,et){const tt=this.getWritable();tt.width=_e,tt.height=et}createDOM(_e){const et=document.createElement("span"),rt=_e.theme.image;return rt!==void 0&&(et.className=rt),et}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(ImageComponent,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:$isImageNode})})}}function $createImageNode({alt:j,height:_e,maxWidth:et=240,src:tt,width:rt,key:nt}){return Lexical_1.$applyNodeReplacement(new ImageNode(tt,j,et,rt,_e,nt))}function $isImageNode(j){return j instanceof ImageNode}function convertImageElement(j){if(j instanceof HTMLImageElement){const{alt:_e,src:et,width:tt,height:rt}=j;return et.startsWith("blob:")?null:{node:$createImageNode({alt:_e,height:rt,src:et,width:tt})}}return null}const CommandPlugin=()=>{const[j]=LexicalComposerContext_1.useLexicalComposerContext();return React.useLayoutEffect(()=>LexicalUtils_1.mergeRegister(j.registerCommand(INSERT_MULTIPLE_NODES_COMMAND,_e=>{const{nodes:et}=_e;if(et.length===1&&et[0].type===RichEditorContentType.TEXT){const nt=et[0];return j.update(()=>{const ot=Lexical_1.$getSelection();ot&&ot.insertRawText(nt.value)}),!0}let tt;const rt=[];for(const nt of et)switch(nt.type){case RichEditorContentType.TEXT:{const ot=Lexical_1.$createTextNode(nt.value),it=Lexical_1.$createParagraphNode();tt=ot,it.append(ot),rt.push(it);break}case RichEditorContentType.IMAGE:{const ot=$createImageNode(nt),it=Lexical_1.$createParagraphNode();tt=ot,it.append(ot),rt.push(it);break}}return rt.length<=0||(Lexical_1.$insertNodes(rt),tt&&Lexical_1.$isRootOrShadowRoot(tt.getParentOrThrow())&&tt.selectEnd()),!0},Lexical_1.COMMAND_PRIORITY_EDITOR)),[j]),jsxRuntimeExports.jsx(React.Fragment,{})},ACCEPTABLE_IMAGE_TYPES=["image/","image/heic","image/heif","image/gif","image/webp"],DragDropPastePlugin=()=>{const[j]=LexicalComposerContext_1.useLexicalComposerContext(),{viewmodel:_e}=useRichEditorContext();return reactExports.useLayoutEffect(()=>j.registerCommand(LexicalRichText_1.DRAG_DROP_PASTE,et=>{return tt(),!0;async function tt(){for(const rt of et)if(LexicalUtils_1.isMimeType(rt,ACCEPTABLE_IMAGE_TYPES)){const nt=rt.name,ot=await _e.resolveUrlByFile(rt);j.dispatchCommand(INSERT_IMAGE_COMMAND,{alt:nt,src:ot})}}},Lexical_1.COMMAND_PRIORITY_LOW),[j,_e]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};class Point{constructor(_e,et){this._x=_e,this._y=et}get x(){return this._x}get y(){return this._y}equals(_e){return this.x===_e.x&&this.y===_e.y}calcDeltaXTo(_e){return this.x-_e.x}calcDeltaYTo(_e){return this.y-_e.y}calcHorizontalDistanceTo(_e){return Math.abs(this.calcDeltaXTo(_e))}calcVerticalDistance(_e){return Math.abs(this.calcDeltaYTo(_e))}calcDistanceTo(_e){const et=this.calcDeltaXTo(_e)**2,tt=this.calcDeltaYTo(_e)**2;return Math.sqrt(et+tt)}}function isPoint(j){return j instanceof Point}class Rect{constructor(_e,et,tt,rt){const[nt,ot]=et<=rt?[et,rt]:[rt,et],[it,st]=_e<=tt?[_e,tt]:[tt,_e];this._top=nt,this._right=st,this._left=it,this._bottom=ot}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(_e,et,tt,rt){return new Rect(_e,et,tt,rt)}static fromLWTH(_e,et,tt,rt){return new Rect(_e,tt,_e+et,tt+rt)}static fromPoints(_e,et){const{y:tt,x:rt}=_e,{y:nt,x:ot}=et;return Rect.fromLTRB(rt,tt,ot,nt)}static fromDOM(_e){const{top:et,width:tt,left:rt,height:nt}=_e.getBoundingClientRect();return Rect.fromLWTH(rt,tt,et,nt)}equals(_e){return _e.top===this._top&&_e.bottom===this._bottom&&_e.left===this._left&&_e.right===this._right}contains(_e){if(isPoint(_e)){const{x:et,y:tt}=_e,rt=ttthis._bottom,ot=etthis._right;return{reason:{isOnBottomSide:nt,isOnLeftSide:ot,isOnRightSide:it,isOnTopSide:rt},result:!rt&&!nt&&!ot&&!it}}else{const{top:et,left:tt,bottom:rt,right:nt}=_e;return et>=this._top&&et<=this._bottom&&rt>=this._top&&rt<=this._bottom&&tt>=this._left&&tt<=this._right&&nt>=this._left&&nt<=this._right}}intersectsWith(_e){const{left:et,top:tt,width:rt,height:nt}=_e,{left:ot,top:it,width:st,height:lt}=this,ut=et+rt>=ot+st?et+rt:ot+st,ct=tt+nt>=it+lt?tt+nt:it+lt,dt=et<=ot?et:ot,ft=tt<=it?tt:it;return ut-dt<=rt+st&&ct-ft<=nt+lt}generateNewRect({left:_e=this.left,top:et=this.top,right:tt=this.right,bottom:rt=this.bottom}){return new Rect(_e,et,tt,rt)}}const SPACE=4,TARGET_LINE_HALF_HEIGHT=2,DRAGGABLE_BLOCK_MENU_CLASSNAME="draggable-block-menu",DRAG_DATA_FORMAT="application/x-lexical-drag-block",TEXT_BOX_HORIZONTAL_PADDING=28,Downward=1,Upward=-1,Indeterminate=0,DraggableBlockPlugin=j=>{const{anchorElem:_e=document.body}=j,[et]=LexicalComposerContext_1.useLexicalComposerContext();return useDraggableBlockMenu(et,_e,et._editable)};let prevIndex=1/0;function getCurrentIndex(j){return j===0?1/0:prevIndex>=0&&prevIndexLexical_1.$getRoot().getChildrenKeys())}function getCollapsedMargins(j){const _e=(st,lt)=>st?parseFloat(window.getComputedStyle(st)[lt]):0,{marginTop:et,marginBottom:tt}=window.getComputedStyle(j),rt=_e(j.previousElementSibling,"marginBottom"),nt=_e(j.nextElementSibling,"marginTop"),ot=Math.max(parseFloat(et),rt);return{marginBottom:Math.max(parseFloat(tt),nt),marginTop:ot}}function getBlockElement(j,_e,et,tt=!1){const rt=j.getBoundingClientRect(),nt=getTopLevelNodeKeys(_e);let ot=null;return _e.getEditorState().read(()=>{if(tt){const lt=_e.getElementByKey(nt[0]),ut=_e.getElementByKey(nt[nt.length-1]),ct=lt==null?void 0:lt.getBoundingClientRect(),dt=ut==null?void 0:ut.getBoundingClientRect();if(ct&&dt&&(et.ydt.bottom&&(ot=ut),ot))return}let it=getCurrentIndex(nt.length),st=Indeterminate;for(;it>=0&&it{tt.transform=et})}function setTargetLine(j,_e,et,tt){const{top:rt,height:nt}=_e.getBoundingClientRect(),{top:ot,width:it}=tt.getBoundingClientRect(),{marginTop:st,marginBottom:lt}=getCollapsedMargins(_e);let ut=rt;et>=rt?ut+=nt+lt/2:ut-=st/2;const ct=ut-ot-TARGET_LINE_HALF_HEIGHT,dt=TEXT_BOX_HORIZONTAL_PADDING-SPACE,ft=j.style;ft.transform=`translate(${dt}px, ${ct}px)`,ft.width=`${it-(TEXT_BOX_HORIZONTAL_PADDING-SPACE)*2}px`,ft.opacity=".4"}function hideTargetLine(j){const _e=j==null?void 0:j.style;_e&&(_e.opacity="0",_e.transform="translate(-10000px, -10000px)")}function useDraggableBlockMenu(j,_e,et){const tt=_e.parentElement,rt=reactExports.useRef(null),nt=reactExports.useRef(null),ot=reactExports.useRef(!1),[it,st]=reactExports.useState(null);reactExports.useLayoutEffect(()=>{function ct(ft){const pt=ft.target;if(!isHTMLElement(pt)){st(null);return}if(isOnMenu(pt))return;const gt=getBlockElement(_e,j,ft);st(gt)}function dt(){st(null)}return tt==null||tt.addEventListener("mousemove",ct),tt==null||tt.addEventListener("mouseleave",dt),()=>{tt==null||tt.removeEventListener("mousemove",ct),tt==null||tt.removeEventListener("mouseleave",dt)}},[tt,_e,j]),reactExports.useEffect(()=>{rt.current&&setMenuPosition(it,rt.current,_e)},[_e,it]),reactExports.useEffect(()=>{function ct(ft){if(!ot.current)return!1;const[pt]=LexicalRichText_1.eventFiles(ft);if(pt)return!1;const{pageY:gt,target:mt}=ft;if(!isHTMLElement(mt))return!1;const bt=getBlockElement(_e,j,ft,!0),_t=nt.current;return bt===null||_t===null?!1:(setTargetLine(_t,bt,gt,_e),ft.preventDefault(),!0)}function dt(ft){if(!ot.current)return!1;const[pt]=LexicalRichText_1.eventFiles(ft);if(pt)return!1;const{target:gt,dataTransfer:mt,pageY:bt}=ft,_t=(mt==null?void 0:mt.getData(DRAG_DATA_FORMAT))||"",xt=Lexical_1.$getNodeByKey(_t);if(!xt||!isHTMLElement(gt))return!1;const yt=getBlockElement(_e,j,ft,!0);if(!yt)return!1;const Et=Lexical_1.$getNearestNodeFromDOMNode(yt);if(!Et)return!1;if(Et===xt)return!0;const St=yt.getBoundingClientRect().top;return bt>=St?Et.insertAfter(xt):Et.insertBefore(xt),st(null),!0}return LexicalUtils_1.mergeRegister(j.registerCommand(Lexical_1.DRAGOVER_COMMAND,ft=>ct(ft),Lexical_1.COMMAND_PRIORITY_LOW),j.registerCommand(Lexical_1.DROP_COMMAND,ft=>dt(ft),Lexical_1.COMMAND_PRIORITY_HIGH))},[_e,j]);const lt=ct=>{const dt=ct.dataTransfer;if(!dt||!it)return;setDragImage(dt,it);let ft="";j.update(()=>{const pt=Lexical_1.$getNearestNodeFromDOMNode(it);pt&&(ft=pt.getKey())}),ot.current=!0,dt.setData(DRAG_DATA_FORMAT,ft)},ut=()=>{ot.current=!1,hideTargetLine(nt.current)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:rt,draggable:!0,onDragStart:lt,onDragEnd:ut,children:jsxRuntimeExports.jsx("div",{className:et?"icon":""})}),jsxRuntimeExports.jsx("div",{className:"draggable-block-target-line",ref:nt})]}),_e)}const EditablePlugin=j=>{const{editable:_e}=j,[et]=LexicalComposerContext_1.useLexicalComposerContext();return reactExports.useEffect(()=>{et.setEditable(_e)},[et,_e]),jsxRuntimeExports.jsx(reactExports.Fragment,{})},ImagesPlugin=()=>{const[j]=LexicalComposerContext_1.useLexicalComposerContext();return reactExports.useLayoutEffect(()=>{if(!j.hasNodes([ImageNode]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return LexicalUtils_1.mergeRegister(j.registerCommand(INSERT_IMAGE_COMMAND,onInsertImage,Lexical_1.COMMAND_PRIORITY_EDITOR),j.registerCommand(Lexical_1.DRAGSTART_COMMAND,onDragStart,Lexical_1.COMMAND_PRIORITY_HIGH),j.registerCommand(Lexical_1.DRAGOVER_COMMAND,onDragover,Lexical_1.COMMAND_PRIORITY_LOW),j.registerCommand(Lexical_1.DROP_COMMAND,_e=>onDrop(_e,j),Lexical_1.COMMAND_PRIORITY_HIGH))},[j]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};let _transparentImage;const getTransparentImage=()=>{if(_transparentImage===void 0){const j="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";_transparentImage=document.createElement("img"),_transparentImage.src=j}return _transparentImage};function onInsertImage(j){const _e=$createImageNode(j);return Lexical_1.$insertNodes([_e]),Lexical_1.$isRootOrShadowRoot(_e.getParentOrThrow())&&LexicalUtils_1.$wrapNodeInElement(_e,Lexical_1.$createParagraphNode).selectEnd(),!0}function onDragStart(j){const _e=getImageNodeInSelection();if(!_e)return!1;const et=j.dataTransfer;if(!et)return!1;const tt=getTransparentImage();return et.setData("text/plain","_"),et.setDragImage(tt,0,0),et.setData("application/x-lexical-drag",JSON.stringify({type:RichEditorContentType.IMAGE,data:{alt:_e.alt,height:_e.height,key:_e.getKey(),maxWidth:_e.maxWidth,src:_e.src,width:_e.width}})),!0}function onDragover(j){return getImageNodeInSelection()?(canDropImage(j)||j.preventDefault(),!0):!1}function onDrop(j,_e){const et=getImageNodeInSelection();if(!et)return!1;const tt=getDragImageData(j);if(!tt)return!1;if(j.preventDefault(),canDropImage(j)){const rt=getDragSelection(j);et.remove();const nt=Lexical_1.$createRangeSelection();rt!=null&&nt.applyDOMRange(rt),Lexical_1.$setSelection(nt),_e.dispatchCommand(INSERT_IMAGE_COMMAND,tt)}return!0}function getImageNodeInSelection(){const j=Lexical_1.$getSelection();if(!Lexical_1.$isNodeSelection(j))return null;const et=j.getNodes()[0];return $isImageNode(et)?et:null}function getDragImageData(j){var et;const _e=(et=j.dataTransfer)==null?void 0:et.getData("application/x-lexical-drag");if(!_e)return null;try{const{type:tt,data:rt}=JSON.parse(_e);return tt===RichEditorContentType.IMAGE?rt:null}catch{return null}}function canDropImage(j){const _e=j.target;return!!(_e&&_e instanceof HTMLElement&&!_e.closest("code, span.editor-image")&&_e.parentElement&&_e.parentElement.closest("div.ContentEditable__root"))}const getDOMSelection=j=>CAN_USE_DOM?(j||window).getSelection():null;function getDragSelection(j){const _e=j,et=_e.target,tt=et==null?null:et.nodeType===9?et.defaultView:et.ownerDocument.defaultView,rt=getDOMSelection(tt);let nt;if(document.caretRangeFromPoint)nt=document.caretRangeFromPoint(_e.clientX,_e.clientY);else if(_e.rangeParent&&rt!==null)rt.collapse(_e.rangeParent,_e.rangeOffset||0),nt=rt.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return nt}const OnKeyDownPlugin=j=>{const[_e]=LexicalComposerContext_1.useLexicalComposerContext(),et=reactExports.useRef(j.onKeyDown);return reactExports.useLayoutEffect(()=>{const tt=rt=>{var nt;(nt=et.current)==null||nt.call(et,rt)};return _e.registerRootListener((rt,nt)=>{nt!==null&&nt.removeEventListener("keydown",tt),rt!==null&&rt.addEventListener("keydown",tt)})},[_e]),jsxRuntimeExports.jsx(reactExports.Fragment,{})},PlainContentPastePlugin=()=>{const[j]=LexicalComposerContext_1.useLexicalComposerContext();return reactExports.useLayoutEffect(()=>LexicalUtils_1.mergeRegister(j.registerUpdateListener(_e=>{_e.tags.has("paste")&&j.update(()=>{_e.dirtyLeaves.forEach(et=>{const tt=Lexical_1.$getNodeByKey(et);if(Lexical_1.$isTextNode(tt)){const rt=Lexical_1.$copyNode(tt);rt.setFormat(0),rt.setStyle(""),tt.replace(rt)}})})}),j.registerNodeTransform(Lexical_1.TextNode,_e=>{const et=_e.getParentOrThrow();if(LexicalLink_1.$isLinkNode(et)){const tt=Lexical_1.$createTextNode(et.__url);et.insertBefore(tt),et.remove()}})),[j]),jsxRuntimeExports.jsx(reactExports.Fragment,{})},resetEditorState=j=>_e=>{_e.update(()=>{const et=Lexical_1.$getRoot();et.clear();for(const tt of j)if(tt!=null){if(typeof tt=="string"){const rt=Lexical_1.$createTextNode(tt),nt=Lexical_1.$createParagraphNode();nt.append(rt),et.append(nt);continue}if(typeof tt=="object"){switch(tt.type){case RichEditorContentType.IMAGE:{const rt=$createImageNode({alt:tt.alt,src:tt.src}),nt=Lexical_1.$createParagraphNode();nt.append(rt),et.append(nt);break}case RichEditorContentType.TEXT:{const rt=Lexical_1.$createTextNode(tt.value),nt=Lexical_1.$createParagraphNode();nt.append(rt),et.append(nt);break}default:throw console.log("item:",tt),new TypeError(`[resetEditorState] unknown rich-editor content type: ${tt.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",tt)}})},RootType=Lexical_1.RootNode.getType(),ParagraphType=Lexical_1.ParagraphNode.getType(),TextType=Lexical_1.TextNode.getType(),ImageType=ImageNode.getType(),LineBreakType=Lexical_1.LineBreakNode.getType(),extractEditorData=j=>{const _e=j.toJSON(),et=[];for(const rt of _e.root.children)tt(rt);return et;function tt(rt){switch(rt.type){case ImageType:{const{src:nt,alt:ot}=rt;if(nt.startsWith(FAKE_PROTOCOL)){const it=et[et.length-1];(it==null?void 0:it.type)===RichEditorContentType.TEXT&&(it.value+=` -`);break}et.push({type:RichEditorContentType.IMAGE,src:nt,alt:ot});break}case LineBreakType:{const nt=et[et.length-1];(nt==null?void 0:nt.type)===RichEditorContentType.TEXT&&(nt.value+=` -`);break}case ParagraphType:{const nt=rt.children;for(const ot of nt)tt(ot);break}case TextType:{const nt=rt.text,ot=et[et.length-1];(ot==null?void 0:ot.type)===RichEditorContentType.TEXT?ot.value+=nt:et.push({type:RichEditorContentType.TEXT,value:nt});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${rt.type})`)}}},replaceImageSrc=(j,_e,et)=>{j.update(()=>{const tt=Lexical_1.$getRoot();rt(tt);function rt(nt){switch(nt.getType()){case RootType:case ParagraphType:for(const ot of nt.getChildren())rt(ot);break;case ImageType:{const ot=nt;if(ot.getSrc()===_e){const it=$createImageNode({alt:ot.getAltText(),src:et});ot.replace(it)}break}}}})};class RichEditor extends reactExports.Component{constructor(_e){super(_e),this.state={floatingAnchorElem:null};const{editable:et=!0,initialContent:tt}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:classes.editorPlaceholder,paragraph:classes.editorParagraph},nodes:[ImageNode,LexicalLink_1.LinkNode],editable:et,editorState:tt?resetEditorState(tt):null,onError:rt=>{console.error(rt)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:_e,onKeyDown:et,onFocus:tt,onBlur:rt,onChange:nt,onEditorInputWrapperRef:ot}=this,{editable:it=!0,placeholder:st="Enter some text...",pluginsBeforeRichEditors:lt=[],pluginsAfterRichEditors:ut=[]}=this.props,{floatingAnchorElem:ct}=this.state,dt=mergeStyles$1(classes.editorContainer,this.props.editorContainerCls),ft=mergeStyles$1(classes.editorInput,this.props.editorInputCls),pt=mergeStyles$1(classes.editorInputBox,this.props.editorInputBoxCls),gt=mergeStyles$1(classes.editorPlaceholder,this.props.editorPlaceholderCls),mt=jsxRuntimeExports.jsx("div",{ref:ot,className:pt,children:jsxRuntimeExports.jsx(LexicalContentEditable_1.ContentEditable,{onFocus:tt,onBlur:rt,className:ft})});return jsxRuntimeExports.jsxs(LexicalComposer_1.LexicalComposer,{initialConfig:_e,children:[jsxRuntimeExports.jsx(EditablePlugin,{editable:it}),jsxRuntimeExports.jsx(CommandPlugin,{}),jsxRuntimeExports.jsxs("div",{className:dt,children:[lt,jsxRuntimeExports.jsx(LexicalRichTextPlugin_1.RichTextPlugin,{contentEditable:mt,placeholder:jsxRuntimeExports.jsx("div",{className:gt,children:st}),ErrorBoundary:LexicalErrorBoundary$1}),ut,jsxRuntimeExports.jsx(OnKeyDownPlugin,{onKeyDown:et}),jsxRuntimeExports.jsx(LexicalOnChangePlugin_1.OnChangePlugin,{onChange:nt}),jsxRuntimeExports.jsx(DragDropPastePlugin,{}),jsxRuntimeExports.jsx(PlainContentPastePlugin,{}),jsxRuntimeExports.jsx(ImagesPlugin,{}),jsxRuntimeExports.jsx(LexicalHistoryPlugin_1.HistoryPlugin,{}),ct&&jsxRuntimeExports.jsx(DraggableBlockPlugin,{anchorElem:ct})]})]})}onKeyDown(_e){var et,tt;(tt=(et=this.props).onKeyDown)==null||tt.call(et,_e)}onFocus(_e){var et,tt;(tt=(et=this.props).onFocus)==null||tt.call(et,_e)}onBlur(_e){var et,tt;(tt=(et=this.props).onBlur)==null||tt.call(et,_e)}onChange(_e){var et,tt;(tt=(et=this.props).onChange)==null||tt.call(et,_e)}onEditorInputWrapperRef(_e){_e!==null&&this.setState({floatingAnchorElem:_e})}}const classes=mergeStyleSets({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),ReactRichEditor=reactExports.forwardRef((j,_e)=>{const[et]=reactExports.useState(()=>new RichEditorViewModel({extractEditorData,replaceImageSrc,resetEditorState})),tt=reactExports.useMemo(()=>({viewmodel:et}),[et]);return et.resolveUrlByFile$.next(j.resolveUrlByFile),et.resolveUrlByPath$.next(j.resolveUrlByPath),reactExports.useImperativeHandle(_e,()=>({focus:()=>{tt.viewmodel.focus()},getContent:()=>tt.viewmodel.getContent(),insert:rt=>{tt.viewmodel.insert(rt)},isEmpty:()=>tt.viewmodel.isEmpty(),replaceImageSrc:(rt,nt)=>{tt.viewmodel.replaceImageSrc(rt,nt)},reset:rt=>{tt.viewmodel.reset(rt)}})),jsxRuntimeExports.jsx(RichEditorContextType.Provider,{value:tt,children:jsxRuntimeExports.jsx(RichEditor,{...j})})});ReactRichEditor.displayName="ReactRichEditor";makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});makeStyles({chatbox:{...shorthands.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:tokens.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:tokens.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:tokens.colorScrollbarOverlay,...shorthands.border("1px","solid",tokens.colorNeutralBackground1),...shorthands.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:tokens.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...shorthands.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),...shorthands.overflow("hidden","auto")},footer:{...shorthands.flex(0,0,"auto")}});makeStyles({header:{},topbar:{...shorthands.padding("0px","16px"),...shorthands.borderBottom("1px","solid",tokens.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:tokens.colorNeutralForeground2}});makeStyles({main:{...shorthands.padding("0","16px"),...shorthands.overflow("hidden","auto"),height:"100%"}});makeStyles({footer:{...shorthands.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...shorthands.flex(0,0,"auto")},editor:{...shorthands.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),...shorthands.margin("8px","0px"),...shorthands.padding("2px","8px"),backgroundColor:tokens.colorStatusWarningBackground1,color:tokens.colorStatusWarningForeground1}});const capitalizeFirstLetter=j=>j.charAt(0).toUpperCase()+j.slice(1),getSenderNameByLLMMessage=j=>j.role&&j.name?`${j.role}: ${j.name}`:j.role?j.role:j.name?j.name:"user",defaultCalcContentForCopy=j=>JSON.stringify(j.content),messageRoleToCategory=j=>{switch(j){case"system":return ChatMessageCategory.System;case"user":return ChatMessageCategory.User;default:return ChatMessageCategory.Chatbot}};function MessageSenderRenderer(j){const{data:_e,position:et,className:tt}=j,rt=useStyles$2(),nt=_e.timestamp?dayjs(_e.timestamp).format("h:mm A"):null,[ot,it]=_e.from.split(": ");return jsxRuntimeExports.jsxs("div",{className:mergeClasses(rt.container,tt),"data-position":et,children:[jsxRuntimeExports.jsxs("span",{className:rt.name,"data-position":et,"data-category":_e.category,children:[ot,it&&jsxRuntimeExports.jsxs("span",{children:[": ",jsxRuntimeExports.jsx("strong",{children:it})]})]}),nt&&jsxRuntimeExports.jsx("span",{className:rt.time,children:nt})]})}MessageSenderRenderer.displayName="MessageSenderRenderer";const useStyles$2=makeStyles({container:{display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",fontSize:"0.75rem",'&&[data-position="right"]':{justifyContent:"flex-end"},color:tokens.colorNeutralForeground3},name:{...shorthands.margin("0px","6px","0px","0px"),fontSize:tokens.fontSizeBase200,lineHeight:tokens.lineHeightBase200,[`&&[data-category="${ChatMessageCategory.System}"]`]:{...shorthands.margin("0px","6px","0px","12px")}},time:{}}),OpenAIIcon=()=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"20px",height:"20px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]});var RichContentType=(j=>(j.TEXT="text",j.IMAGE_URL="image_url",j.IMAGE_FILE="image_file",j))(RichContentType||{});const ErrorMessage=({error:j})=>{const _e=useLocStrings();return jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[jsxRuntimeExports.jsx(ErrorCircle16Filled,{style:{color:tokens.colorStatusDangerForeground1}}),jsxRuntimeExports.jsxs("div",{children:[_e.Error,": ",j.message]})]})},RichTextChatboxMessageContent=j=>{const{content:_e,className:et}=j,tt=_e.map(lt=>lt.function_call).filter(Boolean),rt=reactExports.useMemo(()=>_e.map(lt=>weaveRichNodesIntoMarkup(lt.content??"")).join(` - -`),[_e]),nt=useStyles$1(),ot=mergeClasses(nt.content,et,"rich-text-chatbox-message-content"),it=rt.length===0&&tt.length>0,st=useLocStrings();return jsxRuntimeExports.jsxs("div",{className:ot,children:[!it&&(typeof rt=="string"?jsxRuntimeExports.jsx(MarkdownViewer,{content:rt}):jsxRuntimeExports.jsx(ErrorMessage,{error:rt})),tt.length>0&&jsxRuntimeExports.jsx("h3",{children:st.Function_Calls}),tt.map(lt=>jsxRuntimeExports.jsx(JsonNodeCard,{title:(lt==null?void 0:lt.name)??"Function call",src:lt==null?void 0:lt.arguments},lt==null?void 0:lt.name))]})},useStyles$1=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function weaveRichNodesIntoMarkup(j){if(typeof j=="string")return j;return Array.isArray(j)?j.map(_e).filter(Boolean).join(` - -`):new Error("content type is not supported");function _e(et){var tt,rt,nt,ot;switch(et.type){case RichContentType.TEXT:return et.text??"";case RichContentType.IMAGE_URL:return`![${(tt=et.image_url)==null?void 0:tt.url}](${(rt=et.image_url)==null?void 0:rt.url})`;case RichContentType.IMAGE_FILE:return`![${(nt=et.image_file)==null?void 0:nt.path}](${(ot=et.image_file)==null?void 0:ot.path})`;default:return""}}}const useAvatarStyles=makeStyles({avatar:{...shorthands.margin("16px","4px","4px","4px")}}),useMessagesContainerStyles=makeStyles({messagesContainer:{display:"flex",height:"100%",width:"100%"},minimap:{boxSizing:"border-box",height:"100%",width:"64px"},minimapInner:{boxSizing:"border-box",width:"64px",...shorthands.border("1px","solid","rgba(0, 0, 128, 0.15)")}}),LLMNodeMessagesList=j=>{const _e=useSelectedSpan(),et=useMessagesContainerStyles(),tt=reactExports.useRef(null),rt=ChatboxSelector.MessageList,nt=ChatboxSelector.MessageContent,ot=j.messages.map((it,st)=>({id:st,type:ChatMessageType.Message,history:[{content:[{content:it.content??"",name:it.name,role:it.role,timestamp:it.timestamp,function_call:it.function_call}],category:messageRoleToCategory(it.role),from:capitalizeFirstLetter(getSenderNameByLLMMessage(it)),timestamp:it.role==="assistant"?_e==null?void 0:_e.start_time:_e==null?void 0:_e.end_time}]}));return reactExports.useEffect(()=>{const it=document.querySelectorAll(".rich-text-chatbox-message-content"),st=it[it.length-1];st&&st.scrollIntoView({block:"end"})},[]),jsxRuntimeExports.jsxs("div",{className:et.messagesContainer,children:[jsxRuntimeExports.jsx(ChatboxMessageList,{locStrings:defaultLocStrings$1,messages:ot,calcContentForCopy:defaultCalcContentForCopy,containerRef:tt}),jsxRuntimeExports.jsx("div",{className:et.minimap,children:jsxRuntimeExports.jsx(Minimap,{className:et.minimapInner,sourceRootRef:tt,sourceQuerySelector:rt,sourceElementQuerySelector:nt})})]})},MessageAvatarRenderer=({data:j,className:_e})=>{const et=useAvatarStyles();return j.category===ChatMessageCategory.System?jsxRuntimeExports.jsx("div",{className:mergeClasses(et.avatar,_e),children:jsxRuntimeExports.jsx(Alert20Regular,{})}):j.category===ChatMessageCategory.User?jsxRuntimeExports.jsx("div",{className:mergeClasses(et.avatar,_e),children:jsxRuntimeExports.jsx(Person20Regular,{})}):j.category===ChatMessageCategory.Chatbot?jsxRuntimeExports.jsx("div",{className:mergeClasses(et.avatar,_e),children:jsxRuntimeExports.jsx(OpenAIIcon,{})}):null};function ChatboxMessageList(j){const{locStrings:_e,messages:et,calcContentForCopy:tt,containerRef:rt}=j,nt=useCopyAction(_e,tt),ot=reactExports.useCallback(()=>[nt],[nt]),it=useStyles();return jsxRuntimeExports.jsx("div",{ref:rt,className:it.main,children:jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:_e,messages:et,MessageAvatarRenderer,MessageContentRenderer:RichTextChatboxMessageContent,MessageSenderRenderer,useMessageActions:ot})})}ChatboxMessageList.displayName="ChatboxMessageList";const useStyles=makeStyles({main:{...shorthands.padding("0","16px"),...shorthands.overflow("auto"),...shorthands.flex(1),height:"100%"}}),useClasses$d=makeStyles({root:{height:"100%",display:"flex",flexDirection:"column",...shorthands.overflow("auto")},title:{fontSize:"14px",lineHeight:"20px",fontStyle:"italic",fontWeight:400,color:tokens.colorNeutralForeground1},card:{flexGrow:1}}),LLMNodePromptTemplateTab=({promptTemplate:j,templateVariables:_e})=>{const et=useClasses$d(),tt=useMessageCardClasses(),nt=useIsDark()?"vs-dark":"light",ot=useLocStrings();return jsxRuntimeExports.jsxs("div",{className:et.root,children:[jsxRuntimeExports.jsxs(Card,{className:mergeClasses(tt.card,et.card),children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{className:et.title,children:ot.prompt_template})}),jsxRuntimeExports.jsx(JinjaSyntaxHighlighter,{value:j,theme:nt})]}),jsxRuntimeExports.jsxs(Card,{className:tt.card,children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{className:et.title,children:ot.template_variables})}),jsxRuntimeExports.jsx(JsonView,{src:_e})]})]})},LLMNodeRaw=({inputs:j,outputs:_e})=>{const et=useLocStrings();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[j&&jsxRuntimeExports.jsx(JsonNodeCard,{title:et.Input,src:j}),_e&&jsxRuntimeExports.jsx(JsonNodeCard,{title:et.Output,src:_e})]})},useLLMNodeClasses=makeStyles({root:{height:"100%",display:"flex"},content:{...shorthands.overflow("auto")}}),LLMNodeInfo=()=>{var mt,bt,_t,xt,yt;const j=useSelectedSpan(),_e=(mt=useParentSpanOfSelectedSpan())==null?void 0:mt.attributes,et=useNodeDetailClasses(),tt=JSON.parse(((bt=j==null?void 0:j.attributes)==null?void 0:bt.inputs)??"{}"),rt=(_t=j==null?void 0:j.attributes)==null?void 0:_t["llm.generated_message"],nt=_e==null?void 0:_e["prompt.template"],ot=JSON.parse((_e==null?void 0:_e["prompt.variables"])??"{}"),it=Object.keys(ot??{}),st={},{inputMessages:lt,outputMessages:ut}=useMessagesOfSelectedSpan();Object.keys(tt).forEach(Et=>{Et!=="messages"&&(it.includes(Et)||(st[Et]=tt[Et]))});const ct=[...lt,...ut],[dt,ft]=reactExports.useState("messages"),pt=useLLMNodeClasses(),gt=useLocStrings();return jsxRuntimeExports.jsxs(Card,{className:pt.root,children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:et.headerWrapper,children:[jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",children:gt.llm}),jsxRuntimeExports.jsx("div",{className:et.headerTitle,children:tt.model})]}),jsxRuntimeExports.jsxs(TabList,{selectedValue:dt,onTabSelect:(Et,{value:St})=>ft(St),children:[jsxRuntimeExports.jsx(Tab$1,{value:"messages",children:gt.Conversations}),jsxRuntimeExports.jsx(Tab$1,{value:"raw",children:gt["Input/Output_(JSON)"]}),nt&&jsxRuntimeExports.jsx(Tab$1,{value:"promptTemplate",children:gt.Prompt_Template}),jsxRuntimeExports.jsx(Tab$1,{value:"llmParameters",children:gt.LLM_Parameters})]})]})}),jsxRuntimeExports.jsxs("div",{className:pt.content,children:[dt==="messages"&&jsxRuntimeExports.jsx(LLMNodeMessagesList,{messages:ct}),dt==="promptTemplate"&&nt&&jsxRuntimeExports.jsx(LLMNodePromptTemplateTab,{promptTemplate:nt,templateVariables:ot}),dt==="llmParameters"&&jsxRuntimeExports.jsx(LLMNodeInvocationParametersTab,{invocationParameters:st}),dt==="raw"&&jsxRuntimeExports.jsx(LLMNodeRaw,{inputs:(xt=j==null?void 0:j.attributes)==null?void 0:xt.inputs,outputs:((yt=j==null?void 0:j.attributes)==null?void 0:yt.output)??rt})]})]})},getMimeTypeFromContentType=j=>{var et;return(et=/^\s*([^;\s]*)(?:;|\s|$)/.exec(j))==null?void 0:et[1].toLowerCase()},NodeHttpCard=({type:j})=>{const _e=useLocStrings(),et=useSelectedSpan(),tt=React.useMemo(()=>parseHttpSpanAttributes(et),[et]);if(!tt)return null;const{urlFull:rt}=tt,nt=parseInt(tt.status_code);let ot;nt>=200&&nt<300?ot="success":nt>=400?ot="danger":ot="warning";const it=jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[tt.status_code!==void 0?jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",color:ot,children:[_e.Status," ",jsxRuntimeExports.jsx("span",{style:{marginLeft:4},children:tt.status_code})]}):null,jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:tt.method}),jsxRuntimeExports.jsx("span",{children:rt})]}),st=j==="response"?tt.response:tt.request;return jsxRuntimeExports.jsx(Card,{style:{marginBottom:12},children:jsxRuntimeExports.jsx(NodeHttpItem,{type:j,header:it,data:st})})},NodeHttpItem=({type:j,header:_e,data:et})=>{const tt=useLocStrings(),{headers:rt,body:nt}=et,ot=JSON.stringify(et),it=j==="response",st=it?"Response":"Request";let lt;if(nt)if(it){const ut=getMimeTypeFromContentType(rt["content-type"]);lt=jsxRuntimeExports.jsx(HttpResponseContent,{mimeType:ut,body:nt})}else lt=jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:nt,title:tt[`${st} Body`]});return jsxRuntimeExports.jsx(BasicViewer,{showEmpty:!1,previewRender:()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:rt,title:tt[`${st} Headers`]}),lt]}),rawRender:()=>jsxRuntimeExports.jsx(Card,{style:{wordBreak:"break-all"},children:ot}),headerRender:_e?()=>_e:void 0})},HttpResponseContent=({mimeType:j,body:_e=""})=>{const et=useLocStrings();return j!=null&&j.includes("json")?jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:_e,title:et["Response Body"]}):j==="text/event-stream"?jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:et["Response Body"]})})}),_e.split("data:").filter(tt=>!!tt).map((tt,rt)=>jsxRuntimeExports.jsxs("div",{children:["data: ",tt]},`${tt}-${rt}`))]}):jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:et["Response Body"]})})}),jsxRuntimeExports.jsx("div",{style:{wordBreak:"break-all"},children:_e})]})},NodeToken=({span:j,showDetail:_e=!0})=>{const et=useParseTraceOutput(j);if(!et||typeof et=="string")return null;const tt=et.usage;return!tt||typeof tt=="string"||!tt.total_tokens?null:jsxRuntimeExports.jsx(TokenText,{token:tt.total_tokens,info:_e?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:tt.total_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:tt.prompt_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:tt.completion_tokens??0}})]}):void 0})},SummaryToken=({trace:j,showDetail:_e=!0})=>{const{total_tokens:et,prompt_tokens:tt,completion_tokens:rt}=j;return jsxRuntimeExports.jsx(TokenText,{token:et,info:_e?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:et}}),tt!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:tt}}),rt!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:rt}})]}):void 0})},RetrievalNodeInfo=()=>{const j=useSelectedSpan(),_e=useLocStrings();if(!(j!=null&&j.attributes))return null;const et=j==null?void 0:j.attributes;let tt=[];if(typeof et["retrieval.documents"]=="string")try{tt=JSON.parse(et["retrieval.documents"])}catch{tt=[]}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:_e.Query})})}),et["retrieval.query"]??""]}),jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:_e.Documents})})}),tt.map(rt=>jsxRuntimeExports.jsx(Document$1,{document:rt},rt["document.id"]))]})]})},Document$1=({document:j})=>{const _e=useRetrievalNodeDetailClasses(),[et,tt]=reactExports.useState(["content"]),rt=reactExports.useCallback((ot,it)=>{tt(it.openItems)},[]),nt=useLocStrings();return jsxRuntimeExports.jsxs(Card,{style:{background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:6},children:[jsxRuntimeExports.jsx(Document16Regular,{}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:jsxRuntimeExports.jsx(Tooltip$1,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:"id"})," ",j["document.id"]]}),relationship:"description",children:jsxRuntimeExports.jsxs("span",{children:[nt.document," ",j["document.id"]]})})}),jsxRuntimeExports.jsx(Tooltip$1,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:nt.score})," ",j["document.score"]]}),relationship:"description",children:jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",children:["score ",floatFormatter(j["document.score"])]})})]}),jsxRuntimeExports.jsx(Divider$2,{}),jsxRuntimeExports.jsx(Card,{style:{background:tokens.colorNeutralBackground3},children:jsxRuntimeExports.jsx(Accordion,{openItems:et,onToggle:rt,collapsible:!0,multiple:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"content",children:[jsxRuntimeExports.jsx(AccordionHeader,{className:_e.accordionHeader,children:nt.content}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(MarkdownViewer,{content:j["document.content"]})})]})})}),jsxRuntimeExports.jsx(JsonNodeCard,{title:"metadata",src:j["document.metadata"],wrapperStyle:{background:tokens.colorNeutralBackground3}})]})},NodeDetail=({emptyTip:j=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"No Data"})})=>{var pt,gt,mt;const _e=useNodeDetailClasses(),et=useSelectedSpan(),tt=useEvaluationSpansOfSelectedSpan(),rt=useRootSpanIdOfSelectedSpans(),nt=useLocStrings(),ot=getToolTypeFromSpan(et),it=reactExports.useMemo(()=>{var bt;return rt===((bt=et==null?void 0:et.context)==null?void 0:bt.span_id)},[rt,et]),st=reactExports.useMemo(()=>(ot==null?void 0:ot.toLowerCase())==="http",[ot]),lt=st?"response":"info",[ut,ct]=reactExports.useState(lt),dt=((pt=et==null?void 0:et.events)==null?void 0:pt.length)??0,ft=tt.length??0;return et?jsxRuntimeExports.jsxs("div",{className:_e.wrapper,children:[((mt=(gt=et==null?void 0:et.status)==null?void 0:gt.status_code)==null?void 0:mt.toLowerCase())==="error"&&jsxRuntimeExports.jsx(MessageBar,{intent:"error",onClick:()=>{ct("error")},style:{cursor:"pointer"},children:jsxRuntimeExports.jsxs(MessageBarBody,{children:[jsxRuntimeExports.jsxs(MessageBarTitle,{children:[" ",nt.Error]}),et.status.message]})}),jsxRuntimeExports.jsxs("div",{className:_e.headerWrapper,children:[ot&&jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",children:`${ot}`}),jsxRuntimeExports.jsx("div",{className:_e.headerTitle,children:jsxRuntimeExports.jsx(Tooltip$1,{content:(et==null?void 0:et.name)||"",relationship:"description",children:jsxRuntimeExports.jsx("span",{children:et.name})})}),jsxRuntimeExports.jsx("div",{className:_e.headerItem,children:jsxRuntimeExports.jsx(NodeToken,{span:et,showDetail:!0})}),jsxRuntimeExports.jsx("div",{className:_e.headerItem,children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:et.start_time,endTimeISOString:et.end_time})})]}),jsxRuntimeExports.jsxs(TabList,{selectedValue:ut,onTabSelect:(bt,_t)=>{ct(_t.value)},children:[!st&&jsxRuntimeExports.jsx(Tab$1,{value:"info",children:nt.Detail}),st&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Tab$1,{value:"response",children:nt.Response}),jsxRuntimeExports.jsx(Tab$1,{value:"request",children:nt.Request})]}),jsxRuntimeExports.jsx(Tab$1,{value:"attr",children:nt.Raw_JSON}),it&&jsxRuntimeExports.jsxs(Tab$1,{value:"evaluations",children:[nt.Metrics," ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:"informative",count:ft,size:"small",showZero:!0})]}),jsxRuntimeExports.jsxs(Tab$1,{value:"error",children:[nt.Events," ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:dt>0?"danger":"informative",count:dt,size:"small",showZero:!0})]})]}),jsxRuntimeExports.jsx(Divider$2,{className:_e.tabDivider}),jsxRuntimeExports.jsxs("div",{className:_e.content,children:[!st&&ut==="info"&&jsxRuntimeExports.jsx(NodeInfoCard,{}),st&&ut==="response"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"response"}),st&&ut==="request"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"request"}),ut==="attr"&&jsxRuntimeExports.jsx(NodeAttrCard,{}),it&&ut==="evaluations"&&jsxRuntimeExports.jsx(EvaluationsTab,{}),ut==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]}):j},NodeInfoCard=()=>{var et,tt,rt;const j=useSelectedSpan(),_e=(et=j==null?void 0:j.attributes)==null?void 0:et.function;switch((rt=(tt=j==null?void 0:j.attributes)==null?void 0:tt.span_type)==null?void 0:rt.toLowerCase()){case"llm":return _e!=null&&_e.startsWith("openai.resources.chat")||_e!=null&&_e.startsWith("openai.api_resources.chat")?jsxRuntimeExports.jsx(LLMNodeInfo,{}):jsxRuntimeExports.jsx(DefaultNodeInfo,{});case"retrieval":return jsxRuntimeExports.jsx(RetrievalNodeInfo,{});case"embedding":return jsxRuntimeExports.jsx(EmbeddingNodeInfo,{});default:return jsxRuntimeExports.jsx(DefaultNodeInfo,{})}},NodeAttrCard=()=>{const j=useSelectedSpan(),_e=useLocStrings();return j!=null&&j.attributes?jsxRuntimeExports.jsx(JsonNodeCard,{title:_e.Raw_JSON,src:j}):null},EvaluationMetricItem=({evaluations:j})=>{const _e=useClasses$c(),et=React.useCallback(rt=>{if(!rt.trace_id)return;let nt=window.location.origin+window.location.pathname;nt.endsWith("/")&&(nt=nt.slice(0,-1));const ot=`${nt}/#trace=${rt.trace_id}&uiTraceId=${rt.trace_id}`;window.open(ot,"_blank")},[]);if(!j)return null;const tt=({outputs:rt})=>{if(!rt)return null;const nt=Object.keys(rt).map(ot=>{const it=rt[ot];if(it!=null)return jsxRuntimeExports.jsx(MetricTag,{tag:{name:ot,value:it}},ot)}).filter(ot=>ot!==void 0);return jsxRuntimeExports.jsx("div",{className:_e.tagWrapper,children:nt})};return jsxRuntimeExports.jsx("div",{className:_e.wrapper,children:Object.entries(j).map(([rt,nt])=>{const ot=nt.outputs;return ot?jsxRuntimeExports.jsxs("div",{className:_e.itemWrapper,children:[jsxRuntimeExports.jsxs(Text$2,{size:400,className:_e.title,onClick:()=>et(nt),children:[rt," ",jsxRuntimeExports.jsx(LinkMultiple16Regular,{})]}),jsxRuntimeExports.jsx(tt,{outputs:ot})]},rt):null})})},useClasses$c=makeStyles({wrapper:{display:"flex",...shorthands.gap("1rem")},itemWrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",...shorthands.flex(0,0,"auto")},tagWrapper:{display:"flex",flexDirection:"row",...shorthands.gap("0.5rem")},title:{color:tokens.colorNeutralForeground2,marginBottom:tokens.spacingVerticalS,display:"flex",alignItems:"center",cursor:"pointer","> svg":{marginLeft:tokens.spacingHorizontalXS,paddingTop:"3px"}}});function isNil(j){return j==null}var isNil_1=isNil;const isNil$1=getDefaultExportFromCjs(isNil_1);var baseGetTag$1=_baseGetTag,isObjectLike$1=isObjectLike_1,numberTag="[object Number]";function isNumber$2(j){return typeof j=="number"||isObjectLike$1(j)&&baseGetTag$1(j)==numberTag}var isNumber_1=isNumber$2;const isNumber$3=getDefaultExportFromCjs(isNumber_1);var isNumber$1=isNumber_1;function isNaN$1(j){return isNumber$1(j)&&j!=+j}var _isNaN=isNaN$1;const isNan=getDefaultExportFromCjs(_isNaN);var mathSign=function j(_e){return _e===0?0:_e>0?1:-1},isPercent=function j(_e){return isString$1(_e)&&_e.indexOf("%")===_e.length-1},isNumber=function j(_e){return isNumber$3(_e)&&!isNan(_e)},isNumOrStr=function j(_e){return isNumber(_e)||isString$1(_e)},idCounter=0,uniqueId=function j(_e){var et=++idCounter;return"".concat(_e||"").concat(et)},getPercentValue=function j(_e,et){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!isNumber(_e)&&!isString$1(_e))return tt;var nt;if(isPercent(_e)){var ot=_e.indexOf("%");nt=et*parseFloat(_e.slice(0,ot))/100}else nt=+_e;return isNan(nt)&&(nt=tt),rt&&nt>et&&(nt=et),nt},getAnyElementOfObject=function j(_e){if(!_e)return null;var et=Object.keys(_e);return et&&et.length?_e[et[0]]:null},hasDuplicate=function j(_e){if(!Array.isArray(_e))return!1;for(var et=_e.length,tt={},rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$f(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}var REACT_BROWSER_EVENT_MAP={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},getDisplayName=function j(_e){return typeof _e=="string"?_e:_e?_e.displayName||_e.name||"Component":""},lastChildren=null,lastResult=null,toArray=function j(_e){if(_e===lastChildren&&Array.isArray(lastResult))return lastResult;var et=[];return reactExports.Children.forEach(_e,function(tt){isNil$1(tt)||(reactIsExports.isFragment(tt)?et=et.concat(j(tt.props.children)):et.push(tt))}),lastResult=et,lastChildren=_e,et};function findAllByType(j,_e){var et=[],tt=[];return Array.isArray(_e)?tt=_e.map(function(rt){return getDisplayName(rt)}):tt=[getDisplayName(_e)],toArray(j).forEach(function(rt){var nt=get$3(rt,"type.displayName")||get$3(rt,"type.name");tt.indexOf(nt)!==-1&&et.push(rt)}),et}function findChildByType(j,_e){var et=findAllByType(j,_e);return et&&et[0]}var validateWidthHeight=function j(_e){if(!_e||!_e.props)return!1;var et=_e.props,tt=et.width,rt=et.height;return!(!isNumber(tt)||tt<=0||!isNumber(rt)||rt<=0)},SVG_TAGS=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],isSvgElement=function j(_e){return _e&&_e.type&&isString$1(_e.type)&&SVG_TAGS.indexOf(_e.type)>=0},isValidSpreadableProp=function j(_e,et,tt,rt){var nt,ot=(nt=FilteredElementKeyMap==null?void 0:FilteredElementKeyMap[rt])!==null&&nt!==void 0?nt:[];return!isFunction$6(_e)&&(rt&&ot.includes(et)||SVGElementPropKeys.includes(et))||tt&&EventKeys.includes(et)},filterProps=function j(_e,et,tt){if(!_e||typeof _e=="function"||typeof _e=="boolean")return null;var rt=_e;if(reactExports.isValidElement(_e)&&(rt=_e.props),!isObject$h(rt))return null;var nt={};return Object.keys(rt).forEach(function(ot){var it;isValidSpreadableProp((it=rt)===null||it===void 0?void 0:it[ot],ot,et,tt)&&(nt[ot]=rt[ot])}),nt},isChildrenEqual=function j(_e,et){if(_e===et)return!0;var tt=reactExports.Children.count(_e);if(tt!==reactExports.Children.count(et))return!1;if(tt===0)return!0;if(tt===1)return isSingleChildEqual(Array.isArray(_e)?_e[0]:_e,Array.isArray(et)?et[0]:et);for(var rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$e(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function Surface(j){var _e=j.children,et=j.width,tt=j.height,rt=j.viewBox,nt=j.className,ot=j.style,it=j.title,st=j.desc,lt=_objectWithoutProperties$e(j,_excluded$e),ut=rt||{width:et,height:tt,x:0,y:0},ct=clsx("recharts-surface",nt);return React.createElement("svg",_extends$n({},filterProps(lt,!0,"svg"),{className:ct,width:et,height:tt,style:ot,viewBox:"".concat(ut.x," ").concat(ut.y," ").concat(ut.width," ").concat(ut.height)}),React.createElement("title",null,it),React.createElement("desc",null,st),_e)}var _excluded$d=["children","className"];function _extends$m(){return _extends$m=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$d(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}var Layer=React.forwardRef(function(j,_e){var et=j.children,tt=j.className,rt=_objectWithoutProperties$d(j,_excluded$d),nt=clsx("recharts-layer",tt);return React.createElement("g",_extends$m({className:nt},filterProps(rt,!0),{ref:_e}),et)}),warn=function j(_e,et){for(var tt=arguments.length,rt=new Array(tt>2?tt-2:0),nt=2;ntrt?0:rt+_e),et=et>rt?rt:et,et<0&&(et+=rt),rt=_e>et?0:et-_e>>>0,_e>>>=0;for(var nt=Array(rt);++tt=tt?j:baseSlice(j,_e,et)}var _castSlice=castSlice$1;function asciiToArray$1(j){return j.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray$1(j){return j.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(j){return hasUnicode$1(j)?unicodeToArray(j):asciiToArray(j)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$1=toString_1;function createCaseFirst$1(j){return function(_e){_e=toString$1(_e);var et=hasUnicode(_e)?stringToArray(_e):void 0,tt=et?et[0]:_e.charAt(0),rt=et?castSlice(et,1).join(""):_e.slice(1);return tt[j]()+rt}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst;const upperFirst$1=getDefaultExportFromCjs(upperFirst_1);function constant$1(j){return function(){return j}}const cos=Math.cos,sin=Math.sin,sqrt$1=Math.sqrt,pi$1=Math.PI,tau$1=2*pi$1,pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function append(j){this._+=j[0];for(let _e=1,et=j.length;_e=0))throw new Error(`invalid digits: ${j}`);if(_e>15)return append;const et=10**_e;return function(tt){this._+=tt[0];for(let rt=1,nt=tt.length;rtepsilon)if(!(Math.abs(ct*st-lt*ut)>epsilon)||!nt)this._append`L${this._x1=_e},${this._y1=et}`;else{let ft=tt-ot,pt=rt-it,gt=st*st+lt*lt,mt=ft*ft+pt*pt,bt=Math.sqrt(gt),_t=Math.sqrt(dt),xt=nt*Math.tan((pi-Math.acos((gt+dt-mt)/(2*bt*_t)))/2),yt=xt/_t,Et=xt/bt;Math.abs(yt-1)>epsilon&&this._append`L${_e+yt*ut},${et+yt*ct}`,this._append`A${nt},${nt},0,0,${+(ct*ft>ut*pt)},${this._x1=_e+Et*st},${this._y1=et+Et*lt}`}}arc(_e,et,tt,rt,nt,ot){if(_e=+_e,et=+et,tt=+tt,ot=!!ot,tt<0)throw new Error(`negative radius: ${tt}`);let it=tt*Math.cos(rt),st=tt*Math.sin(rt),lt=_e+it,ut=et+st,ct=1^ot,dt=ot?rt-nt:nt-rt;this._x1===null?this._append`M${lt},${ut}`:(Math.abs(this._x1-lt)>epsilon||Math.abs(this._y1-ut)>epsilon)&&this._append`L${lt},${ut}`,tt&&(dt<0&&(dt=dt%tau+tau),dt>tauEpsilon?this._append`A${tt},${tt},0,1,${ct},${_e-it},${et-st}A${tt},${tt},0,1,${ct},${this._x1=lt},${this._y1=ut}`:dt>epsilon&&this._append`A${tt},${tt},0,${+(dt>=pi)},${ct},${this._x1=_e+tt*Math.cos(nt)},${this._y1=et+tt*Math.sin(nt)}`)}rect(_e,et,tt,rt){this._append`M${this._x0=this._x1=+_e},${this._y0=this._y1=+et}h${tt=+tt}v${+rt}h${-tt}Z`}toString(){return this._}}function withPath(j){let _e=3;return j.digits=function(et){if(!arguments.length)return _e;if(et==null)_e=null;else{const tt=Math.floor(et);if(!(tt>=0))throw new RangeError(`invalid digits: ${et}`);_e=tt}return j},()=>new Path(_e)}function array(j){return typeof j=="object"&&"length"in j?j:Array.from(j)}function Linear(j){this._context=j}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(j,_e){switch(j=+j,_e=+_e,this._point){case 0:this._point=1,this._line?this._context.lineTo(j,_e):this._context.moveTo(j,_e);break;case 1:this._point=2;default:this._context.lineTo(j,_e);break}}};function curveLinear(j){return new Linear(j)}function x(j){return j[0]}function y(j){return j[1]}function shapeLine(j,_e){var et=constant$1(!0),tt=null,rt=curveLinear,nt=null,ot=withPath(it);j=typeof j=="function"?j:j===void 0?x:constant$1(j),_e=typeof _e=="function"?_e:_e===void 0?y:constant$1(_e);function it(st){var lt,ut=(st=array(st)).length,ct,dt=!1,ft;for(tt==null&&(nt=rt(ft=ot())),lt=0;lt<=ut;++lt)!(lt=ft;--pt)it.point(xt[pt],yt[pt]);it.lineEnd(),it.areaEnd()}bt&&(xt[dt]=+j(mt,dt,ct),yt[dt]=+_e(mt,dt,ct),it.point(tt?+tt(mt,dt,ct):xt[dt],et?+et(mt,dt,ct):yt[dt]))}if(_t)return it=null,_t+""||null}function ut(){return shapeLine().defined(rt).curve(ot).context(nt)}return lt.x=function(ct){return arguments.length?(j=typeof ct=="function"?ct:constant$1(+ct),tt=null,lt):j},lt.x0=function(ct){return arguments.length?(j=typeof ct=="function"?ct:constant$1(+ct),lt):j},lt.x1=function(ct){return arguments.length?(tt=ct==null?null:typeof ct=="function"?ct:constant$1(+ct),lt):tt},lt.y=function(ct){return arguments.length?(_e=typeof ct=="function"?ct:constant$1(+ct),et=null,lt):_e},lt.y0=function(ct){return arguments.length?(_e=typeof ct=="function"?ct:constant$1(+ct),lt):_e},lt.y1=function(ct){return arguments.length?(et=ct==null?null:typeof ct=="function"?ct:constant$1(+ct),lt):et},lt.lineX0=lt.lineY0=function(){return ut().x(j).y(_e)},lt.lineY1=function(){return ut().x(j).y(et)},lt.lineX1=function(){return ut().x(tt).y(_e)},lt.defined=function(ct){return arguments.length?(rt=typeof ct=="function"?ct:constant$1(!!ct),lt):rt},lt.curve=function(ct){return arguments.length?(ot=ct,nt!=null&&(it=ot(nt)),lt):ot},lt.context=function(ct){return arguments.length?(ct==null?nt=it=null:it=ot(nt=ct),lt):nt},lt}class Bump{constructor(_e,et){this._context=_e,this._x=et}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(_e,et){switch(_e=+_e,et=+et,this._point){case 0:{this._point=1,this._line?this._context.lineTo(_e,et):this._context.moveTo(_e,et);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+_e)/2,this._y0,this._x0,et,_e,et):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+et)/2,_e,this._y0,_e,et);break}}this._x0=_e,this._y0=et}}function bumpX(j){return new Bump(j,!0)}function bumpY(j){return new Bump(j,!1)}const symbolCircle={draw(j,_e){const et=sqrt$1(_e/pi$1);j.moveTo(et,0),j.arc(0,0,et,0,tau$1)}},symbolCross={draw(j,_e){const et=sqrt$1(_e/5)/2;j.moveTo(-3*et,-et),j.lineTo(-et,-et),j.lineTo(-et,-3*et),j.lineTo(et,-3*et),j.lineTo(et,-et),j.lineTo(3*et,-et),j.lineTo(3*et,et),j.lineTo(et,et),j.lineTo(et,3*et),j.lineTo(-et,3*et),j.lineTo(-et,et),j.lineTo(-3*et,et),j.closePath()}},tan30=sqrt$1(1/3),tan30_2=tan30*2,symbolDiamond={draw(j,_e){const et=sqrt$1(_e/tan30_2),tt=et*tan30;j.moveTo(0,-et),j.lineTo(tt,0),j.lineTo(0,et),j.lineTo(-tt,0),j.closePath()}},symbolSquare={draw(j,_e){const et=sqrt$1(_e),tt=-et/2;j.rect(tt,tt,et,et)}},ka=.8908130915292852,kr=sin(pi$1/10)/sin(7*pi$1/10),kx=sin(tau$1/10)*kr,ky=-cos(tau$1/10)*kr,symbolStar={draw(j,_e){const et=sqrt$1(_e*ka),tt=kx*et,rt=ky*et;j.moveTo(0,-et),j.lineTo(tt,rt);for(let nt=1;nt<5;++nt){const ot=tau$1*nt/5,it=cos(ot),st=sin(ot);j.lineTo(st*et,-it*et),j.lineTo(it*tt-st*rt,st*tt+it*rt)}j.closePath()}},sqrt3=sqrt$1(3),symbolTriangle={draw(j,_e){const et=-sqrt$1(_e/(sqrt3*3));j.moveTo(0,et*2),j.lineTo(-sqrt3*et,-et),j.lineTo(sqrt3*et,-et),j.closePath()}},c=-.5,s=sqrt$1(3)/2,k=1/sqrt$1(12),a=(k/2+1)*3,symbolWye={draw(j,_e){const et=sqrt$1(_e/a),tt=et/2,rt=et*k,nt=tt,ot=et*k+et,it=-nt,st=ot;j.moveTo(tt,rt),j.lineTo(nt,ot),j.lineTo(it,st),j.lineTo(c*tt-s*rt,s*tt+c*rt),j.lineTo(c*nt-s*ot,s*nt+c*ot),j.lineTo(c*it-s*st,s*it+c*st),j.lineTo(c*tt+s*rt,c*rt-s*tt),j.lineTo(c*nt+s*ot,c*ot-s*nt),j.lineTo(c*it+s*st,c*st-s*it),j.closePath()}};function Symbol$1(j,_e){let et=null,tt=withPath(rt);j=typeof j=="function"?j:constant$1(j||symbolCircle),_e=typeof _e=="function"?_e:constant$1(_e===void 0?64:+_e);function rt(){let nt;if(et||(et=nt=tt()),j.apply(this,arguments).draw(et,+_e.apply(this,arguments)),nt)return et=null,nt+""||null}return rt.type=function(nt){return arguments.length?(j=typeof nt=="function"?nt:constant$1(nt),rt):j},rt.size=function(nt){return arguments.length?(_e=typeof nt=="function"?nt:constant$1(+nt),rt):_e},rt.context=function(nt){return arguments.length?(et=nt??null,rt):et},rt}function noop(){}function point$2(j,_e,et){j._context.bezierCurveTo((2*j._x0+j._x1)/3,(2*j._y0+j._y1)/3,(j._x0+2*j._x1)/3,(j._y0+2*j._y1)/3,(j._x0+4*j._x1+_e)/6,(j._y0+4*j._y1+et)/6)}function Basis(j){this._context=j}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(j,_e){switch(j=+j,_e=+_e,this._point){case 0:this._point=1,this._line?this._context.lineTo(j,_e):this._context.moveTo(j,_e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$2(this,j,_e);break}this._x0=this._x1,this._x1=j,this._y0=this._y1,this._y1=_e}};function curveBasis(j){return new Basis(j)}function BasisClosed(j){this._context=j}BasisClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(j,_e){switch(j=+j,_e=+_e,this._point){case 0:this._point=1,this._x2=j,this._y2=_e;break;case 1:this._point=2,this._x3=j,this._y3=_e;break;case 2:this._point=3,this._x4=j,this._y4=_e,this._context.moveTo((this._x0+4*this._x1+j)/6,(this._y0+4*this._y1+_e)/6);break;default:point$2(this,j,_e);break}this._x0=this._x1,this._x1=j,this._y0=this._y1,this._y1=_e}};function curveBasisClosed(j){return new BasisClosed(j)}function BasisOpen(j){this._context=j}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(j,_e){switch(j=+j,_e=+_e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var et=(this._x0+4*this._x1+j)/6,tt=(this._y0+4*this._y1+_e)/6;this._line?this._context.lineTo(et,tt):this._context.moveTo(et,tt);break;case 3:this._point=4;default:point$2(this,j,_e);break}this._x0=this._x1,this._x1=j,this._y0=this._y1,this._y1=_e}};function curveBasisOpen(j){return new BasisOpen(j)}function LinearClosed(j){this._context=j}LinearClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(j,_e){j=+j,_e=+_e,this._point?this._context.lineTo(j,_e):(this._point=1,this._context.moveTo(j,_e))}};function curveLinearClosed(j){return new LinearClosed(j)}function sign(j){return j<0?-1:1}function slope3(j,_e,et){var tt=j._x1-j._x0,rt=_e-j._x1,nt=(j._y1-j._y0)/(tt||rt<0&&-0),ot=(et-j._y1)/(rt||tt<0&&-0),it=(nt*rt+ot*tt)/(tt+rt);return(sign(nt)+sign(ot))*Math.min(Math.abs(nt),Math.abs(ot),.5*Math.abs(it))||0}function slope2(j,_e){var et=j._x1-j._x0;return et?(3*(j._y1-j._y0)/et-_e)/2:_e}function point$1(j,_e,et){var tt=j._x0,rt=j._y0,nt=j._x1,ot=j._y1,it=(nt-tt)/3;j._context.bezierCurveTo(tt+it,rt+it*_e,nt-it,ot-it*et,nt,ot)}function MonotoneX(j){this._context=j}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(j,_e){var et=NaN;if(j=+j,_e=+_e,!(j===this._x1&&_e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(j,_e):this._context.moveTo(j,_e);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,et=slope3(this,j,_e)),et);break;default:point$1(this,this._t0,et=slope3(this,j,_e));break}this._x0=this._x1,this._x1=j,this._y0=this._y1,this._y1=_e,this._t0=et}}};function MonotoneY(j){this._context=new ReflectContext(j)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(j,_e){MonotoneX.prototype.point.call(this,_e,j)};function ReflectContext(j){this._context=j}ReflectContext.prototype={moveTo:function(j,_e){this._context.moveTo(_e,j)},closePath:function(){this._context.closePath()},lineTo:function(j,_e){this._context.lineTo(_e,j)},bezierCurveTo:function(j,_e,et,tt,rt,nt){this._context.bezierCurveTo(_e,j,tt,et,nt,rt)}};function monotoneX(j){return new MonotoneX(j)}function monotoneY(j){return new MonotoneY(j)}function Natural(j){this._context=j}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var j=this._x,_e=this._y,et=j.length;if(et)if(this._line?this._context.lineTo(j[0],_e[0]):this._context.moveTo(j[0],_e[0]),et===2)this._context.lineTo(j[1],_e[1]);else for(var tt=controlPoints(j),rt=controlPoints(_e),nt=0,ot=1;ot=0;--_e)rt[_e]=(ot[_e]-rt[_e+1])/nt[_e];for(nt[et-1]=(j[et]+rt[et-1])/2,_e=0;_e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(j,_e){switch(j=+j,_e=+_e,this._point){case 0:this._point=1,this._line?this._context.lineTo(j,_e):this._context.moveTo(j,_e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,_e),this._context.lineTo(j,_e);else{var et=this._x*(1-this._t)+j*this._t;this._context.lineTo(et,this._y),this._context.lineTo(et,_e)}break}}this._x=j,this._y=_e}};function curveStep(j){return new Step(j,.5)}function stepBefore(j){return new Step(j,0)}function stepAfter(j){return new Step(j,1)}function stackOffsetNone(j,_e){if((ot=j.length)>1)for(var et=1,tt,rt,nt=j[_e[0]],ot,it=nt.length;et=0;)et[_e]=_e;return et}function stackValue(j,_e){return j[_e]}function stackSeries(j){const _e=[];return _e.key=j,_e}function shapeStack(){var j=constant$1([]),_e=stackOrderNone,et=stackOffsetNone,tt=stackValue;function rt(nt){var ot=Array.from(j.apply(this,arguments),stackSeries),it,st=ot.length,lt=-1,ut;for(const ct of nt)for(it=0,++lt;it0){for(var et,tt,rt=0,nt=j[0].length,ot;rt0){for(var et=0,tt=j[_e[0]],rt,nt=tt.length;et0)||!((nt=(rt=j[_e[0]]).length)>0))){for(var et=0,tt=1,rt,nt,ot;tt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$c(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}var symbolFactories={symbolCircle,symbolCross,symbolDiamond,symbolSquare,symbolStar,symbolTriangle,symbolWye},RADIAN$2=Math.PI/180,getSymbolFactory=function j(_e){var et="symbol".concat(upperFirst$1(_e));return symbolFactories[et]||symbolCircle},calculateAreaSize=function j(_e,et,tt){if(et==="area")return _e;switch(tt){case"cross":return 5*_e*_e/9;case"diamond":return .5*_e*_e/Math.sqrt(3);case"square":return _e*_e;case"star":{var rt=18*RADIAN$2;return 1.25*_e*_e*(Math.tan(rt)-Math.tan(rt*2)*Math.pow(Math.tan(rt),2))}case"triangle":return Math.sqrt(3)*_e*_e/4;case"wye":return(21-10*Math.sqrt(3))*_e*_e/8;default:return Math.PI*_e*_e/4}},registerSymbol=function j(_e,et){symbolFactories["symbol".concat(upperFirst$1(_e))]=et},Symbols=function j(_e){var et=_e.type,tt=et===void 0?"circle":et,rt=_e.size,nt=rt===void 0?64:rt,ot=_e.sizeType,it=ot===void 0?"area":ot,st=_objectWithoutProperties$c(_e,_excluded$c),lt=_objectSpread$x(_objectSpread$x({},st),{},{type:tt,size:nt,sizeType:it}),ut=function(){var mt=getSymbolFactory(tt),bt=Symbol$1().type(mt).size(calculateAreaSize(nt,it,tt));return bt()},ct=lt.className,dt=lt.cx,ft=lt.cy,pt=filterProps(lt,!0);return dt===+dt&&ft===+ft&&nt===+nt?React.createElement("path",_extends$l({},pt,{className:clsx("recharts-symbols",ct),transform:"translate(".concat(dt,", ").concat(ft,")"),d:ut()})):null};Symbols.registerSymbol=registerSymbol;function _typeof$A(j){"@babel/helpers - typeof";return _typeof$A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$A(j)}function _extends$k(){return _extends$k=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$a(j){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$a(j)}function _defineProperty$y(j,_e,et){return _e=_toPropertyKey$z(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$z(j){var _e=_toPrimitive$z(j,"string");return _typeof$A(_e)==="symbol"?_e:String(_e)}function _toPrimitive$z(j,_e){if(_typeof$A(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$A(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var SIZE=32,DefaultLegendContent=function(j){_inherits$a(et,j);var _e=_createSuper$a(et);function et(){return _classCallCheck$d(this,et),_e.apply(this,arguments)}return _createClass$d(et,[{key:"renderIcon",value:function(rt){var nt=this.props.inactiveColor,ot=SIZE/2,it=SIZE/6,st=SIZE/3,lt=rt.inactive?nt:rt.color;if(rt.type==="plainline")return React.createElement("line",{strokeWidth:4,fill:"none",stroke:lt,strokeDasharray:rt.payload.strokeDasharray,x1:0,y1:ot,x2:SIZE,y2:ot,className:"recharts-legend-icon"});if(rt.type==="line")return React.createElement("path",{strokeWidth:4,fill:"none",stroke:lt,d:"M0,".concat(ot,"h").concat(st,` - A`).concat(it,",").concat(it,",0,1,1,").concat(2*st,",").concat(ot,` - H`).concat(SIZE,"M").concat(2*st,",").concat(ot,` - A`).concat(it,",").concat(it,",0,1,1,").concat(st,",").concat(ot),className:"recharts-legend-icon"});if(rt.type==="rect")return React.createElement("path",{stroke:"none",fill:lt,d:"M0,".concat(SIZE/8,"h").concat(SIZE,"v").concat(SIZE*3/4,"h").concat(-SIZE,"z"),className:"recharts-legend-icon"});if(React.isValidElement(rt.legendIcon)){var ut=_objectSpread$w({},rt);return delete ut.legendIcon,React.cloneElement(rt.legendIcon,ut)}return React.createElement(Symbols,{fill:lt,cx:ot,cy:ot,size:SIZE,sizeType:"diameter",type:rt.type})}},{key:"renderItems",value:function(){var rt=this,nt=this.props,ot=nt.payload,it=nt.iconSize,st=nt.layout,lt=nt.formatter,ut=nt.inactiveColor,ct={x:0,y:0,width:SIZE,height:SIZE},dt={display:st==="horizontal"?"inline-block":"block",marginRight:10},ft={display:"inline-block",verticalAlign:"middle",marginRight:4};return ot.map(function(pt,gt){var mt,bt=pt.formatter||lt,_t=clsx((mt={"recharts-legend-item":!0},_defineProperty$y(mt,"legend-item-".concat(gt),!0),_defineProperty$y(mt,"inactive",pt.inactive),mt));if(pt.type==="none")return null;var xt=isFunction$6(pt.value)?null:pt.value;warn(!isFunction$6(pt.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var yt=pt.inactive?ut:pt.color;return React.createElement("li",_extends$k({className:_t,style:dt,key:"legend-item-".concat(gt)},adaptEventsOfChild(rt.props,pt,gt)),React.createElement(Surface,{width:it,height:it,viewBox:ct,style:ft},rt.renderIcon(pt)),React.createElement("span",{className:"recharts-legend-item-text",style:{color:yt}},bt?bt(xt,pt,gt):xt))})}},{key:"render",value:function(){var rt=this.props,nt=rt.payload,ot=rt.layout,it=rt.align;if(!nt||!nt.length)return null;var st={padding:0,margin:0,textAlign:ot==="horizontal"?it:"left"};return React.createElement("ul",{className:"recharts-default-legend",style:st},this.renderItems())}}]),et}(reactExports.PureComponent);_defineProperty$y(DefaultLegendContent,"displayName","Legend");_defineProperty$y(DefaultLegendContent,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var baseIteratee$3=_baseIteratee,baseUniq=_baseUniq;function uniqBy(j,_e){return j&&j.length?baseUniq(j,baseIteratee$3(_e)):[]}var uniqBy_1=uniqBy;const uniqBy$1=getDefaultExportFromCjs(uniqBy_1);function getUniqPayload(j,_e,et){return _e===!0?uniqBy$1(j,et):isFunction$6(_e)?uniqBy$1(j,_e):j}function _typeof$z(j){"@babel/helpers - typeof";return _typeof$z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$z(j)}var _excluded$b=["ref"];function ownKeys$v(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$v(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$9(j){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$9(j)}function _defineProperty$x(j,_e,et){return _e=_toPropertyKey$y(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$y(j){var _e=_toPrimitive$y(j,"string");return _typeof$z(_e)==="symbol"?_e:String(_e)}function _toPrimitive$y(j,_e){if(_typeof$z(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$z(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}function _objectWithoutProperties$b(j,_e){if(j==null)return{};var et=_objectWithoutPropertiesLoose$b(j,_e),tt,rt;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(j);for(rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$b(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function defaultUniqBy$1(j){return j.value}function renderContent$1(j,_e){if(React.isValidElement(j))return React.cloneElement(j,_e);if(typeof j=="function")return React.createElement(j,_e);_e.ref;var et=_objectWithoutProperties$b(_e,_excluded$b);return React.createElement(DefaultLegendContent,et)}var EPS$1=1,Legend=function(j){_inherits$9(et,j);var _e=_createSuper$9(et);function et(){var tt;_classCallCheck$c(this,et);for(var rt=arguments.length,nt=new Array(rt),ot=0;otEPS$1||Math.abs(nt.height-this.lastBoundingBox.height)>EPS$1)&&(this.lastBoundingBox.width=nt.width,this.lastBoundingBox.height=nt.height,rt&&rt(nt))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,rt&&rt(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_objectSpread$v({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(rt){var nt=this.props,ot=nt.layout,it=nt.align,st=nt.verticalAlign,lt=nt.margin,ut=nt.chartWidth,ct=nt.chartHeight,dt,ft;if(!rt||(rt.left===void 0||rt.left===null)&&(rt.right===void 0||rt.right===null))if(it==="center"&&ot==="vertical"){var pt=this.getBBoxSnapshot();dt={left:((ut||0)-pt.width)/2}}else dt=it==="right"?{right:lt&<.right||0}:{left:lt&<.left||0};if(!rt||(rt.top===void 0||rt.top===null)&&(rt.bottom===void 0||rt.bottom===null))if(st==="middle"){var gt=this.getBBoxSnapshot();ft={top:((ct||0)-gt.height)/2}}else ft=st==="bottom"?{bottom:lt&<.bottom||0}:{top:lt&<.top||0};return _objectSpread$v(_objectSpread$v({},dt),ft)}},{key:"render",value:function(){var rt=this,nt=this.props,ot=nt.content,it=nt.width,st=nt.height,lt=nt.wrapperStyle,ut=nt.payloadUniqBy,ct=nt.payload,dt=_objectSpread$v(_objectSpread$v({position:"absolute",width:it||"auto",height:st||"auto"},this.getDefaultPosition(lt)),lt);return React.createElement("div",{className:"recharts-legend-wrapper",style:dt,ref:function(pt){rt.wrapperNode=pt}},renderContent$1(ot,_objectSpread$v(_objectSpread$v({},this.props),{},{payload:getUniqPayload(ct,ut,defaultUniqBy$1)})))}}],[{key:"getWithHeight",value:function(rt,nt){var ot=rt.props.layout;return ot==="vertical"&&isNumber(rt.props.height)?{height:rt.props.height}:ot==="horizontal"?{width:rt.props.width||nt}:null}}]),et}(reactExports.PureComponent);_defineProperty$x(Legend,"displayName","Legend");_defineProperty$x(Legend,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function _typeof$y(j){"@babel/helpers - typeof";return _typeof$y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$y(j)}function _slicedToArray$b(j,_e){return _arrayWithHoles$c(j)||_iterableToArrayLimit$b(j,_e)||_unsupportedIterableToArray$j(j,_e)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$j(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$j(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$j(j,_e)}}function _arrayLikeToArray$j(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$b(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$c(j){if(Array.isArray(j))return j}function ownKeys$u(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$u(j){for(var _e=1;_e0;)if(!et.equals(j[tt],_e[tt],tt,tt,j,_e,et))return!1;return!0}function areDatesEqual(j,_e){return sameValueZeroEqual(j.getTime(),_e.getTime())}function areMapsEqual(j,_e,et){if(j.size!==_e.size)return!1;for(var tt={},rt=j.entries(),nt=0,ot,it;(ot=rt.next())&&!ot.done;){for(var st=_e.entries(),lt=!1,ut=0;(it=st.next())&&!it.done;){var ct=ot.value,dt=ct[0],ft=ct[1],pt=it.value,gt=pt[0],mt=pt[1];!lt&&!tt[ut]&&(lt=et.equals(dt,gt,nt,ut,j,_e,et)&&et.equals(ft,mt,dt,gt,j,_e,et))&&(tt[ut]=!0),ut++}if(!lt)return!1;nt++}return!0}function areObjectsEqual(j,_e,et){var tt=keys(j),rt=tt.length;if(keys(_e).length!==rt)return!1;for(var nt;rt-- >0;)if(nt=tt[rt],nt===OWNER&&(j.$$typeof||_e.$$typeof)&&j.$$typeof!==_e.$$typeof||!hasOwn(_e,nt)||!et.equals(j[nt],_e[nt],nt,nt,j,_e,et))return!1;return!0}function areObjectsEqualStrict(j,_e,et){var tt=getStrictProperties(j),rt=tt.length;if(getStrictProperties(_e).length!==rt)return!1;for(var nt,ot,it;rt-- >0;)if(nt=tt[rt],nt===OWNER&&(j.$$typeof||_e.$$typeof)&&j.$$typeof!==_e.$$typeof||!hasOwn(_e,nt)||!et.equals(j[nt],_e[nt],nt,nt,j,_e,et)||(ot=getOwnPropertyDescriptor(j,nt),it=getOwnPropertyDescriptor(_e,nt),(ot||it)&&(!ot||!it||ot.configurable!==it.configurable||ot.enumerable!==it.enumerable||ot.writable!==it.writable)))return!1;return!0}function arePrimitiveWrappersEqual(j,_e){return sameValueZeroEqual(j.valueOf(),_e.valueOf())}function areRegExpsEqual(j,_e){return j.source===_e.source&&j.flags===_e.flags}function areSetsEqual(j,_e,et){if(j.size!==_e.size)return!1;for(var tt={},rt=j.values(),nt,ot;(nt=rt.next())&&!nt.done;){for(var it=_e.values(),st=!1,lt=0;(ot=it.next())&&!ot.done;)!st&&!tt[lt]&&(st=et.equals(nt.value,ot.value,nt.value,ot.value,j,_e,et))&&(tt[lt]=!0),lt++;if(!st)return!1}return!0}function areTypedArraysEqual(j,_e){var et=j.length;if(_e.length!==et)return!1;for(;et-- >0;)if(j[et]!==_e[et])return!1;return!0}var ARGUMENTS_TAG="[object Arguments]",BOOLEAN_TAG="[object Boolean]",DATE_TAG="[object Date]",MAP_TAG="[object Map]",NUMBER_TAG="[object Number]",OBJECT_TAG="[object Object]",REG_EXP_TAG="[object RegExp]",SET_TAG="[object Set]",STRING_TAG="[object String]",isArray$2=Array.isArray,isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,assign=Object.assign,getTag=Object.prototype.toString.call.bind(Object.prototype.toString);function createEqualityComparator(j){var _e=j.areArraysEqual,et=j.areDatesEqual,tt=j.areMapsEqual,rt=j.areObjectsEqual,nt=j.arePrimitiveWrappersEqual,ot=j.areRegExpsEqual,it=j.areSetsEqual,st=j.areTypedArraysEqual;return function(ut,ct,dt){if(ut===ct)return!0;if(ut==null||ct==null||typeof ut!="object"||typeof ct!="object")return ut!==ut&&ct!==ct;var ft=ut.constructor;if(ft!==ct.constructor)return!1;if(ft===Object)return rt(ut,ct,dt);if(isArray$2(ut))return _e(ut,ct,dt);if(isTypedArray!=null&&isTypedArray(ut))return st(ut,ct,dt);if(ft===Date)return et(ut,ct,dt);if(ft===RegExp)return ot(ut,ct,dt);if(ft===Map)return tt(ut,ct,dt);if(ft===Set)return it(ut,ct,dt);var pt=getTag(ut);return pt===DATE_TAG?et(ut,ct,dt):pt===REG_EXP_TAG?ot(ut,ct,dt):pt===MAP_TAG?tt(ut,ct,dt):pt===SET_TAG?it(ut,ct,dt):pt===OBJECT_TAG?typeof ut.then!="function"&&typeof ct.then!="function"&&rt(ut,ct,dt):pt===ARGUMENTS_TAG?rt(ut,ct,dt):pt===BOOLEAN_TAG||pt===NUMBER_TAG||pt===STRING_TAG?nt(ut,ct,dt):!1}}function createEqualityComparatorConfig(j){var _e=j.circular,et=j.createCustomConfig,tt=j.strict,rt={areArraysEqual:tt?areObjectsEqualStrict:areArraysEqual,areDatesEqual,areMapsEqual:tt?combineComparators(areMapsEqual,areObjectsEqualStrict):areMapsEqual,areObjectsEqual:tt?areObjectsEqualStrict:areObjectsEqual,arePrimitiveWrappersEqual,areRegExpsEqual,areSetsEqual:tt?combineComparators(areSetsEqual,areObjectsEqualStrict):areSetsEqual,areTypedArraysEqual:tt?areObjectsEqualStrict:areTypedArraysEqual};if(et&&(rt=assign({},rt,et(rt))),_e){var nt=createIsCircular(rt.areArraysEqual),ot=createIsCircular(rt.areMapsEqual),it=createIsCircular(rt.areObjectsEqual),st=createIsCircular(rt.areSetsEqual);rt=assign({},rt,{areArraysEqual:nt,areMapsEqual:ot,areObjectsEqual:it,areSetsEqual:st})}return rt}function createInternalEqualityComparator(j){return function(_e,et,tt,rt,nt,ot,it){return j(_e,et,it)}}function createIsEqual(j){var _e=j.circular,et=j.comparator,tt=j.createState,rt=j.equals,nt=j.strict;if(tt)return function(st,lt){var ut=tt(),ct=ut.cache,dt=ct===void 0?_e?new WeakMap:void 0:ct,ft=ut.meta;return et(st,lt,{cache:dt,equals:rt,meta:ft,strict:nt})};if(_e)return function(st,lt){return et(st,lt,{cache:new WeakMap,equals:rt,meta:void 0,strict:nt})};var ot={cache:void 0,equals:rt,meta:void 0,strict:nt};return function(st,lt){return et(st,lt,ot)}}var deepEqual=createCustomEqual();createCustomEqual({strict:!0});createCustomEqual({circular:!0});createCustomEqual({circular:!0,strict:!0});createCustomEqual({createInternalComparator:function(){return sameValueZeroEqual}});createCustomEqual({strict:!0,createInternalComparator:function(){return sameValueZeroEqual}});createCustomEqual({circular:!0,createInternalComparator:function(){return sameValueZeroEqual}});createCustomEqual({circular:!0,createInternalComparator:function(){return sameValueZeroEqual},strict:!0});function createCustomEqual(j){j===void 0&&(j={});var _e=j.circular,et=_e===void 0?!1:_e,tt=j.createInternalComparator,rt=j.createState,nt=j.strict,ot=nt===void 0?!1:nt,it=createEqualityComparatorConfig(j),st=createEqualityComparator(it),lt=tt?tt(st):createInternalEqualityComparator(st);return createIsEqual({circular:et,comparator:st,createState:rt,equals:lt,strict:ot})}function safeRequestAnimationFrame(j){typeof requestAnimationFrame<"u"&&requestAnimationFrame(j)}function setRafTimeout(j){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,et=-1,tt=function rt(nt){et<0&&(et=nt),nt-et>_e?(j(nt),et=-1):safeRequestAnimationFrame(rt)};requestAnimationFrame(tt)}function _typeof$x(j){"@babel/helpers - typeof";return _typeof$x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$x(j)}function _toArray(j){return _arrayWithHoles$b(j)||_iterableToArray$b(j)||_unsupportedIterableToArray$i(j)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$i(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$i(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$i(j,_e)}}function _arrayLikeToArray$i(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArray$b(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _arrayWithHoles$b(j){if(Array.isArray(j))return j}function createAnimateManager(){var j={},_e=function(){return null},et=!1,tt=function rt(nt){if(!et){if(Array.isArray(nt)){if(!nt.length)return;var ot=nt,it=_toArray(ot),st=it[0],lt=it.slice(1);if(typeof st=="number"){setRafTimeout(rt.bind(null,lt),st);return}rt(st),setRafTimeout(rt.bind(null,lt));return}_typeof$x(nt)==="object"&&(j=nt,_e(j)),typeof nt=="function"&&nt()}};return{stop:function(){et=!0},start:function(nt){et=!1,tt(nt)},subscribe:function(nt){return _e=nt,function(){_e=function(){return null}}}}}function _typeof$w(j){"@babel/helpers - typeof";return _typeof$w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$w(j)}function ownKeys$t(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$t(j){for(var _e=1;_ej.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}var ACCURACY=1e-4,cubicBezierFactor=function j(_e,et){return[0,3*_e,3*et-6*_e,3*_e-3*et+1]},multyTime=function j(_e,et){return _e.map(function(tt,rt){return tt*Math.pow(et,rt)}).reduce(function(tt,rt){return tt+rt})},cubicBezier=function j(_e,et){return function(tt){var rt=cubicBezierFactor(_e,et);return multyTime(rt,tt)}},derivativeCubicBezier=function j(_e,et){return function(tt){var rt=cubicBezierFactor(_e,et),nt=[].concat(_toConsumableArray$a(rt.map(function(ot,it){return ot*it}).slice(1)),[0]);return multyTime(nt,tt)}},configBezier=function j(){for(var _e=arguments.length,et=new Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt];var rt=et[0],nt=et[1],ot=et[2],it=et[3];if(et.length===1)switch(et[0]){case"linear":rt=0,nt=0,ot=1,it=1;break;case"ease":rt=.25,nt=.1,ot=.25,it=1;break;case"ease-in":rt=.42,nt=0,ot=1,it=1;break;case"ease-out":rt=.42,nt=0,ot=.58,it=1;break;case"ease-in-out":rt=0,nt=0,ot=.58,it=1;break;default:{var st=et[0].split("(");if(st[0]==="cubic-bezier"&&st[1].split(")")[0].split(",").length===4){var lt=st[1].split(")")[0].split(",").map(function(mt){return parseFloat(mt)}),ut=_slicedToArray$a(lt,4);rt=ut[0],nt=ut[1],ot=ut[2],it=ut[3]}}}var ct=cubicBezier(rt,ot),dt=cubicBezier(nt,it),ft=derivativeCubicBezier(rt,ot),pt=function(bt){return bt>1?1:bt<0?0:bt},gt=function(bt){for(var _t=bt>1?1:bt,xt=_t,yt=0;yt<8;++yt){var Et=ct(xt)-_t,St=ft(xt);if(Math.abs(Et-_t)0&&arguments[0]!==void 0?arguments[0]:{},et=_e.stiff,tt=et===void 0?100:et,rt=_e.damping,nt=rt===void 0?8:rt,ot=_e.dt,it=ot===void 0?17:ot,st=function(ut,ct,dt){var ft=-(ut-ct)*tt,pt=dt*nt,gt=dt+(ft-pt)*it/1e3,mt=dt*it/1e3+ut;return Math.abs(mt-ct)j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$9(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$9(j){if(Array.isArray(j))return j}var alpha=function j(_e,et,tt){return _e+(et-_e)*tt},needContinue=function j(_e){var et=_e.from,tt=_e.to;return et!==tt},calStepperVals=function j(_e,et,tt){var rt=mapObject(function(nt,ot){if(needContinue(ot)){var it=_e(ot.from,ot.to,ot.velocity),st=_slicedToArray$9(it,2),lt=st[0],ut=st[1];return _objectSpread$s(_objectSpread$s({},ot),{},{from:lt,velocity:ut})}return ot},et);return tt<1?mapObject(function(nt,ot){return needContinue(ot)?_objectSpread$s(_objectSpread$s({},ot),{},{velocity:alpha(ot.velocity,rt[nt].velocity,tt),from:alpha(ot.from,rt[nt].from,tt)}):ot},et):j(_e,rt,tt-1)};const configUpdate=function(j,_e,et,tt,rt){var nt=getIntersectionKeys(j,_e),ot=nt.reduce(function(mt,bt){return _objectSpread$s(_objectSpread$s({},mt),{},_defineProperty$u({},bt,[j[bt],_e[bt]]))},{}),it=nt.reduce(function(mt,bt){return _objectSpread$s(_objectSpread$s({},mt),{},_defineProperty$u({},bt,{from:j[bt],velocity:0,to:_e[bt]}))},{}),st=-1,lt,ut,ct=function(){return null},dt=function(){return mapObject(function(bt,_t){return _t.from},it)},ft=function(){return!Object.values(it).filter(needContinue).length},pt=function(bt){lt||(lt=bt);var _t=bt-lt,xt=_t/et.dt;it=calStepperVals(et,it,xt),rt(_objectSpread$s(_objectSpread$s(_objectSpread$s({},j),_e),dt())),lt=bt,ft()||(st=requestAnimationFrame(ct))},gt=function(bt){ut||(ut=bt);var _t=(bt-ut)/tt,xt=mapObject(function(Et,St){return alpha.apply(void 0,_toConsumableArray$9(St).concat([et(_t)]))},ot);if(rt(_objectSpread$s(_objectSpread$s(_objectSpread$s({},j),_e),xt)),_t<1)st=requestAnimationFrame(ct);else{var yt=mapObject(function(Et,St){return alpha.apply(void 0,_toConsumableArray$9(St).concat([et(1)]))},ot);rt(_objectSpread$s(_objectSpread$s(_objectSpread$s({},j),_e),yt))}};return ct=et.isStepper?pt:gt,function(){return requestAnimationFrame(ct),function(){cancelAnimationFrame(st)}}};function _typeof$u(j){"@babel/helpers - typeof";return _typeof$u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$u(j)}var _excluded$a=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function _objectWithoutProperties$a(j,_e){if(j==null)return{};var et=_objectWithoutPropertiesLoose$a(j,_e),tt,rt;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(j);for(rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$a(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function _toConsumableArray$8(j){return _arrayWithoutHoles$8(j)||_iterableToArray$8(j)||_unsupportedIterableToArray$f(j)||_nonIterableSpread$8()}function _nonIterableSpread$8(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$f(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$f(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$f(j,_e)}}function _iterableToArray$8(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _arrayWithoutHoles$8(j){if(Array.isArray(j))return _arrayLikeToArray$f(j)}function _arrayLikeToArray$f(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function ownKeys$r(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$r(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$8(j){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$8(j)}var Animate=function(j){_inherits$8(et,j);var _e=_createSuper$8(et);function et(tt,rt){var nt;_classCallCheck$b(this,et),nt=_e.call(this,tt,rt);var ot=nt.props,it=ot.isActive,st=ot.attributeName,lt=ot.from,ut=ot.to,ct=ot.steps,dt=ot.children,ft=ot.duration;if(nt.handleStyleChange=nt.handleStyleChange.bind(_assertThisInitialized$8(nt)),nt.changeStyle=nt.changeStyle.bind(_assertThisInitialized$8(nt)),!it||ft<=0)return nt.state={style:{}},typeof dt=="function"&&(nt.state={style:ut}),_possibleConstructorReturn$8(nt);if(ct&&ct.length)nt.state={style:ct[0].style};else if(lt){if(typeof dt=="function")return nt.state={style:lt},_possibleConstructorReturn$8(nt);nt.state={style:st?_defineProperty$t({},st,lt):lt}}else nt.state={style:{}};return nt}return _createClass$b(et,[{key:"componentDidMount",value:function(){var rt=this.props,nt=rt.isActive,ot=rt.canBegin;this.mounted=!0,!(!nt||!ot)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(rt){var nt=this.props,ot=nt.isActive,it=nt.canBegin,st=nt.attributeName,lt=nt.shouldReAnimate,ut=nt.to,ct=nt.from,dt=this.state.style;if(it){if(!ot){var ft={style:st?_defineProperty$t({},st,ut):ut};this.state&&dt&&(st&&dt[st]!==ut||!st&&dt!==ut)&&this.setState(ft);return}if(!(deepEqual(rt.to,ut)&&rt.canBegin&&rt.isActive)){var pt=!rt.canBegin||!rt.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var gt=pt||lt?ct:rt.to;if(this.state&&dt){var mt={style:st?_defineProperty$t({},st,gt):gt};(st&&[st]!==gt||!st&&dt!==gt)&&this.setState(mt)}this.runAnimation(_objectSpread$r(_objectSpread$r({},this.props),{},{from:gt,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var rt=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),rt&&rt()}},{key:"handleStyleChange",value:function(rt){this.changeStyle(rt)}},{key:"changeStyle",value:function(rt){this.mounted&&this.setState({style:rt})}},{key:"runJSAnimation",value:function(rt){var nt=this,ot=rt.from,it=rt.to,st=rt.duration,lt=rt.easing,ut=rt.begin,ct=rt.onAnimationEnd,dt=rt.onAnimationStart,ft=configUpdate(ot,it,configEasing(lt),st,this.changeStyle),pt=function(){nt.stopJSAnimation=ft()};this.manager.start([dt,ut,pt,st,ct])}},{key:"runStepAnimation",value:function(rt){var nt=this,ot=rt.steps,it=rt.begin,st=rt.onAnimationStart,lt=ot[0],ut=lt.style,ct=lt.duration,dt=ct===void 0?0:ct,ft=function(gt,mt,bt){if(bt===0)return gt;var _t=mt.duration,xt=mt.easing,yt=xt===void 0?"ease":xt,Et=mt.style,St=mt.properties,Tt=mt.onAnimationEnd,kt=bt>0?ot[bt-1]:mt,$t=St||Object.keys(Et);if(typeof yt=="function"||yt==="spring")return[].concat(_toConsumableArray$8(gt),[nt.runJSAnimation.bind(nt,{from:kt.style,to:Et,duration:_t,easing:yt}),_t]);var Ct=getTransitionVal($t,_t,yt),It=_objectSpread$r(_objectSpread$r(_objectSpread$r({},kt.style),Et),{},{transition:Ct});return[].concat(_toConsumableArray$8(gt),[It,_t,Tt]).filter(identity$3)};return this.manager.start([st].concat(_toConsumableArray$8(ot.reduce(ft,[ut,Math.max(dt,it)])),[rt.onAnimationEnd]))}},{key:"runAnimation",value:function(rt){this.manager||(this.manager=createAnimateManager());var nt=rt.begin,ot=rt.duration,it=rt.attributeName,st=rt.to,lt=rt.easing,ut=rt.onAnimationStart,ct=rt.onAnimationEnd,dt=rt.steps,ft=rt.children,pt=this.manager;if(this.unSubscribe=pt.subscribe(this.handleStyleChange),typeof lt=="function"||typeof ft=="function"||lt==="spring"){this.runJSAnimation(rt);return}if(dt.length>1){this.runStepAnimation(rt);return}var gt=it?_defineProperty$t({},it,st):st,mt=getTransitionVal(Object.keys(gt),ot,lt);pt.start([ut,nt,_objectSpread$r(_objectSpread$r({},gt),{},{transition:mt}),ot,ct])}},{key:"render",value:function(){var rt=this.props,nt=rt.children;rt.begin;var ot=rt.duration;rt.attributeName,rt.easing;var it=rt.isActive;rt.steps,rt.from,rt.to,rt.canBegin,rt.onAnimationEnd,rt.shouldReAnimate,rt.onAnimationReStart;var st=_objectWithoutProperties$a(rt,_excluded$a),lt=reactExports.Children.count(nt),ut=translateStyle(this.state.style);if(typeof nt=="function")return nt(ut);if(!it||lt===0||ot<=0)return nt;var ct=function(ft){var pt=ft.props,gt=pt.style,mt=gt===void 0?{}:gt,bt=pt.className,_t=reactExports.cloneElement(ft,_objectSpread$r(_objectSpread$r({},st),{},{style:_objectSpread$r(_objectSpread$r({},mt),ut),className:bt}));return _t};return lt===1?ct(reactExports.Children.only(nt)):React.createElement("div",null,reactExports.Children.map(nt,function(dt){return ct(dt)}))}}]),et}(reactExports.PureComponent);Animate.displayName="Animate";Animate.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function j(){},onAnimationStart:function j(){}};Animate.propTypes={from:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),to:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),attributeName:PropTypes.string,duration:PropTypes.number,begin:PropTypes.number,easing:PropTypes.oneOfType([PropTypes.string,PropTypes.func]),steps:PropTypes.arrayOf(PropTypes.shape({duration:PropTypes.number.isRequired,style:PropTypes.object.isRequired,easing:PropTypes.oneOfType([PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),PropTypes.func]),properties:PropTypes.arrayOf("string"),onAnimationEnd:PropTypes.func})),children:PropTypes.oneOfType([PropTypes.node,PropTypes.func]),isActive:PropTypes.bool,canBegin:PropTypes.bool,onAnimationEnd:PropTypes.func,shouldReAnimate:PropTypes.bool,onAnimationStart:PropTypes.func,onAnimationReStart:PropTypes.func};Number.isFinite===void 0&&(Number.isFinite=function(j){return typeof j=="number"&&isFinite(j)});PropTypes.object,PropTypes.object,PropTypes.object,PropTypes.element;PropTypes.object,PropTypes.object,PropTypes.object,PropTypes.oneOfType([PropTypes.array,PropTypes.element]),PropTypes.any;function _typeof$t(j){"@babel/helpers - typeof";return _typeof$t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$t(j)}function _defineProperty$s(j,_e,et){return _e=_toPropertyKey$t(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$t(j){var _e=_toPrimitive$t(j,"string");return _typeof$t(_e)==="symbol"?_e:String(_e)}function _toPrimitive$t(j,_e){if(_typeof$t(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$t(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var CSS_CLASS_PREFIX="recharts-tooltip-wrapper",TOOLTIP_HIDDEN={visibility:"hidden"};function getTooltipCSSClassName(j){var _e,et=j.coordinate,tt=j.translateX,rt=j.translateY;return clsx(CSS_CLASS_PREFIX,(_e={},_defineProperty$s(_e,"".concat(CSS_CLASS_PREFIX,"-right"),isNumber(tt)&&et&&isNumber(et.x)&&tt>=et.x),_defineProperty$s(_e,"".concat(CSS_CLASS_PREFIX,"-left"),isNumber(tt)&&et&&isNumber(et.x)&&tt=et.y),_defineProperty$s(_e,"".concat(CSS_CLASS_PREFIX,"-top"),isNumber(rt)&&et&&isNumber(et.y)&&rtgt?Math.max(ut,st[tt]):Math.max(ct,st[tt])}function getTransformStyle(j){var _e=j.translateX,et=j.translateY,tt=j.useTranslate3d;return translateStyle({transform:tt?"translate3d(".concat(_e,"px, ").concat(et,"px, 0)"):"translate(".concat(_e,"px, ").concat(et,"px)")})}function getTooltipTranslate(j){var _e=j.allowEscapeViewBox,et=j.coordinate,tt=j.offsetTopLeft,rt=j.position,nt=j.reverseDirection,ot=j.tooltipBox,it=j.useTranslate3d,st=j.viewBox,lt,ut,ct;return ot.height>0&&ot.width>0&&et?(ut=getTooltipTranslateXY({allowEscapeViewBox:_e,coordinate:et,key:"x",offsetTopLeft:tt,position:rt,reverseDirection:nt,tooltipDimension:ot.width,viewBox:st,viewBoxDimension:st.width}),ct=getTooltipTranslateXY({allowEscapeViewBox:_e,coordinate:et,key:"y",offsetTopLeft:tt,position:rt,reverseDirection:nt,tooltipDimension:ot.height,viewBox:st,viewBoxDimension:st.height}),lt=getTransformStyle({translateX:ut,translateY:ct,useTranslate3d:it})):lt=TOOLTIP_HIDDEN,{cssProperties:lt,cssClasses:getTooltipCSSClassName({translateX:ut,translateY:ct,coordinate:et})}}function _typeof$s(j){"@babel/helpers - typeof";return _typeof$s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$s(j)}function ownKeys$q(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$q(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$7(j){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$7(j)}function _defineProperty$r(j,_e,et){return _e=_toPropertyKey$s(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$s(j){var _e=_toPrimitive$s(j,"string");return _typeof$s(_e)==="symbol"?_e:String(_e)}function _toPrimitive$s(j,_e){if(_typeof$s(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$s(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var EPSILON=1,TooltipBoundingBox=function(j){_inherits$7(et,j);var _e=_createSuper$7(et);function et(){var tt;_classCallCheck$a(this,et);for(var rt=arguments.length,nt=new Array(rt),ot=0;otEPSILON||Math.abs(rt.height-this.lastBoundingBox.height)>EPSILON)&&(this.lastBoundingBox.width=rt.width,this.lastBoundingBox.height=rt.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var rt,nt;this.props.active&&this.updateBBox(),this.state.dismissed&&(((rt=this.props.coordinate)===null||rt===void 0?void 0:rt.x)!==this.state.dismissedAtCoordinate.x||((nt=this.props.coordinate)===null||nt===void 0?void 0:nt.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var rt=this,nt=this.props,ot=nt.active,it=nt.allowEscapeViewBox,st=nt.animationDuration,lt=nt.animationEasing,ut=nt.children,ct=nt.coordinate,dt=nt.hasPayload,ft=nt.isAnimationActive,pt=nt.offset,gt=nt.position,mt=nt.reverseDirection,bt=nt.useTranslate3d,_t=nt.viewBox,xt=nt.wrapperStyle,yt=getTooltipTranslate({allowEscapeViewBox:it,coordinate:ct,offsetTopLeft:pt,position:gt,reverseDirection:mt,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:bt,viewBox:_t}),Et=yt.cssClasses,St=yt.cssProperties,Tt=_objectSpread$q(_objectSpread$q(_objectSpread$q({},ft&&ot&&translateStyle({transition:"transform ".concat(st,"ms ").concat(lt)})),St),{},{pointerEvents:"none",visibility:!this.state.dismissed&&ot&&dt?"visible":"hidden",position:"absolute",top:0,left:0},xt);return React.createElement("div",{tabIndex:-1,role:"dialog",className:Et,style:Tt,ref:function($t){rt.wrapperNode=$t}},ut)}}]),et}(reactExports.PureComponent),parseIsSsrByDefault=function j(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Global={isSsr:parseIsSsrByDefault(),get:function j(_e){return Global[_e]},set:function j(_e,et){if(typeof _e=="string")Global[_e]=et;else{var tt=Object.keys(_e);tt&&tt.length&&tt.forEach(function(rt){Global[rt]=_e[rt]})}}};function _typeof$r(j){"@babel/helpers - typeof";return _typeof$r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$r(j)}function ownKeys$p(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$p(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$6(j){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$6(j)}function _defineProperty$q(j,_e,et){return _e=_toPropertyKey$r(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$r(j){var _e=_toPrimitive$r(j,"string");return _typeof$r(_e)==="symbol"?_e:String(_e)}function _toPrimitive$r(j,_e){if(_typeof$r(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$r(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}function defaultUniqBy(j){return j.dataKey}function renderContent(j,_e){return React.isValidElement(j)?React.cloneElement(j,_e):typeof j=="function"?React.createElement(j,_e):React.createElement(DefaultTooltipContent,_e)}var Tooltip=function(j){_inherits$6(et,j);var _e=_createSuper$6(et);function et(){return _classCallCheck$9(this,et),_e.apply(this,arguments)}return _createClass$9(et,[{key:"render",value:function(){var rt=this.props,nt=rt.active,ot=rt.allowEscapeViewBox,it=rt.animationDuration,st=rt.animationEasing,lt=rt.content,ut=rt.coordinate,ct=rt.filterNull,dt=rt.isAnimationActive,ft=rt.offset,pt=rt.payload,gt=rt.payloadUniqBy,mt=rt.position,bt=rt.reverseDirection,_t=rt.useTranslate3d,xt=rt.viewBox,yt=rt.wrapperStyle,Et=pt??[];ct&&Et.length&&(Et=getUniqPayload(pt.filter(function(Tt){return Tt.value!=null}),gt,defaultUniqBy));var St=Et.length>0;return React.createElement(TooltipBoundingBox,{allowEscapeViewBox:ot,animationDuration:it,animationEasing:st,isAnimationActive:dt,active:nt,coordinate:ut,hasPayload:St,offset:ft,position:mt,reverseDirection:bt,useTranslate3d:_t,viewBox:xt,wrapperStyle:yt},renderContent(lt,_objectSpread$p(_objectSpread$p({},this.props),{},{payload:Et})))}}]),et}(reactExports.PureComponent);_defineProperty$q(Tooltip,"displayName","Tooltip");_defineProperty$q(Tooltip,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Global.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var isObject$1=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce$1(j,_e,et){var tt,rt,nt,ot,it,st,lt=0,ut=!1,ct=!1,dt=!0;if(typeof j!="function")throw new TypeError(FUNC_ERROR_TEXT$1);_e=toNumber(_e)||0,isObject$1(et)&&(ut=!!et.leading,ct="maxWait"in et,nt=ct?nativeMax(toNumber(et.maxWait)||0,_e):nt,dt="trailing"in et?!!et.trailing:dt);function ft(St){var Tt=tt,kt=rt;return tt=rt=void 0,lt=St,ot=j.apply(kt,Tt),ot}function pt(St){return lt=St,it=setTimeout(bt,_e),ut?ft(St):ot}function gt(St){var Tt=St-st,kt=St-lt,$t=_e-Tt;return ct?nativeMin($t,nt-kt):$t}function mt(St){var Tt=St-st,kt=St-lt;return st===void 0||Tt>=_e||Tt<0||ct&&kt>=nt}function bt(){var St=now();if(mt(St))return _t(St);it=setTimeout(bt,gt(St))}function _t(St){return it=void 0,dt&&tt?ft(St):(tt=rt=void 0,ot)}function xt(){it!==void 0&&clearTimeout(it),lt=0,tt=st=rt=it=void 0}function yt(){return it===void 0?ot:_t(now())}function Et(){var St=now(),Tt=mt(St);if(tt=arguments,rt=this,st=St,Tt){if(it===void 0)return pt(st);if(ct)return clearTimeout(it),it=setTimeout(bt,_e),ft(st)}return it===void 0&&(it=setTimeout(bt,_e)),ot}return Et.cancel=xt,Et.flush=yt,Et}var debounce_1=debounce$1,debounce=debounce_1,isObject=isObject_1,FUNC_ERROR_TEXT="Expected a function";function throttle(j,_e,et){var tt=!0,rt=!0;if(typeof j!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject(et)&&(tt="leading"in et?!!et.leading:tt,rt="trailing"in et?!!et.trailing:rt),debounce(j,_e,{leading:tt,maxWait:_e,trailing:rt})}var throttle_1=throttle;const throttle$1=getDefaultExportFromCjs(throttle_1);var Cell=function j(_e){return null};Cell.displayName="Cell";function _typeof$q(j){"@babel/helpers - typeof";return _typeof$q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$q(j)}function ownKeys$o(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$o(j){for(var _e=1;_e1&&arguments[1]!==void 0?arguments[1]:{};if(_e==null||Global.isSsr)return{width:0,height:0};var tt=removeInvalidKeys(et),rt=JSON.stringify({text:_e,copyStyle:tt});if(stringCache.widthCache[rt])return stringCache.widthCache[rt];try{var nt=document.getElementById(MEASUREMENT_SPAN_ID);nt||(nt=document.createElement("span"),nt.setAttribute("id",MEASUREMENT_SPAN_ID),nt.setAttribute("aria-hidden","true"),document.body.appendChild(nt));var ot=_objectSpread$o(_objectSpread$o({},SPAN_STYLE),tt);Object.assign(nt.style,ot),nt.textContent="".concat(_e);var it=nt.getBoundingClientRect(),st={width:it.width,height:it.height};return stringCache.widthCache[rt]=st,++stringCache.cacheCount>MAX_CACHE_NUM&&(stringCache.cacheCount=0,stringCache.widthCache={}),st}catch{return{width:0,height:0}}},getOffset=function j(_e){return{top:_e.top+window.scrollY-document.documentElement.clientTop,left:_e.left+window.scrollX-document.documentElement.clientLeft}};function _typeof$p(j){"@babel/helpers - typeof";return _typeof$p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$p(j)}function _slicedToArray$8(j,_e){return _arrayWithHoles$8(j)||_iterableToArrayLimit$8(j,_e)||_unsupportedIterableToArray$e(j,_e)||_nonIterableRest$8()}function _nonIterableRest$8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$e(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$e(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$e(j,_e)}}function _arrayLikeToArray$e(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$8(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$8(j){if(Array.isArray(j))return j}function _classCallCheck$8(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,_toPropertyKey$p(tt.key),tt)}}function _createClass$8(j,_e,et){return _e&&_defineProperties$8(j.prototype,_e),et&&_defineProperties$8(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}function _toPropertyKey$p(j){var _e=_toPrimitive$p(j,"string");return _typeof$p(_e)==="symbol"?_e:String(_e)}function _toPrimitive$p(j,_e){if(_typeof$p(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$p(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var MULTIPLY_OR_DIVIDE_REGEX=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ADD_OR_SUBTRACT_REGEX=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CSS_LENGTH_UNIT_REGEX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,NUM_SPLIT_REGEX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,CONVERSION_RATES={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},FIXED_CSS_LENGTH_UNITS=Object.keys(CONVERSION_RATES),STR_NAN="NaN";function convertToPx(j,_e){return j*CONVERSION_RATES[_e]}var DecimalCSS=function(){function j(_e,et){_classCallCheck$8(this,j),this.num=_e,this.unit=et,this.num=_e,this.unit=et,Number.isNaN(_e)&&(this.unit=""),et!==""&&!CSS_LENGTH_UNIT_REGEX.test(et)&&(this.num=NaN,this.unit=""),FIXED_CSS_LENGTH_UNITS.includes(et)&&(this.num=convertToPx(_e,et),this.unit="px")}return _createClass$8(j,[{key:"add",value:function(et){return this.unit!==et.unit?new j(NaN,""):new j(this.num+et.num,this.unit)}},{key:"subtract",value:function(et){return this.unit!==et.unit?new j(NaN,""):new j(this.num-et.num,this.unit)}},{key:"multiply",value:function(et){return this.unit!==""&&et.unit!==""&&this.unit!==et.unit?new j(NaN,""):new j(this.num*et.num,this.unit||et.unit)}},{key:"divide",value:function(et){return this.unit!==""&&et.unit!==""&&this.unit!==et.unit?new j(NaN,""):new j(this.num/et.num,this.unit||et.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(et){var tt,rt=(tt=NUM_SPLIT_REGEX.exec(et))!==null&&tt!==void 0?tt:[],nt=_slicedToArray$8(rt,3),ot=nt[1],it=nt[2];return new j(parseFloat(ot),it??"")}}]),j}();function calculateArithmetic(j){if(j.includes(STR_NAN))return STR_NAN;for(var _e=j;_e.includes("*")||_e.includes("/");){var et,tt=(et=MULTIPLY_OR_DIVIDE_REGEX.exec(_e))!==null&&et!==void 0?et:[],rt=_slicedToArray$8(tt,4),nt=rt[1],ot=rt[2],it=rt[3],st=DecimalCSS.parse(nt??""),lt=DecimalCSS.parse(it??""),ut=ot==="*"?st.multiply(lt):st.divide(lt);if(ut.isNaN())return STR_NAN;_e=_e.replace(MULTIPLY_OR_DIVIDE_REGEX,ut.toString())}for(;_e.includes("+")||/.-\d+(?:\.\d+)?/.test(_e);){var ct,dt=(ct=ADD_OR_SUBTRACT_REGEX.exec(_e))!==null&&ct!==void 0?ct:[],ft=_slicedToArray$8(dt,4),pt=ft[1],gt=ft[2],mt=ft[3],bt=DecimalCSS.parse(pt??""),_t=DecimalCSS.parse(mt??""),xt=gt==="+"?bt.add(_t):bt.subtract(_t);if(xt.isNaN())return STR_NAN;_e=_e.replace(ADD_OR_SUBTRACT_REGEX,xt.toString())}return _e}var PARENTHESES_REGEX=/\(([^()]*)\)/;function calculateParentheses(j){for(var _e=j;_e.includes("(");){var et=PARENTHESES_REGEX.exec(_e),tt=_slicedToArray$8(et,2),rt=tt[1];_e=_e.replace(PARENTHESES_REGEX,calculateArithmetic(rt))}return _e}function evaluateExpression(j){var _e=j.replace(/\s+/g,"");return _e=calculateParentheses(_e),_e=calculateArithmetic(_e),_e}function safeEvaluateExpression(j){try{return evaluateExpression(j)}catch{return STR_NAN}}function reduceCSSCalc(j){var _e=safeEvaluateExpression(j.slice(5,-1));return _e===STR_NAN?"":_e}var _excluded$9=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],_excluded2$4=["dx","dy","angle","className","breakAll"];function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$9(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function _slicedToArray$7(j,_e){return _arrayWithHoles$7(j)||_iterableToArrayLimit$7(j,_e)||_unsupportedIterableToArray$d(j,_e)||_nonIterableRest$7()}function _nonIterableRest$7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$d(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$d(j,_e)}}function _arrayLikeToArray$d(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$7(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$7(j){if(Array.isArray(j))return j}var BREAKING_SPACES=/[ \f\n\r\t\v\u2028\u2029]+/,calculateWordWidths=function j(_e){var et=_e.children,tt=_e.breakAll,rt=_e.style;try{var nt=[];isNil$1(et)||(tt?nt=et.toString().split(""):nt=et.toString().split(BREAKING_SPACES));var ot=nt.map(function(st){return{word:st,width:getStringSize(st,rt).width}}),it=tt?0:getStringSize(" ",rt).width;return{wordsWithComputedWidth:ot,spaceWidth:it}}catch{return null}},calculateWordsByLines=function j(_e,et,tt,rt,nt){var ot=_e.maxLines,it=_e.children,st=_e.style,lt=_e.breakAll,ut=isNumber(ot),ct=it,dt=function(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Mt.reduce(function(Rt,Lt){var Pt=Lt.word,Gt=Lt.width,qt=Rt[Rt.length-1];if(qt&&(rt==null||nt||qt.width+Gt+ttLt.width?Rt:Lt})};if(!ut)return ft;for(var gt="…",mt=function(Mt){var Rt=ct.slice(0,Mt),Lt=calculateWordWidths({breakAll:lt,style:st,children:Rt+gt}).wordsWithComputedWidth,Pt=dt(Lt),Gt=Pt.length>ot||pt(Pt).width>Number(rt);return[Gt,Pt]},bt=0,_t=ct.length-1,xt=0,yt;bt<=_t&&xt<=ct.length-1;){var Et=Math.floor((bt+_t)/2),St=Et-1,Tt=mt(St),kt=_slicedToArray$7(Tt,2),$t=kt[0],Ct=kt[1],It=mt(Et),Nt=_slicedToArray$7(It,1),Ot=Nt[0];if(!$t&&!Ot&&(bt=Et+1),$t&&Ot&&(_t=Et-1),!$t&&Ot){yt=Ct;break}xt++}return yt||ft},getWordsWithoutCalculate=function j(_e){var et=isNil$1(_e)?[]:_e.toString().split(BREAKING_SPACES);return[{words:et}]},getWordsByLines=function j(_e){var et=_e.width,tt=_e.scaleToFit,rt=_e.children,nt=_e.style,ot=_e.breakAll,it=_e.maxLines;if((et||tt)&&!Global.isSsr){var st,lt,ut=calculateWordWidths({breakAll:ot,children:rt,style:nt});if(ut){var ct=ut.wordsWithComputedWidth,dt=ut.spaceWidth;st=ct,lt=dt}else return getWordsWithoutCalculate(rt);return calculateWordsByLines({breakAll:ot,children:rt,maxLines:it,style:nt},st,lt,et,tt)}return getWordsWithoutCalculate(rt)},DEFAULT_FILL="#808080",Text$1=function j(_e){var et=_e.x,tt=et===void 0?0:et,rt=_e.y,nt=rt===void 0?0:rt,ot=_e.lineHeight,it=ot===void 0?"1em":ot,st=_e.capHeight,lt=st===void 0?"0.71em":st,ut=_e.scaleToFit,ct=ut===void 0?!1:ut,dt=_e.textAnchor,ft=dt===void 0?"start":dt,pt=_e.verticalAnchor,gt=pt===void 0?"end":pt,mt=_e.fill,bt=mt===void 0?DEFAULT_FILL:mt,_t=_objectWithoutProperties$9(_e,_excluded$9),xt=reactExports.useMemo(function(){return getWordsByLines({breakAll:_t.breakAll,children:_t.children,maxLines:_t.maxLines,scaleToFit:ct,style:_t.style,width:_t.width})},[_t.breakAll,_t.children,_t.maxLines,ct,_t.style,_t.width]),yt=_t.dx,Et=_t.dy,St=_t.angle,Tt=_t.className,kt=_t.breakAll,$t=_objectWithoutProperties$9(_t,_excluded2$4);if(!isNumOrStr(tt)||!isNumOrStr(nt))return null;var Ct=tt+(isNumber(yt)?yt:0),It=nt+(isNumber(Et)?Et:0),Nt;switch(gt){case"start":Nt=reduceCSSCalc("calc(".concat(lt,")"));break;case"middle":Nt=reduceCSSCalc("calc(".concat((xt.length-1)/2," * -").concat(it," + (").concat(lt," / 2))"));break;default:Nt=reduceCSSCalc("calc(".concat(xt.length-1," * -").concat(it,")"));break}var Ot=[];if(ct){var jt=xt[0].width,Mt=_t.width;Ot.push("scale(".concat((isNumber(Mt)?Mt/jt:1)/jt,")"))}return St&&Ot.push("rotate(".concat(St,", ").concat(Ct,", ").concat(It,")")),Ot.length&&($t.transform=Ot.join(" ")),React.createElement("text",_extends$j({},filterProps($t,!0),{x:Ct,y:It,className:clsx("recharts-text",Tt),textAnchor:ft,fill:bt.includes("url")?DEFAULT_FILL:bt}),xt.map(function(Rt,Lt){var Pt=Rt.words.join(kt?"":" ");return React.createElement("tspan",{x:Ct,dy:Lt===0?Nt:it,key:Pt},Pt)}))};function ascending(j,_e){return j==null||_e==null?NaN:j<_e?-1:j>_e?1:j>=_e?0:NaN}function descending(j,_e){return j==null||_e==null?NaN:_ej?1:_e>=j?0:NaN}function bisector(j){let _e,et,tt;j.length!==2?(_e=ascending,et=(it,st)=>ascending(j(it),st),tt=(it,st)=>j(it)-st):(_e=j===ascending||j===descending?j:zero$1,et=j,tt=j);function rt(it,st,lt=0,ut=it.length){if(lt>>1;et(it[ct],st)<0?lt=ct+1:ut=ct}while(lt>>1;et(it[ct],st)<=0?lt=ct+1:ut=ct}while(ltlt&&tt(it[ct-1],st)>-tt(it[ct],st)?ct-1:ct}return{left:rt,center:ot,right:nt}}function zero$1(){return 0}function number$2(j){return j===null?NaN:+j}function*numbers(j,_e){if(_e===void 0)for(let et of j)et!=null&&(et=+et)>=et&&(yield et);else{let et=-1;for(let tt of j)(tt=_e(tt,++et,j))!=null&&(tt=+tt)>=tt&&(yield tt)}}const ascendingBisect=bisector(ascending),bisectRight=ascendingBisect.right;bisector(number$2).center;const bisect=bisectRight;class InternMap extends Map{constructor(_e,et=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:et}}),_e!=null)for(const[tt,rt]of _e)this.set(tt,rt)}get(_e){return super.get(intern_get(this,_e))}has(_e){return super.has(intern_get(this,_e))}set(_e,et){return super.set(intern_set(this,_e),et)}delete(_e){return super.delete(intern_delete(this,_e))}}function intern_get({_intern:j,_key:_e},et){const tt=_e(et);return j.has(tt)?j.get(tt):et}function intern_set({_intern:j,_key:_e},et){const tt=_e(et);return j.has(tt)?j.get(tt):(j.set(tt,et),et)}function intern_delete({_intern:j,_key:_e},et){const tt=_e(et);return j.has(tt)&&(et=j.get(tt),j.delete(tt)),et}function keyof(j){return j!==null&&typeof j=="object"?j.valueOf():j}function compareDefined(j=ascending){if(j===ascending)return ascendingDefined;if(typeof j!="function")throw new TypeError("compare is not a function");return(_e,et)=>{const tt=j(_e,et);return tt||tt===0?tt:(j(et,et)===0)-(j(_e,_e)===0)}}function ascendingDefined(j,_e){return(j==null||!(j>=j))-(_e==null||!(_e>=_e))||(j<_e?-1:j>_e?1:0)}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(j,_e,et){const tt=(_e-j)/Math.max(0,et),rt=Math.floor(Math.log10(tt)),nt=tt/Math.pow(10,rt),ot=nt>=e10?10:nt>=e5?5:nt>=e2?2:1;let it,st,lt;return rt<0?(lt=Math.pow(10,-rt)/ot,it=Math.round(j*lt),st=Math.round(_e*lt),it/lt_e&&--st,lt=-lt):(lt=Math.pow(10,rt)*ot,it=Math.round(j/lt),st=Math.round(_e/lt),it*lt_e&&--st),st0))return[];if(j===_e)return[j];const tt=_e=rt))return[];const it=nt-rt+1,st=new Array(it);if(tt)if(ot<0)for(let lt=0;lt=tt)&&(et=tt);else{let tt=-1;for(let rt of j)(rt=_e(rt,++tt,j))!=null&&(et=rt)&&(et=rt)}return et}function min(j,_e){let et;if(_e===void 0)for(const tt of j)tt!=null&&(et>tt||et===void 0&&tt>=tt)&&(et=tt);else{let tt=-1;for(let rt of j)(rt=_e(rt,++tt,j))!=null&&(et>rt||et===void 0&&rt>=rt)&&(et=rt)}return et}function quickselect(j,_e,et=0,tt=1/0,rt){if(_e=Math.floor(_e),et=Math.floor(Math.max(0,et)),tt=Math.floor(Math.min(j.length-1,tt)),!(et<=_e&&_e<=tt))return j;for(rt=rt===void 0?ascendingDefined:compareDefined(rt);tt>et;){if(tt-et>600){const st=tt-et+1,lt=_e-et+1,ut=Math.log(st),ct=.5*Math.exp(2*ut/3),dt=.5*Math.sqrt(ut*ct*(st-ct)/st)*(lt-st/2<0?-1:1),ft=Math.max(et,Math.floor(_e-lt*ct/st+dt)),pt=Math.min(tt,Math.floor(_e+(st-lt)*ct/st+dt));quickselect(j,_e,ft,pt,rt)}const nt=j[_e];let ot=et,it=tt;for(swap(j,et,_e),rt(j[tt],nt)>0&&swap(j,et,tt);ot0;)--it}rt(j[et],nt)===0?swap(j,et,it):(++it,swap(j,it,tt)),it<=_e&&(et=it+1),_e<=it&&(tt=it-1)}return j}function swap(j,_e,et){const tt=j[_e];j[_e]=j[et],j[et]=tt}function quantile$1(j,_e,et){if(j=Float64Array.from(numbers(j,et)),!(!(tt=j.length)||isNaN(_e=+_e))){if(_e<=0||tt<2)return min(j);if(_e>=1)return max(j);var tt,rt=(tt-1)*_e,nt=Math.floor(rt),ot=max(quickselect(j,nt).subarray(0,nt+1)),it=min(j.subarray(nt+1));return ot+(it-ot)*(rt-nt)}}function quantileSorted(j,_e,et=number$2){if(!(!(tt=j.length)||isNaN(_e=+_e))){if(_e<=0||tt<2)return+et(j[0],0,j);if(_e>=1)return+et(j[tt-1],tt-1,j);var tt,rt=(tt-1)*_e,nt=Math.floor(rt),ot=+et(j[nt],nt,j),it=+et(j[nt+1],nt+1,j);return ot+(it-ot)*(rt-nt)}}function range$1(j,_e,et){j=+j,_e=+_e,et=(rt=arguments.length)<2?(_e=j,j=0,1):rt<3?1:+et;for(var tt=-1,rt=Math.max(0,Math.ceil((_e-j)/et))|0,nt=new Array(rt);++tt>8&15|_e>>4&240,_e>>4&15|_e&240,(_e&15)<<4|_e&15,1):et===8?rgba(_e>>24&255,_e>>16&255,_e>>8&255,(_e&255)/255):et===4?rgba(_e>>12&15|_e>>8&240,_e>>8&15|_e>>4&240,_e>>4&15|_e&240,((_e&15)<<4|_e&15)/255):null):(_e=reRgbInteger.exec(j))?new Rgb(_e[1],_e[2],_e[3],1):(_e=reRgbPercent.exec(j))?new Rgb(_e[1]*255/100,_e[2]*255/100,_e[3]*255/100,1):(_e=reRgbaInteger.exec(j))?rgba(_e[1],_e[2],_e[3],_e[4]):(_e=reRgbaPercent.exec(j))?rgba(_e[1]*255/100,_e[2]*255/100,_e[3]*255/100,_e[4]):(_e=reHslPercent.exec(j))?hsla(_e[1],_e[2]/100,_e[3]/100,1):(_e=reHslaPercent.exec(j))?hsla(_e[1],_e[2]/100,_e[3]/100,_e[4]):named.hasOwnProperty(j)?rgbn(named[j]):j==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(j){return new Rgb(j>>16&255,j>>8&255,j&255,1)}function rgba(j,_e,et,tt){return tt<=0&&(j=_e=et=NaN),new Rgb(j,_e,et,tt)}function rgbConvert(j){return j instanceof Color||(j=color(j)),j?(j=j.rgb(),new Rgb(j.r,j.g,j.b,j.opacity)):new Rgb}function rgb$1(j,_e,et,tt){return arguments.length===1?rgbConvert(j):new Rgb(j,_e,et,tt??1)}function Rgb(j,_e,et,tt){this.r=+j,this.g=+_e,this.b=+et,this.opacity=+tt}define(Rgb,rgb$1,extend(Color,{brighter(j){return j=j==null?brighter:Math.pow(brighter,j),new Rgb(this.r*j,this.g*j,this.b*j,this.opacity)},darker(j){return j=j==null?darker:Math.pow(darker,j),new Rgb(this.r*j,this.g*j,this.b*j,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const j=clampa(this.opacity);return`${j===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${j===1?")":`, ${j})`}`}function clampa(j){return isNaN(j)?1:Math.max(0,Math.min(1,j))}function clampi(j){return Math.max(0,Math.min(255,Math.round(j)||0))}function hex(j){return j=clampi(j),(j<16?"0":"")+j.toString(16)}function hsla(j,_e,et,tt){return tt<=0?j=_e=et=NaN:et<=0||et>=1?j=_e=NaN:_e<=0&&(j=NaN),new Hsl(j,_e,et,tt)}function hslConvert(j){if(j instanceof Hsl)return new Hsl(j.h,j.s,j.l,j.opacity);if(j instanceof Color||(j=color(j)),!j)return new Hsl;if(j instanceof Hsl)return j;j=j.rgb();var _e=j.r/255,et=j.g/255,tt=j.b/255,rt=Math.min(_e,et,tt),nt=Math.max(_e,et,tt),ot=NaN,it=nt-rt,st=(nt+rt)/2;return it?(_e===nt?ot=(et-tt)/it+(et0&&st<1?0:ot,new Hsl(ot,it,st,j.opacity)}function hsl(j,_e,et,tt){return arguments.length===1?hslConvert(j):new Hsl(j,_e,et,tt??1)}function Hsl(j,_e,et,tt){this.h=+j,this.s=+_e,this.l=+et,this.opacity=+tt}define(Hsl,hsl,extend(Color,{brighter(j){return j=j==null?brighter:Math.pow(brighter,j),new Hsl(this.h,this.s,this.l*j,this.opacity)},darker(j){return j=j==null?darker:Math.pow(darker,j),new Hsl(this.h,this.s,this.l*j,this.opacity)},rgb(){var j=this.h%360+(this.h<0)*360,_e=isNaN(j)||isNaN(this.s)?0:this.s,et=this.l,tt=et+(et<.5?et:1-et)*_e,rt=2*et-tt;return new Rgb(hsl2rgb(j>=240?j-240:j+120,rt,tt),hsl2rgb(j,rt,tt),hsl2rgb(j<120?j+240:j-120,rt,tt),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const j=clampa(this.opacity);return`${j===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${j===1?")":`, ${j})`}`}}));function clamph(j){return j=(j||0)%360,j<0?j+360:j}function clampt(j){return Math.max(0,Math.min(1,j||0))}function hsl2rgb(j,_e,et){return(j<60?_e+(et-_e)*j/60:j<180?et:j<240?_e+(et-_e)*(240-j)/60:_e)*255}const constant=j=>()=>j;function linear$1(j,_e){return function(et){return j+et*_e}}function exponential(j,_e,et){return j=Math.pow(j,et),_e=Math.pow(_e,et)-j,et=1/et,function(tt){return Math.pow(j+tt*_e,et)}}function gamma(j){return(j=+j)==1?nogamma:function(_e,et){return et-_e?exponential(_e,et,j):constant(isNaN(_e)?et:_e)}}function nogamma(j,_e){var et=_e-j;return et?linear$1(j,et):constant(isNaN(j)?_e:j)}const rgb=function j(_e){var et=gamma(_e);function tt(rt,nt){var ot=et((rt=rgb$1(rt)).r,(nt=rgb$1(nt)).r),it=et(rt.g,nt.g),st=et(rt.b,nt.b),lt=nogamma(rt.opacity,nt.opacity);return function(ut){return rt.r=ot(ut),rt.g=it(ut),rt.b=st(ut),rt.opacity=lt(ut),rt+""}}return tt.gamma=j,tt}(1);function numberArray(j,_e){_e||(_e=[]);var et=j?Math.min(_e.length,j.length):0,tt=_e.slice(),rt;return function(nt){for(rt=0;rtet&&(nt=_e.slice(et,nt),it[ot]?it[ot]+=nt:it[++ot]=nt),(tt=tt[0])===(rt=rt[0])?it[ot]?it[ot]+=rt:it[++ot]=rt:(it[++ot]=null,st.push({i:ot,x:interpolateNumber$1(tt,rt)})),et=reB.lastIndex;return et<_e.length&&(nt=_e.slice(et),it[ot]?it[ot]+=nt:it[++ot]=nt),it.length<2?st[0]?one(st[0].x):zero(_e):(_e=st.length,function(lt){for(var ut=0,ct;ut<_e;++ut)it[(ct=st[ut]).i]=ct.x(lt);return it.join("")})}function interpolate(j,_e){var et=typeof _e,tt;return _e==null||et==="boolean"?constant(_e):(et==="number"?interpolateNumber$1:et==="string"?(tt=color(_e))?(_e=tt,rgb):string:_e instanceof color?rgb:_e instanceof Date?date$1:isNumberArray(_e)?numberArray:Array.isArray(_e)?genericArray:typeof _e.valueOf!="function"&&typeof _e.toString!="function"||isNaN(_e)?object:interpolateNumber$1)(j,_e)}function interpolateRound(j,_e){return j=+j,_e=+_e,function(et){return Math.round(j*(1-et)+_e*et)}}function piecewise(j,_e){_e===void 0&&(_e=j,j=interpolate);for(var et=0,tt=_e.length-1,rt=_e[0],nt=new Array(tt<0?0:tt);et_e&&(et=j,j=_e,_e=et),function(tt){return Math.max(j,Math.min(_e,tt))}}function bimap(j,_e,et){var tt=j[0],rt=j[1],nt=_e[0],ot=_e[1];return rt2?polymap:bimap,st=lt=null,ct}function ct(dt){return dt==null||isNaN(dt=+dt)?nt:(st||(st=it(j.map(tt),_e,et)))(tt(ot(dt)))}return ct.invert=function(dt){return ot(rt((lt||(lt=it(_e,j.map(tt),interpolateNumber$1)))(dt)))},ct.domain=function(dt){return arguments.length?(j=Array.from(dt,number$1),ut()):j.slice()},ct.range=function(dt){return arguments.length?(_e=Array.from(dt),ut()):_e.slice()},ct.rangeRound=function(dt){return _e=Array.from(dt),et=interpolateRound,ut()},ct.clamp=function(dt){return arguments.length?(ot=dt?!0:identity$2,ut()):ot!==identity$2},ct.interpolate=function(dt){return arguments.length?(et=dt,ut()):et},ct.unknown=function(dt){return arguments.length?(nt=dt,ct):nt},function(dt,ft){return tt=dt,rt=ft,ut()}}function continuous(){return transformer$2()(identity$2,identity$2)}function tickFormat(j,_e,et,tt){var rt=tickStep(j,_e,et),nt;switch(tt=formatSpecifier(tt??",f"),tt.type){case"s":{var ot=Math.max(Math.abs(j),Math.abs(_e));return tt.precision==null&&!isNaN(nt=precisionPrefix(rt,ot))&&(tt.precision=nt),formatPrefix(tt,ot)}case"":case"e":case"g":case"p":case"r":{tt.precision==null&&!isNaN(nt=precisionRound(rt,Math.max(Math.abs(j),Math.abs(_e))))&&(tt.precision=nt-(tt.type==="e"));break}case"f":case"%":{tt.precision==null&&!isNaN(nt=precisionFixed(rt))&&(tt.precision=nt-(tt.type==="%")*2);break}}return format(tt)}function linearish(j){var _e=j.domain;return j.ticks=function(et){var tt=_e();return ticks(tt[0],tt[tt.length-1],et??10)},j.tickFormat=function(et,tt){var rt=_e();return tickFormat(rt[0],rt[rt.length-1],et??10,tt)},j.nice=function(et){et==null&&(et=10);var tt=_e(),rt=0,nt=tt.length-1,ot=tt[rt],it=tt[nt],st,lt,ut=10;for(it0;){if(lt=tickIncrement(ot,it,et),lt===st)return tt[rt]=ot,tt[nt]=it,_e(tt);if(lt>0)ot=Math.floor(ot/lt)*lt,it=Math.ceil(it/lt)*lt;else if(lt<0)ot=Math.ceil(ot*lt)/lt,it=Math.floor(it*lt)/lt;else break;st=lt}return j},j}function linear(){var j=continuous();return j.copy=function(){return copy$1(j,linear())},initRange.apply(j,arguments),linearish(j)}function identity$1(j){var _e;function et(tt){return tt==null||isNaN(tt=+tt)?_e:tt}return et.invert=et,et.domain=et.range=function(tt){return arguments.length?(j=Array.from(tt,number$1),et):j.slice()},et.unknown=function(tt){return arguments.length?(_e=tt,et):_e},et.copy=function(){return identity$1(j).unknown(_e)},j=arguments.length?Array.from(j,number$1):[0,1],linearish(et)}function nice(j,_e){j=j.slice();var et=0,tt=j.length-1,rt=j[et],nt=j[tt],ot;return ntMath.pow(j,_e)}function logp(j){return j===Math.E?Math.log:j===10&&Math.log10||j===2&&Math.log2||(j=Math.log(j),_e=>Math.log(_e)/j)}function reflect(j){return(_e,et)=>-j(-_e,et)}function loggish(j){const _e=j(transformLog,transformExp),et=_e.domain;let tt=10,rt,nt;function ot(){return rt=logp(tt),nt=powp(tt),et()[0]<0?(rt=reflect(rt),nt=reflect(nt),j(transformLogn,transformExpn)):j(transformLog,transformExp),_e}return _e.base=function(it){return arguments.length?(tt=+it,ot()):tt},_e.domain=function(it){return arguments.length?(et(it),ot()):et()},_e.ticks=it=>{const st=et();let lt=st[0],ut=st[st.length-1];const ct=ut0){for(;dt<=ft;++dt)for(pt=1;ptut)break;bt.push(gt)}}else for(;dt<=ft;++dt)for(pt=tt-1;pt>=1;--pt)if(gt=dt>0?pt/nt(-dt):pt*nt(dt),!(gtut)break;bt.push(gt)}bt.length*2{if(it==null&&(it=10),st==null&&(st=tt===10?"s":","),typeof st!="function"&&(!(tt%1)&&(st=formatSpecifier(st)).precision==null&&(st.trim=!0),st=format(st)),it===1/0)return st;const lt=Math.max(1,tt*it/_e.ticks().length);return ut=>{let ct=ut/nt(Math.round(rt(ut)));return ct*ttet(nice(et(),{floor:it=>nt(Math.floor(rt(it))),ceil:it=>nt(Math.ceil(rt(it)))})),_e}function log(){const j=loggish(transformer$2()).domain([1,10]);return j.copy=()=>copy$1(j,log()).base(j.base()),initRange.apply(j,arguments),j}function transformSymlog(j){return function(_e){return Math.sign(_e)*Math.log1p(Math.abs(_e/j))}}function transformSymexp(j){return function(_e){return Math.sign(_e)*Math.expm1(Math.abs(_e))*j}}function symlogish(j){var _e=1,et=j(transformSymlog(_e),transformSymexp(_e));return et.constant=function(tt){return arguments.length?j(transformSymlog(_e=+tt),transformSymexp(_e)):_e},linearish(et)}function symlog(){var j=symlogish(transformer$2());return j.copy=function(){return copy$1(j,symlog()).constant(j.constant())},initRange.apply(j,arguments)}function transformPow(j){return function(_e){return _e<0?-Math.pow(-_e,j):Math.pow(_e,j)}}function transformSqrt(j){return j<0?-Math.sqrt(-j):Math.sqrt(j)}function transformSquare(j){return j<0?-j*j:j*j}function powish(j){var _e=j(identity$2,identity$2),et=1;function tt(){return et===1?j(identity$2,identity$2):et===.5?j(transformSqrt,transformSquare):j(transformPow(et),transformPow(1/et))}return _e.exponent=function(rt){return arguments.length?(et=+rt,tt()):et},linearish(_e)}function pow(){var j=powish(transformer$2());return j.copy=function(){return copy$1(j,pow()).exponent(j.exponent())},initRange.apply(j,arguments),j}function sqrt(){return pow.apply(null,arguments).exponent(.5)}function square(j){return Math.sign(j)*j*j}function unsquare(j){return Math.sign(j)*Math.sqrt(Math.abs(j))}function radial(){var j=continuous(),_e=[0,1],et=!1,tt;function rt(nt){var ot=unsquare(j(nt));return isNaN(ot)?tt:et?Math.round(ot):ot}return rt.invert=function(nt){return j.invert(square(nt))},rt.domain=function(nt){return arguments.length?(j.domain(nt),rt):j.domain()},rt.range=function(nt){return arguments.length?(j.range((_e=Array.from(nt,number$1)).map(square)),rt):_e.slice()},rt.rangeRound=function(nt){return rt.range(nt).round(!0)},rt.round=function(nt){return arguments.length?(et=!!nt,rt):et},rt.clamp=function(nt){return arguments.length?(j.clamp(nt),rt):j.clamp()},rt.unknown=function(nt){return arguments.length?(tt=nt,rt):tt},rt.copy=function(){return radial(j.domain(),_e).round(et).clamp(j.clamp()).unknown(tt)},initRange.apply(rt,arguments),linearish(rt)}function quantile(){var j=[],_e=[],et=[],tt;function rt(){var ot=0,it=Math.max(1,_e.length);for(et=new Array(it-1);++ot0?et[it-1]:j[0],it=et?[tt[et-1],_e]:[tt[lt-1],tt[lt]]},ot.unknown=function(st){return arguments.length&&(nt=st),ot},ot.thresholds=function(){return tt.slice()},ot.copy=function(){return quantize().domain([j,_e]).range(rt).unknown(nt)},initRange.apply(linearish(ot),arguments)}function threshold(){var j=[.5],_e=[0,1],et,tt=1;function rt(nt){return nt!=null&&nt<=nt?_e[bisect(j,nt,0,tt)]:et}return rt.domain=function(nt){return arguments.length?(j=Array.from(nt),tt=Math.min(j.length,_e.length-1),rt):j.slice()},rt.range=function(nt){return arguments.length?(_e=Array.from(nt),tt=Math.min(j.length,_e.length-1),rt):_e.slice()},rt.invertExtent=function(nt){var ot=_e.indexOf(nt);return[j[ot-1],j[ot]]},rt.unknown=function(nt){return arguments.length?(et=nt,rt):et},rt.copy=function(){return threshold().domain(j).range(_e).unknown(et)},initRange.apply(rt,arguments)}const t0=new Date,t1=new Date;function timeInterval(j,_e,et,tt){function rt(nt){return j(nt=arguments.length===0?new Date:new Date(+nt)),nt}return rt.floor=nt=>(j(nt=new Date(+nt)),nt),rt.ceil=nt=>(j(nt=new Date(nt-1)),_e(nt,1),j(nt),nt),rt.round=nt=>{const ot=rt(nt),it=rt.ceil(nt);return nt-ot(_e(nt=new Date(+nt),ot==null?1:Math.floor(ot)),nt),rt.range=(nt,ot,it)=>{const st=[];if(nt=rt.ceil(nt),it=it==null?1:Math.floor(it),!(nt0))return st;let lt;do st.push(lt=new Date(+nt)),_e(nt,it),j(nt);while(lttimeInterval(ot=>{if(ot>=ot)for(;j(ot),!nt(ot);)ot.setTime(ot-1)},(ot,it)=>{if(ot>=ot)if(it<0)for(;++it<=0;)for(;_e(ot,-1),!nt(ot););else for(;--it>=0;)for(;_e(ot,1),!nt(ot););}),et&&(rt.count=(nt,ot)=>(t0.setTime(+nt),t1.setTime(+ot),j(t0),j(t1),Math.floor(et(t0,t1))),rt.every=nt=>(nt=Math.floor(nt),!isFinite(nt)||!(nt>0)?null:nt>1?rt.filter(tt?ot=>tt(ot)%nt===0:ot=>rt.count(0,ot)%nt===0):rt)),rt}const millisecond=timeInterval(()=>{},(j,_e)=>{j.setTime(+j+_e)},(j,_e)=>_e-j);millisecond.every=j=>(j=Math.floor(j),!isFinite(j)||!(j>0)?null:j>1?timeInterval(_e=>{_e.setTime(Math.floor(_e/j)*j)},(_e,et)=>{_e.setTime(+_e+et*j)},(_e,et)=>(et-_e)/j):millisecond);millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365,second=timeInterval(j=>{j.setTime(j-j.getMilliseconds())},(j,_e)=>{j.setTime(+j+_e*durationSecond)},(j,_e)=>(_e-j)/durationSecond,j=>j.getUTCSeconds());second.range;const timeMinute=timeInterval(j=>{j.setTime(j-j.getMilliseconds()-j.getSeconds()*durationSecond)},(j,_e)=>{j.setTime(+j+_e*durationMinute)},(j,_e)=>(_e-j)/durationMinute,j=>j.getMinutes());timeMinute.range;const utcMinute=timeInterval(j=>{j.setUTCSeconds(0,0)},(j,_e)=>{j.setTime(+j+_e*durationMinute)},(j,_e)=>(_e-j)/durationMinute,j=>j.getUTCMinutes());utcMinute.range;const timeHour=timeInterval(j=>{j.setTime(j-j.getMilliseconds()-j.getSeconds()*durationSecond-j.getMinutes()*durationMinute)},(j,_e)=>{j.setTime(+j+_e*durationHour)},(j,_e)=>(_e-j)/durationHour,j=>j.getHours());timeHour.range;const utcHour=timeInterval(j=>{j.setUTCMinutes(0,0,0)},(j,_e)=>{j.setTime(+j+_e*durationHour)},(j,_e)=>(_e-j)/durationHour,j=>j.getUTCHours());utcHour.range;const timeDay=timeInterval(j=>j.setHours(0,0,0,0),(j,_e)=>j.setDate(j.getDate()+_e),(j,_e)=>(_e-j-(_e.getTimezoneOffset()-j.getTimezoneOffset())*durationMinute)/durationDay,j=>j.getDate()-1);timeDay.range;const utcDay=timeInterval(j=>{j.setUTCHours(0,0,0,0)},(j,_e)=>{j.setUTCDate(j.getUTCDate()+_e)},(j,_e)=>(_e-j)/durationDay,j=>j.getUTCDate()-1);utcDay.range;const unixDay=timeInterval(j=>{j.setUTCHours(0,0,0,0)},(j,_e)=>{j.setUTCDate(j.getUTCDate()+_e)},(j,_e)=>(_e-j)/durationDay,j=>Math.floor(j/durationDay));unixDay.range;function timeWeekday(j){return timeInterval(_e=>{_e.setDate(_e.getDate()-(_e.getDay()+7-j)%7),_e.setHours(0,0,0,0)},(_e,et)=>{_e.setDate(_e.getDate()+et*7)},(_e,et)=>(et-_e-(et.getTimezoneOffset()-_e.getTimezoneOffset())*durationMinute)/durationWeek)}const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);timeSunday.range;timeMonday.range;timeTuesday.range;timeWednesday.range;timeThursday.range;timeFriday.range;timeSaturday.range;function utcWeekday(j){return timeInterval(_e=>{_e.setUTCDate(_e.getUTCDate()-(_e.getUTCDay()+7-j)%7),_e.setUTCHours(0,0,0,0)},(_e,et)=>{_e.setUTCDate(_e.getUTCDate()+et*7)},(_e,et)=>(et-_e)/durationWeek)}const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range;utcMonday.range;utcTuesday.range;utcWednesday.range;utcThursday.range;utcFriday.range;utcSaturday.range;const timeMonth=timeInterval(j=>{j.setDate(1),j.setHours(0,0,0,0)},(j,_e)=>{j.setMonth(j.getMonth()+_e)},(j,_e)=>_e.getMonth()-j.getMonth()+(_e.getFullYear()-j.getFullYear())*12,j=>j.getMonth());timeMonth.range;const utcMonth=timeInterval(j=>{j.setUTCDate(1),j.setUTCHours(0,0,0,0)},(j,_e)=>{j.setUTCMonth(j.getUTCMonth()+_e)},(j,_e)=>_e.getUTCMonth()-j.getUTCMonth()+(_e.getUTCFullYear()-j.getUTCFullYear())*12,j=>j.getUTCMonth());utcMonth.range;const timeYear=timeInterval(j=>{j.setMonth(0,1),j.setHours(0,0,0,0)},(j,_e)=>{j.setFullYear(j.getFullYear()+_e)},(j,_e)=>_e.getFullYear()-j.getFullYear(),j=>j.getFullYear());timeYear.every=j=>!isFinite(j=Math.floor(j))||!(j>0)?null:timeInterval(_e=>{_e.setFullYear(Math.floor(_e.getFullYear()/j)*j),_e.setMonth(0,1),_e.setHours(0,0,0,0)},(_e,et)=>{_e.setFullYear(_e.getFullYear()+et*j)});timeYear.range;const utcYear=timeInterval(j=>{j.setUTCMonth(0,1),j.setUTCHours(0,0,0,0)},(j,_e)=>{j.setUTCFullYear(j.getUTCFullYear()+_e)},(j,_e)=>_e.getUTCFullYear()-j.getUTCFullYear(),j=>j.getUTCFullYear());utcYear.every=j=>!isFinite(j=Math.floor(j))||!(j>0)?null:timeInterval(_e=>{_e.setUTCFullYear(Math.floor(_e.getUTCFullYear()/j)*j),_e.setUTCMonth(0,1),_e.setUTCHours(0,0,0,0)},(_e,et)=>{_e.setUTCFullYear(_e.getUTCFullYear()+et*j)});utcYear.range;function ticker(j,_e,et,tt,rt,nt){const ot=[[second,1,durationSecond],[second,5,5*durationSecond],[second,15,15*durationSecond],[second,30,30*durationSecond],[nt,1,durationMinute],[nt,5,5*durationMinute],[nt,15,15*durationMinute],[nt,30,30*durationMinute],[rt,1,durationHour],[rt,3,3*durationHour],[rt,6,6*durationHour],[rt,12,12*durationHour],[tt,1,durationDay],[tt,2,2*durationDay],[et,1,durationWeek],[_e,1,durationMonth],[_e,3,3*durationMonth],[j,1,durationYear]];function it(lt,ut,ct){const dt=utmt).right(ot,dt);if(ft===ot.length)return j.every(tickStep(lt/durationYear,ut/durationYear,ct));if(ft===0)return millisecond.every(Math.max(tickStep(lt,ut,ct),1));const[pt,gt]=ot[dt/ot[ft-1][2]53)return null;"w"in rr||(rr.w=1),"Z"in rr?($r=utcDate(newDate(rr.y,0,1)),Rr=$r.getUTCDay(),$r=Rr>4||Rr===0?utcMonday.ceil($r):utcMonday($r),$r=utcDay.offset($r,(rr.V-1)*7),rr.y=$r.getUTCFullYear(),rr.m=$r.getUTCMonth(),rr.d=$r.getUTCDate()+(rr.w+6)%7):($r=localDate(newDate(rr.y,0,1)),Rr=$r.getDay(),$r=Rr>4||Rr===0?timeMonday.ceil($r):timeMonday($r),$r=timeDay.offset($r,(rr.V-1)*7),rr.y=$r.getFullYear(),rr.m=$r.getMonth(),rr.d=$r.getDate()+(rr.w+6)%7)}else("W"in rr||"U"in rr)&&("w"in rr||(rr.w="u"in rr?rr.u%7:"W"in rr?1:0),Rr="Z"in rr?utcDate(newDate(rr.y,0,1)).getUTCDay():localDate(newDate(rr.y,0,1)).getDay(),rr.m=0,rr.d="W"in rr?(rr.w+6)%7+rr.W*7-(Rr+5)%7:rr.w+rr.U*7-(Rr+6)%7);return"Z"in rr?(rr.H+=rr.Z/100|0,rr.M+=rr.Z%100,utcDate(rr)):localDate(rr)}}function kt(Ut,ar,pr,rr){for(var vr=0,$r=ar.length,Rr=pr.length,Cr,Nr;vr<$r;){if(rr>=Rr)return-1;if(Cr=ar.charCodeAt(vr++),Cr===37){if(Cr=ar.charAt(vr++),Nr=Et[Cr in pads?ar.charAt(vr++):Cr],!Nr||(rr=Nr(Ut,pr,rr))<0)return-1}else if(Cr!=pr.charCodeAt(rr++))return-1}return rr}function $t(Ut,ar,pr){var rr=lt.exec(ar.slice(pr));return rr?(Ut.p=ut.get(rr[0].toLowerCase()),pr+rr[0].length):-1}function Ct(Ut,ar,pr){var rr=ft.exec(ar.slice(pr));return rr?(Ut.w=pt.get(rr[0].toLowerCase()),pr+rr[0].length):-1}function It(Ut,ar,pr){var rr=ct.exec(ar.slice(pr));return rr?(Ut.w=dt.get(rr[0].toLowerCase()),pr+rr[0].length):-1}function Nt(Ut,ar,pr){var rr=bt.exec(ar.slice(pr));return rr?(Ut.m=_t.get(rr[0].toLowerCase()),pr+rr[0].length):-1}function Ot(Ut,ar,pr){var rr=gt.exec(ar.slice(pr));return rr?(Ut.m=mt.get(rr[0].toLowerCase()),pr+rr[0].length):-1}function jt(Ut,ar,pr){return kt(Ut,_e,ar,pr)}function Mt(Ut,ar,pr){return kt(Ut,et,ar,pr)}function Rt(Ut,ar,pr){return kt(Ut,tt,ar,pr)}function Lt(Ut){return ot[Ut.getDay()]}function Pt(Ut){return nt[Ut.getDay()]}function Gt(Ut){return st[Ut.getMonth()]}function qt(Ut){return it[Ut.getMonth()]}function Yt(Ut){return rt[+(Ut.getHours()>=12)]}function Xt(Ut){return 1+~~(Ut.getMonth()/3)}function tr(Ut){return ot[Ut.getUTCDay()]}function cr(Ut){return nt[Ut.getUTCDay()]}function mr(Ut){return st[Ut.getUTCMonth()]}function Er(Ut){return it[Ut.getUTCMonth()]}function hr(Ut){return rt[+(Ut.getUTCHours()>=12)]}function _r(Ut){return 1+~~(Ut.getUTCMonth()/3)}return{format:function(Ut){var ar=St(Ut+="",xt);return ar.toString=function(){return Ut},ar},parse:function(Ut){var ar=Tt(Ut+="",!1);return ar.toString=function(){return Ut},ar},utcFormat:function(Ut){var ar=St(Ut+="",yt);return ar.toString=function(){return Ut},ar},utcParse:function(Ut){var ar=Tt(Ut+="",!0);return ar.toString=function(){return Ut},ar}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(j,_e,et){var tt=j<0?"-":"",rt=(tt?-j:j)+"",nt=rt.length;return tt+(nt[_e.toLowerCase(),et]))}function parseWeekdayNumberSunday(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+1));return tt?(j.w=+tt[0],et+tt[0].length):-1}function parseWeekdayNumberMonday(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+1));return tt?(j.u=+tt[0],et+tt[0].length):-1}function parseWeekNumberSunday(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.U=+tt[0],et+tt[0].length):-1}function parseWeekNumberISO(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.V=+tt[0],et+tt[0].length):-1}function parseWeekNumberMonday(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.W=+tt[0],et+tt[0].length):-1}function parseFullYear(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+4));return tt?(j.y=+tt[0],et+tt[0].length):-1}function parseYear(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.y=+tt[0]+(+tt[0]>68?1900:2e3),et+tt[0].length):-1}function parseZone(j,_e,et){var tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_e.slice(et,et+6));return tt?(j.Z=tt[1]?0:-(tt[2]+(tt[3]||"00")),et+tt[0].length):-1}function parseQuarter(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+1));return tt?(j.q=tt[0]*3-3,et+tt[0].length):-1}function parseMonthNumber(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.m=tt[0]-1,et+tt[0].length):-1}function parseDayOfMonth(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.d=+tt[0],et+tt[0].length):-1}function parseDayOfYear(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+3));return tt?(j.m=0,j.d=+tt[0],et+tt[0].length):-1}function parseHour24(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.H=+tt[0],et+tt[0].length):-1}function parseMinutes(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.M=+tt[0],et+tt[0].length):-1}function parseSeconds(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+2));return tt?(j.S=+tt[0],et+tt[0].length):-1}function parseMilliseconds(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+3));return tt?(j.L=+tt[0],et+tt[0].length):-1}function parseMicroseconds(j,_e,et){var tt=numberRe.exec(_e.slice(et,et+6));return tt?(j.L=Math.floor(tt[0]/1e3),et+tt[0].length):-1}function parseLiteralPercent(j,_e,et){var tt=percentRe.exec(_e.slice(et,et+1));return tt?et+tt[0].length:-1}function parseUnixTimestamp(j,_e,et){var tt=numberRe.exec(_e.slice(et));return tt?(j.Q=+tt[0],et+tt[0].length):-1}function parseUnixTimestampSeconds(j,_e,et){var tt=numberRe.exec(_e.slice(et));return tt?(j.s=+tt[0],et+tt[0].length):-1}function formatDayOfMonth(j,_e){return pad(j.getDate(),_e,2)}function formatHour24(j,_e){return pad(j.getHours(),_e,2)}function formatHour12(j,_e){return pad(j.getHours()%12||12,_e,2)}function formatDayOfYear(j,_e){return pad(1+timeDay.count(timeYear(j),j),_e,3)}function formatMilliseconds(j,_e){return pad(j.getMilliseconds(),_e,3)}function formatMicroseconds(j,_e){return formatMilliseconds(j,_e)+"000"}function formatMonthNumber(j,_e){return pad(j.getMonth()+1,_e,2)}function formatMinutes(j,_e){return pad(j.getMinutes(),_e,2)}function formatSeconds(j,_e){return pad(j.getSeconds(),_e,2)}function formatWeekdayNumberMonday(j){var _e=j.getDay();return _e===0?7:_e}function formatWeekNumberSunday(j,_e){return pad(timeSunday.count(timeYear(j)-1,j),_e,2)}function dISO(j){var _e=j.getDay();return _e>=4||_e===0?timeThursday(j):timeThursday.ceil(j)}function formatWeekNumberISO(j,_e){return j=dISO(j),pad(timeThursday.count(timeYear(j),j)+(timeYear(j).getDay()===4),_e,2)}function formatWeekdayNumberSunday(j){return j.getDay()}function formatWeekNumberMonday(j,_e){return pad(timeMonday.count(timeYear(j)-1,j),_e,2)}function formatYear(j,_e){return pad(j.getFullYear()%100,_e,2)}function formatYearISO(j,_e){return j=dISO(j),pad(j.getFullYear()%100,_e,2)}function formatFullYear(j,_e){return pad(j.getFullYear()%1e4,_e,4)}function formatFullYearISO(j,_e){var et=j.getDay();return j=et>=4||et===0?timeThursday(j):timeThursday.ceil(j),pad(j.getFullYear()%1e4,_e,4)}function formatZone(j){var _e=j.getTimezoneOffset();return(_e>0?"-":(_e*=-1,"+"))+pad(_e/60|0,"0",2)+pad(_e%60,"0",2)}function formatUTCDayOfMonth(j,_e){return pad(j.getUTCDate(),_e,2)}function formatUTCHour24(j,_e){return pad(j.getUTCHours(),_e,2)}function formatUTCHour12(j,_e){return pad(j.getUTCHours()%12||12,_e,2)}function formatUTCDayOfYear(j,_e){return pad(1+utcDay.count(utcYear(j),j),_e,3)}function formatUTCMilliseconds(j,_e){return pad(j.getUTCMilliseconds(),_e,3)}function formatUTCMicroseconds(j,_e){return formatUTCMilliseconds(j,_e)+"000"}function formatUTCMonthNumber(j,_e){return pad(j.getUTCMonth()+1,_e,2)}function formatUTCMinutes(j,_e){return pad(j.getUTCMinutes(),_e,2)}function formatUTCSeconds(j,_e){return pad(j.getUTCSeconds(),_e,2)}function formatUTCWeekdayNumberMonday(j){var _e=j.getUTCDay();return _e===0?7:_e}function formatUTCWeekNumberSunday(j,_e){return pad(utcSunday.count(utcYear(j)-1,j),_e,2)}function UTCdISO(j){var _e=j.getUTCDay();return _e>=4||_e===0?utcThursday(j):utcThursday.ceil(j)}function formatUTCWeekNumberISO(j,_e){return j=UTCdISO(j),pad(utcThursday.count(utcYear(j),j)+(utcYear(j).getUTCDay()===4),_e,2)}function formatUTCWeekdayNumberSunday(j){return j.getUTCDay()}function formatUTCWeekNumberMonday(j,_e){return pad(utcMonday.count(utcYear(j)-1,j),_e,2)}function formatUTCYear(j,_e){return pad(j.getUTCFullYear()%100,_e,2)}function formatUTCYearISO(j,_e){return j=UTCdISO(j),pad(j.getUTCFullYear()%100,_e,2)}function formatUTCFullYear(j,_e){return pad(j.getUTCFullYear()%1e4,_e,4)}function formatUTCFullYearISO(j,_e){var et=j.getUTCDay();return j=et>=4||et===0?utcThursday(j):utcThursday.ceil(j),pad(j.getUTCFullYear()%1e4,_e,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(j){return+j}function formatUnixTimestampSeconds(j){return Math.floor(+j/1e3)}var locale,timeFormat,utcFormat;defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale(j){return locale=formatLocale(j),timeFormat=locale.format,locale.parse,utcFormat=locale.utcFormat,locale.utcParse,locale}function date(j){return new Date(j)}function number(j){return j instanceof Date?+j:+new Date(+j)}function calendar(j,_e,et,tt,rt,nt,ot,it,st,lt){var ut=continuous(),ct=ut.invert,dt=ut.domain,ft=lt(".%L"),pt=lt(":%S"),gt=lt("%I:%M"),mt=lt("%I %p"),bt=lt("%a %d"),_t=lt("%b %d"),xt=lt("%B"),yt=lt("%Y");function Et(St){return(st(St)_e(rt/(j.length-1)))},et.quantiles=function(tt){return Array.from({length:tt+1},(rt,nt)=>quantile$1(j,nt/tt))},et.copy=function(){return sequentialQuantile(_e).domain(j)},initInterpolator.apply(et,arguments)}function transformer(){var j=0,_e=.5,et=1,tt=1,rt,nt,ot,it,st,lt=identity$2,ut,ct=!1,dt;function ft(gt){return isNaN(gt=+gt)?dt:(gt=.5+((gt=+ut(gt))-nt)*(tt*gtj.e^nt.s<0?1:-1;for(tt=nt.d.length,rt=j.d.length,_e=0,et=ttj.d[_e]^nt.s<0?1:-1;return tt===rt?0:tt>rt^nt.s<0?1:-1};P.decimalPlaces=P.dp=function(){var j=this,_e=j.d.length-1,et=(_e-j.e)*LOG_BASE;if(_e=j.d[_e],_e)for(;_e%10==0;_e/=10)et--;return et<0?0:et};P.dividedBy=P.div=function(j){return divide(this,new this.constructor(j))};P.dividedToIntegerBy=P.idiv=function(j){var _e=this,et=_e.constructor;return round(divide(_e,new et(j),0,1),et.precision)};P.equals=P.eq=function(j){return!this.cmp(j)};P.exponent=function(){return getBase10Exponent(this)};P.greaterThan=P.gt=function(j){return this.cmp(j)>0};P.greaterThanOrEqualTo=P.gte=function(j){return this.cmp(j)>=0};P.isInteger=P.isint=function(){return this.e>this.d.length-2};P.isNegative=P.isneg=function(){return this.s<0};P.isPositive=P.ispos=function(){return this.s>0};P.isZero=function(){return this.s===0};P.lessThan=P.lt=function(j){return this.cmp(j)<0};P.lessThanOrEqualTo=P.lte=function(j){return this.cmp(j)<1};P.logarithm=P.log=function(j){var _e,et=this,tt=et.constructor,rt=tt.precision,nt=rt+5;if(j===void 0)j=new tt(10);else if(j=new tt(j),j.s<1||j.eq(ONE))throw Error(decimalError+"NaN");if(et.s<1)throw Error(decimalError+(et.s?"NaN":"-Infinity"));return et.eq(ONE)?new tt(0):(external=!1,_e=divide(ln(et,nt),ln(j,nt),nt),external=!0,round(_e,rt))};P.minus=P.sub=function(j){var _e=this;return j=new _e.constructor(j),_e.s==j.s?subtract(_e,j):add(_e,(j.s=-j.s,j))};P.modulo=P.mod=function(j){var _e,et=this,tt=et.constructor,rt=tt.precision;if(j=new tt(j),!j.s)throw Error(decimalError+"NaN");return et.s?(external=!1,_e=divide(et,j,0,1).times(j),external=!0,et.minus(_e)):round(new tt(et),rt)};P.naturalExponential=P.exp=function(){return exp(this)};P.naturalLogarithm=P.ln=function(){return ln(this)};P.negated=P.neg=function(){var j=new this.constructor(this);return j.s=-j.s||0,j};P.plus=P.add=function(j){var _e=this;return j=new _e.constructor(j),_e.s==j.s?add(_e,j):subtract(_e,(j.s=-j.s,j))};P.precision=P.sd=function(j){var _e,et,tt,rt=this;if(j!==void 0&&j!==!!j&&j!==1&&j!==0)throw Error(invalidArgument+j);if(_e=getBase10Exponent(rt)+1,tt=rt.d.length-1,et=tt*LOG_BASE+1,tt=rt.d[tt],tt){for(;tt%10==0;tt/=10)et--;for(tt=rt.d[0];tt>=10;tt/=10)et++}return j&&_e>et?_e:et};P.squareRoot=P.sqrt=function(){var j,_e,et,tt,rt,nt,ot,it=this,st=it.constructor;if(it.s<1){if(!it.s)return new st(0);throw Error(decimalError+"NaN")}for(j=getBase10Exponent(it),external=!1,rt=Math.sqrt(+it),rt==0||rt==1/0?(_e=digitsToString(it.d),(_e.length+j)%2==0&&(_e+="0"),rt=Math.sqrt(_e),j=mathfloor((j+1)/2)-(j<0||j%2),rt==1/0?_e="5e"+j:(_e=rt.toExponential(),_e=_e.slice(0,_e.indexOf("e")+1)+j),tt=new st(_e)):tt=new st(rt.toString()),et=st.precision,rt=ot=et+3;;)if(nt=tt,tt=nt.plus(divide(it,nt,ot+2)).times(.5),digitsToString(nt.d).slice(0,ot)===(_e=digitsToString(tt.d)).slice(0,ot)){if(_e=_e.slice(ot-3,ot+1),rt==ot&&_e=="4999"){if(round(nt,et+1,0),nt.times(nt).eq(it)){tt=nt;break}}else if(_e!="9999")break;ot+=4}return external=!0,round(tt,et)};P.times=P.mul=function(j){var _e,et,tt,rt,nt,ot,it,st,lt,ut=this,ct=ut.constructor,dt=ut.d,ft=(j=new ct(j)).d;if(!ut.s||!j.s)return new ct(0);for(j.s*=ut.s,et=ut.e+j.e,st=dt.length,lt=ft.length,st=0;){for(_e=0,rt=st+tt;rt>tt;)it=nt[rt]+ft[tt]*dt[rt-tt-1]+_e,nt[rt--]=it%BASE|0,_e=it/BASE|0;nt[rt]=(nt[rt]+_e)%BASE|0}for(;!nt[--ot];)nt.pop();return _e?++et:nt.shift(),j.d=nt,j.e=et,external?round(j,ct.precision):j};P.toDecimalPlaces=P.todp=function(j,_e){var et=this,tt=et.constructor;return et=new tt(et),j===void 0?et:(checkInt32(j,0,MAX_DIGITS),_e===void 0?_e=tt.rounding:checkInt32(_e,0,8),round(et,j+getBase10Exponent(et)+1,_e))};P.toExponential=function(j,_e){var et,tt=this,rt=tt.constructor;return j===void 0?et=toString(tt,!0):(checkInt32(j,0,MAX_DIGITS),_e===void 0?_e=rt.rounding:checkInt32(_e,0,8),tt=round(new rt(tt),j+1,_e),et=toString(tt,!0,j+1)),et};P.toFixed=function(j,_e){var et,tt,rt=this,nt=rt.constructor;return j===void 0?toString(rt):(checkInt32(j,0,MAX_DIGITS),_e===void 0?_e=nt.rounding:checkInt32(_e,0,8),tt=round(new nt(rt),j+getBase10Exponent(rt)+1,_e),et=toString(tt.abs(),!1,j+getBase10Exponent(tt)+1),rt.isneg()&&!rt.isZero()?"-"+et:et)};P.toInteger=P.toint=function(){var j=this,_e=j.constructor;return round(new _e(j),getBase10Exponent(j)+1,_e.rounding)};P.toNumber=function(){return+this};P.toPower=P.pow=function(j){var _e,et,tt,rt,nt,ot,it=this,st=it.constructor,lt=12,ut=+(j=new st(j));if(!j.s)return new st(ONE);if(it=new st(it),!it.s){if(j.s<1)throw Error(decimalError+"Infinity");return it}if(it.eq(ONE))return it;if(tt=st.precision,j.eq(ONE))return round(it,tt);if(_e=j.e,et=j.d.length-1,ot=_e>=et,nt=it.s,ot){if((et=ut<0?-ut:ut)<=MAX_SAFE_INTEGER){for(rt=new st(ONE),_e=Math.ceil(tt/LOG_BASE+4),external=!1;et%2&&(rt=rt.times(it),truncate(rt.d,_e)),et=mathfloor(et/2),et!==0;)it=it.times(it),truncate(it.d,_e);return external=!0,j.s<0?new st(ONE).div(rt):round(rt,tt)}}else if(nt<0)throw Error(decimalError+"NaN");return nt=nt<0&&j.d[Math.max(_e,et)]&1?-1:1,it.s=1,external=!1,rt=j.times(ln(it,tt+lt)),external=!0,rt=exp(rt),rt.s=nt,rt};P.toPrecision=function(j,_e){var et,tt,rt=this,nt=rt.constructor;return j===void 0?(et=getBase10Exponent(rt),tt=toString(rt,et<=nt.toExpNeg||et>=nt.toExpPos)):(checkInt32(j,1,MAX_DIGITS),_e===void 0?_e=nt.rounding:checkInt32(_e,0,8),rt=round(new nt(rt),j,_e),et=getBase10Exponent(rt),tt=toString(rt,j<=et||et<=nt.toExpNeg,j)),tt};P.toSignificantDigits=P.tosd=function(j,_e){var et=this,tt=et.constructor;return j===void 0?(j=tt.precision,_e=tt.rounding):(checkInt32(j,1,MAX_DIGITS),_e===void 0?_e=tt.rounding:checkInt32(_e,0,8)),round(new tt(et),j,_e)};P.toString=P.valueOf=P.val=P.toJSON=P[Symbol.for("nodejs.util.inspect.custom")]=function(){var j=this,_e=getBase10Exponent(j),et=j.constructor;return toString(j,_e<=et.toExpNeg||_e>=et.toExpPos)};function add(j,_e){var et,tt,rt,nt,ot,it,st,lt,ut=j.constructor,ct=ut.precision;if(!j.s||!_e.s)return _e.s||(_e=new ut(j)),external?round(_e,ct):_e;if(st=j.d,lt=_e.d,ot=j.e,rt=_e.e,st=st.slice(),nt=ot-rt,nt){for(nt<0?(tt=st,nt=-nt,it=lt.length):(tt=lt,rt=ot,it=st.length),ot=Math.ceil(ct/LOG_BASE),it=ot>it?ot+1:it+1,nt>it&&(nt=it,tt.length=1),tt.reverse();nt--;)tt.push(0);tt.reverse()}for(it=st.length,nt=lt.length,it-nt<0&&(nt=it,tt=lt,lt=st,st=tt),et=0;nt;)et=(st[--nt]=st[nt]+lt[nt]+et)/BASE|0,st[nt]%=BASE;for(et&&(st.unshift(et),++rt),it=st.length;st[--it]==0;)st.pop();return _e.d=st,_e.e=rt,external?round(_e,ct):_e}function checkInt32(j,_e,et){if(j!==~~j||j<_e||j>et)throw Error(invalidArgument+j)}function digitsToString(j){var _e,et,tt,rt=j.length-1,nt="",ot=j[0];if(rt>0){for(nt+=ot,_e=1;_eot?1:-1;else for(it=st=0;itrt[it]?1:-1;break}return st}function et(tt,rt,nt){for(var ot=0;nt--;)tt[nt]-=ot,ot=tt[nt]1;)tt.shift()}return function(tt,rt,nt,ot){var it,st,lt,ut,ct,dt,ft,pt,gt,mt,bt,_t,xt,yt,Et,St,Tt,kt,$t=tt.constructor,Ct=tt.s==rt.s?1:-1,It=tt.d,Nt=rt.d;if(!tt.s)return new $t(tt);if(!rt.s)throw Error(decimalError+"Division by zero");for(st=tt.e-rt.e,Tt=Nt.length,Et=It.length,ft=new $t(Ct),pt=ft.d=[],lt=0;Nt[lt]==(It[lt]||0);)++lt;if(Nt[lt]>(It[lt]||0)&&--st,nt==null?_t=nt=$t.precision:ot?_t=nt+(getBase10Exponent(tt)-getBase10Exponent(rt))+1:_t=nt,_t<0)return new $t(0);if(_t=_t/LOG_BASE+2|0,lt=0,Tt==1)for(ut=0,Nt=Nt[0],_t++;(lt1&&(Nt=j(Nt,ut),It=j(It,ut),Tt=Nt.length,Et=It.length),yt=Tt,gt=It.slice(0,Tt),mt=gt.length;mt=BASE/2&&++St;do ut=0,it=_e(Nt,gt,Tt,mt),it<0?(bt=gt[0],Tt!=mt&&(bt=bt*BASE+(gt[1]||0)),ut=bt/St|0,ut>1?(ut>=BASE&&(ut=BASE-1),ct=j(Nt,ut),dt=ct.length,mt=gt.length,it=_e(ct,gt,dt,mt),it==1&&(ut--,et(ct,Tt16)throw Error(exponentOutOfRange+getBase10Exponent(j));if(!j.s)return new ut(ONE);for(_e==null?(external=!1,it=ct):it=_e,ot=new ut(.03125);j.abs().gte(.1);)j=j.times(ot),lt+=5;for(tt=Math.log(mathpow(2,lt))/Math.LN10*2+5|0,it+=tt,et=rt=nt=new ut(ONE),ut.precision=it;;){if(rt=round(rt.times(j),it),et=et.times(++st),ot=nt.plus(divide(rt,et,it)),digitsToString(ot.d).slice(0,it)===digitsToString(nt.d).slice(0,it)){for(;lt--;)nt=round(nt.times(nt),it);return ut.precision=ct,_e==null?(external=!0,round(nt,ct)):nt}nt=ot}}function getBase10Exponent(j){for(var _e=j.e*LOG_BASE,et=j.d[0];et>=10;et/=10)_e++;return _e}function getLn10(j,_e,et){if(_e>j.LN10.sd())throw external=!0,et&&(j.precision=et),Error(decimalError+"LN10 precision limit exceeded");return round(new j(j.LN10),_e)}function getZeroString(j){for(var _e="";j--;)_e+="0";return _e}function ln(j,_e){var et,tt,rt,nt,ot,it,st,lt,ut,ct=1,dt=10,ft=j,pt=ft.d,gt=ft.constructor,mt=gt.precision;if(ft.s<1)throw Error(decimalError+(ft.s?"NaN":"-Infinity"));if(ft.eq(ONE))return new gt(0);if(_e==null?(external=!1,lt=mt):lt=_e,ft.eq(10))return _e==null&&(external=!0),getLn10(gt,lt);if(lt+=dt,gt.precision=lt,et=digitsToString(pt),tt=et.charAt(0),nt=getBase10Exponent(ft),Math.abs(nt)<15e14){for(;tt<7&&tt!=1||tt==1&&et.charAt(1)>3;)ft=ft.times(j),et=digitsToString(ft.d),tt=et.charAt(0),ct++;nt=getBase10Exponent(ft),tt>1?(ft=new gt("0."+et),nt++):ft=new gt(tt+"."+et.slice(1))}else return st=getLn10(gt,lt+2,mt).times(nt+""),ft=ln(new gt(tt+"."+et.slice(1)),lt-dt).plus(st),gt.precision=mt,_e==null?(external=!0,round(ft,mt)):ft;for(it=ot=ft=divide(ft.minus(ONE),ft.plus(ONE),lt),ut=round(ft.times(ft),lt),rt=3;;){if(ot=round(ot.times(ut),lt),st=it.plus(divide(ot,new gt(rt),lt)),digitsToString(st.d).slice(0,lt)===digitsToString(it.d).slice(0,lt))return it=it.times(2),nt!==0&&(it=it.plus(getLn10(gt,lt+2,mt).times(nt+""))),it=divide(it,new gt(ct),lt),gt.precision=mt,_e==null?(external=!0,round(it,mt)):it;it=st,rt+=2}}function parseDecimal(j,_e){var et,tt,rt;for((et=_e.indexOf("."))>-1&&(_e=_e.replace(".","")),(tt=_e.search(/e/i))>0?(et<0&&(et=tt),et+=+_e.slice(tt+1),_e=_e.substring(0,tt)):et<0&&(et=_e.length),tt=0;_e.charCodeAt(tt)===48;)++tt;for(rt=_e.length;_e.charCodeAt(rt-1)===48;)--rt;if(_e=_e.slice(tt,rt),_e){if(rt-=tt,et=et-tt-1,j.e=mathfloor(et/LOG_BASE),j.d=[],tt=(et+1)%LOG_BASE,et<0&&(tt+=LOG_BASE),ttMAX_E||j.e<-MAX_E))throw Error(exponentOutOfRange+et)}else j.s=0,j.e=0,j.d=[0];return j}function round(j,_e,et){var tt,rt,nt,ot,it,st,lt,ut,ct=j.d;for(ot=1,nt=ct[0];nt>=10;nt/=10)ot++;if(tt=_e-ot,tt<0)tt+=LOG_BASE,rt=_e,lt=ct[ut=0];else{if(ut=Math.ceil((tt+1)/LOG_BASE),nt=ct.length,ut>=nt)return j;for(lt=nt=ct[ut],ot=1;nt>=10;nt/=10)ot++;tt%=LOG_BASE,rt=tt-LOG_BASE+ot}if(et!==void 0&&(nt=mathpow(10,ot-rt-1),it=lt/nt%10|0,st=_e<0||ct[ut+1]!==void 0||lt%nt,st=et<4?(it||st)&&(et==0||et==(j.s<0?3:2)):it>5||it==5&&(et==4||st||et==6&&(tt>0?rt>0?lt/mathpow(10,ot-rt):0:ct[ut-1])%10&1||et==(j.s<0?8:7))),_e<1||!ct[0])return st?(nt=getBase10Exponent(j),ct.length=1,_e=_e-nt-1,ct[0]=mathpow(10,(LOG_BASE-_e%LOG_BASE)%LOG_BASE),j.e=mathfloor(-_e/LOG_BASE)||0):(ct.length=1,ct[0]=j.e=j.s=0),j;if(tt==0?(ct.length=ut,nt=1,ut--):(ct.length=ut+1,nt=mathpow(10,LOG_BASE-tt),ct[ut]=rt>0?(lt/mathpow(10,ot-rt)%mathpow(10,rt)|0)*nt:0),st)for(;;)if(ut==0){(ct[0]+=nt)==BASE&&(ct[0]=1,++j.e);break}else{if(ct[ut]+=nt,ct[ut]!=BASE)break;ct[ut--]=0,nt=1}for(tt=ct.length;ct[--tt]===0;)ct.pop();if(external&&(j.e>MAX_E||j.e<-MAX_E))throw Error(exponentOutOfRange+getBase10Exponent(j));return j}function subtract(j,_e){var et,tt,rt,nt,ot,it,st,lt,ut,ct,dt=j.constructor,ft=dt.precision;if(!j.s||!_e.s)return _e.s?_e.s=-_e.s:_e=new dt(j),external?round(_e,ft):_e;if(st=j.d,ct=_e.d,tt=_e.e,lt=j.e,st=st.slice(),ot=lt-tt,ot){for(ut=ot<0,ut?(et=st,ot=-ot,it=ct.length):(et=ct,tt=lt,it=st.length),rt=Math.max(Math.ceil(ft/LOG_BASE),it)+2,ot>rt&&(ot=rt,et.length=1),et.reverse(),rt=ot;rt--;)et.push(0);et.reverse()}else{for(rt=st.length,it=ct.length,ut=rt0;--rt)st[it++]=0;for(rt=ct.length;rt>ot;){if(st[--rt]0?nt=nt.charAt(0)+"."+nt.slice(1)+getZeroString(tt):ot>1&&(nt=nt.charAt(0)+"."+nt.slice(1)),nt=nt+(rt<0?"e":"e+")+rt):rt<0?(nt="0."+getZeroString(-rt-1)+nt,et&&(tt=et-ot)>0&&(nt+=getZeroString(tt))):rt>=ot?(nt+=getZeroString(rt+1-ot),et&&(tt=et-rt-1)>0&&(nt=nt+"."+getZeroString(tt))):((tt=rt+1)0&&(rt+1===ot&&(nt+="."),nt+=getZeroString(tt))),j.s<0?"-"+nt:nt}function truncate(j,_e){if(j.length>_e)return j.length=_e,!0}function clone(j){var _e,et,tt;function rt(nt){var ot=this;if(!(ot instanceof rt))return new rt(nt);if(ot.constructor=rt,nt instanceof rt){ot.s=nt.s,ot.e=nt.e,ot.d=(nt=nt.d)?nt.slice():nt;return}if(typeof nt=="number"){if(nt*0!==0)throw Error(invalidArgument+nt);if(nt>0)ot.s=1;else if(nt<0)nt=-nt,ot.s=-1;else{ot.s=0,ot.e=0,ot.d=[0];return}if(nt===~~nt&&nt<1e7){ot.e=0,ot.d=[nt];return}return parseDecimal(ot,nt.toString())}else if(typeof nt!="string")throw Error(invalidArgument+nt);if(nt.charCodeAt(0)===45?(nt=nt.slice(1),ot.s=-1):ot.s=1,isDecimal.test(nt))parseDecimal(ot,nt);else throw Error(invalidArgument+nt)}if(rt.prototype=P,rt.ROUND_UP=0,rt.ROUND_DOWN=1,rt.ROUND_CEIL=2,rt.ROUND_FLOOR=3,rt.ROUND_HALF_UP=4,rt.ROUND_HALF_DOWN=5,rt.ROUND_HALF_EVEN=6,rt.ROUND_HALF_CEIL=7,rt.ROUND_HALF_FLOOR=8,rt.clone=clone,rt.config=rt.set=config,j===void 0&&(j={}),j)for(tt=["precision","rounding","toExpNeg","toExpPos","LN10"],_e=0;_e=rt[_e+1]&&tt<=rt[_e+2])this[et]=tt;else throw Error(invalidArgument+et+": "+tt);if((tt=j[et="LN10"])!==void 0)if(tt==Math.LN10)this[et]=new this(tt);else throw Error(invalidArgument+et+": "+tt);return this}var Decimal=clone(defaults);ONE=new Decimal(1);const Decimal$1=Decimal;function _toConsumableArray$7(j){return _arrayWithoutHoles$7(j)||_iterableToArray$7(j)||_unsupportedIterableToArray$c(j)||_nonIterableSpread$7()}function _nonIterableSpread$7(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$c(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$c(j,_e)}}function _iterableToArray$7(j){if(typeof Symbol<"u"&&Symbol.iterator in Object(j))return Array.from(j)}function _arrayWithoutHoles$7(j){if(Array.isArray(j))return _arrayLikeToArray$c(j)}function _arrayLikeToArray$c(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}var identity=function j(_e){return _e},PLACE_HOLDER={"@@functional/placeholder":!0},isPlaceHolder=function j(_e){return _e===PLACE_HOLDER},curry0=function j(_e){return function et(){return arguments.length===0||arguments.length===1&&isPlaceHolder(arguments.length<=0?void 0:arguments[0])?et:_e.apply(void 0,arguments)}},curryN=function j(_e,et){return _e===1?et:curry0(function(){for(var tt=arguments.length,rt=new Array(tt),nt=0;nt=_e?et.apply(void 0,rt):j(_e-ot,curry0(function(){for(var it=arguments.length,st=new Array(it),lt=0;ltj.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$6(j,_e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(j)))){var et=[],tt=!0,rt=!1,nt=void 0;try{for(var ot=j[Symbol.iterator](),it;!(tt=(it=ot.next()).done)&&(et.push(it.value),!(_e&&et.length===_e));tt=!0);}catch(st){rt=!0,nt=st}finally{try{!tt&&ot.return!=null&&ot.return()}finally{if(rt)throw nt}}return et}}function _arrayWithHoles$6(j){if(Array.isArray(j))return j}function getValidInterval(j){var _e=_slicedToArray$6(j,2),et=_e[0],tt=_e[1],rt=et,nt=tt;return et>tt&&(rt=tt,nt=et),[rt,nt]}function getFormatStep(j,_e,et){if(j.lte(0))return new Decimal$1(0);var tt=Arithmetic.getDigitCount(j.toNumber()),rt=new Decimal$1(10).pow(tt),nt=j.div(rt),ot=tt!==1?.05:.1,it=new Decimal$1(Math.ceil(nt.div(ot).toNumber())).add(et).mul(ot),st=it.mul(rt);return _e?st:new Decimal$1(Math.ceil(st))}function getTickOfSingleValue(j,_e,et){var tt=1,rt=new Decimal$1(j);if(!rt.isint()&&et){var nt=Math.abs(j);nt<1?(tt=new Decimal$1(10).pow(Arithmetic.getDigitCount(j)-1),rt=new Decimal$1(Math.floor(rt.div(tt).toNumber())).mul(tt)):nt>1&&(rt=new Decimal$1(Math.floor(j)))}else j===0?rt=new Decimal$1(Math.floor((_e-1)/2)):et||(rt=new Decimal$1(Math.floor(j)));var ot=Math.floor((_e-1)/2),it=compose(map(function(st){return rt.add(new Decimal$1(st-ot).mul(tt)).toNumber()}),range);return it(0,_e)}function calculateStep(j,_e,et,tt){var rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((_e-j)/(et-1)))return{step:new Decimal$1(0),tickMin:new Decimal$1(0),tickMax:new Decimal$1(0)};var nt=getFormatStep(new Decimal$1(_e).sub(j).div(et-1),tt,rt),ot;j<=0&&_e>=0?ot=new Decimal$1(0):(ot=new Decimal$1(j).add(_e).div(2),ot=ot.sub(new Decimal$1(ot).mod(nt)));var it=Math.ceil(ot.sub(j).div(nt).toNumber()),st=Math.ceil(new Decimal$1(_e).sub(ot).div(nt).toNumber()),lt=it+st+1;return lt>et?calculateStep(j,_e,et,tt,rt+1):(lt0?st+(et-lt):st,it=_e>0?it:it+(et-lt)),{step:nt,tickMin:ot.sub(new Decimal$1(it).mul(nt)),tickMax:ot.add(new Decimal$1(st).mul(nt))})}function getNiceTickValuesFn(j){var _e=_slicedToArray$6(j,2),et=_e[0],tt=_e[1],rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,ot=Math.max(rt,2),it=getValidInterval([et,tt]),st=_slicedToArray$6(it,2),lt=st[0],ut=st[1];if(lt===-1/0||ut===1/0){var ct=ut===1/0?[lt].concat(_toConsumableArray$6(range(0,rt-1).map(function(){return 1/0}))):[].concat(_toConsumableArray$6(range(0,rt-1).map(function(){return-1/0})),[ut]);return et>tt?reverse(ct):ct}if(lt===ut)return getTickOfSingleValue(lt,rt,nt);var dt=calculateStep(lt,ut,ot,nt),ft=dt.step,pt=dt.tickMin,gt=dt.tickMax,mt=Arithmetic.rangeStep(pt,gt.add(new Decimal$1(.1).mul(ft)),ft);return et>tt?reverse(mt):mt}function getTickValuesFixedDomainFn(j,_e){var et=_slicedToArray$6(j,2),tt=et[0],rt=et[1],nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,ot=getValidInterval([tt,rt]),it=_slicedToArray$6(ot,2),st=it[0],lt=it[1];if(st===-1/0||lt===1/0)return[tt,rt];if(st===lt)return[st];var ut=Math.max(_e,2),ct=getFormatStep(new Decimal$1(lt).sub(st).div(ut-1),nt,0),dt=[].concat(_toConsumableArray$6(Arithmetic.rangeStep(new Decimal$1(st),new Decimal$1(lt).sub(new Decimal$1(.99).mul(ct)),ct)),[lt]);return tt>rt?reverse(dt):dt}var getNiceTickValues=memoize(getNiceTickValuesFn),getTickValuesFixedDomain=memoize(getTickValuesFixedDomainFn),_excluded$8=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(j){for(var _e=1;_ej.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$5(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$5(j){if(Array.isArray(j))return j}function _objectWithoutProperties$8(j,_e){if(j==null)return{};var et=_objectWithoutPropertiesLoose$8(j,_e),tt,rt;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(j);for(rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$8(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function ErrorBar(j){var _e=j.offset,et=j.layout,tt=j.width,rt=j.dataKey,nt=j.data,ot=j.dataPointFormatter,it=j.xAxis,st=j.yAxis,lt=_objectWithoutProperties$8(j,_excluded$8),ut=filterProps(lt),ct=nt.map(function(dt){var ft=ot(dt,rt),pt=ft.x,gt=ft.y,mt=ft.value,bt=ft.errorVal;if(!bt)return null;var _t=[],xt,yt;if(Array.isArray(bt)){var Et=_slicedToArray$5(bt,2);xt=Et[0],yt=Et[1]}else xt=yt=bt;if(et==="vertical"){var St=it.scale,Tt=gt+_e,kt=Tt+tt,$t=Tt-tt,Ct=St(mt-xt),It=St(mt+yt);_t.push({x1:It,y1:kt,x2:It,y2:$t}),_t.push({x1:Ct,y1:Tt,x2:It,y2:Tt}),_t.push({x1:Ct,y1:kt,x2:Ct,y2:$t})}else if(et==="horizontal"){var Nt=st.scale,Ot=pt+_e,jt=Ot-tt,Mt=Ot+tt,Rt=Nt(mt-xt),Lt=Nt(mt+yt);_t.push({x1:jt,y1:Lt,x2:Mt,y2:Lt}),_t.push({x1:Ot,y1:Rt,x2:Ot,y2:Lt}),_t.push({x1:jt,y1:Rt,x2:Mt,y2:Rt})}return React.createElement(Layer,_extends$i({className:"recharts-errorBar",key:"bar-".concat(_t.map(function(Pt){return"".concat(Pt.x1,"-").concat(Pt.x2,"-").concat(Pt.y1,"-").concat(Pt.y2)}))},ut),_t.map(function(Pt){return React.createElement("line",_extends$i({},Pt,{key:"line-".concat(Pt.x1,"-").concat(Pt.x2,"-").concat(Pt.y1,"-").concat(Pt.y2)}))}))});return React.createElement(Layer,{className:"recharts-errorBars"},ct)}ErrorBar.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};ErrorBar.displayName="ErrorBar";function _typeof$o(j){"@babel/helpers - typeof";return _typeof$o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$o(j)}function ownKeys$n(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$n(j){for(var _e=1;_ej.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function getValueByDataKey(j,_e,et){return isNil$1(j)||isNil$1(_e)?et:isNumOrStr(_e)?get$3(j,_e,et):isFunction$6(_e)?_e(j):et}function getDomainOfDataByKey(j,_e,et,tt){var rt=flatMap$1(j,function(it){return getValueByDataKey(it,_e)});if(et==="number"){var nt=rt.filter(function(it){return isNumber(it)||parseFloat(it)});return nt.length?[min$3(nt),max$3(nt)]:[1/0,-1/0]}var ot=tt?rt.filter(function(it){return!isNil$1(it)}):rt;return ot.map(function(it){return isNumOrStr(it)||it instanceof Date?it:""})}var calculateActiveTickIndex=function j(_e){var et,tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=arguments.length>2?arguments[2]:void 0,nt=arguments.length>3?arguments[3]:void 0,ot=-1,it=(et=tt==null?void 0:tt.length)!==null&&et!==void 0?et:0;if(it<=1)return 0;if(nt&&nt.axisType==="angleAxis"&&Math.abs(Math.abs(nt.range[1]-nt.range[0])-360)<=1e-6)for(var st=nt.range,lt=0;lt0?rt[lt-1].coordinate:rt[it-1].coordinate,ct=rt[lt].coordinate,dt=lt>=it-1?rt[0].coordinate:rt[lt+1].coordinate,ft=void 0;if(mathSign(ct-ut)!==mathSign(dt-ct)){var pt=[];if(mathSign(dt-ct)===mathSign(st[1]-st[0])){ft=dt;var gt=ct+st[1]-st[0];pt[0]=Math.min(gt,(gt+ut)/2),pt[1]=Math.max(gt,(gt+ut)/2)}else{ft=ut;var mt=dt+st[1]-st[0];pt[0]=Math.min(ct,(mt+ct)/2),pt[1]=Math.max(ct,(mt+ct)/2)}var bt=[Math.min(ct,(ft+ct)/2),Math.max(ct,(ft+ct)/2)];if(_e>bt[0]&&_e<=bt[1]||_e>=pt[0]&&_e<=pt[1]){ot=rt[lt].index;break}}else{var _t=Math.min(ut,dt),xt=Math.max(ut,dt);if(_e>(_t+ct)/2&&_e<=(xt+ct)/2){ot=rt[lt].index;break}}}else for(var yt=0;yt0&&yt(tt[yt].coordinate+tt[yt-1].coordinate)/2&&_e<=(tt[yt].coordinate+tt[yt+1].coordinate)/2||yt===it-1&&_e>(tt[yt].coordinate+tt[yt-1].coordinate)/2){ot=tt[yt].index;break}return ot},getMainColorOfGraphicItem=function j(_e){var et=_e,tt=et.type.displayName,rt=_e.props,nt=rt.stroke,ot=rt.fill,it;switch(tt){case"Line":it=nt;break;case"Area":case"Radar":it=nt&&nt!=="none"?nt:ot;break;default:it=ot;break}return it},getBarSizeList=function j(_e){var et=_e.barSize,tt=_e.stackGroups,rt=tt===void 0?{}:tt;if(!rt)return{};for(var nt={},ot=Object.keys(rt),it=0,st=ot.length;it=0});if(mt&&mt.length){var bt=mt[0].props.barSize,_t=mt[0].props[gt];nt[_t]||(nt[_t]=[]),nt[_t].push({item:mt[0],stackList:mt.slice(1),barSize:isNil$1(bt)?et:bt})}}return nt},getBarPosition=function j(_e){var et=_e.barGap,tt=_e.barCategoryGap,rt=_e.bandSize,nt=_e.sizeList,ot=nt===void 0?[]:nt,it=_e.maxBarSize,st=ot.length;if(st<1)return null;var lt=getPercentValue(et,rt,0,!0),ut,ct=[];if(ot[0].barSize===+ot[0].barSize){var dt=!1,ft=rt/st,pt=ot.reduce(function(yt,Et){return yt+Et.barSize||0},0);pt+=(st-1)*lt,pt>=rt&&(pt-=(st-1)*lt,lt=0),pt>=rt&&ft>0&&(dt=!0,ft*=.9,pt=st*ft);var gt=(rt-pt)/2>>0,mt={offset:gt-lt,size:0};ut=ot.reduce(function(yt,Et){var St={item:Et.item,position:{offset:mt.offset+mt.size+lt,size:dt?ft:Et.barSize}},Tt=[].concat(_toConsumableArray$5(yt),[St]);return mt=Tt[Tt.length-1].position,Et.stackList&&Et.stackList.length&&Et.stackList.forEach(function(kt){Tt.push({item:kt,position:mt})}),Tt},ct)}else{var bt=getPercentValue(tt,rt,0,!0);rt-2*bt-(st-1)*lt<=0&&(lt=0);var _t=(rt-2*bt-(st-1)*lt)/st;_t>1&&(_t>>=0);var xt=it===+it?Math.min(_t,it):_t;ut=ot.reduce(function(yt,Et,St){var Tt=[].concat(_toConsumableArray$5(yt),[{item:Et.item,position:{offset:bt+(_t+lt)*St+(_t-xt)/2,size:xt}}]);return Et.stackList&&Et.stackList.length&&Et.stackList.forEach(function(kt){Tt.push({item:kt,position:Tt[Tt.length-1].position})}),Tt},ct)}return ut},appendOffsetOfLegend=function j(_e,et,tt,rt){var nt=tt.children,ot=tt.width,it=tt.margin,st=ot-(it.left||0)-(it.right||0),lt=getLegendProps({children:nt,legendWidth:st});if(lt){var ut=rt||{},ct=ut.width,dt=ut.height,ft=lt.align,pt=lt.verticalAlign,gt=lt.layout;if((gt==="vertical"||gt==="horizontal"&&pt==="middle")&&ft!=="center"&&isNumber(_e[ft]))return _objectSpread$m(_objectSpread$m({},_e),{},_defineProperty$n({},ft,_e[ft]+(ct||0)));if((gt==="horizontal"||gt==="vertical"&&ft==="center")&&pt!=="middle"&&isNumber(_e[pt]))return _objectSpread$m(_objectSpread$m({},_e),{},_defineProperty$n({},pt,_e[pt]+(dt||0)))}return _e},isErrorBarRelevantForAxis=function j(_e,et,tt){return isNil$1(et)?!0:_e==="horizontal"?et==="yAxis":_e==="vertical"||tt==="x"?et==="xAxis":tt==="y"?et==="yAxis":!0},getDomainOfErrorBars=function j(_e,et,tt,rt,nt){var ot=et.props.children,it=findAllByType(ot,ErrorBar).filter(function(lt){return isErrorBarRelevantForAxis(rt,nt,lt.props.direction)});if(it&&it.length){var st=it.map(function(lt){return lt.props.dataKey});return _e.reduce(function(lt,ut){var ct=getValueByDataKey(ut,tt,0),dt=Array.isArray(ct)?[min$3(ct),max$3(ct)]:[ct,ct],ft=st.reduce(function(pt,gt){var mt=getValueByDataKey(ut,gt,0),bt=dt[0]-Math.abs(Array.isArray(mt)?mt[0]:mt),_t=dt[1]+Math.abs(Array.isArray(mt)?mt[1]:mt);return[Math.min(bt,pt[0]),Math.max(_t,pt[1])]},[1/0,-1/0]);return[Math.min(ft[0],lt[0]),Math.max(ft[1],lt[1])]},[1/0,-1/0])}return null},parseErrorBarsOfAxis=function j(_e,et,tt,rt,nt){var ot=et.map(function(it){return getDomainOfErrorBars(_e,it,tt,nt,rt)}).filter(function(it){return!isNil$1(it)});return ot&&ot.length?ot.reduce(function(it,st){return[Math.min(it[0],st[0]),Math.max(it[1],st[1])]},[1/0,-1/0]):null},getDomainOfItemsWithSameAxis=function j(_e,et,tt,rt,nt){var ot=et.map(function(st){var lt=st.props.dataKey;return tt==="number"&<&&getDomainOfErrorBars(_e,st,lt,rt)||getDomainOfDataByKey(_e,lt,tt,nt)});if(tt==="number")return ot.reduce(function(st,lt){return[Math.min(st[0],lt[0]),Math.max(st[1],lt[1])]},[1/0,-1/0]);var it={};return ot.reduce(function(st,lt){for(var ut=0,ct=lt.length;ut=2?mathSign(it[0]-it[1])*2*lt:lt,et&&(_e.ticks||_e.niceTicks)){var ut=(_e.ticks||_e.niceTicks).map(function(ct){var dt=nt?nt.indexOf(ct):ct;return{coordinate:rt(dt)+lt,value:ct,offset:lt}});return ut.filter(function(ct){return!isNan(ct.coordinate)})}return _e.isCategorical&&_e.categoricalDomain?_e.categoricalDomain.map(function(ct,dt){return{coordinate:rt(ct)+lt,value:ct,index:dt,offset:lt}}):rt.ticks&&!tt?rt.ticks(_e.tickCount).map(function(ct){return{coordinate:rt(ct)+lt,value:ct,offset:lt}}):rt.domain().map(function(ct,dt){return{coordinate:rt(ct)+lt,value:nt?nt[ct]:ct,index:dt,offset:lt}})},handlerWeakMap=new WeakMap,combineEventHandlers=function j(_e,et){if(typeof et!="function")return _e;handlerWeakMap.has(_e)||handlerWeakMap.set(_e,new WeakMap);var tt=handlerWeakMap.get(_e);if(tt.has(et))return tt.get(et);var rt=function(){_e.apply(void 0,arguments),et.apply(void 0,arguments)};return tt.set(et,rt),rt},parseScale=function j(_e,et,tt){var rt=_e.scale,nt=_e.type,ot=_e.layout,it=_e.axisType;if(rt==="auto")return ot==="radial"&&it==="radiusAxis"?{scale:band(),realScaleType:"band"}:ot==="radial"&&it==="angleAxis"?{scale:linear(),realScaleType:"linear"}:nt==="category"&&et&&(et.indexOf("LineChart")>=0||et.indexOf("AreaChart")>=0||et.indexOf("ComposedChart")>=0&&!tt)?{scale:point(),realScaleType:"point"}:nt==="category"?{scale:band(),realScaleType:"band"}:{scale:linear(),realScaleType:"linear"};if(isString$1(rt)){var st="scale".concat(upperFirst$1(rt));return{scale:(d3Scales[st]||point)(),realScaleType:d3Scales[st]?st:"point"}}return isFunction$6(rt)?{scale:rt}:{scale:point(),realScaleType:"point"}},EPS=1e-4,checkDomainOfScale=function j(_e){var et=_e.domain();if(!(!et||et.length<=2)){var tt=et.length,rt=_e.range(),nt=Math.min(rt[0],rt[1])-EPS,ot=Math.max(rt[0],rt[1])+EPS,it=_e(et[0]),st=_e(et[tt-1]);(itot||stot)&&_e.domain([et[0],et[tt-1]])}},offsetSign=function j(_e){var et=_e.length;if(!(et<=0))for(var tt=0,rt=_e[0].length;tt=0?(_e[it][tt][0]=nt,_e[it][tt][1]=nt+st,nt=_e[it][tt][1]):(_e[it][tt][0]=ot,_e[it][tt][1]=ot+st,ot=_e[it][tt][1])}},offsetPositive=function j(_e){var et=_e.length;if(!(et<=0))for(var tt=0,rt=_e[0].length;tt=0?(_e[ot][tt][0]=nt,_e[ot][tt][1]=nt+it,nt=_e[ot][tt][1]):(_e[ot][tt][0]=0,_e[ot][tt][1]=0)}},STACK_OFFSET_MAP={sign:offsetSign,expand:stackOffsetExpand,none:stackOffsetNone,silhouette:stackOffsetSilhouette,wiggle:stackOffsetWiggle,positive:offsetPositive},getStackedData=function j(_e,et,tt){var rt=et.map(function(it){return it.props.dataKey}),nt=STACK_OFFSET_MAP[tt],ot=shapeStack().keys(rt).value(function(it,st){return+getValueByDataKey(it,st,0)}).order(stackOrderNone).offset(nt);return ot(_e)},getStackGroupsByAxisId=function j(_e,et,tt,rt,nt,ot){if(!_e)return null;var it=ot?et.reverse():et,st={},lt=it.reduce(function(ct,dt){var ft=dt.props,pt=ft.stackId,gt=ft.hide;if(gt)return ct;var mt=dt.props[tt],bt=ct[mt]||{hasStack:!1,stackGroups:{}};if(isNumOrStr(pt)){var _t=bt.stackGroups[pt]||{numericAxisId:tt,cateAxisId:rt,items:[]};_t.items.push(dt),bt.hasStack=!0,bt.stackGroups[pt]=_t}else bt.stackGroups[uniqueId("_stackId_")]={numericAxisId:tt,cateAxisId:rt,items:[dt]};return _objectSpread$m(_objectSpread$m({},ct),{},_defineProperty$n({},mt,bt))},st),ut={};return Object.keys(lt).reduce(function(ct,dt){var ft=lt[dt];if(ft.hasStack){var pt={};ft.stackGroups=Object.keys(ft.stackGroups).reduce(function(gt,mt){var bt=ft.stackGroups[mt];return _objectSpread$m(_objectSpread$m({},gt),{},_defineProperty$n({},mt,{numericAxisId:tt,cateAxisId:rt,items:bt.items,stackedData:getStackedData(_e,bt.items,nt)}))},pt)}return _objectSpread$m(_objectSpread$m({},ct),{},_defineProperty$n({},dt,ft))},ut)},getTicksOfScale=function j(_e,et){var tt=et.realScaleType,rt=et.type,nt=et.tickCount,ot=et.originalDomain,it=et.allowDecimals,st=tt||et.scale;if(st!=="auto"&&st!=="linear")return null;if(nt&&rt==="number"&&ot&&(ot[0]==="auto"||ot[1]==="auto")){var lt=_e.domain();if(!lt.length)return null;var ut=getNiceTickValues(lt,nt,it);return _e.domain([min$3(ut),max$3(ut)]),{niceTicks:ut}}if(nt&&rt==="number"){var ct=_e.domain(),dt=getTickValuesFixedDomain(ct,nt,it);return{niceTicks:dt}}return null},getStackedDataOfItem=function j(_e,et){var tt=_e.props.stackId;if(isNumOrStr(tt)){var rt=et[tt];if(rt){var nt=rt.items.indexOf(_e);return nt>=0?rt.stackedData[nt]:null}}return null},getDomainOfSingle=function j(_e){return _e.reduce(function(et,tt){return[min$3(tt.concat([et[0]]).filter(isNumber)),max$3(tt.concat([et[1]]).filter(isNumber))]},[1/0,-1/0])},getDomainOfStackGroups=function j(_e,et,tt){return Object.keys(_e).reduce(function(rt,nt){var ot=_e[nt],it=ot.stackedData,st=it.reduce(function(lt,ut){var ct=getDomainOfSingle(ut.slice(et,tt+1));return[Math.min(lt[0],ct[0]),Math.max(lt[1],ct[1])]},[1/0,-1/0]);return[Math.min(st[0],rt[0]),Math.max(st[1],rt[1])]},[1/0,-1/0]).map(function(rt){return rt===1/0||rt===-1/0?0:rt})},MIN_VALUE_REG=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MAX_VALUE_REG=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,parseSpecifiedDomain=function j(_e,et,tt){if(isFunction$6(_e))return _e(et,tt);if(!Array.isArray(_e))return et;var rt=[];if(isNumber(_e[0]))rt[0]=tt?_e[0]:Math.min(_e[0],et[0]);else if(MIN_VALUE_REG.test(_e[0])){var nt=+MIN_VALUE_REG.exec(_e[0])[1];rt[0]=et[0]-nt}else isFunction$6(_e[0])?rt[0]=_e[0](et[0]):rt[0]=et[0];if(isNumber(_e[1]))rt[1]=tt?_e[1]:Math.max(_e[1],et[1]);else if(MAX_VALUE_REG.test(_e[1])){var ot=+MAX_VALUE_REG.exec(_e[1])[1];rt[1]=et[1]+ot}else isFunction$6(_e[1])?rt[1]=_e[1](et[1]):rt[1]=et[1];return rt},getBandSizeOfAxis=function j(_e,et,tt){if(_e&&_e.scale&&_e.scale.bandwidth){var rt=_e.scale.bandwidth();if(!tt||rt>0)return rt}if(_e&&et&&et.length>=2){for(var nt=sortBy$1(et,function(ct){return ct.coordinate}),ot=1/0,it=1,st=nt.length;itj.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$4(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$4(j){if(Array.isArray(j))return j}var RADIAN$1=Math.PI/180,radianToDegree=function j(_e){return _e*180/Math.PI},polarToCartesian=function j(_e,et,tt,rt){return{x:_e+Math.cos(-RADIAN$1*rt)*tt,y:et+Math.sin(-RADIAN$1*rt)*tt}},getMaxRadius=function j(_e,et){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(_e-(tt.left||0)-(tt.right||0)),Math.abs(et-(tt.top||0)-(tt.bottom||0)))/2},formatAxisMap=function j(_e,et,tt,rt,nt){var ot=_e.width,it=_e.height,st=_e.startAngle,lt=_e.endAngle,ut=getPercentValue(_e.cx,ot,ot/2),ct=getPercentValue(_e.cy,it,it/2),dt=getMaxRadius(ot,it,tt),ft=getPercentValue(_e.innerRadius,dt,0),pt=getPercentValue(_e.outerRadius,dt,dt*.8),gt=Object.keys(et);return gt.reduce(function(mt,bt){var _t=et[bt],xt=_t.domain,yt=_t.reversed,Et;if(isNil$1(_t.range))rt==="angleAxis"?Et=[st,lt]:rt==="radiusAxis"&&(Et=[ft,pt]),yt&&(Et=[Et[1],Et[0]]);else{Et=_t.range;var St=Et,Tt=_slicedToArray$4(St,2);st=Tt[0],lt=Tt[1]}var kt=parseScale(_t,nt),$t=kt.realScaleType,Ct=kt.scale;Ct.domain(xt).range(Et),checkDomainOfScale(Ct);var It=getTicksOfScale(Ct,_objectSpread$l(_objectSpread$l({},_t),{},{realScaleType:$t})),Nt=_objectSpread$l(_objectSpread$l(_objectSpread$l({},_t),It),{},{range:Et,radius:pt,realScaleType:$t,scale:Ct,cx:ut,cy:ct,innerRadius:ft,outerRadius:pt,startAngle:st,endAngle:lt});return _objectSpread$l(_objectSpread$l({},mt),{},_defineProperty$m({},bt,Nt))},{})},distanceBetweenPoints=function j(_e,et){var tt=_e.x,rt=_e.y,nt=et.x,ot=et.y;return Math.sqrt(Math.pow(tt-nt,2)+Math.pow(rt-ot,2))},getAngleOfPoint=function j(_e,et){var tt=_e.x,rt=_e.y,nt=et.cx,ot=et.cy,it=distanceBetweenPoints({x:tt,y:rt},{x:nt,y:ot});if(it<=0)return{radius:it};var st=(tt-nt)/it,lt=Math.acos(st);return rt>ot&&(lt=2*Math.PI-lt),{radius:it,angle:radianToDegree(lt),angleInRadian:lt}},formatAngleOfSector=function j(_e){var et=_e.startAngle,tt=_e.endAngle,rt=Math.floor(et/360),nt=Math.floor(tt/360),ot=Math.min(rt,nt);return{startAngle:et-ot*360,endAngle:tt-ot*360}},reverseFormatAngleOfSetor=function j(_e,et){var tt=et.startAngle,rt=et.endAngle,nt=Math.floor(tt/360),ot=Math.floor(rt/360),it=Math.min(nt,ot);return _e+it*360},inRangeOfSector=function j(_e,et){var tt=_e.x,rt=_e.y,nt=getAngleOfPoint({x:tt,y:rt},et),ot=nt.radius,it=nt.angle,st=et.innerRadius,lt=et.outerRadius;if(otlt)return!1;if(ot===0)return!0;var ut=formatAngleOfSector(et),ct=ut.startAngle,dt=ut.endAngle,ft=it,pt;if(ct<=dt){for(;ft>dt;)ft-=360;for(;ft=ct&&ft<=dt}else{for(;ft>ct;)ft-=360;for(;ft=dt&&ft<=ct}return pt?_objectSpread$l(_objectSpread$l({},et),{},{radius:ot,angle:reverseFormatAngleOfSetor(ft,et)}):null};function _typeof$l(j){"@babel/helpers - typeof";return _typeof$l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$l(j)}var _excluded$7=["offset"];function _toConsumableArray$4(j){return _arrayWithoutHoles$4(j)||_iterableToArray$4(j)||_unsupportedIterableToArray$7(j)||_nonIterableSpread$4()}function _nonIterableSpread$4(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$7(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$7(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$7(j,_e)}}function _iterableToArray$4(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _arrayWithoutHoles$4(j){if(Array.isArray(j))return _arrayLikeToArray$7(j)}function _arrayLikeToArray$7(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _objectWithoutProperties$7(j,_e){if(j==null)return{};var et=_objectWithoutPropertiesLoose$7(j,_e),tt,rt;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(j);for(rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$7(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function ownKeys$k(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$k(j){for(var _e=1;_e=0?1:-1,xt,yt;rt==="insideStart"?(xt=ft+_t*ot,yt=gt):rt==="insideEnd"?(xt=pt-_t*ot,yt=!gt):rt==="end"&&(xt=pt+_t*ot,yt=gt),yt=bt<=0?yt:!yt;var Et=polarToCartesian(lt,ut,mt,xt),St=polarToCartesian(lt,ut,mt,xt+(yt?1:-1)*359),Tt="M".concat(Et.x,",").concat(Et.y,` - A`).concat(mt,",").concat(mt,",0,1,").concat(yt?0:1,`, - `).concat(St.x,",").concat(St.y),kt=isNil$1(_e.id)?uniqueId("recharts-radial-line-"):_e.id;return React.createElement("text",_extends$h({},tt,{dominantBaseline:"central",className:clsx("recharts-radial-bar-label",it)}),React.createElement("defs",null,React.createElement("path",{id:kt,d:Tt})),React.createElement("textPath",{xlinkHref:"#".concat(kt)},et))},getAttrsOfPolarLabel=function j(_e){var et=_e.viewBox,tt=_e.offset,rt=_e.position,nt=et,ot=nt.cx,it=nt.cy,st=nt.innerRadius,lt=nt.outerRadius,ut=nt.startAngle,ct=nt.endAngle,dt=(ut+ct)/2;if(rt==="outside"){var ft=polarToCartesian(ot,it,lt+tt,dt),pt=ft.x,gt=ft.y;return{x:pt,y:gt,textAnchor:pt>=ot?"start":"end",verticalAnchor:"middle"}}if(rt==="center")return{x:ot,y:it,textAnchor:"middle",verticalAnchor:"middle"};if(rt==="centerTop")return{x:ot,y:it,textAnchor:"middle",verticalAnchor:"start"};if(rt==="centerBottom")return{x:ot,y:it,textAnchor:"middle",verticalAnchor:"end"};var mt=(st+lt)/2,bt=polarToCartesian(ot,it,mt,dt),_t=bt.x,xt=bt.y;return{x:_t,y:xt,textAnchor:"middle",verticalAnchor:"middle"}},getAttrsOfCartesianLabel=function j(_e){var et=_e.viewBox,tt=_e.parentViewBox,rt=_e.offset,nt=_e.position,ot=et,it=ot.x,st=ot.y,lt=ot.width,ut=ot.height,ct=ut>=0?1:-1,dt=ct*rt,ft=ct>0?"end":"start",pt=ct>0?"start":"end",gt=lt>=0?1:-1,mt=gt*rt,bt=gt>0?"end":"start",_t=gt>0?"start":"end";if(nt==="top"){var xt={x:it+lt/2,y:st-ct*rt,textAnchor:"middle",verticalAnchor:ft};return _objectSpread$k(_objectSpread$k({},xt),tt?{height:Math.max(st-tt.y,0),width:lt}:{})}if(nt==="bottom"){var yt={x:it+lt/2,y:st+ut+dt,textAnchor:"middle",verticalAnchor:pt};return _objectSpread$k(_objectSpread$k({},yt),tt?{height:Math.max(tt.y+tt.height-(st+ut),0),width:lt}:{})}if(nt==="left"){var Et={x:it-mt,y:st+ut/2,textAnchor:bt,verticalAnchor:"middle"};return _objectSpread$k(_objectSpread$k({},Et),tt?{width:Math.max(Et.x-tt.x,0),height:ut}:{})}if(nt==="right"){var St={x:it+lt+mt,y:st+ut/2,textAnchor:_t,verticalAnchor:"middle"};return _objectSpread$k(_objectSpread$k({},St),tt?{width:Math.max(tt.x+tt.width-St.x,0),height:ut}:{})}var Tt=tt?{width:lt,height:ut}:{};return nt==="insideLeft"?_objectSpread$k({x:it+mt,y:st+ut/2,textAnchor:_t,verticalAnchor:"middle"},Tt):nt==="insideRight"?_objectSpread$k({x:it+lt-mt,y:st+ut/2,textAnchor:bt,verticalAnchor:"middle"},Tt):nt==="insideTop"?_objectSpread$k({x:it+lt/2,y:st+dt,textAnchor:"middle",verticalAnchor:pt},Tt):nt==="insideBottom"?_objectSpread$k({x:it+lt/2,y:st+ut-dt,textAnchor:"middle",verticalAnchor:ft},Tt):nt==="insideTopLeft"?_objectSpread$k({x:it+mt,y:st+dt,textAnchor:_t,verticalAnchor:pt},Tt):nt==="insideTopRight"?_objectSpread$k({x:it+lt-mt,y:st+dt,textAnchor:bt,verticalAnchor:pt},Tt):nt==="insideBottomLeft"?_objectSpread$k({x:it+mt,y:st+ut-dt,textAnchor:_t,verticalAnchor:ft},Tt):nt==="insideBottomRight"?_objectSpread$k({x:it+lt-mt,y:st+ut-dt,textAnchor:bt,verticalAnchor:ft},Tt):isObject$h(nt)&&(isNumber(nt.x)||isPercent(nt.x))&&(isNumber(nt.y)||isPercent(nt.y))?_objectSpread$k({x:it+getPercentValue(nt.x,lt),y:st+getPercentValue(nt.y,ut),textAnchor:"end",verticalAnchor:"end"},Tt):_objectSpread$k({x:it+lt/2,y:st+ut/2,textAnchor:"middle",verticalAnchor:"middle"},Tt)},isPolar=function j(_e){return"cx"in _e&&isNumber(_e.cx)};function Label(j){var _e=j.offset,et=_e===void 0?5:_e,tt=_objectWithoutProperties$7(j,_excluded$7),rt=_objectSpread$k({offset:et},tt),nt=rt.viewBox,ot=rt.position,it=rt.value,st=rt.children,lt=rt.content,ut=rt.className,ct=ut===void 0?"":ut,dt=rt.textBreakAll;if(!nt||isNil$1(it)&&isNil$1(st)&&!reactExports.isValidElement(lt)&&!isFunction$6(lt))return null;if(reactExports.isValidElement(lt))return reactExports.cloneElement(lt,rt);var ft;if(isFunction$6(lt)){if(ft=reactExports.createElement(lt,rt),reactExports.isValidElement(ft))return ft}else ft=getLabel(rt);var pt=isPolar(nt),gt=filterProps(rt,!0);if(pt&&(ot==="insideStart"||ot==="insideEnd"||ot==="end"))return renderRadialLabel(rt,ft,gt);var mt=pt?getAttrsOfPolarLabel(rt):getAttrsOfCartesianLabel(rt);return React.createElement(Text$1,_extends$h({className:clsx("recharts-label",ct)},gt,mt,{breakAll:dt}),ft)}Label.displayName="Label";var parseViewBox=function j(_e){var et=_e.cx,tt=_e.cy,rt=_e.angle,nt=_e.startAngle,ot=_e.endAngle,it=_e.r,st=_e.radius,lt=_e.innerRadius,ut=_e.outerRadius,ct=_e.x,dt=_e.y,ft=_e.top,pt=_e.left,gt=_e.width,mt=_e.height,bt=_e.clockWise,_t=_e.labelViewBox;if(_t)return _t;if(isNumber(gt)&&isNumber(mt)){if(isNumber(ct)&&isNumber(dt))return{x:ct,y:dt,width:gt,height:mt};if(isNumber(ft)&&isNumber(pt))return{x:ft,y:pt,width:gt,height:mt}}return isNumber(ct)&&isNumber(dt)?{x:ct,y:dt,width:0,height:0}:isNumber(et)&&isNumber(tt)?{cx:et,cy:tt,startAngle:nt||rt||0,endAngle:ot||rt||0,innerRadius:lt||0,outerRadius:ut||st||it||0,clockWise:bt}:_e.viewBox?_e.viewBox:{}},parseLabel=function j(_e,et){return _e?_e===!0?React.createElement(Label,{key:"label-implicit",viewBox:et}):isNumOrStr(_e)?React.createElement(Label,{key:"label-implicit",viewBox:et,value:_e}):reactExports.isValidElement(_e)?_e.type===Label?reactExports.cloneElement(_e,{key:"label-implicit",viewBox:et}):React.createElement(Label,{key:"label-implicit",content:_e,viewBox:et}):isFunction$6(_e)?React.createElement(Label,{key:"label-implicit",content:_e,viewBox:et}):isObject$h(_e)?React.createElement(Label,_extends$h({viewBox:et},_e,{key:"label-implicit"})):null:null},renderCallByParent$1=function j(_e,et){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!_e||!_e.children&&tt&&!_e.label)return null;var rt=_e.children,nt=parseViewBox(_e),ot=findAllByType(rt,Label).map(function(st,lt){return reactExports.cloneElement(st,{viewBox:et||nt,key:"label-".concat(lt)})});if(!tt)return ot;var it=parseLabel(_e.label,et||nt);return[it].concat(_toConsumableArray$4(ot))};Label.parseViewBox=parseViewBox;Label.renderCallByParent=renderCallByParent$1;function _typeof$k(j){"@babel/helpers - typeof";return _typeof$k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$k(j)}var _excluded$6=["valueAccessor"],_excluded2$3=["data","dataKey","clockWise","id","textBreakAll"];function _toConsumableArray$3(j){return _arrayWithoutHoles$3(j)||_iterableToArray$3(j)||_unsupportedIterableToArray$6(j)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$6(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$6(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$6(j,_e)}}function _iterableToArray$3(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _arrayWithoutHoles$3(j){if(Array.isArray(j))return _arrayLikeToArray$6(j)}function _arrayLikeToArray$6(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$6(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}var defaultAccessor=function j(_e){return Array.isArray(_e.value)?last$1(_e.value):_e.value};function LabelList(j){var _e=j.valueAccessor,et=_e===void 0?defaultAccessor:_e,tt=_objectWithoutProperties$6(j,_excluded$6),rt=tt.data,nt=tt.dataKey,ot=tt.clockWise,it=tt.id,st=tt.textBreakAll,lt=_objectWithoutProperties$6(tt,_excluded2$3);return!rt||!rt.length?null:React.createElement(Layer,{className:"recharts-label-list"},rt.map(function(ut,ct){var dt=isNil$1(nt)?et(ut,ct):getValueByDataKey(ut&&ut.payload,nt),ft=isNil$1(it)?{}:{id:"".concat(it,"-").concat(ct)};return React.createElement(Label,_extends$g({},filterProps(ut,!0),lt,ft,{parentViewBox:ut.parentViewBox,value:dt,textBreakAll:st,viewBox:Label.parseViewBox(isNil$1(ot)?ut:_objectSpread$j(_objectSpread$j({},ut),{},{clockWise:ot})),key:"label-".concat(ct),index:ct}))}))}LabelList.displayName="LabelList";function parseLabelList(j,_e){return j?j===!0?React.createElement(LabelList,{key:"labelList-implicit",data:_e}):React.isValidElement(j)||isFunction$6(j)?React.createElement(LabelList,{key:"labelList-implicit",data:_e,content:j}):isObject$h(j)?React.createElement(LabelList,_extends$g({data:_e},j,{key:"labelList-implicit"})):null:null}function renderCallByParent(j,_e){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!j||!j.children&&et&&!j.label)return null;var tt=j.children,rt=findAllByType(tt,LabelList).map(function(ot,it){return reactExports.cloneElement(ot,{data:_e,key:"labelList-".concat(it)})});if(!et)return rt;var nt=parseLabelList(j.label,_e);return[nt].concat(_toConsumableArray$3(rt))}LabelList.renderCallByParent=renderCallByParent;function _typeof$j(j){"@babel/helpers - typeof";return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$j(j)}function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e180),",").concat(+(ot>lt),`, - `).concat(ct.x,",").concat(ct.y,` - `);if(rt>0){var ft=polarToCartesian(et,tt,rt,ot),pt=polarToCartesian(et,tt,rt,lt);dt+="L ".concat(pt.x,",").concat(pt.y,` - A `).concat(rt,",").concat(rt,`,0, - `).concat(+(Math.abs(st)>180),",").concat(+(ot<=lt),`, - `).concat(ft.x,",").concat(ft.y," Z")}else dt+="L ".concat(et,",").concat(tt," Z");return dt},getSectorWithCorner=function j(_e){var et=_e.cx,tt=_e.cy,rt=_e.innerRadius,nt=_e.outerRadius,ot=_e.cornerRadius,it=_e.forceCornerRadius,st=_e.cornerIsExternal,lt=_e.startAngle,ut=_e.endAngle,ct=mathSign(ut-lt),dt=getTangentCircle({cx:et,cy:tt,radius:nt,angle:lt,sign:ct,cornerRadius:ot,cornerIsExternal:st}),ft=dt.circleTangency,pt=dt.lineTangency,gt=dt.theta,mt=getTangentCircle({cx:et,cy:tt,radius:nt,angle:ut,sign:-ct,cornerRadius:ot,cornerIsExternal:st}),bt=mt.circleTangency,_t=mt.lineTangency,xt=mt.theta,yt=st?Math.abs(lt-ut):Math.abs(lt-ut)-gt-xt;if(yt<0)return it?"M ".concat(pt.x,",").concat(pt.y,` - a`).concat(ot,",").concat(ot,",0,0,1,").concat(ot*2,`,0 - a`).concat(ot,",").concat(ot,",0,0,1,").concat(-ot*2,`,0 - `):getSectorPath({cx:et,cy:tt,innerRadius:rt,outerRadius:nt,startAngle:lt,endAngle:ut});var Et="M ".concat(pt.x,",").concat(pt.y,` - A`).concat(ot,",").concat(ot,",0,0,").concat(+(ct<0),",").concat(ft.x,",").concat(ft.y,` - A`).concat(nt,",").concat(nt,",0,").concat(+(yt>180),",").concat(+(ct<0),",").concat(bt.x,",").concat(bt.y,` - A`).concat(ot,",").concat(ot,",0,0,").concat(+(ct<0),",").concat(_t.x,",").concat(_t.y,` - `);if(rt>0){var St=getTangentCircle({cx:et,cy:tt,radius:rt,angle:lt,sign:ct,isExternal:!0,cornerRadius:ot,cornerIsExternal:st}),Tt=St.circleTangency,kt=St.lineTangency,$t=St.theta,Ct=getTangentCircle({cx:et,cy:tt,radius:rt,angle:ut,sign:-ct,isExternal:!0,cornerRadius:ot,cornerIsExternal:st}),It=Ct.circleTangency,Nt=Ct.lineTangency,Ot=Ct.theta,jt=st?Math.abs(lt-ut):Math.abs(lt-ut)-$t-Ot;if(jt<0&&ot===0)return"".concat(Et,"L").concat(et,",").concat(tt,"Z");Et+="L".concat(Nt.x,",").concat(Nt.y,` - A`).concat(ot,",").concat(ot,",0,0,").concat(+(ct<0),",").concat(It.x,",").concat(It.y,` - A`).concat(rt,",").concat(rt,",0,").concat(+(jt>180),",").concat(+(ct>0),",").concat(Tt.x,",").concat(Tt.y,` - A`).concat(ot,",").concat(ot,",0,0,").concat(+(ct<0),",").concat(kt.x,",").concat(kt.y,"Z")}else Et+="L".concat(et,",").concat(tt,"Z");return Et},defaultProps$2={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Sector=function j(_e){var et=_objectSpread$i(_objectSpread$i({},defaultProps$2),_e),tt=et.cx,rt=et.cy,nt=et.innerRadius,ot=et.outerRadius,it=et.cornerRadius,st=et.forceCornerRadius,lt=et.cornerIsExternal,ut=et.startAngle,ct=et.endAngle,dt=et.className;if(ot0&&Math.abs(ut-ct)<360?mt=getSectorWithCorner({cx:tt,cy:rt,innerRadius:nt,outerRadius:ot,cornerRadius:Math.min(gt,pt/2),forceCornerRadius:st,cornerIsExternal:lt,startAngle:ut,endAngle:ct}):mt=getSectorPath({cx:tt,cy:rt,innerRadius:nt,outerRadius:ot,startAngle:ut,endAngle:ct}),React.createElement("path",_extends$f({},filterProps(et,!0),{className:ft,d:mt,role:"img"}))};function _typeof$i(j){"@babel/helpers - typeof";return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$i(j)}function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(j){for(var _e=1;_ej.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$3(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$3(j){if(Array.isArray(j))return j}function ownKeys$g(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$g(j){for(var _e=1;_e=0?1:-1,st=tt>=0?1:-1,lt=rt>=0&&tt>=0||rt<0&&tt<0?1:0,ut;if(ot>0&&nt instanceof Array){for(var ct=[0,0,0,0],dt=0,ft=4;dtot?ot:nt[dt];ut="M".concat(_e,",").concat(et+it*ct[0]),ct[0]>0&&(ut+="A ".concat(ct[0],",").concat(ct[0],",0,0,").concat(lt,",").concat(_e+st*ct[0],",").concat(et)),ut+="L ".concat(_e+tt-st*ct[1],",").concat(et),ct[1]>0&&(ut+="A ".concat(ct[1],",").concat(ct[1],",0,0,").concat(lt,`, - `).concat(_e+tt,",").concat(et+it*ct[1])),ut+="L ".concat(_e+tt,",").concat(et+rt-it*ct[2]),ct[2]>0&&(ut+="A ".concat(ct[2],",").concat(ct[2],",0,0,").concat(lt,`, - `).concat(_e+tt-st*ct[2],",").concat(et+rt)),ut+="L ".concat(_e+st*ct[3],",").concat(et+rt),ct[3]>0&&(ut+="A ".concat(ct[3],",").concat(ct[3],",0,0,").concat(lt,`, - `).concat(_e,",").concat(et+rt-it*ct[3])),ut+="Z"}else if(ot>0&&nt===+nt&&nt>0){var pt=Math.min(ot,nt);ut="M ".concat(_e,",").concat(et+it*pt,` - A `).concat(pt,",").concat(pt,",0,0,").concat(lt,",").concat(_e+st*pt,",").concat(et,` - L `).concat(_e+tt-st*pt,",").concat(et,` - A `).concat(pt,",").concat(pt,",0,0,").concat(lt,",").concat(_e+tt,",").concat(et+it*pt,` - L `).concat(_e+tt,",").concat(et+rt-it*pt,` - A `).concat(pt,",").concat(pt,",0,0,").concat(lt,",").concat(_e+tt-st*pt,",").concat(et+rt,` - L `).concat(_e+st*pt,",").concat(et+rt,` - A `).concat(pt,",").concat(pt,",0,0,").concat(lt,",").concat(_e,",").concat(et+rt-it*pt," Z")}else ut="M ".concat(_e,",").concat(et," h ").concat(tt," v ").concat(rt," h ").concat(-tt," Z");return ut},isInRectangle=function j(_e,et){if(!_e||!et)return!1;var tt=_e.x,rt=_e.y,nt=et.x,ot=et.y,it=et.width,st=et.height;if(Math.abs(it)>0&&Math.abs(st)>0){var lt=Math.min(nt,nt+it),ut=Math.max(nt,nt+it),ct=Math.min(ot,ot+st),dt=Math.max(ot,ot+st);return tt>=lt&&tt<=ut&&rt>=ct&&rt<=dt}return!1},defaultProps$1={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rectangle=function j(_e){var et=_objectSpread$g(_objectSpread$g({},defaultProps$1),_e),tt=reactExports.useRef(),rt=reactExports.useState(-1),nt=_slicedToArray$3(rt,2),ot=nt[0],it=nt[1];reactExports.useEffect(function(){if(tt.current&&tt.current.getTotalLength)try{var yt=tt.current.getTotalLength();yt&&it(yt)}catch{}},[]);var st=et.x,lt=et.y,ut=et.width,ct=et.height,dt=et.radius,ft=et.className,pt=et.animationEasing,gt=et.animationDuration,mt=et.animationBegin,bt=et.isAnimationActive,_t=et.isUpdateAnimationActive;if(st!==+st||lt!==+lt||ut!==+ut||ct!==+ct||ut===0||ct===0)return null;var xt=clsx("recharts-rectangle",ft);return _t?React.createElement(Animate,{canBegin:ot>0,from:{width:ut,height:ct,x:st,y:lt},to:{width:ut,height:ct,x:st,y:lt},duration:gt,animationEasing:pt,isActive:_t},function(yt){var Et=yt.width,St=yt.height,Tt=yt.x,kt=yt.y;return React.createElement(Animate,{canBegin:ot>0,from:"0px ".concat(ot===-1?1:ot,"px"),to:"".concat(ot,"px 0px"),attributeName:"strokeDasharray",begin:mt,duration:gt,isActive:bt,easing:pt},React.createElement("path",_extends$d({},filterProps(et,!0),{className:xt,d:getRectanglePath(Tt,kt,Et,St,dt),ref:tt})))}):React.createElement("path",_extends$d({},filterProps(et,!0),{className:xt,d:getRectanglePath(st,lt,ut,ct,dt)}))},_excluded$5=["points","className","baseLinePoints","connectNulls"];function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$5(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function _toConsumableArray$2(j){return _arrayWithoutHoles$2(j)||_iterableToArray$2(j)||_unsupportedIterableToArray$4(j)||_nonIterableSpread$2()}function _nonIterableSpread$2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$4(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$4(j,_e)}}function _iterableToArray$2(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _arrayWithoutHoles$2(j){if(Array.isArray(j))return _arrayLikeToArray$4(j)}function _arrayLikeToArray$4(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}var isValidatePoint=function j(_e){return _e&&_e.x===+_e.x&&_e.y===+_e.y},getParsedPoints=function j(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],et=[[]];return _e.forEach(function(tt){isValidatePoint(tt)?et[et.length-1].push(tt):et[et.length-1].length>0&&et.push([])}),isValidatePoint(_e[0])&&et[et.length-1].push(_e[0]),et[et.length-1].length<=0&&(et=et.slice(0,-1)),et},getSinglePolygonPath=function j(_e,et){var tt=getParsedPoints(_e);et&&(tt=[tt.reduce(function(nt,ot){return[].concat(_toConsumableArray$2(nt),_toConsumableArray$2(ot))},[])]);var rt=tt.map(function(nt){return nt.reduce(function(ot,it,st){return"".concat(ot).concat(st===0?"M":"L").concat(it.x,",").concat(it.y)},"")}).join("");return tt.length===1?"".concat(rt,"Z"):rt},getRanglePath=function j(_e,et,tt){var rt=getSinglePolygonPath(_e,tt);return"".concat(rt.slice(-1)==="Z"?rt.slice(0,-1):rt,"L").concat(getSinglePolygonPath(et.reverse(),tt).slice(1))},Polygon=function j(_e){var et=_e.points,tt=_e.className,rt=_e.baseLinePoints,nt=_e.connectNulls,ot=_objectWithoutProperties$5(_e,_excluded$5);if(!et||!et.length)return null;var it=clsx("recharts-polygon",tt);if(rt&&rt.length){var st=ot.stroke&&ot.stroke!=="none",lt=getRanglePath(et,rt,nt);return React.createElement("g",{className:it},React.createElement("path",_extends$c({},filterProps(ot,!0),{fill:lt.slice(-1)==="Z"?ot.fill:"none",stroke:"none",d:lt})),st?React.createElement("path",_extends$c({},filterProps(ot,!0),{fill:"none",d:getSinglePolygonPath(et,nt)})):null,st?React.createElement("path",_extends$c({},filterProps(ot,!0),{fill:"none",d:getSinglePolygonPath(rt,nt)})):null)}var ut=getSinglePolygonPath(et,nt);return React.createElement("path",_extends$c({},filterProps(ot,!0),{fill:ut.slice(-1)==="Z"?ot.fill:"none",className:it,d:ut}))};function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$4(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}var getPath=function j(_e,et,tt,rt,nt,ot){return"M".concat(_e,",").concat(nt,"v").concat(rt,"M").concat(ot,",").concat(et,"h").concat(tt)},Cross=function j(_e){var et=_e.x,tt=et===void 0?0:et,rt=_e.y,nt=rt===void 0?0:rt,ot=_e.top,it=ot===void 0?0:ot,st=_e.left,lt=st===void 0?0:st,ut=_e.width,ct=ut===void 0?0:ut,dt=_e.height,ft=dt===void 0?0:dt,pt=_e.className,gt=_objectWithoutProperties$4(_e,_excluded$4),mt=_objectSpread$f({x:tt,y:nt,top:it,left:lt,width:ct,height:ft},gt);return!isNumber(tt)||!isNumber(nt)||!isNumber(ct)||!isNumber(ft)||!isNumber(it)||!isNumber(lt)?null:React.createElement("path",_extends$a({},filterProps(mt,!0),{className:clsx("recharts-cross",pt),d:getPath(tt,nt,ct,ft,it,lt)}))},baseExtremum=_baseExtremum,baseGt=_baseGt,baseIteratee$2=_baseIteratee;function maxBy(j,_e){return j&&j.length?baseExtremum(j,baseIteratee$2(_e),baseGt):void 0}var maxBy_1=maxBy;const maxBy$1=getDefaultExportFromCjs(maxBy_1);var _excluded$3=["cx","cy","angle","ticks","axisLine"],_excluded2$2=["ticks","tick","angle","tickFormatter","stroke"];function _typeof$f(j){"@babel/helpers - typeof";return _typeof$f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$f(j)}function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$3(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function _classCallCheck$7(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,_toPropertyKey$f(tt.key),tt)}}function _createClass$7(j,_e,et){return _e&&_defineProperties$7(j.prototype,_e),et&&_defineProperties$7(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}function _inherits$5(j,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(_e&&_e.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),_e&&_setPrototypeOf$5(j,_e)}function _setPrototypeOf$5(j,_e){return _setPrototypeOf$5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tt,rt){return tt.__proto__=rt,tt},_setPrototypeOf$5(j,_e)}function _createSuper$5(j){var _e=_isNativeReflectConstruct$5();return function(){var tt=_getPrototypeOf$5(j),rt;if(_e){var nt=_getPrototypeOf$5(this).constructor;rt=Reflect.construct(tt,arguments,nt)}else rt=tt.apply(this,arguments);return _possibleConstructorReturn$5(this,rt)}}function _possibleConstructorReturn$5(j,_e){if(_e&&(_typeof$f(_e)==="object"||typeof _e=="function"))return _e;if(_e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(j)}function _assertThisInitialized$5(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$5(j){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$5(j)}function _defineProperty$f(j,_e,et){return _e=_toPropertyKey$f(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$f(j){var _e=_toPrimitive$f(j,"string");return _typeof$f(_e)==="symbol"?_e:String(_e)}function _toPrimitive$f(j,_e){if(_typeof$f(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$f(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var PolarRadiusAxis=function(j){_inherits$5(et,j);var _e=_createSuper$5(et);function et(){return _classCallCheck$7(this,et),_e.apply(this,arguments)}return _createClass$7(et,[{key:"getTickValueCoord",value:function(rt){var nt=rt.coordinate,ot=this.props,it=ot.angle,st=ot.cx,lt=ot.cy;return polarToCartesian(st,lt,nt,it)}},{key:"getTickTextAnchor",value:function(){var rt=this.props.orientation,nt;switch(rt){case"left":nt="end";break;case"right":nt="start";break;default:nt="middle";break}return nt}},{key:"getViewBox",value:function(){var rt=this.props,nt=rt.cx,ot=rt.cy,it=rt.angle,st=rt.ticks,lt=maxBy$1(st,function(ct){return ct.coordinate||0}),ut=minBy$1(st,function(ct){return ct.coordinate||0});return{cx:nt,cy:ot,startAngle:it,endAngle:it,innerRadius:ut.coordinate||0,outerRadius:lt.coordinate||0}}},{key:"renderAxisLine",value:function(){var rt=this.props,nt=rt.cx,ot=rt.cy,it=rt.angle,st=rt.ticks,lt=rt.axisLine,ut=_objectWithoutProperties$3(rt,_excluded$3),ct=st.reduce(function(gt,mt){return[Math.min(gt[0],mt.coordinate),Math.max(gt[1],mt.coordinate)]},[1/0,-1/0]),dt=polarToCartesian(nt,ot,ct[0],it),ft=polarToCartesian(nt,ot,ct[1],it),pt=_objectSpread$e(_objectSpread$e(_objectSpread$e({},filterProps(ut)),{},{fill:"none"},filterProps(lt)),{},{x1:dt.x,y1:dt.y,x2:ft.x,y2:ft.y});return React.createElement("line",_extends$9({className:"recharts-polar-radius-axis-line"},pt))}},{key:"renderTicks",value:function(){var rt=this,nt=this.props,ot=nt.ticks,it=nt.tick,st=nt.angle,lt=nt.tickFormatter,ut=nt.stroke,ct=_objectWithoutProperties$3(nt,_excluded2$2),dt=this.getTickTextAnchor(),ft=filterProps(ct),pt=filterProps(it),gt=ot.map(function(mt,bt){var _t=rt.getTickValueCoord(mt),xt=_objectSpread$e(_objectSpread$e(_objectSpread$e(_objectSpread$e({textAnchor:dt,transform:"rotate(".concat(90-st,", ").concat(_t.x,", ").concat(_t.y,")")},ft),{},{stroke:"none",fill:ut},pt),{},{index:bt},_t),{},{payload:mt});return React.createElement(Layer,_extends$9({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(mt.coordinate)},adaptEventsOfChild(rt.props,mt,bt)),et.renderTickItem(it,xt,lt?lt(mt.value,bt):mt.value))});return React.createElement(Layer,{className:"recharts-polar-radius-axis-ticks"},gt)}},{key:"render",value:function(){var rt=this.props,nt=rt.ticks,ot=rt.axisLine,it=rt.tick;return!nt||!nt.length?null:React.createElement(Layer,{className:"recharts-polar-radius-axis"},ot&&this.renderAxisLine(),it&&this.renderTicks(),Label.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(rt,nt,ot){var it;return React.isValidElement(rt)?it=React.cloneElement(rt,nt):isFunction$6(rt)?it=rt(nt):it=React.createElement(Text$1,_extends$9({},nt,{className:"recharts-polar-radius-axis-tick-value"}),ot),it}}]),et}(reactExports.PureComponent);_defineProperty$f(PolarRadiusAxis,"displayName","PolarRadiusAxis");_defineProperty$f(PolarRadiusAxis,"axisType","radiusAxis");_defineProperty$f(PolarRadiusAxis,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function _typeof$e(j){"@babel/helpers - typeof";return _typeof$e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$e(j)}function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$4(j){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$4(j)}function _defineProperty$e(j,_e,et){return _e=_toPropertyKey$e(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$e(j){var _e=_toPrimitive$e(j,"string");return _typeof$e(_e)==="symbol"?_e:String(_e)}function _toPrimitive$e(j,_e){if(_typeof$e(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$e(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var RADIAN=Math.PI/180,eps=1e-5,PolarAngleAxis=function(j){_inherits$4(et,j);var _e=_createSuper$4(et);function et(){return _classCallCheck$6(this,et),_e.apply(this,arguments)}return _createClass$6(et,[{key:"getTickLineCoord",value:function(rt){var nt=this.props,ot=nt.cx,it=nt.cy,st=nt.radius,lt=nt.orientation,ut=nt.tickSize,ct=ut||8,dt=polarToCartesian(ot,it,st,rt.coordinate),ft=polarToCartesian(ot,it,st+(lt==="inner"?-1:1)*ct,rt.coordinate);return{x1:dt.x,y1:dt.y,x2:ft.x,y2:ft.y}}},{key:"getTickTextAnchor",value:function(rt){var nt=this.props.orientation,ot=Math.cos(-rt.coordinate*RADIAN),it;return ot>eps?it=nt==="outer"?"start":"end":ot<-eps?it=nt==="outer"?"end":"start":it="middle",it}},{key:"renderAxisLine",value:function(){var rt=this.props,nt=rt.cx,ot=rt.cy,it=rt.radius,st=rt.axisLine,lt=rt.axisLineType,ut=_objectSpread$d(_objectSpread$d({},filterProps(this.props)),{},{fill:"none"},filterProps(st));if(lt==="circle")return React.createElement(Dot,_extends$8({className:"recharts-polar-angle-axis-line"},ut,{cx:nt,cy:ot,r:it}));var ct=this.props.ticks,dt=ct.map(function(ft){return polarToCartesian(nt,ot,it,ft.coordinate)});return React.createElement(Polygon,_extends$8({className:"recharts-polar-angle-axis-line"},ut,{points:dt}))}},{key:"renderTicks",value:function(){var rt=this,nt=this.props,ot=nt.ticks,it=nt.tick,st=nt.tickLine,lt=nt.tickFormatter,ut=nt.stroke,ct=filterProps(this.props),dt=filterProps(it),ft=_objectSpread$d(_objectSpread$d({},ct),{},{fill:"none"},filterProps(st)),pt=ot.map(function(gt,mt){var bt=rt.getTickLineCoord(gt),_t=rt.getTickTextAnchor(gt),xt=_objectSpread$d(_objectSpread$d(_objectSpread$d({textAnchor:_t},ct),{},{stroke:"none",fill:ut},dt),{},{index:mt,payload:gt,x:bt.x2,y:bt.y2});return React.createElement(Layer,_extends$8({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(gt.coordinate)},adaptEventsOfChild(rt.props,gt,mt)),st&&React.createElement("line",_extends$8({className:"recharts-polar-angle-axis-tick-line"},ft,bt)),it&&et.renderTickItem(it,xt,lt?lt(gt.value,mt):gt.value))});return React.createElement(Layer,{className:"recharts-polar-angle-axis-ticks"},pt)}},{key:"render",value:function(){var rt=this.props,nt=rt.ticks,ot=rt.radius,it=rt.axisLine;return ot<=0||!nt||!nt.length?null:React.createElement(Layer,{className:"recharts-polar-angle-axis"},it&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(rt,nt,ot){var it;return React.isValidElement(rt)?it=React.cloneElement(rt,nt):isFunction$6(rt)?it=rt(nt):it=React.createElement(Text$1,_extends$8({},nt,{className:"recharts-polar-angle-axis-tick-value"}),ot),it}}]),et}(reactExports.PureComponent);_defineProperty$e(PolarAngleAxis,"displayName","PolarAngleAxis");_defineProperty$e(PolarAngleAxis,"axisType","angleAxis");_defineProperty$e(PolarAngleAxis,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,boolTag="[object Boolean]";function isBoolean(j){return j===!0||j===!1||isObjectLike(j)&&baseGetTag(j)==boolTag}var isBoolean_1=isBoolean;const isBoolean$1=getDefaultExportFromCjs(isBoolean_1);function _typeof$d(j){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$d(j)}function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(j){for(var _e=1;_ej.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$2(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$2(j){if(Array.isArray(j))return j}function ownKeys$c(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$c(j){for(var _e=1;_e0,from:{upperWidth:0,lowerWidth:0,height:dt,x:st,y:lt},to:{upperWidth:ut,lowerWidth:ct,height:dt,x:st,y:lt},duration:gt,animationEasing:pt,isActive:bt},function(xt){var yt=xt.upperWidth,Et=xt.lowerWidth,St=xt.height,Tt=xt.x,kt=xt.y;return React.createElement(Animate,{canBegin:ot>0,from:"0px ".concat(ot===-1?1:ot,"px"),to:"".concat(ot,"px 0px"),attributeName:"strokeDasharray",begin:mt,duration:gt,easing:pt},React.createElement("path",_extends$7({},filterProps(et,!0),{className:_t,d:getTrapezoidPath(Tt,kt,yt,Et,St),ref:tt})))}):React.createElement("g",null,React.createElement("path",_extends$7({},filterProps(et,!0),{className:_t,d:getTrapezoidPath(st,lt,ut,ct,dt)})))},_excluded$2=["option","shapeType","propTransformer","activeClassName","isActive"];function _typeof$c(j){"@babel/helpers - typeof";return _typeof$c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$c(j)}function _objectWithoutProperties$2(j,_e){if(j==null)return{};var et=_objectWithoutPropertiesLoose$2(j,_e),tt,rt;if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(j);for(rt=0;rt=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$2(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function ownKeys$b(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$b(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$3(j){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$3(j)}function _defineProperty$b(j,_e,et){return _e=_toPropertyKey$b(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$b(j){var _e=_toPrimitive$b(j,"string");return _typeof$b(_e)==="symbol"?_e:String(_e)}function _toPrimitive$b(j,_e){if(_typeof$b(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$b(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var Pie=function(j){_inherits$3(et,j);var _e=_createSuper$3(et);function et(tt){var rt;return _classCallCheck$5(this,et),rt=_e.call(this,tt),_defineProperty$b(_assertThisInitialized$3(rt),"pieRef",null),_defineProperty$b(_assertThisInitialized$3(rt),"sectorRefs",[]),_defineProperty$b(_assertThisInitialized$3(rt),"id",uniqueId("recharts-pie-")),_defineProperty$b(_assertThisInitialized$3(rt),"handleAnimationEnd",function(){var nt=rt.props.onAnimationEnd;rt.setState({isAnimationFinished:!0}),isFunction$6(nt)&&nt()}),_defineProperty$b(_assertThisInitialized$3(rt),"handleAnimationStart",function(){var nt=rt.props.onAnimationStart;rt.setState({isAnimationFinished:!1}),isFunction$6(nt)&&nt()}),rt.state={isAnimationFinished:!tt.isAnimationActive,prevIsAnimationActive:tt.isAnimationActive,prevAnimationId:tt.animationId,sectorToFocus:0},rt}return _createClass$5(et,[{key:"isActiveIndex",value:function(rt){var nt=this.props.activeIndex;return Array.isArray(nt)?nt.indexOf(rt)!==-1:rt===nt}},{key:"hasActiveIndex",value:function(){var rt=this.props.activeIndex;return Array.isArray(rt)?rt.length!==0:rt||rt===0}},{key:"renderLabels",value:function(rt){var nt=this.props.isAnimationActive;if(nt&&!this.state.isAnimationFinished)return null;var ot=this.props,it=ot.label,st=ot.labelLine,lt=ot.dataKey,ut=ot.valueKey,ct=filterProps(this.props),dt=filterProps(it),ft=filterProps(st),pt=it&&it.offsetRadius||20,gt=rt.map(function(mt,bt){var _t=(mt.startAngle+mt.endAngle)/2,xt=polarToCartesian(mt.cx,mt.cy,mt.outerRadius+pt,_t),yt=_objectSpread$a(_objectSpread$a(_objectSpread$a(_objectSpread$a({},ct),mt),{},{stroke:"none"},dt),{},{index:bt,textAnchor:et.getTextAnchor(xt.x,mt.cx)},xt),Et=_objectSpread$a(_objectSpread$a(_objectSpread$a(_objectSpread$a({},ct),mt),{},{fill:"none",stroke:mt.fill},ft),{},{index:bt,points:[polarToCartesian(mt.cx,mt.cy,mt.outerRadius,_t),xt],key:"line"}),St=lt;return isNil$1(lt)&&isNil$1(ut)?St="value":isNil$1(lt)&&(St=ut),React.createElement(Layer,{key:"label-".concat(mt.startAngle,"-").concat(mt.endAngle)},st&&et.renderLabelLineItem(st,Et),et.renderLabelItem(it,yt,getValueByDataKey(mt,St)))});return React.createElement(Layer,{className:"recharts-pie-labels"},gt)}},{key:"renderSectorsStatically",value:function(rt){var nt=this,ot=this.props,it=ot.activeShape,st=ot.blendStroke,lt=ot.inactiveShape;return rt.map(function(ut,ct){if((ut==null?void 0:ut.startAngle)===0&&(ut==null?void 0:ut.endAngle)===0&&rt.length!==1)return null;var dt=nt.isActiveIndex(ct),ft=lt&&nt.hasActiveIndex()?lt:null,pt=dt?it:ft,gt=_objectSpread$a(_objectSpread$a({},ut),{},{stroke:st?ut.fill:ut.stroke,tabIndex:-1});return React.createElement(Layer,_extends$6({ref:function(bt){bt&&!nt.sectorRefs.includes(bt)&&nt.sectorRefs.push(bt)},tabIndex:-1,className:"recharts-pie-sector"},adaptEventsOfChild(nt.props,ut,ct),{key:"sector-".concat(ut==null?void 0:ut.startAngle,"-").concat(ut==null?void 0:ut.endAngle,"-").concat(ut.midAngle)}),React.createElement(Shape,_extends$6({option:pt,isActive:dt,shapeType:"sector"},gt)))})}},{key:"renderSectorsWithAnimation",value:function(){var rt=this,nt=this.props,ot=nt.sectors,it=nt.isAnimationActive,st=nt.animationBegin,lt=nt.animationDuration,ut=nt.animationEasing,ct=nt.animationId,dt=this.state,ft=dt.prevSectors,pt=dt.prevIsAnimationActive;return React.createElement(Animate,{begin:st,duration:lt,isActive:it,easing:ut,from:{t:0},to:{t:1},key:"pie-".concat(ct,"-").concat(pt),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(gt){var mt=gt.t,bt=[],_t=ot&&ot[0],xt=_t.startAngle;return ot.forEach(function(yt,Et){var St=ft&&ft[Et],Tt=Et>0?get$3(yt,"paddingAngle",0):0;if(St){var kt=interpolateNumber$2(St.endAngle-St.startAngle,yt.endAngle-yt.startAngle),$t=_objectSpread$a(_objectSpread$a({},yt),{},{startAngle:xt+Tt,endAngle:xt+kt(mt)+Tt});bt.push($t),xt=$t.endAngle}else{var Ct=yt.endAngle,It=yt.startAngle,Nt=interpolateNumber$2(0,Ct-It),Ot=Nt(mt),jt=_objectSpread$a(_objectSpread$a({},yt),{},{startAngle:xt+Tt,endAngle:xt+Ot+Tt});bt.push(jt),xt=jt.endAngle}}),React.createElement(Layer,null,rt.renderSectorsStatically(bt))})}},{key:"attachKeyboardHandlers",value:function(rt){var nt=this;rt.onkeydown=function(ot){if(!ot.altKey)switch(ot.key){case"ArrowLeft":{var it=++nt.state.sectorToFocus%nt.sectorRefs.length;nt.sectorRefs[it].focus(),nt.setState({sectorToFocus:it});break}case"ArrowRight":{var st=--nt.state.sectorToFocus<0?nt.sectorRefs.length-1:nt.state.sectorToFocus%nt.sectorRefs.length;nt.sectorRefs[st].focus(),nt.setState({sectorToFocus:st});break}case"Escape":{nt.sectorRefs[nt.state.sectorToFocus].blur(),nt.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var rt=this.props,nt=rt.sectors,ot=rt.isAnimationActive,it=this.state.prevSectors;return ot&&nt&&nt.length&&(!it||!isEqual$1(it,nt))?this.renderSectorsWithAnimation():this.renderSectorsStatically(nt)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var rt=this,nt=this.props,ot=nt.hide,it=nt.sectors,st=nt.className,lt=nt.label,ut=nt.cx,ct=nt.cy,dt=nt.innerRadius,ft=nt.outerRadius,pt=nt.isAnimationActive,gt=this.state.isAnimationFinished;if(ot||!it||!it.length||!isNumber(ut)||!isNumber(ct)||!isNumber(dt)||!isNumber(ft))return null;var mt=clsx("recharts-pie",st);return React.createElement(Layer,{tabIndex:this.props.rootTabIndex,className:mt,ref:function(_t){rt.pieRef=_t}},this.renderSectors(),lt&&this.renderLabels(it),Label.renderCallByParent(this.props,null,!1),(!pt||gt)&&LabelList.renderCallByParent(this.props,it,!1))}}],[{key:"getDerivedStateFromProps",value:function(rt,nt){return nt.prevIsAnimationActive!==rt.isAnimationActive?{prevIsAnimationActive:rt.isAnimationActive,prevAnimationId:rt.animationId,curSectors:rt.sectors,prevSectors:[],isAnimationFinished:!0}:rt.isAnimationActive&&rt.animationId!==nt.prevAnimationId?{prevAnimationId:rt.animationId,curSectors:rt.sectors,prevSectors:nt.curSectors,isAnimationFinished:!0}:rt.sectors!==nt.curSectors?{curSectors:rt.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(rt,nt){return rt>nt?"start":rt=360?_t:_t-1)*st,yt=mt-_t*ft-xt,Et=tt.reduce(function(kt,$t){var Ct=getValueByDataKey($t,bt,0);return kt+(isNumber(Ct)?Ct:0)},0),St;if(Et>0){var Tt;St=tt.map(function(kt,$t){var Ct=getValueByDataKey(kt,bt,0),It=getValueByDataKey(kt,ut,$t),Nt=(isNumber(Ct)?Ct:0)/Et,Ot;$t?Ot=Tt.endAngle+mathSign(gt)*st*(Ct!==0?1:0):Ot=ot;var jt=Ot+mathSign(gt)*((Ct!==0?ft:0)+Nt*yt),Mt=(Ot+jt)/2,Rt=(pt.innerRadius+pt.outerRadius)/2,Lt=[{name:It,value:Ct,payload:kt,dataKey:bt,type:dt}],Pt=polarToCartesian(pt.cx,pt.cy,Rt,Mt);return Tt=_objectSpread$a(_objectSpread$a(_objectSpread$a({percent:Nt,cornerRadius:nt,name:It,tooltipPayload:Lt,midAngle:Mt,middleRadius:Rt,tooltipPosition:Pt},kt),pt),{},{value:getValueByDataKey(kt,bt),startAngle:Ot,endAngle:jt,payload:kt,paddingAngle:mathSign(gt)*st}),Tt})}return _objectSpread$a(_objectSpread$a({},pt),{},{sectors:St,data:tt})});function _typeof$a(j){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$a(j)}function ownKeys$9(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$9(j){for(var _e=1;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$2(j){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$2(j)}function _defineProperty$9(j,_e,et){return _e=_toPropertyKey$9(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$9(j){var _e=_toPrimitive$9(j,"string");return _typeof$9(_e)==="symbol"?_e:String(_e)}function _toPrimitive$9(j,_e){if(_typeof$9(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$9(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var createScale=function j(_e){var et=_e.data,tt=_e.startIndex,rt=_e.endIndex,nt=_e.x,ot=_e.width,it=_e.travellerWidth;if(!et||!et.length)return{};var st=et.length,lt=point().domain(range$4(0,st)).range([nt,nt+ot-it]),ut=lt.domain().map(function(ct){return lt(ct)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:lt(tt),endX:lt(rt),scale:lt,scaleValues:ut}},isTouch=function j(_e){return _e.changedTouches&&!!_e.changedTouches.length},Brush=function(j){_inherits$2(et,j);var _e=_createSuper$2(et);function et(tt){var rt;return _classCallCheck$4(this,et),rt=_e.call(this,tt),_defineProperty$9(_assertThisInitialized$2(rt),"handleDrag",function(nt){rt.leaveTimer&&(clearTimeout(rt.leaveTimer),rt.leaveTimer=null),rt.state.isTravellerMoving?rt.handleTravellerMove(nt):rt.state.isSlideMoving&&rt.handleSlideDrag(nt)}),_defineProperty$9(_assertThisInitialized$2(rt),"handleTouchMove",function(nt){nt.changedTouches!=null&&nt.changedTouches.length>0&&rt.handleDrag(nt.changedTouches[0])}),_defineProperty$9(_assertThisInitialized$2(rt),"handleDragEnd",function(){rt.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var nt=rt.props,ot=nt.endIndex,it=nt.onDragEnd,st=nt.startIndex;it==null||it({endIndex:ot,startIndex:st})}),rt.detachDragEndListener()}),_defineProperty$9(_assertThisInitialized$2(rt),"handleLeaveWrapper",function(){(rt.state.isTravellerMoving||rt.state.isSlideMoving)&&(rt.leaveTimer=window.setTimeout(rt.handleDragEnd,rt.props.leaveTimeOut))}),_defineProperty$9(_assertThisInitialized$2(rt),"handleEnterSlideOrTraveller",function(){rt.setState({isTextActive:!0})}),_defineProperty$9(_assertThisInitialized$2(rt),"handleLeaveSlideOrTraveller",function(){rt.setState({isTextActive:!1})}),_defineProperty$9(_assertThisInitialized$2(rt),"handleSlideDragStart",function(nt){var ot=isTouch(nt)?nt.changedTouches[0]:nt;rt.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:ot.pageX}),rt.attachDragEndListener()}),rt.travellerDragStartHandlers={startX:rt.handleTravellerDragStart.bind(_assertThisInitialized$2(rt),"startX"),endX:rt.handleTravellerDragStart.bind(_assertThisInitialized$2(rt),"endX")},rt.state={},rt}return _createClass$4(et,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(rt){var nt=rt.startX,ot=rt.endX,it=this.state.scaleValues,st=this.props,lt=st.gap,ut=st.data,ct=ut.length-1,dt=Math.min(nt,ot),ft=Math.max(nt,ot),pt=et.getIndexInRange(it,dt),gt=et.getIndexInRange(it,ft);return{startIndex:pt-pt%lt,endIndex:gt===ct?ct:gt-gt%lt}}},{key:"getTextOfTick",value:function(rt){var nt=this.props,ot=nt.data,it=nt.tickFormatter,st=nt.dataKey,lt=getValueByDataKey(ot[rt],st,rt);return isFunction$6(it)?it(lt,rt):lt}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(rt){var nt=this.state,ot=nt.slideMoveStartX,it=nt.startX,st=nt.endX,lt=this.props,ut=lt.x,ct=lt.width,dt=lt.travellerWidth,ft=lt.startIndex,pt=lt.endIndex,gt=lt.onChange,mt=rt.pageX-ot;mt>0?mt=Math.min(mt,ut+ct-dt-st,ut+ct-dt-it):mt<0&&(mt=Math.max(mt,ut-it,ut-st));var bt=this.getIndex({startX:it+mt,endX:st+mt});(bt.startIndex!==ft||bt.endIndex!==pt)&>&>(bt),this.setState({startX:it+mt,endX:st+mt,slideMoveStartX:rt.pageX})}},{key:"handleTravellerDragStart",value:function(rt,nt){var ot=isTouch(nt)?nt.changedTouches[0]:nt;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:rt,brushMoveStartX:ot.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(rt){var nt,ot=this.state,it=ot.brushMoveStartX,st=ot.movingTravellerId,lt=ot.endX,ut=ot.startX,ct=this.state[st],dt=this.props,ft=dt.x,pt=dt.width,gt=dt.travellerWidth,mt=dt.onChange,bt=dt.gap,_t=dt.data,xt={startX:this.state.startX,endX:this.state.endX},yt=rt.pageX-it;yt>0?yt=Math.min(yt,ft+pt-gt-ct):yt<0&&(yt=Math.max(yt,ft-ct)),xt[st]=ct+yt;var Et=this.getIndex(xt),St=Et.startIndex,Tt=Et.endIndex,kt=function(){var Ct=_t.length-1;return st==="startX"&&(lt>ut?St%bt===0:Tt%bt===0)||ltut?Tt%bt===0:St%bt===0)||lt>ut&&Tt===Ct};this.setState((nt={},_defineProperty$9(nt,st,ct+yt),_defineProperty$9(nt,"brushMoveStartX",rt.pageX),nt),function(){mt&&kt()&&mt(Et)})}},{key:"handleTravellerMoveKeyboard",value:function(rt,nt){var ot=this,it=this.state,st=it.scaleValues,lt=it.startX,ut=it.endX,ct=this.state[nt],dt=st.indexOf(ct);if(dt!==-1){var ft=dt+rt;if(!(ft===-1||ft>=st.length)){var pt=st[ft];nt==="startX"&&pt>=ut||nt==="endX"&&pt<=lt||this.setState(_defineProperty$9({},nt,pt),function(){ot.props.onChange(ot.getIndex({startX:ot.state.startX,endX:ot.state.endX}))})}}}},{key:"renderBackground",value:function(){var rt=this.props,nt=rt.x,ot=rt.y,it=rt.width,st=rt.height,lt=rt.fill,ut=rt.stroke;return React.createElement("rect",{stroke:ut,fill:lt,x:nt,y:ot,width:it,height:st})}},{key:"renderPanorama",value:function(){var rt=this.props,nt=rt.x,ot=rt.y,it=rt.width,st=rt.height,lt=rt.data,ut=rt.children,ct=rt.padding,dt=reactExports.Children.only(ut);return dt?React.cloneElement(dt,{x:nt,y:ot,width:it,height:st,margin:ct,compact:!0,data:lt}):null}},{key:"renderTravellerLayer",value:function(rt,nt){var ot=this,it=this.props,st=it.y,lt=it.travellerWidth,ut=it.height,ct=it.traveller,dt=it.ariaLabel,ft=it.data,pt=it.startIndex,gt=it.endIndex,mt=Math.max(rt,this.props.x),bt=_objectSpread$8(_objectSpread$8({},filterProps(this.props)),{},{x:mt,y:st,width:lt,height:ut}),_t=dt||"Min value: ".concat(ft[pt].name,", Max value: ").concat(ft[gt].name);return React.createElement(Layer,{tabIndex:0,role:"slider","aria-label":_t,"aria-valuenow":rt,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[nt],onTouchStart:this.travellerDragStartHandlers[nt],onKeyDown:function(yt){["ArrowLeft","ArrowRight"].includes(yt.key)&&(yt.preventDefault(),yt.stopPropagation(),ot.handleTravellerMoveKeyboard(yt.key==="ArrowRight"?1:-1,nt))},onFocus:function(){ot.setState({isTravellerFocused:!0})},onBlur:function(){ot.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},et.renderTraveller(ct,bt))}},{key:"renderSlide",value:function(rt,nt){var ot=this.props,it=ot.y,st=ot.height,lt=ot.stroke,ut=ot.travellerWidth,ct=Math.min(rt,nt)+ut,dt=Math.max(Math.abs(nt-rt)-ut,0);return React.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:lt,fillOpacity:.2,x:ct,y:it,width:dt,height:st})}},{key:"renderText",value:function(){var rt=this.props,nt=rt.startIndex,ot=rt.endIndex,it=rt.y,st=rt.height,lt=rt.travellerWidth,ut=rt.stroke,ct=this.state,dt=ct.startX,ft=ct.endX,pt=5,gt={pointerEvents:"none",fill:ut};return React.createElement(Layer,{className:"recharts-brush-texts"},React.createElement(Text$1,_extends$5({textAnchor:"end",verticalAnchor:"middle",x:Math.min(dt,ft)-pt,y:it+st/2},gt),this.getTextOfTick(nt)),React.createElement(Text$1,_extends$5({textAnchor:"start",verticalAnchor:"middle",x:Math.max(dt,ft)+lt+pt,y:it+st/2},gt),this.getTextOfTick(ot)))}},{key:"render",value:function(){var rt=this.props,nt=rt.data,ot=rt.className,it=rt.children,st=rt.x,lt=rt.y,ut=rt.width,ct=rt.height,dt=rt.alwaysShowText,ft=this.state,pt=ft.startX,gt=ft.endX,mt=ft.isTextActive,bt=ft.isSlideMoving,_t=ft.isTravellerMoving,xt=ft.isTravellerFocused;if(!nt||!nt.length||!isNumber(st)||!isNumber(lt)||!isNumber(ut)||!isNumber(ct)||ut<=0||ct<=0)return null;var yt=clsx("recharts-brush",ot),Et=React.Children.count(it)===1,St=generatePrefixStyle("userSelect","none");return React.createElement(Layer,{className:yt,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:St},this.renderBackground(),Et&&this.renderPanorama(),this.renderSlide(pt,gt),this.renderTravellerLayer(pt,"startX"),this.renderTravellerLayer(gt,"endX"),(mt||bt||_t||xt||dt)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(rt){var nt=rt.x,ot=rt.y,it=rt.width,st=rt.height,lt=rt.stroke,ut=Math.floor(ot+st/2)-1;return React.createElement(React.Fragment,null,React.createElement("rect",{x:nt,y:ot,width:it,height:st,fill:lt,stroke:"none"}),React.createElement("line",{x1:nt+1,y1:ut,x2:nt+it-1,y2:ut,fill:"none",stroke:"#fff"}),React.createElement("line",{x1:nt+1,y1:ut+2,x2:nt+it-1,y2:ut+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(rt,nt){var ot;return React.isValidElement(rt)?ot=React.cloneElement(rt,nt):isFunction$6(rt)?ot=rt(nt):ot=et.renderDefaultTraveller(nt),ot}},{key:"getDerivedStateFromProps",value:function(rt,nt){var ot=rt.data,it=rt.width,st=rt.x,lt=rt.travellerWidth,ut=rt.updateId,ct=rt.startIndex,dt=rt.endIndex;if(ot!==nt.prevData||ut!==nt.prevUpdateId)return _objectSpread$8({prevData:ot,prevTravellerWidth:lt,prevUpdateId:ut,prevX:st,prevWidth:it},ot&&ot.length?createScale({data:ot,width:it,x:st,travellerWidth:lt,startIndex:ct,endIndex:dt}):{scale:null,scaleValues:null});if(nt.scale&&(it!==nt.prevWidth||st!==nt.prevX||lt!==nt.prevTravellerWidth)){nt.scale.range([st,st+it-lt]);var ft=nt.scale.domain().map(function(pt){return nt.scale(pt)});return{prevData:ot,prevTravellerWidth:lt,prevUpdateId:ut,prevX:st,prevWidth:it,startX:nt.scale(rt.startIndex),endX:nt.scale(rt.endIndex),scaleValues:ft}}return null}},{key:"getIndexInRange",value:function(rt,nt){for(var ot=rt.length,it=0,st=ot-1;st-it>1;){var lt=Math.floor((it+st)/2);rt[lt]>nt?st=lt:it=lt}return nt>=rt[st]?st:it}}]),et}(reactExports.PureComponent);_defineProperty$9(Brush,"displayName","Brush");_defineProperty$9(Brush,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var baseEach$1=_baseEach;function baseSome$1(j,_e){var et;return baseEach$1(j,function(tt,rt,nt){return et=_e(tt,rt,nt),!et}),!!et}var _baseSome=baseSome$1,arraySome=_arraySome,baseIteratee$1=_baseIteratee,baseSome=_baseSome,isArray$1=isArray_1,isIterateeCall$1=_isIterateeCall;function some(j,_e,et){var tt=isArray$1(j)?arraySome:baseSome;return et&&isIterateeCall$1(j,_e,et)&&(_e=void 0),tt(j,baseIteratee$1(_e))}var some_1=some;const some$1=getDefaultExportFromCjs(some_1);var ifOverflowMatches=function j(_e,et){var tt=_e.alwaysShow,rt=_e.ifOverflow;return tt&&(rt="extendDomain"),rt===et};function arrayEvery$1(j,_e){for(var et=-1,tt=j==null?0:j.length;++et1&&arguments[1]!==void 0?arguments[1]:{},rt=tt.bandAware,nt=tt.position;if(et!==void 0){if(nt)switch(nt){case"start":return this.scale(et);case"middle":{var ot=this.bandwidth?this.bandwidth()/2:0;return this.scale(et)+ot}case"end":{var it=this.bandwidth?this.bandwidth():0;return this.scale(et)+it}default:return this.scale(et)}if(rt){var st=this.bandwidth?this.bandwidth()/2:0;return this.scale(et)+st}return this.scale(et)}}},{key:"isInRange",value:function(et){var tt=this.range(),rt=tt[0],nt=tt[tt.length-1];return rt<=nt?et>=rt&&et<=nt:et>=nt&&et<=rt}}],[{key:"create",value:function(et){return new j(et)}}]),j}();_defineProperty$8(ScaleHelper,"EPS",1e-4);var createLabeledScales=function j(_e){var et=Object.keys(_e).reduce(function(tt,rt){return _objectSpread$7(_objectSpread$7({},tt),{},_defineProperty$8({},rt,ScaleHelper.create(_e[rt])))},{});return _objectSpread$7(_objectSpread$7({},et),{},{apply:function(rt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=nt.bandAware,it=nt.position;return mapValues$1(rt,function(st,lt){return et[lt].apply(st,{bandAware:ot,position:it})})},isInRange:function(rt){return every$1(rt,function(nt,ot){return et[ot].isInRange(nt)})}})};function normalizeAngle(j){return(j%180+180)%180}var getAngledRectangleWidth=function j(_e){var et=_e.width,tt=_e.height,rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,nt=normalizeAngle(rt),ot=nt*Math.PI/180,it=Math.atan(tt/et),st=ot>it&&otj.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function _iterableToArrayLimit$1(j,_e){var et=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(et!=null){var tt,rt,nt,ot,it=[],st=!0,lt=!1;try{if(nt=(et=et.call(j)).next,_e===0){if(Object(et)!==et)return;st=!1}else for(;!(st=(tt=nt.call(et)).done)&&(it.push(tt.value),it.length!==_e);st=!0);}catch(ut){lt=!0,rt=ut}finally{try{if(!st&&et.return!=null&&(ot=et.return(),Object(ot)!==ot))return}finally{if(lt)throw rt}}return it}}function _arrayWithHoles$1(j){if(Array.isArray(j))return j}function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(j){for(var _e=1;_ej*rt)return!1;var nt=et();return j*(_e-j*nt/2-tt)>=0&&j*(_e+j*nt/2-rt)<=0}function getNumberIntervalTicks(j,_e){return getEveryNthWithCondition(j,_e+1)}function getEquidistantTicks(j,_e,et,tt,rt){for(var nt=(tt||[]).slice(),ot=_e.start,it=_e.end,st=0,lt=1,ut=ot,ct=function(){var pt=tt==null?void 0:tt[st];if(pt===void 0)return{v:getEveryNthWithCondition(tt,lt)};var gt=st,mt,bt=function(){return mt===void 0&&(mt=et(pt,gt)),mt},_t=pt.coordinate,xt=st===0||isVisible(j,_t,bt,ut,it);xt||(st=0,ut=ot,lt+=1),xt&&(ut=_t+j*(bt()/2+rt),st+=lt)},dt;lt<=nt.length;)if(dt=ct(),dt)return dt.v;return[]}function _typeof$4(j){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$4(j)}function ownKeys$3(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$3(j){for(var _e=1;_e0?ft.coordinate-mt*j:ft.coordinate})}else nt[dt]=ft=_objectSpread$3(_objectSpread$3({},ft),{},{tickCoord:ft.coordinate});var bt=isVisible(j,ft.tickCoord,gt,it,st);bt&&(st=ft.tickCoord-j*(gt()/2+rt),nt[dt]=_objectSpread$3(_objectSpread$3({},ft),{},{isShow:!0}))},ut=ot-1;ut>=0;ut--)lt(ut);return nt}function getTicksStart(j,_e,et,tt,rt,nt){var ot=(tt||[]).slice(),it=ot.length,st=_e.start,lt=_e.end;if(nt){var ut=tt[it-1],ct=et(ut,it-1),dt=j*(ut.coordinate+j*ct/2-lt);ot[it-1]=ut=_objectSpread$3(_objectSpread$3({},ut),{},{tickCoord:dt>0?ut.coordinate-dt*j:ut.coordinate});var ft=isVisible(j,ut.tickCoord,function(){return ct},st,lt);ft&&(lt=ut.tickCoord-j*(ct/2+rt),ot[it-1]=_objectSpread$3(_objectSpread$3({},ut),{},{isShow:!0}))}for(var pt=nt?it-1:it,gt=function(_t){var xt=ot[_t],yt,Et=function(){return yt===void 0&&(yt=et(xt,_t)),yt};if(_t===0){var St=j*(xt.coordinate-j*Et()/2-st);ot[_t]=xt=_objectSpread$3(_objectSpread$3({},xt),{},{tickCoord:St<0?xt.coordinate-St*j:xt.coordinate})}else ot[_t]=xt=_objectSpread$3(_objectSpread$3({},xt),{},{tickCoord:xt.coordinate});var Tt=isVisible(j,xt.tickCoord,Et,st,lt);Tt&&(st=xt.tickCoord+j*(Et()/2+rt),ot[_t]=_objectSpread$3(_objectSpread$3({},xt),{},{isShow:!0}))},mt=0;mt=2?mathSign(rt[1].coordinate-rt[0].coordinate):1,bt=getTickBoundaries(nt,mt,ft);return st==="equidistantPreserveStart"?getEquidistantTicks(mt,bt,gt,rt,ot):(st==="preserveStart"||st==="preserveStartEnd"?dt=getTicksStart(mt,bt,gt,rt,ot,st==="preserveStartEnd"):dt=getTicksEnd(mt,bt,gt,rt,ot),dt.filter(function(_t){return _t.isShow}))}var _excluded$1=["viewBox"],_excluded2$1=["viewBox"],_excluded3=["ticks"];function _typeof$3(j){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$3(j)}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose$1(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function _classCallCheck$2(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,_toPropertyKey$3(tt.key),tt)}}function _createClass$2(j,_e,et){return _e&&_defineProperties$2(j.prototype,_e),et&&_defineProperties$2(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}function _inherits$1(j,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(_e&&_e.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),_e&&_setPrototypeOf$1(j,_e)}function _setPrototypeOf$1(j,_e){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tt,rt){return tt.__proto__=rt,tt},_setPrototypeOf$1(j,_e)}function _createSuper$1(j){var _e=_isNativeReflectConstruct$1();return function(){var tt=_getPrototypeOf$1(j),rt;if(_e){var nt=_getPrototypeOf$1(this).constructor;rt=Reflect.construct(tt,arguments,nt)}else rt=tt.apply(this,arguments);return _possibleConstructorReturn$1(this,rt)}}function _possibleConstructorReturn$1(j,_e){if(_e&&(_typeof$3(_e)==="object"||typeof _e=="function"))return _e;if(_e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(j)}function _assertThisInitialized$1(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$1(j){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf$1(j)}function _defineProperty$3(j,_e,et){return _e=_toPropertyKey$3(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$3(j){var _e=_toPrimitive$3(j,"string");return _typeof$3(_e)==="symbol"?_e:String(_e)}function _toPrimitive$3(j,_e){if(_typeof$3(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$3(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var CartesianAxis=function(j){_inherits$1(et,j);var _e=_createSuper$1(et);function et(tt){var rt;return _classCallCheck$2(this,et),rt=_e.call(this,tt),rt.state={fontSize:"",letterSpacing:""},rt}return _createClass$2(et,[{key:"shouldComponentUpdate",value:function(rt,nt){var ot=rt.viewBox,it=_objectWithoutProperties$1(rt,_excluded$1),st=this.props,lt=st.viewBox,ut=_objectWithoutProperties$1(st,_excluded2$1);return!shallowEqual(ot,lt)||!shallowEqual(it,ut)||!shallowEqual(nt,this.state)}},{key:"componentDidMount",value:function(){var rt=this.layerReference;if(rt){var nt=rt.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];nt&&this.setState({fontSize:window.getComputedStyle(nt).fontSize,letterSpacing:window.getComputedStyle(nt).letterSpacing})}}},{key:"getTickLineCoord",value:function(rt){var nt=this.props,ot=nt.x,it=nt.y,st=nt.width,lt=nt.height,ut=nt.orientation,ct=nt.tickSize,dt=nt.mirror,ft=nt.tickMargin,pt,gt,mt,bt,_t,xt,yt=dt?-1:1,Et=rt.tickSize||ct,St=isNumber(rt.tickCoord)?rt.tickCoord:rt.coordinate;switch(ut){case"top":pt=gt=rt.coordinate,bt=it+ +!dt*lt,mt=bt-yt*Et,xt=mt-yt*ft,_t=St;break;case"left":mt=bt=rt.coordinate,gt=ot+ +!dt*st,pt=gt-yt*Et,_t=pt-yt*ft,xt=St;break;case"right":mt=bt=rt.coordinate,gt=ot+ +dt*st,pt=gt+yt*Et,_t=pt+yt*ft,xt=St;break;default:pt=gt=rt.coordinate,bt=it+ +dt*lt,mt=bt+yt*Et,xt=mt+yt*ft,_t=St;break}return{line:{x1:pt,y1:mt,x2:gt,y2:bt},tick:{x:_t,y:xt}}}},{key:"getTickTextAnchor",value:function(){var rt=this.props,nt=rt.orientation,ot=rt.mirror,it;switch(nt){case"left":it=ot?"start":"end";break;case"right":it=ot?"end":"start";break;default:it="middle";break}return it}},{key:"getTickVerticalAnchor",value:function(){var rt=this.props,nt=rt.orientation,ot=rt.mirror,it="end";switch(nt){case"left":case"right":it="middle";break;case"top":it=ot?"start":"end";break;default:it=ot?"end":"start";break}return it}},{key:"renderAxisLine",value:function(){var rt=this.props,nt=rt.x,ot=rt.y,it=rt.width,st=rt.height,lt=rt.orientation,ut=rt.mirror,ct=rt.axisLine,dt=_objectSpread$2(_objectSpread$2(_objectSpread$2({},filterProps(this.props)),filterProps(ct)),{},{fill:"none"});if(lt==="top"||lt==="bottom"){var ft=+(lt==="top"&&!ut||lt==="bottom"&&ut);dt=_objectSpread$2(_objectSpread$2({},dt),{},{x1:nt,y1:ot+ft*st,x2:nt+it,y2:ot+ft*st})}else{var pt=+(lt==="left"&&!ut||lt==="right"&&ut);dt=_objectSpread$2(_objectSpread$2({},dt),{},{x1:nt+pt*it,y1:ot,x2:nt+pt*it,y2:ot+st})}return React.createElement("line",_extends$1({},dt,{className:clsx("recharts-cartesian-axis-line",get$3(ct,"className"))}))}},{key:"renderTicks",value:function(rt,nt,ot){var it=this,st=this.props,lt=st.tickLine,ut=st.stroke,ct=st.tick,dt=st.tickFormatter,ft=st.unit,pt=getTicks(_objectSpread$2(_objectSpread$2({},this.props),{},{ticks:rt}),nt,ot),gt=this.getTickTextAnchor(),mt=this.getTickVerticalAnchor(),bt=filterProps(this.props),_t=filterProps(ct),xt=_objectSpread$2(_objectSpread$2({},bt),{},{fill:"none"},filterProps(lt)),yt=pt.map(function(Et,St){var Tt=it.getTickLineCoord(Et),kt=Tt.line,$t=Tt.tick,Ct=_objectSpread$2(_objectSpread$2(_objectSpread$2(_objectSpread$2({textAnchor:gt,verticalAnchor:mt},bt),{},{stroke:"none",fill:ut},_t),$t),{},{index:St,payload:Et,visibleTicksCount:pt.length,tickFormatter:dt});return React.createElement(Layer,_extends$1({className:"recharts-cartesian-axis-tick",key:"tick-".concat(Et.value,"-").concat(Et.coordinate,"-").concat(Et.tickCoord)},adaptEventsOfChild(it.props,Et,St)),lt&&React.createElement("line",_extends$1({},xt,kt,{className:clsx("recharts-cartesian-axis-tick-line",get$3(lt,"className"))})),ct&&et.renderTickItem(ct,Ct,"".concat(isFunction$6(dt)?dt(Et.value,St):Et.value).concat(ft||"")))});return React.createElement("g",{className:"recharts-cartesian-axis-ticks"},yt)}},{key:"render",value:function(){var rt=this,nt=this.props,ot=nt.axisLine,it=nt.width,st=nt.height,lt=nt.ticksGenerator,ut=nt.className,ct=nt.hide;if(ct)return null;var dt=this.props,ft=dt.ticks,pt=_objectWithoutProperties$1(dt,_excluded3),gt=ft;return isFunction$6(lt)&&(gt=ft&&ft.length>0?lt(this.props):lt(pt)),it<=0||st<=0||!gt||!gt.length?null:React.createElement(Layer,{className:clsx("recharts-cartesian-axis",ut),ref:function(bt){rt.layerReference=bt}},ot&&this.renderAxisLine(),this.renderTicks(gt,this.state.fontSize,this.state.letterSpacing),Label.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(rt,nt,ot){var it;return React.isValidElement(rt)?it=React.cloneElement(rt,nt):isFunction$6(rt)?it=rt(nt):it=React.createElement(Text$1,_extends$1({},nt,{className:"recharts-cartesian-axis-tick-value"}),ot),it}}]),et}(reactExports.Component);_defineProperty$3(CartesianAxis,"displayName","CartesianAxis");_defineProperty$3(CartesianAxis,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var prefix="Invariant failed";function invariant(j,_e){if(!j)throw new Error(prefix)}function _toConsumableArray$1(j){return _arrayWithoutHoles$1(j)||_iterableToArray$1(j)||_unsupportedIterableToArray$1(j)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray$1(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray$1(j,_e)}}function _iterableToArray$1(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _arrayWithoutHoles$1(j){if(Array.isArray(j))return _arrayLikeToArray$1(j)}function _arrayLikeToArray$1(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}var detectReferenceElementsDomain=function j(_e,et,tt,rt,nt){var ot=findAllByType(_e,ReferenceLine),it=findAllByType(_e,ReferenceDot),st=[].concat(_toConsumableArray$1(ot),_toConsumableArray$1(it)),lt=findAllByType(_e,ReferenceArea),ut="".concat(rt,"Id"),ct=rt[0],dt=et;if(st.length&&(dt=st.reduce(function(gt,mt){if(mt.props[ut]===tt&&ifOverflowMatches(mt.props,"extendDomain")&&isNumber(mt.props[ct])){var bt=mt.props[ct];return[Math.min(gt[0],bt),Math.max(gt[1],bt)]}return gt},dt)),lt.length){var ft="".concat(ct,"1"),pt="".concat(ct,"2");dt=lt.reduce(function(gt,mt){if(mt.props[ut]===tt&&ifOverflowMatches(mt.props,"extendDomain")&&isNumber(mt.props[ft])&&isNumber(mt.props[pt])){var bt=mt.props[ft],_t=mt.props[pt];return[Math.min(gt[0],bt,_t),Math.max(gt[1],bt,_t)]}return gt},dt)}return nt&&nt.length&&(dt=nt.reduce(function(gt,mt){return isNumber(mt)?[Math.min(gt[0],mt),Math.max(gt[1],mt)]:gt},dt)),dt},eventCenter=new EventEmitter,SYNC_EVENT="recharts.syncMouseEvents";function _typeof$2(j){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$2(j)}function _classCallCheck$1(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,_toPropertyKey$2(tt.key),tt)}}function _createClass$1(j,_e,et){return _e&&_defineProperties$1(j.prototype,_e),et&&_defineProperties$1(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}function _defineProperty$2(j,_e,et){return _e=_toPropertyKey$2(_e),_e in j?Object.defineProperty(j,_e,{value:et,enumerable:!0,configurable:!0,writable:!0}):j[_e]=et,j}function _toPropertyKey$2(j){var _e=_toPrimitive$2(j,"string");return _typeof$2(_e)==="symbol"?_e:String(_e)}function _toPrimitive$2(j,_e){if(_typeof$2(j)!=="object"||j===null)return j;var et=j[Symbol.toPrimitive];if(et!==void 0){var tt=et.call(j,_e||"default");if(_typeof$2(tt)!=="object")return tt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_e==="string"?String:Number)(j)}var AccessibilityManager=function(){function j(){_classCallCheck$1(this,j),_defineProperty$2(this,"activeIndex",0),_defineProperty$2(this,"coordinateList",[]),_defineProperty$2(this,"layout","horizontal")}return _createClass$1(j,[{key:"setDetails",value:function(et){var tt=et.coordinateList,rt=tt===void 0?[]:tt,nt=et.container,ot=nt===void 0?null:nt,it=et.layout,st=it===void 0?null:it,lt=et.offset,ut=lt===void 0?null:lt,ct=et.mouseHandlerCallback,dt=ct===void 0?null:ct;this.coordinateList=rt??this.coordinateList,this.container=ot??this.container,this.layout=st??this.layout,this.offset=ut??this.offset,this.mouseHandlerCallback=dt??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(et){if(this.coordinateList.length!==0)switch(et.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"spoofMouse",value:function(){var et,tt;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var rt=this.container.getBoundingClientRect(),nt=rt.x,ot=rt.y,it=rt.height,st=this.coordinateList[this.activeIndex].coordinate,lt=((et=window)===null||et===void 0?void 0:et.scrollX)||0,ut=((tt=window)===null||tt===void 0?void 0:tt.scrollY)||0,ct=nt+st+lt,dt=ot+this.offset.top+it/2+ut;this.mouseHandlerCallback({pageX:ct,pageY:dt})}}}]),j}();function isDomainSpecifiedByUser(j,_e,et){if(et==="number"&&_e===!0&&Array.isArray(j)){var tt=j==null?void 0:j[0],rt=j==null?void 0:j[1];if(tt&&rt&&isNumber(tt)&&isNumber(rt))return!0}return!1}function getCursorRectangle(j,_e,et,tt){var rt=tt/2;return{stroke:"none",fill:"#ccc",x:j==="horizontal"?_e.x-rt:et.left+.5,y:j==="horizontal"?et.top+.5:_e.y-rt,width:j==="horizontal"?tt:et.width-1,height:j==="horizontal"?et.height-1:tt}}function getRadialCursorPoints(j){var _e=j.cx,et=j.cy,tt=j.radius,rt=j.startAngle,nt=j.endAngle,ot=polarToCartesian(_e,et,tt,rt),it=polarToCartesian(_e,et,tt,nt);return{points:[ot,it],cx:_e,cy:et,radius:tt,startAngle:rt,endAngle:nt}}function getCursorPoints(j,_e,et){var tt,rt,nt,ot;if(j==="horizontal")tt=_e.x,nt=tt,rt=et.top,ot=et.top+et.height;else if(j==="vertical")rt=_e.y,ot=rt,tt=et.left,nt=et.left+et.width;else if(_e.cx!=null&&_e.cy!=null)if(j==="centric"){var it=_e.cx,st=_e.cy,lt=_e.innerRadius,ut=_e.outerRadius,ct=_e.angle,dt=polarToCartesian(it,st,lt,ct),ft=polarToCartesian(it,st,ut,ct);tt=dt.x,rt=dt.y,nt=ft.x,ot=ft.y}else return getRadialCursorPoints(_e);return[{x:tt,y:rt},{x:nt,y:ot}]}function _typeof$1(j){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},_typeof$1(j)}function ownKeys$1(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread$1(j){for(var _e=1;_e=0)&&Object.prototype.propertyIsEnumerable.call(j,tt)&&(et[tt]=j[tt])}return et}function _objectWithoutPropertiesLoose(j,_e){if(j==null)return{};var et={},tt=Object.keys(j),rt,nt;for(nt=0;nt=0)&&(et[rt]=j[rt]);return et}function _classCallCheck(j,_e){if(!(j instanceof _e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(j,_e){for(var et=0;et<_e.length;et++){var tt=_e[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(j,_toPropertyKey(tt.key),tt)}}function _createClass(j,_e,et){return _e&&_defineProperties(j.prototype,_e),et&&_defineProperties(j,et),Object.defineProperty(j,"prototype",{writable:!1}),j}function _inherits(j,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(_e&&_e.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),_e&&_setPrototypeOf(j,_e)}function _setPrototypeOf(j,_e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(tt,rt){return tt.__proto__=rt,tt},_setPrototypeOf(j,_e)}function _createSuper(j){var _e=_isNativeReflectConstruct();return function(){var tt=_getPrototypeOf(j),rt;if(_e){var nt=_getPrototypeOf(this).constructor;rt=Reflect.construct(tt,arguments,nt)}else rt=tt.apply(this,arguments);return _possibleConstructorReturn(this,rt)}}function _possibleConstructorReturn(j,_e){if(_e&&(_typeof(_e)==="object"||typeof _e=="function"))return _e;if(_e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(j)}function _assertThisInitialized(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(j){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(et){return et.__proto__||Object.getPrototypeOf(et)},_getPrototypeOf(j)}function _toConsumableArray(j){return _arrayWithoutHoles(j)||_iterableToArray(j)||_unsupportedIterableToArray(j)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(j,_e){if(j){if(typeof j=="string")return _arrayLikeToArray(j,_e);var et=Object.prototype.toString.call(j).slice(8,-1);if(et==="Object"&&j.constructor&&(et=j.constructor.name),et==="Map"||et==="Set")return Array.from(j);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return _arrayLikeToArray(j,_e)}}function _iterableToArray(j){if(typeof Symbol<"u"&&j[Symbol.iterator]!=null||j["@@iterator"]!=null)return Array.from(j)}function _arrayWithoutHoles(j){if(Array.isArray(j))return _arrayLikeToArray(j)}function _arrayLikeToArray(j,_e){(_e==null||_e>j.length)&&(_e=j.length);for(var et=0,tt=new Array(_e);et<_e;et++)tt[et]=j[et];return tt}function ownKeys(j,_e){var et=Object.keys(j);if(Object.getOwnPropertySymbols){var tt=Object.getOwnPropertySymbols(j);_e&&(tt=tt.filter(function(rt){return Object.getOwnPropertyDescriptor(j,rt).enumerable})),et.push.apply(et,tt)}return et}function _objectSpread(j){for(var _e=1;_e0?ot:_e&&_e.length&&isNumber(rt)&&isNumber(nt)?_e.slice(rt,nt+1):[]};function getDefaultDomainByAxisType(j){return j==="number"?[0,"auto"]:void 0}var getTooltipContent=function j(_e,et,tt,rt){var nt=_e.graphicalItems,ot=_e.tooltipAxis,it=getDisplayedData(et,_e);return tt<0||!nt||!nt.length||tt>=it.length?null:nt.reduce(function(st,lt){var ut,ct=lt.props.hide;if(ct)return st;var dt=(ut=lt.props.data)!==null&&ut!==void 0?ut:et;dt&&_e.dataStartIndex+_e.dataEndIndex!==0&&(dt=dt.slice(_e.dataStartIndex,_e.dataEndIndex+1));var ft;if(ot.dataKey&&!ot.allowDuplicatedCategory){var pt=dt===void 0?it:dt;ft=findEntryInArray(pt,ot.dataKey,rt)}else ft=dt&&dt[tt]||it[tt];return ft?[].concat(_toConsumableArray(st),[getTooltipItem(lt,ft)]):st},[])},getTooltipData=function j(_e,et,tt,rt){var nt=rt||{x:_e.chartX,y:_e.chartY},ot=calculateTooltipPos(nt,tt),it=_e.orderedTooltipTicks,st=_e.tooltipAxis,lt=_e.tooltipTicks,ut=calculateActiveTickIndex(ot,it,lt,st);if(ut>=0&<){var ct=lt[ut]&<[ut].value,dt=getTooltipContent(_e,et,ut,ct),ft=getActiveCoordinate(tt,it,ut,nt);return{activeTooltipIndex:ut,activeLabel:ct,activePayload:dt,activeCoordinate:ft}}return null},getAxisMapByAxes=function j(_e,et){var tt=et.axes,rt=et.graphicalItems,nt=et.axisType,ot=et.axisIdKey,it=et.stackGroups,st=et.dataStartIndex,lt=et.dataEndIndex,ut=_e.layout,ct=_e.children,dt=_e.stackOffset,ft=isCategoricalAxis(ut,nt);return tt.reduce(function(pt,gt){var mt,bt=gt.props,_t=bt.type,xt=bt.dataKey,yt=bt.allowDataOverflow,Et=bt.allowDuplicatedCategory,St=bt.scale,Tt=bt.ticks,kt=bt.includeHidden,$t=gt.props[ot];if(pt[$t])return pt;var Ct=getDisplayedData(_e.data,{graphicalItems:rt.filter(function(Xt){return Xt.props[ot]===$t}),dataStartIndex:st,dataEndIndex:lt}),It=Ct.length,Nt,Ot,jt;isDomainSpecifiedByUser(gt.props.domain,yt,_t)&&(Nt=parseSpecifiedDomain(gt.props.domain,null,yt),ft&&(_t==="number"||St!=="auto")&&(jt=getDomainOfDataByKey(Ct,xt,"category")));var Mt=getDefaultDomainByAxisType(_t);if(!Nt||Nt.length===0){var Rt,Lt=(Rt=gt.props.domain)!==null&&Rt!==void 0?Rt:Mt;if(xt){if(Nt=getDomainOfDataByKey(Ct,xt,_t),_t==="category"&&ft){var Pt=hasDuplicate(Nt);Et&&Pt?(Ot=Nt,Nt=range$4(0,It)):Et||(Nt=parseDomainOfCategoryAxis(Lt,Nt,gt).reduce(function(Xt,tr){return Xt.indexOf(tr)>=0?Xt:[].concat(_toConsumableArray(Xt),[tr])},[]))}else if(_t==="category")Et?Nt=Nt.filter(function(Xt){return Xt!==""&&!isNil$1(Xt)}):Nt=parseDomainOfCategoryAxis(Lt,Nt,gt).reduce(function(Xt,tr){return Xt.indexOf(tr)>=0||tr===""||isNil$1(tr)?Xt:[].concat(_toConsumableArray(Xt),[tr])},[]);else if(_t==="number"){var Gt=parseErrorBarsOfAxis(Ct,rt.filter(function(Xt){return Xt.props[ot]===$t&&(kt||!Xt.props.hide)}),xt,nt,ut);Gt&&(Nt=Gt)}ft&&(_t==="number"||St!=="auto")&&(jt=getDomainOfDataByKey(Ct,xt,"category"))}else ft?Nt=range$4(0,It):it&&it[$t]&&it[$t].hasStack&&_t==="number"?Nt=dt==="expand"?[0,1]:getDomainOfStackGroups(it[$t].stackGroups,st,lt):Nt=getDomainOfItemsWithSameAxis(Ct,rt.filter(function(Xt){return Xt.props[ot]===$t&&(kt||!Xt.props.hide)}),_t,ut,!0);if(_t==="number")Nt=detectReferenceElementsDomain(ct,Nt,$t,nt,Tt),Lt&&(Nt=parseSpecifiedDomain(Lt,Nt,yt));else if(_t==="category"&&Lt){var qt=Lt,Yt=Nt.every(function(Xt){return qt.indexOf(Xt)>=0});Yt&&(Nt=qt)}}return _objectSpread(_objectSpread({},pt),{},_defineProperty({},$t,_objectSpread(_objectSpread({},gt.props),{},{axisType:nt,domain:Nt,categoricalDomain:jt,duplicateDomain:Ot,originalDomain:(mt=gt.props.domain)!==null&&mt!==void 0?mt:Mt,isCategorical:ft,layout:ut})))},{})},getAxisMapByItems=function j(_e,et){var tt=et.graphicalItems,rt=et.Axis,nt=et.axisType,ot=et.axisIdKey,it=et.stackGroups,st=et.dataStartIndex,lt=et.dataEndIndex,ut=_e.layout,ct=_e.children,dt=getDisplayedData(_e.data,{graphicalItems:tt,dataStartIndex:st,dataEndIndex:lt}),ft=dt.length,pt=isCategoricalAxis(ut,nt),gt=-1;return tt.reduce(function(mt,bt){var _t=bt.props[ot],xt=getDefaultDomainByAxisType("number");if(!mt[_t]){gt++;var yt;return pt?yt=range$4(0,ft):it&&it[_t]&&it[_t].hasStack?(yt=getDomainOfStackGroups(it[_t].stackGroups,st,lt),yt=detectReferenceElementsDomain(ct,yt,_t,nt)):(yt=parseSpecifiedDomain(xt,getDomainOfItemsWithSameAxis(dt,tt.filter(function(Et){return Et.props[ot]===_t&&!Et.props.hide}),"number",ut),rt.defaultProps.allowDataOverflow),yt=detectReferenceElementsDomain(ct,yt,_t,nt)),_objectSpread(_objectSpread({},mt),{},_defineProperty({},_t,_objectSpread(_objectSpread({axisType:nt},rt.defaultProps),{},{hide:!0,orientation:get$3(ORIENT_MAP,"".concat(nt,".").concat(gt%2),null),domain:yt,originalDomain:xt,isCategorical:pt,layout:ut})))}return mt},{})},getAxisMap=function j(_e,et){var tt=et.axisType,rt=tt===void 0?"xAxis":tt,nt=et.AxisComp,ot=et.graphicalItems,it=et.stackGroups,st=et.dataStartIndex,lt=et.dataEndIndex,ut=_e.children,ct="".concat(rt,"Id"),dt=findAllByType(ut,nt),ft={};return dt&&dt.length?ft=getAxisMapByAxes(_e,{axes:dt,graphicalItems:ot,axisType:rt,axisIdKey:ct,stackGroups:it,dataStartIndex:st,dataEndIndex:lt}):ot&&ot.length&&(ft=getAxisMapByItems(_e,{Axis:nt,graphicalItems:ot,axisType:rt,axisIdKey:ct,stackGroups:it,dataStartIndex:st,dataEndIndex:lt})),ft},tooltipTicksGenerator=function j(_e){var et=getAnyElementOfObject(_e),tt=getTicksOfAxis(et,!1,!0);return{tooltipTicks:tt,orderedTooltipTicks:sortBy$1(tt,function(rt){return rt.coordinate}),tooltipAxis:et,tooltipAxisBandSize:getBandSizeOfAxis(et,tt)}},createDefaultState=function j(_e){var et=_e.children,tt=_e.defaultShowTooltip,rt=findChildByType(et,Brush),nt=0,ot=0;return _e.data&&_e.data.length!==0&&(ot=_e.data.length-1),rt&&rt.props&&(rt.props.startIndex>=0&&(nt=rt.props.startIndex),rt.props.endIndex>=0&&(ot=rt.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:nt,dataEndIndex:ot,activeTooltipIndex:-1,isTooltipActive:!!tt}},hasGraphicalBarItem=function j(_e){return!_e||!_e.length?!1:_e.some(function(et){var tt=getDisplayName(et&&et.type);return tt&&tt.indexOf("Bar")>=0})},getAxisNameByLayout=function j(_e){return _e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:_e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:_e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},calculateOffset=function j(_e,et){var tt=_e.props,rt=_e.graphicalItems,nt=_e.xAxisMap,ot=nt===void 0?{}:nt,it=_e.yAxisMap,st=it===void 0?{}:it,lt=tt.width,ut=tt.height,ct=tt.children,dt=tt.margin||{},ft=findChildByType(ct,Brush),pt=findChildByType(ct,Legend),gt=Object.keys(st).reduce(function(Et,St){var Tt=st[St],kt=Tt.orientation;return!Tt.mirror&&!Tt.hide?_objectSpread(_objectSpread({},Et),{},_defineProperty({},kt,Et[kt]+Tt.width)):Et},{left:dt.left||0,right:dt.right||0}),mt=Object.keys(ot).reduce(function(Et,St){var Tt=ot[St],kt=Tt.orientation;return!Tt.mirror&&!Tt.hide?_objectSpread(_objectSpread({},Et),{},_defineProperty({},kt,get$3(Et,"".concat(kt))+Tt.height)):Et},{top:dt.top||0,bottom:dt.bottom||0}),bt=_objectSpread(_objectSpread({},mt),gt),_t=bt.bottom;ft&&(bt.bottom+=ft.props.height||Brush.defaultProps.height),pt&&et&&(bt=appendOffsetOfLegend(bt,rt,tt,et));var xt=lt-bt.left-bt.right,yt=ut-bt.top-bt.bottom;return _objectSpread(_objectSpread({brushBottom:_t},bt),{},{width:Math.max(xt,0),height:Math.max(yt,0)})},generateCategoricalChart=function j(_e){var et,tt=_e.chartName,rt=_e.GraphicalChild,nt=_e.defaultTooltipEventType,ot=nt===void 0?"axis":nt,it=_e.validateTooltipEventTypes,st=it===void 0?["axis"]:it,lt=_e.axisComponents,ut=_e.legendContent,ct=_e.formatAxisMap,dt=_e.defaultProps,ft=function(mt,bt){var _t=bt.graphicalItems,xt=bt.stackGroups,yt=bt.offset,Et=bt.updateId,St=bt.dataStartIndex,Tt=bt.dataEndIndex,kt=mt.barSize,$t=mt.layout,Ct=mt.barGap,It=mt.barCategoryGap,Nt=mt.maxBarSize,Ot=getAxisNameByLayout($t),jt=Ot.numericAxisName,Mt=Ot.cateAxisName,Rt=hasGraphicalBarItem(_t),Lt=Rt&&getBarSizeList({barSize:kt,stackGroups:xt}),Pt=[];return _t.forEach(function(Gt,qt){var Yt=getDisplayedData(mt.data,{graphicalItems:[Gt],dataStartIndex:St,dataEndIndex:Tt}),Xt=Gt.props,tr=Xt.dataKey,cr=Xt.maxBarSize,mr=Gt.props["".concat(jt,"Id")],Er=Gt.props["".concat(Mt,"Id")],hr={},_r=lt.reduce(function(Yr,Pr){var Vr,yn=bt["".concat(Pr.axisType,"Map")],fr=Gt.props["".concat(Pr.axisType,"Id")];yn&&yn[fr]||Pr.axisType==="zAxis"||invariant(!1);var sr=yn[fr];return _objectSpread(_objectSpread({},Yr),{},(Vr={},_defineProperty(Vr,Pr.axisType,sr),_defineProperty(Vr,"".concat(Pr.axisType,"Ticks"),getTicksOfAxis(sr)),Vr))},hr),Ut=_r[Mt],ar=_r["".concat(Mt,"Ticks")],pr=xt&&xt[mr]&&xt[mr].hasStack&&getStackedDataOfItem(Gt,xt[mr].stackGroups),rr=getDisplayName(Gt.type).indexOf("Bar")>=0,vr=getBandSizeOfAxis(Ut,ar),$r=[];if(rr){var Rr,Cr,Nr=isNil$1(cr)?Nt:cr,Gr=(Rr=(Cr=getBandSizeOfAxis(Ut,ar,!0))!==null&&Cr!==void 0?Cr:Nr)!==null&&Rr!==void 0?Rr:0;$r=getBarPosition({barGap:Ct,barCategoryGap:It,bandSize:Gr!==vr?Gr:vr,sizeList:Lt[Er],maxBarSize:Nr}),Gr!==vr&&($r=$r.map(function(Yr){return _objectSpread(_objectSpread({},Yr),{},{position:_objectSpread(_objectSpread({},Yr.position),{},{offset:Yr.position.offset-Gr/2})})}))}var qr=Gt&&Gt.type&&Gt.type.getComposedData;if(qr){var Qr;Pt.push({props:_objectSpread(_objectSpread({},qr(_objectSpread(_objectSpread({},_r),{},{displayedData:Yt,props:mt,dataKey:tr,item:Gt,bandSize:vr,barPosition:$r,offset:yt,stackedData:pr,layout:$t,dataStartIndex:St,dataEndIndex:Tt}))),{},(Qr={key:Gt.key||"item-".concat(qt)},_defineProperty(Qr,jt,_r[jt]),_defineProperty(Qr,Mt,_r[Mt]),_defineProperty(Qr,"animationId",Et),Qr)),childIndex:parseChildIndex(Gt,mt.children),item:Gt})}}),Pt},pt=function(mt,bt){var _t=mt.props,xt=mt.dataStartIndex,yt=mt.dataEndIndex,Et=mt.updateId;if(!validateWidthHeight({props:_t}))return null;var St=_t.children,Tt=_t.layout,kt=_t.stackOffset,$t=_t.data,Ct=_t.reverseStackOrder,It=getAxisNameByLayout(Tt),Nt=It.numericAxisName,Ot=It.cateAxisName,jt=findAllByType(St,rt),Mt=getStackGroupsByAxisId($t,jt,"".concat(Nt,"Id"),"".concat(Ot,"Id"),kt,Ct),Rt=lt.reduce(function(Yt,Xt){var tr="".concat(Xt.axisType,"Map");return _objectSpread(_objectSpread({},Yt),{},_defineProperty({},tr,getAxisMap(_t,_objectSpread(_objectSpread({},Xt),{},{graphicalItems:jt,stackGroups:Xt.axisType===Nt&&Mt,dataStartIndex:xt,dataEndIndex:yt}))))},{}),Lt=calculateOffset(_objectSpread(_objectSpread({},Rt),{},{props:_t,graphicalItems:jt}),bt==null?void 0:bt.legendBBox);Object.keys(Rt).forEach(function(Yt){Rt[Yt]=ct(_t,Rt[Yt],Lt,Yt.replace("Map",""),tt)});var Pt=Rt["".concat(Ot,"Map")],Gt=tooltipTicksGenerator(Pt),qt=ft(_t,_objectSpread(_objectSpread({},Rt),{},{dataStartIndex:xt,dataEndIndex:yt,updateId:Et,graphicalItems:jt,stackGroups:Mt,offset:Lt}));return _objectSpread(_objectSpread({formattedGraphicalItems:qt,graphicalItems:jt,offset:Lt,stackGroups:Mt},Gt),Rt)};return et=function(gt){_inherits(bt,gt);var mt=_createSuper(bt);function bt(_t){var xt,yt,Et;return _classCallCheck(this,bt),Et=mt.call(this,_t),_defineProperty(_assertThisInitialized(Et),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_defineProperty(_assertThisInitialized(Et),"accessibilityManager",new AccessibilityManager),_defineProperty(_assertThisInitialized(Et),"handleLegendBBoxUpdate",function(St){if(St){var Tt=Et.state,kt=Tt.dataStartIndex,$t=Tt.dataEndIndex,Ct=Tt.updateId;Et.setState(_objectSpread({legendBBox:St},pt({props:Et.props,dataStartIndex:kt,dataEndIndex:$t,updateId:Ct},_objectSpread(_objectSpread({},Et.state),{},{legendBBox:St}))))}}),_defineProperty(_assertThisInitialized(Et),"handleReceiveSyncEvent",function(St,Tt,kt){if(Et.props.syncId===St){if(kt===Et.eventEmitterSymbol&&typeof Et.props.syncMethod!="function")return;Et.applySyncEvent(Tt)}}),_defineProperty(_assertThisInitialized(Et),"handleBrushChange",function(St){var Tt=St.startIndex,kt=St.endIndex;if(Tt!==Et.state.dataStartIndex||kt!==Et.state.dataEndIndex){var $t=Et.state.updateId;Et.setState(function(){return _objectSpread({dataStartIndex:Tt,dataEndIndex:kt},pt({props:Et.props,dataStartIndex:Tt,dataEndIndex:kt,updateId:$t},Et.state))}),Et.triggerSyncEvent({dataStartIndex:Tt,dataEndIndex:kt})}}),_defineProperty(_assertThisInitialized(Et),"handleMouseEnter",function(St){var Tt=Et.getMouseInfo(St);if(Tt){var kt=_objectSpread(_objectSpread({},Tt),{},{isTooltipActive:!0});Et.setState(kt),Et.triggerSyncEvent(kt);var $t=Et.props.onMouseEnter;isFunction$6($t)&&$t(kt,St)}}),_defineProperty(_assertThisInitialized(Et),"triggeredAfterMouseMove",function(St){var Tt=Et.getMouseInfo(St),kt=Tt?_objectSpread(_objectSpread({},Tt),{},{isTooltipActive:!0}):{isTooltipActive:!1};Et.setState(kt),Et.triggerSyncEvent(kt);var $t=Et.props.onMouseMove;isFunction$6($t)&&$t(kt,St)}),_defineProperty(_assertThisInitialized(Et),"handleItemMouseEnter",function(St){Et.setState(function(){return{isTooltipActive:!0,activeItem:St,activePayload:St.tooltipPayload,activeCoordinate:St.tooltipPosition||{x:St.cx,y:St.cy}}})}),_defineProperty(_assertThisInitialized(Et),"handleItemMouseLeave",function(){Et.setState(function(){return{isTooltipActive:!1}})}),_defineProperty(_assertThisInitialized(Et),"handleMouseMove",function(St){St.persist(),Et.throttleTriggeredAfterMouseMove(St)}),_defineProperty(_assertThisInitialized(Et),"handleMouseLeave",function(St){var Tt={isTooltipActive:!1};Et.setState(Tt),Et.triggerSyncEvent(Tt);var kt=Et.props.onMouseLeave;isFunction$6(kt)&&kt(Tt,St)}),_defineProperty(_assertThisInitialized(Et),"handleOuterEvent",function(St){var Tt=getReactEventByType(St),kt=get$3(Et.props,"".concat(Tt));if(Tt&&isFunction$6(kt)){var $t,Ct;/.*touch.*/i.test(Tt)?Ct=Et.getMouseInfo(St.changedTouches[0]):Ct=Et.getMouseInfo(St),kt(($t=Ct)!==null&&$t!==void 0?$t:{},St)}}),_defineProperty(_assertThisInitialized(Et),"handleClick",function(St){var Tt=Et.getMouseInfo(St);if(Tt){var kt=_objectSpread(_objectSpread({},Tt),{},{isTooltipActive:!0});Et.setState(kt),Et.triggerSyncEvent(kt);var $t=Et.props.onClick;isFunction$6($t)&&$t(kt,St)}}),_defineProperty(_assertThisInitialized(Et),"handleMouseDown",function(St){var Tt=Et.props.onMouseDown;if(isFunction$6(Tt)){var kt=Et.getMouseInfo(St);Tt(kt,St)}}),_defineProperty(_assertThisInitialized(Et),"handleMouseUp",function(St){var Tt=Et.props.onMouseUp;if(isFunction$6(Tt)){var kt=Et.getMouseInfo(St);Tt(kt,St)}}),_defineProperty(_assertThisInitialized(Et),"handleTouchMove",function(St){St.changedTouches!=null&&St.changedTouches.length>0&&Et.throttleTriggeredAfterMouseMove(St.changedTouches[0])}),_defineProperty(_assertThisInitialized(Et),"handleTouchStart",function(St){St.changedTouches!=null&&St.changedTouches.length>0&&Et.handleMouseDown(St.changedTouches[0])}),_defineProperty(_assertThisInitialized(Et),"handleTouchEnd",function(St){St.changedTouches!=null&&St.changedTouches.length>0&&Et.handleMouseUp(St.changedTouches[0])}),_defineProperty(_assertThisInitialized(Et),"triggerSyncEvent",function(St){Et.props.syncId!==void 0&&eventCenter.emit(SYNC_EVENT,Et.props.syncId,St,Et.eventEmitterSymbol)}),_defineProperty(_assertThisInitialized(Et),"applySyncEvent",function(St){var Tt=Et.props,kt=Tt.layout,$t=Tt.syncMethod,Ct=Et.state.updateId,It=St.dataStartIndex,Nt=St.dataEndIndex;if(St.dataStartIndex!==void 0||St.dataEndIndex!==void 0)Et.setState(_objectSpread({dataStartIndex:It,dataEndIndex:Nt},pt({props:Et.props,dataStartIndex:It,dataEndIndex:Nt,updateId:Ct},Et.state)));else if(St.activeTooltipIndex!==void 0){var Ot=St.chartX,jt=St.chartY,Mt=St.activeTooltipIndex,Rt=Et.state,Lt=Rt.offset,Pt=Rt.tooltipTicks;if(!Lt)return;if(typeof $t=="function")Mt=$t(Pt,St);else if($t==="value"){Mt=-1;for(var Gt=0;Gt=0){var pr,rr;if(Ot.dataKey&&!Ot.allowDuplicatedCategory){var vr=typeof Ot.dataKey=="function"?ar:"payload.".concat(Ot.dataKey.toString());pr=findEntryInArray(Gt,vr,Mt),rr=qt&&Yt&&findEntryInArray(Yt,vr,Mt)}else pr=Gt==null?void 0:Gt[jt],rr=qt&&Yt&&Yt[jt];if(Er||mr){var $r=St.props.activeIndex!==void 0?St.props.activeIndex:jt;return[reactExports.cloneElement(St,_objectSpread(_objectSpread(_objectSpread({},$t.props),_r),{},{activeIndex:$r})),null,null]}if(!isNil$1(pr))return[Ut].concat(_toConsumableArray(Et.renderActivePoints({item:$t,activePoint:pr,basePoint:rr,childIndex:jt,isRange:qt})))}else{var Rr,Cr=(Rr=Et.getItemByXY(Et.state.activeCoordinate))!==null&&Rr!==void 0?Rr:{graphicalItem:Ut},Nr=Cr.graphicalItem,Gr=Nr.item,qr=Gr===void 0?St:Gr,Qr=Nr.childIndex,Yr=_objectSpread(_objectSpread(_objectSpread({},$t.props),_r),{},{activeIndex:Qr});return[reactExports.cloneElement(qr,Yr),null,null]}return qt?[Ut,null,null]:[Ut,null]}),_defineProperty(_assertThisInitialized(Et),"renderCustomized",function(St,Tt,kt){return reactExports.cloneElement(St,_objectSpread(_objectSpread({key:"recharts-customized-".concat(kt)},Et.props),Et.state))}),_defineProperty(_assertThisInitialized(Et),"renderMap",{CartesianGrid:{handler:Et.renderGrid,once:!0},ReferenceArea:{handler:Et.renderReferenceElement},ReferenceLine:{handler:Et.renderReferenceElement},ReferenceDot:{handler:Et.renderReferenceElement},XAxis:{handler:Et.renderXAxis},YAxis:{handler:Et.renderYAxis},Brush:{handler:Et.renderBrush,once:!0},Bar:{handler:Et.renderGraphicChild},Line:{handler:Et.renderGraphicChild},Area:{handler:Et.renderGraphicChild},Radar:{handler:Et.renderGraphicChild},RadialBar:{handler:Et.renderGraphicChild},Scatter:{handler:Et.renderGraphicChild},Pie:{handler:Et.renderGraphicChild},Funnel:{handler:Et.renderGraphicChild},Tooltip:{handler:Et.renderCursor,once:!0},PolarGrid:{handler:Et.renderPolarGrid,once:!0},PolarAngleAxis:{handler:Et.renderPolarAxis},PolarRadiusAxis:{handler:Et.renderPolarAxis},Customized:{handler:Et.renderCustomized}}),Et.clipPathId="".concat((xt=_t.id)!==null&&xt!==void 0?xt:uniqueId("recharts"),"-clip"),Et.throttleTriggeredAfterMouseMove=throttle$1(Et.triggeredAfterMouseMove,(yt=_t.throttleDelay)!==null&&yt!==void 0?yt:1e3/60),Et.state={},Et}return _createClass(bt,[{key:"componentDidMount",value:function(){var xt,yt;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(xt=this.props.margin.left)!==null&&xt!==void 0?xt:0,top:(yt=this.props.margin.top)!==null&&yt!==void 0?yt:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(xt,yt){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==yt.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==xt.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==xt.margin){var Et,St;this.accessibilityManager.setDetails({offset:{left:(Et=this.props.margin.left)!==null&&Et!==void 0?Et:0,top:(St=this.props.margin.top)!==null&&St!==void 0?St:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var xt=findChildByType(this.props.children,Tooltip);if(xt&&typeof xt.props.shared=="boolean"){var yt=xt.props.shared?"axis":"item";return st.indexOf(yt)>=0?yt:ot}return ot}},{key:"getMouseInfo",value:function(xt){if(!this.container)return null;var yt=this.container,Et=yt.getBoundingClientRect(),St=getOffset(Et),Tt={chartX:Math.round(xt.pageX-St.left),chartY:Math.round(xt.pageY-St.top)},kt=Et.width/yt.offsetWidth||1,$t=this.inRange(Tt.chartX,Tt.chartY,kt);if(!$t)return null;var Ct=this.state,It=Ct.xAxisMap,Nt=Ct.yAxisMap,Ot=this.getTooltipEventType();if(Ot!=="axis"&&It&&Nt){var jt=getAnyElementOfObject(It).scale,Mt=getAnyElementOfObject(Nt).scale,Rt=jt&&jt.invert?jt.invert(Tt.chartX):null,Lt=Mt&&Mt.invert?Mt.invert(Tt.chartY):null;return _objectSpread(_objectSpread({},Tt),{},{xValue:Rt,yValue:Lt})}var Pt=getTooltipData(this.state,this.props.data,this.props.layout,$t);return Pt?_objectSpread(_objectSpread({},Tt),Pt):null}},{key:"inRange",value:function(xt,yt){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,St=this.props.layout,Tt=xt/Et,kt=yt/Et;if(St==="horizontal"||St==="vertical"){var $t=this.state.offset,Ct=Tt>=$t.left&&Tt<=$t.left+$t.width&&kt>=$t.top&&kt<=$t.top+$t.height;return Ct?{x:Tt,y:kt}:null}var It=this.state,Nt=It.angleAxisMap,Ot=It.radiusAxisMap;if(Nt&&Ot){var jt=getAnyElementOfObject(Nt);return inRangeOfSector({x:Tt,y:kt},jt)}return null}},{key:"parseEventsOfWrapper",value:function(){var xt=this.props.children,yt=this.getTooltipEventType(),Et=findChildByType(xt,Tooltip),St={};Et&&yt==="axis"&&(Et.props.trigger==="click"?St={onClick:this.handleClick}:St={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var Tt=adaptEventHandlers(this.props,this.handleOuterEvent);return _objectSpread(_objectSpread({},Tt),St)}},{key:"addListener",value:function(){eventCenter.on(SYNC_EVENT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){eventCenter.removeListener(SYNC_EVENT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(xt,yt,Et){for(var St=this.state.formattedGraphicalItems,Tt=0,kt=St.length;Tt{const et=useClasses$b(),tt=reactExports.useMemo(()=>mergeClasses(et.wrapper,_e&&et.horizontal),[et,_e]),rt=reactExports.useMemo(()=>mergeClasses(et.tagsWrapper,_e&&et.tagsWrapperHorizontal),[et,_e]),nt=reactExports.useMemo(()=>{let ot;switch(j.type){case"custom":ot=j.content;break;case"text":ot=jsxRuntimeExports.jsx(Text$2,{size:500,children:j.data});break;case"number":ot=jsxRuntimeExports.jsx(Text$2,{size:500,children:numberFormatter(j.data)});break;case"status":ot=jsxRuntimeExports.jsx(StatusText,{statusCode:j.status,textSize:500,showText:!0});break;case"time":{ot=jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:j.startTimeISOStr,endTimeISOString:j.endTimeISOStr,textSize:500});break}case"score":{const it=[{data:j.score,color:tokens.colorNeutralForeground3},{data:1-j.score,color:tokens.colorNeutralBackground4}];ot=jsxRuntimeExports.jsxs("div",{className:et.scoreWrapper,children:[jsxRuntimeExports.jsx(PieChart,{width:24,height:24,children:jsxRuntimeExports.jsx(Pie,{data:it,dataKey:"data",cx:"50%",cy:"50%",innerRadius:8,outerRadius:11,strokeWidth:0,stroke:"transparent",children:it.map((st,lt)=>jsxRuntimeExports.jsx(Cell,{fill:st.color},`cell-${lt}`))})}),jsxRuntimeExports.jsx(Text$2,{size:500,children:j.score})]});break}case"tags":ot=jsxRuntimeExports.jsx("div",{className:rt,children:j.tags.map((it,st)=>jsxRuntimeExports.jsx(MetricTag,{tag:it},st))});break;default:ot=null}return ot},[j,et,rt]);return jsxRuntimeExports.jsxs("div",{className:tt,children:[jsxRuntimeExports.jsx(Text$2,{size:400,className:et.title,children:j.title}),jsxRuntimeExports.jsx("div",{className:et.data,children:nt})]})},useClasses$b=makeStyles({wrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",...shorthands.flex(0,0,"auto")},horizontal:{flexDirection:"row",alignItems:"center",...shorthands.flex(0,0,"auto")},title:{color:tokens.colorNeutralForeground2,marginBottom:tokens.spacingVerticalXS},data:{color:tokens.colorNeutralForeground1},tagsWrapper:{display:"flex",flexDirection:"row",...shorthands.gap("0.5rem")},tagsWrapperHorizontal:{flexDirection:"column"},timeWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},scoreWrapper:{display:"flex",flexDirection:"row",alignItems:"center","> :first-child":{marginRight:"8px"}}}),TraceDetailMetrics=()=>{const j=useClasses$a(),_e=useSelectedTrace(),et=useLocStrings(),tt=reactExports.useMemo(()=>{const rt=_e;if(!rt)return[];const nt=convertToTraceListRow(rt);return[{title:et.Status,type:"status",status:rt.status??UNDEFINED_VALUE_PLACEHOLDER},{title:et.Total_Tokens,type:"custom",content:jsxRuntimeExports.jsx("div",{className:j.token,children:jsxRuntimeExports.jsx(SummaryToken,{trace:nt})})},{title:et.Latency,type:"time",startTimeISOStr:rt.start_time,endTimeISOStr:rt.end_time}]},[_e,j.token]);return jsxRuntimeExports.jsxs("div",{className:j.wrapper,children:[tt.map((rt,nt)=>jsxRuntimeExports.jsx(MetricItem,{data:rt},nt)),(_e==null?void 0:_e.evaluations)&&jsxRuntimeExports.jsx(EvaluationMetricItem,{evaluations:_e.evaluations})]})},useClasses$a=makeStyles({wrapper:{display:"flex",alignItems:"stretch",height:"48px",width:"100%",...shorthands.margin("16px"),...shorthands.gap("1rem")},token:{"& div":{fontSize:"20px",fontWeight:400}}}),useClasses$9=makeStyles({root:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",cursor:"pointer"},left:{display:"flex",flexWrap:"nowrap",maxWidth:"{(TREE_NODE_WIDTH * 2) / 3}px",...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",...shorthands.margin("0px","10px","0px","0px"),alignItems:"center"},spanName:shorthands.margin("0px","0px","0px","4px"),lastInputMessage:{...shorthands.margin("0px","0px","0px","4px"),fontSize:"12px",color:tokens.colorNeutralForeground2},lastInputMessageLabel:shorthands.margin("0px","4px","0px","0px"),right:{display:"flex",flexWrap:"nowrap",...shorthands.padding("0px","10px","0px","0px"),...shorthands.gap(tokens.spacingHorizontalS)}}),TreeNode=({node:j,span:_e})=>{var ct,dt,ft,pt;const et=getToolTypeFromSpan(_e),tt=bitset.has(GraphNodeStatus.Selected)(j.status),rt=bitset.has(GraphNodeStatus.Activated)(j.status),nt=useLastInputMessageBySpanId(((ct=_e.context)==null?void 0:ct.span_id)??""),ot=useLocStrings(),it=useClasses$9();let st=tokens.colorNeutralStroke1,lt=tokens.colorNeutralBackground4,ut=1;return tt&&(st=tokens.colorBrandStroke2,ut=2,lt=tokens.colorNeutralBackground4Selected),rt&&(lt=tokens.colorNeutralBackground4Hover),jsxRuntimeExports.jsx("foreignObject",{x:j.x,y:j.y,width:TREE_NODE_WIDTH,height:TREE_NODE_HEIGHT,style:{border:`${ut}px solid ${st}`,backgroundColor:lt,borderRadius:10,paddingLeft:10},children:jsxRuntimeExports.jsxs("div",{className:it.root,children:[jsxRuntimeExports.jsxs("div",{className:it.left,children:[et&&jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",children:`${et}`}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(Tooltip$1,{content:_e.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:it.spanName,children:`${_e.name}`})}),nt&&jsxRuntimeExports.jsxs("div",{className:it.lastInputMessage,children:[jsxRuntimeExports.jsx("span",{className:it.lastInputMessageLabel,children:ot["Last input:"]}),getSenderNameByLLMMessage(nt)]})]})]}),jsxRuntimeExports.jsxs("div",{className:it.right,children:[((ft=(dt=_e==null?void 0:_e.status)==null?void 0:dt.status_code)==null?void 0:ft.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(pt=_e.status)==null?void 0:pt.status_code,tooltipContent:_e.status.message}),jsxRuntimeExports.jsx(NodeToken,{span:_e}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:_e.start_time,endTimeISOString:_e.end_time})]})]})})};class NodeConfig{constructor(_e){this.options=_e}render(_e){const et=this.options.spans.find(tt=>{var rt;return((rt=tt==null?void 0:tt.context)==null?void 0:rt.span_id)===_e.model.id});return et?jsxRuntimeExports.jsx(TreeNode,{node:_e.model,span:et}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const TreeView=()=>{const j=useSpansOfSelectedTrace(),_e=useSetSelectedSpanId(),et=useSelectedSpanId(),tt=st=>(lt,ut)=>(ut&&ut.type===GraphNodeEvent.Click&&_e(ut.node.id),st(lt,ut)),rt=GraphConfigBuilder.default().registerNode(()=>new NodeConfig({spans:j})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build(),nt=new Set;nt.add(GraphFeatures.ClickNodeToSelect),nt.add(GraphFeatures.CanvasVerticalScrollable),nt.add(GraphFeatures.LimitBoundary),nt.add(GraphFeatures.InvisibleScrollbar);const[ot,it]=useGraphReducer({data:GraphModel.empty(),settings:{features:nt,graphConfig:rt,canvasBoundaryPadding:{top:0,bottom:TREE_NODE_HEIGHT}}},tt);return reactExports.useEffect(()=>{const{graph:st,rootIds:lt}=spansToGraphModel(j,{});it({type:GraphCanvasEvent.SetData,data:st.selectNodes(ut=>ut.id===lt[0])}),_e(lt[0])},[]),reactExports.useEffect(()=>{et&&it({type:GraphNodeEvent.Select,nodes:[et]})},[et]),jsxRuntimeExports.jsx(TreeGraph,{state:ot,dispatch:it})},TraceDetail=()=>{const j=useClasses$8(),_e=useSelectedSpanId(),et=reactExports.useRef(null),tt=useTraceDetailRefreshKey(),rt=useIsGanttChartOpen(),nt=useTraceDetailViewStatus(),ot=useTraceDetailLoadingComponent(),it=useTraceDetailErrorComponent(),st=useLocStrings();return reactExports.useEffect(()=>{var lt;rt&&((lt=et.current)==null||lt.updateSize({height:400,width:"100%"}))},[rt]),nt===ViewStatus.error?jsxRuntimeExports.jsx(it,{}):nt===ViewStatus.loading?jsxRuntimeExports.jsx(ot,{}):nt===ViewStatus.hidden?null:jsxRuntimeExports.jsxs("div",{className:j.root,children:[jsxRuntimeExports.jsxs("div",{className:j.container,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(TraceDetailMetrics,{},tt),jsxRuntimeExports.jsx(Divider$2,{})]}),jsxRuntimeExports.jsxs("div",{className:j.content,children:[jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},minWidth:100,maxWidth:"60%",defaultSize:{width:TREE_NODE_WIDTH+2*TREE_NODE_INDENT+32,height:"100%"},handleComponent:{right:jsxRuntimeExports.jsx("div",{className:j.resizeBar})},children:jsxRuntimeExports.jsx("div",{className:j.leftPane,children:jsxRuntimeExports.jsx(TreeView,{},tt)})}),jsxRuntimeExports.jsx("div",{className:j.rightPane,children:jsxRuntimeExports.jsx(NodeDetail,{emptyTip:jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:st.No_span_data})},tt)},`${_e}`)]})]}),rt&&jsxRuntimeExports.jsx("div",{className:j.bottomPane,children:jsxRuntimeExports.jsx(Resizable,{ref:et,className:j.ganttContainer,defaultSize:{height:0,width:"100%"},enable:{top:!0},handleComponent:{top:jsxRuntimeExports.jsx("div",{className:j.resizeBarBottom})},children:jsxRuntimeExports.jsx(GanttView,{},tt)})})]})},useClasses$8=makeStyles({root:{width:"100%",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},summary:{display:"flex",alignItems:"stretch",height:"48px",width:"100%",...shorthands.margin("16px"),...shorthands.gap("1rem")},content:{...shorthands.flex(1),display:"flex"},leftPane:{height:"100%",...shorthands.margin("16px",0,0,"16px")},rightPane:{position:"relative",width:"100%",height:"100%",...shorthands.flex(1),...shorthands.overflow("hidden")},bottomPane:{position:"absolute",backgroundColor:tokens.colorNeutralBackground1,bottom:0,width:"100%"},ganttContainer:{...shorthands.padding("16px")},resizeBar:{position:"absolute",top:0,bottom:0,right:"5px",width:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",top:"50%",right:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",top:"50%",left:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}},resizeBarBottom:{position:"absolute",left:0,right:0,bottom:"5px",height:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",left:"50%",bottom:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",left:"50%",top:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}}}),useClasses$7=makeStyles({title:{...shorthands.flex(1),...shorthands.padding("8px","16px"),lineHeight:"28px",fontSize:"18px",fontWeight:600}}),TraceDetailTitle=()=>{const j=useClasses$7(),_e=useLocStrings(),et=useSelectedTrace();return jsxRuntimeExports.jsx("div",{className:j.title,children:(et==null?void 0:et.name)??_e.Trace_Detail})},TraceFilter=()=>{const j=useClasses$6(),_e=useTableColumnNames(),[et,tt]=[useTableHiddenColumnKeys(),useSetTableHiddenColumnKeys()],rt=useTraceListShowMetrics(),nt=reactExports.useMemo(()=>[..._e.normalColumns,..._e.evaluationColumns].filter(st=>!et.includes(st.key)).map(st=>st.key),[et,_e]),ot=(it,st)=>{const{optionValue:lt}=st;lt&&tt(et.includes(lt)?et.filter(ut=>ut!==lt):[...et,lt])};return jsxRuntimeExports.jsxs("div",{className:j.wrapper,children:[jsxRuntimeExports.jsx(Input,{className:j.filter,disabled:!0,placeholder:"NOT implement yet"}),jsxRuntimeExports.jsxs(Combobox,{className:j.chooser,multiselect:!0,placeholder:"Columns Filter",selectedOptions:nt,onOptionSelect:ot,children:[jsxRuntimeExports.jsx(OptionGroup,{label:"Trace Info",children:_e.normalColumns.map(it=>jsxRuntimeExports.jsx(Option$2,{value:it.key,children:it.name},it.key))}),rt&&jsxRuntimeExports.jsx(OptionGroup,{label:"Metrics",children:_e.evaluationColumns.map(it=>jsxRuntimeExports.jsx(Option$2,{value:it.key,children:it.name},it.key))})]})]})},useClasses$6=makeStyles({wrapper:{display:"flex",...shorthands.gap("1rem"),...shorthands.margin(tokens.spacingVerticalM)},filter:{flexGrow:1},chooser:{width:"100px"}}),useDebugFunctions=()=>{const j=useGetAllTraces(),_e=useGetAllSpans(),et=useSelectedTrace(),tt=useSpansOfSelectedTrace();reactExports.useEffect(()=>{window.printTracesAndSpans=()=>{const rt=j();console.log("traces",rt);const nt=_e();console.log("spans",nt)},window.printSelectedTrace=()=>{console.log("selectedTrace",et)},window.printSpansOfSelectedTrace=()=>{console.log("spansOfSelectedTrace",tt)}},[j,_e,et,tt])},useOnClickTraceRow=()=>{const j=useSetSelectedTraceId();return(_e,et)=>{j(_e==null?void 0:_e.trace_id)}};function useResolvedElement(j,_e){var et=reactExports.useRef(null),tt=reactExports.useRef(null);tt.current=_e;var rt=reactExports.useRef(null);reactExports.useEffect(function(){nt()});var nt=reactExports.useCallback(function(){var ot=rt.current,it=tt.current,st=ot||(it?it instanceof Element?it:it.current:null);et.current&&et.current.element===st&&et.current.subscriber===j||(et.current&&et.current.cleanup&&et.current.cleanup(),et.current={element:st,subscriber:j,cleanup:st?j(st):void 0})},[j]);return reactExports.useEffect(function(){return function(){et.current&&et.current.cleanup&&(et.current.cleanup(),et.current=null)}},[]),reactExports.useCallback(function(ot){rt.current=ot,nt()},[nt])}function extractSize(j,_e,et){return j[_e]?j[_e][0]?j[_e][0][et]:j[_e][et]:_e==="contentBoxSize"?j.contentRect[et==="inlineSize"?"width":"height"]:void 0}function useResizeObserver(j){j===void 0&&(j={});var _e=j.onResize,et=reactExports.useRef(void 0);et.current=_e;var tt=j.round||Math.round,rt=reactExports.useRef(),nt=reactExports.useState({width:void 0,height:void 0}),ot=nt[0],it=nt[1],st=reactExports.useRef(!1);reactExports.useEffect(function(){return st.current=!1,function(){st.current=!0}},[]);var lt=reactExports.useRef({width:void 0,height:void 0}),ut=useResolvedElement(reactExports.useCallback(function(ct){return(!rt.current||rt.current.box!==j.box||rt.current.round!==tt)&&(rt.current={box:j.box,round:tt,instance:new ResizeObserver(function(dt){var ft=dt[0],pt=j.box==="border-box"?"borderBoxSize":j.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",gt=extractSize(ft,pt,"inlineSize"),mt=extractSize(ft,pt,"blockSize"),bt=gt?tt(gt):void 0,_t=mt?tt(mt):void 0;if(lt.current.width!==bt||lt.current.height!==_t){var xt={width:bt,height:_t};lt.current.width=bt,lt.current.height=_t,et.current?et.current(xt):st.current||it(xt)}})}),rt.current.instance.observe(ct,{box:j.box}),function(){rt.current&&rt.current.instance.unobserve(ct)}},[j.box,tt]),j.ref);return reactExports.useMemo(function(){return{ref:ut,width:ot.width,height:ot.height}},[ut,ot.width,ot.height])}const genStatusChecker=j=>_e=>_e===void 0?!1:_e.toLowerCase()===j.toLowerCase(),checkStatus=(j,_e)=>j===void 0?!1:j.toLowerCase()===_e.toLowerCase(),useTraceListRows=()=>useTraces().map(_e=>convertToTraceListRow(_e)),BASIC_WIDTH=200,getColumnChildrenCount=j=>j.children?j==null?void 0:j.children.reduce((_e,et)=>_e+getColumnChildrenCount(et),0):j.minWidth??BASIC_WIDTH,useTraceListColumns=()=>{const{ref:j,width:_e}=useResizeObserver(),et=useClasses$5(),tt=useTraceListRows(),rt=useOnClickTraceRow(),nt=useSetTableColumnNames(),ot=useTableHiddenColumnKeys(),it=useLocStrings(),st=useTraceListColumnModifier(),lt=genStatusChecker("running"),ut=useSortableColumns(),ct=reactExports.useMemo(()=>{const gt=[];return tt.forEach(mt=>{Object.entries(mt.evaluations??{}).forEach(([bt,_t])=>{!gt.includes(bt)&&_t.display_name&>.push(_t.display_name)})}),gt.map(mt=>{const bt=[],_t=[];return tt.forEach(xt=>{var St;const yt=(St=xt.evaluations)==null?void 0:St[mt];if(!yt||!yt.outputs)return;const Et=yt.outputs;Object.keys(Et).forEach(Tt=>{const kt=Et[Tt];!bt.includes(Tt)&&kt!==null&&(bt.push(Tt),_t.push({key:`evaluation-${mt}-${Tt}-value`,name:Tt,renderCell:({row:$t})=>{var Nt,Ot,jt;if(lt($t.status))return jsxRuntimeExports.jsx(CellSkeleton,{});let Ct;const It=(jt=(Ot=(Nt=$t==null?void 0:$t.evaluations)==null?void 0:Nt[mt])==null?void 0:Ot.outputs)==null?void 0:jt[Tt];return It===void 0?Ct="N/A":typeof It=="number"?Ct=formatNumber(It):Ct=`${It}`,Ct}}))})}),{name:mt,key:`evaluation-${mt}`,children:_t}})},[tt]),dt=reactExports.useMemo(()=>{let mt=[...[{key:"kind",name:it.Kind,minWidth:120,maxWidth:200,renderCell:({row:Et})=>lt(Et.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(KindText,{kind:Et.kind})},{key:"name",name:it.Name,minWidth:150,maxWidth:300,renderCell:({row:Et})=>lt(Et.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(Tooltip$1,{content:Et.name??"",relationship:"label",children:jsxRuntimeExports.jsx("span",{className:et.nameCell,title:Et.name,onClick:()=>{rt(Et,"name")},children:Et.name})})},{key:"input",name:it.Input,minWidth:300,renderCell:({row:Et})=>lt(Et.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Et.inputs})},{key:"output",name:it.Output,minWidth:300,renderCell:({row:Et})=>lt(Et.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Et.outputs})},{key:"start_time",name:it.Start_time,minWidth:150,maxWidth:300,renderCell:({row:Et})=>jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Et.start_time})})},{key:"end_time",name:it.End_time,minWidth:150,maxWidth:300,renderCell:({row:Et})=>lt(Et.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Et.end_time})})},{key:"latency",name:it.Latency,minWidth:120,renderCell:({row:Et})=>lt(Et.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:Et.start_time,endTimeISOString:Et.end_time})})},{key:"total_tokens",name:it.Total_tokens,minWidth:120,renderCell:({row:Et})=>lt(Et.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(SummaryToken,{trace:Et})})},{key:"status",name:it.Status,minWidth:120,renderCell:({row:Et})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:Et.status})})}],{key:"evaluations",name:"Metrics",minWidth:450,children:ct}];mt=st?st(mt,tt):mt;const bt=mt.filter(Et=>Et.key!=="evaluations"),_t=mt.find(Et=>Et.key==="evaluations");nt({normalColumns:bt.map(Et=>({name:Et.name,key:Et.key})).filter(Et=>!UN_FILTERABLE_COLUMNS.includes(Et.name)),evaluationColumns:_t.children.map(Et=>({name:Et.name,key:Et.key}))});const xt=bt.filter(Et=>!ot.includes(Et.key)),yt={..._t,children:_t.children.filter(Et=>!ot.includes(Et.key))};return[...xt,yt]},[et.nameCell,ct,ot,rt,nt,tt]),ft=dt.reduce((gt,mt)=>gt+getColumnChildrenCount(mt),0),pt=gt=>{if(gt.children)return{...gt,children:gt.children.map(pt)};const mt=gt.minWidth??BASIC_WIDTH,bt=_e?(_e-24)/ft*mt:200;return{...gt,width:bt,minWidth:bt}};return{columns:dt.map(pt).map(gt=>{const mt=gt.key;return mt?{...gt,key:gt.key,sortable:!!(mt&&ut.includes(mt))}:gt}),ref:j}},useClasses$5=makeStyles({typeBadge:{...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalS)},latencyWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}}}),UN_FILTERABLE_COLUMNS=["Kind","Name"];function TraceList({onRowClick:j,className:_e}){const et=useClasses$4(),tt=useTraceListRows(),{columns:rt,ref:nt}=useTraceListColumns(),ot=useTraceListViewStatus(),it=useTraceListLoadingComponent(),st=useTraceListErrorComponent(),lt=useIsDark();useDebugFunctions();const ut=useSortColumn(),ct=useSetSortColumn(),dt=ut?[ut]:[],ft=useOnClickTraceRow(),pt=reactExports.useCallback(gt=>{const{row:mt,column:bt}=gt;ft(mt,bt.key),j==null||j(mt)},[ft,j]);return ot===ViewStatus.error?jsxRuntimeExports.jsx(st,{}):ot===ViewStatus.loading?jsxRuntimeExports.jsx(it,{}):jsxRuntimeExports.jsx("div",{ref:nt,className:et.root,children:jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${et.grid} ${_e??""} ${lt?"rdg-dark":"rdg-light"}`,renderers:{noRowsFallback:jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",gridColumn:"1/-1",display:"flex",alignItems:"center",justifyContent:"center"},children:[jsxRuntimeExports.jsx(TextBulletListSquareWarning24Regular,{}),jsxRuntimeExports.jsx(Text$2,{style:{paddingLeft:"1rem"},children:"No traces found."})]})},rowClass:()=>et.row,columns:rt,rows:tt,headerRowHeight:26,rowHeight:80,onCellClick:pt,defaultColumnOptions:{resizable:!0},sortColumns:dt,onSortColumnsChange:gt=>{var mt;ct((mt=gt.slice(-1))==null?void 0:mt[0])}})})}const useClasses$4=makeStyles({root:{display:"flex",flexDirection:"column",flexGrow:1},grid:{},row:{cursor:"pointer"}}),defaultLocStrings=new Proxy({},{get:(j,_e)=>_e.replace(/_/g," ")}),RegistryWrapper=createRegistry({name:"TraceView"}),TraceViewWrapper=({isDark:j=!1,viewModel:_e,children:et,locStrings:tt=defaultLocStrings,TraceListLoading:rt,TraceListError:nt,TraceDetailLoading:ot,TraceDetailError:it})=>{const st=React.useCallback(lt=>{lt.register(TraceViewModelToken,{useValue:_e}),rt&<.register(traceListLoadingInjectionToken,{useValue:rt}),nt&<.register(traceListErrorInjectionToken,{useValue:nt}),ot&<.register(traceDetailLoadingInjectionToken,{useValue:ot}),it&<.register(traceDetailErrorInjectionToken,{useValue:it}),tt&<.register(locStringsInjectionToken,{useValue:tt})},[]);return jsxRuntimeExports.jsx(TraceViewThemeContext.Provider,{value:j,children:jsxRuntimeExports.jsx(RegistryWrapper,{onInitialize:st,children:et})})},DefaultDetailContainer=({isOpen:j,setIsOpen:_e,header:et=null,content:tt})=>jsxRuntimeExports.jsxs(OverlayDrawer,{position:"end",style:{width:"calc(100% - 160px)"},open:j,onOpenChange:(rt,nt)=>_e(nt.open),children:[et,jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"calc(100vh - 40px)"},children:tt})]}),DefaultDetailHeader=({setIsTraceDetailOpen:j,viewModel:_e,showRefresh:et=!0,showGantt:tt=!0,showCopyUrl:rt=!1,showStreamSwitch:nt=!1,isStreaming:ot,onIsStreamingChange:it})=>{const st=useClasses$3(),lt=useLocStrings(),ut=useIsGanttChartOpen();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:st.header,children:[jsxRuntimeExports.jsx(TraceDetailTitle,{}),nt&&ot!==void 0&&it!==void 0&&jsxRuntimeExports.jsx(StreamSwitcher,{style:{marginRight:"16px",marginTop:"4px"},isStreaming:ot,onIsStreamingChange:it}),rt?jsxRuntimeExports.jsx(Tooltip$1,{content:lt["Copy URL"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Copy URL",icon:jsxRuntimeExports.jsx(SendCopy20Regular,{}),onClick:()=>{const ct=window.location.href;if(navigator.clipboard)navigator.clipboard.writeText(ct);else{const dt=document.createElement("textarea");dt.value=ct,document.body.appendChild(dt),dt.select();try{document.execCommand("copy")}catch(ft){console.error("Fallback: Oops, unable to copy",ft)}document.body.removeChild(dt)}}})}):null,et?jsxRuntimeExports.jsx(Tooltip$1,{content:lt["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>_e.refreshSpans()})}):null,tt?jsxRuntimeExports.jsx(Tooltip$1,{content:lt[ut?"Hide Gantt":"Show Gantt"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{style:{color:ut?tokens.colorBrandForeground1:""},appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(GanttChart20Regular,{}),onClick:()=>_e.toggleIsGanttChartOpen()})}):null,jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),onClick:()=>j(!1)})]}),jsxRuntimeExports.jsx(Divider$2,{})]})},useClasses$3=makeStyles({header:{display:"flex",width:"100%"},wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});function useDarkMode(){const[j,_e]=reactExports.useState(!1);return reactExports.useEffect(()=>{const et=window.matchMedia("(prefers-color-scheme: dark)");_e(et.matches);const tt=rt=>{_e(rt.matches)};return et.addEventListener("change",tt),()=>{et.removeEventListener("change",tt)}},[]),j}const token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(j,_e){try{return[decodeURIComponent(j.join(""))]}catch{}if(j.length===1)return j;_e=_e||1;const et=j.slice(0,_e),tt=j.slice(_e);return Array.prototype.concat.call([],decodeComponents(et),decodeComponents(tt))}function decode$1(j){try{return decodeURIComponent(j)}catch{let _e=j.match(singleMatcher)||[];for(let et=1;et<_e.length;et++)j=decodeComponents(_e,et).join(""),_e=j.match(singleMatcher)||[];return j}}function customDecodeURIComponent(j){const _e={"%FE%FF":"��","%FF%FE":"��"};let et=multiMatcher.exec(j);for(;et;){try{_e[et[0]]=decodeURIComponent(et[0])}catch{const rt=decode$1(et[0]);rt!==et[0]&&(_e[et[0]]=rt)}et=multiMatcher.exec(j)}_e["%C2"]="�";const tt=Object.keys(_e);for(const rt of tt)j=j.replace(new RegExp(rt,"g"),_e[rt]);return j}function decodeUriComponent(j){if(typeof j!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof j+"`");try{return decodeURIComponent(j)}catch{return customDecodeURIComponent(j)}}function splitOnFirst(j,_e){if(!(typeof j=="string"&&typeof _e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(j===""||_e==="")return[];const et=j.indexOf(_e);return et===-1?[]:[j.slice(0,et),j.slice(et+_e.length)]}function includeKeys(j,_e){const et={};if(Array.isArray(_e))for(const tt of _e){const rt=Object.getOwnPropertyDescriptor(j,tt);rt!=null&&rt.enumerable&&Object.defineProperty(et,tt,rt)}else for(const tt of Reflect.ownKeys(j)){const rt=Object.getOwnPropertyDescriptor(j,tt);if(rt.enumerable){const nt=j[tt];_e(tt,nt,j)&&Object.defineProperty(et,tt,rt)}}return et}const isNullOrUndefined=j=>j==null,strictUriEncode=j=>encodeURIComponent(j).replaceAll(/[!'()*]/g,_e=>`%${_e.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(j){switch(j.arrayFormat){case"index":return _e=>(et,tt)=>{const rt=et.length;return tt===void 0||j.skipNull&&tt===null||j.skipEmptyString&&tt===""?et:tt===null?[...et,[encode(_e,j),"[",rt,"]"].join("")]:[...et,[encode(_e,j),"[",encode(rt,j),"]=",encode(tt,j)].join("")]};case"bracket":return _e=>(et,tt)=>tt===void 0||j.skipNull&&tt===null||j.skipEmptyString&&tt===""?et:tt===null?[...et,[encode(_e,j),"[]"].join("")]:[...et,[encode(_e,j),"[]=",encode(tt,j)].join("")];case"colon-list-separator":return _e=>(et,tt)=>tt===void 0||j.skipNull&&tt===null||j.skipEmptyString&&tt===""?et:tt===null?[...et,[encode(_e,j),":list="].join("")]:[...et,[encode(_e,j),":list=",encode(tt,j)].join("")];case"comma":case"separator":case"bracket-separator":{const _e=j.arrayFormat==="bracket-separator"?"[]=":"=";return et=>(tt,rt)=>rt===void 0||j.skipNull&&rt===null||j.skipEmptyString&&rt===""?tt:(rt=rt===null?"":rt,tt.length===0?[[encode(et,j),_e,encode(rt,j)].join("")]:[[tt,encode(rt,j)].join(j.arrayFormatSeparator)])}default:return _e=>(et,tt)=>tt===void 0||j.skipNull&&tt===null||j.skipEmptyString&&tt===""?et:tt===null?[...et,encode(_e,j)]:[...et,[encode(_e,j),"=",encode(tt,j)].join("")]}}function parserForArrayFormat(j){let _e;switch(j.arrayFormat){case"index":return(et,tt,rt)=>{if(_e=/\[(\d*)]$/.exec(et),et=et.replace(/\[\d*]$/,""),!_e){rt[et]=tt;return}rt[et]===void 0&&(rt[et]={}),rt[et][_e[1]]=tt};case"bracket":return(et,tt,rt)=>{if(_e=/(\[])$/.exec(et),et=et.replace(/\[]$/,""),!_e){rt[et]=tt;return}if(rt[et]===void 0){rt[et]=[tt];return}rt[et]=[...rt[et],tt]};case"colon-list-separator":return(et,tt,rt)=>{if(_e=/(:list)$/.exec(et),et=et.replace(/:list$/,""),!_e){rt[et]=tt;return}if(rt[et]===void 0){rt[et]=[tt];return}rt[et]=[...rt[et],tt]};case"comma":case"separator":return(et,tt,rt)=>{const nt=typeof tt=="string"&&tt.includes(j.arrayFormatSeparator),ot=typeof tt=="string"&&!nt&&decode(tt,j).includes(j.arrayFormatSeparator);tt=ot?decode(tt,j):tt;const it=nt||ot?tt.split(j.arrayFormatSeparator).map(st=>decode(st,j)):tt===null?tt:decode(tt,j);rt[et]=it};case"bracket-separator":return(et,tt,rt)=>{const nt=/(\[])$/.test(et);if(et=et.replace(/\[]$/,""),!nt){rt[et]=tt&&decode(tt,j);return}const ot=tt===null?[]:tt.split(j.arrayFormatSeparator).map(it=>decode(it,j));if(rt[et]===void 0){rt[et]=ot;return}rt[et]=[...rt[et],...ot]};default:return(et,tt,rt)=>{if(rt[et]===void 0){rt[et]=tt;return}rt[et]=[...[rt[et]].flat(),tt]}}}function validateArrayFormatSeparator(j){if(typeof j!="string"||j.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(j,_e){return _e.encode?_e.strict?strictUriEncode(j):encodeURIComponent(j):j}function decode(j,_e){return _e.decode?decodeUriComponent(j):j}function keysSorter(j){return Array.isArray(j)?j.sort():typeof j=="object"?keysSorter(Object.keys(j)).sort((_e,et)=>Number(_e)-Number(et)).map(_e=>j[_e]):j}function removeHash(j){const _e=j.indexOf("#");return _e!==-1&&(j=j.slice(0,_e)),j}function getHash(j){let _e="";const et=j.indexOf("#");return et!==-1&&(_e=j.slice(et)),_e}function parseValue(j,_e){return _e.parseNumbers&&!Number.isNaN(Number(j))&&typeof j=="string"&&j.trim()!==""?j=Number(j):_e.parseBooleans&&j!==null&&(j.toLowerCase()==="true"||j.toLowerCase()==="false")&&(j=j.toLowerCase()==="true"),j}function extract(j){j=removeHash(j);const _e=j.indexOf("?");return _e===-1?"":j.slice(_e+1)}function parse(j,_e){_e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,..._e},validateArrayFormatSeparator(_e.arrayFormatSeparator);const et=parserForArrayFormat(_e),tt=Object.create(null);if(typeof j!="string"||(j=j.trim().replace(/^[?#&]/,""),!j))return tt;for(const rt of j.split("&")){if(rt==="")continue;const nt=_e.decode?rt.replaceAll("+"," "):rt;let[ot,it]=splitOnFirst(nt,"=");ot===void 0&&(ot=nt),it=it===void 0?null:["comma","separator","bracket-separator"].includes(_e.arrayFormat)?it:decode(it,_e),et(decode(ot,_e),it,tt)}for(const[rt,nt]of Object.entries(tt))if(typeof nt=="object"&&nt!==null)for(const[ot,it]of Object.entries(nt))nt[ot]=parseValue(it,_e);else tt[rt]=parseValue(nt,_e);return _e.sort===!1?tt:(_e.sort===!0?Object.keys(tt).sort():Object.keys(tt).sort(_e.sort)).reduce((rt,nt)=>{const ot=tt[nt];return rt[nt]=ot&&typeof ot=="object"&&!Array.isArray(ot)?keysSorter(ot):ot,rt},Object.create(null))}function stringify(j,_e){if(!j)return"";_e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",..._e},validateArrayFormatSeparator(_e.arrayFormatSeparator);const et=ot=>_e.skipNull&&isNullOrUndefined(j[ot])||_e.skipEmptyString&&j[ot]==="",tt=encoderForArrayFormat(_e),rt={};for(const[ot,it]of Object.entries(j))et(ot)||(rt[ot]=it);const nt=Object.keys(rt);return _e.sort!==!1&&nt.sort(_e.sort),nt.map(ot=>{const it=j[ot];return it===void 0?"":it===null?encode(ot,_e):Array.isArray(it)?it.length===0&&_e.arrayFormat==="bracket-separator"?encode(ot,_e)+"[]":it.reduce(tt(ot),[]).join("&"):encode(ot,_e)+"="+encode(it,_e)}).filter(ot=>ot.length>0).join("&")}function parseUrl(j,_e){var rt;_e={decode:!0,..._e};let[et,tt]=splitOnFirst(j,"#");return et===void 0&&(et=j),{url:((rt=et==null?void 0:et.split("?"))==null?void 0:rt[0])??"",query:parse(extract(j),_e),..._e&&_e.parseFragmentIdentifier&&tt?{fragmentIdentifier:decode(tt,_e)}:{}}}function stringifyUrl(j,_e){_e={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,..._e};const et=removeHash(j.url).split("?")[0]||"",tt=extract(j.url),rt={...parse(tt,{sort:!1}),...j.query};let nt=stringify(rt,_e);nt&&(nt=`?${nt}`);let ot=getHash(j.url);if(typeof j.fragmentIdentifier=="string"){const it=new URL(et);it.hash=j.fragmentIdentifier,ot=_e[encodeFragmentIdentifier]?it.hash:`#${j.fragmentIdentifier}`}return`${et}${nt}${ot}`}function pick(j,_e,et){et={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...et};const{url:tt,query:rt,fragmentIdentifier:nt}=parseUrl(j,et);return stringifyUrl({url:tt,query:includeKeys(rt,_e),fragmentIdentifier:nt},et)}function exclude(j,_e,et){const tt=Array.isArray(_e)?rt=>!_e.includes(rt):(rt,nt)=>!_e(rt,nt);return pick(j,tt,et)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse,parseUrl,pick,stringify,stringifyUrl},Symbol.toStringTag,{value:"Module"}));function useHashObject(){const[j,_e]=reactExports.useState(()=>queryString.parse(window.location.hash.substring(1))),et=reactExports.useCallback(tt=>{_e(rt=>{const nt={...rt,...tt},ot=queryString.stringify(nt);return window.location.hash=ot,nt})},[]);return reactExports.useEffect(()=>{const tt=()=>{_e(queryString.parse(window.location.hash.substring(1)))};return window.addEventListener("hashchange",tt),()=>window.removeEventListener("hashchange",tt)},[]),[j,et]}function genLocalUrlParamsWithHash(j){return isNotNullOrUndefined(j)?isNotNullOrUndefined(j.session)?`session=${j.session}`:isNotNullOrUndefined(j.experiment)?`experiment=${j.experiment}`:isNotNullOrUndefined(j.run)?`run=${j.run}`:isNotNullOrUndefined(j.trace)?`trace_ids=${j.trace}`:"":""}function isNotNullOrUndefined(j){return j!=null}const getSummariesSignature=j=>j.flatMap(tt=>[`${tt.line_run_id}_${tt.status}`,...Object.values(tt.evaluations??[]).map(rt=>`${rt.trace_id}_${rt.status}`)]).sort().join(","),useLocalFetchSummaries=(j,_e,et)=>{const[tt,rt]=reactExports.useState(!0),nt=useLocalFetchSummariesFunc(j,_e);reactExports.useEffect(()=>{tt&&j.setTraceListStatus(ViewStatus.loading),nt().finally(()=>{tt&&(rt(!1),j.setTraceListStatus(ViewStatus.loaded))});let ot;return et&&(ot=setInterval(nt,TRACE_POLLING_GAP)),()=>{ot&&clearInterval(ot)}},[_e,et])},useLocalFetchSummary=j=>reactExports.useCallback(async et=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list?trace_ids=${et}`).then(tt=>tt.json()).then(tt=>{tt&&(j.appendTraces([tt]),j.setTraceListStatus(ViewStatus.loaded))}).catch(tt=>{j.setTraceListStatus(ViewStatus.error),j.appendTraces([]),console.error("Error:",tt)}),[j]),useLocalFetchSummariesFunc=(j,_e)=>{const[et,tt]=reactExports.useState(void 0);return async()=>{const nt=genLocalUrlParamsWithHash(_e),ot=nt!==""?`?${nt}`:"";return fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list${ot}`).then(it=>it.json()).then(it=>{if(!it&&Array.isArray(it))throw new Error("No new traces");const st=getSummariesSignature(it);(et===void 0||st!==et)&&(tt(st),j.traces$.clear(),j.appendTraces(it))}).catch(it=>{j.setTraceListStatus(ViewStatus.error),j.appendTraces([]),console.error("Error:",it)})}},useLocalRefreshTraces=(j,_e)=>{const et=useLocalFetchSummariesFunc(j,_e);return reactExports.useCallback(()=>{j.setTraceListStatus(ViewStatus.loading),et().then(()=>{j.setTraceListStatus(ViewStatus.loaded)})},[et,j])},useLocalTraceDetailDidOpen=(j,_e)=>{const et=useLocalFetchSummary(j);return reactExports.useCallback(async rt=>{if(!rt)return;let nt=j.getTraceById(rt);nt||(await et(rt),nt=j.getTraceById(rt));const ot=[rt,...Object.values((nt==null?void 0:nt.evaluations)??[]).map(it=>it.trace_id)].filter(it=>it!==void 0);_e({uiTraceId:rt}),j.setTraceDetailStatus(ViewStatus.loading),fetchLocalSpans(ot,j)},[j])},useLocalOnTraceDetailClose=j=>reactExports.useCallback(()=>{j({uiTraceId:void 0})},[j]),fetchLocalSpans=(j,_e)=>{fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/list?trace_ids=${j.join(",")}`).then(et=>et.json()).then(et=>{_e.appendSpans(et),_e.setTraceDetailStatus(ViewStatus.loaded)}).catch(et=>{console.error("Error:",et),_e.setTraceDetailStatus(ViewStatus.error)})},useLocalOnRefreshSpans=j=>{const _e=useLocalFetchSummary(j);return reactExports.useCallback((tt,rt)=>{const nt=[tt,...Object.values((rt==null?void 0:rt.evaluations)??[]).map(ot=>ot.trace_id)].filter(ot=>ot!==void 0);_e(tt),fetchLocalSpans(nt,j)},[_e,j])},LocalCommonHeader=({isStreaming:j,onIsStreamingChange:_e,streamLabelName:et,showRefresh:tt=!1})=>{const rt=useClasses$2(),nt=useLocStrings(),ot=useTraceViewModel();return jsxRuntimeExports.jsxs("div",{className:rt.wrapper,children:[jsxRuntimeExports.jsx("div",{className:rt.main}),tt&&jsxRuntimeExports.jsx(Tooltip$1,{content:nt["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>ot.refreshTraces()})}),jsxRuntimeExports.jsx(StreamSwitcher,{isStreaming:j,onIsStreamingChange:_e,labelName:et})]})},useClasses$2=makeStyles({wrapper:{display:"flex",...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalL)},main:{...shorthands.flex(1)}}),LocalTraceView=j=>{const{viewModel:_e,isDark:et}=j;return jsxRuntimeExports.jsx(TraceViewWrapper,{viewModel:_e,isDark:et,children:jsxRuntimeExports.jsx(TraceViewContent,{...j})})},TraceViewContent=({viewModel:j,isStreaming:_e,onIsStreamingChange:et})=>{const tt=useClasses$1(),rt=useIsTraceDetailOpen(),nt=useSetIsTraceDetailOpen(),[ot,it]=React.useState(!1),[st,lt]=React.useState(!1),ut=useSelectedTrace(),ct=useLocalFetchSummary(j);return reactExports.useEffect(()=>{let dt;return ot&&rt&&ut&&st&&(dt=setInterval(()=>{const ft=[ut==null?void 0:ut.trace_id,...Object.values((ut==null?void 0:ut.evaluations)??[]).map(pt=>pt.trace_id)].filter(pt=>pt!==void 0);fetchLocalSpans(ft,j),ut.trace_id&&ct(ut.trace_id)},SPAN_POLLING_GAP)),()=>{dt&&clearInterval(dt)}},[st,ut,rt,j,ot,ct]),reactExports.useEffect(()=>{rt&&ut&&(checkStatus(ut.status,"Running")?it(!0):it(!1))},[ct,rt,ut]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:tt.wrapper,children:[jsxRuntimeExports.jsx(LocalCommonHeader,{isStreaming:_e,onIsStreamingChange:et,showRefresh:!0}),jsxRuntimeExports.jsx(TraceFilter,{}),jsxRuntimeExports.jsx(TraceList,{className:tt.grid,onRowClick:()=>{nt(!0)}})]}),jsxRuntimeExports.jsx(DefaultDetailContainer,{isOpen:rt,setIsOpen:nt,header:jsxRuntimeExports.jsx(DefaultDetailHeader,{setIsTraceDetailOpen:nt,viewModel:j,showStreamSwitch:ot,isStreaming:st,onIsStreamingChange:lt}),content:jsxRuntimeExports.jsx(TraceDetail,{})})]})},useClasses$1=makeStyles({header:{display:"flex",width:"100%"},wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});var define_import_meta_env_default={BASE_URL:"/v1.0/ui/traces/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};window.TraceView_Version=define_import_meta_env_default.VITE_TRACE_VIEW_BUILD_VERSION;const TraceViewApp=()=>{const[j,_e]=useHashObject(),[et,tt]=reactExports.useState(!1),rt=useClasses(),nt=useDarkMode(),ot=React.useMemo(()=>new TraceViewModel,[]),it=useLocalTraceDetailDidOpen(ot,_e),st=useLocalOnTraceDetailClose(_e),lt=useLocalRefreshTraces(ot,j),ut=useLocalOnRefreshSpans(ot);return useLocalFetchSummaries(ot,j,et),reactExports.useEffect(()=>{ot.traceDetailDidOpen(it),ot.traceDetailDidClose(st),ot.setOnRefreshTraces(lt),ot.onRefreshSpans(ut),isNotNullOrUndefined(j.uiTraceId)&&ot.setTraceDetailOpen(!0,j.uiTraceId)},[ot,j.uiTraceId]),jsxRuntimeExports.jsxs(FluentProvider,{theme:nt?webDarkTheme:webLightTheme,style:{height:"100%",width:"100%"},children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:` - html, - body { - height: 100%; - width: 100%; - padding: 0; - margin: 0; - box-sizing: border-box; - overflow: hidden; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", - "Droid Sans", "Helvetica Neue", sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - } - - #root { - height: 100%; - width: 100%; - display: flex; - } - `}}),jsxRuntimeExports.jsx("div",{className:rt.wrapper,children:jsxRuntimeExports.jsx(LocalTraceView,{viewModel:ot,isDark:nt,isStreaming:et,onIsStreamingChange:ct=>{tt(ct)}})})]})},useClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(TraceViewApp,{}))});export default US(); diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-ofpZV8_l.js b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-ofpZV8_l.js new file mode 100644 index 00000000000..48e0d9e6c65 --- /dev/null +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index-ofpZV8_l.js @@ -0,0 +1,1870 @@ +(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@layer rdg.MeasuringCell{.m1l09lto7-0-0-beta-39{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.c1wupbe7-0-0-beta-39{position:relative;padding-block:0;padding-inline:8px;border-inline-end:1px solid var(--rdg-border-color);border-block-end:1px solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.c1wupbe7-0-0-beta-39[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.Cell{.cd0kgiy7-0-0-beta-39{position:sticky;z-index:1}}@layer rdg.Cell{.c1730fa47-0-0-beta-39{box-shadow:calc(2px * var(--rdg-sign)) 0 5px -2px #8888884d}}@layer rdg.CheckboxLabel{.c1hs68w07-0-0-beta-39{cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;margin-inline-end:1px}}@layer rdg.CheckboxInput{.cojpd0n7-0-0-beta-39{all:unset}}@layer rdg.CheckboxIcon{.cwsfieb7-0-0-beta-39{content:"";inline-size:20px;block-size:20px;border:2px solid var(--rdg-border-color);background-color:var(--rdg-background-color)}.cojpd0n7-0-0-beta-39:checked+.cwsfieb7-0-0-beta-39{background-color:var(--rdg-checkbox-color);outline:4px solid var(--rdg-background-color);outline-offset:-6px}.cojpd0n7-0-0-beta-39:focus+.cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-focus-color)}}@layer rdg.CheckboxLabel{.c1fgadbl7-0-0-beta-39{cursor:default}.c1fgadbl7-0-0-beta-39 .cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-disabled-border-color);background-color:var(--rdg-checkbox-disabled-background-color)}}@layer rdg.GroupCellContent{.g1w3c5217-0-0-beta-39{outline:none}}@layer rdg.GroupCellCaret{.cm5tyhw7-0-0-beta-39{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cm5tyhw7-0-0-beta-39>path{transition:d .1s}}@layer rdg.DragHandle{.cadd3bp7-0-0-beta-39{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.cadd3bp7-0-0-beta-39:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.ccmuez27-0-0-beta-39{z-index:1;position:sticky}}@layer rdg.EditCell{.c1tngyp17-0-0-beta-39{padding:0}}@layer rdg.SortableHeaderCell{.hizp7y17-0-0-beta-39{display:flex}}@layer rdg.SortableHeaderCellName{.h14cojrm7-0-0-beta-39{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.HeaderCell{.celq7o97-0-0-beta-39{cursor:pointer}}@layer rdg.HeaderCell{.ceqw94e7-0-0-beta-39{touch-action:none}}@layer rdg.HeaderCell{.r12jy2ca7-0-0-beta-39{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}.c1j3os1p7-0-0-beta-39{opacity:.5}.c1ui3nad7-0-0-beta-39{background-color:var(--rdg-header-draggable-background-color)}@layer rdg.Row{.r1otpg647-0-0-beta-39{display:contents;line-height:var(--rdg-row-height);background-color:var(--rdg-background-color)}.r1otpg647-0-0-beta-39:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.rel5gk27-0-0-beta-39{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r1qymf1z7-0-0-beta-39:before{content:"";display:inline-block;height:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h197vzie7-0-0-beta-39{display:contents;line-height:var(--rdg-header-row-height);background-color:var(--rdg-header-background-color);font-weight:700}.h197vzie7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2;position:sticky}.h197vzie7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.Cell{.ccpfvsn7-0-0-beta-39{background-color:#ccf}}@layer rdg.Cell{.c1bmg16t7-0-0-beta-39{background-color:#ccf}.c1bmg16t7-0-0-beta-39.ccpfvsn7-0-0-beta-39{background-color:#99f}}@layer rdg.SortIcon{.a1mygwml7-0-0-beta-39{fill:currentColor}.a1mygwml7-0-0-beta-39>path{transition:d .1s}}@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;@layer Defaults{.r104f42s7-0-0-beta-39 *,.r104f42s7-0-0-beta-39 *:before,.r104f42s7-0-0-beta-39 *:after{box-sizing:inherit}}@layer Root{.r104f42s7-0-0-beta-39{--rdg-color: #000;--rdg-border-color: #ddd;--rdg-summary-border-color: #aaa;--rdg-background-color: hsl(0deg 0% 100%);--rdg-header-background-color: hsl(0deg 0% 97.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 90.5%);--rdg-row-hover-background-color: hsl(0deg 0% 96%);--rdg-row-selected-background-color: hsl(207deg 76% 92%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);--rdg-checkbox-color: hsl(207deg 100% 29%);--rdg-checkbox-focus-color: hsl(207deg 100% 69%);--rdg-checkbox-disabled-border-color: #ccc;--rdg-checkbox-disabled-background-color: #ddd;--rdg-selection-color: #66afe9;--rdg-font-size: 14px;display:grid;color-scheme:var(--rdg-color-scheme, light dark);contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.r104f42s7-0-0-beta-39:before{content:"";grid-column:1/-1;grid-row:1/-1}.r104f42s7-0-0-beta-39.rdg-dark{--rdg-color-scheme: dark;--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}.r104f42s7-0-0-beta-39.rdg-light{--rdg-color-scheme: light}@media (prefers-color-scheme: dark){.r104f42s7-0-0-beta-39:not(.rdg-light){--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}}}}@layer rdg.Root{.v7ly7s7-0-0-beta-39{-webkit-user-select:none;user-select:none}.v7ly7s7-0-0-beta-39 .r1otpg647-0-0-beta-39{cursor:move}}@layer rdg.FocusSink{.fc4f4zb7-0-0-beta-39{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.fq51q037-0-0-beta-39{z-index:3}}@layer rdg.SummaryCell{.s1n3hxke7-0-0-beta-39{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.snfqesz7-0-0-beta-39{line-height:var(--rdg-summary-row-height)}.snfqesz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{position:sticky}}@layer rdg.SummaryRow{.t1jijrjz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2}.t1jijrjz7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.SummaryRow{.t14bmecc7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-end:2px solid var(--rdg-summary-border-color)}}@layer rdg.SummaryRow{.b1odhhml7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-start:2px solid var(--rdg-summary-border-color)}}@layer rdg.GroupedRow{.gyxx7e97-0-0-beta-39:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e97-0-0-beta-39>.c1wupbe7-0-0-beta-39:not(:last-child):not(.c1730fa47-0-0-beta-39){border-inline-end:none}}@layer rdg.TextEditor{.tlmcuo07-0-0-beta-39{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.tlmcuo07-0-0-beta-39:focus{border-color:var(--rdg-selection-color);outline:none}.tlmcuo07-0-0-beta-39::placeholder{color:#999;opacity:1}}.json-view{display:block;color:#4d4d4d;text-align:left;--json-property: #009033;--json-index: #676dff;--json-number: #676dff;--json-string: #b2762e;--json-boolean: #dc155e;--json-null: #dc155e}.json-view .json-view--property{color:var(--json-property)}.json-view .json-view--index{color:var(--json-index)}.json-view .json-view--number{color:var(--json-number)}.json-view .json-view--string{color:var(--json-string)}.json-view .json-view--boolean{color:var(--json-boolean)}.json-view .json-view--null{color:var(--json-null)}.json-view .jv-indent{padding-left:1em}.json-view .jv-chevron{display:inline-block;vertical-align:-20%;cursor:pointer;opacity:.4;width:1em;height:1em}:is(.json-view .jv-chevron:hover,.json-view .jv-size:hover+.jv-chevron){opacity:.8}.json-view .jv-size{cursor:pointer;opacity:.4;font-size:.875em;font-style:italic;margin-left:.5em;vertical-align:-5%;line-height:1}.json-view :is(.json-view--copy,.json-view--edit),.json-view .json-view--link svg{display:none;width:1em;height:1em;margin-left:.25em;cursor:pointer}.json-view .json-view--input{width:120px;margin-left:.25em;border-radius:4px;border:1px solid currentColor;padding:0 4px;font-size:87.5%;line-height:1.25;background:transparent}.json-view .json-view--deleting{outline:1px solid #da0000;background-color:#da000011;text-decoration-line:line-through}:is(.json-view:hover,.json-view--pair:hover)>:is(.json-view--copy,.json-view--edit),:is(.json-view:hover,.json-view--pair:hover)>.json-view--link svg{display:inline-block}.json-view .jv-button{background:transparent;outline:none;border:none;cursor:pointer;color:inherit}.json-view .cursor-pointer{cursor:pointer}.json-view svg{vertical-align:-10%}.jv-size-chevron~svg{vertical-align:-16%}.json-view_a11y{color:#545454;--json-property: #aa5d00;--json-index: #007299;--json-number: #007299;--json-string: #008000;--json-boolean: #d91e18;--json-null: #d91e18}.json-view_github{color:#005cc5;--json-property: #005cc5;--json-index: #005cc5;--json-number: #005cc5;--json-string: #032f62;--json-boolean: #005cc5;--json-null: #005cc5}.json-view_vscode{color:#005cc5;--json-property: #0451a5;--json-index: #0000ff;--json-number: #0000ff;--json-string: #a31515;--json-boolean: #0000ff;--json-null: #0000ff}.json-view_atom{color:#383a42;--json-property: #e45649;--json-index: #986801;--json-number: #986801;--json-string: #50a14f;--json-boolean: #0184bc;--json-null: #0184bc}.json-view_winter-is-coming{color:#0431fa;--json-property: #3a9685;--json-index: #ae408b;--json-number: #ae408b;--json-string: #8123a9;--json-boolean: #0184bc;--json-null: #0184bc}:is(.dark .json-view,.dark.json-view){color:#d1d1d1;--json-property: #009033;--json-index: #5d75f2;--json-number: #5d75f2;--json-string: #c57e29;--json-boolean: #e4407b;--json-null: #e4407b}:is(.dark .json-view_a11y,.dark.json-view_a11y){color:#d1d1d1;--json-property: #ffd700;--json-index: #00e0e0;--json-number: #00e0e0;--json-string: #abe338;--json-boolean: #ffa07a;--json-null: #ffa07a}:is(.dark .json-view_github,.dark.json-view_github){color:#79b8ff;--json-property: #79b8ff;--json-index: #79b8ff;--json-number: #79b8ff;--json-string: #9ecbff;--json-boolean: #79b8ff;--json-null: #79b8ff}:is(.dark .json-view_vscode,.dark.json-view_vscode){color:orchid;--json-property: #9cdcfe;--json-index: #b5cea8;--json-number: #b5cea8;--json-string: #ce9178;--json-boolean: #569cd6;--json-null: #569cd6}:is(.dark .json-view_atom,.dark.json-view_atom){color:#abb2bf;--json-property: #e06c75;--json-index: #d19a66;--json-number: #d19a66;--json-string: #98c379;--json-boolean: #56b6c2;--json-null: #56b6c2}:is(.dark .json-view_winter-is-coming,.dark.json-view_winter-is-coming){color:#a7dbf7;--json-property: #91dacd;--json-index: #8dec95;--json-number: #8dec95;--json-string: #e0aff5;--json-boolean: #f29fd8;--json-null: #f29fd8}.json-view .json-view--string{word-break:break-all}.llm-variable-highlight{color:var(--colorPaletteGreenForeground1)!important}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); +var VA=Object.defineProperty;var qA=(eo,to,ro)=>to in eo?VA(eo,to,{enumerable:!0,configurable:!0,writable:!0,value:ro}):eo[to]=ro;var WA=(eo,to)=>()=>(to||eo((to={exports:{}}).exports,to),to.exports);var Ws=(eo,to,ro)=>(qA(eo,typeof to!="symbol"?to+"":to,ro),ro);var KA=WA((exports,module)=>{function _mergeNamespaces(eo,to){for(var ro=0;rono[oo]})}}}return Object.freeze(Object.defineProperty(eo,Symbol.toStringTag,{value:"Module"}))}(function(){const to=document.createElement("link").relList;if(to&&to.supports&&to.supports("modulepreload"))return;for(const oo of document.querySelectorAll('link[rel="modulepreload"]'))no(oo);new MutationObserver(oo=>{for(const io of oo)if(io.type==="childList")for(const so of io.addedNodes)so.tagName==="LINK"&&so.rel==="modulepreload"&&no(so)}).observe(document,{childList:!0,subtree:!0});function ro(oo){const io={};return oo.integrity&&(io.integrity=oo.integrity),oo.referrerPolicy&&(io.referrerPolicy=oo.referrerPolicy),oo.crossOrigin==="use-credentials"?io.credentials="include":oo.crossOrigin==="anonymous"?io.credentials="omit":io.credentials="same-origin",io}function no(oo){if(oo.ep)return;oo.ep=!0;const io=ro(oo);fetch(oo.href,io)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(eo){return eo&&eo.__esModule&&Object.prototype.hasOwnProperty.call(eo,"default")?eo.default:eo}var jsxRuntime$1={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var l$9=Symbol.for("react.element"),n$8=Symbol.for("react.portal"),p$b=Symbol.for("react.fragment"),q$5=Symbol.for("react.strict_mode"),r$6=Symbol.for("react.profiler"),t$8=Symbol.for("react.provider"),u$7=Symbol.for("react.context"),v$8=Symbol.for("react.forward_ref"),w$6=Symbol.for("react.suspense"),x$8=Symbol.for("react.memo"),y$7=Symbol.for("react.lazy"),z$5=Symbol.iterator;function A$7(eo){return eo===null||typeof eo!="object"?null:(eo=z$5&&eo[z$5]||eo["@@iterator"],typeof eo=="function"?eo:null)}var B$4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$6=Object.assign,D$5={};function E$6(eo,to,ro){this.props=eo,this.context=to,this.refs=D$5,this.updater=ro||B$4}E$6.prototype.isReactComponent={};E$6.prototype.setState=function(eo,to){if(typeof eo!="object"&&typeof eo!="function"&&eo!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,eo,to,"setState")};E$6.prototype.forceUpdate=function(eo){this.updater.enqueueForceUpdate(this,eo,"forceUpdate")};function F$2(){}F$2.prototype=E$6.prototype;function G$2(eo,to,ro){this.props=eo,this.context=to,this.refs=D$5,this.updater=ro||B$4}var H$4=G$2.prototype=new F$2;H$4.constructor=G$2;C$6(H$4,E$6.prototype);H$4.isPureReactComponent=!0;var I$3=Array.isArray,J$1=Object.prototype.hasOwnProperty,K$4={current:null},L$4={key:!0,ref:!0,__self:!0,__source:!0};function M$5(eo,to,ro){var no,oo={},io=null,so=null;if(to!=null)for(no in to.ref!==void 0&&(so=to.ref),to.key!==void 0&&(io=""+to.key),to)J$1.call(to,no)&&!L$4.hasOwnProperty(no)&&(oo[no]=to[no]);var ao=arguments.length-2;if(ao===1)oo.children=ro;else if(1>>1,Qo=Go[Zo];if(0>>1;Zooo(Rs,Xo))Osoo(As,Rs)?(Go[Zo]=As,Go[Os]=Xo,Zo=Os):(Go[Zo]=Rs,Go[Ts]=Xo,Zo=Ts);else if(Osoo(As,Xo))Go[Zo]=As,Go[Os]=Xo,Zo=Os;else break e}}return qo}function oo(Go,qo){var Xo=Go.sortIndex-qo.sortIndex;return Xo!==0?Xo:Go.id-qo.id}if(typeof performance=="object"&&typeof performance.now=="function"){var io=performance;eo.unstable_now=function(){return io.now()}}else{var so=Date,ao=so.now();eo.unstable_now=function(){return so.now()-ao}}var lo=[],uo=[],co=1,fo=null,po=3,ho=!1,mo=!1,vo=!1,bo=typeof setTimeout=="function"?setTimeout:null,xo=typeof clearTimeout=="function"?clearTimeout:null,_o=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function So(Go){for(var qo=ro(uo);qo!==null;){if(qo.callback===null)no(uo);else if(qo.startTime<=Go)no(uo),qo.sortIndex=qo.expirationTime,to(lo,qo);else break;qo=ro(uo)}}function Eo(Go){if(vo=!1,So(Go),!mo)if(ro(lo)!==null)mo=!0,Oo(ko);else{var qo=ro(uo);qo!==null&&Fo(Eo,qo.startTime-Go)}}function ko(Go,qo){mo=!1,vo&&(vo=!1,xo(Ro),Ro=-1),ho=!0;var Xo=po;try{for(So(qo),fo=ro(lo);fo!==null&&(!(fo.expirationTime>qo)||Go&&!$o());){var Zo=fo.callback;if(typeof Zo=="function"){fo.callback=null,po=fo.priorityLevel;var Qo=Zo(fo.expirationTime<=qo);qo=eo.unstable_now(),typeof Qo=="function"?fo.callback=Qo:fo===ro(lo)&&no(lo),So(qo)}else no(lo);fo=ro(lo)}if(fo!==null)var xs=!0;else{var Ts=ro(uo);Ts!==null&&Fo(Eo,Ts.startTime-qo),xs=!1}return xs}finally{fo=null,po=Xo,ho=!1}}var wo=!1,Co=null,Ro=-1,Ao=5,Io=-1;function $o(){return!(eo.unstable_now()-IoGo||125Zo?(Go.sortIndex=Xo,to(uo,Go),ro(lo)===null&&Go===ro(uo)&&(vo?(xo(Ro),Ro=-1):vo=!0,Fo(Eo,Xo-Zo))):(Go.sortIndex=Qo,to(lo,Go),mo||ho||(mo=!0,Oo(ko))),Go},eo.unstable_shouldYield=$o,eo.unstable_wrapCallback=function(Go){var qo=po;return function(){var Xo=po;po=qo;try{return Go.apply(this,arguments)}finally{po=Xo}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var aa=reactExports,ca=schedulerExports;function p$9(eo){for(var to="https://reactjs.org/docs/error-decoder.html?invariant="+eo,ro=1;ro"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(eo){return ja.call(ma,eo)?!0:ja.call(la,eo)?!1:ka.test(eo)?ma[eo]=!0:(la[eo]=!0,!1)}function pa(eo,to,ro,no){if(ro!==null&&ro.type===0)return!1;switch(typeof to){case"function":case"symbol":return!0;case"boolean":return no?!1:ro!==null?!ro.acceptsBooleans:(eo=eo.toLowerCase().slice(0,5),eo!=="data-"&&eo!=="aria-");default:return!1}}function qa(eo,to,ro,no){if(to===null||typeof to>"u"||pa(eo,to,ro,no))return!0;if(no)return!1;if(ro!==null)switch(ro.type){case 3:return!to;case 4:return to===!1;case 5:return isNaN(to);case 6:return isNaN(to)||1>to}return!1}function v$7(eo,to,ro,no,oo,io,so){this.acceptsBooleans=to===2||to===3||to===4,this.attributeName=no,this.attributeNamespace=oo,this.mustUseProperty=ro,this.propertyName=eo,this.type=to,this.sanitizeURL=io,this.removeEmptyString=so}var z$4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(eo){z$4[eo]=new v$7(eo,0,!1,eo,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(eo){var to=eo[0];z$4[to]=new v$7(to,1,!1,eo[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(eo){z$4[eo]=new v$7(eo,2,!1,eo.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(eo){z$4[eo]=new v$7(eo,2,!1,eo,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(eo){z$4[eo]=new v$7(eo,3,!1,eo.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(eo){z$4[eo]=new v$7(eo,3,!0,eo,null,!1,!1)});["capture","download"].forEach(function(eo){z$4[eo]=new v$7(eo,4,!1,eo,null,!1,!1)});["cols","rows","size","span"].forEach(function(eo){z$4[eo]=new v$7(eo,6,!1,eo,null,!1,!1)});["rowSpan","start"].forEach(function(eo){z$4[eo]=new v$7(eo,5,!1,eo.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(eo){return eo[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(eo){var to=eo.replace(ra,sa);z$4[to]=new v$7(to,1,!1,eo,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(eo){z$4[eo]=new v$7(eo,1,!1,eo.toLowerCase(),null,!1,!1)});z$4.xlinkHref=new v$7("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(eo){z$4[eo]=new v$7(eo,1,!1,eo.toLowerCase(),null,!0,!0)});function ta(eo,to,ro,no){var oo=z$4.hasOwnProperty(to)?z$4[to]:null;(oo!==null?oo.type!==0:no||!(2ao||oo[so]!==io[ao]){var lo=` +`+oo[so].replace(" at new "," at ");return eo.displayName&&lo.includes("")&&(lo=lo.replace("",eo.displayName)),lo}while(1<=so&&0<=ao);break}}}finally{Na=!1,Error.prepareStackTrace=ro}return(eo=eo?eo.displayName||eo.name:"")?Ma(eo):""}function Pa(eo){switch(eo.tag){case 5:return Ma(eo.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return eo=Oa(eo.type,!1),eo;case 11:return eo=Oa(eo.type.render,!1),eo;case 1:return eo=Oa(eo.type,!0),eo;default:return""}}function Qa(eo){if(eo==null)return null;if(typeof eo=="function")return eo.displayName||eo.name||null;if(typeof eo=="string")return eo;switch(eo){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof eo=="object")switch(eo.$$typeof){case Ca:return(eo.displayName||"Context")+".Consumer";case Ba:return(eo._context.displayName||"Context")+".Provider";case Da:var to=eo.render;return eo=eo.displayName,eo||(eo=to.displayName||to.name||"",eo=eo!==""?"ForwardRef("+eo+")":"ForwardRef"),eo;case Ga:return to=eo.displayName||null,to!==null?to:Qa(eo.type)||"Memo";case Ha:to=eo._payload,eo=eo._init;try{return Qa(eo(to))}catch{}}return null}function Ra(eo){var to=eo.type;switch(eo.tag){case 24:return"Cache";case 9:return(to.displayName||"Context")+".Consumer";case 10:return(to._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return eo=to.render,eo=eo.displayName||eo.name||"",to.displayName||(eo!==""?"ForwardRef("+eo+")":"ForwardRef");case 7:return"Fragment";case 5:return to;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(to);case 8:return to===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof to=="function")return to.displayName||to.name||null;if(typeof to=="string")return to}return null}function Sa(eo){switch(typeof eo){case"boolean":case"number":case"string":case"undefined":return eo;case"object":return eo;default:return""}}function Ta(eo){var to=eo.type;return(eo=eo.nodeName)&&eo.toLowerCase()==="input"&&(to==="checkbox"||to==="radio")}function Ua(eo){var to=Ta(eo)?"checked":"value",ro=Object.getOwnPropertyDescriptor(eo.constructor.prototype,to),no=""+eo[to];if(!eo.hasOwnProperty(to)&&typeof ro<"u"&&typeof ro.get=="function"&&typeof ro.set=="function"){var oo=ro.get,io=ro.set;return Object.defineProperty(eo,to,{configurable:!0,get:function(){return oo.call(this)},set:function(so){no=""+so,io.call(this,so)}}),Object.defineProperty(eo,to,{enumerable:ro.enumerable}),{getValue:function(){return no},setValue:function(so){no=""+so},stopTracking:function(){eo._valueTracker=null,delete eo[to]}}}}function Va(eo){eo._valueTracker||(eo._valueTracker=Ua(eo))}function Wa(eo){if(!eo)return!1;var to=eo._valueTracker;if(!to)return!0;var ro=to.getValue(),no="";return eo&&(no=Ta(eo)?eo.checked?"true":"false":eo.value),eo=no,eo!==ro?(to.setValue(eo),!0):!1}function Xa(eo){if(eo=eo||(typeof document<"u"?document:void 0),typeof eo>"u")return null;try{return eo.activeElement||eo.body}catch{return eo.body}}function Ya(eo,to){var ro=to.checked;return A$6({},to,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:ro??eo._wrapperState.initialChecked})}function Za(eo,to){var ro=to.defaultValue==null?"":to.defaultValue,no=to.checked!=null?to.checked:to.defaultChecked;ro=Sa(to.value!=null?to.value:ro),eo._wrapperState={initialChecked:no,initialValue:ro,controlled:to.type==="checkbox"||to.type==="radio"?to.checked!=null:to.value!=null}}function ab(eo,to){to=to.checked,to!=null&&ta(eo,"checked",to,!1)}function bb(eo,to){ab(eo,to);var ro=Sa(to.value),no=to.type;if(ro!=null)no==="number"?(ro===0&&eo.value===""||eo.value!=ro)&&(eo.value=""+ro):eo.value!==""+ro&&(eo.value=""+ro);else if(no==="submit"||no==="reset"){eo.removeAttribute("value");return}to.hasOwnProperty("value")?cb(eo,to.type,ro):to.hasOwnProperty("defaultValue")&&cb(eo,to.type,Sa(to.defaultValue)),to.checked==null&&to.defaultChecked!=null&&(eo.defaultChecked=!!to.defaultChecked)}function db(eo,to,ro){if(to.hasOwnProperty("value")||to.hasOwnProperty("defaultValue")){var no=to.type;if(!(no!=="submit"&&no!=="reset"||to.value!==void 0&&to.value!==null))return;to=""+eo._wrapperState.initialValue,ro||to===eo.value||(eo.value=to),eo.defaultValue=to}ro=eo.name,ro!==""&&(eo.name=""),eo.defaultChecked=!!eo._wrapperState.initialChecked,ro!==""&&(eo.name=ro)}function cb(eo,to,ro){(to!=="number"||Xa(eo.ownerDocument)!==eo)&&(ro==null?eo.defaultValue=""+eo._wrapperState.initialValue:eo.defaultValue!==""+ro&&(eo.defaultValue=""+ro))}var eb=Array.isArray;function fb(eo,to,ro,no){if(eo=eo.options,to){to={};for(var oo=0;oo"+to.valueOf().toString()+"",to=mb.firstChild;eo.firstChild;)eo.removeChild(eo.firstChild);for(;to.firstChild;)eo.appendChild(to.firstChild)}});function ob(eo,to){if(to){var ro=eo.firstChild;if(ro&&ro===eo.lastChild&&ro.nodeType===3){ro.nodeValue=to;return}}eo.textContent=to}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(eo){qb.forEach(function(to){to=to+eo.charAt(0).toUpperCase()+eo.substring(1),pb[to]=pb[eo]})});function rb(eo,to,ro){return to==null||typeof to=="boolean"||to===""?"":ro||typeof to!="number"||to===0||pb.hasOwnProperty(eo)&&pb[eo]?(""+to).trim():to+"px"}function sb(eo,to){eo=eo.style;for(var ro in to)if(to.hasOwnProperty(ro)){var no=ro.indexOf("--")===0,oo=rb(ro,to[ro],no);ro==="float"&&(ro="cssFloat"),no?eo.setProperty(ro,oo):eo[ro]=oo}}var tb=A$6({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(eo,to){if(to){if(tb[eo]&&(to.children!=null||to.dangerouslySetInnerHTML!=null))throw Error(p$9(137,eo));if(to.dangerouslySetInnerHTML!=null){if(to.children!=null)throw Error(p$9(60));if(typeof to.dangerouslySetInnerHTML!="object"||!("__html"in to.dangerouslySetInnerHTML))throw Error(p$9(61))}if(to.style!=null&&typeof to.style!="object")throw Error(p$9(62))}}function vb(eo,to){if(eo.indexOf("-")===-1)return typeof to.is=="string";switch(eo){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(eo){return eo=eo.target||eo.srcElement||window,eo.correspondingUseElement&&(eo=eo.correspondingUseElement),eo.nodeType===3?eo.parentNode:eo}var yb=null,zb=null,Ab=null;function Bb(eo){if(eo=Cb(eo)){if(typeof yb!="function")throw Error(p$9(280));var to=eo.stateNode;to&&(to=Db(to),yb(eo.stateNode,eo.type,to))}}function Eb(eo){zb?Ab?Ab.push(eo):Ab=[eo]:zb=eo}function Fb(){if(zb){var eo=zb,to=Ab;if(Ab=zb=null,Bb(eo),to)for(eo=0;eo>>=0,eo===0?32:31-(pc(eo)/qc|0)|0}var rc=64,sc=4194304;function tc(eo){switch(eo&-eo){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return eo&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return eo&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return eo}}function uc(eo,to){var ro=eo.pendingLanes;if(ro===0)return 0;var no=0,oo=eo.suspendedLanes,io=eo.pingedLanes,so=ro&268435455;if(so!==0){var ao=so&~oo;ao!==0?no=tc(ao):(io&=so,io!==0&&(no=tc(io)))}else so=ro&~oo,so!==0?no=tc(so):io!==0&&(no=tc(io));if(no===0)return 0;if(to!==0&&to!==no&&!(to&oo)&&(oo=no&-no,io=to&-to,oo>=io||oo===16&&(io&4194240)!==0))return to;if(no&4&&(no|=ro&16),to=eo.entangledLanes,to!==0)for(eo=eo.entanglements,to&=no;0ro;ro++)to.push(eo);return to}function Ac(eo,to,ro){eo.pendingLanes|=to,to!==536870912&&(eo.suspendedLanes=0,eo.pingedLanes=0),eo=eo.eventTimes,to=31-oc(to),eo[to]=ro}function Bc(eo,to){var ro=eo.pendingLanes&~to;eo.pendingLanes=to,eo.suspendedLanes=0,eo.pingedLanes=0,eo.expiredLanes&=to,eo.mutableReadLanes&=to,eo.entangledLanes&=to,to=eo.entanglements;var no=eo.eventTimes;for(eo=eo.expirationTimes;0=be$2),ee$2=" ",fe$2=!1;function ge$1(eo,to){switch(eo){case"keyup":return $d.indexOf(to.keyCode)!==-1;case"keydown":return to.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$2(eo){return eo=eo.detail,typeof eo=="object"&&"data"in eo?eo.data:null}var ie$2=!1;function je$1(eo,to){switch(eo){case"compositionend":return he$2(to);case"keypress":return to.which!==32?null:(fe$2=!0,ee$2);case"textInput":return eo=to.data,eo===ee$2&&fe$2?null:eo;default:return null}}function ke$1(eo,to){if(ie$2)return eo==="compositionend"||!ae$2&&ge$1(eo,to)?(eo=nd(),md=ld=kd=null,ie$2=!1,eo):null;switch(eo){case"paste":return null;case"keypress":if(!(to.ctrlKey||to.altKey||to.metaKey)||to.ctrlKey&&to.altKey){if(to.char&&1=to)return{node:ro,offset:to-eo};eo=no}e:{for(;ro;){if(ro.nextSibling){ro=ro.nextSibling;break e}ro=ro.parentNode}ro=void 0}ro=Je$1(ro)}}function Le$1(eo,to){return eo&&to?eo===to?!0:eo&&eo.nodeType===3?!1:to&&to.nodeType===3?Le$1(eo,to.parentNode):"contains"in eo?eo.contains(to):eo.compareDocumentPosition?!!(eo.compareDocumentPosition(to)&16):!1:!1}function Me$2(){for(var eo=window,to=Xa();to instanceof eo.HTMLIFrameElement;){try{var ro=typeof to.contentWindow.location.href=="string"}catch{ro=!1}if(ro)eo=to.contentWindow;else break;to=Xa(eo.document)}return to}function Ne$1(eo){var to=eo&&eo.nodeName&&eo.nodeName.toLowerCase();return to&&(to==="input"&&(eo.type==="text"||eo.type==="search"||eo.type==="tel"||eo.type==="url"||eo.type==="password")||to==="textarea"||eo.contentEditable==="true")}function Oe$2(eo){var to=Me$2(),ro=eo.focusedElem,no=eo.selectionRange;if(to!==ro&&ro&&ro.ownerDocument&&Le$1(ro.ownerDocument.documentElement,ro)){if(no!==null&&Ne$1(ro)){if(to=no.start,eo=no.end,eo===void 0&&(eo=to),"selectionStart"in ro)ro.selectionStart=to,ro.selectionEnd=Math.min(eo,ro.value.length);else if(eo=(to=ro.ownerDocument||document)&&to.defaultView||window,eo.getSelection){eo=eo.getSelection();var oo=ro.textContent.length,io=Math.min(no.start,oo);no=no.end===void 0?io:Math.min(no.end,oo),!eo.extend&&io>no&&(oo=no,no=io,io=oo),oo=Ke$1(ro,io);var so=Ke$1(ro,no);oo&&so&&(eo.rangeCount!==1||eo.anchorNode!==oo.node||eo.anchorOffset!==oo.offset||eo.focusNode!==so.node||eo.focusOffset!==so.offset)&&(to=to.createRange(),to.setStart(oo.node,oo.offset),eo.removeAllRanges(),io>no?(eo.addRange(to),eo.extend(so.node,so.offset)):(to.setEnd(so.node,so.offset),eo.addRange(to)))}}for(to=[],eo=ro;eo=eo.parentNode;)eo.nodeType===1&&to.push({element:eo,left:eo.scrollLeft,top:eo.scrollTop});for(typeof ro.focus=="function"&&ro.focus(),ro=0;ro=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(eo,to,ro){var no=ro.window===ro?ro.document:ro.nodeType===9?ro:ro.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa(no)||(no=Qe$1,"selectionStart"in no&&Ne$1(no)?no={start:no.selectionStart,end:no.selectionEnd}:(no=(no.ownerDocument&&no.ownerDocument.defaultView||window).getSelection(),no={anchorNode:no.anchorNode,anchorOffset:no.anchorOffset,focusNode:no.focusNode,focusOffset:no.focusOffset}),Se$1&&Ie$1(Se$1,no)||(Se$1=no,no=oe$1(Re$1,"onSelect"),0Tf||(eo.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1(eo,to){Tf++,Sf[Tf]=eo.current,eo.current=to}var Vf={},H$3=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(eo,to){var ro=eo.type.contextTypes;if(!ro)return Vf;var no=eo.stateNode;if(no&&no.__reactInternalMemoizedUnmaskedChildContext===to)return no.__reactInternalMemoizedMaskedChildContext;var oo={},io;for(io in ro)oo[io]=to[io];return no&&(eo=eo.stateNode,eo.__reactInternalMemoizedUnmaskedChildContext=to,eo.__reactInternalMemoizedMaskedChildContext=oo),oo}function Zf(eo){return eo=eo.childContextTypes,eo!=null}function $f(){E$5(Wf),E$5(H$3)}function ag(eo,to,ro){if(H$3.current!==Vf)throw Error(p$9(168));G$1(H$3,to),G$1(Wf,ro)}function bg(eo,to,ro){var no=eo.stateNode;if(to=to.childContextTypes,typeof no.getChildContext!="function")return ro;no=no.getChildContext();for(var oo in no)if(!(oo in to))throw Error(p$9(108,Ra(eo)||"Unknown",oo));return A$6({},ro,no)}function cg(eo){return eo=(eo=eo.stateNode)&&eo.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$3.current,G$1(H$3,eo),G$1(Wf,Wf.current),!0}function dg(eo,to,ro){var no=eo.stateNode;if(!no)throw Error(p$9(169));ro?(eo=bg(eo,to,Xf),no.__reactInternalMemoizedMergedChildContext=eo,E$5(Wf),E$5(H$3),G$1(H$3,eo)):E$5(Wf),G$1(Wf,ro)}var eg=null,fg=!1,gg=!1;function hg(eo){eg===null?eg=[eo]:eg.push(eo)}function ig(eo){fg=!0,hg(eo)}function jg(){if(!gg&&eg!==null){gg=!0;var eo=0,to=C$5;try{var ro=eg;for(C$5=1;eo>=so,oo-=so,rg=1<<32-oc(to)+oo|ro<Ro?(Ao=Co,Co=null):Ao=Co.sibling;var Io=po(xo,Co,So[Ro],Eo);if(Io===null){Co===null&&(Co=Ao);break}eo&&Co&&Io.alternate===null&&to(xo,Co),_o=io(Io,_o,Ro),wo===null?ko=Io:wo.sibling=Io,wo=Io,Co=Ao}if(Ro===So.length)return ro(xo,Co),I$2&&tg(xo,Ro),ko;if(Co===null){for(;RoRo?(Ao=Co,Co=null):Ao=Co.sibling;var $o=po(xo,Co,Io.value,Eo);if($o===null){Co===null&&(Co=Ao);break}eo&&Co&&$o.alternate===null&&to(xo,Co),_o=io($o,_o,Ro),wo===null?ko=$o:wo.sibling=$o,wo=$o,Co=Ao}if(Io.done)return ro(xo,Co),I$2&&tg(xo,Ro),ko;if(Co===null){for(;!Io.done;Ro++,Io=So.next())Io=fo(xo,Io.value,Eo),Io!==null&&(_o=io(Io,_o,Ro),wo===null?ko=Io:wo.sibling=Io,wo=Io);return I$2&&tg(xo,Ro),ko}for(Co=no(xo,Co);!Io.done;Ro++,Io=So.next())Io=ho(Co,xo,Ro,Io.value,Eo),Io!==null&&(eo&&Io.alternate!==null&&Co.delete(Io.key===null?Ro:Io.key),_o=io(Io,_o,Ro),wo===null?ko=Io:wo.sibling=Io,wo=Io);return eo&&Co.forEach(function(Bo){return to(xo,Bo)}),I$2&&tg(xo,Ro),ko}function bo(xo,_o,So,Eo){if(typeof So=="object"&&So!==null&&So.type===ya&&So.key===null&&(So=So.props.children),typeof So=="object"&&So!==null){switch(So.$$typeof){case va:e:{for(var ko=So.key,wo=_o;wo!==null;){if(wo.key===ko){if(ko=So.type,ko===ya){if(wo.tag===7){ro(xo,wo.sibling),_o=oo(wo,So.props.children),_o.return=xo,xo=_o;break e}}else if(wo.elementType===ko||typeof ko=="object"&&ko!==null&&ko.$$typeof===Ha&&uh(ko)===wo.type){ro(xo,wo.sibling),_o=oo(wo,So.props),_o.ref=sh(xo,wo,So),_o.return=xo,xo=_o;break e}ro(xo,wo);break}else to(xo,wo);wo=wo.sibling}So.type===ya?(_o=Ah(So.props.children,xo.mode,Eo,So.key),_o.return=xo,xo=_o):(Eo=yh(So.type,So.key,So.props,null,xo.mode,Eo),Eo.ref=sh(xo,_o,So),Eo.return=xo,xo=Eo)}return so(xo);case wa:e:{for(wo=So.key;_o!==null;){if(_o.key===wo)if(_o.tag===4&&_o.stateNode.containerInfo===So.containerInfo&&_o.stateNode.implementation===So.implementation){ro(xo,_o.sibling),_o=oo(_o,So.children||[]),_o.return=xo,xo=_o;break e}else{ro(xo,_o);break}else to(xo,_o);_o=_o.sibling}_o=zh(So,xo.mode,Eo),_o.return=xo,xo=_o}return so(xo);case Ha:return wo=So._init,bo(xo,_o,wo(So._payload),Eo)}if(eb(So))return mo(xo,_o,So,Eo);if(Ka(So))return vo(xo,_o,So,Eo);th(xo,So)}return typeof So=="string"&&So!==""||typeof So=="number"?(So=""+So,_o!==null&&_o.tag===6?(ro(xo,_o.sibling),_o=oo(_o,So),_o.return=xo,xo=_o):(ro(xo,_o),_o=xh(So,xo.mode,Eo),_o.return=xo,xo=_o),so(xo)):ro(xo,_o)}return bo}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(eo){if(eo===Dh)throw Error(p$9(174));return eo}function Ih(eo,to){switch(G$1(Gh,to),G$1(Fh,eo),G$1(Eh,Dh),eo=to.nodeType,eo){case 9:case 11:to=(to=to.documentElement)?to.namespaceURI:lb(null,"");break;default:eo=eo===8?to.parentNode:to,to=eo.namespaceURI||null,eo=eo.tagName,to=lb(to,eo)}E$5(Eh),G$1(Eh,to)}function Jh(){E$5(Eh),E$5(Fh),E$5(Gh)}function Kh(eo){Hh(Gh.current);var to=Hh(Eh.current),ro=lb(to,eo.type);to!==ro&&(G$1(Fh,eo),G$1(Eh,ro))}function Lh(eo){Fh.current===eo&&(E$5(Eh),E$5(Fh))}var M$4=Uf(0);function Mh(eo){for(var to=eo;to!==null;){if(to.tag===13){var ro=to.memoizedState;if(ro!==null&&(ro=ro.dehydrated,ro===null||ro.data==="$?"||ro.data==="$!"))return to}else if(to.tag===19&&to.memoizedProps.revealOrder!==void 0){if(to.flags&128)return to}else if(to.child!==null){to.child.return=to,to=to.child;continue}if(to===eo)break;for(;to.sibling===null;){if(to.return===null||to.return===eo)return null;to=to.return}to.sibling.return=to.return,to=to.sibling}return null}var Nh=[];function Oh(){for(var eo=0;eoro?ro:4,eo(!0);var no=Qh.transition;Qh.transition={};try{eo(!1),to()}finally{C$5=ro,Qh.transition=no}}function Fi$1(){return di$1().memoizedState}function Gi$1(eo,to,ro){var no=lh(eo);if(ro={lane:no,action:ro,hasEagerState:!1,eagerState:null,next:null},Hi$1(eo))Ii$1(to,ro);else if(ro=Yg(eo,to,ro,no),ro!==null){var oo=L$3();mh(ro,eo,no,oo),Ji$1(ro,to,no)}}function ri$1(eo,to,ro){var no=lh(eo),oo={lane:no,action:ro,hasEagerState:!1,eagerState:null,next:null};if(Hi$1(eo))Ii$1(to,oo);else{var io=eo.alternate;if(eo.lanes===0&&(io===null||io.lanes===0)&&(io=to.lastRenderedReducer,io!==null))try{var so=to.lastRenderedState,ao=io(so,ro);if(oo.hasEagerState=!0,oo.eagerState=ao,He$2(ao,so)){var lo=to.interleaved;lo===null?(oo.next=oo,Xg(to)):(oo.next=lo.next,lo.next=oo),to.interleaved=oo;return}}catch{}finally{}ro=Yg(eo,to,oo,no),ro!==null&&(oo=L$3(),mh(ro,eo,no,oo),Ji$1(ro,to,no))}}function Hi$1(eo){var to=eo.alternate;return eo===N$4||to!==null&&to===N$4}function Ii$1(eo,to){Th$1=Sh=!0;var ro=eo.pending;ro===null?to.next=to:(to.next=ro.next,ro.next=to),eo.pending=to}function Ji$1(eo,to,ro){if(ro&4194240){var no=to.lanes;no&=eo.pendingLanes,ro|=no,to.lanes=ro,Cc(eo,ro)}}var ai$1={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(eo,to){return ci$1().memoizedState=[eo,to===void 0?null:to],eo},useContext:Vg,useEffect:vi$1,useImperativeHandle:function(eo,to,ro){return ro=ro!=null?ro.concat([eo]):null,ti$1(4194308,4,yi$1.bind(null,to,eo),ro)},useLayoutEffect:function(eo,to){return ti$1(4194308,4,eo,to)},useInsertionEffect:function(eo,to){return ti$1(4,2,eo,to)},useMemo:function(eo,to){var ro=ci$1();return to=to===void 0?null:to,eo=eo(),ro.memoizedState=[eo,to],eo},useReducer:function(eo,to,ro){var no=ci$1();return to=ro!==void 0?ro(to):to,no.memoizedState=no.baseState=to,eo={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:to},no.queue=eo,eo=eo.dispatch=Gi$1.bind(null,N$4,eo),[no.memoizedState,eo]},useRef:function(eo){var to=ci$1();return eo={current:eo},to.memoizedState=eo},useState:qi$1,useDebugValue:Ai$1,useDeferredValue:function(eo){return ci$1().memoizedState=eo},useTransition:function(){var eo=qi$1(!1),to=eo[0];return eo=Ei$1.bind(null,eo[1]),ci$1().memoizedState=eo,[to,eo]},useMutableSource:function(){},useSyncExternalStore:function(eo,to,ro){var no=N$4,oo=ci$1();if(I$2){if(ro===void 0)throw Error(p$9(407));ro=ro()}else{if(ro=to(),R$3===null)throw Error(p$9(349));Rh&30||ni$1(no,to,ro)}oo.memoizedState=ro;var io={value:ro,getSnapshot:to};return oo.queue=io,vi$1(ki$1.bind(null,no,io,eo),[eo]),no.flags|=2048,li$1(9,mi$1.bind(null,no,io,ro,to),void 0,null),ro},useId:function(){var eo=ci$1(),to=R$3.identifierPrefix;if(I$2){var ro=sg,no=rg;ro=(no&~(1<<32-oc(no)-1)).toString(32)+ro,to=":"+to+"R"+ro,ro=Uh++,0<\/script>",eo=eo.removeChild(eo.firstChild)):typeof no.is=="string"?eo=so.createElement(ro,{is:no.is}):(eo=so.createElement(ro),ro==="select"&&(so=eo,no.multiple?so.multiple=!0:no.size&&(so.size=no.size))):eo=so.createElementNS(eo,ro),eo[Of]=to,eo[Pf]=no,Aj(eo,to,!1,!1),to.stateNode=eo;e:{switch(so=vb(ro,no),ro){case"dialog":D$4("cancel",eo),D$4("close",eo),oo=no;break;case"iframe":case"object":case"embed":D$4("load",eo),oo=no;break;case"video":case"audio":for(oo=0;ooHj&&(to.flags|=128,no=!0,Ej(io,!1),to.lanes=4194304)}else{if(!no)if(eo=Mh(so),eo!==null){if(to.flags|=128,no=!0,ro=eo.updateQueue,ro!==null&&(to.updateQueue=ro,to.flags|=4),Ej(io,!0),io.tail===null&&io.tailMode==="hidden"&&!so.alternate&&!I$2)return S$5(to),null}else 2*B$3()-io.renderingStartTime>Hj&&ro!==1073741824&&(to.flags|=128,no=!0,Ej(io,!1),to.lanes=4194304);io.isBackwards?(so.sibling=to.child,to.child=so):(ro=io.last,ro!==null?ro.sibling=so:to.child=so,io.last=so)}return io.tail!==null?(to=io.tail,io.rendering=to,io.tail=to.sibling,io.renderingStartTime=B$3(),to.sibling=null,ro=M$4.current,G$1(M$4,no?ro&1|2:ro&1),to):(S$5(to),null);case 22:case 23:return Ij(),no=to.memoizedState!==null,eo!==null&&eo.memoizedState!==null!==no&&(to.flags|=8192),no&&to.mode&1?gj&1073741824&&(S$5(to),to.subtreeFlags&6&&(to.flags|=8192)):S$5(to),null;case 24:return null;case 25:return null}throw Error(p$9(156,to.tag))}function Jj(eo,to){switch(wg(to),to.tag){case 1:return Zf(to.type)&&$f(),eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 3:return Jh(),E$5(Wf),E$5(H$3),Oh(),eo=to.flags,eo&65536&&!(eo&128)?(to.flags=eo&-65537|128,to):null;case 5:return Lh(to),null;case 13:if(E$5(M$4),eo=to.memoizedState,eo!==null&&eo.dehydrated!==null){if(to.alternate===null)throw Error(p$9(340));Ig()}return eo=to.flags,eo&65536?(to.flags=eo&-65537|128,to):null;case 19:return E$5(M$4),null;case 4:return Jh(),null;case 10:return Rg(to.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(eo,to){var ro=eo.ref;if(ro!==null)if(typeof ro=="function")try{ro(null)}catch(no){W$1(eo,to,no)}else ro.current=null}function Nj(eo,to,ro){try{ro()}catch(no){W$1(eo,to,no)}}var Oj=!1;function Pj(eo,to){if(Cf=dd,eo=Me$2(),Ne$1(eo)){if("selectionStart"in eo)var ro={start:eo.selectionStart,end:eo.selectionEnd};else e:{ro=(ro=eo.ownerDocument)&&ro.defaultView||window;var no=ro.getSelection&&ro.getSelection();if(no&&no.rangeCount!==0){ro=no.anchorNode;var oo=no.anchorOffset,io=no.focusNode;no=no.focusOffset;try{ro.nodeType,io.nodeType}catch{ro=null;break e}var so=0,ao=-1,lo=-1,uo=0,co=0,fo=eo,po=null;t:for(;;){for(var ho;fo!==ro||oo!==0&&fo.nodeType!==3||(ao=so+oo),fo!==io||no!==0&&fo.nodeType!==3||(lo=so+no),fo.nodeType===3&&(so+=fo.nodeValue.length),(ho=fo.firstChild)!==null;)po=fo,fo=ho;for(;;){if(fo===eo)break t;if(po===ro&&++uo===oo&&(ao=so),po===io&&++co===no&&(lo=so),(ho=fo.nextSibling)!==null)break;fo=po,po=fo.parentNode}fo=ho}ro=ao===-1||lo===-1?null:{start:ao,end:lo}}else ro=null}ro=ro||{start:0,end:0}}else ro=null;for(Df={focusedElem:eo,selectionRange:ro},dd=!1,V$1=to;V$1!==null;)if(to=V$1,eo=to.child,(to.subtreeFlags&1028)!==0&&eo!==null)eo.return=to,V$1=eo;else for(;V$1!==null;){to=V$1;try{var mo=to.alternate;if(to.flags&1024)switch(to.tag){case 0:case 11:case 15:break;case 1:if(mo!==null){var vo=mo.memoizedProps,bo=mo.memoizedState,xo=to.stateNode,_o=xo.getSnapshotBeforeUpdate(to.elementType===to.type?vo:Lg(to.type,vo),bo);xo.__reactInternalSnapshotBeforeUpdate=_o}break;case 3:var So=to.stateNode.containerInfo;So.nodeType===1?So.textContent="":So.nodeType===9&&So.documentElement&&So.removeChild(So.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$9(163))}}catch(Eo){W$1(to,to.return,Eo)}if(eo=to.sibling,eo!==null){eo.return=to.return,V$1=eo;break}V$1=to.return}return mo=Oj,Oj=!1,mo}function Qj(eo,to,ro){var no=to.updateQueue;if(no=no!==null?no.lastEffect:null,no!==null){var oo=no=no.next;do{if((oo.tag&eo)===eo){var io=oo.destroy;oo.destroy=void 0,io!==void 0&&Nj(to,ro,io)}oo=oo.next}while(oo!==no)}}function Rj(eo,to){if(to=to.updateQueue,to=to!==null?to.lastEffect:null,to!==null){var ro=to=to.next;do{if((ro.tag&eo)===eo){var no=ro.create;ro.destroy=no()}ro=ro.next}while(ro!==to)}}function Sj(eo){var to=eo.ref;if(to!==null){var ro=eo.stateNode;switch(eo.tag){case 5:eo=ro;break;default:eo=ro}typeof to=="function"?to(eo):to.current=eo}}function Tj(eo){var to=eo.alternate;to!==null&&(eo.alternate=null,Tj(to)),eo.child=null,eo.deletions=null,eo.sibling=null,eo.tag===5&&(to=eo.stateNode,to!==null&&(delete to[Of],delete to[Pf],delete to[of$1],delete to[Qf],delete to[Rf])),eo.stateNode=null,eo.return=null,eo.dependencies=null,eo.memoizedProps=null,eo.memoizedState=null,eo.pendingProps=null,eo.stateNode=null,eo.updateQueue=null}function Uj(eo){return eo.tag===5||eo.tag===3||eo.tag===4}function Vj(eo){e:for(;;){for(;eo.sibling===null;){if(eo.return===null||Uj(eo.return))return null;eo=eo.return}for(eo.sibling.return=eo.return,eo=eo.sibling;eo.tag!==5&&eo.tag!==6&&eo.tag!==18;){if(eo.flags&2||eo.child===null||eo.tag===4)continue e;eo.child.return=eo,eo=eo.child}if(!(eo.flags&2))return eo.stateNode}}function Wj(eo,to,ro){var no=eo.tag;if(no===5||no===6)eo=eo.stateNode,to?ro.nodeType===8?ro.parentNode.insertBefore(eo,to):ro.insertBefore(eo,to):(ro.nodeType===8?(to=ro.parentNode,to.insertBefore(eo,ro)):(to=ro,to.appendChild(eo)),ro=ro._reactRootContainer,ro!=null||to.onclick!==null||(to.onclick=Bf));else if(no!==4&&(eo=eo.child,eo!==null))for(Wj(eo,to,ro),eo=eo.sibling;eo!==null;)Wj(eo,to,ro),eo=eo.sibling}function Xj(eo,to,ro){var no=eo.tag;if(no===5||no===6)eo=eo.stateNode,to?ro.insertBefore(eo,to):ro.appendChild(eo);else if(no!==4&&(eo=eo.child,eo!==null))for(Xj(eo,to,ro),eo=eo.sibling;eo!==null;)Xj(eo,to,ro),eo=eo.sibling}var X$1=null,Yj=!1;function Zj(eo,to,ro){for(ro=ro.child;ro!==null;)ak(eo,to,ro),ro=ro.sibling}function ak(eo,to,ro){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,ro)}catch{}switch(ro.tag){case 5:U$1||Mj(ro,to);case 6:var no=X$1,oo=Yj;X$1=null,Zj(eo,to,ro),X$1=no,Yj=oo,X$1!==null&&(Yj?(eo=X$1,ro=ro.stateNode,eo.nodeType===8?eo.parentNode.removeChild(ro):eo.removeChild(ro)):X$1.removeChild(ro.stateNode));break;case 18:X$1!==null&&(Yj?(eo=X$1,ro=ro.stateNode,eo.nodeType===8?Kf(eo.parentNode,ro):eo.nodeType===1&&Kf(eo,ro),bd(eo)):Kf(X$1,ro.stateNode));break;case 4:no=X$1,oo=Yj,X$1=ro.stateNode.containerInfo,Yj=!0,Zj(eo,to,ro),X$1=no,Yj=oo;break;case 0:case 11:case 14:case 15:if(!U$1&&(no=ro.updateQueue,no!==null&&(no=no.lastEffect,no!==null))){oo=no=no.next;do{var io=oo,so=io.destroy;io=io.tag,so!==void 0&&(io&2||io&4)&&Nj(ro,to,so),oo=oo.next}while(oo!==no)}Zj(eo,to,ro);break;case 1:if(!U$1&&(Mj(ro,to),no=ro.stateNode,typeof no.componentWillUnmount=="function"))try{no.props=ro.memoizedProps,no.state=ro.memoizedState,no.componentWillUnmount()}catch(ao){W$1(ro,to,ao)}Zj(eo,to,ro);break;case 21:Zj(eo,to,ro);break;case 22:ro.mode&1?(U$1=(no=U$1)||ro.memoizedState!==null,Zj(eo,to,ro),U$1=no):Zj(eo,to,ro);break;default:Zj(eo,to,ro)}}function bk$1(eo){var to=eo.updateQueue;if(to!==null){eo.updateQueue=null;var ro=eo.stateNode;ro===null&&(ro=eo.stateNode=new Lj),to.forEach(function(no){var oo=ck.bind(null,eo,no);ro.has(no)||(ro.add(no),no.then(oo,oo))})}}function dk(eo,to){var ro=to.deletions;if(ro!==null)for(var no=0;nooo&&(oo=so),no&=~io}if(no=oo,no=B$3()-no,no=(120>no?120:480>no?480:1080>no?1080:1920>no?1920:3e3>no?3e3:4320>no?4320:1960*mk(no/1960))-no,10eo?16:eo,xk===null)var no=!1;else{if(eo=xk,xk=null,yk=0,K$3&6)throw Error(p$9(331));var oo=K$3;for(K$3|=4,V$1=eo.current;V$1!==null;){var io=V$1,so=io.child;if(V$1.flags&16){var ao=io.deletions;if(ao!==null){for(var lo=0;loB$3()-gk?Lk(eo,0):sk|=ro),Ek(eo,to)}function Zk(eo,to){to===0&&(eo.mode&1?(to=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):to=1);var ro=L$3();eo=Zg(eo,to),eo!==null&&(Ac(eo,to,ro),Ek(eo,ro))}function vj(eo){var to=eo.memoizedState,ro=0;to!==null&&(ro=to.retryLane),Zk(eo,ro)}function ck(eo,to){var ro=0;switch(eo.tag){case 13:var no=eo.stateNode,oo=eo.memoizedState;oo!==null&&(ro=oo.retryLane);break;case 19:no=eo.stateNode;break;default:throw Error(p$9(314))}no!==null&&no.delete(to),Zk(eo,ro)}var Wk;Wk=function(eo,to,ro){if(eo!==null)if(eo.memoizedProps!==to.pendingProps||Wf.current)Ug=!0;else{if(!(eo.lanes&ro)&&!(to.flags&128))return Ug=!1,zj(eo,to,ro);Ug=!!(eo.flags&131072)}else Ug=!1,I$2&&to.flags&1048576&&ug(to,ng,to.index);switch(to.lanes=0,to.tag){case 2:var no=to.type;jj(eo,to),eo=to.pendingProps;var oo=Yf(to,H$3.current);Tg(to,ro),oo=Xh(null,to,no,eo,oo,ro);var io=bi$1();return to.flags|=1,typeof oo=="object"&&oo!==null&&typeof oo.render=="function"&&oo.$$typeof===void 0?(to.tag=1,to.memoizedState=null,to.updateQueue=null,Zf(no)?(io=!0,cg(to)):io=!1,to.memoizedState=oo.state!==null&&oo.state!==void 0?oo.state:null,ah(to),oo.updater=nh,to.stateNode=oo,oo._reactInternals=to,rh(to,no,eo,ro),to=kj(null,to,no,!0,io,ro)):(to.tag=0,I$2&&io&&vg(to),Yi$1(null,to,oo,ro),to=to.child),to;case 16:no=to.elementType;e:{switch(jj(eo,to),eo=to.pendingProps,oo=no._init,no=oo(no._payload),to.type=no,oo=to.tag=$k(no),eo=Lg(no,eo),oo){case 0:to=dj(null,to,no,eo,ro);break e;case 1:to=ij(null,to,no,eo,ro);break e;case 11:to=Zi$1(null,to,no,eo,ro);break e;case 14:to=aj(null,to,no,Lg(no.type,eo),ro);break e}throw Error(p$9(306,no,""))}return to;case 0:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),dj(eo,to,no,oo,ro);case 1:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),ij(eo,to,no,oo,ro);case 3:e:{if(lj(to),eo===null)throw Error(p$9(387));no=to.pendingProps,io=to.memoizedState,oo=io.element,bh(eo,to),gh(to,no,null,ro);var so=to.memoizedState;if(no=so.element,io.isDehydrated)if(io={element:no,isDehydrated:!1,cache:so.cache,pendingSuspenseBoundaries:so.pendingSuspenseBoundaries,transitions:so.transitions},to.updateQueue.baseState=io,to.memoizedState=io,to.flags&256){oo=Ki$1(Error(p$9(423)),to),to=mj(eo,to,no,ro,oo);break e}else if(no!==oo){oo=Ki$1(Error(p$9(424)),to),to=mj(eo,to,no,ro,oo);break e}else for(yg=Lf(to.stateNode.containerInfo.firstChild),xg=to,I$2=!0,zg=null,ro=Ch(to,null,no,ro),to.child=ro;ro;)ro.flags=ro.flags&-3|4096,ro=ro.sibling;else{if(Ig(),no===oo){to=$i$1(eo,to,ro);break e}Yi$1(eo,to,no,ro)}to=to.child}return to;case 5:return Kh(to),eo===null&&Eg(to),no=to.type,oo=to.pendingProps,io=eo!==null?eo.memoizedProps:null,so=oo.children,Ef(no,oo)?so=null:io!==null&&Ef(no,io)&&(to.flags|=32),hj(eo,to),Yi$1(eo,to,so,ro),to.child;case 6:return eo===null&&Eg(to),null;case 13:return pj(eo,to,ro);case 4:return Ih(to,to.stateNode.containerInfo),no=to.pendingProps,eo===null?to.child=Bh(to,null,no,ro):Yi$1(eo,to,no,ro),to.child;case 11:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),Zi$1(eo,to,no,oo,ro);case 7:return Yi$1(eo,to,to.pendingProps,ro),to.child;case 8:return Yi$1(eo,to,to.pendingProps.children,ro),to.child;case 12:return Yi$1(eo,to,to.pendingProps.children,ro),to.child;case 10:e:{if(no=to.type._context,oo=to.pendingProps,io=to.memoizedProps,so=oo.value,G$1(Mg,no._currentValue),no._currentValue=so,io!==null)if(He$2(io.value,so)){if(io.children===oo.children&&!Wf.current){to=$i$1(eo,to,ro);break e}}else for(io=to.child,io!==null&&(io.return=to);io!==null;){var ao=io.dependencies;if(ao!==null){so=io.child;for(var lo=ao.firstContext;lo!==null;){if(lo.context===no){if(io.tag===1){lo=ch(-1,ro&-ro),lo.tag=2;var uo=io.updateQueue;if(uo!==null){uo=uo.shared;var co=uo.pending;co===null?lo.next=lo:(lo.next=co.next,co.next=lo),uo.pending=lo}}io.lanes|=ro,lo=io.alternate,lo!==null&&(lo.lanes|=ro),Sg(io.return,ro,to),ao.lanes|=ro;break}lo=lo.next}}else if(io.tag===10)so=io.type===to.type?null:io.child;else if(io.tag===18){if(so=io.return,so===null)throw Error(p$9(341));so.lanes|=ro,ao=so.alternate,ao!==null&&(ao.lanes|=ro),Sg(so,ro,to),so=io.sibling}else so=io.child;if(so!==null)so.return=io;else for(so=io;so!==null;){if(so===to){so=null;break}if(io=so.sibling,io!==null){io.return=so.return,so=io;break}so=so.return}io=so}Yi$1(eo,to,oo.children,ro),to=to.child}return to;case 9:return oo=to.type,no=to.pendingProps.children,Tg(to,ro),oo=Vg(oo),no=no(oo),to.flags|=1,Yi$1(eo,to,no,ro),to.child;case 14:return no=to.type,oo=Lg(no,to.pendingProps),oo=Lg(no.type,oo),aj(eo,to,no,oo,ro);case 15:return cj(eo,to,to.type,to.pendingProps,ro);case 17:return no=to.type,oo=to.pendingProps,oo=to.elementType===no?oo:Lg(no,oo),jj(eo,to),to.tag=1,Zf(no)?(eo=!0,cg(to)):eo=!1,Tg(to,ro),ph(to,no,oo),rh(to,no,oo,ro),kj(null,to,no,!0,eo,ro);case 19:return yj(eo,to,ro);case 22:return ej(eo,to,ro)}throw Error(p$9(156,to.tag))};function Gk(eo,to){return ac(eo,to)}function al(eo,to,ro,no){this.tag=eo,this.key=ro,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=to,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=no,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(eo,to,ro,no){return new al(eo,to,ro,no)}function bj(eo){return eo=eo.prototype,!(!eo||!eo.isReactComponent)}function $k(eo){if(typeof eo=="function")return bj(eo)?1:0;if(eo!=null){if(eo=eo.$$typeof,eo===Da)return 11;if(eo===Ga)return 14}return 2}function wh(eo,to){var ro=eo.alternate;return ro===null?(ro=Bg(eo.tag,to,eo.key,eo.mode),ro.elementType=eo.elementType,ro.type=eo.type,ro.stateNode=eo.stateNode,ro.alternate=eo,eo.alternate=ro):(ro.pendingProps=to,ro.type=eo.type,ro.flags=0,ro.subtreeFlags=0,ro.deletions=null),ro.flags=eo.flags&14680064,ro.childLanes=eo.childLanes,ro.lanes=eo.lanes,ro.child=eo.child,ro.memoizedProps=eo.memoizedProps,ro.memoizedState=eo.memoizedState,ro.updateQueue=eo.updateQueue,to=eo.dependencies,ro.dependencies=to===null?null:{lanes:to.lanes,firstContext:to.firstContext},ro.sibling=eo.sibling,ro.index=eo.index,ro.ref=eo.ref,ro}function yh(eo,to,ro,no,oo,io){var so=2;if(no=eo,typeof eo=="function")bj(eo)&&(so=1);else if(typeof eo=="string")so=5;else e:switch(eo){case ya:return Ah(ro.children,oo,io,to);case za:so=8,oo|=8;break;case Aa:return eo=Bg(12,ro,to,oo|2),eo.elementType=Aa,eo.lanes=io,eo;case Ea:return eo=Bg(13,ro,to,oo),eo.elementType=Ea,eo.lanes=io,eo;case Fa:return eo=Bg(19,ro,to,oo),eo.elementType=Fa,eo.lanes=io,eo;case Ia:return qj(ro,oo,io,to);default:if(typeof eo=="object"&&eo!==null)switch(eo.$$typeof){case Ba:so=10;break e;case Ca:so=9;break e;case Da:so=11;break e;case Ga:so=14;break e;case Ha:so=16,no=null;break e}throw Error(p$9(130,eo==null?eo:typeof eo,""))}return to=Bg(so,ro,to,oo),to.elementType=eo,to.type=no,to.lanes=io,to}function Ah(eo,to,ro,no){return eo=Bg(7,eo,no,to),eo.lanes=ro,eo}function qj(eo,to,ro,no){return eo=Bg(22,eo,no,to),eo.elementType=Ia,eo.lanes=ro,eo.stateNode={isHidden:!1},eo}function xh(eo,to,ro){return eo=Bg(6,eo,null,to),eo.lanes=ro,eo}function zh(eo,to,ro){return to=Bg(4,eo.children!==null?eo.children:[],eo.key,to),to.lanes=ro,to.stateNode={containerInfo:eo.containerInfo,pendingChildren:null,implementation:eo.implementation},to}function bl(eo,to,ro,no,oo){this.tag=to,this.containerInfo=eo,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=no,this.onRecoverableError=oo,this.mutableSourceEagerHydrationData=null}function cl(eo,to,ro,no,oo,io,so,ao,lo){return eo=new bl(eo,to,ro,ao,lo),to===1?(to=1,io===!0&&(to|=8)):to=0,io=Bg(3,null,null,to),eo.current=io,io.stateNode=eo,io.memoizedState={element:no,isDehydrated:ro,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(io),eo}function dl(eo,to,ro){var no=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(eo){console.error(eo)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$9=reactDomExports;client.createRoot=m$9.createRoot,client.hydrateRoot=m$9.hydrateRoot;const positionMap=["Top","Right","Bottom","Left"];function generateStyles(eo,to,...ro){const[no,oo=no,io=no,so=oo]=ro,ao=[no,oo,io,so],lo={};for(let uo=0;uotypeof eo=="string"&&/(\d+(\w+|%))/.test(eo),isUnitless=eo=>typeof eo=="number"&&!Number.isNaN(eo),isInitial=eo=>eo==="initial",isAuto=eo=>eo==="auto",isNone=eo=>eo==="none",widthReservedKeys=["content","fit-content","max-content","min-content"],isWidth=eo=>widthReservedKeys.some(to=>eo===to)||isUnit(eo);function flex(...eo){const to=eo.length===1,ro=eo.length===2,no=eo.length===3;if(to){const[oo]=eo;if(isInitial(oo))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(isAuto(oo))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(isNone(oo))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(isUnitless(oo))return{flexGrow:oo,flexShrink:1,flexBasis:0};if(isWidth(oo))return{flexGrow:1,flexShrink:1,flexBasis:oo}}if(ro){const[oo,io]=eo;if(isUnitless(io))return{flexGrow:oo,flexShrink:io,flexBasis:0};if(isWidth(io))return{flexGrow:oo,flexShrink:1,flexBasis:io}}if(no){const[oo,io,so]=eo;if(isUnitless(oo)&&isUnitless(io)&&(isAuto(so)||isWidth(so)))return{flexGrow:oo,flexShrink:io,flexBasis:so}}return{}}function gap(eo,to=eo){return{columnGap:eo,rowGap:to}}const cssVarRegEx=/var\(.*\)/gi;function isValidGridAreaInput(eo){return eo===void 0||typeof eo=="number"||typeof eo=="string"&&!cssVarRegEx.test(eo)}const customIdentRegEx=/^[a-zA-Z0-9\-_\\#;]+$/,nonCustomIdentRegEx=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function isCustomIdent(eo){return eo!==void 0&&typeof eo=="string"&&customIdentRegEx.test(eo)&&!nonCustomIdentRegEx.test(eo)}function gridArea(...eo){if(eo.some(io=>!isValidGridAreaInput(io)))return{};const to=eo[0]!==void 0?eo[0]:"auto",ro=eo[1]!==void 0?eo[1]:isCustomIdent(to)?to:"auto",no=eo[2]!==void 0?eo[2]:isCustomIdent(to)?to:"auto",oo=eo[3]!==void 0?eo[3]:isCustomIdent(ro)?ro:"auto";return{gridRowStart:to,gridColumnStart:ro,gridRowEnd:no,gridColumnEnd:oo}}function margin(...eo){return generateStyles("margin","",...eo)}function marginBlock(eo,to=eo){return{marginBlockStart:eo,marginBlockEnd:to}}function marginInline(eo,to=eo){return{marginInlineStart:eo,marginInlineEnd:to}}function padding(...eo){return generateStyles("padding","",...eo)}function paddingBlock(eo,to=eo){return{paddingBlockStart:eo,paddingBlockEnd:to}}function paddingInline(eo,to=eo){return{paddingInlineStart:eo,paddingInlineEnd:to}}function overflow(eo,to=eo){return{overflowX:eo,overflowY:to}}function inset(...eo){const[to,ro=to,no=to,oo=ro]=eo;return{top:to,right:ro,bottom:no,left:oo}}function outline(eo,to,ro){return{outlineWidth:eo,...to&&{outlineStyle:to},...ro&&{outlineColor:ro}}}function transition$1(...eo){return isTransitionGlobalInputs(eo)?{transitionDelay:eo[0],transitionDuration:eo[0],transitionProperty:eo[0],transitionTimingFunction:eo[0]}:normalizeTransitionInputs(eo).reduce((ro,[no,oo="0s",io="0s",so="ease"],ao)=>(ao===0?(ro.transitionProperty=no,ro.transitionDuration=oo,ro.transitionDelay=io,ro.transitionTimingFunction=so):(ro.transitionProperty+=`, ${no}`,ro.transitionDuration+=`, ${oo}`,ro.transitionDelay+=`, ${io}`,ro.transitionTimingFunction+=`, ${so}`),ro),{})}const transitionGlobalInputs=["-moz-initial","inherit","initial","revert","unset"];function isTransitionGlobalInputs(eo){return eo.length===1&&transitionGlobalInputs.includes(eo[0])}function normalizeTransitionInputs(eo){return eo.length===1&&Array.isArray(eo[0])?eo[0]:[eo]}function textDecoration(eo,...to){if(to.length===0)return isTextDecorationStyleInput(eo)?{textDecorationStyle:eo}:{textDecorationLine:eo};const[ro,no,oo]=to;return{textDecorationLine:eo,...ro&&{textDecorationStyle:ro},...no&&{textDecorationColor:no},...oo&&{textDecorationThickness:oo}}}const textDecorationStyleInputs=["dashed","dotted","double","solid","wavy"];function isTextDecorationStyleInput(eo){return textDecorationStyleInputs.includes(eo)}const __GLOBAL__=typeof window>"u"?global:window,__NAMESPACE_PREFIX__="@griffel/";function getGlobalVar(eo,to){return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]||(__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]=to),__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__+eo)]}const DEFINITION_LOOKUP_TABLE=getGlobalVar("DEFINITION_LOOKUP_TABLE",{}),DATA_BUCKET_ATTR="data-make-styles-bucket",HASH_PREFIX="f",SEQUENCE_HASH_LENGTH=7,SEQUENCE_PREFIX="___",SEQUENCE_SIZE=SEQUENCE_PREFIX.length+SEQUENCE_HASH_LENGTH,LOOKUP_DEFINITIONS_INDEX=0,LOOKUP_DIR_INDEX=1,UNSUPPORTED_CSS_PROPERTIES={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function murmur2(eo){for(var to=0,ro,no=0,oo=eo.length;oo>=4;++no,oo-=4)ro=eo.charCodeAt(no)&255|(eo.charCodeAt(++no)&255)<<8|(eo.charCodeAt(++no)&255)<<16|(eo.charCodeAt(++no)&255)<<24,ro=(ro&65535)*1540483477+((ro>>>16)*59797<<16),ro^=ro>>>24,to=(ro&65535)*1540483477+((ro>>>16)*59797<<16)^(to&65535)*1540483477+((to>>>16)*59797<<16);switch(oo){case 3:to^=(eo.charCodeAt(no+2)&255)<<16;case 2:to^=(eo.charCodeAt(no+1)&255)<<8;case 1:to^=eo.charCodeAt(no)&255,to=(to&65535)*1540483477+((to>>>16)*59797<<16)}return to^=to>>>13,to=(to&65535)*1540483477+((to>>>16)*59797<<16),((to^to>>>15)>>>0).toString(36)}function padEndHash(eo){const to=eo.length;if(to===SEQUENCE_HASH_LENGTH)return eo;for(let ro=to;ro0&&(to+=co.slice(0,fo)),ro+=po,no[uo]=po}}}if(ro==="")return to.slice(0,-1);const oo=mergeClassesCachedResults[ro];if(oo!==void 0)return to+oo;const io=[];for(let uo=0;uo{const to=Object.keys(mergeClassesCachedResults).find(ro=>mergeClassesCachedResults[ro].startsWith(eo));return to?to.split(SEQUENCE_PREFIX).filter(ro=>ro.length).map(ro=>SEQUENCE_PREFIX+ro):[]},addCSSRule:eo=>{cssRules.add(eo)},addSequenceDetails:(eo,to)=>{Object.entries(eo).forEach(([ro,no])=>{sequenceDetails[no.substring(0,SEQUENCE_SIZE)]={slotName:ro,sourceURL:to}})},getCSSRules:()=>Array.from(cssRules),getSequenceDetails:eo=>sequenceDetails[eo]};function getDirectionalClassName(eo,to){return Array.isArray(eo)?to==="rtl"?eo[1]:eo[0]:eo}function getDebugClassNames(eo,to,ro,no){const oo=eo[0],io=eo[1];return Object.entries(oo).map(([so,ao])=>{const lo=getDirectionalClassName(ao,io);let uo;if(ro&&to){const co=ro.find(({className:fo})=>fo===lo);!co&&to[0][so]?uo=getDirectionalClassName(to[0][so],to[1]):co&&to[0][so]?uo=(no?no.filter(({debugClassNames:po})=>po.filter(({className:ho})=>ho===lo).length>0).length>0:!1)?co.className:co.overriddenBy:(!co&&!to[0][so]||co&&!to[0][so])&&(uo=void 0)}return{className:lo,overriddenBy:uo}})}function getDebugTree(eo,to){const ro=DEFINITION_LOOKUP_TABLE[eo];if(ro===void 0)return;const no=to?DEFINITION_LOOKUP_TABLE[to.sequenceHash]:void 0,oo=getDebugClassNames(ro,no,to==null?void 0:to.debugClassNames,to==null?void 0:to.children),io={sequenceHash:eo,direction:ro[1],children:[],debugClassNames:oo};return debugData.getChildrenSequences(io.sequenceHash).reverse().forEach(ao=>{const lo=getDebugTree(ao,io);lo&&io.children.push(lo)}),io.children.length||(io.rules={},io.debugClassNames.forEach(({className:ao})=>{const lo=debugData.getSequenceDetails(eo);lo&&(io.slot=lo.slotName,io.sourceURL=lo.sourceURL);const uo=debugData.getCSSRules().find(co=>co.includes(ao));io.rules[ao]=uo})),io}function injectDevTools(eo){const to=eo.defaultView;if(!to||to.__GRIFFEL_DEVTOOLS__)return;const ro={getInfo:no=>{const oo=Array.from(no.classList).find(io=>io.startsWith(SEQUENCE_PREFIX));if(oo!==void 0)return getDebugTree(oo)}};Object.defineProperty(to,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return ro}})}function normalizeCSSBucketEntry(eo){return Array.isArray(eo)?eo:[eo]}function createIsomorphicStyleSheet(eo,to,ro){const no=[];if(ro[DATA_BUCKET_ATTR]=to,eo)for(const io in ro)eo.setAttribute(io,ro[io]);function oo(io){return eo!=null&&eo.sheet?eo.sheet.insertRule(io,eo.sheet.cssRules.length):no.push(io)}return{elementAttributes:ro,insertRule:oo,element:eo,bucketName:to,cssRules(){return eo!=null&&eo.sheet?Array.from(eo.sheet.cssRules).map(io=>io.cssText):no}}}const styleBucketOrdering=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],styleBucketOrderingMap=styleBucketOrdering.reduce((eo,to,ro)=>(eo[to]=ro,eo),{});function getStyleSheetForBucket(eo,to,ro,no,oo={}){const io=eo==="m",so=io?eo+oo.m:eo;if(!no.stylesheets[so]){const ao=to&&to.createElement("style"),lo=createIsomorphicStyleSheet(ao,eo,{...no.styleElementAttributes,...io&&{media:oo.m}});no.stylesheets[so]=lo,to&&ao&&to.head.insertBefore(ao,findInsertionPoint(to,ro,eo,no,oo))}return no.stylesheets[so]}function findInsertionPoint(eo,to,ro,no,oo){const io=styleBucketOrderingMap[ro];let so=co=>io-styleBucketOrderingMap[co.getAttribute(DATA_BUCKET_ATTR)],ao=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}]`);if(ro==="m"&&oo){const co=eo.head.querySelectorAll(`[${DATA_BUCKET_ATTR}="${ro}"]`);co.length&&(ao=co,so=fo=>no.compareMediaQueries(oo.m,fo.media))}const lo=ao.length;let uo=lo-1;for(;uo>=0;){const co=ao.item(uo);if(so(co)>0)return co.nextSibling;uo--}return lo>0?ao.item(0):to?to.nextSibling:null}function safeInsertRule(eo,to){try{eo.insertRule(to)}catch{}}let lastIndex=0;const defaultCompareMediaQueries=(eo,to)=>eoto?1:0;function createDOMRenderer(eo=typeof document>"u"?void 0:document,to={}){const{unstable_filterCSSRule:ro,insertionPoint:no,styleElementAttributes:oo,compareMediaQueries:io=defaultCompareMediaQueries}=to,so={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(oo),compareMediaQueries:io,id:`d${lastIndex++}`,insertCSSRules(ao){for(const lo in ao){const uo=ao[lo];for(let co=0,fo=uo.length;co{const eo={};return function(ro,no){eo[ro.id]===void 0&&(ro.insertCSSRules(no),eo[ro.id]=!0)}};function arrayToObject(eo){return eo.reduce(function(to,ro){var no=ro[0],oo=ro[1];return to[no]=oo,to[oo]=no,to},{})}function isBoolean(eo){return typeof eo=="boolean"}function isFunction$7(eo){return typeof eo=="function"}function isNumber$2(eo){return typeof eo=="number"}function isNullOrUndefined$1(eo){return eo===null||typeof eo>"u"}function isObject$i(eo){return eo&&typeof eo=="object"}function isString$2(eo){return typeof eo=="string"}function includes(eo,to){return eo.indexOf(to)!==-1}function flipSign(eo){return parseFloat(eo)===0?eo:eo[0]==="-"?eo.slice(1):"-"+eo}function flipTransformSign(eo,to,ro,no){return to+flipSign(ro)+no}function calculateNewBackgroundPosition(eo){var to=eo.indexOf(".");if(to===-1)eo=100-parseFloat(eo)+"%";else{var ro=eo.length-to-2;eo=100-parseFloat(eo),eo=eo.toFixed(ro)+"%"}return eo}function getValuesAsList(eo){return eo.replace(/ +/g," ").split(" ").map(function(to){return to.trim()}).filter(Boolean).reduce(function(to,ro){var no=to.list,oo=to.state,io=(ro.match(/\(/g)||[]).length,so=(ro.match(/\)/g)||[]).length;return oo.parensDepth>0?no[no.length-1]=no[no.length-1]+" "+ro:no.push(ro),oo.parensDepth+=io-so,{list:no,state:oo}},{list:[],state:{parensDepth:0}}).list}function handleQuartetValues(eo){var to=getValuesAsList(eo);if(to.length<=3||to.length>4)return eo;var ro=to[0],no=to[1],oo=to[2],io=to[3];return[ro,io,oo,no].join(" ")}function canConvertValue(eo){return!isBoolean(eo)&&!isNullOrUndefined$1(eo)}function splitShadow(eo){for(var to=[],ro=0,no=0,oo=!1;no0?charat$1(characters$1,--position$3):0,column$1--,character$1===10&&(column$1=1,line$2--),character$1}function next$1(){return character$1=position$32||token$2(character$1)>3?"":" "}function tokenizer(eo){for(;next$1();)switch(token$2(character$1)){case 0:append$1(identifier$1(position$3-1),eo);break;case 2:append$1(delimit$1(character$1),eo);break;default:append$1(from$2(character$1),eo)}return eo}function escaping$1(eo,to){for(;--to&&next$1()&&!(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97););return slice$1(eo,caret$1()+(to<6&&peek$1()==32&&next$1()==32))}function delimiter$1(eo){for(;next$1();)switch(character$1){case eo:return position$3;case 34:case 39:eo!==34&&eo!==39&&delimiter$1(character$1);break;case 40:eo===41&&delimiter$1(eo);break;case 92:next$1();break}return position$3}function commenter$1(eo,to){for(;next$1()&&eo+character$1!==57;)if(eo+character$1===84&&peek$1()===47)break;return"/*"+slice$1(to,position$3-1)+"*"+from$2(eo===47?eo:next$1())}function identifier$1(eo){for(;!token$2(peek$1());)next$1();return slice$1(eo,position$3)}function compile$1(eo){return dealloc$1(parse$n("",null,null,null,[""],eo=alloc$1(eo),0,[0],eo))}function parse$n(eo,to,ro,no,oo,io,so,ao,lo){for(var uo=0,co=0,fo=so,po=0,ho=0,mo=0,vo=1,bo=1,xo=1,_o=0,So="",Eo=oo,ko=io,wo=no,Co=So;bo;)switch(mo=_o,_o=next$1()){case 40:if(mo!=108&&charat$1(Co,fo-1)==58){indexof$1(Co+=replace$2(delimit$1(_o),"&","&\f"),"&\f")!=-1&&(xo=-1);break}case 34:case 39:case 91:Co+=delimit$1(_o);break;case 9:case 10:case 13:case 32:Co+=whitespace$1(mo);break;case 92:Co+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),to,ro,lo),lo);break;default:Co+="/"}break;case 123*vo:ao[uo++]=strlen$1(Co)*xo;case 125*vo:case 59:case 0:switch(_o){case 0:case 125:bo=0;case 59+co:xo==-1&&(Co=replace$2(Co,/\f/g,"")),ho>0&&strlen$1(Co)-fo&&append$1(ho>32?declaration$1(Co+";",no,ro,fo-1,lo):declaration$1(replace$2(Co," ","")+";",no,ro,fo-2,lo),lo);break;case 59:Co+=";";default:if(append$1(wo=ruleset$1(Co,to,ro,uo,co,oo,ao,So,Eo=[],ko=[],fo,io),io),_o===123)if(co===0)parse$n(Co,to,wo,wo,Eo,io,fo,ao,ko);else switch(po===99&&charat$1(Co,3)===110?100:po){case 100:case 108:case 109:case 115:parse$n(eo,wo,wo,no&&append$1(ruleset$1(eo,wo,wo,0,0,oo,ao,So,oo,Eo=[],fo,ko),ko),oo,ko,fo,ao,no?Eo:ko);break;default:parse$n(Co,wo,wo,wo,[""],ko,0,ao,ko)}}uo=co=ho=0,vo=xo=1,So=Co="",fo=so;break;case 58:fo=1+strlen$1(Co),ho=mo;default:if(vo<1){if(_o==123)--vo;else if(_o==125&&vo++==0&&prev$1()==125)continue}switch(Co+=from$2(_o),_o*vo){case 38:xo=co>0?1:(Co+="\f",-1);break;case 44:ao[uo++]=(strlen$1(Co)-1)*xo,xo=1;break;case 64:peek$1()===45&&(Co+=delimit$1(next$1())),po=peek$1(),co=fo=strlen$1(So=Co+=identifier$1(caret$1())),_o++;break;case 45:mo===45&&strlen$1(Co)==2&&(vo=0)}}return io}function ruleset$1(eo,to,ro,no,oo,io,so,ao,lo,uo,co,fo){for(var po=oo-1,ho=oo===0?io:[""],mo=sizeof$1(ho),vo=0,bo=0,xo=0;vo0?ho[_o]+" "+So:replace$2(So,/&\f/g,ho[_o])))&&(lo[xo++]=Eo);return node$1(eo,to,ro,oo===0?RULESET$1:ao,lo,uo,co,fo)}function comment$1(eo,to,ro,no){return node$1(eo,to,ro,COMMENT$1,from$2(char$1()),substr$1(eo,2,-2),0,no)}function declaration$1(eo,to,ro,no,oo){return node$1(eo,to,ro,DECLARATION$1,substr$1(eo,0,no),substr$1(eo,no+1,-1),no,oo)}function serialize$1(eo,to){for(var ro="",no=0;no{switch(eo.type){case RULESET$1:if(typeof eo.props=="string")return;eo.props=eo.props.map(to=>to.indexOf(":global(")===-1?to:tokenize(to).reduce((ro,no,oo,io)=>{if(no==="")return ro;if(no===":"&&io[oo+1]==="global"){const so=io[oo+2].slice(1,-1)+" ";return ro.unshift(so),io[oo+1]="",io[oo+2]="",ro}return ro.push(no),ro},[]).join(""))}};function prefix$3(eo,to,ro){switch(hash$2(eo,to)){case 5103:return WEBKIT$1+"print-"+eo+eo;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return WEBKIT$1+eo+eo;case 4215:if(charat$1(eo,9)===102||charat$1(eo,to+1)===116)return WEBKIT$1+eo+eo;break;case 4789:return MOZ$1+eo+eo;case 5349:case 4246:case 6968:return WEBKIT$1+eo+MOZ$1+eo+eo;case 6187:if(!match$m(eo,/grab/))return replace$2(replace$2(replace$2(eo,/(zoom-|grab)/,WEBKIT$1+"$1"),/(image-set)/,WEBKIT$1+"$1"),eo,"")+eo;case 5495:case 3959:return replace$2(eo,/(image-set\([^]*)/,WEBKIT$1+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return replace$2(eo,/(.+)-inline(.+)/,WEBKIT$1+"$1$2")+eo;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen$1(eo)-1-to>6)switch(charat$1(eo,to+1)){case 102:if(charat$1(eo,to+3)===108)return replace$2(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT$1+"$2-$3$1"+MOZ$1+(charat$1(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof$1(eo,"stretch")?prefix$3(replace$2(eo,"stretch","fill-available"),to)+eo:eo}break}return eo}function prefixerPlugin(eo,to,ro,no){if(eo.length>-1&&!eo.return)switch(eo.type){case DECLARATION$1:eo.return=prefix$3(eo.value,eo.length);return;case RULESET$1:if(eo.length)return combine$1(eo.props,function(oo){switch(match$m(oo,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$1([copy$3(eo,{props:[replace$2(oo,/:(read-\w+)/,":"+MOZ$1+"$1")]})],no);case"::placeholder":return serialize$1([copy$3(eo,{props:[replace$2(oo,/:(plac\w+)/,":"+WEBKIT$1+"input-$1")]}),copy$3(eo,{props:[replace$2(oo,/:(plac\w+)/,":"+MOZ$1+"$1")]})],no)}return""})}}function isAtRuleElement(eo){switch(eo.type){case"@container":case MEDIA:case SUPPORTS:case LAYER$1:return!0}return!1}const sortClassesInAtRulesPlugin=eo=>{isAtRuleElement(eo)&&Array.isArray(eo.children)&&eo.children.sort((to,ro)=>to.props[0]>ro.props[0]?1:-1)};function noop$7(){}function compileCSSRules(eo,to){const ro=[];return serialize$1(compile$1(eo),middleware$1([globalPlugin,to?sortClassesInAtRulesPlugin:noop$7,prefixerPlugin,stringify$2,rulesheet$1(no=>ro.push(no))])),ro}const PSEUDO_SELECTOR_REGEX=/,( *[^ &])/g;function normalizePseudoSelector(eo){return"&"+normalizeNestedProperty(eo.replace(PSEUDO_SELECTOR_REGEX,",&$1"))}function createCSSRule(eo,to,ro){let no=to;return ro.length>0&&(no=ro.reduceRight((oo,io)=>`${normalizePseudoSelector(io)} { ${oo} }`,to)),`${eo}{${no}}`}function compileAtomicCSSRule(eo){const{className:to,media:ro,layer:no,selectors:oo,support:io,property:so,rtlClassName:ao,rtlProperty:lo,rtlValue:uo,value:co,container:fo}=eo,po=`.${to}`,ho=Array.isArray(co)?`${co.map(vo=>`${hyphenateProperty(so)}: ${vo}`).join(";")};`:`${hyphenateProperty(so)}: ${co};`;let mo=createCSSRule(po,ho,oo);if(lo&&ao){const vo=`.${ao}`,bo=Array.isArray(uo)?`${uo.map(xo=>`${hyphenateProperty(lo)}: ${xo}`).join(";")};`:`${hyphenateProperty(lo)}: ${uo};`;mo+=createCSSRule(vo,bo,oo)}return ro&&(mo=`@media ${ro} { ${mo} }`),no&&(mo=`@layer ${no} { ${mo} }`),io&&(mo=`@supports ${io} { ${mo} }`),fo&&(mo=`@container ${fo} { ${mo} }`),compileCSSRules(mo,!0)}function cssifyObject(eo){let to="";for(const ro in eo){const no=eo[ro];typeof no!="string"&&typeof no!="number"||(to+=hyphenateProperty(ro)+":"+no+";")}return to}function compileKeyframeRule(eo){let to="";for(const ro in eo)to+=`${ro}{${cssifyObject(eo[ro])}}`;return to}function compileKeyframesCSS(eo,to){const ro=`@keyframes ${eo} {${to}}`,no=[];return serialize$1(compile$1(ro),middleware$1([stringify$2,prefixerPlugin,rulesheet$1(oo=>no.push(oo))])),no}function generateCombinedQuery(eo,to){return eo.length===0?to:`${eo} and ${to}`}function isMediaQuerySelector(eo){return eo.substr(0,6)==="@media"}function isLayerSelector(eo){return eo.substr(0,6)==="@layer"}const regex=/^(:|\[|>|&)/;function isNestedSelector(eo){return regex.test(eo)}function isSupportQuerySelector(eo){return eo.substr(0,9)==="@supports"}function isContainerQuerySelector(eo){return eo.substring(0,10)==="@container"}function isObject$h(eo){return eo!=null&&typeof eo=="object"&&Array.isArray(eo)===!1}const pseudosMap={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function getStyleBucketName(eo,to,ro,no,oo){if(ro)return"m";if(to||no)return"t";if(oo)return"c";if(eo.length>0){const io=eo[0].trim();if(io.charCodeAt(0)===58)return pseudosMap[io.slice(4,8)]||pseudosMap[io.slice(3,5)]||"d"}return"d"}function hashClassName({container:eo,media:to,layer:ro,property:no,selector:oo,support:io,value:so}){const ao=murmur2(oo+eo+to+ro+io+no+so.trim());return HASH_PREFIX+ao}function hashPropertyKey(eo,to,ro,no,oo){const io=eo+to+ro+no+oo,so=murmur2(io),ao=so.charCodeAt(0);return ao>=48&&ao<=57?String.fromCharCode(ao+17)+so.slice(1):so}function trimSelector(eo){return eo.replace(/>\s+/g,">")}function warnAboutUnresolvedRule(eo,to){const ro=JSON.stringify(to,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${eo}": ${ro.split(` +`).map((no,oo)=>" ".repeat(oo===0?0:6)+no).join(` +`)}`," ".repeat(4)+""," ".repeat(2)+"",eo.indexOf("&")}function warnAboutUnsupportedProperties(eo,to){}function pushToClassesMap(eo,to,ro,no){eo[to]=no?[ro,no]:ro}function createBucketEntry(eo,to){return to?[eo,to]:eo}function pushToCSSRules(eo,to,ro,no,oo){var io;let so;to==="m"&&oo&&(so={m:oo}),(io=eo[to])!==null&&io!==void 0||(eo[to]=[]),ro&&eo[to].push(createBucketEntry(ro,so)),no&&eo[to].push(createBucketEntry(no,so))}function resolveStyleRules(eo,to=[],ro="",no="",oo="",io="",so={},ao={},lo){for(const uo in eo){if(UNSUPPORTED_CSS_PROPERTIES.hasOwnProperty(uo)){eo[uo];continue}const co=eo[uo];if(co!=null){if(typeof co=="string"||typeof co=="number"){const fo=trimSelector(to.join("")),po=hashPropertyKey(fo,io,ro,oo,uo),ho=hashClassName({container:io,media:ro,layer:no,value:co.toString(),support:oo,selector:fo,property:uo}),mo=lo&&{key:uo,value:lo}||convertProperty(uo,co),vo=mo.key!==uo||mo.value!==co,bo=vo?hashClassName({container:io,value:mo.value.toString(),property:mo.key,selector:fo,media:ro,layer:no,support:oo}):void 0,xo=vo?{rtlClassName:bo,rtlProperty:mo.key,rtlValue:mo.value}:void 0,_o=getStyleBucketName(to,no,ro,oo,io),[So,Eo]=compileAtomicCSSRule({className:ho,media:ro,layer:no,selectors:to,property:uo,support:oo,container:io,value:co,...xo});pushToClassesMap(so,po,ho,bo),pushToCSSRules(ao,_o,So,Eo,ro)}else if(uo==="animationName"){const fo=Array.isArray(co)?co:[co],po=[],ho=[];for(const mo of fo){const vo=compileKeyframeRule(mo),bo=compileKeyframeRule(convert(mo)),xo=HASH_PREFIX+murmur2(vo);let _o;const So=compileKeyframesCSS(xo,vo);let Eo=[];vo===bo?_o=xo:(_o=HASH_PREFIX+murmur2(bo),Eo=compileKeyframesCSS(_o,bo));for(let ko=0;ko(wo??"").toString()).join(";"),support:oo,selector:fo,property:uo}),mo=co.map(wo=>convertProperty(uo,wo));if(!!mo.some(wo=>wo.key!==mo[0].key))continue;const bo=mo[0].key!==uo||mo.some((wo,Co)=>wo.value!==co[Co]),xo=bo?hashClassName({container:io,value:mo.map(wo=>{var Co;return((Co=wo==null?void 0:wo.value)!==null&&Co!==void 0?Co:"").toString()}).join(";"),property:mo[0].key,selector:fo,layer:no,media:ro,support:oo}):void 0,_o=bo?{rtlClassName:xo,rtlProperty:mo[0].key,rtlValue:mo.map(wo=>wo.value)}:void 0,So=getStyleBucketName(to,no,ro,oo,io),[Eo,ko]=compileAtomicCSSRule({className:ho,media:ro,layer:no,selectors:to,property:uo,support:oo,container:io,value:co,..._o});pushToClassesMap(so,po,ho,xo),pushToCSSRules(ao,So,Eo,ko,ro)}else if(isObject$h(co))if(isNestedSelector(uo))resolveStyleRules(co,to.concat(normalizeNestedProperty(uo)),ro,no,oo,io,so,ao);else if(isMediaQuerySelector(uo)){const fo=generateCombinedQuery(ro,uo.slice(6).trim());resolveStyleRules(co,to,fo,no,oo,io,so,ao)}else if(isLayerSelector(uo)){const fo=(no?`${no}.`:"")+uo.slice(6).trim();resolveStyleRules(co,to,ro,fo,oo,io,so,ao)}else if(isSupportQuerySelector(uo)){const fo=generateCombinedQuery(oo,uo.slice(9).trim());resolveStyleRules(co,to,ro,no,fo,io,so,ao)}else if(isContainerQuerySelector(uo)){const fo=uo.slice(10).trim();resolveStyleRules(co,to,ro,no,oo,fo,so,ao)}else warnAboutUnresolvedRule(uo,co)}}return[so,ao]}function resolveStyleRulesForSlots(eo){const to={},ro={};for(const no in eo){const oo=eo[no],[io,so]=resolveStyleRules(oo);to[no]=io,Object.keys(so).forEach(ao=>{ro[ao]=(ro[ao]||[]).concat(so[ao])})}return[to,ro]}function makeStyles$1(eo,to=insertionFactory$1){const ro=to();let no=null,oo=null,io=null,so=null;function ao(lo){const{dir:uo,renderer:co}=lo;no===null&&([no,oo]=resolveStyleRulesForSlots(eo));const fo=uo==="ltr";return fo?io===null&&(io=reduceToClassNameForSlots(no,uo)):so===null&&(so=reduceToClassNameForSlots(no,uo)),ro(co,oo),fo?io:so}return ao}function __styles$1(eo,to,ro=insertionFactory$1){const no=ro();let oo=null,io=null;function so(ao){const{dir:lo,renderer:uo}=ao,co=lo==="ltr";return co?oo===null&&(oo=reduceToClassNameForSlots(eo,lo)):io===null&&(io=reduceToClassNameForSlots(eo,lo)),no(uo,to),co?oo:io}return so}function __resetStyles$1(eo,to,ro,no=insertionFactory$1){const oo=no();function io(so){const{dir:ao,renderer:lo}=so,uo=ao==="ltr"?eo:to||eo;return oo(lo,Array.isArray(ro)?{r:ro}:ro),uo}return io}const shorthands={border,borderLeft,borderBottom,borderRight,borderTop,borderColor,borderStyle,borderRadius:borderRadius$1,borderWidth:borderWidth$1,flex,gap,gridArea,margin,marginBlock,marginInline,padding,paddingBlock,paddingInline,overflow,inset,outline,transition:transition$1,textDecoration};function canUseDOM$4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const useInsertionEffect$2=React$1.useInsertionEffect?React$1.useInsertionEffect:void 0,insertionFactory=()=>{const eo={};return function(ro,no){if(useInsertionEffect$2&&canUseDOM$4()){useInsertionEffect$2(()=>{ro.insertCSSRules(no)},[ro,no]);return}eo[ro.id]===void 0&&(ro.insertCSSRules(no),eo[ro.id]=!0)}},RendererContext=reactExports.createContext(createDOMRenderer());function useRenderer(){return reactExports.useContext(RendererContext)}const TextDirectionContext=reactExports.createContext("ltr"),TextDirectionProvider=({children:eo,dir:to})=>reactExports.createElement(TextDirectionContext.Provider,{value:to},eo);function useTextDirection(){return reactExports.useContext(TextDirectionContext)}function makeStyles(eo){const to=makeStyles$1(eo,insertionFactory);return function(){const no=useTextDirection(),oo=useRenderer();return to({dir:no,renderer:oo})}}function __styles(eo,to){const ro=__styles$1(eo,to,insertionFactory);return function(){const oo=useTextDirection(),io=useRenderer();return ro({dir:oo,renderer:io})}}function __resetStyles(eo,to,ro){const no=__resetStyles$1(eo,to,ro,insertionFactory);return function(){const io=useTextDirection(),so=useRenderer();return no({dir:io,renderer:so})}}function createCSSRuleFromTheme(eo,to){if(to){const ro=Object.keys(to).reduce((no,oo)=>`${no}--${oo}: ${to[oo]}; `,"");return`${eo} { ${ro} }`}return`${eo} {}`}const SLOT_RENDER_FUNCTION_SYMBOL=Symbol("fui.slotRenderFunction"),SLOT_ELEMENT_TYPE_SYMBOL=Symbol("fui.slotElementType");function always(eo,to){const{defaultProps:ro,elementType:no}=to,oo=resolveShorthand(eo),io={...ro,...oo,[SLOT_ELEMENT_TYPE_SYMBOL]:no};return oo&&typeof oo.children=="function"&&(io[SLOT_RENDER_FUNCTION_SYMBOL]=oo.children,io.children=ro==null?void 0:ro.children),io}function optional(eo,to){if(!(eo===null||eo===void 0&&!to.renderByDefault))return always(eo,to)}function resolveShorthand(eo){return typeof eo=="string"||typeof eo=="number"||Array.isArray(eo)||reactExports.isValidElement(eo)?{children:eo}:eo}function isSlot(eo){return!!(eo!=null&&eo.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL))}function isResolvedShorthand(eo){return eo!==null&&typeof eo=="object"&&!Array.isArray(eo)&&!reactExports.isValidElement(eo)}const toObjectMap$1=(...eo)=>{const to={};for(const ro of eo){const no=Array.isArray(ro)?ro:Object.keys(ro);for(const oo of no)to[oo]=1}return to},baseElementEvents$1=toObjectMap$1(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),baseElementProperties$1=toObjectMap$1(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),microdataProperties=toObjectMap$1(["itemID","itemProp","itemRef","itemScope","itemType"]),htmlElementProperties$1=toObjectMap$1(baseElementProperties$1,baseElementEvents$1,microdataProperties),labelProperties=toObjectMap$1(htmlElementProperties$1,["form"]),audioProperties$1=toObjectMap$1(htmlElementProperties$1,["height","loop","muted","preload","src","width"]),videoProperties=toObjectMap$1(audioProperties$1,["poster"]),olProperties=toObjectMap$1(htmlElementProperties$1,["start"]),liProperties=toObjectMap$1(htmlElementProperties$1,["value"]),anchorProperties$1=toObjectMap$1(htmlElementProperties$1,["download","href","hrefLang","media","rel","target","type"]),timeProperties=toObjectMap$1(htmlElementProperties$1,["dateTime"]),buttonProperties$1=toObjectMap$1(htmlElementProperties$1,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),inputProperties=toObjectMap$1(buttonProperties$1,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textAreaProperties=toObjectMap$1(buttonProperties$1,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),selectProperties=toObjectMap$1(buttonProperties$1,["form","multiple","required"]),optionProperties=toObjectMap$1(htmlElementProperties$1,["selected","value"]),tableProperties=toObjectMap$1(htmlElementProperties$1,["cellPadding","cellSpacing"]),trProperties=htmlElementProperties$1,thProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","rowSpan","scope"]),tdProperties=toObjectMap$1(htmlElementProperties$1,["colSpan","headers","rowSpan","scope"]),colGroupProperties=toObjectMap$1(htmlElementProperties$1,["span"]),colProperties=toObjectMap$1(htmlElementProperties$1,["span"]),fieldsetProperties=toObjectMap$1(htmlElementProperties$1,["disabled","form"]),formProperties=toObjectMap$1(htmlElementProperties$1,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframeProperties=toObjectMap$1(htmlElementProperties$1,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),imgProperties$1=toObjectMap$1(htmlElementProperties$1,["alt","crossOrigin","height","src","srcSet","useMap","width"]),dialogProperties=toObjectMap$1(htmlElementProperties$1,["open","onCancel","onClose"]);function getNativeProps$1(eo,to,ro){const no=Array.isArray(to),oo={},io=Object.keys(eo);for(const so of io)(!no&&to[so]||no&&to.indexOf(so)>=0||so.indexOf("data-")===0||so.indexOf("aria-")===0)&&(!ro||(ro==null?void 0:ro.indexOf(so))===-1)&&(oo[so]=eo[so]);return oo}const nativeElementMap={label:labelProperties,audio:audioProperties$1,video:videoProperties,ol:olProperties,li:liProperties,a:anchorProperties$1,button:buttonProperties$1,input:inputProperties,textarea:textAreaProperties,select:selectProperties,option:optionProperties,table:tableProperties,tr:trProperties,th:thProperties,td:tdProperties,colGroup:colGroupProperties,col:colProperties,fieldset:fieldsetProperties,form:formProperties,iframe:iframeProperties,img:imgProperties$1,time:timeProperties,dialog:dialogProperties};function getNativeElementProps(eo,to,ro){const no=eo&&nativeElementMap[eo]||htmlElementProperties$1;return no.as=1,getNativeProps$1(to,no,ro)}const getPartitionedNativeProps=({primarySlotTagName:eo,props:to,excludedPropNames:ro})=>({root:{style:to.style,className:to.className},primary:getNativeElementProps(eo,to,[...ro||[],"style","className"])}),getIntrinsicElementProps=(eo,to,ro)=>{var no;return getNativeElementProps((no=to.as)!==null&&no!==void 0?no:eo,to,ro)};function canUseDOM$3(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function useBrowserTimer(eo,to){const ro=reactExports.useRef(void 0),no=reactExports.useCallback((io,so)=>(ro.current!==void 0&&to(ro.current),ro.current=eo(io,so),ro.current),[to,eo]),oo=reactExports.useCallback(()=>{ro.current!==void 0&&(to(ro.current),ro.current=void 0)},[to]);return reactExports.useEffect(()=>oo,[oo]),[no,oo]}const setAnimationFrameNoop=eo=>(eo(0),0),cancelAnimationFrameNoop=eo=>eo;function useAnimationFrame(){const eo=canUseDOM$3();return useBrowserTimer(eo?requestAnimationFrame:setAnimationFrameNoop,eo?cancelAnimationFrame:cancelAnimationFrameNoop)}function isFactoryDispatch(eo){return typeof eo=="function"}const useControllableState=eo=>{const[to,ro]=reactExports.useState(()=>eo.defaultState===void 0?eo.initialState:isInitializer(eo.defaultState)?eo.defaultState():eo.defaultState),no=reactExports.useRef(eo.state);reactExports.useEffect(()=>{no.current=eo.state},[eo.state]);const oo=reactExports.useCallback(io=>{isFactoryDispatch(io)&&io(no.current)},[]);return useIsControlled(eo.state)?[eo.state,oo]:[to,ro]};function isInitializer(eo){return typeof eo=="function"}const useIsControlled=eo=>{const[to]=reactExports.useState(()=>eo!==void 0);return to},defaultSSRContextValue={current:0},SSRContext=reactExports.createContext(void 0);function useSSRContext(){var eo;return(eo=reactExports.useContext(SSRContext))!==null&&eo!==void 0?eo:defaultSSRContextValue}function useIsSSR(){const eo=useSSRContext()!==defaultSSRContextValue,[to,ro]=reactExports.useState(eo);return canUseDOM$3()&&eo&&reactExports.useLayoutEffect(()=>{ro(!1)},[]),to}const useIsomorphicLayoutEffect$1=canUseDOM$3()?reactExports.useLayoutEffect:reactExports.useEffect,useEventCallback$3=eo=>{const to=reactExports.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect$1(()=>{to.current=eo},[eo]),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[to])};function useFirstMount(){const eo=reactExports.useRef(!0);return eo.current?(eo.current=!1,!0):eo.current}const IdPrefixContext=reactExports.createContext(void 0);IdPrefixContext.Provider;function useIdPrefix(){return reactExports.useContext(IdPrefixContext)||""}function useId$1(eo="fui-",to){const ro=useSSRContext(),no=useIdPrefix(),oo=React$1.useId;if(oo){const io=oo(),so=reactExports.useMemo(()=>io.replace(/:/g,""),[io]);return to||`${no}${eo}${so}`}return reactExports.useMemo(()=>to||`${no}${eo}${++ro.current}`,[no,eo,to,ro])}function useMergedRefs$1(...eo){const to=reactExports.useCallback(ro=>{to.current=ro;for(const no of eo)typeof no=="function"?no(ro):no&&(no.current=ro)},[...eo]);return to}const ThemeContext$2=reactExports.createContext(void 0),ThemeProvider=ThemeContext$2.Provider,ThemeClassNameContext=reactExports.createContext(void 0),themeClassNameContextDefaultVaue="",ThemeClassNameProvider=ThemeClassNameContext.Provider;function useThemeClassName(){var eo;return(eo=reactExports.useContext(ThemeClassNameContext))!==null&&eo!==void 0?eo:themeClassNameContextDefaultVaue}const TooltipVisibilityContext=reactExports.createContext(void 0),tooltipVisibilityContextDefaultValue={},TooltipVisibilityProvider=TooltipVisibilityContext.Provider;function useTooltipVisibility(){var eo;return(eo=reactExports.useContext(TooltipVisibilityContext))!==null&&eo!==void 0?eo:tooltipVisibilityContextDefaultValue}const ProviderContext=reactExports.createContext(void 0),providerContextDefaultValue={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},Provider$1=ProviderContext.Provider;function useFluent(){var eo;return(eo=reactExports.useContext(ProviderContext))!==null&&eo!==void 0?eo:providerContextDefaultValue}const OverridesContext=reactExports.createContext(void 0),OverridesProvider=OverridesContext.Provider;function useOverrides(){var eo;return(eo=reactExports.useContext(OverridesContext))!==null&&eo!==void 0?eo:{}}const CustomStyleHooksContext=reactExports.createContext(void 0),noop$6=()=>{},CustomStyleHooksProvider=CustomStyleHooksContext.Provider,useCustomStyleHook=eo=>{var to,ro;return(ro=(to=reactExports.useContext(CustomStyleHooksContext))===null||to===void 0?void 0:to[eo])!==null&&ro!==void 0?ro:noop$6},BackgroundAppearanceContext=reactExports.createContext(void 0);BackgroundAppearanceContext.Provider;function useBackgroundAppearance(){return reactExports.useContext(BackgroundAppearanceContext)}const PortalMountNodeContext=reactExports.createContext(void 0);PortalMountNodeContext.Provider;function usePortalMountNode$1(){return reactExports.useContext(PortalMountNodeContext)}const AnnounceContext=reactExports.createContext(void 0);AnnounceContext.Provider;function useAnnounce(){var eo;return(eo=reactExports.useContext(AnnounceContext))!==null&&eo!==void 0?eo:{announce:()=>{}}}const DEFAULT_CONTAINS=(eo,to)=>!!(eo!=null&&eo.contains(to)),useOnClickOutside=eo=>{const{targetDocument:to}=useFluent(),ro=to==null?void 0:to.defaultView,{refs:no,callback:oo,element:io,disabled:so,disabledFocusOnIframe:ao,contains:lo=DEFAULT_CONTAINS}=eo,uo=reactExports.useRef(void 0);useIFrameFocus({element:io,disabled:ao||so,callback:oo,refs:no,contains:lo});const co=reactExports.useRef(!1),fo=useEventCallback$3(ho=>{if(co.current){co.current=!1;return}const mo=ho.composedPath()[0];no.every(bo=>!lo(bo.current||null,mo))&&!so&&oo(ho)}),po=useEventCallback$3(ho=>{co.current=no.some(mo=>lo(mo.current||null,ho.target))});reactExports.useEffect(()=>{if(so)return;let ho=getWindowEvent(ro);const mo=vo=>{if(vo===ho){ho=void 0;return}fo(vo)};return io==null||io.addEventListener("click",mo,!0),io==null||io.addEventListener("touchstart",mo,!0),io==null||io.addEventListener("contextmenu",mo,!0),io==null||io.addEventListener("mousedown",po,!0),uo.current=ro==null?void 0:ro.setTimeout(()=>{ho=void 0},1),()=>{io==null||io.removeEventListener("click",mo,!0),io==null||io.removeEventListener("touchstart",mo,!0),io==null||io.removeEventListener("contextmenu",mo,!0),io==null||io.removeEventListener("mousedown",po,!0),ro==null||ro.clearTimeout(uo.current),ho=void 0}},[fo,io,so,po,ro])},getWindowEvent=eo=>{if(eo){var to,ro;if(typeof eo.window=="object"&&eo.window===eo)return eo.event;var no;return(no=(ro=eo.ownerDocument)===null||ro===void 0||(to=ro.defaultView)===null||to===void 0?void 0:to.event)!==null&&no!==void 0?no:void 0}},FUI_FRAME_EVENT="fuiframefocus",useIFrameFocus=eo=>{const{disabled:to,element:ro,callback:no,contains:oo=DEFAULT_CONTAINS,pollDuration:io=1e3,refs:so}=eo,ao=reactExports.useRef(),lo=useEventCallback$3(uo=>{so.every(fo=>!oo(fo.current||null,uo.target))&&!to&&no(uo)});reactExports.useEffect(()=>{if(!to)return ro==null||ro.addEventListener(FUI_FRAME_EVENT,lo,!0),()=>{ro==null||ro.removeEventListener(FUI_FRAME_EVENT,lo,!0)}},[ro,to,lo]),reactExports.useEffect(()=>{var uo;if(!to)return ao.current=ro==null||(uo=ro.defaultView)===null||uo===void 0?void 0:uo.setInterval(()=>{const co=ro==null?void 0:ro.activeElement;if((co==null?void 0:co.tagName)==="IFRAME"||(co==null?void 0:co.tagName)==="WEBVIEW"){const fo=new CustomEvent(FUI_FRAME_EVENT,{bubbles:!0});co.dispatchEvent(fo)}},io),()=>{var co;ro==null||(co=ro.defaultView)===null||co===void 0||co.clearTimeout(ao.current)}},[ro,to,io])},useOnScrollOutside=eo=>{const{refs:to,callback:ro,element:no,disabled:oo,contains:io}=eo,so=useEventCallback$3(ao=>{const lo=io||((fo,po)=>!!(fo!=null&&fo.contains(po))),uo=ao.composedPath()[0];to.every(fo=>!lo(fo.current||null,uo))&&!oo&&ro(ao)});reactExports.useEffect(()=>{if(!oo)return no==null||no.addEventListener("wheel",so),no==null||no.addEventListener("touchmove",so),()=>{no==null||no.removeEventListener("wheel",so),no==null||no.removeEventListener("touchmove",so)}},[so,no,oo])};function useTimeout(){return useBrowserTimer(setTimeout,clearTimeout)}function mergeCallbacks(eo,to){return(...ro)=>{eo==null||eo(...ro),to==null||to(...ro)}}function isHTMLElement$6(eo,to){var ro;const no=eo;var oo;return!!(!(no==null||(ro=no.ownerDocument)===null||ro===void 0)&&ro.defaultView&&no instanceof no.ownerDocument.defaultView[(oo=to==null?void 0:to.constructorName)!==null&&oo!==void 0?oo:"HTMLElement"])}function isFluentTrigger(eo){return!!eo.type.isFluentTriggerComponent}function applyTriggerPropsToChildren(eo,to){return typeof eo=="function"?eo(to):eo?cloneTriggerTree(eo,to):eo||null}function cloneTriggerTree(eo,to){if(!reactExports.isValidElement(eo)||eo.type===reactExports.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(isFluentTrigger(eo)){const ro=cloneTriggerTree(eo.props.children,to);return reactExports.cloneElement(eo,void 0,ro)}else return reactExports.cloneElement(eo,to)}function getTriggerChild(eo){return reactExports.isValidElement(eo)?isFluentTrigger(eo)?getTriggerChild(eo.props.children):eo:null}function isVirtualElement$1(eo){return eo&&!!eo._virtual}function getVirtualParent$1(eo){return isVirtualElement$1(eo)&&eo._virtual.parent||null}function getParent$1(eo,to={}){if(!eo)return null;if(!to.skipVirtual){const ro=getVirtualParent$1(eo);if(ro)return ro}return(eo==null?void 0:eo.parentNode)||null}function elementContains$1(eo,to){if(!eo||!to)return!1;if(eo===to)return!0;{const ro=new WeakSet;for(;to;){const no=getParent$1(to,{skipVirtual:ro.has(to)});if(ro.add(to),no===eo)return!0;to=no}}return!1}function setVirtualParent$1(eo,to){if(!eo)return;const ro=eo;ro._virtual||(ro._virtual={}),ro._virtual.parent=to}function createCompatSlotComponent(eo,to){return{...to,[SLOT_ELEMENT_TYPE_SYMBOL]:eo}}function createJSX(eo,to){return function(no,oo,io,so,ao){return isSlot(oo)?to(createCompatSlotComponent(no,oo),null,io,so,ao):isSlot(no)?to(no,oo,io,so,ao):eo(no,oo,io,so,ao)}}function getMetadataFromSlotComponent(eo){const{as:to,[SLOT_ELEMENT_TYPE_SYMBOL]:ro,[SLOT_RENDER_FUNCTION_SYMBOL]:no,...oo}=eo,io=oo,so=typeof ro=="string"?to??ro:ro;return typeof so!="string"&&to&&(io.as=to),{elementType:so,props:io,renderFunction:no}}const Runtime=ReactRuntime,jsxSlot=(eo,to,ro)=>{const{elementType:no,renderFunction:oo,props:io}=getMetadataFromSlotComponent(eo),so={...io,...to};return oo?Runtime.jsx(reactExports.Fragment,{children:oo(no,so)},ro):Runtime.jsx(no,so,ro)},jsxsSlot=(eo,to,ro)=>{const{elementType:no,renderFunction:oo,props:io}=getMetadataFromSlotComponent(eo),so={...io,...to};return oo?Runtime.jsx(reactExports.Fragment,{children:oo(no,{...so,children:Runtime.jsxs(reactExports.Fragment,{children:so.children},void 0)})},ro):Runtime.jsxs(no,so,ro)},jsx$1=createJSX(Runtime.jsx,jsxSlot),jsxs=createJSX(Runtime.jsxs,jsxsSlot),IconDirectionContext=reactExports.createContext(void 0),IconDirectionContextDefaultValue={},IconDirectionContextProvider=IconDirectionContext.Provider,useIconContext=()=>reactExports.useContext(IconDirectionContext)?reactExports.useContext(IconDirectionContext):IconDirectionContextDefaultValue,useRootStyles$7=__styles({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),useIconState=(eo,to)=>{const{title:ro,primaryFill:no="currentColor",...oo}=eo,io={...oo,title:void 0,fill:no},so=useRootStyles$7(),ao=useIconContext();return io.className=mergeClasses(so.root,(to==null?void 0:to.flipInRtl)&&(ao==null?void 0:ao.textDirection)==="rtl"&&so.rtl,io.className),ro&&(io["aria-label"]=ro),!io["aria-label"]&&!io["aria-labelledby"]?io["aria-hidden"]=!0:io.role="img",io},createFluentIcon=(eo,to,ro,no)=>{const oo=to==="1em"?"20":to,io=reactExports.forwardRef((so,ao)=>{const lo={...useIconState(so,{flipInRtl:no==null?void 0:no.flipInRtl}),ref:ao,width:to,height:to,viewBox:`0 0 ${oo} ${oo}`,xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement("svg",lo,...ro.map(uo=>reactExports.createElement("path",{d:uo,fill:lo.fill})))});return io.displayName=eo,io},CheckmarkFilled=createFluentIcon("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),CheckmarkCircleFilled=createFluentIcon("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ChevronDownRegular=createFluentIcon("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),ChevronRightRegular=createFluentIcon("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),CircleFilled=createFluentIcon("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),ErrorCircleFilled=createFluentIcon("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),FlowchartRegular=createFluentIcon("FlowchartRegular","1em",["M4.5 3C3.67 3 3 3.67 3 4.5v2C3 7.33 3.67 8 4.5 8H5v3.84a1 1 0 0 0-.2.16L3 13.8a1 1 0 0 0 0 1.4L4.8 17a1 1 0 0 0 1.4 0L8 15.2a1 1 0 0 0 .16-.2H12v.5c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5v-2c0-.83-.67-1.5-1.5-1.5h-2c-.83 0-1.5.67-1.5 1.5v.5H8.16a1 1 0 0 0-.16-.2L6.2 12a1 1 0 0 0-.2-.16V8h.5C7.33 8 8 7.33 8 6.5v-2C8 3.67 7.33 3 6.5 3h-2ZM4 4.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2Zm-.3 10 1.8-1.8 1.8 1.8-1.8 1.8-1.8-1.8Zm9.8-1.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2c0-.28.22-.5.5-.5Z"]),InfoFilled=createFluentIcon("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),WarningFilled=createFluentIcon("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),Alert24Regular=createFluentIcon("Alert24Regular","24",["M12 2a7.5 7.5 0 0 1 7.5 7.25v4.35l1.38 3.15a1.25 1.25 0 0 1-1.15 1.75H15a3 3 0 0 1-6 .18v-.18H4.27a1.25 1.25 0 0 1-1.14-1.75L4.5 13.6V9.5C4.5 5.35 7.85 2 12 2Zm1.5 16.5h-3a1.5 1.5 0 0 0 3 .15v-.15ZM12 3.5c-3.32 0-6 2.67-6 6v4.4L4.66 17h14.7L18 13.9V9.29a5.99 5.99 0 0 0-6-5.78Z"]),ArrowClockwise16Regular=createFluentIcon("ArrowClockwise16Regular","16",["M3 8a5 5 0 0 1 9-3H9.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-1 0v1.03A6 6 0 1 0 14 8a.5.5 0 0 0-1 0A5 5 0 0 1 3 8Z"]),ArrowClockwiseDashes20Filled=createFluentIcon("ArrowClockwiseDashes20Filled","20",["M8.44 2.15a8.03 8.03 0 0 1 3.12 0 .75.75 0 0 1-.3 1.47 6.54 6.54 0 0 0-2.53 0 .75.75 0 0 1-.29-1.47Zm4.96 1.4a.75.75 0 0 1 1.05-.2c.57.38 1.1.84 1.55 1.36V2.75a.75.75 0 0 1 1.5 0v4c0 .41-.34.75-.75.75h-4a.75.75 0 0 1 0-1.5h2.37a6.54 6.54 0 0 0-1.5-1.4.75.75 0 0 1-.21-1.05ZM6.4 4.6a.75.75 0 0 0-.84-1.24 8.04 8.04 0 0 0-2.2 2.2.75.75 0 0 0 1.24.84 6.54 6.54 0 0 1 1.8-1.8ZM3.03 7.85c.41.08.67.47.6.88a6.54 6.54 0 0 0 0 2.54.75.75 0 0 1-1.48.29 8.04 8.04 0 0 1 0-3.12c.08-.4.48-.67.88-.6ZM18 10v-.25a.75.75 0 0 0-1.5 0V10c0 .44-.04.86-.12 1.27a.75.75 0 1 0 1.47.29c.1-.5.15-1.03.15-1.56ZM3.55 13.4a.75.75 0 0 1 1.04.21c.48.71 1.09 1.32 1.8 1.8a.75.75 0 0 1-.84 1.24 8.04 8.04 0 0 1-2.2-2.2.75.75 0 0 1 .2-1.04Zm13.1 1.05a.75.75 0 0 0-1.24-.84 6.54 6.54 0 0 1-1.8 1.8.75.75 0 0 0 .84 1.24 8.04 8.04 0 0 0 2.2-2.2Zm-8.8 2.52c.08-.41.47-.67.88-.6a6.54 6.54 0 0 0 2.54 0 .75.75 0 1 1 .29 1.48 8.03 8.03 0 0 1-3.12 0 .75.75 0 0 1-.6-.88Z"]),ArrowDown20Regular=createFluentIcon("ArrowDown20Regular","20",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),ArrowUp20Regular=createFluentIcon("ArrowUp20Regular","20",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"]),ArrowUpload24Regular=createFluentIcon("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),Attach16Regular=createFluentIcon("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),BranchRequest16Regular=createFluentIcon("BranchRequest16Regular","16",["M13 10.05V5.5A2.5 2.5 0 0 0 10.5 3H8.71l1.14-1.15c.2-.19.2-.51 0-.7a.48.48 0 0 0-.7 0l-2 2c-.2.19-.2.51 0 .7l2 2c.19.2.51.2.7 0 .2-.19.2-.51 0-.7L8.71 4h1.79c.83 0 1.5.67 1.5 1.5v4.55a2.5 2.5 0 1 0 1 0ZM12.5 14a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3ZM6 3.5a2.5 2.5 0 1 0-3 2.45v4.1a2.5 2.5 0 1 0 1 0v-4.1A2.5 2.5 0 0 0 6 3.5Zm-4 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm3 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),Checkmark12Filled=createFluentIcon("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),CheckmarkCircle20Filled=createFluentIcon("CheckmarkCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),ChevronDown16Filled=createFluentIcon("ChevronDown16Filled","16",["M3.2 5.74a.75.75 0 0 1 1.06-.04L8 9.23l3.74-3.53a.75.75 0 1 1 1.02 1.1l-4.25 4a.75.75 0 0 1-1.02 0l-4.25-4a.75.75 0 0 1-.04-1.06Z"]),ChevronDown16Regular=createFluentIcon("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),ChevronDown20Regular=createFluentIcon("ChevronDown20Regular","20",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),ChevronLeft12Regular=createFluentIcon("ChevronLeft12Regular","12",["M7.35 2.15c.2.2.2.5 0 .7L4.21 6l3.14 3.15a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z"]),ChevronLeft16Regular=createFluentIcon("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),ChevronLeft20Regular=createFluentIcon("ChevronLeft20Regular","20",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),ChevronRight12Regular=createFluentIcon("ChevronRight12Regular","12",["M4.65 2.15a.5.5 0 0 0 0 .7L7.79 6 4.65 9.15a.5.5 0 1 0 .7.7l3.5-3.5a.5.5 0 0 0 0-.7l-3.5-3.5a.5.5 0 0 0-.7 0Z"]),ChevronRight16Filled=createFluentIcon("ChevronRight16Filled","16",["M5.74 3.2a.75.75 0 0 0-.04 1.06L9.23 8 5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04Z"]),ChevronRight16Regular=createFluentIcon("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),ChevronRight20Regular=createFluentIcon("ChevronRight20Regular","20",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),Clock20Regular=createFluentIcon("Clock20Regular","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm-.5 2a.5.5 0 0 1 .5.41V10h2.5a.5.5 0 0 1 .09 1H9.5a.5.5 0 0 1-.5-.41V5.5c0-.28.22-.5.5-.5Z"]),Copy20Regular=createFluentIcon("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),CopyArrowRight20Regular=createFluentIcon("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),Dismiss20Regular=createFluentIcon("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Dismiss24Regular=createFluentIcon("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),DismissCircle20Filled=createFluentIcon("DismissCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),Document16Regular=createFluentIcon("Document16Regular","16",["M5 1a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V5.41c0-.4-.16-.78-.44-1.06L9.65 1.44A1.5 1.5 0 0 0 8.59 1H5ZM4 3a1 1 0 0 1 1-1h3v2.5C8 5.33 8.67 6 9.5 6H12v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3Zm7.8 2H9.5a.5.5 0 0 1-.5-.5V2.2L11.8 5Z"]),ErrorCircle16Filled=createFluentIcon("ErrorCircle16Filled","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 8a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-5.5a.5.5 0 0 0-.5.41V8.59a.5.5 0 0 0 1 0V4.91A.5.5 0 0 0 8 4.5Z"]),ErrorCircle20Filled=createFluentIcon("ErrorCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),Flow16Regular=createFluentIcon("Flow16Regular","16",["M12.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-2.45 2a2.5 2.5 0 1 0 0-1H9.5a2 2 0 0 0-2 2v2a1 1 0 0 1-1 1h-.55a2.5 2.5 0 1 0 0 1h.55a2 2 0 0 0 2-2V7a1 1 0 0 1 1-1h.55ZM5 10.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"]),GanttChart20Regular=createFluentIcon("GanttChart20Regular","20",["M4.5 7a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4ZM9 9.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm3.5 1.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm-8-7A2.5 2.5 0 0 0 2 6.5v7A2.5 2.5 0 0 0 4.5 16h11a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 15.5 4h-11ZM3 6.5C3 5.67 3.67 5 4.5 5H7v1h1V5h4v3h1V5h2.5c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5H13v-2h-1v2H8V9H7v6H4.5A1.5 1.5 0 0 1 3 13.5v-7Z"]),HexagonThree16Regular=createFluentIcon("HexagonThree16Regular","16",["M3.47 2a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1L7.53 7a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5L2.31 5a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM3.46 9a1 1 0 0 1 .87-.5h2.32a1 1 0 0 1 .87.5l1.16 2a1 1 0 0 1 0 1l-1.16 2a1 1 0 0 1-.87.5H4.34a1 1 0 0 1-.87-.5l-1.16-2a1 1 0 0 1 0-1l1.16-2Zm3.2.5H4.33l-1.16 2 1.16 2h2.32l1.16-2-1.16-2ZM10.33 5a1 1 0 0 0-.87.5l-1.16 2a1 1 0 0 0 0 1l1.16 2c.18.31.51.5.87.5h2.32a1 1 0 0 0 .87-.5l1.16-2a1 1 0 0 0 0-1l-1.16-2a1 1 0 0 0-.87-.5h-2.32Zm0 1h2.32l1.16 2-1.16 2h-2.32L9.18 8l1.16-2Z"]),Link16Regular=createFluentIcon("Link16Regular","16",["M9.5 4h1a3.5 3.5 0 0 1 .2 7H9.5a.5.5 0 0 1-.1-.99h.1l1-.01a2.5 2.5 0 0 0 .16-5H9.5a.5.5 0 0 1-.09-1h1.09-1Zm-4 0h1a.5.5 0 0 1 .09 1H5.5a2.5 2.5 0 0 0-.16 5H6.5a.5.5 0 0 1 .09 1H5.5a3.5 3.5 0 0 1-.2-7h1.2-1Zm0 3h5a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h.09Z"]),NumberCircle020Regular=createFluentIcon("NumberCircle020Regular","20",["M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-7 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm-2-8c0-1.07.15-1.97.49-2.6.16-.3.36-.51.6-.66.23-.15.52-.24.91-.24s.68.1.92.24c.23.15.43.37.6.67.33.62.48 1.52.48 2.59 0 1.07-.15 1.97-.49 2.6-.16.3-.36.51-.6.66-.23.15-.52.24-.91.24s-.68-.1-.92-.24a1.74 1.74 0 0 1-.6-.67A5.65 5.65 0 0 1 8 10Zm2-4.5c-.55 0-1.04.13-1.45.4-.4.25-.72.61-.94 1.03A6.6 6.6 0 0 0 7 10c0 1.14.16 2.23.6 3.07.23.42.54.78.95 1.04.41.26.9.39 1.45.39.55 0 1.04-.13 1.45-.4.4-.25.72-.61.94-1.03.45-.84.61-1.93.61-3.07a6.6 6.6 0 0 0-.6-3.07 2.74 2.74 0 0 0-.95-1.04c-.41-.26-.9-.39-1.45-.39Z"]),Person24Regular=createFluentIcon("Person24Regular","24",["M17.75 14C19 14 20 15 20 16.25v.57c0 .9-.32 1.76-.9 2.44C17.53 21.1 15.15 22 12 22c-3.15 0-5.53-.9-7.1-2.74a3.75 3.75 0 0 1-.9-2.43v-.58C4 15 5.01 14 6.25 14h11.5Zm0 1.5H6.25a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C7.3 19.76 9.26 20.5 12 20.5c2.74 0 4.7-.74 5.96-2.21.35-.41.54-.93.54-1.47v-.57a.75.75 0 0 0-.75-.75ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z"]),QuestionCircle16Regular=createFluentIcon("QuestionCircle16Regular","16",["M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2Zm0 1a5 5 0 1 0 0 10A5 5 0 0 0 8 3Zm0 7.5A.75.75 0 1 1 8 12a.75.75 0 0 1 0-1.5Zm0-6a2 2 0 0 1 2 2c0 .73-.21 1.14-.75 1.7l-.27.28c-.38.4-.48.6-.48 1.02a.5.5 0 0 1-1 0c0-.73.21-1.14.75-1.7l.27-.28c.38-.4.48-.6.48-1.02a1 1 0 0 0-2 0 .5.5 0 0 1-1 0c0-1.1.9-2 2-2Z"]),QuestionCircle20Filled=createFluentIcon("QuestionCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 11.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0-8A2.5 2.5 0 0 0 7.5 8a.5.5 0 0 0 1 0 1.5 1.5 0 1 1 2.63.98l-.1.11-.12.1-.25.19A3.2 3.2 0 0 0 9.5 12a.5.5 0 0 0 1 0c0-.76.2-1.25.53-1.61l.08-.08.08-.07.09-.07.22-.17.15-.12A2.5 2.5 0 0 0 10 5.5Z"]),SendCopy20Regular=createFluentIcon("SendCopy20Regular","20",["M8.65 2.15c.2-.2.5-.2.7 0l3 3a.5.5 0 0 1-.7.7L9.5 3.71v7.79a.5.5 0 0 1-1 0V3.7L6.35 5.86a.5.5 0 1 1-.7-.7l3-3ZM5.27 17c.34.6.99 1 1.73 1h6a4 4 0 0 0 4-4v-3.5a.5.5 0 1 0-1 0V14a3 3 0 0 1-3 3H5.27ZM4 8.5a.5.5 0 0 0-1 0V14c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-1 0V14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8.5Z"]),ShieldCheckmark24Regular=createFluentIcon("ShieldCheckmark24Regular","24",["M3 5.75c0-.41.34-.75.75-.75 2.66 0 5.26-.94 7.8-2.85.27-.2.63-.2.9 0C14.99 4.05 17.59 5 20.25 5c.41 0 .75.34.75.75V11c0 .34-.01.67-.04 1a6.47 6.47 0 0 0-1.46-.69V6.48a14.36 14.36 0 0 1-7.5-2.8 14.36 14.36 0 0 1-7.5 2.8V11c0 4.15 2.33 7.22 7.13 9.28.26.56.6 1.07 1 1.52l-.36.15a.75.75 0 0 1-.54 0C5.96 19.68 3 16 3 11V5.75ZM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-2.15-2.35a.5.5 0 0 0-.7 0l-3.65 3.64-1.65-1.64a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l4-4a.5.5 0 0 0 0-.7Z"]),TextBulletListSquareWarning24Regular=createFluentIcon("TextBulletListSquareWarning24Regular","24",["M7.75 9.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3.5-1.75a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5h-5.5Zm0 3.75a.75.75 0 1 0 0 1.5h3.83l.19-.37c.26-.53.67-.9 1.13-1.13h-5.15Zm0 3.75h2.7l-.74 1.5h-1.96a.75.75 0 1 1 0-1.5Zm-5 4.5h5.46l-.44.88c-.1.2-.17.41-.22.62h-4.8A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h11.5C19.55 3 21 4.46 21 6.25v8.65l-1.26-2.52a2.6 2.6 0 0 0-.24-.39V6.25c0-.97-.78-1.75-1.75-1.75H6.25c-.97 0-1.75.78-1.75 1.75v11.5c0 .97.78 1.75 1.75 1.75Zm2.5-7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm8.41-3.92a1.5 1.5 0 0 1 2.69 0l4 8c.5 1-.23 2.17-1.35 2.17h-8a1.5 1.5 0 0 1-1.34-2.17l4-8ZM18 15.5a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0v-3Zm-.5 5.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"]),TextWrap16Regular=createFluentIcon("TextWrap16Regular","16",["M2 3.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h10a2.5 2.5 0 0 1 0 5H9.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 0 1 .7.7l-.64.65h2.79a1.5 1.5 0 0 0 0-3h-10a.5.5 0 0 1-.5-.5ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),TextWrapOff16Regular=createFluentIcon("TextWrapOff16Regular","16",["M14.15 14.85 11.29 12H9.71l.64.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7L9.29 10l-2-2H2.5a.5.5 0 0 1 0-1h3.8l-3-3h-.8a.5.5 0 0 1-.18-.97L1.15 1.85a.5.5 0 1 1 .7-.7l13 13a.5.5 0 0 1-.7.7ZM10.12 8l-1-1h3.38a2.5 2.5 0 0 1 1.27 4.65l-.74-.74A1.5 1.5 0 0 0 12.5 8h-2.38Zm-4-4-1-1h8.38a.5.5 0 0 1 0 1H6.12ZM6 11a.5.5 0 0 1 0 1H2.5a.5.5 0 0 1 0-1H6Z"]),ZoomIn20Regular=createFluentIcon("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),renderFluentProvider_unstable=(eo,to)=>jsx$1(Provider$1,{value:to.provider,children:jsx$1(ThemeProvider,{value:to.theme,children:jsx$1(ThemeClassNameProvider,{value:to.themeClassName,children:jsx$1(CustomStyleHooksProvider,{value:to.customStyleHooks_unstable,children:jsx$1(TooltipVisibilityProvider,{value:to.tooltip,children:jsx$1(TextDirectionProvider,{dir:to.textDirection,children:jsx$1(IconDirectionContextProvider,{value:to.iconDirection,children:jsx$1(OverridesProvider,{value:to.overrides_unstable,children:jsxs(eo.root,{children:[canUseDOM$3()?null:jsx$1("style",{dangerouslySetInnerHTML:{__html:eo.serverStyleProps.cssRule},...eo.serverStyleProps.attributes}),eo.root.children]})})})})})})})})});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const _canUseWeakRef=typeof WeakRef<"u";class WeakRefInstance{constructor(to){_canUseWeakRef&&typeof to=="object"?this._weakRef=new WeakRef(to):this._instance=to}deref(){var to,ro,no;let oo;return this._weakRef?(oo=(to=this._weakRef)===null||to===void 0?void 0:to.deref(),oo||delete this._weakRef):(oo=this._instance,!((no=(ro=oo)===null||ro===void 0?void 0:ro.isDisposed)===null||no===void 0)&&no.call(ro)&&delete this._instance),oo}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const KEYBORG_FOCUSIN="keyborg:focusin";function canOverrideNativeFocus(eo){const to=eo.HTMLElement,ro=to.prototype.focus;let no=!1;return to.prototype.focus=function(){no=!0},eo.document.createElement("button").focus(),to.prototype.focus=ro,no}let _canOverrideNativeFocus=!1;function nativeFocus(eo){const to=eo.focus;to.__keyborgNativeFocus?to.__keyborgNativeFocus.call(eo):eo.focus()}function setupFocusEvent(eo){const to=eo;_canOverrideNativeFocus||(_canOverrideNativeFocus=canOverrideNativeFocus(to));const ro=to.HTMLElement.prototype.focus;if(ro.__keyborgNativeFocus)return;to.HTMLElement.prototype.focus=so;const no=ao=>{const lo=ao.relatedTarget,uo=ao.currentTarget;uo.contains(lo)||(uo.removeEventListener("focusin",oo),uo.removeEventListener("focusout",no))},oo=ao=>{var lo;let uo=ao.target;if(!uo)return;uo.shadowRoot&&(uo.shadowRoot.addEventListener("focusin",oo),uo.shadowRoot.addEventListener("focusout",no),uo=ao.composedPath()[0]);const co={relatedTarget:ao.relatedTarget||void 0},fo=new CustomEvent(KEYBORG_FOCUSIN,{cancelable:!0,bubbles:!0,composed:!0,detail:co});fo.details=co,(_canOverrideNativeFocus||io.lastFocusedProgrammatically)&&(co.isFocusedProgrammatically=uo===((lo=io.lastFocusedProgrammatically)===null||lo===void 0?void 0:lo.deref()),io.lastFocusedProgrammatically=void 0),uo.dispatchEvent(fo)},io=to.__keyborgData={focusInHandler:oo};to.document.addEventListener("focusin",to.__keyborgData.focusInHandler,!0);function so(){const ao=to.__keyborgData;return ao&&(ao.lastFocusedProgrammatically=new WeakRefInstance(this)),ro.apply(this,arguments)}so.__keyborgNativeFocus=ro}function disposeFocusEvent(eo){const to=eo,ro=to.HTMLElement.prototype,no=ro.focus.__keyborgNativeFocus,oo=to.__keyborgData;oo&&(to.document.removeEventListener("focusin",oo.focusInHandler,!0),delete to.__keyborgData),no&&(ro.focus=no)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const _dismissTimeout=500;let _lastId=0;class KeyborgState{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(to){const ro=to.id;ro in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[ro]=new WeakRefInstance(to))}remove(to){delete this.__keyborgCoreRefs[to],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(to){if(this._isNavigatingWithKeyboard!==to){this._isNavigatingWithKeyboard=to;for(const ro of Object.keys(this.__keyborgCoreRefs)){const oo=this.__keyborgCoreRefs[ro].deref();oo?oo.update(to):this.remove(ro)}}}getVal(){return this._isNavigatingWithKeyboard}}const _state=new KeyborgState;class KeyborgCore{constructor(to,ro){this._onFocusIn=oo=>{if(this._isMouseUsedTimer||_state.getVal())return;const io=oo.detail;io.relatedTarget&&(io.isFocusedProgrammatically||io.isFocusedProgrammatically===void 0||_state.setVal(!0))},this._onMouseDown=oo=>{if(oo.buttons===0||oo.clientX===0&&oo.clientY===0&&oo.screenX===0&&oo.screenY===0)return;const io=this._win;io&&(this._isMouseUsedTimer&&io.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=io.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),_state.setVal(!1)},this._onKeyDown=oo=>{var io,so;const ao=_state.getVal(),lo=oo.keyCode,uo=this._triggerKeys;if(!ao&&(!uo||uo.has(lo))){const co=(io=this._win)===null||io===void 0?void 0:io.document.activeElement;if(co&&(co.tagName==="INPUT"||co.tagName==="TEXTAREA"||co.contentEditable==="true"))return;_state.setVal(!0)}else ao&&(!((so=this._dismissKeys)===null||so===void 0)&&so.has(lo))&&this._scheduleDismiss()},this.id="c"+ ++_lastId,this._win=to;const no=to.document;if(ro){const oo=ro.triggerKeys,io=ro.dismissKeys;oo!=null&&oo.length&&(this._triggerKeys=new Set(oo)),io!=null&&io.length&&(this._dismissKeys=new Set(io))}no.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),no.addEventListener("mousedown",this._onMouseDown,!0),to.addEventListener("keydown",this._onKeyDown,!0),setupFocusEvent(to),_state.add(this)}dispose(){const to=this._win;if(to){this._isMouseUsedTimer&&(to.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(to.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),disposeFocusEvent(to);const ro=to.document;ro.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),ro.removeEventListener("mousedown",this._onMouseDown,!0),to.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,_state.remove(this.id)}}isDisposed(){return!!this._win}update(to){var ro,no;const oo=(no=(ro=this._win)===null||ro===void 0?void 0:ro.__keyborg)===null||no===void 0?void 0:no.refs;if(oo)for(const io of Object.keys(oo))Keyborg.update(oo[io],to)}_scheduleDismiss(){const to=this._win;if(to){this._dismissTimer&&(to.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const ro=to.document.activeElement;this._dismissTimer=to.setTimeout(()=>{this._dismissTimer=void 0;const no=to.document.activeElement;ro&&no&&ro===no&&_state.setVal(!1)},_dismissTimeout)}}}class Keyborg{constructor(to,ro){this._cb=[],this._id="k"+ ++_lastId,this._win=to;const no=to.__keyborg;no?(this._core=no.core,no.refs[this._id]=this):(this._core=new KeyborgCore(to,ro),to.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(to,ro){return new Keyborg(to,ro)}static dispose(to){to.dispose()}static update(to,ro){to._cb.forEach(no=>no(ro))}dispose(){var to;const ro=(to=this._win)===null||to===void 0?void 0:to.__keyborg;ro!=null&&ro.refs[this._id]&&(delete ro.refs[this._id],Object.keys(ro.refs).length===0&&(ro.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return _state.getVal()}subscribe(to){this._cb.push(to)}unsubscribe(to){const ro=this._cb.indexOf(to);ro>=0&&this._cb.splice(ro,1)}setVal(to){_state.setVal(to)}}function createKeyborg(eo,to){return Keyborg.create(eo,to)}function disposeKeyborg(eo){Keyborg.dispose(eo)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const TabsterAttributeName="data-tabster",TabsterDummyInputAttributeName="data-tabster-dummy",DeloserEventName="tabster:deloser",ModalizerActiveEventName="tabster:modalizer:active",ModalizerInactiveEventName="tabster:modalizer:inactive",ModalizerFocusInEventName="tabster:modalizer:focusin",ModalizerFocusOutEventName="tabster:modalizer:focusout",ModalizerBeforeFocusOutEventName="tabster:modalizer:beforefocusout",MoverEventName="tabster:mover",FocusInEventName="tabster:focusin",FocusOutEventName="tabster:focusout",MoveFocusEventName="tabster:movefocus",FocusableSelector=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),ObservedElementAccesibilities={Any:0,Accessible:1,Focusable:2},RestoreFocusOrders={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Visibilities={Invisible:0,PartiallyVisible:1,Visible:2},RestorerTypes={Source:0,Target:1},MoverDirections={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},GroupperTabbabilities={Unlimited:0,Limited:1,LimitedTrapFocus:2},SysDummyInputsPositions={Auto:0,Inside:1,Outside:2};var Types=Object.freeze({__proto__:null,TabsterAttributeName,TabsterDummyInputAttributeName,DeloserEventName,ModalizerActiveEventName,ModalizerInactiveEventName,ModalizerFocusInEventName,ModalizerFocusOutEventName,ModalizerBeforeFocusOutEventName,MoverEventName,FocusInEventName,FocusOutEventName,MoveFocusEventName,FocusableSelector,ObservedElementAccesibilities,RestoreFocusOrders,Visibilities,RestorerTypes,MoverDirections,GroupperTabbabilities,SysDummyInputsPositions});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function getTabsterOnElement(eo,to){var ro;return(ro=eo.storageEntry(to))===null||ro===void 0?void 0:ro.tabster}function updateTabsterByAttribute(eo,to,ro){var no,oo;const io=ro||eo._noop?void 0:to.getAttribute(TabsterAttributeName);let so=eo.storageEntry(to),ao;if(io)if(io!==((no=so==null?void 0:so.attr)===null||no===void 0?void 0:no.string))try{const fo=JSON.parse(io);if(typeof fo!="object")throw new Error(`Value is not a JSON object, got '${io}'.`);ao={string:io,object:fo}}catch{}else return;else if(!so)return;so||(so=eo.storageEntry(to,!0)),so.tabster||(so.tabster={});const lo=so.tabster||{},uo=((oo=so.attr)===null||oo===void 0?void 0:oo.object)||{},co=(ao==null?void 0:ao.object)||{};for(const fo of Object.keys(uo))if(!co[fo]){if(fo==="root"){const po=lo[fo];po&&eo.root.onRoot(po,!0)}switch(fo){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const po=lo[fo];po&&(po.dispose(),delete lo[fo]);break;case"observed":delete lo[fo],eo.observedElement&&eo.observedElement.onObservedElementUpdate(to);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete lo[fo];break}}for(const fo of Object.keys(co)){const po=co.sys;switch(fo){case"deloser":lo.deloser?lo.deloser.setProps(co.deloser):eo.deloser&&(lo.deloser=eo.deloser.createDeloser(to,co.deloser));break;case"root":lo.root?lo.root.setProps(co.root):lo.root=eo.root.createRoot(to,co.root,po),eo.root.onRoot(lo.root);break;case"modalizer":lo.modalizer?lo.modalizer.setProps(co.modalizer):eo.modalizer&&(lo.modalizer=eo.modalizer.createModalizer(to,co.modalizer,po));break;case"restorer":lo.restorer?lo.restorer.setProps(co.restorer):eo.restorer&&co.restorer&&(lo.restorer=eo.restorer.createRestorer(to,co.restorer));break;case"focusable":lo.focusable=co.focusable;break;case"groupper":lo.groupper?lo.groupper.setProps(co.groupper):eo.groupper&&(lo.groupper=eo.groupper.createGroupper(to,co.groupper,po));break;case"mover":lo.mover?lo.mover.setProps(co.mover):eo.mover&&(lo.mover=eo.mover.createMover(to,co.mover,po));break;case"observed":eo.observedElement&&(lo.observed=co.observed,eo.observedElement.onObservedElementUpdate(to));break;case"uncontrolled":lo.uncontrolled=co.uncontrolled;break;case"outline":eo.outline&&(lo.outline=co.outline);break;case"sys":lo.sys=co.sys;break;default:console.error(`Unknown key '${fo}' in data-tabster attribute value.`)}}ao?so.attr=ao:(Object.keys(lo).length===0&&(delete so.tabster,delete so.attr),eo.storageEntry(to,!1))}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function createEventTarget(eo){const to=eo();try{if(to.EventTarget)return new to.EventTarget}catch(ro){if(!(ro instanceof TypeError))throw ro}return to.document.createElement("div")}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let _isBrokenIE11;const _DOMRect=typeof DOMRect<"u"?DOMRect:class{constructor(eo,to,ro,no){this.left=eo||0,this.top=to||0,this.right=(eo||0)+(ro||0),this.bottom=(to||0)+(no||0)}};let _uidCounter=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),_isBrokenIE11=!1}catch{_isBrokenIE11=!0}const _updateDummyInputsTimeout=100;function getInstanceContext(eo){const to=eo();let ro=to.__tabsterInstanceContext;return ro||(ro={elementByUId:{},basics:{Promise:to.Promise||void 0,WeakRef:to.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},to.__tabsterInstanceContext=ro),ro}function disposeInstanceContext(eo){const to=eo.__tabsterInstanceContext;to&&(to.elementByUId={},delete to.WeakRef,to.containerBoundingRectCache={},to.containerBoundingRectCacheTimer&&eo.clearTimeout(to.containerBoundingRectCacheTimer),to.fakeWeakRefsTimer&&eo.clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefs=[],delete eo.__tabsterInstanceContext)}function createWeakMap(eo){const to=eo.__tabsterInstanceContext;return new((to==null?void 0:to.basics.WeakMap)||WeakMap)}function hasSubFocusable(eo){return!!eo.querySelector(FocusableSelector)}class FakeWeakRef{constructor(to){this._target=to}deref(){return this._target}static cleanup(to,ro){return to._target?ro||!documentContains(to._target.ownerDocument,to._target)?(delete to._target,!0):!1:!0}}class WeakHTMLElement{constructor(to,ro,no){const oo=getInstanceContext(to);let io;oo.WeakRef?io=new oo.WeakRef(ro):(io=new FakeWeakRef(ro),oo.fakeWeakRefs.push(io)),this._ref=io,this._data=no}get(){const to=this._ref;let ro;return to&&(ro=to.deref(),ro||delete this._ref),ro}getData(){return this._data}}function cleanupFakeWeakRefs(eo,to){const ro=getInstanceContext(eo);ro.fakeWeakRefs=ro.fakeWeakRefs.filter(no=>!FakeWeakRef.cleanup(no,to))}function startFakeWeakRefsCleanup(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted||(to.fakeWeakRefsStarted=!0,to.WeakRef=getWeakRef(to)),to.fakeWeakRefsTimer||(to.fakeWeakRefsTimer=eo().setTimeout(()=>{to.fakeWeakRefsTimer=void 0,cleanupFakeWeakRefs(eo),startFakeWeakRefsCleanup(eo)},2*60*1e3))}function stopFakeWeakRefsCleanupAndClearStorage(eo){const to=getInstanceContext(eo);to.fakeWeakRefsStarted=!1,to.fakeWeakRefsTimer&&(eo().clearTimeout(to.fakeWeakRefsTimer),to.fakeWeakRefsTimer=void 0,to.fakeWeakRefs=[])}function createElementTreeWalker(eo,to,ro){if(to.nodeType!==Node.ELEMENT_NODE)return;const no=_isBrokenIE11?ro:{acceptNode:ro};return eo.createTreeWalker(to,NodeFilter.SHOW_ELEMENT,no,!1)}function getBoundingRect(eo,to){let ro=to.__tabsterCacheId;const no=getInstanceContext(eo),oo=ro?no.containerBoundingRectCache[ro]:void 0;if(oo)return oo.rect;const io=to.ownerDocument&&to.ownerDocument.documentElement;if(!io)return new _DOMRect;let so=0,ao=0,lo=io.clientWidth,uo=io.clientHeight;if(to!==io){const fo=to.getBoundingClientRect();so=Math.max(so,fo.left),ao=Math.max(ao,fo.top),lo=Math.min(lo,fo.right),uo=Math.min(uo,fo.bottom)}const co=new _DOMRect(so{no.containerBoundingRectCacheTimer=void 0;for(const fo of Object.keys(no.containerBoundingRectCache))delete no.containerBoundingRectCache[fo].element.__tabsterCacheId;no.containerBoundingRectCache={}},50)),co}function isElementVerticallyVisibleInContainer(eo,to,ro){const no=getScrollableContainer(to);if(!no)return!1;const oo=getBoundingRect(eo,no),io=to.getBoundingClientRect(),so=io.height*(1-ro),ao=Math.max(0,oo.top-io.top),lo=Math.max(0,io.bottom-oo.bottom),uo=ao+lo;return uo===0||uo<=so}function scrollIntoView$2(eo,to,ro){const no=getScrollableContainer(to);if(no){const oo=getBoundingRect(eo,no),io=to.getBoundingClientRect();ro?no.scrollTop+=io.top-oo.top:no.scrollTop+=io.bottom-oo.bottom}}function getScrollableContainer(eo){const to=eo.ownerDocument;if(to){for(let ro=eo.parentElement;ro;ro=ro.parentElement)if(ro.scrollWidth>ro.clientWidth||ro.scrollHeight>ro.clientHeight)return ro;return to.documentElement}return null}function makeFocusIgnored(eo){eo.__shouldIgnoreFocus=!0}function shouldIgnoreFocus(eo){return!!eo.__shouldIgnoreFocus}function getUId(eo){const to=new Uint32Array(4);if(eo.crypto&&eo.crypto.getRandomValues)eo.crypto.getRandomValues(to);else if(eo.msCrypto&&eo.msCrypto.getRandomValues)eo.msCrypto.getRandomValues(to);else for(let no=0;no{if(this._fixedTarget){const po=this._fixedTarget.get();po&&nativeFocus(po);return}const fo=this.input;if(this.onFocusIn&&fo){const po=co.relatedTarget;this.onFocusIn(this,this._isBackward(!0,fo,po),po)}},this._focusOut=co=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const fo=this.input;if(this.onFocusOut&&fo){const po=co.relatedTarget;this.onFocusOut(this,this._isBackward(!1,fo,po),po)}};const ao=to(),lo=ao.document.createElement("i");lo.tabIndex=0,lo.setAttribute("role","none"),lo.setAttribute(TabsterDummyInputAttributeName,""),lo.setAttribute("aria-hidden","true");const uo=lo.style;uo.position="fixed",uo.width=uo.height="1px",uo.opacity="0.001",uo.zIndex="-1",uo.setProperty("content-visibility","hidden"),makeFocusIgnored(lo),this.input=lo,this.isFirst=no.isFirst,this.isOutside=ro,this._isPhantom=(so=no.isPhantom)!==null&&so!==void 0?so:!1,this._fixedTarget=io,lo.addEventListener("focusin",this._focusIn),lo.addEventListener("focusout",this._focusOut),lo.__tabsterDummyContainer=oo,this._isPhantom&&(this._disposeTimer=ao.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(ao.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var to;this._clearDisposeTimeout&&this._clearDisposeTimeout();const ro=this.input;ro&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,ro.removeEventListener("focusin",this._focusIn),ro.removeEventListener("focusout",this._focusOut),delete ro.__tabsterDummyContainer,(to=ro.parentElement)===null||to===void 0||to.removeChild(ro))}setTopLeft(to,ro){var no;const oo=(no=this.input)===null||no===void 0?void 0:no.style;oo&&(oo.top=`${to}px`,oo.left=`${ro}px`)}_isBackward(to,ro,no){return to&&!no?!this.isFirst:!!(no&&ro.compareDocumentPosition(no)&Node.DOCUMENT_POSITION_FOLLOWING)}}const DummyInputManagerPriorities={Root:1,Modalizer:2,Mover:3,Groupper:4};class DummyInputManager{constructor(to,ro,no,oo,io,so){this._element=ro,this._instance=new DummyInputManagerCore(to,ro,this,no,oo,io,so)}_setHandlers(to,ro){this._onFocusIn=to,this._onFocusOut=ro}moveOut(to){var ro;(ro=this._instance)===null||ro===void 0||ro.moveOut(to)}moveOutWithDefaultAction(to,ro){var no;(no=this._instance)===null||no===void 0||no.moveOutWithDefaultAction(to,ro)}getHandler(to){return to?this._onFocusIn:this._onFocusOut}setTabbable(to){var ro;(ro=this._instance)===null||ro===void 0||ro.setTabbable(this,to)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(to,ro,no,oo,io){var so;const lo=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(lo){let uo,co;if(ro.tagName==="BODY")uo=ro,co=no&&oo||!no&&!oo?ro.firstElementChild:null;else{no&&(!oo||oo&&!to.focusable.isFocusable(ro,!1,!0,!0))?(uo=ro,co=oo?ro.firstElementChild:null):(uo=ro.parentElement,co=no&&oo||!no&&!oo?ro:ro.nextElementSibling);let fo,po;do fo=no&&oo||!no&&!oo?co==null?void 0:co.previousElementSibling:co,po=(so=fo==null?void 0:fo.__tabsterDummyContainer)===null||so===void 0?void 0:so.get(),po===ro?co=no&&oo||!no&&!oo?fo:fo==null?void 0:fo.nextElementSibling:po=void 0;while(po)}uo&&triggerMoveFocusEvent({by:"root",owner:uo,next:null,relatedEvent:io})&&(uo.insertBefore(lo,co),nativeFocus(lo))}}static addPhantomDummyWithTarget(to,ro,no,oo){const so=new DummyInput(to.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new WeakHTMLElement(to.getWindow,oo)).input;if(so){let ao,lo;hasSubFocusable(ro)&&!no?(ao=ro,lo=ro.firstElementChild):(ao=ro.parentElement,lo=no?ro:ro.nextElementSibling),ao==null||ao.insertBefore(so,lo)}}}class DummyInputObserver{constructor(to){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=ro=>{var no;this._changedParents.has(ro)||(this._changedParents.add(ro),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(no=this._win)===null||no===void 0?void 0:no.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const oo of this._dummyElements){const io=oo.get();if(io){const so=this._dummyCallbacks.get(io);if(so){const ao=io.parentElement;(!ao||this._changedParents.has(ao))&&so()}}}this._changedParents=new WeakSet},_updateDummyInputsTimeout)))},this._win=to}add(to,ro){!this._dummyCallbacks.has(to)&&this._win&&(this._dummyElements.push(new WeakHTMLElement(this._win,to)),this._dummyCallbacks.set(to,ro),this.domChanged=this._domChanged)}remove(to){this._dummyElements=this._dummyElements.filter(ro=>{const no=ro.get();return no&&no!==to}),this._dummyCallbacks.delete(to),this._dummyElements.length===0&&delete this.domChanged}dispose(){var to;const ro=(to=this._win)===null||to===void 0?void 0:to.call(this);this._updateTimer&&(ro==null||ro.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(ro==null||ro.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(to){this._win&&(this._updateQueue.add(to),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var to;this._updateTimer||(this._updateTimer=(to=this._win)===null||to===void 0?void 0:to.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+_updateDummyInputsTimeout<=Date.now()){const ro=new Map,no=[];for(const oo of this._updateQueue)no.push(oo(ro));this._updateQueue.clear();for(const oo of no)oo();ro.clear()}else this._scheduledUpdatePositions()},_updateDummyInputsTimeout))}}class DummyInputManagerCore{constructor(to,ro,no,oo,io,so,ao){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(ho,mo,vo)=>{this._onFocus(!0,ho,mo,vo)},this._onFocusOut=(ho,mo,vo)=>{this._onFocus(!1,ho,mo,vo)},this.moveOut=ho=>{var mo;const vo=this._firstDummy,bo=this._lastDummy;if(vo&&bo){this._ensurePosition();const xo=vo.input,_o=bo.input,So=(mo=this._element)===null||mo===void 0?void 0:mo.get();if(xo&&_o&&So){let Eo;ho?(xo.tabIndex=0,Eo=xo):(_o.tabIndex=0,Eo=_o),Eo&&nativeFocus(Eo)}}},this.moveOutWithDefaultAction=(ho,mo)=>{var vo;const bo=this._firstDummy,xo=this._lastDummy;if(bo&&xo){this._ensurePosition();const _o=bo.input,So=xo.input,Eo=(vo=this._element)===null||vo===void 0?void 0:vo.get();if(_o&&So&&Eo){let ko;ho?!bo.isOutside&&this._tabster.focusable.isFocusable(Eo,!0,!0,!0)?ko=Eo:(bo.useDefaultAction=!0,_o.tabIndex=0,ko=_o):(xo.useDefaultAction=!0,So.tabIndex=0,ko=So),ko&&triggerMoveFocusEvent({by:"root",owner:Eo,next:null,relatedEvent:mo})&&nativeFocus(ko)}}},this.setTabbable=(ho,mo)=>{var vo,bo;for(const _o of this._wrappers)if(_o.manager===ho){_o.tabbable=mo;break}const xo=this._getCurrent();if(xo){const _o=xo.tabbable?0:-1;let So=(vo=this._firstDummy)===null||vo===void 0?void 0:vo.input;So&&(So.tabIndex=_o),So=(bo=this._lastDummy)===null||bo===void 0?void 0:bo.input,So&&(So.tabIndex=_o)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=ho=>{var mo,vo;const bo=((mo=this._firstDummy)===null||mo===void 0?void 0:mo.input)||((vo=this._lastDummy)===null||vo===void 0?void 0:vo.input),xo=this._transformElements,_o=new Set;let So=0,Eo=0;const ko=this._getWindow();for(let wo=bo;wo&&wo.nodeType===Node.ELEMENT_NODE;wo=wo.parentElement){let Co=ho.get(wo);if(Co===void 0){const Ro=ko.getComputedStyle(wo).transform;Ro&&Ro!=="none"&&(Co={scrollTop:wo.scrollTop,scrollLeft:wo.scrollLeft}),ho.set(wo,Co||null)}Co&&(_o.add(wo),xo.has(wo)||wo.addEventListener("scroll",this._addTransformOffsets),So+=Co.scrollTop,Eo+=Co.scrollLeft)}for(const wo of xo)_o.has(wo)||wo.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_o,()=>{var wo,Co;(wo=this._firstDummy)===null||wo===void 0||wo.setTopLeft(So,Eo),(Co=this._lastDummy)===null||Co===void 0||Co.setTopLeft(So,Eo)}};const lo=ro.get();if(!lo)throw new Error("No element");this._tabster=to,this._getWindow=to.getWindow,this._callForDefaultAction=ao;const uo=lo.__tabsterDummy;if((uo||this)._wrappers.push({manager:no,priority:oo,tabbable:!0}),uo)return uo;lo.__tabsterDummy=this;const co=io==null?void 0:io.dummyInputsPosition,fo=lo.tagName;this._isOutside=co?co===SysDummyInputsPositions.Outside:(so||fo==="UL"||fo==="OL"||fo==="TABLE")&&!(fo==="LI"||fo==="TD"||fo==="TH"),this._firstDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!0},ro),this._lastDummy=new DummyInput(this._getWindow,this._isOutside,{isFirst:!1},ro);const po=this._firstDummy.input;po&&to._dummyObserver.add(po,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=ro,this._addDummyInputs()}dispose(to,ro){var no,oo,io,so;if((this._wrappers=this._wrappers.filter(lo=>lo.manager!==to&&!ro)).length===0){delete((no=this._element)===null||no===void 0?void 0:no.get()).__tabsterDummy;for(const co of this._transformElements)co.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const lo=this._getWindow();this._addTimer&&(lo.clearTimeout(this._addTimer),delete this._addTimer);const uo=(oo=this._firstDummy)===null||oo===void 0?void 0:oo.input;uo&&this._tabster._dummyObserver.remove(uo),(io=this._firstDummy)===null||io===void 0||io.dispose(),(so=this._lastDummy)===null||so===void 0||so.dispose()}}_onFocus(to,ro,no,oo){var io;const so=this._getCurrent();so&&(!ro.useDefaultAction||this._callForDefaultAction)&&((io=so.manager.getHandler(to))===null||io===void 0||io(ro,no,oo))}_getCurrent(){return this._wrappers.sort((to,ro)=>to.tabbable!==ro.tabbable?to.tabbable?-1:1:to.priority-ro.priority),this._wrappers[0]}_ensurePosition(){var to,ro,no;const oo=(to=this._element)===null||to===void 0?void 0:to.get(),io=(ro=this._firstDummy)===null||ro===void 0?void 0:ro.input,so=(no=this._lastDummy)===null||no===void 0?void 0:no.input;if(!(!oo||!io||!so))if(this._isOutside){const ao=oo.parentElement;if(ao){const lo=oo.nextElementSibling;lo!==so&&ao.insertBefore(so,lo),oo.previousElementSibling!==io&&ao.insertBefore(io,oo)}}else{oo.lastElementChild!==so&&oo.appendChild(so);const ao=oo.firstElementChild;ao&&ao!==io&&oo.insertBefore(io,ao)}}}function getLastChild(eo){let to=null;for(let ro=eo.lastElementChild;ro;ro=ro.lastElementChild)to=ro;return to||void 0}function getAdjacentElement(eo,to){let ro=eo,no=null;for(;ro&&!no;)no=to?ro.previousElementSibling:ro.nextElementSibling,ro=ro.parentElement;return no||void 0}function triggerEvent(eo,to,ro){const no=document.createEvent("HTMLEvents");return no.initEvent(to,!0,!0),no.details=ro,eo.dispatchEvent(no),!no.defaultPrevented}function triggerMoveFocusEvent(eo){return triggerEvent(eo.owner,MoveFocusEventName,eo)}function augmentAttribute(eo,to,ro,no){const oo=eo.storageEntry(to,!0);let io=!1;if(!oo.aug){if(no===void 0)return io;oo.aug={}}if(no===void 0){if(ro in oo.aug){const so=oo.aug[ro];delete oo.aug[ro],so===null?to.removeAttribute(ro):to.setAttribute(ro,so),io=!0}}else{let so;ro in oo.aug||(so=to.getAttribute(ro)),so!==void 0&&so!==no&&(oo.aug[ro]=so,no===null?to.removeAttribute(ro):to.setAttribute(ro,no),io=!0)}return no===void 0&&Object.keys(oo.aug).length===0&&(delete oo.aug,eo.storageEntry(to,!1)),io}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function getTabsterAttribute(eo,to){const ro=JSON.stringify(eo);return to===!0?ro:{[TabsterAttributeName]:ro}}function mergeTabsterProps(eo,to){for(const ro of Object.keys(to)){const no=to[ro];no?eo[ro]=no:delete eo[ro]}}function setTabsterAttribute(eo,to,ro){let no;if(ro){const oo=eo.getAttribute(TabsterAttributeName);if(oo)try{no=JSON.parse(oo)}catch{}}no||(no={}),mergeTabsterProps(no,to),Object.keys(no).length>0?eo.setAttribute(TabsterAttributeName,getTabsterAttribute(no,!0)):eo.removeAttribute(TabsterAttributeName)}class RootDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(to,ro,DummyInputManagerPriorities.Root,oo,void 0,!0),this._onDummyInputFocus=io=>{var so;if(io.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const ao=this._element.get();if(ao){this._setFocused(!0);const lo=this._tabster.focusedElement.getFirstOrLastTabbable(io.isFirst,{container:ao,ignoreAccessibility:!0});if(lo){nativeFocus(lo);return}}(so=io.input)===null||so===void 0||so.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=to,this._setFocused=no}}class Root extends TabsterPart{constructor(to,ro,no,oo,io){super(to,ro,oo),this._isFocused=!1,this._setFocused=lo=>{var uo;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===lo)return;const co=this._element.get();co&&(lo?(this._isFocused=!0,(uo=this._dummyManager)===null||uo===void 0||uo.setTabbable(!1),triggerEvent(this._tabster.root.eventTarget,"focus",{element:co})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var fo;delete this._setFocusedTimer,this._isFocused=!1,(fo=this._dummyManager)===null||fo===void 0||fo.setTabbable(!0),triggerEvent(this._tabster.root.eventTarget,"blur",{element:co})},0))},this._onFocusIn=lo=>{const uo=this._tabster.getParent,co=this._element.get();let fo=lo.target;do{if(fo===co){this._setFocused(!0);return}fo=fo&&uo(fo)}while(fo)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=no;const so=to.getWindow;this.uid=getElementUId(so,ro),this._sys=io,(to.controlTab||to.rootDummyInputs)&&this.addDummyInputs();const ao=so();ao.document.addEventListener("focusin",this._onFocusIn),ao.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new RootDummyManager(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var to;this._onDispose(this);const ro=this._tabster.getWindow();ro.document.removeEventListener("focusin",this._onFocusIn),ro.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(ro.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(to=this._dummyManager)===null||to===void 0||to.dispose(),this._remove()}moveOutWithDefaultAction(to,ro){const no=this._dummyManager;if(no)no.moveOutWithDefaultAction(to,ro);else{const oo=this.getElement();oo&&RootDummyManager.moveWithPhantomDummy(this._tabster,oo,!0,to,ro)}}_add(){}_remove(){}}class RootAPI{constructor(to,ro){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var no;const oo=this._win().document,io=oo.body;if(io){this._autoRootUnwait(oo);const so=this._autoRoot;if(so)return setTabsterAttribute(io,{root:so},!0),updateTabsterByAttribute(this._tabster,io),(no=getTabsterOnElement(this._tabster,io))===null||no===void 0?void 0:no.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,oo.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=no=>{delete this._roots[no.id]},this._tabster=to,this._win=to.getWindow,this._autoRoot=ro,this.eventTarget=createEventTarget(this._win),to.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(to){to.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const to=this._win();this._autoRootUnwait(to.document),delete this._autoRoot,Object.keys(this._roots).forEach(ro=>{this._roots[ro]&&(this._roots[ro].dispose(),delete this._roots[ro])}),this.rootById={}}createRoot(to,ro,no){const oo=new Root(this._tabster,to,this._onRootDispose,ro,no);return this._roots[oo.id]=oo,this._forceDummy&&oo.addDummyInputs(),oo}addDummyInputs(){this._forceDummy=!0;const to=this._roots;for(const ro of Object.keys(to))to[ro].addDummyInputs()}static getRootByUId(to,ro){const no=to().__tabsterInstance;return no&&no.root.rootById[ro]}static getTabsterContext(to,ro,no){no===void 0&&(no={});var oo,io,so,ao;if(!ro.ownerDocument)return;const{checkRtl:lo,referenceElement:uo}=no,co=to.getParent;to.drainInitQueue();let fo,po,ho,mo,vo=!1,bo,xo,_o,So,Eo=uo||ro;const ko={};for(;Eo&&(!fo||lo);){const Co=getTabsterOnElement(to,Eo);if(lo&&_o===void 0){const Bo=Eo.dir;Bo&&(_o=Bo.toLowerCase()==="rtl")}if(!Co){Eo=co(Eo);continue}const Ro=Eo.tagName;(Co.uncontrolled||Ro==="IFRAME"||Ro==="WEBVIEW")&&(So=Eo),!mo&&(!((oo=Co.focusable)===null||oo===void 0)&&oo.excludeFromMover)&&!ho&&(vo=!0);const Ao=Co.modalizer,Io=Co.groupper,$o=Co.mover;!po&&Ao&&(po=Ao),!ho&&Io&&(!po||Ao)&&(po?(!Io.isActive()&&Io.getProps().tabbability&&po.userId!==((io=to.modalizer)===null||io===void 0?void 0:io.activeId)&&(po=void 0,ho=Io),xo=Io):ho=Io),!mo&&$o&&(!po||Ao)&&(!Io||Eo!==ro)&&(mo=$o,bo=!!ho&&ho!==Io),Co.root&&(fo=Co.root),!((so=Co.focusable)===null||so===void 0)&&so.ignoreKeydown&&Object.assign(ko,Co.focusable.ignoreKeydown),Eo=co(Eo)}if(!fo){const Co=to.root;Co._autoRoot&&!((ao=ro.ownerDocument)===null||ao===void 0)&&ao.body&&(fo=Co._autoRootCreate())}return ho&&!mo&&(bo=!0),fo?{root:fo,modalizer:po,groupper:ho,mover:mo,groupperBeforeMover:bo,modalizerInGroupper:xo,rtl:lo?!!_o:void 0,uncontrolled:So,excludedFromMover:vo,ignoreKeydown:Co=>!!ko[Co.key]}:void 0}static getRoot(to,ro){var no;const oo=to.getParent;for(let io=ro;io;io=oo(io)){const so=(no=getTabsterOnElement(to,io))===null||no===void 0?void 0:no.root;if(so)return so}}onRoot(to,ro){ro?delete this.rootById[to.uid]:this.rootById[to.uid]=to}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Subscribable{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(to){const ro=this._callbacks;ro.indexOf(to)<0&&ro.push(to)}subscribeFirst(to){const ro=this._callbacks,no=ro.indexOf(to);no>=0&&ro.splice(no,1),ro.unshift(to)}unsubscribe(to){const ro=this._callbacks.indexOf(to);ro>=0&&this._callbacks.splice(ro,1)}setVal(to,ro){this._val!==to&&(this._val=to,this._callCallbacks(to,ro))}getVal(){return this._val}trigger(to,ro){this._callCallbacks(to,ro)}_callCallbacks(to,ro){this._callbacks.forEach(no=>no(to,ro))}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class FocusableAPI{constructor(to){this._tabster=to}dispose(){}getProps(to){const ro=getTabsterOnElement(this._tabster,to);return ro&&ro.focusable||{}}isFocusable(to,ro,no,oo){return matchesSelector(to,FocusableSelector)&&(ro||to.tabIndex!==-1)?(no||this.isVisible(to))&&(oo||this.isAccessible(to)):!1}isVisible(to){if(!to.ownerDocument||to.nodeType!==Node.ELEMENT_NODE||to.offsetParent===null&&to.ownerDocument.body!==to)return!1;const ro=to.ownerDocument.defaultView;if(!ro)return!1;const no=to.ownerDocument.body.getBoundingClientRect();return!(no.width===0&&no.height===0||ro.getComputedStyle(to).visibility==="hidden")}isAccessible(to){var ro;for(let no=to;no;no=no.parentElement){const oo=getTabsterOnElement(this._tabster,no);if(this._isHidden(no)||!((ro=oo==null?void 0:oo.focusable)===null||ro===void 0?void 0:ro.ignoreAriaDisabled)&&this._isDisabled(no))return!1}return!0}_isDisabled(to){return to.hasAttribute("disabled")}_isHidden(to){var ro;const no=to.getAttribute("aria-hidden");return!!(no&&no.toLowerCase()==="true"&&!(!((ro=this._tabster.modalizer)===null||ro===void 0)&&ro.isAugmented(to)))}findFirst(to,ro){return this.findElement({...to},ro)}findLast(to,ro){return this.findElement({isBackward:!0,...to},ro)}findNext(to,ro){return this.findElement({...to},ro)}findPrev(to,ro){return this.findElement({...to,isBackward:!0},ro)}findDefault(to,ro){return this.findElement({...to,acceptCondition:no=>this.isFocusable(no,to.includeProgrammaticallyFocusable)&&!!this.getProps(no).isDefault},ro)||null}findAll(to){return this._findElements(!0,to)||[]}findElement(to,ro){const no=this._findElements(!1,to,ro);return no&&no[0]}_findElements(to,ro,no){var oo,io,so;const{container:ao,currentElement:lo=null,includeProgrammaticallyFocusable:uo,useActiveModalizer:co,ignoreAccessibility:fo,modalizerId:po,isBackward:ho,onElement:mo}=ro;no||(no={});const vo=[];let{acceptCondition:bo}=ro;const xo=!!bo;if(!ao)return null;bo||(bo=ko=>this.isFocusable(ko,uo,!1,fo));const _o={container:ao,modalizerUserId:po===void 0&&co?(oo=this._tabster.modalizer)===null||oo===void 0?void 0:oo.activeId:po||((so=(io=RootAPI.getTabsterContext(this._tabster,ao))===null||io===void 0?void 0:io.modalizer)===null||so===void 0?void 0:so.userId),from:lo||ao,isBackward:ho,acceptCondition:bo,hasCustomCondition:xo,includeProgrammaticallyFocusable:uo,ignoreAccessibility:fo,cachedGrouppers:{}},So=createElementTreeWalker(ao.ownerDocument,ao,ko=>this._acceptElement(ko,_o));if(!So)return null;const Eo=ko=>{var wo,Co;const Ro=(wo=_o.foundElement)!==null&&wo!==void 0?wo:_o.foundBackward;return Ro&&vo.push(Ro),to?Ro&&(_o.found=!1,delete _o.foundElement,delete _o.foundBackward,delete _o.fromCtx,_o.from=Ro,mo&&!mo(Ro))?!1:!!(Ro||ko):(Ro&&no&&(no.uncontrolled=(Co=RootAPI.getTabsterContext(this._tabster,Ro))===null||Co===void 0?void 0:Co.uncontrolled),!!(ko&&!Ro))};if(lo||(no.outOfDOMOrder=!0),lo)So.currentNode=lo;else if(ho){const ko=getLastChild(ao);if(!ko)return null;if(this._acceptElement(ko,_o)===NodeFilter.FILTER_ACCEPT&&!Eo(!0))return _o.skippedFocusable&&(no.outOfDOMOrder=!0),vo;So.currentNode=ko}do ho?So.previousNode():So.nextNode();while(Eo());return _o.skippedFocusable&&(no.outOfDOMOrder=!0),vo.length?vo:null}_acceptElement(to,ro){var no,oo,io,so;if(ro.found)return NodeFilter.FILTER_ACCEPT;const ao=ro.foundBackward;if(ao&&(to===ao||!ao.contains(to)))return ro.found=!0,ro.foundElement=ao,NodeFilter.FILTER_ACCEPT;const lo=ro.container;if(to===lo)return NodeFilter.FILTER_SKIP;if(!lo.contains(to)||to.__tabsterDummyContainer||!((no=ro.rejectElementsFrom)===null||no===void 0)&&no.contains(to))return NodeFilter.FILTER_REJECT;const uo=ro.currentCtx=RootAPI.getTabsterContext(this._tabster,to);if(!uo)return NodeFilter.FILTER_SKIP;if(shouldIgnoreFocus(to))return this.isFocusable(to,void 0,!0,!0)&&(ro.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!ro.hasCustomCondition&&(to.tagName==="IFRAME"||to.tagName==="WEBVIEW"))return((oo=uo.modalizer)===null||oo===void 0?void 0:oo.userId)===((io=this._tabster.modalizer)===null||io===void 0?void 0:io.activeId)?(ro.found=!0,ro.rejectElementsFrom=ro.foundElement=to,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!ro.ignoreAccessibility&&!this.isAccessible(to))return this.isFocusable(to,!1,!0,!0)&&(ro.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let co,fo=ro.fromCtx;fo||(fo=ro.fromCtx=RootAPI.getTabsterContext(this._tabster,ro.from));const po=fo==null?void 0:fo.mover;let ho=uo.groupper,mo=uo.mover;if(co=(so=this._tabster.modalizer)===null||so===void 0?void 0:so.acceptElement(to,ro),co!==void 0&&(ro.skippedFocusable=!0),co===void 0&&(ho||mo||po)){const vo=ho==null?void 0:ho.getElement(),bo=po==null?void 0:po.getElement();let xo=mo==null?void 0:mo.getElement();xo&&(bo!=null&&bo.contains(xo))&&lo.contains(bo)&&(!vo||!mo||bo.contains(vo))&&(mo=po,xo=bo),vo&&(vo===lo||!lo.contains(vo))&&(ho=void 0),xo&&!lo.contains(xo)&&(mo=void 0),ho&&mo&&(xo&&vo&&!vo.contains(xo)?mo=void 0:ho=void 0),ho&&(co=ho.acceptElement(to,ro)),mo&&(co=mo.acceptElement(to,ro))}return co===void 0&&(co=ro.acceptCondition(to)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,co===NodeFilter.FILTER_SKIP&&this.isFocusable(to,!1,!0,!0)&&(ro.skippedFocusable=!0)),co===NodeFilter.FILTER_ACCEPT&&!ro.found&&(ro.isBackward?(ro.foundBackward=to,co=NodeFilter.FILTER_SKIP):(ro.found=!0,ro.foundElement=to)),co}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const Keys={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function getUncontrolledCompletelyContainer(eo,to){var ro;const no=eo.getParent;let oo=to;do{const io=(ro=getTabsterOnElement(eo,oo))===null||ro===void 0?void 0:ro.uncontrolled;if(io&&eo.uncontrolled.isUncontrolledCompletely(oo,!!io.completely))return oo;oo=no(oo)}while(oo)}class FocusedElementState extends Subscribable{constructor(to,ro){super(),this._init=()=>{const no=this._win(),oo=no.document;oo.addEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),oo.addEventListener("focusout",this._onFocusOut,!0),no.addEventListener("keydown",this._onKeyDown,!0);const io=oo.activeElement;io&&io!==oo.body&&this._setFocusedElement(io),this.subscribe(this._onChanged)},this._onFocusIn=no=>{this._setFocusedElement(no.target,no.details.relatedTarget,no.details.isFocusedProgrammatically)},this._onFocusOut=no=>{this._setFocusedElement(void 0,no.relatedTarget)},this._validateFocusedElement=no=>{},this._onKeyDown=no=>{if(no.keyCode!==Keys.Tab||no.ctrlKey)return;const oo=this.getVal();if(!oo||!oo.ownerDocument||oo.contentEditable==="true")return;const io=this._tabster,so=io.controlTab,ao=RootAPI.getTabsterContext(io,oo);if(!ao||ao.ignoreKeydown(no))return;const lo=no.shiftKey,uo=FocusedElementState.findNextTabbable(io,ao,void 0,oo,void 0,lo,!0),co=ao.root.getElement();if(!co)return;const fo=uo==null?void 0:uo.element,po=getUncontrolledCompletelyContainer(io,oo);if(fo){const ho=uo.uncontrolled;if(ao.uncontrolled||ho!=null&&ho.contains(oo)){if(!uo.outOfDOMOrder&&ho===ao.uncontrolled||po&&!po.contains(fo))return;DummyInputManager.addPhantomDummyWithTarget(io,oo,lo,fo);return}if(ho||fo.tagName==="IFRAME"){triggerMoveFocusEvent({by:"root",owner:co,next:fo,relatedEvent:no})&&DummyInputManager.moveWithPhantomDummy(this._tabster,ho??fo,!1,lo,no);return}(so||uo!=null&&uo.outOfDOMOrder)&&triggerMoveFocusEvent({by:"root",owner:co,next:fo,relatedEvent:no})&&(no.preventDefault(),no.stopImmediatePropagation(),nativeFocus(fo))}else!po&&triggerMoveFocusEvent({by:"root",owner:co,next:null,relatedEvent:no})&&ao.root.moveOutWithDefaultAction(lo,no)},this._onChanged=(no,oo)=>{var io,so;if(no)triggerEvent(no,FocusInEventName,oo);else{const ao=(io=this._lastVal)===null||io===void 0?void 0:io.get();if(ao){const lo={...oo},uo=RootAPI.getTabsterContext(this._tabster,ao),co=(so=uo==null?void 0:uo.modalizer)===null||so===void 0?void 0:so.userId;co&&(lo.modalizerId=co),triggerEvent(ao,FocusOutEventName,lo)}}},this._tabster=to,this._win=ro,to.queueInit(this._init)}dispose(){super.dispose();const to=this._win();to.document.removeEventListener(KEYBORG_FOCUSIN,this._onFocusIn,!0),to.document.removeEventListener("focusout",this._onFocusOut,!0),to.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete FocusedElementState._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(to,ro){var no,oo;let io=FocusedElementState._lastResetElement,so=io&&io.get();so&&ro.contains(so)&&delete FocusedElementState._lastResetElement,so=(oo=(no=to._nextVal)===null||no===void 0?void 0:no.element)===null||oo===void 0?void 0:oo.get(),so&&ro.contains(so)&&delete to._nextVal,io=to._lastVal,so=io&&io.get(),so&&ro.contains(so)&&delete to._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var to;let ro=(to=this._lastVal)===null||to===void 0?void 0:to.get();return(!ro||ro&&!documentContains(ro.ownerDocument,ro))&&(this._lastVal=ro=void 0),ro}focus(to,ro,no){return this._tabster.focusable.isFocusable(to,ro,!1,no)?(to.focus(),!0):!1}focusDefault(to){const ro=this._tabster.focusable.findDefault({container:to});return ro?(this._tabster.focusedElement.focus(ro),!0):!1}getFirstOrLastTabbable(to,ro){var no;const{container:oo,ignoreAccessibility:io}=ro;let so;if(oo){const ao=RootAPI.getTabsterContext(this._tabster,oo);ao&&(so=(no=FocusedElementState.findNextTabbable(this._tabster,ao,oo,void 0,void 0,!to,io))===null||no===void 0?void 0:no.element)}return so&&!(oo!=null&&oo.contains(so))&&(so=void 0),so||void 0}_focusFirstOrLast(to,ro){const no=this.getFirstOrLastTabbable(to,ro);return no?(this.focus(no,!1,!0),!0):!1}focusFirst(to){return this._focusFirstOrLast(!0,to)}focusLast(to){return this._focusFirstOrLast(!1,to)}resetFocus(to){if(!this._tabster.focusable.isVisible(to))return!1;if(this._tabster.focusable.isFocusable(to,!0,!0,!0))this.focus(to);else{const ro=to.getAttribute("tabindex"),no=to.getAttribute("aria-hidden");to.tabIndex=-1,to.setAttribute("aria-hidden","true"),FocusedElementState._lastResetElement=new WeakHTMLElement(this._win,to),this.focus(to,!0,!0),this._setOrRemoveAttribute(to,"tabindex",ro),this._setOrRemoveAttribute(to,"aria-hidden",no)}return!0}_setOrRemoveAttribute(to,ro,no){no===null?to.removeAttribute(ro):to.setAttribute(ro,no)}_setFocusedElement(to,ro,no){var oo,io;if(this._tabster._noop)return;const so={relatedTarget:ro};if(to){const lo=(oo=FocusedElementState._lastResetElement)===null||oo===void 0?void 0:oo.get();if(FocusedElementState._lastResetElement=void 0,lo===to||shouldIgnoreFocus(to))return;so.isFocusedProgrammatically=no;const uo=RootAPI.getTabsterContext(this._tabster,to),co=(io=uo==null?void 0:uo.modalizer)===null||io===void 0?void 0:io.userId;co&&(so.modalizerId=co)}const ao=this._nextVal={element:to?new WeakHTMLElement(this._win,to):void 0,details:so};to&&to!==this._val&&this._validateFocusedElement(to),this._nextVal===ao&&this.setVal(to,so),this._nextVal=void 0}setVal(to,ro){super.setVal(to,ro),to&&(this._lastVal=new WeakHTMLElement(this._win,to))}static findNextTabbable(to,ro,no,oo,io,so,ao){const lo=no||ro.root.getElement();if(!lo)return null;let uo=null;const co=FocusedElementState._isTabbingTimer,fo=to.getWindow();co&&fo.clearTimeout(co),FocusedElementState.isTabbing=!0,FocusedElementState._isTabbingTimer=fo.setTimeout(()=>{delete FocusedElementState._isTabbingTimer,FocusedElementState.isTabbing=!1},0);const po=ro.modalizer,ho=ro.groupper,mo=ro.mover,vo=bo=>{var xo;if(uo=bo.findNextTabbable(oo,io,so,ao),oo&&!(uo!=null&&uo.element)){const _o=bo!==po&&((xo=bo.getElement())===null||xo===void 0?void 0:xo.parentElement);if(_o){const So=RootAPI.getTabsterContext(to,oo,{referenceElement:_o});if(So){const Eo=bo.getElement(),ko=so?Eo:Eo&&getLastChild(Eo)||Eo;ko&&(uo=FocusedElementState.findNextTabbable(to,So,no,ko,_o,so,ao),uo&&(uo.outOfDOMOrder=!0))}}}};if(ho&&mo)vo(ro.groupperBeforeMover?ho:mo);else if(ho)vo(ho);else if(mo)vo(mo);else if(po)vo(po);else{const bo={container:lo,currentElement:oo,referenceElement:io,ignoreAccessibility:ao,useActiveModalizer:!0},xo={};uo={element:to.focusable[so?"findPrev":"findNext"](bo,xo),outOfDOMOrder:xo.outOfDOMOrder,uncontrolled:xo.uncontrolled}}return uo}}FocusedElementState.isTabbing=!1;/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class GroupperDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(no,to,DummyInputManagerPriorities.Groupper,oo,!0),this._setHandlers((io,so,ao)=>{var lo,uo;const co=to.get(),fo=io.input;if(co&&fo){const po=RootAPI.getTabsterContext(no,fo);if(po){let ho;ho=(lo=ro.findNextTabbable(ao||void 0,void 0,so,!0))===null||lo===void 0?void 0:lo.element,ho||(ho=(uo=FocusedElementState.findNextTabbable(no,po,void 0,io.isOutside?fo:getAdjacentElement(co,!so),void 0,so,!0))===null||uo===void 0?void 0:uo.element),ho&&nativeFocus(ho)}}})}}class Groupper extends TabsterPart{constructor(to,ro,no,oo,io){super(to,ro,oo),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=no,to.controlTab||(this.dummyManager=new GroupperDummyManager(this._element,this,to,io))}dispose(){var to;this._onDispose(this),this._element.get(),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(to,ro,no,oo){var io;const so=this.getElement();if(!so)return null;const ao=((io=to==null?void 0:to.__tabsterDummyContainer)===null||io===void 0?void 0:io.get())===so;if(!this._shouldTabInside&&to&&so.contains(to)&&!ao)return{element:void 0,outOfDOMOrder:!0};const lo=this.getFirst(!0);if(!to||!so.contains(to)||ao)return{element:lo,outOfDOMOrder:!0};const uo=this._tabster;let co=null,fo=!1,po;if(this._shouldTabInside&&lo){const ho={container:so,currentElement:to,referenceElement:ro,ignoreAccessibility:oo,useActiveModalizer:!0},mo={};co=uo.focusable[no?"findPrev":"findNext"](ho,mo),fo=!!mo.outOfDOMOrder,!co&&this._props.tabbability===GroupperTabbabilities.LimitedTrapFocus&&(co=uo.focusable[no?"findLast":"findFirst"]({container:so,ignoreAccessibility:oo,useActiveModalizer:!0},mo),fo=!0),po=mo.uncontrolled}return{element:co,uncontrolled:po,outOfDOMOrder:fo}}makeTabbable(to){this._shouldTabInside=to||!this._props.tabbability}isActive(to){var ro;const no=this.getElement()||null;let oo=!0;for(let so=no==null?void 0:no.parentElement;so;so=so.parentElement){const ao=(ro=getTabsterOnElement(this._tabster,so))===null||ro===void 0?void 0:ro.groupper;ao&&(ao._shouldTabInside||(oo=!1))}let io=oo?this._props.tabbability?this._shouldTabInside:!1:void 0;if(io&&to){const so=this._tabster.focusedElement.getFocusedElement();so&&(io=so!==this.getFirst(!0))}return io}getFirst(to){var ro;const no=this.getElement();let oo;if(no){if(to&&this._tabster.focusable.isFocusable(no))return no;oo=(ro=this._first)===null||ro===void 0?void 0:ro.get(),oo||(oo=this._tabster.focusable.findFirst({container:no,useActiveModalizer:!0})||void 0,oo&&this.setFirst(oo))}return oo}setFirst(to){to?this._first=new WeakHTMLElement(this._tabster.getWindow,to):delete this._first}acceptElement(to,ro){var no;const oo=ro.cachedGrouppers,io=(no=this.getElement())===null||no===void 0?void 0:no.parentElement,so=io&&RootAPI.getTabsterContext(this._tabster,io),ao=so==null?void 0:so.groupper,lo=so!=null&&so.groupperBeforeMover?ao:void 0;let uo;const co=ho=>{let mo=oo[ho.id],vo;return mo?vo=mo.isActive:(vo=this.isActive(!0),mo=oo[ho.id]={isActive:vo}),vo};if(lo&&(uo=lo.getElement(),!co(lo)&&uo&&ro.container!==uo&&ro.container.contains(uo)))return ro.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const fo=co(this),po=this.getElement();if(po&&fo!==!0){if(po===to&&ao&&(uo||(uo=ao.getElement()),uo&&!co(ao)&&ro.container.contains(uo)&&uo!==ro.container)||po!==to&&po.contains(to))return ro.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const ho=oo[this.id];let mo;if("first"in ho?mo=ho.first:mo=ho.first=this.getFirst(!0),mo&&ro.acceptCondition(mo))return ro.rejectElementsFrom=po,ro.skippedFocusable=!0,mo!==ro.from?(ro.found=!0,ro.foundElement=mo,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class GroupperAPI{constructor(to,ro){this._current={},this._grouppers={},this._init=()=>{const no=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),no.document.addEventListener("mousedown",this._onMouseDown,!0),no.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=no=>{delete this._grouppers[no.id]},this._onFocus=no=>{no&&this._updateCurrent(no,!0,!0)},this._onMouseDown=no=>{no.target&&this._updateCurrent(no.target,!0)},this._onKeyDown=no=>{if(no.keyCode!==Keys.Enter&&no.keyCode!==Keys.Esc||no.ctrlKey||no.altKey||no.shiftKey||no.metaKey)return;const oo=this._tabster.focusedElement.getFocusedElement();oo&&this.handleKeyPress(oo,no)},this._tabster=to,this._win=ro,to.queueInit(this._init)}dispose(){const to=this._win();this._handleKeyPressTimer&&(to.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(to.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),to.document.removeEventListener("mousedown",this._onMouseDown,!0),to.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(ro=>{this._grouppers[ro]&&(this._grouppers[ro].dispose(),delete this._grouppers[ro])})}createGroupper(to,ro,no){const oo=new Groupper(this._tabster,to,this._onGroupperDispose,ro,no);this._grouppers[oo.id]=oo;const io=this._tabster.focusedElement.getFocusedElement();return io&&to.contains(io)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,io===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(io,!0,!0)},0)),oo}forgetCurrentGrouppers(){this._current={}}_updateCurrent(to,ro,no){var oo;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const io={};let so=!0;for(let ao=to;ao;ao=ao.parentElement){const lo=(oo=getTabsterOnElement(this._tabster,ao))===null||oo===void 0?void 0:oo.groupper;if(lo){if(io[lo.id]=!0,so&&no&&ao!==to&&(so=!1),ro||!so){this._current[lo.id]=lo;const uo=lo.isActive()||to!==ao&&(!lo.getProps().delegated||lo.getFirst(!1)!==to);lo.makeTabbable(uo)}so=!1}}for(const ao of Object.keys(this._current)){const lo=this._current[ao];lo.id in io||(lo.makeTabbable(!1),lo.setFirst(void 0),delete this._current[ao])}}handleKeyPress(to,ro,no){const oo=this._tabster,io=RootAPI.getTabsterContext(oo,to),so=io==null?void 0:io.modalizerInGroupper;let ao=(io==null?void 0:io.groupper)||so;if(io&&ao){const lo=this._win();if(this._handleKeyPressTimer&&(lo.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),io.ignoreKeydown(ro))return;let uo;const co=ao.getElement();if(ro.keyCode===Keys.Enter)co&&(to===co||ao.getProps().delegated&&to===ao.getFirst(!1))&&(uo=oo.focusable.findNext({container:co,currentElement:to,useActiveModalizer:!0})),uo&&co&&triggerMoveFocusEvent({by:"groupper",owner:co,next:uo,relatedEvent:ro})&&(ro.preventDefault(),ro.stopImmediatePropagation(),uo.focus());else if(ro.keyCode===Keys.Esc){const fo=oo.focusedElement.getFocusedElement();this._handleKeyPressTimer=lo.setTimeout(()=>{var po;if(delete this._handleKeyPressTimer,fo===oo.focusedElement.getFocusedElement()&&ao&&co&&co.contains(to)){if(to!==co||no)uo=ao.getFirst(!0);else{const ho=co.parentElement,mo=ho?RootAPI.getTabsterContext(oo,ho):void 0;ao=mo==null?void 0:mo.groupper,uo=ao==null?void 0:ao.getFirst(!0)}uo&&triggerMoveFocusEvent({by:"groupper",owner:co,next:uo,relatedEvent:ro})&&(ao&&(ao.makeTabbable(!1),so&&((po=oo.modalizer)===null||po===void 0||po.setActive(void 0))),uo.focus())}},0)}}}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class KeyboardNavigationState extends Subscribable{constructor(to){super(),this._onChange=ro=>{this.setVal(ro,void 0)},this._keyborg=createKeyborg(to()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),disposeKeyborg(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(to){var ro;(ro=this._keyborg)===null||ro===void 0||ro.setVal(to)}isNavigatingWithKeyboard(){var to;return!!(!((to=this._keyborg)===null||to===void 0)&&to.isNavigatingWithKeyboard())}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let _wasFocusedCounter=0;const _ariaHidden="aria-hidden";class ModalizerDummyManager extends DummyInputManager{constructor(to,ro,no){super(ro,to,DummyInputManagerPriorities.Modalizer,no),this._setHandlers((oo,io)=>{var so,ao,lo;const uo=to.get(),co=uo&&((so=RootAPI.getRoot(ro,uo))===null||so===void 0?void 0:so.getElement()),fo=oo.input;let po;if(co&&fo){const ho=(ao=fo.__tabsterDummyContainer)===null||ao===void 0?void 0:ao.get(),mo=RootAPI.getTabsterContext(ro,ho||fo);mo&&(po=(lo=FocusedElementState.findNextTabbable(ro,mo,co,fo,void 0,io,!0))===null||lo===void 0?void 0:lo.element),po&&nativeFocus(po)}})}}class Modalizer extends TabsterPart{constructor(to,ro,no,oo,io,so){super(to,ro,oo),this._wasFocused=0,this.userId=oo.id,this._onDispose=no,this._activeElements=so,to.controlTab||(this.dummyManager=new ModalizerDummyManager(this._element,to,io))}makeActive(to){if(this._isActive!==to){this._isActive=to;const ro=this.getElement();if(ro){const no=this._activeElements,oo=no.map(io=>io.get()).indexOf(ro);to?oo<0&&no.push(new WeakHTMLElement(this._tabster.getWindow,ro)):oo>=0&&no.splice(oo,1)}this.triggerFocusEvent(to?ModalizerActiveEventName:ModalizerInactiveEventName)}}focused(to){return to||(this._wasFocused=++_wasFocusedCounter),this._wasFocused}setProps(to){to.id&&(this.userId=to.id),this._props={...to}}dispose(){var to;this.makeActive(!1),this._onDispose(this),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(to){var ro;return!!(!((ro=this.getElement())===null||ro===void 0)&&ro.contains(to))}findNextTabbable(to,ro,no,oo){var io,so;if(!this.getElement())return null;const lo=this._tabster;let uo=null,co=!1,fo;const po=to&&((io=RootAPI.getRoot(lo,to))===null||io===void 0?void 0:io.getElement());if(po){const ho={container:po,currentElement:to,referenceElement:ro,ignoreAccessibility:oo,useActiveModalizer:!0},mo={};uo=lo.focusable[no?"findPrev":"findNext"](ho,mo),!uo&&this._props.isTrapped&&(!((so=lo.modalizer)===null||so===void 0)&&so.activeId)?(uo=lo.focusable[no?"findLast":"findFirst"]({container:po,ignoreAccessibility:oo,useActiveModalizer:!0},mo),co=!0):co=!!mo.outOfDOMOrder,fo=mo.uncontrolled}return{element:uo,uncontrolled:fo,outOfDOMOrder:co}}triggerFocusEvent(to,ro){const no=this.getElement();let oo=!1;if(no){const io=ro?this._activeElements.map(so=>so.get()):[no];for(const so of io)so&&!triggerEvent(so,to,{id:this.userId,element:no,eventName:to})&&(oo=!0)}return oo}_remove(){}}class ModalizerAPI{constructor(to,ro,no){this._onModalizerDispose=io=>{const so=io.id,ao=io.userId,lo=this._parts[ao];delete this._modalizers[so],lo&&(delete lo[so],Object.keys(lo).length===0&&(delete this._parts[ao],this.activeId===ao&&this.setActive(void 0)))},this._onKeyDown=io=>{var so;if(io.keyCode!==Keys.Esc)return;const ao=this._tabster,lo=ao.focusedElement.getFocusedElement();if(lo){const uo=RootAPI.getTabsterContext(ao,lo),co=uo==null?void 0:uo.modalizer;if(uo&&!uo.groupper&&(co!=null&&co.isActive())&&!uo.ignoreKeydown(io)){const fo=co.userId;if(fo){const po=this._parts[fo];if(po){const ho=Object.keys(po).map(mo=>{var vo;const bo=po[mo],xo=bo.getElement();let _o;return xo&&(_o=(vo=getTabsterOnElement(this._tabster,xo))===null||vo===void 0?void 0:vo.groupper),bo&&xo&&_o?{el:xo,focusedSince:bo.focused(!0)}:{focusedSince:0}}).filter(mo=>mo.focusedSince>0).sort((mo,vo)=>mo.focusedSince>vo.focusedSince?-1:mo.focusedSince{var ao,lo;const uo=io&&RootAPI.getTabsterContext(this._tabster,io);if(!uo||!io)return;const co=this._augMap;for(let po=io;po;po=po.parentElement)co.has(po)&&(co.delete(po),augmentAttribute(this._tabster,po,_ariaHidden));const fo=uo.modalizer;if((lo=fo||((ao=getTabsterOnElement(this._tabster,io))===null||ao===void 0?void 0:ao.modalizer))===null||lo===void 0||lo.focused(),(fo==null?void 0:fo.userId)===this.activeId){this.currentIsOthersAccessible=fo==null?void 0:fo.getProps().isOthersAccessible;return}if(so.isFocusedProgrammatically||this.currentIsOthersAccessible||fo!=null&&fo.getProps().isAlwaysAccessible)this.setActive(fo);else{const po=this._win();po.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=po.setTimeout(()=>this._restoreModalizerFocus(io),100)}},this._tabster=to,this._win=to.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=ro,this._accessibleCheck=no,this.activeElements=[],to.controlTab||to.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),to.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const to=this._win();to.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(ro=>{this._modalizers[ro]&&(this._modalizers[ro].dispose(),delete this._modalizers[ro])}),to.clearTimeout(this._restoreModalizerFocusTimer),to.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(to,ro,no){var oo;const io=new Modalizer(this._tabster,to,this._onModalizerDispose,ro,no,this.activeElements),so=io.id,ao=ro.id;this._modalizers[so]=io;let lo=this._parts[ao];return lo||(lo=this._parts[ao]={}),lo[so]=io,to.contains((oo=this._tabster.focusedElement.getFocusedElement())!==null&&oo!==void 0?oo:null)&&(ao!==this.activeId?this.setActive(io):io.makeActive(!0)),io}isAugmented(to){return this._augMap.has(to)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(to){const ro=to==null?void 0:to.userId,no=this.activeId;if(no!==ro){if(this.activeId=ro,no){const oo=this._parts[no];if(oo)for(const io of Object.keys(oo))oo[io].makeActive(!1)}if(ro){const oo=this._parts[ro];if(oo)for(const io of Object.keys(oo))oo[io].makeActive(!0)}this.currentIsOthersAccessible=to==null?void 0:to.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(to,ro,no){const oo=RootAPI.getTabsterContext(this._tabster,to),io=oo==null?void 0:oo.modalizer;if(io){this.setActive(io);const so=io.getProps(),ao=io.getElement();if(ao){if(ro===void 0&&(ro=so.isNoFocusFirst),!ro&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:ao})||(no===void 0&&(no=so.isNoFocusDefault),!no&&this._tabster.focusedElement.focusDefault(ao)))return!0;this._tabster.focusedElement.resetFocus(ao)}}return!1}acceptElement(to,ro){var no;const oo=ro.modalizerUserId,io=(no=ro.currentCtx)===null||no===void 0?void 0:no.modalizer;if(oo)for(const ao of this.activeElements){const lo=ao.get();if(lo&&(to.contains(lo)||lo===to))return NodeFilter.FILTER_SKIP}const so=oo===(io==null?void 0:io.userId)||!oo&&(io!=null&&io.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return so!==void 0&&(ro.skippedFocusable=!0),so}_hiddenUpdate(){var to;const ro=this._tabster,no=ro.getWindow().document.body,oo=this.activeId,io=this._parts,so=[],ao=[],lo=this._alwaysAccessibleSelector,uo=lo?Array.from(no.querySelectorAll(lo)):[],co=[];for(const xo of Object.keys(io)){const _o=io[xo];for(const So of Object.keys(_o)){const Eo=_o[So],ko=Eo.getElement(),Co=Eo.getProps().isAlwaysAccessible;ko&&(xo===oo?(co.push(ko),this.currentIsOthersAccessible||so.push(ko)):Co?uo.push(ko):ao.push(ko))}}const fo=this._augMap,po=so.length>0?[...so,...uo]:void 0,ho=[],mo=new WeakMap,vo=(xo,_o)=>{var So;const Eo=xo.tagName;if(Eo==="SCRIPT"||Eo==="STYLE")return;let ko=!1;fo.has(xo)?_o?ko=!0:(fo.delete(xo),augmentAttribute(ro,xo,_ariaHidden)):_o&&!(!((So=this._accessibleCheck)===null||So===void 0)&&So.call(this,xo,co))&&augmentAttribute(ro,xo,_ariaHidden,"true")&&(fo.set(xo,!0),ko=!0),ko&&(ho.push(new WeakHTMLElement(ro.getWindow,xo)),mo.set(xo,!0))},bo=xo=>{for(let _o=xo.firstElementChild;_o;_o=_o.nextElementSibling){let So=!1,Eo=!1;if(po){for(const ko of po){if(_o===ko){So=!0;break}if(_o.contains(ko)){Eo=!0;break}}Eo?bo(_o):So||vo(_o,!0)}else vo(_o,!1)}};po||uo.forEach(xo=>vo(xo,!1)),ao.forEach(xo=>vo(xo,!0)),no&&bo(no),(to=this._aug)===null||to===void 0||to.map(xo=>xo.get()).forEach(xo=>{xo&&!mo.get(xo)&&vo(xo,!1)}),this._aug=ho,this._augMap=mo}_restoreModalizerFocus(to){const ro=to==null?void 0:to.ownerDocument;if(!to||!ro)return;const no=RootAPI.getTabsterContext(this._tabster,to),oo=no==null?void 0:no.modalizer,io=this.activeId;if(!oo&&!io||oo&&io===oo.userId)return;const so=no==null?void 0:no.root.getElement();if(so){let ao=this._tabster.focusable.findFirst({container:so,useActiveModalizer:!0});if(ao){if(to.compareDocumentPosition(ao)&document.DOCUMENT_POSITION_PRECEDING&&(ao=this._tabster.focusable.findLast({container:so,useActiveModalizer:!0}),!ao))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(ao);return}}to.blur()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const _inputSelector=["input","textarea","*[contenteditable]"].join(", ");class MoverDummyManager extends DummyInputManager{constructor(to,ro,no,oo){super(ro,to,DummyInputManagerPriorities.Mover,oo),this._onFocusDummyInput=io=>{var so,ao;const lo=this._element.get(),uo=io.input;if(lo&&uo){const co=RootAPI.getTabsterContext(this._tabster,lo);let fo;co&&(fo=(so=FocusedElementState.findNextTabbable(this._tabster,co,void 0,uo,void 0,!io.isFirst,!0))===null||so===void 0?void 0:so.element);const po=(ao=this._getMemorized())===null||ao===void 0?void 0:ao.get();po&&(fo=po),fo&&nativeFocus(fo)}},this._tabster=ro,this._getMemorized=no,this._setHandlers(this._onFocusDummyInput)}}const _moverUpdateAdd=1,_moverUpdateAttr=2,_moverUpdateRemove=3;class Mover extends TabsterPart{constructor(to,ro,no,oo,io){var so;super(to,ro,oo),this._visible={},this._onIntersection=lo=>{for(const uo of lo){const co=uo.target,fo=getElementUId(this._win,co);let po,ho=this._fullyVisible;if(uo.intersectionRatio>=.25?(po=uo.intersectionRatio>=.75?Visibilities.Visible:Visibilities.PartiallyVisible,po===Visibilities.Visible&&(ho=fo)):po=Visibilities.Invisible,this._visible[fo]!==po){po===void 0?(delete this._visible[fo],ho===fo&&delete this._fullyVisible):(this._visible[fo]=po,this._fullyVisible=ho);const mo=this.getState(co);mo&&triggerEvent(co,MoverEventName,mo)}}},this._win=to.getWindow,this.visibilityTolerance=(so=oo.visibilityTolerance)!==null&&so!==void 0?so:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=no;const ao=()=>oo.memorizeCurrent?this._current:void 0;to.controlTab||(this.dummyManager=new MoverDummyManager(this._element,to,ao,io))}dispose(){var to;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const ro=this._win();this._setCurrentTimer&&(ro.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(ro.clearTimeout(this._updateTimer),delete this._updateTimer),(to=this.dummyManager)===null||to===void 0||to.dispose(),delete this.dummyManager}setCurrent(to){to?this._current=new WeakHTMLElement(this._win,to):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var ro;delete this._setCurrentTimer;const no=[];this._current!==this._prevCurrent&&(no.push(this._current),no.push(this._prevCurrent),this._prevCurrent=this._current);for(const oo of no){const io=oo==null?void 0:oo.get();if(io&&((ro=this._allElements)===null||ro===void 0?void 0:ro.get(io))===this){const so=this._props;if(io&&(so.visibilityAware!==void 0||so.trackState)){const ao=this.getState(io);ao&&triggerEvent(io,MoverEventName,ao)}}}}))}getCurrent(){var to;return((to=this._current)===null||to===void 0?void 0:to.get())||null}findNextTabbable(to,ro,no,oo){var io;const so=this.getElement(),ao=so&&((io=to==null?void 0:to.__tabsterDummyContainer)===null||io===void 0?void 0:io.get())===so;if(!so)return null;let lo=null,uo=!1,co;if(this._props.tabbable||ao||to&&!so.contains(to)){const fo={currentElement:to,referenceElement:ro,container:so,ignoreAccessibility:oo,useActiveModalizer:!0},po={};lo=this._tabster.focusable[no?"findPrev":"findNext"](fo,po),uo=!!po.outOfDOMOrder,co=po.uncontrolled}return{element:lo,uncontrolled:co,outOfDOMOrder:uo}}acceptElement(to,ro){var no,oo,io;if(!FocusedElementState.isTabbing)return!((no=ro.currentCtx)===null||no===void 0)&&no.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:so,visibilityAware:ao,hasDefault:lo=!0}=this._props,uo=this.getElement();if(uo&&(so||ao||lo)&&(!uo.contains(ro.from)||((oo=ro.from.__tabsterDummyContainer)===null||oo===void 0?void 0:oo.get())===uo)){let co;if(so){const fo=(io=this._current)===null||io===void 0?void 0:io.get();fo&&ro.acceptCondition(fo)&&(co=fo)}if(!co&&lo&&(co=this._tabster.focusable.findDefault({container:uo,useActiveModalizer:!0})),!co&&ao&&(co=this._tabster.focusable.findElement({container:uo,useActiveModalizer:!0,isBackward:ro.isBackward,acceptCondition:fo=>{var po;const ho=getElementUId(this._win,fo),mo=this._visible[ho];return uo!==fo&&!!(!((po=this._allElements)===null||po===void 0)&&po.get(fo))&&ro.acceptCondition(fo)&&(mo===Visibilities.Visible||mo===Visibilities.PartiallyVisible&&(ao===Visibilities.PartiallyVisible||!this._fullyVisible))}})),co)return ro.found=!0,ro.foundElement=co,ro.rejectElementsFrom=uo,ro.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const to=this.getElement();if(this._unobserve||!to||typeof MutationObserver>"u")return;const ro=this._win(),no=this._allElements=new WeakMap,oo=this._tabster.focusable;let io=this._updateQueue=[];const so=new MutationObserver(ho=>{for(const mo of ho){const vo=mo.target,bo=mo.removedNodes,xo=mo.addedNodes;if(mo.type==="attributes")mo.attributeName==="tabindex"&&io.push({element:vo,type:_moverUpdateAttr});else{for(let _o=0;_o{var vo,bo;const xo=no.get(ho);xo&&mo&&((vo=this._intersectionObserver)===null||vo===void 0||vo.unobserve(ho),no.delete(ho)),!xo&&!mo&&(no.set(ho,this),(bo=this._intersectionObserver)===null||bo===void 0||bo.observe(ho))},lo=ho=>{const mo=oo.isFocusable(ho);no.get(ho)?mo||ao(ho,!0):mo&&ao(ho)},uo=ho=>{const{mover:mo}=po(ho);if(mo&&mo!==this)if(mo.getElement()===ho&&oo.isFocusable(ho))ao(ho);else return;const vo=createElementTreeWalker(ro.document,ho,bo=>{const{mover:xo,groupper:_o}=po(bo);if(xo&&xo!==this)return NodeFilter.FILTER_REJECT;const So=_o==null?void 0:_o.getFirst(!0);return _o&&_o.getElement()!==bo&&So&&So!==bo?NodeFilter.FILTER_REJECT:(oo.isFocusable(bo)&&ao(bo),NodeFilter.FILTER_SKIP)});if(vo)for(vo.currentNode=ho;vo.nextNode(););},co=ho=>{no.get(ho)&&ao(ho,!0);for(let vo=ho.firstElementChild;vo;vo=vo.nextElementSibling)co(vo)},fo=()=>{!this._updateTimer&&io.length&&(this._updateTimer=ro.setTimeout(()=>{delete this._updateTimer;for(const{element:ho,type:mo}of io)switch(mo){case _moverUpdateAttr:lo(ho);break;case _moverUpdateAdd:uo(ho);break;case _moverUpdateRemove:co(ho);break}io=this._updateQueue=[]},0))},po=ho=>{const mo={};for(let vo=ho;vo;vo=vo.parentElement){const bo=getTabsterOnElement(this._tabster,vo);if(bo&&(bo.groupper&&!mo.groupper&&(mo.groupper=bo.groupper),bo.mover)){mo.mover=bo.mover;break}}return mo};io.push({element:to,type:_moverUpdateAdd}),fo(),so.observe(to,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{so.disconnect()}}getState(to){const ro=getElementUId(this._win,to);if(ro in this._visible){const no=this._visible[ro]||Visibilities.Invisible;return{isCurrent:this._current?this._current.get()===to:void 0,visibility:no}}}}function getDistance(eo,to,ro,no,oo,io,so,ao){const lo=ro{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=no=>{delete this._movers[no.id]},this._onFocus=no=>{var oo;let io=no,so=no;for(let ao=no==null?void 0:no.parentElement;ao;ao=ao.parentElement){const lo=(oo=getTabsterOnElement(this._tabster,ao))===null||oo===void 0?void 0:oo.mover;lo&&(lo.setCurrent(so),io=void 0),!io&&this._tabster.focusable.isFocusable(ao)&&(io=so=ao)}},this._onKeyDown=async no=>{var oo,io,so,ao;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(oo=this._ignoredInputResolve)===null||oo===void 0||oo.call(this,!1);let lo=no.keyCode;if(no.ctrlKey||no.altKey||no.shiftKey||no.metaKey)return;switch(lo){case Keys.Down:case Keys.Right:case Keys.Up:case Keys.Left:case Keys.PageDown:case Keys.PageUp:case Keys.Home:case Keys.End:break;default:return}const uo=this._tabster,co=uo.focusedElement.getFocusedElement();if(!co||await this._isIgnoredInput(co,lo))return;const fo=RootAPI.getTabsterContext(uo,co,{checkRtl:!0});if(!fo||!fo.mover||fo.excludedFromMover||fo.ignoreKeydown(no))return;const po=fo.mover,ho=po.getElement();if(fo.groupperBeforeMover){const Bo=fo.groupper;if(Bo&&!Bo.isActive(!0)){for(let Mo=(io=Bo.getElement())===null||io===void 0?void 0:io.parentElement;Mo&&Mo!==ho;Mo=Mo.parentElement)if(!((ao=(so=getTabsterOnElement(uo,Mo))===null||so===void 0?void 0:so.groupper)===null||ao===void 0)&&ao.isActive(!0))return}else return}if(!ho)return;const mo=uo.focusable,vo=po.getProps(),bo=vo.direction||MoverDirections.Both,xo=bo===MoverDirections.Both,_o=xo||bo===MoverDirections.Vertical,So=xo||bo===MoverDirections.Horizontal,Eo=bo===MoverDirections.GridLinear,ko=Eo||bo===MoverDirections.Grid,wo=vo.cyclic;let Co,Ro,Ao,Io=0,$o=0;if(ko&&(Ao=co.getBoundingClientRect(),Io=Math.ceil(Ao.left),$o=Math.floor(Ao.right)),fo.rtl&&(lo===Keys.Right?lo=Keys.Left:lo===Keys.Left&&(lo=Keys.Right)),lo===Keys.Down&&_o||lo===Keys.Right&&(So||ko))if(Co=mo.findNext({currentElement:co,container:ho,useActiveModalizer:!0}),Co&&ko){const Bo=Math.ceil(Co.getBoundingClientRect().left);!Eo&&$o>Bo&&(Co=void 0)}else!Co&&wo&&(Co=mo.findFirst({container:ho,useActiveModalizer:!0}));else if(lo===Keys.Up&&_o||lo===Keys.Left&&(So||ko))if(Co=mo.findPrev({currentElement:co,container:ho,useActiveModalizer:!0}),Co&&ko){const Bo=Math.floor(Co.getBoundingClientRect().right);!Eo&&Bo>Io&&(Co=void 0)}else!Co&&wo&&(Co=mo.findLast({container:ho,useActiveModalizer:!0}));else if(lo===Keys.Home)ko?mo.findElement({container:ho,currentElement:co,useActiveModalizer:!0,isBackward:!0,acceptCondition:Bo=>{var Mo;if(!mo.isFocusable(Bo))return!1;const Ho=Math.ceil((Mo=Bo.getBoundingClientRect().left)!==null&&Mo!==void 0?Mo:0);return Bo!==co&&Io<=Ho?!0:(Co=Bo,!1)}}):Co=mo.findFirst({container:ho,useActiveModalizer:!0});else if(lo===Keys.End)ko?mo.findElement({container:ho,currentElement:co,useActiveModalizer:!0,acceptCondition:Bo=>{var Mo;if(!mo.isFocusable(Bo))return!1;const Ho=Math.ceil((Mo=Bo.getBoundingClientRect().left)!==null&&Mo!==void 0?Mo:0);return Bo!==co&&Io>=Ho?!0:(Co=Bo,!1)}}):Co=mo.findLast({container:ho,useActiveModalizer:!0});else if(lo===Keys.PageUp){if(mo.findElement({currentElement:co,container:ho,useActiveModalizer:!0,isBackward:!0,acceptCondition:Bo=>mo.isFocusable(Bo)?isElementVerticallyVisibleInContainer(this._win,Bo,po.visibilityTolerance)?(Co=Bo,!1):!0:!1}),ko&&Co){const Bo=Math.ceil(Co.getBoundingClientRect().left);mo.findElement({currentElement:Co,container:ho,useActiveModalizer:!0,acceptCondition:Mo=>{if(!mo.isFocusable(Mo))return!1;const Ho=Math.ceil(Mo.getBoundingClientRect().left);return Io=Ho?!0:(Co=Mo,!1)}})}Ro=!1}else if(lo===Keys.PageDown){if(mo.findElement({currentElement:co,container:ho,useActiveModalizer:!0,acceptCondition:Bo=>mo.isFocusable(Bo)?isElementVerticallyVisibleInContainer(this._win,Bo,po.visibilityTolerance)?(Co=Bo,!1):!0:!1}),ko&&Co){const Bo=Math.ceil(Co.getBoundingClientRect().left);mo.findElement({currentElement:Co,container:ho,useActiveModalizer:!0,isBackward:!0,acceptCondition:Mo=>{if(!mo.isFocusable(Mo))return!1;const Ho=Math.ceil(Mo.getBoundingClientRect().left);return Io>Ho||Bo<=Ho?!0:(Co=Mo,!1)}})}Ro=!0}else if(ko){const Bo=lo===Keys.Up,Mo=Io,Ho=Math.ceil(Ao.top),jo=$o,Oo=Math.floor(Ao.bottom);let Fo,Go,qo=0;mo.findAll({container:ho,currentElement:co,isBackward:Bo,onElement:Xo=>{const Zo=Xo.getBoundingClientRect(),Qo=Math.ceil(Zo.left),xs=Math.ceil(Zo.top),Ts=Math.floor(Zo.right),Rs=Math.floor(Zo.bottom);if(Bo&&Hoxs)return!0;const Os=Math.ceil(Math.min(jo,Ts))-Math.floor(Math.max(Mo,Qo)),As=Math.ceil(Math.min(jo-Mo,Ts-Qo));if(Os>0&&As>=Os){const Ds=Os/As;Ds>qo&&(Fo=Xo,qo=Ds)}else if(qo===0){const Ds=getDistance(Mo,Ho,jo,Oo,Qo,xs,Ts,Rs);(Go===void 0||Ds0)return!1;return!0}}),Co=Fo}Co&&triggerMoveFocusEvent({by:"mover",owner:ho,next:Co,relatedEvent:no})&&(Ro!==void 0&&scrollIntoView$2(this._win,Co,Ro),no.preventDefault(),no.stopImmediatePropagation(),nativeFocus(Co))},this._tabster=to,this._win=ro,this._movers={},to.queueInit(this._init)}dispose(){var to;const ro=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(to=this._ignoredInputResolve)===null||to===void 0||to.call(this,!1),this._ignoredInputTimer&&(ro.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),ro.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(no=>{this._movers[no]&&(this._movers[no].dispose(),delete this._movers[no])})}createMover(to,ro,no){const oo=new Mover(this._tabster,to,this._onMoverDispose,ro,no);return this._movers[oo.id]=oo,oo}async _isIgnoredInput(to,ro){var no;if(to.getAttribute("aria-expanded")==="true"&&to.hasAttribute("aria-activedescendant"))return!0;if(matchesSelector(to,_inputSelector)){let oo=0,io=0,so=0,ao;if(to.tagName==="INPUT"||to.tagName==="TEXTAREA"){const lo=to.type;if(so=(to.value||"").length,lo==="email"||lo==="number"){if(so){const co=(no=to.ownerDocument.defaultView)===null||no===void 0?void 0:no.getSelection();if(co){const fo=co.toString().length,po=ro===Keys.Left||ro===Keys.Up;if(co.modify("extend",po?"backward":"forward","character"),fo!==co.toString().length)return co.modify("extend",po?"forward":"backward","character"),!0;so=0}}}else{const co=to.selectionStart;if(co===null)return lo==="hidden";oo=co||0,io=to.selectionEnd||0}}else to.contentEditable==="true"&&(ao=new(getPromise(this._win))(lo=>{this._ignoredInputResolve=mo=>{delete this._ignoredInputResolve,lo(mo)};const uo=this._win();this._ignoredInputTimer&&uo.clearTimeout(this._ignoredInputTimer);const{anchorNode:co,focusNode:fo,anchorOffset:po,focusOffset:ho}=uo.getSelection()||{};this._ignoredInputTimer=uo.setTimeout(()=>{var mo,vo,bo;delete this._ignoredInputTimer;const{anchorNode:xo,focusNode:_o,anchorOffset:So,focusOffset:Eo}=uo.getSelection()||{};if(xo!==co||_o!==fo||So!==po||Eo!==ho){(mo=this._ignoredInputResolve)===null||mo===void 0||mo.call(this,!1);return}if(oo=So||0,io=Eo||0,so=((vo=to.textContent)===null||vo===void 0?void 0:vo.length)||0,xo&&_o&&to.contains(xo)&&to.contains(_o)&&xo!==to){let ko=!1;const wo=Co=>{if(Co===xo)ko=!0;else if(Co===_o)return!0;const Ro=Co.textContent;if(Ro&&!Co.firstChild){const Io=Ro.length;ko?_o!==xo&&(io+=Io):(oo+=Io,io+=Io)}let Ao=!1;for(let Io=Co.firstChild;Io&&!Ao;Io=Io.nextSibling)Ao=wo(Io);return Ao};wo(to)}(bo=this._ignoredInputResolve)===null||bo===void 0||bo.call(this,!0)},0)}));if(ao&&!await ao||oo!==io||oo>0&&(ro===Keys.Left||ro===Keys.Up||ro===Keys.Home)||oo"u")return()=>{};const oo=to.getWindow;let io;const so=co=>{var fo,po,ho,mo,vo;for(const bo of co){const xo=bo.target,_o=bo.removedNodes,So=bo.addedNodes;if(bo.type==="attributes")bo.attributeName===TabsterAttributeName&&ro(to,xo);else{for(let Eo=0;Eo<_o.length;Eo++)ao(_o[Eo],!0),(po=(fo=to._dummyObserver).domChanged)===null||po===void 0||po.call(fo,xo);for(let Eo=0;Eolo(ho,fo));if(po)for(;po.nextNode(););}function lo(co,fo){var po;if(!co.getAttribute)return NodeFilter.FILTER_SKIP;const ho=co.__tabsterElementUID;return ho&&io&&(fo?delete io[ho]:(po=io[ho])!==null&&po!==void 0||(io[ho]=new WeakHTMLElement(oo,co))),(getTabsterOnElement(to,co)||co.hasAttribute(TabsterAttributeName))&&ro(to,co,fo),NodeFilter.FILTER_SKIP}const uo=new MutationObserver(so);return no&&ao(oo().document.body),uo.observe(eo,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[TabsterAttributeName]}),()=>{uo.disconnect()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class UncontrolledAPI{constructor(to){this._isUncontrolledCompletely=to}isUncontrolledCompletely(to,ro){var no;const oo=(no=this._isUncontrolledCompletely)===null||no===void 0?void 0:no.call(this,to,ro);return oo===void 0?ro:oo}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const EVENT_NAME="restorer:restorefocus",HISOTRY_DEPTH=10;class Restorer extends TabsterPart{constructor(to,ro,no){var oo;if(super(to,ro,no),this._hasFocus=!1,this._onFocusOut=io=>{var so;const ao=(so=this._element)===null||so===void 0?void 0:so.get();ao&&io.relatedTarget===null&&ao.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})),ao&&!ao.contains(io.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===RestorerTypes.Source){const io=(oo=this._element)===null||oo===void 0?void 0:oo.get();io==null||io.addEventListener("focusout",this._onFocusOut),io==null||io.addEventListener("focusin",this._onFocusIn)}}dispose(){var to,ro;if(this._props.type===RestorerTypes.Source){const no=(to=this._element)===null||to===void 0?void 0:to.get();no==null||no.removeEventListener("focusout",this._onFocusOut),no==null||no.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((ro=this._tabster.getWindow().document.body)===null||ro===void 0||ro.dispatchEvent(new Event(EVENT_NAME,{bubbles:!0})))}}}class RestorerAPI{constructor(to){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=ro=>{const no=this._getWindow();this._restoreFocusTimeout&&no.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=no.setTimeout(()=>this._restoreFocus(ro.target))},this._onFocusIn=ro=>{var no;if(!ro)return;const oo=getTabsterOnElement(this._tabster,ro);((no=oo==null?void 0:oo.restorer)===null||no===void 0?void 0:no.getProps().type)===RestorerTypes.Target&&this._addToHistory(ro)},this._restoreFocus=ro=>{var no,oo,io;const so=this._getWindow().document;if(so.activeElement!==so.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&so.body.contains(ro))return;let ao=this._history.pop();for(;ao&&!so.body.contains((oo=(no=ao.get())===null||no===void 0?void 0:no.parentElement)!==null&&oo!==void 0?oo:null);)ao=this._history.pop();(io=ao==null?void 0:ao.get())===null||io===void 0||io.focus()},this._tabster=to,this._getWindow=to.getWindow,this._getWindow().addEventListener(EVENT_NAME,this._onRestoreFocus),this._keyboardNavState=to.keyboardNavigation,this._focusedElementState=to.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const to=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),to.removeEventListener(EVENT_NAME,this._onRestoreFocus),this._restoreFocusTimeout&&to.clearTimeout(this._restoreFocusTimeout)}_addToHistory(to){var ro;((ro=this._history[this._history.length-1])===null||ro===void 0?void 0:ro.get())!==to&&(this._history.length>HISOTRY_DEPTH&&this._history.shift(),this._history.push(new WeakHTMLElement(this._getWindow,to)))}createRestorer(to,ro){const no=new Restorer(this._tabster,to,ro);return ro.type===RestorerTypes.Target&&to.ownerDocument.activeElement===to&&this._addToHistory(to),no}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class Tabster{constructor(to){this.keyboardNavigation=to.keyboardNavigation,this.focusedElement=to.focusedElement,this.focusable=to.focusable,this.root=to.root,this.uncontrolled=to.uncontrolled,this.core=to}}class TabsterCore{constructor(to,ro){var no,oo;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=createWeakMap(to),this._win=to;const io=this.getWindow;this.keyboardNavigation=new KeyboardNavigationState(io),this.focusedElement=new FocusedElementState(this,io),this.focusable=new FocusableAPI(this),this.root=new RootAPI(this,ro==null?void 0:ro.autoRoot),this.uncontrolled=new UncontrolledAPI((ro==null?void 0:ro.checkUncontrolledCompletely)||(ro==null?void 0:ro.checkUncontrolledTrappingFocus)),this.controlTab=(no=ro==null?void 0:ro.controlTab)!==null&&no!==void 0?no:!0,this.rootDummyInputs=!!(ro!=null&&ro.rootDummyInputs),this._dummyObserver=new DummyInputObserver(io),this.getParent=(oo=ro==null?void 0:ro.getParent)!==null&&oo!==void 0?oo:so=>so.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:so=>{if(!this._unobserve){const ao=io().document;this._unobserve=observeMutations(ao,this,updateTabsterByAttribute,so)}}},startFakeWeakRefsCleanup(io),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(to){var ro;to&&(this.getParent=(ro=to.getParent)!==null&&ro!==void 0?ro:this.getParent)}createTabster(to,ro){const no=new Tabster(this);return to||this._wrappers.add(no),this._mergeProps(ro),no}disposeTabster(to,ro){ro?this._wrappers.clear():this._wrappers.delete(to),this._wrappers.size===0&&this.dispose()}dispose(){var to,ro,no,oo,io,so,ao,lo;this.internal.stopObserver();const uo=this._win;uo==null||uo.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],uo&&this._forgetMemorizedTimer&&(uo.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(to=this.outline)===null||to===void 0||to.dispose(),(ro=this.crossOrigin)===null||ro===void 0||ro.dispose(),(no=this.deloser)===null||no===void 0||no.dispose(),(oo=this.groupper)===null||oo===void 0||oo.dispose(),(io=this.mover)===null||io===void 0||io.dispose(),(so=this.modalizer)===null||so===void 0||so.dispose(),(ao=this.observedElement)===null||ao===void 0||ao.dispose(),(lo=this.restorer)===null||lo===void 0||lo.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),stopFakeWeakRefsCleanupAndClearStorage(this.getWindow),clearElementCache(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),uo&&(disposeInstanceContext(uo),delete uo.__tabsterInstance,delete this._win)}storageEntry(to,ro){const no=this._storage;let oo=no.get(to);return oo?ro===!1&&Object.keys(oo).length===0&&no.delete(to):ro===!0&&(oo={},no.set(to,oo)),oo}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let to=this._forgetMemorizedElements.shift();to;to=this._forgetMemorizedElements.shift())clearElementCache(this.getWindow,to),FocusedElementState.forgetMemorized(this.focusedElement,to)},0),cleanupFakeWeakRefs(this.getWindow,!0)))}queueInit(to){var ro;this._win&&(this._initQueue.push(to),this._initTimer||(this._initTimer=(ro=this._win)===null||ro===void 0?void 0:ro.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const to=this._initQueue;this._initQueue=[],to.forEach(ro=>ro())}}function createTabster(eo,to){let ro=getCurrentTabster(eo);return ro?ro.createTabster(!1,to):(ro=new TabsterCore(eo,to),eo.__tabsterInstance=ro,ro.createTabster())}function getGroupper(eo){const to=eo.core;return to.groupper||(to.groupper=new GroupperAPI(to,to.getWindow)),to.groupper}function getMover(eo){const to=eo.core;return to.mover||(to.mover=new MoverAPI(to,to.getWindow)),to.mover}function getModalizer(eo,to,ro){const no=eo.core;return no.modalizer||(no.modalizer=new ModalizerAPI(no,to,ro)),no.modalizer}function getRestorer(eo){const to=eo.core;return to.restorer||(to.restorer=new RestorerAPI(to)),to.restorer}function disposeTabster(eo,to){eo.core.disposeTabster(eo,to)}function getCurrentTabster(eo){return eo.__tabsterInstance}const useTabster=()=>{const{targetDocument:eo}=useFluent(),to=(eo==null?void 0:eo.defaultView)||void 0,ro=reactExports.useMemo(()=>to?createTabster(to,{autoRoot:{},controlTab:!1,getParent:getParent$1,checkUncontrolledTrappingFocus:no=>{var oo;return!!(!((oo=no.firstElementChild)===null||oo===void 0)&&oo.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[to]);return useIsomorphicLayoutEffect$1(()=>()=>{ro&&disposeTabster(ro)},[ro]),ro},useTabsterAttributes=eo=>(useTabster(),getTabsterAttribute(eo)),useArrowNavigationGroup=(eo={})=>{const{circular:to,axis:ro,memorizeCurrent:no,tabbable:oo,ignoreDefaultKeydown:io,unstable_hasDefault:so}=eo,ao=useTabster();return ao&&getMover(ao),useTabsterAttributes({mover:{cyclic:!!to,direction:axisToMoverDirection(ro??"vertical"),memorizeCurrent:no,tabbable:oo,hasDefault:so},...io&&{focusable:{ignoreKeydown:io}}})};function axisToMoverDirection(eo){switch(eo){case"horizontal":return Types.MoverDirections.Horizontal;case"grid":return Types.MoverDirections.Grid;case"grid-linear":return Types.MoverDirections.GridLinear;case"both":return Types.MoverDirections.Both;case"vertical":default:return Types.MoverDirections.Vertical}}const useFocusableGroup=eo=>{const to=useTabster();return to&&getGroupper(to),useTabsterAttributes({groupper:{tabbability:getTabbability(eo==null?void 0:eo.tabBehavior)},focusable:{ignoreKeydown:eo==null?void 0:eo.ignoreDefaultKeydown}})},getTabbability=eo=>{switch(eo){case"unlimited":return Types.GroupperTabbabilities.Unlimited;case"limited":return Types.GroupperTabbabilities.Limited;case"limited-trap-focus":return Types.GroupperTabbabilities.LimitedTrapFocus;default:return}},useFocusFinders=()=>{const eo=useTabster(),{targetDocument:to}=useFluent(),ro=reactExports.useCallback((ao,lo)=>(eo==null?void 0:eo.focusable.findAll({container:ao,acceptCondition:lo}))||[],[eo]),no=reactExports.useCallback(ao=>eo==null?void 0:eo.focusable.findFirst({container:ao}),[eo]),oo=reactExports.useCallback(ao=>eo==null?void 0:eo.focusable.findLast({container:ao}),[eo]),io=reactExports.useCallback((ao,lo={})=>{if(!eo||!to)return null;const{container:uo=to.body}=lo;return eo.focusable.findNext({currentElement:ao,container:uo})},[eo,to]),so=reactExports.useCallback((ao,lo={})=>{if(!eo||!to)return null;const{container:uo=to.body}=lo;return eo.focusable.findPrev({currentElement:ao,container:uo})},[eo,to]);return{findAllFocusable:ro,findFirstFocusable:no,findLastFocusable:oo,findNextFocusable:io,findPrevFocusable:so}},FOCUS_VISIBLE_ATTR="data-fui-focus-visible",FOCUS_WITHIN_ATTR="data-fui-focus-within";function applyFocusVisiblePolyfill(eo,to){if(alreadyInScope(eo))return()=>{};const ro={current:void 0},no=createKeyborg(to);function oo(lo){no.isNavigatingWithKeyboard()&&isHTMLElement$6(lo)&&(ro.current=lo,lo.setAttribute(FOCUS_VISIBLE_ATTR,""))}function io(){ro.current&&(ro.current.removeAttribute(FOCUS_VISIBLE_ATTR),ro.current=void 0)}no.subscribe(lo=>{lo||io()});const so=lo=>{io();const uo=lo.composedPath()[0];oo(uo)},ao=lo=>{(!lo.relatedTarget||isHTMLElement$6(lo.relatedTarget)&&!eo.contains(lo.relatedTarget))&&io()};return eo.addEventListener(KEYBORG_FOCUSIN,so),eo.addEventListener("focusout",ao),eo.focusVisible=!0,oo(to.document.activeElement),()=>{io(),eo.removeEventListener(KEYBORG_FOCUSIN,so),eo.removeEventListener("focusout",ao),delete eo.focusVisible,disposeKeyborg(no)}}function alreadyInScope(eo){return eo?eo.focusVisible?!0:alreadyInScope(eo==null?void 0:eo.parentElement):!1}function useFocusVisible(eo={}){const to=useFluent(),ro=reactExports.useRef(null);var no;const oo=(no=eo.targetDocument)!==null&&no!==void 0?no:to.targetDocument;return reactExports.useEffect(()=>{if(oo!=null&&oo.defaultView&&ro.current)return applyFocusVisiblePolyfill(ro.current,oo.defaultView)},[ro,oo]),ro}function applyFocusWithinPolyfill(eo,to){const ro=createKeyborg(to);ro.subscribe(io=>{io||removeFocusWithinClass(eo)});const no=io=>{ro.isNavigatingWithKeyboard()&&isHTMLElement$5(io.target)&&applyFocusWithinClass(eo)},oo=io=>{(!io.relatedTarget||isHTMLElement$5(io.relatedTarget)&&!eo.contains(io.relatedTarget))&&removeFocusWithinClass(eo)};return eo.addEventListener(KEYBORG_FOCUSIN,no),eo.addEventListener("focusout",oo),()=>{eo.removeEventListener(KEYBORG_FOCUSIN,no),eo.removeEventListener("focusout",oo),disposeKeyborg(ro)}}function applyFocusWithinClass(eo){eo.setAttribute(FOCUS_WITHIN_ATTR,"")}function removeFocusWithinClass(eo){eo.removeAttribute(FOCUS_WITHIN_ATTR)}function isHTMLElement$5(eo){return eo?!!(eo&&typeof eo=="object"&&"classList"in eo&&"contains"in eo):!1}function useFocusWithin(){const{targetDocument:eo}=useFluent(),to=reactExports.useRef(null);return reactExports.useEffect(()=>{if(eo!=null&&eo.defaultView&&to.current)return applyFocusWithinPolyfill(to.current,eo.defaultView)},[to,eo]),to}const useModalAttributes=(eo={})=>{const{trapFocus:to,alwaysFocusable:ro,legacyTrapFocus:no}=eo,oo=useTabster();oo&&(getModalizer(oo),getRestorer(oo));const io=useId$1("modal-",eo.id),so=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Source},...to&&{modalizer:{id:io,isOthersAccessible:!to,isAlwaysAccessible:ro,isTrapped:no&&to}}}),ao=useTabsterAttributes({restorer:{type:Types.RestorerTypes.Target}});return{modalAttributes:so,triggerAttributes:ao}},grey={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},whiteAlpha={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},blackAlpha={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},grey10Alpha={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},grey12Alpha={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},grey14Alpha={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},white="#ffffff",black="#000000",darkRed={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},red={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},darkOrange={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},pumpkin={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},orange={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},peach={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},marigold={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},yellow={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},gold={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},lightGreen={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},green={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},darkGreen={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},berry={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lilac={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},statusSharedColors={red,green,darkOrange,yellow,berry,lightGreen,marigold},personaSharedColors={darkRed,cranberry,pumpkin,peach,gold,brass,brown,forest,seafoam,darkGreen,lightTeal,teal,steel,blue,royalBlue,cornflower,navy,lavender,purple,grape,lilac,pink,magenta,plum,beige,mink,platinum,anchor},mappedStatusColors={cranberry,green,orange},statusSharedColorNames=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],personaSharedColorNames=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],statusColorMapping={success:"green",warning:"orange",danger:"cranberry"},statusColorPaletteTokens$1=statusSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background1`]:statusSharedColors[to].tint60,[`colorPalette${ro}Background2`]:statusSharedColors[to].tint40,[`colorPalette${ro}Background3`]:statusSharedColors[to].primary,[`colorPalette${ro}Foreground1`]:statusSharedColors[to].shade10,[`colorPalette${ro}Foreground2`]:statusSharedColors[to].shade30,[`colorPalette${ro}Foreground3`]:statusSharedColors[to].primary,[`colorPalette${ro}BorderActive`]:statusSharedColors[to].primary,[`colorPalette${ro}Border1`]:statusSharedColors[to].tint40,[`colorPalette${ro}Border2`]:statusSharedColors[to].primary};return Object.assign(eo,no)},{});statusColorPaletteTokens$1.colorPaletteYellowForeground1=statusSharedColors.yellow.shade30;statusColorPaletteTokens$1.colorPaletteRedForegroundInverted=statusSharedColors.red.tint20;statusColorPaletteTokens$1.colorPaletteGreenForegroundInverted=statusSharedColors.green.tint20;statusColorPaletteTokens$1.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.tint40;const personaColorPaletteTokens$1=personaSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background2`]:personaSharedColors[to].tint40,[`colorPalette${ro}Foreground2`]:personaSharedColors[to].shade30,[`colorPalette${ro}BorderActive`]:personaSharedColors[to].primary};return Object.assign(eo,no)},{}),colorPaletteTokens$1={...statusColorPaletteTokens$1,...personaColorPaletteTokens$1},colorStatusTokens$1=Object.entries(statusColorMapping).reduce((eo,[to,ro])=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),oo={[`colorStatus${no}Background1`]:mappedStatusColors[ro].tint60,[`colorStatus${no}Background2`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Background3`]:mappedStatusColors[ro].primary,[`colorStatus${no}Foreground1`]:mappedStatusColors[ro].shade10,[`colorStatus${no}Foreground2`]:mappedStatusColors[ro].shade30,[`colorStatus${no}Foreground3`]:mappedStatusColors[ro].primary,[`colorStatus${no}ForegroundInverted`]:mappedStatusColors[ro].tint30,[`colorStatus${no}BorderActive`]:mappedStatusColors[ro].primary,[`colorStatus${no}Border1`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Border2`]:mappedStatusColors[ro].primary};return Object.assign(eo,oo)},{});colorStatusTokens$1.colorStatusWarningForeground1=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningForeground3=mappedStatusColors[statusColorMapping.warning].shade20;colorStatusTokens$1.colorStatusWarningBorder2=mappedStatusColors[statusColorMapping.warning].shade20;const generateColorTokens$1=eo=>({colorNeutralForeground1:grey[14],colorNeutralForeground1Hover:grey[14],colorNeutralForeground1Pressed:grey[14],colorNeutralForeground1Selected:grey[14],colorNeutralForeground2:grey[26],colorNeutralForeground2Hover:grey[14],colorNeutralForeground2Pressed:grey[14],colorNeutralForeground2Selected:grey[14],colorNeutralForeground2BrandHover:eo[80],colorNeutralForeground2BrandPressed:eo[70],colorNeutralForeground2BrandSelected:eo[80],colorNeutralForeground3:grey[38],colorNeutralForeground3Hover:grey[26],colorNeutralForeground3Pressed:grey[26],colorNeutralForeground3Selected:grey[26],colorNeutralForeground3BrandHover:eo[80],colorNeutralForeground3BrandPressed:eo[70],colorNeutralForeground3BrandSelected:eo[80],colorNeutralForeground4:grey[44],colorNeutralForegroundDisabled:grey[74],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[70],colorBrandForegroundLinkHover:eo[60],colorBrandForegroundLinkPressed:eo[40],colorBrandForegroundLinkSelected:eo[70],colorNeutralForeground2Link:grey[26],colorNeutralForeground2LinkHover:grey[14],colorNeutralForeground2LinkPressed:grey[14],colorNeutralForeground2LinkSelected:grey[14],colorCompoundBrandForeground1:eo[80],colorCompoundBrandForeground1Hover:eo[70],colorCompoundBrandForeground1Pressed:eo[60],colorBrandForeground1:eo[80],colorBrandForeground2:eo[70],colorBrandForeground2Hover:eo[60],colorBrandForeground2Pressed:eo[30],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:white,colorNeutralForegroundInvertedHover:white,colorNeutralForegroundInvertedPressed:white,colorNeutralForegroundInvertedSelected:white,colorNeutralForegroundInverted2:white,colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[100],colorBrandForegroundInvertedHover:eo[110],colorBrandForegroundInvertedPressed:eo[100],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:white,colorNeutralBackground1Hover:grey[96],colorNeutralBackground1Pressed:grey[88],colorNeutralBackground1Selected:grey[92],colorNeutralBackground2:grey[98],colorNeutralBackground2Hover:grey[94],colorNeutralBackground2Pressed:grey[86],colorNeutralBackground2Selected:grey[90],colorNeutralBackground3:grey[96],colorNeutralBackground3Hover:grey[92],colorNeutralBackground3Pressed:grey[84],colorNeutralBackground3Selected:grey[88],colorNeutralBackground4:grey[94],colorNeutralBackground4Hover:grey[98],colorNeutralBackground4Pressed:grey[96],colorNeutralBackground4Selected:white,colorNeutralBackground5:grey[92],colorNeutralBackground5Hover:grey[96],colorNeutralBackground5Pressed:grey[94],colorNeutralBackground5Selected:grey[98],colorNeutralBackground6:grey[90],colorNeutralBackgroundInverted:grey[16],colorNeutralBackgroundStatic:grey[20],colorNeutralBackgroundAlpha:whiteAlpha[50],colorNeutralBackgroundAlpha2:whiteAlpha[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[96],colorSubtleBackgroundPressed:grey[88],colorSubtleBackgroundSelected:grey[92],colorSubtleBackgroundLightAlphaHover:whiteAlpha[70],colorSubtleBackgroundLightAlphaPressed:whiteAlpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[94],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[90],colorNeutralStencil2:grey[98],colorNeutralStencil1Alpha:blackAlpha[10],colorNeutralStencil2Alpha:blackAlpha[5],colorBackgroundOverlay:blackAlpha[40],colorScrollbarOverlay:blackAlpha[50],colorBrandBackground:eo[80],colorBrandBackgroundHover:eo[70],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[80],colorCompoundBrandBackgroundHover:eo[70],colorCompoundBrandBackgroundPressed:eo[60],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[160],colorBrandBackground2Hover:eo[150],colorBrandBackground2Pressed:eo[130],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[38],colorNeutralStrokeAccessibleHover:grey[34],colorNeutralStrokeAccessiblePressed:grey[30],colorNeutralStrokeAccessibleSelected:eo[80],colorNeutralStroke1:grey[82],colorNeutralStroke1Hover:grey[78],colorNeutralStroke1Pressed:grey[70],colorNeutralStroke1Selected:grey[74],colorNeutralStroke2:grey[88],colorNeutralStroke3:grey[94],colorNeutralStrokeSubtle:grey[88],colorNeutralStrokeOnBrand:white,colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[80],colorBrandStroke2:eo[140],colorBrandStroke2Hover:eo[120],colorBrandStroke2Pressed:eo[80],colorBrandStroke2Contrast:eo[140],colorCompoundBrandStroke:eo[80],colorCompoundBrandStrokeHover:eo[70],colorCompoundBrandStrokePressed:eo[60],colorNeutralStrokeDisabled:grey[88],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:blackAlpha[5],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:white,colorStrokeFocus2:black,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),borderRadius={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},curves={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},durations={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},fontSizes={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},lineHeights={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},fontWeights={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},fontFamilies={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},spacings={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},horizontalSpacings={spacingHorizontalNone:spacings.none,spacingHorizontalXXS:spacings.xxs,spacingHorizontalXS:spacings.xs,spacingHorizontalSNudge:spacings.sNudge,spacingHorizontalS:spacings.s,spacingHorizontalMNudge:spacings.mNudge,spacingHorizontalM:spacings.m,spacingHorizontalL:spacings.l,spacingHorizontalXL:spacings.xl,spacingHorizontalXXL:spacings.xxl,spacingHorizontalXXXL:spacings.xxxl},verticalSpacings={spacingVerticalNone:spacings.none,spacingVerticalXXS:spacings.xxs,spacingVerticalXS:spacings.xs,spacingVerticalSNudge:spacings.sNudge,spacingVerticalS:spacings.s,spacingVerticalMNudge:spacings.mNudge,spacingVerticalM:spacings.m,spacingVerticalL:spacings.l,spacingVerticalXL:spacings.xl,spacingVerticalXXL:spacings.xxl,spacingVerticalXXXL:spacings.xxxl},strokeWidths={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},tokens={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function createShadowTokens(eo,to,ro=""){return{[`shadow2${ro}`]:`0 0 2px ${eo}, 0 1px 2px ${to}`,[`shadow4${ro}`]:`0 0 2px ${eo}, 0 2px 4px ${to}`,[`shadow8${ro}`]:`0 0 2px ${eo}, 0 4px 8px ${to}`,[`shadow16${ro}`]:`0 0 2px ${eo}, 0 8px 16px ${to}`,[`shadow28${ro}`]:`0 0 8px ${eo}, 0 14px 28px ${to}`,[`shadow64${ro}`]:`0 0 8px ${eo}, 0 32px 64px ${to}`}}const createLightTheme=eo=>{const to=generateColorTokens$1(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens$1,...colorStatusTokens$1,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},brandWeb={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},statusColorPaletteTokens=statusSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background1`]:statusSharedColors[to].shade40,[`colorPalette${ro}Background2`]:statusSharedColors[to].shade30,[`colorPalette${ro}Background3`]:statusSharedColors[to].primary,[`colorPalette${ro}Foreground1`]:statusSharedColors[to].tint30,[`colorPalette${ro}Foreground2`]:statusSharedColors[to].tint40,[`colorPalette${ro}Foreground3`]:statusSharedColors[to].tint20,[`colorPalette${ro}BorderActive`]:statusSharedColors[to].tint30,[`colorPalette${ro}Border1`]:statusSharedColors[to].primary,[`colorPalette${ro}Border2`]:statusSharedColors[to].tint20};return Object.assign(eo,no)},{});statusColorPaletteTokens.colorPaletteRedForeground3=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteRedBorder2=statusSharedColors.red.tint30;statusColorPaletteTokens.colorPaletteGreenForeground3=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteGreenBorder2=statusSharedColors.green.tint40;statusColorPaletteTokens.colorPaletteDarkOrangeForeground3=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteDarkOrangeBorder2=statusSharedColors.darkOrange.tint30;statusColorPaletteTokens.colorPaletteRedForegroundInverted=statusSharedColors.red.primary;statusColorPaletteTokens.colorPaletteGreenForegroundInverted=statusSharedColors.green.primary;statusColorPaletteTokens.colorPaletteYellowForegroundInverted=statusSharedColors.yellow.shade30;const personaColorPaletteTokens=personaSharedColorNames.reduce((eo,to)=>{const ro=to.slice(0,1).toUpperCase()+to.slice(1),no={[`colorPalette${ro}Background2`]:personaSharedColors[to].shade30,[`colorPalette${ro}Foreground2`]:personaSharedColors[to].tint40,[`colorPalette${ro}BorderActive`]:personaSharedColors[to].tint30};return Object.assign(eo,no)},{});personaColorPaletteTokens.colorPaletteDarkRedBackground2=personaSharedColors.darkRed.shade20;personaColorPaletteTokens.colorPalettePlumBackground2=personaSharedColors.plum.shade20;const colorPaletteTokens={...statusColorPaletteTokens,...personaColorPaletteTokens},colorStatusTokens=Object.entries(statusColorMapping).reduce((eo,[to,ro])=>{const no=to.slice(0,1).toUpperCase()+to.slice(1),oo={[`colorStatus${no}Background1`]:mappedStatusColors[ro].shade40,[`colorStatus${no}Background2`]:mappedStatusColors[ro].shade30,[`colorStatus${no}Background3`]:mappedStatusColors[ro].primary,[`colorStatus${no}Foreground1`]:mappedStatusColors[ro].tint30,[`colorStatus${no}Foreground2`]:mappedStatusColors[ro].tint40,[`colorStatus${no}Foreground3`]:mappedStatusColors[ro].tint20,[`colorStatus${no}BorderActive`]:mappedStatusColors[ro].tint30,[`colorStatus${no}ForegroundInverted`]:mappedStatusColors[ro].shade10,[`colorStatus${no}Border1`]:mappedStatusColors[ro].primary,[`colorStatus${no}Border2`]:mappedStatusColors[ro].tint20};return Object.assign(eo,oo)},{});colorStatusTokens.colorStatusDangerForeground3=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusDangerBorder2=mappedStatusColors[statusColorMapping.danger].tint30;colorStatusTokens.colorStatusSuccessForeground3=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusSuccessBorder2=mappedStatusColors[statusColorMapping.success].tint40;colorStatusTokens.colorStatusWarningForegroundInverted=mappedStatusColors[statusColorMapping.warning].shade20;const webLightTheme=createLightTheme(brandWeb),generateColorTokens=eo=>({colorNeutralForeground1:white,colorNeutralForeground1Hover:white,colorNeutralForeground1Pressed:white,colorNeutralForeground1Selected:white,colorNeutralForeground2:grey[84],colorNeutralForeground2Hover:white,colorNeutralForeground2Pressed:white,colorNeutralForeground2Selected:white,colorNeutralForeground2BrandHover:eo[100],colorNeutralForeground2BrandPressed:eo[90],colorNeutralForeground2BrandSelected:eo[100],colorNeutralForeground3:grey[68],colorNeutralForeground3Hover:grey[84],colorNeutralForeground3Pressed:grey[84],colorNeutralForeground3Selected:grey[84],colorNeutralForeground3BrandHover:eo[100],colorNeutralForeground3BrandPressed:eo[90],colorNeutralForeground3BrandSelected:eo[100],colorNeutralForeground4:grey[60],colorNeutralForegroundDisabled:grey[36],colorNeutralForegroundInvertedDisabled:whiteAlpha[40],colorBrandForegroundLink:eo[100],colorBrandForegroundLinkHover:eo[110],colorBrandForegroundLinkPressed:eo[90],colorBrandForegroundLinkSelected:eo[100],colorNeutralForeground2Link:grey[84],colorNeutralForeground2LinkHover:white,colorNeutralForeground2LinkPressed:white,colorNeutralForeground2LinkSelected:white,colorCompoundBrandForeground1:eo[100],colorCompoundBrandForeground1Hover:eo[110],colorCompoundBrandForeground1Pressed:eo[90],colorBrandForeground1:eo[100],colorBrandForeground2:eo[110],colorBrandForeground2Hover:eo[130],colorBrandForeground2Pressed:eo[160],colorNeutralForeground1Static:grey[14],colorNeutralForegroundStaticInverted:white,colorNeutralForegroundInverted:grey[14],colorNeutralForegroundInvertedHover:grey[14],colorNeutralForegroundInvertedPressed:grey[14],colorNeutralForegroundInvertedSelected:grey[14],colorNeutralForegroundInverted2:grey[14],colorNeutralForegroundOnBrand:white,colorNeutralForegroundInvertedLink:white,colorNeutralForegroundInvertedLinkHover:white,colorNeutralForegroundInvertedLinkPressed:white,colorNeutralForegroundInvertedLinkSelected:white,colorBrandForegroundInverted:eo[80],colorBrandForegroundInvertedHover:eo[70],colorBrandForegroundInvertedPressed:eo[60],colorBrandForegroundOnLight:eo[80],colorBrandForegroundOnLightHover:eo[70],colorBrandForegroundOnLightPressed:eo[50],colorBrandForegroundOnLightSelected:eo[60],colorNeutralBackground1:grey[16],colorNeutralBackground1Hover:grey[24],colorNeutralBackground1Pressed:grey[12],colorNeutralBackground1Selected:grey[22],colorNeutralBackground2:grey[12],colorNeutralBackground2Hover:grey[20],colorNeutralBackground2Pressed:grey[8],colorNeutralBackground2Selected:grey[18],colorNeutralBackground3:grey[8],colorNeutralBackground3Hover:grey[16],colorNeutralBackground3Pressed:grey[4],colorNeutralBackground3Selected:grey[14],colorNeutralBackground4:grey[4],colorNeutralBackground4Hover:grey[12],colorNeutralBackground4Pressed:black,colorNeutralBackground4Selected:grey[10],colorNeutralBackground5:black,colorNeutralBackground5Hover:grey[8],colorNeutralBackground5Pressed:grey[2],colorNeutralBackground5Selected:grey[6],colorNeutralBackground6:grey[20],colorNeutralBackgroundInverted:white,colorNeutralBackgroundStatic:grey[24],colorNeutralBackgroundAlpha:grey10Alpha[50],colorNeutralBackgroundAlpha2:grey12Alpha[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:grey[22],colorSubtleBackgroundPressed:grey[18],colorSubtleBackgroundSelected:grey[20],colorSubtleBackgroundLightAlphaHover:grey14Alpha[80],colorSubtleBackgroundLightAlphaPressed:grey14Alpha[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:blackAlpha[10],colorSubtleBackgroundInvertedPressed:blackAlpha[30],colorSubtleBackgroundInvertedSelected:blackAlpha[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:grey[8],colorNeutralBackgroundInvertedDisabled:whiteAlpha[10],colorNeutralStencil1:grey[34],colorNeutralStencil2:grey[20],colorNeutralStencil1Alpha:whiteAlpha[10],colorNeutralStencil2Alpha:whiteAlpha[5],colorBackgroundOverlay:blackAlpha[50],colorScrollbarOverlay:whiteAlpha[60],colorBrandBackground:eo[70],colorBrandBackgroundHover:eo[80],colorBrandBackgroundPressed:eo[40],colorBrandBackgroundSelected:eo[60],colorCompoundBrandBackground:eo[100],colorCompoundBrandBackgroundHover:eo[110],colorCompoundBrandBackgroundPressed:eo[90],colorBrandBackgroundStatic:eo[80],colorBrandBackground2:eo[20],colorBrandBackground2Hover:eo[40],colorBrandBackground2Pressed:eo[10],colorBrandBackgroundInverted:white,colorBrandBackgroundInvertedHover:eo[160],colorBrandBackgroundInvertedPressed:eo[140],colorBrandBackgroundInvertedSelected:eo[150],colorNeutralStrokeAccessible:grey[68],colorNeutralStrokeAccessibleHover:grey[74],colorNeutralStrokeAccessiblePressed:grey[70],colorNeutralStrokeAccessibleSelected:eo[100],colorNeutralStroke1:grey[40],colorNeutralStroke1Hover:grey[46],colorNeutralStroke1Pressed:grey[42],colorNeutralStroke1Selected:grey[44],colorNeutralStroke2:grey[32],colorNeutralStroke3:grey[24],colorNeutralStrokeSubtle:grey[4],colorNeutralStrokeOnBrand:grey[16],colorNeutralStrokeOnBrand2:white,colorNeutralStrokeOnBrand2Hover:white,colorNeutralStrokeOnBrand2Pressed:white,colorNeutralStrokeOnBrand2Selected:white,colorBrandStroke1:eo[100],colorBrandStroke2:eo[50],colorBrandStroke2Hover:eo[50],colorBrandStroke2Pressed:eo[30],colorBrandStroke2Contrast:eo[50],colorCompoundBrandStroke:eo[100],colorCompoundBrandStrokeHover:eo[110],colorCompoundBrandStrokePressed:eo[90],colorNeutralStrokeDisabled:grey[26],colorNeutralStrokeInvertedDisabled:whiteAlpha[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:whiteAlpha[10],colorNeutralStrokeAlpha2:whiteAlpha[20],colorStrokeFocus1:black,colorStrokeFocus2:white,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),createDarkTheme=eo=>{const to=generateColorTokens(eo);return{...borderRadius,...fontSizes,...lineHeights,...fontFamilies,...fontWeights,...strokeWidths,...horizontalSpacings,...verticalSpacings,...durations,...curves,...to,...colorPaletteTokens,...colorStatusTokens,...createShadowTokens(to.colorNeutralShadowAmbient,to.colorNeutralShadowKey),...createShadowTokens(to.colorBrandShadowAmbient,to.colorBrandShadowKey,"Brand")}},webDarkTheme=createDarkTheme(brandWeb),fluentProviderClassNames={root:"fui-FluentProvider"},useStyles$C=__styles$1({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),useFluentProviderStyles_unstable=eo=>{const to=useRenderer(),ro=useStyles$C({dir:eo.dir,renderer:to});return eo.root.className=mergeClasses(fluentProviderClassNames.root,eo.themeClassName,ro.root,eo.root.className),eo},useInsertionEffect$1=reactExports.useInsertionEffect?reactExports.useInsertionEffect:useIsomorphicLayoutEffect$1,createStyleTag=(eo,to)=>{if(!eo)return;const ro=eo.createElement("style");return Object.keys(to).forEach(no=>{ro.setAttribute(no,to[no])}),eo.head.appendChild(ro),ro},insertSheet=(eo,to)=>{const ro=eo.sheet;ro&&(ro.cssRules.length>0&&ro.deleteRule(0),ro.insertRule(to,0))},useFluentProviderThemeStyleTag=eo=>{const{targetDocument:to,theme:ro,rendererAttributes:no}=eo,oo=reactExports.useRef(),io=useId$1(fluentProviderClassNames.root),so=no,ao=reactExports.useMemo(()=>createCSSRuleFromTheme(`.${io}`,ro),[ro,io]);return useHandleSSRStyleElements(to,io),useInsertionEffect$1(()=>{const lo=to==null?void 0:to.getElementById(io);return lo?oo.current=lo:(oo.current=createStyleTag(to,{...so,id:io}),oo.current&&insertSheet(oo.current,ao)),()=>{var uo;(uo=oo.current)===null||uo===void 0||uo.remove()}},[io,to,ao,so]),{styleTagId:io,rule:ao}};function useHandleSSRStyleElements(eo,to){reactExports.useState(()=>{if(!eo)return;const ro=eo.getElementById(to);ro&&eo.head.append(ro)})}const EMPTY_OBJECT={},useFluentProvider_unstable=(eo,to)=>{const ro=useFluent(),no=useTheme(),oo=useOverrides(),io=reactExports.useContext(CustomStyleHooksContext)||EMPTY_OBJECT,{applyStylesToPortals:so=!0,customStyleHooks_unstable:ao,dir:lo=ro.dir,targetDocument:uo=ro.targetDocument,theme:co,overrides_unstable:fo={}}=eo,po=shallowMerge(no,co),ho=shallowMerge(oo,fo),mo=shallowMerge(io,ao),vo=useRenderer();var bo;const{styleTagId:xo,rule:_o}=useFluentProviderThemeStyleTag({theme:po,targetDocument:uo,rendererAttributes:(bo=vo.styleElementAttributes)!==null&&bo!==void 0?bo:{}});return{applyStylesToPortals:so,customStyleHooks_unstable:mo,dir:lo,targetDocument:uo,theme:po,overrides_unstable:ho,themeClassName:xo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,dir:lo,ref:useMergedRefs$1(to,useFocusVisible({targetDocument:uo}))}),{elementType:"div"}),serverStyleProps:{cssRule:_o,attributes:{...vo.styleElementAttributes,id:xo}}}};function shallowMerge(eo,to){return eo&&to?{...eo,...to}:eo||to}function useTheme(){return reactExports.useContext(ThemeContext$2)}function useFluentProviderContextValues_unstable(eo){const{applyStylesToPortals:to,customStyleHooks_unstable:ro,dir:no,root:oo,targetDocument:io,theme:so,themeClassName:ao,overrides_unstable:lo}=eo,uo=reactExports.useMemo(()=>({dir:no,targetDocument:io}),[no,io]),[co]=reactExports.useState(()=>({})),fo=reactExports.useMemo(()=>({textDirection:no}),[no]);return{customStyleHooks_unstable:ro,overrides_unstable:lo,provider:uo,textDirection:no,iconDirection:fo,tooltip:co,theme:so,themeClassName:to?oo.className:ao}}const FluentProvider=reactExports.forwardRef((eo,to)=>{const ro=useFluentProvider_unstable(eo,to);useFluentProviderStyles_unstable(ro);const no=useFluentProviderContextValues_unstable(ro);return renderFluentProvider_unstable(ro,no)});FluentProvider.displayName="FluentProvider";const createProvider=eo=>ro=>{const no=reactExports.useRef(ro.value),oo=reactExports.useRef(0),io=reactExports.useRef();return io.current||(io.current={value:no,version:oo,listeners:[]}),useIsomorphicLayoutEffect$1(()=>{no.current=ro.value,oo.current+=1,schedulerExports.unstable_runWithPriority(schedulerExports.unstable_NormalPriority,()=>{io.current.listeners.forEach(so=>{so([oo.current,ro.value])})})},[ro.value]),reactExports.createElement(eo,{value:io.current},ro.children)},createContext=eo=>{const to=reactExports.createContext({value:{current:eo},version:{current:-1},listeners:[]});return to.Provider=createProvider(to.Provider),delete to.Consumer,to},useContextSelector=(eo,to)=>{const ro=reactExports.useContext(eo),{value:{current:no},version:{current:oo},listeners:io}=ro,so=to(no),[ao,lo]=reactExports.useReducer((uo,co)=>{if(!co)return[no,so];if(co[0]<=oo)return objectIs(uo[1],so)?uo:[no,so];try{if(objectIs(uo[0],co[1]))return uo;const fo=to(co[1]);return objectIs(uo[1],fo)?uo:[co[1],fo]}catch{}return[uo[0],uo[1]]},[no,so]);return objectIs(ao[1],so)||lo(void 0),useIsomorphicLayoutEffect$1(()=>(io.push(lo),()=>{const uo=io.indexOf(lo);io.splice(uo,1)}),[io]),ao[1]};function is$3(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}const objectIs=typeof Object.is=="function"?Object.is:is$3;function useHasParentContext(eo){const to=reactExports.useContext(eo);return to.version?to.version.current!==-1:!1}const AccordionContext=createContext(void 0),accordionContextDefaultValue={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:AccordionProvider}=AccordionContext,useAccordionContext_unstable=eo=>useContextSelector(AccordionContext,(to=accordionContextDefaultValue)=>eo(to)),renderAccordion_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionProvider,{value:to.accordion,children:eo.root.children})}),useAccordion_unstable=(eo,to)=>{const{openItems:ro,defaultOpenItems:no,multiple:oo=!1,collapsible:io=!1,onToggle:so,navigation:ao}=eo,[lo,uo]=useControllableState({state:reactExports.useMemo(()=>normalizeValues(ro),[ro]),defaultState:()=>initializeUncontrolledOpenItems({defaultOpenItems:no,multiple:oo}),initialState:[]}),co=useArrowNavigationGroup({circular:ao==="circular",tabbable:!0}),fo=useEventCallback$3(po=>{const ho=updateOpenItems(po.value,lo,oo,io);so==null||so(po.event,{value:po.value,openItems:ho}),uo(ho)});return{collapsible:io,multiple:oo,navigation:ao,openItems:lo,requestToggle:fo,components:{root:"div"},root:always(getIntrinsicElementProps("div",{...eo,...ao?co:void 0,ref:to}),{elementType:"div"})}};function initializeUncontrolledOpenItems({defaultOpenItems:eo,multiple:to}){return eo!==void 0?Array.isArray(eo)?to?eo:[eo[0]]:[eo]:[]}function updateOpenItems(eo,to,ro,no){if(ro)if(to.includes(eo)){if(to.length>1||no)return to.filter(oo=>oo!==eo)}else return[...to,eo].sort();else return to[0]===eo&&no?[]:[eo];return to}function normalizeValues(eo){if(eo!==void 0)return Array.isArray(eo)?eo:[eo]}function useAccordionContextValues_unstable(eo){const{navigation:to,openItems:ro,requestToggle:no,multiple:oo,collapsible:io}=eo;return{accordion:{navigation:to,openItems:ro,requestToggle:no,collapsible:io,multiple:oo}}}const accordionClassNames={root:"fui-Accordion"},useAccordionStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionClassNames.root,eo.root.className),eo),Accordion=reactExports.forwardRef((eo,to)=>{const ro=useAccordion_unstable(eo,to),no=useAccordionContextValues_unstable(ro);return useAccordionStyles_unstable(ro),useCustomStyleHook("useAccordionStyles_unstable")(ro),renderAccordion_unstable(ro,no)});Accordion.displayName="Accordion";const useAccordionItem_unstable=(eo,to)=>{const{value:ro,disabled:no=!1}=eo,oo=useAccordionContext_unstable(ao=>ao.requestToggle),io=useAccordionContext_unstable(ao=>ao.openItems.includes(ro)),so=useEventCallback$3(ao=>oo({event:ao,value:ro}));return{open:io,value:ro,disabled:no,onHeaderClick:so,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"})}};function useAccordionItemContextValues_unstable(eo){const{disabled:to,open:ro,value:no,onHeaderClick:oo}=eo;return{accordionItem:reactExports.useMemo(()=>({disabled:to,open:ro,value:no,onHeaderClick:oo}),[to,ro,no,oo])}}const AccordionItemContext=reactExports.createContext(void 0),accordionItemContextDefaultValue={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:AccordionItemProvider}=AccordionItemContext,useAccordionItemContext_unstable=()=>{var eo;return(eo=reactExports.useContext(AccordionItemContext))!==null&&eo!==void 0?eo:accordionItemContextDefaultValue},renderAccordionItem_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(AccordionItemProvider,{value:to.accordionItem,children:eo.root.children})}),accordionItemClassNames={root:"fui-AccordionItem"},useAccordionItemStyles_unstable=eo=>(eo.root.className=mergeClasses(accordionItemClassNames.root,eo.root.className),eo),AccordionItem=reactExports.forwardRef((eo,to)=>{const ro=useAccordionItem_unstable(eo,to),no=useAccordionItemContextValues_unstable(ro);return useAccordionItemStyles_unstable(ro),useCustomStyleHook("useAccordionItemStyles_unstable")(ro),renderAccordionItem_unstable(ro,no)});AccordionItem.displayName="AccordionItem";const Enter="Enter",Space=" ",Tab$2="Tab",ArrowDown="ArrowDown",ArrowLeft="ArrowLeft",ArrowRight="ArrowRight",ArrowUp="ArrowUp",End="End",Home="Home",PageDown="PageDown",PageUp="PageUp",Escape="Escape";function useARIAButtonProps(eo,to){const{disabled:ro,disabledFocusable:no=!1,["aria-disabled"]:oo,onClick:io,onKeyDown:so,onKeyUp:ao,...lo}=to??{},uo=typeof oo=="string"?oo==="true":oo,co=ro||no||uo,fo=useEventCallback$3(mo=>{co?(mo.preventDefault(),mo.stopPropagation()):io==null||io(mo)}),po=useEventCallback$3(mo=>{if(so==null||so(mo),mo.isDefaultPrevented())return;const vo=mo.key;if(co&&(vo===Enter||vo===Space)){mo.preventDefault(),mo.stopPropagation();return}if(vo===Space){mo.preventDefault();return}else vo===Enter&&(mo.preventDefault(),mo.currentTarget.click())}),ho=useEventCallback$3(mo=>{if(ao==null||ao(mo),mo.isDefaultPrevented())return;const vo=mo.key;if(co&&(vo===Enter||vo===Space)){mo.preventDefault(),mo.stopPropagation();return}vo===Space&&(mo.preventDefault(),mo.currentTarget.click())});if(eo==="button"||eo===void 0)return{...lo,disabled:ro&&!no,"aria-disabled":no?!0:uo,onClick:no?void 0:fo,onKeyUp:no?void 0:ao,onKeyDown:no?void 0:so};{const mo={role:"button",tabIndex:ro&&!no?void 0:0,...lo,onClick:fo,onKeyUp:ho,onKeyDown:po,"aria-disabled":ro||no||uo};return eo==="a"&&co&&(mo.href=void 0),mo}}const useAccordionHeader_unstable=(eo,to)=>{const{icon:ro,button:no,expandIcon:oo,inline:io=!1,size:so="medium",expandIconPosition:ao="start"}=eo,{value:lo,disabled:uo,open:co}=useAccordionItemContext_unstable(),fo=useAccordionContext_unstable(bo=>bo.requestToggle),po=useAccordionContext_unstable(bo=>!bo.collapsible&&bo.openItems.length===1&&co),{dir:ho}=useFluent();let mo;ao==="end"?mo=co?-90:90:mo=co?90:ho!=="rtl"?0:180;const vo=always(no,{elementType:"button",defaultProps:{disabled:uo,disabledFocusable:po,"aria-expanded":co,type:"button"}});return vo.onClick=useEventCallback$3(bo=>{if(isResolvedShorthand(no)){var xo;(xo=no.onClick)===null||xo===void 0||xo.call(no,bo)}bo.defaultPrevented||fo({value:lo,event:bo})}),{disabled:uo,open:co,size:so,inline:io,expandIconPosition:ao,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(ro,{elementType:"div"}),expandIcon:optional(oo,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(ChevronRightRegular,{style:{transform:`rotate(${mo}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:useARIAButtonProps(vo.as,vo)}},AccordionHeaderContext=reactExports.createContext(void 0),{Provider:AccordionHeaderProvider}=AccordionHeaderContext,renderAccordionHeader_unstable=(eo,to)=>jsx$1(AccordionHeaderProvider,{value:to.accordionHeader,children:jsx$1(eo.root,{children:jsxs(eo.button,{children:[eo.expandIconPosition==="start"&&eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.expandIconPosition==="end"&&eo.expandIcon&&jsx$1(eo.expandIcon,{})]})})}),accordionHeaderClassNames={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},useStyles$B=__styles({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),useAccordionHeaderStyles_unstable=eo=>{const to=useStyles$B();return eo.root.className=mergeClasses(accordionHeaderClassNames.root,to.root,eo.inline&&to.rootInline,eo.disabled&&to.rootDisabled,eo.root.className),eo.button.className=mergeClasses(accordionHeaderClassNames.button,to.resetButton,to.button,to.focusIndicator,eo.expandIconPosition==="end"&&!eo.icon&&to.buttonExpandIconEndNoIcon,eo.expandIconPosition==="end"&&to.buttonExpandIconEnd,eo.inline&&to.buttonInline,eo.size==="small"&&to.buttonSmall,eo.size==="large"&&to.buttonLarge,eo.size==="extra-large"&&to.buttonExtraLarge,eo.disabled&&to.buttonDisabled,eo.button.className),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(accordionHeaderClassNames.expandIcon,to.expandIcon,eo.expandIconPosition==="start"&&to.expandIconStart,eo.expandIconPosition==="end"&&to.expandIconEnd,eo.expandIcon.className)),eo.icon&&(eo.icon.className=mergeClasses(accordionHeaderClassNames.icon,to.icon,eo.icon.className)),eo};function useAccordionHeaderContextValues_unstable(eo){const{disabled:to,expandIconPosition:ro,open:no,size:oo}=eo;return{accordionHeader:reactExports.useMemo(()=>({disabled:to,expandIconPosition:ro,open:no,size:oo}),[to,ro,no,oo])}}const AccordionHeader=reactExports.forwardRef((eo,to)=>{const ro=useAccordionHeader_unstable(eo,to),no=useAccordionHeaderContextValues_unstable(ro);return useAccordionHeaderStyles_unstable(ro),useCustomStyleHook("useAccordionHeaderStyles_unstable")(ro),renderAccordionHeader_unstable(ro,no)});AccordionHeader.displayName="AccordionHeader";const useAccordionPanel_unstable=(eo,to)=>{const{open:ro}=useAccordionItemContext_unstable(),no=useTabsterAttributes({focusable:{excludeFromMover:!0}}),oo=useAccordionContext_unstable(io=>io.navigation);return{open:ro,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo,...oo&&no}),{elementType:"div"})}},renderAccordionPanel_unstable=eo=>eo.open?jsx$1(eo.root,{children:eo.root.children}):null,accordionPanelClassNames={root:"fui-AccordionPanel"},useStyles$A=__styles({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),useAccordionPanelStyles_unstable=eo=>{const to=useStyles$A();return eo.root.className=mergeClasses(accordionPanelClassNames.root,to.root,eo.root.className),eo},AccordionPanel=reactExports.forwardRef((eo,to)=>{const ro=useAccordionPanel_unstable(eo,to);return useAccordionPanelStyles_unstable(ro),useCustomStyleHook("useAccordionPanelStyles_unstable")(ro),renderAccordionPanel_unstable(ro)});AccordionPanel.displayName="AccordionPanel";const useBadge_unstable=(eo,to)=>{const{shape:ro="circular",size:no="medium",iconPosition:oo="before",appearance:io="filled",color:so="brand"}=eo;return{shape:ro,size:no,iconPosition:oo,appearance:io,color:so,components:{root:"div",icon:"span"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),icon:optional(eo.icon,{elementType:"span"})}},badgeClassNames={root:"fui-Badge",icon:"fui-Badge__icon"},useRootClassName$1=__resetStyles("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),useRootStyles$6=__styles({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),useIconRootClassName=__resetStyles("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),useIconStyles$4=__styles({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),useBadgeStyles_unstable=eo=>{const to=useRootClassName$1(),ro=useRootStyles$6(),no=eo.size==="small"||eo.size==="extra-small"||eo.size==="tiny";eo.root.className=mergeClasses(badgeClassNames.root,to,no&&ro.fontSmallToTiny,ro[eo.size],ro[eo.shape],eo.shape==="rounded"&&no&&ro.roundedSmallToTiny,eo.appearance==="ghost"&&ro.borderGhost,ro[eo.appearance],ro[`${eo.appearance}-${eo.color}`],eo.root.className);const oo=useIconRootClassName(),io=useIconStyles$4();if(eo.icon){let so;eo.root.children&&(eo.size==="extra-large"?so=eo.iconPosition==="after"?io.afterTextXL:io.beforeTextXL:so=eo.iconPosition==="after"?io.afterText:io.beforeText),eo.icon.className=mergeClasses(badgeClassNames.icon,oo,so,io[eo.size],eo.icon.className)}return eo},renderBadge_unstable=eo=>jsxs(eo.root,{children:[eo.iconPosition==="before"&&eo.icon&&jsx$1(eo.icon,{}),eo.root.children,eo.iconPosition==="after"&&eo.icon&&jsx$1(eo.icon,{})]}),Badge$2=reactExports.forwardRef((eo,to)=>{const ro=useBadge_unstable(eo,to);return useBadgeStyles_unstable(ro),useCustomStyleHook("useBadgeStyles_unstable")(ro),renderBadge_unstable(ro)});Badge$2.displayName="Badge";const useCounterBadge_unstable=(eo,to)=>{const{shape:ro="circular",appearance:no="filled",showZero:oo=!1,overflowCount:io=99,count:so=0,dot:ao=!1}=eo,lo={...useBadge_unstable(eo,to),shape:ro,appearance:no,showZero:oo,count:so,dot:ao};return(so!==0||oo)&&!ao&&!lo.root.children&&(lo.root.children=so>io?`${io}+`:`${so}`),lo},counterBadgeClassNames={root:"fui-CounterBadge",icon:"fui-CounterBadge__icon"},useStyles$z=__styles({dot:{Bf4jedk:"fgfkb25",a9b677:"f16dn6v3",Bqenvij:"f3mu39s",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"]},hide:{mc9l5x:"fjseox"}},{d:[".fgfkb25{min-width:auto;}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fjseox{display:none;}"]}),useCounterBadgeStyles_unstable=eo=>{const to=useStyles$z();return eo.root.className=mergeClasses(counterBadgeClassNames.root,eo.dot&&to.dot,!eo.root.children&&!eo.dot&&to.hide,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(counterBadgeClassNames.icon,eo.icon.className)),useBadgeStyles_unstable(eo)},CounterBadge=reactExports.forwardRef((eo,to)=>{const ro=useCounterBadge_unstable(eo,to);return useCounterBadgeStyles_unstable(ro),useCustomStyleHook("useCounterBadgeStyles_unstable")(ro),renderBadge_unstable(ro)});CounterBadge.displayName="CounterBadge";function createVirtualElementFromClick(eo){const to=eo.clientX,ro=eo.clientY,no=to+1,oo=ro+1;function io(){return{left:to,top:ro,right:no,bottom:oo,x:to,y:ro,height:1,width:1}}return{getBoundingClientRect:io}}const DATA_POSITIONING_INTERSECTING="data-popper-is-intersecting",DATA_POSITIONING_ESCAPED="data-popper-escaped",DATA_POSITIONING_HIDDEN="data-popper-reference-hidden",DATA_POSITIONING_PLACEMENT="data-popper-placement",sides=["top","right","bottom","left"],min$2=Math.min,max$2=Math.max,round$1=Math.round,createCoords=eo=>({x:eo,y:eo}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(eo,to,ro){return max$2(eo,min$2(to,ro))}function evaluate(eo,to){return typeof eo=="function"?eo(to):eo}function getSide(eo){return eo.split("-")[0]}function getAlignment(eo){return eo.split("-")[1]}function getOppositeAxis(eo){return eo==="x"?"y":"x"}function getAxisLength(eo){return eo==="y"?"height":"width"}function getSideAxis(eo){return["top","bottom"].includes(getSide(eo))?"y":"x"}function getAlignmentAxis(eo){return getOppositeAxis(getSideAxis(eo))}function getAlignmentSides(eo,to,ro){ro===void 0&&(ro=!1);const no=getAlignment(eo),oo=getAlignmentAxis(eo),io=getAxisLength(oo);let so=oo==="x"?no===(ro?"end":"start")?"right":"left":no==="start"?"bottom":"top";return to.reference[io]>to.floating[io]&&(so=getOppositePlacement(so)),[so,getOppositePlacement(so)]}function getExpandedPlacements(eo){const to=getOppositePlacement(eo);return[getOppositeAlignmentPlacement(eo),to,getOppositeAlignmentPlacement(to)]}function getOppositeAlignmentPlacement(eo){return eo.replace(/start|end/g,to=>oppositeAlignmentMap[to])}function getSideList(eo,to,ro){const no=["left","right"],oo=["right","left"],io=["top","bottom"],so=["bottom","top"];switch(eo){case"top":case"bottom":return ro?to?oo:no:to?no:oo;case"left":case"right":return to?io:so;default:return[]}}function getOppositeAxisPlacements(eo,to,ro,no){const oo=getAlignment(eo);let io=getSideList(getSide(eo),ro==="start",no);return oo&&(io=io.map(so=>so+"-"+oo),to&&(io=io.concat(io.map(getOppositeAlignmentPlacement)))),io}function getOppositePlacement(eo){return eo.replace(/left|right|bottom|top/g,to=>oppositeSideMap[to])}function expandPaddingObject(eo){return{top:0,right:0,bottom:0,left:0,...eo}}function getPaddingObject(eo){return typeof eo!="number"?expandPaddingObject(eo):{top:eo,right:eo,bottom:eo,left:eo}}function rectToClientRect(eo){return{...eo,top:eo.y,left:eo.x,right:eo.x+eo.width,bottom:eo.y+eo.height}}function computeCoordsFromPlacement(eo,to,ro){let{reference:no,floating:oo}=eo;const io=getSideAxis(to),so=getAlignmentAxis(to),ao=getAxisLength(so),lo=getSide(to),uo=io==="y",co=no.x+no.width/2-oo.width/2,fo=no.y+no.height/2-oo.height/2,po=no[ao]/2-oo[ao]/2;let ho;switch(lo){case"top":ho={x:co,y:no.y-oo.height};break;case"bottom":ho={x:co,y:no.y+no.height};break;case"right":ho={x:no.x+no.width,y:fo};break;case"left":ho={x:no.x-oo.width,y:fo};break;default:ho={x:no.x,y:no.y}}switch(getAlignment(to)){case"start":ho[so]-=po*(ro&&uo?-1:1);break;case"end":ho[so]+=po*(ro&&uo?-1:1);break}return ho}const computePosition$1=async(eo,to,ro)=>{const{placement:no="bottom",strategy:oo="absolute",middleware:io=[],platform:so}=ro,ao=io.filter(Boolean),lo=await(so.isRTL==null?void 0:so.isRTL(to));let uo=await so.getElementRects({reference:eo,floating:to,strategy:oo}),{x:co,y:fo}=computeCoordsFromPlacement(uo,no,lo),po=no,ho={},mo=0;for(let vo=0;vo({name:"arrow",options:eo,async fn(to){const{x:ro,y:no,placement:oo,rects:io,platform:so,elements:ao,middlewareData:lo}=to,{element:uo,padding:co=0}=evaluate(eo,to)||{};if(uo==null)return{};const fo=getPaddingObject(co),po={x:ro,y:no},ho=getAlignmentAxis(oo),mo=getAxisLength(ho),vo=await so.getDimensions(uo),bo=ho==="y",xo=bo?"top":"left",_o=bo?"bottom":"right",So=bo?"clientHeight":"clientWidth",Eo=io.reference[mo]+io.reference[ho]-po[ho]-io.floating[mo],ko=po[ho]-io.reference[ho],wo=await(so.getOffsetParent==null?void 0:so.getOffsetParent(uo));let Co=wo?wo[So]:0;(!Co||!await(so.isElement==null?void 0:so.isElement(wo)))&&(Co=ao.floating[So]||io.floating[mo]);const Ro=Eo/2-ko/2,Ao=Co/2-vo[mo]/2-1,Io=min$2(fo[xo],Ao),$o=min$2(fo[_o],Ao),Bo=Io,Mo=Co-vo[mo]-$o,Ho=Co/2-vo[mo]/2+Ro,jo=clamp$2(Bo,Ho,Mo),Oo=!lo.arrow&&getAlignment(oo)!=null&&Ho!=jo&&io.reference[mo]/2-(HoBo<=0)){var Ao,Io;const Bo=(((Ao=io.flip)==null?void 0:Ao.index)||0)+1,Mo=ko[Bo];if(Mo)return{data:{index:Bo,overflows:Ro},reset:{placement:Mo}};let Ho=(Io=Ro.filter(jo=>jo.overflows[0]<=0).sort((jo,Oo)=>jo.overflows[1]-Oo.overflows[1])[0])==null?void 0:Io.placement;if(!Ho)switch(ho){case"bestFit":{var $o;const jo=($o=Ro.map(Oo=>[Oo.placement,Oo.overflows.filter(Fo=>Fo>0).reduce((Fo,Go)=>Fo+Go,0)]).sort((Oo,Fo)=>Oo[1]-Fo[1])[0])==null?void 0:$o[0];jo&&(Ho=jo);break}case"initialPlacement":Ho=ao;break}if(oo!==Ho)return{reset:{placement:Ho}}}return{}}}};function getSideOffsets(eo,to){return{top:eo.top-to.height,right:eo.right-to.width,bottom:eo.bottom-to.height,left:eo.left-to.width}}function isAnySideFullyClipped(eo){return sides.some(to=>eo[to]>=0)}const hide=function(eo){return eo===void 0&&(eo={}),{name:"hide",options:eo,async fn(to){const{rects:ro}=to,{strategy:no="referenceHidden",...oo}=evaluate(eo,to);switch(no){case"referenceHidden":{const io=await detectOverflow(to,{...oo,elementContext:"reference"}),so=getSideOffsets(io,ro.reference);return{data:{referenceHiddenOffsets:so,referenceHidden:isAnySideFullyClipped(so)}}}case"escaped":{const io=await detectOverflow(to,{...oo,altBoundary:!0}),so=getSideOffsets(io,ro.floating);return{data:{escapedOffsets:so,escaped:isAnySideFullyClipped(so)}}}default:return{}}}}};async function convertValueToCoords(eo,to){const{placement:ro,platform:no,elements:oo}=eo,io=await(no.isRTL==null?void 0:no.isRTL(oo.floating)),so=getSide(ro),ao=getAlignment(ro),lo=getSideAxis(ro)==="y",uo=["left","top"].includes(so)?-1:1,co=io&&lo?-1:1,fo=evaluate(to,eo);let{mainAxis:po,crossAxis:ho,alignmentAxis:mo}=typeof fo=="number"?{mainAxis:fo,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...fo};return ao&&typeof mo=="number"&&(ho=ao==="end"?mo*-1:mo),lo?{x:ho*co,y:po*uo}:{x:po*uo,y:ho*co}}const offset$1=function(eo){return eo===void 0&&(eo=0),{name:"offset",options:eo,async fn(to){var ro,no;const{x:oo,y:io,placement:so,middlewareData:ao}=to,lo=await convertValueToCoords(to,eo);return so===((ro=ao.offset)==null?void 0:ro.placement)&&(no=ao.arrow)!=null&&no.alignmentOffset?{}:{x:oo+lo.x,y:io+lo.y,data:{...lo,placement:so}}}}},shift$1=function(eo){return eo===void 0&&(eo={}),{name:"shift",options:eo,async fn(to){const{x:ro,y:no,placement:oo}=to,{mainAxis:io=!0,crossAxis:so=!1,limiter:ao={fn:bo=>{let{x:xo,y:_o}=bo;return{x:xo,y:_o}}},...lo}=evaluate(eo,to),uo={x:ro,y:no},co=await detectOverflow(to,lo),fo=getSideAxis(getSide(oo)),po=getOppositeAxis(fo);let ho=uo[po],mo=uo[fo];if(io){const bo=po==="y"?"top":"left",xo=po==="y"?"bottom":"right",_o=ho+co[bo],So=ho-co[xo];ho=clamp$2(_o,ho,So)}if(so){const bo=fo==="y"?"top":"left",xo=fo==="y"?"bottom":"right",_o=mo+co[bo],So=mo-co[xo];mo=clamp$2(_o,mo,So)}const vo=ao.fn({...to,[po]:ho,[fo]:mo});return{...vo,data:{x:vo.x-ro,y:vo.y-no}}}}},limitShift=function(eo){return eo===void 0&&(eo={}),{options:eo,fn(to){const{x:ro,y:no,placement:oo,rects:io,middlewareData:so}=to,{offset:ao=0,mainAxis:lo=!0,crossAxis:uo=!0}=evaluate(eo,to),co={x:ro,y:no},fo=getSideAxis(oo),po=getOppositeAxis(fo);let ho=co[po],mo=co[fo];const vo=evaluate(ao,to),bo=typeof vo=="number"?{mainAxis:vo,crossAxis:0}:{mainAxis:0,crossAxis:0,...vo};if(lo){const So=po==="y"?"height":"width",Eo=io.reference[po]-io.floating[So]+bo.mainAxis,ko=io.reference[po]+io.reference[So]-bo.mainAxis;hoko&&(ho=ko)}if(uo){var xo,_o;const So=po==="y"?"width":"height",Eo=["top","left"].includes(getSide(oo)),ko=io.reference[fo]-io.floating[So]+(Eo&&((xo=so.offset)==null?void 0:xo[fo])||0)+(Eo?0:bo.crossAxis),wo=io.reference[fo]+io.reference[So]+(Eo?0:((_o=so.offset)==null?void 0:_o[fo])||0)-(Eo?bo.crossAxis:0);mowo&&(mo=wo)}return{[po]:ho,[fo]:mo}}}},size=function(eo){return eo===void 0&&(eo={}),{name:"size",options:eo,async fn(to){const{placement:ro,rects:no,platform:oo,elements:io}=to,{apply:so=()=>{},...ao}=evaluate(eo,to),lo=await detectOverflow(to,ao),uo=getSide(ro),co=getAlignment(ro),fo=getSideAxis(ro)==="y",{width:po,height:ho}=no.floating;let mo,vo;uo==="top"||uo==="bottom"?(mo=uo,vo=co===(await(oo.isRTL==null?void 0:oo.isRTL(io.floating))?"start":"end")?"left":"right"):(vo=uo,mo=co==="end"?"top":"bottom");const bo=ho-lo[mo],xo=po-lo[vo],_o=!to.middlewareData.shift;let So=bo,Eo=xo;if(fo){const wo=po-lo.left-lo.right;Eo=co||_o?min$2(xo,wo):wo}else{const wo=ho-lo.top-lo.bottom;So=co||_o?min$2(bo,wo):wo}if(_o&&!co){const wo=max$2(lo.left,0),Co=max$2(lo.right,0),Ro=max$2(lo.top,0),Ao=max$2(lo.bottom,0);fo?Eo=po-2*(wo!==0||Co!==0?wo+Co:max$2(lo.left,lo.right)):So=ho-2*(Ro!==0||Ao!==0?Ro+Ao:max$2(lo.top,lo.bottom))}await so({...to,availableWidth:Eo,availableHeight:So});const ko=await oo.getDimensions(io.floating);return po!==ko.width||ho!==ko.height?{reset:{rects:!0}}:{}}}};function getNodeName(eo){return isNode(eo)?(eo.nodeName||"").toLowerCase():"#document"}function getWindow$1(eo){var to;return(eo==null||(to=eo.ownerDocument)==null?void 0:to.defaultView)||window}function getDocumentElement(eo){var to;return(to=(isNode(eo)?eo.ownerDocument:eo.document)||window.document)==null?void 0:to.documentElement}function isNode(eo){return eo instanceof Node||eo instanceof getWindow$1(eo).Node}function isElement$1(eo){return eo instanceof Element||eo instanceof getWindow$1(eo).Element}function isHTMLElement$4(eo){return eo instanceof HTMLElement||eo instanceof getWindow$1(eo).HTMLElement}function isShadowRoot(eo){return typeof ShadowRoot>"u"?!1:eo instanceof ShadowRoot||eo instanceof getWindow$1(eo).ShadowRoot}function isOverflowElement(eo){const{overflow:to,overflowX:ro,overflowY:no,display:oo}=getComputedStyle$1(eo);return/auto|scroll|overlay|hidden|clip/.test(to+no+ro)&&!["inline","contents"].includes(oo)}function isTableElement(eo){return["table","td","th"].includes(getNodeName(eo))}function isContainingBlock(eo){const to=isWebKit(),ro=getComputedStyle$1(eo);return ro.transform!=="none"||ro.perspective!=="none"||(ro.containerType?ro.containerType!=="normal":!1)||!to&&(ro.backdropFilter?ro.backdropFilter!=="none":!1)||!to&&(ro.filter?ro.filter!=="none":!1)||["transform","perspective","filter"].some(no=>(ro.willChange||"").includes(no))||["paint","layout","strict","content"].some(no=>(ro.contain||"").includes(no))}function getContainingBlock(eo){let to=getParentNode$1(eo);for(;isHTMLElement$4(to)&&!isLastTraversableNode(to);){if(isContainingBlock(to))return to;to=getParentNode$1(to)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(eo){return["html","body","#document"].includes(getNodeName(eo))}function getComputedStyle$1(eo){return getWindow$1(eo).getComputedStyle(eo)}function getNodeScroll(eo){return isElement$1(eo)?{scrollLeft:eo.scrollLeft,scrollTop:eo.scrollTop}:{scrollLeft:eo.pageXOffset,scrollTop:eo.pageYOffset}}function getParentNode$1(eo){if(getNodeName(eo)==="html")return eo;const to=eo.assignedSlot||eo.parentNode||isShadowRoot(eo)&&eo.host||getDocumentElement(eo);return isShadowRoot(to)?to.host:to}function getNearestOverflowAncestor(eo){const to=getParentNode$1(eo);return isLastTraversableNode(to)?eo.ownerDocument?eo.ownerDocument.body:eo.body:isHTMLElement$4(to)&&isOverflowElement(to)?to:getNearestOverflowAncestor(to)}function getOverflowAncestors(eo,to,ro){var no;to===void 0&&(to=[]),ro===void 0&&(ro=!0);const oo=getNearestOverflowAncestor(eo),io=oo===((no=eo.ownerDocument)==null?void 0:no.body),so=getWindow$1(oo);return io?to.concat(so,so.visualViewport||[],isOverflowElement(oo)?oo:[],so.frameElement&&ro?getOverflowAncestors(so.frameElement):[]):to.concat(oo,getOverflowAncestors(oo,[],ro))}function getCssDimensions(eo){const to=getComputedStyle$1(eo);let ro=parseFloat(to.width)||0,no=parseFloat(to.height)||0;const oo=isHTMLElement$4(eo),io=oo?eo.offsetWidth:ro,so=oo?eo.offsetHeight:no,ao=round$1(ro)!==io||round$1(no)!==so;return ao&&(ro=io,no=so),{width:ro,height:no,$:ao}}function unwrapElement(eo){return isElement$1(eo)?eo:eo.contextElement}function getScale(eo){const to=unwrapElement(eo);if(!isHTMLElement$4(to))return createCoords(1);const ro=to.getBoundingClientRect(),{width:no,height:oo,$:io}=getCssDimensions(to);let so=(io?round$1(ro.width):ro.width)/no,ao=(io?round$1(ro.height):ro.height)/oo;return(!so||!Number.isFinite(so))&&(so=1),(!ao||!Number.isFinite(ao))&&(ao=1),{x:so,y:ao}}const noOffsets=createCoords(0);function getVisualOffsets(eo){const to=getWindow$1(eo);return!isWebKit()||!to.visualViewport?noOffsets:{x:to.visualViewport.offsetLeft,y:to.visualViewport.offsetTop}}function shouldAddVisualOffsets(eo,to,ro){return to===void 0&&(to=!1),!ro||to&&ro!==getWindow$1(eo)?!1:to}function getBoundingClientRect(eo,to,ro,no){to===void 0&&(to=!1),ro===void 0&&(ro=!1);const oo=eo.getBoundingClientRect(),io=unwrapElement(eo);let so=createCoords(1);to&&(no?isElement$1(no)&&(so=getScale(no)):so=getScale(eo));const ao=shouldAddVisualOffsets(io,ro,no)?getVisualOffsets(io):createCoords(0);let lo=(oo.left+ao.x)/so.x,uo=(oo.top+ao.y)/so.y,co=oo.width/so.x,fo=oo.height/so.y;if(io){const po=getWindow$1(io),ho=no&&isElement$1(no)?getWindow$1(no):no;let mo=po.frameElement;for(;mo&&no&&ho!==po;){const vo=getScale(mo),bo=mo.getBoundingClientRect(),xo=getComputedStyle$1(mo),_o=bo.left+(mo.clientLeft+parseFloat(xo.paddingLeft))*vo.x,So=bo.top+(mo.clientTop+parseFloat(xo.paddingTop))*vo.y;lo*=vo.x,uo*=vo.y,co*=vo.x,fo*=vo.y,lo+=_o,uo+=So,mo=getWindow$1(mo).frameElement}}return rectToClientRect({width:co,height:fo,x:lo,y:uo})}function convertOffsetParentRelativeRectToViewportRelativeRect(eo){let{rect:to,offsetParent:ro,strategy:no}=eo;const oo=isHTMLElement$4(ro),io=getDocumentElement(ro);if(ro===io)return to;let so={scrollLeft:0,scrollTop:0},ao=createCoords(1);const lo=createCoords(0);if((oo||!oo&&no!=="fixed")&&((getNodeName(ro)!=="body"||isOverflowElement(io))&&(so=getNodeScroll(ro)),isHTMLElement$4(ro))){const uo=getBoundingClientRect(ro);ao=getScale(ro),lo.x=uo.x+ro.clientLeft,lo.y=uo.y+ro.clientTop}return{width:to.width*ao.x,height:to.height*ao.y,x:to.x*ao.x-so.scrollLeft*ao.x+lo.x,y:to.y*ao.y-so.scrollTop*ao.y+lo.y}}function getClientRects(eo){return Array.from(eo.getClientRects())}function getWindowScrollBarX(eo){return getBoundingClientRect(getDocumentElement(eo)).left+getNodeScroll(eo).scrollLeft}function getDocumentRect(eo){const to=getDocumentElement(eo),ro=getNodeScroll(eo),no=eo.ownerDocument.body,oo=max$2(to.scrollWidth,to.clientWidth,no.scrollWidth,no.clientWidth),io=max$2(to.scrollHeight,to.clientHeight,no.scrollHeight,no.clientHeight);let so=-ro.scrollLeft+getWindowScrollBarX(eo);const ao=-ro.scrollTop;return getComputedStyle$1(no).direction==="rtl"&&(so+=max$2(to.clientWidth,no.clientWidth)-oo),{width:oo,height:io,x:so,y:ao}}function getViewportRect(eo,to){const ro=getWindow$1(eo),no=getDocumentElement(eo),oo=ro.visualViewport;let io=no.clientWidth,so=no.clientHeight,ao=0,lo=0;if(oo){io=oo.width,so=oo.height;const uo=isWebKit();(!uo||uo&&to==="fixed")&&(ao=oo.offsetLeft,lo=oo.offsetTop)}return{width:io,height:so,x:ao,y:lo}}function getInnerBoundingClientRect(eo,to){const ro=getBoundingClientRect(eo,!0,to==="fixed"),no=ro.top+eo.clientTop,oo=ro.left+eo.clientLeft,io=isHTMLElement$4(eo)?getScale(eo):createCoords(1),so=eo.clientWidth*io.x,ao=eo.clientHeight*io.y,lo=oo*io.x,uo=no*io.y;return{width:so,height:ao,x:lo,y:uo}}function getClientRectFromClippingAncestor(eo,to,ro){let no;if(to==="viewport")no=getViewportRect(eo,ro);else if(to==="document")no=getDocumentRect(getDocumentElement(eo));else if(isElement$1(to))no=getInnerBoundingClientRect(to,ro);else{const oo=getVisualOffsets(eo);no={...to,x:to.x-oo.x,y:to.y-oo.y}}return rectToClientRect(no)}function hasFixedPositionAncestor(eo,to){const ro=getParentNode$1(eo);return ro===to||!isElement$1(ro)||isLastTraversableNode(ro)?!1:getComputedStyle$1(ro).position==="fixed"||hasFixedPositionAncestor(ro,to)}function getClippingElementAncestors(eo,to){const ro=to.get(eo);if(ro)return ro;let no=getOverflowAncestors(eo,[],!1).filter(ao=>isElement$1(ao)&&getNodeName(ao)!=="body"),oo=null;const io=getComputedStyle$1(eo).position==="fixed";let so=io?getParentNode$1(eo):eo;for(;isElement$1(so)&&!isLastTraversableNode(so);){const ao=getComputedStyle$1(so),lo=isContainingBlock(so);!lo&&ao.position==="fixed"&&(oo=null),(io?!lo&&!oo:!lo&&ao.position==="static"&&!!oo&&["absolute","fixed"].includes(oo.position)||isOverflowElement(so)&&!lo&&hasFixedPositionAncestor(eo,so))?no=no.filter(co=>co!==so):oo=ao,so=getParentNode$1(so)}return to.set(eo,no),no}function getClippingRect(eo){let{element:to,boundary:ro,rootBoundary:no,strategy:oo}=eo;const so=[...ro==="clippingAncestors"?getClippingElementAncestors(to,this._c):[].concat(ro),no],ao=so[0],lo=so.reduce((uo,co)=>{const fo=getClientRectFromClippingAncestor(to,co,oo);return uo.top=max$2(fo.top,uo.top),uo.right=min$2(fo.right,uo.right),uo.bottom=min$2(fo.bottom,uo.bottom),uo.left=max$2(fo.left,uo.left),uo},getClientRectFromClippingAncestor(to,ao,oo));return{width:lo.right-lo.left,height:lo.bottom-lo.top,x:lo.left,y:lo.top}}function getDimensions(eo){return getCssDimensions(eo)}function getRectRelativeToOffsetParent(eo,to,ro){const no=isHTMLElement$4(to),oo=getDocumentElement(to),io=ro==="fixed",so=getBoundingClientRect(eo,!0,io,to);let ao={scrollLeft:0,scrollTop:0};const lo=createCoords(0);if(no||!no&&!io)if((getNodeName(to)!=="body"||isOverflowElement(oo))&&(ao=getNodeScroll(to)),no){const uo=getBoundingClientRect(to,!0,io,to);lo.x=uo.x+to.clientLeft,lo.y=uo.y+to.clientTop}else oo&&(lo.x=getWindowScrollBarX(oo));return{x:so.left+ao.scrollLeft-lo.x,y:so.top+ao.scrollTop-lo.y,width:so.width,height:so.height}}function getTrueOffsetParent(eo,to){return!isHTMLElement$4(eo)||getComputedStyle$1(eo).position==="fixed"?null:to?to(eo):eo.offsetParent}function getOffsetParent(eo,to){const ro=getWindow$1(eo);if(!isHTMLElement$4(eo))return ro;let no=getTrueOffsetParent(eo,to);for(;no&&isTableElement(no)&&getComputedStyle$1(no).position==="static";)no=getTrueOffsetParent(no,to);return no&&(getNodeName(no)==="html"||getNodeName(no)==="body"&&getComputedStyle$1(no).position==="static"&&!isContainingBlock(no))?ro:no||getContainingBlock(eo)||ro}const getElementRects=async function(eo){let{reference:to,floating:ro,strategy:no}=eo;const oo=this.getOffsetParent||getOffsetParent,io=this.getDimensions;return{reference:getRectRelativeToOffsetParent(to,await oo(ro),no),floating:{x:0,y:0,...await io(ro)}}};function isRTL(eo){return getComputedStyle$1(eo).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$1,isRTL},computePosition=(eo,to,ro)=>{const no=new Map,oo={platform,...ro},io={...oo.platform,_c:no};return computePosition$1(eo,to,{...oo,platform:io})};function parseFloatingUIPlacement(eo){const to=eo.split("-");return{side:to[0],alignment:to[1]}}const getParentNode=eo=>eo.nodeName==="HTML"?eo:eo.parentNode||eo.host,getStyleComputedProperty=eo=>{var to;return eo.nodeType!==1?{}:((to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView).getComputedStyle(eo,null)},getScrollParent=eo=>{const to=eo&&getParentNode(eo);if(!to)return document.body;switch(to.nodeName){case"HTML":case"BODY":return to.ownerDocument.body;case"#document":return to.body}const{overflow:ro,overflowX:no,overflowY:oo}=getStyleComputedProperty(to);return/(auto|scroll|overlay)/.test(ro+oo+no)?to:getScrollParent(to)},hasScrollParent=eo=>{var to;const ro=getScrollParent(eo);return ro?ro!==((to=ro.ownerDocument)===null||to===void 0?void 0:to.body):!1};function getBoundary(eo,to){if(to==="window")return eo==null?void 0:eo.ownerDocument.documentElement;if(to==="clippingParents")return"clippingAncestors";if(to==="scrollParent"){let ro=getScrollParent(eo);return ro.nodeName==="BODY"&&(ro=eo==null?void 0:eo.ownerDocument.documentElement),ro}return to}function mergeArrowOffset(eo,to){return typeof eo=="number"||typeof eo=="object"&&eo!==null?addArrowOffset(eo,to):typeof eo=="function"?ro=>{const no=eo(ro);return addArrowOffset(no,to)}:{mainAxis:to}}const addArrowOffset=(eo,to)=>{if(typeof eo=="number")return{mainAxis:eo+to};var ro;return{...eo,mainAxis:((ro=eo.mainAxis)!==null&&ro!==void 0?ro:0)+to}};function toFloatingUIPadding(eo,to){if(typeof eo=="number")return eo;const{start:ro,end:no,...oo}=eo,io=oo,so=to?"end":"start",ao=to?"start":"end";return eo[so]&&(io.left=eo[so]),eo[ao]&&(io.right=eo[ao]),io}const getPositionMap$1=eo=>({above:"top",below:"bottom",before:eo?"right":"left",after:eo?"left":"right"}),getAlignmentMap$1=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),shouldAlignToCenter=(eo,to)=>{const ro=eo==="above"||eo==="below",no=to==="top"||to==="bottom";return ro&&no||!ro&&!no},toFloatingUIPlacement=(eo,to,ro)=>{const no=shouldAlignToCenter(to,eo)?"center":eo,oo=to&&getPositionMap$1(ro)[to],io=no&&getAlignmentMap$1()[no];return oo&&io?`${oo}-${io}`:oo},getPositionMap=()=>({top:"above",bottom:"below",right:"after",left:"before"}),getAlignmentMap=eo=>eo==="above"||eo==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},fromFloatingUIPlacement=eo=>{const{side:to,alignment:ro}=parseFloatingUIPlacement(eo),no=getPositionMap()[to],oo=ro&&getAlignmentMap(no)[ro];return{position:no,alignment:oo}},shorthandLookup={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function resolvePositioningShorthand(eo){return eo==null?{}:typeof eo=="string"?shorthandLookup[eo]:eo}function useCallbackRef(eo,to,ro){const no=reactExports.useRef(!0),[oo]=reactExports.useState(()=>({value:eo,callback:to,facade:{get current(){return oo.value},set current(io){const so=oo.value;if(so!==io){if(oo.value=io,ro&&no.current)return;oo.callback(io,so)}}}}));return useIsomorphicLayoutEffect$1(()=>{no.current=!1},[]),oo.callback=to,oo.facade}function debounce$1(eo){let to;return()=>(to||(to=new Promise(ro=>{Promise.resolve().then(()=>{to=void 0,ro(eo())})})),to)}function writeArrowUpdates(eo){const{arrow:to,middlewareData:ro}=eo;if(!ro.arrow||!to)return;const{x:no,y:oo}=ro.arrow;Object.assign(to.style,{left:`${no}px`,top:`${oo}px`})}function writeContainerUpdates(eo){var to,ro,no;const{container:oo,placement:io,middlewareData:so,strategy:ao,lowPPI:lo,coordinates:uo,useTransform:co=!0}=eo;if(!oo)return;oo.setAttribute(DATA_POSITIONING_PLACEMENT,io),oo.removeAttribute(DATA_POSITIONING_INTERSECTING),so.intersectionObserver.intersecting&&oo.setAttribute(DATA_POSITIONING_INTERSECTING,""),oo.removeAttribute(DATA_POSITIONING_ESCAPED),!((to=so.hide)===null||to===void 0)&&to.escaped&&oo.setAttribute(DATA_POSITIONING_ESCAPED,""),oo.removeAttribute(DATA_POSITIONING_HIDDEN),!((ro=so.hide)===null||ro===void 0)&&ro.referenceHidden&&oo.setAttribute(DATA_POSITIONING_HIDDEN,"");const fo=((no=oo.ownerDocument.defaultView)===null||no===void 0?void 0:no.devicePixelRatio)||1,po=Math.round(uo.x*fo)/fo,ho=Math.round(uo.y*fo)/fo;if(Object.assign(oo.style,{position:ao}),co){Object.assign(oo.style,{transform:lo?`translate(${po}px, ${ho}px)`:`translate3d(${po}px, ${ho}px, 0)`});return}Object.assign(oo.style,{left:`${po}px`,top:`${ho}px`})}const normalizeAutoSize=eo=>{switch(eo){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function coverTarget(){return{name:"coverTarget",fn:eo=>{const{placement:to,rects:ro,x:no,y:oo}=eo,io=parseFloatingUIPlacement(to).side,so={x:no,y:oo};switch(io){case"bottom":so.y-=ro.reference.height;break;case"top":so.y+=ro.reference.height;break;case"left":so.x+=ro.reference.width;break;case"right":so.x-=ro.reference.width;break}return so}}}function flip(eo){const{hasScrollableElement:to,flipBoundary:ro,container:no,fallbackPositions:oo=[],isRtl:io}=eo,so=oo.reduce((ao,lo)=>{const{position:uo,align:co}=resolvePositioningShorthand(lo),fo=toFloatingUIPlacement(co,uo,io);return fo&&ao.push(fo),ao},[]);return flip$1({...to&&{boundary:"clippingAncestors"},...ro&&{altBoundary:!0,boundary:getBoundary(no,ro)},fallbackStrategy:"bestFit",...so.length&&{fallbackPlacements:so}})}function intersecting(){return{name:"intersectionObserver",fn:async eo=>{const to=eo.rects.floating,ro=await detectOverflow(eo,{altBoundary:!0}),no=ro.top0,oo=ro.bottom0;return{data:{intersecting:no||oo}}}}}const resetMaxSize=eo=>({name:"resetMaxSize",fn({middlewareData:to,elements:ro}){var no;if(!((no=to.resetMaxSize)===null||no===void 0)&&no.maxSizeAlreadyReset)return{};const{applyMaxWidth:oo,applyMaxHeight:io}=eo;return oo&&(ro.floating.style.removeProperty("box-sizing"),ro.floating.style.removeProperty("max-width"),ro.floating.style.removeProperty("width")),io&&(ro.floating.style.removeProperty("box-sizing"),ro.floating.style.removeProperty("max-height"),ro.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function maxSize(eo,to){const{container:ro,overflowBoundary:no}=to;return size({...no&&{altBoundary:!0,boundary:getBoundary(ro,no)},apply({availableHeight:oo,availableWidth:io,elements:so,rects:ao}){const lo=(fo,po,ho)=>{if(fo&&(so.floating.style.setProperty("box-sizing","border-box"),so.floating.style.setProperty(`max-${po}`,`${ho}px`),ao.floating[po]>ho)){so.floating.style.setProperty(po,`${ho}px`);const mo=po==="width"?"x":"y";so.floating.style.getPropertyValue(`overflow-${mo}`)||so.floating.style.setProperty(`overflow-${mo}`,"auto")}},{applyMaxWidth:uo,applyMaxHeight:co}=eo;lo(uo,"width",io),lo(co,"height",oo)}})}function getFloatingUIOffset(eo){return!eo||typeof eo=="number"||typeof eo=="object"?eo:({rects:{floating:to,reference:ro},placement:no})=>{const{position:oo,alignment:io}=fromFloatingUIPlacement(no);return eo({positionedRect:to,targetRect:ro,position:oo,alignment:io})}}function offset(eo){const to=getFloatingUIOffset(eo);return offset$1(to)}function shift(eo){const{hasScrollableElement:to,disableTether:ro,overflowBoundary:no,container:oo,overflowBoundaryPadding:io,isRtl:so}=eo;return shift$1({...to&&{boundary:"clippingAncestors"},...ro&&{crossAxis:ro==="all",limiter:limitShift({crossAxis:ro!=="all",mainAxis:!1})},...io&&{padding:toFloatingUIPadding(io,so)},...no&&{altBoundary:!0,boundary:getBoundary(oo,no)}})}const matchTargetSizeCssVar="--fui-match-target-size";function matchTargetSize(){return{name:"matchTargetSize",fn:async eo=>{const{rects:{reference:to,floating:ro},elements:{floating:no},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:oo=!1}={}}}=eo;if(to.width===ro.width||oo)return{};const{width:io}=to;return no.style.setProperty(matchTargetSizeCssVar,`${io}px`),no.style.width||(no.style.width=`var(${matchTargetSizeCssVar})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function listScrollParents(eo){const to=[];let ro=eo;for(;ro;){const no=getScrollParent(ro);if(eo.ownerDocument.body===no){to.push(no);break}to.push(no),ro=no}return to}function createPositionManager(eo){const{container:to,target:ro,arrow:no,strategy:oo,middleware:io,placement:so,useTransform:ao=!0}=eo;let lo=!1;if(!ro||!to)return{updatePosition:()=>{},dispose:()=>{}};let uo=!0;const co=new Set,fo=to.ownerDocument.defaultView;Object.assign(to.style,{position:"fixed",left:0,top:0,margin:0});const po=()=>{lo||(uo&&(listScrollParents(to).forEach(vo=>co.add(vo)),isHTMLElement$6(ro)&&listScrollParents(ro).forEach(vo=>co.add(vo)),co.forEach(vo=>{vo.addEventListener("scroll",ho,{passive:!0})}),uo=!1),Object.assign(to.style,{position:oo}),computePosition(ro,to,{placement:so,middleware:io,strategy:oo}).then(({x:vo,y:bo,middlewareData:xo,placement:_o})=>{lo||(writeArrowUpdates({arrow:no,middlewareData:xo}),writeContainerUpdates({container:to,middlewareData:xo,placement:_o,coordinates:{x:vo,y:bo},lowPPI:((fo==null?void 0:fo.devicePixelRatio)||1)<=1,strategy:oo,useTransform:ao}))}).catch(vo=>{}))},ho=debounce$1(()=>po()),mo=()=>{lo=!0,fo&&(fo.removeEventListener("scroll",ho),fo.removeEventListener("resize",ho)),co.forEach(vo=>{vo.removeEventListener("scroll",ho)}),co.clear()};return fo&&(fo.addEventListener("scroll",ho,{passive:!0}),fo.addEventListener("resize",ho)),ho(),{updatePosition:ho,dispose:mo}}function usePositioning(eo){const to=reactExports.useRef(null),ro=reactExports.useRef(null),no=reactExports.useRef(null),oo=reactExports.useRef(null),io=reactExports.useRef(null),{enabled:so=!0}=eo,ao=usePositioningOptions(eo),lo=reactExports.useCallback(()=>{to.current&&to.current.dispose(),to.current=null;var ho;const mo=(ho=no.current)!==null&&ho!==void 0?ho:ro.current;so&&canUseDOM$3()&&mo&&oo.current&&(to.current=createPositionManager({container:oo.current,target:mo,arrow:io.current,...ao(oo.current,io.current)}))},[so,ao]),uo=useEventCallback$3(ho=>{no.current=ho,lo()});reactExports.useImperativeHandle(eo.positioningRef,()=>({updatePosition:()=>{var ho;return(ho=to.current)===null||ho===void 0?void 0:ho.updatePosition()},setTarget:ho=>{eo.target,uo(ho)}}),[eo.target,uo]),useIsomorphicLayoutEffect$1(()=>{var ho;uo((ho=eo.target)!==null&&ho!==void 0?ho:null)},[eo.target,uo]),useIsomorphicLayoutEffect$1(()=>{lo()},[lo]);const co=useCallbackRef(null,ho=>{ro.current!==ho&&(ro.current=ho,lo())}),fo=useCallbackRef(null,ho=>{oo.current!==ho&&(oo.current=ho,lo())}),po=useCallbackRef(null,ho=>{io.current!==ho&&(io.current=ho,lo())});return{targetRef:co,containerRef:fo,arrowRef:po}}function usePositioningOptions(eo){const{align:to,arrowPadding:ro,autoSize:no,coverTarget:oo,flipBoundary:io,offset:so,overflowBoundary:ao,pinned:lo,position:uo,unstable_disableTether:co,positionFixed:fo,strategy:po,overflowBoundaryPadding:ho,fallbackPositions:mo,useTransform:vo,matchTargetSize:bo}=eo,{dir:xo,targetDocument:_o}=useFluent(),So=xo==="rtl",Eo=po??fo?"fixed":"absolute",ko=normalizeAutoSize(no);return reactExports.useCallback((wo,Co)=>{const Ro=hasScrollParent(wo),Ao=[ko&&resetMaxSize(ko),bo&&matchTargetSize(),so&&offset(so),oo&&coverTarget(),!lo&&flip({container:wo,flipBoundary:io,hasScrollableElement:Ro,isRtl:So,fallbackPositions:mo}),shift({container:wo,hasScrollableElement:Ro,overflowBoundary:ao,disableTether:co,overflowBoundaryPadding:ho,isRtl:So}),ko&&maxSize(ko,{container:wo,overflowBoundary:ao}),intersecting(),Co&&arrow$1({element:Co,padding:ro}),hide({strategy:"referenceHidden"}),hide({strategy:"escaped"}),!1].filter(Boolean);return{placement:toFloatingUIPlacement(to,uo,So),middleware:Ao,strategy:Eo,useTransform:vo}},[to,ro,ko,oo,co,io,So,so,ao,lo,uo,Eo,ho,mo,vo,bo,_o])}const usePositioningMouseTarget=eo=>{const[to,ro]=reactExports.useState(eo);return[to,oo=>{if(oo==null){ro(void 0);return}let io;oo instanceof MouseEvent?io=oo:io=oo.nativeEvent,io instanceof MouseEvent;const so=createVirtualElementFromClick(io);ro(so)}]},PopoverContext=createContext(void 0),popoverContextDefaultValue={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};PopoverContext.Provider;const usePopoverContext_unstable=eo=>useContextSelector(PopoverContext,(to=popoverContextDefaultValue)=>eo(to)),usePopoverSurface_unstable=(eo,to)=>{const ro=usePopoverContext_unstable(_o=>_o.contentRef),no=usePopoverContext_unstable(_o=>_o.openOnHover),oo=usePopoverContext_unstable(_o=>_o.setOpen),io=usePopoverContext_unstable(_o=>_o.mountNode),so=usePopoverContext_unstable(_o=>_o.arrowRef),ao=usePopoverContext_unstable(_o=>_o.size),lo=usePopoverContext_unstable(_o=>_o.withArrow),uo=usePopoverContext_unstable(_o=>_o.appearance),co=usePopoverContext_unstable(_o=>_o.trapFocus),fo=usePopoverContext_unstable(_o=>_o.inertTrapFocus),po=usePopoverContext_unstable(_o=>_o.inline),{modalAttributes:ho}=useModalAttributes({trapFocus:co,legacyTrapFocus:!fo,alwaysFocusable:!co}),mo={inline:po,appearance:uo,withArrow:lo,size:ao,arrowRef:so,mountNode:io,components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ro),role:co?"dialog":"group","aria-modal":co?!0:void 0,...ho,...eo}),{elementType:"div"})},{onMouseEnter:vo,onMouseLeave:bo,onKeyDown:xo}=mo.root;return mo.root.onMouseEnter=_o=>{no&&oo(_o,!0),vo==null||vo(_o)},mo.root.onMouseLeave=_o=>{no&&oo(_o,!1),bo==null||bo(_o)},mo.root.onKeyDown=_o=>{var So;_o.key==="Escape"&&(!((So=ro.current)===null||So===void 0)&&So.contains(_o.target))&&(_o.preventDefault(),oo(_o,!1)),xo==null||xo(_o)},mo};function toMountNodeProps(eo){return isHTMLElement$6(eo)?{element:eo}:typeof eo=="object"?eo===null?{element:null}:eo:{}}var getCurrentOwner=()=>reactExports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,useIsStrictMode=()=>!1,effectSet=new WeakSet;function useStrictEffect(eo,to){const ro=getCurrentOwner();reactExports.useEffect(()=>{if(!effectSet.has(ro)){effectSet.add(ro),eo();return}return eo()},to)}var memoSet=new WeakSet;function useStrictMemo(eo,to){return reactExports.useMemo(()=>{const ro=getCurrentOwner();return memoSet.has(ro)?eo():(memoSet.add(ro),null)},to)}function useDisposable(eo,to){var ro;const no=useIsStrictMode()&&!1,oo=no?useStrictMemo:reactExports.useMemo,io=no?useStrictEffect:reactExports.useEffect,[so,ao]=(ro=oo(()=>eo(),to))!=null?ro:[null,()=>null];return io(()=>ao,to),so}const usePortalMountNodeStylesStyles=__styles({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),useInsertionEffect=React$1.useInsertionEffect,usePortalMountNode=eo=>{const{targetDocument:to,dir:ro}=useFluent(),no=usePortalMountNode$1(),oo=useFocusVisible(),io=usePortalMountNodeStylesStyles(),so=useThemeClassName(),ao=mergeClasses(so,io.root,eo.className),lo=no??(to==null?void 0:to.body),uo=useDisposable(()=>{if(lo===void 0||eo.disabled)return[null,()=>null];const co=lo.ownerDocument.createElement("div");return lo.appendChild(co),[co,()=>co.remove()]},[lo]);return useInsertionEffect?useInsertionEffect(()=>{if(!uo)return;const co=ao.split(" ").filter(Boolean);return uo.classList.add(...co),uo.setAttribute("dir",ro),oo.current=uo,()=>{uo.classList.remove(...co),uo.removeAttribute("dir")}},[ao,ro,uo,oo]):reactExports.useMemo(()=>{uo&&(uo.className=ao,uo.setAttribute("dir",ro),oo.current=uo)},[ao,ro,uo,oo]),uo},usePortal_unstable=eo=>{const{element:to,className:ro}=toMountNodeProps(eo.mountNode),no=reactExports.useRef(null),oo=usePortalMountNode({disabled:!!to,className:ro}),io=to??oo,so={children:eo.children,mountNode:io,virtualParentRootRef:no};return reactExports.useEffect(()=>{if(!io)return;const ao=no.current,lo=io.contains(ao);if(ao&&!lo)return setVirtualParent$1(io,ao),()=>{setVirtualParent$1(io,void 0)}},[no,io]),so},renderPortal_unstable=eo=>reactExports.createElement("span",{hidden:!0,ref:eo.virtualParentRootRef},eo.mountNode&&reactDomExports.createPortal(eo.children,eo.mountNode)),Portal$1=eo=>{const to=usePortal_unstable(eo);return renderPortal_unstable(to)};Portal$1.displayName="Portal";const renderPopoverSurface_unstable=eo=>{const to=jsxs(eo.root,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.root.children]});return eo.inline?to:jsx$1(Portal$1,{mountNode:eo.mountNode,children:to})},popoverSurfaceClassNames={root:"fui-PopoverSurface"},arrowHeights={small:6,medium:8,large:8},useStyles$y=__styles({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),usePopoverSurfaceStyles_unstable=eo=>{const to=useStyles$y();return eo.root.className=mergeClasses(popoverSurfaceClassNames.root,to.root,eo.inline&&to.inline,eo.size==="small"&&to.smallPadding,eo.size==="medium"&&to.mediumPadding,eo.size==="large"&&to.largePadding,eo.appearance==="inverted"&&to.inverted,eo.appearance==="brand"&&to.brand,eo.root.className),eo.arrowClassName=mergeClasses(to.arrow,eo.size==="small"?to.smallArrow:to.mediumLargeArrow),eo},PopoverSurface=reactExports.forwardRef((eo,to)=>{const ro=usePopoverSurface_unstable(eo,to);return usePopoverSurfaceStyles_unstable(ro),useCustomStyleHook("usePopoverSurfaceStyles_unstable")(ro),renderPopoverSurface_unstable(ro)});PopoverSurface.displayName="PopoverSurface";const popoverSurfaceBorderRadius=4,usePopover_unstable=eo=>{const[to,ro]=usePositioningMouseTarget(),no={size:"medium",contextTarget:to,setContextTarget:ro,...eo},oo=reactExports.Children.toArray(eo.children);let io,so;oo.length===2?(io=oo[0],so=oo[1]):oo.length===1&&(so=oo[0]);const[ao,lo]=useOpenState(no),uo=reactExports.useRef(0),co=useEventCallback$3((So,Eo)=>{if(clearTimeout(uo.current),!(So instanceof Event)&&So.persist&&So.persist(),So.type==="mouseleave"){var ko;uo.current=setTimeout(()=>{lo(So,Eo)},(ko=eo.mouseLeaveDelay)!==null&&ko!==void 0?ko:500)}else lo(So,Eo)});reactExports.useEffect(()=>()=>{clearTimeout(uo.current)},[]);const fo=reactExports.useCallback(So=>{co(So,!ao)},[co,ao]),po=usePopoverRefs(no),{targetDocument:ho}=useFluent();var mo;useOnClickOutside({contains:elementContains$1,element:ho,callback:So=>co(So,!1),refs:[po.triggerRef,po.contentRef],disabled:!ao,disabledFocusOnIframe:!(!((mo=eo.closeOnIframeFocus)!==null&&mo!==void 0)||mo)});const vo=no.openOnContext||no.closeOnScroll;useOnScrollOutside({contains:elementContains$1,element:ho,callback:So=>co(So,!1),refs:[po.triggerRef,po.contentRef],disabled:!ao||!vo});const{findFirstFocusable:bo}=useFocusFinders();reactExports.useEffect(()=>{if(!eo.unstable_disableAutoFocus&&ao&&po.contentRef.current){var So;const Eo=(So=po.contentRef.current.getAttribute("tabIndex"))!==null&&So!==void 0?So:void 0,ko=isNaN(Eo)?bo(po.contentRef.current):po.contentRef.current;ko==null||ko.focus()}},[bo,ao,po.contentRef,eo.unstable_disableAutoFocus]);var xo,_o;return{...no,...po,inertTrapFocus:(xo=eo.inertTrapFocus)!==null&&xo!==void 0?xo:eo.legacyTrapFocus===void 0?!1:!eo.legacyTrapFocus,popoverTrigger:io,popoverSurface:so,open:ao,setOpen:co,toggleOpen:fo,setContextTarget:ro,contextTarget:to,inline:(_o=eo.inline)!==null&&_o!==void 0?_o:!1}};function useOpenState(eo){const to=useEventCallback$3((so,ao)=>{var lo;return(lo=eo.onOpenChange)===null||lo===void 0?void 0:lo.call(eo,so,ao)}),[ro,no]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1});eo.open=ro!==void 0?ro:eo.open;const oo=eo.setContextTarget,io=reactExports.useCallback((so,ao)=>{ao&&so.type==="contextmenu"&&oo(so),ao||oo(void 0),no(ao),to==null||to(so,{open:ao})},[no,to,oo]);return[ro,io]}function usePopoverRefs(eo){const to={position:"above",align:"center",arrowPadding:2*popoverSurfaceBorderRadius,target:eo.openOnContext?eo.contextTarget:void 0,...resolvePositioningShorthand(eo.positioning)};to.coverTarget&&(eo.withArrow=!1),eo.withArrow&&(to.offset=mergeArrowOffset(to.offset,arrowHeights[eo.size]));const{targetRef:ro,containerRef:no,arrowRef:oo}=usePositioning(to);return{triggerRef:ro,contentRef:no,arrowRef:oo}}const renderPopover_unstable=eo=>{const{appearance:to,arrowRef:ro,contentRef:no,inline:oo,mountNode:io,open:so,openOnContext:ao,openOnHover:lo,setOpen:uo,size:co,toggleOpen:fo,trapFocus:po,triggerRef:ho,withArrow:mo,inertTrapFocus:vo}=eo;return reactExports.createElement(PopoverContext.Provider,{value:{appearance:to,arrowRef:ro,contentRef:no,inline:oo,mountNode:io,open:so,openOnContext:ao,openOnHover:lo,setOpen:uo,toggleOpen:fo,triggerRef:ho,size:co,trapFocus:po,inertTrapFocus:vo,withArrow:mo}},eo.popoverTrigger,eo.open&&eo.popoverSurface)},Popover=eo=>{const to=usePopover_unstable(eo);return renderPopover_unstable(to)};Popover.displayName="Popover";const usePopoverTrigger_unstable=eo=>{const{children:to,disableButtonEnhancement:ro=!1}=eo,no=getTriggerChild(to),oo=usePopoverContext_unstable(So=>So.open),io=usePopoverContext_unstable(So=>So.setOpen),so=usePopoverContext_unstable(So=>So.toggleOpen),ao=usePopoverContext_unstable(So=>So.triggerRef),lo=usePopoverContext_unstable(So=>So.openOnHover),uo=usePopoverContext_unstable(So=>So.openOnContext),{triggerAttributes:co}=useModalAttributes(),fo=So=>{uo&&(So.preventDefault(),io(So,!0))},po=So=>{uo||so(So)},ho=So=>{So.key===Escape&&oo&&!So.isDefaultPrevented()&&(io(So,!1),So.preventDefault())},mo=So=>{lo&&io(So,!0)},vo=So=>{lo&&io(So,!1)},bo={...co,"aria-expanded":`${oo}`,...no==null?void 0:no.props,onMouseEnter:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onMouseEnter,mo)),onMouseLeave:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onMouseLeave,vo)),onContextMenu:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onContextMenu,fo)),ref:useMergedRefs$1(ao,no==null?void 0:no.ref)},xo={...bo,onClick:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onClick,po)),onKeyDown:useEventCallback$3(mergeCallbacks(no==null?void 0:no.props.onKeyDown,ho))},_o=useARIAButtonProps((no==null?void 0:no.type)==="button"||(no==null?void 0:no.type)==="a"?no.type:"div",xo);return{children:applyTriggerPropsToChildren(eo.children,useARIAButtonProps((no==null?void 0:no.type)==="button"||(no==null?void 0:no.type)==="a"?no.type:"div",uo?bo:ro?xo:_o))}},renderPopoverTrigger_unstable=eo=>eo.children,PopoverTrigger=eo=>{const to=usePopoverTrigger_unstable(eo);return renderPopoverTrigger_unstable(to)};PopoverTrigger.displayName="PopoverTrigger";PopoverTrigger.isFluentTriggerComponent=!0;const arrowHeight=6,tooltipBorderRadius=4,useTooltip_unstable=eo=>{var to,ro,no,oo;const io=useTooltipVisibility(),so=useIsSSR(),{targetDocument:ao}=useFluent(),[lo,uo]=useTimeout(),{appearance:co="normal",children:fo,content:po,withArrow:ho=!1,positioning:mo="above",onVisibleChange:vo,relationship:bo,showDelay:xo=250,hideDelay:_o=250,mountNode:So}=eo,[Eo,ko]=useControllableState({state:eo.visible,initialState:!1}),wo=reactExports.useCallback((Go,qo)=>{uo(),ko(Xo=>(qo.visible!==Xo&&(vo==null||vo(Go,qo)),qo.visible))},[uo,ko,vo]),Co={withArrow:ho,positioning:mo,showDelay:xo,hideDelay:_o,relationship:bo,visible:Eo,shouldRenderTooltip:Eo,appearance:co,mountNode:So,components:{content:"div"},content:always(po,{defaultProps:{role:"tooltip"},elementType:"div"})};Co.content.id=useId$1("tooltip-",Co.content.id);const Ro={enabled:Co.visible,arrowPadding:2*tooltipBorderRadius,position:"above",align:"center",offset:4,...resolvePositioningShorthand(Co.positioning)};Co.withArrow&&(Ro.offset=mergeArrowOffset(Ro.offset,arrowHeight));const{targetRef:Ao,containerRef:Io,arrowRef:$o}=usePositioning(Ro);Co.content.ref=useMergedRefs$1(Co.content.ref,Io),Co.arrowRef=$o,useIsomorphicLayoutEffect$1(()=>{if(Eo){var Go;const qo={hide:Zo=>wo(void 0,{visible:!1,documentKeyboardEvent:Zo})};(Go=io.visibleTooltip)===null||Go===void 0||Go.hide(),io.visibleTooltip=qo;const Xo=Zo=>{Zo.key===Escape&&!Zo.defaultPrevented&&(qo.hide(Zo),Zo.preventDefault())};return ao==null||ao.addEventListener("keydown",Xo,{capture:!0}),()=>{io.visibleTooltip===qo&&(io.visibleTooltip=void 0),ao==null||ao.removeEventListener("keydown",Xo,{capture:!0})}}},[io,ao,Eo,wo]);const Bo=reactExports.useRef(!1),Mo=reactExports.useCallback(Go=>{if(Go.type==="focus"&&Bo.current){Bo.current=!1;return}const qo=io.visibleTooltip?0:Co.showDelay;lo(()=>{wo(Go,{visible:!0})},qo),Go.persist()},[lo,wo,Co.showDelay,io]),[Ho]=reactExports.useState(()=>{const Go=Xo=>{var Zo;!((Zo=Xo.detail)===null||Zo===void 0)&&Zo.isFocusedProgrammatically&&(Bo.current=!0)};let qo=null;return Xo=>{qo==null||qo.removeEventListener(KEYBORG_FOCUSIN,Go),Xo==null||Xo.addEventListener(KEYBORG_FOCUSIN,Go),qo=Xo}}),jo=reactExports.useCallback(Go=>{let qo=Co.hideDelay;Go.type==="blur"&&(qo=0,Bo.current=(ao==null?void 0:ao.activeElement)===Go.target),lo(()=>{wo(Go,{visible:!1})},qo),Go.persist()},[lo,wo,Co.hideDelay,ao]);Co.content.onPointerEnter=mergeCallbacks(Co.content.onPointerEnter,uo),Co.content.onPointerLeave=mergeCallbacks(Co.content.onPointerLeave,jo),Co.content.onFocus=mergeCallbacks(Co.content.onFocus,uo),Co.content.onBlur=mergeCallbacks(Co.content.onBlur,jo);const Oo=getTriggerChild(fo),Fo={};return bo==="label"?typeof Co.content.children=="string"?Fo["aria-label"]=Co.content.children:(Fo["aria-labelledby"]=Co.content.id,Co.shouldRenderTooltip=!0):bo==="description"&&(Fo["aria-describedby"]=Co.content.id,Co.shouldRenderTooltip=!0),so&&(Co.shouldRenderTooltip=!1),Co.children=applyTriggerPropsToChildren(fo,{...Fo,...Oo==null?void 0:Oo.props,ref:useMergedRefs$1(Oo==null?void 0:Oo.ref,Ho,Ro.target===void 0?Ao:void 0),onPointerEnter:useEventCallback$3(mergeCallbacks(Oo==null||(to=Oo.props)===null||to===void 0?void 0:to.onPointerEnter,Mo)),onPointerLeave:useEventCallback$3(mergeCallbacks(Oo==null||(ro=Oo.props)===null||ro===void 0?void 0:ro.onPointerLeave,jo)),onFocus:useEventCallback$3(mergeCallbacks(Oo==null||(no=Oo.props)===null||no===void 0?void 0:no.onFocus,Mo)),onBlur:useEventCallback$3(mergeCallbacks(Oo==null||(oo=Oo.props)===null||oo===void 0?void 0:oo.onBlur,jo))}),Co},renderTooltip_unstable=eo=>jsxs(reactExports.Fragment,{children:[eo.children,eo.shouldRenderTooltip&&jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsxs(eo.content,{children:[eo.withArrow&&jsx$1("div",{ref:eo.arrowRef,className:eo.arrowClassName}),eo.content.children]})})]}),tooltipClassNames={content:"fui-Tooltip__content"},useStyles$x=__styles({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),useTooltipStyles_unstable=eo=>{const to=useStyles$x();return eo.content.className=mergeClasses(tooltipClassNames.content,to.root,eo.appearance==="inverted"&&to.inverted,eo.visible&&to.visible,eo.content.className),eo.arrowClassName=to.arrow,eo},Tooltip=eo=>{const to=useTooltip_unstable(eo);return useTooltipStyles_unstable(to),useCustomStyleHook("useTooltipStyles_unstable")(to),renderTooltip_unstable(to)};Tooltip.displayName="Tooltip";Tooltip.isFluentTriggerComponent=!0;const renderButton_unstable=eo=>{const{iconOnly:to,iconPosition:ro}=eo;return jsxs(eo.root,{children:[ro!=="after"&&eo.icon&&jsx$1(eo.icon,{}),!to&&eo.root.children,ro==="after"&&eo.icon&&jsx$1(eo.icon,{})]})},buttonContext=reactExports.createContext(void 0),buttonContextDefaultValue={};buttonContext.Provider;const useButtonContext=()=>{var eo;return(eo=reactExports.useContext(buttonContext))!==null&&eo!==void 0?eo:buttonContextDefaultValue},useButton_unstable=(eo,to)=>{const{size:ro}=useButtonContext(),{appearance:no="secondary",as:oo="button",disabled:io=!1,disabledFocusable:so=!1,icon:ao,iconPosition:lo="before",shape:uo="rounded",size:co=ro??"medium"}=eo,fo=optional(ao,{elementType:"span"});return{appearance:no,disabled:io,disabledFocusable:so,iconPosition:lo,shape:uo,size:co,iconOnly:!!(fo!=null&&fo.children&&!eo.children),components:{root:"button",icon:"span"},root:always(getIntrinsicElementProps(oo,useARIAButtonProps(eo.as,eo)),{elementType:"button",defaultProps:{ref:to,type:"button"}}),icon:fo}},buttonClassNames={root:"fui-Button",icon:"fui-Button__icon"},useRootBaseClassName$1=__resetStyles("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useIconBaseClassName=__resetStyles("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),useRootStyles$5=__styles({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),useRootDisabledStyles=__styles({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useRootFocusStyles=__styles({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),useRootIconOnlyStyles=__styles({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),useIconStyles$3=__styles({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),useButtonStyles_unstable=eo=>{const to=useRootBaseClassName$1(),ro=useIconBaseClassName(),no=useRootStyles$5(),oo=useRootDisabledStyles(),io=useRootFocusStyles(),so=useRootIconOnlyStyles(),ao=useIconStyles$3(),{appearance:lo,disabled:uo,disabledFocusable:co,icon:fo,iconOnly:po,iconPosition:ho,shape:mo,size:vo}=eo;return eo.root.className=mergeClasses(buttonClassNames.root,to,lo&&no[lo],no[vo],fo&&vo==="small"&&no.smallWithIcon,fo&&vo==="large"&&no.largeWithIcon,no[mo],(uo||co)&&oo.base,(uo||co)&&oo.highContrast,lo&&(uo||co)&&oo[lo],lo==="primary"&&io.primary,io[vo],io[mo],po&&so[vo],eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(buttonClassNames.icon,ro,!!eo.root.children&&ao[ho],ao[vo],eo.icon.className)),eo},Button$2=reactExports.forwardRef((eo,to)=>{const ro=useButton_unstable(eo,to);return useButtonStyles_unstable(ro),useCustomStyleHook("useButtonStyles_unstable")(ro),renderButton_unstable(ro)});Button$2.displayName="Button";const FieldContext=reactExports.createContext(void 0);FieldContext.Provider;const useFieldContext_unstable=()=>reactExports.useContext(FieldContext);function useFieldControlProps_unstable(eo,to){return getFieldControlProps(useFieldContext_unstable(),eo,to)}function getFieldControlProps(eo,to,ro){if(!eo)return to;to={...to};const{generatedControlId:no,hintId:oo,labelFor:io,labelId:so,required:ao,validationMessageId:lo,validationState:uo}=eo;if(no){var co,fo;(fo=(co=to).id)!==null&&fo!==void 0||(co.id=no)}if(so&&(!(ro!=null&&ro.supportsLabelFor)||io!==to.id)){var po,ho,mo;(mo=(po=to)[ho="aria-labelledby"])!==null&&mo!==void 0||(po[ho]=so)}if((lo||oo)&&(to["aria-describedby"]=[lo,oo,to==null?void 0:to["aria-describedby"]].filter(Boolean).join(" ")),uo==="error"){var vo,bo,xo;(xo=(vo=to)[bo="aria-invalid"])!==null&&xo!==void 0||(vo[bo]=!0)}if(ao)if(ro!=null&&ro.supportsRequired){var _o,So;(So=(_o=to).required)!==null&&So!==void 0||(_o.required=!0)}else{var Eo,ko,wo;(wo=(Eo=to)[ko="aria-required"])!==null&&wo!==void 0||(Eo[ko]=!0)}if(ro!=null&&ro.supportsSize){var Co,Ro;(Ro=(Co=to).size)!==null&&Ro!==void 0||(Co.size=eo.size)}return to}const useLabel_unstable=(eo,to)=>{const{disabled:ro=!1,required:no=!1,weight:oo="regular",size:io="medium"}=eo;return{disabled:ro,required:optional(no===!0?"*":no||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:oo,size:io,components:{root:"label",required:"span"},root:always(getIntrinsicElementProps("label",{ref:to,...eo}),{elementType:"label"})}},renderLabel_unstable=eo=>jsxs(eo.root,{children:[eo.root.children,eo.required&&jsx$1(eo.required,{})]}),labelClassNames={root:"fui-Label",required:"fui-Label__required"},useStyles$w=__styles({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),useLabelStyles_unstable=eo=>{const to=useStyles$w();return eo.root.className=mergeClasses(labelClassNames.root,to.root,eo.disabled&&to.disabled,to[eo.size],eo.weight==="semibold"&&to.semibold,eo.root.className),eo.required&&(eo.required.className=mergeClasses(labelClassNames.required,to.required,eo.disabled&&to.requiredDisabled,eo.required.className)),eo},Label=reactExports.forwardRef((eo,to)=>{const ro=useLabel_unstable(eo,to);return useLabelStyles_unstable(ro),useCustomStyleHook("useLabelStyles_unstable")(ro),renderLabel_unstable(ro)});Label.displayName="Label";const ComboboxContext=createContext({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});ComboboxContext.Provider;const ListboxContext=createContext({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});ListboxContext.Provider;function useComboboxContextValues(eo){const{activeOption:to,appearance:ro,focusVisible:no,open:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo,setOpen:uo,size:co}=eo;return{combobox:{activeOption:to,appearance:ro,focusVisible:no,open:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo,setOpen:uo,size:co}}}function useListboxContextValues(eo){const to=useHasParentContext(ComboboxContext),{activeOption:ro,focusVisible:no,multiselect:oo,registerOption:io,selectedOptions:so,selectOption:ao,setActiveOption:lo}=eo,uo=useContextSelector(ComboboxContext,po=>po.registerOption);return{listbox:{activeOption:ro,focusVisible:no,multiselect:oo,registerOption:to?uo:io,selectedOptions:so,selectOption:ao,setActiveOption:lo}}}function getDropdownActionFromKey(eo,to={}){const{open:ro=!0,multiselect:no=!1}=to,oo=eo.key,{altKey:io,ctrlKey:so,key:ao,metaKey:lo}=eo;return ao.length===1&&oo!==Space&&!io&&!so&&!lo?"Type":ro?oo===ArrowUp&&io||oo===Enter||!no&&oo===Space?"CloseSelect":no&&oo===Space?"Select":oo===Escape?"Close":oo===ArrowDown?"Next":oo===ArrowUp?"Previous":oo===Home?"First":oo===End?"Last":oo===PageUp?"PageUp":oo===PageDown?"PageDown":oo===Tab$2?"Tab":"None":oo===ArrowDown||oo===ArrowUp||oo===Enter||oo===Space?"Open":"None"}function getIndexFromAction(eo,to,ro){switch(eo){case"Next":return Math.min(ro,to+1);case"Previous":return Math.max(0,to-1);case"First":return 0;case"Last":return ro;case"PageDown":return Math.min(ro,to+10);case"PageUp":return Math.max(0,to-10);default:return to}}const useOptionCollection=()=>{const eo=reactExports.useRef([]),to=reactExports.useMemo(()=>({getCount:()=>eo.current.length,getOptionAtIndex:uo=>{var co;return(co=eo.current[uo])===null||co===void 0?void 0:co.option},getIndexOfId:uo=>eo.current.findIndex(co=>co.option.id===uo),getOptionById:uo=>{const co=eo.current.find(fo=>fo.option.id===uo);return co==null?void 0:co.option},getOptionsMatchingText:uo=>eo.current.filter(co=>uo(co.option.text)).map(co=>co.option),getOptionsMatchingValue:uo=>eo.current.filter(co=>uo(co.option.value)).map(co=>co.option)}),[]),ro=reactExports.useCallback((no,oo)=>{var io;const so=eo.current.findIndex(ao=>!ao.element||!oo?!1:ao.option.id===no.id?!0:ao.element.compareDocumentPosition(oo)&Node.DOCUMENT_POSITION_PRECEDING);if(((io=eo.current[so])===null||io===void 0?void 0:io.option.id)!==no.id){const ao={element:oo,option:no};so===-1?eo.current=[...eo.current,ao]:eo.current.splice(so,0,ao)}return()=>{eo.current=eo.current.filter(ao=>ao.option.id!==no.id)}},[]);return{...to,options:eo.current.map(no=>no.option),registerOption:ro}};function useScrollOptionsIntoView(eo){const{activeOption:to}=eo,ro=reactExports.useRef(null);return reactExports.useEffect(()=>{if(ro.current&&to&&canUseDOM$3()){const no=ro.current.querySelector(`#${to.id}`);if(!no)return;const{offsetHeight:oo,offsetTop:io}=no,{offsetHeight:so,scrollTop:ao}=ro.current,lo=ioao+so,co=2;lo?ro.current.scrollTo(0,io-co):uo&&ro.current.scrollTo(0,io-so+oo+co)}},[to]),ro}const useSelection=eo=>{const{defaultSelectedOptions:to,multiselect:ro,onOptionSelect:no}=eo,[oo,io]=useControllableState({state:eo.selectedOptions,defaultState:to,initialState:[]}),so=reactExports.useCallback((lo,uo)=>{if(uo.disabled)return;let co=[uo.value];if(ro){const fo=oo.findIndex(po=>po===uo.value);fo>-1?co=[...oo.slice(0,fo),...oo.slice(fo+1)]:co=[...oo,uo.value]}io(co),no==null||no(lo,{optionValue:uo.value,optionText:uo.text,selectedOptions:co})},[no,ro,oo,io]);return{clearSelection:lo=>{io([]),no==null||no(lo,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:so,selectedOptions:oo}},useListbox_unstable=(eo,to)=>{const{multiselect:ro}=eo,no=useOptionCollection(),{getCount:oo,getOptionAtIndex:io,getIndexOfId:so}=no,{clearSelection:ao,selectedOptions:lo,selectOption:uo}=useSelection(eo),[co,fo]=reactExports.useState(),[po,ho]=reactExports.useState(!1),mo=Ao=>{const Io=getDropdownActionFromKey(Ao,{open:!0}),$o=oo()-1,Bo=co?so(co.id):-1;let Mo=Bo;switch(Io){case"Select":case"CloseSelect":co&&uo(Ao,co);break;default:Mo=getIndexFromAction(Io,Bo,$o)}Mo!==Bo&&(Ao.preventDefault(),fo(io(Mo)),ho(!0))},vo=Ao=>{ho(!1)},bo=useHasParentContext(ComboboxContext),xo=useContextSelector(ComboboxContext,Ao=>Ao.activeOption),_o=useContextSelector(ComboboxContext,Ao=>Ao.focusVisible),So=useContextSelector(ComboboxContext,Ao=>Ao.selectedOptions),Eo=useContextSelector(ComboboxContext,Ao=>Ao.selectOption),ko=useContextSelector(ComboboxContext,Ao=>Ao.setActiveOption),wo=bo?{activeOption:xo,focusVisible:_o,selectedOptions:So,selectOption:Eo,setActiveOption:ko}:{activeOption:co,focusVisible:po,selectedOptions:lo,selectOption:uo,setActiveOption:fo},Co={components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:to,role:ro?"menu":"listbox","aria-activedescendant":bo||co==null?void 0:co.id,"aria-multiselectable":ro,tabIndex:0,...eo}),{elementType:"div"}),multiselect:ro,clearSelection:ao,...no,...wo},Ro=useScrollOptionsIntoView(Co);return Co.root.ref=useMergedRefs$1(Co.root.ref,Ro),Co.root.onKeyDown=useEventCallback$3(mergeCallbacks(Co.root.onKeyDown,mo)),Co.root.onMouseOver=useEventCallback$3(mergeCallbacks(Co.root.onMouseOver,vo)),Co},renderListbox_unstable=(eo,to)=>jsx$1(ListboxContext.Provider,{value:to.listbox,children:jsx$1(eo.root,{})}),listboxClassNames={root:"fui-Listbox"},useStyles$v=__styles({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),useListboxStyles_unstable=eo=>{const to=useStyles$v();return eo.root.className=mergeClasses(listboxClassNames.root,to.root,eo.root.className),eo},Listbox$1=reactExports.forwardRef((eo,to)=>{const ro=useListbox_unstable(eo,to),no=useListboxContextValues(ro);return useListboxStyles_unstable(ro),useCustomStyleHook("useListboxStyles_unstable")(ro),renderListbox_unstable(ro,no)});Listbox$1.displayName="Listbox";function getTextString(eo,to){if(eo!==void 0)return eo;let ro="",no=!1;return reactExports.Children.forEach(to,oo=>{typeof oo=="string"?ro+=oo:no=!0}),no&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),ro}const useOption_unstable=(eo,to)=>{const{children:ro,disabled:no,text:oo,value:io}=eo,so=reactExports.useRef(null),ao=getTextString(oo,ro),lo=io??ao,uo=useId$1("fluent-option",eo.id),co=reactExports.useMemo(()=>({id:uo,disabled:no,text:ao,value:lo}),[uo,no,ao,lo]),fo=useContextSelector(ListboxContext,wo=>wo.focusVisible),po=useContextSelector(ListboxContext,wo=>wo.multiselect),ho=useContextSelector(ListboxContext,wo=>wo.registerOption),mo=useContextSelector(ListboxContext,wo=>{const Co=wo.selectedOptions;return!!lo&&!!Co.find(Ro=>Ro===lo)}),vo=useContextSelector(ListboxContext,wo=>wo.selectOption),bo=useContextSelector(ListboxContext,wo=>wo.setActiveOption),xo=useContextSelector(ComboboxContext,wo=>wo.setOpen),_o=useContextSelector(ListboxContext,wo=>{var Co,Ro;return((Co=wo.activeOption)===null||Co===void 0?void 0:Co.id)!==void 0&&((Ro=wo.activeOption)===null||Ro===void 0?void 0:Ro.id)===uo});let So=reactExports.createElement(CheckmarkFilled,null);po&&(So=mo?reactExports.createElement(Checkmark12Filled,null):"");const Eo=wo=>{var Co;if(no){wo.preventDefault();return}bo(co),po||xo==null||xo(wo,!1),vo(wo,co),(Co=eo.onClick)===null||Co===void 0||Co.call(eo,wo)};reactExports.useEffect(()=>{if(uo&&so.current)return ho(co,so.current)},[uo,co,ho]);const ko=po?{role:"menuitemcheckbox","aria-checked":mo}:{role:"option","aria-selected":mo};return{components:{root:"div",checkIcon:"span"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,so),"aria-disabled":no?"true":void 0,id:uo,...ko,...eo,onClick:Eo}),{elementType:"div"}),checkIcon:optional(eo.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:So},elementType:"span"}),active:_o,disabled:no,focusVisible:fo,multiselect:po,selected:mo}},renderOption_unstable=eo=>jsxs(eo.root,{children:[eo.checkIcon&&jsx$1(eo.checkIcon,{}),eo.root.children]}),optionClassNames={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},useStyles$u=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),useOptionStyles_unstable=eo=>{const{active:to,disabled:ro,focusVisible:no,multiselect:oo,selected:io}=eo,so=useStyles$u();return eo.root.className=mergeClasses(optionClassNames.root,so.root,to&&no&&so.active,ro&&so.disabled,io&&so.selected,eo.root.className),eo.checkIcon&&(eo.checkIcon.className=mergeClasses(optionClassNames.checkIcon,so.checkIcon,oo&&so.multiselectCheck,io&&so.selectedCheck,io&&oo&&so.selectedMultiselectCheck,ro&&so.checkDisabled,eo.checkIcon.className)),eo},Option$2=reactExports.forwardRef((eo,to)=>{const ro=useOption_unstable(eo,to);return useOptionStyles_unstable(ro),useCustomStyleHook("useOptionStyles_unstable")(ro),renderOption_unstable(ro)});Option$2.displayName="Option";const useComboboxBaseState=eo=>{const{appearance:to="outline",children:ro,editable:no=!1,inlinePopup:oo=!1,mountNode:io=void 0,multiselect:so,onOpenChange:ao,size:lo="medium"}=eo,uo=useOptionCollection(),{getOptionAtIndex:co,getOptionsMatchingValue:fo}=uo,[po,ho]=reactExports.useState(),[mo,vo]=reactExports.useState(!1),[bo,xo]=reactExports.useState(!1),_o=reactExports.useRef(!1),So=useSelection(eo),{selectedOptions:Eo}=So,ko=useFirstMount(),[wo,Co]=useControllableState({state:eo.value,initialState:void 0}),Ro=reactExports.useMemo(()=>{if(wo!==void 0)return wo;if(ko&&eo.defaultValue!==void 0)return eo.defaultValue;const Bo=fo(Mo=>Eo.includes(Mo)).map(Mo=>Mo.text);return so?no?"":Bo.join(", "):Bo[0]},[wo,no,fo,so,eo.defaultValue,Eo]),[Ao,Io]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),$o=reactExports.useCallback((Bo,Mo)=>{ao==null||ao(Bo,{open:Mo}),Io(Mo)},[ao,Io]);return reactExports.useEffect(()=>{if(Ao&&!po)if(!so&&Eo.length>0){const Bo=fo(Mo=>Mo===Eo[0]).pop();Bo&&ho(Bo)}else ho(co(0));else Ao||ho(void 0)},[Ao,ro]),{...uo,...So,activeOption:po,appearance:to,focusVisible:mo,hasFocus:bo,ignoreNextBlur:_o,inlinePopup:oo,mountNode:io,open:Ao,setActiveOption:ho,setFocusVisible:vo,setHasFocus:xo,setOpen:$o,setValue:Co,size:lo,value:Ro,multiselect:so}};function useComboboxPositioning(eo){const{positioning:to}=eo,no={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...resolvePositioningShorthand(to)},{targetRef:oo,containerRef:io}=usePositioning(no);return[io,oo]}function useListboxSlot(eo,to,ro){const{state:{multiselect:no},triggerRef:oo,defaultProps:io}=ro,so=useId$1("fluent-listbox",isResolvedShorthand(eo)?eo.id:void 0),ao=optional(eo,{renderByDefault:!0,elementType:Listbox$1,defaultProps:{id:so,multiselect:no,tabIndex:void 0,...io}}),lo=useEventCallback$3(mergeCallbacks(fo=>{fo.preventDefault()},ao==null?void 0:ao.onMouseDown)),uo=useEventCallback$3(mergeCallbacks(fo=>{var po;fo.preventDefault(),(po=oo.current)===null||po===void 0||po.focus()},ao==null?void 0:ao.onClick)),co=useMergedRefs$1(ao==null?void 0:ao.ref,to);return ao&&(ao.ref=co,ao.onMouseDown=lo,ao.onClick=uo),ao}function useTriggerSlot(eo,to,ro){const{state:{activeOption:no,getCount:oo,getIndexOfId:io,getOptionAtIndex:so,open:ao,selectOption:lo,setActiveOption:uo,setFocusVisible:co,setOpen:fo,multiselect:po},defaultProps:ho,elementType:mo}=ro,vo=always(eo,{defaultProps:{type:"text","aria-expanded":ao,"aria-activedescendant":ao?no==null?void 0:no.id:void 0,role:"combobox",...typeof ho=="object"&&ho},elementType:mo}),bo=reactExports.useRef(null);return vo.ref=useMergedRefs$1(bo,vo.ref,to),vo.onBlur=mergeCallbacks(xo=>{fo(xo,!1)},vo.onBlur),vo.onClick=mergeCallbacks(xo=>{fo(xo,!ao)},vo.onClick),vo.onKeyDown=mergeCallbacks(xo=>{const _o=getDropdownActionFromKey(xo,{open:ao,multiselect:po}),So=oo()-1,Eo=no?io(no.id):-1;let ko=Eo;switch(_o){case"Open":xo.preventDefault(),co(!0),fo(xo,!0);break;case"Close":xo.stopPropagation(),xo.preventDefault(),fo(xo,!1);break;case"CloseSelect":!po&&!(no!=null&&no.disabled)&&fo(xo,!1);case"Select":no&&lo(xo,no),xo.preventDefault();break;case"Tab":!po&&no&&lo(xo,no);break;default:ko=getIndexFromAction(_o,Eo,So)}ko!==Eo&&(xo.preventDefault(),uo(so(ko)),co(!0))},vo.onKeyDown),vo.onMouseOver=mergeCallbacks(xo=>{co(!1)},vo.onMouseOver),vo}function useInputTriggerSlot(eo,to,ro){const{state:{open:no,value:oo,activeOption:io,selectOption:so,setValue:ao,setActiveOption:lo,setFocusVisible:uo,multiselect:co,selectedOptions:fo,clearSelection:po,getOptionsMatchingText:ho,getIndexOfId:mo,setOpen:vo},freeform:bo,defaultProps:xo}=ro,_o=$o=>{!no&&!bo&&(oo&&io&&oo.trim().toLowerCase()===(io==null?void 0:io.text.toLowerCase())&&so($o,io),ao(void 0))},So=$o=>{const Bo=$o==null?void 0:$o.trim().toLowerCase();if(!Bo||Bo.length===0)return;const Ho=ho(Oo=>Oo.toLowerCase().indexOf(Bo)===0);if(Ho.length>1&&io){const Oo=mo(io.id),Fo=Ho.find(Go=>mo(Go.id)>=Oo);return Fo??Ho[0]}var jo;return(jo=Ho[0])!==null&&jo!==void 0?jo:void 0},Eo=$o=>{const Bo=$o.target.value;ao(Bo);const Mo=So(Bo);lo(Mo),uo(!0),!co&&fo.length===1&&(Bo.length<1||!Mo)&&po($o)},ko=useTriggerSlot(eo,to,{state:ro.state,defaultProps:xo,elementType:"input"});ko.onChange=mergeCallbacks(ko.onChange,Eo),ko.onBlur=mergeCallbacks(ko.onBlur,_o);const[wo,Co]=reactExports.useState(!1),Ro=reactExports.useRef(!1),Ao=ko.onKeyDown,Io=useEventCallback$3($o=>{!no&&getDropdownActionFromKey($o)==="Type"&&vo($o,!0),$o.key===ArrowLeft||$o.key===ArrowRight?Co(!0):Co(!1);const Bo=getDropdownActionFromKey($o,{open:no,multiselect:co});if(Bo==="Type"?Ro.current=!0:(Bo==="Open"&&$o.key!==" "||Bo==="Next"||Bo==="Previous"||Bo==="First"||Bo==="Last"||Bo==="PageUp"||Bo==="PageDown")&&(Ro.current=!1),bo&&(Ro.current||!no)&&$o.key===" "){var Mo;eo==null||(Mo=eo.onKeyDown)===null||Mo===void 0||Mo.call(eo,$o);return}Ao==null||Ao($o)});return ko.onKeyDown=Io,wo&&(ko["aria-activedescendant"]=void 0),ko}const useCombobox_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const ro=useComboboxBaseState({...eo,editable:!0}),{open:no,selectOption:oo,setOpen:io,setValue:so,value:ao}=ro,[lo,uo]=useComboboxPositioning(eo),{disabled:co,freeform:fo,inlinePopup:po}=eo,ho=useId$1("combobox-"),{primary:mo,root:vo}=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["children","size"]});ro.selectOption=(Ao,Io)=>{so(void 0),oo(Ao,Io)},ro.setOpen=(Ao,Io)=>{co||(!Io&&!fo&&so(void 0),io(Ao,Io))};const bo=reactExports.useRef(null),xo=useListboxSlot(eo.listbox,lo,{state:ro,triggerRef:bo,defaultProps:{children:eo.children}});var _o;const So=useInputTriggerSlot((_o=eo.input)!==null&&_o!==void 0?_o:{},useMergedRefs$1(bo,to),{state:ro,freeform:fo,defaultProps:{type:"text",value:ao??"",...mo}}),Eo=always(eo.root,{defaultProps:{"aria-owns":!po&&no?xo==null?void 0:xo.id:void 0,...vo},elementType:"div"});Eo.ref=useMergedRefs$1(Eo.ref,uo);const ko={components:{root:"div",input:"input",expandIcon:"span",listbox:Listbox$1},root:Eo,input:So,listbox:no?xo:void 0,expandIcon:optional(eo.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":no,children:reactExports.createElement(ChevronDownRegular,null),role:"button"},elementType:"span"}),...ro},{onMouseDown:wo}=ko.expandIcon||{},Co=useEventCallback$3(mergeCallbacks(wo,Ao=>{var Io;Ao.preventDefault(),ko.setOpen(Ao,!ko.open),(Io=bo.current)===null||Io===void 0||Io.focus()}));if(ko.expandIcon){ko.expandIcon.onMouseDown=Co;const Ao=ko.expandIcon["aria-label"]||ko.expandIcon["aria-labelledby"],Io="Open";if(!Ao)if(eo["aria-labelledby"]){var Ro;const $o=(Ro=ko.expandIcon.id)!==null&&Ro!==void 0?Ro:`${ho}-chevron`,Bo=`${$o} ${ko.input["aria-labelledby"]}`;ko.expandIcon["aria-label"]=Io,ko.expandIcon.id=$o,ko.expandIcon["aria-labelledby"]=Bo}else eo["aria-label"]?ko.expandIcon["aria-label"]=`${Io} ${eo["aria-label"]}`:ko.expandIcon["aria-label"]=Io}return ko},renderCombobox_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(ComboboxContext.Provider,{value:to.combobox,children:[jsx$1(eo.input,{}),eo.expandIcon&&jsx$1(eo.expandIcon,{}),eo.listbox&&(eo.inlinePopup?jsx$1(eo.listbox,{}):jsx$1(Portal$1,{mountNode:eo.mountNode,children:jsx$1(eo.listbox,{})}))]})}),comboboxClassNames={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},useStyles$t=__styles({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),useInputStyles$1=__styles({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),useIconStyles$2=__styles({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),useComboboxStyles_unstable=eo=>{const{appearance:to,open:ro,size:no}=eo,oo=`${eo.input["aria-invalid"]}`=="true",io=eo.input.disabled,so=useStyles$t(),ao=useIconStyles$2(),lo=useInputStyles$1();return eo.root.className=mergeClasses(comboboxClassNames.root,so.root,so[to],so[no],!io&&to==="outline"&&so.outlineInteractive,oo&&to!=="underline"&&so.invalid,oo&&to==="underline"&&so.invalidUnderline,io&&so.disabled,eo.root.className),eo.input.className=mergeClasses(comboboxClassNames.input,lo.input,lo[no],io&&lo.disabled,eo.input.className),eo.listbox&&(eo.listbox.className=mergeClasses(comboboxClassNames.listbox,so.listbox,!ro&&so.listboxCollapsed,eo.listbox.className)),eo.expandIcon&&(eo.expandIcon.className=mergeClasses(comboboxClassNames.expandIcon,ao.icon,ao[no],io&&ao.disabled,eo.expandIcon.className)),eo},Combobox=reactExports.forwardRef((eo,to)=>{const ro=useCombobox_unstable(eo,to),no=useComboboxContextValues(ro);return useComboboxStyles_unstable(ro),useCustomStyleHook("useComboboxStyles_unstable")(ro),renderCombobox_unstable(ro,no)});Combobox.displayName="Combobox";const useOptionGroup_unstable=(eo,to)=>{const ro=useId$1("group-label"),{label:no}=eo;return{components:{root:"div",label:"span"},root:always(getIntrinsicElementProps("div",{ref:to,role:"group","aria-labelledby":no?ro:void 0,...eo}),{elementType:"div"}),label:optional(no,{defaultProps:{id:ro,role:"presentation"},elementType:"span"})}},renderOptionGroup_unstable=eo=>jsxs(eo.root,{children:[eo.label&&jsx$1(eo.label,{children:eo.label.children}),eo.root.children]}),optionGroupClassNames={root:"fui-OptionGroup",label:"fui-OptionGroup__label"},useStyles$s=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",Gwp8xu:"fu19d3i",H93o2g:"flylvvz",eii1in:"f1ug5m11",om0q45:"f5642y",Hl9o3s:"ffdf81h",Bi9x0x4:"flgyru6",B0i58d9:["f1fjgumo","f1sgo0dv"],sl1c2c:"fwsdxdw",z4hxbw:["f1sgo0dv","f1fjgumo"]},label:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",z8tnut:"f17mpqex",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fdvome7",uwmqm3:["fk8j09s","fdw0yi8"]}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',".fu19d3i:not(:last-child)::after{border-bottom-width:var(--strokeWidthThin);}",".flylvvz:not(:last-child)::after{border-bottom-style:solid;}",".f1ug5m11:not(:last-child)::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",".flgyru6:not(:last-child)::after{margin-top:0;}",".f1fjgumo:not(:last-child)::after{margin-right:calc(var(--spacingHorizontalXS) * -1);}",".f1sgo0dv:not(:last-child)::after{margin-left:calc(var(--spacingHorizontalXS) * -1);}",".fwsdxdw:not(:last-child)::after{margin-bottom:var(--spacingVerticalXS);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}"]}),useOptionGroupStyles_unstable=eo=>{const to=useStyles$s();return eo.root.className=mergeClasses(optionGroupClassNames.root,to.root,eo.root.className),eo.label&&(eo.label.className=mergeClasses(optionGroupClassNames.label,to.label,eo.label.className)),eo},OptionGroup=reactExports.forwardRef((eo,to)=>{const ro=useOptionGroup_unstable(eo,to);return useOptionGroupStyles_unstable(ro),useCustomStyleHook("useOptionGroupStyles_unstable")(ro),renderOptionGroup_unstable(ro)});OptionGroup.displayName="OptionGroup";const renderDivider_unstable=eo=>jsx$1(eo.root,{children:eo.root.children!==void 0&&jsx$1(eo.wrapper,{children:eo.root.children})}),useDivider_unstable=(eo,to)=>{const{alignContent:ro="center",appearance:no="default",inset:oo=!1,vertical:io=!1,wrapper:so}=eo,ao=useId$1("divider-");return{alignContent:ro,appearance:no,inset:oo,vertical:io,components:{root:"div",wrapper:"div"},root:always(getIntrinsicElementProps("div",{role:"separator","aria-orientation":io?"vertical":"horizontal","aria-labelledby":eo.children?ao:void 0,...eo,ref:to}),{elementType:"div"}),wrapper:always(so,{defaultProps:{id:ao,children:eo.children},elementType:"div"})}},dividerClassNames={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},useBaseStyles=__styles({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),useHorizontalStyles=__styles({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),useVerticalStyles=__styles({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),useDividerStyles_unstable=eo=>{const to=useBaseStyles(),ro=useHorizontalStyles(),no=useVerticalStyles(),{alignContent:oo,appearance:io,inset:so,vertical:ao}=eo;return eo.root.className=mergeClasses(dividerClassNames.root,to.base,to[oo],io&&to[io],!ao&&ro.base,!ao&&so&&ro.inset,!ao&&ro[oo],ao&&no.base,ao&&so&&no.inset,ao&&no[oo],ao&&eo.root.children!==void 0&&no.withChildren,eo.root.children===void 0&&to.childless,eo.root.className),eo.wrapper&&(eo.wrapper.className=mergeClasses(dividerClassNames.wrapper,eo.wrapper.className)),eo},Divider$2=reactExports.forwardRef((eo,to)=>{const ro=useDivider_unstable(eo,to);return useDividerStyles_unstable(ro),useCustomStyleHook("useDividerStyles_unstable")(ro),renderDivider_unstable(ro)});Divider$2.displayName="Divider";const useInput_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const ro=useOverrides();var no;const{size:oo="medium",appearance:io=(no=ro.inputDefaultAppearance)!==null&&no!==void 0?no:"outline",onChange:so}=eo,[ao,lo]=useControllableState({state:eo.value,defaultState:eo.defaultValue,initialState:""}),uo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),co={size:oo,appearance:io,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:always(eo.input,{defaultProps:{type:"text",ref:to,...uo.primary},elementType:"input"}),contentAfter:optional(eo.contentAfter,{elementType:"span"}),contentBefore:optional(eo.contentBefore,{elementType:"span"}),root:always(eo.root,{defaultProps:uo.root,elementType:"span"})};return co.input.value=ao,co.input.onChange=useEventCallback$3(fo=>{const po=fo.target.value;so==null||so(fo,{value:po}),lo(po)}),co},renderInput_unstable=eo=>jsxs(eo.root,{children:[eo.contentBefore&&jsx$1(eo.contentBefore,{}),jsx$1(eo.input,{}),eo.contentAfter&&jsx$1(eo.contentAfter,{})]}),inputClassNames={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},useRootClassName=__resetStyles("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),useRootStyles$4=__styles({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),useInputClassName=__resetStyles("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),useInputElementStyles=__styles({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),useContentClassName=__resetStyles("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),useContentStyles$1=__styles({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),useInputStyles_unstable=eo=>{const{size:to,appearance:ro}=eo,no=eo.input.disabled,oo=`${eo.input["aria-invalid"]}`=="true",io=ro.startsWith("filled"),so=useRootStyles$4(),ao=useInputElementStyles(),lo=useContentStyles$1();eo.root.className=mergeClasses(inputClassNames.root,useRootClassName(),so[to],so[ro],!no&&ro==="outline"&&so.outlineInteractive,!no&&ro==="underline"&&so.underlineInteractive,!no&&io&&so.filledInteractive,io&&so.filled,!no&&oo&&so.invalid,no&&so.disabled,eo.root.className),eo.input.className=mergeClasses(inputClassNames.input,useInputClassName(),to==="large"&&ao.large,no&&ao.disabled,eo.input.className);const uo=[useContentClassName(),no&&lo.disabled,lo[to]];return eo.contentBefore&&(eo.contentBefore.className=mergeClasses(inputClassNames.contentBefore,...uo,eo.contentBefore.className)),eo.contentAfter&&(eo.contentAfter.className=mergeClasses(inputClassNames.contentAfter,...uo,eo.contentAfter.className)),eo},Input=reactExports.forwardRef((eo,to)=>{const ro=useInput_unstable(eo,to);return useInputStyles_unstable(ro),useCustomStyleHook("useInputStyles_unstable")(ro),renderInput_unstable(ro)});Input.displayName="Input";const useLinkState_unstable=eo=>{const{disabled:to,disabledFocusable:ro}=eo,{onClick:no,onKeyDown:oo,role:io,tabIndex:so}=eo.root;return eo.root.as==="a"&&(eo.root.href=to?void 0:eo.root.href,(to||ro)&&(eo.root.role=io||"link")),(eo.root.as==="a"||eo.root.as==="span")&&(eo.root.tabIndex=so??(to&&!ro?void 0:0)),eo.root.onClick=ao=>{to||ro?ao.preventDefault():no==null||no(ao)},eo.root.onKeyDown=ao=>{(to||ro)&&(ao.key===Enter||ao.key===Space)?(ao.preventDefault(),ao.stopPropagation()):oo==null||oo(ao)},eo.disabled=to||ro,eo.root["aria-disabled"]=to||ro||void 0,eo.root.as==="button"&&(eo.root.disabled=to&&!ro),eo},useLink_unstable=(eo,to)=>{const ro=useBackgroundAppearance(),{appearance:no="default",disabled:oo=!1,disabledFocusable:io=!1,inline:so=!1}=eo,ao=eo.as||(eo.href?"a":"button"),lo={role:ao==="span"?"button":void 0,type:ao==="button"?"button":void 0,...eo,as:ao},uo={appearance:no,disabled:oo,disabledFocusable:io,inline:so,components:{root:ao},root:always(getIntrinsicElementProps(ao,{ref:to,...lo}),{elementType:ao}),backgroundAppearance:ro};return useLinkState_unstable(uo),uo},linkClassNames={root:"fui-Link"},useStyles$r=__styles({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),useLinkStyles_unstable=eo=>{const to=useStyles$r(),{appearance:ro,disabled:no,inline:oo,root:io,backgroundAppearance:so}=eo;return eo.root.className=mergeClasses(linkClassNames.root,to.root,to.focusIndicator,io.as==="a"&&io.href&&to.href,io.as==="button"&&to.button,ro==="subtle"&&to.subtle,so==="inverted"&&to.inverted,oo&&to.inline,no&&to.disabled,eo.root.className),eo},renderLink_unstable=eo=>jsx$1(eo.root,{}),Link$1=reactExports.forwardRef((eo,to)=>{const ro=useLink_unstable(eo,to);return useLinkStyles_unstable(ro),renderLink_unstable(ro)});Link$1.displayName="Link";const SkeletonContext=reactExports.createContext(void 0),skeletonContextDefaultValue={},SkeletonContextProvider=SkeletonContext.Provider,useSkeletonContext=()=>{var eo;return(eo=reactExports.useContext(SkeletonContext))!==null&&eo!==void 0?eo:skeletonContextDefaultValue},useSkeleton_unstable=(eo,to)=>{const{animation:ro,appearance:no}=useSkeletonContext(),{animation:oo=ro??"wave",appearance:io=no??"opaque"}=eo,so=always(getIntrinsicElementProps("div",{ref:to,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...eo}),{elementType:"div"});return{animation:oo,appearance:io,components:{root:"div"},root:so}},renderSkeleton_unstable=(eo,to)=>jsx$1(SkeletonContextProvider,{value:to.skeletonGroup,children:jsx$1(eo.root,{})}),skeletonClassNames={root:"fui-Skeleton"},useSkeletonStyles_unstable=eo=>(eo.root.className=mergeClasses(skeletonClassNames.root,eo.root.className),eo),useSkeletonContextValues=eo=>{const{animation:to,appearance:ro}=eo;return{skeletonGroup:reactExports.useMemo(()=>({animation:to,appearance:ro}),[to,ro])}},Skeleton=reactExports.forwardRef((eo,to)=>{const ro=useSkeleton_unstable(eo,to),no=useSkeletonContextValues(ro);return useSkeletonStyles_unstable(ro),renderSkeleton_unstable(ro,no)});Skeleton.displayName="Skeleton";const useSkeletonItem_unstable=(eo,to)=>{const{animation:ro,appearance:no}=useSkeletonContext(),{animation:oo=ro??"wave",appearance:io=no??"opaque",size:so=16,shape:ao="rectangle"}=eo,lo=always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"});return{appearance:io,animation:oo,size:so,shape:ao,components:{root:"div"},root:lo}},renderSkeletonItem_unstable=eo=>jsx$1(eo.root,{}),skeletonItemClassNames={root:"fui-SkeletonItem"},useStyles$q=__styles({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,`.f152emvt{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,".f105t0nc{animation-name:fj9wi3p;}",".fnm2mpv{animation-name:f12o7gg6;}",".f1iuewzk{animation-duration:1s;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",`.fss7axp{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,`.f4160cw{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),useRectangleStyles=__styles({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),useSizeStyles=__styles({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),useCircleSizeStyles=__styles({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),useSkeletonItemStyles_unstable=eo=>{const{animation:to,appearance:ro,size:no,shape:oo}=eo,{dir:io}=useFluent(),so=useStyles$q(),ao=useRectangleStyles(),lo=useSizeStyles(),uo=useCircleSizeStyles();return eo.root.className=mergeClasses(skeletonItemClassNames.root,so.root,to==="wave"&&so.wave,to==="wave"&&io==="rtl"&&so.waveRtl,to==="pulse"&&so.pulse,ro==="translucent"&&so.translucent,to==="pulse"&&ro==="translucent"&&so.translucentPulse,oo==="rectangle"&&ao.root,oo==="rectangle"&&ao[no],oo==="square"&&lo[no],oo==="circle"&&uo.root,oo==="circle"&&lo[no],eo.root.className),eo},SkeletonItem=reactExports.forwardRef((eo,to)=>{const ro=useSkeletonItem_unstable(eo,to);return useSkeletonItemStyles_unstable(ro),renderSkeletonItem_unstable(ro)});SkeletonItem.displayName="SkeletonItem";const DefaultSvg=()=>reactExports.createElement("svg",{className:"fui-Spinner__Progressbar"},reactExports.createElement("circle",{className:"fui-Spinner__Track"}),reactExports.createElement("circle",{className:"fui-Spinner__Tail"})),SpinnerContext=reactExports.createContext(void 0),SpinnerContextDefaultValue={};SpinnerContext.Provider;const useSpinnerContext=()=>{var eo;return(eo=reactExports.useContext(SpinnerContext))!==null&&eo!==void 0?eo:SpinnerContextDefaultValue},useSpinner_unstable=(eo,to)=>{const{size:ro}=useSpinnerContext(),{appearance:no="primary",labelPosition:oo="after",size:io=ro??"medium",delay:so=0}=eo,ao=useId$1("spinner"),{role:lo="progressbar",tabIndex:uo,...co}=eo,fo=always(getIntrinsicElementProps("div",{ref:to,role:lo,...co},["size"]),{elementType:"div"}),[po,ho]=reactExports.useState(!0),[mo,vo]=useTimeout();reactExports.useEffect(()=>{if(!(so<=0))return ho(!1),mo(()=>{ho(!0)},so),()=>{vo()}},[mo,vo,so]);const bo=optional(eo.label,{defaultProps:{id:ao},renderByDefault:!1,elementType:Label}),xo=optional(eo.spinner,{renderByDefault:!0,defaultProps:{children:reactExports.createElement(DefaultSvg,null),tabIndex:uo},elementType:"span"});return bo&&fo&&!fo["aria-labelledby"]&&(fo["aria-labelledby"]=bo.id),{appearance:no,delay:so,labelPosition:oo,size:io,shouldRenderSpinner:po,components:{root:"div",spinner:"span",label:Label},root:fo,spinner:xo,label:bo}},renderSpinner_unstable=eo=>{const{labelPosition:to,shouldRenderSpinner:ro}=eo;return jsxs(eo.root,{children:[eo.label&&ro&&(to==="above"||to==="before")&&jsx$1(eo.label,{}),eo.spinner&&ro&&jsx$1(eo.spinner,{}),eo.label&&ro&&(to==="below"||to==="after")&&jsx$1(eo.label,{})]})},spinnerClassNames={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},useRootStyles$3=__styles({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),useLoaderStyles=__styles({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useTrackStyles=__styles({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),useLabelStyles$1=__styles({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),useSpinnerStyles_unstable=eo=>{const{labelPosition:to,size:ro,appearance:no="primary"}=eo,oo=useRootStyles$3(),io=useLoaderStyles(),so=useLabelStyles$1(),ao=useTrackStyles();return eo.root.className=mergeClasses(spinnerClassNames.root,oo.root,(to==="above"||to==="below")&&oo.vertical,(to==="before"||to==="after")&&oo.horizontal,eo.root.className),eo.spinner&&(eo.spinner.className=mergeClasses(spinnerClassNames.spinner,io.spinnerSVG,io[ro],ao[no],eo.spinner.className)),eo.label&&(eo.label.className=mergeClasses(spinnerClassNames.label,so[ro],so[no],eo.label.className)),eo},Spinner=reactExports.forwardRef((eo,to)=>{const ro=useSpinner_unstable(eo,to);return useSpinnerStyles_unstable(ro),useCustomStyleHook("useSpinnerStyles_unstable")(ro),renderSpinner_unstable(ro)});Spinner.displayName="Spinner";const useSwitch_unstable=(eo,to)=>{eo=useFieldControlProps_unstable(eo,{supportsLabelFor:!0,supportsRequired:!0});const{checked:ro,defaultChecked:no,disabled:oo,labelPosition:io="after",onChange:so,required:ao}=eo,lo=getPartitionedNativeProps({props:eo,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),uo=useId$1("switch-",lo.primary.id),co=always(eo.root,{defaultProps:{ref:useFocusWithin(),...lo.root},elementType:"div"}),fo=always(eo.indicator,{defaultProps:{"aria-hidden":!0,children:reactExports.createElement(CircleFilled,null)},elementType:"div"}),po=always(eo.input,{defaultProps:{checked:ro,defaultChecked:no,id:uo,ref:to,role:"switch",type:"checkbox",...lo.primary},elementType:"input"});po.onChange=mergeCallbacks(po.onChange,mo=>so==null?void 0:so(mo,{checked:mo.currentTarget.checked}));const ho=optional(eo.label,{defaultProps:{disabled:oo,htmlFor:uo,required:ao,size:"medium"},elementType:Label});return{labelPosition:io,components:{root:"div",indicator:"div",input:"input",label:Label},root:co,indicator:fo,input:po,label:ho}},renderSwitch_unstable=eo=>{const{labelPosition:to}=eo;return jsxs(eo.root,{children:[jsx$1(eo.input,{}),to!=="after"&&eo.label&&jsx$1(eo.label,{}),jsx$1(eo.indicator,{}),to==="after"&&eo.label&&jsx$1(eo.label,{})]})},switchClassNames={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},useRootBaseClassName=__resetStyles("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useRootStyles$2=__styles({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),useIndicatorBaseClassName=__resetStyles("r13wlxb8",null,{r:[".r13wlxb8{border-radius:var(--borderRadiusCircular);border:1px solid;line-height:0;box-sizing:border-box;fill:currentColor;flex-shrink:0;font-size:18px;height:20px;margin:var(--spacingVerticalS) var(--spacingHorizontalS);pointer-events:none;transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:background,border,color;width:40px;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),useIndicatorStyles=__styles({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),useInputBaseClassName=__resetStyles("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),useInputStyles=__styles({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),useLabelStyles=__styles({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},above:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun",a9b677:"fly5x3f"},after:{uwmqm3:["fruq291","f7x41pl"]},before:{z189sj:["f7x41pl","fruq291"]}},{d:[".f1k6fduh{cursor:pointer;}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),useSwitchStyles_unstable=eo=>{const to=useRootBaseClassName(),ro=useRootStyles$2(),no=useIndicatorBaseClassName(),oo=useIndicatorStyles(),io=useInputBaseClassName(),so=useInputStyles(),ao=useLabelStyles(),{label:lo,labelPosition:uo}=eo;return eo.root.className=mergeClasses(switchClassNames.root,to,uo==="above"&&ro.vertical,eo.root.className),eo.indicator.className=mergeClasses(switchClassNames.indicator,no,lo&&uo==="above"&&oo.labelAbove,eo.indicator.className),eo.input.className=mergeClasses(switchClassNames.input,io,lo&&so[uo],eo.input.className),eo.label&&(eo.label.className=mergeClasses(switchClassNames.label,ao.base,ao[uo],eo.label.className)),eo},Switch=reactExports.forwardRef((eo,to)=>{const ro=useSwitch_unstable(eo,to);return useSwitchStyles_unstable(ro),useCustomStyleHook("useSwitchStyles_unstable")(ro),renderSwitch_unstable(ro)});Switch.displayName="Switch";const tabListContextDefaultValue={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},TabListContext=createContext(void 0),TabListProvider=TabListContext.Provider,useTabListContext_unstable=eo=>useContextSelector(TabListContext,(to=tabListContextDefaultValue)=>eo(to)),useTab_unstable=(eo,to)=>{const{content:ro,disabled:no=!1,icon:oo,onClick:io,onFocus:so,value:ao}=eo,lo=useTabListContext_unstable(Io=>Io.appearance),uo=useTabListContext_unstable(Io=>Io.reserveSelectedTabSpace),co=useTabListContext_unstable(Io=>Io.selectTabOnFocus),fo=useTabListContext_unstable(Io=>Io.disabled),po=useTabListContext_unstable(Io=>Io.selectedValue===ao),ho=useTabListContext_unstable(Io=>Io.onRegister),mo=useTabListContext_unstable(Io=>Io.onUnregister),vo=useTabListContext_unstable(Io=>Io.onSelect),bo=useTabListContext_unstable(Io=>Io.size),xo=useTabListContext_unstable(Io=>!!Io.vertical),_o=fo||no,So=reactExports.useRef(null),Eo=Io=>vo(Io,{value:ao}),ko=useEventCallback$3(mergeCallbacks(io,Eo)),wo=useEventCallback$3(mergeCallbacks(so,Eo));reactExports.useEffect(()=>(ho({value:ao,ref:So}),()=>{mo({value:ao,ref:So})}),[ho,mo,So,ao]);const Co=optional(oo,{elementType:"span"}),Ro=always(ro,{defaultProps:{children:eo.children},elementType:"span"}),Ao=!!(Co!=null&&Co.children&&!Ro.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:always(getIntrinsicElementProps("button",{ref:useMergedRefs$1(to,So),role:"tab",type:"button","aria-selected":_o?void 0:`${po}`,...eo,disabled:_o,onClick:ko,onFocus:co?wo:so}),{elementType:"button"}),icon:Co,iconOnly:Ao,content:Ro,contentReservedSpace:optional(ro,{renderByDefault:!po&&!Ao&&uo,defaultProps:{children:eo.children},elementType:"span"}),appearance:lo,disabled:_o,selected:po,size:bo,value:ao,vertical:xo}},renderTab_unstable=eo=>jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),!eo.iconOnly&&jsx$1(eo.content,{}),eo.contentReservedSpace&&jsx$1(eo.contentReservedSpace,{})]}),tabIndicatorCssVars_unstable={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},useActiveIndicatorStyles$1=__styles({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),calculateTabRect=eo=>{if(eo){var to;const ro=((to=eo.parentElement)===null||to===void 0?void 0:to.getBoundingClientRect())||{x:0,y:0,width:0,height:0},no=eo.getBoundingClientRect();return{x:no.x-ro.x,y:no.y-ro.y,width:no.width,height:no.height}}},getRegisteredTabRect=(eo,to)=>{var ro;const no=to!=null?(ro=eo[JSON.stringify(to)])===null||ro===void 0?void 0:ro.ref.current:void 0;return no?calculateTabRect(no):void 0},useTabAnimatedIndicatorStyles_unstable=eo=>{const{disabled:to,selected:ro,vertical:no}=eo,oo=useActiveIndicatorStyles$1(),[io,so]=reactExports.useState(),[ao,lo]=reactExports.useState({offset:0,scale:1}),uo=useTabListContext_unstable(po=>po.getRegisteredTabs);if(reactExports.useEffect(()=>{io&&lo({offset:0,scale:1})},[io]),ro){const{previousSelectedValue:po,selectedValue:ho,registeredTabs:mo}=uo();if(po&&io!==po){const vo=getRegisteredTabRect(mo,po),bo=getRegisteredTabRect(mo,ho);if(bo&&vo){const xo=no?vo.y-bo.y:vo.x-bo.x,_o=no?vo.height/bo.height:vo.width/bo.width;lo({offset:xo,scale:_o}),so(po)}}}else io&&so(void 0);if(to)return eo;const co=ao.offset===0&&ao.scale===1;eo.root.className=mergeClasses(eo.root.className,ro&&oo.base,ro&&co&&oo.animated,ro&&(no?oo.vertical:oo.horizontal));const fo={[tabIndicatorCssVars_unstable.offsetVar]:`${ao.offset}px`,[tabIndicatorCssVars_unstable.scaleVar]:`${ao.scale}`};return eo.root.style={...fo,...eo.root.style},eo},tabClassNames={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},reservedSpaceClassNames={content:"fui-Tab__content--reserved-space"},useRootStyles$1=__styles({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),useFocusStyles=__styles({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),usePendingIndicatorStyles=__styles({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),useActiveIndicatorStyles=__styles({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),useIconStyles$1=__styles({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),useContentStyles=__styles({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),useTabStyles_unstable=eo=>{const to=useRootStyles$1(),ro=useFocusStyles(),no=usePendingIndicatorStyles(),oo=useActiveIndicatorStyles(),io=useIconStyles$1(),so=useContentStyles(),{appearance:ao,disabled:lo,selected:uo,size:co,vertical:fo}=eo;return eo.root.className=mergeClasses(tabClassNames.root,to.base,fo?to.vertical:to.horizontal,co==="small"&&(fo?to.smallVertical:to.smallHorizontal),co==="medium"&&(fo?to.mediumVertical:to.mediumHorizontal),co==="large"&&(fo?to.largeVertical:to.largeHorizontal),ro.base,!lo&&ao==="subtle"&&to.subtle,!lo&&ao==="transparent"&&to.transparent,!lo&&uo&&to.selected,lo&&to.disabled,no.base,co==="small"&&(fo?no.smallVertical:no.smallHorizontal),co==="medium"&&(fo?no.mediumVertical:no.mediumHorizontal),co==="large"&&(fo?no.largeVertical:no.largeHorizontal),lo&&no.disabled,uo&&oo.base,uo&&!lo&&oo.selected,uo&&co==="small"&&(fo?oo.smallVertical:oo.smallHorizontal),uo&&co==="medium"&&(fo?oo.mediumVertical:oo.mediumHorizontal),uo&&co==="large"&&(fo?oo.largeVertical:oo.largeHorizontal),uo&&lo&&oo.disabled,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(tabClassNames.icon,io.base,io[co],uo&&io.selected,eo.icon.className)),eo.contentReservedSpace&&(eo.contentReservedSpace.className=mergeClasses(reservedSpaceClassNames.content,so.base,co==="large"?so.largeSelected:so.selected,eo.icon?so.iconBefore:so.noIconBefore,so.placeholder,eo.content.className),eo.contentReservedSpaceClassName=eo.contentReservedSpace.className),eo.content.className=mergeClasses(tabClassNames.content,so.base,co==="large"&&so.large,uo&&(co==="large"?so.largeSelected:so.selected),eo.icon?so.iconBefore:so.noIconBefore,eo.content.className),useTabAnimatedIndicatorStyles_unstable(eo),eo},Tab$1=reactExports.forwardRef((eo,to)=>{const ro=useTab_unstable(eo,to);return useTabStyles_unstable(ro),useCustomStyleHook("useTabStyles_unstable")(ro),renderTab_unstable(ro)});Tab$1.displayName="Tab";const useTabList_unstable=(eo,to)=>{const{appearance:ro="transparent",reserveSelectedTabSpace:no=!0,disabled:oo=!1,onTabSelect:io,selectTabOnFocus:so=!1,size:ao="medium",vertical:lo=!1}=eo,uo=reactExports.useRef(null),co=useArrowNavigationGroup({circular:!0,axis:lo?"vertical":"horizontal",memorizeCurrent:!0}),[fo,po]=useControllableState({state:eo.selectedValue,defaultState:eo.defaultSelectedValue,initialState:void 0}),ho=reactExports.useRef(void 0),mo=reactExports.useRef(void 0);reactExports.useEffect(()=>{mo.current=ho.current,ho.current=fo},[fo]);const vo=useEventCallback$3((Eo,ko)=>{po(ko.value),io==null||io(Eo,ko)}),bo=reactExports.useRef({}),xo=useEventCallback$3(Eo=>{bo.current[JSON.stringify(Eo.value)]=Eo}),_o=useEventCallback$3(Eo=>{delete bo.current[JSON.stringify(Eo.value)]}),So=reactExports.useCallback(()=>({selectedValue:ho.current,previousSelectedValue:mo.current,registeredTabs:bo.current}),[]);return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,uo),role:"tablist","aria-orientation":lo?"vertical":"horizontal",...co,...eo}),{elementType:"div"}),appearance:ro,reserveSelectedTabSpace:no,disabled:oo,selectTabOnFocus:so,selectedValue:fo,size:ao,vertical:lo,onRegister:xo,onUnregister:_o,onSelect:vo,getRegisteredTabs:So}},renderTabList_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(TabListProvider,{value:to.tabList,children:eo.root.children})}),tabListClassNames={root:"fui-TabList"},useStyles$p=__styles({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),useTabListStyles_unstable=eo=>{const{vertical:to}=eo,ro=useStyles$p();return eo.root.className=mergeClasses(tabListClassNames.root,ro.root,to?ro.vertical:ro.horizontal,eo.root.className),eo};function useTabListContextValues_unstable(eo){const{appearance:to,reserveSelectedTabSpace:ro,disabled:no,selectTabOnFocus:oo,selectedValue:io,onRegister:so,onUnregister:ao,onSelect:lo,getRegisteredTabs:uo,size:co,vertical:fo}=eo;return{tabList:{appearance:to,reserveSelectedTabSpace:ro,disabled:no,selectTabOnFocus:oo,selectedValue:io,onSelect:lo,onRegister:so,onUnregister:ao,getRegisteredTabs:uo,size:co,vertical:fo}}}const TabList=reactExports.forwardRef((eo,to)=>{const ro=useTabList_unstable(eo,to),no=useTabListContextValues_unstable(ro);return useTabListStyles_unstable(ro),useCustomStyleHook("useTabListStyles_unstable")(ro),renderTabList_unstable(ro,no)});TabList.displayName="TabList";const useText_unstable=(eo,to)=>{const{wrap:ro,truncate:no,block:oo,italic:io,underline:so,strikethrough:ao,size:lo,font:uo,weight:co,align:fo}=eo;return{align:fo??"start",block:oo??!1,font:uo??"base",italic:io??!1,size:lo??300,strikethrough:ao??!1,truncate:no??!1,underline:so??!1,weight:co??"regular",wrap:ro??!0,components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,...eo}),{elementType:"span"})}},renderText_unstable=eo=>jsx$1(eo.root,{}),textClassNames={root:"fui-Text"},useStyles$o=__styles({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),useTextStyles_unstable=eo=>{const to=useStyles$o();return eo.root.className=mergeClasses(textClassNames.root,to.root,eo.wrap===!1&&to.nowrap,eo.truncate&&to.truncate,eo.block&&to.block,eo.italic&&to.italic,eo.underline&&to.underline,eo.strikethrough&&to.strikethrough,eo.underline&&eo.strikethrough&&to.strikethroughUnderline,eo.size===100&&to.base100,eo.size===200&&to.base200,eo.size===400&&to.base400,eo.size===500&&to.base500,eo.size===600&&to.base600,eo.size===700&&to.hero700,eo.size===800&&to.hero800,eo.size===900&&to.hero900,eo.size===1e3&&to.hero1000,eo.font==="monospace"&&to.monospace,eo.font==="numeric"&&to.numeric,eo.weight==="medium"&&to.weightMedium,eo.weight==="semibold"&&to.weightSemibold,eo.weight==="bold"&&to.weightBold,eo.align==="center"&&to.alignCenter,eo.align==="end"&&to.alignEnd,eo.align==="justify"&&to.alignJustify,eo.root.className),eo},Text$1=reactExports.forwardRef((eo,to)=>{const ro=useText_unstable(eo,to);return useTextStyles_unstable(ro),useCustomStyleHook("useTextStyles_unstable")(ro),renderText_unstable(ro)});Text$1.displayName="Text";const disableScrollElementProp="__fluentDisableScrollElement";function useDisableBodyScroll(){const{targetDocument:eo}=useFluent();return reactExports.useCallback(()=>{if(eo)return disableScroll(eo.body)},[eo])}function disableScroll(eo){var to;const{clientWidth:ro}=eo.ownerDocument.documentElement;var no;const oo=(no=(to=eo.ownerDocument.defaultView)===null||to===void 0?void 0:to.innerWidth)!==null&&no!==void 0?no:0;return assertIsDisableScrollElement(eo),eo[disableScrollElementProp].count===0&&(eo.style.overflow="hidden",eo.style.paddingRight=`${oo-ro}px`),eo[disableScrollElementProp].count++,()=>{eo[disableScrollElementProp].count--,eo[disableScrollElementProp].count===0&&(eo.style.overflow=eo[disableScrollElementProp].previousOverflowStyle,eo.style.paddingRight=eo[disableScrollElementProp].previousPaddingRightStyle)}}function assertIsDisableScrollElement(eo){var to,ro,no;(no=(to=eo)[ro=disableScrollElementProp])!==null&&no!==void 0||(to[ro]={count:0,previousOverflowStyle:eo.style.overflow,previousPaddingRightStyle:eo.style.paddingRight})}function useFocusFirstElement(eo,to){const{findFirstFocusable:ro}=useFocusFinders(),{targetDocument:no}=useFluent(),oo=reactExports.useRef(null);return reactExports.useEffect(()=>{if(!eo)return;const io=oo.current&&ro(oo.current);if(io)io.focus();else{var so;(so=oo.current)===null||so===void 0||so.focus()}},[ro,eo,to,no]),oo}const defaultContextValue$2={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},DialogContext=createContext(void 0),DialogProvider=DialogContext.Provider,useDialogContext_unstable=eo=>useContextSelector(DialogContext,(to=defaultContextValue$2)=>eo(to)),defaultContextValue$1=!1,DialogSurfaceContext=reactExports.createContext(void 0),DialogSurfaceProvider=DialogSurfaceContext.Provider,useDialogSurfaceContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogSurfaceContext))!==null&&eo!==void 0?eo:defaultContextValue$1},useDialog_unstable=eo=>{const{children:to,modalType:ro="modal",onOpenChange:no,inertTrapFocus:oo=!1}=eo,[io,so]=childrenToTriggerAndContent(to),[ao,lo]=useControllableState({state:eo.open,defaultState:eo.defaultOpen,initialState:!1}),uo=useEventCallback$3(vo=>{no==null||no(vo.event,vo),vo.event.isDefaultPrevented()||lo(vo.open)}),co=useFocusFirstElement(ao,ro),fo=useDisableBodyScroll(),po=!!(ao&&ro!=="non-modal");useIsomorphicLayoutEffect$1(()=>{if(po)return fo()},[fo,po]);const{modalAttributes:ho,triggerAttributes:mo}=useModalAttributes({trapFocus:ro!=="non-modal",legacyTrapFocus:!oo});return{components:{backdrop:"div"},inertTrapFocus:oo,open:ao,modalType:ro,content:so,trigger:io,requestOpenChange:uo,dialogTitleId:useId$1("dialog-title-"),isNestedDialog:useHasParentContext(DialogContext),dialogRef:co,modalAttributes:ro!=="non-modal"?ho:void 0,triggerAttributes:mo}};function childrenToTriggerAndContent(eo){const to=reactExports.Children.toArray(eo);switch(to.length){case 2:return to;case 1:return[void 0,to[0]];default:return[void 0,void 0]}}function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(eo){for(var to=1;to=0)&&(ro[oo]=eo[oo]);return ro}function _setPrototypeOf$2(eo,to){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(no,oo){return no.__proto__=oo,no},_setPrototypeOf$2(eo,to)}function _inheritsLoose$1(eo,to){eo.prototype=Object.create(to.prototype),eo.prototype.constructor=eo,_setPrototypeOf$2(eo,to)}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function eo(no,oo,io,so,ao,lo){if(lo!==ReactPropTypesSecret){var uo=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw uo.name="Invariant Violation",uo}}eo.isRequired=eo;function to(){return eo}var ro={array:eo,bigint:eo,bool:eo,func:eo,number:eo,object:eo,string:eo,symbol:eo,any:eo,arrayOf:to,element:eo,elementType:eo,instanceOf:to,node:eo,objectOf:to,oneOf:to,oneOfType:to,shape:to,exact:to,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ro.PropTypes=ro,ro};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports),config$3={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function(to){return to.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(eo){_inheritsLoose$1(to,eo);function to(no,oo){var io;io=eo.call(this,no,oo)||this;var so=oo,ao=so&&!so.isMounting?no.enter:no.appear,lo;return io.appearStatus=null,no.in?ao?(lo=EXITED,io.appearStatus=ENTERING):lo=ENTERED:no.unmountOnExit||no.mountOnEnter?lo=UNMOUNTED:lo=EXITED,io.state={status:lo},io.nextCallback=null,io}to.getDerivedStateFromProps=function(oo,io){var so=oo.in;return so&&io.status===UNMOUNTED?{status:EXITED}:null};var ro=to.prototype;return ro.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},ro.componentDidUpdate=function(oo){var io=null;if(oo!==this.props){var so=this.state.status;this.props.in?so!==ENTERING&&so!==ENTERED&&(io=ENTERING):(so===ENTERING||so===ENTERED)&&(io=EXITING)}this.updateStatus(!1,io)},ro.componentWillUnmount=function(){this.cancelNextCallback()},ro.getTimeouts=function(){var oo=this.props.timeout,io,so,ao;return io=so=ao=oo,oo!=null&&typeof oo!="number"&&(io=oo.exit,so=oo.enter,ao=oo.appear!==void 0?oo.appear:so),{exit:io,enter:so,appear:ao}},ro.updateStatus=function(oo,io){if(oo===void 0&&(oo=!1),io!==null)if(this.cancelNextCallback(),io===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var so=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);so&&forceReflow(so)}this.performEnter(oo)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},ro.performEnter=function(oo){var io=this,so=this.props.enter,ao=this.context?this.context.isMounting:oo,lo=this.props.nodeRef?[ao]:[ReactDOM.findDOMNode(this),ao],uo=lo[0],co=lo[1],fo=this.getTimeouts(),po=ao?fo.appear:fo.enter;if(!oo&&!so||config$3.disabled){this.safeSetState({status:ENTERED},function(){io.props.onEntered(uo)});return}this.props.onEnter(uo,co),this.safeSetState({status:ENTERING},function(){io.props.onEntering(uo,co),io.onTransitionEnd(po,function(){io.safeSetState({status:ENTERED},function(){io.props.onEntered(uo,co)})})})},ro.performExit=function(){var oo=this,io=this.props.exit,so=this.getTimeouts(),ao=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!io||config$3.disabled){this.safeSetState({status:EXITED},function(){oo.props.onExited(ao)});return}this.props.onExit(ao),this.safeSetState({status:EXITING},function(){oo.props.onExiting(ao),oo.onTransitionEnd(so.exit,function(){oo.safeSetState({status:EXITED},function(){oo.props.onExited(ao)})})})},ro.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},ro.safeSetState=function(oo,io){io=this.setNextCallback(io),this.setState(oo,io)},ro.setNextCallback=function(oo){var io=this,so=!0;return this.nextCallback=function(ao){so&&(so=!1,io.nextCallback=null,oo(ao))},this.nextCallback.cancel=function(){so=!1},this.nextCallback},ro.onTransitionEnd=function(oo,io){this.setNextCallback(io);var so=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ao=oo==null&&!this.props.addEndListener;if(!so||ao){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var lo=this.props.nodeRef?[this.nextCallback]:[so,this.nextCallback],uo=lo[0],co=lo[1];this.props.addEndListener(uo,co)}oo!=null&&setTimeout(this.nextCallback,oo)},ro.render=function(){var oo=this.state.status;if(oo===UNMOUNTED)return null;var io=this.props,so=io.children;io.in,io.mountOnEnter,io.unmountOnExit,io.appear,io.enter,io.exit,io.timeout,io.addEndListener,io.onEnter,io.onEntering,io.onEntered,io.onExit,io.onExiting,io.onExited,io.nodeRef;var ao=_objectWithoutPropertiesLoose$2(io,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof so=="function"?so(oo,ao):React.cloneElement(React.Children.only(so),ao))},to}(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$5(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$5,onEntering:noop$5,onEntered:noop$5,onExit:noop$5,onExiting:noop$5,onExited:noop$5};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;const Transition$1=Transition;function _assertThisInitialized$3(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}const defaultContextValue=void 0,DialogTransitionContext=reactExports.createContext(void 0),DialogTransitionProvider=DialogTransitionContext.Provider,useDialogTransitionContext_unstable=()=>{var eo;return(eo=reactExports.useContext(DialogTransitionContext))!==null&&eo!==void 0?eo:defaultContextValue},renderDialog_unstable=(eo,to)=>{const{content:ro,trigger:no}=eo;return jsx$1(DialogProvider,{value:to.dialog,children:jsxs(DialogSurfaceProvider,{value:to.dialogSurface,children:[no,jsx$1(Transition$1,{mountOnEnter:!0,unmountOnExit:!0,in:eo.open,nodeRef:eo.dialogRef,appear:!0,timeout:250,children:oo=>jsx$1(DialogTransitionProvider,{value:oo,children:ro})})]})})};function useDialogContextValues_unstable(eo){const{modalType:to,open:ro,dialogRef:no,dialogTitleId:oo,isNestedDialog:io,inertTrapFocus:so,requestOpenChange:ao,modalAttributes:lo,triggerAttributes:uo}=eo;return{dialog:{open:ro,modalType:to,dialogRef:no,dialogTitleId:oo,isNestedDialog:io,inertTrapFocus:so,modalAttributes:lo,triggerAttributes:uo,requestOpenChange:ao},dialogSurface:!1}}const Dialog=reactExports.memo(eo=>{const to=useDialog_unstable(eo),ro=useDialogContextValues_unstable(to);return renderDialog_unstable(to,ro)});Dialog.displayName="Dialog";const useDialogTrigger_unstable=eo=>{const to=useDialogSurfaceContext_unstable(),{children:ro,disableButtonEnhancement:no=!1,action:oo=to?"close":"open"}=eo,io=getTriggerChild(ro),so=useDialogContext_unstable(fo=>fo.requestOpenChange),{triggerAttributes:ao}=useModalAttributes(),lo=useEventCallback$3(fo=>{var po,ho;io==null||(po=(ho=io.props).onClick)===null||po===void 0||po.call(ho,fo),fo.isDefaultPrevented()||so({event:fo,type:"triggerClick",open:oo==="open"})}),uo={...io==null?void 0:io.props,ref:io==null?void 0:io.ref,onClick:lo,...ao},co=useARIAButtonProps((io==null?void 0:io.type)==="button"||(io==null?void 0:io.type)==="a"?io.type:"div",{...uo,type:"button"});return{children:applyTriggerPropsToChildren(ro,no?uo:co)}},renderDialogTrigger_unstable=eo=>eo.children,DialogTrigger=eo=>{const to=useDialogTrigger_unstable(eo);return renderDialogTrigger_unstable(to)};DialogTrigger.displayName="DialogTrigger";DialogTrigger.isFluentTriggerComponent=!0;const useDialogSurface_unstable=(eo,to)=>{const ro=useDialogContext_unstable(po=>po.modalType),no=useDialogContext_unstable(po=>po.isNestedDialog),oo=useDialogTransitionContext_unstable(),io=useDialogContext_unstable(po=>po.modalAttributes),so=useDialogContext_unstable(po=>po.dialogRef),ao=useDialogContext_unstable(po=>po.requestOpenChange),lo=useDialogContext_unstable(po=>po.dialogTitleId),uo=useEventCallback$3(po=>{if(isResolvedShorthand(eo.backdrop)){var ho,mo;(ho=(mo=eo.backdrop).onClick)===null||ho===void 0||ho.call(mo,po)}ro==="modal"&&!po.isDefaultPrevented()&&ao({event:po,open:!1,type:"backdropClick"})}),co=useEventCallback$3(po=>{var ho;(ho=eo.onKeyDown)===null||ho===void 0||ho.call(eo,po),po.key===Escape&&!po.isDefaultPrevented()&&(ao({event:po,open:!1,type:"escapeKeyDown"}),po.preventDefault())}),fo=optional(eo.backdrop,{renderByDefault:ro!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return fo&&(fo.onClick=uo),{components:{backdrop:"div",root:"div"},backdrop:fo,isNestedDialog:no,transitionStatus:oo,mountNode:eo.mountNode,root:always(getIntrinsicElementProps("div",{tabIndex:-1,"aria-modal":ro!=="non-modal",role:ro==="alert"?"alertdialog":"dialog","aria-labelledby":eo["aria-label"]?void 0:lo,...eo,...io,onKeyDown:co,ref:useMergedRefs$1(to,so)}),{elementType:"div"})}},renderDialogSurface_unstable=(eo,to)=>jsxs(Portal$1,{mountNode:eo.mountNode,children:[eo.backdrop&&jsx$1(eo.backdrop,{}),jsx$1(DialogSurfaceProvider,{value:to.dialogSurface,children:jsx$1(eo.root,{})})]}),dialogSurfaceClassNames={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},useRootBaseStyle=__resetStyles("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),useRootStyles=__styles({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useBackdropBaseStyle=__resetStyles("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),useBackdropStyles$1=__styles({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),useDialogSurfaceStyles_unstable=eo=>{const{isNestedDialog:to,root:ro,backdrop:no,transitionStatus:oo}=eo,io=useRootBaseStyle(),so=useRootStyles(),ao=useBackdropBaseStyle(),lo=useBackdropStyles$1();return ro.className=mergeClasses(dialogSurfaceClassNames.root,io,oo&&so.animated,oo&&so[oo],ro.className),no&&(no.className=mergeClasses(dialogSurfaceClassNames.backdrop,ao,to&&lo.nestedDialogBackdrop,oo&&lo[oo],no.className)),eo};function useDialogSurfaceContextValues_unstable(eo){return{dialogSurface:!0}}const DialogSurface=reactExports.forwardRef((eo,to)=>{const ro=useDialogSurface_unstable(eo,to),no=useDialogSurfaceContextValues_unstable();return useDialogSurfaceStyles_unstable(ro),useCustomStyleHook("useDialogSurfaceStyles_unstable")(ro),renderDialogSurface_unstable(ro,no)});DialogSurface.displayName="DialogSurface";const useCardSelectable=(eo,{referenceLabel:to,referenceId:ro},no)=>{const{checkbox:oo={},onSelectionChange:io,floatingAction:so,onClick:ao,onKeyDown:lo}=eo,{findAllFocusable:uo}=useFocusFinders(),co=reactExports.useRef(null),[fo,po]=useControllableState({state:eo.selected,defaultState:eo.defaultSelected,initialState:!1}),ho=[eo.selected,eo.defaultSelected,io].some(wo=>typeof wo<"u"),[mo,vo]=reactExports.useState(!1),bo=reactExports.useCallback(wo=>{if(!no.current)return!1;const Co=uo(no.current),Ro=wo.target,Ao=Co.some($o=>$o.contains(Ro)),Io=(co==null?void 0:co.current)===Ro;return Ao&&!Io},[no,uo]),xo=reactExports.useCallback(wo=>{if(bo(wo))return;const Co=!fo;po(Co),io&&io(wo,{selected:Co})},[io,fo,po,bo]),_o=reactExports.useCallback(wo=>{[Enter].includes(wo.key)&&(wo.preventDefault(),xo(wo))},[xo]),So=reactExports.useMemo(()=>{if(!ho||so)return;const wo={};return ro?wo["aria-labelledby"]=ro:to&&(wo["aria-label"]=to),optional(oo,{defaultProps:{ref:co,type:"checkbox",checked:fo,onChange:Co=>xo(Co),onFocus:()=>vo(!0),onBlur:()=>vo(!1),...wo},elementType:"input"})},[oo,so,fo,ho,xo,ro,to]),Eo=reactExports.useMemo(()=>{if(so)return optional(so,{defaultProps:{ref:co},elementType:"div"})},[so]),ko=reactExports.useMemo(()=>ho?{onClick:mergeCallbacks(ao,xo),onKeyDown:mergeCallbacks(lo,_o)}:null,[ho,xo,ao,lo,_o]);return{selected:fo,selectable:ho,selectFocused:mo,selectableCardProps:ko,checkboxSlot:So,floatingActionSlot:Eo}},cardContext=reactExports.createContext(void 0),cardContextDefaultValue={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},CardProvider=cardContext.Provider,useCardContext_unstable=()=>{var eo;return(eo=reactExports.useContext(cardContext))!==null&&eo!==void 0?eo:cardContextDefaultValue},focusMap={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},useCardInteractive=({focusMode:eo="off",...to})=>{const ro=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(io=>to[io]),oo={...useFocusableGroup({tabBehavior:focusMap[ro?"no-tab":eo]}),tabIndex:0};return{interactive:ro,focusAttributes:!ro&&eo==="off"?null:oo}},useCard_unstable=(eo,to)=>{const{appearance:ro="filled",orientation:no="vertical",size:oo="medium"}=eo,[io,so]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),[ao,lo]=reactExports.useState(cardContextDefaultValue.selectableA11yProps.referenceId),uo=useFocusWithin(),{selectable:co,selected:fo,selectableCardProps:po,selectFocused:ho,checkboxSlot:mo,floatingActionSlot:vo}=useCardSelectable(eo,{referenceId:io,referenceLabel:ao},uo),bo=useMergedRefs$1(uo,to),{interactive:xo,focusAttributes:_o}=useCardInteractive(eo);return{appearance:ro,orientation:no,size:oo,interactive:xo,selectable:co,selectFocused:ho,selected:fo,selectableA11yProps:{setReferenceId:so,referenceId:io,referenceLabel:ao,setReferenceLabel:lo},components:{root:"div",floatingAction:"div",checkbox:"input"},root:always(getIntrinsicElementProps("div",{ref:bo,role:"group",..._o,...eo,...po}),{elementType:"div"}),floatingAction:vo,checkbox:mo}},renderCard_unstable=(eo,to)=>jsx$1(eo.root,{children:jsxs(CardProvider,{value:to,children:[eo.checkbox?jsx$1(eo.checkbox,{}):null,eo.floatingAction?jsx$1(eo.floatingAction,{}):null,eo.root.children]})}),cardHeaderClassNames={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},useStyles$n=__styles({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),useCardHeaderStyles_unstable=eo=>{const to=useStyles$n();return eo.root.className=mergeClasses(cardHeaderClassNames.root,to.root,eo.root.className),eo.image&&(eo.image.className=mergeClasses(cardHeaderClassNames.image,to.image,eo.image.className)),eo.header&&(eo.header.className=mergeClasses(cardHeaderClassNames.header,to.header,eo.header.className)),eo.description&&(eo.description.className=mergeClasses(cardHeaderClassNames.description,to.description,eo.description.className)),eo.action&&(eo.action.className=mergeClasses(cardHeaderClassNames.action,to.action,eo.action.className)),eo},cardClassNames={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},useStyles$m=__styles({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),useCardStyles_unstable=eo=>{const to=useStyles$m(),ro={horizontal:to.orientationHorizontal,vertical:to.orientationVertical},no={small:to.sizeSmall,medium:to.sizeMedium,large:to.sizeLarge},oo={filled:to.filled,"filled-alternative":to.filledAlternative,outline:to.outline,subtle:to.subtle},io={filled:to.filledInteractiveSelected,"filled-alternative":to.filledAlternativeInteractiveSelected,outline:to.outlineInteractiveSelected,subtle:to.subtleInteractiveSelected},so={filled:to.filledInteractive,"filled-alternative":to.filledAlternativeInteractive,outline:to.outlineInteractive,subtle:to.subtleInteractive},ao=eo.interactive||eo.selectable,lo=reactExports.useMemo(()=>eo.selectable?eo.selectFocused?to.selectableFocused:"":to.focused,[eo.selectFocused,eo.selectable,to.focused,to.selectableFocused]);return eo.root.className=mergeClasses(cardClassNames.root,to.root,ro[eo.orientation],no[eo.size],oo[eo.appearance],ao&&so[eo.appearance],eo.selected&&io[eo.appearance],lo,ao&&to.highContrastInteractive,eo.selected&&to.highContrastSelected,eo.root.className),eo.floatingAction&&(eo.floatingAction.className=mergeClasses(cardClassNames.floatingAction,to.select,eo.floatingAction.className)),eo.checkbox&&(eo.checkbox.className=mergeClasses(cardClassNames.checkbox,to.hiddenCheckbox,eo.checkbox.className)),eo};function useCardContextValue({selectableA11yProps:eo}){return{selectableA11yProps:eo}}const Card=reactExports.forwardRef((eo,to)=>{const ro=useCard_unstable(eo,to),no=useCardContextValue(ro);return useCardStyles_unstable(ro),renderCard_unstable(ro,no)});Card.displayName="Card";function getChildWithId(eo){function to(ro){return reactExports.isValidElement(ro)&&!!ro.props.id}return reactExports.Children.toArray(eo).find(to)}function getReferenceId(eo,to,ro){return eo||(to!=null&&to.props.id?to.props.id:ro)}const useCardHeader_unstable=(eo,to)=>{const{image:ro,header:no,description:oo,action:io}=eo,{selectableA11yProps:{referenceId:so,setReferenceId:ao}}=useCardContext_unstable(),lo=reactExports.useRef(null),uo=reactExports.useRef(!1),co=useId$1(cardHeaderClassNames.header,so),fo=optional(no,{renderByDefault:!0,defaultProps:{ref:lo,id:uo.current?void 0:so},elementType:"div"});return reactExports.useEffect(()=>{var po;const ho=uo.current||(po=lo.current)===null||po===void 0?void 0:po.id,mo=getChildWithId(fo==null?void 0:fo.children);uo.current=!!mo,ao(getReferenceId(ho,mo,co))},[co,no,fo,ao]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:always(getIntrinsicElementProps("div",{ref:to,...eo}),{elementType:"div"}),image:optional(ro,{elementType:"div"}),header:fo,description:optional(oo,{elementType:"div"}),action:optional(io,{elementType:"div"})}},renderCardHeader_unstable=eo=>jsxs(eo.root,{children:[eo.image&&jsx$1(eo.image,{}),jsx$1(eo.header,{}),eo.description&&jsx$1(eo.description,{}),eo.action&&jsx$1(eo.action,{})]}),CardHeader=reactExports.forwardRef((eo,to)=>{const ro=useCardHeader_unstable(eo,to);return useCardHeaderStyles_unstable(ro),renderCardHeader_unstable(ro)});CardHeader.displayName="CardHeader";function getIntentIcon(eo){switch(eo){case"info":return reactExports.createElement(InfoFilled,null);case"warning":return reactExports.createElement(WarningFilled,null);case"error":return reactExports.createElement(ErrorCircleFilled,null);case"success":return reactExports.createElement(CheckmarkCircleFilled,null);default:return null}}function useMessageBarReflow(eo=!1){const{targetDocument:to}=useFluent(),ro=reactExports.useReducer(()=>({}),{})[1],no=reactExports.useRef(!1),oo=reactExports.useRef(null),io=reactExports.useRef(-1),so=reactExports.useCallback(lo=>{const uo=lo[0],co=uo==null?void 0:uo.borderBoxSize[0];if(!co||!uo)return;const{inlineSize:fo}=co,{target:po}=uo;if(!isHTMLElement$6(po))return;let ho;if(no.current)io.current{var uo;if(!eo||!lo||!(to!=null&&to.defaultView))return;(uo=oo.current)===null||uo===void 0||uo.disconnect();const co=to.defaultView,fo=new co.ResizeObserver(so);oo.current=fo,fo.observe(lo,{box:"border-box"})},[to,so,eo]);return reactExports.useEffect(()=>()=>{var lo;(lo=oo.current)===null||lo===void 0||lo.disconnect()},[]),{ref:ao,reflowing:no.current}}const messageBarTransitionContext=reactExports.createContext(void 0),messageBarTransitionContextDefaultValue={className:"",nodeRef:reactExports.createRef()};messageBarTransitionContext.Provider;const useMessageBarTransitionContext=()=>{var eo;return(eo=reactExports.useContext(messageBarTransitionContext))!==null&&eo!==void 0?eo:messageBarTransitionContextDefaultValue},useMessageBar_unstable=(eo,to)=>{const{layout:ro="auto",intent:no="info",politeness:oo,shape:io="rounded"}=eo,so=oo??no==="info"?"polite":"assertive",ao=ro==="auto",{ref:lo,reflowing:uo}=useMessageBarReflow(ao),co=ao?uo?"multiline":"singleline":ro,{className:fo,nodeRef:po}=useMessageBarTransitionContext(),ho=reactExports.useRef(null),mo=reactExports.useRef(null),{announce:vo}=useAnnounce(),bo=useId$1();return reactExports.useEffect(()=>{var xo,_o;const So=(xo=mo.current)===null||xo===void 0?void 0:xo.textContent,Eo=(_o=ho.current)===null||_o===void 0?void 0:_o.textContent,ko=[So,Eo].filter(Boolean).join(",");vo(ko,{polite:so==="polite",alert:so==="assertive"})},[mo,ho,vo,so]),{components:{root:"div",icon:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,lo,po),role:"group","aria-labelledby":bo,...eo}),{elementType:"div"}),icon:optional(eo.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:getIntentIcon(no)}}),layout:co,intent:no,transitionClassName:fo,actionsRef:ho,bodyRef:mo,titleId:bo,shape:io}},messageBarContext=reactExports.createContext(void 0),messageBarContextDefaultValue={titleId:"",layout:"singleline",actionsRef:reactExports.createRef(),bodyRef:reactExports.createRef()},MessageBarContextProvider=messageBarContext.Provider,useMessageBarContext=()=>{var eo;return(eo=reactExports.useContext(messageBarContext))!==null&&eo!==void 0?eo:messageBarContextDefaultValue},renderMessageBar_unstable=(eo,to)=>jsx$1(MessageBarContextProvider,{value:to.messageBar,children:jsxs(eo.root,{children:[eo.icon&&jsx$1(eo.icon,{}),eo.root.children]})}),messageBarClassNames={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},useRootBaseStyles$2=__resetStyles("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),useIconBaseStyles=__resetStyles("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),useStyles$l=__styles({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),useIconIntentStyles=__styles({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),useRootIntentStyles=__styles({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),useMessageBarStyles_unstable=eo=>{const to=useRootBaseStyles$2(),ro=useIconBaseStyles(),no=useIconIntentStyles(),oo=useRootIntentStyles(),io=useStyles$l();return eo.root.className=mergeClasses(messageBarClassNames.root,to,eo.layout==="multiline"&&io.rootMultiline,eo.shape==="square"&&io.square,oo[eo.intent],eo.transitionClassName,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(messageBarClassNames.icon,ro,no[eo.intent],eo.icon.className)),eo};function useMessageBarContextValue_unstable(eo){const{layout:to,actionsRef:ro,bodyRef:no,titleId:oo}=eo;return{messageBar:reactExports.useMemo(()=>({layout:to,actionsRef:ro,bodyRef:no,titleId:oo}),[to,ro,no,oo])}}const MessageBar=reactExports.forwardRef((eo,to)=>{const ro=useMessageBar_unstable(eo,to);return useMessageBarStyles_unstable(ro),useCustomStyleHook("useMessageBarStyles_unstable")(ro),renderMessageBar_unstable(ro,useMessageBarContextValue_unstable(ro))});MessageBar.displayName="MessageBar";const useMessageBarTitle_unstable=(eo,to)=>{const{titleId:ro}=useMessageBarContext();return{components:{root:"span"},root:always(getIntrinsicElementProps("span",{ref:to,id:ro,...eo}),{elementType:"span"})}},renderMessageBarTitle_unstable=eo=>jsx$1(eo.root,{}),messageBarTitleClassNames={root:"fui-MessageBarTitle"},useRootBaseStyles$1=__resetStyles("r168xkm9",null,[".r168xkm9{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);}",'.r168xkm9::after{content:" ";}']),useMessageBarTitleStyles_unstable=eo=>{const to=useRootBaseStyles$1();return eo.root.className=mergeClasses(messageBarTitleClassNames.root,to,eo.root.className),eo},MessageBarTitle=reactExports.forwardRef((eo,to)=>{const ro=useMessageBarTitle_unstable(eo,to);return useMessageBarTitleStyles_unstable(ro),useCustomStyleHook("useMessageBarTitleStyles_unstable")(ro),renderMessageBarTitle_unstable(ro)});MessageBarTitle.displayName="MessageBarTitle";const useMessageBarBody_unstable=(eo,to)=>{const{bodyRef:ro}=useMessageBarContext();return{components:{root:"div"},root:always(getIntrinsicElementProps("div",{ref:useMergedRefs$1(to,ro),...eo}),{elementType:"div"})}},renderMessageBarBody_unstable=eo=>jsx$1(eo.root,{}),messageBarBodyClassNames={root:"fui-MessageBarBody"},useRootBaseStyles=__resetStyles("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),useMessageBarBodyStyles_unstable=eo=>{const to=useRootBaseStyles();return eo.root.className=mergeClasses(messageBarBodyClassNames.root,to,eo.root.className),eo},MessageBarBody=reactExports.forwardRef((eo,to)=>{const ro=useMessageBarBody_unstable(eo,to);return useMessageBarBodyStyles_unstable(ro),useCustomStyleHook("useMessageBarBodyStyles_unstable")(ro),renderMessageBarBody_unstable(ro)});MessageBarBody.displayName="MessageBarBody";const useReducedMotion=()=>{var eo;const to=useFluent(),ro=reactExports.useRef(!1),no=canUseDOM$3()&&((eo=to.targetDocument)===null||eo===void 0?void 0:eo.defaultView),oo=reactExports.useCallback(io=>{ro.current=io.matches},[]);return useIsomorphicLayoutEffect$1(()=>{if(!no||!no.matchMedia)return;const io=no.matchMedia("screen and (prefers-reduced-motion: reduce)");return io.matches&&(ro.current=!0),io.addEventListener("change",oo),()=>io.removeEventListener("change",oo)},[oo,no]),ro.current},getCSSStyle=eo=>hasCSSOMSupport(eo)?eo.computedStyleMap():getElementComputedStyle(eo),hasCSSOMSupport=eo=>!!(typeof CSS<"u"&&CSS.number&&eo.computedStyleMap),getElementComputedStyle=eo=>{var to,ro;const no=canUseDOM$3()&&((ro=(to=eo.ownerDocument)===null||to===void 0?void 0:to.defaultView)!==null&&ro!==void 0?ro:window);return no?no.getComputedStyle(eo,null):{getPropertyValue:oo=>""}};function toMs(eo){const to=eo.trim();if(to.includes("auto"))return 0;if(to.endsWith("ms")){const ro=Number(to.replace("ms",""));return isNaN(ro)?0:ro}return Number(to.slice(0,-1).replace(",","."))*1e3}const getComputedMapProp=(eo,to)=>{const ro=eo.getAll(to);return ro.length>0?ro.map(({value:no,unit:oo})=>`${no}${oo}`):["0"]},getComputedStyleProp=(eo,to)=>{const ro=eo.getPropertyValue(to);return ro?ro.split(","):["0"]},getMaxCSSDuration=(eo,to)=>{const ro=Math.max(eo.length,to.length),no=[];if(ro===0)return 0;for(let oo=0;oo{const to=hasCSSOMSupport(eo),ro=getCSSStyle(eo),no=so=>to?getComputedMapProp(ro,so):getComputedStyleProp(ro,so),oo=getMaxCSSDuration(no("transition-duration"),no("transition-delay")),io=getMaxCSSDuration(no("animation-duration"),no("animation-delay"));return Math.max(oo,io)},useFirstMountCondition=eo=>{const to=reactExports.useRef(!0);return to.current&&eo?(to.current=!1,!0):to.current};function useMotionPresence(eo,to={}){const{animateOnFirstMount:ro,duration:no}={animateOnFirstMount:!1,...to},[oo,io]=reactExports.useState(eo&&ro?"entering":eo?"idle":"unmounted"),[so,ao]=reactExports.useState(!ro&&eo),[lo,uo]=useTimeout(),[co,fo]=useTimeout(),[po,ho]=useAnimationFrame(),[mo,vo]=reactExports.useState(null),bo=useReducedMotion(),xo=useFirstMount(),_o=useFirstMountCondition(!!mo),So=reactExports.useRef(eo).current,Eo=bo||_o&&So&&!ro,ko=reactExports.useCallback(Ro=>{Ro&&vo(Ro)},[]),wo=reactExports.useCallback(Ro=>(co(()=>po(Ro),0),()=>{fo(),ho()}),[ho,fo,po,co]),Co=reactExports.useCallback(()=>{io(eo?"entered":"exited"),wo(()=>io(eo?"idle":"unmounted"))},[wo,eo]);return reactExports.useEffect(()=>{if(!xo){if(Eo){io(eo?"idle":"unmounted"),ao(eo);return}if(io(eo?"entering":"exiting"),!!mo)return wo(()=>{ao(eo),wo(()=>{const Ro=no||getMotionDuration(mo);if(Ro===0){Co();return}lo(()=>Co(),Ro)})}),()=>uo()}},[mo,Eo,Co,eo]),reactExports.useMemo(()=>({ref:ko,type:oo,active:so,canRender:eo||oo!=="unmounted"}),[so,oo,eo])}function useMotion(eo,to){const ro=typeof eo=="object",no=useMotionPresence(ro?!1:eo,to);return ro?eo:no}const useReducedMotionStyles=__styles({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});function assertMotionStyles(eo){}const useMotionClassNames=(eo,to)=>{const{reduced:ro}=useReducedMotionStyles(),no=reactExports.useMemo(()=>!to.enter&&!to.exit?"":eo.active||eo.type==="idle"?to.enter:eo.active?"":to.exit,[eo.active,eo.type,to.enter,to.exit]);return reactExports.useEffect(()=>void 0,[to]),mergeClasses(to.default,no,to[eo.type],ro)};function useDrawerDefaultProps(eo){const{open:to=!1,size:ro="small",position:no="start"}=eo;return{size:ro,position:no,open:to}}const useBackdropResetStyles=__resetStyles("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),useBackdropStyles=__styles({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),useOverlayDrawerSurfaceStyles_unstable=eo=>{const to=useBackdropResetStyles(),ro=useBackdropStyles();return eo.backdrop&&(eo.backdrop.className=mergeClasses(to,eo.isNestedDialog&&ro.nested,eo.backdrop.className)),eo},OverlayDrawerSurface=reactExports.forwardRef((eo,to)=>{const ro=useDialogSurface_unstable(eo,to),no=useDialogSurfaceContextValues_unstable();return useOverlayDrawerSurfaceStyles_unstable(ro),renderDialogSurface_unstable(ro,no)});OverlayDrawerSurface.displayName="OverlayDrawerSurface";const useOverlayDrawer_unstable=(eo,to)=>{const{open:ro,size:no,position:oo}=useDrawerDefaultProps(eo),{modalType:io="modal",inertTrapFocus:so,defaultOpen:ao=!1,onOpenChange:lo}=eo,uo=useMotion(ro),co=resolveShorthand(eo.backdrop),po=always({...eo,backdrop:io!=="non-modal"&&co!==null?{...co}:null},{elementType:OverlayDrawerSurface,defaultProps:{ref:useMergedRefs$1(to,uo.ref)}}),ho=always({open:!0,defaultOpen:ao,onOpenChange:lo,inertTrapFocus:so,modalType:io,children:null},{elementType:Dialog});return{components:{root:OverlayDrawerSurface,dialog:Dialog},root:po,dialog:ho,size:no,position:oo,motion:uo}},renderOverlayDrawer_unstable=eo=>eo.motion.canRender?jsx$1(eo.dialog,{children:jsx$1(eo.root,{})}):null,useDrawerStyles=__styles({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fsdmzs6{--fui-Drawer--size:100vw;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),useDrawerDurationStyles=__styles({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),useDrawerBaseClassNames=({position:eo,size:to,motion:ro})=>{const no=useDrawerStyles(),oo=useDrawerDurationStyles();return mergeClasses(no[eo],oo[to],no[to],no.reducedMotion,ro.type==="entering"&&no.entering,ro.type==="exiting"&&no.exiting)},overlayDrawerClassNames={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},useDrawerResetStyles=__resetStyles("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),useDrawerRootStyles=__styles({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}"]}),useDrawerMotionStyles=__styles({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),useBackdropMotionStyles=__styles({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),useOverlayDrawerStyles_unstable=eo=>{const to=useDrawerBaseClassNames(eo),ro=useDrawerResetStyles(),no=useDrawerRootStyles(),oo=useDrawerDurationStyles(),io=useMotionClassNames(eo.motion,useDrawerMotionStyles()),so=useMotionClassNames(eo.motion,useBackdropMotionStyles()),ao=eo.root.backdrop;return eo.root.className=mergeClasses(overlayDrawerClassNames.root,to,ro,no[eo.position],io,eo.root.className),ao&&(ao.className=mergeClasses(overlayDrawerClassNames.backdrop,so,oo[eo.size],ao.className)),eo},OverlayDrawer=reactExports.forwardRef((eo,to)=>{const ro=useOverlayDrawer_unstable(eo,to);return useOverlayDrawerStyles_unstable(ro),useCustomStyleHook("useDrawerOverlayStyles_unstable")(ro),useCustomStyleHook("useOverlayDrawerStyles_unstable")(ro),renderOverlayDrawer_unstable(ro)});OverlayDrawer.displayName="OverlayDrawer";const useBreadcrumb_unstable=(eo,to)=>{const{focusMode:ro="tab",size:no="medium",list:oo,...io}=eo,so=useArrowNavigationGroup({circular:!0,axis:"horizontal",memorizeCurrent:!0});var ao;return{components:{root:"nav",list:"ol"},root:always(getIntrinsicElementProps("nav",{ref:to,"aria-label":(ao=eo["aria-label"])!==null&&ao!==void 0?ao:"breadcrumb",...ro==="arrow"?so:{},...io}),{elementType:"nav"}),list:optional(oo,{renderByDefault:!0,defaultProps:{role:"list"},elementType:"ol"}),size:no}},BreadcrumbContext=reactExports.createContext(void 0),breadcrumbDefaultValue={size:"medium"},BreadcrumbProvider=BreadcrumbContext.Provider,useBreadcrumbContext_unstable=()=>{var eo;return(eo=reactExports.useContext(BreadcrumbContext))!==null&&eo!==void 0?eo:breadcrumbDefaultValue},renderBreadcrumb_unstable=(eo,to)=>jsx$1(eo.root,{children:jsx$1(BreadcrumbProvider,{value:to,children:eo.list&&jsx$1(eo.list,{children:eo.root.children})})}),breadcrumbClassNames={root:"fui-Breadcrumb",list:"fui-Breadcrumb__list"},useListClassName=__resetStyles("rc5rb6b",null,[".rc5rb6b{list-style-type:none;display:flex;align-items:center;margin:0;padding:0;}"]),useBreadcrumbStyles_unstable=eo=>{const to=useListClassName();return eo.root.className=mergeClasses(breadcrumbClassNames.root,eo.root.className),eo.list&&(eo.list.className=mergeClasses(to,breadcrumbClassNames.list,eo.list.className)),eo};function useBreadcrumbContextValues_unstable(eo){const{size:to}=eo;return reactExports.useMemo(()=>({size:to}),[to])}const Breadcrumb=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumb_unstable(eo,to),no=useBreadcrumbContextValues_unstable(ro);return useBreadcrumbStyles_unstable(ro),useCustomStyleHook("useBreadcrumbStyles_unstable")(ro),renderBreadcrumb_unstable(ro,no)});Breadcrumb.displayName="Breadcrumb";const useBreadcrumbDivider_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable(),{dir:no}=useFluent(),oo=getDividerIcon(ro,no);return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,"aria-hidden":!0,children:oo,...eo}),{elementType:"li"})}},dividerIcons={rtl:{small:reactExports.createElement(ChevronLeft12Regular,null),medium:reactExports.createElement(ChevronLeft16Regular,null),large:reactExports.createElement(ChevronLeft20Regular,null)},ltr:{small:reactExports.createElement(ChevronRight12Regular,null),medium:reactExports.createElement(ChevronRight16Regular,null),large:reactExports.createElement(ChevronRight20Regular,null)}};function getDividerIcon(eo="medium",to){const ro=to==="rtl"?dividerIcons.rtl:dividerIcons.ltr;return eo==="small"?ro.small:eo==="large"?ro.large:ro.medium}const renderBreadcrumbDivider_unstable=eo=>jsx$1(eo.root,{}),breadcrumbDividerClassNames={root:"fui-BreadcrumbDivider"},useStyles$k=__styles({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),useBreadcrumbDividerStyles_unstable=eo=>{const to=useStyles$k();return eo.root.className=mergeClasses(breadcrumbDividerClassNames.root,to.root,eo.root.className),eo},BreadcrumbDivider=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbDivider_unstable(eo,to);return useBreadcrumbDividerStyles_unstable(ro),useCustomStyleHook("useBreadcrumbDividerStyles_unstable")(ro),renderBreadcrumbDivider_unstable(ro)});BreadcrumbDivider.displayName="BreadcrumbDivider";const useBreadcrumbItem_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable();return{components:{root:"li"},root:always(getIntrinsicElementProps("li",{ref:to,...eo}),{elementType:"li"}),size:ro}},renderBreadcrumbItem_unstable=eo=>jsx$1(eo.root,{children:eo.root.children}),breadcrumbItemClassNames={root:"fui-BreadcrumbItem"},useBreadcrumbItemResetStyles=__resetStyles("r1tl60rs",null,[".r1tl60rs{display:flex;align-items:center;color:var(--colorNeutralForeground2);box-sizing:border-box;text-wrap:nowrap;}"]),useBreadcrumbItemStyles_unstable=eo=>{const to=useBreadcrumbItemResetStyles();return eo.root.className=mergeClasses(breadcrumbItemClassNames.root,to,eo.root.className),eo},BreadcrumbItem=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbItem_unstable(eo,to);return useBreadcrumbItemStyles_unstable(ro),useCustomStyleHook("useBreadcrumbItemStyles_unstable")(ro),renderBreadcrumbItem_unstable(ro)});BreadcrumbItem.displayName="BreadcrumbItem";const useBreadcrumbButton_unstable=(eo,to)=>{const{size:ro}=useBreadcrumbContext_unstable(),{current:no=!1,as:oo,...io}=eo,so=oo??eo.href?"a":"button";var ao,lo;return{...useButton_unstable({appearance:"subtle",role:void 0,type:void 0,as:so,iconPosition:"before","aria-current":no?(ao=eo["aria-current"])!==null&&ao!==void 0?ao:"page":void 0,"aria-disabled":no?(lo=eo["aria-disabled"])!==null&&lo!==void 0?lo:!0:void 0,...io},to),current:no,size:ro}},renderBreadcrumbButton_unstable=eo=>renderButton_unstable(eo),breadcrumbButtonClassNames={root:"fui-BreadcrumbButton",icon:"fui-BreadcrumbButton__icon"},useIconStyles=__styles({base:{Be2twd7:"fsj74e5",Bqenvij:"f1qfv4wv",Bg96gwp:"f15xapk4",a9b677:"f17j33op",t21cq0:["fm0x6gh","fbyavb5"]},small:{u3h8gg:"f1qfi7kw",Biu6dll:"f1876atl"},medium:{u3h8gg:"f1h9446d",Biu6dll:"f10xfswh"},large:{u3h8gg:"f5hcofs",Biu6dll:"f1a6v6zl"}},{d:[".fsj74e5{font-size:var(--fui-Breadcrumb--icon-size);}",".f1qfv4wv{height:var(--fui-Breadcrumb--icon-size);}",".f15xapk4{line-height:var(--fui-Breadcrumb--icon-line-height);}",".f17j33op{width:var(--fui-Breadcrumb--icon-size);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".f1qfi7kw{--fui-Breadcrumb--icon-size:12px;}",".f1876atl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase200);}",".f1h9446d{--fui-Breadcrumb--icon-size:16px;}",".f10xfswh{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase400);}",".f5hcofs{--fui-Breadcrumb--icon-size:20px;}",".f1a6v6zl{--fui-Breadcrumb--icon-line-height:var(--lineHeightBase600);}"]}),useStyles$j=__styles({root:{Bf4jedk:"f18p0k4z",j4b8c3:"fv6wr3j",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},small:{Bqenvij:"frvgh55",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},medium:{Bqenvij:"f1d2rq10",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f16k8034",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1angvds",uwmqm3:["fk8j09s","fdw0yi8"]},large:{Bqenvij:"fbhnoac",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f17mpqex",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"fdvome7",uwmqm3:["f1f5gg8d","f1vdfbxk"]},current:{Jwef8y:"f9ql6rf",Bi91k9c:"f3p8bqa",eoavqd:"f14w7a5u",Bbdnnc7:"f1irjp3o",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",iro3zm:"f3h1zc4",B2d53fq:"f1xkgyln",c3iz72:"f17wbbfx",x3br3k:"fofxw0a",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",Bszkowt:"ff24m",Dyrjrp:"ft5r8e9",ezr58z:"f1cbpfqp",nhk3du:"f1motppv",Bfrek18:"fi9vkhg",G209fr:"f1fg3nnv"},currentSmall:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm"},currentMedium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},currentLarge:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f18p0k4z{min-width:unset;}",".fv6wr3j{text-wrap:nowrap;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".frvgh55{height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f16k8034{padding-top:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1angvds{padding-bottom:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fbhnoac{height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f17mpqex{padding-top:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdvome7{padding-bottom:var(--spacingHorizontalS);}",".ff24m:disabled{background-color:var(--colorTransparentBackground);}",".ft5r8e9:disabled{color:var(--colorNeutralForeground2);}",".f1cbpfqp:disabled{cursor:auto;}",".f1motppv:disabled .fui-Button__icon{color:unset;}",".fi9vkhg:disabled .fui-Icon-filled{display:none;}",".f1fg3nnv:disabled .fui-Icon-regular{display:inline;}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".f14w7a5u:hover{cursor:auto;}",".f1irjp3o:hover .fui-Button__icon{color:unset;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1xkgyln:hover:active{color:var(--colorNeutralForeground2);}",".f17wbbfx:hover:active{cursor:auto;}",".fofxw0a:hover:active .fui-Button__icon{color:unset;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}"]}),useBreadcrumbButtonStyles_unstable=eo=>{const to=useStyles$j(),ro=useIconStyles(),no={small:to.currentSmall,medium:to.currentMedium,large:to.currentLarge};return eo.root.className=mergeClasses(breadcrumbButtonClassNames.root,to[eo.size],to.root,eo.current&&no[eo.size],eo.current&&to.current,eo.root.className),eo.icon&&(eo.icon.className=mergeClasses(ro.base,ro[eo.size],eo.icon.className)),useButtonStyles_unstable(eo),eo},BreadcrumbButton=reactExports.forwardRef((eo,to)=>{const ro=useBreadcrumbButton_unstable(eo,to);return useBreadcrumbButtonStyles_unstable(ro),useCustomStyleHook("useBreadcrumbButtonStyles_unstable")(ro),renderBreadcrumbButton_unstable(ro)});BreadcrumbButton.displayName="BreadcrumbButton";var axios$1={exports:{}},bind$2=function(to,ro){return function(){for(var oo=new Array(arguments.length),io=0;io"u"}function isBuffer$4(eo){return eo!==null&&!isUndefined(eo)&&eo.constructor!==null&&!isUndefined(eo.constructor)&&typeof eo.constructor.isBuffer=="function"&&eo.constructor.isBuffer(eo)}function isArrayBuffer(eo){return toString$3.call(eo)==="[object ArrayBuffer]"}function isFormData(eo){return typeof FormData<"u"&&eo instanceof FormData}function isArrayBufferView(eo){var to;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?to=ArrayBuffer.isView(eo):to=eo&&eo.buffer&&eo.buffer instanceof ArrayBuffer,to}function isString$1(eo){return typeof eo=="string"}function isNumber$1(eo){return typeof eo=="number"}function isObject$g(eo){return eo!==null&&typeof eo=="object"}function isPlainObject$2(eo){if(toString$3.call(eo)!=="[object Object]")return!1;var to=Object.getPrototypeOf(eo);return to===null||to===Object.prototype}function isDate(eo){return toString$3.call(eo)==="[object Date]"}function isFile(eo){return toString$3.call(eo)==="[object File]"}function isBlob(eo){return toString$3.call(eo)==="[object Blob]"}function isFunction$6(eo){return toString$3.call(eo)==="[object Function]"}function isStream(eo){return isObject$g(eo)&&isFunction$6(eo.pipe)}function isURLSearchParams(eo){return typeof URLSearchParams<"u"&&eo instanceof URLSearchParams}function trim$1(eo){return eo.trim?eo.trim():eo.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(eo,to){if(!(eo===null||typeof eo>"u"))if(typeof eo!="object"&&(eo=[eo]),isArray$f(eo))for(var ro=0,no=eo.length;ro"u"||(utils$8.isArray(lo)?uo=uo+"[]":lo=[lo],utils$8.forEach(lo,function(fo){utils$8.isDate(fo)?fo=fo.toISOString():utils$8.isObject(fo)&&(fo=JSON.stringify(fo)),io.push(encode$1(uo)+"="+encode$1(fo))}))}),oo=io.join("&")}if(oo){var so=to.indexOf("#");so!==-1&&(to=to.slice(0,so)),to+=(to.indexOf("?")===-1?"?":"&")+oo}return to},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(to,ro,no){return this.handlers.push({fulfilled:to,rejected:ro,synchronous:no?no.synchronous:!1,runWhen:no?no.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(to){this.handlers[to]&&(this.handlers[to]=null)};InterceptorManager$1.prototype.forEach=function(to){utils$7.forEach(this.handlers,function(no){no!==null&&to(no)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,normalizeHeaderName$1=function(to,ro){utils$6.forEach(to,function(oo,io){io!==ro&&io.toUpperCase()===ro.toUpperCase()&&(to[ro]=oo,delete to[io])})},enhanceError$1=function(to,ro,no,oo,io){return to.config=ro,no&&(to.code=no),to.request=oo,to.response=io,to.isAxiosError=!0,to.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},to},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var eo=enhanceError$1;return createError=function(ro,no,oo,io,so){var ao=new Error(ro);return eo(ao,no,oo,io,so)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var eo=requireCreateError();return settle=function(ro,no,oo){var io=oo.config.validateStatus;!oo.status||!io||io(oo.status)?ro(oo):no(eo("Request failed with status code "+oo.status,oo.config,null,oo.request,oo))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var eo=utils$9;return cookies=eo.isStandardBrowserEnv()?function(){return{write:function(no,oo,io,so,ao,lo){var uo=[];uo.push(no+"="+encodeURIComponent(oo)),eo.isNumber(io)&&uo.push("expires="+new Date(io).toGMTString()),eo.isString(so)&&uo.push("path="+so),eo.isString(ao)&&uo.push("domain="+ao),lo===!0&&uo.push("secure"),document.cookie=uo.join("; ")},read:function(no){var oo=document.cookie.match(new RegExp("(^|;\\s*)("+no+")=([^;]*)"));return oo?decodeURIComponent(oo[3]):null},remove:function(no){this.write(no,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(to){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(to)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(to,ro){return ro?to.replace(/\/+$/,"")+"/"+ro.replace(/^\/+/,""):to}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var eo=requireIsAbsoluteURL(),to=requireCombineURLs();return buildFullPath=function(no,oo){return no&&!eo(oo)?to(no,oo):oo},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var eo=utils$9,to=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(no){var oo={},io,so,ao;return no&&eo.forEach(no.split(` +`),function(uo){if(ao=uo.indexOf(":"),io=eo.trim(uo.substr(0,ao)).toLowerCase(),so=eo.trim(uo.substr(ao+1)),io){if(oo[io]&&to.indexOf(io)>=0)return;io==="set-cookie"?oo[io]=(oo[io]?oo[io]:[]).concat([so]):oo[io]=oo[io]?oo[io]+", "+so:so}}),oo},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var eo=utils$9;return isURLSameOrigin=eo.isStandardBrowserEnv()?function(){var ro=/(msie|trident)/i.test(navigator.userAgent),no=document.createElement("a"),oo;function io(so){var ao=so;return ro&&(no.setAttribute("href",ao),ao=no.href),no.setAttribute("href",ao),{href:no.href,protocol:no.protocol?no.protocol.replace(/:$/,""):"",host:no.host,search:no.search?no.search.replace(/^\?/,""):"",hash:no.hash?no.hash.replace(/^#/,""):"",hostname:no.hostname,port:no.port,pathname:no.pathname.charAt(0)==="/"?no.pathname:"/"+no.pathname}}return oo=io(window.location.href),function(ao){var lo=eo.isString(ao)?io(ao):ao;return lo.protocol===oo.protocol&&lo.host===oo.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var eo=utils$9,to=requireSettle(),ro=requireCookies(),no=buildURL$1,oo=requireBuildFullPath(),io=requireParseHeaders(),so=requireIsURLSameOrigin(),ao=requireCreateError();return xhr=function(uo){return new Promise(function(fo,po){var ho=uo.data,mo=uo.headers,vo=uo.responseType;eo.isFormData(ho)&&delete mo["Content-Type"];var bo=new XMLHttpRequest;if(uo.auth){var xo=uo.auth.username||"",_o=uo.auth.password?unescape(encodeURIComponent(uo.auth.password)):"";mo.Authorization="Basic "+btoa(xo+":"+_o)}var So=oo(uo.baseURL,uo.url);bo.open(uo.method.toUpperCase(),no(So,uo.params,uo.paramsSerializer),!0),bo.timeout=uo.timeout;function Eo(){if(bo){var wo="getAllResponseHeaders"in bo?io(bo.getAllResponseHeaders()):null,Co=!vo||vo==="text"||vo==="json"?bo.responseText:bo.response,Ro={data:Co,status:bo.status,statusText:bo.statusText,headers:wo,config:uo,request:bo};to(fo,po,Ro),bo=null}}if("onloadend"in bo?bo.onloadend=Eo:bo.onreadystatechange=function(){!bo||bo.readyState!==4||bo.status===0&&!(bo.responseURL&&bo.responseURL.indexOf("file:")===0)||setTimeout(Eo)},bo.onabort=function(){bo&&(po(ao("Request aborted",uo,"ECONNABORTED",bo)),bo=null)},bo.onerror=function(){po(ao("Network Error",uo,null,bo)),bo=null},bo.ontimeout=function(){var Co="timeout of "+uo.timeout+"ms exceeded";uo.timeoutErrorMessage&&(Co=uo.timeoutErrorMessage),po(ao(Co,uo,uo.transitional&&uo.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",bo)),bo=null},eo.isStandardBrowserEnv()){var ko=(uo.withCredentials||so(So))&&uo.xsrfCookieName?ro.read(uo.xsrfCookieName):void 0;ko&&(mo[uo.xsrfHeaderName]=ko)}"setRequestHeader"in bo&&eo.forEach(mo,function(Co,Ro){typeof ho>"u"&&Ro.toLowerCase()==="content-type"?delete mo[Ro]:bo.setRequestHeader(Ro,Co)}),eo.isUndefined(uo.withCredentials)||(bo.withCredentials=!!uo.withCredentials),vo&&vo!=="json"&&(bo.responseType=uo.responseType),typeof uo.onDownloadProgress=="function"&&bo.addEventListener("progress",uo.onDownloadProgress),typeof uo.onUploadProgress=="function"&&bo.upload&&bo.upload.addEventListener("progress",uo.onUploadProgress),uo.cancelToken&&uo.cancelToken.promise.then(function(Co){bo&&(bo.abort(),po(Co),bo=null)}),ho||(ho=null),bo.send(ho)})},xhr}var utils$5=utils$9,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(eo,to){!utils$5.isUndefined(eo)&&utils$5.isUndefined(eo["Content-Type"])&&(eo["Content-Type"]=to)}function getDefaultAdapter(){var eo;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(eo=requireXhr()),eo}function stringifySafely(eo,to,ro){if(utils$5.isString(eo))try{return(to||JSON.parse)(eo),utils$5.trim(eo)}catch(no){if(no.name!=="SyntaxError")throw no}return(ro||JSON.stringify)(eo)}var defaults$3={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(to,ro){return normalizeHeaderName(ro,"Accept"),normalizeHeaderName(ro,"Content-Type"),utils$5.isFormData(to)||utils$5.isArrayBuffer(to)||utils$5.isBuffer(to)||utils$5.isStream(to)||utils$5.isFile(to)||utils$5.isBlob(to)?to:utils$5.isArrayBufferView(to)?to.buffer:utils$5.isURLSearchParams(to)?(setContentTypeIfUnset(ro,"application/x-www-form-urlencoded;charset=utf-8"),to.toString()):utils$5.isObject(to)||ro&&ro["Content-Type"]==="application/json"?(setContentTypeIfUnset(ro,"application/json"),stringifySafely(to)):to}],transformResponse:[function(to){var ro=this.transitional,no=ro&&ro.silentJSONParsing,oo=ro&&ro.forcedJSONParsing,io=!no&&this.responseType==="json";if(io||oo&&utils$5.isString(to)&&to.length)try{return JSON.parse(to)}catch(so){if(io)throw so.name==="SyntaxError"?enhanceError(so,this,"E_JSON_PARSE"):so}return to}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(to){return to>=200&&to<300}};defaults$3.headers={common:{Accept:"application/json, text/plain, */*"}};utils$5.forEach(["delete","get","head"],function(to){defaults$3.headers[to]={}});utils$5.forEach(["post","put","patch"],function(to){defaults$3.headers[to]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1$1=defaults$3,utils$4=utils$9,defaults$2=defaults_1$1,transformData$1=function(to,ro,no){var oo=this||defaults$2;return utils$4.forEach(no,function(so){to=so.call(oo,to,ro)}),to},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(to){return!!(to&&to.__CANCEL__)}),isCancel$1}var utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=defaults_1$1;function throwIfCancellationRequested(eo){eo.cancelToken&&eo.cancelToken.throwIfRequested()}var dispatchRequest$1=function(to){throwIfCancellationRequested(to),to.headers=to.headers||{},to.data=transformData.call(to,to.data,to.headers,to.transformRequest),to.headers=utils$3.merge(to.headers.common||{},to.headers[to.method]||{},to.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(oo){delete to.headers[oo]});var ro=to.adapter||defaults$1.adapter;return ro(to).then(function(oo){return throwIfCancellationRequested(to),oo.data=transformData.call(to,oo.data,oo.headers,to.transformResponse),oo},function(oo){return isCancel(oo)||(throwIfCancellationRequested(to),oo&&oo.response&&(oo.response.data=transformData.call(to,oo.response.data,oo.response.headers,to.transformResponse))),Promise.reject(oo)})},utils$2=utils$9,mergeConfig$2=function(to,ro){ro=ro||{};var no={},oo=["url","method","data"],io=["headers","auth","proxy","params"],so=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ao=["validateStatus"];function lo(po,ho){return utils$2.isPlainObject(po)&&utils$2.isPlainObject(ho)?utils$2.merge(po,ho):utils$2.isPlainObject(ho)?utils$2.merge({},ho):utils$2.isArray(ho)?ho.slice():ho}function uo(po){utils$2.isUndefined(ro[po])?utils$2.isUndefined(to[po])||(no[po]=lo(void 0,to[po])):no[po]=lo(to[po],ro[po])}utils$2.forEach(oo,function(ho){utils$2.isUndefined(ro[ho])||(no[ho]=lo(void 0,ro[ho]))}),utils$2.forEach(io,uo),utils$2.forEach(so,function(ho){utils$2.isUndefined(ro[ho])?utils$2.isUndefined(to[ho])||(no[ho]=lo(void 0,to[ho])):no[ho]=lo(void 0,ro[ho])}),utils$2.forEach(ao,function(ho){ho in ro?no[ho]=lo(to[ho],ro[ho]):ho in to&&(no[ho]=lo(void 0,to[ho]))});var co=oo.concat(io).concat(so).concat(ao),fo=Object.keys(to).concat(Object.keys(ro)).filter(function(ho){return co.indexOf(ho)===-1});return utils$2.forEach(fo,uo),no};const name="axios",version$2="0.21.4",description="Promise based HTTP client for the browser and node.js",main$1="index.js",scripts={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository={type:"git",url:"https://github.com/axios/axios.git"},keywords$1=["xhr","http","ajax","promise","node"],author="Matt Zabriskie",license="MIT",bugs={url:"https://github.com/axios/axios/issues"},homepage="https://axios-http.com",devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser$1={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr="dist/axios.min.js",unpkg="dist/axios.min.js",typings="./index.d.ts",dependencies={"follow-redirects":"^1.14.0"},bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}],require$$0={name,version:version$2,description,main:main$1,scripts,repository,keywords:keywords$1,author,license,bugs,homepage,devDependencies,browser:browser$1,jsdelivr,unpkg,typings,dependencies,bundlesize};var pkg=require$$0,validators$3={};["object","boolean","number","function","string","symbol"].forEach(function(eo,to){validators$3[eo]=function(no){return typeof no===eo||"a"+(to<1?"n ":" ")+eo}});var deprecatedWarnings={},currentVerArr=pkg.version.split(".");function isOlderVersion(eo,to){for(var ro=to?to.split("."):currentVerArr,no=eo.split("."),oo=0;oo<3;oo++){if(ro[oo]>no[oo])return!0;if(ro[oo]0;){var io=no[oo],so=to[io];if(so){var ao=eo[io],lo=ao===void 0||so(ao,io,eo);if(lo!==!0)throw new TypeError("option "+io+" must be "+lo);continue}if(ro!==!0)throw Error("Unknown option "+io)}}var validator$1={isOlderVersion,assertOptions,validators:validators$3},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators$2=validator.validators;function Axios$1(eo){this.defaults=eo,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(to){typeof to=="string"?(to=arguments[1]||{},to.url=arguments[0]):to=to||{},to=mergeConfig$1(this.defaults,to),to.method?to.method=to.method.toLowerCase():this.defaults.method?to.method=this.defaults.method.toLowerCase():to.method="get";var ro=to.transitional;ro!==void 0&&validator.assertOptions(ro,{silentJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),forcedJSONParsing:validators$2.transitional(validators$2.boolean,"1.0.0"),clarifyTimeoutError:validators$2.transitional(validators$2.boolean,"1.0.0")},!1);var no=[],oo=!0;this.interceptors.request.forEach(function(po){typeof po.runWhen=="function"&&po.runWhen(to)===!1||(oo=oo&&po.synchronous,no.unshift(po.fulfilled,po.rejected))});var io=[];this.interceptors.response.forEach(function(po){io.push(po.fulfilled,po.rejected)});var so;if(!oo){var ao=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(ao,no),ao=ao.concat(io),so=Promise.resolve(to);ao.length;)so=so.then(ao.shift(),ao.shift());return so}for(var lo=to;no.length;){var uo=no.shift(),co=no.shift();try{lo=uo(lo)}catch(fo){co(fo);break}}try{so=dispatchRequest(lo)}catch(fo){return Promise.reject(fo)}for(;io.length;)so=so.then(io.shift(),io.shift());return so};Axios$1.prototype.getUri=function(to){return to=mergeConfig$1(this.defaults,to),buildURL(to.url,to.params,to.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(to){Axios$1.prototype[to]=function(ro,no){return this.request(mergeConfig$1(no||{},{method:to,url:ro,data:(no||{}).data}))}});utils$1.forEach(["post","put","patch"],function(to){Axios$1.prototype[to]=function(ro,no,oo){return this.request(mergeConfig$1(oo||{},{method:to,url:ro,data:no}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function eo(to){this.message=to}return eo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},eo.prototype.__CANCEL__=!0,Cancel_1=eo,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var eo=requireCancel();function to(ro){if(typeof ro!="function")throw new TypeError("executor must be a function.");var no;this.promise=new Promise(function(so){no=so});var oo=this;ro(function(so){oo.reason||(oo.reason=new eo(so),no(oo.reason))})}return to.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},to.source=function(){var no,oo=new to(function(so){no=so});return{token:oo,cancel:no}},CancelToken_1=to,CancelToken_1}var spread$1,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread$1=function(to){return function(no){return to.apply(null,no)}}),spread$1}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(to){return typeof to=="object"&&to.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults=defaults_1$1;function createInstance(eo){var to=new Axios(eo),ro=bind(Axios.prototype.request,to);return utils.extend(ro,Axios.prototype,to),utils.extend(ro,to),ro}var axios=createInstance(defaults);axios.Axios=Axios;axios.create=function(to){return createInstance(mergeConfig(axios.defaults,to))};axios.Cancel=requireCancel();axios.CancelToken=requireCancelToken();axios.isCancel=requireIsCancel();axios.all=function(to){return Promise.all(to)};axios.spread=requireSpread();axios.isAxiosError=requireIsAxiosError();axios$1.exports=axios;axios$1.exports.default=axios;var rngBrowser={exports:{}},getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues$1){var rnds8$1=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues$1(rnds8$1),rnds8$1}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var to=0,ro;to<16;to++)to&3||(ro=Math.random()*4294967296),rnds[to]=ro>>>((to&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex$1=[];for(var i$4=0;i$4<256;++i$4)byteToHex$1[i$4]=(i$4+256).toString(16).substr(1);function bytesToUuid$3(eo,to){var ro=to||0,no=byteToHex$1;return[no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]]].join("")}var bytesToUuid_1=bytesToUuid$3,rng$2=rngBrowserExports,bytesToUuid$2=bytesToUuid_1,_nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1$1(eo,to,ro){var no=to&&ro||0,oo=to||[];eo=eo||{};var io=eo.node||_nodeId,so=eo.clockseq!==void 0?eo.clockseq:_clockseq;if(io==null||so==null){var ao=rng$2();io==null&&(io=_nodeId=[ao[0]|1,ao[1],ao[2],ao[3],ao[4],ao[5]]),so==null&&(so=_clockseq=(ao[6]<<8|ao[7])&16383)}var lo=eo.msecs!==void 0?eo.msecs:new Date().getTime(),uo=eo.nsecs!==void 0?eo.nsecs:_lastNSecs+1,co=lo-_lastMSecs+(uo-_lastNSecs)/1e4;if(co<0&&eo.clockseq===void 0&&(so=so+1&16383),(co<0||lo>_lastMSecs)&&eo.nsecs===void 0&&(uo=0),uo>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=lo,_lastNSecs=uo,_clockseq=so,lo+=122192928e5;var fo=((lo&268435455)*1e4+uo)%4294967296;oo[no++]=fo>>>24&255,oo[no++]=fo>>>16&255,oo[no++]=fo>>>8&255,oo[no++]=fo&255;var po=lo/4294967296*1e4&268435455;oo[no++]=po>>>8&255,oo[no++]=po&255,oo[no++]=po>>>24&15|16,oo[no++]=po>>>16&255,oo[no++]=so>>>8|128,oo[no++]=so&255;for(var ho=0;ho<6;++ho)oo[no+ho]=io[ho];return to||bytesToUuid$2(oo)}var v1_1=v1$1,rng$1=rngBrowserExports,bytesToUuid$1=bytesToUuid_1;function v4$2(eo,to,ro){var no=to&&ro||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var oo=eo.random||(eo.rng||rng$1)();if(oo[6]=oo[6]&15|64,oo[8]=oo[8]&63|128,to)for(var io=0;io<16;++io)to[no+io]=oo[io];return to||bytesToUuid$1(oo)}var v4_1=v4$2,v1=v1_1,v4$1=v4_1,uuid=v4$1;uuid.v1=v1;uuid.v4=v4$1;var uuid_1=uuid;const BASELINE_VARIANT_ID="variant_0",DEFAULT_CHAT_INPUT_NAME="chat_input",DEFAULT_CHAT_HISTORY_NAME="chat_history",DEFAULT_CHAT_OUTPUT_NAME="chat_output";var FlowFeatures=(eo=>(eo.OpenCodeFileInNode="OpenCodeFileInNode",eo.ShowWarningIconOnNode="ShowWarningIconOnNode",eo))(FlowFeatures||{}),ConnectionType=(eo=>(eo.OpenAI="OpenAI",eo.AzureOpenAI="AzureOpenAI",eo.Serp="Serp",eo.Bing="Bing",eo.AzureContentModerator="AzureContentModerator",eo.Custom="Custom",eo.AzureContentSafety="AzureContentSafety",eo.CognitiveSearch="CognitiveSearch",eo.SubstrateLLM="SubstrateLLM",eo.Pinecone="Pinecone",eo.Qdrant="Qdrant",eo.Weaviate="Weaviate",eo.FormRecognizer="FormRecognizer",eo.Serverless="Serverless",eo))(ConnectionType||{}),FlowType=(eo=>(eo.Default="Default",eo.Evaluation="Evaluation",eo.Chat="Chat",eo.Rag="Rag",eo))(FlowType||{}),InputType=(eo=>(eo.default="default",eo.uionly_hidden="uionly_hidden",eo))(InputType||{}),Orientation$1=(eo=>(eo.Horizontal="Horizontal",eo.Vertical="Vertical",eo))(Orientation$1||{}),ToolType=(eo=>(eo.llm="llm",eo.python="python",eo.action="action",eo.prompt="prompt",eo.custom_llm="custom_llm",eo.csharp="csharp",eo.typescript="typescript",eo))(ToolType||{}),ValueType=(eo=>(eo.int="int",eo.double="double",eo.bool="bool",eo.string="string",eo.secret="secret",eo.prompt_template="prompt_template",eo.object="object",eo.list="list",eo.BingConnection="BingConnection",eo.OpenAIConnection="OpenAIConnection",eo.AzureOpenAIConnection="AzureOpenAIConnection",eo.AzureContentModeratorConnection="AzureContentModeratorConnection",eo.CustomConnection="CustomConnection",eo.AzureContentSafetyConnection="AzureContentSafetyConnection",eo.SerpConnection="SerpConnection",eo.CognitiveSearchConnection="CognitiveSearchConnection",eo.SubstrateLLMConnection="SubstrateLLMConnection",eo.PineconeConnection="PineconeConnection",eo.QdrantConnection="QdrantConnection",eo.WeaviateConnection="WeaviateConnection",eo.function_list="function_list",eo.function_str="function_str",eo.FormRecognizerConnection="FormRecognizerConnection",eo.file_path="file_path",eo.image="image",eo.assistant_definition="assistant_definition",eo.ServerlessConnection="ServerlessConnection",eo))(ValueType||{});const FLOW_INPUT_REF_NAME_FLOW="flow",FLOW_INPUT_REF_NAME_INPUT="inputs",FLOW_INPUT_NODE_NAME="inputs",FLOW_OUTPUT_NODE_NAME="outputs",isFlowInput=eo=>[FLOW_INPUT_REF_NAME_FLOW,FLOW_INPUT_REF_NAME_INPUT].includes(eo),SystemColors=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var ValidationErrorType=(eo=>(eo.CircularDependency="CircularDependency",eo.InputDependencyNotFound="InputDependencyNotFound",eo.InputGenerateError="InputGenerateError",eo.InputSelfReference="InputSelfReference",eo.InputEmpty="InputEmpty",eo.InputInvalidType="InputInvalidType",eo.NodeConfigInvalid="NodeConfigInvalid",eo.UnparsedCode="UnparsedCode",eo.EmptyCode="EmptyCode",eo.MissingTool="MissingTool",eo.AutoParseInputError="AutoParseInputError",eo.RuntimeNameEmpty="RuntimeNameEmpty",eo.RuntimeStatusInvalid="RuntimeStatusInvalid",eo))(ValidationErrorType||{}),ChatMessageFrom=(eo=>(eo.System="system",eo.ErrorHandler="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageFrom||{}),ChatMessageType$1=(eo=>(eo.Text="text",eo.Typing="typing",eo.SessionSplit="session-split",eo))(ChatMessageType$1||{});const convertToBool=eo=>eo==="true"||eo==="True"||eo===!0,basicValueTypeDetector=eo=>Array.isArray(eo)?ValueType.list:typeof eo=="boolean"?ValueType.bool:typeof eo=="string"?ValueType.string:typeof eo=="number"?Number.isInteger(eo)?ValueType.int:ValueType.double:ValueType.object;function valueStringify(eo){if(eo==null)return;switch(basicValueTypeDetector(eo)){case ValueType.string:return eo;case ValueType.int:case ValueType.double:return eo.toString();case ValueType.bool:return eo?"True":"False";case ValueType.object:case ValueType.list:return JSON.stringify(eo);default:return String(eo)}}var lodash$1={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */lodash$1.exports;(function(eo,to){(function(){var ro,no="4.17.21",oo=200,io="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",so="Expected a function",ao="Invalid `variable` option passed into `_.template`",lo="__lodash_hash_undefined__",uo=500,co="__lodash_placeholder__",fo=1,po=2,ho=4,mo=1,vo=2,bo=1,xo=2,_o=4,So=8,Eo=16,ko=32,wo=64,Co=128,Ro=256,Ao=512,Io=30,$o="...",Bo=800,Mo=16,Ho=1,jo=2,Oo=3,Fo=1/0,Go=9007199254740991,qo=17976931348623157e292,Xo=NaN,Zo=4294967295,Qo=Zo-1,xs=Zo>>>1,Ts=[["ary",Co],["bind",bo],["bindKey",xo],["curry",So],["curryRight",Eo],["flip",Ao],["partial",ko],["partialRight",wo],["rearg",Ro]],Rs="[object Arguments]",Os="[object Array]",As="[object AsyncFunction]",Ds="[object Boolean]",Jo="[object Date]",Cs="[object DOMException]",Bs="[object Error]",zs="[object Function]",Ls="[object GeneratorFunction]",ga="[object Map]",Js="[object Number]",Zs="[object Null]",$a="[object Object]",Ll="[object Promise]",Kl="[object Proxy]",Zl="[object RegExp]",$l="[object Set]",xa="[object String]",Sl="[object Symbol]",cu="[object Undefined]",ks="[object WeakMap]",Es="[object WeakSet]",bs="[object ArrayBuffer]",ws="[object DataView]",Gs="[object Float32Array]",Ks="[object Float64Array]",Ms="[object Int8Array]",Hs="[object Int16Array]",Qs="[object Int32Array]",El="[object Uint8Array]",xl="[object Uint8ClampedArray]",Ol="[object Uint16Array]",ru="[object Uint32Array]",au=/\b__p \+= '';/g,zl=/\b(__p \+=) '' \+/g,hu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xu=/&(?:amp|lt|gt|quot|#39);/g,Ql=/[&<>"']/g,Dl=RegExp(xu.source),gu=RegExp(Ql.source),lu=/<%-([\s\S]+?)%>/g,mu=/<%([\s\S]+?)%>/g,ou=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yl=/^\w*$/,Xs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vu=/[\\^$.*+?()[\]{}|]/g,$u=RegExp(vu.source),du=/^\s+/,d1=/\s/,qu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Iu=/\{\n\/\* \[wrapped with (.+)\] \*/,e1=/,? & /,qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ko=/[()=,{}\[\]\/\s]/,Uo=/\\(\\)?/g,Po=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zo=/\w*$/,Do=/^[-+]0x[0-9a-f]+$/i,Yo=/^0b[01]+$/i,vs=/^\[object .+?Constructor\]$/,ys=/^0o[0-7]+$/i,hs=/^(?:0|[1-9]\d*)$/,Is=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Us=/($^)/,Il=/['\n\r\u2028\u2029\\]/g,Ml="\\ud800-\\udfff",Rl="\\u0300-\\u036f",Cl="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",fu=Rl+Cl+Ul,Bl="\\u2700-\\u27bf",Su="a-z\\xdf-\\xf6\\xf8-\\xff",Nu="\\xac\\xb1\\xd7\\xf7",zu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f1="\\u2000-\\u206f",Xu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",A1="A-Z\\xc0-\\xd6\\xd8-\\xde",p1="\\ufe0e\\ufe0f",Au=Nu+zu+f1+Xu,t1="['’]",w1="["+Ml+"]",h1="["+Au+"]",R1="["+fu+"]",g1="\\d+",H1="["+Bl+"]",E1="["+Su+"]",I1="[^"+Ml+Au+g1+Bl+Su+A1+"]",N1="\\ud83c[\\udffb-\\udfff]",x1="(?:"+R1+"|"+N1+")",S1="[^"+Ml+"]",pp="(?:\\ud83c[\\udde6-\\uddff]){2}",Ip="[\\ud800-\\udbff][\\udc00-\\udfff]",G1="["+A1+"]",Zp="\\u200d",Np="(?:"+E1+"|"+I1+")",tp="(?:"+G1+"|"+I1+")",hp="(?:"+t1+"(?:d|ll|m|re|s|t|ve))?",gp="(?:"+t1+"(?:D|LL|M|RE|S|T|VE))?",rp=x1+"?",V1="["+p1+"]?",Fm="(?:"+Zp+"(?:"+[S1,pp,Ip].join("|")+")"+V1+rp+")*",Qp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$p=V1+rp+Fm,Pm="(?:"+[H1,pp,Ip].join("|")+")"+$p,zm="(?:"+[S1+R1+"?",R1,pp,Ip,w1].join("|")+")",np=RegExp(t1,"g"),Hm=RegExp(R1,"g"),q1=RegExp(N1+"(?="+N1+")|"+zm+$p,"g"),Jp=RegExp([G1+"?"+E1+"+"+hp+"(?="+[h1,G1,"$"].join("|")+")",tp+"+"+gp+"(?="+[h1,G1+Np,"$"].join("|")+")",G1+"?"+Np+"+"+hp,G1+"+"+gp,jm,Qp,g1,Pm].join("|"),"g"),Ys=RegExp("["+Zp+Ml+fu+p1+"]"),na=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Hl=-1,Al={};Al[Gs]=Al[Ks]=Al[Ms]=Al[Hs]=Al[Qs]=Al[El]=Al[xl]=Al[Ol]=Al[ru]=!0,Al[Rs]=Al[Os]=Al[bs]=Al[Ds]=Al[ws]=Al[Jo]=Al[Bs]=Al[zs]=Al[ga]=Al[Js]=Al[$a]=Al[Zl]=Al[$l]=Al[xa]=Al[ks]=!1;var Nl={};Nl[Rs]=Nl[Os]=Nl[bs]=Nl[ws]=Nl[Ds]=Nl[Jo]=Nl[Gs]=Nl[Ks]=Nl[Ms]=Nl[Hs]=Nl[Qs]=Nl[ga]=Nl[Js]=Nl[$a]=Nl[Zl]=Nl[$l]=Nl[xa]=Nl[Sl]=Nl[El]=Nl[xl]=Nl[Ol]=Nl[ru]=!0,Nl[Bs]=Nl[zs]=Nl[ks]=!1;var bu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_u={"&":"&","<":"<",">":">",'"':""","'":"'"},Ou={"&":"&","<":"<",">":">",""":'"',"'":"'"},r1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$1=parseFloat,Gm=parseInt,mp=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Op=typeof self=="object"&&self&&self.Object===Object&&self,Du=mp||Op||Function("return this")(),Vm=to&&!to.nodeType&&to,op=Vm&&!0&&eo&&!eo.nodeType&&eo,nv=op&&op.exports===Vm,qm=nv&&mp.process,n1=function(){try{var _s=op&&op.require&&op.require("util").types;return _s||qm&&qm.binding&&qm.binding("util")}catch{}}(),ov=n1&&n1.isArrayBuffer,iv=n1&&n1.isDate,sv=n1&&n1.isMap,av=n1&&n1.isRegExp,lv=n1&&n1.isSet,uv=n1&&n1.isTypedArray;function Zu(_s,$s,Ns){switch(Ns.length){case 0:return _s.call($s);case 1:return _s.call($s,Ns[0]);case 2:return _s.call($s,Ns[0],Ns[1]);case 3:return _s.call($s,Ns[0],Ns[1],Ns[2])}return _s.apply($s,Ns)}function d_(_s,$s,Ns,_l){for(var Yl=-1,uu=_s==null?0:_s.length;++Yl-1}function Wm(_s,$s,Ns){for(var _l=-1,Yl=_s==null?0:_s.length;++_l-1;);return Ns}function vv(_s,$s){for(var Ns=_s.length;Ns--&&vp($s,_s[Ns],0)>-1;);return Ns}function __(_s,$s){for(var Ns=_s.length,_l=0;Ns--;)_s[Ns]===$s&&++_l;return _l}var E_=Xm(bu),x_=Xm(_u);function S_(_s){return"\\"+r1[_s]}function T_(_s,$s){return _s==null?ro:_s[$s]}function yp(_s){return Ys.test(_s)}function k_(_s){return na.test(_s)}function C_(_s){for(var $s,Ns=[];!($s=_s.next()).done;)Ns.push($s.value);return Ns}function e0(_s){var $s=-1,Ns=Array(_s.size);return _s.forEach(function(_l,Yl){Ns[++$s]=[Yl,_l]}),Ns}function yv(_s,$s){return function(Ns){return _s($s(Ns))}}function U1(_s,$s){for(var Ns=-1,_l=_s.length,Yl=0,uu=[];++Ns<_l;){var Mu=_s[Ns];(Mu===$s||Mu===co)&&(_s[Ns]=co,uu[Yl++]=Ns)}return uu}function em(_s){var $s=-1,Ns=Array(_s.size);return _s.forEach(function(_l){Ns[++$s]=_l}),Ns}function A_(_s){var $s=-1,Ns=Array(_s.size);return _s.forEach(function(_l){Ns[++$s]=[_l,_l]}),Ns}function w_(_s,$s,Ns){for(var _l=Ns-1,Yl=_s.length;++_l-1}function pE(go,yo){var To=this.__data__,No=gm(To,go);return No<0?(++this.size,To.push([go,yo])):To[No][1]=yo,this}O1.prototype.clear=uE,O1.prototype.delete=cE,O1.prototype.get=dE,O1.prototype.has=fE,O1.prototype.set=pE;function D1(go){var yo=-1,To=go==null?0:go.length;for(this.clear();++yo=yo?go:yo)),go}function a1(go,yo,To,No,Lo,Wo){var ps,gs=yo&fo,Ss=yo&po,Fs=yo&ho;if(To&&(ps=Lo?To(go,No,Lo,Wo):To(go)),ps!==ro)return ps;if(!ku(go))return go;var Ps=Xl(go);if(Ps){if(ps=bx(go),!gs)return Wu(go,ps)}else{var Vs=Pu(go),ba=Vs==zs||Vs==Ls;if(ep(go))return ey(go,gs);if(Vs==$a||Vs==Rs||ba&&!Lo){if(ps=Ss||ba?{}:by(go),!gs)return Ss?sx(go,RE(ps,go)):ix(go,Iv(ps,go))}else{if(!Nl[Vs])return Lo?go:{};ps=_x(go,Vs,gs)}}Wo||(Wo=new y1);var Tl=Wo.get(go);if(Tl)return Tl;Wo.set(go,ps),Uy(go)?go.forEach(function(Vl){ps.add(a1(Vl,yo,To,Vl,go,Wo))}):Wy(go)&&go.forEach(function(Vl,nu){ps.set(nu,a1(Vl,yo,To,nu,go,Wo))});var Gl=Fs?Ss?C0:k0:Ss?Uu:Lu,eu=Ps?ro:Gl(go);return o1(eu||go,function(Vl,nu){eu&&(nu=Vl,Vl=go[nu]),Pp(ps,nu,a1(Vl,yo,To,nu,go,Wo))}),ps}function IE(go){var yo=Lu(go);return function(To){return Nv(To,go,yo)}}function Nv(go,yo,To){var No=To.length;if(go==null)return!No;for(go=Eu(go);No--;){var Lo=To[No],Wo=yo[Lo],ps=go[Lo];if(ps===ro&&!(Lo in go)||!Wo(ps))return!1}return!0}function $v(go,yo,To){if(typeof go!="function")throw new i1(so);return Kp(function(){go.apply(ro,To)},yo)}function zp(go,yo,To,No){var Lo=-1,Wo=_h,ps=!0,gs=go.length,Ss=[],Fs=yo.length;if(!gs)return Ss;To&&(yo=Tu(yo,Qu(To))),No?(Wo=Wm,ps=!1):yo.length>=oo&&(Wo=Dp,ps=!1,yo=new ap(yo));e:for(;++LoLo?0:Lo+To),No=No===ro||No>Lo?Lo:Jl(No),No<0&&(No+=Lo),No=To>No?0:Xy(No);To0&&To(gs)?yo>1?Fu(gs,yo-1,To,No,Lo):K1(Lo,gs):No||(Lo[Lo.length]=gs)}return Lo}var a0=sy(),Mv=sy(!0);function T1(go,yo){return go&&a0(go,yo,Lu)}function l0(go,yo){return go&&Mv(go,yo,Lu)}function vm(go,yo){return W1(yo,function(To){return j1(go[To])})}function up(go,yo){yo=Q1(yo,go);for(var To=0,No=yo.length;go!=null&&Toyo}function OE(go,yo){return go!=null&&yu.call(go,yo)}function DE(go,yo){return go!=null&&yo in Eu(go)}function ME(go,yo,To){return go>=ju(yo,To)&&go=120&&Ps.length>=120)?new ap(ps&&Ps):ro}Ps=go[0];var Vs=-1,ba=gs[0];e:for(;++Vs-1;)gs!==go&&lm.call(gs,Ss,1),lm.call(go,Ss,1);return go}function Wv(go,yo){for(var To=go?yo.length:0,No=To-1;To--;){var Lo=yo[To];if(To==No||Lo!==Wo){var Wo=Lo;F1(Lo)?lm.call(go,Lo,1):y0(go,Lo)}}return go}function g0(go,yo){return go+dm(Cv()*(yo-go+1))}function UE(go,yo,To,No){for(var Lo=-1,Wo=Bu(cm((yo-go)/(To||1)),0),ps=Ns(Wo);Wo--;)ps[No?Wo:++Lo]=go,go+=To;return ps}function m0(go,yo){var To="";if(!go||yo<1||yo>Go)return To;do yo%2&&(To+=go),yo=dm(yo/2),yo&&(go+=go);while(yo);return To}function tu(go,yo){return O0(xy(go,yo,Yu),go+"")}function YE(go){return Rv(Rp(go))}function XE(go,yo){var To=Rp(go);return wm(To,lp(yo,0,To.length))}function Vp(go,yo,To,No){if(!ku(go))return go;yo=Q1(yo,go);for(var Lo=-1,Wo=yo.length,ps=Wo-1,gs=go;gs!=null&&++LoLo?0:Lo+yo),To=To>Lo?Lo:To,To<0&&(To+=Lo),Lo=yo>To?0:To-yo>>>0,yo>>>=0;for(var Wo=Ns(Lo);++No>>1,ps=go[Wo];ps!==null&&!_c(ps)&&(To?ps<=yo:ps=oo){var Fs=yo?null:dx(go);if(Fs)return em(Fs);ps=!1,Lo=Dp,Ss=new ap}else Ss=yo?[]:gs;e:for(;++No=No?go:l1(go,yo,To)}var Jv=z_||function(go){return Du.clearTimeout(go)};function ey(go,yo){if(yo)return go.slice();var To=go.length,No=Ev?Ev(To):new go.constructor(To);return go.copy(No),No}function x0(go){var yo=new go.constructor(go.byteLength);return new sm(yo).set(new sm(go)),yo}function tx(go,yo){var To=yo?x0(go.buffer):go.buffer;return new go.constructor(To,go.byteOffset,go.byteLength)}function rx(go){var yo=new go.constructor(go.source,zo.exec(go));return yo.lastIndex=go.lastIndex,yo}function nx(go){return jp?Eu(jp.call(go)):{}}function ty(go,yo){var To=yo?x0(go.buffer):go.buffer;return new go.constructor(To,go.byteOffset,go.length)}function ry(go,yo){if(go!==yo){var To=go!==ro,No=go===null,Lo=go===go,Wo=_c(go),ps=yo!==ro,gs=yo===null,Ss=yo===yo,Fs=_c(yo);if(!gs&&!Fs&&!Wo&&go>yo||Wo&&ps&&Ss&&!gs&&!Fs||No&&ps&&Ss||!To&&Ss||!Lo)return 1;if(!No&&!Wo&&!Fs&&go=gs)return Ss;var Fs=To[No];return Ss*(Fs=="desc"?-1:1)}}return go.index-yo.index}function ny(go,yo,To,No){for(var Lo=-1,Wo=go.length,ps=To.length,gs=-1,Ss=yo.length,Fs=Bu(Wo-ps,0),Ps=Ns(Ss+Fs),Vs=!No;++gs1?To[Lo-1]:ro,ps=Lo>2?To[2]:ro;for(Wo=go.length>3&&typeof Wo=="function"?(Lo--,Wo):ro,ps&&Gu(To[0],To[1],ps)&&(Wo=Lo<3?ro:Wo,Lo=1),yo=Eu(yo);++No-1?Lo[Wo?yo[ps]:ps]:ro}}function uy(go){return L1(function(yo){var To=yo.length,No=To,Lo=s1.prototype.thru;for(go&&yo.reverse();No--;){var Wo=yo[No];if(typeof Wo!="function")throw new i1(so);if(Lo&&!ps&&Cm(Wo)=="wrapper")var ps=new s1([],!0)}for(No=ps?No:To;++No1&&su.reverse(),Ps&&Ssgs))return!1;var Fs=Wo.get(go),Ps=Wo.get(yo);if(Fs&&Ps)return Fs==yo&&Ps==go;var Vs=-1,ba=!0,Tl=To&vo?new ap:ro;for(Wo.set(go,yo),Wo.set(yo,go);++Vs1?"& ":"")+yo[No],yo=yo.join(To>2?", ":" "),go.replace(qu,`{ +/* [wrapped with `+yo+`] */ +`)}function xx(go){return Xl(go)||fp(go)||!!(Tv&&go&&go[Tv])}function F1(go,yo){var To=typeof go;return yo=yo??Go,!!yo&&(To=="number"||To!="symbol"&&hs.test(go))&&go>-1&&go%1==0&&go0){if(++yo>=Bo)return arguments[0]}else yo=0;return go.apply(ro,arguments)}}function wm(go,yo){var To=-1,No=go.length,Lo=No-1;for(yo=yo===ro?No:yo;++To1?go[yo-1]:ro;return To=typeof To=="function"?(go.pop(),To):ro,Dy(go,To)});function My(go){var yo=Vo(go);return yo.__chain__=!0,yo}function OS(go,yo){return yo(go),go}function Rm(go,yo){return yo(go)}var DS=L1(function(go){var yo=go.length,To=yo?go[0]:0,No=this.__wrapped__,Lo=function(Wo){return s0(Wo,go)};return yo>1||this.__actions__.length||!(No instanceof iu)||!F1(To)?this.thru(Lo):(No=No.slice(To,+To+(yo?1:0)),No.__actions__.push({func:Rm,args:[Lo],thisArg:ro}),new s1(No,this.__chain__).thru(function(Wo){return yo&&!Wo.length&&Wo.push(ro),Wo}))});function BS(){return My(this)}function LS(){return new s1(this.value(),this.__chain__)}function FS(){this.__values__===ro&&(this.__values__=Yy(this.value()));var go=this.__index__>=this.__values__.length,yo=go?ro:this.__values__[this.__index__++];return{done:go,value:yo}}function jS(){return this}function PS(go){for(var yo,To=this;To instanceof hm;){var No=wy(To);No.__index__=0,No.__values__=ro,yo?Lo.__wrapped__=No:yo=No;var Lo=No;To=To.__wrapped__}return Lo.__wrapped__=go,yo}function zS(){var go=this.__wrapped__;if(go instanceof iu){var yo=go;return this.__actions__.length&&(yo=new iu(this)),yo=yo.reverse(),yo.__actions__.push({func:Rm,args:[D0],thisArg:ro}),new s1(yo,this.__chain__)}return this.thru(D0)}function HS(){return Zv(this.__wrapped__,this.__actions__)}var GS=Em(function(go,yo,To){yu.call(go,To)?++go[To]:M1(go,To,1)});function VS(go,yo,To){var No=Xl(go)?cv:NE;return To&&Gu(go,yo,To)&&(yo=ro),No(go,Pl(yo,3))}function qS(go,yo){var To=Xl(go)?W1:Dv;return To(go,Pl(yo,3))}var WS=ly(Ry),KS=ly(Iy);function US(go,yo){return Fu(Im(go,yo),1)}function YS(go,yo){return Fu(Im(go,yo),Fo)}function XS(go,yo,To){return To=To===ro?1:Jl(To),Fu(Im(go,yo),To)}function By(go,yo){var To=Xl(go)?o1:X1;return To(go,Pl(yo,3))}function Ly(go,yo){var To=Xl(go)?f_:Ov;return To(go,Pl(yo,3))}var ZS=Em(function(go,yo,To){yu.call(go,To)?go[To].push(yo):M1(go,To,[yo])});function QS(go,yo,To,No){go=Ku(go)?go:Rp(go),To=To&&!No?Jl(To):0;var Lo=go.length;return To<0&&(To=Bu(Lo+To,0)),Mm(go)?To<=Lo&&go.indexOf(yo,To)>-1:!!Lo&&vp(go,yo,To)>-1}var JS=tu(function(go,yo,To){var No=-1,Lo=typeof yo=="function",Wo=Ku(go)?Ns(go.length):[];return X1(go,function(ps){Wo[++No]=Lo?Zu(yo,ps,To):Hp(ps,yo,To)}),Wo}),eT=Em(function(go,yo,To){M1(go,To,yo)});function Im(go,yo){var To=Xl(go)?Tu:Pv;return To(go,Pl(yo,3))}function tT(go,yo,To,No){return go==null?[]:(Xl(yo)||(yo=yo==null?[]:[yo]),To=No?ro:To,Xl(To)||(To=To==null?[]:[To]),Vv(go,yo,To))}var rT=Em(function(go,yo,To){go[To?0:1].push(yo)},function(){return[[],[]]});function nT(go,yo,To){var No=Xl(go)?Km:hv,Lo=arguments.length<3;return No(go,Pl(yo,4),To,Lo,X1)}function oT(go,yo,To){var No=Xl(go)?p_:hv,Lo=arguments.length<3;return No(go,Pl(yo,4),To,Lo,Ov)}function iT(go,yo){var To=Xl(go)?W1:Dv;return To(go,Om(Pl(yo,3)))}function sT(go){var yo=Xl(go)?Rv:YE;return yo(go)}function aT(go,yo,To){(To?Gu(go,yo,To):yo===ro)?yo=1:yo=Jl(yo);var No=Xl(go)?CE:XE;return No(go,yo)}function lT(go){var yo=Xl(go)?AE:QE;return yo(go)}function uT(go){if(go==null)return 0;if(Ku(go))return Mm(go)?bp(go):go.length;var yo=Pu(go);return yo==ga||yo==$l?go.size:f0(go).length}function cT(go,yo,To){var No=Xl(go)?Um:JE;return To&&Gu(go,yo,To)&&(yo=ro),No(go,Pl(yo,3))}var dT=tu(function(go,yo){if(go==null)return[];var To=yo.length;return To>1&&Gu(go,yo[0],yo[1])?yo=[]:To>2&&Gu(yo[0],yo[1],yo[2])&&(yo=[yo[0]]),Vv(go,Fu(yo,1),[])}),Nm=H_||function(){return Du.Date.now()};function fT(go,yo){if(typeof yo!="function")throw new i1(so);return go=Jl(go),function(){if(--go<1)return yo.apply(this,arguments)}}function Fy(go,yo,To){return yo=To?ro:yo,yo=go&&yo==null?go.length:yo,B1(go,Co,ro,ro,ro,ro,yo)}function jy(go,yo){var To;if(typeof yo!="function")throw new i1(so);return go=Jl(go),function(){return--go>0&&(To=yo.apply(this,arguments)),go<=1&&(yo=ro),To}}var B0=tu(function(go,yo,To){var No=bo;if(To.length){var Lo=U1(To,Ap(B0));No|=ko}return B1(go,No,yo,To,Lo)}),Py=tu(function(go,yo,To){var No=bo|xo;if(To.length){var Lo=U1(To,Ap(Py));No|=ko}return B1(yo,No,go,To,Lo)});function zy(go,yo,To){yo=To?ro:yo;var No=B1(go,So,ro,ro,ro,ro,ro,yo);return No.placeholder=zy.placeholder,No}function Hy(go,yo,To){yo=To?ro:yo;var No=B1(go,Eo,ro,ro,ro,ro,ro,yo);return No.placeholder=Hy.placeholder,No}function Gy(go,yo,To){var No,Lo,Wo,ps,gs,Ss,Fs=0,Ps=!1,Vs=!1,ba=!0;if(typeof go!="function")throw new i1(so);yo=c1(yo)||0,ku(To)&&(Ps=!!To.leading,Vs="maxWait"in To,Wo=Vs?Bu(c1(To.maxWait)||0,yo):Wo,ba="trailing"in To?!!To.trailing:ba);function Tl(Ru){var _1=No,z1=Lo;return No=Lo=ro,Fs=Ru,ps=go.apply(z1,_1),ps}function Gl(Ru){return Fs=Ru,gs=Kp(nu,yo),Ps?Tl(Ru):ps}function eu(Ru){var _1=Ru-Ss,z1=Ru-Fs,a_=yo-_1;return Vs?ju(a_,Wo-z1):a_}function Vl(Ru){var _1=Ru-Ss,z1=Ru-Fs;return Ss===ro||_1>=yo||_1<0||Vs&&z1>=Wo}function nu(){var Ru=Nm();if(Vl(Ru))return su(Ru);gs=Kp(nu,eu(Ru))}function su(Ru){return gs=ro,ba&&No?Tl(Ru):(No=Lo=ro,ps)}function _d(){gs!==ro&&Jv(gs),Fs=0,No=Ss=Lo=gs=ro}function Vu(){return gs===ro?ps:su(Nm())}function _f(){var Ru=Nm(),_1=Vl(Ru);if(No=arguments,Lo=this,Ss=Ru,_1){if(gs===ro)return Gl(Ss);if(Vs)return Jv(gs),gs=Kp(nu,yo),Tl(Ss)}return gs===ro&&(gs=Kp(nu,yo)),ps}return _f.cancel=_d,_f.flush=Vu,_f}var pT=tu(function(go,yo){return $v(go,1,yo)}),hT=tu(function(go,yo,To){return $v(go,c1(yo)||0,To)});function gT(go){return B1(go,Ao)}function $m(go,yo){if(typeof go!="function"||yo!=null&&typeof yo!="function")throw new i1(so);var To=function(){var No=arguments,Lo=yo?yo.apply(this,No):No[0],Wo=To.cache;if(Wo.has(Lo))return Wo.get(Lo);var ps=go.apply(this,No);return To.cache=Wo.set(Lo,ps)||Wo,ps};return To.cache=new($m.Cache||D1),To}$m.Cache=D1;function Om(go){if(typeof go!="function")throw new i1(so);return function(){var yo=arguments;switch(yo.length){case 0:return!go.call(this);case 1:return!go.call(this,yo[0]);case 2:return!go.call(this,yo[0],yo[1]);case 3:return!go.call(this,yo[0],yo[1],yo[2])}return!go.apply(this,yo)}}function mT(go){return jy(2,go)}var vT=ex(function(go,yo){yo=yo.length==1&&Xl(yo[0])?Tu(yo[0],Qu(Pl())):Tu(Fu(yo,1),Qu(Pl()));var To=yo.length;return tu(function(No){for(var Lo=-1,Wo=ju(No.length,To);++Lo=yo}),fp=Lv(function(){return arguments}())?Lv:function(go){return Cu(go)&&yu.call(go,"callee")&&!Sv.call(go,"callee")},Xl=Ns.isArray,$T=ov?Qu(ov):LE;function Ku(go){return go!=null&&Dm(go.length)&&!j1(go)}function wu(go){return Cu(go)&&Ku(go)}function OT(go){return go===!0||go===!1||Cu(go)&&Hu(go)==Ds}var ep=V_||U0,DT=iv?Qu(iv):FE;function MT(go){return Cu(go)&&go.nodeType===1&&!Up(go)}function BT(go){if(go==null)return!0;if(Ku(go)&&(Xl(go)||typeof go=="string"||typeof go.splice=="function"||ep(go)||wp(go)||fp(go)))return!go.length;var yo=Pu(go);if(yo==ga||yo==$l)return!go.size;if(Wp(go))return!f0(go).length;for(var To in go)if(yu.call(go,To))return!1;return!0}function LT(go,yo){return Gp(go,yo)}function FT(go,yo,To){To=typeof To=="function"?To:ro;var No=To?To(go,yo):ro;return No===ro?Gp(go,yo,ro,To):!!No}function F0(go){if(!Cu(go))return!1;var yo=Hu(go);return yo==Bs||yo==Cs||typeof go.message=="string"&&typeof go.name=="string"&&!Up(go)}function jT(go){return typeof go=="number"&&kv(go)}function j1(go){if(!ku(go))return!1;var yo=Hu(go);return yo==zs||yo==Ls||yo==As||yo==Kl}function qy(go){return typeof go=="number"&&go==Jl(go)}function Dm(go){return typeof go=="number"&&go>-1&&go%1==0&&go<=Go}function ku(go){var yo=typeof go;return go!=null&&(yo=="object"||yo=="function")}function Cu(go){return go!=null&&typeof go=="object"}var Wy=sv?Qu(sv):PE;function PT(go,yo){return go===yo||d0(go,yo,w0(yo))}function zT(go,yo,To){return To=typeof To=="function"?To:ro,d0(go,yo,w0(yo),To)}function HT(go){return Ky(go)&&go!=+go}function GT(go){if(kx(go))throw new Yl(io);return Fv(go)}function VT(go){return go===null}function qT(go){return go==null}function Ky(go){return typeof go=="number"||Cu(go)&&Hu(go)==Js}function Up(go){if(!Cu(go)||Hu(go)!=$a)return!1;var yo=am(go);if(yo===null)return!0;var To=yu.call(yo,"constructor")&&yo.constructor;return typeof To=="function"&&To instanceof To&&nm.call(To)==F_}var j0=av?Qu(av):zE;function WT(go){return qy(go)&&go>=-Go&&go<=Go}var Uy=lv?Qu(lv):HE;function Mm(go){return typeof go=="string"||!Xl(go)&&Cu(go)&&Hu(go)==xa}function _c(go){return typeof go=="symbol"||Cu(go)&&Hu(go)==Sl}var wp=uv?Qu(uv):GE;function KT(go){return go===ro}function UT(go){return Cu(go)&&Pu(go)==ks}function YT(go){return Cu(go)&&Hu(go)==Es}var XT=km(p0),ZT=km(function(go,yo){return go<=yo});function Yy(go){if(!go)return[];if(Ku(go))return Mm(go)?m1(go):Wu(go);if(Mp&&go[Mp])return C_(go[Mp]());var yo=Pu(go),To=yo==ga?e0:yo==$l?em:Rp;return To(go)}function P1(go){if(!go)return go===0?go:0;if(go=c1(go),go===Fo||go===-Fo){var yo=go<0?-1:1;return yo*qo}return go===go?go:0}function Jl(go){var yo=P1(go),To=yo%1;return yo===yo?To?yo-To:yo:0}function Xy(go){return go?lp(Jl(go),0,Zo):0}function c1(go){if(typeof go=="number")return go;if(_c(go))return Xo;if(ku(go)){var yo=typeof go.valueOf=="function"?go.valueOf():go;go=ku(yo)?yo+"":yo}if(typeof go!="string")return go===0?go:+go;go=gv(go);var To=Yo.test(go);return To||ys.test(go)?Gm(go.slice(2),To?2:8):Do.test(go)?Xo:+go}function Zy(go){return k1(go,Uu(go))}function QT(go){return go?lp(Jl(go),-Go,Go):go===0?go:0}function pu(go){return go==null?"":Ju(go)}var JT=kp(function(go,yo){if(Wp(yo)||Ku(yo)){k1(yo,Lu(yo),go);return}for(var To in yo)yu.call(yo,To)&&Pp(go,To,yo[To])}),Qy=kp(function(go,yo){k1(yo,Uu(yo),go)}),Bm=kp(function(go,yo,To,No){k1(yo,Uu(yo),go,No)}),_k=kp(function(go,yo,To,No){k1(yo,Lu(yo),go,No)}),eC=L1(s0);function tC(go,yo){var To=Tp(go);return yo==null?To:Iv(To,yo)}var rC=tu(function(go,yo){go=Eu(go);var To=-1,No=yo.length,Lo=No>2?yo[2]:ro;for(Lo&&Gu(yo[0],yo[1],Lo)&&(No=1);++To1),Wo}),k1(go,C0(go),To),No&&(To=a1(To,fo|po|ho,fx));for(var Lo=yo.length;Lo--;)y0(To,yo[Lo]);return To});function _C(go,yo){return _b(go,Om(Pl(yo)))}var EC=L1(function(go,yo){return go==null?{}:WE(go,yo)});function _b(go,yo){if(go==null)return{};var To=Tu(C0(go),function(No){return[No]});return yo=Pl(yo),qv(go,To,function(No,Lo){return yo(No,Lo[0])})}function xC(go,yo,To){yo=Q1(yo,go);var No=-1,Lo=yo.length;for(Lo||(Lo=1,go=ro);++Noyo){var No=go;go=yo,yo=No}if(To||go%1||yo%1){var Lo=Cv();return ju(go+Lo*(yo-go+$1("1e-"+((Lo+"").length-1))),yo)}return g0(go,yo)}var OC=Cp(function(go,yo,To){return yo=yo.toLowerCase(),go+(To?r_(yo):yo)});function r_(go){return H0(pu(go).toLowerCase())}function n_(go){return go=pu(go),go&&go.replace(Is,E_).replace(Hm,"")}function DC(go,yo,To){go=pu(go),yo=Ju(yo);var No=go.length;To=To===ro?No:lp(Jl(To),0,No);var Lo=To;return To-=yo.length,To>=0&&go.slice(To,Lo)==yo}function MC(go){return go=pu(go),go&&gu.test(go)?go.replace(Ql,x_):go}function BC(go){return go=pu(go),go&&$u.test(go)?go.replace(vu,"\\$&"):go}var LC=Cp(function(go,yo,To){return go+(To?"-":"")+yo.toLowerCase()}),FC=Cp(function(go,yo,To){return go+(To?" ":"")+yo.toLowerCase()}),jC=ay("toLowerCase");function PC(go,yo,To){go=pu(go),yo=Jl(yo);var No=yo?bp(go):0;if(!yo||No>=yo)return go;var Lo=(yo-No)/2;return Tm(dm(Lo),To)+go+Tm(cm(Lo),To)}function zC(go,yo,To){go=pu(go),yo=Jl(yo);var No=yo?bp(go):0;return yo&&No>>0,To?(go=pu(go),go&&(typeof yo=="string"||yo!=null&&!j0(yo))&&(yo=Ju(yo),!yo&&yp(go))?J1(m1(go),0,To):go.split(yo,To)):[]}var UC=Cp(function(go,yo,To){return go+(To?" ":"")+H0(yo)});function YC(go,yo,To){return go=pu(go),To=To==null?0:lp(Jl(To),0,go.length),yo=Ju(yo),go.slice(To,To+yo.length)==yo}function XC(go,yo,To){var No=Vo.templateSettings;To&&Gu(go,yo,To)&&(yo=ro),go=pu(go),yo=Bm({},yo,No,hy);var Lo=Bm({},yo.imports,No.imports,hy),Wo=Lu(Lo),ps=Jm(Lo,Wo),gs,Ss,Fs=0,Ps=yo.interpolate||Us,Vs="__p += '",ba=t0((yo.escape||Us).source+"|"+Ps.source+"|"+(Ps===ou?Po:Us).source+"|"+(yo.evaluate||Us).source+"|$","g"),Tl="//# sourceURL="+(yu.call(yo,"sourceURL")?(yo.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hl+"]")+` +`;go.replace(ba,function(Vl,nu,su,_d,Vu,_f){return su||(su=_d),Vs+=go.slice(Fs,_f).replace(Il,S_),nu&&(gs=!0,Vs+=`' + +__e(`+nu+`) + +'`),Vu&&(Ss=!0,Vs+=`'; +`+Vu+`; +__p += '`),su&&(Vs+=`' + +((__t = (`+su+`)) == null ? '' : __t) + +'`),Fs=_f+Vl.length,Vl}),Vs+=`'; +`;var Gl=yu.call(yo,"variable")&&yo.variable;if(!Gl)Vs=`with (obj) { +`+Vs+` +} +`;else if(Ko.test(Gl))throw new Yl(ao);Vs=(Ss?Vs.replace(au,""):Vs).replace(zl,"$1").replace(hu,"$1;"),Vs="function("+(Gl||"obj")+`) { +`+(Gl?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(gs?", __e = _.escape":"")+(Ss?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Vs+`return __p +}`;var eu=i_(function(){return uu(Wo,Tl+"return "+Vs).apply(ro,ps)});if(eu.source=Vs,F0(eu))throw eu;return eu}function ZC(go){return pu(go).toLowerCase()}function QC(go){return pu(go).toUpperCase()}function JC(go,yo,To){if(go=pu(go),go&&(To||yo===ro))return gv(go);if(!go||!(yo=Ju(yo)))return go;var No=m1(go),Lo=m1(yo),Wo=mv(No,Lo),ps=vv(No,Lo)+1;return J1(No,Wo,ps).join("")}function eA(go,yo,To){if(go=pu(go),go&&(To||yo===ro))return go.slice(0,bv(go)+1);if(!go||!(yo=Ju(yo)))return go;var No=m1(go),Lo=vv(No,m1(yo))+1;return J1(No,0,Lo).join("")}function tA(go,yo,To){if(go=pu(go),go&&(To||yo===ro))return go.replace(du,"");if(!go||!(yo=Ju(yo)))return go;var No=m1(go),Lo=mv(No,m1(yo));return J1(No,Lo).join("")}function rA(go,yo){var To=Io,No=$o;if(ku(yo)){var Lo="separator"in yo?yo.separator:Lo;To="length"in yo?Jl(yo.length):To,No="omission"in yo?Ju(yo.omission):No}go=pu(go);var Wo=go.length;if(yp(go)){var ps=m1(go);Wo=ps.length}if(To>=Wo)return go;var gs=To-bp(No);if(gs<1)return No;var Ss=ps?J1(ps,0,gs).join(""):go.slice(0,gs);if(Lo===ro)return Ss+No;if(ps&&(gs+=Ss.length-gs),j0(Lo)){if(go.slice(gs).search(Lo)){var Fs,Ps=Ss;for(Lo.global||(Lo=t0(Lo.source,pu(zo.exec(Lo))+"g")),Lo.lastIndex=0;Fs=Lo.exec(Ps);)var Vs=Fs.index;Ss=Ss.slice(0,Vs===ro?gs:Vs)}}else if(go.indexOf(Ju(Lo),gs)!=gs){var ba=Ss.lastIndexOf(Lo);ba>-1&&(Ss=Ss.slice(0,ba))}return Ss+No}function nA(go){return go=pu(go),go&&Dl.test(go)?go.replace(xu,I_):go}var oA=Cp(function(go,yo,To){return go+(To?" ":"")+yo.toUpperCase()}),H0=ay("toUpperCase");function o_(go,yo,To){return go=pu(go),yo=To?ro:yo,yo===ro?k_(go)?O_(go):m_(go):go.match(yo)||[]}var i_=tu(function(go,yo){try{return Zu(go,ro,yo)}catch(To){return F0(To)?To:new Yl(To)}}),iA=L1(function(go,yo){return o1(yo,function(To){To=C1(To),M1(go,To,B0(go[To],go))}),go});function sA(go){var yo=go==null?0:go.length,To=Pl();return go=yo?Tu(go,function(No){if(typeof No[1]!="function")throw new i1(so);return[To(No[0]),No[1]]}):[],tu(function(No){for(var Lo=-1;++LoGo)return[];var To=Zo,No=ju(go,Zo);yo=Pl(yo),go-=Zo;for(var Lo=Qm(No,yo);++To0||yo<0)?new iu(To):(go<0?To=To.takeRight(-go):go&&(To=To.drop(go)),yo!==ro&&(yo=Jl(yo),To=yo<0?To.dropRight(-yo):To.take(yo-go)),To)},iu.prototype.takeRightWhile=function(go){return this.reverse().takeWhile(go).reverse()},iu.prototype.toArray=function(){return this.take(Zo)},T1(iu.prototype,function(go,yo){var To=/^(?:filter|find|map|reject)|While$/.test(yo),No=/^(?:head|last)$/.test(yo),Lo=Vo[No?"take"+(yo=="last"?"Right":""):yo],Wo=No||/^find/.test(yo);Lo&&(Vo.prototype[yo]=function(){var ps=this.__wrapped__,gs=No?[1]:arguments,Ss=ps instanceof iu,Fs=gs[0],Ps=Ss||Xl(ps),Vs=function(nu){var su=Lo.apply(Vo,K1([nu],gs));return No&&ba?su[0]:su};Ps&&To&&typeof Fs=="function"&&Fs.length!=1&&(Ss=Ps=!1);var ba=this.__chain__,Tl=!!this.__actions__.length,Gl=Wo&&!ba,eu=Ss&&!Tl;if(!Wo&&Ps){ps=eu?ps:new iu(this);var Vl=go.apply(ps,gs);return Vl.__actions__.push({func:Rm,args:[Vs],thisArg:ro}),new s1(Vl,ba)}return Gl&&eu?go.apply(this,gs):(Vl=this.thru(Vs),Gl?No?Vl.value()[0]:Vl.value():Vl)})}),o1(["pop","push","shift","sort","splice","unshift"],function(go){var yo=tm[go],To=/^(?:push|sort|unshift)$/.test(go)?"tap":"thru",No=/^(?:pop|shift)$/.test(go);Vo.prototype[go]=function(){var Lo=arguments;if(No&&!this.__chain__){var Wo=this.value();return yo.apply(Xl(Wo)?Wo:[],Lo)}return this[To](function(ps){return yo.apply(Xl(ps)?ps:[],Lo)})}}),T1(iu.prototype,function(go,yo){var To=Vo[yo];if(To){var No=To.name+"";yu.call(Sp,No)||(Sp[No]=[]),Sp[No].push({name:yo,func:To})}}),Sp[xm(ro,xo).name]=[{name:"wrapper",func:ro}],iu.prototype.clone=tE,iu.prototype.reverse=rE,iu.prototype.value=nE,Vo.prototype.at=DS,Vo.prototype.chain=BS,Vo.prototype.commit=LS,Vo.prototype.next=FS,Vo.prototype.plant=PS,Vo.prototype.reverse=zS,Vo.prototype.toJSON=Vo.prototype.valueOf=Vo.prototype.value=HS,Vo.prototype.first=Vo.prototype.head,Mp&&(Vo.prototype[Mp]=jS),Vo},_p=D_();op?((op.exports=_p)._=_p,Vm._=_p):Du._=_p}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);var lodashExports=lodash$1.exports;const isImageDataObject=eo=>{if(!lodashExports.isPlainObject(eo))return!1;const to=Object.keys(eo);return to.length!==1?!1:to[0].startsWith("data:image/")},encodeImageDataObjectToMarkup=eo=>{const to=Object.keys(eo).find(ro=>ro.startsWith("data:image/"));return to?`![image](${eo[to]??""})`:""},listToMarkup=eo=>eo.map(to=>typeof to=="string"?to:isImageDataObject(to)?encodeImageDataObjectToMarkup(to):valueStringify(to)).join(` + +`),isChatInput=eo=>!!eo.is_chat_input,isChatHistory=(eo,to,ro=!1)=>eo!==FlowType.Chat||to.type!==ValueType.list?!1:Reflect.has(to,"is_chat_history")?!!to.is_chat_history:ro?!1:to.name===DEFAULT_CHAT_HISTORY_NAME,isChatOutput=eo=>!!eo.is_chat_output,makeChatMessageFromUser=(eo,to)=>{const ro=typeof eo=="string"?eo:Array.isArray(eo)?listToMarkup(eo):JSON.stringify(eo)??"",no=Array.isArray(eo)?JSON.stringify(eo):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.User,type:ChatMessageType$1.Text,content:ro,contentForCopy:no,timestamp:new Date().toISOString(),extraData:to}},makeChatMessageFromChatBot=(eo,to,ro,no)=>{const oo=typeof eo=="string"?eo:Array.isArray(eo)?listToMarkup(eo):JSON.stringify(eo)??"",io=Array.isArray(eo)?JSON.stringify(eo):void 0;return{id:uuid_1.v4(),from:ChatMessageFrom.Chatbot,type:ChatMessageType$1.Text,content:oo,contentForCopy:io,timestamp:new Date().toISOString(),duration:no==null?void 0:no.duration,tokens:no==null?void 0:no.total_tokens,error:ro,extraData:to}},parseChatMessages=(eo,to,ro)=>{const no=[];for(const oo of ro){const io=oo.inputs[eo],so=oo.outputs[to];if(typeof io=="string"&&typeof so=="string"){const ao={flowInputs:oo.inputs,flowOutputs:oo.outputs};no.push(makeChatMessageFromUser(io,ao)),no.push(makeChatMessageFromChatBot(so,ao))}else if(Array.isArray(io)&&Array.isArray(so)){const ao={flowInputs:oo.inputs,flowOutputs:oo.outputs};no.push(makeChatMessageFromUser(io,ao)),no.push(makeChatMessageFromChatBot(so,ao))}}return no};ValueType.AzureContentSafetyConnection,ValueType.AzureContentModeratorConnection,ValueType.OpenAIConnection,ValueType.AzureOpenAIConnection,ValueType.BingConnection,ValueType.CustomConnection,ValueType.SerpConnection,ValueType.CognitiveSearchConnection,ValueType.SubstrateLLMConnection,ValueType.QdrantConnection,ValueType.WeaviateConnection,ValueType.FormRecognizerConnection;const convertConnectionTypeToValueType=eo=>{switch(eo){case ConnectionType.AzureContentSafety:return ValueType.AzureContentSafetyConnection;case ConnectionType.AzureContentModerator:return ValueType.AzureContentModeratorConnection;case ConnectionType.Serp:return ValueType.SerpConnection;case ConnectionType.OpenAI:return ValueType.OpenAIConnection;case ConnectionType.Bing:return ValueType.BingConnection;case ConnectionType.AzureOpenAI:return ValueType.AzureOpenAIConnection;case ConnectionType.CognitiveSearch:return ValueType.CognitiveSearchConnection;case ConnectionType.SubstrateLLM:return ValueType.SubstrateLLMConnection;case ConnectionType.Custom:return ValueType.CustomConnection;default:return ValueType.CustomConnection}},getValueTypeByConnectionType=(eo,to)=>{var ro;return!to||to.length===0?convertConnectionTypeToValueType(eo):(ro=to.find(no=>no.connectionType===eo))==null?void 0:ro.flowValueType},getConnectionTypeByName=(eo,to,ro)=>{var oo;const no=(oo=eo==null?void 0:eo.find(io=>io.connectionName===ro))==null?void 0:oo.connectionType;if(no)return getValueTypeByConnectionType(no,to)};ValueType.AzureContentSafetyConnection+"",ValueType.BingConnection+"",ValueType.OpenAIConnection+"",ValueType.CustomConnection+"",ValueType.AzureOpenAIConnection+"",ValueType.AzureContentModeratorConnection+"",ValueType.SerpConnection+"",ValueType.CognitiveSearchConnection+"",ValueType.SubstrateLLMConnection+"",ValueType.PineconeConnection+"",ValueType.QdrantConnection+"",ValueType.WeaviateConnection+"",ValueType.FormRecognizerConnection+"",ValueType.ServerlessConnection+"";const safelyParseJson=(eo,to)=>{if(!eo)return to??"";try{return JSON.parse(eo)}catch{return to??""}},intNumberRegExp$1=/^[+-]?\d+$/,doubleNumberRegExp$1=/^[+-]?\d+(\.\d+)?$/,safelyParseInt=eo=>{try{const to=parseInt(eo,10);return isNaN(to)?eo:to}catch{return eo}},safelyParseFloat=eo=>{try{const to=parseFloat(eo);return isNaN(to)?eo:to}catch{return eo}},boolValues=["true","false","True","False",!0,!1],safelyParseBool=eo=>{try{return boolValues.includes(eo)?convertToBool(eo):eo}catch{return eo}},convertValByType=(eo,to)=>{var no;let ro=eo;if(!(((no=eo==null?void 0:eo.trim)==null?void 0:no.call(eo))===""&&to!==ValueType.string)){switch(to){case ValueType.int:ro=typeof ro=="string"&&intNumberRegExp$1.test(ro.trim())?safelyParseInt(ro):ro;break;case ValueType.double:ro=typeof ro=="string"&&doubleNumberRegExp$1.test(ro.trim())?safelyParseFloat(ro):ro;break;case ValueType.bool:ro=safelyParseBool(ro);break;case ValueType.string:ro=typeof ro=="object"?JSON.stringify(ro):String(ro??"");break;case ValueType.list:case ValueType.object:ro=typeof ro=="string"?safelyParseJson(ro,ro):ro;break}return ro}},inferTypeByVal=eo=>{if(typeof eo=="boolean")return ValueType.bool;if(typeof eo=="number")return Number.isInteger(eo)?ValueType.int:ValueType.double;if(Array.isArray(eo))return ValueType.list;if(typeof eo=="object"&&eo!==null)return ValueType.object;if(typeof eo=="string")return ValueType.string},filterNodeInputsKeys=(eo,to,ro,no,oo=!1)=>{const io=sortToolInputs(eo),so={...to};return Object.keys(io??{}).filter(uo=>{var fo;const co=io==null?void 0:io[uo];if(!oo&&(co==null?void 0:co.input_type)===InputType.uionly_hidden)return!1;if(co!=null&&co.enabled_by&&(co!=null&&co.enabled_by_value)){const po=io==null?void 0:io[co.enabled_by],ho=(so==null?void 0:so[co.enabled_by])??(po==null?void 0:po.default),mo=convertValByType(ho,(fo=po==null?void 0:po.type)==null?void 0:fo[0]),vo=co==null?void 0:co.enabled_by_value.includes(mo);return vo||(so[uo]=void 0),vo}if(co!=null&&co.enabled_by&&(co!=null&&co.enabled_by_type)){const po=so==null?void 0:so[co.enabled_by],ho=getConnectionTypeByName(ro??[],no??[],po??""),mo=ho?co==null?void 0:co.enabled_by_type.includes(ho):!1;return mo||(so[uo]=void 0),mo}return!0})},sortToolInputs=eo=>{let to=[];if(Object.values(eo??{}).some(oo=>{var io;return((io=oo.ui_hints)==null?void 0:io.index)!==void 0}))to=Object.keys(eo??{}).sort((oo,io)=>{var lo,uo,co,fo;const so=((uo=(lo=eo==null?void 0:eo[oo])==null?void 0:lo.ui_hints)==null?void 0:uo.index)??0,ao=((fo=(co=eo==null?void 0:eo[io])==null?void 0:co.ui_hints)==null?void 0:fo.index)??0;return so-ao});else{const oo=[],io={};Object.keys(eo??{}).forEach(ao=>{const lo=eo==null?void 0:eo[ao];lo!=null&&lo.enabled_by?(io[lo.enabled_by]||(io[lo.enabled_by]=[]),io[lo.enabled_by].push(ao)):oo.push(ao)});const so=ao=>{for(const lo of ao)to.push(lo),io[lo]&&so(io[lo])};so(oo)}const no={};for(const oo of to)no[oo]=eo==null?void 0:eo[oo];return no};var papaparse_min={exports:{}};/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/(function(eo,to){(function(ro,no){eo.exports=no()})(commonjsGlobal,function ro(){var no=typeof self<"u"?self:typeof window<"u"?window:no!==void 0?no:{},oo=!no.document&&!!no.postMessage,io=no.IS_PAPA_WORKER||!1,so={},ao=0,lo={parse:function(Ro,Ao){var Io=(Ao=Ao||{}).dynamicTyping||!1;if(Co(Io)&&(Ao.dynamicTypingFunction=Io,Io={}),Ao.dynamicTyping=Io,Ao.transform=!!Co(Ao.transform)&&Ao.transform,Ao.worker&&lo.WORKERS_SUPPORTED){var $o=function(){if(!lo.WORKERS_SUPPORTED)return!1;var Mo=(jo=no.URL||no.webkitURL||null,Oo=ro.toString(),lo.BLOB_URL||(lo.BLOB_URL=jo.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Oo,")();"],{type:"text/javascript"})))),Ho=new no.Worker(Mo),jo,Oo;return Ho.onmessage=_o,Ho.id=ao++,so[Ho.id]=Ho}();return $o.userStep=Ao.step,$o.userChunk=Ao.chunk,$o.userComplete=Ao.complete,$o.userError=Ao.error,Ao.step=Co(Ao.step),Ao.chunk=Co(Ao.chunk),Ao.complete=Co(Ao.complete),Ao.error=Co(Ao.error),delete Ao.worker,void $o.postMessage({input:Ro,config:Ao,workerId:$o.id})}var Bo=null;return lo.NODE_STREAM_INPUT,typeof Ro=="string"?(Ro=function(Mo){return Mo.charCodeAt(0)===65279?Mo.slice(1):Mo}(Ro),Bo=Ao.download?new fo(Ao):new ho(Ao)):Ro.readable===!0&&Co(Ro.read)&&Co(Ro.on)?Bo=new mo(Ao):(no.File&&Ro instanceof File||Ro instanceof Object)&&(Bo=new po(Ao)),Bo.stream(Ro)},unparse:function(Ro,Ao){var Io=!1,$o=!0,Bo=",",Mo=`\r +`,Ho='"',jo=Ho+Ho,Oo=!1,Fo=null,Go=!1;(function(){if(typeof Ao=="object"){if(typeof Ao.delimiter!="string"||lo.BAD_DELIMITERS.filter(function(Qo){return Ao.delimiter.indexOf(Qo)!==-1}).length||(Bo=Ao.delimiter),(typeof Ao.quotes=="boolean"||typeof Ao.quotes=="function"||Array.isArray(Ao.quotes))&&(Io=Ao.quotes),typeof Ao.skipEmptyLines!="boolean"&&typeof Ao.skipEmptyLines!="string"||(Oo=Ao.skipEmptyLines),typeof Ao.newline=="string"&&(Mo=Ao.newline),typeof Ao.quoteChar=="string"&&(Ho=Ao.quoteChar),typeof Ao.header=="boolean"&&($o=Ao.header),Array.isArray(Ao.columns)){if(Ao.columns.length===0)throw new Error("Option columns is empty");Fo=Ao.columns}Ao.escapeChar!==void 0&&(jo=Ao.escapeChar+Ho),(typeof Ao.escapeFormulae=="boolean"||Ao.escapeFormulae instanceof RegExp)&&(Go=Ao.escapeFormulae instanceof RegExp?Ao.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var qo=new RegExp(bo(Ho),"g");if(typeof Ro=="string"&&(Ro=JSON.parse(Ro)),Array.isArray(Ro)){if(!Ro.length||Array.isArray(Ro[0]))return Xo(null,Ro,Oo);if(typeof Ro[0]=="object")return Xo(Fo||Object.keys(Ro[0]),Ro,Oo)}else if(typeof Ro=="object")return typeof Ro.data=="string"&&(Ro.data=JSON.parse(Ro.data)),Array.isArray(Ro.data)&&(Ro.fields||(Ro.fields=Ro.meta&&Ro.meta.fields||Fo),Ro.fields||(Ro.fields=Array.isArray(Ro.data[0])?Ro.fields:typeof Ro.data[0]=="object"?Object.keys(Ro.data[0]):[]),Array.isArray(Ro.data[0])||typeof Ro.data[0]=="object"||(Ro.data=[Ro.data])),Xo(Ro.fields||[],Ro.data||[],Oo);throw new Error("Unable to serialize unrecognized input");function Xo(Qo,xs,Ts){var Rs="";typeof Qo=="string"&&(Qo=JSON.parse(Qo)),typeof xs=="string"&&(xs=JSON.parse(xs));var Os=Array.isArray(Qo)&&0=this._config.preview;if(io)no.postMessage({results:Mo,workerId:lo.WORKER_ID,finished:jo});else if(Co(this._config.chunk)&&!Io){if(this._config.chunk(Mo,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);Mo=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(Mo.data),this._completeResults.errors=this._completeResults.errors.concat(Mo.errors),this._completeResults.meta=Mo.meta),this._completed||!jo||!Co(this._config.complete)||Mo&&Mo.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),jo||Mo&&Mo.meta.paused||this._nextChunk(),Mo}this._halted=!0},this._sendError=function(Ao){Co(this._config.error)?this._config.error(Ao):io&&this._config.error&&no.postMessage({workerId:lo.WORKER_ID,error:Ao,finished:!1})}}function fo(Ro){var Ao;(Ro=Ro||{}).chunkSize||(Ro.chunkSize=lo.RemoteChunkSize),co.call(this,Ro),this._nextChunk=oo?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(Io){this._input=Io,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(Ao=new XMLHttpRequest,this._config.withCredentials&&(Ao.withCredentials=this._config.withCredentials),oo||(Ao.onload=wo(this._chunkLoaded,this),Ao.onerror=wo(this._chunkError,this)),Ao.open(this._config.downloadRequestBody?"POST":"GET",this._input,!oo),this._config.downloadRequestHeaders){var Io=this._config.downloadRequestHeaders;for(var $o in Io)Ao.setRequestHeader($o,Io[$o])}if(this._config.chunkSize){var Bo=this._start+this._config.chunkSize-1;Ao.setRequestHeader("Range","bytes="+this._start+"-"+Bo)}try{Ao.send(this._config.downloadRequestBody)}catch(Mo){this._chunkError(Mo.message)}oo&&Ao.status===0&&this._chunkError()}},this._chunkLoaded=function(){Ao.readyState===4&&(Ao.status<200||400<=Ao.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:Ao.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(Io){var $o=Io.getResponseHeader("Content-Range");return $o===null?-1:parseInt($o.substring($o.lastIndexOf("/")+1))}(Ao),this.parseChunk(Ao.responseText)))},this._chunkError=function(Io){var $o=Ao.statusText||Io;this._sendError(new Error($o))}}function po(Ro){var Ao,Io;(Ro=Ro||{}).chunkSize||(Ro.chunkSize=lo.LocalChunkSize),co.call(this,Ro);var $o=typeof FileReader<"u";this.stream=function(Bo){this._input=Bo,Io=Bo.slice||Bo.webkitSlice||Bo.mozSlice,$o?((Ao=new FileReader).onload=wo(this._chunkLoaded,this),Ao.onerror=wo(this._chunkError,this)):Ao=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(Bo.target.result)},this._chunkError=function(){this._sendError(Ao.error)}}function ho(Ro){var Ao;co.call(this,Ro=Ro||{}),this.stream=function(Io){return Ao=Io,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var Io,$o=this._config.chunkSize;return $o?(Io=Ao.substring(0,$o),Ao=Ao.substring($o)):(Io=Ao,Ao=""),this._finished=!Ao,this.parseChunk(Io)}}}function mo(Ro){co.call(this,Ro=Ro||{});var Ao=[],Io=!0,$o=!1;this.pause=function(){co.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){co.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(Bo){this._input=Bo,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){$o&&Ao.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),Ao.length?this.parseChunk(Ao.shift()):Io=!0},this._streamData=wo(function(Bo){try{Ao.push(typeof Bo=="string"?Bo:Bo.toString(this._config.encoding)),Io&&(Io=!1,this._checkIsFinished(),this.parseChunk(Ao.shift()))}catch(Mo){this._streamError(Mo)}},this),this._streamError=wo(function(Bo){this._streamCleanUp(),this._sendError(Bo)},this),this._streamEnd=wo(function(){this._streamCleanUp(),$o=!0,this._streamData("")},this),this._streamCleanUp=wo(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function vo(Ro){var Ao,Io,$o,Bo=Math.pow(2,53),Mo=-Bo,Ho=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,jo=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Oo=this,Fo=0,Go=0,qo=!1,Xo=!1,Zo=[],Qo={data:[],errors:[],meta:{}};if(Co(Ro.step)){var xs=Ro.step;Ro.step=function(Jo){if(Qo=Jo,Os())Rs();else{if(Rs(),Qo.data.length===0)return;Fo+=Jo.data.length,Ro.preview&&Fo>Ro.preview?Io.abort():(Qo.data=Qo.data[0],xs(Qo,Oo))}}}function Ts(Jo){return Ro.skipEmptyLines==="greedy"?Jo.join("").trim()==="":Jo.length===1&&Jo[0].length===0}function Rs(){return Qo&&$o&&(Ds("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+lo.DefaultDelimiter+"'"),$o=!1),Ro.skipEmptyLines&&(Qo.data=Qo.data.filter(function(Jo){return!Ts(Jo)})),Os()&&function(){if(!Qo)return;function Jo(Bs,zs){Co(Ro.transformHeader)&&(Bs=Ro.transformHeader(Bs,zs)),Zo.push(Bs)}if(Array.isArray(Qo.data[0])){for(var Cs=0;Os()&&Cs=Zo.length?"__parsed_extra":Zo[Ls]),Ro.transform&&(Zs=Ro.transform(Zs,Js)),Zs=As(Js,Zs),Js==="__parsed_extra"?(ga[Js]=ga[Js]||[],ga[Js].push(Zs)):ga[Js]=Zs}return Ro.header&&(Ls>Zo.length?Ds("FieldMismatch","TooManyFields","Too many fields: expected "+Zo.length+" fields but parsed "+Ls,Go+zs):Ls=Ll.length/2?`\r +`:"\r"}(Jo,zs)),$o=!1,Ro.delimiter)Co(Ro.delimiter)&&(Ro.delimiter=Ro.delimiter(Jo),Qo.meta.delimiter=Ro.delimiter);else{var Ls=function(Js,Zs,$a,Ll,Kl){var Zl,$l,xa,Sl;Kl=Kl||[","," ","|",";",lo.RECORD_SEP,lo.UNIT_SEP];for(var cu=0;cu=Ho)return Hs(!0)}else for(ks=Fo,Fo++;;){if((ks=qo.indexOf(Ao,ks+1))===-1)return Zo||Ds.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:As.length,index:Fo}),Ks();if(ks===Qo-1)return Ks(qo.substring(Fo,ks).replace(cu,Ao));if(Ao!==Oo||qo[ks+1]!==Oo){if(Ao===Oo||ks===0||qo[ks-1]!==Oo){xa!==-1&&xa=Ho)return Hs(!0);break}Ds.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:As.length,index:Fo}),ks++}}else ks++}return Ks();function ws(El){As.push(El),Cs=Fo}function Gs(El){var xl=0;if(El!==-1){var Ol=qo.substring(ks+1,El);Ol&&Ol.trim()===""&&(xl=Ol.length)}return xl}function Ks(El){return Zo||(El===void 0&&(El=qo.substring(Fo)),Jo.push(El),Fo=Qo,ws(Jo),Os&&Qs()),Hs()}function Ms(El){Fo=El,ws(Jo),Jo=[],Sl=qo.indexOf($o,Fo)}function Hs(El){return{data:As,errors:Ds,meta:{delimiter:Io,linebreak:$o,aborted:Go,truncated:!!El,cursor:Cs+(Xo||0)}}}function Qs(){Mo(Hs()),As=[],Ds=[]}},this.abort=function(){Go=!0},this.getCharIndex=function(){return Fo}}function _o(Ro){var Ao=Ro.data,Io=so[Ao.workerId],$o=!1;if(Ao.error)Io.userError(Ao.error,Ao.file);else if(Ao.results&&Ao.results.data){var Bo={abort:function(){$o=!0,So(Ao.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Eo,resume:Eo};if(Co(Io.userStep)){for(var Mo=0;Mo{const no={};return Object.keys(eo).forEach(oo=>{const io=eo[oo];oo===to?no[ro]=io:no[oo]=io}),no},getDefaultNodeVariant=eo=>{const{defaultVariantId:to=BASELINE_VARIANT_ID,variants:ro={}}=eo,no=ro[to];return no==null?void 0:no.node},getDefaultNodeList=(eo,to)=>{const ro=[];return eo.forEach(no=>{const oo=to.get(no);if(!oo)return;const io=getDefaultNodeVariant(oo);io&&ro.push(io)}),ro},getFlowSnapshotNodeList=(eo,to,ro)=>{const no=[];return eo.forEach(oo=>{if(ro.includes(oo)){no.push({name:oo,use_variants:!0});return}const io=to[oo];if(!io)return;const so={inputs:{},...getDefaultNodeVariant(io)};so&&no.push(so)}),no};ToolType.llm;ToolType.prompt;ValueType.string,ToolType.python;ValueType.string,ToolType.typescript;const getTokensUsageByRow=eo=>{var to,ro,no,oo,io,so;return eo.children&&eo.children.length>0?eo.children.reduce((ao,lo)=>{const uo=getTokensUsageByRow(lo);return{totalTokens:ao.totalTokens+uo.totalTokens,promptTokens:ao.promptTokens+uo.promptTokens,completionTokens:ao.completionTokens+uo.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((ro=(to=eo.output)==null?void 0:to.usage)==null?void 0:ro.total_tokens)??0,promptTokens:((oo=(no=eo.output)==null?void 0:no.usage)==null?void 0:oo.prompt_tokens)??0,completionTokens:((so=(io=eo.output)==null?void 0:io.usage)==null?void 0:so.completion_tokens)??0}},numberToDigitsString=eo=>eo.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),timePDTFormatter=eo=>{const to=new Date(eo),ro=getUTCTimezoneOffset();return`${to.getFullYear()}-${to.getMonth()+1}-${to.getDate()} ${to.getHours()}:${to.getMinutes()}:${to.getSeconds()}:${to.getMilliseconds()} (${ro})`},getUTCTimezoneOffset=()=>{const eo=new Date().getTimezoneOffset(),to=Math.abs(eo);return`UTC${(eo<0?"+":"-")+`00${Math.floor(to/60)}`.slice(-2)}:${`00${to%60}`.slice(-2)}`},hasOwn=(eo,to)=>Object.prototype.hasOwnProperty.call(eo,to),resolveTool=(eo,to,ro,no)=>{var oo,io,so;if(((oo=eo==null?void 0:eo.source)==null?void 0:oo.type)==="code")return to;if(((io=eo==null?void 0:eo.source)==null?void 0:io.type)==="package_with_prompt"){const ao=(so=eo==null?void 0:eo.source)==null?void 0:so.path,lo=no(ao??"");return ro?{...ro,inputs:{...lo==null?void 0:lo.inputs,...addPositionField(ro==null?void 0:ro.inputs,"parameter")},code:lo==null?void 0:lo.code}:void 0}return ro},addPositionField=(eo,to)=>{if(!eo)return eo;const ro={...eo};return Object.keys(ro).forEach(no=>{ro[no]={...ro[no],position:to}}),ro},keyWords=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],keyFunction=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],flowWords=["input","inputs","output","outputs","flow","flows"],checkNodeNameValid=eo=>keyWords.some(to=>to===eo)||keyFunction.some(to=>to===eo)||flowWords.some(to=>to===eo)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(eo),getNodesThatMoreThanOneVariant=(eo={})=>{const to=[];return Object.keys(eo).forEach(ro=>{const no=eo[ro],{variants:oo={},defaultVariantId:io,default_variant_id:so}=no,ao=Object.keys(oo).length;ao>1&&to.push({nodeName:ro,variantsCount:ao,defaultVariantId:io??so??BASELINE_VARIANT_ID,variants:oo})}),to},getVariantNodes=(eo={})=>{const to={};return Object.keys(eo).forEach(ro=>{const no=eo[ro],{variants:oo={}}=no;if(Object.keys(oo).length>1){const so=lodashExports.cloneDeep(no);Object.entries((so==null?void 0:so.variants)??{}).forEach(([lo,uo])=>{uo.node&&delete uo.node.name});const ao=so.defaultVariantId;delete so.defaultVariantId,to[ro]={default_variant_id:ao,...so}}}),Object.keys(to).length>0?to:void 0},revValueRegex=/^\$\{(\S+)\}$/,getRefValueFromRaw=eo=>{var to,ro;return(ro=(to=`${eo??""}`)==null?void 0:to.match(revValueRegex))==null?void 0:ro[1]},generateRandomStrings=eo=>{const to="abcdefghijklmnopqrstuvwxyz0123456789";let ro="";for(let no=0;nogenerateRandomStrings(8),getRandomOutputDefinitionId=getRandomInputDefinitionId,intNumberRegExp=/^[+-]?\d+$/,doubleNumberRegExp=/^[+-]?\d+(\.\d+)?$/,isBool=eo=>eo.toLowerCase()==="true"||eo.toLowerCase()==="false",isNumber=eo=>doubleNumberRegExp.test(eo.trim())?eo===eo.trim()&&eo.length>0&&!Number.isNaN(Number(eo)):!1,isInt=eo=>intNumberRegExp.test(eo.trim())?isNumber(eo)&&Number.isInteger(Number(eo)):!1,isList$1=eo=>{try{const to=JSON.parse(eo);return Array.isArray(to)}catch{return!1}},isObject$f=eo=>{try{const to=JSON.parse(eo);return Object.prototype.toString.call(to)==="[object Object]"}catch{return!1}},isTypeValid=(eo,to)=>{const ro=typeof eo,no=ro==="string";switch(to){case ValueType.int:return no?isInt(eo):Number.isInteger(eo);case ValueType.double:return no?isNumber(eo):ro==="number";case ValueType.list:return no?isList$1(eo):Array.isArray(eo);case ValueType.object:return no?isObject$f(eo):ro==="object";case ValueType.bool:return no?isBool(eo):ro==="boolean";case ValueType.function_str:return!0;default:return!0}},getCycle=(eo,to,ro,no)=>{var so,ao;const oo=[],io=new Set(eo.keys());for(eo.forEach((lo,uo)=>{lo===0&&oo.push(uo)});oo.length>0;){const lo=oo.shift();lo&&(io.delete(lo),(so=to.get(lo))==null||so.forEach(uo=>{const co=(eo.get(uo)??0)-1;eo.set(uo,co),co===0&&oo.push(uo)}))}for(ro.forEach((lo,uo)=>{lo===0&&oo.push(uo)});oo.length>0;){const lo=oo.shift();lo&&(io.delete(lo),(ao=no.get(lo))==null||ao.forEach(uo=>{const co=(ro.get(uo)??0)-1;ro.set(uo,co),co===0&&oo.push(uo)}))}return io};function commonjsRequire$1(eo){throw new Error('Could not dynamically require "'+eo+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(eo,to){return eo===to||eo!==eo&&to!==to}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(eo,to){for(var ro=eo.length;ro--;)if(eq$3(eo[ro][0],to))return ro;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(eo){var to=this.__data__,ro=assocIndexOf$3(to,eo);if(ro<0)return!1;var no=to.length-1;return ro==no?to.pop():splice.call(to,ro,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(eo){var to=this.__data__,ro=assocIndexOf$2(to,eo);return ro<0?void 0:to[ro][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(eo){return assocIndexOf$1(this.__data__,eo)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(eo,to){var ro=this.__data__,no=assocIndexOf(ro,eo);return no<0?(++this.size,ro.push([eo,to])):ro[no][1]=to,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(eo){var to=-1,ro=eo==null?0:eo.length;for(this.clear();++to-1&&eo%1==0&&eo-1&&eo%1==0&&eo<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$6=isObjectLike_1,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$4="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$4]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(eo){return isObjectLike$6(eo)&&isLength$2(eo.length)&&!!typedArrayTags[baseGetTag$4(eo)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$4(eo){return function(to){return eo(to)}}var _baseUnary=baseUnary$4,_nodeUtil={exports:{}};_nodeUtil.exports;(function(eo,to){var ro=_freeGlobal,no=to&&!to.nodeType&&to,oo=no&&!0&&eo&&!eo.nodeType&&eo,io=oo&&oo.exports===no,so=io&&ro.process,ao=function(){try{var lo=oo&&oo.require&&oo.require("util").types;return lo||so&&so.binding&&so.binding("util")}catch{}}();eo.exports=ao})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$3=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary$3(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$d=isArray_1,isBuffer$2=isBufferExports,isIndex$2=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function arrayLikeKeys$2(eo,to){var ro=isArray$d(eo),no=!ro&&isArguments$2(eo),oo=!ro&&!no&&isBuffer$2(eo),io=!ro&&!no&&!oo&&isTypedArray$1(eo),so=ro||no||oo||io,ao=so?baseTimes(eo.length,String):[],lo=ao.length;for(var uo in eo)(to||hasOwnProperty$8.call(eo,uo))&&!(so&&(uo=="length"||oo&&(uo=="offset"||uo=="parent")||io&&(uo=="buffer"||uo=="byteLength"||uo=="byteOffset")||isIndex$2(uo,lo)))&&ao.push(uo);return ao}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$7=Object.prototype;function isPrototype$3(eo){var to=eo&&eo.constructor,ro=typeof to=="function"&&to.prototype||objectProto$7;return eo===ro}var _isPrototype=isPrototype$3;function overArg$2(eo,to){return function(ro){return eo(to(ro))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function baseKeys$1(eo){if(!isPrototype$2(eo))return nativeKeys(eo);var to=[];for(var ro in Object(eo))hasOwnProperty$7.call(eo,ro)&&ro!="constructor"&&to.push(ro);return to}var _baseKeys=baseKeys$1,isFunction$3=isFunction_1,isLength$1=isLength_1;function isArrayLike$8(eo){return eo!=null&&isLength$1(eo.length)&&!isFunction$3(eo)}var isArrayLike_1=isArrayLike$8,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$7=isArrayLike_1;function keys$6(eo){return isArrayLike$7(eo)?arrayLikeKeys$1(eo):baseKeys(eo)}var keys_1=keys$6,copyObject$3=_copyObject,keys$5=keys_1;function baseAssign$1(eo,to){return eo&©Object$3(to,keys$5(to),eo)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(eo){var to=[];if(eo!=null)for(var ro in Object(eo))to.push(ro);return to}var _nativeKeysIn=nativeKeysIn$1,isObject$b=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function baseKeysIn$1(eo){if(!isObject$b(eo))return nativeKeysIn(eo);var to=isPrototype$1(eo),ro=[];for(var no in eo)no=="constructor"&&(to||!hasOwnProperty$6.call(eo,no))||ro.push(no);return ro}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$6=isArrayLike_1;function keysIn$3(eo){return isArrayLike$6(eo)?arrayLikeKeys(eo,!0):baseKeysIn(eo)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(eo,to){return eo&©Object$2(to,keysIn$2(to),eo)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(eo,to){var ro=_root$1,no=to&&!to.nodeType&&to,oo=no&&!0&&eo&&!eo.nodeType&&eo,io=oo&&oo.exports===no,so=io?ro.Buffer:void 0,ao=so?so.allocUnsafe:void 0;function lo(uo,co){if(co)return uo.slice();var fo=uo.length,po=ao?ao(fo):new uo.constructor(fo);return uo.copy(po),po}eo.exports=lo})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(eo,to){var ro=-1,no=eo.length;for(to||(to=Array(no));++roao))return!1;var uo=io.get(eo),co=io.get(to);if(uo&&co)return uo==to&&co==eo;var fo=-1,po=!0,ho=ro&COMPARE_UNORDERED_FLAG$3?new SetCache$1:void 0;for(io.set(eo,to),io.set(to,eo);++fo0&&ro(ao)?to>1?baseFlatten$2(ao,to-1,ro,no,oo):arrayPush$1(oo,ao):no||(oo[oo.length]=ao)}return oo}var _baseFlatten=baseFlatten$2;function apply$2(eo,to,ro){switch(ro.length){case 0:return eo.call(to);case 1:return eo.call(to,ro[0]);case 2:return eo.call(to,ro[0],ro[1]);case 3:return eo.call(to,ro[0],ro[1],ro[2])}return eo.apply(to,ro)}var _apply=apply$2,apply$1=_apply,nativeMax$2=Math.max;function overRest$2(eo,to,ro){return to=nativeMax$2(to===void 0?eo.length-1:to,0),function(){for(var no=arguments,oo=-1,io=nativeMax$2(no.length-to,0),so=Array(io);++oo0){if(++to>=HOT_COUNT)return arguments[0]}else to=0;return eo.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$5=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$1(eo,to){return setToString$1(overRest$1(eo,to,identity$5),eo+"")}var _baseRest=baseRest$1;function baseFindIndex$2(eo,to,ro,no){for(var oo=eo.length,io=ro+(no?1:-1);no?io--:++io-1}var _arrayIncludes=arrayIncludes$1;function arrayIncludesWith$1(eo,to,ro){for(var no=-1,oo=eo==null?0:eo.length;++no=LARGE_ARRAY_SIZE){var uo=to?null:createSet(eo);if(uo)return setToArray(uo);so=!1,oo=cacheHas,lo=new SetCache}else lo=to?[]:ao;e:for(;++no1?ho.setNode(mo,fo):ho.setNode(mo)}),this},oo.prototype.setNode=function(co,fo){return eo.has(this._nodes,co)?(arguments.length>1&&(this._nodes[co]=fo),this):(this._nodes[co]=arguments.length>1?fo:this._defaultNodeLabelFn(co),this._isCompound&&(this._parent[co]=ro,this._children[co]={},this._children[ro][co]=!0),this._in[co]={},this._preds[co]={},this._out[co]={},this._sucs[co]={},++this._nodeCount,this)},oo.prototype.node=function(co){return this._nodes[co]},oo.prototype.hasNode=function(co){return eo.has(this._nodes,co)},oo.prototype.removeNode=function(co){var fo=this;if(eo.has(this._nodes,co)){var po=function(ho){fo.removeEdge(fo._edgeObjs[ho])};delete this._nodes[co],this._isCompound&&(this._removeFromParentsChildList(co),delete this._parent[co],eo.each(this.children(co),function(ho){fo.setParent(ho)}),delete this._children[co]),eo.each(eo.keys(this._in[co]),po),delete this._in[co],delete this._preds[co],eo.each(eo.keys(this._out[co]),po),delete this._out[co],delete this._sucs[co],--this._nodeCount}return this},oo.prototype.setParent=function(co,fo){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(eo.isUndefined(fo))fo=ro;else{fo+="";for(var po=fo;!eo.isUndefined(po);po=this.parent(po))if(po===co)throw new Error("Setting "+fo+" as parent of "+co+" would create a cycle");this.setNode(fo)}return this.setNode(co),this._removeFromParentsChildList(co),this._parent[co]=fo,this._children[fo][co]=!0,this},oo.prototype._removeFromParentsChildList=function(co){delete this._children[this._parent[co]][co]},oo.prototype.parent=function(co){if(this._isCompound){var fo=this._parent[co];if(fo!==ro)return fo}},oo.prototype.children=function(co){if(eo.isUndefined(co)&&(co=ro),this._isCompound){var fo=this._children[co];if(fo)return eo.keys(fo)}else{if(co===ro)return this.nodes();if(this.hasNode(co))return[]}},oo.prototype.predecessors=function(co){var fo=this._preds[co];if(fo)return eo.keys(fo)},oo.prototype.successors=function(co){var fo=this._sucs[co];if(fo)return eo.keys(fo)},oo.prototype.neighbors=function(co){var fo=this.predecessors(co);if(fo)return eo.union(fo,this.successors(co))},oo.prototype.isLeaf=function(co){var fo;return this.isDirected()?fo=this.successors(co):fo=this.neighbors(co),fo.length===0},oo.prototype.filterNodes=function(co){var fo=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});fo.setGraph(this.graph());var po=this;eo.each(this._nodes,function(vo,bo){co(bo)&&fo.setNode(bo,vo)}),eo.each(this._edgeObjs,function(vo){fo.hasNode(vo.v)&&fo.hasNode(vo.w)&&fo.setEdge(vo,po.edge(vo))});var ho={};function mo(vo){var bo=po.parent(vo);return bo===void 0||fo.hasNode(bo)?(ho[vo]=bo,bo):bo in ho?ho[bo]:mo(bo)}return this._isCompound&&eo.each(fo.nodes(),function(vo){fo.setParent(vo,mo(vo))}),fo},oo.prototype.setDefaultEdgeLabel=function(co){return eo.isFunction(co)||(co=eo.constant(co)),this._defaultEdgeLabelFn=co,this},oo.prototype.edgeCount=function(){return this._edgeCount},oo.prototype.edges=function(){return eo.values(this._edgeObjs)},oo.prototype.setPath=function(co,fo){var po=this,ho=arguments;return eo.reduce(co,function(mo,vo){return ho.length>1?po.setEdge(mo,vo,fo):po.setEdge(mo,vo),vo}),this},oo.prototype.setEdge=function(){var co,fo,po,ho,mo=!1,vo=arguments[0];typeof vo=="object"&&vo!==null&&"v"in vo?(co=vo.v,fo=vo.w,po=vo.name,arguments.length===2&&(ho=arguments[1],mo=!0)):(co=vo,fo=arguments[1],po=arguments[3],arguments.length>2&&(ho=arguments[2],mo=!0)),co=""+co,fo=""+fo,eo.isUndefined(po)||(po=""+po);var bo=ao(this._isDirected,co,fo,po);if(eo.has(this._edgeLabels,bo))return mo&&(this._edgeLabels[bo]=ho),this;if(!eo.isUndefined(po)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(co),this.setNode(fo),this._edgeLabels[bo]=mo?ho:this._defaultEdgeLabelFn(co,fo,po);var xo=lo(this._isDirected,co,fo,po);return co=xo.v,fo=xo.w,Object.freeze(xo),this._edgeObjs[bo]=xo,io(this._preds[fo],co),io(this._sucs[co],fo),this._in[fo][bo]=xo,this._out[co][bo]=xo,this._edgeCount++,this},oo.prototype.edge=function(co,fo,po){var ho=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,po);return this._edgeLabels[ho]},oo.prototype.hasEdge=function(co,fo,po){var ho=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,po);return eo.has(this._edgeLabels,ho)},oo.prototype.removeEdge=function(co,fo,po){var ho=arguments.length===1?uo(this._isDirected,arguments[0]):ao(this._isDirected,co,fo,po),mo=this._edgeObjs[ho];return mo&&(co=mo.v,fo=mo.w,delete this._edgeLabels[ho],delete this._edgeObjs[ho],so(this._preds[fo],co),so(this._sucs[co],fo),delete this._in[fo][ho],delete this._out[co][ho],this._edgeCount--),this},oo.prototype.inEdges=function(co,fo){var po=this._in[co];if(po){var ho=eo.values(po);return fo?eo.filter(ho,function(mo){return mo.v===fo}):ho}},oo.prototype.outEdges=function(co,fo){var po=this._out[co];if(po){var ho=eo.values(po);return fo?eo.filter(ho,function(mo){return mo.w===fo}):ho}},oo.prototype.nodeEdges=function(co,fo){var po=this.inEdges(co,fo);if(po)return po.concat(this.outEdges(co,fo))};function io(co,fo){co[fo]?co[fo]++:co[fo]=1}function so(co,fo){--co[fo]||delete co[fo]}function ao(co,fo,po,ho){var mo=""+fo,vo=""+po;if(!co&&mo>vo){var bo=mo;mo=vo,vo=bo}return mo+no+vo+no+(eo.isUndefined(ho)?to:ho)}function lo(co,fo,po,ho){var mo=""+fo,vo=""+po;if(!co&&mo>vo){var bo=mo;mo=vo,vo=bo}var xo={v:mo,w:vo};return ho&&(xo.name=ho),xo}function uo(co,fo){return ao(co,fo.v,fo.w,fo.name)}return graph}var version$1,hasRequiredVersion;function requireVersion(){return hasRequiredVersion||(hasRequiredVersion=1,version$1="2.1.8"),version$1}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={Graph:requireGraph(),version:requireVersion()}),lib}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var eo=requireLodash(),to=requireGraph();json={write:ro,read:io};function ro(so){var ao={options:{directed:so.isDirected(),multigraph:so.isMultigraph(),compound:so.isCompound()},nodes:no(so),edges:oo(so)};return eo.isUndefined(so.graph())||(ao.value=eo.clone(so.graph())),ao}function no(so){return eo.map(so.nodes(),function(ao){var lo=so.node(ao),uo=so.parent(ao),co={v:ao};return eo.isUndefined(lo)||(co.value=lo),eo.isUndefined(uo)||(co.parent=uo),co})}function oo(so){return eo.map(so.edges(),function(ao){var lo=so.edge(ao),uo={v:ao.v,w:ao.w};return eo.isUndefined(ao.name)||(uo.name=ao.name),eo.isUndefined(lo)||(uo.value=lo),uo})}function io(so){var ao=new to(so.options).setGraph(so.value);return eo.each(so.nodes,function(lo){ao.setNode(lo.v,lo.value),lo.parent&&ao.setParent(lo.v,lo.parent)}),eo.each(so.edges,function(lo){ao.setEdge({v:lo.v,w:lo.w,name:lo.name},lo.value)}),ao}return json}var components_1,hasRequiredComponents;function requireComponents(){if(hasRequiredComponents)return components_1;hasRequiredComponents=1;var eo=requireLodash();components_1=to;function to(ro){var no={},oo=[],io;function so(ao){eo.has(no,ao)||(no[ao]=!0,io.push(ao),eo.each(ro.successors(ao),so),eo.each(ro.predecessors(ao),so))}return eo.each(ro.nodes(),function(ao){io=[],so(ao),io.length&&oo.push(io)}),oo}return components_1}var priorityQueue,hasRequiredPriorityQueue;function requirePriorityQueue(){if(hasRequiredPriorityQueue)return priorityQueue;hasRequiredPriorityQueue=1;var eo=requireLodash();priorityQueue=to;function to(){this._arr=[],this._keyIndices={}}return to.prototype.size=function(){return this._arr.length},to.prototype.keys=function(){return this._arr.map(function(ro){return ro.key})},to.prototype.has=function(ro){return eo.has(this._keyIndices,ro)},to.prototype.priority=function(ro){var no=this._keyIndices[ro];if(no!==void 0)return this._arr[no].priority},to.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},to.prototype.add=function(ro,no){var oo=this._keyIndices;if(ro=String(ro),!eo.has(oo,ro)){var io=this._arr,so=io.length;return oo[ro]=so,io.push({key:ro,priority:no}),this._decrease(so),!0}return!1},to.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var ro=this._arr.pop();return delete this._keyIndices[ro.key],this._heapify(0),ro.key},to.prototype.decrease=function(ro,no){var oo=this._keyIndices[ro];if(no>this._arr[oo].priority)throw new Error("New priority is greater than current priority. Key: "+ro+" Old: "+this._arr[oo].priority+" New: "+no);this._arr[oo].priority=no,this._decrease(oo)},to.prototype._heapify=function(ro){var no=this._arr,oo=2*ro,io=oo+1,so=ro;oo>1,!(no[io].priority0&&(fo=co.removeMin(),po=uo[fo],po.distance!==Number.POSITIVE_INFINITY);)lo(fo).forEach(ho);return uo}return dijkstra_1}var dijkstraAll_1,hasRequiredDijkstraAll;function requireDijkstraAll(){if(hasRequiredDijkstraAll)return dijkstraAll_1;hasRequiredDijkstraAll=1;var eo=requireDijkstra(),to=requireLodash();dijkstraAll_1=ro;function ro(no,oo,io){return to.transform(no.nodes(),function(so,ao){so[ao]=eo(no,ao,oo,io)},{})}return dijkstraAll_1}var tarjan_1,hasRequiredTarjan;function requireTarjan(){if(hasRequiredTarjan)return tarjan_1;hasRequiredTarjan=1;var eo=requireLodash();tarjan_1=to;function to(ro){var no=0,oo=[],io={},so=[];function ao(lo){var uo=io[lo]={onStack:!0,lowlink:no,index:no++};if(oo.push(lo),ro.successors(lo).forEach(function(po){eo.has(io,po)?io[po].onStack&&(uo.lowlink=Math.min(uo.lowlink,io[po].index)):(ao(po),uo.lowlink=Math.min(uo.lowlink,io[po].lowlink))}),uo.lowlink===uo.index){var co=[],fo;do fo=oo.pop(),io[fo].onStack=!1,co.push(fo);while(lo!==fo);so.push(co)}}return ro.nodes().forEach(function(lo){eo.has(io,lo)||ao(lo)}),so}return tarjan_1}var findCycles_1,hasRequiredFindCycles;function requireFindCycles(){if(hasRequiredFindCycles)return findCycles_1;hasRequiredFindCycles=1;var eo=requireLodash(),to=requireTarjan();findCycles_1=ro;function ro(no){return eo.filter(to(no),function(oo){return oo.length>1||oo.length===1&&no.hasEdge(oo[0],oo[0])})}return findCycles_1}var floydWarshall_1,hasRequiredFloydWarshall;function requireFloydWarshall(){if(hasRequiredFloydWarshall)return floydWarshall_1;hasRequiredFloydWarshall=1;var eo=requireLodash();floydWarshall_1=ro;var to=eo.constant(1);function ro(oo,io,so){return no(oo,io||to,so||function(ao){return oo.outEdges(ao)})}function no(oo,io,so){var ao={},lo=oo.nodes();return lo.forEach(function(uo){ao[uo]={},ao[uo][uo]={distance:0},lo.forEach(function(co){uo!==co&&(ao[uo][co]={distance:Number.POSITIVE_INFINITY})}),so(uo).forEach(function(co){var fo=co.v===uo?co.w:co.v,po=io(co);ao[uo][fo]={distance:po,predecessor:uo}})}),lo.forEach(function(uo){var co=ao[uo];lo.forEach(function(fo){var po=ao[fo];lo.forEach(function(ho){var mo=po[uo],vo=co[ho],bo=po[ho],xo=mo.distance+vo.distance;xo0;){if(uo=lo.removeMin(),eo.has(ao,uo))so.setEdge(uo,ao[uo]);else{if(fo)throw new Error("Input graph is not connected: "+oo);fo=!0}oo.nodeEdges(uo).forEach(co)}return so}return prim_1}var alg,hasRequiredAlg;function requireAlg(){return hasRequiredAlg||(hasRequiredAlg=1,alg={components:requireComponents(),dijkstra:requireDijkstra(),dijkstraAll:requireDijkstraAll(),findCycles:requireFindCycles(),floydWarshall:requireFloydWarshall(),isAcyclic:requireIsAcyclic(),postorder:requirePostorder(),preorder:requirePreorder(),prim:requirePrim(),tarjan:requireTarjan(),topsort:requireTopsort()}),alg}var graphlib$1,hasRequiredGraphlib;function requireGraphlib(){if(hasRequiredGraphlib)return graphlib$1;hasRequiredGraphlib=1;var eo=requireLib();return graphlib$1={Graph:eo.Graph,json:requireJson(),alg:requireAlg(),version:eo.version},graphlib$1}var graphlib;if(typeof commonjsRequire$1=="function")try{graphlib=requireGraphlib()}catch{}graphlib||(graphlib=window.graphlib);var graphlib_1=graphlib,cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var eo=_baseClone,to=1,ro=4;function no(oo){return eo(oo,to|ro)}return cloneDeep_1=no,cloneDeep_1}var eq=eq_1,isArrayLike$3=isArrayLike_1,isIndex=_isIndex,isObject$7=isObject_1;function isIterateeCall$2(eo,to,ro){if(!isObject$7(ro))return!1;var no=typeof to;return(no=="number"?isArrayLike$3(ro)&&isIndex(to,ro.length):no=="string"&&to in ro)?eq(ro[to],eo):!1}var _isIterateeCall=isIterateeCall$2,defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var eo=_baseRest,to=eq_1,ro=_isIterateeCall,no=keysIn_1,oo=Object.prototype,io=oo.hasOwnProperty,so=eo(function(ao,lo){ao=Object(ao);var uo=-1,co=lo.length,fo=co>2?lo[2]:void 0;for(fo&&ro(lo[0],lo[1],fo)&&(co=1);++uo-1?oo[io?to[so]:so]:void 0}}var _createFind=createFind$1,reWhitespace=/\s/;function trimmedEndIndex$1(eo){for(var to=eo.length;to--&&reWhitespace.test(eo.charAt(to)););return to}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(eo){return eo&&eo.slice(0,trimmedEndIndex(eo)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$6=isObject_1,isSymbol$2=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(eo){if(typeof eo=="number")return eo;if(isSymbol$2(eo))return NAN;if(isObject$6(eo)){var to=typeof eo.valueOf=="function"?eo.valueOf():eo;eo=isObject$6(to)?to+"":to}if(typeof eo!="string")return eo===0?eo:+eo;eo=baseTrim(eo);var ro=reIsBinary.test(eo);return ro||reIsOctal.test(eo)?freeParseInt(eo.slice(2),ro?2:8):reIsBadHex.test(eo)?NAN:+eo}var toNumber_1=toNumber$1,toNumber=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(eo){if(!eo)return eo===0?eo:0;if(eo=toNumber(eo),eo===INFINITY||eo===-INFINITY){var to=eo<0?-1:1;return to*MAX_INTEGER}return eo===eo?eo:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$1(eo){var to=toFinite$1(eo),ro=to%1;return to===to?ro?to-ro:to:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee$3=_baseIteratee,toInteger=toInteger_1,nativeMax$1=Math.max;function findIndex$1(eo,to,ro){var no=eo==null?0:eo.length;if(!no)return-1;var oo=ro==null?0:toInteger(ro);return oo<0&&(oo=nativeMax$1(no+oo,0)),baseFindIndex(eo,baseIteratee$3(to),oo)}var findIndex_1=findIndex$1,createFind=_createFind,findIndex=findIndex_1,find=createFind(findIndex),find_1=find,baseFlatten$1=_baseFlatten;function flatten$1(eo){var to=eo==null?0:eo.length;return to?baseFlatten$1(eo,1):[]}var flatten_1=flatten$1,forIn_1,hasRequiredForIn;function requireForIn(){if(hasRequiredForIn)return forIn_1;hasRequiredForIn=1;var eo=_baseFor,to=require_castFunction(),ro=keysIn_1;function no(oo,io){return oo==null?oo:eo(oo,to(io),ro)}return forIn_1=no,forIn_1}function last(eo){var to=eo==null?0:eo.length;return to?eo[to-1]:void 0}var last_1=last,baseAssignValue=_baseAssignValue,baseForOwn=_baseForOwn,baseIteratee$2=_baseIteratee;function mapValues(eo,to){var ro={};return to=baseIteratee$2(to),baseForOwn(eo,function(no,oo,io){baseAssignValue(ro,oo,to(no,oo,io))}),ro}var mapValues_1=mapValues,isSymbol$1=isSymbol_1;function baseExtremum$3(eo,to,ro){for(var no=-1,oo=eo.length;++noto}var _baseGt=baseGt$1,baseExtremum$2=_baseExtremum,baseGt=_baseGt,identity$4=identity_1;function max$1(eo){return eo&&eo.length?baseExtremum$2(eo,identity$4,baseGt):void 0}var max_1=max$1,_assignMergeValue,hasRequired_assignMergeValue;function require_assignMergeValue(){if(hasRequired_assignMergeValue)return _assignMergeValue;hasRequired_assignMergeValue=1;var eo=_baseAssignValue,to=eq_1;function ro(no,oo,io){(io!==void 0&&!to(no[oo],io)||io===void 0&&!(oo in no))&&eo(no,oo,io)}return _assignMergeValue=ro,_assignMergeValue}var baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(eo){if(!isObjectLike(eo)||baseGetTag(eo)!=objectTag)return!1;var to=getPrototype(eo);if(to===null)return!0;var ro=hasOwnProperty$2.call(to,"constructor")&&to.constructor;return typeof ro=="function"&&ro instanceof ro&&funcToString.call(ro)==objectCtorString}var isPlainObject_1=isPlainObject$1,_safeGet,hasRequired_safeGet;function require_safeGet(){if(hasRequired_safeGet)return _safeGet;hasRequired_safeGet=1;function eo(to,ro){if(!(ro==="constructor"&&typeof to[ro]=="function")&&ro!="__proto__")return to[ro]}return _safeGet=eo,_safeGet}var toPlainObject_1,hasRequiredToPlainObject;function requireToPlainObject(){if(hasRequiredToPlainObject)return toPlainObject_1;hasRequiredToPlainObject=1;var eo=_copyObject,to=keysIn_1;function ro(no){return eo(no,to(no))}return toPlainObject_1=ro,toPlainObject_1}var _baseMergeDeep,hasRequired_baseMergeDeep;function require_baseMergeDeep(){if(hasRequired_baseMergeDeep)return _baseMergeDeep;hasRequired_baseMergeDeep=1;var eo=require_assignMergeValue(),to=_cloneBufferExports,ro=_cloneTypedArray,no=_copyArray,oo=_initCloneObject,io=isArguments_1,so=isArray_1,ao=requireIsArrayLikeObject(),lo=isBufferExports,uo=isFunction_1,co=isObject_1,fo=isPlainObject_1,po=isTypedArray_1,ho=require_safeGet(),mo=requireToPlainObject();function vo(bo,xo,_o,So,Eo,ko,wo){var Co=ho(bo,_o),Ro=ho(xo,_o),Ao=wo.get(Ro);if(Ao){eo(bo,_o,Ao);return}var Io=ko?ko(Co,Ro,_o+"",bo,xo,wo):void 0,$o=Io===void 0;if($o){var Bo=so(Ro),Mo=!Bo&&lo(Ro),Ho=!Bo&&!Mo&&po(Ro);Io=Ro,Bo||Mo||Ho?so(Co)?Io=Co:ao(Co)?Io=no(Co):Mo?($o=!1,Io=to(Ro,!0)):Ho?($o=!1,Io=ro(Ro,!0)):Io=[]:fo(Ro)||io(Ro)?(Io=Co,io(Co)?Io=mo(Co):(!co(Co)||uo(Co))&&(Io=oo(Ro))):$o=!1}$o&&(wo.set(Ro,Io),Eo(Io,Ro,So,ko,wo),wo.delete(Ro)),eo(bo,_o,Io)}return _baseMergeDeep=vo,_baseMergeDeep}var _baseMerge,hasRequired_baseMerge;function require_baseMerge(){if(hasRequired_baseMerge)return _baseMerge;hasRequired_baseMerge=1;var eo=_Stack,to=require_assignMergeValue(),ro=_baseFor,no=require_baseMergeDeep(),oo=isObject_1,io=keysIn_1,so=require_safeGet();function ao(lo,uo,co,fo,po){lo!==uo&&ro(uo,function(ho,mo){if(po||(po=new eo),oo(ho))no(lo,uo,mo,co,ao,fo,po);else{var vo=fo?fo(so(lo,mo),ho,mo+"",lo,uo,po):void 0;vo===void 0&&(vo=ho),to(lo,mo,vo)}},io)}return _baseMerge=ao,_baseMerge}var _createAssigner,hasRequired_createAssigner;function require_createAssigner(){if(hasRequired_createAssigner)return _createAssigner;hasRequired_createAssigner=1;var eo=_baseRest,to=_isIterateeCall;function ro(no){return eo(function(oo,io){var so=-1,ao=io.length,lo=ao>1?io[ao-1]:void 0,uo=ao>2?io[2]:void 0;for(lo=no.length>3&&typeof lo=="function"?(ao--,lo):void 0,uo&&to(io[0],io[1],uo)&&(lo=ao<3?void 0:lo,ao=1),oo=Object(oo);++soto||io&&so&&lo&&!ao&&!uo||no&&so&&lo||!ro&&lo||!oo)return 1;if(!no&&!io&&!uo&&eo=ao)return lo;var uo=ro[no];return lo*(uo=="desc"?-1:1)}}return eo.index-to.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary=_baseUnary,compareMultiple=_compareMultiple,identity$2=identity_1,isArray$1=isArray_1;function baseOrderBy$1(eo,to,ro){to.length?to=arrayMap(to,function(io){return isArray$1(io)?function(so){return baseGet(so,io.length===1?io[0]:io)}:io}):to=[identity$2];var no=-1;to=arrayMap(to,baseUnary(baseIteratee));var oo=baseMap(eo,function(io,so,ao){var lo=arrayMap(to,function(uo){return uo(io)});return{criteria:lo,index:++no,value:io}});return baseSortBy(oo,function(io,so){return compareMultiple(io,so,ro)})}var _baseOrderBy=baseOrderBy$1,baseFlatten=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest=_baseRest,isIterateeCall=_isIterateeCall,sortBy=baseRest(function(eo,to){if(eo==null)return[];var ro=to.length;return ro>1&&isIterateeCall(eo,to[0],to[1])?to=[]:ro>2&&isIterateeCall(to[0],to[1],to[2])&&(to=[to[0]]),baseOrderBy(eo,baseFlatten(to,1),[])}),sortBy_1=sortBy,uniqueId_1,hasRequiredUniqueId;function requireUniqueId(){if(hasRequiredUniqueId)return uniqueId_1;hasRequiredUniqueId=1;var eo=toString_1,to=0;function ro(no){var oo=++to;return eo(no)+oo}return uniqueId_1=ro,uniqueId_1}var _baseZipObject,hasRequired_baseZipObject;function require_baseZipObject(){if(hasRequired_baseZipObject)return _baseZipObject;hasRequired_baseZipObject=1;function eo(to,ro,no){for(var oo=-1,io=to.length,so=ro.length,ao={};++oo0;--ao)if(so=to[ao].dequeue(),so){no=no.concat(removeNode(eo,to,ro,so,!0));break}}}return no}function removeNode(eo,to,ro,no,oo){var io=oo?[]:void 0;return _$u.forEach(eo.inEdges(no.v),function(so){var ao=eo.edge(so),lo=eo.node(so.v);oo&&io.push({v:so.v,w:so.w}),lo.out-=ao,assignBucket(to,ro,lo)}),_$u.forEach(eo.outEdges(no.v),function(so){var ao=eo.edge(so),lo=so.w,uo=eo.node(lo);uo.in-=ao,assignBucket(to,ro,uo)}),eo.removeNode(no.v),io}function buildState(eo,to){var ro=new Graph$8,no=0,oo=0;_$u.forEach(eo.nodes(),function(ao){ro.setNode(ao,{v:ao,in:0,out:0})}),_$u.forEach(eo.edges(),function(ao){var lo=ro.edge(ao.v,ao.w)||0,uo=to(ao),co=lo+uo;ro.setEdge(ao.v,ao.w,co),oo=Math.max(oo,ro.node(ao.v).out+=uo),no=Math.max(no,ro.node(ao.w).in+=uo)});var io=_$u.range(oo+no+3).map(function(){return new List$2}),so=no+1;return _$u.forEach(ro.nodes(),function(ao){assignBucket(io,so,ro.node(ao))}),{graph:ro,buckets:io,zeroIdx:so}}function assignBucket(eo,to,ro){ro.out?ro.in?eo[ro.out-ro.in+to].enqueue(ro):eo[eo.length-1].enqueue(ro):eo[0].enqueue(ro)}var _$t=lodash_1,greedyFAS=greedyFas,acyclic$1={run:run$2,undo:undo$3};function run$2(eo){var to=eo.graph().acyclicer==="greedy"?greedyFAS(eo,ro(eo)):dfsFAS(eo);_$t.forEach(to,function(no){var oo=eo.edge(no);eo.removeEdge(no),oo.forwardName=no.name,oo.reversed=!0,eo.setEdge(no.w,no.v,oo,_$t.uniqueId("rev"))});function ro(no){return function(oo){return no.edge(oo).weight}}}function dfsFAS(eo){var to=[],ro={},no={};function oo(io){_$t.has(no,io)||(no[io]=!0,ro[io]=!0,_$t.forEach(eo.outEdges(io),function(so){_$t.has(ro,so.w)?to.push(so):oo(so.w)}),delete ro[io])}return _$t.forEach(eo.nodes(),oo),to}function undo$3(eo){_$t.forEach(eo.edges(),function(to){var ro=eo.edge(to);if(ro.reversed){eo.removeEdge(to);var no=ro.forwardName;delete ro.reversed,delete ro.forwardName,eo.setEdge(to.w,to.v,ro,no)}})}var _$s=lodash_1,Graph$7=graphlib_1.Graph,util$a={addDummyNode,simplify:simplify$1,asNonCompoundGraph,successorWeights,predecessorWeights,intersectRect,buildLayerMatrix,normalizeRanks:normalizeRanks$1,removeEmptyRanks:removeEmptyRanks$1,addBorderNode:addBorderNode$1,maxRank,partition,time,notime};function addDummyNode(eo,to,ro,no){var oo;do oo=_$s.uniqueId(no);while(eo.hasNode(oo));return ro.dummy=to,eo.setNode(oo,ro),oo}function simplify$1(eo){var to=new Graph$7().setGraph(eo.graph());return _$s.forEach(eo.nodes(),function(ro){to.setNode(ro,eo.node(ro))}),_$s.forEach(eo.edges(),function(ro){var no=to.edge(ro.v,ro.w)||{weight:0,minlen:1},oo=eo.edge(ro);to.setEdge(ro.v,ro.w,{weight:no.weight+oo.weight,minlen:Math.max(no.minlen,oo.minlen)})}),to}function asNonCompoundGraph(eo){var to=new Graph$7({multigraph:eo.isMultigraph()}).setGraph(eo.graph());return _$s.forEach(eo.nodes(),function(ro){eo.children(ro).length||to.setNode(ro,eo.node(ro))}),_$s.forEach(eo.edges(),function(ro){to.setEdge(ro,eo.edge(ro))}),to}function successorWeights(eo){var to=_$s.map(eo.nodes(),function(ro){var no={};return _$s.forEach(eo.outEdges(ro),function(oo){no[oo.w]=(no[oo.w]||0)+eo.edge(oo).weight}),no});return _$s.zipObject(eo.nodes(),to)}function predecessorWeights(eo){var to=_$s.map(eo.nodes(),function(ro){var no={};return _$s.forEach(eo.inEdges(ro),function(oo){no[oo.v]=(no[oo.v]||0)+eo.edge(oo).weight}),no});return _$s.zipObject(eo.nodes(),to)}function intersectRect(eo,to){var ro=eo.x,no=eo.y,oo=to.x-ro,io=to.y-no,so=eo.width/2,ao=eo.height/2;if(!oo&&!io)throw new Error("Not possible to find intersection inside of the rectangle");var lo,uo;return Math.abs(io)*so>Math.abs(oo)*ao?(io<0&&(ao=-ao),lo=ao*oo/io,uo=ao):(oo<0&&(so=-so),lo=so,uo=so*io/oo),{x:ro+lo,y:no+uo}}function buildLayerMatrix(eo){var to=_$s.map(_$s.range(maxRank(eo)+1),function(){return[]});return _$s.forEach(eo.nodes(),function(ro){var no=eo.node(ro),oo=no.rank;_$s.isUndefined(oo)||(to[oo][no.order]=ro)}),to}function normalizeRanks$1(eo){var to=_$s.min(_$s.map(eo.nodes(),function(ro){return eo.node(ro).rank}));_$s.forEach(eo.nodes(),function(ro){var no=eo.node(ro);_$s.has(no,"rank")&&(no.rank-=to)})}function removeEmptyRanks$1(eo){var to=_$s.min(_$s.map(eo.nodes(),function(io){return eo.node(io).rank})),ro=[];_$s.forEach(eo.nodes(),function(io){var so=eo.node(io).rank-to;ro[so]||(ro[so]=[]),ro[so].push(io)});var no=0,oo=eo.graph().nodeRankFactor;_$s.forEach(ro,function(io,so){_$s.isUndefined(io)&&so%oo!==0?--no:no&&_$s.forEach(io,function(ao){eo.node(ao).rank+=no})})}function addBorderNode$1(eo,to,ro,no){var oo={width:0,height:0};return arguments.length>=4&&(oo.rank=ro,oo.order=no),addDummyNode(eo,"border",oo,to)}function maxRank(eo){return _$s.max(_$s.map(eo.nodes(),function(to){var ro=eo.node(to).rank;if(!_$s.isUndefined(ro))return ro}))}function partition(eo,to){var ro={lhs:[],rhs:[]};return _$s.forEach(eo,function(no){to(no)?ro.lhs.push(no):ro.rhs.push(no)}),ro}function time(eo,to){var ro=_$s.now();try{return to()}finally{console.log(eo+" time: "+(_$s.now()-ro)+"ms")}}function notime(eo,to){return to()}var _$r=lodash_1,util$9=util$a,normalize$1={run:run$1,undo:undo$2};function run$1(eo){eo.graph().dummyChains=[],_$r.forEach(eo.edges(),function(to){normalizeEdge(eo,to)})}function normalizeEdge(eo,to){var ro=to.v,no=eo.node(ro).rank,oo=to.w,io=eo.node(oo).rank,so=to.name,ao=eo.edge(to),lo=ao.labelRank;if(io!==no+1){eo.removeEdge(to);var uo,co,fo;for(fo=0,++no;noso.lim&&(ao=so,lo=!0);var uo=_$o.filter(to.edges(),function(co){return lo===isDescendant(eo,eo.node(co.v),ao)&&lo!==isDescendant(eo,eo.node(co.w),ao)});return _$o.minBy(uo,function(co){return slack(to,co)})}function exchangeEdges(eo,to,ro,no){var oo=ro.v,io=ro.w;eo.removeEdge(oo,io),eo.setEdge(no.v,no.w,{}),initLowLimValues(eo),initCutValues(eo,to),updateRanks(eo,to)}function updateRanks(eo,to){var ro=_$o.find(eo.nodes(),function(oo){return!to.node(oo).parent}),no=preorder(eo,ro);no=no.slice(1),_$o.forEach(no,function(oo){var io=eo.node(oo).parent,so=to.edge(oo,io),ao=!1;so||(so=to.edge(io,oo),ao=!0),to.node(oo).rank=to.node(io).rank+(ao?so.minlen:-so.minlen)})}function isTreeEdge(eo,to,ro){return eo.hasEdge(to,ro)}function isDescendant(eo,to,ro){return ro.low<=to.lim&&to.lim<=ro.lim}var rankUtil=util$8,longestPath=rankUtil.longestPath,feasibleTree=feasibleTree_1,networkSimplex=networkSimplex_1,rank_1=rank$1;function rank$1(eo){switch(eo.graph().ranker){case"network-simplex":networkSimplexRanker(eo);break;case"tight-tree":tightTreeRanker(eo);break;case"longest-path":longestPathRanker(eo);break;default:networkSimplexRanker(eo)}}var longestPathRanker=longestPath;function tightTreeRanker(eo){longestPath(eo),feasibleTree(eo)}function networkSimplexRanker(eo){networkSimplex(eo)}var _$n=lodash_1,parentDummyChains_1=parentDummyChains$1;function parentDummyChains$1(eo){var to=postorder(eo);_$n.forEach(eo.graph().dummyChains,function(ro){for(var no=eo.node(ro),oo=no.edgeObj,io=findPath(eo,to,oo.v,oo.w),so=io.path,ao=io.lca,lo=0,uo=so[lo],co=!0;ro!==oo.w;){if(no=eo.node(ro),co){for(;(uo=so[lo])!==ao&&eo.node(uo).maxRankso||ao>to[lo].lim));for(uo=lo,lo=no;(lo=eo.parent(lo))!==uo;)io.push(lo);return{path:oo.concat(io.reverse()),lca:uo}}function postorder(eo){var to={},ro=0;function no(oo){var io=ro;_$n.forEach(eo.children(oo),no),to[oo]={low:io,lim:ro++}}return _$n.forEach(eo.children(),no),to}var _$m=lodash_1,util$7=util$a,nestingGraph$1={run,cleanup:cleanup$1};function run(eo){var to=util$7.addDummyNode(eo,"root",{},"_root"),ro=treeDepths(eo),no=_$m.max(_$m.values(ro))-1,oo=2*no+1;eo.graph().nestingRoot=to,_$m.forEach(eo.edges(),function(so){eo.edge(so).minlen*=oo});var io=sumWeights(eo)+1;_$m.forEach(eo.children(),function(so){dfs(eo,to,oo,io,no,ro,so)}),eo.graph().nodeRankFactor=oo}function dfs(eo,to,ro,no,oo,io,so){var ao=eo.children(so);if(!ao.length){so!==to&&eo.setEdge(to,so,{weight:0,minlen:ro});return}var lo=util$7.addBorderNode(eo,"_bt"),uo=util$7.addBorderNode(eo,"_bb"),co=eo.node(so);eo.setParent(lo,so),co.borderTop=lo,eo.setParent(uo,so),co.borderBottom=uo,_$m.forEach(ao,function(fo){dfs(eo,to,ro,no,oo,io,fo);var po=eo.node(fo),ho=po.borderTop?po.borderTop:fo,mo=po.borderBottom?po.borderBottom:fo,vo=po.borderTop?no:2*no,bo=ho!==mo?1:oo-io[so]+1;eo.setEdge(lo,ho,{weight:vo,minlen:bo,nestingEdge:!0}),eo.setEdge(mo,uo,{weight:vo,minlen:bo,nestingEdge:!0})}),eo.parent(so)||eo.setEdge(to,lo,{weight:0,minlen:oo+io[so]})}function treeDepths(eo){var to={};function ro(no,oo){var io=eo.children(no);io&&io.length&&_$m.forEach(io,function(so){ro(so,oo+1)}),to[no]=oo}return _$m.forEach(eo.children(),function(no){ro(no,1)}),to}function sumWeights(eo){return _$m.reduce(eo.edges(),function(to,ro){return to+eo.edge(ro).weight},0)}function cleanup$1(eo){var to=eo.graph();eo.removeNode(to.nestingRoot),delete to.nestingRoot,_$m.forEach(eo.edges(),function(ro){var no=eo.edge(ro);no.nestingEdge&&eo.removeEdge(ro)})}var _$l=lodash_1,util$6=util$a,addBorderSegments_1=addBorderSegments$1;function addBorderSegments$1(eo){function to(ro){var no=eo.children(ro),oo=eo.node(ro);if(no.length&&_$l.forEach(no,to),_$l.has(oo,"minRank")){oo.borderLeft=[],oo.borderRight=[];for(var io=oo.minRank,so=oo.maxRank+1;io0;)co%2&&(fo+=ao[co+1]),co=co-1>>1,ao[co]+=uo.weight;lo+=uo.weight*fo})),lo}var _$h=lodash_1,barycenter_1=barycenter$1;function barycenter$1(eo,to){return _$h.map(to,function(ro){var no=eo.inEdges(ro);if(no.length){var oo=_$h.reduce(no,function(io,so){var ao=eo.edge(so),lo=eo.node(so.v);return{sum:io.sum+ao.weight*lo.order,weight:io.weight+ao.weight}},{sum:0,weight:0});return{v:ro,barycenter:oo.sum/oo.weight,weight:oo.weight}}else return{v:ro}})}var _$g=lodash_1,resolveConflicts_1=resolveConflicts$1;function resolveConflicts$1(eo,to){var ro={};_$g.forEach(eo,function(oo,io){var so=ro[oo.v]={indegree:0,in:[],out:[],vs:[oo.v],i:io};_$g.isUndefined(oo.barycenter)||(so.barycenter=oo.barycenter,so.weight=oo.weight)}),_$g.forEach(to.edges(),function(oo){var io=ro[oo.v],so=ro[oo.w];!_$g.isUndefined(io)&&!_$g.isUndefined(so)&&(so.indegree++,io.out.push(ro[oo.w]))});var no=_$g.filter(ro,function(oo){return!oo.indegree});return doResolveConflicts(no)}function doResolveConflicts(eo){var to=[];function ro(io){return function(so){so.merged||(_$g.isUndefined(so.barycenter)||_$g.isUndefined(io.barycenter)||so.barycenter>=io.barycenter)&&mergeEntries(io,so)}}function no(io){return function(so){so.in.push(io),--so.indegree===0&&eo.push(so)}}for(;eo.length;){var oo=eo.pop();to.push(oo),_$g.forEach(oo.in.reverse(),ro(oo)),_$g.forEach(oo.out,no(oo))}return _$g.map(_$g.filter(to,function(io){return!io.merged}),function(io){return _$g.pick(io,["vs","i","barycenter","weight"])})}function mergeEntries(eo,to){var ro=0,no=0;eo.weight&&(ro+=eo.barycenter*eo.weight,no+=eo.weight),to.weight&&(ro+=to.barycenter*to.weight,no+=to.weight),eo.vs=to.vs.concat(eo.vs),eo.barycenter=ro/no,eo.weight=no,eo.i=Math.min(to.i,eo.i),to.merged=!0}var _$f=lodash_1,util$5=util$a,sort_1=sort$1;function sort$1(eo,to){var ro=util$5.partition(eo,function(co){return _$f.has(co,"barycenter")}),no=ro.lhs,oo=_$f.sortBy(ro.rhs,function(co){return-co.i}),io=[],so=0,ao=0,lo=0;no.sort(compareWithBias(!!to)),lo=consumeUnsortable(io,oo,lo),_$f.forEach(no,function(co){lo+=co.vs.length,io.push(co.vs),so+=co.barycenter*co.weight,ao+=co.weight,lo=consumeUnsortable(io,oo,lo)});var uo={vs:_$f.flatten(io,!0)};return ao&&(uo.barycenter=so/ao,uo.weight=ao),uo}function consumeUnsortable(eo,to,ro){for(var no;to.length&&(no=_$f.last(to)).i<=ro;)to.pop(),eo.push(no.vs),ro++;return ro}function compareWithBias(eo){return function(to,ro){return to.barycenterro.barycenter?1:eo?ro.i-to.i:to.i-ro.i}}var _$e=lodash_1,barycenter=barycenter_1,resolveConflicts=resolveConflicts_1,sort=sort_1,sortSubgraph_1=sortSubgraph$1;function sortSubgraph$1(eo,to,ro,no){var oo=eo.children(to),io=eo.node(to),so=io?io.borderLeft:void 0,ao=io?io.borderRight:void 0,lo={};so&&(oo=_$e.filter(oo,function(mo){return mo!==so&&mo!==ao}));var uo=barycenter(eo,oo);_$e.forEach(uo,function(mo){if(eo.children(mo.v).length){var vo=sortSubgraph$1(eo,mo.v,ro,no);lo[mo.v]=vo,_$e.has(vo,"barycenter")&&mergeBarycenters(mo,vo)}});var co=resolveConflicts(uo,ro);expandSubgraphs(co,lo);var fo=sort(co,no);if(so&&(fo.vs=_$e.flatten([so,fo.vs,ao],!0),eo.predecessors(so).length)){var po=eo.node(eo.predecessors(so)[0]),ho=eo.node(eo.predecessors(ao)[0]);_$e.has(fo,"barycenter")||(fo.barycenter=0,fo.weight=0),fo.barycenter=(fo.barycenter*fo.weight+po.order+ho.order)/(fo.weight+2),fo.weight+=2}return fo}function expandSubgraphs(eo,to){_$e.forEach(eo,function(ro){ro.vs=_$e.flatten(ro.vs.map(function(no){return to[no]?to[no].vs:no}),!0)})}function mergeBarycenters(eo,to){_$e.isUndefined(eo.barycenter)?(eo.barycenter=to.barycenter,eo.weight=to.weight):(eo.barycenter=(eo.barycenter*eo.weight+to.barycenter*to.weight)/(eo.weight+to.weight),eo.weight+=to.weight)}var _$d=lodash_1,Graph$5=graphlib_1.Graph,buildLayerGraph_1=buildLayerGraph$1;function buildLayerGraph$1(eo,to,ro){var no=createRootNode(eo),oo=new Graph$5({compound:!0}).setGraph({root:no}).setDefaultNodeLabel(function(io){return eo.node(io)});return _$d.forEach(eo.nodes(),function(io){var so=eo.node(io),ao=eo.parent(io);(so.rank===to||so.minRank<=to&&to<=so.maxRank)&&(oo.setNode(io),oo.setParent(io,ao||no),_$d.forEach(eo[ro](io),function(lo){var uo=lo.v===io?lo.w:lo.v,co=oo.edge(uo,io),fo=_$d.isUndefined(co)?0:co.weight;oo.setEdge(uo,io,{weight:eo.edge(lo).weight+fo})}),_$d.has(so,"minRank")&&oo.setNode(io,{borderLeft:so.borderLeft[to],borderRight:so.borderRight[to]}))}),oo}function createRootNode(eo){for(var to;eo.hasNode(to=_$d.uniqueId("_root")););return to}var _$c=lodash_1,addSubgraphConstraints_1=addSubgraphConstraints$1;function addSubgraphConstraints$1(eo,to,ro){var no={},oo;_$c.forEach(ro,function(io){for(var so=eo.parent(io),ao,lo;so;){if(ao=eo.parent(so),ao?(lo=no[ao],no[ao]=so):(lo=oo,oo=so),lo&&lo!==so){to.setEdge(lo,so);return}so=ao}})}var _$b=lodash_1,initOrder=initOrder_1,crossCount=crossCount_1,sortSubgraph=sortSubgraph_1,buildLayerGraph=buildLayerGraph_1,addSubgraphConstraints=addSubgraphConstraints_1,Graph$4=graphlib_1.Graph,util$4=util$a,order_1=order$1;function order$1(eo){var to=util$4.maxRank(eo),ro=buildLayerGraphs(eo,_$b.range(1,to+1),"inEdges"),no=buildLayerGraphs(eo,_$b.range(to-1,-1,-1),"outEdges"),oo=initOrder(eo);assignOrder(eo,oo);for(var io=Number.POSITIVE_INFINITY,so,ao=0,lo=0;lo<4;++ao,++lo){sweepLayerGraphs(ao%2?ro:no,ao%4>=2),oo=util$4.buildLayerMatrix(eo);var uo=crossCount(eo,oo);uouo)&&addConflict(ro,po,co)})})}function oo(io,so){var ao=-1,lo,uo=0;return _$a.forEach(so,function(co,fo){if(eo.node(co).dummy==="border"){var po=eo.predecessors(co);po.length&&(lo=eo.node(po[0]).order,no(so,uo,fo,ao,lo),uo=fo,ao=lo)}no(so,uo,so.length,lo,io.length)}),so}return _$a.reduce(to,oo),ro}function findOtherInnerSegmentNode(eo,to){if(eo.node(to).dummy)return _$a.find(eo.predecessors(to),function(ro){return eo.node(ro).dummy})}function addConflict(eo,to,ro){if(to>ro){var no=to;to=ro,ro=no}var oo=eo[to];oo||(eo[to]=oo={}),oo[ro]=!0}function hasConflict(eo,to,ro){if(to>ro){var no=to;to=ro,ro=no}return _$a.has(eo[to],ro)}function verticalAlignment(eo,to,ro,no){var oo={},io={},so={};return _$a.forEach(to,function(ao){_$a.forEach(ao,function(lo,uo){oo[lo]=lo,io[lo]=lo,so[lo]=uo})}),_$a.forEach(to,function(ao){var lo=-1;_$a.forEach(ao,function(uo){var co=no(uo);if(co.length){co=_$a.sortBy(co,function(vo){return so[vo]});for(var fo=(co.length-1)/2,po=Math.floor(fo),ho=Math.ceil(fo);po<=ho;++po){var mo=co[po];io[uo]===uo&&lo=0;ao--)(so=eo[ao])&&(io=(oo<3?so(io):oo>3?so(to,ro,io):so(to,ro))||io);return oo>3&&io&&Object.defineProperty(to,ro,io),io}function __spreadArray$1(eo,to,ro){if(ro||arguments.length===2)for(var no=0,oo=to.length,io;no"u"?InjectionMode$1.none:InjectionMode$1.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(no=ro==null?void 0:ro.classNameToArgs)!==null&&no!==void 0?no:this._classNameToArgs,this._counter=(oo=ro==null?void 0:ro.counter)!==null&&oo!==void 0?oo:this._counter,this._keyToClassName=(so=(io=this._config.classNameCache)!==null&&io!==void 0?io:ro==null?void 0:ro.keyToClassName)!==null&&so!==void 0?so:this._keyToClassName,this._preservedRules=(ao=ro==null?void 0:ro.preservedRules)!==null&&ao!==void 0?ao:this._preservedRules,this._rules=(lo=ro==null?void 0:ro.rules)!==null&&lo!==void 0?lo:this._rules}return eo.getInstance=function(){if(_stylesheet$1=_global$2[STYLESHEET_SETTING$1],!_stylesheet$1||_stylesheet$1._lastStyleElement&&_stylesheet$1._lastStyleElement.ownerDocument!==document){var to=(_global$2==null?void 0:_global$2.FabricConfig)||{},ro=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet$1=ro,_global$2[STYLESHEET_SETTING$1]=ro}return _stylesheet$1},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$4(__assign$4({},this._config),to)},eo.prototype.onReset=function(to){var ro=this;return this._onResetCallbacks.push(to),function(){ro._onResetCallbacks=ro._onResetCallbacks.filter(function(no){return no!==to})}},eo.prototype.onInsertRule=function(to){var ro=this;return this._onInsertRuleCallbacks.push(to),function(){ro._onInsertRuleCallbacks=ro._onInsertRuleCallbacks.filter(function(no){return no!==to})}},eo.prototype.getClassName=function(to){var ro=this._config.namespace,no=to||this._config.defaultPrefix;return"".concat(ro?ro+"-":"").concat(no,"-").concat(this._counter++)},eo.prototype.cacheClassName=function(to,ro,no,oo){this._keyToClassName[ro]=to,this._classNameToArgs[to]={args:no,rules:oo}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.args},eo.prototype.insertedRulesFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.rules},eo.prototype.insertRule=function(to,ro){var no=this._config.injectionMode,oo=no!==InjectionMode$1.none?this._getStyleElement():void 0;if(ro&&this._preservedRules.push(to),oo)switch(no){case InjectionMode$1.insertNode:var io=oo.sheet;try{io.insertRule(to,io.cssRules.length)}catch{}break;case InjectionMode$1.appendChild:oo.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(so){return so()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE$1||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,ro=document.createElement("style"),no=null;ro.setAttribute("data-merge-styles","true");var oo=this._config.cspSettings;if(oo&&oo.nonce&&ro.setAttribute("nonce",oo.nonce),this._lastStyleElement)no=this._lastStyleElement.nextElementSibling;else{var io=this._findPlaceholderStyleTag();io?no=io.nextElementSibling:no=to.childNodes[0]}return to.insertBefore(ro,to.contains(no)?no:null),this._lastStyleElement=ro,ro},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts$1(){for(var eo=[],to=0;to=0)io(uo.split(" "));else{var co=oo.argsFromClassName(uo);co?io(co):ro.indexOf(uo)===-1&&ro.push(uo)}else Array.isArray(uo)?io(uo):typeof uo=="object"&&no.push(uo)}}return io(eo),{classes:ro,objects:no}}function setRTL$1(eo){_rtl$1!==eo&&(_rtl$1=eo)}function getRTL$2(){return _rtl$1===void 0&&(_rtl$1=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl$1}var _rtl$1;_rtl$1=getRTL$2();function getStyleOptions$1(){return{rtl:getRTL$2()}}var rules$1={};function kebabRules$1(eo,to){var ro=eo[to];ro.charAt(0)!=="-"&&(eo[to]=rules$1[ro]=rules$1[ro]||ro.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings$1;function getVendorSettings$1(){var eo;if(!_vendorSettings$1){var to=typeof document<"u"?document:void 0,ro=typeof navigator<"u"?navigator:void 0,no=(eo=ro==null?void 0:ro.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings$1={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(no&&no.indexOf("firefox")>-1),isOpera:!!(no&&no.indexOf("opera")>-1),isMs:!!(ro&&(/rv:11.0/i.test(ro.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings$1={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings$1}var autoPrefixNames$1={"user-select":1};function prefixRules$1(eo,to){var ro=getVendorSettings$1(),no=eo[to];if(autoPrefixNames$1[no]){var oo=eo[to+1];autoPrefixNames$1[no]&&(ro.isWebkit&&eo.push("-webkit-"+no,oo),ro.isMoz&&eo.push("-moz-"+no,oo),ro.isMs&&eo.push("-ms-"+no,oo),ro.isOpera&&eo.push("-o-"+no,oo))}}var NON_PIXEL_NUMBER_PROPS$1=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits$1(eo,to){var ro=eo[to],no=eo[to+1];if(typeof no=="number"){var oo=NON_PIXEL_NUMBER_PROPS$1.indexOf(ro)>-1,io=ro.indexOf("--")>-1,so=oo||io?"":"px";eo[to+1]="".concat(no).concat(so)}}var _a$9,LEFT$1="left",RIGHT$1="right",NO_FLIP$1="@noflip",NAME_REPLACEMENTS$1=(_a$9={},_a$9[LEFT$1]=RIGHT$1,_a$9[RIGHT$1]=LEFT$1,_a$9),VALUE_REPLACEMENTS$1={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules$1(eo,to,ro){if(eo.rtl){var no=to[ro];if(!no)return;var oo=to[ro+1];if(typeof oo=="string"&&oo.indexOf(NO_FLIP$1)>=0)to[ro+1]=oo.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(no.indexOf(LEFT$1)>=0)to[ro]=no.replace(LEFT$1,RIGHT$1);else if(no.indexOf(RIGHT$1)>=0)to[ro]=no.replace(RIGHT$1,LEFT$1);else if(String(oo).indexOf(LEFT$1)>=0)to[ro+1]=oo.replace(LEFT$1,RIGHT$1);else if(String(oo).indexOf(RIGHT$1)>=0)to[ro+1]=oo.replace(RIGHT$1,LEFT$1);else if(NAME_REPLACEMENTS$1[no])to[ro]=NAME_REPLACEMENTS$1[no];else if(VALUE_REPLACEMENTS$1[oo])to[ro+1]=VALUE_REPLACEMENTS$1[oo];else switch(no){case"margin":case"padding":to[ro+1]=flipQuad$1(oo);break;case"box-shadow":to[ro+1]=negateNum$1(oo,0);break}}}function negateNum$1(eo,to){var ro=eo.split(" "),no=parseInt(ro[to],10);return ro[0]=ro[0].replace(String(no),String(no*-1)),ro.join(" ")}function flipQuad$1(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return"".concat(to[0]," ").concat(to[3]," ").concat(to[2]," ").concat(to[1])}return eo}function tokenizeWithParentheses$1(eo){for(var to=[],ro=0,no=0,oo=0;ooro&&to.push(eo.substring(ro,oo)),ro=oo+1);break}return ro-1&&to.push([no.index,no.index+no[0].length,no[1].split(",").map(function(oo){return":global(".concat(oo.trim(),")")}).join(", ")]);return to.reverse().reduce(function(oo,io){var so=io[0],ao=io[1],lo=io[2],uo=oo.slice(0,so),co=oo.slice(ao);return uo+lo+co},eo)}function expandSelector$1(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp$1,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector$1(eo,to,ro,no){to===void 0&&(to={__order:[]}),ro.indexOf("@")===0?(ro=ro+"{"+eo,extractRules$1([no],to,ro)):ro.indexOf(",")>-1?expandCommaSeparatedGlobals$1(ro).split(",").map(function(oo){return oo.trim()}).forEach(function(oo){return extractRules$1([no],to,expandSelector$1(oo,eo))}):extractRules$1([no],to,expandSelector$1(ro,eo))}function extractRules$1(eo,to,ro){to===void 0&&(to={__order:[]}),ro===void 0&&(ro="&");var no=Stylesheet$1.getInstance(),oo=to[ro];oo||(oo={},to[ro]=oo,to.__order.push(ro));for(var io=0,so=eo;io0){ro.subComponentStyles={};var po=ro.subComponentStyles,ho=function(mo){if(no.hasOwnProperty(mo)){var vo=no[mo];po[mo]=function(bo){return concatStyleSets.apply(void 0,vo.map(function(xo){return typeof xo=="function"?xo(bo):xo}))}}};for(var uo in no)ho(uo)}return ro}function mergeStyleSets(){for(var eo=[],to=0;to"u")){var to=eo;return to&&to.ownerDocument&&to.ownerDocument.defaultView?to.ownerDocument.defaultView:_window}}var Async=function(){function eo(to,ro){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=to||null,this._onErrorHandler=ro,this._noop=function(){}}return eo.prototype.dispose=function(){var to;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(to in this._timeoutIds)this._timeoutIds.hasOwnProperty(to)&&this.clearTimeout(parseInt(to,10));this._timeoutIds=null}if(this._immediateIds){for(to in this._immediateIds)this._immediateIds.hasOwnProperty(to)&&this.clearImmediate(parseInt(to,10));this._immediateIds=null}if(this._intervalIds){for(to in this._intervalIds)this._intervalIds.hasOwnProperty(to)&&this.clearInterval(parseInt(to,10));this._intervalIds=null}if(this._animationFrameIds){for(to in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(to)&&this.cancelAnimationFrame(parseInt(to,10));this._animationFrameIds=null}},eo.prototype.setTimeout=function(to,ro){var no=this,oo=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),oo=setTimeout(function(){try{no._timeoutIds&&delete no._timeoutIds[oo],to.apply(no._parent)}catch(io){no._logError(io)}},ro),this._timeoutIds[oo]=!0),oo},eo.prototype.clearTimeout=function(to){this._timeoutIds&&this._timeoutIds[to]&&(clearTimeout(to),delete this._timeoutIds[to])},eo.prototype.setImmediate=function(to,ro){var no=this,oo=0,io=getWindow(ro);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var so=function(){try{no._immediateIds&&delete no._immediateIds[oo],to.apply(no._parent)}catch(ao){no._logError(ao)}};oo=io.setTimeout(so,0),this._immediateIds[oo]=!0}return oo},eo.prototype.clearImmediate=function(to,ro){var no=getWindow(ro);this._immediateIds&&this._immediateIds[to]&&(no.clearTimeout(to),delete this._immediateIds[to])},eo.prototype.setInterval=function(to,ro){var no=this,oo=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),oo=setInterval(function(){try{to.apply(no._parent)}catch(io){no._logError(io)}},ro),this._intervalIds[oo]=!0),oo},eo.prototype.clearInterval=function(to){this._intervalIds&&this._intervalIds[to]&&(clearInterval(to),delete this._intervalIds[to])},eo.prototype.throttle=function(to,ro,no){var oo=this;if(this._isDisposed)return this._noop;var io=ro||0,so=!0,ao=!0,lo=0,uo,co,fo=null;no&&typeof no.leading=="boolean"&&(so=no.leading),no&&typeof no.trailing=="boolean"&&(ao=no.trailing);var po=function(mo){var vo=Date.now(),bo=vo-lo,xo=so?io-bo:io;return bo>=io&&(!mo||so)?(lo=vo,fo&&(oo.clearTimeout(fo),fo=null),uo=to.apply(oo._parent,co)):fo===null&&ao&&(fo=oo.setTimeout(po,xo)),uo},ho=function(){for(var mo=[],vo=0;vo=so&&(Ro=!0),co=Co);var Ao=Co-co,Io=so-Ao,$o=Co-fo,Bo=!1;return uo!==null&&($o>=uo&&mo?Bo=!0:Io=Math.min(Io,uo-$o)),Ao>=so||Bo||Ro?bo(Co):(mo===null||!wo)&&lo&&(mo=oo.setTimeout(xo,Io)),po},_o=function(){return!!mo},So=function(){_o()&&vo(Date.now())},Eo=function(){return _o()&&bo(Date.now()),po},ko=function(){for(var wo=[],Co=0;Co-1)for(var so=ro.split(/[ ,]+/),ao=0;ao"u")){var to=eo;return to&&to.ownerDocument?to.ownerDocument:document}}var _scrollbarWidth,_bodyScrollDisabledCount=0,DisabledScrollClassName=mergeStyles$1({overflow:"hidden !important"}),DATA_IS_SCROLLABLE_ATTRIBUTE="data-is-scrollable",allowScrollOnElement=function(eo,to){if(eo){var ro=0,no=null,oo=function(so){so.targetTouches.length===1&&(ro=so.targetTouches[0].clientY)},io=function(so){if(so.targetTouches.length===1&&(so.stopPropagation(),!!no)){var ao=so.targetTouches[0].clientY-ro,lo=findScrollableParent(so.target);lo&&(no=lo),no.scrollTop===0&&ao>0&&so.preventDefault(),no.scrollHeight-Math.ceil(no.scrollTop)<=no.clientHeight&&ao<0&&so.preventDefault()}};to.on(eo,"touchstart",oo,{passive:!1}),to.on(eo,"touchmove",io,{passive:!1}),no=eo}},allowOverscrollOnElement=function(eo,to){if(eo){var ro=function(no){no.stopPropagation()};to.on(eo,"touchmove",ro,{passive:!1})}},_disableIosBodyScroll=function(eo){eo.preventDefault()};function disableBodyScroll(){var eo=getDocument();eo&&eo.body&&!_bodyScrollDisabledCount&&(eo.body.classList.add(DisabledScrollClassName),eo.body.addEventListener("touchmove",_disableIosBodyScroll,{passive:!1,capture:!1})),_bodyScrollDisabledCount++}function enableBodyScroll(){if(_bodyScrollDisabledCount>0){var eo=getDocument();eo&&eo.body&&_bodyScrollDisabledCount===1&&(eo.body.classList.remove(DisabledScrollClassName),eo.body.removeEventListener("touchmove",_disableIosBodyScroll)),_bodyScrollDisabledCount--}}function getScrollbarWidth(){if(_scrollbarWidth===void 0){var eo=document.createElement("div");eo.style.setProperty("width","100px"),eo.style.setProperty("height","100px"),eo.style.setProperty("overflow","scroll"),eo.style.setProperty("position","absolute"),eo.style.setProperty("top","-9999px"),document.body.appendChild(eo),_scrollbarWidth=eo.offsetWidth-eo.clientWidth,document.body.removeChild(eo)}return _scrollbarWidth}function findScrollableParent(eo){for(var to=eo,ro=getDocument(eo);to&&to!==ro.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)==="true")return to;to=to.parentElement}for(to=eo;to&&to!==ro.body;){if(to.getAttribute(DATA_IS_SCROLLABLE_ATTRIBUTE)!=="false"){var no=getComputedStyle(to),oo=no?no.getPropertyValue("overflow-y"):"";if(oo&&(oo==="scroll"||oo==="auto"))return to}to=to.parentElement}return(!to||to===ro.body)&&(to=getWindow(eo)),to}var _warningCallback=void 0;function warn(eo){console&&console.warn&&console.warn(eo)}var GLOBAL_SETTINGS_PROP_NAME="__globalSettings__",CALLBACK_STATE_PROP_NAME="__callbacks__",_counter=0,GlobalSettings=function(){function eo(){}return eo.getValue=function(to,ro){var no=_getGlobalSettings();return no[to]===void 0&&(no[to]=typeof ro=="function"?ro():ro),no[to]},eo.setValue=function(to,ro){var no=_getGlobalSettings(),oo=no[CALLBACK_STATE_PROP_NAME],io=no[to];if(ro!==io){no[to]=ro;var so={oldValue:io,value:ro,key:to};for(var ao in oo)oo.hasOwnProperty(ao)&&oo[ao](so)}return ro},eo.addChangeListener=function(to){var ro=to.__id__,no=_getCallbacks();ro||(ro=to.__id__=String(_counter++)),no[ro]=to},eo.removeChangeListener=function(to){var ro=_getCallbacks();delete ro[to.__id__]},eo}();function _getGlobalSettings(){var eo,to=getWindow(),ro=to||{};return ro[GLOBAL_SETTINGS_PROP_NAME]||(ro[GLOBAL_SETTINGS_PROP_NAME]=(eo={},eo[CALLBACK_STATE_PROP_NAME]={},eo)),ro[GLOBAL_SETTINGS_PROP_NAME]}function _getCallbacks(){var eo=_getGlobalSettings();return eo[CALLBACK_STATE_PROP_NAME]}var KeyCodes$1={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},Rectangle=function(){function eo(to,ro,no,oo){to===void 0&&(to=0),ro===void 0&&(ro=0),no===void 0&&(no=0),oo===void 0&&(oo=0),this.top=no,this.bottom=oo,this.left=to,this.right=ro}return Object.defineProperty(eo.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),eo.prototype.equals=function(to){return parseFloat(this.top.toFixed(4))===parseFloat(to.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(to.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(to.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(to.right.toFixed(4))},eo}();function appendFunction(eo){for(var to=[],ro=1;ro-1&&oo._virtual.children.splice(io,1)}ro._virtual.parent=no||void 0,no&&(no._virtual||(no._virtual={children:[]}),no._virtual.children.push(ro))}var IS_FOCUSABLE_ATTRIBUTE$1="data-is-focusable",IS_VISIBLE_ATTRIBUTE="data-is-visible",FOCUSZONE_ID_ATTRIBUTE$1="data-focuszone-id",FOCUSZONE_SUB_ATTRIBUTE="data-is-sub-focuszone";function getFirstFocusable(eo,to,ro){return getNextElement(eo,to,!0,!1,!1,ro)}function getLastFocusable(eo,to,ro){return getPreviousElement(eo,to,!0,!1,!0,ro)}function getFirstTabbable(eo,to,ro,no){return no===void 0&&(no=!0),getNextElement(eo,to,no,!1,!1,ro,!1,!0)}function getLastTabbable(eo,to,ro,no){return no===void 0&&(no=!0),getPreviousElement(eo,to,no,!1,!0,ro,!1,!0)}function focusFirstChild(eo,to){var ro=getNextElement(eo,eo,!0,!1,!1,!0,void 0,void 0,to);return ro?(focusAsync(ro),!0):!1}function getPreviousElement(eo,to,ro,no,oo,io,so,ao){if(!to||!so&&to===eo)return null;var lo=isElementVisible(to);if(oo&&lo&&(io||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var uo=getPreviousElement(eo,to.lastElementChild,!0,!0,!0,io,so,ao);if(uo){if(ao&&isElementTabbable(uo,!0)||!ao)return uo;var co=getPreviousElement(eo,uo.previousElementSibling,!0,!0,!0,io,so,ao);if(co)return co;for(var fo=uo.parentElement;fo&&fo!==to;){var po=getPreviousElement(eo,fo.previousElementSibling,!0,!0,!0,io,so,ao);if(po)return po;fo=fo.parentElement}}}if(ro&&lo&&isElementTabbable(to,ao))return to;var ho=getPreviousElement(eo,to.previousElementSibling,!0,!0,!0,io,so,ao);return ho||(no?null:getPreviousElement(eo,to.parentElement,!0,!1,!1,io,so,ao))}function getNextElement(eo,to,ro,no,oo,io,so,ao,lo){if(!to||to===eo&&oo&&!so)return null;var uo=lo?isElementVisibleAndNotHidden:isElementVisible,co=uo(to);if(ro&&co&&isElementTabbable(to,ao))return to;if(!oo&&co&&(io||!(isElementFocusZone(to)||isElementFocusSubZone(to)))){var fo=getNextElement(eo,to.firstElementChild,!0,!0,!1,io,so,ao,lo);if(fo)return fo}if(to===eo)return null;var po=getNextElement(eo,to.nextElementSibling,!0,!0,!1,io,so,ao,lo);return po||(no?null:getNextElement(eo,to.parentElement,!1,!1,!0,io,so,ao,lo))}function isElementVisible(eo){if(!eo||!eo.getAttribute)return!1;var to=eo.getAttribute(IS_VISIBLE_ATTRIBUTE);return to!=null?to==="true":eo.offsetHeight!==0||eo.offsetParent!==null||eo.isVisible===!0}function isElementVisibleAndNotHidden(eo){return!!eo&&isElementVisible(eo)&&!eo.hidden&&window.getComputedStyle(eo).visibility!=="hidden"}function isElementTabbable(eo,to){if(!eo||eo.disabled)return!1;var ro=0,no=null;eo&&eo.getAttribute&&(no=eo.getAttribute("tabIndex"),no&&(ro=parseInt(no,10)));var oo=eo.getAttribute?eo.getAttribute(IS_FOCUSABLE_ATTRIBUTE$1):null,io=no!==null&&ro>=0,so=!!eo&&oo!=="false"&&(eo.tagName==="A"||eo.tagName==="BUTTON"||eo.tagName==="INPUT"||eo.tagName==="TEXTAREA"||eo.tagName==="SELECT"||oo==="true"||io);return to?ro!==-1&&so:so}function isElementFocusZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_ID_ATTRIBUTE$1))}function isElementFocusSubZone(eo){return!!(eo&&eo.getAttribute&&eo.getAttribute(FOCUSZONE_SUB_ATTRIBUTE)==="true")}function doesElementContainFocus(eo){var to=getDocument(eo),ro=to&&to.activeElement;return!!(ro&&elementContains(eo,ro))}function shouldWrapFocus(eo,to){return elementContainsAttribute(eo,to)!=="true"}var animationId=void 0;function focusAsync(eo){if(eo){var to=getWindow(eo);to&&(animationId!==void 0&&to.cancelAnimationFrame(animationId),animationId=to.requestAnimationFrame(function(){eo&&eo.focus(),animationId=void 0}))}}function getFocusableByIndexPath(eo,to){for(var ro=eo,no=0,oo=to;no(eo.cacheSize||MAX_CACHE_COUNT)){var ho=getWindow();!((lo=ho==null?void 0:ho.FabricConfig)===null||lo===void 0)&&lo.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(ro,"/").concat(no,".")),console.trace()),to.clear(),ro=0,eo.disableCaching=!0}return uo[retVal]};return io}function _traverseEdge(eo,to){return to=_normalizeValue(to),eo.has(to)||eo.set(to,new Map),eo.get(to)}function _traverseMap(eo,to){if(typeof to=="function"){var ro=to.__cachedInputs__;if(ro)for(var no=0,oo=to.__cachedInputs__;no"u"?null:WeakMap;function resetMemoizations(){_resetCounter++}function memoizeFunction(eo,to,ro){if(to===void 0&&(to=100),ro===void 0&&(ro=!1),!_weakMap)return eo;if(!_initializedStylesheetResets$1){var no=Stylesheet$1.getInstance();no&&no.onReset&&Stylesheet$1.getInstance().onReset(resetMemoizations),_initializedStylesheetResets$1=!0}var oo,io=0,so=_resetCounter;return function(){for(var lo=[],uo=0;uo0&&io>to)&&(oo=_createNode(),io=0,so=_resetCounter),co=oo;for(var fo=0;fo=0||lo.indexOf("data-")===0||lo.indexOf("aria-")===0;uo&&(!ro||(ro==null?void 0:ro.indexOf(lo))===-1)&&(oo[lo]=eo[lo])}return oo}function initializeComponentRef(eo){extendComponent(eo,{componentDidMount:_onMount,componentDidUpdate:_onUpdate,componentWillUnmount:_onUnmount})}function _onMount(){_setComponentRef(this.props.componentRef,this)}function _onUpdate(eo){eo.componentRef!==this.props.componentRef&&(_setComponentRef(eo.componentRef,null),_setComponentRef(this.props.componentRef,this))}function _onUnmount(){_setComponentRef(this.props.componentRef,null)}function _setComponentRef(eo,to){eo&&(typeof eo=="object"?eo.current=to:typeof eo=="function"&&eo(to))}var _a$8,DirectionalKeyCodes=(_a$8={},_a$8[KeyCodes$1.up]=1,_a$8[KeyCodes$1.down]=1,_a$8[KeyCodes$1.left]=1,_a$8[KeyCodes$1.right]=1,_a$8[KeyCodes$1.home]=1,_a$8[KeyCodes$1.end]=1,_a$8[KeyCodes$1.tab]=1,_a$8[KeyCodes$1.pageUp]=1,_a$8[KeyCodes$1.pageDown]=1,_a$8);function isDirectionalKeyCode(eo){return!!DirectionalKeyCodes[eo]}var IsFocusVisibleClassName="ms-Fabric--isFocusVisible",IsFocusHiddenClassName="ms-Fabric--isFocusHidden";function updateClassList(eo,to){eo&&(eo.classList.add(to?IsFocusVisibleClassName:IsFocusHiddenClassName),eo.classList.remove(to?IsFocusHiddenClassName:IsFocusVisibleClassName))}function setFocusVisibility(eo,to,ro){var no;ro?ro.forEach(function(oo){return updateClassList(oo.current,eo)}):updateClassList((no=getWindow(to))===null||no===void 0?void 0:no.document.body,eo)}var mountCounters=new WeakMap,callbackMap=new WeakMap;function setMountCounters(eo,to){var ro,no=mountCounters.get(eo);return no?ro=no+to:ro=1,mountCounters.set(eo,ro),ro}function setCallbackMap(eo){var to=callbackMap.get(eo);if(to)return to;var ro=function(so){return _onMouseDown(so,eo.registeredProviders)},no=function(so){return _onPointerDown(so,eo.registeredProviders)},oo=function(so){return _onKeyDown(so,eo.registeredProviders)},io=function(so){return _onKeyUp(so,eo.registeredProviders)};return to={onMouseDown:ro,onPointerDown:no,onKeyDown:oo,onKeyUp:io},callbackMap.set(eo,to),to}var FocusRectsContext=reactExports.createContext(void 0);function useFocusRects(eo){var to=reactExports.useContext(FocusRectsContext);reactExports.useEffect(function(){var ro,no,oo,io,so=getWindow(eo==null?void 0:eo.current);if(!(!so||((ro=so.FabricConfig)===null||ro===void 0?void 0:ro.disableFocusRects)===!0)){var ao=so,lo,uo,co,fo;if(!((no=to==null?void 0:to.providerRef)===null||no===void 0)&&no.current&&(!((io=(oo=to==null?void 0:to.providerRef)===null||oo===void 0?void 0:oo.current)===null||io===void 0)&&io.addEventListener)){ao=to.providerRef.current;var po=setCallbackMap(to);lo=po.onMouseDown,uo=po.onPointerDown,co=po.onKeyDown,fo=po.onKeyUp}else lo=_onMouseDown,uo=_onPointerDown,co=_onKeyDown,fo=_onKeyUp;var ho=setMountCounters(ao,1);return ho<=1&&(ao.addEventListener("mousedown",lo,!0),ao.addEventListener("pointerdown",uo,!0),ao.addEventListener("keydown",co,!0),ao.addEventListener("keyup",fo,!0)),function(){var mo;!so||((mo=so.FabricConfig)===null||mo===void 0?void 0:mo.disableFocusRects)===!0||(ho=setMountCounters(ao,-1),ho===0&&(ao.removeEventListener("mousedown",lo,!0),ao.removeEventListener("pointerdown",uo,!0),ao.removeEventListener("keydown",co,!0),ao.removeEventListener("keyup",fo,!0)))}}},[to,eo])}var FocusRects=function(eo){return useFocusRects(eo.rootRef),null};function _onMouseDown(eo,to){setFocusVisibility(!1,eo.target,to)}function _onPointerDown(eo,to){eo.pointerType!=="mouse"&&setFocusVisibility(!1,eo.target,to)}function _onKeyDown(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}function _onKeyUp(eo,to){isDirectionalKeyCode(eo.which)&&setFocusVisibility(!0,eo.target,to)}var FocusRectsProvider=function(eo){var to=eo.providerRef,ro=eo.layerRoot,no=reactExports.useState([])[0],oo=reactExports.useContext(FocusRectsContext),io=oo!==void 0&&!ro,so=reactExports.useMemo(function(){return io?void 0:{providerRef:to,registeredProviders:no,registerProvider:function(ao){no.push(ao),oo==null||oo.registerProvider(ao)},unregisterProvider:function(ao){oo==null||oo.unregisterProvider(ao);var lo=no.indexOf(ao);lo>=0&&no.splice(lo,1)}}},[to,no,oo,io]);return reactExports.useEffect(function(){if(so)return so.registerProvider(so.providerRef),function(){return so.unregisterProvider(so.providerRef)}},[so]),so?reactExports.createElement(FocusRectsContext.Provider,{value:so},eo.children):reactExports.createElement(reactExports.Fragment,null,eo.children)};function getItem(eo){var to=null;try{var ro=getWindow();to=ro?ro.localStorage.getItem(eo):null}catch{}return to}var _language,STORAGE_KEY="language";function getLanguage(eo){if(eo===void 0&&(eo="sessionStorage"),_language===void 0){var to=getDocument(),ro=eo==="localStorage"?getItem(STORAGE_KEY):eo==="sessionStorage"?getItem$1(STORAGE_KEY):void 0;ro&&(_language=ro),_language===void 0&&to&&(_language=to.documentElement.getAttribute("lang")),_language===void 0&&(_language="en")}return _language}function merge$3(eo){for(var to=[],ro=1;ro-1;eo[no]=io?oo:_merge(eo[no]||{},oo,ro)}else eo[no]=oo}return ro.pop(),eo}var isIOS=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},tagsToIgnore=["TEMPLATE","STYLE","SCRIPT"];function modalize(eo){var to=getDocument(eo);if(!to)return function(){};for(var ro=[];eo!==to.body&&eo.parentElement;){for(var no=0,oo=eo.parentElement.children;no"u"||eo){var ro=getWindow(),no=(to=ro==null?void 0:ro.navigator)===null||to===void 0?void 0:to.userAgent;isMacResult=!!no&&no.indexOf("Macintosh")!==-1}return!!isMacResult}function createComposedRenderFunction(eo){var to=createMemoizer(function(ro){var no=createMemoizer(function(oo){return function(io){return ro(io,oo)}});return function(oo,io){return eo(oo,io?no(io):ro)}});return to}var memoizer=createMemoizer(createComposedRenderFunction);function composeRenderFunction(eo,to){return memoizer(eo)(to)}var DefaultFields=["theme","styles"];function styled(eo,to,ro,no,oo){no=no||{scope:"",fields:void 0};var io=no.scope,so=no.fields,ao=so===void 0?DefaultFields:so,lo=reactExports.forwardRef(function(co,fo){var po=reactExports.useRef(),ho=useCustomizationSettings(ao,io),mo=ho.styles;ho.dir;var vo=__rest$1(ho,["styles","dir"]),bo=ro?ro(co):void 0,xo=po.current&&po.current.__cachedInputs__||[],_o=co.styles;if(!po.current||mo!==xo[1]||_o!==xo[2]){var So=function(Eo){return concatStyleSetsWithProps(Eo,to,mo,_o)};So.__cachedInputs__=[to,mo,_o],So.__noStyleOverride__=!mo&&!_o,po.current=So}return reactExports.createElement(eo,__assign$4({ref:fo},vo,bo,co,{styles:po.current}))});lo.displayName="Styled".concat(eo.displayName||eo.name);var uo=oo?reactExports.memo(lo):lo;return lo.displayName&&(uo.displayName=lo.displayName),uo}function getPropsWithDefaults(eo,to){for(var ro=__assign$4({},to),no=0,oo=Object.keys(eo);nono?" (+ ".concat(_missingIcons.length-no," more)"):"")),_missingIconsTimer=void 0,_missingIcons=[]},ro)))}function makeSemanticColors(eo,to,ro,no,oo){oo===void 0&&(oo=!1);var io=__assign$4({primaryButtonBorder:"transparent",errorText:no?"#F1707B":"#a4262c",messageText:no?"#F3F2F1":"#323130",messageLink:no?"#6CB8F6":"#005A9E",messageLinkHovered:no?"#82C7FF":"#004578",infoIcon:no?"#C8C6C4":"#605e5c",errorIcon:no?"#F1707B":"#A80000",blockingIcon:no?"#442726":"#FDE7E9",warningIcon:no?"#C8C6C4":"#797775",severeWarningIcon:no?"#FCE100":"#D83B01",successIcon:no?"#92C353":"#107C10",infoBackground:no?"#323130":"#f3f2f1",errorBackground:no?"#442726":"#FDE7E9",blockingBackground:no?"#442726":"#FDE7E9",warningBackground:no?"#433519":"#FFF4CE",severeWarningBackground:no?"#4F2A0F":"#FED9CC",successBackground:no?"#393D1B":"#DFF6DD",warningHighlight:no?"#fff100":"#ffb900",successText:no?"#92c353":"#107C10"},ro),so=getSemanticColors(eo,to,io,no);return _fixDeprecatedSlots(so,oo)}function getSemanticColors(eo,to,ro,no,oo){var io={},so=eo||{},ao=so.white,lo=so.black,uo=so.themePrimary,co=so.themeDark,fo=so.themeDarker,po=so.themeDarkAlt,ho=so.themeLighter,mo=so.neutralLight,vo=so.neutralLighter,bo=so.neutralDark,xo=so.neutralQuaternary,_o=so.neutralQuaternaryAlt,So=so.neutralPrimary,Eo=so.neutralSecondary,ko=so.neutralSecondaryAlt,wo=so.neutralTertiary,Co=so.neutralTertiaryAlt,Ro=so.neutralLighterAlt,Ao=so.accent;return ao&&(io.bodyBackground=ao,io.bodyFrameBackground=ao,io.accentButtonText=ao,io.buttonBackground=ao,io.primaryButtonText=ao,io.primaryButtonTextHovered=ao,io.primaryButtonTextPressed=ao,io.inputBackground=ao,io.inputForegroundChecked=ao,io.listBackground=ao,io.menuBackground=ao,io.cardStandoutBackground=ao),lo&&(io.bodyTextChecked=lo,io.buttonTextCheckedHovered=lo),uo&&(io.link=uo,io.primaryButtonBackground=uo,io.inputBackgroundChecked=uo,io.inputIcon=uo,io.inputFocusBorderAlt=uo,io.menuIcon=uo,io.menuHeader=uo,io.accentButtonBackground=uo),co&&(io.primaryButtonBackgroundPressed=co,io.inputBackgroundCheckedHovered=co,io.inputIconHovered=co),fo&&(io.linkHovered=fo),po&&(io.primaryButtonBackgroundHovered=po),ho&&(io.inputPlaceholderBackgroundChecked=ho),mo&&(io.bodyBackgroundChecked=mo,io.bodyFrameDivider=mo,io.bodyDivider=mo,io.variantBorder=mo,io.buttonBackgroundCheckedHovered=mo,io.buttonBackgroundPressed=mo,io.listItemBackgroundChecked=mo,io.listHeaderBackgroundPressed=mo,io.menuItemBackgroundPressed=mo,io.menuItemBackgroundChecked=mo),vo&&(io.bodyBackgroundHovered=vo,io.buttonBackgroundHovered=vo,io.buttonBackgroundDisabled=vo,io.buttonBorderDisabled=vo,io.primaryButtonBackgroundDisabled=vo,io.disabledBackground=vo,io.listItemBackgroundHovered=vo,io.listHeaderBackgroundHovered=vo,io.menuItemBackgroundHovered=vo),xo&&(io.primaryButtonTextDisabled=xo,io.disabledSubtext=xo),_o&&(io.listItemBackgroundCheckedHovered=_o),wo&&(io.disabledBodyText=wo,io.variantBorderHovered=(ro==null?void 0:ro.variantBorderHovered)||wo,io.buttonTextDisabled=wo,io.inputIconDisabled=wo,io.disabledText=wo),So&&(io.bodyText=So,io.actionLink=So,io.buttonText=So,io.inputBorderHovered=So,io.inputText=So,io.listText=So,io.menuItemText=So),Ro&&(io.bodyStandoutBackground=Ro,io.defaultStateBackground=Ro),bo&&(io.actionLinkHovered=bo,io.buttonTextHovered=bo,io.buttonTextChecked=bo,io.buttonTextPressed=bo,io.inputTextHovered=bo,io.menuItemTextHovered=bo),Eo&&(io.bodySubtext=Eo,io.focusBorder=Eo,io.inputBorder=Eo,io.smallInputBorder=Eo,io.inputPlaceholderText=Eo),ko&&(io.buttonBorder=ko),Co&&(io.disabledBodySubtext=Co,io.disabledBorder=Co,io.buttonBackgroundChecked=Co,io.menuDivider=Co),Ao&&(io.accentButtonBackground=Ao),to!=null&&to.elevation4&&(io.cardShadow=to.elevation4),!no&&(to!=null&&to.elevation8)?io.cardShadowHovered=to.elevation8:io.variantBorderHovered&&(io.cardShadowHovered="0 0 1px "+io.variantBorderHovered),io=__assign$4(__assign$4({},io),ro),io}function _fixDeprecatedSlots(eo,to){var ro="";return to===!0&&(ro=" /* @deprecated */"),eo.listTextColor=eo.listText+ro,eo.menuItemBackgroundChecked+=ro,eo.warningHighlight+=ro,eo.warningText=eo.messageText+ro,eo.successText+=ro,eo}function mergeThemes(eo,to){var ro,no,oo;to===void 0&&(to={});var io=merge$3({},eo,to,{semanticColors:getSemanticColors(to.palette,to.effects,to.semanticColors,to.isInverted===void 0?eo.isInverted:to.isInverted)});if(!((ro=to.palette)===null||ro===void 0)&&ro.themePrimary&&!(!((no=to.palette)===null||no===void 0)&&no.accent)&&(io.palette.accent=to.palette.themePrimary),to.defaultFontStyle)for(var so=0,ao=Object.keys(io.fonts);so"u"?global:window,_styleNonce=_root&&_root.CSPSettings&&_root.CSPSettings.nonce,_themeState=initializeThemeState();function initializeThemeState(){var eo=_root.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return eo.runState||(eo=__assign$3(__assign$3({},eo),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),eo.registeredThemableStyles||(eo=__assign$3(__assign$3({},eo),{registeredThemableStyles:[]})),_root.__themeState__=eo,eo}function applyThemableStyles(eo,to){_themeState.loadStyles?_themeState.loadStyles(resolveThemableArray(eo).styleString,eo):registerStyles$1(eo)}function loadTheme$1(eo){_themeState.theme=eo,reloadStyles()}function clearStyles(eo){eo===void 0&&(eo=3),(eo===3||eo===2)&&(clearStylesInternal(_themeState.registeredStyles),_themeState.registeredStyles=[]),(eo===3||eo===1)&&(clearStylesInternal(_themeState.registeredThemableStyles),_themeState.registeredThemableStyles=[])}function clearStylesInternal(eo){eo.forEach(function(to){var ro=to&&to.styleElement;ro&&ro.parentElement&&ro.parentElement.removeChild(ro)})}function reloadStyles(){if(_themeState.theme){for(var eo=[],to=0,ro=_themeState.registeredThemableStyles;to0&&(clearStyles(1),applyThemableStyles([].concat.apply([],eo)))}}function resolveThemableArray(eo){var to=_themeState.theme,ro=!1,no=(eo||[]).map(function(oo){var io=oo.theme;if(io){ro=!0;var so=to?to[io]:void 0,ao=oo.defaultValue||"inherit";return to&&!so&&console&&!(io in to)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(io,'". Falling back to "').concat(ao,'".')),so||ao}else return oo.rawString});return{styleString:no.join(""),themable:ro}}function registerStyles$1(eo){if(!(typeof document>"u")){var to=document.getElementsByTagName("head")[0],ro=document.createElement("style"),no=resolveThemableArray(eo),oo=no.styleString,io=no.themable;ro.setAttribute("data-load-themed-styles","true"),_styleNonce&&ro.setAttribute("nonce",_styleNonce),ro.appendChild(document.createTextNode(oo)),_themeState.perf.count++,to.appendChild(ro);var so=document.createEvent("HTMLEvents");so.initEvent("styleinsert",!0,!1),so.args={newStyle:ro},document.dispatchEvent(so);var ao={styleElement:ro,themableStyle:eo};io?_themeState.registeredThemableStyles.push(ao):_themeState.registeredStyles.push(ao)}}var _theme=createTheme({}),_onThemeChangeCallbacks=[],ThemeSettingName="theme";function initializeThemeInCustomizations(){var eo,to,ro,no=getWindow();!((to=no==null?void 0:no.FabricConfig)===null||to===void 0)&&to.legacyTheme?loadTheme(no.FabricConfig.legacyTheme):Customizations.getSettings([ThemeSettingName]).theme||(!((ro=no==null?void 0:no.FabricConfig)===null||ro===void 0)&&ro.theme&&(_theme=createTheme(no.FabricConfig.theme)),Customizations.applySettings((eo={},eo[ThemeSettingName]=_theme,eo)))}initializeThemeInCustomizations();function getTheme(eo){return eo===void 0&&(eo=!1),eo===!0&&(_theme=createTheme({},eo)),_theme}function loadTheme(eo,to){var ro;return to===void 0&&(to=!1),_theme=createTheme(eo,to),loadTheme$1(__assign$4(__assign$4(__assign$4(__assign$4({},_theme.palette),_theme.semanticColors),_theme.effects),_loadFonts(_theme))),Customizations.applySettings((ro={},ro[ThemeSettingName]=_theme,ro)),_onThemeChangeCallbacks.forEach(function(no){try{no(_theme)}catch{}}),_theme}function _loadFonts(eo){for(var to={},ro=0,no=Object.keys(eo.fonts);roto.bottom||eo.leftto.right)}function _getOutOfBoundsEdges(eo,to){var ro=[];return eo.topto.bottom&&ro.push(RectangleEdge.bottom),eo.leftto.right&&ro.push(RectangleEdge.right),ro}function _getEdgeValue(eo,to){return eo[RectangleEdge[to]]}function _setEdgeValue(eo,to,ro){return eo[RectangleEdge[to]]=ro,eo}function _getCenterValue(eo,to){var ro=_getFlankingEdges(to);return(_getEdgeValue(eo,ro.positiveEdge)+_getEdgeValue(eo,ro.negativeEdge))/2}function _getRelativeEdgeValue(eo,to){return eo>0?to:to*-1}function _getRelativeRectEdgeValue(eo,to){return _getRelativeEdgeValue(eo,_getEdgeValue(to,eo))}function _getRelativeEdgeDifference(eo,to,ro){var no=_getEdgeValue(eo,ro)-_getEdgeValue(to,ro);return _getRelativeEdgeValue(ro,no)}function _moveEdge(eo,to,ro,no){no===void 0&&(no=!0);var oo=_getEdgeValue(eo,to)-ro,io=_setEdgeValue(eo,to,ro);return no&&(io=_setEdgeValue(eo,to*-1,_getEdgeValue(eo,to*-1)-oo)),io}function _alignEdges(eo,to,ro,no){return no===void 0&&(no=0),_moveEdge(eo,ro,_getEdgeValue(to,ro)+_getRelativeEdgeValue(ro,no))}function _alignOppositeEdges(eo,to,ro,no){no===void 0&&(no=0);var oo=ro*-1,io=_getRelativeEdgeValue(oo,no);return _moveEdge(eo,ro*-1,_getEdgeValue(to,ro)+io)}function _isEdgeInBounds(eo,to,ro){var no=_getRelativeRectEdgeValue(ro,eo);return no>_getRelativeRectEdgeValue(ro,to)}function _getOutOfBoundsDegree(eo,to){for(var ro=_getOutOfBoundsEdges(eo,to),no=0,oo=0,io=ro;oo=no}function _flipToFit(eo,to,ro,no,oo,io,so){oo===void 0&&(oo=!1),so===void 0&&(so=0);var ao=[RectangleEdge.left,RectangleEdge.right,RectangleEdge.bottom,RectangleEdge.top];getRTL$1()&&(ao[0]*=-1,ao[1]*=-1);for(var lo=eo,uo=no.targetEdge,co=no.alignmentEdge,fo,po=uo,ho=co,mo=0;mo<4;mo++){if(_isEdgeInBounds(lo,ro,uo))return{elementRectangle:lo,targetEdge:uo,alignmentEdge:co};if(oo&&_canScrollResizeToFitEdge(to,ro,uo,io)){switch(uo){case RectangleEdge.bottom:lo.bottom=ro.bottom;break;case RectangleEdge.top:lo.top=ro.top;break}return{elementRectangle:lo,targetEdge:uo,alignmentEdge:co,forcedInBounds:!0}}else{var vo=_getOutOfBoundsDegree(lo,ro);(!fo||vo0&&(ao.indexOf(uo*-1)>-1?uo=uo*-1:(co=uo,uo=ao.slice(-1)[0]),lo=_estimatePosition(eo,to,{targetEdge:uo,alignmentEdge:co},so))}}return lo=_estimatePosition(eo,to,{targetEdge:po,alignmentEdge:ho},so),{elementRectangle:lo,targetEdge:po,alignmentEdge:ho}}function _flipAlignmentEdge(eo,to,ro,no){var oo=eo.alignmentEdge,io=eo.targetEdge,so=eo.elementRectangle,ao=oo*-1,lo=_estimatePosition(so,to,{targetEdge:io,alignmentEdge:ao},ro,no);return{elementRectangle:lo,targetEdge:io,alignmentEdge:ao}}function _adjustFitWithinBounds(eo,to,ro,no,oo,io,so,ao,lo){oo===void 0&&(oo=!1),so===void 0&&(so=0);var uo=no.alignmentEdge,co=no.alignTargetEdge,fo={elementRectangle:eo,targetEdge:no.targetEdge,alignmentEdge:uo};!ao&&!lo&&(fo=_flipToFit(eo,to,ro,no,oo,io,so));var po=_getOutOfBoundsEdges(fo.elementRectangle,ro),ho=ao?-fo.targetEdge:void 0;if(po.length>0)if(co)if(fo.alignmentEdge&&po.indexOf(fo.alignmentEdge*-1)>-1){var mo=_flipAlignmentEdge(fo,to,so,lo);if(_isRectangleWithinBounds(mo.elementRectangle,ro))return mo;fo=_alignOutOfBoundsEdges(_getOutOfBoundsEdges(mo.elementRectangle,ro),fo,ro,ho)}else fo=_alignOutOfBoundsEdges(po,fo,ro,ho);else fo=_alignOutOfBoundsEdges(po,fo,ro,ho);return fo}function _alignOutOfBoundsEdges(eo,to,ro,no){for(var oo=0,io=eo;ooMath.abs(_getRelativeEdgeDifference(eo,ro,to*-1))?to*-1:to}function _isEdgeOnBounds(eo,to,ro){return ro!==void 0&&_getEdgeValue(eo,to)===_getEdgeValue(ro,to)}function _finalizeElementPosition(eo,to,ro,no,oo,io,so,ao){var lo={},uo=_getRectangleFromElement(to),co=io?ro:ro*-1,fo=oo||_getFlankingEdges(ro).positiveEdge;return(!so||_isEdgeOnBounds(eo,getOppositeEdge(fo),no))&&(fo=_finalizeReturnEdge(eo,fo,no)),lo[RectangleEdge[co]]=_getRelativeEdgeDifference(eo,uo,co),lo[RectangleEdge[fo]]=_getRelativeEdgeDifference(eo,uo,fo),ao&&(lo[RectangleEdge[co*-1]]=_getRelativeEdgeDifference(eo,uo,co*-1),lo[RectangleEdge[fo*-1]]=_getRelativeEdgeDifference(eo,uo,fo*-1)),lo}function _calculateActualBeakWidthInPixels(eo){return Math.sqrt(eo*eo*2)}function _getPositionData(eo,to,ro){if(eo===void 0&&(eo=DirectionalHint.bottomAutoEdge),ro)return{alignmentEdge:ro.alignmentEdge,isAuto:ro.isAuto,targetEdge:ro.targetEdge};var no=__assign$4({},DirectionalDictionary[eo]);return getRTL$1()?(no.alignmentEdge&&no.alignmentEdge%2===0&&(no.alignmentEdge=no.alignmentEdge*-1),to!==void 0?DirectionalDictionary[to]:no):no}function _getAlignmentData(eo,to,ro,no,oo){return eo.isAuto&&(eo.alignmentEdge=getClosestEdge(eo.targetEdge,to,ro)),eo.alignTargetEdge=oo,eo}function getClosestEdge(eo,to,ro){var no=_getCenterValue(to,eo),oo=_getCenterValue(ro,eo),io=_getFlankingEdges(eo),so=io.positiveEdge,ao=io.negativeEdge;return no<=oo?so:ao}function _positionElementWithinBounds(eo,to,ro,no,oo,io,so,ao,lo){io===void 0&&(io=!1);var uo=_estimatePosition(eo,to,no,oo,lo);return _isRectangleWithinBounds(uo,ro)?{elementRectangle:uo,targetEdge:no.targetEdge,alignmentEdge:no.alignmentEdge}:_adjustFitWithinBounds(uo,to,ro,no,io,so,oo,ao,lo)}function _finalizeBeakPosition(eo,to,ro){var no=eo.targetEdge*-1,oo=new Rectangle(0,eo.elementRectangle.width,0,eo.elementRectangle.height),io={},so=_finalizeReturnEdge(eo.elementRectangle,eo.alignmentEdge?eo.alignmentEdge:_getFlankingEdges(no).positiveEdge,ro),ao=_getRelativeEdgeDifference(eo.elementRectangle,eo.targetRectangle,no),lo=ao>Math.abs(_getEdgeValue(to,no));return io[RectangleEdge[no]]=_getEdgeValue(to,no),io[RectangleEdge[so]]=_getRelativeEdgeDifference(to,oo,so),{elementPosition:__assign$4({},io),closestEdge:getClosestEdge(eo.targetEdge,to,oo),targetEdge:no,hideBeak:!lo}}function _positionBeak(eo,to){var ro=to.targetRectangle,no=_getFlankingEdges(to.targetEdge),oo=no.positiveEdge,io=no.negativeEdge,so=_getCenterValue(ro,to.targetEdge),ao=new Rectangle(eo/2,to.elementRectangle.width-eo/2,eo/2,to.elementRectangle.height-eo/2),lo=new Rectangle(0,eo,0,eo);return lo=_moveEdge(lo,to.targetEdge*-1,-eo/2),lo=_centerEdgeToPoint(lo,to.targetEdge*-1,so-_getRelativeRectEdgeValue(oo,to.elementRectangle)),_isEdgeInBounds(lo,ao,oo)?_isEdgeInBounds(lo,ao,io)||(lo=_alignEdges(lo,ao,io)):lo=_alignEdges(lo,ao,oo),lo}function _getRectangleFromElement(eo){var to=eo.getBoundingClientRect();return new Rectangle(to.left,to.right,to.top,to.bottom)}function _getRectangleFromIRect(eo){return new Rectangle(eo.left,eo.right,eo.top,eo.bottom)}function _getTargetRect(eo,to){var ro;if(to){if(to.preventDefault){var no=to;ro=new Rectangle(no.clientX,no.clientX,no.clientY,no.clientY)}else if(to.getBoundingClientRect)ro=_getRectangleFromElement(to);else{var oo=to,io=oo.left||oo.x,so=oo.top||oo.y,ao=oo.right||io,lo=oo.bottom||so;ro=new Rectangle(io,ao,so,lo)}if(!_isRectangleWithinBounds(ro,eo))for(var uo=_getOutOfBoundsEdges(ro,eo),co=0,fo=uo;co=no&&oo&&uo.top<=oo&&uo.bottom>=oo&&(so={top:uo.top,left:uo.left,right:uo.right,bottom:uo.bottom,width:uo.width,height:uo.height})}return so}function getBoundsFromTargetWindow(eo,to){return _getBoundsFromTargetWindow(eo,to)}function calculateGapSpace(eo,to,ro){return _calculateGapSpace(eo,to,ro)}function getRectangleFromTarget(eo){return _getRectangleFromTarget(eo)}function useAsync(){var eo=reactExports.useRef();return eo.current||(eo.current=new Async),reactExports.useEffect(function(){return function(){var to;(to=eo.current)===null||to===void 0||to.dispose(),eo.current=void 0}},[]),eo.current}function useConst$1(eo){var to=reactExports.useRef();return to.current===void 0&&(to.current={value:typeof eo=="function"?eo():eo}),to.current.value}function useBoolean(eo){var to=reactExports.useState(eo),ro=to[0],no=to[1],oo=useConst$1(function(){return function(){no(!0)}}),io=useConst$1(function(){return function(){no(!1)}}),so=useConst$1(function(){return function(){no(function(ao){return!ao})}});return[ro,{setTrue:oo,setFalse:io,toggle:so}]}function useEventCallback$2(eo){var to=reactExports.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return useIsomorphicLayoutEffect(function(){to.current=eo},[eo]),useConst$1(function(){return function(){for(var ro=[],no=0;no0&&uo>lo&&(ao=uo-lo>1)}oo!==ao&&io(ao)}}),function(){return ro.dispose()}}),oo}function defaultFocusRestorer(eo){var to=eo.originalElement,ro=eo.containsFocus;to&&ro&&to!==getWindow()&&setTimeout(function(){var no;(no=to.focus)===null||no===void 0||no.call(to)},0)}function useRestoreFocus(eo,to){var ro=eo.onRestoreFocus,no=ro===void 0?defaultFocusRestorer:ro,oo=reactExports.useRef(),io=reactExports.useRef(!1);reactExports.useEffect(function(){return oo.current=getDocument().activeElement,doesElementContainFocus(to.current)&&(io.current=!0),function(){var so;no==null||no({originalElement:oo.current,containsFocus:io.current,documentContainsFocus:((so=getDocument())===null||so===void 0?void 0:so.hasFocus())||!1}),oo.current=void 0}},[]),useOnEvent(to,"focus",reactExports.useCallback(function(){io.current=!0},[]),!0),useOnEvent(to,"blur",reactExports.useCallback(function(so){to.current&&so.relatedTarget&&!to.current.contains(so.relatedTarget)&&(io.current=!1)},[]),!0)}function useHideSiblingNodes(eo,to){var ro=String(eo["aria-modal"]).toLowerCase()==="true"&&eo.enableAriaHiddenSiblings;reactExports.useEffect(function(){if(ro&&to.current){var no=modalize(to.current);return no}},[to,ro])}var Popup=reactExports.forwardRef(function(eo,to){var ro=getPropsWithDefaults({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},eo),no=reactExports.useRef(),oo=useMergedRefs(no,to);useHideSiblingNodes(ro,no),useRestoreFocus(ro,no);var io=ro.role,so=ro.className,ao=ro.ariaLabel,lo=ro.ariaLabelledBy,uo=ro.ariaDescribedBy,co=ro.style,fo=ro.children,po=ro.onDismiss,ho=useScrollbarAsync(ro,no),mo=reactExports.useCallback(function(bo){switch(bo.which){case KeyCodes$1.escape:po&&(po(bo),bo.preventDefault(),bo.stopPropagation());break}},[po]),vo=useWindow();return useOnEvent(vo,"keydown",mo),reactExports.createElement("div",__assign$4({ref:oo},getNativeProps(ro,divProperties),{className:so,role:io,"aria-label":ao,"aria-labelledby":lo,"aria-describedby":uo,onKeyDown:mo,style:__assign$4({overflowY:ho?"scroll":void 0,outline:"none"},co)}),fo)});Popup.displayName="Popup";var _a$6,COMPONENT_NAME$2="CalloutContentBase",ANIMATIONS=(_a$6={},_a$6[RectangleEdge.top]=AnimationClassNames.slideUpIn10,_a$6[RectangleEdge.bottom]=AnimationClassNames.slideDownIn10,_a$6[RectangleEdge.left]=AnimationClassNames.slideLeftIn10,_a$6[RectangleEdge.right]=AnimationClassNames.slideRightIn10,_a$6),BEAK_ORIGIN_POSITION={top:0,left:0},OFF_SCREEN_STYLE={opacity:0,filter:"opacity(0)",pointerEvents:"none"},ARIA_ROLE_ATTRIBUTES=["role","aria-roledescription"],DEFAULT_PROPS$3={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:DirectionalHint.bottomAutoEdge},getClassNames$9=classNamesFunction({disableCaching:!0});function useBounds(eo,to,ro){var no=eo.bounds,oo=eo.minPagePadding,io=oo===void 0?DEFAULT_PROPS$3.minPagePadding:oo,so=eo.target,ao=reactExports.useState(!1),lo=ao[0],uo=ao[1],co=reactExports.useRef(),fo=reactExports.useCallback(function(){if(!co.current||lo){var ho=typeof no=="function"?ro?no(so,ro):void 0:no;!ho&&ro&&(ho=getBoundsFromTargetWindow(to.current,ro),ho={top:ho.top+io,left:ho.left+io,right:ho.right-io,bottom:ho.bottom-io,width:ho.width-io*2,height:ho.height-io*2}),co.current=ho,lo&&uo(!1)}return co.current},[no,io,so,to,ro,lo]),po=useAsync();return useOnEvent(ro,"resize",po.debounce(function(){uo(!0)},500,{leading:!0})),fo}function useMaxHeight(eo,to,ro,no){var oo,io=eo.calloutMaxHeight,so=eo.finalHeight,ao=eo.directionalHint,lo=eo.directionalHintFixed,uo=eo.hidden,co=eo.gapSpace,fo=eo.beakWidth,po=eo.isBeakVisible,ho=reactExports.useState(),mo=ho[0],vo=ho[1],bo=(oo=no==null?void 0:no.elementPosition)!==null&&oo!==void 0?oo:{},xo=bo.top,_o=bo.bottom,So=ro!=null&&ro.current?getRectangleFromTarget(ro.current):void 0;return reactExports.useEffect(function(){var Eo,ko=(Eo=to())!==null&&Eo!==void 0?Eo:{},wo=ko.top,Co=ko.bottom,Ro;(no==null?void 0:no.targetEdge)===RectangleEdge.top&&(So!=null&&So.top)&&(Co=So.top-calculateGapSpace(po,fo,co)),typeof xo=="number"&&Co?Ro=Co-xo:typeof _o=="number"&&typeof wo=="number"&&Co&&(Ro=Co-wo-_o),!io&&!uo||io&&Ro&&io>Ro?vo(Ro):vo(io||void 0)},[_o,io,so,ao,lo,to,uo,no,xo,co,fo,po,So]),mo}function usePositions(eo,to,ro,no,oo,io){var so=reactExports.useState(),ao=so[0],lo=so[1],uo=reactExports.useRef(0),co=reactExports.useRef(),fo=useAsync(),po=eo.hidden,ho=eo.target,mo=eo.finalHeight,vo=eo.calloutMaxHeight,bo=eo.onPositioned,xo=eo.directionalHint,_o=eo.hideOverflow,So=eo.preferScrollResizePositioning,Eo=useWindow(),ko=reactExports.useRef(),wo;ko.current!==io.current&&(ko.current=io.current,wo=io.current?Eo==null?void 0:Eo.getComputedStyle(io.current):void 0);var Co=wo==null?void 0:wo.overflowY;return reactExports.useEffect(function(){if(po)lo(void 0),uo.current=0;else{var Ro=fo.requestAnimationFrame(function(){var Ao,Io;if(to.current&&ro){var $o=__assign$4(__assign$4({},eo),{target:no.current,bounds:oo()}),Bo=ro.cloneNode(!0);Bo.style.maxHeight=vo?"".concat(vo):"",Bo.style.visibility="hidden",(Ao=ro.parentElement)===null||Ao===void 0||Ao.appendChild(Bo);var Mo=co.current===ho?ao:void 0,Ho=_o||Co==="clip"||Co==="hidden",jo=So&&!Ho,Oo=mo?positionCard($o,to.current,Bo,Mo):positionCallout($o,to.current,Bo,Mo,jo);(Io=ro.parentElement)===null||Io===void 0||Io.removeChild(Bo),!ao&&Oo||ao&&Oo&&!arePositionsEqual(ao,Oo)&&uo.current<5?(uo.current++,lo(Oo)):uo.current>0&&(uo.current=0,bo==null||bo(ao))}},ro);return co.current=ho,function(){fo.cancelAnimationFrame(Ro),co.current=void 0}}},[po,xo,fo,ro,vo,to,no,mo,oo,bo,ao,eo,ho,_o,So,Co]),ao}function useAutoFocus(eo,to,ro){var no=eo.hidden,oo=eo.setInitialFocus,io=useAsync(),so=!!to;reactExports.useEffect(function(){if(!no&&oo&&so&&ro){var ao=io.requestAnimationFrame(function(){return focusFirstChild(ro)},ro);return function(){return io.cancelAnimationFrame(ao)}}},[no,so,io,ro,oo])}function useDismissHandlers(eo,to,ro,no,oo){var io=eo.hidden,so=eo.onDismiss,ao=eo.preventDismissOnScroll,lo=eo.preventDismissOnResize,uo=eo.preventDismissOnLostFocus,co=eo.dismissOnTargetClick,fo=eo.shouldDismissOnWindowFocus,po=eo.preventDismissOnEvent,ho=reactExports.useRef(!1),mo=useAsync(),vo=useConst$1([function(){ho.current=!0},function(){ho.current=!1}]),bo=!!to;return reactExports.useEffect(function(){var xo=function(Co){bo&&!ao&&Eo(Co)},_o=function(Co){!lo&&!(po&&po(Co))&&(so==null||so(Co))},So=function(Co){uo||Eo(Co)},Eo=function(Co){var Ro=Co.composedPath?Co.composedPath():[],Ao=Ro.length>0?Ro[0]:Co.target,Io=ro.current&&!elementContains(ro.current,Ao);if(Io&&ho.current){ho.current=!1;return}if(!no.current&&Io||Co.target!==oo&&Io&&(!no.current||"stopPropagation"in no.current||co||Ao!==no.current&&!elementContains(no.current,Ao))){if(po&&po(Co))return;so==null||so(Co)}},ko=function(Co){fo&&(po&&!po(Co)||!po&&!uo)&&!(oo!=null&&oo.document.hasFocus())&&Co.relatedTarget===null&&(so==null||so(Co))},wo=new Promise(function(Co){mo.setTimeout(function(){if(!io&&oo){var Ro=[on$1(oo,"scroll",xo,!0),on$1(oo,"resize",_o,!0),on$1(oo.document.documentElement,"focus",So,!0),on$1(oo.document.documentElement,"click",So,!0),on$1(oo,"blur",ko,!0)];Co(function(){Ro.forEach(function(Ao){return Ao()})})}},0)});return function(){wo.then(function(Co){return Co()})}},[io,mo,ro,no,oo,so,fo,co,uo,lo,ao,bo,po]),vo}var CalloutContentBase=reactExports.memo(reactExports.forwardRef(function(eo,to){var ro=getPropsWithDefaults(DEFAULT_PROPS$3,eo),no=ro.styles,oo=ro.style,io=ro.ariaLabel,so=ro.ariaDescribedBy,ao=ro.ariaLabelledBy,lo=ro.className,uo=ro.isBeakVisible,co=ro.children,fo=ro.beakWidth,po=ro.calloutWidth,ho=ro.calloutMaxWidth,mo=ro.calloutMinWidth,vo=ro.doNotLayer,bo=ro.finalHeight,xo=ro.hideOverflow,_o=xo===void 0?!!bo:xo,So=ro.backgroundColor,Eo=ro.calloutMaxHeight,ko=ro.onScroll,wo=ro.shouldRestoreFocus,Co=wo===void 0?!0:wo,Ro=ro.target,Ao=ro.hidden,Io=ro.onLayerMounted,$o=ro.popupProps,Bo=reactExports.useRef(null),Mo=reactExports.useRef(null),Ho=useMergedRefs(Mo,$o==null?void 0:$o.ref),jo=reactExports.useState(null),Oo=jo[0],Fo=jo[1],Go=reactExports.useCallback(function(Zs){Fo(Zs)},[]),qo=useMergedRefs(Bo,to),Xo=useTarget(ro.target,{current:Oo}),Zo=Xo[0],Qo=Xo[1],xs=useBounds(ro,Zo,Qo),Ts=usePositions(ro,Bo,Oo,Zo,xs,Ho),Rs=useMaxHeight(ro,xs,Zo,Ts),Os=useDismissHandlers(ro,Ts,Bo,Zo,Qo),As=Os[0],Ds=Os[1],Jo=(Ts==null?void 0:Ts.elementPosition.top)&&(Ts==null?void 0:Ts.elementPosition.bottom),Cs=__assign$4(__assign$4({},Ts==null?void 0:Ts.elementPosition),{maxHeight:Rs});if(Jo&&(Cs.bottom=void 0),useAutoFocus(ro,Ts,Oo),reactExports.useEffect(function(){Ao||Io==null||Io()},[Ao]),!Qo)return null;var Bs=_o,zs=uo&&!!Ro,Ls=getClassNames$9(no,{theme:ro.theme,className:lo,overflowYHidden:Bs,calloutWidth:po,positions:Ts,beakWidth:fo,backgroundColor:So,calloutMaxWidth:ho,calloutMinWidth:mo,doNotLayer:vo}),ga=__assign$4(__assign$4({maxHeight:Eo||"100%"},oo),Bs&&{overflowY:"hidden"}),Js=ro.hidden?{visibility:"hidden"}:void 0;return reactExports.createElement("div",{ref:qo,className:Ls.container,style:Js},reactExports.createElement("div",__assign$4({},getNativeProps(ro,divProperties,ARIA_ROLE_ATTRIBUTES),{className:css$3(Ls.root,Ts&&Ts.targetEdge&&ANIMATIONS[Ts.targetEdge]),style:Ts?__assign$4({},Cs):OFF_SCREEN_STYLE,tabIndex:-1,ref:Go}),zs&&reactExports.createElement("div",{className:Ls.beak,style:getBeakPosition(Ts)}),zs&&reactExports.createElement("div",{className:Ls.beakCurtain}),reactExports.createElement(Popup,__assign$4({role:ro.role,"aria-roledescription":ro["aria-roledescription"],ariaDescribedBy:so,ariaLabel:io,ariaLabelledBy:ao,className:Ls.calloutMain,onDismiss:ro.onDismiss,onMouseDown:As,onMouseUp:Ds,onRestoreFocus:ro.onRestoreFocus,onScroll:ko,shouldRestoreFocus:Co,style:ga},$o,{ref:Ho}),co)))}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});function getBeakPosition(eo){var to,ro,no=__assign$4(__assign$4({},(to=eo==null?void 0:eo.beakPosition)===null||to===void 0?void 0:to.elementPosition),{display:!((ro=eo==null?void 0:eo.beakPosition)===null||ro===void 0)&&ro.hideBeak?"none":void 0});return!no.top&&!no.bottom&&!no.left&&!no.right&&(no.left=BEAK_ORIGIN_POSITION.left,no.top=BEAK_ORIGIN_POSITION.top),no}function arePositionsEqual(eo,to){return comparePositions(eo.elementPosition,to.elementPosition)&&comparePositions(eo.beakPosition.elementPosition,to.beakPosition.elementPosition)}function comparePositions(eo,to){for(var ro in to)if(to.hasOwnProperty(ro)){var no=eo[ro],oo=to[ro];if(no!==void 0&&oo!==void 0){if(no.toFixed(2)!==oo.toFixed(2))return!1}else return!1}return!0}CalloutContentBase.displayName=COMPONENT_NAME$2;function getBeakStyle(eo){return{height:eo,width:eo}}var GlobalClassNames$8={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},getStyles$9=function(eo){var to,ro=eo.theme,no=eo.className,oo=eo.overflowYHidden,io=eo.calloutWidth,so=eo.beakWidth,ao=eo.backgroundColor,lo=eo.calloutMaxWidth,uo=eo.calloutMinWidth,co=eo.doNotLayer,fo=getGlobalClassNames(GlobalClassNames$8,ro),po=ro.semanticColors,ho=ro.effects;return{container:[fo.container,{position:"relative"}],root:[fo.root,ro.fonts.medium,{position:"absolute",display:"flex",zIndex:co?ZIndexes.Layer:void 0,boxSizing:"border-box",borderRadius:ho.roundedCorner2,boxShadow:ho.elevation16,selectors:(to={},to[HighContrastSelector]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},to)},focusClear(),no,!!io&&{width:io},!!lo&&{maxWidth:lo},!!uo&&{minWidth:uo}],beak:[fo.beak,{position:"absolute",backgroundColor:po.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},getBeakStyle(so),ao&&{backgroundColor:ao}],beakCurtain:[fo.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:po.menuBackground,borderRadius:ho.roundedCorner2}],calloutMain:[fo.calloutMain,{backgroundColor:po.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:ho.roundedCorner2},oo&&{overflowY:"hidden"},ao&&{backgroundColor:ao}]}},CalloutContent=styled(CalloutContentBase,getStyles$9,void 0,{scope:"CalloutContent"});const PortalCompatContext=reactExports.createContext(void 0),portalCompatContextDefaultValue=()=>()=>{};PortalCompatContext.Provider;function usePortalCompat(){var eo;return(eo=reactExports.useContext(PortalCompatContext))!==null&&eo!==void 0?eo:portalCompatContextDefaultValue}var getClassNames$8=classNamesFunction(),getFabricTheme=memoizeFunction(function(eo,to){return createTheme(__assign$4(__assign$4({},eo),{rtl:to}))}),getDir=function(eo){var to=eo.theme,ro=eo.dir,no=getRTL$1(to)?"rtl":"ltr",oo=getRTL$1()?"rtl":"ltr",io=ro||no;return{rootDir:io!==no||io!==oo?io:ro,needsTheme:io!==no}},FabricBase=reactExports.forwardRef(function(eo,to){var ro=eo.className,no=eo.theme,oo=eo.applyTheme,io=eo.applyThemeToBody,so=eo.styles,ao=getClassNames$8(so,{theme:no,applyTheme:oo,className:ro}),lo=reactExports.useRef(null);return useApplyThemeToBody(io,ao,lo),reactExports.createElement(reactExports.Fragment,null,useRenderedContent(eo,ao,lo,to))});FabricBase.displayName="FabricBase";function useRenderedContent(eo,to,ro,no){var oo=to.root,io=eo.as,so=io===void 0?"div":io,ao=eo.dir,lo=eo.theme,uo=getNativeProps(eo,divProperties,["dir"]),co=getDir(eo),fo=co.rootDir,po=co.needsTheme,ho=reactExports.createElement(FocusRectsProvider,{providerRef:ro},reactExports.createElement(so,__assign$4({dir:fo},uo,{className:oo,ref:useMergedRefs(ro,no)})));return po&&(ho=reactExports.createElement(Customizer,{settings:{theme:getFabricTheme(lo,ao==="rtl")}},ho)),ho}function useApplyThemeToBody(eo,to,ro){var no=to.bodyThemed;return reactExports.useEffect(function(){if(eo){var oo=getDocument(ro.current);if(oo)return oo.body.classList.add(no),function(){oo.body.classList.remove(no)}}},[no,eo,ro]),ro}var inheritFont={fontFamily:"inherit"},GlobalClassNames$7={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},getStyles$8=function(eo){var to=eo.applyTheme,ro=eo.className,no=eo.preventBlanketFontInheritance,oo=eo.theme,io=getGlobalClassNames(GlobalClassNames$7,oo);return{root:[io.root,oo.fonts.medium,{color:oo.palette.neutralPrimary},!no&&{"& button":inheritFont,"& input":inheritFont,"& textarea":inheritFont},to&&{color:oo.semanticColors.bodyText,backgroundColor:oo.semanticColors.bodyBackground},ro],bodyThemed:[{backgroundColor:oo.semanticColors.bodyBackground}]}},Fabric=styled(FabricBase,getStyles$8,void 0,{scope:"Fabric"}),_layersByHostId={},_layerHostsById={},defaultHostId="fluent-default-layer-host",_defaultHostSelector="#".concat(defaultHostId);function registerLayer(eo,to){_layersByHostId[eo]||(_layersByHostId[eo]=[]),_layersByHostId[eo].push(to);var ro=_layerHostsById[eo];if(ro)for(var no=0,oo=ro;no=0&&(ro.splice(no,1),ro.length===0&&delete _layersByHostId[eo])}var oo=_layerHostsById[eo];if(oo)for(var io=0,so=oo;io0&&to.current.naturalHeight>0||to.current.complete&&SVG_REGEX.test(io):!1;fo&&lo(ImageLoadState.loaded)}}),reactExports.useEffect(function(){ro==null||ro(ao)},[ao]);var uo=reactExports.useCallback(function(fo){no==null||no(fo),io&&lo(ImageLoadState.loaded)},[io,no]),co=reactExports.useCallback(function(fo){oo==null||oo(fo),lo(ImageLoadState.error)},[oo]);return[ao,uo,co]}var ImageBase=reactExports.forwardRef(function(eo,to){var ro=reactExports.useRef(),no=reactExports.useRef(),oo=useLoadState(eo,no),io=oo[0],so=oo[1],ao=oo[2],lo=getNativeProps(eo,imgProperties,["width","height"]),uo=eo.src,co=eo.alt,fo=eo.width,po=eo.height,ho=eo.shouldFadeIn,mo=ho===void 0?!0:ho,vo=eo.shouldStartVisible,bo=eo.className,xo=eo.imageFit,_o=eo.role,So=eo.maximizeFrame,Eo=eo.styles,ko=eo.theme,wo=eo.loading,Co=useCoverStyle(eo,io,no,ro),Ro=getClassNames$6(Eo,{theme:ko,className:bo,width:fo,height:po,maximizeFrame:So,shouldFadeIn:mo,shouldStartVisible:vo,isLoaded:io===ImageLoadState.loaded||io===ImageLoadState.notLoaded&&eo.shouldStartVisible,isLandscape:Co===ImageCoverStyle.landscape,isCenter:xo===ImageFit.center,isCenterContain:xo===ImageFit.centerContain,isCenterCover:xo===ImageFit.centerCover,isContain:xo===ImageFit.contain,isCover:xo===ImageFit.cover,isNone:xo===ImageFit.none,isError:io===ImageLoadState.error,isNotImageFit:xo===void 0});return reactExports.createElement("div",{className:Ro.root,style:{width:fo,height:po},ref:ro},reactExports.createElement("img",__assign$4({},lo,{onLoad:so,onError:ao,key:KEY_PREFIX+eo.src||"",className:Ro.image,ref:useMergedRefs(no,to),src:uo,alt:co,role:_o,loading:wo})))});ImageBase.displayName="ImageBase";function useCoverStyle(eo,to,ro,no){var oo=reactExports.useRef(to),io=reactExports.useRef();return(io===void 0||oo.current===ImageLoadState.notLoaded&&to===ImageLoadState.loaded)&&(io.current=computeCoverStyle(eo,to,ro,no)),oo.current=to,io.current}function computeCoverStyle(eo,to,ro,no){var oo=eo.imageFit,io=eo.width,so=eo.height;if(eo.coverStyle!==void 0)return eo.coverStyle;if(to===ImageLoadState.loaded&&(oo===ImageFit.cover||oo===ImageFit.contain||oo===ImageFit.centerContain||oo===ImageFit.centerCover)&&ro.current&&no.current){var ao=void 0;typeof io=="number"&&typeof so=="number"&&oo!==ImageFit.centerContain&&oo!==ImageFit.centerCover?ao=io/so:ao=no.current.clientWidth/no.current.clientHeight;var lo=ro.current.naturalWidth/ro.current.naturalHeight;if(lo>ao)return ImageCoverStyle.landscape}return ImageCoverStyle.portrait}var GlobalClassNames$5={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},getStyles$6=function(eo){var to=eo.className,ro=eo.width,no=eo.height,oo=eo.maximizeFrame,io=eo.isLoaded,so=eo.shouldFadeIn,ao=eo.shouldStartVisible,lo=eo.isLandscape,uo=eo.isCenter,co=eo.isContain,fo=eo.isCover,po=eo.isCenterContain,ho=eo.isCenterCover,mo=eo.isNone,vo=eo.isError,bo=eo.isNotImageFit,xo=eo.theme,_o=getGlobalClassNames(GlobalClassNames$5,xo),So={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},Eo=getWindow(),ko=Eo!==void 0&&Eo.navigator.msMaxTouchPoints===void 0,wo=co&&lo||fo&&!lo?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_o.root,xo.fonts.medium,{overflow:"hidden"},oo&&[_o.rootMaximizeFrame,{height:"100%",width:"100%"}],io&&so&&!ao&&AnimationClassNames.fadeIn400,(uo||co||fo||po||ho)&&{position:"relative"},to],image:[_o.image,{display:"block",opacity:0},io&&["is-loaded",{opacity:1}],uo&&[_o.imageCenter,So],co&&[_o.imageContain,ko&&{width:"100%",height:"100%",objectFit:"contain"},!ko&&wo,!ko&&So],fo&&[_o.imageCover,ko&&{width:"100%",height:"100%",objectFit:"cover"},!ko&&wo,!ko&&So],po&&[_o.imageCenterContain,lo&&{maxWidth:"100%"},!lo&&{maxHeight:"100%"},So],ho&&[_o.imageCenterCover,lo&&{maxHeight:"100%"},!lo&&{maxWidth:"100%"},So],mo&&[_o.imageNone,{width:"auto",height:"auto"}],bo&&[!!ro&&!no&&{height:"auto",width:"100%"},!ro&&!!no&&{height:"100%",width:"auto"},!!ro&&!!no&&{height:"100%",width:"100%"}],lo&&_o.imageLandscape,!lo&&_o.imagePortrait,!io&&"is-notLoaded",so&&"is-fadeIn",vo&&"is-error"]}},Image$1=styled(ImageBase,getStyles$6,void 0,{scope:"Image"},!0);Image$1.displayName="Image";var classNames=mergeStyleSets({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),MS_ICON="ms-Icon",getStyles$5=function(eo){var to=eo.className,ro=eo.iconClassName,no=eo.isPlaceholder,oo=eo.isImage,io=eo.styles;return{root:[no&&classNames.placeholder,classNames.root,oo&&classNames.image,ro,to,io&&io.root,io&&io.imageContainer]}},getIconContent=memoizeFunction(function(eo){var to=getIcon(eo)||{subset:{},code:void 0},ro=to.code,no=to.subset;return ro?{children:ro,iconClassName:no.className,fontFamily:no.fontFace&&no.fontFace.fontFamily,mergeImageProps:no.mergeImageProps}:null},void 0,!0),FontIcon=function(eo){var to=eo.iconName,ro=eo.className,no=eo.style,oo=no===void 0?{}:no,io=getIconContent(to)||{},so=io.iconClassName,ao=io.children,lo=io.fontFamily,uo=io.mergeImageProps,co=getNativeProps(eo,htmlElementProperties),fo=eo["aria-label"]||eo.title,po=eo["aria-label"]||eo["aria-labelledby"]||eo.title?{role:uo?void 0:"img"}:{"aria-hidden":!0},ho=ao;return uo&&typeof ao=="object"&&typeof ao.props=="object"&&fo&&(ho=reactExports.cloneElement(ao,{alt:fo})),reactExports.createElement("i",__assign$4({"data-icon-name":to},po,co,uo?{title:void 0,"aria-label":void 0}:{},{className:css$3(MS_ICON,classNames.root,so,!to&&classNames.placeholder,ro),style:__assign$4({fontFamily:lo},oo)}),ho)};memoizeFunction(function(eo,to,ro){return FontIcon({iconName:eo,className:to,"aria-label":ro})});var getClassNames$5=classNamesFunction({cacheSize:100}),IconBase=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._onImageLoadingStateChange=function(oo){no.props.imageProps&&no.props.imageProps.onLoadingStateChange&&no.props.imageProps.onLoadingStateChange(oo),oo===ImageLoadState.error&&no.setState({imageLoadError:!0})},no.state={imageLoadError:!1},no}return to.prototype.render=function(){var ro=this.props,no=ro.children,oo=ro.className,io=ro.styles,so=ro.iconName,ao=ro.imageErrorAs,lo=ro.theme,uo=typeof so=="string"&&so.length===0,co=!!this.props.imageProps||this.props.iconType===IconType.image||this.props.iconType===IconType.Image,fo=getIconContent(so)||{},po=fo.iconClassName,ho=fo.children,mo=fo.mergeImageProps,vo=getClassNames$5(io,{theme:lo,className:oo,iconClassName:po,isImage:co,isPlaceholder:uo}),bo=co?"span":"i",xo=getNativeProps(this.props,htmlElementProperties,["aria-label"]),_o=this.state.imageLoadError,So=__assign$4(__assign$4({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),Eo=_o&&ao||Image$1,ko=this.props["aria-label"]||this.props.ariaLabel,wo=So.alt||ko||this.props.title,Co=!!(wo||this.props["aria-labelledby"]||So["aria-label"]||So["aria-labelledby"]),Ro=Co?{role:co||mo?void 0:"img","aria-label":co||mo?void 0:wo}:{"aria-hidden":!0},Ao=ho;return mo&&ho&&typeof ho=="object"&&wo&&(Ao=reactExports.cloneElement(ho,{alt:wo})),reactExports.createElement(bo,__assign$4({"data-icon-name":so},Ro,xo,mo?{title:void 0,"aria-label":void 0}:{},{className:vo.root}),co?reactExports.createElement(Eo,__assign$4({},So)):no||Ao)},to}(reactExports.Component),Icon=styled(IconBase,getStyles$5,void 0,{scope:"Icon"},!0);Icon.displayName="Icon";var FocusZoneTabbableElements={none:0,all:1,inputOnly:2},FocusZoneDirection;(function(eo){eo[eo.vertical=0]="vertical",eo[eo.horizontal=1]="horizontal",eo[eo.bidirectional=2]="bidirectional",eo[eo.domOrder=3]="domOrder"})(FocusZoneDirection||(FocusZoneDirection={}));var IS_FOCUSABLE_ATTRIBUTE="data-is-focusable",IS_ENTER_DISABLED_ATTRIBUTE="data-disable-click-on-enter",FOCUSZONE_ID_ATTRIBUTE="data-focuszone-id",TABINDEX="tabindex",NO_VERTICAL_WRAP="data-no-vertical-wrap",NO_HORIZONTAL_WRAP="data-no-horizontal-wrap",LARGE_DISTANCE_FROM_CENTER=999999999,LARGE_NEGATIVE_DISTANCE_FROM_CENTER=-999999999,focusZoneStyles,focusZoneClass="ms-FocusZone";function raiseClickFromKeyboardEvent(eo,to){var ro;typeof MouseEvent=="function"?ro=new MouseEvent("click",{ctrlKey:to==null?void 0:to.ctrlKey,metaKey:to==null?void 0:to.metaKey,shiftKey:to==null?void 0:to.shiftKey,altKey:to==null?void 0:to.altKey,bubbles:to==null?void 0:to.bubbles,cancelable:to==null?void 0:to.cancelable}):(ro=document.createEvent("MouseEvents"),ro.initMouseEvent("click",to?to.bubbles:!1,to?to.cancelable:!1,window,0,0,0,0,0,to?to.ctrlKey:!1,to?to.altKey:!1,to?to.shiftKey:!1,to?to.metaKey:!1,0,null)),eo.dispatchEvent(ro)}function getRootClass(){return focusZoneStyles||(focusZoneStyles=mergeStyles$1({selectors:{":focus":{outline:"none"}}},focusZoneClass)),focusZoneStyles}var _allInstances={},_outerZones=new Set,ALLOWED_INPUT_TYPES=["text","number","password","email","tel","url","search","textarea"],ALLOW_VIRTUAL_ELEMENTS=!1,FocusZone=function(eo){__extends$3(to,eo);function to(ro){var no=this,oo,io,so,ao;no=eo.call(this,ro)||this,no._root=reactExports.createRef(),no._mergedRef=createMergedRef(),no._onFocus=function(uo){if(!no._portalContainsElement(uo.target)){var co=no.props,fo=co.onActiveElementChanged,po=co.doNotAllowFocusEventToPropagate,ho=co.stopFocusPropagation,mo=co.onFocusNotification,vo=co.onFocus,bo=co.shouldFocusInnerElementWhenReceivedFocus,xo=co.defaultTabbableElement,_o=no._isImmediateDescendantOfZone(uo.target),So;if(_o)So=uo.target;else for(var Eo=uo.target;Eo&&Eo!==no._root.current;){if(isElementTabbable(Eo)&&no._isImmediateDescendantOfZone(Eo)){So=Eo;break}Eo=getParent(Eo,ALLOW_VIRTUAL_ELEMENTS)}if(bo&&uo.target===no._root.current){var ko=xo&&typeof xo=="function"&&no._root.current&&xo(no._root.current);ko&&isElementTabbable(ko)?(So=ko,ko.focus()):(no.focus(!0),no._activeElement&&(So=null))}var wo=!no._activeElement;So&&So!==no._activeElement&&((_o||wo)&&no._setFocusAlignment(So,!0,!0),no._activeElement=So,wo&&no._updateTabIndexes()),fo&&fo(no._activeElement,uo),(ho||po)&&uo.stopPropagation(),vo?vo(uo):mo&&mo()}},no._onBlur=function(){no._setParkedFocus(!1)},no._onMouseDown=function(uo){if(!no._portalContainsElement(uo.target)){var co=no.props.disabled;if(!co){for(var fo=uo.target,po=[];fo&&fo!==no._root.current;)po.push(fo),fo=getParent(fo,ALLOW_VIRTUAL_ELEMENTS);for(;po.length&&(fo=po.pop(),fo&&isElementTabbable(fo)&&no._setActiveElement(fo,!0),!isElementFocusZone(fo)););}}},no._onKeyDown=function(uo,co){if(!no._portalContainsElement(uo.target)){var fo=no.props,po=fo.direction,ho=fo.disabled,mo=fo.isInnerZoneKeystroke,vo=fo.pagingSupportDisabled,bo=fo.shouldEnterInnerZone;if(!ho&&(no.props.onKeyDown&&no.props.onKeyDown(uo),!uo.isDefaultPrevented()&&!(no._getDocument().activeElement===no._root.current&&no._isInnerZone))){if((bo&&bo(uo)||mo&&mo(uo))&&no._isImmediateDescendantOfZone(uo.target)){var xo=no._getFirstInnerZone();if(xo){if(!xo.focus(!0))return}else if(isElementFocusSubZone(uo.target)){if(!no.focusElement(getNextElement(uo.target,uo.target.firstChild,!0)))return}else return}else{if(uo.altKey)return;switch(uo.which){case KeyCodes$1.space:if(no._shouldRaiseClicksOnSpace&&no._tryInvokeClickForFocusable(uo.target,uo))break;return;case KeyCodes$1.left:if(po!==FocusZoneDirection.vertical&&(no._preventDefaultWhenHandled(uo),no._moveFocusLeft(co)))break;return;case KeyCodes$1.right:if(po!==FocusZoneDirection.vertical&&(no._preventDefaultWhenHandled(uo),no._moveFocusRight(co)))break;return;case KeyCodes$1.up:if(po!==FocusZoneDirection.horizontal&&(no._preventDefaultWhenHandled(uo),no._moveFocusUp()))break;return;case KeyCodes$1.down:if(po!==FocusZoneDirection.horizontal&&(no._preventDefaultWhenHandled(uo),no._moveFocusDown()))break;return;case KeyCodes$1.pageDown:if(!vo&&no._moveFocusPaging(!0))break;return;case KeyCodes$1.pageUp:if(!vo&&no._moveFocusPaging(!1))break;return;case KeyCodes$1.tab:if(no.props.allowTabKey||no.props.handleTabKey===FocusZoneTabbableElements.all||no.props.handleTabKey===FocusZoneTabbableElements.inputOnly&&no._isElementInput(uo.target)){var _o=!1;if(no._processingTabKey=!0,po===FocusZoneDirection.vertical||!no._shouldWrapFocus(no._activeElement,NO_HORIZONTAL_WRAP))_o=uo.shiftKey?no._moveFocusUp():no._moveFocusDown();else{var So=getRTL$1(co)?!uo.shiftKey:uo.shiftKey;_o=So?no._moveFocusLeft(co):no._moveFocusRight(co)}if(no._processingTabKey=!1,_o)break;no.props.shouldResetActiveElementWhenTabFromZone&&(no._activeElement=null)}return;case KeyCodes$1.home:if(no._isContentEditableElement(uo.target)||no._isElementInput(uo.target)&&!no._shouldInputLoseFocus(uo.target,!1))return!1;var Eo=no._root.current&&no._root.current.firstChild;if(no._root.current&&Eo&&no.focusElement(getNextElement(no._root.current,Eo,!0)))break;return;case KeyCodes$1.end:if(no._isContentEditableElement(uo.target)||no._isElementInput(uo.target)&&!no._shouldInputLoseFocus(uo.target,!0))return!1;var ko=no._root.current&&no._root.current.lastChild;if(no._root.current&&no.focusElement(getPreviousElement(no._root.current,ko,!0,!0,!0)))break;return;case KeyCodes$1.enter:if(no._shouldRaiseClicksOnEnter&&no._tryInvokeClickForFocusable(uo.target,uo))break;return;default:return}}uo.preventDefault(),uo.stopPropagation()}}},no._getHorizontalDistanceFromCenter=function(uo,co,fo){var po=no._focusAlignment.left||no._focusAlignment.x||0,ho=Math.floor(fo.top),mo=Math.floor(co.bottom),vo=Math.floor(fo.bottom),bo=Math.floor(co.top),xo=uo&&ho>mo,_o=!uo&&vo=fo.left&&po<=fo.left+fo.width?0:Math.abs(fo.left+fo.width/2-po):no._shouldWrapFocus(no._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER},initializeComponentRef(no),no._id=getId("FocusZone"),no._focusAlignment={left:0,top:0},no._processingTabKey=!1;var lo=(io=(oo=ro.shouldRaiseClicks)!==null&&oo!==void 0?oo:to.defaultProps.shouldRaiseClicks)!==null&&io!==void 0?io:!0;return no._shouldRaiseClicksOnEnter=(so=ro.shouldRaiseClicksOnEnter)!==null&&so!==void 0?so:lo,no._shouldRaiseClicksOnSpace=(ao=ro.shouldRaiseClicksOnSpace)!==null&&ao!==void 0?ao:lo,no}return to.getOuterZones=function(){return _outerZones.size},to._onKeyDownCapture=function(ro){ro.which===KeyCodes$1.tab&&_outerZones.forEach(function(no){return no._updateTabIndexes()})},to.prototype.componentDidMount=function(){var ro=this._root.current;if(_allInstances[this._id]=this,ro){for(var no=getParent(ro,ALLOW_VIRTUAL_ELEMENTS);no&&no!==this._getDocument().body&&no.nodeType===1;){if(isElementFocusZone(no)){this._isInnerZone=!0;break}no=getParent(no,ALLOW_VIRTUAL_ELEMENTS)}this._isInnerZone||(_outerZones.add(this),this._root.current&&this._root.current.addEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},to.prototype.componentDidUpdate=function(){var ro=this._root.current,no=this._getDocument();if((this._activeElement&&!elementContains(this._root.current,this._activeElement,ALLOW_VIRTUAL_ELEMENTS)||this._defaultFocusElement&&!elementContains(this._root.current,this._defaultFocusElement,ALLOW_VIRTUAL_ELEMENTS))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&no&&this._lastIndexPath&&(no.activeElement===no.body||no.activeElement===null||no.activeElement===ro)){var oo=getFocusableByIndexPath(ro,this._lastIndexPath);oo?(this._setActiveElement(oo,!0),oo.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},to.prototype.componentWillUnmount=function(){delete _allInstances[this._id],this._isInnerZone||(_outerZones.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",to._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},to.prototype.render=function(){var ro=this,no=this.props,oo=no.as,io=no.elementType,so=no.rootProps,ao=no.ariaDescribedBy,lo=no.ariaLabelledBy,uo=no.className,co=getNativeProps(this.props,htmlElementProperties),fo=oo||io||"div";this._evaluateFocusBeforeRender();var po=getTheme();return reactExports.createElement(fo,__assign$4({"aria-labelledby":lo,"aria-describedby":ao},co,so,{className:css$3(getRootClass(),uo),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(ho){return ro._onKeyDown(ho,po)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},to.prototype.focus=function(ro,no){if(ro===void 0&&(ro=!1),no===void 0&&(no=!1),this._root.current)if(!ro&&this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&this._isInnerZone){var oo=this._getOwnerZone(this._root.current);if(oo!==this._root.current){var io=_allInstances[oo.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];return!!io&&io.focusElement(this._root.current)}return!1}else{if(!ro&&this._activeElement&&elementContains(this._root.current,this._activeElement)&&isElementTabbable(this._activeElement)&&(!no||isElementVisibleAndNotHidden(this._activeElement)))return this._activeElement.focus(),!0;var so=this._root.current.firstChild;return this.focusElement(getNextElement(this._root.current,so,!0,void 0,void 0,void 0,void 0,void 0,no))}return!1},to.prototype.focusLast=function(){if(this._root.current){var ro=this._root.current&&this._root.current.lastChild;return this.focusElement(getPreviousElement(this._root.current,ro,!0,!0,!0))}return!1},to.prototype.focusElement=function(ro,no){var oo=this.props,io=oo.onBeforeFocus,so=oo.shouldReceiveFocus;return so&&!so(ro)||io&&!io(ro)?!1:ro?(this._setActiveElement(ro,no),this._activeElement&&this._activeElement.focus(),!0):!1},to.prototype.setFocusAlignment=function(ro){this._focusAlignment=ro},Object.defineProperty(to.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),to.prototype._evaluateFocusBeforeRender=function(){var ro=this._root.current,no=this._getDocument();if(no){var oo=no.activeElement;if(oo!==ro){var io=elementContains(ro,oo,!1);this._lastIndexPath=io?getElementIndexPath(ro,oo):void 0}}},to.prototype._setParkedFocus=function(ro){var no=this._root.current;no&&this._isParked!==ro&&(this._isParked=ro,ro?(this.props.allowFocusRoot||(this._parkedTabIndex=no.getAttribute("tabindex"),no.setAttribute("tabindex","-1")),no.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(no.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):no.removeAttribute("tabindex")))},to.prototype._setActiveElement=function(ro,no){var oo=this._activeElement;this._activeElement=ro,oo&&(isElementFocusZone(oo)&&this._updateTabIndexes(oo),oo.tabIndex=-1),this._activeElement&&((!this._focusAlignment||no)&&this._setFocusAlignment(ro,!0,!0),this._activeElement.tabIndex=0)},to.prototype._preventDefaultWhenHandled=function(ro){this.props.preventDefaultWhenHandled&&ro.preventDefault()},to.prototype._tryInvokeClickForFocusable=function(ro,no){var oo=ro;if(oo===this._root.current)return!1;do{if(oo.tagName==="BUTTON"||oo.tagName==="A"||oo.tagName==="INPUT"||oo.tagName==="TEXTAREA"||oo.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(oo)&&oo.getAttribute(IS_FOCUSABLE_ATTRIBUTE)==="true"&&oo.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE)!=="true")return raiseClickFromKeyboardEvent(oo,no),!0;oo=getParent(oo,ALLOW_VIRTUAL_ELEMENTS)}while(oo!==this._root.current);return!1},to.prototype._getFirstInnerZone=function(ro){if(ro=ro||this._activeElement||this._root.current,!ro)return null;if(isElementFocusZone(ro))return _allInstances[ro.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];for(var no=ro.firstElementChild;no;){if(isElementFocusZone(no))return _allInstances[no.getAttribute(FOCUSZONE_ID_ATTRIBUTE)];var oo=this._getFirstInnerZone(no);if(oo)return oo;no=no.nextElementSibling}return null},to.prototype._moveFocus=function(ro,no,oo,io){io===void 0&&(io=!0);var so=this._activeElement,ao=-1,lo=void 0,uo=!1,co=this.props.direction===FocusZoneDirection.bidirectional;if(!so||!this._root.current||this._isElementInput(so)&&!this._shouldInputLoseFocus(so,ro))return!1;var fo=co?so.getBoundingClientRect():null;do if(so=ro?getNextElement(this._root.current,so):getPreviousElement(this._root.current,so),co){if(so){var po=so.getBoundingClientRect(),ho=no(fo,po);if(ho===-1&&ao===-1){lo=so;break}if(ho>-1&&(ao===-1||ho=0&&ho<0)break}}else{lo=so;break}while(so);if(lo&&lo!==this._activeElement)uo=!0,this.focusElement(lo);else if(this.props.isCircularNavigation&&io)return ro?this.focusElement(getNextElement(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(getPreviousElement(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return uo},to.prototype._moveFocusDown=function(){var ro=this,no=-1,oo=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(io,so){var ao=-1,lo=Math.floor(so.top),uo=Math.floor(io.bottom);return lo=uo||lo===no)&&(no=lo,oo>=so.left&&oo<=so.left+so.width?ao=0:ao=Math.abs(so.left+so.width/2-oo)),ao)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusUp=function(){var ro=this,no=-1,oo=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(io,so){var ao=-1,lo=Math.floor(so.bottom),uo=Math.floor(so.top),co=Math.floor(io.top);return lo>co?ro._shouldWrapFocus(ro._activeElement,NO_VERTICAL_WRAP)?LARGE_DISTANCE_FROM_CENTER:LARGE_NEGATIVE_DISTANCE_FROM_CENTER:((no===-1&&lo<=co||uo===no)&&(no=uo,oo>=so.left&&oo<=so.left+so.width?ao=0:ao=Math.abs(so.left+so.width/2-oo)),ao)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},to.prototype._moveFocusLeft=function(ro){var no=this,oo=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(getRTL$1(ro),function(io,so){var ao=-1,lo;return getRTL$1(ro)?lo=parseFloat(so.top.toFixed(3))parseFloat(io.top.toFixed(3)),lo&&so.right<=io.right&&no.props.direction!==FocusZoneDirection.vertical?ao=io.right-so.right:oo||(ao=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),ao},void 0,oo)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusRight=function(ro){var no=this,oo=this._shouldWrapFocus(this._activeElement,NO_HORIZONTAL_WRAP);return this._moveFocus(!getRTL$1(ro),function(io,so){var ao=-1,lo;return getRTL$1(ro)?lo=parseFloat(so.bottom.toFixed(3))>parseFloat(io.top.toFixed(3)):lo=parseFloat(so.top.toFixed(3))=io.left&&no.props.direction!==FocusZoneDirection.vertical?ao=so.left-io.left:oo||(ao=LARGE_NEGATIVE_DISTANCE_FROM_CENTER),ao},void 0,oo)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},to.prototype._moveFocusPaging=function(ro,no){no===void 0&&(no=!0);var oo=this._activeElement;if(!oo||!this._root.current||this._isElementInput(oo)&&!this._shouldInputLoseFocus(oo,ro))return!1;var io=findScrollableParent(oo);if(!io)return!1;var so=-1,ao=void 0,lo=-1,uo=-1,co=io.clientHeight,fo=oo.getBoundingClientRect();do if(oo=ro?getNextElement(this._root.current,oo):getPreviousElement(this._root.current,oo),oo){var po=oo.getBoundingClientRect(),ho=Math.floor(po.top),mo=Math.floor(fo.bottom),vo=Math.floor(po.bottom),bo=Math.floor(fo.top),xo=this._getHorizontalDistanceFromCenter(ro,fo,po),_o=ro&&ho>mo+co,So=!ro&&vo-1&&(ro&&ho>lo?(lo=ho,so=xo,ao=oo):!ro&&vo-1){var oo=ro.selectionStart,io=ro.selectionEnd,so=oo!==io,ao=ro.value,lo=ro.readOnly;if(so||oo>0&&!no&&!lo||oo!==ao.length&&no&&!lo||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(ro)))return!1}return!0},to.prototype._shouldWrapFocus=function(ro,no){return this.props.checkForNoWrap?shouldWrapFocus(ro,no):!0},to.prototype._portalContainsElement=function(ro){return ro&&!!this._root.current&&portalContainsElement(ro,this._root.current)},to.prototype._getDocument=function(){return getDocument(this._root.current)},to.defaultProps={isCircularNavigation:!1,direction:FocusZoneDirection.bidirectional,shouldRaiseClicks:!0},to}(reactExports.Component),ContextualMenuItemType;(function(eo){eo[eo.Normal=0]="Normal",eo[eo.Divider=1]="Divider",eo[eo.Header=2]="Header",eo[eo.Section=3]="Section"})(ContextualMenuItemType||(ContextualMenuItemType={}));function getIsChecked(eo){return eo.canCheck?!!(eo.isChecked||eo.checked):typeof eo.isChecked=="boolean"?eo.isChecked:typeof eo.checked=="boolean"?eo.checked:null}function hasSubmenu(eo){return!!(eo.subMenuProps||eo.items)}function isItemDisabled(eo){return!!(eo.isDisabled||eo.disabled)}function getMenuItemAriaRole(eo){var to=getIsChecked(eo),ro=to!==null;return ro?"menuitemcheckbox":"menuitem"}var defaultIconRenderer=function(eo){var to=eo.item,ro=eo.classNames,no=to.iconProps;return reactExports.createElement(Icon,__assign$4({},no,{className:ro.icon}))},renderItemIcon=function(eo){var to=eo.item,ro=eo.hasIcons;return ro?to.onRenderIcon?to.onRenderIcon(eo,defaultIconRenderer):defaultIconRenderer(eo):null},renderCheckMarkIcon=function(eo){var to=eo.onCheckmarkClick,ro=eo.item,no=eo.classNames,oo=getIsChecked(ro);if(to){var io=function(so){return to(ro,so)};return reactExports.createElement(Icon,{iconName:ro.canCheck!==!1&&oo?"CheckMark":"",className:no.checkmarkIcon,onClick:io})}return null},renderItemName=function(eo){var to=eo.item,ro=eo.classNames;return to.text||to.name?reactExports.createElement("span",{className:ro.label},to.text||to.name):null},renderSecondaryText=function(eo){var to=eo.item,ro=eo.classNames;return to.secondaryText?reactExports.createElement("span",{className:ro.secondaryText},to.secondaryText):null},renderSubMenuIcon=function(eo){var to=eo.item,ro=eo.classNames,no=eo.theme;return hasSubmenu(to)?reactExports.createElement(Icon,__assign$4({iconName:getRTL$1(no)?"ChevronLeft":"ChevronRight"},to.submenuIconProps,{className:ro.subMenuIcon})):null},ContextualMenuItemBase=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no.openSubMenu=function(){var oo=no.props,io=oo.item,so=oo.openSubMenu,ao=oo.getSubmenuTarget;if(ao){var lo=ao();hasSubmenu(io)&&so&&lo&&so(io,lo)}},no.dismissSubMenu=function(){var oo=no.props,io=oo.item,so=oo.dismissSubMenu;hasSubmenu(io)&&so&&so()},no.dismissMenu=function(oo){var io=no.props.dismissMenu;io&&io(void 0,oo)},initializeComponentRef(no),no}return to.prototype.render=function(){var ro=this.props,no=ro.item,oo=ro.classNames,io=no.onRenderContent||this._renderLayout;return reactExports.createElement("div",{className:no.split?oo.linkContentMenu:oo.linkContent},io(this.props,{renderCheckMarkIcon,renderItemIcon,renderItemName,renderSecondaryText,renderSubMenuIcon}))},to.prototype._renderLayout=function(ro,no){return reactExports.createElement(reactExports.Fragment,null,no.renderCheckMarkIcon(ro),no.renderItemIcon(ro),no.renderItemName(ro),no.renderSecondaryText(ro),no.renderSubMenuIcon(ro))},to}(reactExports.Component),getDividerClassNames=memoizeFunction(function(eo){return mergeStyleSets({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:eo.palette.neutralTertiaryAlt}})}),CONTEXTUAL_MENU_ITEM_HEIGHT=36,MediumScreenSelector$1=getScreenSelector(0,ScreenWidthMaxMedium),getMenuItemStyles=memoizeFunction(function(eo){var to,ro,no,oo,io,so=eo.semanticColors,ao=eo.fonts,lo=eo.palette,uo=so.menuItemBackgroundHovered,co=so.menuItemTextHovered,fo=so.menuItemBackgroundPressed,po=so.bodyDivider,ho={item:[ao.medium,{color:so.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:po,position:"relative"},root:[getFocusStyle(eo),ao.medium,{color:so.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:so.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(to={},to[HighContrastSelector]={color:"GrayText",opacity:1},to)},rootHovered:{backgroundColor:uo,color:co,selectors:{".ms-ContextualMenu-icon":{color:lo.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:lo.neutralPrimary}}},rootFocused:{backgroundColor:lo.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:lo.neutralPrimary}}},rootPressed:{backgroundColor:fo,selectors:{".ms-ContextualMenu-icon":{color:lo.themeDark},".ms-ContextualMenu-submenuIcon":{color:lo.neutralPrimary}}},rootExpanded:{backgroundColor:fo,color:so.bodyTextChecked,selectors:(ro={".ms-ContextualMenu-submenuIcon":(no={},no[HighContrastSelector]={color:"inherit"},no)},ro[HighContrastSelector]=__assign$4({},getHighContrastNoAdjustStyle()),ro)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:eo.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,fontSize:IconFontSizes.medium,width:IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(oo={},oo[MediumScreenSelector$1]={fontSize:IconFontSizes.large,width:IconFontSizes.large},oo)},iconColor:{color:so.menuIcon},iconDisabled:{color:so.disabledBodyText},checkmarkIcon:{color:so.bodySubtext},subMenuIcon:{height:CONTEXTUAL_MENU_ITEM_HEIGHT,lineHeight:CONTEXTUAL_MENU_ITEM_HEIGHT,color:lo.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:IconFontSizes.small,selectors:(io={":hover":{color:lo.neutralPrimary},":active":{color:lo.neutralPrimary}},io[MediumScreenSelector$1]={fontSize:IconFontSizes.medium},io)},splitButtonFlexContainer:[getFocusStyle(eo),{display:"flex",height:CONTEXTUAL_MENU_ITEM_HEIGHT,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return concatStyleSets(ho)}),CONTEXTUAL_SPLIT_MENU_MINWIDTH="28px",MediumScreenSelector=getScreenSelector(0,ScreenWidthMaxMedium),getSplitButtonVerticalDividerClassNames=memoizeFunction(function(eo){var to;return mergeStyleSets(getDividerClassNames(eo),{wrapper:{position:"absolute",right:28,selectors:(to={},to[MediumScreenSelector]={right:32},to)},divider:{height:16,width:1}})}),GlobalClassNames$4={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},getItemClassNames=memoizeFunction(function(eo,to,ro,no,oo,io,so,ao,lo,uo,co,fo){var po,ho,mo,vo,bo=getMenuItemStyles(eo),xo=getGlobalClassNames(GlobalClassNames$4,eo);return mergeStyleSets({item:[xo.item,bo.item,so],divider:[xo.divider,bo.divider,ao],root:[xo.root,bo.root,no&&[xo.isChecked,bo.rootChecked],oo&&bo.anchorLink,ro&&[xo.isExpanded,bo.rootExpanded],to&&[xo.isDisabled,bo.rootDisabled],!to&&!ro&&[{selectors:(po={":hover":bo.rootHovered,":active":bo.rootPressed},po[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,po[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},po)}],fo],splitPrimary:[bo.root,{width:"calc(100% - ".concat(CONTEXTUAL_SPLIT_MENU_MINWIDTH,")")},no&&["is-checked",bo.rootChecked],(to||co)&&["is-disabled",bo.rootDisabled],!(to||co)&&!no&&[{selectors:(ho={":hover":bo.rootHovered},ho[":hover ~ .".concat(xo.splitMenu)]=bo.rootHovered,ho[":active"]=bo.rootPressed,ho[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,ho[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},ho)}]],splitMenu:[xo.splitMenu,bo.root,{flexBasis:"0",padding:"0 8px",minWidth:CONTEXTUAL_SPLIT_MENU_MINWIDTH},ro&&["is-expanded",bo.rootExpanded],to&&["is-disabled",bo.rootDisabled],!to&&!ro&&[{selectors:(mo={":hover":bo.rootHovered,":active":bo.rootPressed},mo[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,mo[".".concat(IsFocusVisibleClassName," &:hover")]={background:"inherit;"},mo)}]],anchorLink:bo.anchorLink,linkContent:[xo.linkContent,bo.linkContent],linkContentMenu:[xo.linkContentMenu,bo.linkContent,{justifyContent:"center"}],icon:[xo.icon,io&&bo.iconColor,bo.icon,lo,to&&[xo.isDisabled,bo.iconDisabled]],iconColor:bo.iconColor,checkmarkIcon:[xo.checkmarkIcon,io&&bo.checkmarkIcon,bo.icon,lo],subMenuIcon:[xo.subMenuIcon,bo.subMenuIcon,uo,ro&&{color:eo.palette.neutralPrimary},to&&[bo.iconDisabled]],label:[xo.label,bo.label],secondaryText:[xo.secondaryText,bo.secondaryText],splitContainer:[bo.splitButtonFlexContainer,!to&&!no&&[{selectors:(vo={},vo[".".concat(IsFocusVisibleClassName," &:focus, .").concat(IsFocusVisibleClassName," &:focus:hover")]=bo.rootFocused,vo)}]],screenReaderText:[xo.screenReaderText,bo.screenReaderText,hiddenContentStyle,{visibility:"hidden"}]})}),getItemStyles=function(eo){var to=eo.theme,ro=eo.disabled,no=eo.expanded,oo=eo.checked,io=eo.isAnchorLink,so=eo.knownIcon,ao=eo.itemClassName,lo=eo.dividerClassName,uo=eo.iconClassName,co=eo.subMenuClassName,fo=eo.primaryDisabled,po=eo.className;return getItemClassNames(to,ro,no,oo,io,so,ao,lo,uo,co,fo,po)},ContextualMenuItem=styled(ContextualMenuItemBase,getItemStyles,void 0,{scope:"ContextualMenuItem"}),ContextualMenuItemWrapper=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._onItemMouseEnter=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(so,oo,oo.currentTarget)},no._onItemClick=function(oo){var io=no.props,so=io.item,ao=io.onItemClickBase;ao&&ao(so,oo,oo.currentTarget)},no._onItemMouseLeave=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseLeave;ao&&ao(so,oo)},no._onItemKeyDown=function(oo){var io=no.props,so=io.item,ao=io.onItemKeyDown;ao&&ao(so,oo)},no._onItemMouseMove=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(so,oo,oo.currentTarget)},no._getSubmenuTarget=function(){},initializeComponentRef(no),no}return to.prototype.shouldComponentUpdate=function(ro){return!shallowCompare(ro,this.props)},to}(reactExports.Component),KTP_PREFIX="ktp",KTP_SEPARATOR="-",DATAKTP_TARGET="data-ktp-target",DATAKTP_EXECUTE_TARGET="data-ktp-execute-target",KTP_LAYER_ID="ktp-layer-id",KeytipEvents;(function(eo){eo.KEYTIP_ADDED="keytipAdded",eo.KEYTIP_REMOVED="keytipRemoved",eo.KEYTIP_UPDATED="keytipUpdated",eo.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",eo.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",eo.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",eo.ENTER_KEYTIP_MODE="enterKeytipMode",eo.EXIT_KEYTIP_MODE="exitKeytipMode"})(KeytipEvents||(KeytipEvents={}));var KeytipManager=function(){function eo(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return eo.getInstance=function(){return this._instance},eo.prototype.init=function(to){this.delayUpdatingKeytipChange=to},eo.prototype.register=function(to,ro){ro===void 0&&(ro=!1);var no=to;ro||(no=this.addParentOverflow(to),this.sequenceMapping[no.keySequences.toString()]=no);var oo=this._getUniqueKtp(no);if(ro?this.persistedKeytips[oo.uniqueID]=oo:this.keytips[oo.uniqueID]=oo,this.inKeytipMode||!this.delayUpdatingKeytipChange){var io=ro?KeytipEvents.PERSISTED_KEYTIP_ADDED:KeytipEvents.KEYTIP_ADDED;EventGroup.raise(this,io,{keytip:no,uniqueID:oo.uniqueID})}return oo.uniqueID},eo.prototype.update=function(to,ro){var no=this.addParentOverflow(to),oo=this._getUniqueKtp(no,ro),io=this.keytips[ro];io&&(oo.keytip.visible=io.keytip.visible,this.keytips[ro]=oo,delete this.sequenceMapping[io.keytip.keySequences.toString()],this.sequenceMapping[oo.keytip.keySequences.toString()]=oo.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,KeytipEvents.KEYTIP_UPDATED,{keytip:oo.keytip,uniqueID:oo.uniqueID}))},eo.prototype.unregister=function(to,ro,no){no===void 0&&(no=!1),no?delete this.persistedKeytips[ro]:delete this.keytips[ro],!no&&delete this.sequenceMapping[to.keySequences.toString()];var oo=no?KeytipEvents.PERSISTED_KEYTIP_REMOVED:KeytipEvents.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&EventGroup.raise(this,oo,{keytip:to,uniqueID:ro})},eo.prototype.enterKeytipMode=function(){EventGroup.raise(this,KeytipEvents.ENTER_KEYTIP_MODE)},eo.prototype.exitKeytipMode=function(){EventGroup.raise(this,KeytipEvents.EXIT_KEYTIP_MODE)},eo.prototype.getKeytips=function(){var to=this;return Object.keys(this.keytips).map(function(ro){return to.keytips[ro].keytip})},eo.prototype.addParentOverflow=function(to){var ro=__spreadArray$1([],to.keySequences,!0);if(ro.pop(),ro.length!==0){var no=this.sequenceMapping[ro.toString()];if(no&&no.overflowSetSequence)return __assign$4(__assign$4({},to),{overflowSetSequence:no.overflowSetSequence})}return to},eo.prototype.menuExecute=function(to,ro){EventGroup.raise(this,KeytipEvents.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:to,keytipSequences:ro})},eo.prototype._getUniqueKtp=function(to,ro){return ro===void 0&&(ro=getId()),{keytip:__assign$4({},to),uniqueID:ro}},eo._instance=new eo,eo}();function sequencesToID(eo){return eo.reduce(function(to,ro){return to+KTP_SEPARATOR+ro.split("").join(KTP_SEPARATOR)},KTP_PREFIX)}function mergeOverflows(eo,to){var ro=to.length,no=__spreadArray$1([],to,!0).pop(),oo=__spreadArray$1([],eo,!0);return addElementAtIndex(oo,ro-1,no)}function getAriaDescribedBy(eo){var to=" "+KTP_LAYER_ID;return eo.length?to+" "+sequencesToID(eo):to}function useKeytipData(eo){var to=reactExports.useRef(),ro=eo.keytipProps?__assign$4({disabled:eo.disabled},eo.keytipProps):void 0,no=useConst$1(KeytipManager.getInstance()),oo=usePrevious(eo);useIsomorphicLayoutEffect(function(){to.current&&ro&&((oo==null?void 0:oo.keytipProps)!==eo.keytipProps||(oo==null?void 0:oo.disabled)!==eo.disabled)&&no.update(ro,to.current)}),useIsomorphicLayoutEffect(function(){return ro&&(to.current=no.register(ro)),function(){ro&&no.unregister(ro,to.current)}},[]);var io={ariaDescribedBy:void 0,keytipId:void 0};return ro&&(io=getKeytipData(no,ro,eo.ariaDescribedBy)),io}function getKeytipData(eo,to,ro){var no=eo.addParentOverflow(to),oo=mergeAriaAttributeValues(ro,getAriaDescribedBy(no.keySequences)),io=__spreadArray$1([],no.keySequences,!0);no.overflowSetSequence&&(io=mergeOverflows(io,no.overflowSetSequence));var so=sequencesToID(io);return{ariaDescribedBy:oo,keytipId:so}}var KeytipData=function(eo){var to,ro=eo.children,no=__rest$1(eo,["children"]),oo=useKeytipData(no),io=oo.keytipId,so=oo.ariaDescribedBy;return ro((to={},to[DATAKTP_TARGET]=io,to[DATAKTP_EXECUTE_TARGET]=io,to["aria-describedby"]=so,to))},ContextualMenuAnchor=function(eo){__extends$3(to,eo);function to(){var ro=eo!==null&&eo.apply(this,arguments)||this;return ro._anchor=reactExports.createRef(),ro._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(no){return __assign$4(__assign$4({},no),{hasMenu:!0})}),ro._getSubmenuTarget=function(){return ro._anchor.current?ro._anchor.current:void 0},ro._onItemClick=function(no){var oo=ro.props,io=oo.item,so=oo.onItemClick;so&&so(io,no)},ro._renderAriaDescription=function(no,oo){return no?reactExports.createElement("span",{id:ro._ariaDescriptionId,className:oo},no):null},ro}return to.prototype.render=function(){var ro=this,no=this.props,oo=no.item,io=no.classNames,so=no.index,ao=no.focusableElementIndex,lo=no.totalItemCount,uo=no.hasCheckmarks,co=no.hasIcons,fo=no.expandedMenuItemKey,po=no.onItemClick,ho=no.openSubMenu,mo=no.dismissSubMenu,vo=no.dismissMenu,bo=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(bo=composeComponentAs(this.props.item.contextualMenuItemAs,bo)),this.props.contextualMenuItemAs&&(bo=composeComponentAs(this.props.contextualMenuItemAs,bo));var xo=oo.rel;oo.target&&oo.target.toLowerCase()==="_blank"&&(xo=xo||"nofollow noopener noreferrer");var _o=hasSubmenu(oo),So=getNativeProps(oo,anchorProperties),Eo=isItemDisabled(oo),ko=oo.itemProps,wo=oo.ariaDescription,Co=oo.keytipProps;Co&&_o&&(Co=this._getMemoizedMenuButtonKeytipProps(Co)),wo&&(this._ariaDescriptionId=getId());var Ro=mergeAriaAttributeValues(oo.ariaDescribedBy,wo?this._ariaDescriptionId:void 0,So["aria-describedby"]),Ao={"aria-describedby":Ro};return reactExports.createElement("div",null,reactExports.createElement(KeytipData,{keytipProps:oo.keytipProps,ariaDescribedBy:Ro,disabled:Eo},function(Io){return reactExports.createElement("a",__assign$4({},Ao,So,Io,{ref:ro._anchor,href:oo.href,target:oo.target,rel:xo,className:io.root,role:"menuitem","aria-haspopup":_o||void 0,"aria-expanded":_o?oo.key===fo:void 0,"aria-posinset":ao+1,"aria-setsize":lo,"aria-disabled":isItemDisabled(oo),style:oo.style,onClick:ro._onItemClick,onMouseEnter:ro._onItemMouseEnter,onMouseLeave:ro._onItemMouseLeave,onMouseMove:ro._onItemMouseMove,onKeyDown:_o?ro._onItemKeyDown:void 0}),reactExports.createElement(bo,__assign$4({componentRef:oo.componentRef,item:oo,classNames:io,index:so,onCheckmarkClick:uo&&po?po:void 0,hasIcons:co,openSubMenu:ho,dismissSubMenu:mo,dismissMenu:vo,getSubmenuTarget:ro._getSubmenuTarget},ko)),ro._renderAriaDescription(wo,io.screenReaderText))}))},to}(ContextualMenuItemWrapper),ContextualMenuButton=function(eo){__extends$3(to,eo);function to(){var ro=eo!==null&&eo.apply(this,arguments)||this;return ro._btn=reactExports.createRef(),ro._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(no){return __assign$4(__assign$4({},no),{hasMenu:!0})}),ro._renderAriaDescription=function(no,oo){return no?reactExports.createElement("span",{id:ro._ariaDescriptionId,className:oo},no):null},ro._getSubmenuTarget=function(){return ro._btn.current?ro._btn.current:void 0},ro}return to.prototype.render=function(){var ro=this,no=this.props,oo=no.item,io=no.classNames,so=no.index,ao=no.focusableElementIndex,lo=no.totalItemCount,uo=no.hasCheckmarks,co=no.hasIcons,fo=no.contextualMenuItemAs,po=no.expandedMenuItemKey,ho=no.onItemMouseDown,mo=no.onItemClick,vo=no.openSubMenu,bo=no.dismissSubMenu,xo=no.dismissMenu,_o=ContextualMenuItem;oo.contextualMenuItemAs&&(_o=composeComponentAs(oo.contextualMenuItemAs,_o)),fo&&(_o=composeComponentAs(fo,_o));var So=getIsChecked(oo),Eo=So!==null,ko=getMenuItemAriaRole(oo),wo=hasSubmenu(oo),Co=oo.itemProps,Ro=oo.ariaLabel,Ao=oo.ariaDescription,Io=getNativeProps(oo,buttonProperties);delete Io.disabled;var $o=oo.role||ko;Ao&&(this._ariaDescriptionId=getId());var Bo=mergeAriaAttributeValues(oo.ariaDescribedBy,Ao?this._ariaDescriptionId:void 0,Io["aria-describedby"]),Mo={className:io.root,onClick:this._onItemClick,onKeyDown:wo?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(jo){return ho?ho(oo,jo):void 0},onMouseMove:this._onItemMouseMove,href:oo.href,title:oo.title,"aria-label":Ro,"aria-describedby":Bo,"aria-haspopup":wo||void 0,"aria-expanded":wo?oo.key===po:void 0,"aria-posinset":ao+1,"aria-setsize":lo,"aria-disabled":isItemDisabled(oo),"aria-checked":($o==="menuitemcheckbox"||$o==="menuitemradio")&&Eo?!!So:void 0,"aria-selected":$o==="menuitem"&&Eo?!!So:void 0,role:$o,style:oo.style},Ho=oo.keytipProps;return Ho&&wo&&(Ho=this._getMemoizedMenuButtonKeytipProps(Ho)),reactExports.createElement(KeytipData,{keytipProps:Ho,ariaDescribedBy:Bo,disabled:isItemDisabled(oo)},function(jo){return reactExports.createElement("button",__assign$4({ref:ro._btn},Io,Mo,jo),reactExports.createElement(_o,__assign$4({componentRef:oo.componentRef,item:oo,classNames:io,index:so,onCheckmarkClick:uo&&mo?mo:void 0,hasIcons:co,openSubMenu:vo,dismissSubMenu:bo,dismissMenu:xo,getSubmenuTarget:ro._getSubmenuTarget},Co)),ro._renderAriaDescription(Ao,io.screenReaderText))})},to}(ContextualMenuItemWrapper),getStyles$4=function(eo){var to=eo.theme,ro=eo.getClassNames,no=eo.className;if(!to)throw new Error("Theme is undefined or null.");if(ro){var oo=ro(to);return{wrapper:[oo.wrapper],divider:[oo.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},no],divider:[{width:1,height:"100%",backgroundColor:to.palette.neutralTertiaryAlt}]}},getClassNames$4=classNamesFunction(),VerticalDividerBase=reactExports.forwardRef(function(eo,to){var ro=eo.styles,no=eo.theme,oo=eo.getClassNames,io=eo.className,so=getClassNames$4(ro,{theme:no,getClassNames:oo,className:io});return reactExports.createElement("span",{className:so.wrapper,ref:to},reactExports.createElement("span",{className:so.divider}))});VerticalDividerBase.displayName="VerticalDividerBase";var VerticalDivider=styled(VerticalDividerBase,getStyles$4,void 0,{scope:"VerticalDivider"}),TouchIdleDelay=500,ContextualMenuSplitButton=function(eo){__extends$3(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no._getMemoizedMenuButtonKeytipProps=memoizeFunction(function(oo){return __assign$4(__assign$4({},oo),{hasMenu:!0})}),no._onItemKeyDown=function(oo){var io=no.props,so=io.item,ao=io.onItemKeyDown;oo.which===KeyCodes$1.enter?(no._executeItemClick(oo),oo.preventDefault(),oo.stopPropagation()):ao&&ao(so,oo)},no._getSubmenuTarget=function(){return no._splitButton},no._renderAriaDescription=function(oo,io){return oo?reactExports.createElement("span",{id:no._ariaDescriptionId,className:io},oo):null},no._onItemMouseEnterPrimary=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(__assign$4(__assign$4({},so),{subMenuProps:void 0,items:void 0}),oo,no._splitButton)},no._onItemMouseEnterIcon=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseEnter;ao&&ao(so,oo,no._splitButton)},no._onItemMouseMovePrimary=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(__assign$4(__assign$4({},so),{subMenuProps:void 0,items:void 0}),oo,no._splitButton)},no._onItemMouseMoveIcon=function(oo){var io=no.props,so=io.item,ao=io.onItemMouseMove;ao&&ao(so,oo,no._splitButton)},no._onIconItemClick=function(oo){var io=no.props,so=io.item,ao=io.onItemClickBase;ao&&ao(so,oo,no._splitButton?no._splitButton:oo.currentTarget)},no._executeItemClick=function(oo){var io=no.props,so=io.item,ao=io.executeItemClick,lo=io.onItemClick;if(!(so.disabled||so.isDisabled)){if(no._processingTouch&&!so.canCheck&&lo)return lo(so,oo);ao&&ao(so,oo)}},no._onTouchStart=function(oo){no._splitButton&&!("onpointerdown"in no._splitButton)&&no._handleTouchAndPointerEvent(oo)},no._onPointerDown=function(oo){oo.pointerType==="touch"&&(no._handleTouchAndPointerEvent(oo),oo.preventDefault(),oo.stopImmediatePropagation())},no._async=new Async(no),no._events=new EventGroup(no),no._dismissLabelId=getId(),no}return to.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},to.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},to.prototype.render=function(){var ro=this,no,oo=this.props,io=oo.item,so=oo.classNames,ao=oo.index,lo=oo.focusableElementIndex,uo=oo.totalItemCount,co=oo.hasCheckmarks,fo=oo.hasIcons,po=oo.onItemMouseLeave,ho=oo.expandedMenuItemKey,mo=hasSubmenu(io),vo=io.keytipProps;vo&&(vo=this._getMemoizedMenuButtonKeytipProps(vo));var bo=io.ariaDescription;bo&&(this._ariaDescriptionId=getId());var xo=(no=getIsChecked(io))!==null&&no!==void 0?no:void 0;return reactExports.createElement(KeytipData,{keytipProps:vo,disabled:isItemDisabled(io)},function(_o){return reactExports.createElement("div",{"data-ktp-target":_o["data-ktp-target"],ref:function(So){return ro._splitButton=So},role:getMenuItemAriaRole(io),"aria-label":io.ariaLabel,className:so.splitContainer,"aria-disabled":isItemDisabled(io),"aria-expanded":mo?io.key===ho:void 0,"aria-haspopup":!0,"aria-describedby":mergeAriaAttributeValues(io.ariaDescribedBy,bo?ro._ariaDescriptionId:void 0,_o["aria-describedby"]),"aria-checked":xo,"aria-posinset":lo+1,"aria-setsize":uo,onMouseEnter:ro._onItemMouseEnterPrimary,onMouseLeave:po?po.bind(ro,__assign$4(__assign$4({},io),{subMenuProps:null,items:null})):void 0,onMouseMove:ro._onItemMouseMovePrimary,onKeyDown:ro._onItemKeyDown,onClick:ro._executeItemClick,onTouchStart:ro._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":io["aria-roledescription"]},ro._renderSplitPrimaryButton(io,so,ao,co,fo),ro._renderSplitDivider(io),ro._renderSplitIconButton(io,so,ao,_o),ro._renderAriaDescription(bo,so.screenReaderText))})},to.prototype._renderSplitPrimaryButton=function(ro,no,oo,io,so){var ao=this.props,lo=ao.contextualMenuItemAs,uo=lo===void 0?ContextualMenuItem:lo,co=ao.onItemClick,fo={key:ro.key,disabled:isItemDisabled(ro)||ro.primaryDisabled,name:ro.name,text:ro.text||ro.name,secondaryText:ro.secondaryText,className:no.splitPrimary,canCheck:ro.canCheck,isChecked:ro.isChecked,checked:ro.checked,iconProps:ro.iconProps,id:this._dismissLabelId,onRenderIcon:ro.onRenderIcon,data:ro.data,"data-is-focusable":!1},po=ro.itemProps;return reactExports.createElement("button",__assign$4({},getNativeProps(fo,buttonProperties)),reactExports.createElement(uo,__assign$4({"data-is-focusable":!1,item:fo,classNames:no,index:oo,onCheckmarkClick:io&&co?co:void 0,hasIcons:so},po)))},to.prototype._renderSplitDivider=function(ro){var no=ro.getSplitButtonVerticalDividerClassNames||getSplitButtonVerticalDividerClassNames;return reactExports.createElement(VerticalDivider,{getClassNames:no})},to.prototype._renderSplitIconButton=function(ro,no,oo,io){var so=this.props,ao=so.onItemMouseLeave,lo=so.onItemMouseDown,uo=so.openSubMenu,co=so.dismissSubMenu,fo=so.dismissMenu,po=ContextualMenuItem;this.props.item.contextualMenuItemAs&&(po=composeComponentAs(this.props.item.contextualMenuItemAs,po)),this.props.contextualMenuItemAs&&(po=composeComponentAs(this.props.contextualMenuItemAs,po));var ho={onClick:this._onIconItemClick,disabled:isItemDisabled(ro),className:no.splitMenu,subMenuProps:ro.subMenuProps,submenuIconProps:ro.submenuIconProps,split:!0,key:ro.key,"aria-labelledby":this._dismissLabelId},mo=__assign$4(__assign$4({},getNativeProps(ho,buttonProperties)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:ao?ao.bind(this,ro):void 0,onMouseDown:function(bo){return lo?lo(ro,bo):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":io["data-ktp-execute-target"],"aria-haspopup":!0}),vo=ro.itemProps;return reactExports.createElement("button",__assign$4({},mo),reactExports.createElement(po,__assign$4({componentRef:ro.componentRef,item:ho,classNames:no,index:oo,hasIcons:!1,openSubMenu:uo,dismissSubMenu:co,dismissMenu:fo,getSubmenuTarget:this._getSubmenuTarget},vo)))},to.prototype._handleTouchAndPointerEvent=function(ro){var no=this,oo=this.props.onTap;oo&&oo(ro),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){no._processingTouch=!1,no._lastTouchTimeoutId=void 0},TouchIdleDelay)},to}(ContextualMenuItemWrapper),ResponsiveMode;(function(eo){eo[eo.small=0]="small",eo[eo.medium=1]="medium",eo[eo.large=2]="large",eo[eo.xLarge=3]="xLarge",eo[eo.xxLarge=4]="xxLarge",eo[eo.xxxLarge=5]="xxxLarge",eo[eo.unknown=999]="unknown"})(ResponsiveMode||(ResponsiveMode={}));var RESPONSIVE_MAX_CONSTRAINT=[479,639,1023,1365,1919,99999999],_defaultMode,_lastMode;function getInitialResponsiveMode(){var eo;return(eo=_defaultMode??_lastMode)!==null&&eo!==void 0?eo:ResponsiveMode.large}function getWidthOfCurrentWindow(eo){try{return eo.document.documentElement.clientWidth}catch{return eo.innerWidth}}function getResponsiveMode(eo){var to=ResponsiveMode.small;if(eo){try{for(;getWidthOfCurrentWindow(eo)>RESPONSIVE_MAX_CONSTRAINT[to];)to++}catch{to=getInitialResponsiveMode()}_lastMode=to}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return to}var useResponsiveMode=function(eo,to){var ro=reactExports.useState(getInitialResponsiveMode()),no=ro[0],oo=ro[1],io=reactExports.useCallback(function(){var ao=getResponsiveMode(getWindow(eo.current));no!==ao&&oo(ao)},[eo,no]),so=useWindow();return useOnEvent(so,"resize",io),reactExports.useEffect(function(){to===void 0&&io()},[to]),to??no},MenuContext=reactExports.createContext({}),getClassNames$3=classNamesFunction(),getContextualMenuItemClassNames=classNamesFunction(),DEFAULT_PROPS$1={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:DirectionalHint.bottomAutoEdge,beakWidth:16};function getItemCount(eo){for(var to=0,ro=0,no=eo;ro0){var Ml=0;return reactExports.createElement("li",{role:"presentation",key:Yo.key||qs.key||"section-".concat(Po)},reactExports.createElement("div",__assign$4({},ys),reactExports.createElement("ul",{className:Uo.list,role:"presentation"},Yo.topDivider&&Ls(Po,Ko,!0,!0),vs&&zs(vs,qs.key||Po,Ko,qs.title),Yo.items.map(function(Rl,Cl){var Ul=Jo(Rl,Cl,Ml,getItemCount(Yo.items),zo,Do,Uo);if(Rl.itemType!==ContextualMenuItemType.Divider&&Rl.itemType!==ContextualMenuItemType.Header){var fu=Rl.customOnRenderListLength?Rl.customOnRenderListLength:1;Ml+=fu}return Ul}),Yo.bottomDivider&&Ls(Po,Ko,!1,!0))))}}},zs=function(qs,Ko,Uo,Po){return reactExports.createElement("li",{role:"presentation",title:Po,key:Ko,className:Uo.item},qs)},Ls=function(qs,Ko,Uo,Po){return Po||qs>0?reactExports.createElement("li",{role:"separator",key:"separator-"+qs+(Uo===void 0?"":Uo?"-top":"-bottom"),className:Ko.divider,"aria-hidden":"true"}):null},ga=function(qs,Ko,Uo,Po,zo,Do,Yo){if(qs.onRender)return qs.onRender(__assign$4({"aria-posinset":Po+1,"aria-setsize":zo},qs),lo);var vs=oo.contextualMenuItemAs,ys={item:qs,classNames:Ko,index:Uo,focusableElementIndex:Po,totalItemCount:zo,hasCheckmarks:Do,hasIcons:Yo,contextualMenuItemAs:vs,onItemMouseEnter:Xo,onItemMouseLeave:Qo,onItemMouseMove:Zo,onItemMouseDown,executeItemClick:Rs,onItemKeyDown:Go,expandedMenuItemKey:mo,openSubMenu:vo,dismissSubMenu:xo,dismissMenu:lo};if(qs.href){var hs=ContextualMenuAnchor;return qs.contextualMenuItemWrapperAs&&(hs=composeComponentAs(qs.contextualMenuItemWrapperAs,hs)),reactExports.createElement(hs,__assign$4({},ys,{onItemClick:Ts}))}if(qs.split&&hasSubmenu(qs)){var Is=ContextualMenuSplitButton;return qs.contextualMenuItemWrapperAs&&(Is=composeComponentAs(qs.contextualMenuItemWrapperAs,Is)),reactExports.createElement(Is,__assign$4({},ys,{onItemClick:xs,onItemClickBase:Os,onTap:Io}))}var Us=ContextualMenuButton;return qs.contextualMenuItemWrapperAs&&(Us=composeComponentAs(qs.contextualMenuItemWrapperAs,Us)),reactExports.createElement(Us,__assign$4({},ys,{onItemClick:xs,onItemClickBase:Os}))},Js=function(qs,Ko,Uo,Po,zo,Do){var Yo=ContextualMenuItem;qs.contextualMenuItemAs&&(Yo=composeComponentAs(qs.contextualMenuItemAs,Yo)),oo.contextualMenuItemAs&&(Yo=composeComponentAs(oo.contextualMenuItemAs,Yo));var vs=qs.itemProps,ys=qs.id,hs=vs&&getNativeProps(vs,divProperties);return reactExports.createElement("div",__assign$4({id:ys,className:Uo.header},hs,{style:qs.style}),reactExports.createElement(Yo,__assign$4({item:qs,classNames:Ko,index:Po,onCheckmarkClick:zo?xs:void 0,hasIcons:Do},vs)))},Zs=oo.isBeakVisible,$a=oo.items,Ll=oo.labelElementId,Kl=oo.id,Zl=oo.className,$l=oo.beakWidth,xa=oo.directionalHint,Sl=oo.directionalHintForRTL,cu=oo.alignTargetEdge,ks=oo.gapSpace,Es=oo.coverTarget,bs=oo.ariaLabel,ws=oo.doNotLayer,Gs=oo.target,Ks=oo.bounds,Ms=oo.useTargetWidth,Hs=oo.useTargetAsMinWidth,Qs=oo.directionalHintFixed,El=oo.shouldFocusOnMount,xl=oo.shouldFocusOnContainer,Ol=oo.title,ru=oo.styles,au=oo.theme,zl=oo.calloutProps,hu=oo.onRenderSubMenu,xu=hu===void 0?onDefaultRenderSubMenu:hu,Ql=oo.onRenderMenuList,Dl=Ql===void 0?function(qs,Ko){return As(qs,mu)}:Ql,gu=oo.focusZoneProps,lu=oo.getMenuClassNames,mu=lu?lu(au,Zl):getClassNames$3(ru,{theme:au,className:Zl}),ou=Fl($a);function Fl(qs){for(var Ko=0,Uo=qs;Ko0){var Iu=getItemCount($a),e1=mu.subComponentStyles?mu.subComponentStyles.callout:void 0;return reactExports.createElement(MenuContext.Consumer,null,function(qs){return reactExports.createElement(Callout,__assign$4({styles:e1,onRestoreFocus:po},zl,{target:Gs||qs.target,isBeakVisible:Zs,beakWidth:$l,directionalHint:xa,directionalHintForRTL:Sl,gapSpace:ks,coverTarget:Es,doNotLayer:ws,className:css$3("ms-ContextualMenu-Callout",zl&&zl.className),setInitialFocus:El,onDismiss:oo.onDismiss||qs.onDismiss,onScroll:Co,bounds:Ks,directionalHintFixed:Qs,alignTargetEdge:cu,hidden:oo.hidden||qs.hidden,ref:to}),reactExports.createElement("div",{style:$u,ref:io,id:Kl,className:mu.container,tabIndex:xl?0:-1,onKeyDown:Fo,onKeyUp:Oo,onFocusCapture:ko,"aria-label":bs,"aria-labelledby":Ll,role:"menu"},Ol&&reactExports.createElement("div",{className:mu.title}," ",Ol," "),$a&&$a.length?Ds(Dl({ariaLabel:bs,items:$a,totalItemCount:Iu,hasCheckmarks:Xs,hasIcons:ou,defaultMenuItemRenderer:function(Ko){return Cs(Ko,mu)},labelElementId:Ll},function(Ko,Uo){return As(Ko,mu)}),yl):null,vu&&xu(vu,onDefaultRenderSubMenu)),reactExports.createElement(FocusRects,null))})}else return null}),function(eo,to){return!to.shouldUpdateWhenHidden&&eo.hidden&&to.hidden?!0:shallowCompare(eo,to)});ContextualMenuBase.displayName="ContextualMenuBase";function isAltOrMeta(eo){return eo.which===KeyCodes$1.alt||eo.key==="Meta"}function onItemMouseDown(eo,to){var ro;(ro=eo.onMouseDown)===null||ro===void 0||ro.call(eo,eo,to)}function onDefaultRenderSubMenu(eo,to){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function findItemByKeyFromItems(eo,to){for(var ro=0,no=to;ro=(Oo||ResponsiveMode.small)&&reactExports.createElement(Layer,__assign$4({ref:As},Ol),reactExports.createElement(Popup,__assign$4({role:Qs?"alertdialog":"dialog",ariaLabelledBy:$o,ariaDescribedBy:Mo,onDismiss:Co,shouldRestoreFocus:!_o,enableAriaHiddenSiblings:Zo,"aria-modal":!Go},Qo),reactExports.createElement("div",{className:xl.root,role:Go?void 0:"document"},!Go&&reactExports.createElement(Overlay,__assign$4({"aria-hidden":!0,isDarkThemed:wo,onClick:So?void 0:Co,allowTouchBodyScroll:lo},Ao)),qo?reactExports.createElement(DraggableZone,{handleSelector:qo.dragHandleSelector||"#".concat(Jo),preventDragSelector:"button",onStart:xu,onDragChange:Ql,onStop:Dl,position:$l},ou):ou)))||null});ModalBase.displayName="Modal";var Modal=styled(ModalBase,getStyles$2,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});Modal.displayName="Modal";var assign$1=__assign$4;function withSlots(eo,to){for(var ro=[],no=2;no0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return _renderSlot(to[so],lo,no[so],no.slots&&no.slots[so],no._defaultStyles&&no._defaultStyles[so],no.theme)};ao.isSlot=!0,ro[so]=ao}};for(var io in to)oo(io);return ro}function _translateShorthand(eo,to){var ro,no;return typeof to=="string"||typeof to=="number"||typeof to=="boolean"?no=(ro={},ro[eo]=to,ro):no=to,no}function _constructFinalProps(eo,to){for(var ro=[],no=2;no2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(ro.length===2)return{rowGap:_getValueUnitGap(_getThemedSpacing(ro[0],to)),columnGap:_getValueUnitGap(_getThemedSpacing(ro[1],to))};var no=_getValueUnitGap(_getThemedSpacing(eo,to));return{rowGap:no,columnGap:no}},parsePadding=function(eo,to){if(eo===void 0||typeof eo=="number"||eo==="")return eo;var ro=eo.split(" ");return ro.length<2?_getThemedSpacing(eo,to):ro.reduce(function(no,oo){return _getThemedSpacing(no,to)+" "+_getThemedSpacing(oo,to)})},nameMap={start:"flex-start",end:"flex-end"},GlobalClassNames={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},styles$2=function(eo,to,ro){var no,oo,io,so,ao,lo,uo,co,fo,po,ho,mo,vo,bo=eo.className,xo=eo.disableShrink,_o=eo.enableScopedSelectors,So=eo.grow,Eo=eo.horizontal,ko=eo.horizontalAlign,wo=eo.reversed,Co=eo.verticalAlign,Ro=eo.verticalFill,Ao=eo.wrap,Io=getGlobalClassNames(GlobalClassNames,to),$o=ro&&ro.childrenGap?ro.childrenGap:eo.gap,Bo=ro&&ro.maxHeight?ro.maxHeight:eo.maxHeight,Mo=ro&&ro.maxWidth?ro.maxWidth:eo.maxWidth,Ho=ro&&ro.padding?ro.padding:eo.padding,jo=parseGap($o,to),Oo=jo.rowGap,Fo=jo.columnGap,Go="".concat(-.5*Fo.value).concat(Fo.unit),qo="".concat(-.5*Oo.value).concat(Oo.unit),Xo={textOverflow:"ellipsis"},Zo="> "+(_o?"."+GlobalClassNames.child:"*"),Qo=(no={},no["".concat(Zo,":not(.").concat(GlobalClassNames$1.root,")")]={flexShrink:0},no);return Ao?{root:[Io.root,{flexWrap:"wrap",maxWidth:Mo,maxHeight:Bo,width:"auto",overflow:"visible",height:"100%"},ko&&(oo={},oo[Eo?"justifyContent":"alignItems"]=nameMap[ko]||ko,oo),Co&&(io={},io[Eo?"alignItems":"justifyContent"]=nameMap[Co]||Co,io),bo,{display:"flex"},Eo&&{height:Ro?"100%":"auto"}],inner:[Io.inner,(so={display:"flex",flexWrap:"wrap",marginLeft:Go,marginRight:Go,marginTop:qo,marginBottom:qo,overflow:"visible",boxSizing:"border-box",padding:parsePadding(Ho,to),width:Fo.value===0?"100%":"calc(100% + ".concat(Fo.value).concat(Fo.unit,")"),maxWidth:"100vw"},so[Zo]=__assign$4({margin:"".concat(.5*Oo.value).concat(Oo.unit," ").concat(.5*Fo.value).concat(Fo.unit)},Xo),so),xo&&Qo,ko&&(ao={},ao[Eo?"justifyContent":"alignItems"]=nameMap[ko]||ko,ao),Co&&(lo={},lo[Eo?"alignItems":"justifyContent"]=nameMap[Co]||Co,lo),Eo&&(uo={flexDirection:wo?"row-reverse":"row",height:Oo.value===0?"100%":"calc(100% + ".concat(Oo.value).concat(Oo.unit,")")},uo[Zo]={maxWidth:Fo.value===0?"100%":"calc(100% - ".concat(Fo.value).concat(Fo.unit,")")},uo),!Eo&&(co={flexDirection:wo?"column-reverse":"column",height:"calc(100% + ".concat(Oo.value).concat(Oo.unit,")")},co[Zo]={maxHeight:Oo.value===0?"100%":"calc(100% - ".concat(Oo.value).concat(Oo.unit,")")},co)]}:{root:[Io.root,(fo={display:"flex",flexDirection:Eo?wo?"row-reverse":"row":wo?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:Ro?"100%":"auto",maxWidth:Mo,maxHeight:Bo,padding:parsePadding(Ho,to),boxSizing:"border-box"},fo[Zo]=Xo,fo),xo&&Qo,So&&{flexGrow:So===!0?1:So},ko&&(po={},po[Eo?"justifyContent":"alignItems"]=nameMap[ko]||ko,po),Co&&(ho={},ho[Eo?"alignItems":"justifyContent"]=nameMap[Co]||Co,ho),Eo&&Fo.value>0&&(mo={},mo[wo?"".concat(Zo,":not(:last-child)"):"".concat(Zo,":not(:first-child)")]={marginLeft:"".concat(Fo.value).concat(Fo.unit)},mo),!Eo&&Oo.value>0&&(vo={},vo[wo?"".concat(Zo,":not(:last-child)"):"".concat(Zo,":not(:first-child)")]={marginTop:"".concat(Oo.value).concat(Oo.unit)},vo),bo]}},StackView=function(eo){var to=eo.as,ro=to===void 0?"div":to,no=eo.disableShrink,oo=no===void 0?!1:no,io=eo.doNotRenderFalsyValues,so=io===void 0?!1:io,ao=eo.enableScopedSelectors,lo=ao===void 0?!1:ao,uo=eo.wrap,co=__rest$1(eo,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),fo=_processStackChildren(eo.children,{disableShrink:oo,enableScopedSelectors:lo,doNotRenderFalsyValues:so}),po=getNativeProps(co,htmlElementProperties),ho=getSlots(eo,{root:ro,inner:"div"});return uo?withSlots(ho.root,__assign$4({},po),withSlots(ho.inner,null,fo)):withSlots(ho.root,__assign$4({},po),fo)};function _processStackChildren(eo,to){var ro=to.disableShrink,no=to.enableScopedSelectors,oo=to.doNotRenderFalsyValues,io=reactExports.Children.toArray(eo);return io=reactExports.Children.map(io,function(so){if(!so)return oo?null:so;if(!reactExports.isValidElement(so))return so;if(so.type===reactExports.Fragment)return so.props.children?_processStackChildren(so.props.children,{disableShrink:ro,enableScopedSelectors:no,doNotRenderFalsyValues:oo}):null;var ao=so,lo={};_isStackItem(so)&&(lo={shrink:!ro});var uo=ao.props.className;return reactExports.cloneElement(ao,__assign$4(__assign$4(__assign$4(__assign$4({},lo),ao.props),uo&&{className:uo}),no&&{className:css$3(GlobalClassNames.child,uo)}))}),io}function _isStackItem(eo){return!!eo&&typeof eo=="object"&&!!eo.type&&eo.type.displayName===StackItem.displayName}var StackStatics={Item:StackItem},Stack$1=createComponent(StackView,{displayName:"Stack",styles:styles$2,statics:StackStatics});const AzureContentSafetyIcon="data:image/svg+xml,%3csvg%20id='uuid-40011f3f-22d0-4882-8376-afe2ef514a7e'%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cdefs%3e%3clinearGradient%20id='uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b'%20x1='12.062'%20y1='5.427'%20x2='12.062'%20y2='3.991'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2376bc2d'/%3e%3cstop%20offset='1'%20stop-color='%2386d633'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742'%20x1='2.902'%20y1='6.762'%20x2='9.455'%20y2='6.762'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf'%20x1='-1288.505'%20y1='-521.774'%20x2='-1284.777'%20y2='-521.774'%20gradientTransform='translate(-512.319%201291.819)%20rotate(90)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2386d633'/%3e%3cstop%20offset='1'%20stop-color='%2376bc2d'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-efb884ed-afc6-4667-82f2-34983e82b107'%20x1='2.902'%20y1='11.544'%20x2='9.455'%20y2='11.544'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e6e6e6'/%3e%3cstop%20offset='1'%20stop-color='%23999'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78'%20x1='-274.183'%20y1='-521.774'%20x2='-279.397'%20y2='-521.774'%20gradientTransform='translate(-512.319%20-263.224)%20rotate(-90)%20scale(1%20-1)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23faa21d'/%3e%3cstop%20offset='.999'%20stop-color='%23f78d1e'/%3e%3c/linearGradient%3e%3clinearGradient%20id='uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e'%20x1='-140.646'%20y1='13.626'%20x2='-143.764'%20y2='4.784'%20gradientTransform='translate(149.182)%20skewX(-19.425)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2350e6ff'/%3e%3cstop%20offset='1'%20stop-color='%239cebff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='m16.62,4.541l-2.765-1.597c-.129-.075-.291.019-.291.168v.822h-6.158v1.55h6.158v.822c0,.149.161.242.291.168l2.765-1.597c.129-.075.129-.261,0-.336Z'%20fill='url(%23uuid-5c4dfc33-1236-40a5-b487-5c8d33e4013b)'/%3e%3cpath%20d='m4.495,9.616h-1.592v-4.634c-.002-.591.476-1.071,1.067-1.073,0,0,.001,0,.002,0h5.484v1.592h-4.96v4.115Z'%20fill='url(%23uuid-5dc2ae3c-3a23-47ff-9dc1-e087ff0e2742)'/%3e%3ccircle%20cx='9.455'%20cy='4.603'%20r='2.607'%20fill='url(%23uuid-d781b8b0-afbe-4f6e-a478-ee1974441cbf)'/%3e%3cpath%20d='m9.455,14.4H3.971c-.591,0-1.07-.48-1.069-1.071,0,0,0-.001,0-.002v-4.638h1.592v4.115h4.96v1.596Z'%20fill='url(%23uuid-efb884ed-afc6-4667-82f2-34983e82b107)'/%3e%3ccircle%20cx='9.455'%20cy='13.397'%20r='2.607'%20fill='url(%23uuid-e8c8c19d-aa6c-48ed-823e-cfec5a014d78)'/%3e%3cpath%20d='m5.008,12.097H1.696c-.272,0-.453-.301-.405-.673l.584-4.534c.048-.372.307-.673.578-.673h3.312c.272,0,.453.301.405.673l-.584,4.534c-.048.372-.307.673-.578.673Z'%20fill='url(%23uuid-7a6a88dd-1778-43da-9238-45bfc5a17b3e)'/%3e%3cpath%20d='m.362,3.138C.162,3.138,0,2.976,0,2.777h0V.361C0,.162.162,0,.362,0h2.266c.2,0,.362.162.362.361,0,.199-.162.361-.362.361H.724v2.053c0,.199-.161.362-.361.362,0,0,0,0-.001,0Zm17.638-.361V.361C18,.162,17.838,0,17.638,0h-2.266c-.2,0-.362.162-.362.361s.162.361.362.361h1.904v2.053c0,.199.162.361.362.361.2,0,.361-.162.362-.361h0ZM2.99,17.639c0-.199-.162-.361-.362-.361H.724v-2.053c0-.199-.162-.361-.362-.361-.2,0-.362.162-.362.361v2.415c0,.199.163.36.362.36h2.266c.2,0,.362-.162.362-.361Zm15.01.001v-2.415c0-.199-.162-.361-.362-.361-.2,0-.361.162-.362.361v2.053h-1.904c-.2,0-.362.162-.362.362,0,.199.162.361.362.361h2.266c.199,0,.361-.161.362-.36Z'%20fill='%2376bc2d'/%3e%3c/svg%3e",BingLogoIcon="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20234%20343.41'%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='-29.25'%20y1='662.02'%20x2='-23.09'%20y2='658.46'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2337bdff'/%3e%3cstop%20offset='0.18'%20stop-color='%2333bffd'/%3e%3cstop%20offset='0.36'%20stop-color='%2328c5f5'/%3e%3cstop%20offset='0.53'%20stop-color='%2315d0e9'/%3e%3cstop%20offset='0.55'%20stop-color='%2312d1e7'/%3e%3cstop%20offset='0.59'%20stop-color='%231cd2e5'/%3e%3cstop%20offset='0.77'%20stop-color='%2342d8dc'/%3e%3cstop%20offset='0.91'%20stop-color='%2359dbd6'/%3e%3cstop%20offset='1'%20stop-color='%2362dcd4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='-32.86'%20y1='656.68'%20x2='-23.89'%20y2='656.68'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2339d2ff'/%3e%3cstop%20offset='0.15'%20stop-color='%2338cefe'/%3e%3cstop%20offset='0.29'%20stop-color='%2335c3fa'/%3e%3cstop%20offset='0.43'%20stop-color='%232fb0f3'/%3e%3cstop%20offset='0.55'%20stop-color='%23299aeb'/%3e%3cstop%20offset='0.58'%20stop-color='%232692ec'/%3e%3cstop%20offset='0.76'%20stop-color='%231a6cf1'/%3e%3cstop%20offset='0.91'%20stop-color='%231355f4'/%3e%3cstop%20offset='1'%20stop-color='%23104cf5'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='-31.2'%20y1='655.9'%20x2='-31.2'%20y2='667.89'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%231b48ef'/%3e%3cstop%20offset='0.12'%20stop-color='%231c51f0'/%3e%3cstop%20offset='0.32'%20stop-color='%231e69f5'/%3e%3cstop%20offset='0.57'%20stop-color='%232190fb'/%3e%3cstop%20offset='1'%20stop-color='%2326b8f4'/%3e%3c/linearGradient%3e%3cclipPath%20id='d'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='288.38'%20width='227.17'%20height='140.76'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='e'%20x1='-31.08'%20y1='654.47'%20x2='-25.54'%20y2='660'%20gradientTransform='matrix(24.45,%200,%200,%20-24.45,%20967.18,%2016420.97)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23fff'/%3e%3cstop%20offset='0.37'%20stop-color='%23fdfdfd'/%3e%3cstop%20offset='0.51'%20stop-color='%23f6f6f6'/%3e%3cstop%20offset='0.6'%20stop-color='%23ebebeb'/%3e%3cstop%20offset='0.68'%20stop-color='%23dadada'/%3e%3cstop%20offset='0.75'%20stop-color='%23c4c4c4'/%3e%3cstop%20offset='0.81'%20stop-color='%23a8a8a8'/%3e%3cstop%20offset='0.86'%20stop-color='%23888'/%3e%3cstop%20offset='0.91'%20stop-color='%23626262'/%3e%3cstop%20offset='0.95'%20stop-color='%23373737'/%3e%3cstop%20offset='0.99'%20stop-color='%23090909'/%3e%3cstop%20offset='1'/%3e%3c/linearGradient%3e%3cclipPath%20id='f'%20transform='translate(-163%20-82.94)'%3e%3crect%20x='163.02'%20y='82.87'%20width='86.51'%20height='302.96'%20style='fill:none'/%3e%3c/clipPath%3e%3clinearGradient%20id='g'%20x1='-31.2'%20y1='668.1'%20x2='-31.2'%20y2='656.02'%20xlink:href='%23e'/%3e%3c/defs%3e%3ctitle%3ebing-logo%3c/title%3e%3cpath%20d='M397,303.4a92.73,92.73,0,0,1-24.84,63.16,41.81,41.81,0,0,0,4.5-6,38.11,38.11,0,0,0,2.69-5.08,17.7,17.7,0,0,0,.74-1.78,17.25,17.25,0,0,0,.65-1.78c.21-.56.39-1.14.55-1.72s.33-1.2.46-1.81l.07-.21c.14-.6.25-1.2.37-1.81s.23-1.25.33-1.88v0c.09-.58.16-1.16.21-1.76a40,40,0,0,0,.21-4.13A41.41,41.41,0,0,0,377,317.11a36.51,36.51,0,0,0-2.85-4.17,39.93,39.93,0,0,0-4-4.43,41.45,41.45,0,0,0-12.36-8.28,38.78,38.78,0,0,0-6.22-2.14l-.09,0-.74-.25-10.81-3.71v0l-28.27-9.72c-.09,0-.21,0-.28,0l-1.77-.65A26.23,26.23,0,0,1,296.29,272L286,245.62l-11.83-30.16-2.27-5.82-.58-1.18a13.35,13.35,0,0,1-1-5.08,12,12,0,0,1,0-1.35,13.19,13.19,0,0,1,18.26-10.79l52.69,27,10.39,5.31A91.11,91.11,0,0,1,367,235a92.45,92.45,0,0,1,29.79,61.87C396.91,299.06,397,301.22,397,303.4Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23a)'/%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,42.22,42.22,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23b)'/%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23c)'/%3e%3cg%20style='opacity:0.14900000393390656;isolation:isolate'%3e%3cg%20style='clip-path:url(%23d)'%3e%3cpath%20d='M382.91,338.56a42.8,42.8,0,0,1-.72,7.82c-.14.67-.28,1.35-.44,2-.3,1.2-.62,2.36-1,3.53-.21.6-.42,1.2-.65,1.78s-.49,1.18-.74,1.78a38.1,38.1,0,0,1-2.69,5.08,41.81,41.81,0,0,1-4.5,6c-7.68,8.49-33.75,23.63-43.36,29.79l-21.33,13c-15.63,9.63-30.41,16.45-49,16.91-.88,0-1.74,0-2.6,0-1.2,0-2.39,0-3.57-.07a92.86,92.86,0,0,1-74.92-43.17,91.58,91.58,0,0,1-13.68-38.67,41.13,41.13,0,0,0,60,28.95l.14-.07,2.09-1.25,8.49-5,10.81-6.4v-.3l1.39-.83,96.71-57.29,7.44-4.41.74.25.09,0a38.31,38.31,0,0,1,6.22,2.14,41.45,41.45,0,0,1,12.36,8.28,40,40,0,0,1,4,4.43,37,37,0,0,1,2.85,4.17A41.64,41.64,0,0,1,382.91,338.56Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23e)'/%3e%3c/g%3e%3c/g%3e%3cg%20style='opacity:0.09799999743700027;isolation:isolate'%3e%3cg%20style='clip-path:url(%23f)'%3e%3cpath%20d='M245.24,147.35l0,213.29L234.39,367l-8.5,5-2.09,1.27a.24.24,0,0,0-.13.06,41.13,41.13,0,0,1-60-28.94c-.16-.89-.28-1.81-.38-2.7-.13-1.68-.22-3.33-.25-5v-240a13.77,13.77,0,0,1,21.46-11.41l42.07,27.48a5.55,5.55,0,0,0,.73.51A41.14,41.14,0,0,1,245.24,147.35Z'%20transform='translate(-163%20-82.94)'%20style='fill:url(%23g)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DefaultIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[jsxRuntimeExports.jsxs("defs",{children:[jsxRuntimeExports.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#0078d4"}),jsxRuntimeExports.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),jsxRuntimeExports.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),jsxRuntimeExports.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),jsxRuntimeExports.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0.22",stopColor:"#fff"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),jsxRuntimeExports.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),jsxRuntimeExports.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),OpenAIIcon$1=()=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),PromptIcon=()=>jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),PythonIcon=()=>jsxRuntimeExports.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),TypeScriptIcon="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",VectorSearchIcon=()=>jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),jsxRuntimeExports.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),jsxRuntimeExports.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),jsxRuntimeExports.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),jsxRuntimeExports.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),jsxRuntimeExports.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),jsxRuntimeExports.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),jsxRuntimeExports.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),jsxRuntimeExports.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),jsxRuntimeExports.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),DEFAULT_SIZE$1=16,toolsIcons={PromptFlowToolAzureContentSafety:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolSerpAPI:jsxRuntimeExports.jsx(DefaultIcon,{}),PromptFlowToolBing:jsxRuntimeExports.jsx(BingLogoIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolAzureContentModerator:jsxRuntimeExports.jsx(AzureContentSafetyIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolVectorIndexLookupByText:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolFaissIndexLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorDBLookup:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolVectorSearch:jsxRuntimeExports.jsx(VectorSearchIcon,{}),PromptFlowToolLlm:jsxRuntimeExports.jsx(OpenAIIcon$1,{}),PromptFlowToolPython:jsxRuntimeExports.jsx(PythonIcon,{}),PromptFlowToolTypeScript:jsxRuntimeExports.jsx(TypeScriptIcon,{width:DEFAULT_SIZE$1,height:DEFAULT_SIZE$1}),PromptFlowToolPrompt:jsxRuntimeExports.jsx(PromptIcon,{}),PromptFlowToolDefault:jsxRuntimeExports.jsx(DefaultIcon,{})};registerIcons({icons:{...toolsIcons}});var getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var byteToHex=[];for(var i$3=0;i$3<256;++i$3)byteToHex[i$3]=(i$3+256).toString(16).substr(1);function bytesToUuid(eo,to){var ro=to||0,no=byteToHex;return[no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],"-",no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]],no[eo[ro++]]].join("")}function v4(eo,to,ro){var no=to&&ro||0;typeof eo=="string"&&(to=eo==="binary"?new Array(16):null,eo=null),eo=eo||{};var oo=eo.random||(eo.rng||rng)();if(oo[6]=oo[6]&15|64,oo[8]=oo[8]&63|128,to)for(var io=0;io<16;++io)to[no+io]=oo[io];return to||bytesToUuid(oo)}var toposort$1={exports:{}};toposort$1.exports=function(eo){return toposort(uniqueNodes(eo),eo)};toposort$1.exports.array=toposort;function toposort(eo,to){for(var ro=eo.length,no=new Array(ro),oo={},io=ro;io--;)oo[io]||so(eo[io],io,[]);return no;function so(ao,lo,uo){if(uo.indexOf(ao)>=0){var co;try{co=", node was:"+JSON.stringify(ao)}catch{co=""}throw new Error("Cyclic dependency"+co)}if(!~eo.indexOf(ao))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(ao));if(!oo[lo]){oo[lo]=!0;var fo=to.filter(function(mo){return mo[0]===ao});if(lo=fo.length){var po=uo.concat(ao);do{var ho=fo[--lo][1];so(ho,eo.indexOf(ho),po)}while(lo)}no[--ro]=ao}}}function uniqueNodes(eo){for(var to=[],ro=0,no=eo.length;ro1?ro-1:0),oo=1;oo2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(eo,null);let no=to.length;for(;no--;){let oo=to[no];if(typeof oo=="string"){const io=ro(oo);io!==oo&&(isFrozen(to)||(to[no]=io),oo=io)}eo[oo]=!0}return eo}function cleanArray(eo){for(let to=0;to/gm),TMPLIT_EXPR=seal(/\${[\w\W]*}/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i);var EXPRESSIONS=Object.freeze({__proto__:null,MUSTACHE_EXPR,ERB_EXPR,TMPLIT_EXPR,DATA_ATTR,ARIA_ATTR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,ATTR_WHITESPACE,DOCTYPE_NAME});const getGlobal=function(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function(to,ro){if(typeof to!="object"||typeof to.createPolicy!="function")return null;let no=null;const oo="data-tt-policy-suffix";ro&&ro.hasAttribute(oo)&&(no=ro.getAttribute(oo));const io="dompurify"+(no?"#"+no:"");try{return to.createPolicy(io,{createHTML(so){return so},createScriptURL(so){return so}})}catch{return console.warn("TrustedTypes policy "+io+" could not be created."),null}};function createDOMPurify(){let eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const to=zo=>createDOMPurify(zo);if(to.version="3.0.9",to.removed=[],!eo||!eo.document||eo.document.nodeType!==9)return to.isSupported=!1,to;let{document:ro}=eo;const no=ro,oo=no.currentScript,{DocumentFragment:io,HTMLTemplateElement:so,Node:ao,Element:lo,NodeFilter:uo,NamedNodeMap:co=eo.NamedNodeMap||eo.MozNamedAttrMap,HTMLFormElement:fo,DOMParser:po,trustedTypes:ho}=eo,mo=lo.prototype,vo=lookupGetter(mo,"cloneNode"),bo=lookupGetter(mo,"nextSibling"),xo=lookupGetter(mo,"childNodes"),_o=lookupGetter(mo,"parentNode");if(typeof so=="function"){const zo=ro.createElement("template");zo.content&&zo.content.ownerDocument&&(ro=zo.content.ownerDocument)}let So,Eo="";const{implementation:ko,createNodeIterator:wo,createDocumentFragment:Co,getElementsByTagName:Ro}=ro,{importNode:Ao}=no;let Io={};to.isSupported=typeof entries=="function"&&typeof _o=="function"&&ko&&ko.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$o,ERB_EXPR:Bo,TMPLIT_EXPR:Mo,DATA_ATTR:Ho,ARIA_ATTR:jo,IS_SCRIPT_OR_DATA:Oo,ATTR_WHITESPACE:Fo}=EXPRESSIONS;let{IS_ALLOWED_URI:Go}=EXPRESSIONS,qo=null;const Xo=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let Zo=null;const Qo=addToSet({},[...html$2,...svg,...mathMl,...xml]);let xs=Object.seal(create$4(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ts=null,Rs=null,Os=!0,As=!0,Ds=!1,Jo=!0,Cs=!1,Bs=!1,zs=!1,Ls=!1,ga=!1,Js=!1,Zs=!1,$a=!0,Ll=!1;const Kl="user-content-";let Zl=!0,$l=!1,xa={},Sl=null;const cu=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ks=null;const Es=addToSet({},["audio","video","img","source","image","track"]);let bs=null;const ws=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gs="http://www.w3.org/1998/Math/MathML",Ks="http://www.w3.org/2000/svg",Ms="http://www.w3.org/1999/xhtml";let Hs=Ms,Qs=!1,El=null;const xl=addToSet({},[Gs,Ks,Ms],stringToString);let Ol=null;const ru=["application/xhtml+xml","text/html"],au="text/html";let zl=null,hu=null;const xu=ro.createElement("form"),Ql=function(Do){return Do instanceof RegExp||Do instanceof Function},Dl=function(){let Do=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hu&&hu===Do)){if((!Do||typeof Do!="object")&&(Do={}),Do=clone(Do),Ol=ru.indexOf(Do.PARSER_MEDIA_TYPE)===-1?au:Do.PARSER_MEDIA_TYPE,zl=Ol==="application/xhtml+xml"?stringToString:stringToLowerCase,qo=objectHasOwnProperty(Do,"ALLOWED_TAGS")?addToSet({},Do.ALLOWED_TAGS,zl):Xo,Zo=objectHasOwnProperty(Do,"ALLOWED_ATTR")?addToSet({},Do.ALLOWED_ATTR,zl):Qo,El=objectHasOwnProperty(Do,"ALLOWED_NAMESPACES")?addToSet({},Do.ALLOWED_NAMESPACES,stringToString):xl,bs=objectHasOwnProperty(Do,"ADD_URI_SAFE_ATTR")?addToSet(clone(ws),Do.ADD_URI_SAFE_ATTR,zl):ws,ks=objectHasOwnProperty(Do,"ADD_DATA_URI_TAGS")?addToSet(clone(Es),Do.ADD_DATA_URI_TAGS,zl):Es,Sl=objectHasOwnProperty(Do,"FORBID_CONTENTS")?addToSet({},Do.FORBID_CONTENTS,zl):cu,Ts=objectHasOwnProperty(Do,"FORBID_TAGS")?addToSet({},Do.FORBID_TAGS,zl):{},Rs=objectHasOwnProperty(Do,"FORBID_ATTR")?addToSet({},Do.FORBID_ATTR,zl):{},xa=objectHasOwnProperty(Do,"USE_PROFILES")?Do.USE_PROFILES:!1,Os=Do.ALLOW_ARIA_ATTR!==!1,As=Do.ALLOW_DATA_ATTR!==!1,Ds=Do.ALLOW_UNKNOWN_PROTOCOLS||!1,Jo=Do.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Cs=Do.SAFE_FOR_TEMPLATES||!1,Bs=Do.WHOLE_DOCUMENT||!1,ga=Do.RETURN_DOM||!1,Js=Do.RETURN_DOM_FRAGMENT||!1,Zs=Do.RETURN_TRUSTED_TYPE||!1,Ls=Do.FORCE_BODY||!1,$a=Do.SANITIZE_DOM!==!1,Ll=Do.SANITIZE_NAMED_PROPS||!1,Zl=Do.KEEP_CONTENT!==!1,$l=Do.IN_PLACE||!1,Go=Do.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,Hs=Do.NAMESPACE||Ms,xs=Do.CUSTOM_ELEMENT_HANDLING||{},Do.CUSTOM_ELEMENT_HANDLING&&Ql(Do.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xs.tagNameCheck=Do.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Do.CUSTOM_ELEMENT_HANDLING&&Ql(Do.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xs.attributeNameCheck=Do.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Do.CUSTOM_ELEMENT_HANDLING&&typeof Do.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xs.allowCustomizedBuiltInElements=Do.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Cs&&(As=!1),Js&&(ga=!0),xa&&(qo=addToSet({},text),Zo=[],xa.html===!0&&(addToSet(qo,html$1),addToSet(Zo,html$2)),xa.svg===!0&&(addToSet(qo,svg$1),addToSet(Zo,svg),addToSet(Zo,xml)),xa.svgFilters===!0&&(addToSet(qo,svgFilters),addToSet(Zo,svg),addToSet(Zo,xml)),xa.mathMl===!0&&(addToSet(qo,mathMl$1),addToSet(Zo,mathMl),addToSet(Zo,xml))),Do.ADD_TAGS&&(qo===Xo&&(qo=clone(qo)),addToSet(qo,Do.ADD_TAGS,zl)),Do.ADD_ATTR&&(Zo===Qo&&(Zo=clone(Zo)),addToSet(Zo,Do.ADD_ATTR,zl)),Do.ADD_URI_SAFE_ATTR&&addToSet(bs,Do.ADD_URI_SAFE_ATTR,zl),Do.FORBID_CONTENTS&&(Sl===cu&&(Sl=clone(Sl)),addToSet(Sl,Do.FORBID_CONTENTS,zl)),Zl&&(qo["#text"]=!0),Bs&&addToSet(qo,["html","head","body"]),qo.table&&(addToSet(qo,["tbody"]),delete Ts.tbody),Do.TRUSTED_TYPES_POLICY){if(typeof Do.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Do.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');So=Do.TRUSTED_TYPES_POLICY,Eo=So.createHTML("")}else So===void 0&&(So=_createTrustedTypesPolicy(ho,oo)),So!==null&&typeof Eo=="string"&&(Eo=So.createHTML(""));freeze&&freeze(Do),hu=Do}},gu=addToSet({},["mi","mo","mn","ms","mtext"]),lu=addToSet({},["foreignobject","desc","title","annotation-xml"]),mu=addToSet({},["title","style","font","a","script"]),ou=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),Fl=addToSet({},[...mathMl$1,...mathMlDisallowed]),yl=function(Do){let Yo=_o(Do);(!Yo||!Yo.tagName)&&(Yo={namespaceURI:Hs,tagName:"template"});const vs=stringToLowerCase(Do.tagName),ys=stringToLowerCase(Yo.tagName);return El[Do.namespaceURI]?Do.namespaceURI===Ks?Yo.namespaceURI===Ms?vs==="svg":Yo.namespaceURI===Gs?vs==="svg"&&(ys==="annotation-xml"||gu[ys]):!!ou[vs]:Do.namespaceURI===Gs?Yo.namespaceURI===Ms?vs==="math":Yo.namespaceURI===Ks?vs==="math"&&lu[ys]:!!Fl[vs]:Do.namespaceURI===Ms?Yo.namespaceURI===Ks&&!lu[ys]||Yo.namespaceURI===Gs&&!gu[ys]?!1:!Fl[vs]&&(mu[vs]||!ou[vs]):!!(Ol==="application/xhtml+xml"&&El[Do.namespaceURI]):!1},Xs=function(Do){arrayPush(to.removed,{element:Do});try{Do.parentNode.removeChild(Do)}catch{Do.remove()}},vu=function(Do,Yo){try{arrayPush(to.removed,{attribute:Yo.getAttributeNode(Do),from:Yo})}catch{arrayPush(to.removed,{attribute:null,from:Yo})}if(Yo.removeAttribute(Do),Do==="is"&&!Zo[Do])if(ga||Js)try{Xs(Yo)}catch{}else try{Yo.setAttribute(Do,"")}catch{}},$u=function(Do){let Yo=null,vs=null;if(Ls)Do=""+Do;else{const Is=stringMatch(Do,/^[\r\n\t ]+/);vs=Is&&Is[0]}Ol==="application/xhtml+xml"&&Hs===Ms&&(Do=''+Do+"");const ys=So?So.createHTML(Do):Do;if(Hs===Ms)try{Yo=new po().parseFromString(ys,Ol)}catch{}if(!Yo||!Yo.documentElement){Yo=ko.createDocument(Hs,"template",null);try{Yo.documentElement.innerHTML=Qs?Eo:ys}catch{}}const hs=Yo.body||Yo.documentElement;return Do&&vs&&hs.insertBefore(ro.createTextNode(vs),hs.childNodes[0]||null),Hs===Ms?Ro.call(Yo,Bs?"html":"body")[0]:Bs?Yo.documentElement:hs},du=function(Do){return wo.call(Do.ownerDocument||Do,Do,uo.SHOW_ELEMENT|uo.SHOW_COMMENT|uo.SHOW_TEXT,null)},d1=function(Do){return Do instanceof fo&&(typeof Do.nodeName!="string"||typeof Do.textContent!="string"||typeof Do.removeChild!="function"||!(Do.attributes instanceof co)||typeof Do.removeAttribute!="function"||typeof Do.setAttribute!="function"||typeof Do.namespaceURI!="string"||typeof Do.insertBefore!="function"||typeof Do.hasChildNodes!="function")},qu=function(Do){return typeof ao=="function"&&Do instanceof ao},Iu=function(Do,Yo,vs){Io[Do]&&arrayForEach(Io[Do],ys=>{ys.call(to,Yo,vs,hu)})},e1=function(Do){let Yo=null;if(Iu("beforeSanitizeElements",Do,null),d1(Do))return Xs(Do),!0;const vs=zl(Do.nodeName);if(Iu("uponSanitizeElement",Do,{tagName:vs,allowedTags:qo}),Do.hasChildNodes()&&!qu(Do.firstElementChild)&®ExpTest(/<[/\w]/g,Do.innerHTML)&®ExpTest(/<[/\w]/g,Do.textContent))return Xs(Do),!0;if(!qo[vs]||Ts[vs]){if(!Ts[vs]&&Ko(vs)&&(xs.tagNameCheck instanceof RegExp&®ExpTest(xs.tagNameCheck,vs)||xs.tagNameCheck instanceof Function&&xs.tagNameCheck(vs)))return!1;if(Zl&&!Sl[vs]){const ys=_o(Do)||Do.parentNode,hs=xo(Do)||Do.childNodes;if(hs&&ys){const Is=hs.length;for(let Us=Is-1;Us>=0;--Us)ys.insertBefore(vo(hs[Us],!0),bo(Do))}}return Xs(Do),!0}return Do instanceof lo&&!yl(Do)||(vs==="noscript"||vs==="noembed"||vs==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,Do.innerHTML)?(Xs(Do),!0):(Cs&&Do.nodeType===3&&(Yo=Do.textContent,arrayForEach([$o,Bo,Mo],ys=>{Yo=stringReplace(Yo,ys," ")}),Do.textContent!==Yo&&(arrayPush(to.removed,{element:Do.cloneNode()}),Do.textContent=Yo)),Iu("afterSanitizeElements",Do,null),!1)},qs=function(Do,Yo,vs){if($a&&(Yo==="id"||Yo==="name")&&(vs in ro||vs in xu))return!1;if(!(As&&!Rs[Yo]&®ExpTest(Ho,Yo))){if(!(Os&®ExpTest(jo,Yo))){if(!Zo[Yo]||Rs[Yo]){if(!(Ko(Do)&&(xs.tagNameCheck instanceof RegExp&®ExpTest(xs.tagNameCheck,Do)||xs.tagNameCheck instanceof Function&&xs.tagNameCheck(Do))&&(xs.attributeNameCheck instanceof RegExp&®ExpTest(xs.attributeNameCheck,Yo)||xs.attributeNameCheck instanceof Function&&xs.attributeNameCheck(Yo))||Yo==="is"&&xs.allowCustomizedBuiltInElements&&(xs.tagNameCheck instanceof RegExp&®ExpTest(xs.tagNameCheck,vs)||xs.tagNameCheck instanceof Function&&xs.tagNameCheck(vs))))return!1}else if(!bs[Yo]){if(!regExpTest(Go,stringReplace(vs,Fo,""))){if(!((Yo==="src"||Yo==="xlink:href"||Yo==="href")&&Do!=="script"&&stringIndexOf(vs,"data:")===0&&ks[Do])){if(!(Ds&&!regExpTest(Oo,stringReplace(vs,Fo,"")))){if(vs)return!1}}}}}}return!0},Ko=function(Do){return Do!=="annotation-xml"&&Do.indexOf("-")>0},Uo=function(Do){Iu("beforeSanitizeAttributes",Do,null);const{attributes:Yo}=Do;if(!Yo)return;const vs={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Zo};let ys=Yo.length;for(;ys--;){const hs=Yo[ys],{name:Is,namespaceURI:Us,value:Il}=hs,Ml=zl(Is);let Rl=Is==="value"?Il:stringTrim(Il);if(vs.attrName=Ml,vs.attrValue=Rl,vs.keepAttr=!0,vs.forceKeepAttr=void 0,Iu("uponSanitizeAttribute",Do,vs),Rl=vs.attrValue,vs.forceKeepAttr||(vu(Is,Do),!vs.keepAttr))continue;if(!Jo&®ExpTest(/\/>/i,Rl)){vu(Is,Do);continue}Cs&&arrayForEach([$o,Bo,Mo],Ul=>{Rl=stringReplace(Rl,Ul," ")});const Cl=zl(Do.nodeName);if(qs(Cl,Ml,Rl)){if(Ll&&(Ml==="id"||Ml==="name")&&(vu(Is,Do),Rl=Kl+Rl),So&&typeof ho=="object"&&typeof ho.getAttributeType=="function"&&!Us)switch(ho.getAttributeType(Cl,Ml)){case"TrustedHTML":{Rl=So.createHTML(Rl);break}case"TrustedScriptURL":{Rl=So.createScriptURL(Rl);break}}try{Us?Do.setAttributeNS(Us,Is,Rl):Do.setAttribute(Is,Rl),arrayPop(to.removed)}catch{}}}Iu("afterSanitizeAttributes",Do,null)},Po=function zo(Do){let Yo=null;const vs=du(Do);for(Iu("beforeSanitizeShadowDOM",Do,null);Yo=vs.nextNode();)Iu("uponSanitizeShadowNode",Yo,null),!e1(Yo)&&(Yo.content instanceof io&&zo(Yo.content),Uo(Yo));Iu("afterSanitizeShadowDOM",Do,null)};return to.sanitize=function(zo){let Do=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Yo=null,vs=null,ys=null,hs=null;if(Qs=!zo,Qs&&(zo=""),typeof zo!="string"&&!qu(zo))if(typeof zo.toString=="function"){if(zo=zo.toString(),typeof zo!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!to.isSupported)return zo;if(zs||Dl(Do),to.removed=[],typeof zo=="string"&&($l=!1),$l){if(zo.nodeName){const Il=zl(zo.nodeName);if(!qo[Il]||Ts[Il])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(zo instanceof ao)Yo=$u(""),vs=Yo.ownerDocument.importNode(zo,!0),vs.nodeType===1&&vs.nodeName==="BODY"||vs.nodeName==="HTML"?Yo=vs:Yo.appendChild(vs);else{if(!ga&&!Cs&&!Bs&&zo.indexOf("<")===-1)return So&&Zs?So.createHTML(zo):zo;if(Yo=$u(zo),!Yo)return ga?null:Zs?Eo:""}Yo&&Ls&&Xs(Yo.firstChild);const Is=du($l?zo:Yo);for(;ys=Is.nextNode();)e1(ys)||(ys.content instanceof io&&Po(ys.content),Uo(ys));if($l)return zo;if(ga){if(Js)for(hs=Co.call(Yo.ownerDocument);Yo.firstChild;)hs.appendChild(Yo.firstChild);else hs=Yo;return(Zo.shadowroot||Zo.shadowrootmode)&&(hs=Ao.call(no,hs,!0)),hs}let Us=Bs?Yo.outerHTML:Yo.innerHTML;return Bs&&qo["!doctype"]&&Yo.ownerDocument&&Yo.ownerDocument.doctype&&Yo.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,Yo.ownerDocument.doctype.name)&&(Us=" +`+Us),Cs&&arrayForEach([$o,Bo,Mo],Il=>{Us=stringReplace(Us,Il," ")}),So&&Zs?So.createHTML(Us):Us},to.setConfig=function(){let zo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dl(zo),zs=!0},to.clearConfig=function(){hu=null,zs=!1},to.isValidAttribute=function(zo,Do,Yo){hu||Dl({});const vs=zl(zo),ys=zl(Do);return qs(vs,ys,Yo)},to.addHook=function(zo,Do){typeof Do=="function"&&(Io[zo]=Io[zo]||[],arrayPush(Io[zo],Do))},to.removeHook=function(zo){if(Io[zo])return arrayPop(Io[zo])},to.removeHooks=function(zo){Io[zo]&&(Io[zo]=[])},to.removeAllHooks=function(){Io={}},to}var purify=createDOMPurify(),eventemitter3={exports:{}};(function(eo){var to=Object.prototype.hasOwnProperty,ro="~";function no(){}Object.create&&(no.prototype=Object.create(null),new no().__proto__||(ro=!1));function oo(lo,uo,co){this.fn=lo,this.context=uo,this.once=co||!1}function io(lo,uo,co,fo,po){if(typeof co!="function")throw new TypeError("The listener must be a function");var ho=new oo(co,fo||lo,po),mo=ro?ro+uo:uo;return lo._events[mo]?lo._events[mo].fn?lo._events[mo]=[lo._events[mo],ho]:lo._events[mo].push(ho):(lo._events[mo]=ho,lo._eventsCount++),lo}function so(lo,uo){--lo._eventsCount===0?lo._events=new no:delete lo._events[uo]}function ao(){this._events=new no,this._eventsCount=0}ao.prototype.eventNames=function(){var uo=[],co,fo;if(this._eventsCount===0)return uo;for(fo in co=this._events)to.call(co,fo)&&uo.push(ro?fo.slice(1):fo);return Object.getOwnPropertySymbols?uo.concat(Object.getOwnPropertySymbols(co)):uo},ao.prototype.listeners=function(uo){var co=ro?ro+uo:uo,fo=this._events[co];if(!fo)return[];if(fo.fn)return[fo.fn];for(var po=0,ho=fo.length,mo=new Array(ho);po0?eo:"Unknown")}function _defineProperty$5(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function _extends$a(){return _extends$a=Object.assign||function(eo){for(var to=1;to"u"?"undefined":_typeof$6(window))==="object"&&(typeof document>"u"?"undefined":_typeof$6(document))==="object"&&document.nodeType===9;function _typeof$5(eo){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$5(eo)}function toPrimitive(eo,to){if(_typeof$5(eo)!="object"||!eo)return eo;var ro=eo[Symbol.toPrimitive];if(ro!==void 0){var no=ro.call(eo,to||"default");if(_typeof$5(no)!="object")return no;throw new TypeError("@@toPrimitive must return a primitive value.")}return(to==="string"?String:Number)(eo)}function toPropertyKey(eo){var to=toPrimitive(eo,"string");return _typeof$5(to)=="symbol"?to:String(to)}function _defineProperties$3(eo,to){for(var ro=0;ro<+~=|^:(),"'`\s])/g,nativeEscape=typeof CSS<"u"&&CSS.escape,escape=function(eo){return nativeEscape?nativeEscape(eo):eo.replace(escapeRegex,"\\$1")},BaseStyleRule=function(){function eo(ro,no,oo){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var io=oo.sheet,so=oo.Renderer;this.key=ro,this.options=oo,this.style=no,io?this.renderer=io.renderer:so&&(this.renderer=new so)}var to=eo.prototype;return to.prop=function(no,oo,io){if(oo===void 0)return this.style[no];var so=io?io.force:!1;if(!so&&this.style[no]===oo)return this;var ao=oo;(!io||io.process!==!1)&&(ao=this.options.jss.plugins.onChangeValue(oo,no,this));var lo=ao==null||ao===!1,uo=no in this.style;if(lo&&!uo&&!so)return this;var co=lo&&uo;if(co?delete this.style[no]:this.style[no]=ao,this.renderable&&this.renderer)return co?this.renderer.removeProperty(this.renderable,no):this.renderer.setProperty(this.renderable,no,ao),this;var fo=this.options.sheet;return fo&&fo.attached,this},eo}(),StyleRule=function(eo){_inheritsLoose$1(to,eo);function to(no,oo,io){var so;so=eo.call(this,no,oo,io)||this,so.selectorText=void 0,so.id=void 0,so.renderable=void 0;var ao=io.selector,lo=io.scoped,uo=io.sheet,co=io.generateId;return ao?so.selectorText=ao:lo!==!1&&(so.id=co(_assertThisInitialized$3(_assertThisInitialized$3(so)),uo),so.selectorText="."+escape(so.id)),so}var ro=to.prototype;return ro.applyTo=function(oo){var io=this.renderer;if(io){var so=this.toJSON();for(var ao in so)io.setProperty(oo,ao,so[ao])}return this},ro.toJSON=function(){var oo={};for(var io in this.style){var so=this.style[io];typeof so!="object"?oo[io]=so:Array.isArray(so)&&(oo[io]=toCssValue(so))}return oo},ro.toString=function(oo){var io=this.options.sheet,so=io?io.options.link:!1,ao=so?_extends$b({},oo,{allowEmpty:!0}):oo;return toCss(this.selectorText,this.style,ao)},_createClass$3(to,[{key:"selector",set:function(oo){if(oo!==this.selectorText){this.selectorText=oo;var io=this.renderer,so=this.renderable;if(!(!so||!io)){var ao=io.setSelector(so,oo);ao||io.replaceRule(so,this)}}},get:function(){return this.selectorText}}]),to}(BaseStyleRule),pluginStyleRule={onCreateRule:function(to,ro,no){return to[0]==="@"||no.parent&&no.parent.type==="keyframes"?null:new StyleRule(to,ro,no)}},defaultToStringOptions={indent:1,children:!0},atRegExp=/@([\w-]+)/,ConditionalRule=function(){function eo(ro,no,oo){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=ro,this.query=oo.name;var io=ro.match(atRegExp);this.at=io?io[1]:"unknown",this.options=oo,this.rules=new RuleList(_extends$b({},oo,{parent:this}));for(var so in no)this.rules.add(so,no[so]);this.rules.process()}var to=eo.prototype;return to.getRule=function(no){return this.rules.get(no)},to.indexOf=function(no){return this.rules.indexOf(no)},to.addRule=function(no,oo,io){var so=this.rules.add(no,oo,io);return so?(this.options.jss.plugins.onProcessRule(so),so):null},to.toString=function(no){if(no===void 0&&(no=defaultToStringOptions),no.indent==null&&(no.indent=defaultToStringOptions.indent),no.children==null&&(no.children=defaultToStringOptions.children),no.children===!1)return this.query+" {}";var oo=this.rules.toString(no);return oo?this.query+` { +`+oo+` +}`:""},eo}(),keyRegExp=/@media|@supports\s+/,pluginConditionalRule={onCreateRule:function(to,ro,no){return keyRegExp.test(to)?new ConditionalRule(to,ro,no):null}},defaultToStringOptions$1={indent:1,children:!0},nameRegExp=/@keyframes\s+([\w-]+)/,KeyframesRule=function(){function eo(ro,no,oo){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var io=ro.match(nameRegExp);io&&io[1]?this.name=io[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=oo;var so=oo.scoped,ao=oo.sheet,lo=oo.generateId;this.id=so===!1?this.name:escape(lo(this,ao)),this.rules=new RuleList(_extends$b({},oo,{parent:this}));for(var uo in no)this.rules.add(uo,no[uo],_extends$b({},oo,{parent:this}));this.rules.process()}var to=eo.prototype;return to.toString=function(no){if(no===void 0&&(no=defaultToStringOptions$1),no.indent==null&&(no.indent=defaultToStringOptions$1.indent),no.children==null&&(no.children=defaultToStringOptions$1.children),no.children===!1)return this.at+" "+this.id+" {}";var oo=this.rules.toString(no);return oo&&(oo=` +`+oo+` +`),this.at+" "+this.id+" {"+oo+"}"},eo}(),keyRegExp$1=/@keyframes\s+/,refRegExp$1=/\$([\w-]+)/g,findReferencedKeyframe=function(to,ro){return typeof to=="string"?to.replace(refRegExp$1,function(no,oo){return oo in ro?ro[oo]:no}):to},replaceRef=function(to,ro,no){var oo=to[ro],io=findReferencedKeyframe(oo,no);io!==oo&&(to[ro]=io)},plugin={onCreateRule:function(to,ro,no){return typeof to=="string"&&keyRegExp$1.test(to)?new KeyframesRule(to,ro,no):null},onProcessStyle:function(to,ro,no){return ro.type!=="style"||!no||("animation-name"in to&&replaceRef(to,"animation-name",no.keyframes),"animation"in to&&replaceRef(to,"animation",no.keyframes)),to},onChangeValue:function(to,ro,no){var oo=no.options.sheet;if(!oo)return to;switch(ro){case"animation":return findReferencedKeyframe(to,oo.keyframes);case"animation-name":return findReferencedKeyframe(to,oo.keyframes);default:return to}}},KeyframeRule=function(eo){_inheritsLoose$1(to,eo);function to(){for(var no,oo=arguments.length,io=new Array(oo),so=0;so=this.index){oo.push(no);return}for(var so=0;soio){oo.splice(so,0,no);return}}},to.reset=function(){this.registry=[]},to.remove=function(no){var oo=this.registry.indexOf(no);this.registry.splice(oo,1)},to.toString=function(no){for(var oo=no===void 0?{}:no,io=oo.attached,so=_objectWithoutPropertiesLoose$2(oo,["attached"]),ao="",lo=0;loto.index&&no.options.insertionPoint===to.insertionPoint)return no}return null}function findHighestSheet(eo,to){for(var ro=eo.length-1;ro>=0;ro--){var no=eo[ro];if(no.attached&&no.options.insertionPoint===to.insertionPoint)return no}return null}function findCommentNode(eo){for(var to=getHead(),ro=0;ro0){var ro=findHigherSheet(to,eo);if(ro&&ro.renderer)return{parent:ro.renderer.element.parentNode,node:ro.renderer.element};if(ro=findHighestSheet(to,eo),ro&&ro.renderer)return{parent:ro.renderer.element.parentNode,node:ro.renderer.element.nextSibling}}var no=eo.insertionPoint;if(no&&typeof no=="string"){var oo=findCommentNode(no);if(oo)return{parent:oo.parentNode,node:oo.nextSibling}}return!1}function insertStyle(eo,to){var ro=to.insertionPoint,no=findPrevNode(to);if(no!==!1&&no.parent){no.parent.insertBefore(eo,no.node);return}if(ro&&typeof ro.nodeType=="number"){var oo=ro,io=oo.parentNode;io&&io.insertBefore(eo,oo.nextSibling);return}getHead().appendChild(eo)}var getNonce$1=memoize$2(function(){var eo=document.querySelector('meta[property="csp-nonce"]');return eo?eo.getAttribute("content"):null}),_insertRule=function(to,ro,no){var oo=to.cssRules.length;(no===void 0||no>oo)&&(no=oo);try{if("insertRule"in to){var io=to;io.insertRule(ro,no)}else if("appendRule"in to){var so=to;so.appendRule(ro)}}catch{return!1}return to.cssRules[no]},createStyle=function(){var to=document.createElement("style");return to.textContent=` +`,to},DomRenderer=function(){function eo(ro){this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,ro&&sheets.add(ro),this.sheet=ro;var no=this.sheet?this.sheet.options:{},oo=no.media,io=no.meta,so=no.element;this.element=so||createStyle(),this.element.setAttribute("data-jss",""),oo&&this.element.setAttribute("media",oo),io&&this.element.setAttribute("data-meta",io);var ao=getNonce$1();ao&&this.element.setAttribute("nonce",ao)}var to=eo.prototype;return to.attach=function(){if(!(this.element.parentNode||!this.sheet)){insertStyle(this.element,this.sheet.options);var no=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&no&&(this.hasInsertedRules=!1,this.deploy())}},to.detach=function(){var no=this.element.parentNode;no&&no.removeChild(this.element)},to.deploy=function(){var no=this.sheet;if(no){if(no.options.link){this.insertRules(no.rules);return}this.element.textContent=` +`+no.toString()+` +`}},to.insertRules=function(no,oo){for(var io=0;io0&&(oo.refs--,oo.refs===0&&oo.sheet.detach()):warning(!1,"SheetsManager: can't find sheet to unmanage")},_createClass$3(eo,[{key:"size",get:function(){return this.length}}]),eo}();/** + * A better abstraction over CSS. + * + * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present + * @website https://github.com/cssinjs/jss + * @license MIT + */var hasCSSTOMSupport=typeof CSS<"u"&&CSS&&"number"in CSS,create$3=function(to){return new Jss(to)},index$4=create$3(),now=Date.now(),fnValuesNs="fnValues"+now,fnRuleNs="fnStyle"+ ++now;function functionPlugin(){return{onCreateRule:function(to,ro,no){if(typeof ro!="function")return null;var oo=createRule(to,{},no);return oo[fnRuleNs]=ro,oo},onProcessStyle:function(to,ro){if(fnValuesNs in ro||fnRuleNs in ro)return to;var no={};for(var oo in to){var io=to[oo];typeof io=="function"&&(delete to[oo],no[oo]=io)}return ro[fnValuesNs]=no,to},onUpdate:function(to,ro,no,oo){var io=ro,so=io[fnRuleNs];so&&(io.style=so(to)||{});var ao=io[fnValuesNs];if(ao)for(var lo in ao)io.prop(lo,ao[lo](to),oo)}}}function symbolObservablePonyfill(eo){var to,ro=eo.Symbol;return typeof ro=="function"?ro.observable?to=ro.observable:(to=ro("observable"),ro.observable=to):to="@@observable",to}var root$1;typeof self<"u"?root$1=self:typeof window<"u"?root$1=window:typeof global<"u"?root$1=global:typeof module<"u"?root$1=module:root$1=Function("return this")();var result=symbolObservablePonyfill(root$1),isObservable$1=function(to){return to&&to[result]&&to===to[result]()};function observablePlugin(eo){return{onCreateRule:function(ro,no,oo){if(!isObservable$1(no))return null;var io=no,so=createRule(ro,{},oo);return io.subscribe(function(ao){for(var lo in ao)so.prop(lo,ao[lo],eo)}),so},onProcessRule:function(ro){if(!(ro&&ro.type!=="style")){var no=ro,oo=no.style,io=function(uo){var co=oo[uo];if(!isObservable$1(co))return"continue";delete oo[uo],co.subscribe({next:function(po){no.prop(uo,po,eo)}})};for(var so in oo)var ao=io(so)}}}}var semiWithNl=/;\n/,parse$m=function(eo){for(var to={},ro=eo.split(semiWithNl),no=0;no-1)return registerClass(eo,to.split(" "));var oo=eo.options,io=oo.parent;if(to[0]==="$"){var so=io.getRule(to.substr(1));return!so||so===eo?!1:(io.classes[eo.key]+=" "+io.classes[so.key],!0)}return io.classes[eo.key]+=" "+to,!0}function jssCompose(){function eo(to,ro){return"composes"in to&&(registerClass(ro,to.composes),delete to.composes),to}return{onProcessStyle:eo}}var uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$2={};function toHyphenLower(eo){return"-"+eo.toLowerCase()}function hyphenateStyleName(eo){if(cache$2.hasOwnProperty(eo))return cache$2[eo];var to=eo.replace(uppercasePattern,toHyphenLower);return cache$2[eo]=msPattern.test(to)?"-"+to:to}function convertCase(eo){var to={};for(var ro in eo){var no=ro.indexOf("--")===0?ro:hyphenateStyleName(ro);to[no]=eo[ro]}return eo.fallbacks&&(Array.isArray(eo.fallbacks)?to.fallbacks=eo.fallbacks.map(convertCase):to.fallbacks=convertCase(eo.fallbacks)),to}function camelCase(){function eo(ro){if(Array.isArray(ro)){for(var no=0;noeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro-1){var io=propMap$1[to];if(!Array.isArray(io))return prefix$2.js+pascalize(io)in ro?prefix$2.css+io:!1;if(!oo)return!1;for(var so=0;sono?1:-1:ro.length-no.length};return{onProcessStyle:function(ro,no){if(no.type!=="style")return ro;for(var oo={},io=Object.keys(ro).sort(eo),so=0;soMAX_RULES_PER_SHEET)&&(oo=to.createStyleSheet().attach()),oo};function so(){var ao=arguments,lo=JSON.stringify(ao),uo=ro.get(lo);if(uo)return uo.className;var co=[];for(var fo in ao){var po=ao[fo];if(!Array.isArray(po)){co.push(po);continue}for(var ho=0;hoto=>!!pick$1(eo)(to),add=eo=>to=>{const ro=to||0;return Array.isArray(eo)?eo.reduce((no,oo)=>no|oo,ro):ro|eo},toggle=eo=>to=>(to||0)^eo,pick$1=eo=>to=>(to||0)&eo,remove$1=eo=>to=>{const ro=to||0;return Array.isArray(eo)?eo.reduce((no,oo)=>no&~oo,ro):ro&~eo},replace$1=eo=>()=>eo;var bitset=Object.freeze({__proto__:null,has:has$1,add,toggle,pick:pick$1,remove:remove$1,replace:replace$1});const EMPTY_STATUS=0,SELECTED_STATUS=1,ACTIVATED_STATUS=2;var GraphEdgeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.ConnectedToSelected=4]="ConnectedToSelected",eo[eo.UnconnectedToSelected=8]="UnconnectedToSelected",eo[eo.Editing=16]="Editing"})(GraphEdgeStatus||(GraphEdgeStatus={}));var GraphNodeStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Editing=4]="Editing",eo[eo.ConnectedToSelected=8]="ConnectedToSelected",eo[eo.UnconnectedToSelected=16]="UnconnectedToSelected"})(GraphNodeStatus||(GraphNodeStatus={}));var GraphPortStatus;(function(eo){eo[eo.Default=EMPTY_STATUS]="Default",eo[eo.Selected=SELECTED_STATUS]="Selected",eo[eo.Activated=ACTIVATED_STATUS]="Activated",eo[eo.Connecting=4]="Connecting",eo[eo.ConnectingAsTarget=8]="ConnectingAsTarget"})(GraphPortStatus||(GraphPortStatus={}));const updateStatus=eo=>to=>{var ro;const no=eo((ro=to.status)!==null&&ro!==void 0?ro:0);return no===to.status?to:Object.assign(Object.assign({},to),{status:no})};function isNodeEditing(eo){return has$1(GraphNodeStatus.Editing)(eo.status)}function isSelected(eo){return has$1(SELECTED_STATUS)(eo.status)}function notSelected(eo){return!isSelected(eo)}const resetConnectStatus=eo=>to=>(to||0)&GraphNodeStatus.Activated|eo;class Debug{static log(to){}static warn(to){}static error(...to){console.error(...to)}static never(to,ro){throw new Error(ro??`${to} is unexpected`)}}const getNodeConfig=(eo,to)=>{const ro=to.getNodeConfig(eo);if(!ro){Debug.warn(`invalid node ${JSON.stringify(eo)}`);return}return ro};function getRectWidth(eo,to){var ro;const no=(ro=eo==null?void 0:eo.getMinWidth(to))!==null&&ro!==void 0?ro:0;return to.width&&to.width>=no?to.width:no}function getRectHeight(eo,to){var ro;const no=(ro=eo==null?void 0:eo.getMinHeight(to))!==null&&ro!==void 0?ro:0;return to.height&&to.height>=no?to.height:no}function getNodeSize(eo,to){const ro=getNodeConfig(eo,to),no=getRectWidth(ro,eo);return{height:getRectHeight(ro,eo),width:no}}function getGroupRect(eo,to,ro){var no,oo,io,so,ao,lo,uo,co;const fo=new Set(eo.nodeIds),po=Array.from(to.values()).filter(ko=>fo.has(ko.id)),ho=Math.min(...po.map(ko=>ko.x)),mo=Math.max(...po.map(ko=>ko.x+getNodeSize(ko,ro).width)),vo=Math.min(...po.map(ko=>ko.y)),bo=Math.max(...po.map(ko=>ko.y+getNodeSize(ko,ro).height)),xo=ho-((oo=(no=eo.padding)===null||no===void 0?void 0:no.left)!==null&&oo!==void 0?oo:0),_o=vo-((so=(io=eo.padding)===null||io===void 0?void 0:io.top)!==null&&so!==void 0?so:0),So=bo-_o+((lo=(ao=eo.padding)===null||ao===void 0?void 0:ao.bottom)!==null&&lo!==void 0?lo:0),Eo=mo-xo+((co=(uo=eo.padding)===null||uo===void 0?void 0:uo.left)!==null&&co!==void 0?co:0);return{x:xo,y:_o,width:Eo,height:So}}var MouseEventButton;(function(eo){eo[eo.Primary=0]="Primary",eo[eo.Auxiliary=1]="Auxiliary",eo[eo.Secondary=2]="Secondary",eo[eo.Fourth=4]="Fourth",eo[eo.Fifth=5]="Fifth"})(MouseEventButton||(MouseEventButton={}));var MouseEventButtons;(function(eo){eo[eo.None=0]="None",eo[eo.Left=1]="Left",eo[eo.Right=2]="Right",eo[eo.Middle=4]="Middle"})(MouseEventButtons||(MouseEventButtons={}));const DEFAULT_AUTO_ALIGN_THRESHOLD=50,COPIED_NODE_SPACING=50,NODE_MIN_VISIBLE_LENGTH=5,NODE_MAX_VISIBLE_LENGTH=500,defaultColors={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},RectComponent=eo=>{const{style:to,node:ro,width:no,height:oo,textY:io}=eo,so=ro.data&&ro.data.comment?ro.data.comment:"",ao=isNodeEditing(ro);return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("rect",{width:no,height:oo,x:ro.x,y:ro.y,style:to,rx:to.borderRadius}),jsxRuntimeExports.jsx("text",Object.assign({x:ro.x,y:io,fontSize:12},{children:ro.name})),ro.data&&ro.data.comment&&!ao&&jsxRuntimeExports.jsx("text",Object.assign({x:ro.x,y:io+20,fontSize:12,className:`comment-${ro.id}`},{children:ro.data.comment})),ao&&jsxRuntimeExports.jsx("foreignObject",Object.assign({x:ro.x,y:io,height:oo/2.5,width:no-5},{children:jsxRuntimeExports.jsx("input",{value:so,placeholder:"Input your comment here"})}))]},ro.id)},rect={getMinHeight(){return 150},getMinWidth(){return 150},render(eo){const to=eo.model,ro=getRectWidth(rect,to),no=getRectHeight(rect,to),oo=has$1(GraphNodeStatus.Selected|GraphNodeStatus.Activated)(to.status)?{fill:defaultColors.nodeActivateFill,stroke:defaultColors.nodeActivateStroke}:{fill:defaultColors.nodeFill,fillOpacity:.1,stroke:defaultColors.nodeStroke,borderRadius:"5"},io=to.y+no/3;return jsxRuntimeExports.jsx(RectComponent,{style:oo,node:to,width:ro,height:no,textY:io})}},getCurvePathD=(eo,to,ro,no)=>`M${eo},${ro}C${eo},${ro-getControlPointDistance(ro,no)},${to},${no+5+getControlPointDistance(ro,no)},${to},${no+5}`,getControlPointDistance=(eo,to)=>Math.min(5*15,Math.max(5*3,Math.abs((eo-(to+5))/2))),line$1={render(eo){const to=eo.model,ro={cursor:"crosshair",stroke:has$1(GraphEdgeStatus.Selected)(to.status)?defaultColors.edgeColorSelected:defaultColors.edgeColor,strokeWidth:"2"};return jsxRuntimeExports.jsx("path",{d:getCurvePathD(eo.x2,eo.x1,eo.y2,eo.y1),fill:"none",style:ro,id:`edge${to.id}`},to.id)}};class DefaultPort{getStyle(to,ro,no,oo,io){const so=defaultColors.portStroke;let ao=defaultColors.portFill;return(oo||io)&&(ao=defaultColors.connectedPortColor),has$1(GraphPortStatus.Activated)(to.status)&&(ao=defaultColors.primaryColor),{stroke:so,fill:ao}}getIsConnectable(){return!0}render(to){const{model:ro,data:no,parentNode:oo}=to,io=no.isPortConnectedAsSource(oo.id,ro.id),so=no.isPortConnectedAsTarget(oo.id,ro.id),ao=this.getStyle(ro,oo,no,io,so),{x:lo,y:uo}=to,co=`${lo-5} ${uo}, ${lo+7} ${uo}, ${lo+1} ${uo+8}`;return so?jsxRuntimeExports.jsx("polygon",{points:co,style:ao}):jsxRuntimeExports.jsx("circle",{r:5,cx:lo,cy:uo,style:ao},`${to.parentNode.id}-${to.model.id}`)}}const defaultPort=new DefaultPort;class DefaultClipboard{constructor(to){this.storage=to}write(to){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:to.nodes.map(ro=>Object.assign(Object.assign({},ro),{data:{}})),edges:to.edges.map(ro=>Object.assign(Object.assign({},ro),{data:{}}))}))}read(){const to=this.storage.getItem("graph-clipboard");if(!to)return null;try{const ro=JSON.parse(to),no=new Map;return{nodes:ro.nodes.map(oo=>{const io=v4();return no.set(oo.id,io),Object.assign(Object.assign({},oo),{x:oo.x+COPIED_NODE_SPACING,y:oo.y+COPIED_NODE_SPACING,id:io})}),edges:ro.edges.map(oo=>Object.assign(Object.assign({},oo),{id:v4(),source:no.get(oo.source)||"",target:no.get(oo.target)||""}))}}catch{return null}}}class DefaultStorage{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(to,ro){this.items.set(to,ro)}getItem(to){return this.items.has(to)?this.items.get(to):null}removeItem(to){this.items.delete(to)}}class GraphConfigBuilder{constructor(){const to=new DefaultStorage,ro=new DefaultClipboard(to);this.draft={getNodeConfig:()=>rect,getEdgeConfig:()=>line$1,getPortConfig:()=>defaultPort,getGroupConfig:()=>{},getClipboard:()=>ro}}static default(){return new GraphConfigBuilder}static from(to){return new GraphConfigBuilder().registerNode(to.getNodeConfig.bind(to)).registerEdge(to.getEdgeConfig.bind(to)).registerPort(to.getPortConfig.bind(to)).registerGroup(to.getGroupConfig.bind(to)).registerClipboard(to.getClipboard.bind(to))}registerNode(to){return this.draft.getNodeConfig=to,this}registerEdge(to){return this.draft.getEdgeConfig=to,this}registerPort(to){return this.draft.getPortConfig=to,this}registerGroup(to){return this.draft.getGroupConfig=to,this}registerClipboard(to){return this.draft.getClipboard=to,this}build(){return this.draft}}const GraphConfigContext=reactExports.createContext(GraphConfigBuilder.default().build());var MenuType;(function(eo){eo.Node="node",eo.Edge="edge",eo.Port="port",eo.Canvas="canvas",eo.Multi="multi"})(MenuType||(MenuType={}));class ContextMenuConfig{constructor(){this.contextMenu=new Map}registerContextMenu(to){this.contextMenuProps=Object.assign({},to)}registerMenu(to,ro){this.contextMenu.set(ro,to)}getMenu(to){if(this.contextMenuProps&&this.contextMenu.has(to)){const{className:ro,styles:no}=this.contextMenuProps;return reactExports.createElement("div",{className:ro,style:no},this.contextMenu.get(to))}return null}}const ContextMenuConfigContext=reactExports.createContext(new ContextMenuConfig),emptySelectBoxPosition=()=>({startX:0,startY:0,height:0,width:0}),SelectBox=eo=>{const{selectBoxPosition:to,style:ro}=eo,no=`m${to.startX} ${to.startY} v ${to.height} h ${to.width} v${-to.height} h ${-to.width}`,oo=ro??{fill:"none",stroke:defaultColors.defaultColor};return jsxRuntimeExports.jsx("path",{style:oo,d:no})};var GraphFeatures;(function(eo){eo.NodeDraggable="nodeDraggable",eo.NodeResizable="nodeResizable",eo.ClickNodeToSelect="clickNodeToSelect",eo.PanCanvas="panCanvas",eo.MultipleSelect="multipleSelect",eo.LassoSelect="lassoSelect",eo.Delete="delete",eo.AddNewNodes="addNewNodes",eo.AddNewEdges="addNewEdges",eo.AddNewPorts="addNewPorts",eo.AutoFit="autoFit",eo.CanvasHorizontalScrollable="canvasHorizontalScrollable",eo.CanvasVerticalScrollable="canvasVerticalScrollable",eo.NodeHoverView="nodeHoverView",eo.PortHoverView="portHoverView",eo.AddEdgesByKeyboard="addEdgesByKeyboard",eo.A11yFeatures="a11YFeatures",eo.EditNode="editNode",eo.AutoAlign="autoAlign",eo.UndoStack="undoStack",eo.CtrlKeyZoom="ctrlKeyZoom",eo.LimitBoundary="limitBoundary",eo.EditEdge="editEdge",eo.InvisibleScrollbar="InvisibleScrollbar"})(GraphFeatures||(GraphFeatures={}));GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.LassoSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.AutoFit,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary,GraphFeatures.EditEdge;const defaultFeatures=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.Delete,GraphFeatures.AddNewNodes,GraphFeatures.AddNewEdges,GraphFeatures.AddNewPorts,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AddEdgesByKeyboard,GraphFeatures.A11yFeatures,GraphFeatures.EditNode,GraphFeatures.AutoAlign,GraphFeatures.UndoStack,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]),dataReadonlyMode=new Set([GraphFeatures.NodeDraggable,GraphFeatures.NodeResizable,GraphFeatures.ClickNodeToSelect,GraphFeatures.PanCanvas,GraphFeatures.MultipleSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.CtrlKeyZoom,GraphFeatures.LimitBoundary]);GraphFeatures.ClickNodeToSelect,GraphFeatures.CanvasHorizontalScrollable,GraphFeatures.CanvasVerticalScrollable,GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.A11yFeatures,GraphFeatures.LassoSelect,GraphFeatures.LimitBoundary;const previewMode=new Set([GraphFeatures.NodeHoverView,GraphFeatures.PortHoverView,GraphFeatures.AutoFit]),emptyDummyNodes=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),is$1$1=Object.is;let MapIterator$1=class{constructor(to,ro){this.upstream=to,this.f=ro}[Symbol.iterator](){return this}next(){const to=this.upstream.next();return to.done?to:{done:!1,value:this.f(to.value)}}};var NodeType$1;(function(eo){eo[eo.Bitmap=0]="Bitmap",eo[eo.Collision=1]="Collision"})(NodeType$1||(NodeType$1={}));const HASH_CODE_LENGTH=30,BIT_PARTITION_SIZE=5,FULL_MASK=1073741823;function bitPosFrom(eo){return 1<>>to&31}function bitCount(eo){return eo|=0,eo-=eo>>>1&1431655765,eo=(eo&858993459)+(eo>>>2&858993459),eo=eo+(eo>>>4)&252645135,eo+=eo>>>8,eo+=eo>>>16,eo&127}let BitmapIndexedNode$1=class Yp{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(to,ro,no,oo,io,so,ao,lo){this.type=NodeType$1.Bitmap,this.owner=to,this.dataMap=ro,this.nodeMap=no,this.keys=oo,this.values=io,this.children=so,this.hashes=ao,this.size=lo}static empty(to){return new Yp(to,0,0,[],[],[],[],0)}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(to){return this.hashes[to]}getNode(to){return this.children[to]}contains(to,ro,no){const oo=maskFrom(ro,no),io=bitPosFrom(oo),{dataMap:so,nodeMap:ao}=this;if(so&io){const lo=indexFrom(so,oo,io),uo=this.getKey(lo);return is$1$1(uo,to)}else if(ao&io){const lo=indexFrom(ao,oo,io);return this.getNode(lo).contains(to,ro,no+BIT_PARTITION_SIZE)}return!1}get(to,ro,no){const oo=maskFrom(ro,no),io=bitPosFrom(oo),{dataMap:so,nodeMap:ao}=this;if(so&io){const lo=indexFrom(so,oo,io),uo=this.getKey(lo);return is$1$1(uo,to)?this.getValue(lo):void 0}else if(ao&io){const lo=indexFrom(ao,oo,io);return this.getNode(lo).get(to,ro,no+BIT_PARTITION_SIZE)}}insert(to,ro,no,oo,io){const so=maskFrom(oo,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const co=indexFrom(lo,so,ao),fo=this.getKey(co),po=this.getValue(co),ho=this.getHash(co);if(ho===oo&&is$1$1(fo,ro))return is$1$1(po,no)?this:this.setValue(to,no,co);{const mo=mergeTwoKeyValPairs(to,fo,po,ho,ro,no,oo,io+BIT_PARTITION_SIZE);return this.migrateInlineToNode(to,ao,mo)}}else if(uo&ao){const co=indexFrom(uo,so,ao),po=this.getNode(co).insert(to,ro,no,oo,io+BIT_PARTITION_SIZE);return this.setNode(to,1,po,ao)}return this.insertValue(to,ao,ro,oo,no)}update(to,ro,no,oo,io){const so=maskFrom(oo,io),ao=bitPosFrom(so),{dataMap:lo,nodeMap:uo}=this;if(lo&ao){const co=indexFrom(lo,so,ao),fo=this.getKey(co);if(this.getHash(co)===oo&&is$1$1(fo,ro)){const ho=this.getValue(co),mo=no(ho);return is$1$1(ho,mo)?this:this.setValue(to,mo,co)}}else if(uo&ao){const co=indexFrom(uo,so,ao),fo=this.getNode(co),po=fo.update(to,ro,no,oo,io+BIT_PARTITION_SIZE);return po===fo?this:this.setNode(to,0,po,ao)}return this}remove(to,ro,no,oo){const io=maskFrom(no,oo),so=bitPosFrom(io);if(this.dataMap&so){const ao=indexFrom(this.dataMap,io,so),lo=this.getKey(ao);return is$1$1(lo,ro)?this.removeValue(to,so):void 0}else if(this.nodeMap&so){const ao=indexFrom(this.nodeMap,io,so),lo=this.getNode(ao),uo=lo.remove(to,ro,no,oo+BIT_PARTITION_SIZE);if(uo===void 0)return;const[co,fo]=uo;return co.size===1?this.size===lo.size?[new Yp(to,so,0,[co.getKey(0)],[co.getValue(0)],[],[co.getHash(0)],1),fo]:[this.migrateNodeToInline(to,so,co),fo]:[this.setNode(to,-1,co,so),fo]}}toOwned(to){return this.owner===to?this:new Yp(to,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new BitmapIndexedNodeIterator(this)}map(to,ro){const no=this.valueCount,oo=[],io=[],so=[];let ao=!0;for(let lo=0;lo=HASH_CODE_LENGTH)return new HashCollisionNode$1(eo,no,[to,oo],[ro,io]);{const lo=maskFrom(no,ao),uo=maskFrom(so,ao);if(lo!==uo){const co=bitPosFrom(lo)|bitPosFrom(uo);return lois$1$1(no,to));return ro>=0?this.values[ro]:void 0}insert(to,ro,no){const oo=this.keys.findIndex(io=>is$1$1(io,ro));if(oo>=0){const io=this.values[oo];if(is$1$1(io,no))return this;const so=this.toOwned(to);return so.values[oo]=no,so}else{const io=this.toOwned(to);return io.keys.push(ro),io.values.push(no),io}}update(to,ro,no){const oo=this.keys.findIndex(io=>is$1$1(io,ro));if(oo>=0){const io=this.values[oo],so=no(io);if(is$1$1(io,so))return this;const ao=this.toOwned(to);return ao.values[oo]=so,ao}return this}remove(to,ro){const no=this.keys.findIndex(io=>is$1$1(io,ro));if(no===-1)return;const oo=this.getValue(no);return[new Lm(to,this.hash,this.keys.filter((io,so)=>so!==no),this.values.filter((io,so)=>so!==no)),oo]}getKey(to){return this.keys[to]}getValue(to){return this.values[to]}getHash(){return this.hash}iter(){return new HashCollisionNodeIterator(this)}map(to,ro){const no=this.size,oo=[];let io=!1;for(let so=0;so=this.node.size)return{done:!0,value:void 0};const to=this.node.getKey(this.index),ro=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[to,ro]}}clone(){const to=new HashCollisionNodeIterator(this.node);return to.index=this.index,to}}function hashing(eo){if(eo===null)return 1108378658;switch(typeof eo){case"boolean":return eo?839943201:839943200;case"number":return hashNumber$1(eo);case"string":return hashString$1(eo);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return hashString$1(String(eo))}}function hashString$1(eo){let to=0;for(let ro=0;ro4294967295;)eo/=4294967295,to^=eo;return smi$1(to)}function smi$1(eo){return eo&1073741823}class Uid{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const uid$1=new Uid;class HashMap{get size(){return this.root.size}constructor(to){this.id=uid$1.take(),this.root=to}static empty(){return HashMapBuilder.empty().finish()}static from(to){return HashMapBuilder.from(to).finish()}get(to){const ro=hashing(to);return this.root.get(to,ro,0)}has(to){const ro=hashing(to);return this.root.contains(to,ro,0)}set(to,ro){return this.withRoot(this.root.insert(uid$1.peek(),to,ro,hashing(to),0))}update(to,ro){return this.withRoot(this.root.update(uid$1.peek(),to,ro,hashing(to),0))}delete(to){const ro=hashing(to),no=uid$1.peek(),oo=this.root.remove(no,to,ro,0);return oo===void 0?this:new HashMap(oo[0])}clone(){return new HashMap(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new HashMapBuilder(this.root)}map(to){return new HashMap(this.root.map(uid$1.peek(),to))}filter(to){const ro=this.mutate();return this.forEach((no,oo)=>{to(no,oo)||ro.delete(oo)}),ro.finish()}forEach(to){this.root.forEach(to)}find(to){return this.root.find(to)}withRoot(to){return to===this.root?this:new HashMap(to)}}class HashMapBuilder{constructor(to){this.id=uid$1.take(),this.root=to}static empty(){const to=uid$1.peek(),ro=BitmapIndexedNode$1.empty(to);return new HashMapBuilder(ro)}static from(to){if(Array.isArray(to))return HashMapBuilder.fromArray(to);const ro=to[Symbol.iterator](),no=HashMapBuilder.empty();let oo=ro.next();for(;!oo.done;){const[io,so]=oo.value;no.set(io,so),oo=ro.next()}return no}static fromArray(to){const ro=HashMapBuilder.empty();for(let no=0;no=to?ro:no;const oo=ro+no>>>1;if(eo[oo]===to)return oo;to=MIN_SIZE$1)return uo;if(no===oo)return uo.balanceTail(lo),uo;const co=this.getValue(no);return uo.balanceChild(to,lo,ao,co,no)}}removeMostRight(to){const ro=this.selfSize,[no,oo,io]=this.getChild(ro).removeMostRight(to),so=this.toOwned(to);return so.size-=1,so.children[ro]=io,io.selfSizeMIN_SIZE$1)this.rotateRight(ro,ao,io,so);else if(lo.selfSize>MIN_SIZE$1)this.rotateLeft(ro,lo,io,so);else{const uo=ao.toOwned(to),co=lo.toOwned(to),fo=ro.getKey(HALF_NODE_SPLIT),po=ro.getValue(HALF_NODE_SPLIT);uo.keys.push(this.getKey(io-1)),uo.values.push(this.getValue(io-1)),uo.keys.push(...ro.keys.slice(0,HALF_NODE_SPLIT)),uo.values.push(...ro.values.slice(0,HALF_NODE_SPLIT)),co.keys.unshift(no),co.values.unshift(oo),co.keys.unshift(...ro.keys.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),co.values.unshift(...ro.values.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1)),this.keys.splice(io-1,2,fo),this.values.splice(io-1,2,po),this.children.splice(io-1,3,uo,co),so&&(uo.children.push(...ro.children.slice(0,HALF_NODE_SPLIT+1)),co.children.unshift(...ro.children.slice(HALF_NODE_SPLIT+1,MIN_SIZE$1+1)),uo.updateSize(),co.updateSize())}return this}rotateLeft(to,ro,no,oo){const io=ro.toOwned(this.owner),so=io.keys.shift(),ao=io.values.shift(),lo=this.getKey(no),uo=this.getValue(no);if(to.keys.push(lo),to.values.push(uo),this.keys[no]=so,this.values[no]=ao,this.children[no+1]=io,oo){const co=io.children.shift();to.children.push(co);const fo=co.size+1;to.size+=fo,io.size-=fo}}rotateRight(to,ro,no,oo){const io=ro.toOwned(this.owner),so=io.keys.pop(),ao=io.values.pop(),lo=this.getKey(no-1),uo=this.getValue(no-1);if(to.keys.unshift(lo),to.values.unshift(uo),this.keys[no-1]=so,this.values[no-1]=ao,this.children[no-1]=io,oo){const co=io.children.pop();to.children.unshift(co);const fo=co.size+1;to.size+=fo,io.size-=fo}}balanceTail(to){const ro=this.selfSize,no=this.getChild(ro-1),oo=to.type===NodeType.Internal;no.selfSize===MIN_SIZE$1?(to.keys.unshift(this.getKey(ro-1)),to.values.unshift(this.getValue(ro-1)),to.keys.unshift(...no.keys),to.values.unshift(...no.values),this.keys.splice(ro-1,1),this.values.splice(ro-1,1),this.children.splice(ro-1,1),oo&&(to.children.unshift(...no.children),to.size+=no.size+1)):this.rotateRight(to,no,ro,oo)}balanceHead(to){const ro=this.getChild(1),no=to.type===NodeType.Internal;ro.selfSize===MIN_SIZE$1?(to.keys.push(this.getKey(0)),to.values.push(this.getValue(0)),to.keys.push(...ro.keys),to.values.push(...ro.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),no&&(to.children.push(...ro.children),to.size+=ro.size+1)):this.rotateLeft(to,ro,0,no)}updateWithSplit(to,ro,no,oo,io,so){const ao=this.toOwned(to);ao.keys.splice(so,0,oo),ao.values.splice(so,0,io),ao.children.splice(so,1,ro,no);const lo=new InternalNode(to,ao.keys.splice(16,16),ao.values.splice(16,16),ao.children.splice(16,17),0),uo=ao.keys.pop(),co=ao.values.pop();return ao.updateSize(),lo.updateSize(),[ao,lo,uo,co]}updateSize(){let to=this.selfSize;const ro=this.children.length;for(let no=0;no{const[so,ao]=io,lo=ro(ao);return is$1$1(lo,ao)?io:[so,lo]});return this.withRoot(this.itemId,this.hashRoot,oo)}[Symbol.iterator](){return this.entries()}clone(){return new Xp(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new OrderedMapIterator(new BTreeIterator(this.sortedRoot))}values(){return new MapIterator$1(this.entries(),([,to])=>to)}mutate(){return new OrderedMapBuilder(this.itemId,this.hashRoot,this.sortedRoot)}map(to){const ro=uid.peek(),no=io=>{const[so,ao]=io,lo=to(ao,so);return is$1$1(ao,lo)?io:[so,lo]},oo=this.sortedRoot.map(ro,no);return new Xp(this.itemId,this.hashRoot,oo)}forEach(to){this.sortedRoot.forEach(([ro,no])=>{to(no,ro)})}find(to){const ro=this.sortedRoot.find(([,no])=>to(no));return ro?ro[1]:void 0}first(){const to=this.entries().next();if(!to.done)return to.value[1]}filter(to){const ro=this.mutate();return this.forEach((no,oo)=>{to(no,oo)||ro.delete(oo)}),ro.finish()}withRoot(to,ro,no){return ro===this.hashRoot&&no===this.sortedRoot?this:new Xp(to,ro,no)}};class OrderedMapIterator{constructor(to){this.delegate=to}[Symbol.iterator](){return this.clone()}next(){const to=this.delegate.next();return to.done?{done:!0,value:void 0}:{done:!1,value:to.value[1]}}clone(){return new OrderedMapIterator(this.delegate.clone())}}class OrderedMapBuilder{constructor(to,ro,no){this.id=uid.take(),this.itemId=to,this.hashRoot=ro,this.sortedRoot=no}static empty(){const to=uid.peek(),ro=BitmapIndexedNode$1.empty(to),no=emptyRoot(to);return new OrderedMapBuilder(0,ro,no)}static from(to){if(Array.isArray(to))return OrderedMapBuilder.fromArray(to);const ro=OrderedMapBuilder.empty(),no=to[Symbol.iterator]();let oo=no.next();for(;!oo.done;){const[io,so]=oo.value;ro.set(io,so),oo=no.next()}return ro}static fromArray(to){const ro=OrderedMapBuilder.empty();for(let no=0;no{const[io,so]=oo,ao=ro(so);return is$1$1(ao,so)?oo:[io,ao]}),this):this}finish(){return new OrderedMap$1(this.itemId,this.hashRoot,this.sortedRoot)}}const getPortPosition=(eo,to,ro)=>{const no=getRectWidth(ro,eo),oo=getRectHeight(ro,eo),io=to.position?to.position[0]*no:no*.5,so=eo.x+io,ao=to.position?to.position[1]*oo:oo,lo=eo.y+ao;return{x:so,y:lo}},getPortPositionByPortId=(eo,to,ro)=>{const no=getNodeConfig(eo,ro);if(!no)return;const io=(eo.ports||[]).find(so=>so.id===to);if(!io){Debug.warn(`invalid port id ${JSON.stringify(io)}`);return}return getPortPosition(eo,io,no)},identical=eo=>eo,isMobile=()=>[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(to=>navigator.userAgent.match(to));var BrowserType;(function(eo){eo.Unknown="Unknown",eo.Edge="Edge",eo.EdgeChromium="EdgeChromium",eo.Opera="Opera",eo.Chrome="Chrome",eo.IE="IE",eo.Firefox="Firefox",eo.Safari="Safari",eo.Electron="Electron"})(BrowserType||(BrowserType={}));const getBrowser=()=>{const eo=navigator.userAgent.toLowerCase();if(eo.indexOf("electron")>-1)return BrowserType.Electron;switch(!0){case eo.indexOf("edge")>-1:return BrowserType.Edge;case eo.indexOf("edg")>-1:return BrowserType.EdgeChromium;case(eo.indexOf("opr")>-1&&!!window.opr):return BrowserType.Opera;case(eo.indexOf("chrome")>-1&&!!window.chrome):return BrowserType.Chrome;case eo.indexOf("trident")>-1:return BrowserType.IE;case eo.indexOf("firefox")>-1:return BrowserType.Firefox;case eo.indexOf("safari")>-1:return BrowserType.Safari;default:return BrowserType.Unknown}},isSupported=()=>{if(isMobile())return!1;const eo=getBrowser();return[BrowserType.Chrome,BrowserType.EdgeChromium,BrowserType.Firefox,BrowserType.Safari,BrowserType.Electron].indexOf(eo)>-1},isMacOs=navigator.userAgent.includes("Macintosh"),metaControl=eo=>isMacOs?eo.metaKey:eo.ctrlKey,checkIsMultiSelect=eo=>eo.shiftKey||metaControl(eo),transformPoint=(eo,to,ro)=>({x:ro[0]*eo+ro[2]*to+ro[4],y:ro[1]*eo+ro[3]*to+ro[5]}),reverseTransformPoint=(eo,to,ro)=>{const[no,oo,io,so,ao,lo]=ro;return{x:((eo-ao)*so-(to-lo)*io)/(no*so-oo*io),y:((eo-ao)*oo-(to-lo)*no)/(oo*io-no*so)}},getPointDeltaByClientDelta=(eo,to,ro)=>{const[no,oo,io,so]=ro,ao=so*eo/(no*so-oo*io)+io*to/(oo*io-no*so),lo=oo*eo/(oo*io-no*so)+no*to/(no*so-oo*io);return{x:ao,y:lo}},getClientDeltaByPointDelta=(eo,to,ro)=>{if(!ro)return{x:eo,y:to};const[no,oo,io,so]=ro;return transformPoint(eo,to,[no,oo,io,so,0,0])},getRealPointFromClientPoint=(eo,to,ro)=>{const{rect:no}=ro,oo=eo-no.left,io=to-no.top;return reverseTransformPoint(oo,io,ro.transformMatrix)},getClientPointFromRealPoint=(eo,to,ro)=>{const{x:no,y:oo}=transformPoint(eo,to,ro.transformMatrix),{rect:io}=ro;return{x:no+io.left,y:oo+io.top}},getContainerClientPoint=(eo,to,ro)=>{const no=getClientPointFromRealPoint(eo,to,ro),{rect:oo}=ro;return{x:no.x-oo.left,y:no.y-oo.top}};function markEdgeDirty(eo,to){eo.update(to,ro=>ro.shallow())}const getNearestConnectablePort=eo=>{const{parentNode:to,clientX:ro,clientY:no,graphConfig:oo,viewport:io}=eo;let so=1/0,ao;if(!to.ports)return;const lo=getRealPointFromClientPoint(ro,no,io);return to.ports.forEach(uo=>{if(isConnectable(oo,Object.assign(Object.assign({},eo),{model:uo}))){const co=getPortPositionByPortId(to,uo.id,oo);if(!co)return;const fo=lo.x-co.x,po=lo.y-co.y,ho=fo*fo+po*po;ho{const ro=eo.getPortConfig(to.model);return ro?ro.getIsConnectable(to):!1},filterSelectedItems=eo=>{const to=new Map,ro=[];return eo.nodes.forEach(({inner:no})=>{isSelected(no)&&to.set(no.id,no)}),eo.edges.forEach(({inner:no})=>{(isSelected(no)||to.has(no.source)&&to.has(no.target))&&ro.push(no)}),{nodes:Array.from(to.values()),edges:ro}},getNeighborPorts=(eo,to,ro)=>{const no=[],oo=eo.getEdgesBySource(to,ro),io=eo.getEdgesByTarget(to,ro);return oo==null||oo.forEach(so=>{const ao=eo.edges.get(so);ao&&no.push({nodeId:ao.target,portId:ao.targetPortId})}),io==null||io.forEach(so=>{const ao=eo.edges.get(so);ao&&no.push({nodeId:ao.source,portId:ao.sourcePortId})}),no},unSelectAllEntity=()=>eo=>eo.mapNodes(to=>to.update(ro=>{var no;const oo=Object.assign(Object.assign({},ro),{ports:(no=ro.ports)===null||no===void 0?void 0:no.map(updateStatus(replace$1(GraphPortStatus.Default)))});return updateStatus(replace$1(GraphNodeStatus.Default))(oo)})).mapEdges(to=>to.update(updateStatus(replace$1(GraphEdgeStatus.Default)))),nodeSelection=(eo,to)=>{if(isNodeEditing(to))return identical;const ro=checkIsMultiSelect(eo);return isSelected(to)&&!ro?identical:no=>{const oo=ro?io=>io.id!==to.id?isSelected(io):eo.button===MouseEventButton.Secondary?!0:!isSelected(to):io=>io.id===to.id;return no.selectNodes(oo,to.id)}},getNodeAutomationId=eo=>{var to;return`node-container-${(to=eo.name)!==null&&to!==void 0?to:"unnamed"}-${eo.id}`},getPortAutomationId=(eo,to)=>`port-${to.name}-${to.id}-${eo.name}-${eo.id}`,getNodeUid=(eo,to)=>`node:${eo}:${to.id}`,getPortUid=(eo,to,ro)=>`port:${eo}:${to.id}:${ro.id}`,getEdgeUid=(eo,to)=>`edge:${eo}:${to.id}`;function preventSpread(eo){Object.defineProperty(eo,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Debug.error(`${eo.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class EdgeModel{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(to){this.inner=to,preventSpread(this)}static fromJSON(to){return new EdgeModel(to)}updateStatus(to){return this.update(updateStatus(to))}update(to){const ro=to(this.inner);return ro===this.inner?this:new EdgeModel(ro)}shallow(){return new EdgeModel(this.inner)}toJSON(){return this.inner}}const is$2=Object.is;function mapCow(eo,to){const ro=[];let no=!0;for(let oo=0;oono.id===to)}link({prev:to,next:ro}){return to===this.prev&&ro===this.next?this:new NodeModel(this.inner,this.portPositionCache,to??this.prev,ro??this.next)}updateStatus(to){return this.update(updateStatus(to))}update(to){const ro=to(this.inner);return ro===this.inner?this:new NodeModel(ro,new Map,this.prev,this.next)}updateData(to){return this.data?this.update(ro=>{const no=to(ro.data);return no===ro.data?ro:Object.assign(Object.assign({},ro),{data:no})}):this}getPortPosition(to,ro){let no=this.portPositionCache.get(to);return no||(no=getPortPositionByPortId(this.inner,to,ro),this.portPositionCache.set(to,no)),no}hasPort(to){var ro;return!!(!((ro=this.inner.ports)===null||ro===void 0)&&ro.find(no=>no.id===to))}updatePositionAndSize(to){const{x:ro,y:no,width:oo,height:io}=to,so=Object.assign(Object.assign({},this.inner),{x:ro,y:no,width:oo??this.inner.width,height:io??this.inner.height});return new NodeModel(so,new Map,this.prev,this.next)}updatePorts(to){if(!this.inner.ports)return this;const ro=mapCow(this.inner.ports,to),no=this.inner.ports===ro?this.inner:Object.assign(Object.assign({},this.inner),{ports:ro});return no===this.inner?this:new NodeModel(no,new Map,this.prev,this.next)}invalidCache(){return new NodeModel(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class GraphModel{constructor(to){this.nodes=to.nodes,this.edges=to.edges,this.groups=to.groups,this.head=to.head,this.tail=to.tail,this.edgesBySource=to.edgesBySource,this.edgesByTarget=to.edgesByTarget,this.selectedNodes=to.selectedNodes,preventSpread(this)}static empty(){return new GraphModel({nodes:OrderedMap$1.empty(),edges:HashMap.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:HashMap.empty(),edgesByTarget:HashMap.empty(),selectedNodes:new Set})}static fromJSON(to){var ro;const no=OrderedMap$1.empty().mutate(),oo=HashMap.empty().mutate();let io,so;if(to.nodes.length===0)io=void 0,so=void 0;else if(to.nodes.length===1){const uo=to.nodes[0];no.set(uo.id,NodeModel.fromJSON(uo,void 0,void 0)),io=uo.id,so=uo.id}else{const uo=to.nodes[0],co=to.nodes[1],fo=to.nodes[to.nodes.length-1];io=uo.id,so=fo.id,no.set(uo.id,NodeModel.fromJSON(uo,void 0,co.id));let po=to.nodes[0];if(to.nodes.length>2)for(let ho=1;hoao.update(ro));if(io===this.nodes)return this;const so=this.edges.mutate();return(no=this.edgesBySource.get(to))===null||no===void 0||no.forEach(ao=>{ao.forEach(lo=>{markEdgeDirty(so,lo)})}),(oo=this.edgesByTarget.get(to))===null||oo===void 0||oo.forEach(ao=>{ao.forEach(lo=>{markEdgeDirty(so,lo)})}),this.merge({nodes:io,edges:so.finish()})}updateNodeData(to,ro){return this.merge({nodes:this.nodes.update(to,no=>no.updateData(ro))})}updatePort(to,ro,no){const oo=this.nodes.update(to,io=>io.updatePorts(so=>so.id===ro?no(so):so));return this.merge({nodes:oo})}insertNode(to){const ro=this.nodes.mutate().set(to.id,NodeModel.fromJSON(to,this.tail,void 0));return this.tail&&!this.nodes.has(to.id)&&ro.update(this.tail,no=>no.link({next:to.id})),this.merge({nodes:ro.finish(),head:this.nodes.size===0?to.id:this.head,tail:to.id})}deleteItems(to){var ro;const no=new Set,oo=this.nodes.mutate();let io=this.head===void 0?void 0:this.nodes.get(this.head),so=io,ao;const lo=this.edgesBySource.mutate(),uo=this.edgesByTarget.mutate();for(;so!==void 0;){const fo=so.next?this.nodes.get(so.next):void 0;!((ro=to.node)===null||ro===void 0)&&ro.call(to,so.inner)?(oo.update(so.id,po=>po.link({prev:ao==null?void 0:ao.id}).update(ho=>has$1(GraphNodeStatus.Editing)(ho.status)?ho:Object.assign(Object.assign({},ho),{status:GraphNodeStatus.Default}))),ao=so):(oo.delete(so.id),lo.delete(so.id),uo.delete(so.id),no.add(so.id),ao&&oo.update(ao.id,po=>po.link({next:so==null?void 0:so.next})),fo&&oo.update(fo.id,po=>po.link({prev:ao==null?void 0:ao.id})),so===io&&(io=fo)),so=fo}const co=this.edges.mutate();return this.edges.forEach(fo=>{var po,ho;!no.has(fo.source)&&!no.has(fo.target)&&(!((ho=(po=to.edge)===null||po===void 0?void 0:po.call(to,fo))!==null&&ho!==void 0)||ho)?co.update(fo.id,mo=>mo.update(updateStatus(replace$1(GraphEdgeStatus.Default)))):(co.delete(fo.id),deleteEdgeByPort(lo,fo.id,fo.source,fo.sourcePortId),deleteEdgeByPort(uo,fo.id,fo.target,fo.targetPortId))}),this.merge({nodes:oo.finish(),edges:co.finish(),head:io==null?void 0:io.id,tail:ao==null?void 0:ao.id,edgesBySource:lo.finish(),edgesByTarget:uo.finish()})}insertEdge(to){if(this.isEdgeExist(to.source,to.sourcePortId,to.target,to.targetPortId)||!this.nodes.has(to.source)||!this.nodes.has(to.target))return this;const ro=setEdgeByPort(this.edgesBySource,to.id,to.source,to.sourcePortId),no=setEdgeByPort(this.edgesByTarget,to.id,to.target,to.targetPortId);return this.merge({nodes:this.nodes.update(to.source,oo=>oo.invalidCache()).update(to.target,oo=>oo.invalidCache()),edges:this.edges.set(to.id,EdgeModel.fromJSON(to)).map(oo=>oo.updateStatus(replace$1(GraphEdgeStatus.Default))),edgesBySource:ro,edgesByTarget:no})}updateEdge(to,ro){return this.merge({edges:this.edges.update(to,no=>no.update(ro))})}deleteEdge(to){const ro=this.edges.get(to);return ro?this.merge({edges:this.edges.delete(to),edgesBySource:deleteEdgeByPort(this.edgesBySource,ro.id,ro.source,ro.sourcePortId),edgesByTarget:deleteEdgeByPort(this.edgesByTarget,ro.id,ro.target,ro.targetPortId)}):this}updateNodesPositionAndSize(to){const ro=new Set,no=this.nodes.mutate(),oo=this.edges.mutate();return to.forEach(io=>{var so,ao;ro.add(io.id),no.update(io.id,lo=>lo.updatePositionAndSize(io)),(so=this.edgesBySource.get(io.id))===null||so===void 0||so.forEach(lo=>{lo.forEach(uo=>{markEdgeDirty(oo,uo)})}),(ao=this.edgesByTarget.get(io.id))===null||ao===void 0||ao.forEach(lo=>{lo.forEach(uo=>{markEdgeDirty(oo,uo)})})}),this.merge({nodes:no.finish(),edges:oo.finish()})}mapNodes(to){return this.merge({nodes:this.nodes.map(to)})}mapEdges(to){return this.merge({edges:this.edges.map(to)})}selectNodes(to,ro){const no=new Set,oo=this.nodes.map(ao=>{const lo=to(ao.inner);return lo&&no.add(ao.id),ao.updatePorts(updateStatus(replace$1(GraphPortStatus.Default))).updateStatus(resetConnectStatus(lo?GraphNodeStatus.Selected:GraphNodeStatus.UnconnectedToSelected))}).mutate();if(no.size===0)this.nodes.forEach(ao=>oo.update(ao.id,lo=>lo.updateStatus(replace$1(GraphNodeStatus.Default))));else if(ro){const ao=oo.get(ro);ao&&(oo.delete(ro),oo.set(ao.id,ao))}const io=ao=>{oo.update(ao,lo=>lo.updateStatus(replace$1(isSelected(lo)?GraphNodeStatus.Selected:GraphNodeStatus.ConnectedToSelected)))},so=no.size?this.edges.map(ao=>{let lo=GraphEdgeStatus.UnconnectedToSelected;return no.has(ao.source)&&(io(ao.target),lo=GraphEdgeStatus.ConnectedToSelected),no.has(ao.target)&&(io(ao.source),lo=GraphEdgeStatus.ConnectedToSelected),ao.updateStatus(replace$1(lo))}):this.edges.map(ao=>ao.updateStatus(replace$1(GraphEdgeStatus.Default)));return this.merge({nodes:oo.finish(),edges:so,selectedNodes:no})}getEdgesBySource(to,ro){var no;return(no=this.edgesBySource.get(to))===null||no===void 0?void 0:no.get(ro)}getEdgesByTarget(to,ro){var no;return(no=this.edgesByTarget.get(to))===null||no===void 0?void 0:no.get(ro)}isPortConnectedAsSource(to,ro){var no,oo;return((oo=(no=this.getEdgesBySource(to,ro))===null||no===void 0?void 0:no.size)!==null&&oo!==void 0?oo:0)>0}isPortConnectedAsTarget(to,ro){var no,oo;return((oo=(no=this.getEdgesByTarget(to,ro))===null||no===void 0?void 0:no.size)!==null&&oo!==void 0?oo:0)>0}shallow(){return this.merge({})}toJSON(){const to=[];let ro=this.head&&this.nodes.get(this.head);for(;ro;)to.push(ro.inner),ro=ro.next&&this.nodes.get(ro.next);const no=Array.from(this.edges.values()).map(oo=>oo.inner);return{nodes:to,edges:no}}isEdgeExist(to,ro,no,oo){const io=this.getEdgesBySource(to,ro),so=this.getEdgesByTarget(no,oo);if(!io||!so)return!1;let ao=!1;return io.forEach(lo=>{so.has(lo)&&(ao=!0)}),ao}merge(to){var ro,no,oo,io,so,ao,lo,uo;return new GraphModel({nodes:(ro=to.nodes)!==null&&ro!==void 0?ro:this.nodes,edges:(no=to.edges)!==null&&no!==void 0?no:this.edges,groups:(oo=to.groups)!==null&&oo!==void 0?oo:this.groups,head:(io=to.head)!==null&&io!==void 0?io:this.head,tail:(so=to.tail)!==null&&so!==void 0?so:this.tail,edgesBySource:(ao=to.edgesBySource)!==null&&ao!==void 0?ao:this.edgesBySource,edgesByTarget:(lo=to.edgesByTarget)!==null&&lo!==void 0?lo:this.edgesByTarget,selectedNodes:(uo=to.selectedNodes)!==null&&uo!==void 0?uo:this.selectedNodes})}}function setEdgeByPort(eo,to,ro,no){return eo.has(ro)?eo.update(ro,oo=>{const io=oo.get(no);return new Map(oo).set(no,(io?new Set(io):new Set).add(to))}):eo.set(ro,new Map([[no,new Set([to])]]))}function setEdgeByPortMutable(eo,to,ro,no){eo.has(ro)?eo.update(ro,oo=>{let io=oo.get(no);return io||(io=new Set,oo.set(no,io)),io.add(to),oo}):eo.set(ro,new Map([[no,new Set([to])]]))}function deleteEdgeByPort(eo,to,ro,no){return eo.has(ro)?eo.update(ro,oo=>{const io=oo.get(no);if(!io)return oo;const so=new Set(io);return so.delete(to),new Map(oo).set(no,so)}):eo}var CanvasMouseMode;(function(eo){eo.Pan="Pan",eo.Select="Select"})(CanvasMouseMode||(CanvasMouseMode={}));var GraphBehavior;(function(eo){eo.Default="default",eo.Dragging="dragging",eo.Panning="panning",eo.MultiSelect="multiSelect",eo.Connecting="connecting",eo.AddingNode="addingNode"})(GraphBehavior||(GraphBehavior={}));function clamp$1(eo,to,ro){return eo>ro?eo:to{const{instance:no,maxWait:oo}=ro||{};let io=0,so;return(...lo)=>{if(window.clearTimeout(io),isDef(oo)){const uo=Date.now();if(!isDef(so))so=uo;else if(uo-so>=oo){so=void 0,ao(lo);return}}io=window.setTimeout(()=>{ao(lo)},to)};function ao(lo){eo.apply(no,lo)}},emptyArrayInstance=[];function constantEmptyArray(){return emptyArrayInstance}const checkRectIntersect=(eo,to)=>{const ro=eo.maxXto.maxX,oo=eo.minY>to.maxY,io=eo.maxY{const{minX:ro,minY:no,maxX:oo,maxY:io}=eo,{x:so,y:ao}=to;return so>ro&&sono&&aoMath.pow(eo,2),distance=(eo,to,ro,no)=>Math.sqrt(square(ro-eo)+square(no-to)),getLinearFunction=(eo,to,ro,no)=>eo===ro?()=>Number.MAX_SAFE_INTEGER:oo=>(no-to)/(ro-eo)*oo+(to*ro-no*eo)/(ro-eo),shallowEqual=(eo,to)=>{if(!eo||eo.length!==to.length)return!1;for(let ro=0;ro{const io=to?Array.isArray(to)?to:to.apply(void 0,oo):oo;return shallowEqual(ro,io)||(ro=io,no=eo.apply(void 0,oo)),no}}var Direction$1;(function(eo){eo[eo.X=0]="X",eo[eo.Y=1]="Y",eo[eo.XY=2]="XY"})(Direction$1||(Direction$1={}));const isViewportComplete=eo=>!!eo.rect,getNodeRect=(eo,to)=>{const{x:ro,y:no}=eo,{width:oo,height:io}=getNodeSize(eo,to);return{x:ro,y:no,width:oo,height:io}},isNodeVisible=(eo,to,ro)=>isRectVisible(getNodeRect(eo,ro),to),isRectVisible=(eo,to)=>{const{x:ro,y:no,width:oo,height:io}=eo;return isPointVisible({x:ro,y:no},to)||isPointVisible({x:ro+oo,y:no},to)||isPointVisible({x:ro+oo,y:no+io},to)||isPointVisible({x:ro,y:no+io},to)},isPointVisible=(eo,to)=>{const{x:ro,y:no}=getContainerClientPoint(eo.x,eo.y,to),{height:oo,width:io}=to.rect;return ro>0&&ro0&&no{const no=[];return eo.forEach(oo=>{isNodeVisible(oo,to,ro)&&no.push(oo.inner)}),no},getRenderedNodes=(eo,to)=>{const ro=[],no=getRenderedArea(to);return eo.forEach(oo=>{isNodeInRenderedArea(oo,no)&&ro.push(oo.inner)}),ro},isNodeInRenderedArea=(eo,to)=>isPointInRect(to,eo),getVisibleArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:ro}=eo,no=0,oo=0,io=to.width,so=to.height,ao=reverseTransformPoint(no,oo,ro),lo=reverseTransformPoint(io,so,ro);return{minX:ao.x,minY:ao.y,maxX:lo.x,maxY:lo.y}},getRenderedArea=eo=>{if(!isViewportComplete(eo))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:to,transformMatrix:ro}=eo,no=0,oo=0,io=to.width,so=to.height,ao=reverseTransformPoint(no-to.width,oo-to.height,ro),lo=reverseTransformPoint(io+to.width,so+to.height,ro);return{minX:ao.x,minY:ao.y,maxX:lo.x,maxY:lo.y}},normalizeSpacing=eo=>eo?typeof eo=="number"?{top:eo,right:eo,bottom:eo,left:eo}:Object.assign({top:0,right:0,bottom:0,left:0},eo):{top:0,right:0,bottom:0,left:0},zoomTo=({scale:eo,anchor:to,direction:ro,limitScale:no})=>oo=>{const io=no(eo)/oo.transformMatrix[0],so=no(eo)/oo.transformMatrix[3],{x:ao,y:lo}=to,uo=ao*(1-io),co=lo*(1-so);let fo;switch(ro){case Direction$1.X:fo=[eo,0,0,oo.transformMatrix[3],oo.transformMatrix[4]*io+uo,oo.transformMatrix[5]];break;case Direction$1.Y:fo=[oo.transformMatrix[0],0,0,eo,oo.transformMatrix[4],oo.transformMatrix[5]*so+co];break;case Direction$1.XY:default:fo=[eo,0,0,eo,oo.transformMatrix[4]*io+uo,oo.transformMatrix[5]*so+co]}return Object.assign(Object.assign({},oo),{transformMatrix:fo})},zoom=({scale:eo,anchor:to,direction:ro,limitScale:no})=>eo===1?identical:oo=>{let io;switch(ro){case Direction$1.X:return zoomTo({anchor:to,direction:ro,limitScale:no,scale:oo.transformMatrix[0]*eo})(oo);case Direction$1.Y:return zoomTo({anchor:to,direction:ro,limitScale:no,scale:oo.transformMatrix[3]*eo})(oo);case Direction$1.XY:default:{const so=no(oo.transformMatrix[0]*eo),ao=no(oo.transformMatrix[3]*eo),lo=so/oo.transformMatrix[0],uo=ao/oo.transformMatrix[3],{x:co,y:fo}=to,po=co*(1-lo),ho=fo*(1-uo);io=[so,0,0,ao,oo.transformMatrix[4]*lo+po,oo.transformMatrix[5]*uo+ho]}}return Object.assign(Object.assign({},oo),{transformMatrix:io})},pan=(eo,to)=>eo===0&&to===0?identical:ro=>Object.assign(Object.assign({},ro),{transformMatrix:[ro.transformMatrix[0],ro.transformMatrix[1],ro.transformMatrix[2],ro.transformMatrix[3],ro.transformMatrix[4]+eo,ro.transformMatrix[5]+to]}),minimapPan=(eo,to)=>eo===0&&to===0?identical:ro=>{const[no,oo,io,so]=ro.transformMatrix;return Object.assign(Object.assign({},ro),{transformMatrix:[no,oo,io,so,ro.transformMatrix[4]+no*eo+oo*to,ro.transformMatrix[5]+io*eo+so*to]})},getContentArea$1=(eo,to,ro)=>{let no=1/0,oo=1/0,io=1/0,so=1/0,ao=-1/0,lo=-1/0;return(ro===void 0?po=>eo.nodes.forEach(po):po=>ro==null?void 0:ro.forEach(ho=>{const mo=eo.nodes.get(ho);mo&&po(mo)}))(po=>{const{width:ho,height:mo}=getNodeSize(po,to);po.xao&&(ao=po.x+ho),po.y+mo>lo&&(lo=po.y+mo),ho{let{width:ro,height:no}=eo,{width:oo,height:io}=to;if(ro>oo){const so=ro;ro=oo,oo=so}if(no>io){const so=no;no=io,io=so}return{nodeMinVisibleWidth:ro,nodeMinVisibleHeight:no,nodeMaxVisibleWidth:oo,nodeMaxVisibleHeight:io}},getScaleRange=(eo,{width:to,height:ro})=>{const{nodeMinVisibleWidth:no,nodeMinVisibleHeight:oo,nodeMaxVisibleWidth:io,nodeMaxVisibleHeight:so}=normalizeNodeVisibleMinMax(eo);let ao=0,lo=0,uo=1/0,co=1/0;return to&&(ao=no/to,uo=io/to),ro&&(lo=oo/ro,co=so/ro),{minScaleX:ao,minScaleY:lo,maxScaleX:uo,maxScaleY:co}},getZoomFitMatrix=eo=>{const{data:to,graphConfig:ro,disablePan:no,direction:oo,rect:io}=eo,{nodes:so}=to;if(so.size===0)return[1,0,0,1,0,0];const{minNodeWidth:ao,minNodeHeight:lo,minNodeX:uo,minNodeY:co,maxNodeX:fo,maxNodeY:po}=getContentArea$1(to,ro),{minScaleX:ho,minScaleY:mo,maxScaleX:vo,maxScaleY:bo}=getScaleRange(eo,{width:ao,height:lo}),xo=normalizeSpacing(eo.spacing),{width:_o,height:So}=io,Eo=_o/(fo-uo+xo.left+xo.right),ko=So/(po-co+xo.top+xo.bottom),wo=oo===Direction$1.Y?Math.min(Math.max(ho,mo,ko),vo,bo):Math.min(Math.max(ho,mo,Math.min(Eo,ko)),bo,bo),Co=oo===Direction$1.XY?Math.min(Math.max(ho,Eo),vo):wo,Ro=oo===Direction$1.XY?Math.min(Math.max(mo,ko),bo):wo;if(no)return[Co,0,0,Ro,0,0];const Ao=-Co*(uo-xo.left),Io=-Ro*(co-xo.top);if(getVisibleNodes(to.nodes,{rect:io,transformMatrix:[Co,0,0,Ro,Ao,Io]},ro).length>0)return[Co,0,0,Ro,Ao,Io];let Bo=to.nodes.first();return Bo&&to.nodes.forEach(Mo=>{Bo.y>Mo.y&&(Bo=Mo)}),[Co,0,0,Ro,-Co*(Bo.x-xo.left),-Ro*(Bo.y-xo.top)]},focusArea=(eo,to,ro,no,oo)=>{const io=ro-eo,so=no-to,ao=Math.min(oo.rect.width/io,oo.rect.height/so),lo=-ao*(eo+io/2)+oo.rect.width/2,uo=-ao*(to+so/2)+oo.rect.height/2;return Object.assign(Object.assign({},oo),{transformMatrix:[ao,0,0,ao,lo,uo]})};function getContainerCenter(eo){const to=eo.current;if(!to)return;const ro=to.width/2,no=to.height/2;return{x:ro,y:no}}function getRelativePoint(eo,to){const ro=to.clientX-eo.left,no=to.clientY-eo.top;return{x:ro,y:no}}const scrollIntoView$1=(eo,to,ro,no,oo)=>{if(!ro)return identical;const{width:io,height:so}=ro;return!(eo<0||eo>io||to<0||to>so)&&!no?identical:lo=>{const uo=oo?oo.x-eo:io/2-eo,co=oo?oo.y-to:so/2-to;return Object.assign(Object.assign({},lo),{transformMatrix:[lo.transformMatrix[0],lo.transformMatrix[1],lo.transformMatrix[2],lo.transformMatrix[3],lo.transformMatrix[4]+uo,lo.transformMatrix[5]+co]})}},getScaleLimit=(eo,to)=>{const{minNodeWidth:ro,minNodeHeight:no}=getContentArea$1(eo,to.graphConfig),{minScaleX:oo,minScaleY:io}=getScaleRange(to,{width:ro,height:no});return Math.max(oo,io)},getContentArea=memoize$1(getContentArea$1),getOffsetLimit=({data:eo,graphConfig:to,rect:ro,transformMatrix:no,canvasBoundaryPadding:oo,groupPadding:io})=>{var so,ao,lo,uo;const co=getContentArea(eo,to),fo=getClientDeltaByPointDelta(co.minNodeX-((io==null?void 0:io.left)||0),co.minNodeY-((io==null?void 0:io.top)||0),no);fo.x-=(so=oo==null?void 0:oo.left)!==null&&so!==void 0?so:0,fo.y-=(ao=oo==null?void 0:oo.top)!==null&&ao!==void 0?ao:0;const po=getClientDeltaByPointDelta(co.maxNodeX+((io==null?void 0:io.right)||0),co.maxNodeY+((io==null?void 0:io.bottom)||0),no);po.x+=(lo=oo==null?void 0:oo.right)!==null&&lo!==void 0?lo:0,po.y+=(uo=oo==null?void 0:oo.bottom)!==null&&uo!==void 0?uo:0;let ho=-fo.x||0,mo=-fo.y||0,vo=ro.width-po.x||0,bo=ro.height-po.y||0;if(vo({present:to,past:{next:eo.past,value:ro(eo.present)},future:null}),undo=eo=>eo.past?{present:eo.past.value,past:eo.past.next,future:{next:eo.future,value:eo.present}}:eo,redo=eo=>eo.future?{present:eo.future.value,past:{next:eo.past,value:eo.present},future:eo.future.next}:eo,resetUndoStack=eo=>({present:eo,future:null,past:null}),isWithinThreshold=(eo,to,ro)=>Math.abs(eo){warnGraphStateContext()}},EMPTY_CONNECT_STATE={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}},GraphValueContext=reactExports.createContext(new Proxy(GraphModel.empty(),{get:(eo,to)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(eo,to))})),GraphStateContext=reactExports.createContext(defaultGraphStateContext),SlotsContext=reactExports.createContext({});class EventChannel{constructor(){this.listenersRef=reactExports.createRef(),this.externalHandlerRef=reactExports.createRef(),this.queue=[],this.working=!1}trigger(to){this.working?this.queue.push(to):(this.working=!0,reactDomExports.unstable_batchedUpdates(()=>{this.callHandlers(to);for(let ro=0;ro{this.dispatchDelegate(no,oo)},this.state=to,this.UNSAFE_latestState=to,this.dispatchDelegate=ro}setMouseClientPosition(to){this.mouseClientPoint=to}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(to){this.behavior=to}getData(){return this.state.data.present}getGlobalEventTarget(){var to,ro;return(ro=(to=this.getGlobalEventTargetDelegate)===null||to===void 0?void 0:to.call(this))!==null&&ro!==void 0?ro:window}}function useConst(eo){const to=reactExports.useRef();return to.current===void 0&&(to.current=eo()),to.current}const noop$2=()=>{};class ErrorBoundary extends reactExports.Component{constructor(to){super(to),this.state={hasError:!1}}static getDerivedStateFromError(to){return{hasError:!0,error:to}}componentDidCatch(to,ro){console.error(to),this.setState({error:to,errorInfo:ro})}render(){var to,ro;if(!this.state.hasError)return this.props.children;if(this.props.renderOnError)return(to=this.props.renderOnError(this.state.error,this.state.errorInfo,this.props.children))!==null&&to!==void 0?to:null;const no=this.state.errorInfo?(ro=this.state.errorInfo.componentStack)===null||ro===void 0?void 0:ro.split(` +`):[];return jsxRuntimeExports.jsxs("div",Object.assign({style:{color:"red"}},{children:[jsxRuntimeExports.jsx("h1",{children:"Something went wrong."}),jsxRuntimeExports.jsx("p",{children:`Error: ${this.state.error}`}),jsxRuntimeExports.jsx("p",{children:`ErrorInfo: ${JSON.stringify(this.state.errorInfo)}`}),jsxRuntimeExports.jsx("h2",{children:"Component Stack"}),(no??[]).map((oo,io)=>jsxRuntimeExports.jsx("p",{children:oo},io))]}))}}const EMPTY_CONNECT_CONTEXT={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},ConnectingStateContext=reactExports.createContext(EMPTY_CONNECT_CONTEXT);ConnectingStateContext.displayName="ConnectingStateContext";const ConnectingState=({children:eo,data:to,connectState:ro})=>{let no,oo,io,so;ro&&(no=to.nodes.get(ro.sourceNode),oo=no==null?void 0:no.getPort(ro.sourcePort),io=ro.targetNode?to.nodes.get(ro.targetNode):void 0,so=ro.targetPort?io==null?void 0:io.getPort(ro.targetPort):void 0);const ao=reactExports.useMemo(()=>({sourceNode:no,sourcePort:oo,targetNode:io,targetPort:so}),[no,oo,io,so]);return jsxRuntimeExports.jsx(ConnectingStateContext.Provider,Object.assign({value:ao},{children:eo}))};ConnectingState.displayName="ConnectingState";const AlignmentLinesContext=reactExports.createContext([]),GraphControllerContext=reactExports.createContext(new GraphController(EMPTY_GRAPH_STATE,noop$2));function GraphStateStore(eo){const{graphController:to,state:ro,dispatch:no,children:oo}=eo,io=reactExports.useMemo(()=>({state:ro,dispatch:no}),[ro,no]);return jsxRuntimeExports.jsx(GraphConfigContext.Provider,Object.assign({value:ro.settings.graphConfig},{children:jsxRuntimeExports.jsx(GraphControllerContext.Provider,Object.assign({value:to},{children:jsxRuntimeExports.jsx(ConnectingState,Object.assign({data:ro.data.present,connectState:ro.connectState},{children:jsxRuntimeExports.jsx(GraphStateContext.Provider,Object.assign({value:io},{children:jsxRuntimeExports.jsx(ViewportContext.Provider,Object.assign({value:ro.viewport},{children:jsxRuntimeExports.jsx(GraphValueContext.Provider,Object.assign({value:ro.data.present},{children:jsxRuntimeExports.jsx(AlignmentLinesContext.Provider,Object.assign({value:ro.alignmentLines},{children:oo}))}))}))}))}))}))}))}const ReactDagEditor=eo=>{var to;reactExports.useEffect(()=>{eo.handleWarning&&(Debug.warn=eo.handleWarning)},[]);const ro=(to=eo.handleError)===null||to===void 0?void 0:to.bind(null),{state:no,dispatch:oo,getGlobalEventTarget:io}=eo,so=useConst(()=>new GraphController(no,oo));return so.UNSAFE_latestState=no,reactExports.useLayoutEffect(()=>{so.state=no,so.dispatchDelegate=oo,so.getGlobalEventTargetDelegate=io},[oo,io,so,no]),reactExports.useEffect(()=>()=>{so.dispatchDelegate=noop$2},[so]),jsxRuntimeExports.jsx(ErrorBoundary,Object.assign({renderOnError:ro},{children:jsxRuntimeExports.jsx(SlotsContext.Provider,Object.assign({value:eo},{children:jsxRuntimeExports.jsx(GraphStateStore,Object.assign({state:no,dispatch:oo,graphController:so},{children:jsxRuntimeExports.jsx(ContextMenuConfigContext.Provider,Object.assign({value:useConst(()=>new ContextMenuConfig)},{children:jsxRuntimeExports.jsx("div",Object.assign({style:eo.style,className:eo.className},{children:eo.children}))}))}))}))}))},useContextMenuConfigContext=()=>reactExports.useContext(ContextMenuConfigContext);var GraphNodeEvent;(function(eo){eo.Click="[Node]Click",eo.DoubleClick="[Node]DoubleClick",eo.MouseDown="[Node]MouseDown",eo.MouseUp="[Node]MouseUp",eo.MouseEnter="[Node]MouseEnter",eo.MouseLeave="[Node]MouseLeave",eo.MouseOver="[Node]MouseOver",eo.MouseOut="[Node]MouseOut",eo.MouseMove="[Node]MouseMove",eo.ContextMenu="[Node]ContextMenu",eo.Drag="[Node]Drag",eo.DragStart="[Node]DragStart",eo.DragEnd="[Node]DragEnd",eo.PointerDown="[Node]PointerDown",eo.PointerEnter="[Node]PointerEnter",eo.PointerMove="[Node]PointerMove",eo.PointerLeave="[Node]PointerLeave",eo.PointerUp="[Node]PointerUp",eo.Resizing="[Node]Resizing",eo.ResizingStart="[Node]ResizingStart",eo.ResizingEnd="[Node]ResizingEnd",eo.KeyDown="[Node]KeyDown",eo.Select="[Node]Select",eo.SelectAll="[Node]SelectAll",eo.Centralize="[Node]Centralize",eo.Locate="[Node]Locate",eo.Add="[Node]Add"})(GraphNodeEvent||(GraphNodeEvent={}));var GraphEdgeEvent;(function(eo){eo.Click="[Edge]Click",eo.DoubleClick="[Edge]DoubleClick",eo.MouseEnter="[Edge]MouseEnter",eo.MouseLeave="[Edge]MouseLeave",eo.MouseOver="[Edge]MouseOver",eo.MouseOut="[Edge]MouseOut",eo.MouseMove="[Edge]MouseMove",eo.MouseDown="[Edge]MouseDown",eo.MouseUp="[Edge]MouseUp",eo.ContextMenu="[Edge]ContextMenu",eo.ConnectStart="[Edge]ConnectStart",eo.ConnectMove="[Edge]ConnectMove",eo.ConnectEnd="[Edge]ConnectEnd",eo.ConnectNavigate="[Edge]ConnectNavigate",eo.Add="[Edge]Add"})(GraphEdgeEvent||(GraphEdgeEvent={}));var GraphPortEvent;(function(eo){eo.Click="[Port]Click",eo.DoubleClick="[Port]DoubleClick",eo.MouseDown="[Port]MouseDown",eo.PointerDown="[Port]PointerDown",eo.PointerUp="[Port]PointerUp",eo.PointerEnter="[Port]PointerEnter",eo.PointerLeave="[Port]PointerLeave",eo.MouseUp="[Port]MouseUp",eo.MouseEnter="[Port]MouseEnter",eo.MouseLeave="[Port]MouseLeave",eo.MouseOver="[Port]MouseOver",eo.MouseOut="[Port]MouseOut",eo.MouseMove="[Port]MouseMove",eo.ContextMenu="[Port]ContextMenu",eo.KeyDown="[Port]KeyDown",eo.Focus="[Port]Focus",eo.Blur="[Port]Blur"})(GraphPortEvent||(GraphPortEvent={}));var GraphCanvasEvent;(function(eo){eo.Click="[Canvas]Click",eo.DoubleClick="[Canvas]DoubleClick",eo.MouseDown="[Canvas]MouseDown",eo.MouseUp="[Canvas]MouseUp",eo.MouseEnter="[Canvas]MouseEnter",eo.MouseLeave="[Canvas]MouseLeave",eo.MouseOver="[Canvas]MouseOver",eo.MouseOut="[Canvas]MouseOut",eo.MouseMove="[Canvas]MouseMove",eo.ContextMenu="[Canvas]ContextMenu",eo.DragStart="[Canvas]DragStart",eo.Drag="[Canvas]Drag",eo.DragEnd="[Canvas]DragEnd",eo.Pan="[Canvas]Pan",eo.Focus="[Canvas]Focus",eo.Blur="[Canvas]Blur",eo.Zoom="[Canvas]Zoom",eo.Pinch="[Canvas]Pinch",eo.KeyDown="[Canvas]KeyDown",eo.KeyUp="[Canvas]KeyUp",eo.SelectStart="[Canvas]SelectStart",eo.SelectMove="[Canvas]SelectMove",eo.SelectEnd="[Canvas]SelectEnd",eo.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",eo.MouseWheelScroll="[Canvas]MouseWheelScroll",eo.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",eo.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",eo.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",eo.ViewportResize="[Canvas]ViewportResize",eo.Navigate="[Canvas]Navigate",eo.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",eo.ResetSelection="[Canvas]ResetSelection",eo.Copy="[Canvas]Copy",eo.Paste="[Canvas]Paste",eo.Delete="[Canvas]Delete",eo.Undo="[Canvas]Undo",eo.Redo="[Canvas]Redo",eo.ScrollIntoView="[Canvas]ScrollIntoView",eo.ResetUndoStack="[Canvas]ResetUndoStack",eo.ResetViewport="[Canvas]ResetViewport",eo.ZoomTo="[Canvas]ZoomTo",eo.ZoomToFit="[Canvas]ZoomToFit",eo.SetData="[Canvas]SetData",eo.UpdateData="[Canvas]UpdateData",eo.ScrollTo="[Canvas]ScrollTo",eo.UpdateSettings="[Canvas]UpdateSettings"})(GraphCanvasEvent||(GraphCanvasEvent={}));var GraphScrollBarEvent;(function(eo){eo.ScrollStart="[ScrollBar]ScrollStart",eo.Scroll="[ScrollBar]Scroll",eo.ScrollEnd="[ScrollBar]ScrollEnd"})(GraphScrollBarEvent||(GraphScrollBarEvent={}));var GraphMinimapEvent;(function(eo){eo.PanStart="[Minimap]PanStart",eo.Pan="[Minimap]Pan",eo.PanEnd="[Minimap]PanEnd",eo.Click="[Minimap]Click"})(GraphMinimapEvent||(GraphMinimapEvent={}));var GraphContextMenuEvent;(function(eo){eo.Open="[ContextMenu]Open",eo.Close="[ContextMenu]Close"})(GraphContextMenuEvent||(GraphContextMenuEvent={}));function getScrollLineHeight(){try{const eo=document.createElement("iframe");eo.src="#",document.body.appendChild(eo);const{contentDocument:to}=eo;if(!to)throw new Error("Fail to create iframe");to.documentElement.innerHTML=purify.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const no=to.body.firstElementChild.offsetHeight;return document.body.removeChild(eo),no}catch(eo){return Debug.error("failed to calculate scroll line height",eo),16}}const scrollLineHeight=getScrollLineHeight(),normalizeWheelDelta=typeof WheelEvent=="function"?(eo,to)=>{switch(eo){case WheelEvent.DOM_DELTA_PIXEL:return to;case WheelEvent.DOM_DELTA_LINE:return to*scrollLineHeight;case WheelEvent.DOM_DELTA_PAGE:return to*window.innerHeight;default:return to}}:(eo,to)=>to,EMPTY_RECT={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},VirtualizationContext=reactExports.createContext({viewport:{rect:EMPTY_RECT,transformMatrix:EMPTY_TRANSFORM_MATRIX},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function useGraphConfig(){return reactExports.useContext(GraphConfigContext)}function useGraphController(){return reactExports.useContext(GraphControllerContext)}function useAlignmentLines(){return reactExports.useContext(AlignmentLinesContext)}function useConnectingState(){return reactExports.useContext(ConnectingStateContext)}function useVirtualization(){return reactExports.useContext(VirtualizationContext)}let shouldRespondWheel=!1;const useWheelHandler=eo=>{const{containerRef:to,svgRef:ro,rectRef:no,zoomSensitivity:oo,scrollSensitivity:io,isHorizontalScrollDisabled:so,isVerticalScrollDisabled:ao,isCtrlKeyZoomEnable:lo,eventChannel:uo,graphConfig:co,dispatch:fo}=eo,ho=useGraphController().getGlobalEventTarget();reactExports.useLayoutEffect(()=>{const mo=ro.current,vo=to.current;if(!mo||!vo)return noop$2;const bo=So=>{const Eo=no.current;if(!Eo||!shouldRespondWheel)return;if(So.preventDefault(),So.ctrlKey&&lo){const Ro=(normalizeWheelDelta(So.deltaMode,So.deltaY)>0?-oo:oo)+1;uo.trigger({type:GraphCanvasEvent.Zoom,rawEvent:So,scale:Ro,anchor:getRelativePoint(Eo,So)});return}const ko=so?0:-normalizeWheelDelta(So.deltaMode,So.shiftKey?So.deltaY:So.deltaX)*io,wo=ao||So.shiftKey?0:-normalizeWheelDelta(So.deltaMode,So.deltaY)*io;uo.trigger({type:GraphCanvasEvent.MouseWheelScroll,dx:ko,dy:wo,rawEvent:So})},xo=()=>{shouldRespondWheel=!0};vo.addEventListener("mouseenter",xo);const _o=()=>{shouldRespondWheel=!1};return vo.addEventListener("mouseleave",_o),ho.addEventListener("wheel",bo,{passive:!1}),()=>{ho.removeEventListener("wheel",bo),vo.removeEventListener("mouseenter",xo),vo.removeEventListener("mouseleave",_o)}},[ro,no,oo,io,fo,so,ao,co,uo,lo])};function nextFrame(eo){requestAnimationFrame(()=>{requestAnimationFrame(eo)})}const LIMIT=20,isRectChanged=(eo,to)=>eo===to?!1:!eo||!to?!0:eo.top!==to.top||eo.left!==to.left||eo.width!==to.width||eo.height!==to.height,useUpdateViewportCallback=(eo,to,ro)=>reactExports.useCallback((no=!1)=>{var oo;const io=(oo=to.current)===null||oo===void 0?void 0:oo.getBoundingClientRect();(no||isRectChanged(eo.current,io))&&(eo.current=io,ro.trigger({type:GraphCanvasEvent.ViewportResize,viewportRect:io}))},[ro,eo,to]),useContainerRect=(eo,to,ro,no)=>{reactExports.useLayoutEffect(()=>{eo.viewport.rect||no(!0)}),reactExports.useEffect(()=>{const oo=ro.current;if(!oo)return noop$2;const io=debounce(()=>nextFrame(()=>{no()}),LIMIT);if(typeof ResizeObserver<"u"){const so=new ResizeObserver(io);return so.observe(oo),()=>{so.unobserve(oo),so.disconnect()}}return window.addEventListener("resize",io),()=>{window.removeEventListener("resize",io)}},[ro,no]),reactExports.useEffect(()=>{const oo=debounce(so=>{const ao=to.current;!ao||!(so.target instanceof Element)||!so.target.contains(ao)||no()},LIMIT),io={capture:!0,passive:!0};return document.body.addEventListener("scroll",oo,io),()=>{document.body.removeEventListener("scroll",oo,io)}},[to,no])};function makeScheduledCallback(eo,to,ro){let no=!1,oo,io;const so=(...ao)=>{oo=ao,no||(no=!0,io=to(()=>{no=!1,reactDomExports.unstable_batchedUpdates(()=>{eo.apply(null,oo)})}))};return so.cancel=()=>{ro(io)},so}const animationFramed=eo=>makeScheduledCallback(eo,requestAnimationFrame,cancelAnimationFrame),useRenderedArea=(eo,to)=>reactExports.useMemo(()=>to?getRenderedArea(eo):{minX:-Number.MAX_SAFE_INTEGER,minY:-Number.MAX_SAFE_INTEGER,maxX:Number.MAX_SAFE_INTEGER,maxY:Number.MAX_SAFE_INTEGER},[eo,to]);class DragController{constructor(to,ro){this.onMove=noop$2,this.onEnd=noop$2,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=no=>{this.lastEvent=no,this.doOnMouseUp(no),this.lastEvent=null},this.onMouseMove=no=>{this.lastEvent=no,no.preventDefault(),this.mouseMove(no)},this.eventProvider=to,this.getPositionFromEvent=ro,this.mouseMove=animationFramed(no=>{this.doOnMouseMove(no)})}start(to){this.lastEvent=to;const{x:ro,y:no}=this.getPositionFromEvent(to);this.startX=ro,this.startY=no,this.prevClientX=ro,this.prevClientY=no,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(to,ro){const no=to-this.prevClientX,oo=ro-this.prevClientY;return this.prevClientX=to,this.prevClientY=ro,{x:no,y:oo}}getTotalDelta(to){const ro=to.clientX-this.startX,no=to.clientY-this.startY;return{x:ro,y:no}}doOnMouseMove(to){const{x:ro,y:no}=this.getPositionFromEvent(to),{x:oo,y:io}=this.getDelta(ro,no),{x:so,y:ao}=this.getTotalDelta(to);this.onMove({clientX:ro,clientY:no,dx:oo,dy:io,totalDX:so,totalDY:ao,e:to})}doOnMouseUp(to){to.preventDefault();const{x:ro,y:no}=this.getTotalDelta(to);this.onEnd({totalDX:ro,totalDY:no,e:to}),this.stop()}}function defaultGetPositionFromEvent(eo){return{x:eo.clientX,y:eo.clientY}}class DragNodeController extends DragController{constructor(to,ro,no){super(to,ro),this.rectRef=no}doOnMouseMove(to){super.doOnMouseMove(to);const ro=this.rectRef.current;!ro||!this.lastEvent||(to.clientXro.right||to.clientYro.bottom)&&this.mouseMove(this.lastEvent)}}class TouchController{constructor(to){this.eventHandlers={onPointerDown:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.set(ro.pointerId,ro.nativeEvent),this.updateHandler(ro.nativeEvent,...no))},onPointerMove:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers.set(ro.pointerId,ro.nativeEvent),this.onMove(ro.nativeEvent,...no))},onPointerUp:(ro,...no)=>{ro.pointerType==="touch"&&(ro.preventDefault(),this.pointers=new Map(this.pointers),this.pointers.delete(ro.pointerId),this.updateHandler(ro.nativeEvent,...no))}},this.pointers=new Map,this.onMove=animationFramed((ro,...no)=>{var oo;(oo=this.currentHandler)===null||oo===void 0||oo.onMove(this.pointers,ro,...no)}),this.handlers=to}updateHandler(to,...ro){var no,oo;const io=this.handlers.get(this.pointers.size);io!==this.currentHandler&&((no=this.currentHandler)===null||no===void 0||no.onEnd(to,...ro),this.currentHandler=io,(oo=this.currentHandler)===null||oo===void 0||oo.onStart(this.pointers,to,...ro))}}class TwoFingerHandler{constructor(to,ro){this.prevDistance=0,this.rectRef=to,this.eventChannel=ro}onEnd(){}onMove(to,ro){const no=Array.from(to.values()),oo=distance(no[0].clientX,no[0].clientY,no[1].clientX,no[1].clientY),{prevEvents:io,prevDistance:so}=this;if(this.prevDistance=oo,this.prevEvents=no,!io)return;const ao=no[0].clientX-io[0].clientX,lo=no[1].clientX-io[1].clientX,uo=no[0].clientY-io[0].clientY,co=no[1].clientY-io[1].clientY,fo=(ao+lo)/2,po=(uo+co)/2,ho=(oo-so)/so+1,mo=getContainerCenter(this.rectRef);mo&&this.eventChannel.trigger({type:GraphCanvasEvent.Pinch,rawEvent:ro,dx:fo,dy:po,scale:ho,anchor:mo})}onStart(to){if(to.size!==2)throw new Error(`Unexpected touch event with ${to.size} touches`);this.prevEvents=Array.from(to.values()),this.prevDistance=distance(this.prevEvents[0].clientX,this.prevEvents[0].clientY,this.prevEvents[1].clientX,this.prevEvents[1].clientY)}}const useGraphTouchHandler=(eo,to)=>reactExports.useMemo(()=>new TouchController(new Map().set(2,new TwoFingerHandler(eo,to))).eventHandlers,[eo,to]),isSafari=getBrowser()===BrowserType.Safari;let prevScale=0;function useSafariScale({rectRef:eo,svgRef:to,eventChannel:ro}){reactExports.useEffect(()=>{const no=to.current;if(!isSafari||!no||isMobile())return()=>{};const oo=animationFramed(lo=>{const{scale:uo}=lo,co=uo/prevScale;prevScale=uo,ro.trigger({type:GraphCanvasEvent.Zoom,rawEvent:lo,scale:co,anchor:getContainerCenter(eo)})}),io=lo=>{lo.stopPropagation(),lo.preventDefault(),prevScale=lo.scale,ro.trigger({type:GraphCanvasEvent.Zoom,rawEvent:lo,scale:lo.scale,anchor:getContainerCenter(eo)})},so=lo=>{lo.stopPropagation(),lo.preventDefault(),oo(lo)},ao=lo=>{lo.stopPropagation(),lo.preventDefault(),oo(lo)};return no.addEventListener("gesturestart",io),no.addEventListener("gesturechange",so),no.addEventListener("gestureend",ao),()=>{no.removeEventListener("gesturestart",io),no.removeEventListener("gesturechange",so),no.removeEventListener("gestureend",ao)}},[])}function useDeferredValue(eo,{timeout:to}){const[ro,no]=reactExports.useState(eo);return reactExports.useEffect(()=>{const oo=setTimeout(()=>{no(eo)},to);return()=>{clearTimeout(oo)}},[eo,to]),ro}const useSelectBox=(eo,to)=>{const ro=useDeferredValue(to,{timeout:100});reactExports.useEffect(()=>{eo({type:GraphCanvasEvent.UpdateNodeSelectionBySelectBox})},[ro])},useGraphState=()=>reactExports.useContext(GraphStateContext),handleBehaviorChange=(eo,to)=>{switch(to.type){case GraphNodeEvent.DragStart:return GraphBehavior.Dragging;case GraphEdgeEvent.ConnectStart:return GraphBehavior.Connecting;case GraphCanvasEvent.SelectStart:return GraphBehavior.MultiSelect;case GraphCanvasEvent.DragStart:return GraphBehavior.Panning;case GraphCanvasEvent.DraggingNodeFromItemPanelStart:return GraphBehavior.AddingNode;case GraphNodeEvent.DragEnd:case GraphEdgeEvent.ConnectEnd:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.DragEnd:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return GraphBehavior.Default;default:return eo}},behaviorReducer=(eo,to)=>{const ro=handleBehaviorChange(eo.behavior,to);return ro===eo.behavior?eo:Object.assign(Object.assign({},eo),{behavior:ro})};function __rest(eo,to){var ro={};for(var no in eo)Object.prototype.hasOwnProperty.call(eo,no)&&to.indexOf(no)<0&&(ro[no]=eo[no]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oo=0,no=Object.getOwnPropertySymbols(eo);oo{switch(to.type){case GraphCanvasEvent.Paste:{const{position:ro}=to;if(!isViewportComplete(eo.viewport))return eo;const{rect:no}=eo.viewport;let oo=to.data.nodes;if(ro&&no){const so=getRealPointFromClientPoint(ro.x,ro.y,eo.viewport);let ao,lo;oo=oo.map((uo,co)=>(co===0&&(ao=so.x-uo.x,lo=so.y-uo.y),Object.assign(Object.assign({},uo),{x:ao?uo.x-COPIED_NODE_SPACING+ao:uo.x,y:lo?uo.y-COPIED_NODE_SPACING+lo:uo.y,state:GraphNodeStatus.Selected})))}let io=unSelectAllEntity()(eo.data.present);return oo.forEach(so=>{io=io.insertNode(so)}),to.data.edges.forEach(so=>{io=io.insertEdge(so)}),Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,io)})}case GraphCanvasEvent.Delete:return eo.settings.features.has(GraphFeatures.Delete)?Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.deleteItems({node:notSelected,edge:notSelected}),unSelectAllEntity())}):eo;case GraphCanvasEvent.Undo:return Object.assign(Object.assign({},eo),{data:undo(eo.data)});case GraphCanvasEvent.Redo:return Object.assign(Object.assign({},eo),{data:redo(eo.data)});case GraphCanvasEvent.KeyDown:{const ro=to.rawEvent.key.toLowerCase();if(eo.activeKeys.has(ro))return eo;const no=new Set(eo.activeKeys);return no.add(ro),Object.assign(Object.assign({},eo),{activeKeys:no})}case GraphCanvasEvent.KeyUp:{const ro=to.rawEvent.key.toLowerCase();if(!eo.activeKeys.has(ro))return eo;const no=new Set(eo.activeKeys);return no.delete(ro),Object.assign(Object.assign({},eo),{activeKeys:no})}case GraphCanvasEvent.SetData:return Object.assign(Object.assign({},eo),{data:resetUndoStack(to.data)});case GraphCanvasEvent.UpdateData:return Object.assign(Object.assign({},eo),{data:to.shouldRecord?pushHistory(eo.data,to.updater(eo.data.present)):Object.assign(Object.assign({},eo.data),{present:to.updater(eo.data.present)})});case GraphCanvasEvent.ResetUndoStack:return Object.assign(Object.assign({},eo),{data:resetUndoStack(eo.data.present)});case GraphCanvasEvent.UpdateSettings:{const ro=__rest(to,["type"]);return Object.assign(Object.assign({},eo),{settings:Object.assign(Object.assign({},eo.settings),ro)})}default:return eo}};function composeReducers(eo){return to=>eo.reduceRight((ro,no)=>no(ro),to)}const VisitPortHelper=eo=>{const{neighborPorts:to,data:ro}=eo,no=reactExports.useRef(null),[oo,io]=reactExports.useState(),so=reactExports.useCallback(uo=>{uo.key==="Escape"&&(uo.stopPropagation(),uo.preventDefault(),oo&&eo.onComplete(oo))},[oo,eo]),ao=reactExports.useCallback(()=>{},[]),lo=reactExports.useCallback(uo=>{const co=JSON.parse(uo.target.value);co.nodeId&&co.portId&&io({nodeId:co.nodeId,portId:co.portId})},[io]);return reactExports.useEffect(()=>{no.current&&no.current.focus({preventScroll:!0})},[]),jsxRuntimeExports.jsx("select",Object.assign({onKeyDown:so,onBlur:ao,ref:no,onChange:lo},{children:to.map(uo=>{const co=oo&&oo.portId===uo.portId&&oo.nodeId===uo.nodeId,fo=JSON.stringify(uo),po=ro.nodes.get(uo.nodeId);if(!po)return null;const ho=po.ports?po.ports.filter(vo=>vo.id===uo.portId)[0]:null;if(!ho)return null;const mo=`${po.ariaLabel||po.name||po.id}: ${ho.ariaLabel||ho.name||ho.id}`;return jsxRuntimeExports.jsx("option",Object.assign({value:fo,"aria-selected":co,"aria-label":mo},{children:mo}),`${uo.nodeId}-${uo.portId}`)})}))},item=(eo=void 0,to=void 0)=>({node:eo,port:to}),findDOMElement=(eo,{node:to,port:ro})=>{var no,oo;let io;if(to&&ro)io=getPortUid((no=eo.dataset.graphId)!==null&&no!==void 0?no:"",to,ro);else if(to)io=getNodeUid((oo=eo.dataset.graphId)!==null&&oo!==void 0?oo:"",to);else return null;return eo.getElementById(io)},focusItem=(eo,to,ro,no)=>{if(!eo.current)return;const oo=findDOMElement(eo.current,to);oo?(ro.preventDefault(),ro.stopPropagation(),oo.focus({preventScroll:!0}),no.trigger({type:GraphCanvasEvent.Navigate,node:to.node,port:to.port,rawEvent:ro})):!to.node&&!to.port&&no.trigger({type:GraphCanvasEvent.Navigate,node:to.node,port:to.port,rawEvent:ro})},getNextItem=(eo,to,ro)=>{if(to.ports){const io=(ro?to.ports.findIndex(so=>so.id===ro.id):-1)+1;if(io{if(ro&&to.ports){const oo=to.ports.findIndex(io=>io.id===ro.id)-1;return oo>=0?item(to,to.ports[oo]):item(to)}const no=to.prev&&eo.nodes.get(to.prev);return no?item(no,no.ports&&no.ports.length?no.ports[no.ports.length-1]:void 0):item()},nextConnectablePort=(eo,to)=>(ro,no,oo)=>{var io,so,ao;let lo=getNextItem(ro,no,oo);for(;!(((io=lo.node)===null||io===void 0?void 0:io.id)===no.id&&((so=lo.port)===null||so===void 0?void 0:so.id)===(oo==null?void 0:oo.id));){if(!lo.node)lo=item(ro.getNavigationFirstNode());else if(lo.port&&!((ao=eo.getPortConfig(lo.port))===null||ao===void 0)&&ao.getIsConnectable(Object.assign(Object.assign({},to),{data:ro,parentNode:lo.node,model:lo.port})))return lo;lo=getNextItem(ro,lo.node,lo.port)}return item()},focusNextPort=(eo,to,ro,no,oo,io)=>{const ao=(eo.findIndex(uo=>uo.id===ro)+1)%eo.length,lo=eo[ao];lo&&no.current&&focusItem(no,{node:to,port:lo},oo,io)},focusPrevPort=(eo,to,ro,no,oo,io)=>{const ao=(eo.findIndex(uo=>uo.id===ro)-1+eo.length)%eo.length,lo=eo[ao];lo&&no.current&&focusItem(no,{node:to,port:lo},oo,io)},getFocusNodeHandler=eo=>(to,ro,no,oo,io,so)=>{const ao=Array.from(to.nodes.values()).sort(eo),lo=ao.findIndex(co=>co.id===ro),uo=ao[(lo+1)%ao.length];uo&&no.current&&(oo.dispatch({type:GraphNodeEvent.Select,nodes:[uo.id]}),oo.dispatch({type:GraphNodeEvent.Centralize,nodes:[uo.id]}),focusItem(no,{node:uo,port:void 0},io,so))},focusLeftNode=getFocusNodeHandler((eo,to)=>eo.x*10+eo.y-to.x*10-to.y),focusRightNode=getFocusNodeHandler((eo,to)=>to.x*10+to.y-eo.x*10-eo.y),focusDownNode=getFocusNodeHandler((eo,to)=>eo.x+eo.y*10-to.x-to.y*10),focusUpNode=getFocusNodeHandler((eo,to)=>to.x+to.y*10-eo.x-eo.y*10),goToConnectedPort=(eo,to,ro,no,oo,io)=>{var so;const ao=getNeighborPorts(eo,to.id,ro.id);if(ao.length===1&&no.current){const lo=eo.nodes.get(ao[0].nodeId);if(!lo)return;const uo=(so=lo.ports)===null||so===void 0?void 0:so.find(co=>co.id===ao[0].portId);if(!uo)return;focusItem(no,{node:lo,port:uo},oo,io)}else if(ao.length>1&&no.current){const lo=fo=>{var po;if(reactDomExports.unmountComponentAtNode(uo),no.current){const vo=no.current.closest(".react-dag-editor-container");vo&&vo.removeChild(uo)}const ho=eo.nodes.get(fo.nodeId);if(!ho)return;const mo=(po=ho.ports)===null||po===void 0?void 0:po.find(vo=>vo.id===fo.portId);mo&&focusItem(no,{node:ho,port:mo},oo,io)},uo=document.createElement("div"),co=no.current.closest(".react-dag-editor-container");co&&co.appendChild(uo),uo.style.position="fixed",uo.style.top="0",reactDomExports.render(jsxRuntimeExports.jsx(VisitPortHelper,{neighborPorts:ao,onComplete:lo,data:eo}),uo)}};function defaultGetPortAriaLabel(eo,to,ro){return ro.ariaLabel}function defaultGetNodeAriaLabel(eo){return eo.ariaLabel}function attachPort(eo,to,ro){if(!eo.connectState)return eo;let no=eo.data.present;return no=no.updatePort(to,ro,updateStatus(add(GraphPortStatus.ConnectingAsTarget))),eo.connectState.targetNode&&eo.connectState.targetPort&&(no=no.updatePort(eo.connectState.targetNode,eo.connectState.targetPort,updateStatus(remove$1(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:to,targetPort:ro}),data:Object.assign(Object.assign({},eo.data),{present:no})})}function clearAttach(eo){if(!eo.connectState)return eo;let to=eo.data.present;const{targetPort:ro,targetNode:no}=eo.connectState;return no&&ro&&(to=to.updatePort(no,ro,updateStatus(remove$1(GraphPortStatus.ConnectingAsTarget)))),Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},eo.data),{present:to})})}const connectingReducer=(eo,to)=>{var ro,no,oo;if(!isViewportComplete(eo.viewport))return eo;const{rect:io}=eo.viewport;switch(to.type){case GraphEdgeEvent.ConnectStart:return Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},EMPTY_CONNECT_STATE),{sourceNode:to.nodeId,sourcePort:to.portId,movingPoint:to.clientPoint?{x:to.clientPoint.x-io.left,y:to.clientPoint.y-io.top}:void 0}),data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.nodeId,to.portId,updateStatus(add(GraphPortStatus.Connecting)))})});case GraphEdgeEvent.ConnectMove:return eo.connectState?Object.assign(Object.assign({},eo),{connectState:Object.assign(Object.assign({},eo.connectState),{movingPoint:{x:to.clientX-io.left,y:to.clientY-io.top}})}):eo;case GraphEdgeEvent.ConnectEnd:if(eo.connectState){const{edgeWillAdd:so,isCancel:ao}=to,{sourceNode:lo,sourcePort:uo,targetNode:co,targetPort:fo}=eo.connectState;let po=eo.data.present;if(po=po.updatePort(lo,uo,updateStatus(replace$1(GraphPortStatus.Default))),!ao&&co&&fo){let ho={source:lo,sourcePortId:uo,target:co,targetPortId:fo,id:v4(),status:GraphEdgeStatus.Default};return so&&(ho=so(ho,po)),po=po.insertEdge(ho).updatePort(co,fo,updateStatus(replace$1(GraphPortStatus.Default))),Object.assign(Object.assign({},eo),{connectState:void 0,data:pushHistory(eo.data,po,unSelectAllEntity())})}return Object.assign(Object.assign({},eo),{connectState:void 0,data:Object.assign(Object.assign({},eo.data),{present:po})})}return eo;case GraphEdgeEvent.ConnectNavigate:if(eo.connectState){const so=eo.data.present,ao=so.nodes.get(eo.connectState.sourceNode),lo=ao==null?void 0:ao.getPort(eo.connectState.sourcePort),uo=eo.connectState.targetNode?so.nodes.get(eo.connectState.targetNode):void 0,co=eo.connectState.targetPort?uo==null?void 0:uo.getPort(eo.connectState.targetPort):void 0;if(!ao||!lo)return eo;const fo=nextConnectablePort(eo.settings.graphConfig,{anotherNode:ao,anotherPort:lo})(so,uo||ao,co);return!fo.node||!fo.port||fo.node.id===ao.id&&fo.port.id===lo.id?eo:attachPort(eo,fo.node.id,fo.port.id)}return eo;case GraphPortEvent.PointerEnter:if(eo.connectState){const{sourceNode:so,sourcePort:ao}=eo.connectState,lo=eo.data.present,uo=lo.nodes.get(to.node.id),co=uo==null?void 0:uo.getPort(to.port.id),fo=lo.nodes.get(so),po=fo==null?void 0:fo.getPort(ao);if(uo&&co&&fo&&po&&isConnectable(eo.settings.graphConfig,{parentNode:uo,model:co,data:lo,anotherPort:po,anotherNode:fo}))return attachPort(eo,uo.id,co.id)}return eo;case GraphNodeEvent.PointerEnter:case GraphNodeEvent.PointerMove:if(eo.connectState){const{clientX:so,clientY:ao}=to.rawEvent,{sourceNode:lo,sourcePort:uo}=eo.connectState,co=eo.data.present,fo=co.nodes.get(to.node.id),po=co.nodes.get(lo),ho=po==null?void 0:po.getPort(uo);if(fo&&po&&ho){const mo=getNearestConnectablePort({parentNode:fo,clientX:so,clientY:ao,graphConfig:eo.settings.graphConfig,data:eo.data.present,viewport:eo.viewport,anotherPort:ho,anotherNode:po});return mo?attachPort(eo,fo.id,mo.id):eo}}return eo;case GraphNodeEvent.PointerLeave:return((ro=eo.connectState)===null||ro===void 0?void 0:ro.targetNode)===to.node.id?clearAttach(eo):eo;case GraphPortEvent.PointerLeave:return((no=eo.connectState)===null||no===void 0?void 0:no.targetNode)===to.node.id&&((oo=eo.connectState)===null||oo===void 0?void 0:oo.targetPort)===to.port.id?clearAttach(eo):eo;default:return eo}},contextMenuReducer=(eo,to)=>{let ro=eo.contextMenuPosition;switch(to.type){case GraphCanvasEvent.ContextMenu:case GraphNodeEvent.ContextMenu:case GraphEdgeEvent.ContextMenu:case GraphPortEvent.ContextMenu:{const no=to.rawEvent;no.button===MouseEventButton.Secondary&&(ro={x:no.clientX,y:no.clientY})}break;case GraphCanvasEvent.Click:case GraphNodeEvent.Click:case GraphEdgeEvent.Click:case GraphPortEvent.Click:ro=void 0;break;case GraphContextMenuEvent.Open:ro={x:to.x,y:to.y};break;case GraphContextMenuEvent.Close:ro=void 0;break}return eo.contextMenuPosition===ro?eo:Object.assign(Object.assign({},eo),{contextMenuPosition:ro})},edgeReducer=(eo,to)=>{switch(to.type){case GraphEdgeEvent.DoubleClick:return eo.settings.features.has(GraphFeatures.EditEdge)?Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(replace$1(GraphEdgeStatus.Editing)))})}):eo;case GraphEdgeEvent.MouseEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(add(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.MouseLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateEdge(to.edge.id,updateStatus(remove$1(GraphEdgeStatus.Activated)))})});case GraphEdgeEvent.Click:case GraphEdgeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updateEdge(to.edge.id,updateStatus(add(GraphEdgeStatus.Selected)))})});case GraphEdgeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,eo.data.present.insertEdge(to.edge))});default:return eo}},getAlignmentLines=(eo,to,ro,no=2)=>{const oo=getDummyDraggingNode(eo),io=getClosestNodes(oo,eo,to,ro,no);return getLines(oo,io,eo.length)},getAutoAlignDisplacement=(eo,to,ro,no)=>{let oo=1/0,io=0;const so=getDummyDraggingNode(to),ao=no==="x"?so.width||0:so.height||0;return eo.forEach(lo=>{let uo;if(no==="x"&&lo.x1===lo.x2)uo=lo.x1;else if(no==="y"&&lo.y1===lo.y2)uo=lo.y1;else return;const co=so[no]-uo,fo=so[no]+(ao||0)/2-uo,po=so[no]+(ao||0)-uo;Math.abs(co)0?-oo:oo),Math.abs(fo)0?-oo:oo),Math.abs(po)0?-oo:oo)}),io},getMinCoordinate=(eo,to)=>{if(eo.length)return Math.min(...eo.map(ro=>ro[to]))},getMaxCoordinate=(eo,to)=>{if(eo.length)return Math.max(...eo.map(ro=>ro[to]+(to==="y"?ro.height||0:ro.width||0)))},setSizeForNode=(eo,to)=>Object.assign(Object.assign({},eo),getNodeSize(eo,to)),getBoundingBoxOfNodes=eo=>{let to=1/0,ro=1/0,no=-1/0,oo=-1/0;return eo.forEach(io=>{const so=io.x,ao=io.y,lo=io.x+(io.width||0),uo=io.y+(io.height||0);sono&&(no=lo),uo>oo&&(oo=uo)}),{x:to,y:ro,width:no-to,height:oo-ro}},getDummyDraggingNode=eo=>{const{x:to,y:ro,width:no,height:oo}=getBoundingBoxOfNodes(eo);return{id:v4(),x:to,y:ro,width:no,height:oo}},getClosestNodes=(eo,to,ro,no,oo=2)=>{const io=[],so=[],{x:ao,y:lo,width:uo=0,height:co=0}=eo;let fo=oo,po=oo;return ro.forEach(ho=>{if(to.find(xo=>xo.id===ho.id))return;const mo=setSizeForNode(ho,no),{width:vo=0,height:bo=0}=mo;[ao,ao+uo/2,ao+uo].forEach((xo,_o)=>{io[_o]||(io[_o]={}),io[_o].closestNodes||(io[_o].closestNodes=[]),[mo.x,mo.x+vo/2,mo.x+vo].forEach(So=>{var Eo;const ko=Math.abs(xo-So);ko<=fo&&((Eo=io[_o].closestNodes)===null||Eo===void 0||Eo.push(mo),io[_o].alignCoordinateValue=So,fo=ko)})}),[lo,lo+co/2,lo+co].forEach((xo,_o)=>{so[_o]||(so[_o]={}),so[_o].closestNodes||(so[_o].closestNodes=[]),[mo.y,mo.y+bo/2,mo.y+bo].forEach(So=>{var Eo;const ko=Math.abs(xo-So);ko<=po&&((Eo=so[_o].closestNodes)===null||Eo===void 0||Eo.push(mo),so[_o].alignCoordinateValue=So,po=ko)})})}),{closestX:io,closestY:so}},getLines=(eo,to,ro=1)=>{const no=[],oo=[],io=to.closestX,so=to.closestY;return io.forEach((ao,lo)=>{var uo;if(ao.alignCoordinateValue===void 0||lo===1&&(no.length||ro>1))return;const co=[],fo=ao.alignCoordinateValue;(uo=ao.closestNodes)===null||uo===void 0||uo.forEach(mo=>{(mo.x===fo||mo.x+(mo.width||0)/2===fo||mo.x+(mo.width||0)===fo)&&co.push(mo)});const po=getMinCoordinate([eo,...co],"y"),ho=getMaxCoordinate([eo,...co],"y");po!==void 0&&ho!==void 0&&no.push({x1:fo,y1:po,x2:fo,y2:ho,visible:!0})}),so.forEach((ao,lo)=>{var uo;if(ao.alignCoordinateValue===void 0||lo===1&&(oo.length||ro>1))return;const co=[],fo=ao.alignCoordinateValue;(uo=ao.closestNodes)===null||uo===void 0||uo.forEach(mo=>{(mo.y===fo||mo.y+(mo.height||0)/2===fo||mo.y+(mo.height||0)===fo)&&co.push(mo)});const po=getMinCoordinate([eo,...co],"x"),ho=getMaxCoordinate([eo,...co],"x");po!==void 0&&ho!==void 0&&oo.push({x1:po,y1:fo,x2:ho,y2:fo,visible:!0})}),[...no,...oo]};function pipe(...eo){return eo.reduceRight((to,ro)=>no=>to(ro(no)),identical)}const getDelta=(eo,to,ro)=>roto?10:0;function getSelectedNodes(eo,to){const ro=[];return eo.nodes.forEach(no=>{isSelected(no)&&ro.push(Object.assign({id:no.id,x:no.x,y:no.y},getNodeSize(no,to)))}),ro}function dragNodeHandler(eo,to){if(!isViewportComplete(eo.viewport))return eo;const ro=ho=>Math.max(ho,getScaleLimit(so,eo.settings)),no=to.rawEvent,{rect:oo}=eo.viewport,io=Object.assign({},eo),so=eo.data.present,ao=getDelta(oo.left,oo.right,no.clientX),lo=getDelta(oo.top,oo.bottom,no.clientY),uo=ao!==0||lo!==0?.999:1,co=ao!==0||ao!==0?pipe(pan(-ao,-lo),zoom({scale:uo,anchor:getRelativePoint(oo,no),direction:Direction$1.XY,limitScale:ro}))(eo.viewport):eo.viewport,fo=getPointDeltaByClientDelta(to.dx+ao*uo,to.dy+lo*uo,co.transformMatrix),po=Object.assign(Object.assign({},eo.dummyNodes),{dx:eo.dummyNodes.dx+fo.x,dy:eo.dummyNodes.dy+fo.y,isVisible:to.isVisible});if(to.isAutoAlignEnable){const ho=getRenderedNodes(so.nodes,eo.viewport);if(ho.lengthObject.assign(Object.assign({},bo),{x:bo.x+po.dx,y:bo.y+po.dy})),vo=getAlignmentLines(mo,ho,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);if(vo.length){const bo=getAutoAlignDisplacement(vo,mo,eo.settings.graphConfig,"x"),xo=getAutoAlignDisplacement(vo,mo,eo.settings.graphConfig,"y");po.alignedDX=po.dx+bo,po.alignedDY=po.dy+xo}else po.alignedDX=void 0,po.alignedDY=void 0;io.alignmentLines=vo}else po.alignedDX=void 0,po.alignedDY=void 0}return io.dummyNodes=po,io.viewport=co,io}function handleDraggingNewNode(eo,to){if(!eo.settings.features.has(GraphFeatures.AutoAlign))return eo;const ro=eo.data.present,no=getRenderedNodes(ro.nodes,eo.viewport),oo=getAlignmentLines([to.node],no,eo.settings.graphConfig,eo.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},eo),{alignmentLines:oo})}function dragStart(eo,to){let ro=eo.data.present;const no=ro.nodes.get(to.node.id);if(!no)return eo;let oo;return to.isMultiSelect?(ro=ro.selectNodes(io=>io.id===to.node.id||isSelected(io)),oo=getSelectedNodes(ro,eo.settings.graphConfig)):isSelected(no)?oo=getSelectedNodes(ro,eo.settings.graphConfig):oo=[Object.assign({id:to.node.id,x:to.node.x,y:to.node.y},getNodeSize(to.node,eo.settings.graphConfig))],Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro}),dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!1,nodes:oo})})}function dragEnd(eo,to){let ro=eo.data.present;if(to.isDragCanceled)return Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes()});const{dx:no,dy:oo}=eo.dummyNodes;return ro=ro.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(io=>Object.assign(Object.assign({},io),{x:io.x+no,y:io.y+oo,width:void 0,height:void 0}))),Object.assign(Object.assign({},eo),{alignmentLines:[],dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,ro,unSelectAllEntity())})}function locateNode(eo,to){const ro=to.data.present;if(!isViewportComplete(to.viewport)||!eo.nodes.length)return to;if(eo.nodes.length===1){const ao=eo.nodes[0],lo=ro.nodes.get(ao);if(!lo)return to;const{width:uo,height:co}=getNodeSize(lo,to.settings.graphConfig),fo=eo.type===GraphNodeEvent.Centralize?lo.x+uo/2:lo.x,po=eo.type===GraphNodeEvent.Centralize?lo.y+co/2:lo.y,{x:ho,y:mo}=transformPoint(fo,po,to.viewport.transformMatrix),vo=eo.type===GraphNodeEvent.Locate?eo.position:void 0;return Object.assign(Object.assign({},to),{viewport:scrollIntoView$1(ho,mo,to.viewport.rect,!0,vo)(to.viewport)})}const{minNodeX:no,minNodeY:oo,maxNodeX:io,maxNodeY:so}=getContentArea$1(ro,to.settings.graphConfig,new Set(eo.nodes));return Object.assign(Object.assign({},to),{viewport:focusArea(no,oo,io,so,to.viewport)})}const nodeReducer=(eo,to)=>{const ro=eo.data.present;switch(to.type){case GraphNodeEvent.ResizingStart:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},emptyDummyNodes()),{isVisible:!0,nodes:getSelectedNodes(ro,eo.settings.graphConfig)})});case GraphNodeEvent.Resizing:return Object.assign(Object.assign({},eo),{dummyNodes:Object.assign(Object.assign({},eo.dummyNodes),{dx:to.dx,dy:to.dy,dWidth:to.dWidth,dHeight:to.dHeight})});case GraphNodeEvent.ResizingEnd:{const{dx:no,dy:oo,dWidth:io,dHeight:so}=eo.dummyNodes;return Object.assign(Object.assign({},eo),{dummyNodes:emptyDummyNodes(),data:pushHistory(eo.data,ro.updateNodesPositionAndSize(eo.dummyNodes.nodes.map(ao=>Object.assign(Object.assign({},ao),{x:ao.x+no,y:ao.y+oo,width:ao.width+io,height:ao.height+so}))),unSelectAllEntity())})}case GraphNodeEvent.DragStart:return dragStart(eo,to);case GraphNodeEvent.Drag:return dragNodeHandler(eo,to);case GraphNodeEvent.DragEnd:return dragEnd(eo,to);case GraphNodeEvent.PointerEnter:switch(eo.behavior){case GraphBehavior.Default:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro.updateNode(to.node.id,updateStatus(add(GraphNodeStatus.Activated)))})});default:return eo}case GraphNodeEvent.PointerLeave:switch(eo.behavior){case GraphBehavior.Default:case GraphBehavior.Connecting:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro.updateNode(to.node.id,updateStatus(remove$1(GraphNodeStatus.Activated)))})});default:return eo}case GraphCanvasEvent.DraggingNodeFromItemPanel:return handleDraggingNewNode(eo,to);case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:return to.node?Object.assign(Object.assign({},eo),{alignmentLines:[],data:pushHistory(eo.data,eo.data.present.insertNode(Object.assign(Object.assign({},to.node),{status:GraphNodeStatus.Selected})),unSelectAllEntity())}):Object.assign(Object.assign({},eo),{alignmentLines:[]});case GraphNodeEvent.Centralize:case GraphNodeEvent.Locate:return locateNode(to,eo);case GraphNodeEvent.Add:return Object.assign(Object.assign({},eo),{data:pushHistory(eo.data,ro.insertNode(to.node))});case GraphNodeEvent.DoubleClick:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updateNode(to.node.id,updateStatus(add(GraphNodeStatus.Editing)))})});default:return eo}},portReducer=(eo,to)=>{switch(to.type){case GraphPortEvent.Focus:case GraphPortEvent.PointerEnter:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(add(GraphPortStatus.Activated)))})});case GraphPortEvent.Blur:case GraphPortEvent.PointerLeave:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:eo.data.present.updatePort(to.node.id,to.port.id,updateStatus(remove$1(GraphPortStatus.Activated)))})});case GraphPortEvent.Click:case GraphPortEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(eo.data.present).updatePort(to.node.id,to.port.id,updateStatus(add(GraphPortStatus.Selected)))})});default:return eo}},selectNodeBySelectBox=(eo,to,ro,no)=>{if(!ro.width||!ro.height)return no;const oo=Math.min(ro.startX,ro.startX+ro.width),io=Math.max(ro.startX,ro.startX+ro.width),so=Math.min(ro.startY,ro.startY+ro.height),ao=Math.max(ro.startY,ro.startY+ro.height),lo=reverseTransformPoint(oo,so,to),uo=reverseTransformPoint(io,ao,to),co={minX:lo.x,minY:lo.y,maxX:uo.x,maxY:uo.y};return no.selectNodes(fo=>{const{width:po,height:ho}=getNodeSize(fo,eo),mo={minX:fo.x,minY:fo.y,maxX:fo.x+po,maxY:fo.y+ho};return checkRectIntersect(co,mo)})};function handleNavigate(eo,to){let ro=unSelectAllEntity()(eo.data.present);if(to.node&&to.port)ro=ro.updatePort(to.node.id,to.port.id,updateStatus(add(GraphPortStatus.Selected)));else if(to.node){const no=to.node.id;ro=ro.selectNodes(oo=>oo.id===no)}return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:ro})})}const selectionReducer=(eo,to)=>{var ro,no;const oo=eo.data.present,io=eo.settings.features.has(GraphFeatures.LassoSelect);switch(to.type){case GraphCanvasEvent.Click:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(oo)})});case GraphNodeEvent.Click:case GraphNodeEvent.ContextMenu:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:nodeSelection(to.rawEvent,to.node)(oo)})});case GraphCanvasEvent.SelectStart:{if(!isViewportComplete(eo.viewport))return eo;const so=getRelativePoint(eo.viewport.rect,to.rawEvent);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:unSelectAllEntity()(oo)}),selectBoxPosition:{startX:so.x,startY:io?0:so.y,width:0,height:0}})}case GraphCanvasEvent.SelectMove:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{selectBoxPosition:Object.assign(Object.assign({},eo.selectBoxPosition),{width:eo.selectBoxPosition.width+to.dx,height:io?(no=(ro=eo.viewport.rect)===null||ro===void 0?void 0:ro.height)!==null&&no!==void 0?no:eo.selectBoxPosition.height:eo.selectBoxPosition.height+to.dy})});case GraphCanvasEvent.SelectEnd:return Object.assign(Object.assign({},eo),{selectBoxPosition:emptySelectBoxPosition(),data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,oo)})});case GraphCanvasEvent.UpdateNodeSelectionBySelectBox:return eo.behavior!==GraphBehavior.MultiSelect?eo:Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:selectNodeBySelectBox(eo.settings.graphConfig,eo.viewport.transformMatrix,eo.selectBoxPosition,oo)})});case GraphCanvasEvent.Navigate:return handleNavigate(eo,to);case GraphNodeEvent.SelectAll:return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:oo.selectNodes(()=>!0)})});case GraphNodeEvent.Select:{const so=new Set(to.nodes);return Object.assign(Object.assign({},eo),{data:Object.assign(Object.assign({},eo.data),{present:oo.selectNodes(ao=>so.has(ao.id))})})}default:return eo}};function getRectCenter(eo){return{x:eo.width/2,y:eo.height/2}}function resetViewport(eo,to,ro,no){if(!isViewportComplete(eo))return eo;if(!no.ensureNodeVisible)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const{nodes:oo,groups:io}=to;if(oo.size===0)return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const so=ho=>isRectVisible(ho,eo),ao=oo.map(ho=>getNodeRect(ho,ro));if(ao.find(so))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});const uo=io.map(ho=>getGroupRect(ho,oo,ro));if(uo.find(so))return Object.assign(Object.assign({},eo),{transformMatrix:EMPTY_TRANSFORM_MATRIX});let fo=ao.first();const po=ho=>{fo.y>ho.y&&(fo=ho)};return ao.forEach(po),uo.forEach(po),Object.assign(Object.assign({},eo),{transformMatrix:[1,0,0,1,-fo.x,-fo.y]})}function zoomToFit(eo,to,ro,no){if(!isViewportComplete(eo))return eo;const{graphConfig:oo,nodeMaxVisibleSize:io,nodeMinVisibleSize:so}=ro,ao=getZoomFitMatrix(Object.assign(Object.assign({},no),{data:to,graphConfig:oo,rect:eo.rect,nodeMaxVisibleSize:io,nodeMinVisibleSize:so}));return Object.assign(Object.assign({},eo),{transformMatrix:ao})}const reducer=(eo,to,ro,no)=>{var oo,io,so,ao;const{graphConfig:lo,canvasBoundaryPadding:uo,features:co}=no,fo=po=>Math.max(po,getScaleLimit(ro,no));switch(to.type){case GraphCanvasEvent.ViewportResize:return Object.assign(Object.assign({},eo),{rect:to.viewportRect});case GraphCanvasEvent.Zoom:return isViewportComplete(eo)?zoom({scale:to.scale,anchor:(oo=to.anchor)!==null&&oo!==void 0?oo:getRectCenter(eo.rect),direction:to.direction,limitScale:fo})(eo):eo;case GraphScrollBarEvent.Scroll:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Pan:case GraphCanvasEvent.Drag:{if(!isViewportComplete(eo))return eo;const{transformMatrix:po,rect:ho}=eo;let{dx:mo,dy:vo}=to;const bo=co.has(GraphFeatures.LimitBoundary),xo=(so=(io=ro.groups)===null||io===void 0?void 0:io[0])===null||so===void 0?void 0:so.padding;if(bo){const{minX:_o,maxX:So,minY:Eo,maxY:ko}=getOffsetLimit({data:ro,graphConfig:lo,rect:ho,transformMatrix:po,canvasBoundaryPadding:uo,groupPadding:xo});mo=clamp$1(_o-po[4],So-po[4],mo),vo=clamp$1(Eo-po[5],ko-po[5],vo)}return pan(mo,vo)(eo)}case GraphCanvasEvent.Pinch:{const{dx:po,dy:ho,scale:mo,anchor:vo}=to;return pipe(pan(po,ho),zoom({scale:mo,anchor:vo,limitScale:fo}))(eo)}case GraphMinimapEvent.Pan:return minimapPan(to.dx,to.dy)(eo);case GraphCanvasEvent.ResetViewport:return resetViewport(eo,ro,lo,to);case GraphCanvasEvent.ZoomTo:return isViewportComplete(eo)?zoomTo({scale:to.scale,anchor:(ao=to.anchor)!==null&&ao!==void 0?ao:getRectCenter(eo.rect),direction:to.direction,limitScale:fo})(eo):eo;case GraphCanvasEvent.ZoomToFit:return zoomToFit(eo,ro,no,to);case GraphCanvasEvent.ScrollIntoView:if(eo.rect){const{x:po,y:ho}=transformPoint(to.x,to.y,eo.transformMatrix);return scrollIntoView$1(po,ho,eo.rect,!0)(eo)}return eo;default:return eo}},viewportReducer=(eo,to)=>{const ro=reducer(eo.viewport,to,eo.data.present,eo.settings);return ro===eo.viewport?eo:Object.assign(Object.assign({},eo),{viewport:ro})},builtinReducer=composeReducers([behaviorReducer,viewportReducer,nodeReducer,portReducer,edgeReducer,canvasReducer,connectingReducer,selectionReducer,contextMenuReducer].map(eo=>to=>(ro,no)=>to(eo(ro,no),no)));function getGraphReducer(eo=void 0,to=identical){return(eo?composeReducers([eo,builtinReducer]):builtinReducer)(to)}function useGraphReducer(eo,to){const ro=reactExports.useMemo(()=>getGraphReducer(to),[to]),[no,oo]=reactExports.useReducer(ro,eo,createGraphState),io=useConst(()=>[]),so=reactExports.useRef(no),ao=reactExports.useCallback((lo,uo)=>{uo&&io.push(uo),oo(lo)},[io]);return reactExports.useEffect(()=>{const lo=so.current;lo!==no&&(so.current=no,reactDomExports.unstable_batchedUpdates(()=>{io.forEach(uo=>{try{uo(no,lo)}catch(co){console.error(co)}}),io.length=0}))},[no]),[no,ao]}class MouseMoveEventProvider{constructor(to){this.target=to}off(to,ro){switch(to){case"move":this.target.removeEventListener("mousemove",ro);break;case"end":this.target.removeEventListener("mouseup",ro);break}return this}on(to,ro){switch(to){case"move":this.target.addEventListener("mousemove",ro);break;case"end":this.target.addEventListener("mouseup",ro);break}return this}}const useGetMouseDownOnAnchor=(eo,to)=>{const ro=useGraphController();return reactExports.useCallback(no=>oo=>{oo.preventDefault(),oo.stopPropagation(),to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:oo,node:eo});const io=new DragController(new MouseMoveEventProvider(ro.getGlobalEventTarget()),defaultGetPositionFromEvent);io.onMove=({totalDX:so,totalDY:ao,e:lo})=>{to.trigger(Object.assign({type:GraphNodeEvent.Resizing,rawEvent:lo,node:eo,dx:0,dy:0,dWidth:0,dHeight:0},no(so,ao)))},io.onEnd=({e:so})=>{to.trigger({type:GraphNodeEvent.ResizingEnd,rawEvent:so,node:eo})},to.trigger({type:GraphNodeEvent.ResizingStart,rawEvent:oo,node:eo}),io.start(oo.nativeEvent)},[to,ro,eo])};class PointerEventProvider{constructor(to,ro=null){this.eventEmitter=new eventemitter3Exports.EventEmitter,this.onMove=no=>{(this.pointerId===null||this.pointerId===no.pointerId)&&this.eventEmitter.emit("move",no)},this.onUp=no=>{(this.pointerId===null||this.pointerId===no.pointerId)&&this.eventEmitter.emit("end",no)},this.target=to,this.pointerId=ro}off(to,ro){return this.eventEmitter.off(to,ro),this.ensureRemoveListener(to),this}on(to,ro){return this.ensureAddListener(to),this.eventEmitter.on(to,ro),this}ensureAddListener(to){if(!this.eventEmitter.listeners(to).length)switch(to){case"move":this.target.addEventListener("pointermove",this.onMove);break;case"end":this.target.addEventListener("pointerup",this.onUp);break}}ensureRemoveListener(to){if(!this.eventEmitter.listeners(to).length)switch(to){case"move":this.target.removeEventListener("pointermove",this.onMove);break;case"end":this.target.removeEventListener("pointerup",this.onUp);break}}}const withSimulatedClick=(eo,to)=>({totalDX:ro,totalDY:no,e:oo})=>{var io;const{eventChannel:so,dragThreshold:ao,containerRef:lo}=eo,uo=[];uo.push({type:to,rawEvent:oo}),oo.target instanceof Node&&(!((io=lo.current)===null||io===void 0)&&io.contains(oo.target))&&isWithinThreshold(ro,no,ao)&&uo.push({type:GraphCanvasEvent.Click,rawEvent:oo}),so.batch(uo)},dragMultiSelect=(eo,to)=>{const{getPositionFromEvent:ro,graphController:no,eventChannel:oo}=to,io=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),ro);io.onMove=({dx:so,dy:ao,e:lo})=>{oo.trigger({type:GraphCanvasEvent.SelectMove,rawEvent:lo,dx:so,dy:ao})},io.onEnd=withSimulatedClick(to,GraphCanvasEvent.SelectEnd),oo.trigger({type:GraphCanvasEvent.SelectStart,rawEvent:eo}),io.start(eo)},dragPan=(eo,to)=>{const{getPositionFromEvent:ro,graphController:no,eventChannel:oo}=to,io=new DragController(new MouseMoveEventProvider(no.getGlobalEventTarget()),ro);io.onMove=({dx:so,dy:ao,e:lo})=>{oo.trigger({type:GraphCanvasEvent.Drag,rawEvent:lo,dx:so,dy:ao})},io.onEnd=withSimulatedClick(to,GraphCanvasEvent.DragEnd),io.start(eo),oo.trigger({type:GraphCanvasEvent.DragStart,rawEvent:eo})},onContainerMouseDown=(eo,to)=>{var ro;if(eo.preventDefault(),eo.stopPropagation(),eo.button!==MouseEventButton.Primary)return;const{canvasMouseMode:no,isPanDisabled:oo,isMultiSelectDisabled:io,state:so,isLassoSelectEnable:ao,graphController:lo}=to,uo=no===CanvasMouseMode.Pan&&!eo.ctrlKey&&!eo.shiftKey&&!eo.metaKey||((ro=so.activeKeys)===null||ro===void 0?void 0:ro.has(" "));!oo&&uo?dragPan(eo.nativeEvent,to):!io||ao&&!eo.ctrlKey&&!eo.metaKey?dragMultiSelect(eo.nativeEvent,to):lo.canvasClickOnce=!0};function isMouseButNotLeft(eo){return eo.pointerType==="mouse"&&eo.button!==MouseEventButton.Primary}const onNodePointerDown=(eo,to,ro)=>{eo.preventDefault();const{svgRef:no,isNodesDraggable:oo,getPositionFromEvent:io,isClickNodeToSelectDisabled:so,eventChannel:ao,dragThreshold:lo,rectRef:uo,isAutoAlignEnable:co,autoAlignThreshold:fo,graphController:po}=ro;oo&&eo.stopPropagation();const ho=isMouseButNotLeft(eo);if(so||ho)return;no.current&&no.current.focus({preventScroll:!0});const mo=checkIsMultiSelect(eo),vo=new DragNodeController(new PointerEventProvider(po.getGlobalEventTarget(),eo.pointerId),io,uo);vo.onMove=({dx:bo,dy:xo,totalDX:_o,totalDY:So,e:Eo})=>{oo&&ao.trigger({type:GraphNodeEvent.Drag,node:to,dx:bo,dy:xo,rawEvent:Eo,isVisible:!isWithinThreshold(_o,So,lo),isAutoAlignEnable:co,autoAlignThreshold:fo})},vo.onEnd=({totalDX:bo,totalDY:xo,e:_o})=>{var So,Eo;po.pointerId=null;const ko=isWithinThreshold(bo,xo,lo);if((ko||!oo)&&(po.nodeClickOnce=to),ao.trigger({type:GraphNodeEvent.DragEnd,node:to,rawEvent:_o,isDragCanceled:ko}),ko){const wo=new MouseEvent("click",_o);(Eo=(So=eo.currentTarget)!==null&&So!==void 0?So:eo.target)===null||Eo===void 0||Eo.dispatchEvent(wo)}},po.pointerId=eo.pointerId,eo.target instanceof Element&&eo.pointerType!=="mouse"&&eo.target.releasePointerCapture(eo.pointerId),ao.trigger({type:GraphNodeEvent.DragStart,node:to,rawEvent:eo,isMultiSelect:mo}),vo.start(eo.nativeEvent)},useCanvasKeyboardEventHandlers=eo=>{const{featureControl:to,graphConfig:ro,setCurHoverNode:no,setCurHoverPort:oo,eventChannel:io}=eo,{isDeleteDisabled:so,isPasteDisabled:ao,isUndoEnabled:lo}=to;return reactExports.useMemo(()=>{const uo=new Map,co=()=>Eo=>{Eo.preventDefault(),Eo.stopPropagation(),!so&&(io.trigger({type:GraphCanvasEvent.Delete}),no(void 0),oo(void 0))};uo.set("delete",co()),uo.set("backspace",co());const fo=Eo=>{metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphCanvasEvent.Copy}))};uo.set("c",fo);const po=Eo=>{if(metaControl(Eo)){if(Eo.preventDefault(),Eo.stopPropagation(),ao)return;const ko=ro.getClipboard().read();ko&&io.trigger({type:GraphCanvasEvent.Paste,data:ko})}};uo.set("v",po);const ho=Eo=>{lo&&metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphCanvasEvent.Undo}))};lo&&uo.set("z",ho);const mo=Eo=>{lo&&metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphCanvasEvent.Redo}))};lo&&uo.set("y",mo);const vo=Eo=>{metaControl(Eo)&&(Eo.preventDefault(),Eo.stopPropagation(),io.trigger({type:GraphNodeEvent.SelectAll}))};uo.set("a",vo);const bo=Eo=>{Eo.preventDefault(),Eo.stopPropagation()},xo=Eo=>{Eo.preventDefault(),Eo.stopPropagation()},_o=Eo=>{Eo.preventDefault(),Eo.stopPropagation()},So=Eo=>{Eo.preventDefault(),Eo.stopPropagation()};return uo.set(" ",bo),uo.set("control",xo),uo.set("meta",_o),uo.set("shift",So),Eo=>{if(Eo.repeat)return;const ko=Eo.key.toLowerCase(),wo=uo.get(ko);wo&&wo.call(null,Eo)}},[io,ro,so,ao,lo,no,oo])};let prevMouseDownPortId,prevMouseDownPortTime;function useEventChannel({props:eo,dispatch:to,rectRef:ro,svgRef:no,containerRef:oo,featureControl:io,graphConfig:so,setFocusedWithoutMouse:ao,setCurHoverNode:lo,setCurHoverPort:uo,eventChannel:co,updateViewport:fo,graphController:po}){const{dragThreshold:ho=10,autoAlignThreshold:mo=DEFAULT_AUTO_ALIGN_THRESHOLD,getPositionFromEvent:vo=defaultGetPositionFromEvent,canvasMouseMode:bo,edgeWillAdd:xo}=eo,{isNodesDraggable:_o,isAutoAlignEnable:So,isClickNodeToSelectDisabled:Eo,isPanDisabled:ko,isMultiSelectDisabled:wo,isLassoSelectEnable:Co,isConnectDisabled:Ro,isPortHoverViewEnable:Ao,isNodeEditDisabled:Io,isA11yEnable:$o}=io,Bo=reactExports.useMemo(()=>animationFramed(to),[to]),Mo=useCanvasKeyboardEventHandlers({featureControl:io,eventChannel:co,graphConfig:so,setCurHoverNode:lo,setCurHoverPort:uo}),Ho=Jo=>{const Cs=po.getData();if(Cs.nodes.size>0&&no.current){const Bs=Cs.head&&Cs.nodes.get(Cs.head);Bs&&focusItem(no,{node:Bs,port:void 0},Jo,co)}},jo=Jo=>{switch(Jo.type){case GraphEdgeEvent.ConnectStart:case GraphEdgeEvent.ConnectMove:case GraphEdgeEvent.ConnectEnd:case GraphEdgeEvent.ConnectNavigate:case GraphEdgeEvent.Click:case GraphEdgeEvent.MouseEnter:case GraphEdgeEvent.MouseLeave:case GraphEdgeEvent.DoubleClick:to(Jo);break;case GraphEdgeEvent.ContextMenu:Jo.rawEvent.stopPropagation(),Jo.rawEvent.preventDefault(),to(Jo);break}},Oo=Jo=>{var Cs,Bs;switch(Jo.type){case GraphCanvasEvent.ViewportResize:case GraphCanvasEvent.Drag:case GraphCanvasEvent.MouseWheelScroll:case GraphCanvasEvent.Zoom:case GraphCanvasEvent.Pinch:case GraphCanvasEvent.Click:case GraphCanvasEvent.SelectStart:case GraphCanvasEvent.SelectMove:case GraphCanvasEvent.SelectEnd:case GraphCanvasEvent.ResetSelection:case GraphCanvasEvent.Navigate:case GraphCanvasEvent.Paste:case GraphCanvasEvent.Undo:case GraphCanvasEvent.Redo:case GraphCanvasEvent.Delete:case GraphCanvasEvent.KeyUp:case GraphCanvasEvent.DraggingNodeFromItemPanelStart:case GraphCanvasEvent.DraggingNodeFromItemPanel:case GraphCanvasEvent.DraggingNodeFromItemPanelEnd:to(Jo);break;case GraphCanvasEvent.Copy:{const zs=filterSelectedItems(po.getData());so.getClipboard().write(zs)}break;case GraphCanvasEvent.KeyDown:!Jo.rawEvent.repeat&&Jo.rawEvent.target===Jo.rawEvent.currentTarget&&!Jo.rawEvent.shiftKey&&Jo.rawEvent.key==="Tab"?(Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),ao(!0),Ho(Jo.rawEvent)):Mo(Jo.rawEvent),to(Jo);break;case GraphCanvasEvent.MouseDown:{po.nodeClickOnce=null,(Cs=no.current)===null||Cs===void 0||Cs.focus({preventScroll:!0}),ao(!1);const zs=Jo.rawEvent;fo(),onContainerMouseDown(zs,{state:po.state,canvasMouseMode:bo,isPanDisabled:ko,isMultiSelectDisabled:wo,isLassoSelectEnable:Co,dragThreshold:ho,containerRef:oo,getPositionFromEvent:defaultGetPositionFromEvent,eventChannel:co,graphController:po})}break;case GraphCanvasEvent.MouseUp:if(po.canvasClickOnce){po.canvasClickOnce=!1;const zs=Jo.rawEvent;zs.target instanceof Node&&(!((Bs=no.current)===null||Bs===void 0)&&Bs.contains(zs.target))&&zs.target.nodeName==="svg"&&co.trigger({type:GraphCanvasEvent.Click,rawEvent:Jo.rawEvent})}break;case GraphCanvasEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphCanvasEvent.MouseMove:{const zs=Jo.rawEvent;po.setMouseClientPosition({x:zs.clientX,y:zs.clientY})}break;case GraphCanvasEvent.MouseLeave:po.unsetMouseClientPosition(),po.canvasClickOnce=!1;break;case GraphCanvasEvent.Blur:ao(!1);break}},Fo=Jo=>{const{node:Cs}=Jo,{isNodeHoverViewEnabled:Bs}=io;switch(po.getBehavior()){case GraphBehavior.Connecting:case GraphBehavior.Default:Bs&&(lo(Cs.id),uo(void 0));break}to(Jo)},Go=Jo=>{to(Jo),lo(void 0)},qo=Jo=>{Io||(Jo.rawEvent.stopPropagation(),to(Jo))},Xo=Jo=>{if(!no||!$o)return;const Cs=po.getData(),{node:Bs}=Jo,zs=Jo.rawEvent;switch(zs.key){case"Tab":{zs.preventDefault(),zs.stopPropagation();const Ls=zs.shiftKey?getPrevItem(Cs,Bs):getNextItem(Cs,Bs);focusItem(no,Ls,zs,co)}break;case"ArrowUp":zs.preventDefault(),zs.stopPropagation(),focusUpNode(Cs,Bs.id,no,po,zs,co);break;case"ArrowDown":zs.preventDefault(),zs.stopPropagation(),focusDownNode(Cs,Bs.id,no,po,zs,co);break;case"ArrowLeft":zs.preventDefault(),zs.stopPropagation(),focusLeftNode(Cs,Bs.id,no,po,zs,co);break;case"ArrowRight":zs.preventDefault(),zs.stopPropagation(),focusRightNode(Cs,Bs.id,no,po,zs,co);break}},Zo=Jo=>{var Cs;switch(Jo.type){case GraphNodeEvent.ResizingStart:case GraphNodeEvent.Resizing:case GraphNodeEvent.ResizingEnd:case GraphNodeEvent.DragStart:case GraphNodeEvent.Drag:case GraphNodeEvent.DragEnd:case GraphNodeEvent.SelectAll:to(Jo);break;case GraphNodeEvent.PointerMove:Jo.rawEvent.pointerId===po.pointerId&&Bo(Jo);break;case GraphNodeEvent.PointerDown:{if(po.nodeClickOnce=null,po.getBehavior()!==GraphBehavior.Default)return;const Bs=Jo.rawEvent;fo(),onNodePointerDown(Bs,Jo.node,{svgRef:no,rectRef:ro,isNodesDraggable:_o,isAutoAlignEnable:So,dragThreshold:ho,getPositionFromEvent:vo,isClickNodeToSelectDisabled:Eo,autoAlignThreshold:mo,eventChannel:co,graphController:po})}break;case GraphNodeEvent.PointerEnter:Fo(Jo);break;case GraphNodeEvent.PointerLeave:Go(Jo);break;case GraphNodeEvent.MouseDown:po.nodeClickOnce=null,Jo.rawEvent.preventDefault(),_o&&Jo.rawEvent.stopPropagation(),ao(!1);break;case GraphNodeEvent.Click:if(((Cs=po.nodeClickOnce)===null||Cs===void 0?void 0:Cs.id)===Jo.node.id){const{currentTarget:Bs}=Jo.rawEvent;Bs instanceof SVGElement&&Bs.focus({preventScroll:!0}),Jo.node=po.nodeClickOnce,to(Jo),po.nodeClickOnce=null}else Jo.intercepted=!0;break;case GraphNodeEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphNodeEvent.DoubleClick:qo(Jo);break;case GraphNodeEvent.KeyDown:Xo(Jo);break}},Qo=reactExports.useCallback(Jo=>{const Cs=Jo.rawEvent,{node:Bs,port:zs}=Jo;if(ao(!1),Cs.stopPropagation(),Cs.preventDefault(),prevMouseDownPortId=`${Bs.id}:${zs.id}`,prevMouseDownPortTime=performance.now(),Ro||isMouseButNotLeft(Cs))return;fo();const Ls=po.getGlobalEventTarget(),ga=new DragController(new PointerEventProvider(Ls,Cs.pointerId),vo);ga.onMove=({clientX:Js,clientY:Zs,e:$a})=>{co.trigger({type:GraphEdgeEvent.ConnectMove,rawEvent:$a,clientX:Js,clientY:Zs})},ga.onEnd=({e:Js,totalDY:Zs,totalDX:$a})=>{var Ll,Kl;const Zl=isWithinThreshold($a,Zs,ho);if(co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Js,edgeWillAdd:xo,isCancel:Zl}),po.pointerId=null,Zl){const $l=new MouseEvent("click",Js);(Kl=(Ll=Cs.currentTarget)!==null&&Ll!==void 0?Ll:Cs.target)===null||Kl===void 0||Kl.dispatchEvent($l)}},co.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:Bs.id,portId:zs.id,rawEvent:Cs,clientPoint:{x:Cs.clientX,y:Cs.clientY}}),Cs.target instanceof Element&&Cs.pointerType!=="mouse"&&Cs.target.releasePointerCapture(Cs.pointerId),po.pointerId=Cs.pointerId,ga.start(Cs.nativeEvent)},[xo,co,vo,po,Ro,ao,fo]),xs=reactExports.useCallback(Jo=>{const Cs=Jo.rawEvent,{node:Bs,port:zs}=Jo;prevMouseDownPortId===`${Bs.id}:${zs.id}`&&performance.now()-(prevMouseDownPortTime||0)<500&&(prevMouseDownPortId=void 0,prevMouseDownPortTime=void 0,co.trigger({type:GraphPortEvent.Click,node:Bs,port:zs,rawEvent:Cs}))},[co]),Ts=Jo=>{switch(po.getBehavior()){case GraphBehavior.Default:uo([Jo.node.id,Jo.port.id]);break}Ao&&uo([Jo.node.id,Jo.port.id]),Jo.rawEvent.pointerId===po.pointerId&&to(Jo)},Rs=Jo=>{uo(void 0),to(Jo)},Os=Jo=>{var Cs,Bs,zs;if(!$o)return;const Ls=Jo.rawEvent;if(Ls.altKey&&(Ls.nativeEvent.code==="KeyC"||Ls.key==="c")){Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectStart,nodeId:Jo.node.id,portId:Jo.port.id,rawEvent:Ls});return}const ga=po.getData(),{node:Js,port:Zs}=Jo;switch(Ls.key){case"Tab":if($o&&po.getBehavior()===GraphBehavior.Connecting)Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectNavigate,rawEvent:Ls});else{const $a=Ls.shiftKey?getPrevItem(ga,Js,Zs):getNextItem(ga,Js,Zs);focusItem(no,$a,Ls,co)}break;case"ArrowUp":case"ArrowLeft":Ls.preventDefault(),Ls.stopPropagation(),focusPrevPort((Cs=Js.ports)!==null&&Cs!==void 0?Cs:[],Js,Zs.id,no,Ls,co);break;case"ArrowDown":case"ArrowRight":Ls.preventDefault(),Ls.stopPropagation(),focusNextPort((Bs=Js.ports)!==null&&Bs!==void 0?Bs:[],Js,Zs.id,no,Ls,co);break;case"g":Ls.preventDefault(),Ls.stopPropagation(),goToConnectedPort(ga,Js,Zs,no,Ls,co);break;case"Escape":po.getBehavior()===GraphBehavior.Connecting&&(Ls.preventDefault(),Ls.stopPropagation(),no.current&&((zs=findDOMElement(no.current,{node:Js,port:Zs}))===null||zs===void 0||zs.blur()));break;case"Enter":Ls.preventDefault(),Ls.stopPropagation(),co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Ls.nativeEvent,edgeWillAdd:xo,isCancel:!1});break}},As=Jo=>{switch(Jo.type){case GraphPortEvent.Click:to(Jo);break;case GraphPortEvent.PointerDown:Qo(Jo);break;case GraphPortEvent.PointerUp:xs(Jo);break;case GraphPortEvent.PointerEnter:Ts(Jo);break;case GraphPortEvent.PointerLeave:Rs(Jo);break;case GraphPortEvent.ContextMenu:Jo.rawEvent.preventDefault(),Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphPortEvent.Focus:Jo.rawEvent.stopPropagation(),to(Jo);break;case GraphPortEvent.Blur:po.getBehavior()===GraphBehavior.Connecting&&co.trigger({type:GraphEdgeEvent.ConnectEnd,rawEvent:Jo.rawEvent.nativeEvent,edgeWillAdd:xo,isCancel:!0});break;case GraphPortEvent.KeyDown:Os(Jo);break}},Ds=Jo=>{const Cs=handleBehaviorChange(po.getBehavior(),Jo);switch(po.setBehavior(Cs),jo(Jo),Oo(Jo),Zo(Jo),As(Jo),Jo.type){case GraphMinimapEvent.Pan:case GraphScrollBarEvent.Scroll:case GraphContextMenuEvent.Open:case GraphContextMenuEvent.Close:to(Jo);break}};reactExports.useImperativeHandle(co.listenersRef,()=>Ds),reactExports.useImperativeHandle(co.externalHandlerRef,()=>eo.onEvent)}const useFeatureControl=eo=>reactExports.useMemo(()=>{const to=eo.has(GraphFeatures.NodeDraggable),ro=eo.has(GraphFeatures.NodeResizable),no=!eo.has(GraphFeatures.AutoFit),oo=!eo.has(GraphFeatures.PanCanvas),io=!eo.has(GraphFeatures.MultipleSelect),so=eo.has(GraphFeatures.LassoSelect),ao=eo.has(GraphFeatures.NodeHoverView),lo=!eo.has(GraphFeatures.ClickNodeToSelect),uo=!eo.has(GraphFeatures.AddNewEdges),co=eo.has(GraphFeatures.PortHoverView),fo=!eo.has(GraphFeatures.EditNode),po=!eo.has(GraphFeatures.CanvasVerticalScrollable),ho=!eo.has(GraphFeatures.CanvasHorizontalScrollable),mo=eo.has(GraphFeatures.A11yFeatures),vo=eo.has(GraphFeatures.AutoAlign),bo=eo.has(GraphFeatures.CtrlKeyZoom),xo=eo.has(GraphFeatures.LimitBoundary),_o=!eo.has(GraphFeatures.AutoFit),So=eo.has(GraphFeatures.EditEdge),Eo=!eo.has(GraphFeatures.Delete),ko=!eo.has(GraphFeatures.AddNewNodes)||!eo.has(GraphFeatures.AddNewEdges),wo=eo.has(GraphFeatures.UndoStack),Co=(!po||!ho||!oo)&&xo&&!eo.has(GraphFeatures.InvisibleScrollbar);return{isNodesDraggable:to,isNodeResizable:ro,isAutoFitDisabled:no,isPanDisabled:oo,isMultiSelectDisabled:io,isLassoSelectEnable:so,isNodeHoverViewEnabled:ao,isClickNodeToSelectDisabled:lo,isConnectDisabled:uo,isPortHoverViewEnable:co,isNodeEditDisabled:fo,isVerticalScrollDisabled:po,isHorizontalScrollDisabled:ho,isA11yEnable:mo,isAutoAlignEnable:vo,isCtrlKeyZoomEnable:bo,isLimitBoundary:xo,isVirtualizationEnabled:_o,isEdgeEditable:So,isDeleteDisabled:Eo,isPasteDisabled:ko,isUndoEnabled:wo,isScrollbarVisible:Co}},[eo]),emptyLine=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),Line=eo=>{var to;const{line:ro,style:no}=eo,oo=Object.assign(Object.assign({strokeWidth:1},no),{stroke:ro.visible?(to=no==null?void 0:no.stroke)!==null&&to!==void 0?to:"#ea4300":"none"});return jsxRuntimeExports.jsx("line",{className:"auto-align-hint",x1:ro.x1,y1:ro.y1,x2:ro.x2,y2:ro.y2,style:oo})},AlignmentLines=reactExports.memo(({style:eo})=>{const to=useAlignmentLines();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:to.map((ro,no)=>ro.visible?jsxRuntimeExports.jsx(Line,{line:ro,style:eo},no):null)})});AlignmentLines.displayName="AlignmentLines";const NodeFrame=eo=>{var to,ro;const no=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(ro=(to=no.renderNodeFrame)===null||to===void 0?void 0:to.call(no,eo))!==null&&ro!==void 0?ro:eo.children})},NodeResizeHandler=eo=>{var to,ro;const no=reactExports.useContext(SlotsContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(ro=(to=no.renderNodeResizeHandler)===null||to===void 0?void 0:to.call(no,eo))!==null&&ro!==void 0?ro:eo.children})},Slots={NodeFrame,NodeResizeHandler},AnimatingNodeGroup=eo=>{var to,ro;const{dummyNodes:no,graphData:oo}=eo,io=useGraphConfig(),{dWidth:so,dHeight:ao}=no,lo=(to=no.alignedDX)!==null&&to!==void 0?to:no.dx,uo=(ro=no.alignedDY)!==null&&ro!==void 0?ro:no.dy;return jsxRuntimeExports.jsx("g",{children:no.nodes.map(co=>{const fo=oo.nodes.get(co.id);if(!fo)return null;const po=co.x+lo,ho=co.y+uo,mo=co.width+so,vo=co.height+ao,bo=getNodeConfig(fo,io);return bo!=null&&bo.renderDummy?bo.renderDummy(Object.assign(Object.assign({},fo.inner),{x:po,y:ho,width:mo,height:vo})):jsxRuntimeExports.jsx(Slots.NodeFrame,Object.assign({height:vo,width:mo,x:po,y:ho},{children:jsxRuntimeExports.jsx("rect",{transform:`translate(${po},${ho})`,height:vo,width:mo,stroke:defaultColors.dummyNodeStroke,strokeDasharray:"4",fill:"none"},fo.id)}),`node-frame-${co.id}`)})})},ConnectingLine=eo=>{const{autoAttachLine:to,connectingLine:ro,styles:no}=eo,oo=(no==null?void 0:no.stroke)||defaultColors.primaryColor,io=(no==null?void 0:no.fill)||"none",so=(no==null?void 0:no.strokeDasharray)||"4,4",ao=ro.visible?oo:"none";return jsxRuntimeExports.jsxs("g",{children:[jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:jsxRuntimeExports.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:ao,fill:"none"}})}))}),jsxRuntimeExports.jsx("line",{x1:ro.x1,y1:ro.y1,x2:ro.x2,y2:ro.y2,style:{stroke:ao,fill:io,strokeDasharray:so},markerEnd:"url(#markerArrow)"}),jsxRuntimeExports.jsx("path",{d:getCurvePathD(to.x2,to.x1,to.y2,to.y1),style:{stroke:to.visible?oo:"none",fill:"none"}})]})},Connecting=reactExports.memo(eo=>{const{styles:to,graphConfig:ro,viewport:no,movingPoint:oo}=eo,{sourcePort:io,sourceNode:so,targetPort:ao,targetNode:lo}=useConnectingState();if(!so||!io)return null;const uo=so.getPortPosition(io.id,ro);let co,fo=!1;if(lo&&ao?(fo=!0,co=lo==null?void 0:lo.getPortPosition(ao.id,ro)):co=uo,!uo||!co)return null;const po=transformPoint(uo.x,uo.y,no.transformMatrix),ho=transformPoint(co.x,co.y,no.transformMatrix),mo=oo?{x1:po.x,y1:po.y,x2:oo.x,y2:oo.y,visible:!fo}:emptyLine(),vo={x1:po.x,y1:po.y,x2:ho.x,y2:ho.y,visible:fo};return jsxRuntimeExports.jsx(ConnectingLine,{connectingLine:mo,autoAttachLine:vo,styles:to})});Connecting.displayName="Connecting";const defaultStyle={position:"fixed",userSelect:"none"},GraphContextMenu=({state:eo,onClick:to})=>{var ro,no;const oo=reactExports.useRef(null),[io,so]=reactExports.useState(Object.assign({},defaultStyle));reactExports.useLayoutEffect(()=>{const fo=oo.current;if(!fo||!eo.contextMenuPosition)return;const{x:po,y:ho}=eo.contextMenuPosition,{clientWidth:mo,clientHeight:vo}=document.documentElement,{width:bo,height:xo}=fo.getBoundingClientRect(),_o=Object.assign({},defaultStyle);po+bo>=mo?_o.right=0:_o.left=po,ho+xo>vo?_o.bottom=0:_o.top=ho,so(_o)},[(ro=eo.contextMenuPosition)===null||ro===void 0?void 0:ro.x,(no=eo.contextMenuPosition)===null||no===void 0?void 0:no.y]);const ao=useContextMenuConfigContext(),[lo,uo]=reactExports.useState(jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}));reactExports.useEffect(()=>{const fo=eo.data.present;let po=0,ho=0,mo=0;fo.nodes.forEach(bo=>{var xo;isSelected(bo)&&(po+=1),(xo=bo.ports)===null||xo===void 0||xo.forEach(_o=>{isSelected(_o)&&(ho+=1)})}),fo.edges.forEach(bo=>{isSelected(bo)&&(mo+=1)});let vo;ho+po+mo>1?vo=ao.getMenu(MenuType.Multi):ho+po+mo===0?vo=ao.getMenu(MenuType.Canvas):po===1?vo=ao.getMenu(MenuType.Node):ho===1?vo=ao.getMenu(MenuType.Port):vo=ao.getMenu(MenuType.Edge),uo(vo)},[eo.data.present,ao]);const co=reactExports.useCallback(fo=>{fo.stopPropagation(),fo.preventDefault()},[]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.contextMenuPosition&&jsxRuntimeExports.jsx("div",Object.assign({ref:oo,onClick:to,onContextMenu:co,role:"button",style:io},{children:lo}))})},Renderer=eo=>jsxRuntimeExports.jsx("rect",{height:eo.height,width:eo.width,fill:eo.group.fill}),defaultGroup={render:Renderer},Group=eo=>{var to;const{data:ro,group:no}=eo,oo=useGraphConfig(),{x:io,y:so,width:ao,height:lo}=reactExports.useMemo(()=>getGroupRect(no,ro.nodes,oo),[no,ro.nodes,oo]),uo=(to=oo.getGroupConfig(no))!==null&&to!==void 0?to:defaultGroup,co=`group-container-${no.id}`;return jsxRuntimeExports.jsx("g",Object.assign({"data-automation-id":co,transform:`translate(${io}, ${so})`},{children:uo.render({group:no,height:lo,width:ao})}),no.id)},GraphGroupsRenderer=eo=>jsxRuntimeExports.jsx("g",{children:reactExports.useMemo(()=>eo.groups.map(to=>jsxRuntimeExports.jsx(Group,{group:to,data:eo.data},to.id)),[eo.groups,eo.data])}),NodeTooltips=eo=>{const{node:to,viewport:ro}=eo,no=useGraphConfig();if(!to||!has$1(GraphNodeStatus.Activated)(to.status))return null;const oo=getNodeConfig(to,no);return oo!=null&&oo.renderTooltips?jsxRuntimeExports.jsx("div",Object.assign({className:"node-tooltips"},{children:oo.renderTooltips({model:to,viewport:ro})})):null},PortTooltips=eo=>{const to=useGraphConfig(),{parentNode:ro,port:no,viewport:oo}=eo;if(!has$1(GraphPortStatus.Activated)(no.status))return null;const so=to.getPortConfig(no);if(!so||!so.renderTooltips)return null;const ao=ro.getPortPosition(no.id,to);return ao?jsxRuntimeExports.jsx("div",Object.assign({className:"port-tooltips"},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:lo,sourcePort:uo})=>so.renderTooltips&&so.renderTooltips(Object.assign({model:no,parentNode:ro,data:eo.data,anotherNode:lo,anotherPort:uo,viewport:oo},ao))})})):null};function useRefValue(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo},[eo]),to}const SCROLL_BAR_WIDTH=10,wrapperCommonStyle={position:"absolute",cursor:"initial"},useStyles$i=createUseStyles({verticalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:"100%",width:SCROLL_BAR_WIDTH,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},wrapperCommonStyle),{height:SCROLL_BAR_WIDTH,width:"100%",bottom:0,left:0}),verticalScrollStyle:eo=>({height:eo.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${eo.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:eo=>({width:eo.scrollbarLayout.horizontalScrollWidth-SCROLL_BAR_WIDTH,height:"100%",backgroundColor:defaultColors.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${eo.scrollbarLayout.horizontalScrollLeft}px)`})}),Scrollbar=eo=>{const{vertical:to=!0,horizontal:ro=!0,offsetLimit:no,eventChannel:oo,viewport:io}=eo,so=useGraphController(),ao=getScrollbarLayout(io,no),lo=useStyles$i({scrollbarLayout:ao}),uo=useRefValue(ao);function co(po){po.preventDefault(),po.stopPropagation();const{height:ho}=io.rect,mo=new DragController(new MouseMoveEventProvider(so.getGlobalEventTarget()),defaultGetPositionFromEvent);mo.onMove=({dy:vo,e:bo})=>{const{totalContentHeight:xo}=uo.current,_o=-(vo*xo)/ho;oo.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:bo,dx:0,dy:_o})},mo.onEnd=()=>{oo.trigger({type:GraphScrollBarEvent.ScrollEnd})},mo.start(po.nativeEvent),oo.trigger({type:GraphScrollBarEvent.ScrollStart})}function fo(po){po.preventDefault(),po.stopPropagation();const{width:ho}=io.rect,mo=new DragController(new MouseMoveEventProvider(so.getGlobalEventTarget()),defaultGetPositionFromEvent);mo.onMove=({dx:vo,e:bo})=>{const{totalContentWidth:xo}=uo.current,_o=-(vo*xo)/ho;oo.trigger({type:GraphScrollBarEvent.Scroll,rawEvent:bo,dx:_o,dy:0})},mo.onEnd=()=>{oo.trigger({type:GraphScrollBarEvent.ScrollEnd})},mo.start(po.nativeEvent),oo.trigger({type:GraphScrollBarEvent.ScrollStart})}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[to&&jsxRuntimeExports.jsx("div",Object.assign({className:lo.verticalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:lo.verticalScrollStyle,onMouseDown:co,role:"button","aria-label":"vertical scrollbar","aria-roledescription":"vertical scrollbar",id:"canvas-vertical-scrollbar"})})),ro&&jsxRuntimeExports.jsx("div",Object.assign({className:lo.horizontalScrollWrapper},{children:jsxRuntimeExports.jsx("div",{className:lo.horizontalScrollStyle,onMouseDown:fo,role:"button","aria-label":"horizontal scrollbar","aria-roledescription":"horizontal scrollbar",id:"canvas-horizontal-scrollbar"})}))]})};function getTotalContentHeight(eo,to){const{minY:ro,maxY:no}=to;return eo+no-ro}function getTotalContentWidth(eo,to){const{minX:ro,maxX:no}=to;return eo+no-ro}function getScrollbarLayout(eo,to){const{rect:ro,transformMatrix:no}=eo,oo=getTotalContentHeight(ro.height,to),io=getTotalContentWidth(ro.width,to);return{totalContentHeight:oo,totalContentWidth:io,verticalScrollHeight:ro.height*ro.height/oo,horizontalScrollWidth:ro.width*ro.width/io,verticalScrollTop:(to.maxY-no[5])*ro.height/oo,horizontalScrollLeft:(to.maxX-no[4])*ro.width/io}}const Transform=({matrix:eo,children:to})=>{const ro=reactExports.useMemo(()=>`matrix(${eo.join(" ")})`,eo);return jsxRuntimeExports.jsx("g",Object.assign({transform:ro},{children:to}))};function getHintPoints(eo,to,{minX:ro,minY:no,maxX:oo,maxY:io},so,ao,lo,uo){return eo.x===to.x?{x:eo.x,y:eo.y=no?{x:oo,y:so}:{x:lo,y:no}:eo.yro?{x:ao,y:io}:{x:ro,y:uo}:uo>no?{x:ro,y:uo}:{x:lo,y:no}}const GraphEdge=reactExports.memo(eo=>{var to;const{edge:ro,data:no,eventChannel:oo,source:io,target:so,graphId:ao}=eo,lo=useGraphConfig(),uo=useVirtualization(),{viewport:co,renderedArea:fo,visibleArea:po}=uo,ho=Ro=>Ao=>{Ao.persist(),oo.trigger({type:Ro,edge:ro,rawEvent:Ao})},mo=isPointInRect(fo,io),vo=isPointInRect(fo,so),bo=mo&&vo;if(reactExports.useLayoutEffect(()=>{bo&&uo.renderedEdges.add(ro.id)},[uo]),!bo)return null;const xo=lo.getEdgeConfig(ro);if(!xo)return Debug.warn(`invalid edge ${JSON.stringify(ro)}`),null;if(!xo.render)return Debug.warn(`Missing "render" method in edge config ${JSON.stringify(ro)}`),null;const _o=isPointInRect(po,io),So=isPointInRect(po,so);let Eo=xo.render({model:ro,data:no,x1:io.x,y1:io.y,x2:so.x,y2:so.y,viewport:co});if(has$1(GraphEdgeStatus.ConnectedToSelected)(ro.status)&&(!_o||!So)){const Ro=getLinearFunction(io.x,io.y,so.x,so.y),Ao=getLinearFunction(io.y,io.x,so.y,so.x),Io=_o?io:so,$o=_o?so:io,Bo=Ro(po.maxX),Mo=Ao(po.maxY),Ho=Ao(po.minY),jo=Ro(po.minX),Oo=getHintPoints(Io,$o,po,Bo,Mo,Ho,jo);_o&&xo.renderWithTargetHint?Eo=xo.renderWithTargetHint({model:ro,data:no,x1:io.x,y1:io.y,x2:Oo.x,y2:Oo.y,viewport:co}):So&&xo.renderWithSourceHint&&(Eo=xo.renderWithSourceHint({model:ro,data:no,x1:Oo.x,y1:Oo.y,x2:so.x,y2:so.y,viewport:co}))}const ko=getEdgeUid(ao,ro),wo=`edge-container-${ro.id}`,Co=(to=ro.automationId)!==null&&to!==void 0?to:wo;return jsxRuntimeExports.jsx("g",Object.assign({id:ko,onClick:ho(GraphEdgeEvent.Click),onDoubleClick:ho(GraphEdgeEvent.DoubleClick),onMouseDown:ho(GraphEdgeEvent.MouseDown),onMouseUp:ho(GraphEdgeEvent.MouseUp),onMouseEnter:ho(GraphEdgeEvent.MouseEnter),onMouseLeave:ho(GraphEdgeEvent.MouseLeave),onContextMenu:ho(GraphEdgeEvent.ContextMenu),onMouseMove:ho(GraphEdgeEvent.MouseMove),onMouseOver:ho(GraphEdgeEvent.MouseOver),onMouseOut:ho(GraphEdgeEvent.MouseOut),onFocus:void 0,onBlur:void 0,className:wo,"data-automation-id":Co},{children:Eo}))});function compareEqual(eo,to){return eo.node===to.node}const EdgeChampNodeRender=reactExports.memo(eo=>{var to,ro;const{node:no,data:oo}=eo,io=__rest(eo,["node","data"]),so=useGraphConfig(),ao=[],lo=no.valueCount;for(let fo=0;fo{const{data:to,node:ro}=eo,no=__rest(eo,["data","node"]),oo=useGraphConfig();return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ro.values.map(io=>{var so,ao;const lo=(so=to.nodes.get(io.source))===null||so===void 0?void 0:so.getPortPosition(io.sourcePortId,oo),uo=(ao=to.nodes.get(io.target))===null||ao===void 0?void 0:ao.getPortPosition(io.targetPortId,oo);return lo&&uo?reactExports.createElement(GraphEdge,Object.assign({},no,{key:io.id,data:to,edge:io,source:lo,target:uo})):null})})},compareEqual);EdgeHashCollisionNodeRender.displayName="EdgeHashCollisionNodeRender";const EdgeTree=eo=>{const{tree:to}=eo,ro=__rest(eo,["tree"]);return jsxRuntimeExports.jsx(EdgeChampNodeRender,Object.assign({},ro,{node:to.root}))},styles$1=mergeStyleSets({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),GraphNode=eo=>{var to;const{node:ro,eventChannel:no,getNodeAriaLabel:oo,viewport:io,graphId:so}=eo,ao=useGraphConfig(),lo=getNodeConfig(ro,ao),uo=ho=>mo=>{mo.persist();const vo={type:ho,node:ro,rawEvent:mo};no.trigger(vo)},co=ho=>{ho.persist();const mo=checkIsMultiSelect(ho);no.trigger({type:GraphNodeEvent.Click,rawEvent:ho,isMultiSelect:mo,node:ro})},fo=getNodeUid(so,ro),po=(to=ro.automationId)!==null&&to!==void 0?to:getNodeAutomationId(ro);return lo!=null&&lo.render?jsxRuntimeExports.jsx("g",Object.assign({id:fo,focusable:"true",tabIndex:0,className:styles$1.node,onPointerDown:uo(GraphNodeEvent.PointerDown),onPointerEnter:uo(GraphNodeEvent.PointerEnter),onPointerMove:uo(GraphNodeEvent.PointerMove),onPointerLeave:uo(GraphNodeEvent.PointerLeave),onPointerUp:uo(GraphNodeEvent.PointerUp),onDoubleClick:uo(GraphNodeEvent.DoubleClick),onMouseDown:uo(GraphNodeEvent.MouseDown),onMouseUp:uo(GraphNodeEvent.MouseUp),onMouseEnter:uo(GraphNodeEvent.MouseEnter),onMouseLeave:uo(GraphNodeEvent.MouseLeave),onContextMenu:uo(GraphNodeEvent.ContextMenu),onMouseMove:uo(GraphNodeEvent.MouseMove),onMouseOver:uo(GraphNodeEvent.MouseOver),onMouseOut:uo(GraphNodeEvent.MouseOut),onClick:co,onKeyDown:uo(GraphNodeEvent.KeyDown),"aria-label":oo(ro),role:"group","aria-roledescription":"node","data-automation-id":po},{children:jsxRuntimeExports.jsx("g",Object.assign({className:"node-box-container"},{children:lo.render({model:ro,viewport:io})}))})):(Debug.warn('Missing "render" method in node config'),null)},RESIZE_POINT_WIDTH=8,RESIZE_POINT_HEIGHT=8,NodeAnchor=({x:eo,y:to,cursor:ro,onMouseDown:no})=>jsxRuntimeExports.jsx(Slots.NodeResizeHandler,Object.assign({x:eo,y:to,cursor:ro,onMouseDown:no},{children:jsxRuntimeExports.jsx("rect",{x:eo,y:to,height:RESIZE_POINT_HEIGHT,width:RESIZE_POINT_WIDTH,stroke:defaultColors.controlPointColor,fill:"transparent",cursor:ro,onMouseDown:no})})),BBOX_PADDING=15,GraphNodeAnchors=eo=>{var to,ro;const{node:no,getMouseDown:oo}=eo,io=useGraphConfig(),so=getNodeConfig(no,io),ao=(to=so==null?void 0:so.getMinWidth(no))!==null&&to!==void 0?to:0,lo=(ro=so==null?void 0:so.getMinHeight(no))!==null&&ro!==void 0?ro:0,uo=getRectHeight(so,no),co=getRectWidth(so,no),fo=oo((So,Eo)=>{const ko=Math.min(So,co-ao),wo=Math.min(Eo,uo-lo);return{dx:+ko,dy:+wo,dWidth:-ko,dHeight:-wo}}),po=oo((So,Eo)=>{const ko=Math.min(Eo,uo-lo);return{dy:+ko,dHeight:-ko}}),ho=oo((So,Eo)=>{const ko=Math.max(So,ao-co),wo=Math.min(Eo,uo-lo);return{dy:+wo,dWidth:+ko,dHeight:-wo}}),mo=oo(So=>({dWidth:+Math.max(So,ao-co)})),vo=oo((So,Eo)=>{const ko=Math.max(So,ao-co),wo=Math.max(Eo,lo-uo);return{dWidth:+ko,dHeight:+wo}}),bo=oo((So,Eo)=>({dHeight:+Math.max(Eo,lo-uo)})),xo=oo((So,Eo)=>{const ko=Math.min(So,co-ao),wo=Math.max(Eo,lo-uo);return{dx:+ko,dWidth:-ko,dHeight:+wo}}),_o=oo(So=>{const Eo=Math.min(So,co-ao);return{dx:Eo,dWidth:-Eo}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NodeAnchor,{cursor:"nw-resize",x:no.x-BBOX_PADDING,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,onMouseDown:fo},"nw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co/2-RESIZE_POINT_WIDTH/2,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"n-resize",onMouseDown:po},"n-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y-BBOX_PADDING-RESIZE_POINT_HEIGHT,cursor:"ne-resize",onMouseDown:ho},"ne-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y+uo/2-RESIZE_POINT_HEIGHT/2,cursor:"e-resize",onMouseDown:mo},"e-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co+BBOX_PADDING-RESIZE_POINT_WIDTH,y:no.y+uo+BBOX_PADDING,cursor:"se-resize",onMouseDown:vo},"se-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x+co/2-RESIZE_POINT_WIDTH/2,y:no.y+uo+BBOX_PADDING,cursor:"s-resize",onMouseDown:bo},"s-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x-BBOX_PADDING,y:no.y+uo+BBOX_PADDING,cursor:"sw-resize",onMouseDown:xo},"sw-resize"),jsxRuntimeExports.jsx(NodeAnchor,{x:no.x-BBOX_PADDING,y:no.y+uo/2-RESIZE_POINT_HEIGHT/2,cursor:"w-resize",onMouseDown:_o},"w-resize")]})},GraphOneNodePorts=eo=>{const{data:to,node:ro,getPortAriaLabel:no,eventChannel:oo,viewport:io,graphId:so}=eo,ao=useGraphConfig(),lo=ro.ports;if(!lo)return null;const uo=(co,fo)=>po=>{po.persist(),oo.trigger({type:co,node:ro,port:fo,rawEvent:po})};return jsxRuntimeExports.jsx("g",{children:lo.map(co=>{var fo;const po=ao.getPortConfig(co);if(!po||!po.render)return Debug.warn(`invalid port config ${ro.id}:${ro.name} - ${co.id}:${co.name}`),null;const ho=ro.getPortPosition(co.id,ao);if(!ho)return null;const mo=getPortUid(so,ro,co),vo=(fo=co.automationId)!==null&&fo!==void 0?fo:getPortAutomationId(co,ro);return jsxRuntimeExports.jsx("g",Object.assign({id:mo,tabIndex:0,focusable:"true",onPointerDown:uo(GraphPortEvent.PointerDown,co),onPointerUp:uo(GraphPortEvent.PointerUp,co),onDoubleClick:uo(GraphPortEvent.DoubleClick,co),onMouseDown:uo(GraphPortEvent.MouseDown,co),onMouseUp:uo(GraphPortEvent.MouseUp,co),onContextMenu:uo(GraphPortEvent.ContextMenu,co),onPointerEnter:uo(GraphPortEvent.PointerEnter,co),onPointerLeave:uo(GraphPortEvent.PointerLeave,co),onMouseMove:uo(GraphPortEvent.MouseMove,co),onMouseOver:uo(GraphPortEvent.MouseOver,co),onMouseOut:uo(GraphPortEvent.MouseOut,co),onFocus:uo(GraphPortEvent.Focus,co),onBlur:uo(GraphPortEvent.Blur,co),onKeyDown:uo(GraphPortEvent.KeyDown,co),onClick:uo(GraphPortEvent.Click,co),"aria-label":no(to,ro,co),role:"group","aria-roledescription":"port","data-automation-id":vo},{children:jsxRuntimeExports.jsx(ConnectingStateContext.Consumer,{children:({sourceNode:bo,sourcePort:xo})=>po==null?void 0:po.render(Object.assign({model:co,data:to,parentNode:ro,anotherNode:bo,anotherPort:xo,viewport:io},ho))})}),mo)})})},GraphNodeParts=eo=>{var{node:to,isNodeResizable:ro,renderNodeAnchors:no}=eo,oo=__rest(eo,["node","isNodeResizable","renderNodeAnchors"]);const io=useVirtualization(),{renderedArea:so,viewport:ao}=io,lo=useGetMouseDownOnAnchor(to,oo.eventChannel),uo=isPointInRect(so,to);if(reactExports.useLayoutEffect(()=>{uo&&io.renderedEdges.add(to.id)},[io]),!uo)return null;let co;if(ro&&isNodeEditing(to)){const fo=jsxRuntimeExports.jsx(GraphNodeAnchors,{node:to,getMouseDown:lo});co=no?no(to,lo,fo):fo}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GraphNode,Object.assign({},oo,{node:to,viewport:ao})),jsxRuntimeExports.jsx(GraphOneNodePorts,Object.assign({},oo,{node:to,viewport:ao})),co]})},GraphNodePartsMemo=reactExports.memo(GraphNodeParts),NodeTreeNode=reactExports.memo(eo=>{var{node:to}=eo,ro=__rest(eo,["node"]);const no=to.values.map(io=>{const so=io[1];return jsxRuntimeExports.jsx(GraphNodePartsMemo,Object.assign({node:so},ro),so.id)}),oo=to.type===NodeType.Internal?to.children.map((io,so)=>{const ao=soeo.node===to.node);NodeTreeNode.displayName="NodeTreeNode";const NodeTree=eo=>{var{tree:to}=eo,ro=__rest(eo,["tree"]);return jsxRuntimeExports.jsx(NodeTreeNode,Object.assign({node:to.sortedRoot},ro))},NodeLayers=({data:eo,renderTree:to})=>{const ro=new Set;return eo.nodes.forEach(no=>ro.add(no.layer)),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Array.from(ro.values()).sort().map(no=>to(eo.nodes.filter(oo=>oo.layer===no),no))})},VirtualizationProvider=({viewport:eo,isVirtualizationEnabled:to,virtualizationDelay:ro,eventChannel:no,children:oo})=>{const io=useRenderedArea(eo,to),so=reactExports.useMemo(()=>getVisibleArea(eo),[eo]),ao=reactExports.useMemo(()=>({viewport:eo,renderedArea:io,visibleArea:so,renderedEdges:new Set,renderedNodes:new Set,timestamp:performance.now()}),[eo,io,so]),lo=useDeferredValue(ao,{timeout:ro}),uo=reactExports.useRef(lo);return reactExports.useEffect(()=>{const co=uo.current;uo.current=lo,no.trigger({type:GraphCanvasEvent.VirtualizationRecalculated,performanceStartTime:lo.timestamp,renderedNodes:co.renderedNodes,renderedEdges:co.renderedEdges,previousRenderedNodes:co.renderedNodes,previousRenderedEdges:co.renderedEdges})},[lo,no]),jsxRuntimeExports.jsx(VirtualizationContext.Provider,Object.assign({value:lo},{children:oo}))},getCursorStyle=({canvasMouseMode:eo,state:to,isPanDisabled:ro,isMultiSelecting:no})=>to.behavior===GraphBehavior.Connecting||["meta","control"].some(so=>to.activeKeys.has(so))?"initial":to.activeKeys.has("shift")?"crosshair":eo!==CanvasMouseMode.Pan?to.activeKeys.has(" ")&&!ro?"grab":no?"crosshair":"inherit":ro?"inherit":"grab";function getNodeCursor(eo){return eo?"move":"initial"}const getGraphStyles=(eo,to,ro,no,oo,io)=>{var so,ao;return mergeStyleSets({svg:["react-dag-editor-svg-container",styles$1.svg,(so=eo.styles)===null||so===void 0?void 0:so.svg,{"& *:focus":{outline:defaultColors.outlineStyle},[`& .${styles$1.node}`]:{cursor:getNodeCursor(no)}}],container:["react-dag-editor-container",styles$1.container,{cursor:getCursorStyle({canvasMouseMode:eo.canvasMouseMode,state:to,isPanDisabled:ro,isMultiSelecting:io}),[`&.${styles$1.container}`]:Object.assign(Object.assign({background:defaultColors.canvasBackground},eo.style),(ao=eo.styles)===null||ao===void 0?void 0:ao.root)},oo&&{outline:`${defaultColors.focusOutlineColor} solid 1px`}],buttonA11y:["react-dag-editor-a11y-help-button",styles$1.buttonA11Y],node:[styles$1.node]})};function Graph(eo){var to,ro,no,oo,io;const[so,ao]=reactExports.useState(!1),lo=useGraphController(),{state:uo,dispatch:co}=useGraphState(),fo=uo.data.present,{viewport:po}=uo,{eventChannel:ho}=lo,mo=useConst(()=>`graph-${v4()}`),vo=reactExports.useRef(null),{focusCanvasAccessKey:bo="f",zoomSensitivity:xo=.1,scrollSensitivity:_o=.5,svgRef:So=vo,virtualizationDelay:Eo=500,background:ko=null}=eo,wo=useGraphConfig(),Co=useFeatureControl(uo.settings.features),[Ro,Ao]=reactExports.useState(),[Io,$o]=reactExports.useState(void 0),Bo=reactExports.useRef(null),Mo=reactExports.useRef(void 0),Ho=useUpdateViewportCallback(Mo,So,ho);useEventChannel({props:eo,dispatch:co,rectRef:Mo,svgRef:So,setFocusedWithoutMouse:ao,containerRef:Bo,featureControl:Co,graphConfig:wo,setCurHoverNode:Ao,setCurHoverPort:$o,updateViewport:Ho,eventChannel:ho,graphController:lo}),useContainerRect(uo,So,Bo,Ho);const{isNodesDraggable:jo,isNodeResizable:Oo,isPanDisabled:Fo,isMultiSelectDisabled:Go,isLassoSelectEnable:qo,isNodeEditDisabled:Xo,isVerticalScrollDisabled:Zo,isHorizontalScrollDisabled:Qo,isA11yEnable:xs,isCtrlKeyZoomEnable:Ts,isVirtualizationEnabled:Rs,isScrollbarVisible:Os}=Co;useSelectBox(co,uo.selectBoxPosition);const As=Zs=>$a=>{$a.persist(),ho.trigger({type:Zs,rawEvent:$a})},Ds=getGraphStyles(eo,uo,Fo,jo,so,uo.behavior===GraphBehavior.MultiSelect);useWheelHandler({containerRef:Bo,svgRef:So,rectRef:Mo,zoomSensitivity:xo,scrollSensitivity:_o,dispatch:co,isHorizontalScrollDisabled:Qo,isVerticalScrollDisabled:Zo,isCtrlKeyZoomEnable:Ts,eventChannel:ho,graphConfig:wo});const Jo=reactExports.useCallback(Zs=>{Zs.preventDefault(),Zs.stopPropagation(),ho.trigger({type:GraphContextMenuEvent.Close}),So.current&&So.current.focus({preventScroll:!0})},[ho,So]),Cs=reactExports.useCallback(()=>{ao(!0),So.current&&So.current.focus({preventScroll:!0})},[So]);useSafariScale({rectRef:Mo,svgRef:So,eventChannel:ho});const Bs=xs?bo:void 0,zs=useGraphTouchHandler(Mo,ho),Ls=reactExports.useCallback((Zs,$a)=>{var Ll,Kl;return jsxRuntimeExports.jsx(NodeTree,{graphId:mo,isNodeResizable:Oo,tree:Zs,data:fo,isNodeEditDisabled:Xo,eventChannel:ho,getNodeAriaLabel:(Ll=eo.getNodeAriaLabel)!==null&&Ll!==void 0?Ll:defaultGetNodeAriaLabel,getPortAriaLabel:(Kl=eo.getPortAriaLabel)!==null&&Kl!==void 0?Kl:defaultGetPortAriaLabel,renderNodeAnchors:eo.renderNodeAnchors},$a)},[fo,ho,mo,Xo,Oo,eo.getNodeAriaLabel,eo.getPortAriaLabel,eo.renderNodeAnchors]);if(!isSupported()){const{onBrowserNotSupported:Zs=()=>jsxRuntimeExports.jsx("p",{children:"Your browser is not supported"})}=eo;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:Zs()})}const ga=()=>{if(!Io||!isViewportComplete(uo.viewport))return null;const[Zs,$a]=Io,Ll=fo.nodes.get(Zs);if(!Ll)return null;const Kl=Ll.getPort($a);return Kl?jsxRuntimeExports.jsx(PortTooltips,{port:Kl,parentNode:Ll,data:fo,viewport:uo.viewport}):null},Js=()=>{var Zs;return!Ro||!isViewportComplete(uo.viewport)||uo.contextMenuPosition&&Ro===((Zs=uo.data.present.nodes.find(isSelected))===null||Zs===void 0?void 0:Zs.id)?null:jsxRuntimeExports.jsx(NodeTooltips,{node:fo.nodes.get(Ro),viewport:uo.viewport})};return jsxRuntimeExports.jsxs("div",Object.assign({ref:Bo,role:"application",id:mo,className:Ds.container},zs,{onDoubleClick:As(GraphCanvasEvent.DoubleClick),onMouseDown:As(GraphCanvasEvent.MouseDown),onMouseUp:As(GraphCanvasEvent.MouseUp),onContextMenu:As(GraphCanvasEvent.ContextMenu),onMouseMove:As(GraphCanvasEvent.MouseMove),onMouseOver:As(GraphCanvasEvent.MouseOver),onMouseOut:As(GraphCanvasEvent.MouseOut),onFocus:As(GraphCanvasEvent.Focus),onBlur:As(GraphCanvasEvent.Blur),onKeyDown:As(GraphCanvasEvent.KeyDown),onKeyUp:As(GraphCanvasEvent.KeyUp)},{children:[jsxRuntimeExports.jsx("button",{className:Ds.buttonA11y,onClick:Cs,accessKey:Bs,hidden:!0}),jsxRuntimeExports.jsxs("svg",Object.assign({tabIndex:0,focusable:"true",preserveAspectRatio:"xMidYMid meet",ref:So,className:Ds.svg,"data-graph-id":mo},{children:[jsxRuntimeExports.jsx("title",{children:eo.title}),jsxRuntimeExports.jsx("desc",{children:eo.desc}),jsxRuntimeExports.jsxs(Transform,Object.assign({matrix:po.transformMatrix},{children:[uo.viewport.rect&&jsxRuntimeExports.jsxs(VirtualizationProvider,Object.assign({viewport:uo.viewport,isVirtualizationEnabled:Rs,virtualizationDelay:Eo,eventChannel:ho},{children:[ko,jsxRuntimeExports.jsx(GraphGroupsRenderer,{data:fo,groups:(to=fo.groups)!==null&&to!==void 0?to:constantEmptyArray()}),jsxRuntimeExports.jsx(EdgeTree,{graphId:mo,tree:fo.edges,data:fo,eventChannel:ho}),jsxRuntimeExports.jsx(NodeLayers,{data:fo,renderTree:Ls})]})),uo.dummyNodes.isVisible&&jsxRuntimeExports.jsx(AnimatingNodeGroup,{dummyNodes:uo.dummyNodes,graphData:uo.data.present}),jsxRuntimeExports.jsx(AlignmentLines,{style:(ro=eo.styles)===null||ro===void 0?void 0:ro.alignmentLine})]})),(!Go||qo)&&jsxRuntimeExports.jsx(SelectBox,{selectBoxPosition:uo.selectBoxPosition,style:(no=eo.styles)===null||no===void 0?void 0:no.selectBox}),uo.connectState&&jsxRuntimeExports.jsx(Connecting,{graphConfig:wo,eventChannel:ho,viewport:uo.viewport,styles:(oo=eo.styles)===null||oo===void 0?void 0:oo.connectingLine,movingPoint:uo.connectState.movingPoint})]})),Os&&isViewportComplete(uo.viewport)&&jsxRuntimeExports.jsx(Scrollbar,{viewport:uo.viewport,offsetLimit:getOffsetLimit({data:fo,graphConfig:wo,rect:uo.viewport.rect,transformMatrix:po.transformMatrix,canvasBoundaryPadding:uo.settings.canvasBoundaryPadding,groupPadding:(io=fo.groups[0])===null||io===void 0?void 0:io.padding}),dispatch:co,horizontal:!Qo,vertical:!Zo,eventChannel:ho}),jsxRuntimeExports.jsx(GraphContextMenu,{state:uo,onClick:Jo,"data-automation-id":"context-menu-container"}),Js(),ga()]}))}const el=document.createElement("div");document.body.appendChild(el);const StaticNode=eo=>{const{node:to}=eo,ro=useGraphConfig(),no=getNodeConfig(to,ro);if(no!=null&&no.renderStatic)return jsxRuntimeExports.jsx("g",{children:no.renderStatic({model:to})});const oo=getRectHeight(no,to),io=getRectWidth(no,to);return jsxRuntimeExports.jsx("rect",{transform:`translate(${to.x}, ${to.y})`,height:oo,width:io,fill:defaultColors.dummyNodeStroke})},StaticNodeWithMemo=reactExports.memo(StaticNode,(eo,to)=>{const ro=eo.node,no=to.node;return ro.x===no.x&&ro.y===no.y&&ro.height===no.height&&ro.width===no.width&&ro.isInSearchResults===no.isInSearchResults&&ro.isCurrentSearchResult===no.isCurrentSearchResult}),ReadonlyNodeTreeNode=reactExports.memo(({node:eo})=>{const to=eo.values.map(no=>jsxRuntimeExports.jsx(StaticNodeWithMemo,{node:no[1]},no[1].id)),ro=eo.type===NodeType.Internal?eo.children.map((no,oo)=>{const io=oo>>0;if(""+ro!==to||ro===4294967295)return NaN;to=ro}return to<0?ensureSize(eo)+to:to}function returnTrue(){return!0}function wholeSlice(eo,to,ro){return(eo===0&&!isNeg(eo)||ro!==void 0&&eo<=-ro)&&(to===void 0||ro!==void 0&&to>=ro)}function resolveBegin(eo,to){return resolveIndex(eo,to,0)}function resolveEnd(eo,to){return resolveIndex(eo,to,to)}function resolveIndex(eo,to,ro){return eo===void 0?ro:isNeg(eo)?to===1/0?to:Math.max(0,to+eo)|0:to===void 0||to===eo?eo:Math.min(to,eo)|0}function isNeg(eo){return eo<0||eo===0&&1/eo===-1/0}var IS_COLLECTION_SYMBOL="@@__IMMUTABLE_ITERABLE__@@";function isCollection(eo){return!!(eo&&eo[IS_COLLECTION_SYMBOL])}var IS_KEYED_SYMBOL="@@__IMMUTABLE_KEYED__@@";function isKeyed(eo){return!!(eo&&eo[IS_KEYED_SYMBOL])}var IS_INDEXED_SYMBOL="@@__IMMUTABLE_INDEXED__@@";function isIndexed(eo){return!!(eo&&eo[IS_INDEXED_SYMBOL])}function isAssociative(eo){return isKeyed(eo)||isIndexed(eo)}var Collection$1=function(to){return isCollection(to)?to:Seq(to)},KeyedCollection=function(eo){function to(ro){return isKeyed(ro)?ro:KeyedSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1),IndexedCollection=function(eo){function to(ro){return isIndexed(ro)?ro:IndexedSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1),SetCollection=function(eo){function to(ro){return isCollection(ro)&&!isAssociative(ro)?ro:SetSeq(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to}(Collection$1);Collection$1.Keyed=KeyedCollection;Collection$1.Indexed=IndexedCollection;Collection$1.Set=SetCollection;var IS_SEQ_SYMBOL="@@__IMMUTABLE_SEQ__@@";function isSeq(eo){return!!(eo&&eo[IS_SEQ_SYMBOL])}var IS_RECORD_SYMBOL="@@__IMMUTABLE_RECORD__@@";function isRecord(eo){return!!(eo&&eo[IS_RECORD_SYMBOL])}function isImmutable(eo){return isCollection(eo)||isRecord(eo)}var IS_ORDERED_SYMBOL="@@__IMMUTABLE_ORDERED__@@";function isOrdered(eo){return!!(eo&&eo[IS_ORDERED_SYMBOL])}var ITERATE_KEYS=0,ITERATE_VALUES=1,ITERATE_ENTRIES=2,REAL_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator",ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL,Iterator=function(to){this.next=to};Iterator.prototype.toString=function(){return"[Iterator]"};Iterator.KEYS=ITERATE_KEYS;Iterator.VALUES=ITERATE_VALUES;Iterator.ENTRIES=ITERATE_ENTRIES;Iterator.prototype.inspect=Iterator.prototype.toSource=function(){return this.toString()};Iterator.prototype[ITERATOR_SYMBOL]=function(){return this};function iteratorValue(eo,to,ro,no){var oo=eo===0?to:eo===1?ro:[to,ro];return no?no.value=oo:no={value:oo,done:!1},no}function iteratorDone(){return{value:void 0,done:!0}}function hasIterator(eo){return Array.isArray(eo)?!0:!!getIteratorFn(eo)}function isIterator(eo){return eo&&typeof eo.next=="function"}function getIterator(eo){var to=getIteratorFn(eo);return to&&to.call(eo)}function getIteratorFn(eo){var to=eo&&(REAL_ITERATOR_SYMBOL&&eo[REAL_ITERATOR_SYMBOL]||eo[FAUX_ITERATOR_SYMBOL]);if(typeof to=="function")return to}function isEntriesIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.entries}function isKeysIterable(eo){var to=getIteratorFn(eo);return to&&to===eo.keys}var hasOwnProperty$1=Object.prototype.hasOwnProperty;function isArrayLike$1(eo){return Array.isArray(eo)||typeof eo=="string"?!0:eo&&typeof eo=="object"&&Number.isInteger(eo.length)&&eo.length>=0&&(eo.length===0?Object.keys(eo).length===1:eo.hasOwnProperty(eo.length-1))}var Seq=function(eo){function to(ro){return ro==null?emptySequence():isImmutable(ro)?ro.toSeq():seqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq {","}")},to.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},to.prototype.__iterate=function(no,oo){var io=this._cache;if(io){for(var so=io.length,ao=0;ao!==so;){var lo=io[oo?so-++ao:ao++];if(no(lo[1],lo[0],this)===!1)break}return ao}return this.__iterateUncached(no,oo)},to.prototype.__iterator=function(no,oo){var io=this._cache;if(io){var so=io.length,ao=0;return new Iterator(function(){if(ao===so)return iteratorDone();var lo=io[oo?so-++ao:ao++];return iteratorValue(no,lo[0],lo[1])})}return this.__iteratorUncached(no,oo)},to}(Collection$1),KeyedSeq=function(eo){function to(ro){return ro==null?emptySequence().toKeyedSeq():isCollection(ro)?isKeyed(ro)?ro.toSeq():ro.fromEntrySeq():isRecord(ro)?ro.toSeq():keyedSeqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.toKeyedSeq=function(){return this},to}(Seq),IndexedSeq=function(eo){function to(ro){return ro==null?emptySequence():isCollection(ro)?isKeyed(ro)?ro.entrySeq():ro.toIndexedSeq():isRecord(ro)?ro.toSeq().entrySeq():indexedSeqFromValue(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toIndexedSeq=function(){return this},to.prototype.toString=function(){return this.__toString("Seq [","]")},to}(Seq),SetSeq=function(eo){function to(ro){return(isCollection(ro)&&!isAssociative(ro)?ro:IndexedSeq(ro)).toSetSeq()}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return to(arguments)},to.prototype.toSetSeq=function(){return this},to}(Seq);Seq.isSeq=isSeq;Seq.Keyed=KeyedSeq;Seq.Set=SetSeq;Seq.Indexed=IndexedSeq;Seq.prototype[IS_SEQ_SYMBOL]=!0;var ArraySeq=function(eo){function to(ro){this._array=ro,this.size=ro.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return this.has(no)?this._array[wrapIndex(this,no)]:oo},to.prototype.__iterate=function(no,oo){for(var io=this._array,so=io.length,ao=0;ao!==so;){var lo=oo?so-++ao:ao++;if(no(io[lo],lo,this)===!1)break}return ao},to.prototype.__iterator=function(no,oo){var io=this._array,so=io.length,ao=0;return new Iterator(function(){if(ao===so)return iteratorDone();var lo=oo?so-++ao:ao++;return iteratorValue(no,lo,io[lo])})},to}(IndexedSeq),ObjectSeq=function(eo){function to(ro){var no=Object.keys(ro).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(ro):[]);this._object=ro,this._keys=no,this.size=no.length}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return oo!==void 0&&!this.has(no)?oo:this._object[no]},to.prototype.has=function(no){return hasOwnProperty$1.call(this._object,no)},to.prototype.__iterate=function(no,oo){for(var io=this._object,so=this._keys,ao=so.length,lo=0;lo!==ao;){var uo=so[oo?ao-++lo:lo++];if(no(io[uo],uo,this)===!1)break}return lo},to.prototype.__iterator=function(no,oo){var io=this._object,so=this._keys,ao=so.length,lo=0;return new Iterator(function(){if(lo===ao)return iteratorDone();var uo=so[oo?ao-++lo:lo++];return iteratorValue(no,uo,io[uo])})},to}(KeyedSeq);ObjectSeq.prototype[IS_ORDERED_SYMBOL]=!0;var CollectionSeq=function(eo){function to(ro){this._collection=ro,this.size=ro.length||ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.__iterateUncached=function(no,oo){if(oo)return this.cacheResult().__iterate(no,oo);var io=this._collection,so=getIterator(io),ao=0;if(isIterator(so))for(var lo;!(lo=so.next()).done&&no(lo.value,ao++,this)!==!1;);return ao},to.prototype.__iteratorUncached=function(no,oo){if(oo)return this.cacheResult().__iterator(no,oo);var io=this._collection,so=getIterator(io);if(!isIterator(so))return new Iterator(iteratorDone);var ao=0;return new Iterator(function(){var lo=so.next();return lo.done?lo:iteratorValue(no,ao++,lo.value)})},to}(IndexedSeq),EMPTY_SEQ;function emptySequence(){return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]))}function keyedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to.fromEntrySeq();if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+eo)}function indexedSeqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return to;throw new TypeError("Expected Array or collection object of values: "+eo)}function seqFromValue(eo){var to=maybeIndexedSeqFromValue(eo);if(to)return isEntriesIterable(eo)?to.fromEntrySeq():isKeysIterable(eo)?to.toSetSeq():to;if(typeof eo=="object")return new ObjectSeq(eo);throw new TypeError("Expected Array or collection object of values, or keyed object: "+eo)}function maybeIndexedSeqFromValue(eo){return isArrayLike$1(eo)?new ArraySeq(eo):hasIterator(eo)?new CollectionSeq(eo):void 0}var IS_MAP_SYMBOL="@@__IMMUTABLE_MAP__@@";function isMap(eo){return!!(eo&&eo[IS_MAP_SYMBOL])}function isOrderedMap(eo){return isMap(eo)&&isOrdered(eo)}function isValueObject(eo){return!!(eo&&typeof eo.equals=="function"&&typeof eo.hashCode=="function")}function is$1(eo,to){if(eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1;if(typeof eo.valueOf=="function"&&typeof to.valueOf=="function"){if(eo=eo.valueOf(),to=to.valueOf(),eo===to||eo!==eo&&to!==to)return!0;if(!eo||!to)return!1}return!!(isValueObject(eo)&&isValueObject(to)&&eo.equals(to))}var imul=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(to,ro){to|=0,ro|=0;var no=to&65535,oo=ro&65535;return no*oo+((to>>>16)*oo+no*(ro>>>16)<<16>>>0)|0};function smi(eo){return eo>>>1&1073741824|eo&3221225471}var defaultValueOf=Object.prototype.valueOf;function hash$1(eo){if(eo==null)return hashNullish(eo);if(typeof eo.hashCode=="function")return smi(eo.hashCode(eo));var to=valueOf(eo);if(to==null)return hashNullish(to);switch(typeof to){case"boolean":return to?1108378657:1108378656;case"number":return hashNumber(to);case"string":return to.length>STRING_HASH_CACHE_MIN_STRLEN?cachedHashString(to):hashString(to);case"object":case"function":return hashJSObj(to);case"symbol":return hashSymbol(to);default:if(typeof to.toString=="function")return hashString(to.toString());throw new Error("Value type "+typeof to+" cannot be hashed.")}}function hashNullish(eo){return eo===null?1108378658:1108378659}function hashNumber(eo){if(eo!==eo||eo===1/0)return 0;var to=eo|0;for(to!==eo&&(to^=eo*4294967295);eo>4294967295;)eo/=4294967295,to^=eo;return smi(to)}function cachedHashString(eo){var to=stringHashCache[eo];return to===void 0&&(to=hashString(eo),STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE&&(STRING_HASH_CACHE_SIZE=0,stringHashCache={}),STRING_HASH_CACHE_SIZE++,stringHashCache[eo]=to),to}function hashString(eo){for(var to=0,ro=0;ro0)switch(eo.nodeType){case 1:return eo.uniqueID;case 9:return eo.documentElement&&eo.documentElement.uniqueID}}function valueOf(eo){return eo.valueOf!==defaultValueOf&&typeof eo.valueOf=="function"?eo.valueOf(eo):eo}function nextHash(){var eo=++_objHashUID;return _objHashUID&1073741824&&(_objHashUID=0),eo}var usingWeakMap=typeof WeakMap=="function",weakMap;usingWeakMap&&(weakMap=new WeakMap);var symbolMap=Object.create(null),_objHashUID=0,UID_HASH_KEY="__immutablehash__";typeof Symbol=="function"&&(UID_HASH_KEY=Symbol(UID_HASH_KEY));var STRING_HASH_CACHE_MIN_STRLEN=16,STRING_HASH_CACHE_MAX_SIZE=255,STRING_HASH_CACHE_SIZE=0,stringHashCache={},ToKeyedSequence=function(eo){function to(ro,no){this._iter=ro,this._useKeys=no,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.get=function(no,oo){return this._iter.get(no,oo)},to.prototype.has=function(no){return this._iter.has(no)},to.prototype.valueSeq=function(){return this._iter.valueSeq()},to.prototype.reverse=function(){var no=this,oo=reverseFactory(this,!0);return this._useKeys||(oo.valueSeq=function(){return no._iter.toSeq().reverse()}),oo},to.prototype.map=function(no,oo){var io=this,so=mapFactory(this,no,oo);return this._useKeys||(so.valueSeq=function(){return io._iter.toSeq().map(no,oo)}),so},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so,ao){return no(so,ao,io)},oo)},to.prototype.__iterator=function(no,oo){return this._iter.__iterator(no,oo)},to}(KeyedSeq);ToKeyedSequence.prototype[IS_ORDERED_SYMBOL]=!0;var ToIndexedSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.includes=function(no){return this._iter.includes(no)},to.prototype.__iterate=function(no,oo){var io=this,so=0;return oo&&ensureSize(this),this._iter.__iterate(function(ao){return no(ao,oo?io.size-++so:so++,io)},oo)},to.prototype.__iterator=function(no,oo){var io=this,so=this._iter.__iterator(ITERATE_VALUES,oo),ao=0;return oo&&ensureSize(this),new Iterator(function(){var lo=so.next();return lo.done?lo:iteratorValue(no,oo?io.size-++ao:ao++,lo.value,lo)})},to}(IndexedSeq),ToSetSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.has=function(no){return this._iter.includes(no)},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so){return no(so,so,io)},oo)},to.prototype.__iterator=function(no,oo){var io=this._iter.__iterator(ITERATE_VALUES,oo);return new Iterator(function(){var so=io.next();return so.done?so:iteratorValue(no,so.value,so.value,so)})},to}(SetSeq),FromEntriesSequence=function(eo){function to(ro){this._iter=ro,this.size=ro.size}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.prototype.entrySeq=function(){return this._iter.toSeq()},to.prototype.__iterate=function(no,oo){var io=this;return this._iter.__iterate(function(so){if(so){validateEntry(so);var ao=isCollection(so);return no(ao?so.get(1):so[1],ao?so.get(0):so[0],io)}},oo)},to.prototype.__iterator=function(no,oo){var io=this._iter.__iterator(ITERATE_VALUES,oo);return new Iterator(function(){for(;;){var so=io.next();if(so.done)return so;var ao=so.value;if(ao){validateEntry(ao);var lo=isCollection(ao);return iteratorValue(no,lo?ao.get(0):ao[0],lo?ao.get(1):ao[1],so)}}})},to}(KeyedSeq);ToIndexedSequence.prototype.cacheResult=ToKeyedSequence.prototype.cacheResult=ToSetSequence.prototype.cacheResult=FromEntriesSequence.prototype.cacheResult=cacheResultThrough;function flipFactory(eo){var to=makeSequence(eo);return to._iter=eo,to.size=eo.size,to.flip=function(){return eo},to.reverse=function(){var ro=eo.reverse.apply(this);return ro.flip=function(){return eo.reverse()},ro},to.has=function(ro){return eo.includes(ro)},to.includes=function(ro){return eo.has(ro)},to.cacheResult=cacheResultThrough,to.__iterateUncached=function(ro,no){var oo=this;return eo.__iterate(function(io,so){return ro(so,io,oo)!==!1},no)},to.__iteratorUncached=function(ro,no){if(ro===ITERATE_ENTRIES){var oo=eo.__iterator(ro,no);return new Iterator(function(){var io=oo.next();if(!io.done){var so=io.value[0];io.value[0]=io.value[1],io.value[1]=so}return io})}return eo.__iterator(ro===ITERATE_VALUES?ITERATE_KEYS:ITERATE_VALUES,no)},to}function mapFactory(eo,to,ro){var no=makeSequence(eo);return no.size=eo.size,no.has=function(oo){return eo.has(oo)},no.get=function(oo,io){var so=eo.get(oo,NOT_SET);return so===NOT_SET?io:to.call(ro,so,oo,eo)},no.__iterateUncached=function(oo,io){var so=this;return eo.__iterate(function(ao,lo,uo){return oo(to.call(ro,ao,lo,uo),lo,so)!==!1},io)},no.__iteratorUncached=function(oo,io){var so=eo.__iterator(ITERATE_ENTRIES,io);return new Iterator(function(){var ao=so.next();if(ao.done)return ao;var lo=ao.value,uo=lo[0];return iteratorValue(oo,uo,to.call(ro,lo[1],uo,eo),ao)})},no}function reverseFactory(eo,to){var ro=this,no=makeSequence(eo);return no._iter=eo,no.size=eo.size,no.reverse=function(){return eo},eo.flip&&(no.flip=function(){var oo=flipFactory(eo);return oo.reverse=function(){return eo.flip()},oo}),no.get=function(oo,io){return eo.get(to?oo:-1-oo,io)},no.has=function(oo){return eo.has(to?oo:-1-oo)},no.includes=function(oo){return eo.includes(oo)},no.cacheResult=cacheResultThrough,no.__iterate=function(oo,io){var so=this,ao=0;return io&&ensureSize(eo),eo.__iterate(function(lo,uo){return oo(lo,to?uo:io?so.size-++ao:ao++,so)},!io)},no.__iterator=function(oo,io){var so=0;io&&ensureSize(eo);var ao=eo.__iterator(ITERATE_ENTRIES,!io);return new Iterator(function(){var lo=ao.next();if(lo.done)return lo;var uo=lo.value;return iteratorValue(oo,to?uo[0]:io?ro.size-++so:so++,uo[1],lo)})},no}function filterFactory(eo,to,ro,no){var oo=makeSequence(eo);return no&&(oo.has=function(io){var so=eo.get(io,NOT_SET);return so!==NOT_SET&&!!to.call(ro,so,io,eo)},oo.get=function(io,so){var ao=eo.get(io,NOT_SET);return ao!==NOT_SET&&to.call(ro,ao,io,eo)?ao:so}),oo.__iterateUncached=function(io,so){var ao=this,lo=0;return eo.__iterate(function(uo,co,fo){if(to.call(ro,uo,co,fo))return lo++,io(uo,no?co:lo-1,ao)},so),lo},oo.__iteratorUncached=function(io,so){var ao=eo.__iterator(ITERATE_ENTRIES,so),lo=0;return new Iterator(function(){for(;;){var uo=ao.next();if(uo.done)return uo;var co=uo.value,fo=co[0],po=co[1];if(to.call(ro,po,fo,eo))return iteratorValue(io,no?fo:lo++,po,uo)}})},oo}function countByFactory(eo,to,ro){var no=Map$1().asMutable();return eo.__iterate(function(oo,io){no.update(to.call(ro,oo,io,eo),0,function(so){return so+1})}),no.asImmutable()}function groupByFactory(eo,to,ro){var no=isKeyed(eo),oo=(isOrdered(eo)?OrderedMap():Map$1()).asMutable();eo.__iterate(function(so,ao){oo.update(to.call(ro,so,ao,eo),function(lo){return lo=lo||[],lo.push(no?[ao,so]:so),lo})});var io=collectionClass(eo);return oo.map(function(so){return reify(eo,io(so))}).asImmutable()}function partitionFactory(eo,to,ro){var no=isKeyed(eo),oo=[[],[]];eo.__iterate(function(so,ao){oo[to.call(ro,so,ao,eo)?1:0].push(no?[ao,so]:so)});var io=collectionClass(eo);return oo.map(function(so){return reify(eo,io(so))})}function sliceFactory(eo,to,ro,no){var oo=eo.size;if(wholeSlice(to,ro,oo))return eo;var io=resolveBegin(to,oo),so=resolveEnd(ro,oo);if(io!==io||so!==so)return sliceFactory(eo.toSeq().cacheResult(),to,ro,no);var ao=so-io,lo;ao===ao&&(lo=ao<0?0:ao);var uo=makeSequence(eo);return uo.size=lo===0?lo:eo.size&&lo||void 0,!no&&isSeq(eo)&&lo>=0&&(uo.get=function(co,fo){return co=wrapIndex(this,co),co>=0&&colo)return iteratorDone();var vo=po.next();return no||co===ITERATE_VALUES||vo.done?vo:co===ITERATE_KEYS?iteratorValue(co,mo-1,void 0,vo):iteratorValue(co,mo-1,vo.value[1],vo)})},uo}function takeWhileFactory(eo,to,ro){var no=makeSequence(eo);return no.__iterateUncached=function(oo,io){var so=this;if(io)return this.cacheResult().__iterate(oo,io);var ao=0;return eo.__iterate(function(lo,uo,co){return to.call(ro,lo,uo,co)&&++ao&&oo(lo,uo,so)}),ao},no.__iteratorUncached=function(oo,io){var so=this;if(io)return this.cacheResult().__iterator(oo,io);var ao=eo.__iterator(ITERATE_ENTRIES,io),lo=!0;return new Iterator(function(){if(!lo)return iteratorDone();var uo=ao.next();if(uo.done)return uo;var co=uo.value,fo=co[0],po=co[1];return to.call(ro,po,fo,so)?oo===ITERATE_ENTRIES?uo:iteratorValue(oo,fo,po,uo):(lo=!1,iteratorDone())})},no}function skipWhileFactory(eo,to,ro,no){var oo=makeSequence(eo);return oo.__iterateUncached=function(io,so){var ao=this;if(so)return this.cacheResult().__iterate(io,so);var lo=!0,uo=0;return eo.__iterate(function(co,fo,po){if(!(lo&&(lo=to.call(ro,co,fo,po))))return uo++,io(co,no?fo:uo-1,ao)}),uo},oo.__iteratorUncached=function(io,so){var ao=this;if(so)return this.cacheResult().__iterator(io,so);var lo=eo.__iterator(ITERATE_ENTRIES,so),uo=!0,co=0;return new Iterator(function(){var fo,po,ho;do{if(fo=lo.next(),fo.done)return no||io===ITERATE_VALUES?fo:io===ITERATE_KEYS?iteratorValue(io,co++,void 0,fo):iteratorValue(io,co++,fo.value[1],fo);var mo=fo.value;po=mo[0],ho=mo[1],uo&&(uo=to.call(ro,ho,po,ao))}while(uo);return io===ITERATE_ENTRIES?fo:iteratorValue(io,po,ho,fo)})},oo}function concatFactory(eo,to){var ro=isKeyed(eo),no=[eo].concat(to).map(function(so){return isCollection(so)?ro&&(so=KeyedCollection(so)):so=ro?keyedSeqFromValue(so):indexedSeqFromValue(Array.isArray(so)?so:[so]),so}).filter(function(so){return so.size!==0});if(no.length===0)return eo;if(no.length===1){var oo=no[0];if(oo===eo||ro&&isKeyed(oo)||isIndexed(eo)&&isIndexed(oo))return oo}var io=new ArraySeq(no);return ro?io=io.toKeyedSeq():isIndexed(eo)||(io=io.toSetSeq()),io=io.flatten(!0),io.size=no.reduce(function(so,ao){if(so!==void 0){var lo=ao.size;if(lo!==void 0)return so+lo}},0),io}function flattenFactory(eo,to,ro){var no=makeSequence(eo);return no.__iterateUncached=function(oo,io){if(io)return this.cacheResult().__iterate(oo,io);var so=0,ao=!1;function lo(uo,co){uo.__iterate(function(fo,po){return(!to||co0}function zipWithFactory(eo,to,ro,no){var oo=makeSequence(eo),io=new ArraySeq(ro).map(function(so){return so.size});return oo.size=no?io.max():io.min(),oo.__iterate=function(so,ao){for(var lo=this.__iterator(ITERATE_VALUES,ao),uo,co=0;!(uo=lo.next()).done&&so(uo.value,co++,this)!==!1;);return co},oo.__iteratorUncached=function(so,ao){var lo=ro.map(function(fo){return fo=Collection$1(fo),getIterator(ao?fo.reverse():fo)}),uo=0,co=!1;return new Iterator(function(){var fo;return co||(fo=lo.map(function(po){return po.next()}),co=no?fo.every(function(po){return po.done}):fo.some(function(po){return po.done})),co?iteratorDone():iteratorValue(so,uo++,to.apply(null,fo.map(function(po){return po.value})))})},oo}function reify(eo,to){return eo===to?eo:isSeq(eo)?to:eo.constructor(to)}function validateEntry(eo){if(eo!==Object(eo))throw new TypeError("Expected [K, V] tuple: "+eo)}function collectionClass(eo){return isKeyed(eo)?KeyedCollection:isIndexed(eo)?IndexedCollection:SetCollection}function makeSequence(eo){return Object.create((isKeyed(eo)?KeyedSeq:isIndexed(eo)?IndexedSeq:SetSeq).prototype)}function cacheResultThrough(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Seq.prototype.cacheResult.call(this)}function defaultComparator(eo,to){return eo===void 0&&to===void 0?0:eo===void 0?1:to===void 0?-1:eo>to?1:eo0;)to[ro]=arguments[ro+1];if(typeof eo!="function")throw new TypeError("Invalid merger function: "+eo);return mergeIntoKeyedWith(this,to,eo)}function mergeIntoKeyedWith(eo,to,ro){for(var no=[],oo=0;oo0;)to[ro]=arguments[ro+1];return mergeDeepWithSources(this,to,eo)}function mergeIn(eo){for(var to=[],ro=arguments.length-1;ro-- >0;)to[ro]=arguments[ro+1];return updateIn$1(this,eo,emptyMap(),function(no){return mergeWithSources(no,to)})}function mergeDeepIn(eo){for(var to=[],ro=arguments.length-1;ro-- >0;)to[ro]=arguments[ro+1];return updateIn$1(this,eo,emptyMap(),function(no){return mergeDeepWithSources(no,to)})}function withMutations(eo){var to=this.asMutable();return eo(to),to.wasAltered()?to.__ensureOwner(this.__ownerID):this}function asMutable(){return this.__ownerID?this:this.__ensureOwner(new OwnerID)}function asImmutable(){return this.__ensureOwner()}function wasAltered(){return this.__altered}var Map$1=function(eo){function to(ro){return ro==null?emptyMap():isMap(ro)&&!isOrdered(ro)?ro:emptyMap().withMutations(function(no){var oo=eo(ro);assertNotInfinite(oo.size),oo.forEach(function(io,so){return no.set(so,io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){for(var no=[],oo=arguments.length;oo--;)no[oo]=arguments[oo];return emptyMap().withMutations(function(io){for(var so=0;so=no.length)throw new Error("Missing value for key: "+no[so]);io.set(no[so],no[so+1])}})},to.prototype.toString=function(){return this.__toString("Map {","}")},to.prototype.get=function(no,oo){return this._root?this._root.get(0,void 0,no,oo):oo},to.prototype.set=function(no,oo){return updateMap(this,no,oo)},to.prototype.remove=function(no){return updateMap(this,no,NOT_SET)},to.prototype.deleteAll=function(no){var oo=Collection$1(no);return oo.size===0?this:this.withMutations(function(io){oo.forEach(function(so){return io.remove(so)})})},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):emptyMap()},to.prototype.sort=function(no){return OrderedMap(sortFactory(this,no))},to.prototype.sortBy=function(no,oo){return OrderedMap(sortFactory(this,oo,no))},to.prototype.map=function(no,oo){var io=this;return this.withMutations(function(so){so.forEach(function(ao,lo){so.set(lo,no.call(oo,ao,lo,io))})})},to.prototype.__iterator=function(no,oo){return new MapIterator(this,no,oo)},to.prototype.__iterate=function(no,oo){var io=this,so=0;return this._root&&this._root.iterate(function(ao){return so++,no(ao[1],ao[0],io)},oo),so},to.prototype.__ensureOwner=function(no){return no===this.__ownerID?this:no?makeMap(this.size,this._root,no,this.__hash):this.size===0?emptyMap():(this.__ownerID=no,this.__altered=!1,this)},to}(KeyedCollection);Map$1.isMap=isMap;var MapPrototype=Map$1.prototype;MapPrototype[IS_MAP_SYMBOL]=!0;MapPrototype[DELETE]=MapPrototype.remove;MapPrototype.removeAll=MapPrototype.deleteAll;MapPrototype.setIn=setIn;MapPrototype.removeIn=MapPrototype.deleteIn=deleteIn;MapPrototype.update=update;MapPrototype.updateIn=updateIn;MapPrototype.merge=MapPrototype.concat=merge$1$1;MapPrototype.mergeWith=mergeWith$1;MapPrototype.mergeDeep=mergeDeep;MapPrototype.mergeDeepWith=mergeDeepWith;MapPrototype.mergeIn=mergeIn;MapPrototype.mergeDeepIn=mergeDeepIn;MapPrototype.withMutations=withMutations;MapPrototype.wasAltered=wasAltered;MapPrototype.asImmutable=asImmutable;MapPrototype["@@transducer/init"]=MapPrototype.asMutable=asMutable;MapPrototype["@@transducer/step"]=function(eo,to){return eo.set(to[0],to[1])};MapPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};var ArrayMapNode=function(to,ro){this.ownerID=to,this.entries=ro};ArrayMapNode.prototype.get=function(to,ro,no,oo){for(var io=this.entries,so=0,ao=io.length;so=MAX_ARRAY_MAP_SIZE)return createNodes(to,uo,oo,io);var ho=to&&to===this.ownerID,mo=ho?uo:arrCopy(uo);return po?lo?co===fo-1?mo.pop():mo[co]=mo.pop():mo[co]=[oo,io]:mo.push([oo,io]),ho?(this.entries=mo,this):new ArrayMapNode(to,mo)}};var BitmapIndexedNode=function(to,ro,no){this.ownerID=to,this.bitmap=ro,this.nodes=no};BitmapIndexedNode.prototype.get=function(to,ro,no,oo){ro===void 0&&(ro=hash$1(no));var io=1<<((to===0?ro:ro>>>to)&MASK),so=this.bitmap;return so&io?this.nodes[popCount(so&io-1)].get(to+SHIFT,ro,no,oo):oo};BitmapIndexedNode.prototype.update=function(to,ro,no,oo,io,so,ao){no===void 0&&(no=hash$1(oo));var lo=(ro===0?no:no>>>ro)&MASK,uo=1<=MAX_BITMAP_INDEXED_SIZE)return expandNodes(to,ho,co,lo,vo);if(fo&&!vo&&ho.length===2&&isLeafNode(ho[po^1]))return ho[po^1];if(fo&&vo&&ho.length===1&&isLeafNode(vo))return vo;var bo=to&&to===this.ownerID,xo=fo?vo?co:co^uo:co|uo,_o=fo?vo?setAt(ho,po,vo,bo):spliceOut(ho,po,bo):spliceIn(ho,po,vo,bo);return bo?(this.bitmap=xo,this.nodes=_o,this):new BitmapIndexedNode(to,xo,_o)};var HashArrayMapNode=function(to,ro,no){this.ownerID=to,this.count=ro,this.nodes=no};HashArrayMapNode.prototype.get=function(to,ro,no,oo){ro===void 0&&(ro=hash$1(no));var io=(to===0?ro:ro>>>to)&MASK,so=this.nodes[io];return so?so.get(to+SHIFT,ro,no,oo):oo};HashArrayMapNode.prototype.update=function(to,ro,no,oo,io,so,ao){no===void 0&&(no=hash$1(oo));var lo=(ro===0?no:no>>>ro)&MASK,uo=io===NOT_SET,co=this.nodes,fo=co[lo];if(uo&&!fo)return this;var po=updateNode(fo,to,ro+SHIFT,no,oo,io,so,ao);if(po===fo)return this;var ho=this.count;if(!fo)ho++;else if(!po&&(ho--,ho>>ro)&MASK,so=(ro===0?no:no>>>ro)&MASK,ao,lo=io===so?[mergeIntoNode(eo,to,ro+SHIFT,no,oo)]:(ao=new ValueNode(to,no,oo),io>>=1)so[ao]=ro&1?to[io++]:void 0;return so[no]=oo,new HashArrayMapNode(eo,io+1,so)}function popCount(eo){return eo-=eo>>1&1431655765,eo=(eo&858993459)+(eo>>2&858993459),eo=eo+(eo>>4)&252645135,eo+=eo>>8,eo+=eo>>16,eo&127}function setAt(eo,to,ro,no){var oo=no?eo:arrCopy(eo);return oo[to]=ro,oo}function spliceIn(eo,to,ro,no){var oo=eo.length+1;if(no&&to+1===oo)return eo[to]=ro,eo;for(var io=new Array(oo),so=0,ao=0;ao0&&io=0&&no>>ro&MASK;if(oo>=this.array.length)return new VNode([],to);var io=oo===0,so;if(ro>0){var ao=this.array[oo];if(so=ao&&ao.removeBefore(to,ro-SHIFT,no),so===ao&&io)return this}if(io&&!so)return this;var lo=editableVNode(this,to);if(!io)for(var uo=0;uo>>ro&MASK;if(oo>=this.array.length)return this;var io;if(ro>0){var so=this.array[oo];if(io=so&&so.removeAfter(to,ro-SHIFT,no),io===so&&oo===this.array.length-1)return this}var ao=editableVNode(this,to);return ao.array.splice(oo+1),io&&(ao.array[oo]=io),ao};var DONE={};function iterateList(eo,to){var ro=eo._origin,no=eo._capacity,oo=getTailOffset(no),io=eo._tail;return so(eo._root,eo._level,0);function so(uo,co,fo){return co===0?ao(uo,fo):lo(uo,co,fo)}function ao(uo,co){var fo=co===oo?io&&io.array:uo&&uo.array,po=co>ro?0:ro-co,ho=no-co;return ho>SIZE&&(ho=SIZE),function(){if(po===ho)return DONE;var mo=to?--ho:po++;return fo&&fo[mo]}}function lo(uo,co,fo){var po,ho=uo&&uo.array,mo=fo>ro?0:ro-fo>>co,vo=(no-fo>>co)+1;return vo>SIZE&&(vo=SIZE),function(){for(;;){if(po){var bo=po();if(bo!==DONE)return bo;po=null}if(mo===vo)return DONE;var xo=to?--vo:mo++;po=so(ho&&ho[xo],co-SHIFT,fo+(xo<=eo.size||to<0)return eo.withMutations(function(so){to<0?setListBounds(so,to).set(0,ro):setListBounds(so,0,to+1).set(to,ro)});to+=eo._origin;var no=eo._tail,oo=eo._root,io=MakeRef();return to>=getTailOffset(eo._capacity)?no=updateVNode(no,eo.__ownerID,0,to,ro,io):oo=updateVNode(oo,eo.__ownerID,eo._level,to,ro,io),io.value?eo.__ownerID?(eo._root=oo,eo._tail=no,eo.__hash=void 0,eo.__altered=!0,eo):makeList(eo._origin,eo._capacity,eo._level,oo,no):eo}function updateVNode(eo,to,ro,no,oo,io){var so=no>>>ro&MASK,ao=eo&&so0){var uo=eo&&eo.array[so],co=updateVNode(uo,to,ro-SHIFT,no,oo,io);return co===uo?eo:(lo=editableVNode(eo,to),lo.array[so]=co,lo)}return ao&&eo.array[so]===oo?eo:(io&&SetRef(io),lo=editableVNode(eo,to),oo===void 0&&so===lo.array.length-1?lo.array.pop():lo.array[so]=oo,lo)}function editableVNode(eo,to){return to&&eo&&to===eo.ownerID?eo:new VNode(eo?eo.array.slice():[],to)}function listNodeFor(eo,to){if(to>=getTailOffset(eo._capacity))return eo._tail;if(to<1<0;)ro=ro.array[to>>>no&MASK],no-=SHIFT;return ro}}function setListBounds(eo,to,ro){to!==void 0&&(to|=0),ro!==void 0&&(ro|=0);var no=eo.__ownerID||new OwnerID,oo=eo._origin,io=eo._capacity,so=oo+to,ao=ro===void 0?io:ro<0?io+ro:oo+ro;if(so===oo&&ao===io)return eo;if(so>=ao)return eo.clear();for(var lo=eo._level,uo=eo._root,co=0;so+co<0;)uo=new VNode(uo&&uo.array.length?[void 0,uo]:[],no),lo+=SHIFT,co+=1<=1<fo?new VNode([],no):ho;if(ho&&po>fo&&soSHIFT;bo-=SHIFT){var xo=fo>>>bo&MASK;vo=vo.array[xo]=editableVNode(vo.array[xo],no)}vo.array[fo>>>SHIFT&MASK]=ho}if(ao=po)so-=po,ao-=po,lo=SHIFT,uo=null,mo=mo&&mo.removeBefore(no,0,so);else if(so>oo||po>>lo&MASK;if(_o!==po>>>lo&MASK)break;_o&&(co+=(1<oo&&(uo=uo.removeBefore(no,lo,so-co)),uo&&po>>SHIFT<=SIZE&&oo.size>=no.size*2?(lo=oo.filter(function(uo,co){return uo!==void 0&&io!==co}),ao=lo.toKeyedSeq().map(function(uo){return uo[0]}).flip().toMap(),eo.__ownerID&&(ao.__ownerID=lo.__ownerID=eo.__ownerID)):(ao=no.remove(to),lo=io===oo.size-1?oo.pop():oo.set(io,void 0))}else if(so){if(ro===oo.get(io)[1])return eo;ao=no,lo=oo.set(io,[to,ro])}else ao=no.set(to,oo.size),lo=oo.set(oo.size,[to,ro]);return eo.__ownerID?(eo.size=ao.size,eo._map=ao,eo._list=lo,eo.__hash=void 0,eo.__altered=!0,eo):makeOrderedMap(ao,lo)}var IS_STACK_SYMBOL="@@__IMMUTABLE_STACK__@@";function isStack(eo){return!!(eo&&eo[IS_STACK_SYMBOL])}var Stack=function(eo){function to(ro){return ro==null?emptyStack():isStack(ro)?ro:emptyStack().pushAll(ro)}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.prototype.toString=function(){return this.__toString("Stack [","]")},to.prototype.get=function(no,oo){var io=this._head;for(no=wrapIndex(this,no);io&&no--;)io=io.next;return io?io.value:oo},to.prototype.peek=function(){return this._head&&this._head.value},to.prototype.push=function(){var no=arguments;if(arguments.length===0)return this;for(var oo=this.size+arguments.length,io=this._head,so=arguments.length-1;so>=0;so--)io={value:no[so],next:io};return this.__ownerID?(this.size=oo,this._head=io,this.__hash=void 0,this.__altered=!0,this):makeStack(oo,io)},to.prototype.pushAll=function(no){if(no=eo(no),no.size===0)return this;if(this.size===0&&isStack(no))return no;assertNotInfinite(no.size);var oo=this.size,io=this._head;return no.__iterate(function(so){oo++,io={value:so,next:io}},!0),this.__ownerID?(this.size=oo,this._head=io,this.__hash=void 0,this.__altered=!0,this):makeStack(oo,io)},to.prototype.pop=function(){return this.slice(1)},to.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):emptyStack()},to.prototype.slice=function(no,oo){if(wholeSlice(no,oo,this.size))return this;var io=resolveBegin(no,this.size),so=resolveEnd(oo,this.size);if(so!==this.size)return eo.prototype.slice.call(this,no,oo);for(var ao=this.size-io,lo=this._head;io--;)lo=lo.next;return this.__ownerID?(this.size=ao,this._head=lo,this.__hash=void 0,this.__altered=!0,this):makeStack(ao,lo)},to.prototype.__ensureOwner=function(no){return no===this.__ownerID?this:no?makeStack(this.size,this._head,no,this.__hash):this.size===0?emptyStack():(this.__ownerID=no,this.__altered=!1,this)},to.prototype.__iterate=function(no,oo){var io=this;if(oo)return new ArraySeq(this.toArray()).__iterate(function(lo,uo){return no(lo,uo,io)},oo);for(var so=0,ao=this._head;ao&&no(ao.value,so++,this)!==!1;)ao=ao.next;return so},to.prototype.__iterator=function(no,oo){if(oo)return new ArraySeq(this.toArray()).__iterator(no,oo);var io=0,so=this._head;return new Iterator(function(){if(so){var ao=so.value;return so=so.next,iteratorValue(no,io++,ao)}return iteratorDone()})},to}(IndexedCollection);Stack.isStack=isStack;var StackPrototype=Stack.prototype;StackPrototype[IS_STACK_SYMBOL]=!0;StackPrototype.shift=StackPrototype.pop;StackPrototype.unshift=StackPrototype.push;StackPrototype.unshiftAll=StackPrototype.pushAll;StackPrototype.withMutations=withMutations;StackPrototype.wasAltered=wasAltered;StackPrototype.asImmutable=asImmutable;StackPrototype["@@transducer/init"]=StackPrototype.asMutable=asMutable;StackPrototype["@@transducer/step"]=function(eo,to){return eo.unshift(to)};StackPrototype["@@transducer/result"]=function(eo){return eo.asImmutable()};function makeStack(eo,to,ro,no){var oo=Object.create(StackPrototype);return oo.size=eo,oo._head=to,oo.__ownerID=ro,oo.__hash=no,oo.__altered=!1,oo}var EMPTY_STACK;function emptyStack(){return EMPTY_STACK||(EMPTY_STACK=makeStack(0))}var IS_SET_SYMBOL="@@__IMMUTABLE_SET__@@";function isSet(eo){return!!(eo&&eo[IS_SET_SYMBOL])}function isOrderedSet(eo){return isSet(eo)&&isOrdered(eo)}function deepEqual(eo,to){if(eo===to)return!0;if(!isCollection(to)||eo.size!==void 0&&to.size!==void 0&&eo.size!==to.size||eo.__hash!==void 0&&to.__hash!==void 0&&eo.__hash!==to.__hash||isKeyed(eo)!==isKeyed(to)||isIndexed(eo)!==isIndexed(to)||isOrdered(eo)!==isOrdered(to))return!1;if(eo.size===0&&to.size===0)return!0;var ro=!isAssociative(eo);if(isOrdered(eo)){var no=eo.entries();return to.every(function(lo,uo){var co=no.next().value;return co&&is$1(co[1],lo)&&(ro||is$1(co[0],uo))})&&no.next().done}var oo=!1;if(eo.size===void 0)if(to.size===void 0)typeof eo.cacheResult=="function"&&eo.cacheResult();else{oo=!0;var io=eo;eo=to,to=io}var so=!0,ao=to.__iterate(function(lo,uo){if(ro?!eo.has(lo):oo?!is$1(lo,eo.get(uo,NOT_SET)):!is$1(eo.get(uo,NOT_SET),lo))return so=!1,!1});return so&&eo.size===ao}function mixin(eo,to){var ro=function(no){eo.prototype[no]=to[no]};return Object.keys(to).forEach(ro),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(to).forEach(ro),eo}function toJS(eo){if(!eo||typeof eo!="object")return eo;if(!isCollection(eo)){if(!isDataStructure(eo))return eo;eo=Seq(eo)}if(isKeyed(eo)){var to={};return eo.__iterate(function(no,oo){to[oo]=toJS(no)}),to}var ro=[];return eo.__iterate(function(no){ro.push(toJS(no))}),ro}var Set$1=function(eo){function to(ro){return ro==null?emptySet():isSet(ro)&&!isOrdered(ro)?ro:emptySet().withMutations(function(no){var oo=eo(ro);assertNotInfinite(oo.size),oo.forEach(function(io){return no.add(io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(no){return this(KeyedCollection(no).keySeq())},to.intersect=function(no){return no=Collection$1(no).toArray(),no.length?SetPrototype.intersect.apply(to(no.pop()),no):emptySet()},to.union=function(no){return no=Collection$1(no).toArray(),no.length?SetPrototype.union.apply(to(no.pop()),no):emptySet()},to.prototype.toString=function(){return this.__toString("Set {","}")},to.prototype.has=function(no){return this._map.has(no)},to.prototype.add=function(no){return updateSet(this,this._map.set(no,no))},to.prototype.remove=function(no){return updateSet(this,this._map.remove(no))},to.prototype.clear=function(){return updateSet(this,this._map.clear())},to.prototype.map=function(no,oo){var io=this,so=!1,ao=updateSet(this,this._map.mapEntries(function(lo){var uo=lo[1],co=no.call(oo,uo,uo,io);return co!==uo&&(so=!0),[co,co]},oo));return so?ao:this},to.prototype.union=function(){for(var no=[],oo=arguments.length;oo--;)no[oo]=arguments[oo];return no=no.filter(function(io){return io.size!==0}),no.length===0?this:this.size===0&&!this.__ownerID&&no.length===1?this.constructor(no[0]):this.withMutations(function(io){for(var so=0;so=0&&oo=0&&iothis.size?ro:this.find(function(no,oo){return oo===to},void 0,ro)},has:function(to){return to=wrapIndex(this,to),to>=0&&(this.size!==void 0?this.size===1/0||toto?-1:0}function hashCollection(eo){if(eo.size===1/0)return 0;var to=isOrdered(eo),ro=isKeyed(eo),no=to?1:0,oo=eo.__iterate(ro?to?function(io,so){no=31*no+hashMerge(hash$1(io),hash$1(so))|0}:function(io,so){no=no+hashMerge(hash$1(io),hash$1(so))|0}:to?function(io){no=31*no+hash$1(io)|0}:function(io){no=no+hash$1(io)|0});return murmurHashOfSize(oo,no)}function murmurHashOfSize(eo,to){return to=imul(to,3432918353),to=imul(to<<15|to>>>-15,461845907),to=imul(to<<13|to>>>-13,5),to=(to+3864292196|0)^eo,to=imul(to^to>>>16,2246822507),to=imul(to^to>>>13,3266489909),to=smi(to^to>>>16),to}function hashMerge(eo,to){return eo^to+2654435769+(eo<<6)+(eo>>2)|0}var OrderedSet=function(eo){function to(ro){return ro==null?emptyOrderedSet():isOrderedSet(ro)?ro:emptyOrderedSet().withMutations(function(no){var oo=SetCollection(ro);assertNotInfinite(oo.size),oo.forEach(function(io){return no.add(io)})})}return eo&&(to.__proto__=eo),to.prototype=Object.create(eo&&eo.prototype),to.prototype.constructor=to,to.of=function(){return this(arguments)},to.fromKeys=function(no){return this(KeyedCollection(no).keySeq())},to.prototype.toString=function(){return this.__toString("OrderedSet {","}")},to}(Set$1);OrderedSet.isOrderedSet=isOrderedSet;var OrderedSetPrototype=OrderedSet.prototype;OrderedSetPrototype[IS_ORDERED_SYMBOL]=!0;OrderedSetPrototype.zip=IndexedCollectionPrototype.zip;OrderedSetPrototype.zipWith=IndexedCollectionPrototype.zipWith;OrderedSetPrototype.zipAll=IndexedCollectionPrototype.zipAll;OrderedSetPrototype.__empty=emptyOrderedSet;OrderedSetPrototype.__make=makeOrderedSet;function makeOrderedSet(eo,to){var ro=Object.create(OrderedSetPrototype);return ro.size=eo?eo.size:0,ro._map=eo,ro.__ownerID=to,ro}var EMPTY_ORDERED_SET;function emptyOrderedSet(){return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()))}function throwOnInvalidDefaultValues(eo){if(isRecord(eo))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(isImmutable(eo))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(eo===null||typeof eo!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Record=function(to,ro){var no;throwOnInvalidDefaultValues(to);var oo=function(ao){var lo=this;if(ao instanceof oo)return ao;if(!(this instanceof oo))return new oo(ao);if(!no){no=!0;var uo=Object.keys(to),co=io._indices={};io._name=ro,io._keys=uo,io._defaultValues=to;for(var fo=0;fo0?this._next(ro.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},to}(SimpleOuterSubscriber);function mergeAll(eo){return eo===void 0&&(eo=Number.POSITIVE_INFINITY),mergeMap(identity$1,eo)}function merge$2(){for(var eo=[],to=0;to1&&typeof eo[eo.length-1]=="number"&&(ro=eo.pop())):typeof oo=="number"&&(ro=eo.pop()),no===null&&eo.length===1&&eo[0]instanceof Observable$2?eo[0]:mergeAll(ro)(fromArray(eo,no))}function filter(eo,to){return function(no){return no.lift(new FilterOperator(eo,to))}}var FilterOperator=function(){function eo(to,ro){this.predicate=to,this.thisArg=ro}return eo.prototype.call=function(to,ro){return ro.subscribe(new FilterSubscriber(to,this.predicate,this.thisArg))},eo}(),FilterSubscriber=function(eo){__extends$2(to,eo);function to(ro,no,oo){var io=eo.call(this,ro)||this;return io.predicate=no,io.thisArg=oo,io.count=0,io}return to.prototype._next=function(ro){var no;try{no=this.predicate.call(this.thisArg,ro,this.count++)}catch(oo){this.destination.error(oo);return}no&&this.destination.next(ro)},to}(Subscriber$1);function debounceTime(eo,to){return to===void 0&&(to=async),function(ro){return ro.lift(new DebounceTimeOperator(eo,to))}}var DebounceTimeOperator=function(){function eo(to,ro){this.dueTime=to,this.scheduler=ro}return eo.prototype.call=function(to,ro){return ro.subscribe(new DebounceTimeSubscriber(to,this.dueTime,this.scheduler))},eo}(),DebounceTimeSubscriber=function(eo){__extends$2(to,eo);function to(ro,no,oo){var io=eo.call(this,ro)||this;return io.dueTime=no,io.scheduler=oo,io.debouncedSubscription=null,io.lastValue=null,io.hasValue=!1,io}return to.prototype._next=function(ro){this.clearDebounce(),this.lastValue=ro,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},to.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},to.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var ro=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(ro)}},to.prototype.clearDebounce=function(){var ro=this.debouncedSubscription;ro!==null&&(this.remove(ro),ro.unsubscribe(),this.debouncedSubscription=null)},to}(Subscriber$1);function dispatchNext(eo){eo.debouncedNext()}function e$4(){return e$4=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{const ao=no.singletonCache.get(so)||no.requestCache.get(so)||no.transientCache.get(so);ao&&(io.proxyTarget.current=ao)}),no.postConstruct.forEach(io=>{io.postConstruct()}),this.currentCtx=null,oo}child(){const to=new this.constructor;return to.parent=this,to}getParent(){return this.parent}getInjectable(to){var ro;const no=this.pool.get(to);if(no)return{value:no,fromParent:!1};const oo=(ro=this.parent)==null?void 0:ro.getInjectable(to);return oo?{value:oo.value,fromParent:!0}:void 0}_resolve(to,ro,no){const oo=this.getInjectable(to);if((ro==null?void 0:ro.optional)===!0&&!oo)return;if(!oo)throw new Error(`Key: ${a$5(to)} not found`);const{value:{value:io,scope:so,type:ao},fromParent:lo}=oo;let uo,co=!1;if(ao===h$7.VALUE)return io;{const fo=no.requestedKeys.get(to);if(fo){if(!fo.constructed){if(!ro.lazy&&!lo){const po=Array.from(no.requestedKeys.entries()).pop(),ho=po?`[ ${String(po[0])}: ${po[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${ho} -> [ ${a$5(to)}: ${io.name} ]`)}co=!0}}else no.requestedKeys.set(to,{constructed:!1,value:io})}return uo=co?()=>this.createLazy(to,ao,no):()=>this.create(to,oo.value,no),this.run(so,to,uo,no)}resolveDeps(to,ro){const no=[];for(const oo of to){const{key:io,options:so}=c$7(oo);if(Array.isArray(io)){const ao=[];for(const lo of io){let uo=ro.singletonCache.get(lo.key);uo===void 0&&(uo=this._resolve(lo.key,e$4({},lo.options),ro)),uo===void 0&&so.removeUndefined||ao.push(uo)}no.push(ao.length?ao:so.setToUndefinedIfEmpty?void 0:ao)}else{let ao=ro.singletonCache.get(io);ao===void 0&&(ao=this._resolve(io,e$4({},so),ro)),no.push(ao)}}return no}createLazy(to,ro,no){const oo=no.delayed.get(to);if(oo)return oo.proxy;const io=ro===h$7.CLASS?{}:function(){},so=function(ao,lo,uo){function co(){if(!ao.current)throw new Error(`Lazy target for key:${String(uo)} not yet set`);return ao.current}return new Proxy(ao,{apply:function(fo,po){const ho=co();return Reflect.apply(ho,lo?ho:void 0,po)},construct:function(fo,po){return Reflect.construct(co(),po)},get:function(fo,po,ho){return po===t$6?fo.current:po===n$5||Reflect.get(co(),po,ho)},set:function(fo,po,ho){return Reflect.set(po==="current"?fo:co(),po,ho)},defineProperty:function(fo,po,ho){return Reflect.defineProperty(co(),po,ho)},deleteProperty:function(fo,po){return Reflect.deleteProperty(co(),po)},getPrototypeOf:function(fo){return Reflect.getPrototypeOf(co())},setPrototypeOf:function(fo,po){return Reflect.setPrototypeOf(co(),po)},getOwnPropertyDescriptor:function(fo,po){return Reflect.getOwnPropertyDescriptor(co(),po)},has:function(fo,po){return Reflect.has(co(),po)},isExtensible:function(fo){return Reflect.isExtensible(co())},ownKeys:function(fo){return Reflect.ownKeys(co())},preventExtensions:function(fo){return Reflect.preventExtensions(co())}})}(io,ro===h$7.CLASS,to);return no.delayed.set(to,{proxy:so,proxyTarget:io}),so}create(to,ro,no){const{beforeResolve:oo,afterResolve:io,value:so,type:ao}=ro,lo=so.inject;let uo=[];lo&&(uo=Array.isArray(lo)?this.resolveDeps(lo,no):lo.fn({container:this,ctx:no.ctx},...this.resolveDeps(lo.deps,no)));const co=oo?oo({container:this,value:so.original,ctx:no.ctx},...uo):so(...uo);return io&&io({container:this,value:co,ctx:no.ctx}),no.requestedKeys.get(to).constructed=!0,ao==="CLASS"&&"postConstruct"in co&&no.postConstruct.push(co),co}run(to,ro,no,oo){if(to===f$6.SINGLETON||to===f$6.CONTAINER_SINGLETON){var io;if(!this.pool.has(ro)&&to===f$6.SINGLETON)return(io=this.parent)==null?void 0:io.resolve(ro);const ao=oo.singletonCache.get(ro);if(ao!==void 0)return ao===p$7?void 0:ao;{let lo=no();return lo===void 0&&(lo=p$7),this.singletonCache.set(ro,lo),lo}}if(f$6.REQUEST===to){const ao=oo.requestCache.get(ro);if(ao!==void 0)return ao===p$7?void 0:ao;{let lo=no();return lo===void 0&&(lo=p$7),oo.requestCache.set(ro,lo),lo}}const so=no();return oo.transientCache.set(ro,so),so}};function isClassProvider(eo){return hasOwn(eo,"useClass")}function isFactoryProvider(eo){return hasOwn(eo,"useFactory")}function isValueProvider(eo){return hasOwn(eo,"useValue")}function isTokenProvider(eo){return hasOwn(eo,"useToken")}const SINGLETON=Symbol("singleton");function isConstructor(eo){return typeof eo=="function"&&!!eo.inject}function getClassScope(eo){return eo[SINGLETON]?"SINGLETON":eo.scope?eo.scope:"TRANSIENT"}class DependencyContainer extends d$6{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(to,ro){return this.has(to,!1)&&this.unbind(to),super.bindValue(to,ro)}bindClass(to,ro,no){const oo=(no==null?void 0:no.scope)??getClassScope(to);return super.bindClass(to,ro,{...no,scope:oo})}register(to,ro){if(isValueProvider(ro))this.bindValue(to,ro.useValue);else if(isFactoryProvider(ro)){const{useFactory:no}=ro;this.bindFactory(to,{value:no,inject:[ContainerToken]},{scope:ro.scope})}else if(isTokenProvider(ro))this.bindFactory(to,{value:no=>no,inject:[ro.useToken]});else if(isClassProvider(ro)){const no=ro.scope??getClassScope(ro.useClass);this.bindClass(to,ro.useClass,{scope:no})}}_resolve(to,ro,no){if(!this.getInjectable(to)&&isConstructor(to)){const oo=getClassScope(to);this.bindClass(to,to,{scope:oo})}return super._resolve(to,ro,no)}}const getGlobalContainer=()=>{const eo=new DependencyContainer;return eo.name="global",eo},container=getGlobalContainer();function createInjectionToken(eo,to){return container.bindValue(eo,to),eo}const ContainerToken=createInjectionToken("DependencyContainer",container),ServicesContext=reactExports.createContext(container),createRegistry=({provide:eo,name:to})=>({containerRef:no,onInitialize:oo,onDispose:io,children:so})=>{const ao=reactExports.useContext(ServicesContext),lo=reactExports.useMemo(()=>{const uo=ao.child();return to&&(uo.name=to),eo==null||eo.forEach(co=>{uo.register(co.token,co)}),uo.bindValue(ContainerToken,uo),oo==null||oo(uo),uo},[oo,ao]);return reactExports.useImperativeHandle(no,()=>lo,[lo]),reactExports.useEffect(()=>()=>{io==null||io(lo),lo.unbindAll(!0)},[lo]),jsxRuntimeExports.jsx(ServicesContext.Provider,{value:lo,children:so})};createInjectionToken("isControlFlowEnabledToken",!1);createInjectionToken("isDoWhileLoopEnabledToken",!1);createInjectionToken("isAnnotationEnabledToken",!1);createInjectionToken("isDesignerUnifiedSubmissionFlowEnabledToken",!1);createInjectionToken("isPipelineComputeDatastoreEnabledToken",!1);createInjectionToken("TransactionalAuthoringEnabled",!1);createInjectionToken("ComponentSettingsEnabled",!1);createInjectionToken("isPipelineOwnerToken",!1);createInjectionToken("isExecutionPhaseEnabledToken",!1);createInjectionToken("isPipelineStreamingEnabledToken",!1);createInjectionToken("useFocusedNodeId",()=>{});createInjectionToken("useIsInSearchResult",()=>!1);createInjectionToken("dismissCompareCheckListPanel",()=>null);const promptFlowGraphReducer=eo=>(to,ro)=>eo(to,ro),graphReducer=()=>getGraphReducer(promptFlowGraphReducer);let Computed$1=class l_ extends Observable$2{constructor(to,ro){super(no=>this.state$.subscribe(no)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new BehaviorSubject(to),this.subscription=ro.subscribe(this.state$)}static fromStates(to,ro){const no=ro(to.map(io=>io.getSnapshot())),oo=combineLatest(to).pipe(map$1(ro));return new l_(no,oo)}destroy(){this.subscription.unsubscribe()}},State$1=class extends BehaviorSubject{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=to=>{this.next(to)},this.updateState=to=>{this.next(to(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(to,ro){!ro&&this.value===to||super.next(to)}copyFrom(to){this.next(to.getSnapshot())}};const X0=class X0{constructor(){this.nodesIndex$=new State$1(List$1()),this.allNodeNames$=Computed$1.fromStates([],()=>List$1()),this.orientation$=new State$1(Orientation$1.Vertical),this.language$=new State$1(void 0)}tweakFlattenNodeOrder(to,ro){const no=this.nodesIndex$.getSnapshot(),oo=no.findIndex(so=>so===to),io=oo+ro;if(oo>=0&&io>=0&&io(this.addListener(to,ro),ro.next(this.get(to)),()=>{this.removeListener(to,ro)}))}notify(to){var ro;(ro=this.listeners.get(to))==null||ro.forEach(no=>{no.next(this.get(to))})}next(to){const ro=this.getSnapshot();super.next(to);const no=new Set;ro.forEach((oo,io)=>{to.has(io)||no.add(io)}),to.forEach((oo,io)=>{ro.has(io)&&Object.is(ro.get(io),oo)||no.add(io)}),no.forEach(oo=>{this.notify(oo)})}addListener(to,ro){let no=this.listeners.get(to);no||(no=new Set,this.listeners.set(to,no)),no.add(ro)}removeListener(to,ro){const no=this.listeners.get(to);no&&(no.delete(ro),no.size===0&&this.listeners.delete(to))}}class ObservableMap extends ObservableCollection{constructor(){super(Map$1())}set(to,ro){return this.updateState(no=>no.set(to,ro)),this}update(to,ro){return this.updateState(no=>no.update(to,ro)),this}delete(to){return this.updateState(ro=>ro.delete(to)),this}deleteAll(to){return this.updateState(ro=>ro.deleteAll(to)),this}clear(){return this.next(Map$1()),this}merge(to){return this.updateState(ro=>ro.merge(to)),this}}class ObservableOrderedMap extends ObservableCollection{constructor(){super(OrderedMap())}set(to,ro){return this.updateState(no=>no.set(to,ro)),this}update(to,ro){return this.updateState(no=>no.update(to,ro)),this}delete(to){return this.updateState(ro=>ro.delete(to)),this}deleteAll(to){return this.updateState(ro=>ro.deleteAll(to)),this}clear(){return this.next(OrderedMap()),this}merge(to){return this.updateState(ro=>ro.merge(to)),this}insertBefore(to,ro,no){return this.updateState(oo=>OrderedMap().withMutations(io=>{for(const[so,ao]of oo.entries())to===so&&io.set(ro,no),io.set(so,ao)})),this.notify(ro),this}insertAfter(to,ro,no){return this.updateState(oo=>OrderedMap().withMutations(io=>{for(const[so,ao]of oo.entries())io.set(so,ao),to===so&&io.set(ro,no)})),this.notify(ro),this}sortByValue(to){return this.updateState(ro=>ro.sort(to)),this}}var _a$5;const Z0=class Z0 extends FlowViewModelShared{constructor(){super(),this.isWorkspaceReady$=new State$1(!1),this.currentNodeId$=new State$1(void 0),this.graphConfig=GraphConfigBuilder.default().build(),this.graphReducer=graphReducer(),this.isReadonly$=new State$1(!1),this.name$=new State$1(""),this.flowType$=new State$1(FlowType.Default),this.owner$=new State$1(void 0),this.isArchived$=new State$1(!1),this.selectedStepId$=new State$1(void 0),this.tools$=new ObservableOrderedMap,this.toolsStatus$=new ObservableOrderedMap,this.batchInputs$=new State$1([]),this.bulkRunDataReference$=new State$1(void 0),this.chatMessages$=new State$1([]),this.nodeVariants$=new ObservableOrderedMap,this.tuningNodeNames$=new State$1([]),this.inputSpec$=new ObservableOrderedMap,this.selectedBulkIndex$=new State$1(void 0),this.nodeRuns$=new ObservableOrderedMap,this.flowRuns$=new State$1([]),this.rootFlowRunMap$=new ObservableMap,this.flowOutputs$=new ObservableOrderedMap,this.connections$=new ObservableOrderedMap,this.promptToolSetting$=new State$1(void 0),this.userInfo$=new State$1(void 0),this.bulkRunDescription$=new State$1(""),this.bulkRunTags$=new State$1([]),this.nodeParameterTypes$=new ObservableMap,this.theme$=new State$1(void 0),this.selectedRuntimeName$=new State$1(void 0),this.connectionList$=new State$1([]),this.connectionSpecList$=new State$1([]),this.connectionDeployments$=new ObservableOrderedMap,this.connectionDeploymentsLoading$=new ObservableOrderedMap,this.runStatus$=new State$1(void 0),this.flowRunType$=new State$1(void 0),this.packageToolsDictionary$=new ObservableMap,this.codeToolsDictionary$=new ObservableMap,this.isToolsJsonReady$=new State$1(!1),this.flowGraphLayout$=new State$1(void 0),this.flowUIHint$=new State$1(void 0),this.isInitialized$=new State$1(!1),this.flowFeatures$=new State$1(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(dataReadonlyMode).add(GraphFeatures.AutoFit);const ro=new Set;ro.add(FlowFeatures.OpenCodeFileInNode),this.flowFeatures$.next(ro),this.canvasState$=new State$1(createGraphState({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:GraphModel.empty()})),this.allNodeNames$=Computed$1.fromStates([this.nodeVariants$],([no])=>List$1(Array.from(no.keys()).filter(oo=>!!oo&&oo!==FLOW_INPUT_NODE_NAME&&oo!==FLOW_OUTPUT_NODE_NAME))),merge$2(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(filter(()=>this.loaded),filter(()=>this.isInitialized$.getSnapshot()),debounceTime(100)).subscribe(()=>{this.notifyFlowChange()}),merge$2(this.flowGraphLayout$,this.orientation$).pipe(debounceTime(100)).subscribe(()=>{this.notifyLayoutChange()}),merge$2(this.flowUIHint$).pipe(debounceTime(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=Computed$1.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([no,oo,io,so,ao,lo])=>this.validateNodeInputs(no))}attemptToRenameStep(to,ro){if(!checkNodeNameValid(ro))return`step name ${ro} is not valid`;if(this.nodeVariants$.get(ro))return`step with name ${ro} already exists`;if(!this.nodeVariants$.get(to))return`step ${to} not found`;const oo=(so,ao,lo)=>{const uo={...so};return Object.keys(uo).forEach(co=>{const fo=uo[co],po=getRefValueFromRaw(fo),[ho]=(po==null?void 0:po.split("."))??[];ho===ao&&(uo[co]=fo.replace(`${ao}`,`${lo}`))}),uo},io=(so,ao,lo)=>{if(!so)return;const uo={};return Object.entries(so).forEach(([co,fo])=>{var po,ho,mo;uo[co]={...fo,node:{...fo.node,name:((po=fo.node)==null?void 0:po.name)===ao?lo:(ho=fo.node)==null?void 0:ho.name,inputs:oo(((mo=fo.node)==null?void 0:mo.inputs)??{},ao,lo)}}}),uo};reactDomExports.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(so=>so.mapEntries(([ao,lo])=>{const uo={...lo,variants:io(lo.variants,to,ro)};return[ao===to?ro:ao,uo]})),this.flowGraphLayout$.updateState(so=>({...so,nodeLayouts:renameKeyInObject((so==null?void 0:so.nodeLayouts)??{},to,ro)})),this.flowUIHint$.updateState(so=>({...so,nodes:renameKeyInObject((so==null?void 0:so.nodes)??{},to,ro)})),this.currentNodeId$.getSnapshot()===to&&this.currentNodeId$.next(ro),this.selectedStepId$.getSnapshot()===to&&this.selectedStepId$.next(ro),this.nodeRuns$.getSnapshot().forEach((so,ao)=>{if(so.node===to){const[,lo,uo,co]=ao.split("#"),fo=parseInt(lo,10);this.nodeRuns$.set(this.getNodeRunKey(ro,isNaN(fo)?0:fo,uo,co),{...so,node:ro}),this.nodeRuns$.delete(ao)}})})}acceptFlowEdit(to,ro){to!==this.viewType&&this.loadFlow(ro)}loadFlow(to){this.loaded=!1;try{reactDomExports.unstable_batchedUpdates(()=>{this.baseEntity=to,this.owner$.next(to.owner),this.isArchived$.next(to.isArchived??!1),this.loadFlowDto(to),to.flowRunResult&&this.loadStatus(to.flowRunResult)}),this.loaded=!0}catch(ro){throw this.loaded=!0,ro}}loadCodeTool(to,ro){this.codeToolsDictionary$.set(to,ro)}loadPackageTool(to,ro){this.packageToolsDictionary$.set(to,ro)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(to){var io;this.clearStatus();let ro=0;const no=[],oo=new Map;if((io=to.flow_runs)!=null&&io.length){for(const so of to.flow_runs)so.index===null?oo.set(so.run_id,so):(ro=so.index,no.push(so));no.sort((so,ao)=>{var lo;return so.root_run_id===ao.root_run_id?(so.index??0)-(ao.index??0):so.variant_id&&ao.variant_id?so.variant_id.localeCompare(ao.variant_id):((lo=so.root_run_id)==null?void 0:lo.localeCompare((ao==null?void 0:ao.root_run_id)??""))??0}),this.flowRuns$.next(no),this.rootFlowRunMap$.next(Map$1(oo))}to.flowRunType&&this.flowRunType$.next(to.flowRunType),to.runStatus&&this.runStatus$.next(to.runStatus),this.loadNodesStatus(to.node_runs||[]),this.selectedBulkIndex$.next(ro)}loadNodesStatus(to){const ro=this.tuningNodeNames$.getSnapshot()[0];to.forEach(no=>{const oo=no.node===ro,io=this.getDefaultVariantId(no.node),so=no.variant_id||io,ao=oo?so:io,lo=this.getNodeRunKey(no.node,no.index??0,ao,so);this.nodeRuns$.set(lo,no)})}loadSingleNodeRunStatus(to,ro,no){this.resetNodesStatus(to,ro),no.forEach(oo=>{const io=this.getDefaultVariantId(oo.node),so=oo.variant_id||io,ao=oo.variant_id||io,lo=this.getNodeRunKey(oo.node,oo.index??0,ao,so);this.nodeRuns$.set(lo,oo)})}resetNodesStatus(to,ro){this.nodeRuns$.updateState(no=>no.filter(oo=>{if(oo.node!==to)return!0;const io=this.getDefaultVariantId(oo.node);return(oo.variant_id||io)!==ro}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(to){var ro;return((ro=this.nodeVariants$.get(to))==null?void 0:ro.defaultVariantId)||BASELINE_VARIANT_ID}setStepInput(to,ro,no,oo){const io=this.getNode(to,oo);if(!(io!=null&&io.name))return;const so={...io,inputs:{...io.inputs,[ro]:no}};this.setNode(to,oo,so)}removeStepInputs(to,ro,no){const oo=this.getNode(to,no);if(!(oo!=null&&oo.name))return;const io={...oo.inputs};ro.forEach(ao=>{delete io[ao]});const so={...oo,inputs:io};this.setNode(to,no,so)}renameStepInput(to,ro,no){const oo=this.getNode(to,BASELINE_VARIANT_ID);if(!(oo!=null&&oo.name))return;const io={...oo,inputs:renameKeyInObject(oo.inputs??{},ro,no)};this.setNode(to,BASELINE_VARIANT_ID,io)}setStepActivate(to,ro,no){const oo=this.getNode(to,ro);if(!(oo!=null&&oo.name))return;const io={...oo,activate:no};this.setNode(to,ro,io)}setStepKeyValue(to,ro,no,oo){const io=this.getNode(to,oo);if(!(io!=null&&io.name))return;const so={...io,[ro]:no};this.setNode(to,oo,so)}setStepSourcePath(to,ro,no){const oo=this.getNode(to,no);if(!(oo!=null&&oo.name))return;const io={...oo,source:{...oo.source,path:ro}};this.setNode(to,no,io)}setBatchInput(to,ro,no){const oo=this.batchInputs$.getSnapshot();if(!oo[to])return;const io=[...oo];io[to]={...io[to],[ro]:no},this.batchInputs$.setState(io)}setBulkRunTag(to,ro,no){const oo=[...this.bulkRunTags$.getSnapshot()];if(!oo[to])return;const io={};io[ro]=no,oo[to]=io,this.bulkRunTags$.next(oo)}deleteBulkRunTag(to){const ro=[...this.bulkRunTags$.getSnapshot()];ro.splice(to,1),this.bulkRunTags$.next(ro)}addBulkRunTagRow(){const to=this.bulkRunTags$.getSnapshot(),ro={"":""};this.bulkRunTags$.next([...to,ro])}getNodeRunKey(to,ro,no=BASELINE_VARIANT_ID,oo=BASELINE_VARIANT_ID){return`${to}#${ro}#${no}#${oo}`}dispatch(to){var io;let ro="";switch(to.type){case GraphCanvasEvent.Click:this.currentNodeId$.next(void 0);break;case GraphNodeEvent.Click:this.currentNodeId$.next(to.node.id,!0);break;case GraphNodeEvent.DragEnd:{ro=to.node.name??"";break}}const no=this.canvasState$.getSnapshot(),oo=this.graphReducer(no,to);if(this.canvasState$.next(oo),ro){const so=oo.data.present.nodes.find(uo=>uo.name===ro),ao=this.flowGraphLayout$.getSnapshot(),lo={...ao,nodeLayouts:{...ao==null?void 0:ao.nodeLayouts,[ro]:{...(io=ao==null?void 0:ao.nodeLayouts)==null?void 0:io[ro],x:so==null?void 0:so.x,y:so==null?void 0:so.y}}};this.flowGraphLayout$.next(lo)}}setGraphConfig(to){this.graphConfig=to;const ro=this.canvasState$.getSnapshot();this.canvasState$.next({...ro,settings:{...ro.settings,graphConfig:to}})}toFlowGraph(){const to=this.nodeVariants$.getSnapshot(),ro=getDefaultNodeList(List$1.of(...to.keys()),to);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:ro,tools:void 0}}toFlowGraphSnapshot(to){const ro=lodashExports.mapValues(this.inputSpec$.getSnapshot().toJSON(),lo=>{lo.default!==void 0&&(lo.default=convertValByType(lo.default,lo.type));const{name:uo,id:co,...fo}=lo;return fo}),no=lodashExports.mapValues(this.flowOutputs$.getSnapshot().toJSON(),lo=>{const{name:uo,id:co,...fo}=lo;return fo}),io=getNodesThatMoreThanOneVariant(to).map(lo=>lo.nodeName),so=getFlowSnapshotNodeList(List$1.of(...Object.keys(to)),to,io),ao=getVariantNodes(to);return{inputs:ro,outputs:no,nodes:so,node_variants:ao}}toNodeVariants(){const to=this.nodeVariants$.getSnapshot().toJSON(),ro={};return Object.keys(to).forEach(no=>{const oo=to[no],io={};Object.keys(oo.variants??{}).forEach(so=>{const ao=(oo.variants??{})[so];io[so]={...ao,node:ao.node?this.pruneNodeInputs(ao.node):void 0}}),ro[no]={...oo,variants:io}}),ro}toFlowRunSettings(){var to,ro;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(to=this.selectedRuntimeName$)==null?void 0:to.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(ro=this.bulkRunDataReference$.getSnapshot())==null?void 0:ro.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const to=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(to)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const to=this.flowGraphLayout$.getSnapshot()??{},ro=Array.from(this.nodeVariants$.getSnapshot().keys()),no={...to.nodeLayouts};return Object.keys(no).forEach(oo=>{no[oo]={...no[oo],index:ro.indexOf(oo)}}),{...to,nodeLayouts:no,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(to,ro){const no=this.codeToolsDictionary$.get(to);no&&this.codeToolsDictionary$.set(to,{...no,code:ro})}updateToolStatus(to,ro){const no=this.toolsStatus$.get(to);this.toolsStatus$.set(to,{...no,...ro})}updateFlowInput(to,ro){const no=this.batchInputs$.getSnapshot(),oo=no==null?void 0:no[0];let io=ro;try{const so=JSON.parse(ro);io=JSON.stringify(so)}catch{io=ro}this.batchInputs$.next([{...oo,[to]:io},...no.slice(1)])}addNewNode(to,ro){if(!to.name)return;const no=to,oo={defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:no}}};ro?this.nodeVariants$.insertBefore(ro,to.name,oo):this.nodeVariants$.set(to.name,oo)}patchEditData(to){var ro,no,oo,io;switch(to.type){case"chatInput":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const so=this.batchInputs$.getSnapshot(),ao=((ro=this.getChatInputDefinition())==null?void 0:ro.name)??DEFAULT_CHAT_INPUT_NAME;this.batchInputs$.next([{...so[0],[ao]:to.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==FlowType.Chat)return;const so=this.batchInputs$.getSnapshot(),ao=((no=this.getChatHistoryDefinition())==null?void 0:no.name)??DEFAULT_CHAT_HISTORY_NAME,lo=((oo=this.getChatInputDefinition())==null?void 0:oo.name)??DEFAULT_CHAT_INPUT_NAME,uo=((io=this.getChatOutputDefinition())==null?void 0:io.name)??DEFAULT_CHAT_OUTPUT_NAME;this.batchInputs$.next([{...so[0],[ao]:[...so[0][ao],{inputs:{[lo]:to.value.chatInput},outputs:{[uo]:to.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,reactDomExports.unstable_batchedUpdates(()=>{this.loadFlorGraph(to.value)})}finally{this.loaded=!0}break}default:{const so=to;throw new Error(`Didn't expect to get here: ${so}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(isChatInput)}getChatHistoryDefinition(){const to=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(ro=>isChatHistory(to,ro))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(isChatOutput)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(to){var so;if(!to)return;const ro=this.connectionList$.getSnapshot(),no=this.promptToolSetting$.getSnapshot(),oo=ro.find(ao=>ao.connectionName===to);if(!oo)return;const io=(so=no==null?void 0:no.providers)==null?void 0:so.find(ao=>{var lo;return oo.connectionType&&((lo=ao.connection_type)==null?void 0:lo.includes(oo.connectionType))});if(io)return io.provider}addFlowInput(to,ro){this.inputSpec$.set(to,{...ro,name:to,id:(ro==null?void 0:ro.id)??getRandomInputDefinitionId()})}addFlowOutput(to,ro){this.flowOutputs$.set(to,{...ro,name:to,id:(ro==null?void 0:ro.id)??getRandomOutputDefinitionId()})}loadFlorGraph(to){var io;const ro=(to==null?void 0:to.nodes)||[],no=(to==null?void 0:to.outputs)||{},oo=(to==null?void 0:to.inputs)||{};this.nodeVariants$.clear(),ro.forEach(so=>{so.name&&(this.nodeVariants$.get(so.name)||this.nodeVariants$.set(so.name,{defaultVariantId:BASELINE_VARIANT_ID,variants:{[BASELINE_VARIANT_ID]:{node:so}}}))}),(io=Object.entries((to==null?void 0:to.node_variants)??{}))==null||io.forEach(([so,ao])=>{const lo={...ao.variants};Object.entries(lo).forEach(([uo,co])=>{co.node&&(co.node.name=so)}),this.nodeVariants$.set(so,{defaultVariantId:ao.default_variant_id??BASELINE_VARIANT_ID,variants:lo})}),this.flowOutputs$.clear(),Object.keys(no).forEach(so=>{const ao=no[so];ao&&this.addFlowOutput(so,ao)}),this.inputSpec$.clear(),Object.keys(oo).forEach(so=>{const ao=oo[so];ao&&this.addFlowInput(so,ao)})}loadFlowDto(to){var ro,no,oo,io,so,ao,lo,uo,co,fo,po,ho,mo,vo;if(this.name$.next(to.flowName??""),this.flowType$.next(to.flowType??FlowType.Default),this.loadFlorGraph((ro=to.flow)==null?void 0:ro.flowGraph),(no=to.flow)!=null&&no.nodeVariants&&((io=Object.entries(((oo=to.flow)==null?void 0:oo.nodeVariants)??{}))==null||io.forEach(([bo,xo])=>{this.nodeVariants$.set(bo,{...xo,defaultVariantId:xo.defaultVariantId??BASELINE_VARIANT_ID})})),(ao=(so=to.flow)==null?void 0:so.flowGraphLayout)!=null&&ao.nodeLayouts){const bo=(lo=to.flow)==null?void 0:lo.flowGraphLayout;this.flowGraphLayout$.next(bo),bo.orientation&&this.orientation$.next(bo.orientation)}if(this.selectedRuntimeName$.setState(((uo=to.flowRunSettings)==null?void 0:uo.runtimeName)??""),this.batchInputs$.setState(((co=to.flowRunSettings)==null?void 0:co.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((fo=to.flowRunSettings)==null?void 0:fo.tuningNodeNames)??[]),this.bulkRunDescription$.next(to.description??""),this.bulkRunTags$.next([]),to.tags){const bo=[];Object.keys(to.tags).forEach(xo=>{var _o;bo.push({[xo]:((_o=to==null?void 0:to.tags)==null?void 0:_o[xo])??""})}),this.bulkRunTags$.next(bo)}this.initNodeParameterTypes((po=to.flow)==null?void 0:po.flowGraph),to.flowType===FlowType.Chat&&(this.initChatFlow(to),this.initChatMessages(((ho=to.flowRunSettings)==null?void 0:ho.batch_inputs)??[{}])),this.language$.next((vo=(mo=to.flow)==null?void 0:mo.flowGraph)==null?void 0:vo.language)}initNodeParameterTypes(to){if(!to)return;const ro=this.nodeVariants$.getSnapshot().toJSON();let no=Map$1(new Map);Object.keys(ro).forEach(oo=>{const io=ro[oo];Object.keys(io.variants??{}).forEach(so=>{var lo;const ao=(io.variants??{})[so];if(ao.node){const uo={inputs:{},activate:{is:void 0}},co=this.getToolOfNode(ao.node);if((ao.node.type??(co==null?void 0:co.type))===ToolType.python){const fo=Object.keys((co==null?void 0:co.inputs)??{});Object.keys(ao.node.inputs??{}).filter(mo=>!fo.includes(mo)).forEach(mo=>{var vo,bo;uo.inputs[mo]=inferTypeByVal((bo=(vo=ao.node)==null?void 0:vo.inputs)==null?void 0:bo[mo])??ValueType.string})}uo.activate.is=inferTypeByVal((lo=ao.node.activate)==null?void 0:lo.is)??ValueType.string,no=no.set(`${oo}#${so}`,uo)}})}),this.nodeParameterTypes$.next(no)}initChatFlow(to){if(to.flowType!==FlowType.Chat)return;this.inputSpec$.getSnapshot().some(io=>isChatHistory(to.flowType,io))||(this.addFlowInput(DEFAULT_CHAT_HISTORY_NAME,{name:DEFAULT_CHAT_HISTORY_NAME,type:ValueType.list}),this.batchInputs$.updateState(io=>[{...io[0],[DEFAULT_CHAT_HISTORY_NAME]:[]},...io.slice(1)])),this.inputSpec$.getSnapshot().some(io=>isChatInput(io))||this.addFlowInput(DEFAULT_CHAT_INPUT_NAME,{name:DEFAULT_CHAT_INPUT_NAME,type:ValueType.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(io=>isChatOutput(io))||this.addFlowOutput(DEFAULT_CHAT_OUTPUT_NAME,{name:DEFAULT_CHAT_OUTPUT_NAME,type:ValueType.string,is_chat_output:!0})}initChatMessages(to){var ao,lo,uo;const ro=((ao=this.getChatHistoryDefinition())==null?void 0:ao.name)??DEFAULT_CHAT_HISTORY_NAME,no=to[0][ro];if(!Array.isArray(no))return;const oo=((lo=this.getChatInputDefinition())==null?void 0:lo.name)??DEFAULT_CHAT_INPUT_NAME,io=((uo=this.getChatOutputDefinition())==null?void 0:uo.name)??DEFAULT_CHAT_OUTPUT_NAME,so=parseChatMessages(oo,io,no);this.chatMessages$.next(so),this.syncChatMessagesToInputsValues(so)}syncChatMessagesToInputsValues(to){var no,oo,io;if(this.batchInputs$.getSnapshot().length<=1){const so=((no=this.getChatInputDefinition())==null?void 0:no.name)??DEFAULT_CHAT_INPUT_NAME,ao=((oo=this.getChatOutputDefinition())==null?void 0:oo.name)??DEFAULT_CHAT_OUTPUT_NAME,lo=((io=this.getChatHistoryDefinition())==null?void 0:io.name)??DEFAULT_CHAT_HISTORY_NAME,uo=[];for(let co=0;co[{...co[0],[lo]:uo}])}}getNode(to,ro){var no,oo,io;return(io=(oo=(no=this.nodeVariants$.get(to))==null?void 0:no.variants)==null?void 0:oo[ro])==null?void 0:io.node}setNode(to,ro,no){var io;const oo=this.nodeVariants$.get(to);this.nodeVariants$.set(to,{defaultVariantId:(oo==null?void 0:oo.defaultVariantId)??BASELINE_VARIANT_ID,variants:{...oo==null?void 0:oo.variants,[ro]:{...(io=oo==null?void 0:oo.variants)==null?void 0:io[ro],node:no}}})}getAllLlmParameterKeys(){var to;if(this._allLlmParameterKeys.length===0){const ro=this.promptToolSetting$.getSnapshot();if(!ro)return[];const no=(to=ro.providers)==null?void 0:to.flatMap(io=>{var so;return(so=io.apis)==null?void 0:so.map(ao=>ao.parameters)}),oo=new Set(no==null?void 0:no.flatMap(io=>Object.keys(io??{})));this._allLlmParameterKeys=[...oo.values()]}return this._allLlmParameterKeys}pruneNodeInputs(to){var fo,po,ho,mo;const ro=to?this.getToolOfNode(to):void 0,no=this.promptToolSetting$.getSnapshot(),oo=this.connectionList$.getSnapshot(),io=this.connectionSpecList$.getSnapshot();if(!ro||!no)return to;if((to.type??ro.type)===ToolType.python&&ro.enable_kwargs){const vo={};return Object.keys(to.inputs??{}).forEach(bo=>{var xo,_o,So,Eo;if(((xo=to.inputs)==null?void 0:xo[bo])!==void 0){const ko=(_o=ro.inputs)==null?void 0:_o[bo];vo[bo]=convertValByType((So=to.inputs)==null?void 0:So[bo],(Eo=ko==null?void 0:ko.type)==null?void 0:Eo[0])}}),{...to,inputs:vo}}const so=this.getProviderByConnection(to.connection??"");if((to.type??ro.type)===ToolType.llm&&(!so||!to.api))return to;const ao=(to.type??ro.type)===ToolType.llm,lo=ao?(mo=(ho=(po=(fo=no==null?void 0:no.providers)==null?void 0:fo.find(vo=>vo.provider===so))==null?void 0:po.apis)==null?void 0:ho.find(vo=>vo.api===to.api))==null?void 0:mo.parameters:void 0,uo=new Set(filterNodeInputsKeys(ro.inputs,to.inputs,oo,io).concat(ao?this.getAllLlmParameterKeys():[])),co={};return Object.keys(to.inputs??{}).forEach(vo=>{var bo,xo,_o,So;if(uo.has(vo)&&((bo=to.inputs)==null?void 0:bo[vo])!==void 0){const Eo=((xo=ro.inputs)==null?void 0:xo[vo])??(lo==null?void 0:lo[vo]);co[vo]=convertValByType((_o=to.inputs)==null?void 0:_o[vo],(So=Eo==null?void 0:Eo.type)==null?void 0:So[0])}}),{...to,inputs:co}}getToolOfNode(to){var oo,io;const ro=this.codeToolsDictionary$.get(((oo=to.source)==null?void 0:oo.path)??""),no=this.packageToolsDictionary$.get(((io=to.source)==null?void 0:io.tool)??"");return resolveTool(to,ro,no,so=>this.codeToolsDictionary$.get(so))}validateNodeInputs(to){const ro=new Map,no=this.getNodesInCycle(to),oo=this.connectionList$.getSnapshot(),io=this.connectionSpecList$.getSnapshot(),so=[];return this.inputSpec$.getSnapshot().forEach((lo,uo)=>{const co=lo.default,fo=lo.type;if(co!==void 0&&co!==""&&!isTypeValid(co,fo)){const po={section:"inputs",parameterName:uo,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};so.push(po)}}),so.length>0&&ro.set(`${FLOW_INPUT_NODE_NAME}#`,so),Array.from(to.values()).forEach(lo=>{const{variants:uo={}}=lo;Object.keys(uo).forEach(co=>{var xo,_o,So;const fo=uo[co],{node:po}=fo,ho=po?this.getToolOfNode(po):void 0,mo=filterNodeInputsKeys(ho==null?void 0:ho.inputs,po==null?void 0:po.inputs,oo,io);if(!po||!po.name)return;if(!ho){const Eo=po;ro.set(`${po.name}#${co}`,[{type:ValidationErrorType.MissingTool,message:`Can't find tool ${((xo=Eo==null?void 0:Eo.source)==null?void 0:xo.tool)??((_o=Eo==null?void 0:Eo.source)==null?void 0:_o.path)}`}]);return}const vo=[],bo=this.validateNodeConfig(po,ho);if(bo&&vo.push(bo),mo.forEach(Eo=>{const ko=this.validateNodeInputRequired(ho,po,Eo);ko&&vo.push(ko)}),po.inputs&&vo.push(...Object.keys(po.inputs).map(Eo=>{if(!mo.includes(Eo)&&!ho.enable_kwargs)return;const{isReference:ko,error:wo}=this.validateNodeInputReference(po,"inputs",Eo,to,no);if(wo)return wo;if(!ko)return this.validateNodeInputType(ho,po,co,Eo)}).filter(Boolean)),po.activate){const{error:Eo}=this.validateNodeInputReference(po,"activate","when",to,no);Eo&&vo.push(Eo);const ko=po.activate.is,wo=(So=this.nodeParameterTypes$.get(`${po.name}#${co}`))==null?void 0:So.activate.is;if(!isTypeValid(ko,wo)){const Co={section:"activate",parameterName:"is",type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"};vo.push(Co)}}ro.set(`${po.name}#${co}`,vo)})}),ro}getNodesInCycle(to){const ro=getDefaultNodeList(List$1.of(...to.keys()),to),no=new Map;ro.forEach(uo=>{var fo;const co=(po,ho,mo)=>{const vo=getRefValueFromRaw(mo),[bo]=(vo==null?void 0:vo.split("."))??[];!bo||isFlowInput(bo)||no.set(`${uo.name}.${po}.${ho}`,bo)};Object.keys((uo==null?void 0:uo.inputs)??{}).forEach(po=>{var mo;const ho=(mo=uo.inputs)==null?void 0:mo[po];co("inputs",po,ho)}),co("activate","when",(fo=uo.activate)==null?void 0:fo.when)});const oo=new Map,io=new Map,so=new Map,ao=new Map;return ro.forEach(uo=>{const co=uo.name;co&&(oo.set(co,0),io.set(co,0),so.set(co,[]),ao.set(co,[]))}),ro.forEach(uo=>{const co=uo.name;if(!co)return;const fo=(po,ho)=>{const mo=no.get(`${co}.${po}.${ho}`);mo&&(oo.set(co,(oo.get(co)??0)+1),io.set(mo,(io.get(mo)??0)+1),so.set(mo,[...so.get(mo)??[],co]),ao.set(co,[...ao.get(co)??[],mo]))};Object.keys((uo==null?void 0:uo.inputs)??{}).forEach(po=>{fo("inputs",po)}),fo("activate","when")}),getCycle(oo,so,io,ao)}validateNodeConfig(to,ro){var oo,io,so,ao,lo,uo,co;const no=this.promptToolSetting$.getSnapshot();if((to.type??(ro==null?void 0:ro.type))===ToolType.llm){if(!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(vo=>vo.connectionName===to.connection))return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is not valid"};if(!to.api)return{parameterName:"api",type:ValidationErrorType.NodeConfigInvalid,message:"api is required"};const fo=this.getProviderByConnection(to.connection),po=(ao=(so=(io=(oo=no==null?void 0:no.providers)==null?void 0:oo.find(vo=>vo.provider===fo))==null?void 0:io.apis)==null?void 0:so.find(vo=>vo.api===to.api))==null?void 0:ao.parameters;if((po==null?void 0:po.model)&&!((lo=to.inputs)!=null&&lo.model))return{parameterName:"model",type:ValidationErrorType.NodeConfigInvalid,message:"model is required"};if((po==null?void 0:po.deployment_name)&&!((uo=to.inputs)!=null&&uo.deployment_name))return{parameterName:"deployment_name",type:ValidationErrorType.NodeConfigInvalid,message:"deployment_name is required"}}if(ro&&((co=ro==null?void 0:ro.connection_type)!=null&&co.length)&&!to.connection)return{parameterName:"connection",type:ValidationErrorType.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(to,ro,no){var io,so,ao;if(((so=(io=to.inputs)==null?void 0:io[no])==null?void 0:so.default)!==void 0)return;const oo=(ao=ro.inputs)==null?void 0:ao[no];if(oo===void 0||oo==="")return{section:"inputs",parameterName:no,type:ValidationErrorType.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(to,ro,no,oo,io){var fo;const so=(fo=to==null?void 0:to[ro])==null?void 0:fo[no],ao=getRefValueFromRaw(so),[lo,uo]=(ao==null?void 0:ao.split("."))??[];return lo?isFlowInput(lo)?this.inputSpec$.get(uo)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputDependencyNotFound,message:`${ao} is not a valid flow input`}}:lo===to.name?{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputSelfReference,message:"Input cannot reference itself"}}:oo.get(lo)?to.name&&io.has(to.name)&&io.has(lo)?{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:ro,parameterName:no,type:ValidationErrorType.InputDependencyNotFound,message:`${lo} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(to,ro,no,oo){var lo,uo,co,fo,po;const io=(lo=ro.inputs)==null?void 0:lo[oo];if(!io)return;const so=(uo=to==null?void 0:to.inputs)==null?void 0:uo[oo],ao=((co=so==null?void 0:so.type)==null?void 0:co[0])??((po=(fo=this.nodeParameterTypes$.get(`${ro.name}#${no}`))==null?void 0:fo.inputs)==null?void 0:po[oo]);if(!(!io||!to||!ao)&&!isTypeValid(io,ao))return{section:"inputs",parameterName:oo,type:ValidationErrorType.InputInvalidType,message:"Input type is not valid"}}};_a$5=SINGLETON,Z0[_a$5]=!0;let BaseFlowViewModel=Z0;class DefaultFlowViewModel extends BaseFlowViewModel{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}createInjectionToken("FlowViewModel",new DefaultFlowViewModel);function useInjected(...eo){const to=reactExports.useContext(ServicesContext);return reactExports.useMemo(()=>eo.map(ro=>{try{return to.resolve(ro)}catch(no){throw[ro,no]}}),[to].concat(eo))}var shim$1={exports:{}},useSyncExternalStoreShim_production_min={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var e$3=reactExports;function h$6(eo,to){return eo===to&&(eo!==0||1/eo===1/to)||eo!==eo&&to!==to}var k$5=typeof Object.is=="function"?Object.is:h$6,l$6=e$3.useState,m$7=e$3.useEffect,n$4=e$3.useLayoutEffect,p$6=e$3.useDebugValue;function q$2(eo,to){var ro=to(),no=l$6({inst:{value:ro,getSnapshot:to}}),oo=no[0].inst,io=no[1];return n$4(function(){oo.value=ro,oo.getSnapshot=to,r$4(oo)&&io({inst:oo})},[eo,ro,to]),m$7(function(){return r$4(oo)&&io({inst:oo}),eo(function(){r$4(oo)&&io({inst:oo})})},[eo]),p$6(ro),ro}function r$4(eo){var to=eo.getSnapshot;eo=eo.value;try{var ro=to();return!k$5(eo,ro)}catch{return!0}}function t$5(eo,to){return to()}var u$6=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t$5:q$2;useSyncExternalStoreShim_production_min.useSyncExternalStore=e$3.useSyncExternalStore!==void 0?e$3.useSyncExternalStore:u$6;shim$1.exports=useSyncExternalStoreShim_production_min;var shimExports=shim$1.exports;const useSubscribe=eo=>reactExports.useCallback(to=>{const ro=eo.subscribe(to);return()=>{ro.unsubscribe()}},[eo]);function useState(eo){const to=useSubscribe(eo),{getSnapshot:ro}=eo;return shimExports.useSyncExternalStore(to,ro)}function useSetState(eo){return reactExports.useCallback(to=>{typeof to!="function"?eo.setState(to):eo.setState(to(eo.getSnapshot()))},[eo])}of(void 0);var _a$4;const Q0=class Q0{constructor(to,ro){this.isChatBoxBottomTipVisible$=new State$1(to.isChatBoxBottomTipVisible),this.simpleMode$=new State$1(to.simpleMode),this.freezeLayout$=new State$1(to.freezeLayout),this.viewMyOnlyFlow$=new State$1(to.viewMyOnlyFlow),this.viewOnlyMyRuns$=new State$1(to.viewOnlyMyRuns),this.viewArchived$=new State$1(to.viewArchived),this.wrapTextOn$=new State$1(to.wrapTextOn),this.diffModeOn$=new State$1(to.diffModeOn),this.isRightTopPaneCollapsed$=new State$1(to.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new State$1(to.isRightBottomPaneCollapsed),this.leftPaneWidth$=new State$1(to.leftPaneWidth),this.rightTopPaneHeight$=new State$1(to.rightTopPaneHeight);const no=(oo,io)=>{io.subscribe(so=>{ro({...this.getSettingsSnapshot(),[oo]:so})})};no("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),no("simpleMode",this.simpleMode$),no("freezeLayout",this.freezeLayout$),no("viewMyOnlyFlow",this.viewMyOnlyFlow$),no("viewOnlyMyRuns",this.viewOnlyMyRuns$),no("viewArchived",this.viewArchived$),no("wrapTextOn",this.wrapTextOn$),no("diffModeOn",this.diffModeOn$),no("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),no("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),no("leftPaneWidth",this.leftPaneWidth$),no("rightTopPaneHeight",this.rightTopPaneHeight$)}getSettingsSnapshot(){return{isChatBoxBottomTipVisible:this.isChatBoxBottomTipVisible$.getSnapshot(),simpleMode:this.simpleMode$.getSnapshot(),freezeLayout:this.freezeLayout$.getSnapshot(),viewMyOnlyFlow:this.viewMyOnlyFlow$.getSnapshot(),viewOnlyMyRuns:this.viewOnlyMyRuns$.getSnapshot(),viewArchived:this.viewArchived$.getSnapshot(),wrapTextOn:this.wrapTextOn$.getSnapshot(),diffModeOn:this.diffModeOn$.getSnapshot(),isRightTopPaneCollapsed:this.isRightTopPaneCollapsed$.getSnapshot(),isRightBottomPaneCollapsed:this.isRightBottomPaneCollapsed$.getSnapshot(),leftPaneWidth:this.leftPaneWidth$.getSnapshot(),rightTopPaneHeight:this.rightTopPaneHeight$.getSnapshot()}}};_a$4=SINGLETON,Q0[_a$4]=!0;let BaseFlowSettingViewModel=Q0;class DefaultFlowSettingViewModel extends BaseFlowSettingViewModel{constructor(){super({isChatBoxBottomTipVisible:!0,simpleMode:!0,freezeLayout:!1,viewMyOnlyFlow:!1,viewOnlyMyRuns:!1,viewArchived:!0,wrapTextOn:!1,diffModeOn:!1,isRightTopPaneCollapsed:!0,isRightBottomPaneCollapsed:!1,leftPaneWidth:"66%",rightTopPaneHeight:360},()=>{})}}createInjectionToken("FlowSettingViewModel",new DefaultFlowSettingViewModel);makeStyles({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});mergeStyleSets({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});const isInVscodeWebview=typeof acquireVsCodeApi<"u";isInVscodeWebview&&acquireVsCodeApi();var _a$3;const J0=class J0{constructor(){this.extensionConfigurations$=new State$1(void 0),this.isPackageInstalled$=new State$1(void 0),this.sdkVersion$=new State$1(void 0),this.sdkFeatureList$=new State$1([]),this.uxFeatureList$=new State$1([])}};_a$3=SINGLETON,J0[_a$3]=!0;let VSCodeExtensionViewModel=J0;createInjectionToken("VSCodeFlowViewModel",new VSCodeExtensionViewModel);React.createContext({variantName:BASELINE_VARIANT_ID,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function createCommonjsModule(eo,to,ro){return ro={path:to,exports:{},require:function(no,oo){return commonjsRequire(no,oo??ro.path)}},eo(ro,ro.exports),ro.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var classnames$1=createCommonjsModule(function(eo){/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(){var to={}.hasOwnProperty;function ro(){for(var no=[],oo=0;oo1&&arguments[1]!==void 0?arguments[1]:{},ro=[];return React.Children.forEach(eo,function(no){no==null&&!to.keepEmpty||(Array.isArray(no)?ro=ro.concat(toArray(no)):reactIs.isFragment(no)&&no.props?ro=ro.concat(toArray(no.props.children,to)):ro.push(no))}),ro}function _defineProperty$3(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function ownKeys$2(eo,to){var ro=Object.keys(eo);if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(eo);to&&(no=no.filter(function(oo){return Object.getOwnPropertyDescriptor(eo,oo).enumerable})),ro.push.apply(ro,no)}return ro}function _objectSpread2$2(eo){for(var to=1;to0},eo.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},eo.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},eo.prototype.onTransitionEnd_=function(to){var ro=to.propertyName,no=ro===void 0?"":ro,oo=transitionKeys.some(function(io){return!!~no.indexOf(io)});oo&&this.refresh()},eo.getInstance=function(){return this.instance_||(this.instance_=new eo),this.instance_},eo.instance_=null,eo}(),defineConfigurable=function(eo,to){for(var ro=0,no=Object.keys(to);ro"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var ro=this.observations_;ro.has(to)||(ro.set(to,new ResizeObservation(to)),this.controller_.addObserver(this),this.controller_.refresh())}},eo.prototype.unobserve=function(to){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(to instanceof getWindowOf(to).Element))throw new TypeError('parameter 1 is not of type "Element".');var ro=this.observations_;ro.has(to)&&(ro.delete(to),ro.size||this.controller_.removeObserver(this))}},eo.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},eo.prototype.gatherActive=function(){var to=this;this.clearActive(),this.observations_.forEach(function(ro){ro.isActive()&&to.activeObservations_.push(ro)})},eo.prototype.broadcastActive=function(){if(this.hasActive()){var to=this.callbackCtx_,ro=this.activeObservations_.map(function(no){return new ResizeObserverEntry(no.target,no.broadcastRect())});this.callback_.call(to,ro,to),this.clearActive()}},eo.prototype.clearActive=function(){this.activeObservations_.splice(0)},eo.prototype.hasActive=function(){return this.activeObservations_.length>0},eo}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$1=function(){function eo(to){if(!(this instanceof eo))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ro=ResizeObserverController.getInstance(),no=new ResizeObserverSPI(to,ro,this);observers.set(this,no)}return eo}();["observe","unobserve","disconnect"].forEach(function(eo){ResizeObserver$1.prototype[eo]=function(){var to;return(to=observers.get(this))[eo].apply(to,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$1}(),elementListeners=new Map;function onResize(eo){eo.forEach(function(to){var ro,no=to.target;(ro=elementListeners.get(no))===null||ro===void 0||ro.forEach(function(oo){return oo(no)})})}var resizeObserver=new index$1(onResize);function observe(eo,to){elementListeners.has(eo)||(elementListeners.set(eo,new Set),resizeObserver.observe(eo)),elementListeners.get(eo).add(to)}function unobserve(eo,to){elementListeners.has(eo)&&(elementListeners.get(eo).delete(to),elementListeners.get(eo).size||(resizeObserver.unobserve(eo),elementListeners.delete(eo)))}function _classCallCheck$2(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(eo,to){for(var ro=0;ro"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _typeof$3(eo){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$3(eo)}function _assertThisInitialized$1(eo){if(eo===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eo}function _possibleConstructorReturn$1(eo,to){if(to&&(_typeof$3(to)==="object"||typeof to=="function"))return to;if(to!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(eo)}function _createSuper$1(eo){var to=_isNativeReflectConstruct$1();return function(){var no=_getPrototypeOf$1(eo),oo;if(to){var io=_getPrototypeOf$1(this).constructor;oo=Reflect.construct(no,arguments,io)}else oo=no.apply(this,arguments);return _possibleConstructorReturn$1(this,oo)}}var DomWrapper=function(eo){_inherits$1(ro,eo);var to=_createSuper$1(ro);function ro(){return _classCallCheck$2(this,ro),to.apply(this,arguments)}return _createClass$2(ro,[{key:"render",value:function(){return this.props.children}}]),ro}(reactExports.Component),CollectionContext=reactExports.createContext(null);function Collection(eo){var to=eo.children,ro=eo.onBatchResize,no=reactExports.useRef(0),oo=reactExports.useRef([]),io=reactExports.useContext(CollectionContext),so=reactExports.useCallback(function(ao,lo,uo){no.current+=1;var co=no.current;oo.current.push({size:ao,element:lo,data:uo}),Promise.resolve().then(function(){co===no.current&&(ro==null||ro(oo.current),oo.current=[])}),io==null||io(ao,lo,uo)},[ro,io]);return reactExports.createElement(CollectionContext.Provider,{value:so},to)}function SingleObserver(eo){var to=eo.children,ro=eo.disabled,no=reactExports.useRef(null),oo=reactExports.useRef(null),io=reactExports.useContext(CollectionContext),so=typeof to=="function",ao=so?to(no):to,lo=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),uo=!so&&reactExports.isValidElement(ao)&&supportRef(ao),co=uo?ao.ref:null,fo=reactExports.useMemo(function(){return composeRef(co,no)},[co,no]),po=reactExports.useRef(eo);po.current=eo;var ho=reactExports.useCallback(function(mo){var vo=po.current,bo=vo.onResize,xo=vo.data,_o=mo.getBoundingClientRect(),So=_o.width,Eo=_o.height,ko=mo.offsetWidth,wo=mo.offsetHeight,Co=Math.floor(So),Ro=Math.floor(Eo);if(lo.current.width!==Co||lo.current.height!==Ro||lo.current.offsetWidth!==ko||lo.current.offsetHeight!==wo){var Ao={width:Co,height:Ro,offsetWidth:ko,offsetHeight:wo};lo.current=Ao;var Io=ko===Math.round(So)?So:ko,$o=wo===Math.round(Eo)?Eo:wo,Bo=_objectSpread2$2(_objectSpread2$2({},Ao),{},{offsetWidth:Io,offsetHeight:$o});io==null||io(Bo,mo,xo),bo&&Promise.resolve().then(function(){bo(Bo,mo)})}},[]);return reactExports.useEffect(function(){var mo=findDOMNode(no.current)||findDOMNode(oo.current);return mo&&!ro&&observe(mo,ho),function(){return unobserve(mo,ho)}},[no.current,ro]),reactExports.createElement(DomWrapper,{ref:oo},uo?reactExports.cloneElement(ao,{ref:fo}):ao)}var INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$2(eo){var to=eo.children,ro=typeof to=="function"?[to]:toArray(to);return ro.map(function(no,oo){var io=(no==null?void 0:no.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(oo);return reactExports.createElement(SingleObserver,_extends$1$1({},eo,{key:io}),no)})}ResizeObserver$2.Collection=Collection;function ownKeys$1$1(eo,to){var ro=Object.keys(eo);if(Object.getOwnPropertySymbols){var no=Object.getOwnPropertySymbols(eo);to&&(no=no.filter(function(oo){return Object.getOwnPropertyDescriptor(eo,oo).enumerable})),ro.push.apply(ro,no)}return ro}function _objectSpread$1(eo){for(var to=1;to1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var ro=rafUUID;function no(oo){if(oo===0)cleanup(ro),eo();else{var io=raf(function(){no(oo-1)});rafIds.set(ro,io)}}return no(to),ro}wrapperRaf.cancel=function(eo){var to=rafIds.get(eo);return cleanup(to),caf(to)};function _typeof$2(eo){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(to){return typeof to}:function(to){return to&&typeof Symbol=="function"&&to.constructor===Symbol&&to!==Symbol.prototype?"symbol":typeof to},_typeof$2(eo)}function _defineProperty$1$1(eo,to,ro){return to in eo?Object.defineProperty(eo,to,{value:ro,enumerable:!0,configurable:!0,writable:!0}):eo[to]=ro,eo}function _classCallCheck$1(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(eo,to){for(var ro=0;ro"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(eo){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(ro){return ro.__proto__||Object.getPrototypeOf(ro)},_getPrototypeOf(eo)}var MIN_SIZE=20;function getPageY(eo){return"touches"in eo?eo.touches[0].pageY:eo.pageY}var ScrollBar=function(eo){_inherits(ro,eo);var to=_createSuper(ro);function ro(){var no;_classCallCheck$1(this,ro);for(var oo=arguments.length,io=new Array(oo),so=0;solo},no}return _createClass$1(ro,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(oo){oo.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var oo=this.state,io=oo.dragging,so=oo.visible,ao=this.props.prefixCls,lo=this.getSpinHeight(),uo=this.getTop(),co=this.showScroll(),fo=co&&so;return reactExports.createElement("div",{ref:this.scrollbarRef,className:classnames$1("".concat(ao,"-scrollbar"),_defineProperty$1$1({},"".concat(ao,"-scrollbar-show"),co)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:fo?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},reactExports.createElement("div",{ref:this.thumbRef,className:classnames$1("".concat(ao,"-scrollbar-thumb"),_defineProperty$1$1({},"".concat(ao,"-scrollbar-thumb-moving"),io)),style:{width:"100%",height:lo,top:uo,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),ro}(reactExports.Component);function Item(eo){var to=eo.children,ro=eo.setRef,no=reactExports.useCallback(function(oo){ro(oo)},[]);return reactExports.cloneElement(to,{ref:no})}function useChildren(eo,to,ro,no,oo,io){var so=io.getKey;return eo.slice(to,ro+1).map(function(ao,lo){var uo=to+lo,co=oo(ao,uo,{}),fo=so(ao);return reactExports.createElement(Item,{key:fo,setRef:function(ho){return no(ao,ho)}},co)})}function _classCallCheck(eo,to){if(!(eo instanceof to))throw new TypeError("Cannot call a class as a function")}function _defineProperties(eo,to){for(var ro=0;roeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);rojo&&(Eo="bottom")}}Mo!==null&&Mo!==eo.current.scrollTop&&so(Mo)}lo.current=wrapperRaf(function(){So&&io(),vo(bo-1,Eo)})}};mo(3)}}}function findListDiffIndex(eo,to,ro){var no=eo.length,oo=to.length,io,so;if(no===0&&oo===0)return null;noeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro"u"?"undefined":_typeof(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),useOriginScroll=function(eo,to){var ro=reactExports.useRef(!1),no=reactExports.useRef(null);function oo(){clearTimeout(no.current),ro.current=!0,no.current=setTimeout(function(){ro.current=!1},50)}var io=reactExports.useRef({top:eo,bottom:to});return io.current.top=eo,io.current.bottom=to,function(so){var ao=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lo=so<0&&io.current.top||so>0&&io.current.bottom;return ao&&lo?(clearTimeout(no.current),ro.current=!1):(!lo||ro.current)&&oo(),!ro.current&&lo}};function useFrameWheel(eo,to,ro,no){var oo=reactExports.useRef(0),io=reactExports.useRef(null),so=reactExports.useRef(null),ao=reactExports.useRef(!1),lo=useOriginScroll(to,ro);function uo(fo){if(eo){wrapperRaf.cancel(io.current);var po=fo.deltaY;oo.current+=po,so.current=po,!lo(po)&&(isFF||fo.preventDefault(),io.current=wrapperRaf(function(){var ho=ao.current?10:1;no(oo.current*ho),oo.current=0}))}}function co(fo){eo&&(ao.current=fo.detail===so.current)}return[uo,co]}function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useLayoutEffect$1=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,SMOOTH_PTG=14/15;function useMobileTouchMove(eo,to,ro){var no=reactExports.useRef(!1),oo=reactExports.useRef(0),io=reactExports.useRef(null),so=reactExports.useRef(null),ao,lo=function(po){if(no.current){var ho=Math.ceil(po.touches[0].pageY),mo=oo.current-ho;oo.current=ho,ro(mo)&&po.preventDefault(),clearInterval(so.current),so.current=setInterval(function(){mo*=SMOOTH_PTG,(!ro(mo,!0)||Math.abs(mo)<=.1)&&clearInterval(so.current)},16)}},uo=function(){no.current=!1,ao()},co=function(po){ao(),po.touches.length===1&&!no.current&&(no.current=!0,oo.current=Math.ceil(po.touches[0].pageY),io.current=po.target,io.current.addEventListener("touchmove",lo),io.current.addEventListener("touchend",uo))};ao=function(){io.current&&(io.current.removeEventListener("touchmove",lo),io.current.removeEventListener("touchend",uo))},useLayoutEffect$1(function(){return eo&&to.current.addEventListener("touchstart",co),function(){var fo;(fo=to.current)===null||fo===void 0||fo.removeEventListener("touchstart",co),ao(),clearInterval(so.current)}},[eo])}var _excluded=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _extends$9(){return _extends$9=Object.assign||function(eo){for(var to=1;toeo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro=0)&&Object.prototype.propertyIsEnumerable.call(eo,no)&&(ro[no]=eo[no])}return ro}function _objectWithoutPropertiesLoose$1(eo,to){if(eo==null)return{};var ro={},no=Object.keys(eo),oo,io;for(io=0;io=0)&&(ro[oo]=eo[oo]);return ro}var EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(eo,to){var ro=eo.prefixCls,no=ro===void 0?"rc-virtual-list":ro,oo=eo.className,io=eo.height,so=eo.itemHeight,ao=eo.fullHeight,lo=ao===void 0?!0:ao,uo=eo.style,co=eo.data,fo=eo.children,po=eo.itemKey,ho=eo.virtual,mo=eo.component,vo=mo===void 0?"div":mo,bo=eo.onScroll,xo=eo.onVisibleChange,_o=_objectWithoutProperties$1(eo,_excluded),So=!!(ho!==!1&&io&&so),Eo=So&&co&&so*co.length>io,ko=reactExports.useState(0),wo=_slicedToArray$3(ko,2),Co=wo[0],Ro=wo[1],Ao=reactExports.useState(!1),Io=_slicedToArray$3(Ao,2),$o=Io[0],Bo=Io[1],Mo=classnames$1(no,oo),Ho=co||EMPTY_DATA,jo=reactExports.useRef(),Oo=reactExports.useRef(),Fo=reactExports.useRef(),Go=reactExports.useCallback(function(Hs){return typeof po=="function"?po(Hs):Hs==null?void 0:Hs[po]},[po]),qo={getKey:Go};function Xo(Hs){Ro(function(Qs){var El;typeof Hs=="function"?El=Hs(Qs):El=Hs;var xl=Kl(El);return jo.current.scrollTop=xl,xl})}var Zo=reactExports.useRef({start:0,end:Ho.length}),Qo=reactExports.useRef(),xs=useDiffItem(Ho,Go),Ts=_slicedToArray$3(xs,1),Rs=Ts[0];Qo.current=Rs;var Os=useHeights(Go,null,null),As=_slicedToArray$3(Os,4),Ds=As[0],Jo=As[1],Cs=As[2],Bs=As[3],zs=reactExports.useMemo(function(){if(!So)return{scrollHeight:void 0,start:0,end:Ho.length-1,offset:void 0};if(!Eo){var Hs;return{scrollHeight:((Hs=Oo.current)===null||Hs===void 0?void 0:Hs.offsetHeight)||0,start:0,end:Ho.length-1,offset:void 0}}for(var Qs=0,El,xl,Ol,ru=Ho.length,au=0;au=Co&&El===void 0&&(El=au,xl=Qs),Ql>Co+io&&Ol===void 0&&(Ol=au),Qs=Ql}return El===void 0&&(El=0,xl=0),Ol===void 0&&(Ol=Ho.length-1),Ol=Math.min(Ol+1,Ho.length),{scrollHeight:Qs,start:El,end:Ol,offset:xl}},[Eo,So,Co,Ho,Bs,io]),Ls=zs.scrollHeight,ga=zs.start,Js=zs.end,Zs=zs.offset;Zo.current.start=ga,Zo.current.end=Js;var $a=Ls-io,Ll=reactExports.useRef($a);Ll.current=$a;function Kl(Hs){var Qs=Hs;return Number.isNaN(Ll.current)||(Qs=Math.min(Qs,Ll.current)),Qs=Math.max(Qs,0),Qs}var Zl=Co<=0,$l=Co>=$a,xa=useOriginScroll(Zl,$l);function Sl(Hs){var Qs=Hs;Xo(Qs)}function cu(Hs){var Qs=Hs.currentTarget.scrollTop;Qs!==Co&&Xo(Qs),bo==null||bo(Hs)}var ks=useFrameWheel(So,Zl,$l,function(Hs){Xo(function(Qs){var El=Qs+Hs;return El})}),Es=_slicedToArray$3(ks,2),bs=Es[0],ws=Es[1];useMobileTouchMove(So,jo,function(Hs,Qs){return xa(Hs,Qs)?!1:(bs({preventDefault:function(){},deltaY:Hs}),!0)}),useLayoutEffect$1(function(){function Hs(Qs){So&&Qs.preventDefault()}return jo.current.addEventListener("wheel",bs),jo.current.addEventListener("DOMMouseScroll",ws),jo.current.addEventListener("MozMousePixelScroll",Hs),function(){jo.current&&(jo.current.removeEventListener("wheel",bs),jo.current.removeEventListener("DOMMouseScroll",ws),jo.current.removeEventListener("MozMousePixelScroll",Hs))}},[So]);var Gs=useScrollTo(jo,Ho,Cs,so,Go,Jo,Xo,function(){var Hs;(Hs=Fo.current)===null||Hs===void 0||Hs.delayHidden()});reactExports.useImperativeHandle(to,function(){return{scrollTo:Gs}}),useLayoutEffect$1(function(){if(xo){var Hs=Ho.slice(ga,Js+1);xo(Hs,Ho)}},[ga,Js,Ho]);var Ks=useChildren(Ho,ga,Js,Ds,fo,qo),Ms=null;return io&&(Ms=_objectSpread(_defineProperty$4({},lo?"height":"maxHeight",io),ScrollStyle),So&&(Ms.overflowY="hidden",$o&&(Ms.pointerEvents="none"))),reactExports.createElement("div",_extends$9({style:_objectSpread(_objectSpread({},uo),{},{position:"relative"}),className:Mo},_o),reactExports.createElement(vo,{className:"".concat(no,"-holder"),style:Ms,ref:jo,onScroll:cu},reactExports.createElement(Filler,{prefixCls:no,height:Ls,offset:Zs,onInnerResize:Jo,ref:Oo},Ks)),So&&reactExports.createElement(ScrollBar,{ref:Fo,prefixCls:no,scrollTop:Co,height:io,scrollHeight:Ls,count:Ho.length,onScroll:Sl,onStartMove:function(){Bo(!0)},onStopMove:function(){Bo(!1)}}))}var List=reactExports.forwardRef(RawList);List.displayName="List";var arrDel=function(eo,to){var ro=eo.slice(),no=ro.indexOf(to);return no>=0&&ro.splice(no,1),ro},arrAdd=function(eo,to){var ro=eo.slice();return ro.indexOf(to)===-1&&ro.push(to),ro},ROOT_NODE_ID="$root",Node$1=function(){function eo(to){var ro=this,no,oo,io,so=to.node,ao=to.flattenNodes,lo=to.parent,uo=to.selectedKeySet,co=uo===void 0?new Set:uo,fo=to.expandedKeySet,po=fo===void 0?new Set:fo,ho=to.loadInfo,mo=ho===void 0?{loadingKeys:[],loadedKeys:[]}:ho;this.internal=so,this.parent=lo,this.level=((oo=(no=this.parent)===null||no===void 0?void 0:no.level)!==null&&oo!==void 0?oo:-1)+1,this.selected=co.has(so.id),this.expanded=po.has(so.id)||so.id===ROOT_NODE_ID,this.ancestorExpanded=!!(lo!=null&&lo.expanded&&(lo!=null&&lo.ancestorExpanded))||so.id===ROOT_NODE_ID,this.loading=mo.loadingKeys.includes(so.id),this.loaded=mo.loadedKeys.includes(so.id),this.isLeaf=(io=so.isLeaf)!==null&&io!==void 0?io:!(so.children.length>0),eo.nodesMap.set(so.id,this),this.level>0&&this.ancestorExpanded&&ao.push(this),this.childNodes=so.children.map(function(vo){return new eo({node:vo,parent:ro,selectedKeySet:co,expandedKeySet:po,loadInfo:mo,flattenNodes:ao})})}return Object.defineProperty(eo.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(eo.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),eo.init=function(to,ro,no,oo){ro===void 0&&(ro=[]),no===void 0&&(no=[]),eo.nodesMap=new Map;var io=[];return eo.root=new eo({node:{title:"",children:to,searchKeys:[],id:ROOT_NODE_ID},selectedKeySet:new Set(ro),expandedKeySet:new Set(no),loadInfo:oo,flattenNodes:io}),io},eo.nodesMap=new Map,eo}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var __assign$2=function(){return __assign$2=Object.assign||function(to){for(var ro,no=1,oo=arguments.length;no"u"?InjectionMode.none:InjectionMode.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},to),this._classNameToArgs=(no=ro==null?void 0:ro.classNameToArgs)!==null&&no!==void 0?no:this._classNameToArgs,this._counter=(oo=ro==null?void 0:ro.counter)!==null&&oo!==void 0?oo:this._counter,this._keyToClassName=(so=(io=this._config.classNameCache)!==null&&io!==void 0?io:ro==null?void 0:ro.keyToClassName)!==null&&so!==void 0?so:this._keyToClassName,this._preservedRules=(ao=ro==null?void 0:ro.preservedRules)!==null&&ao!==void 0?ao:this._preservedRules,this._rules=(lo=ro==null?void 0:ro.rules)!==null&&lo!==void 0?lo:this._rules}return eo.getInstance=function(){if(_stylesheet=_global[STYLESHEET_SETTING],!_stylesheet||_stylesheet._lastStyleElement&&_stylesheet._lastStyleElement.ownerDocument!==document){var to=(_global==null?void 0:_global.FabricConfig)||{},ro=new eo(to.mergeStyles,to.serializedStylesheet);_stylesheet=ro,_global[STYLESHEET_SETTING]=ro}return _stylesheet},eo.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},eo.prototype.setConfig=function(to){this._config=__assign$2(__assign$2({},this._config),to)},eo.prototype.onReset=function(to){var ro=this;return this._onResetCallbacks.push(to),function(){ro._onResetCallbacks=ro._onResetCallbacks.filter(function(no){return no!==to})}},eo.prototype.onInsertRule=function(to){var ro=this;return this._onInsertRuleCallbacks.push(to),function(){ro._onInsertRuleCallbacks=ro._onInsertRuleCallbacks.filter(function(no){return no!==to})}},eo.prototype.getClassName=function(to){var ro=this._config.namespace,no=to||this._config.defaultPrefix;return(ro?ro+"-":"")+no+"-"+this._counter++},eo.prototype.cacheClassName=function(to,ro,no,oo){this._keyToClassName[ro]=to,this._classNameToArgs[to]={args:no,rules:oo}},eo.prototype.classNameFromKey=function(to){return this._keyToClassName[to]},eo.prototype.getClassNameCache=function(){return this._keyToClassName},eo.prototype.argsFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.args},eo.prototype.insertedRulesFromClassName=function(to){var ro=this._classNameToArgs[to];return ro&&ro.rules},eo.prototype.insertRule=function(to,ro){var no=this._config.injectionMode,oo=no!==InjectionMode.none?this._getStyleElement():void 0;if(ro&&this._preservedRules.push(to),oo)switch(no){case InjectionMode.insertNode:var io=oo.sheet;try{io.insertRule(to,io.cssRules.length)}catch{}break;case InjectionMode.appendChild:oo.appendChild(document.createTextNode(to));break}else this._rules.push(to);this._config.onInsertRule&&this._config.onInsertRule(to),this._onInsertRuleCallbacks.forEach(function(so){return so()})},eo.prototype.getRules=function(to){return(to?this._preservedRules.join(""):"")+this._rules.join("")},eo.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(to){return to()})},eo.prototype.resetKeys=function(){this._keyToClassName={}},eo.prototype._getStyleElement=function(){var to=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),REUSE_STYLE_NODE||window.requestAnimationFrame(function(){to._styleElement=void 0})),this._styleElement},eo.prototype._createStyleElement=function(){var to=document.head,ro=document.createElement("style"),no=null;ro.setAttribute("data-merge-styles","true");var oo=this._config.cspSettings;if(oo&&oo.nonce&&ro.setAttribute("nonce",oo.nonce),this._lastStyleElement)no=this._lastStyleElement.nextElementSibling;else{var io=this._findPlaceholderStyleTag();io?no=io.nextElementSibling:no=to.childNodes[0]}return to.insertBefore(ro,to.contains(no)?no:null),this._lastStyleElement=ro,ro},eo.prototype._findPlaceholderStyleTag=function(){var to=document.head;return to?to.querySelector("style[data-merge-styles]"):null},eo}();function extractStyleParts(){for(var eo=[],to=0;to=0)io(uo.split(" "));else{var co=oo.argsFromClassName(uo);co?io(co):ro.indexOf(uo)===-1&&ro.push(uo)}else Array.isArray(uo)?io(uo):typeof uo=="object"&&no.push(uo)}}return io(eo),{classes:ro,objects:no}}function getRTL(){return _rtl===void 0&&(_rtl=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),_rtl}var _rtl;_rtl=getRTL();function getStyleOptions(){return{rtl:getRTL()}}var rules={};function kebabRules(eo,to){var ro=eo[to];ro.charAt(0)!=="-"&&(eo[to]=rules[ro]=rules[ro]||ro.replace(/([A-Z])/g,"-$1").toLowerCase())}var _vendorSettings;function getVendorSettings(){var eo;if(!_vendorSettings){var to=typeof document<"u"?document:void 0,ro=typeof navigator<"u"?navigator:void 0,no=(eo=ro==null?void 0:ro.userAgent)===null||eo===void 0?void 0:eo.toLowerCase();to?_vendorSettings={isWebkit:!!(to&&"WebkitAppearance"in to.documentElement.style),isMoz:!!(no&&no.indexOf("firefox")>-1),isOpera:!!(no&&no.indexOf("opera")>-1),isMs:!!(ro&&(/rv:11.0/i.test(ro.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:_vendorSettings={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return _vendorSettings}var autoPrefixNames={"user-select":1};function prefixRules(eo,to){var ro=getVendorSettings(),no=eo[to];if(autoPrefixNames[no]){var oo=eo[to+1];autoPrefixNames[no]&&(ro.isWebkit&&eo.push("-webkit-"+no,oo),ro.isMoz&&eo.push("-moz-"+no,oo),ro.isMs&&eo.push("-ms-"+no,oo),ro.isOpera&&eo.push("-o-"+no,oo))}}var NON_PIXEL_NUMBER_PROPS=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function provideUnits(eo,to){var ro=eo[to],no=eo[to+1];if(typeof no=="number"){var oo=NON_PIXEL_NUMBER_PROPS.indexOf(ro)>-1,io=ro.indexOf("--")>-1,so=oo||io?"":"px";eo[to+1]=""+no+so}}var _a$2,LEFT="left",RIGHT="right",NO_FLIP="@noflip",NAME_REPLACEMENTS=(_a$2={},_a$2[LEFT]=RIGHT,_a$2[RIGHT]=LEFT,_a$2),VALUE_REPLACEMENTS={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function rtlifyRules(eo,to,ro){if(eo.rtl){var no=to[ro];if(!no)return;var oo=to[ro+1];if(typeof oo=="string"&&oo.indexOf(NO_FLIP)>=0)to[ro+1]=oo.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(no.indexOf(LEFT)>=0)to[ro]=no.replace(LEFT,RIGHT);else if(no.indexOf(RIGHT)>=0)to[ro]=no.replace(RIGHT,LEFT);else if(String(oo).indexOf(LEFT)>=0)to[ro+1]=oo.replace(LEFT,RIGHT);else if(String(oo).indexOf(RIGHT)>=0)to[ro+1]=oo.replace(RIGHT,LEFT);else if(NAME_REPLACEMENTS[no])to[ro]=NAME_REPLACEMENTS[no];else if(VALUE_REPLACEMENTS[oo])to[ro+1]=VALUE_REPLACEMENTS[oo];else switch(no){case"margin":case"padding":to[ro+1]=flipQuad(oo);break;case"box-shadow":to[ro+1]=negateNum(oo,0);break}}}function negateNum(eo,to){var ro=eo.split(" "),no=parseInt(ro[to],10);return ro[0]=ro[0].replace(String(no),String(no*-1)),ro.join(" ")}function flipQuad(eo){if(typeof eo=="string"){var to=eo.split(" ");if(to.length===4)return to[0]+" "+to[3]+" "+to[2]+" "+to[1]}return eo}function tokenizeWithParentheses(eo){for(var to=[],ro=0,no=0,oo=0;ooro&&to.push(eo.substring(ro,oo)),ro=oo+1);break}return ro-1&&to.push([no.index,no.index+no[0].length,no[1].split(",").map(function(oo){return":global("+oo.trim()+")"}).join(", ")]);return to.reverse().reduce(function(oo,io){var so=io[0],ao=io[1],lo=io[2],uo=oo.slice(0,so),co=oo.slice(ao);return uo+lo+co},eo)}function expandSelector(eo,to){return eo.indexOf(":global(")>=0?eo.replace(globalSelectorRegExp,"$1"):eo.indexOf(":")===0?to+eo:eo.indexOf("&")<0?to+" "+eo:eo}function extractSelector(eo,to,ro,no){to===void 0&&(to={__order:[]}),ro.indexOf("@")===0?(ro=ro+"{"+eo,extractRules([no],to,ro)):ro.indexOf(",")>-1?expandCommaSeparatedGlobals(ro).split(",").map(function(oo){return oo.trim()}).forEach(function(oo){return extractRules([no],to,expandSelector(oo,eo))}):extractRules([no],to,expandSelector(ro,eo))}function extractRules(eo,to,ro){to===void 0&&(to={__order:[]}),ro===void 0&&(ro="&");var no=Stylesheet.getInstance(),oo=to[ro];oo||(oo={},to[ro]=oo,to.__order.push(ro));for(var io=0,so=eo;io"u")){var no=document.head||document.getElementsByTagName("head")[0],oo=document.createElement("style");oo.type="text/css",ro==="top"&&no.firstChild?no.insertBefore(oo,no.firstChild):no.appendChild(oo),oo.styleSheet?oo.styleSheet.cssText=eo:oo.appendChild(document.createTextNode(eo))}}var css_248z=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",classes$3={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};styleInject(css_248z);var mergeTreeClasses=function(eo){return{root:mergeStyles(classes$3.root,eo==null?void 0:eo.root)}},mergeTreeNodeClasses=function(eo,to){var ro,no,oo;return{item:mergeStyles(classes$3.item,to==null?void 0:to.item),icon:mergeStyles(classes$3.icon,eo.expanded&&classes$3.expanded,eo.isLeaf&&classes$3.leaf),group:mergeStyles(classes$3.group,to==null?void 0:to.group),inner:mergeStyles(classes$3.inner,to==null?void 0:to.inner),content:mergeStyles(classes$3.content,(ro=to==null?void 0:to.content)===null||ro===void 0?void 0:ro.base,eo.expanded&&((no=to==null?void 0:to.content)===null||no===void 0?void 0:no.expand),eo.isLeaf&&((oo=to==null?void 0:to.content)===null||oo===void 0?void 0:oo.leaf))}},TreeNode$1=reactExports.forwardRef(function(eo,to){var ro,no,oo,io,so,ao,lo,uo,co=eo.node,fo=eo.classes,po=eo.indent,ho=eo.calcIndent,mo=eo.onNodeClick,vo=eo.renderIcon,bo=eo.renderContent,xo=eo.renderInnerContent,_o=!co.isLeaf&&co.expanded,So=mergeTreeNodeClasses(co,fo),Eo=ho?ho(co):{item:(co.level-1)*((ro=po==null?void 0:po.item)!==null&&ro!==void 0?ro:20)+((no=po==null?void 0:po.root)!==null&&no!==void 0?no:0),innerItem:co.level*((oo=po==null?void 0:po.item)!==null&&oo!==void 0?oo:20)+((io=po==null?void 0:po.root)!==null&&io!==void 0?io:0)},ko=reactExports.useCallback(function(wo){wo.preventDefault(),wo.stopPropagation()},[]);return reactExports.createElement("div",{key:co.id,role:"treeitem","aria-selected":co.selected,"aria-expanded":co.expanded,tabIndex:-1,className:So.item,onClick:mo.bind(null,co),"data-item-id":co.id,ref:to},reactExports.createElement("div",{className:So.content,style:{paddingLeft:(so=Eo.item)!==null&&so!==void 0?so:20}},(ao=vo==null?void 0:vo(co))!==null&&ao!==void 0?ao:reactExports.createElement("span",{className:So.icon}),(lo=bo==null?void 0:bo(co))!==null&&lo!==void 0?lo:reactExports.createElement("span",{role:"button"},co.title)),_o&&reactExports.createElement(reactExports.Fragment,null,xo&&reactExports.createElement("div",{role:"group",key:"innerContent",className:So.inner,style:{paddingLeft:(uo=Eo.innerItem)!==null&&uo!==void 0?uo:40},onClick:ko},xo(co))))});TreeNode$1.displayName="TreeNode";var ReactAccessibleTree=reactExports.forwardRef(function(eo,to){var ro=eo.selectedKeys,no=ro===void 0?[]:ro,oo=eo.expandedKeys,io=oo===void 0?[]:oo,so=eo.treeData,ao=eo.classes,lo=eo.indent,uo=eo.height,co=eo.itemHeight,fo=eo.virtual,po=eo.calcIndent,ho=eo.onKeyDown,mo=eo.renderIcon,vo=eo.renderContent,bo=eo.renderInnerContent,xo=eo.onSelect,_o=eo.multiple,So=eo.onExpand,Eo=eo.loadData,ko=reactExports.useState({loadedKeys:[],loadingKeys:[]}),wo=ko[0],Co=ko[1],Ro=reactExports.useRef(null),Ao=reactExports.useRef(null),Io=reactExports.useMemo(function(){return Node$1.init(so,no,io,wo)},[so,no,io,wo]);reactExports.useImperativeHandle(to,function(){return{scrollTo:function(Xo){var Zo;(Zo=Ao.current)===null||Zo===void 0||Zo.scrollTo(Xo)}}}),reactExports.useEffect(function(){Ho(0)},[]);var $o=function(Xo,Zo){var Qo=no,xs=Zo.id,Ts=!Zo.selected;Ts?_o?Qo=arrAdd(Qo,xs):Qo=[xs]:Qo=arrDel(Qo,xs),xo==null||xo(Qo,{node:Zo,selected:Ts,nativeEvent:Xo})},Bo=function(Xo,Zo){var Qo=io,xs=Zo.id,Ts=!Zo.expanded;Ts?Qo=arrAdd(Qo,xs):Qo=arrDel(Qo,xs),So==null||So(Qo,{node:Zo,expanded:Ts,nativeEvent:Xo}),Ts&&Eo&&Mo(Zo)},Mo=function(Xo){Co(function(Zo){var Qo=Zo.loadedKeys,xs=Zo.loadingKeys,Ts=Xo.id;if(!Eo||Qo.includes(Ts)||xs.includes(Ts))return wo;var Rs=Eo(Xo);return Rs.then(function(){var Os=wo.loadedKeys,As=wo.loadingKeys,Ds=arrAdd(Os,Ts),Jo=arrDel(As,Ts);Co({loadedKeys:Ds,loadingKeys:Jo})}),{loadedKeys:Qo,loadingKeys:arrAdd(xs,Ts)}})},Ho=function(Xo){var Zo,Qo,xs=Array.from((Qo=(Zo=Ro.current)===null||Zo===void 0?void 0:Zo.querySelectorAll("div[role='treeitem']"))!==null&&Qo!==void 0?Qo:[]);xs.forEach(function(Ts,Rs){Rs===Xo?Ts.setAttribute("tabindex","0"):Ts.setAttribute("tabindex","-1")})},jo=function(Xo){var Zo,Qo,xs;Xo.stopPropagation();var Ts=Xo.target;if(Ts.getAttribute("role")!=="treeitem"||Xo.ctrlKey||Xo.metaKey)return-1;var Rs=Array.from((Qo=(Zo=Ro.current)===null||Zo===void 0?void 0:Zo.querySelectorAll("div[role='treeitem']"))!==null&&Qo!==void 0?Qo:[]),Os=Rs.indexOf(Ts),As=Xo.keyCode>=65&&Xo.keyCode<=90;if(As){var Ds=-1,Jo=Rs.findIndex(function(zs,Ls){var ga=zs.getAttribute("data-item-id"),Js=Node$1.nodesMap.get(ga??""),Zs=Js==null?void 0:Js.searchKeys.some(function($a){return $a.match(new RegExp("^"+Xo.key,"i"))});return Zs&&Ls>Os?!0:(Zs&&Ls<=Os&&(Ds=Ds===-1?Ls:Ds),!1)}),Cs=Jo===-1?Ds:Jo;return(xs=Rs[Cs])===null||xs===void 0||xs.focus(),Cs}switch(Xo.key){case"ArrowDown":{var Bs=(Os+1)%Rs.length;return Rs[Bs].focus(),Bs}case"ArrowUp":{var Bs=(Os-1+Rs.length)%Rs.length;return Rs[Bs].focus(),Bs}case"ArrowLeft":case"ArrowRight":return Ts.click(),Os;case"Home":return Rs[0].focus(),0;case"End":return Rs[Rs.length-1].focus(),Rs.length-1;default:return ho==null||ho(Xo),Os}},Oo=function(Xo){var Zo=jo(Xo);Zo>-1&&Ho(Zo)},Fo=function(Xo,Zo){Zo.stopPropagation(),$o(Zo,Xo),!(Xo.loading||Xo.loaded&&Xo.isLeaf)&&Bo(Zo,Xo)},Go=mergeTreeClasses(ao),qo=function(Xo){return Xo.id};return reactExports.createElement("div",{role:"tree",className:Go.root,onKeyDown:Oo,ref:Ro},reactExports.createElement(List,{data:Io,itemKey:qo,height:uo,fullHeight:!1,virtual:fo,itemHeight:co,ref:Ao},function(Xo){return reactExports.createElement(TreeNode$1,{key:Xo.id,node:Xo,classes:ao,indent:lo,calcIndent:po,renderIcon:mo,renderContent:vo,renderInnerContent:bo,onNodeClick:Fo})}))});ReactAccessibleTree.displayName="ReactAccessibleTree";var __extends$1=function(){var eo=function(to,ro){return eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(no,oo){no.__proto__=oo}||function(no,oo){for(var io in oo)Object.prototype.hasOwnProperty.call(oo,io)&&(no[io]=oo[io])},eo(to,ro)};return function(to,ro){eo(to,ro);function no(){this.constructor=to}to.prototype=ro===null?Object.create(ro):(no.prototype=ro.prototype,new no)}}(),__assign$1=function(){return __assign$1=Object.assign||function(eo){for(var to,ro=1,no=arguments.length;ro"u"?void 0:Number(no),maxHeight:typeof oo>"u"?void 0:Number(oo),minWidth:typeof io>"u"?void 0:Number(io),minHeight:typeof so>"u"?void 0:Number(so)}},definedProps=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=function(eo){__extends(to,eo);function to(ro){var no=eo.call(this,ro)||this;return no.ratio=1,no.resizable=null,no.parentLeft=0,no.parentTop=0,no.resizableLeft=0,no.resizableRight=0,no.resizableTop=0,no.resizableBottom=0,no.targetLeft=0,no.targetTop=0,no.appendBase=function(){if(!no.resizable||!no.window)return null;var oo=no.parentNode;if(!oo)return null;var io=no.window.document.createElement("div");return io.style.width="100%",io.style.height="100%",io.style.position="absolute",io.style.transform="scale(0, 0)",io.style.left="0",io.style.flex="0 0 100%",io.classList?io.classList.add(baseClassName):io.className+=baseClassName,oo.appendChild(io),io},no.removeBase=function(oo){var io=no.parentNode;io&&io.removeChild(oo)},no.ref=function(oo){oo&&(no.resizable=oo)},no.state={isResizing:!1,width:typeof(no.propsSize&&no.propsSize.width)>"u"?"auto":no.propsSize&&no.propsSize.width,height:typeof(no.propsSize&&no.propsSize.height)>"u"?"auto":no.propsSize&&no.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},no.onResizeStart=no.onResizeStart.bind(no),no.onMouseMove=no.onMouseMove.bind(no),no.onMouseUp=no.onMouseUp.bind(no),no}return Object.defineProperty(to.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"size",{get:function(){var ro=0,no=0;if(this.resizable&&this.window){var oo=this.resizable.offsetWidth,io=this.resizable.offsetHeight,so=this.resizable.style.position;so!=="relative"&&(this.resizable.style.position="relative"),ro=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:oo,no=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:io,this.resizable.style.position=so}return{width:ro,height:no}},enumerable:!1,configurable:!0}),Object.defineProperty(to.prototype,"sizeStyle",{get:function(){var ro=this,no=this.props.size,oo=function(ao){if(typeof ro.state[ao]>"u"||ro.state[ao]==="auto")return"auto";if(ro.propsSize&&ro.propsSize[ao]&&ro.propsSize[ao].toString().endsWith("%")){if(ro.state[ao].toString().endsWith("%"))return ro.state[ao].toString();var lo=ro.getParentSize(),uo=Number(ro.state[ao].toString().replace("px","")),co=uo/lo[ao]*100;return co+"%"}return getStringSize(ro.state[ao])},io=no&&typeof no.width<"u"&&!this.state.isResizing?getStringSize(no.width):oo("width"),so=no&&typeof no.height<"u"&&!this.state.isResizing?getStringSize(no.height):oo("height");return{width:io,height:so}},enumerable:!1,configurable:!0}),to.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var ro=this.appendBase();if(!ro)return{width:0,height:0};var no=!1,oo=this.parentNode.style.flexWrap;oo!=="wrap"&&(no=!0,this.parentNode.style.flexWrap="wrap"),ro.style.position="relative",ro.style.minWidth="100%",ro.style.minHeight="100%";var io={width:ro.offsetWidth,height:ro.offsetHeight};return no&&(this.parentNode.style.flexWrap=oo),this.removeBase(ro),io},to.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},to.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},to.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var ro=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:ro.flexBasis!=="auto"?ro.flexBasis:void 0})}},to.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},to.prototype.createSizeForCssProperty=function(ro,no){var oo=this.propsSize&&this.propsSize[no];return this.state[no]==="auto"&&this.state.original[no]===ro&&(typeof oo>"u"||oo==="auto")?"auto":ro},to.prototype.calculateNewMaxFromBoundary=function(ro,no){var oo=this.props.boundsByDirection,io=this.state.direction,so=oo&&hasDirection("left",io),ao=oo&&hasDirection("top",io),lo,uo;if(this.props.bounds==="parent"){var co=this.parentNode;co&&(lo=so?this.resizableRight-this.parentLeft:co.offsetWidth+(this.parentLeft-this.resizableLeft),uo=ao?this.resizableBottom-this.parentTop:co.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(lo=so?this.resizableRight:this.window.innerWidth-this.resizableLeft,uo=ao?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(lo=so?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),uo=ao?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return lo&&Number.isFinite(lo)&&(ro=ro&&ro"u"?10:io.width,fo=typeof oo.width>"u"||oo.width<0?ro:oo.width,po=typeof io.height>"u"?10:io.height,ho=typeof oo.height>"u"||oo.height<0?no:oo.height,mo=lo||0,vo=uo||0;if(ao){var bo=(po-mo)*this.ratio+vo,xo=(ho-mo)*this.ratio+vo,_o=(co-vo)/this.ratio+mo,So=(fo-vo)/this.ratio+mo,Eo=Math.max(co,bo),ko=Math.min(fo,xo),wo=Math.max(po,_o),Co=Math.min(ho,So);ro=clamp(ro,Eo,ko),no=clamp(no,wo,Co)}else ro=clamp(ro,co,fo),no=clamp(no,po,ho);return{newWidth:ro,newHeight:no}},to.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var ro=this.parentNode;if(ro){var no=ro.getBoundingClientRect();this.parentLeft=no.left,this.parentTop=no.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var oo=this.props.bounds.getBoundingClientRect();this.targetLeft=oo.left,this.targetTop=oo.top}if(this.resizable){var io=this.resizable.getBoundingClientRect(),so=io.left,ao=io.top,lo=io.right,uo=io.bottom;this.resizableLeft=so,this.resizableRight=lo,this.resizableTop=ao,this.resizableBottom=uo}},to.prototype.onResizeStart=function(ro,no){if(!(!this.resizable||!this.window)){var oo=0,io=0;if(ro.nativeEvent&&isMouseEvent(ro.nativeEvent)?(oo=ro.nativeEvent.clientX,io=ro.nativeEvent.clientY):ro.nativeEvent&&isTouchEvent(ro.nativeEvent)&&(oo=ro.nativeEvent.touches[0].clientX,io=ro.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var so=this.props.onResizeStart(ro,no,this.resizable);if(so===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var ao,lo=this.window.getComputedStyle(this.resizable);if(lo.flexBasis!=="auto"){var uo=this.parentNode;if(uo){var co=this.window.getComputedStyle(uo).flexDirection;this.flexDir=co.startsWith("row")?"row":"column",ao=lo.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var fo={original:{x:oo,y:io,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(ro.target).cursor||"auto"}),direction:no,flexBasis:ao};this.setState(fo)}},to.prototype.onMouseMove=function(ro){var no=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(ro))try{ro.preventDefault(),ro.stopPropagation()}catch{}var oo=this.props,io=oo.maxWidth,so=oo.maxHeight,ao=oo.minWidth,lo=oo.minHeight,uo=isTouchEvent(ro)?ro.touches[0].clientX:ro.clientX,co=isTouchEvent(ro)?ro.touches[0].clientY:ro.clientY,fo=this.state,po=fo.direction,ho=fo.original,mo=fo.width,vo=fo.height,bo=this.getParentSize(),xo=calculateNewMax(bo,this.window.innerWidth,this.window.innerHeight,io,so,ao,lo);io=xo.maxWidth,so=xo.maxHeight,ao=xo.minWidth,lo=xo.minHeight;var _o=this.calculateNewSizeFromDirection(uo,co),So=_o.newHeight,Eo=_o.newWidth,ko=this.calculateNewMaxFromBoundary(io,so);this.props.snap&&this.props.snap.x&&(Eo=findClosestSnap(Eo,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(So=findClosestSnap(So,this.props.snap.y,this.props.snapGap));var wo=this.calculateNewSizeFromAspectRatio(Eo,So,{width:ko.maxWidth,height:ko.maxHeight},{width:ao,height:lo});if(Eo=wo.newWidth,So=wo.newHeight,this.props.grid){var Co=snap(Eo,this.props.grid[0]),Ro=snap(So,this.props.grid[1]),Ao=this.props.snapGap||0;Eo=Ao===0||Math.abs(Co-Eo)<=Ao?Co:Eo,So=Ao===0||Math.abs(Ro-So)<=Ao?Ro:So}var Io={width:Eo-ho.width,height:So-ho.height};if(mo&&typeof mo=="string"){if(mo.endsWith("%")){var $o=Eo/bo.width*100;Eo=$o+"%"}else if(mo.endsWith("vw")){var Bo=Eo/this.window.innerWidth*100;Eo=Bo+"vw"}else if(mo.endsWith("vh")){var Mo=Eo/this.window.innerHeight*100;Eo=Mo+"vh"}}if(vo&&typeof vo=="string"){if(vo.endsWith("%")){var $o=So/bo.height*100;So=$o+"%"}else if(vo.endsWith("vw")){var Bo=So/this.window.innerWidth*100;So=Bo+"vw"}else if(vo.endsWith("vh")){var Mo=So/this.window.innerHeight*100;So=Mo+"vh"}}var Ho={width:this.createSizeForCssProperty(Eo,"width"),height:this.createSizeForCssProperty(So,"height")};this.flexDir==="row"?Ho.flexBasis=Ho.width:this.flexDir==="column"&&(Ho.flexBasis=Ho.height),reactDomExports.flushSync(function(){no.setState(Ho)}),this.props.onResize&&this.props.onResize(ro,po,this.resizable,Io)}},to.prototype.onMouseUp=function(ro){var no=this.state,oo=no.isResizing,io=no.direction,so=no.original;if(!(!oo||!this.resizable)){var ao={width:this.size.width-so.width,height:this.size.height-so.height};this.props.onResizeStop&&this.props.onResizeStop(ro,io,this.resizable,ao),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})})}},to.prototype.updateSize=function(ro){this.setState({width:ro.width,height:ro.height})},to.prototype.renderResizer=function(){var ro=this,no=this.props,oo=no.enable,io=no.handleStyles,so=no.handleClasses,ao=no.handleWrapperStyle,lo=no.handleWrapperClass,uo=no.handleComponent;if(!oo)return null;var co=Object.keys(oo).map(function(fo){return oo[fo]!==!1?reactExports.createElement(Resizer,{key:fo,direction:fo,onResizeStart:ro.onResizeStart,replaceStyles:io&&io[fo],className:so&&so[fo]},uo&&uo[fo]?uo[fo]:null):null});return reactExports.createElement("div",{className:lo,style:ao},co)},to.prototype.render=function(){var ro=this,no=Object.keys(this.props).reduce(function(so,ao){return definedProps.indexOf(ao)!==-1||(so[ao]=ro.props[ao]),so},{}),oo=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(oo.flexBasis=this.state.flexBasis);var io=this.props.as||"div";return reactExports.createElement(io,__assign({ref:this.ref,style:oo,className:this.props.className},no),this.state.isResizing&&reactExports.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},to.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},to}(reactExports.PureComponent),_a$1;const tasksToTaskRows=(eo,to)=>eo.map(ro=>({...ro,level:to,children:ro.children?tasksToTaskRows(ro.children,to+1):void 0})),ev=class ev{constructor(){this.rows$=new State$1(List$1([])),this.selectedRowId$=new State$1(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(to){const ro=this.rows$.getSnapshot(),no=ro.findIndex(ao=>ao.id===to),oo=ro.get(no);if(!oo)return;const{children:io}=oo;if(!io)return;const so=[...ro];so[no]={...oo,isExpanded:!oo.isExpanded},oo.isExpanded?so.splice(no+1,io.length):so.splice(no+1,0,...io),this.rows$.next(List$1(so))}setRows(to){this.rows$.next(List$1(to))}setTasks(to){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(List$1(tasksToTaskRows(to,0)));const ro=no=>{no.forEach(oo=>{oo.startTimethis.endTime&&(this.endTime=oo.endTime),oo.children&&ro(oo.children)})};ro(to)}};_a$1=SINGLETON,ev[_a$1]=!0;let GanttViewModel=ev;const GanttViewModelToken=createInjectionToken("GanttViewModel",new GanttViewModel);function r$2(eo){var to,ro,no="";if(typeof eo=="string"||typeof eo=="number")no+=eo;else if(typeof eo=="object")if(Array.isArray(eo))for(to=0;to1&&(!eo.frozen||eo.idx+no-1<=to))return no}function stopPropagation(eo){eo.stopPropagation()}function scrollIntoView(eo){eo==null||eo.scrollIntoView({inline:"nearest",block:"nearest"})}function createCellEvent(eo){let to=!1;const ro={...eo,preventGridDefault(){to=!0},isGridDefaultPrevented(){return to}};return Object.setPrototypeOf(ro,Object.getPrototypeOf(eo)),ro}const nonInputKeys=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function isCtrlKeyHeldDown(eo){return(eo.ctrlKey||eo.metaKey)&&eo.key!=="Control"}function isDefaultCellInput(eo){return!nonInputKeys.has(eo.key)}function onEditorNavigation({key:eo,target:to}){var ro;return eo==="Tab"&&(to instanceof HTMLInputElement||to instanceof HTMLTextAreaElement||to instanceof HTMLSelectElement)?((ro=to.closest(".rdg-editor-container"))==null?void 0:ro.querySelectorAll("input, textarea, select").length)===1:!1}const measuringCellClassname="m1l09lto7-0-0-beta-39";function renderMeasuringCells(eo){return eo.map(({key:to,idx:ro,minWidth:no,maxWidth:oo})=>jsxRuntimeExports.jsx("div",{className:measuringCellClassname,style:{gridColumnStart:ro+1,minWidth:no,maxWidth:oo},"data-measuring-cell-key":to},to))}function isSelectedCellEditable({selectedPosition:eo,columns:to,rows:ro}){const no=to[eo.idx],oo=ro[eo.rowIdx];return isCellEditable(no,oo)}function isCellEditable(eo,to){return eo.renderEditCell!=null&&(typeof eo.editable=="function"?eo.editable(to):eo.editable)!==!1}function getSelectedCellColSpan({rows:eo,topSummaryRows:to,bottomSummaryRows:ro,rowIdx:no,mainHeaderRowIdx:oo,lastFrozenColumnIndex:io,column:so}){const ao=(to==null?void 0:to.length)??0;if(no===oo)return getColSpan(so,io,{type:"HEADER"});if(to&&no>oo&&no<=ao+oo)return getColSpan(so,io,{type:"SUMMARY",row:to[no+ao]});if(no>=0&&no{for(const Co of oo){const Ro=Co.idx;if(Ro>bo)break;const Ao=getSelectedCellColSpan({rows:io,topSummaryRows:so,bottomSummaryRows:ao,rowIdx:xo,mainHeaderRowIdx:uo,lastFrozenColumnIndex:mo,column:Co});if(Ao&&bo>Ro&&bowo.level+uo,ko=()=>{if(to){let Co=no[bo].parent;for(;Co!==void 0;){const Ro=Eo(Co);if(xo===Ro){bo=Co.idx+Co.colSpan;break}Co=Co.parent}}else if(eo){let Co=no[bo].parent,Ro=!1;for(;Co!==void 0;){const Ao=Eo(Co);if(xo>=Ao){bo=Co.idx,xo=Ao,Ro=!0;break}Co=Co.parent}Ro||(bo=fo,xo=po)}};if(vo(ho)&&(So(to),xo=Ro&&(xo=Ao,bo=Co.idx),Co=Co.parent}}return{idx:bo,rowIdx:xo}}function canExitGrid({maxColIdx:eo,minRowIdx:to,maxRowIdx:ro,selectedPosition:{rowIdx:no,idx:oo},shiftKey:io}){return io?oo===0&&no===to:oo===eo&&no===ro}const cell="c1wupbe7-0-0-beta-39",cellClassname=`rdg-cell ${cell}`,cellFrozen="cd0kgiy7-0-0-beta-39",cellFrozenClassname=`rdg-cell-frozen ${cellFrozen}`,cellFrozenLast="c1730fa47-0-0-beta-39",cellFrozenLastClassname=`rdg-cell-frozen-last ${cellFrozenLast}`;function getRowStyle(eo,to){return to!==void 0?{"--rdg-grid-row-start":eo,"--rdg-row-height":`${to}px`}:{"--rdg-grid-row-start":eo}}function getHeaderCellStyle(eo,to,ro){const no=to+1,oo=`calc(${ro-1} * var(--rdg-header-row-height))`;return eo.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:no,paddingBlockStart:oo}:{insetBlockStart:`calc(${to-ro} * var(--rdg-header-row-height))`,gridRowStart:no-ro,gridRowEnd:no,paddingBlockStart:oo}}function getCellStyle(eo,to=1){const ro=eo.idx+1;return{gridColumnStart:ro,gridColumnEnd:ro+to,insetInlineStart:eo.frozen?`var(--rdg-frozen-left-${eo.idx})`:void 0}}function getCellClassname(eo,...to){return clsx(cellClassname,...to,eo.frozen&&cellFrozenClassname,eo.isLastFrozenColumn&&cellFrozenLastClassname)}const{min,max,round,floor,sign,abs:abs$1}=Math;function assertIsValidKeyGetter(eo){if(typeof eo!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function clampColumnWidth(eo,{minWidth:to,maxWidth:ro}){return eo=max(eo,to),typeof ro=="number"&&ro>=to?min(eo,ro):eo}function getHeaderCellRowSpan(eo,to){return eo.parent===void 0?to:eo.level-eo.parent.level}const checkboxLabel="c1hs68w07-0-0-beta-39",checkboxLabelClassname=`rdg-checkbox-label ${checkboxLabel}`,checkboxInput="cojpd0n7-0-0-beta-39",checkboxInputClassname=`rdg-checkbox-input ${checkboxInput}`,checkbox="cwsfieb7-0-0-beta-39",checkboxClassname=`rdg-checkbox ${checkbox}`,checkboxLabelDisabled="c1fgadbl7-0-0-beta-39",checkboxLabelDisabledClassname=`rdg-checkbox-label-disabled ${checkboxLabelDisabled}`;function renderCheckbox({onChange:eo,...to}){function ro(no){eo(no.target.checked,no.nativeEvent.shiftKey)}return jsxRuntimeExports.jsxs("label",{className:clsx(checkboxLabelClassname,to.disabled&&checkboxLabelDisabledClassname),children:[jsxRuntimeExports.jsx("input",{type:"checkbox",...to,className:checkboxInputClassname,onChange:ro}),jsxRuntimeExports.jsx("div",{className:checkboxClassname})]})}function renderValue(eo){try{return eo.row[eo.column.key]}catch{return null}}const DataGridDefaultRenderersContext=reactExports.createContext(void 0),DataGridDefaultRenderersProvider=DataGridDefaultRenderersContext.Provider;function useDefaultRenderers(){return reactExports.useContext(DataGridDefaultRenderersContext)}const RowSelectionContext=reactExports.createContext(void 0),RowSelectionProvider=RowSelectionContext.Provider,RowSelectionChangeContext=reactExports.createContext(void 0),RowSelectionChangeProvider=RowSelectionChangeContext.Provider,SELECT_COLUMN_KEY="select-row",DEFAULT_COLUMN_WIDTH="auto",DEFAULT_COLUMN_MIN_WIDTH=50;function useCalculatedColumns({rawColumns:eo,defaultColumnOptions:to,measuredColumnWidths:ro,resizedColumnWidths:no,viewportWidth:oo,scrollLeft:io,enableVirtualization:so}){const ao=(to==null?void 0:to.width)??DEFAULT_COLUMN_WIDTH,lo=(to==null?void 0:to.minWidth)??DEFAULT_COLUMN_MIN_WIDTH,uo=(to==null?void 0:to.maxWidth)??void 0,co=(to==null?void 0:to.renderCell)??renderValue,fo=(to==null?void 0:to.sortable)??!1,po=(to==null?void 0:to.resizable)??!1,ho=(to==null?void 0:to.draggable)??!1,{columns:mo,colSpanColumns:vo,lastFrozenColumnIndex:bo,headerRowsCount:xo}=reactExports.useMemo(()=>{let Ro=-1,Ao=1;const Io=[];$o(eo,1);function $o(Mo,Ho,jo){for(const Oo of Mo){if("children"in Oo){const qo={name:Oo.name,parent:jo,idx:-1,colSpan:0,level:0,headerCellClass:Oo.headerCellClass};$o(Oo.children,Ho+1,qo);continue}const Fo=Oo.frozen??!1,Go={...Oo,parent:jo,idx:0,level:0,frozen:Fo,isLastFrozenColumn:!1,width:Oo.width??ao,minWidth:Oo.minWidth??lo,maxWidth:Oo.maxWidth??uo,sortable:Oo.sortable??fo,resizable:Oo.resizable??po,draggable:Oo.draggable??ho,renderCell:Oo.renderCell??co};Io.push(Go),Fo&&Ro++,Ho>Ao&&(Ao=Ho)}}Io.sort(({key:Mo,frozen:Ho},{key:jo,frozen:Oo})=>Mo===SELECT_COLUMN_KEY?-1:jo===SELECT_COLUMN_KEY?1:Ho?Oo?0:-1:Oo?1:0);const Bo=[];return Io.forEach((Mo,Ho)=>{Mo.idx=Ho,updateColumnParent(Mo,Ho,0),Mo.colSpan!=null&&Bo.push(Mo)}),Ro!==-1&&(Io[Ro].isLastFrozenColumn=!0),{columns:Io,colSpanColumns:Bo,lastFrozenColumnIndex:Ro,headerRowsCount:Ao}},[eo,ao,lo,uo,co,po,fo,ho]),{templateColumns:_o,layoutCssVars:So,totalFrozenColumnWidth:Eo,columnMetrics:ko}=reactExports.useMemo(()=>{const Ro=new Map;let Ao=0,Io=0;const $o=[];for(const Mo of mo){let Ho=no.get(Mo.key)??ro.get(Mo.key)??Mo.width;typeof Ho=="number"?Ho=clampColumnWidth(Ho,Mo):Ho=Mo.minWidth,$o.push(`${Ho}px`),Ro.set(Mo,{width:Ho,left:Ao}),Ao+=Ho}if(bo!==-1){const Mo=Ro.get(mo[bo]);Io=Mo.left+Mo.width}const Bo={};for(let Mo=0;Mo<=bo;Mo++){const Ho=mo[Mo];Bo[`--rdg-frozen-left-${Ho.idx}`]=`${Ro.get(Ho).left}px`}return{templateColumns:$o,layoutCssVars:Bo,totalFrozenColumnWidth:Io,columnMetrics:Ro}},[ro,no,mo,bo]),[wo,Co]=reactExports.useMemo(()=>{if(!so)return[0,mo.length-1];const Ro=io+Eo,Ao=io+oo,Io=mo.length-1,$o=min(bo+1,Io);if(Ro>=Ao)return[$o,$o];let Bo=$o;for(;BoRo)break;Bo++}let Mo=Bo;for(;Mo=Ao)break;Mo++}const Ho=max($o,Bo-1),jo=min(Io,Mo+1);return[Ho,jo]},[ko,mo,bo,io,Eo,oo,so]);return{columns:mo,colSpanColumns:vo,colOverscanStartIdx:wo,colOverscanEndIdx:Co,templateColumns:_o,layoutCssVars:So,headerRowsCount:xo,lastFrozenColumnIndex:bo,totalFrozenColumnWidth:Eo}}function updateColumnParent(eo,to,ro){if(ro"u"?reactExports.useEffect:reactExports.useLayoutEffect;function useColumnWidths(eo,to,ro,no,oo,io,so,ao,lo,uo){const co=reactExports.useRef(oo),fo=eo.length===to.length,po=fo&&oo!==co.current,ho=[...ro],mo=[];for(const{key:_o,idx:So,width:Eo}of to)typeof Eo=="string"&&(po||!so.has(_o))&&!io.has(_o)&&(ho[So]=Eo,mo.push(_o));const vo=ho.join(" ");useLayoutEffect(()=>{co.current=oo,bo(mo)});function bo(_o){_o.length!==0&&lo(So=>{const Eo=new Map(So);let ko=!1;for(const wo of _o){const Co=measureColumnWidth(no,wo);ko||(ko=Co!==So.get(wo)),Co===void 0?Eo.delete(wo):Eo.set(wo,Co)}return ko?Eo:So})}function xo(_o,So){const{key:Eo}=_o,ko=[...ro],wo=[];for(const{key:Ro,idx:Ao,width:Io}of to)if(Eo===Ro){const $o=typeof So=="number"?`${So}px`:So;ko[Ao]=$o}else fo&&typeof Io=="string"&&!io.has(Ro)&&(ko[Ao]=Io,wo.push(Ro));no.current.style.gridTemplateColumns=ko.join(" ");const Co=typeof So=="number"?So:measureColumnWidth(no,Eo);reactDomExports.flushSync(()=>{ao(Ro=>{const Ao=new Map(Ro);return Ao.set(Eo,Co),Ao}),bo(wo)}),uo==null||uo(_o.idx,Co)}return{gridTemplateColumns:vo,handleColumnResize:xo}}function measureColumnWidth(eo,to){const ro=`[data-measuring-cell-key="${CSS.escape(to)}"]`,no=eo.current.querySelector(ro);return no==null?void 0:no.getBoundingClientRect().width}function useGridDimensions(){const eo=reactExports.useRef(null),[to,ro]=reactExports.useState(1),[no,oo]=reactExports.useState(1);return useLayoutEffect(()=>{const{ResizeObserver:io}=window;if(io==null)return;const{clientWidth:so,clientHeight:ao,offsetWidth:lo,offsetHeight:uo}=eo.current,{width:co,height:fo}=eo.current.getBoundingClientRect(),po=co-lo+so,ho=fo-uo+ao;ro(po),oo(ho);const mo=new io(vo=>{const bo=vo[0].contentBoxSize[0];reactDomExports.flushSync(()=>{ro(bo.inlineSize),oo(bo.blockSize)})});return mo.observe(eo.current),()=>{mo.disconnect()}},[]),[eo,to,no]}function useLatestFunc(eo){const to=reactExports.useRef(eo);reactExports.useEffect(()=>{to.current=eo});const ro=reactExports.useCallback((...no)=>{to.current(...no)},[]);return eo&&ro}function useRovingTabIndex(eo){const[to,ro]=reactExports.useState(!1);to&&!eo&&ro(!1);function no(io){io.target!==io.currentTarget&&ro(!0)}return{tabIndex:eo&&!to?0:-1,childTabIndex:eo?0:-1,onFocus:eo?no:void 0}}function useViewportColumns({columns:eo,colSpanColumns:to,rows:ro,topSummaryRows:no,bottomSummaryRows:oo,colOverscanStartIdx:io,colOverscanEndIdx:so,lastFrozenColumnIndex:ao,rowOverscanStartIdx:lo,rowOverscanEndIdx:uo}){const co=reactExports.useMemo(()=>{if(io===0)return 0;let fo=io;const po=(ho,mo)=>mo!==void 0&&ho+mo>io?(fo=ho,!0):!1;for(const ho of to){const mo=ho.idx;if(mo>=fo||po(mo,getColSpan(ho,ao,{type:"HEADER"})))break;for(let vo=lo;vo<=uo;vo++){const bo=ro[vo];if(po(mo,getColSpan(ho,ao,{type:"ROW",row:bo})))break}if(no!=null){for(const vo of no)if(po(mo,getColSpan(ho,ao,{type:"SUMMARY",row:vo})))break}if(oo!=null){for(const vo of oo)if(po(mo,getColSpan(ho,ao,{type:"SUMMARY",row:vo})))break}}return fo},[lo,uo,ro,no,oo,io,ao,to]);return reactExports.useMemo(()=>{const fo=[];for(let po=0;po<=so;po++){const ho=eo[po];po{if(typeof to=="number")return{totalRowHeight:to*eo.length,gridTemplateRows:` repeat(${eo.length}, ${to}px)`,getRowTop:bo=>bo*to,getRowHeight:()=>to,findRowIdx:bo=>floor(bo/to)};let po=0,ho=" ";const mo=eo.map(bo=>{const xo=to(bo),_o={top:po,height:xo};return ho+=`${xo}px `,po+=xo,_o}),vo=bo=>max(0,min(eo.length-1,bo));return{totalRowHeight:po,gridTemplateRows:ho,getRowTop:bo=>mo[vo(bo)].top,getRowHeight:bo=>mo[vo(bo)].height,findRowIdx(bo){let xo=0,_o=mo.length-1;for(;xo<=_o;){const So=xo+floor((_o-xo)/2),Eo=mo[So].top;if(Eo===bo)return So;if(Eobo&&(_o=So-1),xo>_o)return _o}return 0}}},[to,eo]);let co=0,fo=eo.length-1;if(oo){const ho=uo(no),mo=uo(no+ro);co=max(0,ho-4),fo=min(eo.length-1,mo+4)}return{rowOverscanStartIdx:co,rowOverscanEndIdx:fo,totalRowHeight:io,gridTemplateRows:so,getRowTop:ao,getRowHeight:lo,findRowIdx:uo}}const cellDragHandle="cadd3bp7-0-0-beta-39",cellDragHandleFrozenClassname="ccmuez27-0-0-beta-39",cellDragHandleClassname=`rdg-cell-drag-handle ${cellDragHandle}`;function DragHandle({gridRowStart:eo,rows:to,columns:ro,selectedPosition:no,latestDraggedOverRowIdx:oo,isCellEditable:io,onRowsChange:so,onFill:ao,onClick:lo,setDragging:uo,setDraggedOverRowIdx:co}){var Eo;const{idx:fo,rowIdx:po}=no,ho=ro[fo];function mo(ko){if(ko.preventDefault(),ko.buttons!==1)return;uo(!0),window.addEventListener("mouseover",wo),window.addEventListener("mouseup",Co);function wo(Ro){Ro.buttons!==1&&Co()}function Co(){window.removeEventListener("mouseover",wo),window.removeEventListener("mouseup",Co),uo(!1),vo()}}function vo(){const ko=oo.current;if(ko===void 0)return;const wo=po0&&(so==null||so(Ao,{indexes:Io,column:Co}))}const _o=((Eo=ho.colSpan)==null?void 0:Eo.call(ho,{type:"ROW",row:to[po]}))??1,So=getCellStyle(ho,_o);return jsxRuntimeExports.jsx("div",{style:{...So,gridRowStart:eo,insetInlineStart:So.insetInlineStart&&typeof ho.width=="number"?`calc(${So.insetInlineStart} + ${ho.width}px - var(--rdg-drag-handle-size))`:void 0},className:clsx(cellDragHandleClassname,ho.frozen&&cellDragHandleFrozenClassname),onClick:lo,onMouseDown:mo,onDoubleClick:bo})}const cellEditing="c1tngyp17-0-0-beta-39";function EditCell({column:eo,colSpan:to,row:ro,rowIdx:no,onRowChange:oo,closeEditor:io,onKeyDown:so,navigate:ao}){var xo,_o,So;const lo=reactExports.useRef(),uo=((xo=eo.editorOptions)==null?void 0:xo.commitOnOutsideClick)!==!1,co=useLatestFunc(()=>{ho(!0,!1)});reactExports.useEffect(()=>{if(!uo)return;function Eo(){lo.current=requestAnimationFrame(co)}return addEventListener("mousedown",Eo,{capture:!0}),()=>{removeEventListener("mousedown",Eo,{capture:!0}),fo()}},[uo,co]);function fo(){cancelAnimationFrame(lo.current)}function po(Eo){if(so){const ko=createCellEvent(Eo);if(so({mode:"EDIT",row:ro,column:eo,rowIdx:no,navigate(){ao(Eo)},onClose:ho},ko),ko.isGridDefaultPrevented())return}Eo.key==="Escape"?ho():Eo.key==="Enter"?ho(!0):onEditorNavigation(Eo)&&ao(Eo)}function ho(Eo=!1,ko=!0){Eo?oo(ro,!0,ko):io(ko)}function mo(Eo,ko=!1){oo(Eo,ko,ko)}const{cellClass:vo}=eo,bo=getCellClassname(eo,"rdg-editor-container",typeof vo=="function"?vo(ro):vo,!((_o=eo.editorOptions)!=null&&_o.displayCellContent)&&cellEditing);return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":!0,className:bo,style:getCellStyle(eo,to),onKeyDown:po,onMouseDownCapture:fo,children:eo.renderEditCell!=null&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[eo.renderEditCell({column:eo,row:ro,onRowChange:mo,onClose:ho}),((So=eo.editorOptions)==null?void 0:So.displayCellContent)&&eo.renderCell({column:eo,row:ro,isCellEditable:!0,tabIndex:-1,onRowChange:mo})]})})}function GroupedColumnHeaderCell({column:eo,rowIdx:to,isCellSelected:ro,selectCell:no}){const{tabIndex:oo,onFocus:io}=useRovingTabIndex(ro),{colSpan:so}=eo,ao=getHeaderCellRowSpan(eo,to),lo=eo.idx+1;function uo(){no({idx:eo.idx,rowIdx:to})}return jsxRuntimeExports.jsx("div",{role:"columnheader","aria-colindex":lo,"aria-colspan":so,"aria-rowspan":ao,"aria-selected":ro,tabIndex:oo,className:clsx(cellClassname,eo.headerCellClass),style:{...getHeaderCellStyle(eo,to,ao),gridColumnStart:lo,gridColumnEnd:lo+so},onFocus:io,onClick:uo,children:eo.name})}const headerSortCellClassname="hizp7y17-0-0-beta-39",headerSortName="h14cojrm7-0-0-beta-39",headerSortNameClassname=`rdg-header-sort-name ${headerSortName}`;function renderHeaderCell({column:eo,sortDirection:to,priority:ro}){return eo.sortable?jsxRuntimeExports.jsx(SortableHeaderCell,{sortDirection:to,priority:ro,children:eo.name}):eo.name}function SortableHeaderCell({sortDirection:eo,priority:to,children:ro}){const no=useDefaultRenderers().renderSortStatus;return jsxRuntimeExports.jsxs("span",{className:headerSortCellClassname,children:[jsxRuntimeExports.jsx("span",{className:headerSortNameClassname,children:ro}),jsxRuntimeExports.jsx("span",{children:no({sortDirection:eo,priority:to})})]})}const cellSortableClassname="celq7o97-0-0-beta-39",cellResizable="ceqw94e7-0-0-beta-39",cellResizableClassname=`rdg-cell-resizable ${cellResizable}`,resizeHandleClassname="r12jy2ca7-0-0-beta-39",cellDragging="c1j3os1p7-0-0-beta-39",cellDraggingClassname=`rdg-cell-dragging ${cellDragging}`,cellOver="c1ui3nad7-0-0-beta-39",cellOverClassname=`rdg-cell-drag-over ${cellOver}`;function HeaderCell({column:eo,colSpan:to,rowIdx:ro,isCellSelected:no,onColumnResize:oo,onColumnsReorder:io,sortColumns:so,onSortColumnsChange:ao,selectCell:lo,shouldFocusGrid:uo,direction:co}){const[fo,po]=reactExports.useState(!1),[ho,mo]=reactExports.useState(!1),vo=co==="rtl",bo=getHeaderCellRowSpan(eo,ro),{tabIndex:xo,childTabIndex:_o,onFocus:So}=useRovingTabIndex(no),Eo=so==null?void 0:so.findIndex(As=>As.columnKey===eo.key),ko=Eo!==void 0&&Eo>-1?so[Eo]:void 0,wo=ko==null?void 0:ko.direction,Co=ko!==void 0&&so.length>1?Eo+1:void 0,Ro=wo&&!Co?wo==="ASC"?"ascending":"descending":void 0,{sortable:Ao,resizable:Io,draggable:$o}=eo,Bo=getCellClassname(eo,eo.headerCellClass,Ao&&cellSortableClassname,Io&&cellResizableClassname,fo&&cellDraggingClassname,ho&&cellOverClassname),Mo=eo.renderHeaderCell??renderHeaderCell;function Ho(As){if(As.pointerType==="mouse"&&As.buttons!==1)return;const{currentTarget:Ds,pointerId:Jo}=As,Cs=Ds.parentElement,{right:Bs,left:zs}=Cs.getBoundingClientRect(),Ls=vo?As.clientX-zs:Bs-As.clientX;function ga(Zs){Zs.preventDefault();const{right:$a,left:Ll}=Cs.getBoundingClientRect(),Kl=vo?$a+Ls-Zs.clientX:Zs.clientX+Ls-Ll;Kl>0&&oo(eo,clampColumnWidth(Kl,eo))}function Js(){Ds.removeEventListener("pointermove",ga),Ds.removeEventListener("lostpointercapture",Js)}Ds.setPointerCapture(Jo),Ds.addEventListener("pointermove",ga),Ds.addEventListener("lostpointercapture",Js)}function jo(As){if(ao==null)return;const{sortDescendingFirst:Ds}=eo;if(ko===void 0){const Jo={columnKey:eo.key,direction:Ds?"DESC":"ASC"};ao(so&&As?[...so,Jo]:[Jo])}else{let Jo;if((Ds===!0&&wo==="DESC"||Ds!==!0&&wo==="ASC")&&(Jo={columnKey:eo.key,direction:wo==="ASC"?"DESC":"ASC"}),As){const Cs=[...so];Jo?Cs[Eo]=Jo:Cs.splice(Eo,1),ao(Cs)}else ao(Jo?[Jo]:[])}}function Oo(As){lo({idx:eo.idx,rowIdx:ro}),Ao&&jo(As.ctrlKey||As.metaKey)}function Fo(){oo(eo,"max-content")}function Go(As){So==null||So(As),uo&&lo({idx:0,rowIdx:ro})}function qo(As){(As.key===" "||As.key==="Enter")&&(As.preventDefault(),jo(As.ctrlKey||As.metaKey))}function Xo(As){As.dataTransfer.setData("text/plain",eo.key),As.dataTransfer.dropEffect="move",po(!0)}function Zo(){po(!1)}function Qo(As){As.preventDefault(),As.dataTransfer.dropEffect="move"}function xs(As){mo(!1);const Ds=As.dataTransfer.getData("text/plain");Ds!==eo.key&&(As.preventDefault(),io==null||io(Ds,eo.key))}function Ts(As){isEventPertinent(As)&&mo(!0)}function Rs(As){isEventPertinent(As)&&mo(!1)}let Os;return $o&&(Os={draggable:!0,onDragStart:Xo,onDragEnd:Zo,onDragOver:Qo,onDragEnter:Ts,onDragLeave:Rs,onDrop:xs}),jsxRuntimeExports.jsxs("div",{role:"columnheader","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-rowspan":bo,"aria-selected":no,"aria-sort":Ro,tabIndex:uo?0:xo,className:Bo,style:{...getHeaderCellStyle(eo,ro,bo),...getCellStyle(eo,to)},onFocus:Go,onClick:Oo,onKeyDown:Ao?qo:void 0,...Os,children:[Mo({column:eo,sortDirection:wo,priority:Co,tabIndex:_o}),Io&&jsxRuntimeExports.jsx("div",{className:resizeHandleClassname,onClick:stopPropagation,onDoubleClick:Fo,onPointerDown:Ho})]})}function isEventPertinent(eo){const to=eo.relatedTarget;return!eo.currentTarget.contains(to)}const row="r1otpg647-0-0-beta-39",rowClassname=`rdg-row ${row}`,rowSelected="rel5gk27-0-0-beta-39",rowSelectedClassname="rdg-row-selected",rowSelectedWithFrozenCell="r1qymf1z7-0-0-beta-39",headerRow="h197vzie7-0-0-beta-39",headerRowClassname=`rdg-header-row ${headerRow}`;function HeaderRow({rowIdx:eo,columns:to,onColumnResize:ro,onColumnsReorder:no,sortColumns:oo,onSortColumnsChange:io,lastFrozenColumnIndex:so,selectedCellIdx:ao,selectCell:lo,shouldFocusGrid:uo,direction:co}){const fo=[];for(let po=0;poto&&lo.parent!==void 0;)lo=lo.parent;if(lo.level===to&&!so.has(lo)){so.add(lo);const{idx:uo}=lo;io.push(jsxRuntimeExports.jsx(GroupedColumnHeaderCell,{column:lo,rowIdx:eo,isCellSelected:no===uo,selectCell:oo},uo))}}}return jsxRuntimeExports.jsx("div",{role:"row","aria-rowindex":eo,className:headerRowClassname,children:io})}const GroupedColumnHeaderRow$1=reactExports.memo(GroupedColumnHeaderRow),cellCopied="ccpfvsn7-0-0-beta-39",cellCopiedClassname=`rdg-cell-copied ${cellCopied}`,cellDraggedOver="c1bmg16t7-0-0-beta-39",cellDraggedOverClassname=`rdg-cell-dragged-over ${cellDraggedOver}`;function Cell({column:eo,colSpan:to,isCellSelected:ro,isCopied:no,isDraggedOver:oo,row:io,rowIdx:so,onClick:ao,onDoubleClick:lo,onContextMenu:uo,onRowChange:co,selectCell:fo,...po}){const{tabIndex:ho,childTabIndex:mo,onFocus:vo}=useRovingTabIndex(ro),{cellClass:bo}=eo,xo=getCellClassname(eo,typeof bo=="function"?bo(io):bo,no&&cellCopiedClassname,oo&&cellDraggedOverClassname),_o=isCellEditable(eo,io);function So(Ro){fo({rowIdx:so,idx:eo.idx},Ro)}function Eo(Ro){if(ao){const Ao=createCellEvent(Ro);if(ao({row:io,column:eo,selectCell:So},Ao),Ao.isGridDefaultPrevented())return}So()}function ko(Ro){if(uo){const Ao=createCellEvent(Ro);if(uo({row:io,column:eo,selectCell:So},Ao),Ao.isGridDefaultPrevented())return}So()}function wo(Ro){if(lo){const Ao=createCellEvent(Ro);if(lo({row:io,column:eo,selectCell:So},Ao),Ao.isGridDefaultPrevented())return}So(!0)}function Co(Ro){co(eo,Ro)}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":ro,"aria-readonly":!_o||void 0,tabIndex:ho,className:xo,style:getCellStyle(eo,to),onClick:Eo,onDoubleClick:wo,onContextMenu:ko,onFocus:vo,...po,children:eo.renderCell({column:eo,row:io,isCellEditable:_o,tabIndex:mo,onRowChange:Co})})}const Cell$1=reactExports.memo(Cell);function Row({className:eo,rowIdx:to,gridRowStart:ro,height:no,selectedCellIdx:oo,isRowSelected:io,copiedCellIdx:so,draggedOverCellIdx:ao,lastFrozenColumnIndex:lo,row:uo,viewportColumns:co,selectedCellEditor:fo,onCellClick:po,onCellDoubleClick:ho,onCellContextMenu:mo,rowClass:vo,setDraggedOverRowIdx:bo,onMouseEnter:xo,onRowChange:_o,selectCell:So,...Eo},ko){const wo=useLatestFunc((Ao,Io)=>{_o(Ao,to,Io)});function Co(Ao){bo==null||bo(to),xo==null||xo(Ao)}eo=clsx(rowClassname,`rdg-row-${to%2===0?"even":"odd"}`,vo==null?void 0:vo(uo,to),eo,oo===-1&&rowSelectedClassname);const Ro=[];for(let Ao=0;Ao{scrollIntoView(oo.current)}),useLayoutEffect(()=>{function io(){no(null)}const so=new IntersectionObserver(io,{root:ro,threshold:1});return so.observe(oo.current),()=>{so.disconnect()}},[ro,no]),jsxRuntimeExports.jsx("div",{ref:oo,style:{gridColumn:eo===void 0?"1/-1":eo+1,gridRow:to===void 0?"1/-1":to+2}})}const arrow="a1mygwml7-0-0-beta-39",arrowClassname=`rdg-sort-arrow ${arrow}`;function renderSortStatus({sortDirection:eo,priority:to}){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[renderSortIcon({sortDirection:eo}),renderSortPriority({priority:to})]})}function renderSortIcon({sortDirection:eo}){return eo===void 0?null:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:arrowClassname,"aria-hidden":!0,children:jsxRuntimeExports.jsx("path",{d:eo==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function renderSortPriority({priority:eo}){return eo}const root="r104f42s7-0-0-beta-39",rootClassname=`rdg ${root}`,viewportDragging="v7ly7s7-0-0-beta-39",viewportDraggingClassname=`rdg-viewport-dragging ${viewportDragging}`,focusSinkClassname="fc4f4zb7-0-0-beta-39",focusSinkHeaderAndSummaryClassname="fq51q037-0-0-beta-39",summaryCellClassname="s1n3hxke7-0-0-beta-39";function SummaryCell({column:eo,colSpan:to,row:ro,rowIdx:no,isCellSelected:oo,selectCell:io}){var po;const{tabIndex:so,childTabIndex:ao,onFocus:lo}=useRovingTabIndex(oo),{summaryCellClass:uo}=eo,co=getCellClassname(eo,summaryCellClassname,typeof uo=="function"?uo(ro):uo);function fo(){io({rowIdx:no,idx:eo.idx})}return jsxRuntimeExports.jsx("div",{role:"gridcell","aria-colindex":eo.idx+1,"aria-colspan":to,"aria-selected":oo,tabIndex:so,className:co,style:getCellStyle(eo,to),onClick:fo,onFocus:lo,children:(po=eo.renderSummaryCell)==null?void 0:po.call(eo,{column:eo,row:ro,tabIndex:ao})})}const SummaryCell$1=reactExports.memo(SummaryCell),summaryRow="snfqesz7-0-0-beta-39",topSummaryRow="t1jijrjz7-0-0-beta-39",topSummaryRowBorderClassname="t14bmecc7-0-0-beta-39",bottomSummaryRowBorderClassname="b1odhhml7-0-0-beta-39",summaryRowClassname=`rdg-summary-row ${summaryRow}`,topSummaryRowClassname=`rdg-top-summary-row ${topSummaryRow}`;function SummaryRow({rowIdx:eo,gridRowStart:to,row:ro,viewportColumns:no,top:oo,bottom:io,lastFrozenColumnIndex:so,selectedCellIdx:ao,isTop:lo,showBorder:uo,selectCell:co,"aria-rowindex":fo}){const po=[];for(let ho=0;honew Map),[Zl,$l]=reactExports.useState(()=>new Map),[xa,Sl]=reactExports.useState(null),[cu,ks]=reactExports.useState(!1),[Es,bs]=reactExports.useState(void 0),[ws,Gs]=reactExports.useState(null),[Ks,Ms,Hs]=useGridDimensions(),{columns:Qs,colSpanColumns:El,lastFrozenColumnIndex:xl,headerRowsCount:Ol,colOverscanStartIdx:ru,colOverscanEndIdx:au,templateColumns:zl,layoutCssVars:hu,totalFrozenColumnWidth:xu}=useCalculatedColumns({rawColumns:ro,defaultColumnOptions:vo,measuredColumnWidths:Zl,resizedColumnWidths:Ll,scrollLeft:Zs,viewportWidth:Ms,enableVirtualization:zs}),Ql=(oo==null?void 0:oo.length)??0,Dl=(io==null?void 0:io.length)??0,gu=Ql+Dl,lu=Ol+Ql,mu=Ol-1,ou=-lu,Fl=ou+mu,yl=no.length+Dl-1,[Xs,vu]=reactExports.useState(()=>({idx:-1,rowIdx:ou-1,mode:"SELECT"})),$u=reactExports.useRef(Xs),du=reactExports.useRef(Es),d1=reactExports.useRef(-1),qu=reactExports.useRef(null),Iu=reactExports.useRef(!1),e1=Ts==="treegrid",qs=Ol*Os,Ko=Hs-qs-gu*As,Uo=fo!=null&&po!=null,Po=Ls==="rtl",zo=Po?"ArrowRight":"ArrowLeft",Do=Po?"ArrowLeft":"ArrowRight",Yo=Zo??Ol+no.length+gu,vs=reactExports.useMemo(()=>({renderCheckbox:Cs,renderSortStatus:Jo}),[Cs,Jo]),ys=reactExports.useMemo(()=>{const{length:Ys}=no;return Ys!==0&&fo!=null&&so!=null&&fo.size>=Ys&&no.every(na=>fo.has(so(na)))},[no,fo,so]),{rowOverscanStartIdx:hs,rowOverscanEndIdx:Is,totalRowHeight:Us,gridTemplateRows:Il,getRowTop:Ml,getRowHeight:Rl,findRowIdx:Cl}=useViewportRows({rows:no,rowHeight:Rs,clientHeight:Ko,scrollTop:ga,enableVirtualization:zs}),Ul=useViewportColumns({columns:Qs,colSpanColumns:El,colOverscanStartIdx:ru,colOverscanEndIdx:au,lastFrozenColumnIndex:xl,rowOverscanStartIdx:hs,rowOverscanEndIdx:Is,rows:no,topSummaryRows:oo,bottomSummaryRows:io}),{gridTemplateColumns:fu,handleColumnResize:Bl}=useColumnWidths(Qs,Ul,zl,Ks,Ms,Ll,Zl,Kl,$l,wo),Su=e1?-1:0,Nu=Qs.length-1,zu=hp(Xs),f1=gp(Xs),Xu=useLatestFunc(Bl),A1=useLatestFunc(Co),p1=useLatestFunc(mo),Au=useLatestFunc(bo),t1=useLatestFunc(xo),w1=useLatestFunc(_o),h1=useLatestFunc(I1),R1=useLatestFunc(S1),g1=useLatestFunc(V1),H1=useLatestFunc(({idx:Ys,rowIdx:na})=>{V1({rowIdx:ou+na-1,idx:Ys})});useLayoutEffect(()=>{if(!zu||isSamePosition(Xs,$u.current)){$u.current=Xs;return}$u.current=Xs,Xs.idx===-1&&(qu.current.focus({preventScroll:!0}),scrollIntoView(qu.current))}),useLayoutEffect(()=>{Iu.current&&(Iu.current=!1,$p())}),reactExports.useImperativeHandle(to,()=>({element:Ks.current,scrollToCell({idx:Ys,rowIdx:na}){const Wl=Ys!==void 0&&Ys>xl&&Ys{bs(Ys),du.current=Ys},[]);function I1(Ys){if(!po)return;if(assertIsValidKeyGetter(so),Ys.type==="HEADER"){const bu=new Set(fo);for(const _u of no){const Ou=so(_u);Ys.checked?bu.add(Ou):bu.delete(Ou)}po(bu);return}const{row:na,checked:Wl,isShiftClick:Hl}=Ys,Al=new Set(fo),Nl=so(na);if(Wl){Al.add(Nl);const bu=d1.current,_u=no.indexOf(na);if(d1.current=_u,Hl&&bu!==-1&&bu!==_u){const Ou=sign(_u-bu);for(let r1=bu+Ou;r1!==_u;r1+=Ou){const $1=no[r1];Al.add(so($1))}}}else Al.delete(Nl),d1.current=-1;po(Al)}function N1(Ys){const{idx:na,rowIdx:Wl,mode:Hl}=Xs;if(Hl==="EDIT")return;if(So&&tp(Wl)){const _u=no[Wl],Ou=createCellEvent(Ys);if(So({mode:"SELECT",row:_u,column:Qs[na],rowIdx:Wl,selectCell:V1},Ou),Ou.isGridDefaultPrevented())return}if(!(Ys.target instanceof Element))return;const Al=Ys.target.closest(".rdg-cell")!==null,Nl=e1&&Ys.target===qu.current;if(!Al&&!Nl)return;const{keyCode:bu}=Ys;if(f1&&(Io!=null||Ao!=null)&&isCtrlKeyHeldDown(Ys)){if(bu===67){Ip();return}if(bu===86){G1();return}}switch(Ys.key){case"Escape":Sl(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":Qp(Ys);break;default:Zp(Ys);break}}function x1(Ys){const{scrollTop:na,scrollLeft:Wl}=Ys.currentTarget;reactDomExports.flushSync(()=>{Js(na),$a(abs$1(Wl))}),ko==null||ko(Ys)}function S1(Ys,na,Wl){if(typeof ao!="function"||Wl===no[na])return;const Hl=[...no];Hl[na]=Wl,ao(Hl,{indexes:[na],column:Ys})}function pp(){Xs.mode==="EDIT"&&S1(Qs[Xs.idx],Xs.rowIdx,Xs.row)}function Ip(){const{idx:Ys,rowIdx:na}=Xs,Wl=no[na],Hl=Qs[Ys].key;Sl({row:Wl,columnKey:Hl}),Ao==null||Ao({sourceRow:Wl,sourceColumnKey:Hl})}function G1(){if(!Io||!ao||xa===null||!rp(Xs))return;const{idx:Ys,rowIdx:na}=Xs,Wl=Qs[Ys],Hl=no[na],Al=Io({sourceRow:xa.row,sourceColumnKey:xa.columnKey,targetRow:Hl,targetColumnKey:Wl.key});S1(Wl,na,Al)}function Zp(Ys){if(!f1)return;const na=no[Xs.rowIdx],{key:Wl,shiftKey:Hl}=Ys;if(Uo&&Hl&&Wl===" "){assertIsValidKeyGetter(so);const Al=so(na);I1({type:"ROW",row:na,checked:!fo.has(Al),isShiftClick:!1}),Ys.preventDefault();return}rp(Xs)&&isDefaultCellInput(Ys)&&vu(({idx:Al,rowIdx:Nl})=>({idx:Al,rowIdx:Nl,mode:"EDIT",row:na,originalRow:na}))}function Np(Ys){return Ys>=Su&&Ys<=Nu}function tp(Ys){return Ys>=0&&Ys=ou&&na<=yl&&Np(Ys)}function gp({idx:Ys,rowIdx:na}){return tp(na)&&Np(Ys)}function rp(Ys){return gp(Ys)&&isSelectedCellEditable({columns:Qs,rows:no,selectedPosition:Ys})}function V1(Ys,na){if(!hp(Ys))return;pp();const Wl=no[Ys.rowIdx],Hl=isSamePosition(Xs,Ys);na&&rp(Ys)?vu({...Ys,mode:"EDIT",row:Wl,originalRow:Wl}):Hl?scrollIntoView(getCellToScroll(Ks.current)):(Iu.current=!0,vu({...Ys,mode:"SELECT"})),Eo&&!Hl&&Eo({rowIdx:Ys.rowIdx,row:Wl,column:Qs[Ys.idx]})}function Fm(Ys,na,Wl){const{idx:Hl,rowIdx:Al}=Xs,Nl=zu&&Hl===-1;switch(Ys){case"ArrowUp":return{idx:Hl,rowIdx:Al-1};case"ArrowDown":return{idx:Hl,rowIdx:Al+1};case zo:return{idx:Hl-1,rowIdx:Al};case Do:return{idx:Hl+1,rowIdx:Al};case"Tab":return{idx:Hl+(Wl?-1:1),rowIdx:Al};case"Home":return Nl?{idx:Hl,rowIdx:ou}:{idx:0,rowIdx:na?ou:Al};case"End":return Nl?{idx:Hl,rowIdx:yl}:{idx:Nu,rowIdx:na?yl:Al};case"PageUp":{if(Xs.rowIdx===ou)return Xs;const bu=Ml(Al)+Rl(Al)-Ko;return{idx:Hl,rowIdx:bu>0?Cl(bu):0}}case"PageDown":{if(Xs.rowIdx>=no.length)return Xs;const bu=Ml(Al)+Ko;return{idx:Hl,rowIdx:buYs&&Ys>=Es)?Xs.idx:void 0}function $p(){const Ys=getCellToScroll(Ks.current);if(Ys===null)return;scrollIntoView(Ys),(Ys.querySelector('[tabindex="0"]')??Ys).focus({preventScroll:!0})}function Pm(){if(!(Ro==null||Xs.mode==="EDIT"||!gp(Xs)))return jsxRuntimeExports.jsx(DragHandle,{gridRowStart:lu+Xs.rowIdx+1,rows:no,columns:Qs,selectedPosition:Xs,isCellEditable:rp,latestDraggedOverRowIdx:du,onRowsChange:ao,onClick:$p,onFill:Ro,setDragging:ks,setDraggedOverRowIdx:E1})}function zm(Ys){if(Xs.rowIdx!==Ys||Xs.mode==="SELECT")return;const{idx:na,row:Wl}=Xs,Hl=Qs[na],Al=getColSpan(Hl,xl,{type:"ROW",row:Wl}),Nl=_u=>{Iu.current=_u,vu(({idx:Ou,rowIdx:r1})=>({idx:Ou,rowIdx:r1,mode:"SELECT"}))},bu=(_u,Ou,r1)=>{Ou?reactDomExports.flushSync(()=>{S1(Hl,Xs.rowIdx,_u),Nl(r1)}):vu($1=>({...$1,row:_u}))};return no[Xs.rowIdx]!==Xs.originalRow&&Nl(!1),jsxRuntimeExports.jsx(EditCell,{column:Hl,colSpan:Al,row:Wl,rowIdx:Ys,onRowChange:bu,closeEditor:Nl,onKeyDown:So,navigate:Qp},Hl.key)}function np(Ys){const na=Xs.idx===-1?void 0:Qs[Xs.idx];return na!==void 0&&Xs.rowIdx===Ys&&!Ul.includes(na)?Xs.idx>au?[...Ul,na]:[...Ul.slice(0,xl+1),na,...Ul.slice(xl+1)]:Ul}function Hm(){const Ys=[],{idx:na,rowIdx:Wl}=Xs,Hl=f1&&WlIs?Is+1:Is;for(let Nl=Hl;Nl<=Al;Nl++){const bu=Nl===hs-1||Nl===Is+1,_u=bu?Wl:Nl;let Ou=Ul;const r1=na===-1?void 0:Qs[na];r1!==void 0&&(bu?Ou=[r1]:Ou=np(_u));const $1=no[_u],Gm=lu+_u+1;let mp=_u,Op=!1;typeof so=="function"&&(mp=so($1),Op=(fo==null?void 0:fo.has(mp))??!1),Ys.push(Ds(mp,{"aria-rowindex":lu+_u+1,"aria-selected":Uo?Op:void 0,rowIdx:_u,row:$1,viewportColumns:Ou,isRowSelected:Op,onCellClick:Au,onCellDoubleClick:t1,onCellContextMenu:w1,rowClass:jo,gridRowStart:Gm,height:Rl(_u),copiedCellIdx:xa!==null&&xa.row===$1?Qs.findIndex(Du=>Du.key===xa.columnKey):void 0,selectedCellIdx:Wl===_u?na:void 0,draggedOverCellIdx:jm(_u),setDraggedOverRowIdx:cu?E1:void 0,lastFrozenColumnIndex:xl,onRowChange:R1,selectCell:g1,selectedCellEditor:zm(_u)}))}return Ys}(Xs.idx>Nu||Xs.rowIdx>yl)&&(vu({idx:-1,rowIdx:ou-1,mode:"SELECT"}),E1(void 0));let q1=`repeat(${Ol}, ${Os}px)`;Ql>0&&(q1+=` repeat(${Ql}, ${As}px)`),no.length>0&&(q1+=Il),Dl>0&&(q1+=` repeat(${Dl}, ${As}px)`);const Jp=Xs.idx===-1&&Xs.rowIdx!==ou-1;return jsxRuntimeExports.jsxs("div",{role:Ts,"aria-label":Go,"aria-labelledby":qo,"aria-describedby":Xo,"aria-multiselectable":Uo?!0:void 0,"aria-colcount":Qs.length,"aria-rowcount":Yo,className:clsx(rootClassname,Mo,cu&&viewportDraggingClassname),style:{...Ho,scrollPaddingInlineStart:Xs.idx>xl||(ws==null?void 0:ws.idx)!==void 0?`${xu}px`:void 0,scrollPaddingBlock:tp(Xs.rowIdx)||(ws==null?void 0:ws.rowIdx)!==void 0?`${qs+Ql*As}px ${Dl*As}px`:void 0,gridTemplateColumns:fu,gridTemplateRows:q1,"--rdg-header-row-height":`${Os}px`,"--rdg-summary-row-height":`${As}px`,"--rdg-sign":Po?-1:1,...hu},dir:Ls,ref:Ks,onScroll:x1,onKeyDown:N1,"data-testid":Qo,children:[jsxRuntimeExports.jsx(DataGridDefaultRenderersProvider,{value:vs,children:jsxRuntimeExports.jsxs(RowSelectionChangeProvider,{value:h1,children:[jsxRuntimeExports.jsxs(RowSelectionProvider,{value:ys,children:[Array.from({length:mu},(Ys,na)=>jsxRuntimeExports.jsx(GroupedColumnHeaderRow$1,{rowIdx:na+1,level:-mu+na,columns:np(ou+na),selectedCellIdx:Xs.rowIdx===ou+na?Xs.idx:void 0,selectCell:H1},na)),jsxRuntimeExports.jsx(HeaderRow$1,{rowIdx:Ol,columns:np(Fl),onColumnResize:Xu,onColumnsReorder:A1,sortColumns:ho,onSortColumnsChange:p1,lastFrozenColumnIndex:xl,selectedCellIdx:Xs.rowIdx===Fl?Xs.idx:void 0,selectCell:H1,shouldFocusGrid:!zu,direction:Ls})]}),no.length===0&&Bs?Bs:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[oo==null?void 0:oo.map((Ys,na)=>{const Wl=Ol+1+na,Hl=Fl+1+na,Al=Xs.rowIdx===Hl,Nl=qs+As*na;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Wl,rowIdx:Hl,gridRowStart:Wl,row:Ys,top:Nl,bottom:void 0,viewportColumns:np(Hl),lastFrozenColumnIndex:xl,selectedCellIdx:Al?Xs.idx:void 0,isTop:!0,showBorder:na===Ql-1,selectCell:g1},na)}),Hm(),io==null?void 0:io.map((Ys,na)=>{const Wl=lu+no.length+na+1,Hl=no.length+na,Al=Xs.rowIdx===Hl,Nl=Ko>Us?Hs-As*(io.length-na):void 0,bu=Nl===void 0?As*(io.length-1-na):void 0;return jsxRuntimeExports.jsx(SummaryRow$1,{"aria-rowindex":Yo-Dl+na+1,rowIdx:Hl,gridRowStart:Wl,row:Ys,top:Nl,bottom:bu,viewportColumns:np(Hl),lastFrozenColumnIndex:xl,selectedCellIdx:Al?Xs.idx:void 0,isTop:!1,showBorder:na===0,selectCell:g1},na)})]})]})}),Pm(),renderMeasuringCells(Ul),e1&&jsxRuntimeExports.jsx("div",{ref:qu,tabIndex:Jp?0:-1,className:clsx(focusSinkClassname,Jp&&[rowSelected,xl!==-1&&rowSelectedWithFrozenCell],!tp(Xs.rowIdx)&&focusSinkHeaderAndSummaryClassname),style:{gridRowStart:Xs.rowIdx+lu+1}}),ws!==null&&jsxRuntimeExports.jsx(ScrollToCell,{scrollToPosition:ws,setScrollToCellPosition:Gs,gridElement:Ks.current})]})}function getCellToScroll(eo){return eo.querySelector(':scope > [role="row"] > [tabindex="0"]')}function isSamePosition(eo,to){return eo.idx===to.idx&&eo.rowIdx===to.rowIdx}const DataGrid$1$1=reactExports.forwardRef(DataGrid$2),useGanttViewModel=()=>{const[eo]=useInjected(GanttViewModelToken);return eo},useGanttViewRows=()=>{const eo=useGanttViewModel();return useState(eo.rows$).toArray()},useToggleSubRows=()=>{const eo=useGanttViewModel();return reactExports.useCallback(to=>{eo.toggleRow(to)},[eo])},useTasksTimeBoundaries=()=>{const eo=useGanttViewModel();return[eo.startTime,eo.endTime]},useSelectedRow=()=>{const eo=useGanttViewModel();return useState(eo.selectedRowId$)},useSetSelectedRow=()=>{const eo=useGanttViewModel();return useSetState(eo.selectedRowId$)},GanttChartCell=({row:eo})=>{const[to,ro]=useTasksTimeBoundaries(),no=`${(eo.startTime-to)*100/(ro-to)}%`,oo=`${(ro-eo.endTime)*100/(ro-to)}%`,io=eo.children&&eo.children.length>0,so=eo.isExpanded;return jsxRuntimeExports.jsx("div",{style:{marginLeft:no,marginRight:oo,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:io&&!so?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:(eo.children??[]).map((ao,lo)=>{const uo=`${(ao.endTime-ao.startTime)*100/(eo.endTime-eo.startTime)}%`;return jsxRuntimeExports.jsx("div",{style:{backgroundColor:ao.color??`rgba(0, 120, 212, ${1-.2*lo})`,width:uo}},ao.id)})}):jsxRuntimeExports.jsx("div",{style:{backgroundColor:eo.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},NameCell=({row:eo})=>{const to=eo.children!==void 0&&eo.children.length>0,ro=eo.isExpanded,no=useToggleSubRows(),oo=reactExports.useCallback(io=>{io.preventDefault(),io.stopPropagation(),no(eo.id)},[eo.id,no]);return jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:eo.level*24},children:[to?jsxRuntimeExports.jsx("div",{onClick:oo,role:"button",children:ro?"▼":"▶"}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}),jsxRuntimeExports.jsx("div",{children:eo.node_name||eo.name})]})},defaultColumns=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:eo}){return jsxRuntimeExports.jsx(NameCell,{row:eo})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:eo}){return jsxRuntimeExports.jsxs("div",{style:{textAlign:"right"},children:[Math.round((eo.endTime-eo.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:eo}){return jsxRuntimeExports.jsx(GanttChartCell,{row:eo})},renderHeaderCell:()=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}],GanttGridView=({styles:eo,getColumns:to=ro=>ro})=>{const ro=useGanttViewRows(),no=useSetSelectedRow(),oo=useSelectedRow(),io=reactExports.useCallback(lo=>{const{row:uo}=lo;no(uo.id)},[no]),so=mergeStyles$1(eo==null?void 0:eo.grid,{borderBottom:"none",borderRight:"none"}),ao=reactExports.useCallback(lo=>mergeStyles$1(oo===lo.id?eo==null?void 0:eo.selectedRow:""),[oo,eo==null?void 0:eo.selectedRow]);return jsxRuntimeExports.jsx(DataGrid$1$1,{rows:ro,columns:to(defaultColumns),onCellClick:io,className:so,rowClass:ao})},Wrapper=({viewModel:eo,children:to})=>{const ro=createRegistry({name:"gantt-wrapper"}),no=reactExports.useCallback(oo=>{oo.register(GanttViewModelToken,{useValue:eo})},[eo]);return jsxRuntimeExports.jsx(ro,{onInitialize:no,children:to})};var GanttGridTheme=(eo=>(eo.Light="rdg-light",eo.Dark="rdg-dark",eo))(GanttGridTheme||{});const Gantt=({viewModel:eo,styles:to,getColumns:ro})=>jsxRuntimeExports.jsx(Wrapper,{viewModel:eo,children:jsxRuntimeExports.jsx(GanttGridView,{styles:to,getColumns:ro})}),TraceDetailTemplate=({trace:eo,JSONView:to})=>{const ro=mergeStyleSets({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),no=eo.node_name??eo.name??"",oo=getTokensUsageByRow(eo),io=eo.inputs??{},so=eo.output??{};return jsxRuntimeExports.jsxs("div",{className:ro.root,children:[jsxRuntimeExports.jsx("div",{className:ro.header,children:no}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Overview"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsxs("div",{className:ro.overviewContainer,children:[jsxRuntimeExports.jsxs("div",{className:ro.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"total tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.totalTokens)}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"prompt tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.promptTokens)}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"completion tokens"}),jsxRuntimeExports.jsx("div",{children:numberToDigitsString(oo.completionTokens)})]}),jsxRuntimeExports.jsxs("div",{className:ro.overviewColumn,children:[jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"duration"}),jsxRuntimeExports.jsx("div",{children:eo.end_time&&eo.start_time?`${Math.round((eo.end_time-eo.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"started at"}),jsxRuntimeExports.jsx("div",{children:eo.start_time?timePDTFormatter(eo.start_time*1e3):"N/A"}),jsxRuntimeExports.jsx("div",{className:ro.fieldTitle,children:"finished at"}),jsxRuntimeExports.jsx("div",{children:eo.end_time?timePDTFormatter(eo.end_time*1e3):"N/A"})]})]})})]}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Inputs"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsx(to,{src:io})})]}),jsxRuntimeExports.jsxs("div",{className:ro.section,children:[jsxRuntimeExports.jsx("div",{className:ro.sectionTitle,children:"Outputs"}),jsxRuntimeExports.jsx("div",{className:ro.sectionContent,children:jsxRuntimeExports.jsx(to,{src:so})})]})]})},traceMap=new Map,hashTraceName=eo=>{let to=0,ro=0;if(eo.length===0)return to;for(let no=0;noeo.map(to=>{const ro=uuid_1.v4();return traceMap.set(ro,to),{startTime:to.start_time??performance.now(),endTime:to.end_time??performance.now(),color:SystemColors[hashTraceName(to.name??"")%systemColorsLength],id:ro,name:to.name??"",node_name:to.node_name??"",output:to.output??[],children:to.children?parseTrace(to.children):void 0}}),DefaultGridContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},className:to,defaultSize:{width:"50%",height:"100%"},children:eo}),DefaultContainer=({children:eo,className:to})=>jsxRuntimeExports.jsx("div",{className:to,children:eo}),ApiLogs=reactExports.forwardRef(({traces:eo,styles:to,isDarkMode:ro=!1,classNames:no,RootContainer:oo=DefaultContainer,GridContainer:io=DefaultGridContainer,DetailContainer:so=DefaultContainer,renderDetail:ao=fo=>jsxRuntimeExports.jsx(TraceDetailTemplate,{JSONView:po=>jsxRuntimeExports.jsx("pre",{children:JSON.stringify(po)}),trace:fo}),onChangeSelectedTrace:lo,renderUnselectedHint:uo=()=>jsxRuntimeExports.jsx("div",{children:"Click on a row to see details"})},co)=>{const fo=reactExports.useMemo(()=>eo.reduce((wo,Co)=>[...wo,...parseTrace(Co)],[]),[eo]),po=reactExports.useMemo(()=>new GanttViewModel,[]);reactExports.useEffect(()=>{po.setTasks(fo)},[fo,po]);const ho=useState(po.selectedRowId$),mo=useSetState(po.selectedRowId$),vo=reactExports.useMemo(()=>ho?traceMap.get(ho):void 0,[ho]),bo=reactExports.useMemo(()=>({...to,grid:mergeStyles$1(to==null?void 0:to.grid,ro?GanttGridTheme.Dark:GanttGridTheme.Light)}),[to,ro]),xo=mergeStyles$1({display:"flex",height:"100%",borderTop:"1px solid #ccc"},no==null?void 0:no.root),_o=mergeStyles$1({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},no==null?void 0:no.gridContainer),So=mergeStyles$1({height:"100%",width:"100%",padding:8},no==null?void 0:no.detailContainer),Eo=reactExports.useCallback(wo=>{var Ro;const Co=(Ro=fo.find(Ao=>Ao.node_name===wo))==null?void 0:Ro.id;Co&&mo(Co)},[fo,mo]);reactExports.useImperativeHandle(co,()=>({setSelectedTraceRow:Eo})),reactExports.useEffect(()=>{lo&&lo(vo)},[lo,vo]),reactExports.useEffect(()=>{mo(void 0)},[eo]);const ko=reactExports.useCallback(wo=>{const Co={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:Io}){const $o=getTokensUsageByRow(Io),Bo=`prompt tokens: ${numberToDigitsString($o.promptTokens)}, + completion tokens: ${$o.completionTokens}`;return jsxRuntimeExports.jsx("div",{style:{textAlign:"right"},title:Bo,children:numberToDigitsString($o.totalTokens)})}},[Ro,...Ao]=wo;return[Ro,Co,...Ao]},[]);return jsxRuntimeExports.jsxs(oo,{className:xo,children:[jsxRuntimeExports.jsx(io,{className:_o,children:jsxRuntimeExports.jsx(Gantt,{viewModel:po,styles:bo,getColumns:ko})}),jsxRuntimeExports.jsx(so,{className:So,children:vo?ao(vo):uo()})]})});ApiLogs.displayName="ApiLogs";const $global=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();$global.trustedTypes===void 0&&($global.trustedTypes={createPolicy:(eo,to)=>to});const propConfig={configurable:!1,enumerable:!1,writable:!1};$global.FAST===void 0&&Reflect.defineProperty($global,"FAST",Object.assign({value:Object.create(null)},propConfig));const FAST=$global.FAST;if(FAST.getById===void 0){const eo=Object.create(null);Reflect.defineProperty(FAST,"getById",Object.assign({value(to,ro){let no=eo[to];return no===void 0&&(no=ro?eo[to]=ro():null),no}},propConfig))}const emptyArray=Object.freeze([]);function createMetadataLocator(){const eo=new WeakMap;return function(to){let ro=eo.get(to);if(ro===void 0){let no=Reflect.getPrototypeOf(to);for(;ro===void 0&&no!==null;)ro=eo.get(no),no=Reflect.getPrototypeOf(no);ro=ro===void 0?[]:ro.slice(0),eo.set(to,ro)}return ro}}const updateQueue=$global.FAST.getById(1,()=>{const eo=[],to=[];function ro(){if(to.length)throw to.shift()}function no(so){try{so.call()}catch(ao){to.push(ao),setTimeout(ro,0)}}function oo(){let ao=0;for(;ao1024){for(let lo=0,uo=eo.length-ao;loeo});let htmlPolicy=fastHTMLPolicy;const marker=`fast-${Math.random().toString(36).substring(2,8)}`,_interpolationStart=`${marker}{`,_interpolationEnd=`}${marker}`,DOM=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(eo){if(htmlPolicy!==fastHTMLPolicy)throw new Error("The HTML policy can only be set once.");htmlPolicy=eo},createHTML(eo){return htmlPolicy.createHTML(eo)},isMarker(eo){return eo&&eo.nodeType===8&&eo.data.startsWith(marker)},extractDirectiveIndexFromMarker(eo){return parseInt(eo.data.replace(`${marker}:`,""))},createInterpolationPlaceholder(eo){return`${_interpolationStart}${eo}${_interpolationEnd}`},createCustomAttributePlaceholder(eo,to){return`${eo}="${this.createInterpolationPlaceholder(to)}"`},createBlockPlaceholder(eo){return``},queueUpdate:updateQueue.enqueue,processUpdates:updateQueue.process,nextUpdate(){return new Promise(updateQueue.enqueue)},setAttribute(eo,to,ro){ro==null?eo.removeAttribute(to):eo.setAttribute(to,ro)},setBooleanAttribute(eo,to,ro){ro?eo.setAttribute(to,""):eo.removeAttribute(to)},removeChildNodes(eo){for(let to=eo.firstChild;to!==null;to=eo.firstChild)eo.removeChild(to)},createTemplateWalker(eo){return document.createTreeWalker(eo,133,null,!1)}});class SubscriberSet{constructor(to,ro){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=to,this.sub1=ro}has(to){return this.spillover===void 0?this.sub1===to||this.sub2===to:this.spillover.indexOf(to)!==-1}subscribe(to){const ro=this.spillover;if(ro===void 0){if(this.has(to))return;if(this.sub1===void 0){this.sub1=to;return}if(this.sub2===void 0){this.sub2=to;return}this.spillover=[this.sub1,this.sub2,to],this.sub1=void 0,this.sub2=void 0}else ro.indexOf(to)===-1&&ro.push(to)}unsubscribe(to){const ro=this.spillover;if(ro===void 0)this.sub1===to?this.sub1=void 0:this.sub2===to&&(this.sub2=void 0);else{const no=ro.indexOf(to);no!==-1&&ro.splice(no,1)}}notify(to){const ro=this.spillover,no=this.source;if(ro===void 0){const oo=this.sub1,io=this.sub2;oo!==void 0&&oo.handleChange(no,to),io!==void 0&&io.handleChange(no,to)}else for(let oo=0,io=ro.length;oo{const eo=/(:|&&|\|\||if)/,to=new WeakMap,ro=DOM.queueUpdate;let no,oo=uo=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function io(uo){let co=uo.$fastController||to.get(uo);return co===void 0&&(Array.isArray(uo)?co=oo(uo):to.set(uo,co=new PropertyChangeNotifier(uo))),co}const so=createMetadataLocator();class ao{constructor(co){this.name=co,this.field=`_${co}`,this.callback=`${co}Changed`}getValue(co){return no!==void 0&&no.watch(co,this.name),co[this.field]}setValue(co,fo){const po=this.field,ho=co[po];if(ho!==fo){co[po]=fo;const mo=co[this.callback];typeof mo=="function"&&mo.call(co,ho,fo),io(co).notify(this.name)}}}class lo extends SubscriberSet{constructor(co,fo,po=!1){super(co,fo),this.binding=co,this.isVolatileBinding=po,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(co,fo){this.needsRefresh&&this.last!==null&&this.disconnect();const po=no;no=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const ho=this.binding(co,fo);return no=po,ho}disconnect(){if(this.last!==null){let co=this.first;for(;co!==void 0;)co.notifier.unsubscribe(this,co.propertyName),co=co.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(co,fo){const po=this.last,ho=io(co),mo=po===null?this.first:{};if(mo.propertySource=co,mo.propertyName=fo,mo.notifier=ho,ho.subscribe(this,fo),po!==null){if(!this.needsRefresh){let vo;no=void 0,vo=po.propertySource[po.propertyName],no=this,co===vo&&(this.needsRefresh=!0)}po.next=mo}this.last=mo}handleChange(){this.needsQueue&&(this.needsQueue=!1,ro(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let co=this.first;return{next:()=>{const fo=co;return fo===void 0?{value:void 0,done:!0}:(co=co.next,{value:fo,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(uo){oo=uo},getNotifier:io,track(uo,co){no!==void 0&&no.watch(uo,co)},trackVolatile(){no!==void 0&&(no.needsRefresh=!0)},notify(uo,co){io(uo).notify(co)},defineProperty(uo,co){typeof co=="string"&&(co=new ao(co)),so(uo).push(co),Reflect.defineProperty(uo,co.name,{enumerable:!0,get:function(){return co.getValue(this)},set:function(fo){co.setValue(this,fo)}})},getAccessors:so,binding(uo,co,fo=this.isVolatileBinding(uo)){return new lo(uo,co,fo)},isVolatileBinding(uo){return eo.test(uo.toString())}})});function observable(eo,to){Observable$1.defineProperty(eo,to)}function volatile(eo,to,ro){return Object.assign({},ro,{get:function(){return Observable$1.trackVolatile(),ro.get.apply(this)}})}const contextEvent=FAST.getById(3,()=>{let eo=null;return{get(){return eo},set(to){eo=to}}});class ExecutionContext{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return contextEvent.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(to){contextEvent.set(to)}}Observable$1.defineProperty(ExecutionContext.prototype,"index");Observable$1.defineProperty(ExecutionContext.prototype,"length");const defaultExecutionContext=Object.seal(new ExecutionContext);class HTMLDirective{constructor(){this.targetIndex=0}}class TargetedHTMLDirective extends HTMLDirective{constructor(){super(...arguments),this.createPlaceholder=DOM.createInterpolationPlaceholder}}class AttachedBehaviorHTMLDirective extends HTMLDirective{constructor(to,ro,no){super(),this.name=to,this.behavior=ro,this.options=no}createPlaceholder(to){return DOM.createCustomAttributePlaceholder(this.name,to)}createBehavior(to){return new this.behavior(to,this.options)}}function normalBind(eo,to){this.source=eo,this.context=to,this.bindingObserver===null&&(this.bindingObserver=Observable$1.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(eo,to))}function triggerBind(eo,to){this.source=eo,this.context=to,this.target.addEventListener(this.targetName,this)}function normalUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function contentUnbind(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const eo=this.target.$fastView;eo!==void 0&&eo.isComposed&&(eo.unbind(),eo.needsBindOnly=!0)}function triggerUnbind(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function updateAttributeTarget(eo){DOM.setAttribute(this.target,this.targetName,eo)}function updateBooleanAttributeTarget(eo){DOM.setBooleanAttribute(this.target,this.targetName,eo)}function updateContentTarget(eo){if(eo==null&&(eo=""),eo.create){this.target.textContent="";let to=this.target.$fastView;to===void 0?to=eo.create():this.target.$fastTemplate!==eo&&(to.isComposed&&(to.remove(),to.unbind()),to=eo.create()),to.isComposed?to.needsBindOnly&&(to.needsBindOnly=!1,to.bind(this.source,this.context)):(to.isComposed=!0,to.bind(this.source,this.context),to.insertBefore(this.target),this.target.$fastView=to,this.target.$fastTemplate=eo)}else{const to=this.target.$fastView;to!==void 0&&to.isComposed&&(to.isComposed=!1,to.remove(),to.needsBindOnly?to.needsBindOnly=!1:to.unbind()),this.target.textContent=eo}}function updatePropertyTarget(eo){this.target[this.targetName]=eo}function updateClassTarget(eo){const to=this.classVersions||Object.create(null),ro=this.target;let no=this.version||0;if(eo!=null&&eo.length){const oo=eo.split(/\s+/);for(let io=0,so=oo.length;ioDOM.createHTML(ro(no,oo))}break;case"?":this.cleanedTargetName=to.substr(1),this.updateTarget=updateBooleanAttributeTarget;break;case"@":this.cleanedTargetName=to.substr(1),this.bind=triggerBind,this.unbind=triggerUnbind;break;default:this.cleanedTargetName=to,to==="class"&&(this.updateTarget=updateClassTarget);break}}targetAtContent(){this.updateTarget=updateContentTarget,this.unbind=contentUnbind}createBehavior(to){return new BindingBehavior(to,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class BindingBehavior{constructor(to,ro,no,oo,io,so,ao){this.source=null,this.context=null,this.bindingObserver=null,this.target=to,this.binding=ro,this.isBindingVolatile=no,this.bind=oo,this.unbind=io,this.updateTarget=so,this.targetName=ao}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(to){ExecutionContext.setEvent(to);const ro=this.binding(this.source,this.context);ExecutionContext.setEvent(null),ro!==!0&&to.preventDefault()}}let sharedContext=null;class CompilationContext{addFactory(to){to.targetIndex=this.targetIndex,this.behaviorFactories.push(to)}captureContentBinding(to){to.targetAtContent(),this.addFactory(to)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){sharedContext=this}static borrow(to){const ro=sharedContext||new CompilationContext;return ro.directives=to,ro.reset(),sharedContext=null,ro}}function createAggregateBinding(eo){if(eo.length===1)return eo[0];let to;const ro=eo.length,no=eo.map(so=>typeof so=="string"?()=>so:(to=so.targetName||to,so.binding)),oo=(so,ao)=>{let lo="";for(let uo=0;uoao),uo.targetName=so.name):uo=createAggregateBinding(lo),uo!==null&&(to.removeAttributeNode(so),oo--,io--,eo.addFactory(uo))}}function compileContent(eo,to,ro){const no=parseContent(eo,to.textContent);if(no!==null){let oo=to;for(let io=0,so=no.length;io0}const ro=this.fragment.cloneNode(!0),no=this.viewBehaviorFactories,oo=new Array(this.behaviorCount),io=DOM.createTemplateWalker(ro);let so=0,ao=this.targetOffset,lo=io.nextNode();for(let uo=no.length;so=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function html(eo,...to){const ro=[];let no="";for(let oo=0,io=eo.length-1;oolo}if(typeof ao=="function"&&(ao=new HTMLBindingDirective(ao)),ao instanceof TargetedHTMLDirective){const lo=lastAttributeNameRegex.exec(so);lo!==null&&(ao.targetName=lo[2])}ao instanceof HTMLDirective?(no+=ao.createPlaceholder(ro.length),ro.push(ao)):no+=ao}return no+=eo[eo.length-1],new ViewTemplate(no,ro)}class ElementStyles{constructor(){this.targets=new WeakSet}addStylesTo(to){this.targets.add(to)}removeStylesFrom(to){this.targets.delete(to)}isAttachedTo(to){return this.targets.has(to)}withBehaviors(...to){return this.behaviors=this.behaviors===null?to:this.behaviors.concat(to),this}}ElementStyles.create=(()=>{if(DOM.supportsAdoptedStyleSheets){const eo=new Map;return to=>new AdoptedStyleSheetsStyles(to,eo)}return eo=>new StyleElementStyles(eo)})();function reduceStyles(eo){return eo.map(to=>to instanceof ElementStyles?reduceStyles(to.styles):[to]).reduce((to,ro)=>to.concat(ro),[])}function reduceBehaviors(eo){return eo.map(to=>to instanceof ElementStyles?to.behaviors:null).reduce((to,ro)=>ro===null?to:(to===null&&(to=[]),to.concat(ro)),null)}let addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=[...eo.adoptedStyleSheets,...to]},removeAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets=eo.adoptedStyleSheets.filter(ro=>to.indexOf(ro)===-1)};if(DOM.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),addAdoptedStyleSheets=(eo,to)=>{eo.adoptedStyleSheets.push(...to)},removeAdoptedStyleSheets=(eo,to)=>{for(const ro of to){const no=eo.adoptedStyleSheets.indexOf(ro);no!==-1&&eo.adoptedStyleSheets.splice(no,1)}}}catch{}class AdoptedStyleSheetsStyles extends ElementStyles{constructor(to,ro){super(),this.styles=to,this.styleSheetCache=ro,this._styleSheets=void 0,this.behaviors=reduceBehaviors(to)}get styleSheets(){if(this._styleSheets===void 0){const to=this.styles,ro=this.styleSheetCache;this._styleSheets=reduceStyles(to).map(no=>{if(no instanceof CSSStyleSheet)return no;let oo=ro.get(no);return oo===void 0&&(oo=new CSSStyleSheet,oo.replaceSync(no),ro.set(no,oo)),oo})}return this._styleSheets}addStylesTo(to){addAdoptedStyleSheets(to,this.styleSheets),super.addStylesTo(to)}removeStylesFrom(to){removeAdoptedStyleSheets(to,this.styleSheets),super.removeStylesFrom(to)}}let styleClassId=0;function getNextStyleClass(){return`fast-style-class-${++styleClassId}`}class StyleElementStyles extends ElementStyles{constructor(to){super(),this.styles=to,this.behaviors=null,this.behaviors=reduceBehaviors(to),this.styleSheets=reduceStyles(to),this.styleClass=getNextStyleClass()}addStylesTo(to){const ro=this.styleSheets,no=this.styleClass;to=this.normalizeTarget(to);for(let oo=0;oo{no.add(to);const oo=to[this.fieldName];switch(ro){case"reflect":const io=this.converter;DOM.setAttribute(to,this.attribute,io!==void 0?io.toView(oo):oo);break;case"boolean":DOM.setBooleanAttribute(to,this.attribute,oo);break}no.delete(to)})}static collect(to,...ro){const no=[];ro.push(AttributeConfiguration.locate(to));for(let oo=0,io=ro.length;oo1&&(ro.property=io),AttributeConfiguration.locate(oo.constructor).push(ro)}if(arguments.length>1){ro={},no(eo,to);return}return ro=eo===void 0?{}:eo,no}const defaultShadowOptions={mode:"open"},defaultElementOptions={},fastRegistry=FAST.getById(4,()=>{const eo=new Map;return Object.freeze({register(to){return eo.has(to.type)?!1:(eo.set(to.type,to),!0)},getByType(to){return eo.get(to)}})});class FASTElementDefinition{constructor(to,ro=to.definition){typeof ro=="string"&&(ro={name:ro}),this.type=to,this.name=ro.name,this.template=ro.template;const no=AttributeDefinition.collect(to,ro.attributes),oo=new Array(no.length),io={},so={};for(let ao=0,lo=no.length;ao0){const io=this.boundObservables=Object.create(null);for(let so=0,ao=oo.length;so0||ro>0;){if(to===0){oo.push(EDIT_ADD),ro--;continue}if(ro===0){oo.push(EDIT_DELETE),to--;continue}const io=eo[to-1][ro-1],so=eo[to-1][ro],ao=eo[to][ro-1];let lo;so=0){eo.splice(ao,1),ao--,so-=lo.addedCount-lo.removed.length,oo.addedCount+=lo.addedCount-uo;const co=oo.removed.length+lo.removed.length-uo;if(!oo.addedCount&&!co)io=!0;else{let fo=lo.removed;if(oo.indexlo.index+lo.addedCount){const po=oo.removed.slice(lo.index+lo.addedCount-oo.index);$push.apply(fo,po)}oo.removed=fo,lo.indexno?ro=no-eo.addedCount:ro<0&&(ro=no+eo.removed.length+ro-eo.addedCount),ro<0&&(ro=0),eo.index=ro,eo}class ArrayObserver extends SubscriberSet{constructor(to){super(to),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(to,"$fastController",{value:this,enumerable:!1})}subscribe(to){this.flush(),super.subscribe(to)}addSplice(to){this.splices===void 0?this.splices=[to]:this.splices.push(to),this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}reset(to){this.oldCollection=to,this.needsQueue&&(this.needsQueue=!1,DOM.queueUpdate(this))}flush(){const to=this.splices,ro=this.oldCollection;if(to===void 0&&ro===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const no=ro===void 0?projectArraySplices(this.source,to):calcSplices(this.source,0,this.source.length,ro,0,ro.length);this.notify(no)}}function enableArrayObservation(){if(arrayObservationEnabled)return;arrayObservationEnabled=!0,Observable$1.setArrayObserverFactory(lo=>new ArrayObserver(lo));const eo=Array.prototype;if(eo.$fastPatch)return;Reflect.defineProperty(eo,"$fastPatch",{value:1,enumerable:!1});const to=eo.pop,ro=eo.push,no=eo.reverse,oo=eo.shift,io=eo.sort,so=eo.splice,ao=eo.unshift;eo.pop=function(){const lo=this.length>0,uo=to.apply(this,arguments),co=this.$fastController;return co!==void 0&&lo&&co.addSplice(newSplice(this.length,[uo],0)),uo},eo.push=function(){const lo=ro.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(this.length-arguments.length,[],arguments.length),this)),lo},eo.reverse=function(){let lo;const uo=this.$fastController;uo!==void 0&&(uo.flush(),lo=this.slice());const co=no.apply(this,arguments);return uo!==void 0&&uo.reset(lo),co},eo.shift=function(){const lo=this.length>0,uo=oo.apply(this,arguments),co=this.$fastController;return co!==void 0&&lo&&co.addSplice(newSplice(0,[uo],0)),uo},eo.sort=function(){let lo;const uo=this.$fastController;uo!==void 0&&(uo.flush(),lo=this.slice());const co=io.apply(this,arguments);return uo!==void 0&&uo.reset(lo),co},eo.splice=function(){const lo=so.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(+arguments[0],lo,arguments.length>2?arguments.length-2:0),this)),lo},eo.unshift=function(){const lo=ao.apply(this,arguments),uo=this.$fastController;return uo!==void 0&&uo.addSplice(adjustIndex(newSplice(0,[],arguments.length),this)),lo}}class RefBehavior{constructor(to,ro){this.target=to,this.propertyName=ro}bind(to){to[this.propertyName]=this.target}unbind(){}}function ref(eo){return new AttachedBehaviorHTMLDirective("fast-ref",RefBehavior,eo)}const isFunction$1=eo=>typeof eo=="function",noTemplate=()=>null;function normalizeBinding(eo){return eo===void 0?noTemplate:isFunction$1(eo)?eo:()=>eo}function when(eo,to,ro){const no=isFunction$1(eo)?eo:()=>eo,oo=normalizeBinding(to),io=normalizeBinding(ro);return(so,ao)=>no(so,ao)?oo(so,ao):io(so,ao)}function bindWithoutPositioning(eo,to,ro,no){eo.bind(to[ro],no)}function bindWithPositioning(eo,to,ro,no){const oo=Object.create(no);oo.index=ro,oo.length=to.length,eo.bind(to[ro],oo)}class RepeatBehavior{constructor(to,ro,no,oo,io,so){this.location=to,this.itemsBinding=ro,this.templateBinding=oo,this.options=so,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=bindWithoutPositioning,this.itemsBindingObserver=Observable$1.binding(ro,this,no),this.templateBindingObserver=Observable$1.binding(oo,this,io),so.positioning&&(this.bindView=bindWithPositioning)}bind(to,ro){this.source=to,this.originalContext=ro,this.childContext=Object.create(ro),this.childContext.parent=to,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(to,this.originalContext),this.template=this.templateBindingObserver.observe(to,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(to,ro){to===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):to===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(ro)}observeItems(to=!1){if(!this.items){this.items=emptyArray;return}const ro=this.itemsObserver,no=this.itemsObserver=Observable$1.getNotifier(this.items),oo=ro!==no;oo&&ro!==null&&ro.unsubscribe(this),(oo||to)&&no.subscribe(this)}updateViews(to){const ro=this.childContext,no=this.views,oo=this.bindView,io=this.items,so=this.template,ao=this.options.recycle,lo=[];let uo=0,co=0;for(let fo=0,po=to.length;fo0?(vo<=So&&_o.length>0?(wo=_o[vo],vo++):(wo=lo[uo],uo++),co--):wo=so.create(),no.splice(bo,0,wo),oo(wo,io,bo,ro),wo.insertBefore(ko)}_o[vo]&&lo.push(..._o.slice(vo))}for(let fo=uo,po=lo.length;fono.name===ro),this.source=to,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(emptyArray),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let to=this.getNodes();return this.options.filter!==void 0&&(to=to.filter(this.options.filter)),to}updateTarget(to){this.source[this.options.property]=to}}class SlottedBehavior extends NodeObservationBehavior{constructor(to,ro){super(to,ro)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function slotted(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-slotted",SlottedBehavior,eo)}class ChildrenBehavior extends NodeObservationBehavior{constructor(to,ro){super(to,ro),this.observer=null,ro.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function children(eo){return typeof eo=="string"&&(eo={property:eo}),new AttachedBehaviorHTMLDirective("fast-children",ChildrenBehavior,eo)}class StartEnd{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const endSlotTemplate=(eo,to)=>html` + to.end?"end":void 0} + > + + ${to.end||""} + + +`,startSlotTemplate=(eo,to)=>html` + + + ${to.start||""} + + +`;html` + + + +`;html` + + + +`;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function __decorate(eo,to,ro,no){var oo=arguments.length,io=oo<3?to:no===null?no=Object.getOwnPropertyDescriptor(to,ro):no,so;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")io=Reflect.decorate(eo,to,ro,no);else for(var ao=eo.length-1;ao>=0;ao--)(so=eo[ao])&&(io=(oo<3?so(io):oo>3?so(to,ro,io):so(to,ro))||io);return oo>3&&io&&Object.defineProperty(to,ro,io),io}const metadataByTarget=new Map;"metadata"in Reflect||(Reflect.metadata=function(eo,to){return function(ro){Reflect.defineMetadata(eo,to,ro)}},Reflect.defineMetadata=function(eo,to,ro){let no=metadataByTarget.get(ro);no===void 0&&metadataByTarget.set(ro,no=new Map),no.set(eo,to)},Reflect.getOwnMetadata=function(eo,to){const ro=metadataByTarget.get(to);if(ro!==void 0)return ro.get(eo)});class ResolverBuilder{constructor(to,ro){this.container=to,this.key=ro}instance(to){return this.registerResolver(0,to)}singleton(to){return this.registerResolver(1,to)}transient(to){return this.registerResolver(2,to)}callback(to){return this.registerResolver(3,to)}cachedCallback(to){return this.registerResolver(3,cacheCallbackResult(to))}aliasTo(to){return this.registerResolver(5,to)}registerResolver(to,ro){const{container:no,key:oo}=this;return this.container=this.key=void 0,no.registerResolver(oo,new ResolverImpl(oo,to,ro))}}function cloneArrayWithPossibleProps(eo){const to=eo.slice(),ro=Object.keys(eo),no=ro.length;let oo;for(let io=0;ionull,responsibleForOwnerRequests:!1,defaultResolver:DefaultResolver.singleton})}),dependencyLookup=new Map;function getParamTypes(eo){return to=>Reflect.getOwnMetadata(eo,to)}let rootDOMContainer=null;const DI=Object.freeze({createContainer(eo){return new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,eo))},findResponsibleContainer(eo){const to=eo.$$container$$;return to&&to.responsibleForOwnerRequests?to:DI.findParentContainer(eo)},findParentContainer(eo){const to=new CustomEvent(DILocateParentEventType,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return eo.dispatchEvent(to),to.detail.container||DI.getOrCreateDOMContainer()},getOrCreateDOMContainer(eo,to){return eo?eo.$$container$$||new ContainerImpl(eo,Object.assign({},ContainerConfiguration.default,to,{parentLocator:DI.findParentContainer})):rootDOMContainer||(rootDOMContainer=new ContainerImpl(null,Object.assign({},ContainerConfiguration.default,to,{parentLocator:()=>null})))},getDesignParamtypes:getParamTypes("design:paramtypes"),getAnnotationParamtypes:getParamTypes("di:paramtypes"),getOrCreateAnnotationParamTypes(eo){let to=this.getAnnotationParamtypes(eo);return to===void 0&&Reflect.defineMetadata("di:paramtypes",to=[],eo),to},getDependencies(eo){let to=dependencyLookup.get(eo);if(to===void 0){const ro=eo.inject;if(ro===void 0){const no=DI.getDesignParamtypes(eo),oo=DI.getAnnotationParamtypes(eo);if(no===void 0)if(oo===void 0){const io=Object.getPrototypeOf(eo);typeof io=="function"&&io!==Function.prototype?to=cloneArrayWithPossibleProps(DI.getDependencies(io)):to=[]}else to=cloneArrayWithPossibleProps(oo);else if(oo===void 0)to=cloneArrayWithPossibleProps(no);else{to=cloneArrayWithPossibleProps(no);let io=oo.length,so;for(let uo=0;uo{const co=DI.findResponsibleContainer(this).get(ro),fo=this[oo];co!==fo&&(this[oo]=io,ao.notify(to))};ao.subscribe({handleChange:lo},"isConnected")}return io}})},createInterface(eo,to){const ro=typeof eo=="function"?eo:to,no=typeof eo=="string"?eo:eo&&"friendlyName"in eo&&eo.friendlyName||defaultFriendlyName,oo=typeof eo=="string"?!1:eo&&"respectConnection"in eo&&eo.respectConnection||!1,io=function(so,ao,lo){if(so==null||new.target!==void 0)throw new Error(`No registration for interface: '${io.friendlyName}'`);if(ao)DI.defineProperty(so,ao,io,oo);else{const uo=DI.getOrCreateAnnotationParamTypes(so);uo[lo]=io}};return io.$isInterface=!0,io.friendlyName=no??"(anonymous)",ro!=null&&(io.register=function(so,ao){return ro(new ResolverBuilder(so,ao??io))}),io.toString=function(){return`InterfaceSymbol<${io.friendlyName}>`},io},inject(...eo){return function(to,ro,no){if(typeof no=="number"){const oo=DI.getOrCreateAnnotationParamTypes(to),io=eo[0];io!==void 0&&(oo[no]=io)}else if(ro)DI.defineProperty(to,ro,eo[0]);else{const oo=no?DI.getOrCreateAnnotationParamTypes(no.value):DI.getOrCreateAnnotationParamTypes(to);let io;for(let so=0;so{no.composedPath()[0]!==this.owner&&(no.detail.container=this,no.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(to,...ro){return this.context=to,this.register(...ro),this.context=null,this}register(...to){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let ro,no,oo,io,so;const ao=this.context;for(let lo=0,uo=to.length;lothis}))}jitRegister(to,ro){if(typeof to!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${to}'. Did you forget to register this dependency?`);if(InstrinsicTypeNames.has(to.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${to.name}. Did you forget to add @inject(Key)`);if(isRegistry(to)){const no=to.register(ro);if(!(no instanceof Object)||no.resolve==null){const oo=ro.resolvers.get(to);if(oo!=null)return oo;throw new Error("A valid resolver was not returned from the static register method")}return no}else{if(to.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${to.friendlyName}`);{const no=this.config.defaultResolver(to,ro);return ro.resolvers.set(to,no),no}}}}const cache=new WeakMap;function cacheCallbackResult(eo){return function(to,ro,no){if(cache.has(no))return cache.get(no);const oo=eo(to,ro,no);return cache.set(no,oo),oo}}const Registration=Object.freeze({instance(eo,to){return new ResolverImpl(eo,0,to)},singleton(eo,to){return new ResolverImpl(eo,1,to)},transient(eo,to){return new ResolverImpl(eo,2,to)},callback(eo,to){return new ResolverImpl(eo,3,to)},cachedCallback(eo,to){return new ResolverImpl(eo,3,cacheCallbackResult(to))},aliasTo(eo,to){return new ResolverImpl(to,5,eo)}});function validateKey(eo){if(eo==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function buildAllResponse(eo,to,ro){if(eo instanceof ResolverImpl&&eo.strategy===4){const no=eo.state;let oo=no.length;const io=new Array(oo);for(;oo--;)io[oo]=no[oo].resolve(to,ro);return io}return[eo.resolve(to,ro)]}const defaultFriendlyName="(anonymous)";function isObject$3(eo){return typeof eo=="object"&&eo!==null||typeof eo=="function"}const isNativeFunction=function(){const eo=new WeakMap;let to=!1,ro="",no=0;return function(oo){return to=eo.get(oo),to===void 0&&(ro=oo.toString(),no=ro.length,to=no>=29&&no<=100&&ro.charCodeAt(no-1)===125&&ro.charCodeAt(no-2)<=32&&ro.charCodeAt(no-3)===93&&ro.charCodeAt(no-4)===101&&ro.charCodeAt(no-5)===100&&ro.charCodeAt(no-6)===111&&ro.charCodeAt(no-7)===99&&ro.charCodeAt(no-8)===32&&ro.charCodeAt(no-9)===101&&ro.charCodeAt(no-10)===118&&ro.charCodeAt(no-11)===105&&ro.charCodeAt(no-12)===116&&ro.charCodeAt(no-13)===97&&ro.charCodeAt(no-14)===110&&ro.charCodeAt(no-15)===88,eo.set(oo,to)),to}}(),isNumericLookup={};function isArrayIndex(eo){switch(typeof eo){case"number":return eo>=0&&(eo|0)===eo;case"string":{const to=isNumericLookup[eo];if(to!==void 0)return to;const ro=eo.length;if(ro===0)return isNumericLookup[eo]=!1;let no=0;for(let oo=0;oo1||no<48||no>57)return isNumericLookup[eo]=!1;return isNumericLookup[eo]=!0}default:return!1}}function presentationKeyFromTag(eo){return`${eo.toLowerCase()}:presentation`}const presentationRegistry=new Map,ComponentPresentation=Object.freeze({define(eo,to,ro){const no=presentationKeyFromTag(eo);presentationRegistry.get(no)===void 0?presentationRegistry.set(no,to):presentationRegistry.set(no,!1),ro.register(Registration.instance(no,to))},forTag(eo,to){const ro=presentationKeyFromTag(eo),no=presentationRegistry.get(ro);return no===!1?DI.findResponsibleContainer(to).get(ro):no||null}});class DefaultComponentPresentation{constructor(to,ro){this.template=to||null,this.styles=ro===void 0?null:Array.isArray(ro)?ElementStyles.create(ro):ro instanceof ElementStyles?ro:ElementStyles.create([ro])}applyTo(to){const ro=to.$fastController;ro.template===null&&(ro.template=this.template),ro.styles===null&&(ro.styles=this.styles)}}class FoundationElement extends FASTElement{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=ComponentPresentation.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(to){return(ro={})=>new FoundationElementRegistry(this===FoundationElement?class extends FoundationElement{}:this,to,ro)}}__decorate([observable],FoundationElement.prototype,"template",void 0);__decorate([observable],FoundationElement.prototype,"styles",void 0);function resolveOption(eo,to,ro){return typeof eo=="function"?eo(to,ro):eo}class FoundationElementRegistry{constructor(to,ro,no){this.type=to,this.elementDefinition=ro,this.overrideDefinition=no,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(to,ro){const no=this.definition,oo=this.overrideDefinition,so=`${no.prefix||ro.elementPrefix}-${no.baseName}`;ro.tryDefineElement({name:so,type:this.type,baseClass:this.elementDefinition.baseClass,callback:ao=>{const lo=new DefaultComponentPresentation(resolveOption(no.template,ao,no),resolveOption(no.styles,ao,no));ao.definePresentation(lo);let uo=resolveOption(no.shadowOptions,ao,no);ao.shadowRootMode&&(uo?oo.shadowOptions||(uo.mode=ao.shadowRootMode):uo!==null&&(uo={mode:ao.shadowRootMode})),ao.defineElement({elementOptions:resolveOption(no.elementOptions,ao,no),shadowOptions:uo,attributes:resolveOption(no.attributes,ao,no)})}})}}function applyMixins(eo,...to){const ro=AttributeConfiguration.locate(eo);to.forEach(no=>{Object.getOwnPropertyNames(no.prototype).forEach(io=>{io!=="constructor"&&Object.defineProperty(eo.prototype,io,Object.getOwnPropertyDescriptor(no.prototype,io))}),AttributeConfiguration.locate(no).forEach(io=>ro.push(io))})}const Orientation={horizontal:"horizontal",vertical:"vertical"};function findLastIndex(eo,to){let ro=eo.length;for(;ro--;)if(to(eo[ro],ro,eo))return ro;return-1}function canUseDOM$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function isHTMLElement$3(...eo){return eo.every(to=>to instanceof HTMLElement)}function getNonce(){const eo=document.querySelector('meta[property="csp-nonce"]');return eo?eo.getAttribute("content"):null}let _canUseFocusVisible;function canUseFocusVisible(){if(typeof _canUseFocusVisible=="boolean")return _canUseFocusVisible;if(!canUseDOM$1())return _canUseFocusVisible=!1,_canUseFocusVisible;const eo=document.createElement("style"),to=getNonce();to!==null&&eo.setAttribute("nonce",to),document.head.appendChild(eo);try{eo.sheet.insertRule("foo:focus-visible {color:inherit}",0),_canUseFocusVisible=!0}catch{_canUseFocusVisible=!1}finally{document.head.removeChild(eo)}return _canUseFocusVisible}const eventFocus="focus",eventFocusIn="focusin",eventFocusOut="focusout",eventKeyDown="keydown";var KeyCodes;(function(eo){eo[eo.alt=18]="alt",eo[eo.arrowDown=40]="arrowDown",eo[eo.arrowLeft=37]="arrowLeft",eo[eo.arrowRight=39]="arrowRight",eo[eo.arrowUp=38]="arrowUp",eo[eo.back=8]="back",eo[eo.backSlash=220]="backSlash",eo[eo.break=19]="break",eo[eo.capsLock=20]="capsLock",eo[eo.closeBracket=221]="closeBracket",eo[eo.colon=186]="colon",eo[eo.colon2=59]="colon2",eo[eo.comma=188]="comma",eo[eo.ctrl=17]="ctrl",eo[eo.delete=46]="delete",eo[eo.end=35]="end",eo[eo.enter=13]="enter",eo[eo.equals=187]="equals",eo[eo.equals2=61]="equals2",eo[eo.equals3=107]="equals3",eo[eo.escape=27]="escape",eo[eo.forwardSlash=191]="forwardSlash",eo[eo.function1=112]="function1",eo[eo.function10=121]="function10",eo[eo.function11=122]="function11",eo[eo.function12=123]="function12",eo[eo.function2=113]="function2",eo[eo.function3=114]="function3",eo[eo.function4=115]="function4",eo[eo.function5=116]="function5",eo[eo.function6=117]="function6",eo[eo.function7=118]="function7",eo[eo.function8=119]="function8",eo[eo.function9=120]="function9",eo[eo.home=36]="home",eo[eo.insert=45]="insert",eo[eo.menu=93]="menu",eo[eo.minus=189]="minus",eo[eo.minus2=109]="minus2",eo[eo.numLock=144]="numLock",eo[eo.numPad0=96]="numPad0",eo[eo.numPad1=97]="numPad1",eo[eo.numPad2=98]="numPad2",eo[eo.numPad3=99]="numPad3",eo[eo.numPad4=100]="numPad4",eo[eo.numPad5=101]="numPad5",eo[eo.numPad6=102]="numPad6",eo[eo.numPad7=103]="numPad7",eo[eo.numPad8=104]="numPad8",eo[eo.numPad9=105]="numPad9",eo[eo.numPadDivide=111]="numPadDivide",eo[eo.numPadDot=110]="numPadDot",eo[eo.numPadMinus=109]="numPadMinus",eo[eo.numPadMultiply=106]="numPadMultiply",eo[eo.numPadPlus=107]="numPadPlus",eo[eo.openBracket=219]="openBracket",eo[eo.pageDown=34]="pageDown",eo[eo.pageUp=33]="pageUp",eo[eo.period=190]="period",eo[eo.print=44]="print",eo[eo.quote=222]="quote",eo[eo.scrollLock=145]="scrollLock",eo[eo.shift=16]="shift",eo[eo.space=32]="space",eo[eo.tab=9]="tab",eo[eo.tilde=192]="tilde",eo[eo.windowsLeft=91]="windowsLeft",eo[eo.windowsOpera=219]="windowsOpera",eo[eo.windowsRight=92]="windowsRight"})(KeyCodes||(KeyCodes={}));const keyArrowDown="ArrowDown",keyArrowLeft="ArrowLeft",keyArrowRight="ArrowRight",keyArrowUp="ArrowUp",keyEnter="Enter",keyEscape="Escape",keyHome="Home",keyEnd="End",keyFunction2="F2",keyPageDown="PageDown",keyPageUp="PageUp",keySpace=" ",keyTab="Tab",ArrowKeys={ArrowDown:keyArrowDown,ArrowLeft:keyArrowLeft,ArrowRight:keyArrowRight,ArrowUp:keyArrowUp};var Direction;(function(eo){eo.ltr="ltr",eo.rtl="rtl"})(Direction||(Direction={}));function limit(eo,to,ro){return Math.min(Math.max(ro,eo),to)}function inRange(eo,to,ro=0){return[to,ro]=[to,ro].sort((no,oo)=>no-oo),to<=eo&&eohtml` + + ${startSlotTemplate(eo,to)} + + + + ${endSlotTemplate(eo,to)} + +`;class ARIAGlobalStatesAndProperties{}__decorate([attr({attribute:"aria-atomic"})],ARIAGlobalStatesAndProperties.prototype,"ariaAtomic",void 0);__decorate([attr({attribute:"aria-busy"})],ARIAGlobalStatesAndProperties.prototype,"ariaBusy",void 0);__decorate([attr({attribute:"aria-controls"})],ARIAGlobalStatesAndProperties.prototype,"ariaControls",void 0);__decorate([attr({attribute:"aria-current"})],ARIAGlobalStatesAndProperties.prototype,"ariaCurrent",void 0);__decorate([attr({attribute:"aria-describedby"})],ARIAGlobalStatesAndProperties.prototype,"ariaDescribedby",void 0);__decorate([attr({attribute:"aria-details"})],ARIAGlobalStatesAndProperties.prototype,"ariaDetails",void 0);__decorate([attr({attribute:"aria-disabled"})],ARIAGlobalStatesAndProperties.prototype,"ariaDisabled",void 0);__decorate([attr({attribute:"aria-errormessage"})],ARIAGlobalStatesAndProperties.prototype,"ariaErrormessage",void 0);__decorate([attr({attribute:"aria-flowto"})],ARIAGlobalStatesAndProperties.prototype,"ariaFlowto",void 0);__decorate([attr({attribute:"aria-haspopup"})],ARIAGlobalStatesAndProperties.prototype,"ariaHaspopup",void 0);__decorate([attr({attribute:"aria-hidden"})],ARIAGlobalStatesAndProperties.prototype,"ariaHidden",void 0);__decorate([attr({attribute:"aria-invalid"})],ARIAGlobalStatesAndProperties.prototype,"ariaInvalid",void 0);__decorate([attr({attribute:"aria-keyshortcuts"})],ARIAGlobalStatesAndProperties.prototype,"ariaKeyshortcuts",void 0);__decorate([attr({attribute:"aria-label"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabel",void 0);__decorate([attr({attribute:"aria-labelledby"})],ARIAGlobalStatesAndProperties.prototype,"ariaLabelledby",void 0);__decorate([attr({attribute:"aria-live"})],ARIAGlobalStatesAndProperties.prototype,"ariaLive",void 0);__decorate([attr({attribute:"aria-owns"})],ARIAGlobalStatesAndProperties.prototype,"ariaOwns",void 0);__decorate([attr({attribute:"aria-relevant"})],ARIAGlobalStatesAndProperties.prototype,"ariaRelevant",void 0);__decorate([attr({attribute:"aria-roledescription"})],ARIAGlobalStatesAndProperties.prototype,"ariaRoledescription",void 0);class Anchor extends FoundationElement{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var to;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((to=this.$fastController.definition.shadowOptions)===null||to===void 0)&&to.delegatesFocus)&&(this.focus=()=>{var ro;(ro=this.control)===null||ro===void 0||ro.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}__decorate([attr],Anchor.prototype,"download",void 0);__decorate([attr],Anchor.prototype,"href",void 0);__decorate([attr],Anchor.prototype,"hreflang",void 0);__decorate([attr],Anchor.prototype,"ping",void 0);__decorate([attr],Anchor.prototype,"referrerpolicy",void 0);__decorate([attr],Anchor.prototype,"rel",void 0);__decorate([attr],Anchor.prototype,"target",void 0);__decorate([attr],Anchor.prototype,"type",void 0);__decorate([observable],Anchor.prototype,"defaultSlottedContent",void 0);class DelegatesARIALink{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIALink.prototype,"ariaExpanded",void 0);applyMixins(DelegatesARIALink,ARIAGlobalStatesAndProperties);applyMixins(Anchor,StartEnd,DelegatesARIALink);const getDirection=eo=>{const to=eo.closest("[dir]");return to!==null&&to.dir==="rtl"?Direction.rtl:Direction.ltr},badgeTemplate=(eo,to)=>html` + +`;let Badge$1=class extends FoundationElement{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const to=`background-color: var(--badge-fill-${this.fill});`,ro=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?to:this.color&&!this.fill?ro:`${ro} ${to}`}}};__decorate([attr({attribute:"fill"})],Badge$1.prototype,"fill",void 0);__decorate([attr({attribute:"color"})],Badge$1.prototype,"color",void 0);__decorate([attr({mode:"boolean"})],Badge$1.prototype,"circular",void 0);const buttonTemplate=(eo,to)=>html` + +`,proxySlotName="form-associated-proxy",ElementInternalsKey="ElementInternals",supportsElementInternals=ElementInternalsKey in window&&"setFormValue"in window[ElementInternalsKey].prototype,InternalsMap=new WeakMap;function FormAssociated(eo){const to=class extends eo{constructor(...ro){super(...ro),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return supportsElementInternals}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const ro=this.proxy.labels,no=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),oo=ro?no.concat(Array.from(ro)):no;return Object.freeze(oo)}else return emptyArray}valueChanged(ro,no){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(ro,no){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),DOM.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(ro,no){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),DOM.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!supportsElementInternals)return null;let ro=InternalsMap.get(this);return ro||(ro=this.attachInternals(),InternalsMap.set(this,ro)),ro}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(ro=>this.proxy.removeEventListener(ro,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(ro,no,oo){this.elementInternals?this.elementInternals.setValidity(ro,no,oo):typeof no=="string"&&this.proxy.setCustomValidity(no)}formDisabledCallback(ro){this.disabled=ro}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var ro;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(no=>this.proxy.addEventListener(no,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",proxySlotName),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",proxySlotName)),(ro=this.shadowRoot)===null||ro===void 0||ro.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var ro;this.removeChild(this.proxy),(ro=this.shadowRoot)===null||ro===void 0||ro.removeChild(this.proxySlot)}validate(ro){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,ro)}setFormValue(ro,no){this.elementInternals&&this.elementInternals.setFormValue(ro,no||ro)}_keypressHandler(ro){switch(ro.key){case keyEnter:if(this.form instanceof HTMLFormElement){const no=this.form.querySelector("[type=submit]");no==null||no.click()}break}}stopPropagation(ro){ro.stopPropagation()}};return attr({mode:"boolean"})(to.prototype,"disabled"),attr({mode:"fromView",attribute:"value"})(to.prototype,"initialValue"),attr({attribute:"current-value"})(to.prototype,"currentValue"),attr(to.prototype,"name"),attr({mode:"boolean"})(to.prototype,"required"),observable(to.prototype,"value"),to}function CheckableFormAssociated(eo){class to extends FormAssociated(eo){}class ro extends to{constructor(...oo){super(oo),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(oo,io){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),oo!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(oo,io){this.checked=this.currentChecked}updateForm(){const oo=this.checked?this.value:null;this.setFormValue(oo,oo)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return attr({attribute:"checked",mode:"boolean"})(ro.prototype,"checkedAttribute"),attr({attribute:"current-checked",converter:booleanConverter})(ro.prototype,"currentChecked"),observable(ro.prototype,"defaultChecked"),observable(ro.prototype,"checked"),ro}class _Button extends FoundationElement{}class FormAssociatedButton extends FormAssociated(_Button){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Button$1=class extends FormAssociatedButton{constructor(){super(...arguments),this.handleClick=to=>{var ro;this.disabled&&((ro=this.defaultSlottedContent)===null||ro===void 0?void 0:ro.length)<=1&&to.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const to=this.proxy.isConnected;to||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),to||this.detachProxy()},this.handleFormReset=()=>{var to;(to=this.form)===null||to===void 0||to.reset()},this.handleUnsupportedDelegatesFocus=()=>{var to;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((to=this.$fastController.definition.shadowOptions)===null||to===void 0)&&to.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(to,ro){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),ro==="submit"&&this.addEventListener("click",this.handleSubmission),to==="submit"&&this.removeEventListener("click",this.handleSubmission),ro==="reset"&&this.addEventListener("click",this.handleFormReset),to==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var to;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const ro=Array.from((to=this.control)===null||to===void 0?void 0:to.children);ro&&ro.forEach(no=>{no.addEventListener("click",this.handleClick)})}disconnectedCallback(){var to;super.disconnectedCallback();const ro=Array.from((to=this.control)===null||to===void 0?void 0:to.children);ro&&ro.forEach(no=>{no.removeEventListener("click",this.handleClick)})}};__decorate([attr({mode:"boolean"})],Button$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],Button$1.prototype,"formId",void 0);__decorate([attr],Button$1.prototype,"formaction",void 0);__decorate([attr],Button$1.prototype,"formenctype",void 0);__decorate([attr],Button$1.prototype,"formmethod",void 0);__decorate([attr({mode:"boolean"})],Button$1.prototype,"formnovalidate",void 0);__decorate([attr],Button$1.prototype,"formtarget",void 0);__decorate([attr],Button$1.prototype,"type",void 0);__decorate([observable],Button$1.prototype,"defaultSlottedContent",void 0);class DelegatesARIAButton{}__decorate([attr({attribute:"aria-expanded"})],DelegatesARIAButton.prototype,"ariaExpanded",void 0);__decorate([attr({attribute:"aria-pressed"})],DelegatesARIAButton.prototype,"ariaPressed",void 0);applyMixins(DelegatesARIAButton,ARIAGlobalStatesAndProperties);applyMixins(Button$1,StartEnd,DelegatesARIAButton);const GenerateHeaderOptions={none:"none",default:"default",sticky:"sticky"},DataGridCellTypes={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},DataGridRowTypes={default:"default",header:"header",stickyHeader:"sticky-header"};let DataGridRow$1=class extends FoundationElement{constructor(){super(...arguments),this.rowType=DataGridRowTypes.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new RepeatDirective(to=>to.columnDefinitions,to=>to.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown)}handleFocusout(to){this.contains(to.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(to){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(to.target),this.$emit("row-focused",this)}handleKeydown(to){if(to.defaultPrevented)return;let ro=0;switch(to.key){case keyArrowLeft:ro=Math.max(0,this.focusColumnIndex-1),this.cellElements[ro].focus(),to.preventDefault();break;case keyArrowRight:ro=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[ro].focus(),to.preventDefault();break;case keyHome:to.ctrlKey||(this.cellElements[0].focus(),to.preventDefault());break;case keyEnd:to.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),to.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===DataGridRowTypes.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===DataGridRowTypes.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};__decorate([attr({attribute:"grid-template-columns"})],DataGridRow$1.prototype,"gridTemplateColumns",void 0);__decorate([attr({attribute:"row-type"})],DataGridRow$1.prototype,"rowType",void 0);__decorate([observable],DataGridRow$1.prototype,"rowData",void 0);__decorate([observable],DataGridRow$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGridRow$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"rowIndex",void 0);__decorate([observable],DataGridRow$1.prototype,"isActiveRow",void 0);__decorate([observable],DataGridRow$1.prototype,"activeCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"defaultHeaderCellItemTemplate",void 0);__decorate([observable],DataGridRow$1.prototype,"cellElements",void 0);function createRowItemTemplate(eo){const to=eo.tagFor(DataGridRow$1);return html` + <${to} + :rowData="${ro=>ro}" + :cellItemTemplate="${(ro,no)=>no.parent.cellItemTemplate}" + :headerCellItemTemplate="${(ro,no)=>no.parent.headerCellItemTemplate}" + > +`}const dataGridTemplate=(eo,to)=>{const ro=createRowItemTemplate(eo),no=eo.tagFor(DataGridRow$1);return html` + + `};let DataGrid$1=class Y0 extends FoundationElement{constructor(){super(),this.noTabbing=!1,this.generateHeader=GenerateHeaderOptions.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(to,ro,no)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const oo=Math.max(0,Math.min(this.rowElements.length-1,to)),so=this.rowElements[oo].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),ao=Math.max(0,Math.min(so.length-1,ro)),lo=so[ao];no&&this.scrollHeight!==this.clientHeight&&(oo0||oo>this.focusRowIndex&&this.scrollTop{to&&to.length&&(to.forEach(no=>{no.addedNodes.forEach(oo=>{oo.nodeType===1&&oo.getAttribute("role")==="row"&&(oo.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,DOM.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let to=this.gridTemplateColumns;if(to===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const ro=this.rowElements[0];this.generatedGridTemplateColumns=new Array(ro.cellElements.length).fill("1fr").join(" ")}to=this.generatedGridTemplateColumns}this.rowElements.forEach((ro,no)=>{const oo=ro;oo.rowIndex=no,oo.gridTemplateColumns=to,this.columnDefinitionsStale&&(oo.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(to){let ro="";return to.forEach(no=>{ro=`${ro}${ro===""?"":" "}1fr`}),ro}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Y0.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Y0.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new RepeatDirective(to=>to.rowsData,to=>to.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(eventFocus,this.handleFocus),this.addEventListener(eventKeyDown,this.handleKeydown),this.addEventListener(eventFocusOut,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(eventFocus,this.handleFocus),this.removeEventListener(eventKeyDown,this.handleKeydown),this.removeEventListener(eventFocusOut,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(to){this.isUpdatingFocus=!0;const ro=to.target;this.focusRowIndex=this.rowElements.indexOf(ro),this.focusColumnIndex=ro.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(to){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(to){(to.relatedTarget===null||!this.contains(to.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(to){if(to.defaultPrevented)return;let ro;const no=this.rowElements.length-1,oo=this.offsetHeight+this.scrollTop,io=this.rowElements[no];switch(to.key){case keyArrowUp:to.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case keyArrowDown:to.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case keyPageUp:if(to.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(ro=this.focusRowIndex-1,ro;ro>=0;ro--){const so=this.rowElements[ro];if(so.offsetTop=no||io.offsetTop+io.offsetHeight<=oo){this.focusOnCell(no,this.focusColumnIndex,!1);return}for(ro=this.focusRowIndex+1,ro;ro<=no;ro++){const so=this.rowElements[ro];if(so.offsetTop+so.offsetHeight>oo){let ao=0;this.generateHeader===GenerateHeaderOptions.sticky&&this.generatedHeader!==null&&(ao=this.generatedHeader.clientHeight),this.scrollTop=so.offsetTop-ao;break}}this.focusOnCell(ro,this.focusColumnIndex,!1);break;case keyHome:to.ctrlKey&&(to.preventDefault(),this.focusOnCell(0,0,!0));break;case keyEnd:to.ctrlKey&&this.columnDefinitions!==null&&(to.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,DOM.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==GenerateHeaderOptions.none&&this.rowsData.length>0){const to=document.createElement(this.rowElementTag);this.generatedHeader=to,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===GenerateHeaderOptions.sticky?DataGridRowTypes.stickyHeader:DataGridRowTypes.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(to,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};DataGrid$1.generateColumns=eo=>Object.getOwnPropertyNames(eo).map((to,ro)=>({columnDataKey:to,gridColumn:`${ro}`}));__decorate([attr({attribute:"no-tabbing",mode:"boolean"})],DataGrid$1.prototype,"noTabbing",void 0);__decorate([attr({attribute:"generate-header"})],DataGrid$1.prototype,"generateHeader",void 0);__decorate([attr({attribute:"grid-template-columns"})],DataGrid$1.prototype,"gridTemplateColumns",void 0);__decorate([observable],DataGrid$1.prototype,"rowsData",void 0);__decorate([observable],DataGrid$1.prototype,"columnDefinitions",void 0);__decorate([observable],DataGrid$1.prototype,"rowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"cellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"headerCellItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"focusRowIndex",void 0);__decorate([observable],DataGrid$1.prototype,"focusColumnIndex",void 0);__decorate([observable],DataGrid$1.prototype,"defaultRowItemTemplate",void 0);__decorate([observable],DataGrid$1.prototype,"rowElementTag",void 0);__decorate([observable],DataGrid$1.prototype,"rowElements",void 0);const defaultCellContentsTemplate=html` + +`,defaultHeaderCellContentsTemplate=html` + +`;let DataGridCell$1=class extends FoundationElement{constructor(){super(...arguments),this.cellType=DataGridCellTypes.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(to,ro){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var to;super.connectedCallback(),this.addEventListener(eventFocusIn,this.handleFocusin),this.addEventListener(eventFocusOut,this.handleFocusout),this.addEventListener(eventKeyDown,this.handleKeydown),this.style.gridColumn=`${((to=this.columnDefinition)===null||to===void 0?void 0:to.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(eventFocusIn,this.handleFocusin),this.removeEventListener(eventFocusOut,this.handleFocusout),this.removeEventListener(eventKeyDown,this.handleKeydown),this.disconnectCellView()}handleFocusin(to){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const ro=this.columnDefinition.headerCellFocusTargetCallback(this);ro!==null&&ro.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const ro=this.columnDefinition.cellFocusTargetCallback(this);ro!==null&&ro.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(to){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(to){if(!(to.defaultPrevented||this.columnDefinition===null||this.cellType===DataGridCellTypes.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===DataGridCellTypes.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(to.key){case keyEnter:case keyFunction2:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case DataGridCellTypes.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const ro=this.columnDefinition.headerCellFocusTargetCallback(this);ro!==null&&ro.focus(),to.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const ro=this.columnDefinition.cellFocusTargetCallback(this);ro!==null&&ro.focus(),to.preventDefault()}break}break;case keyEscape:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),to.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case DataGridCellTypes.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=defaultHeaderCellContentsTemplate.render(this,this);break;case void 0:case DataGridCellTypes.rowHeader:case DataGridCellTypes.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=defaultCellContentsTemplate.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};__decorate([attr({attribute:"cell-type"})],DataGridCell$1.prototype,"cellType",void 0);__decorate([attr({attribute:"grid-column"})],DataGridCell$1.prototype,"gridColumn",void 0);__decorate([observable],DataGridCell$1.prototype,"rowData",void 0);__decorate([observable],DataGridCell$1.prototype,"columnDefinition",void 0);function createCellItemTemplate(eo){const to=eo.tagFor(DataGridCell$1);return html` + <${to} + cell-type="${ro=>ro.isRowHeader?"rowheader":void 0}" + grid-column="${(ro,no)=>no.index+1}" + :rowData="${(ro,no)=>no.parent.rowData}" + :columnDefinition="${ro=>ro}" + > +`}function createHeaderCellItemTemplate(eo){const to=eo.tagFor(DataGridCell$1);return html` + <${to} + cell-type="columnheader" + grid-column="${(ro,no)=>no.index+1}" + :columnDefinition="${ro=>ro}" + > +`}const dataGridRowTemplate=(eo,to)=>{const ro=createCellItemTemplate(eo),no=createHeaderCellItemTemplate(eo);return html` + + `},dataGridCellTemplate=(eo,to)=>html` + + `,checkboxTemplate=(eo,to)=>html` + +`;class _Checkbox extends FoundationElement{}class FormAssociatedCheckbox extends CheckableFormAssociated(_Checkbox){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Checkbox$1=class extends FormAssociatedCheckbox{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=to=>{if(!this.readOnly)switch(to.key){case keySpace:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=to=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Checkbox$1.prototype,"readOnly",void 0);__decorate([observable],Checkbox$1.prototype,"defaultSlottedNodes",void 0);__decorate([observable],Checkbox$1.prototype,"indeterminate",void 0);function isListboxOption(eo){return isHTMLElement$3(eo)&&(eo.getAttribute("role")==="option"||eo instanceof HTMLOptionElement)}class ListboxOption extends FoundationElement{constructor(to,ro,no,oo){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,to&&(this.textContent=to),ro&&(this.initialValue=ro),no&&(this.defaultSelected=no),oo&&(this.selected=oo),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(to,ro){if(typeof ro=="boolean"){this.ariaChecked=ro?"true":"false";return}this.ariaChecked=null}contentChanged(to,ro){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(to,ro){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(to,ro){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var to;return(to=this.value)!==null&&to!==void 0?to:this.text}get text(){var to,ro;return(ro=(to=this.textContent)===null||to===void 0?void 0:to.replace(/\s+/g," ").trim())!==null&&ro!==void 0?ro:""}set value(to){const ro=`${to??""}`;this._value=ro,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=ro),Observable$1.notify(this,"value")}get value(){var to;return Observable$1.track(this,"value"),(to=this._value)!==null&&to!==void 0?to:this.text}get form(){return this.proxy?this.proxy.form:null}}__decorate([observable],ListboxOption.prototype,"checked",void 0);__decorate([observable],ListboxOption.prototype,"content",void 0);__decorate([observable],ListboxOption.prototype,"defaultSelected",void 0);__decorate([attr({mode:"boolean"})],ListboxOption.prototype,"disabled",void 0);__decorate([attr({attribute:"selected",mode:"boolean"})],ListboxOption.prototype,"selectedAttribute",void 0);__decorate([observable],ListboxOption.prototype,"selected",void 0);__decorate([attr({attribute:"value",mode:"fromView"})],ListboxOption.prototype,"initialValue",void 0);class DelegatesARIAListboxOption{}__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaChecked",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaPosInSet",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSelected",void 0);__decorate([observable],DelegatesARIAListboxOption.prototype,"ariaSetSize",void 0);applyMixins(DelegatesARIAListboxOption,ARIAGlobalStatesAndProperties);applyMixins(ListboxOption,StartEnd,DelegatesARIAListboxOption);class Listbox extends FoundationElement{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var to;return(to=this.selectedOptions[0])!==null&&to!==void 0?to:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(to=>to.disabled)}get length(){var to,ro;return(ro=(to=this.options)===null||to===void 0?void 0:to.length)!==null&&ro!==void 0?ro:0}get options(){return Observable$1.track(this,"options"),this._options}set options(to){this._options=to,Observable$1.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(to){this.typeaheadExpired=to}clickHandler(to){const ro=to.target.closest("option,[role=option]");if(ro&&!ro.disabled)return this.selectedIndex=this.options.indexOf(ro),!0}focusAndScrollOptionIntoView(to=this.firstSelectedOption){this.contains(document.activeElement)&&to!==null&&(to.focus(),requestAnimationFrame(()=>{to.scrollIntoView({block:"nearest"})}))}focusinHandler(to){!this.shouldSkipFocus&&to.target===to.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const to=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),ro=new RegExp(`^${to}`,"gi");return this.options.filter(no=>no.text.trim().match(ro))}getSelectableIndex(to=this.selectedIndex,ro){const no=to>ro?-1:to!so&&!ao.disabled&&lo!so&&!ao.disabled&&lo>oo?ao:so,io);break}}return this.options.indexOf(io)}handleChange(to,ro){switch(ro){case"selected":{Listbox.slottedOptionFilter(to)&&(this.selectedIndex=this.options.indexOf(to)),this.setSelectedOptions();break}}}handleTypeAhead(to){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Listbox.TYPE_AHEAD_TIMEOUT_MS),!(to.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${to}`)}keydownHandler(to){if(this.disabled)return!0;this.shouldSkipFocus=!1;const ro=to.key;switch(ro){case keyHome:{to.shiftKey||(to.preventDefault(),this.selectFirstOption());break}case keyArrowDown:{to.shiftKey||(to.preventDefault(),this.selectNextOption());break}case keyArrowUp:{to.shiftKey||(to.preventDefault(),this.selectPreviousOption());break}case keyEnd:{to.preventDefault(),this.selectLastOption();break}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEnter:case keyEscape:return!0;case keySpace:if(this.typeaheadExpired)return!0;default:return ro.length===1&&this.handleTypeAhead(`${ro}`),!0}}mousedownHandler(to){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(to,ro){this.ariaMultiSelectable=ro?"true":null}selectedIndexChanged(to,ro){var no;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((no=this.options[this.selectedIndex])===null||no===void 0)&&no.disabled&&typeof to=="number"){const oo=this.getSelectableIndex(to,ro),io=oo>-1?oo:to;this.selectedIndex=io,ro===io&&this.selectedIndexChanged(ro,io);return}this.setSelectedOptions()}selectedOptionsChanged(to,ro){var no;const oo=ro.filter(Listbox.slottedOptionFilter);(no=this.options)===null||no===void 0||no.forEach(io=>{const so=Observable$1.getNotifier(io);so.unsubscribe(this,"selected"),io.selected=oo.includes(io),so.subscribe(this,"selected")})}selectFirstOption(){var to,ro;this.disabled||(this.selectedIndex=(ro=(to=this.options)===null||to===void 0?void 0:to.findIndex(no=>!no.disabled))!==null&&ro!==void 0?ro:-1)}selectLastOption(){this.disabled||(this.selectedIndex=findLastIndex(this.options,to=>!to.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var to,ro;this.selectedIndex=(ro=(to=this.options)===null||to===void 0?void 0:to.findIndex(no=>no.defaultSelected))!==null&&ro!==void 0?ro:-1}setSelectedOptions(){var to,ro,no;!((to=this.options)===null||to===void 0)&&to.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(no=(ro=this.firstSelectedOption)===null||ro===void 0?void 0:ro.id)!==null&&no!==void 0?no:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(to,ro){this.options=ro.reduce((oo,io)=>(isListboxOption(io)&&oo.push(io),oo),[]);const no=`${this.options.length}`;this.options.forEach((oo,io)=>{oo.id||(oo.id=uniqueId("option-")),oo.ariaPosInSet=`${io+1}`,oo.ariaSetSize=no}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(to,ro){if(this.$fastController.isConnected){const no=this.getTypeaheadMatches();if(no.length){const oo=this.options.indexOf(no[0]);oo>-1&&(this.selectedIndex=oo)}this.typeaheadExpired=!1}}}Listbox.slottedOptionFilter=eo=>isListboxOption(eo)&&!eo.hidden;Listbox.TYPE_AHEAD_TIMEOUT_MS=1e3;__decorate([attr({mode:"boolean"})],Listbox.prototype,"disabled",void 0);__decorate([observable],Listbox.prototype,"selectedIndex",void 0);__decorate([observable],Listbox.prototype,"selectedOptions",void 0);__decorate([observable],Listbox.prototype,"slottedOptions",void 0);__decorate([observable],Listbox.prototype,"typeaheadBuffer",void 0);class DelegatesARIAListbox{}__decorate([observable],DelegatesARIAListbox.prototype,"ariaActiveDescendant",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaDisabled",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaExpanded",void 0);__decorate([observable],DelegatesARIAListbox.prototype,"ariaMultiSelectable",void 0);applyMixins(DelegatesARIAListbox,ARIAGlobalStatesAndProperties);applyMixins(Listbox,DelegatesARIAListbox);const SelectPosition={above:"above",below:"below"};function composedParent(eo){const to=eo.parentElement;if(to)return to;{const ro=eo.getRootNode();if(ro.host instanceof HTMLElement)return ro.host}return null}function composedContains(eo,to){let ro=to;for(;ro!==null;){if(ro===eo)return!0;ro=composedParent(ro)}return!1}const defaultElement=document.createElement("div");function isFastElement(eo){return eo instanceof FASTElement}class QueuedStyleSheetTarget{setProperty(to,ro){DOM.queueUpdate(()=>this.target.setProperty(to,ro))}removeProperty(to){DOM.queueUpdate(()=>this.target.removeProperty(to))}}class ConstructableStyleSheetTarget extends QueuedStyleSheetTarget{constructor(to){super();const ro=new CSSStyleSheet;this.target=ro.cssRules[ro.insertRule(":host{}")].style,to.$fastController.addStyles(ElementStyles.create([ro]))}}class DocumentStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super();const to=new CSSStyleSheet;this.target=to.cssRules[to.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,to]}}class HeadStyleElementStyleSheetTarget extends QueuedStyleSheetTarget{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:to}=this.style;if(to){const ro=to.insertRule(":root{}",to.cssRules.length);this.target=to.cssRules[ro].style}}}class StyleElementStyleSheetTarget{constructor(to){this.store=new Map,this.target=null;const ro=to.$fastController;this.style=document.createElement("style"),ro.addStyles(this.style),Observable$1.getNotifier(ro).subscribe(this,"isConnected"),this.handleChange(ro,"isConnected")}targetChanged(){if(this.target!==null)for(const[to,ro]of this.store.entries())this.target.setProperty(to,ro)}setProperty(to,ro){this.store.set(to,ro),DOM.queueUpdate(()=>{this.target!==null&&this.target.setProperty(to,ro)})}removeProperty(to){this.store.delete(to),DOM.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(to)})}handleChange(to,ro){const{sheet:no}=this.style;if(no){const oo=no.insertRule(":host{}",no.cssRules.length);this.target=no.cssRules[oo].style}else this.target=null}}__decorate([observable],StyleElementStyleSheetTarget.prototype,"target",void 0);class ElementStyleSheetTarget{constructor(to){this.target=to.style}setProperty(to,ro){DOM.queueUpdate(()=>this.target.setProperty(to,ro))}removeProperty(to){DOM.queueUpdate(()=>this.target.removeProperty(to))}}class RootStyleSheetTarget{setProperty(to,ro){RootStyleSheetTarget.properties[to]=ro;for(const no of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(no)).setProperty(to,ro)}removeProperty(to){delete RootStyleSheetTarget.properties[to];for(const ro of RootStyleSheetTarget.roots.values())PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(ro)).removeProperty(to)}static registerRoot(to){const{roots:ro}=RootStyleSheetTarget;if(!ro.has(to)){ro.add(to);const no=PropertyTargetManager.getOrCreate(this.normalizeRoot(to));for(const oo in RootStyleSheetTarget.properties)no.setProperty(oo,RootStyleSheetTarget.properties[oo])}}static unregisterRoot(to){const{roots:ro}=RootStyleSheetTarget;if(ro.has(to)){ro.delete(to);const no=PropertyTargetManager.getOrCreate(RootStyleSheetTarget.normalizeRoot(to));for(const oo in RootStyleSheetTarget.properties)no.removeProperty(oo)}}static normalizeRoot(to){return to===defaultElement?document:to}}RootStyleSheetTarget.roots=new Set;RootStyleSheetTarget.properties={};const propertyTargetCache=new WeakMap,propertyTargetCtor=DOM.supportsAdoptedStyleSheets?ConstructableStyleSheetTarget:StyleElementStyleSheetTarget,PropertyTargetManager=Object.freeze({getOrCreate(eo){if(propertyTargetCache.has(eo))return propertyTargetCache.get(eo);let to;return eo===defaultElement?to=new RootStyleSheetTarget:eo instanceof Document?to=DOM.supportsAdoptedStyleSheets?new DocumentStyleSheetTarget:new HeadStyleElementStyleSheetTarget:isFastElement(eo)?to=new propertyTargetCtor(eo):to=new ElementStyleSheetTarget(eo),propertyTargetCache.set(eo,to),to}});class DesignTokenImpl extends CSSDirective{constructor(to){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=to.name,to.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${to.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=DesignTokenImpl.uniqueId(),DesignTokenImpl.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(to){return new DesignTokenImpl({name:typeof to=="string"?to:to.name,cssCustomPropertyName:typeof to=="string"?to:to.cssCustomPropertyName===void 0?to.name:to.cssCustomPropertyName})}static isCSSDesignToken(to){return typeof to.cssCustomProperty=="string"}static isDerivedDesignTokenValue(to){return typeof to=="function"}static getTokenById(to){return DesignTokenImpl.tokensById.get(to)}getOrCreateSubscriberSet(to=this){return this.subscribers.get(to)||this.subscribers.set(to,new Set)&&this.subscribers.get(to)}createCSS(){return this.cssVar||""}getValueFor(to){const ro=DesignTokenNode.getOrCreate(to).get(this);if(ro!==void 0)return ro;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${to} or an ancestor of ${to}.`)}setValueFor(to,ro){return this._appliedTo.add(to),ro instanceof DesignTokenImpl&&(ro=this.alias(ro)),DesignTokenNode.getOrCreate(to).set(this,ro),this}deleteValueFor(to){return this._appliedTo.delete(to),DesignTokenNode.existsFor(to)&&DesignTokenNode.getOrCreate(to).delete(this),this}withDefault(to){return this.setValueFor(defaultElement,to),this}subscribe(to,ro){const no=this.getOrCreateSubscriberSet(ro);ro&&!DesignTokenNode.existsFor(ro)&&DesignTokenNode.getOrCreate(ro),no.has(to)||no.add(to)}unsubscribe(to,ro){const no=this.subscribers.get(ro||this);no&&no.has(to)&&no.delete(to)}notify(to){const ro=Object.freeze({token:this,target:to});this.subscribers.has(this)&&this.subscribers.get(this).forEach(no=>no.handleChange(ro)),this.subscribers.has(to)&&this.subscribers.get(to).forEach(no=>no.handleChange(ro))}alias(to){return ro=>to.getValueFor(ro)}}DesignTokenImpl.uniqueId=(()=>{let eo=0;return()=>(eo++,eo.toString(16))})();DesignTokenImpl.tokensById=new Map;class CustomPropertyReflector{startReflection(to,ro){to.subscribe(this,ro),this.handleChange({token:to,target:ro})}stopReflection(to,ro){to.unsubscribe(this,ro),this.remove(to,ro)}handleChange(to){const{token:ro,target:no}=to;this.add(ro,no)}add(to,ro){PropertyTargetManager.getOrCreate(ro).setProperty(to.cssCustomProperty,this.resolveCSSValue(DesignTokenNode.getOrCreate(ro).get(to)))}remove(to,ro){PropertyTargetManager.getOrCreate(ro).removeProperty(to.cssCustomProperty)}resolveCSSValue(to){return to&&typeof to.createCSS=="function"?to.createCSS():to}}class DesignTokenBindingObserver{constructor(to,ro,no){this.source=to,this.token=ro,this.node=no,this.dependencies=new Set,this.observer=Observable$1.binding(to,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,defaultExecutionContext))}}class Store{constructor(){this.values=new Map}set(to,ro){this.values.get(to)!==ro&&(this.values.set(to,ro),Observable$1.getNotifier(this).notify(to.id))}get(to){return Observable$1.track(this,to.id),this.values.get(to)}delete(to){this.values.delete(to)}all(){return this.values.entries()}}const nodeCache=new WeakMap,childToParent=new WeakMap;class DesignTokenNode{constructor(to){this.target=to,this.store=new Store,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(ro,no)=>{const oo=DesignTokenImpl.getTokenById(no);if(oo&&(oo.notify(this.target),DesignTokenImpl.isCSSDesignToken(oo))){const io=this.parent,so=this.isReflecting(oo);if(io){const ao=io.get(oo),lo=ro.get(oo);ao!==lo&&!so?this.reflectToCSS(oo):ao===lo&&so&&this.stopReflectToCSS(oo)}else so||this.reflectToCSS(oo)}}},nodeCache.set(to,this),Observable$1.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),to instanceof FASTElement?to.$fastController.addBehaviors([this]):to.isConnected&&this.bind()}static getOrCreate(to){return nodeCache.get(to)||new DesignTokenNode(to)}static existsFor(to){return nodeCache.has(to)}static findParent(to){if(defaultElement!==to.target){let ro=composedParent(to.target);for(;ro!==null;){if(nodeCache.has(ro))return nodeCache.get(ro);ro=composedParent(ro)}return DesignTokenNode.getOrCreate(defaultElement)}return null}static findClosestAssignedNode(to,ro){let no=ro;do{if(no.has(to))return no;no=no.parent?no.parent:no.target!==defaultElement?DesignTokenNode.getOrCreate(defaultElement):null}while(no!==null);return null}get parent(){return childToParent.get(this)||null}has(to){return this.assignedValues.has(to)}get(to){const ro=this.store.get(to);if(ro!==void 0)return ro;const no=this.getRaw(to);if(no!==void 0)return this.hydrate(to,no),this.get(to)}getRaw(to){var ro;return this.assignedValues.has(to)?this.assignedValues.get(to):(ro=DesignTokenNode.findClosestAssignedNode(to,this))===null||ro===void 0?void 0:ro.getRaw(to)}set(to,ro){DesignTokenImpl.isDerivedDesignTokenValue(this.assignedValues.get(to))&&this.tearDownBindingObserver(to),this.assignedValues.set(to,ro),DesignTokenImpl.isDerivedDesignTokenValue(ro)?this.setupBindingObserver(to,ro):this.store.set(to,ro)}delete(to){this.assignedValues.delete(to),this.tearDownBindingObserver(to);const ro=this.getRaw(to);ro?this.hydrate(to,ro):this.store.delete(to)}bind(){const to=DesignTokenNode.findParent(this);to&&to.appendChild(this);for(const ro of this.assignedValues.keys())ro.notify(this.target)}unbind(){this.parent&&childToParent.get(this).removeChild(this)}appendChild(to){to.parent&&childToParent.get(to).removeChild(to);const ro=this.children.filter(no=>to.contains(no));childToParent.set(to,this),this.children.push(to),ro.forEach(no=>to.appendChild(no)),Observable$1.getNotifier(this.store).subscribe(to);for(const[no,oo]of this.store.all())to.hydrate(no,this.bindingObservers.has(no)?this.getRaw(no):oo)}removeChild(to){const ro=this.children.indexOf(to);return ro!==-1&&this.children.splice(ro,1),Observable$1.getNotifier(this.store).unsubscribe(to),to.parent===this?childToParent.delete(to):!1}contains(to){return composedContains(this.target,to.target)}reflectToCSS(to){this.isReflecting(to)||(this.reflecting.add(to),DesignTokenNode.cssCustomPropertyReflector.startReflection(to,this.target))}stopReflectToCSS(to){this.isReflecting(to)&&(this.reflecting.delete(to),DesignTokenNode.cssCustomPropertyReflector.stopReflection(to,this.target))}isReflecting(to){return this.reflecting.has(to)}handleChange(to,ro){const no=DesignTokenImpl.getTokenById(ro);no&&this.hydrate(no,this.getRaw(no))}hydrate(to,ro){if(!this.has(to)){const no=this.bindingObservers.get(to);DesignTokenImpl.isDerivedDesignTokenValue(ro)?no?no.source!==ro&&(this.tearDownBindingObserver(to),this.setupBindingObserver(to,ro)):this.setupBindingObserver(to,ro):(no&&this.tearDownBindingObserver(to),this.store.set(to,ro))}}setupBindingObserver(to,ro){const no=new DesignTokenBindingObserver(ro,to,this);return this.bindingObservers.set(to,no),no}tearDownBindingObserver(to){return this.bindingObservers.has(to)?(this.bindingObservers.get(to).disconnect(),this.bindingObservers.delete(to),!0):!1}}DesignTokenNode.cssCustomPropertyReflector=new CustomPropertyReflector;__decorate([observable],DesignTokenNode.prototype,"children",void 0);function create$2(eo){return DesignTokenImpl.from(eo)}const DesignToken=Object.freeze({create:create$2,notifyConnection(eo){return!eo.isConnected||!DesignTokenNode.existsFor(eo)?!1:(DesignTokenNode.getOrCreate(eo).bind(),!0)},notifyDisconnection(eo){return eo.isConnected||!DesignTokenNode.existsFor(eo)?!1:(DesignTokenNode.getOrCreate(eo).unbind(),!0)},registerRoot(eo=defaultElement){RootStyleSheetTarget.registerRoot(eo)},unregisterRoot(eo=defaultElement){RootStyleSheetTarget.unregisterRoot(eo)}}),ElementDisambiguation=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),elementTypesByTag=new Map,elementTagsByType=new Map;let rootDesignSystem=null;const designSystemKey=DI.createInterface(eo=>eo.cachedCallback(to=>(rootDesignSystem===null&&(rootDesignSystem=new DefaultDesignSystem(null,to)),rootDesignSystem))),DesignSystem=Object.freeze({tagFor(eo){return elementTagsByType.get(eo)},responsibleFor(eo){const to=eo.$$designSystem$$;return to||DI.findResponsibleContainer(eo).get(designSystemKey)},getOrCreate(eo){if(!eo)return rootDesignSystem===null&&(rootDesignSystem=DI.getOrCreateDOMContainer().get(designSystemKey)),rootDesignSystem;const to=eo.$$designSystem$$;if(to)return to;const ro=DI.getOrCreateDOMContainer(eo);if(ro.has(designSystemKey,!1))return ro.get(designSystemKey);{const no=new DefaultDesignSystem(eo,ro);return ro.register(Registration.instance(designSystemKey,no)),no}}});function extractTryDefineElementParams(eo,to,ro){return typeof eo=="string"?{name:eo,type:to,callback:ro}:eo}class DefaultDesignSystem{constructor(to,ro){this.owner=to,this.container=ro,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ElementDisambiguation.definitionCallbackOnly,to!==null&&(to.$$designSystem$$=this)}withPrefix(to){return this.prefix=to,this}withShadowRootMode(to){return this.shadowRootMode=to,this}withElementDisambiguation(to){return this.disambiguate=to,this}withDesignTokenRoot(to){return this.designTokenRoot=to,this}register(...to){const ro=this.container,no=[],oo=this.disambiguate,io=this.shadowRootMode,so={elementPrefix:this.prefix,tryDefineElement(ao,lo,uo){const co=extractTryDefineElementParams(ao,lo,uo),{name:fo,callback:po,baseClass:ho}=co;let{type:mo}=co,vo=fo,bo=elementTypesByTag.get(vo),xo=!0;for(;bo;){const _o=oo(vo,mo,bo);switch(_o){case ElementDisambiguation.ignoreDuplicate:return;case ElementDisambiguation.definitionCallbackOnly:xo=!1,bo=void 0;break;default:vo=_o,bo=elementTypesByTag.get(vo);break}}xo&&((elementTagsByType.has(mo)||mo===FoundationElement)&&(mo=class extends mo{}),elementTypesByTag.set(vo,mo),elementTagsByType.set(mo,vo),ho&&elementTagsByType.set(ho,vo)),no.push(new ElementDefinitionEntry(ro,vo,mo,io,po,xo))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&DesignToken.registerRoot(this.designTokenRoot)),ro.registerWithContext(so,...to);for(const ao of no)ao.callback(ao),ao.willDefine&&ao.definition!==null&&ao.definition.define();return this}}class ElementDefinitionEntry{constructor(to,ro,no,oo,io,so){this.container=to,this.name=ro,this.type=no,this.shadowRootMode=oo,this.callback=io,this.willDefine=so,this.definition=null}definePresentation(to){ComponentPresentation.define(this.name,to,this.container)}defineElement(to){this.definition=new FASTElementDefinition(this.type,Object.assign(Object.assign({},to),{name:this.name}))}tagFor(to){return DesignSystem.tagFor(to)}}const dividerTemplate=(eo,to)=>html` + +`,DividerRole={separator:"separator",presentation:"presentation"};let Divider$1=class extends FoundationElement{constructor(){super(...arguments),this.role=DividerRole.separator,this.orientation=Orientation.horizontal}};__decorate([attr],Divider$1.prototype,"role",void 0);__decorate([attr],Divider$1.prototype,"orientation",void 0);const listboxOptionTemplate=(eo,to)=>html` + +`;class ListboxElement extends Listbox{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var to;return(to=this.options)===null||to===void 0?void 0:to.filter(ro=>ro.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(to,ro){var no,oo;this.ariaActiveDescendant=(oo=(no=this.options[ro])===null||no===void 0?void 0:no.id)!==null&&oo!==void 0?oo:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const to=this.activeOption;to&&(to.checked=!0)}checkFirstOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(to=!1){to?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((ro,no)=>{ro.checked=inRange(no,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{ro.checked=inRange(no,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(to){var ro;if(!this.multiple)return super.clickHandler(to);const no=(ro=to.target)===null||ro===void 0?void 0:ro.closest("[role=option]");if(!(!no||no.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(no),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(to){if(!this.multiple)return super.focusinHandler(to);!this.shouldSkipFocus&&to.target===to.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(to){this.multiple&&this.uncheckAllOptions()}keydownHandler(to){if(!this.multiple)return super.keydownHandler(to);if(this.disabled)return!0;const{key:ro,shiftKey:no}=to;switch(this.shouldSkipFocus=!1,ro){case keyHome:{this.checkFirstOption(no);return}case keyArrowDown:{this.checkNextOption(no);return}case keyArrowUp:{this.checkPreviousOption(no);return}case keyEnd:{this.checkLastOption(no);return}case keyTab:return this.focusAndScrollOptionIntoView(),!0;case keyEscape:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case keySpace:if(to.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return ro.length===1&&this.handleTypeAhead(`${ro}`),!0}}mousedownHandler(to){if(to.offsetX>=0&&to.offsetX<=this.scrollWidth)return super.mousedownHandler(to)}multipleChanged(to,ro){var no;this.ariaMultiSelectable=ro?"true":null,(no=this.options)===null||no===void 0||no.forEach(oo=>{oo.checked=ro?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(to=>to.selected),this.focusAndScrollOptionIntoView())}sizeChanged(to,ro){var no;const oo=Math.max(0,parseInt((no=ro==null?void 0:ro.toFixed())!==null&&no!==void 0?no:"",10));oo!==ro&&DOM.queueUpdate(()=>{this.size=oo})}toggleSelectedForAllCheckedOptions(){const to=this.checkedOptions.filter(no=>!no.disabled),ro=!to.every(no=>no.selected);to.forEach(no=>no.selected=ro),this.selectedIndex=this.options.indexOf(to[to.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(to,ro){if(!this.multiple){super.typeaheadBufferChanged(to,ro);return}if(this.$fastController.isConnected){const no=this.getTypeaheadMatches(),oo=this.options.indexOf(no[0]);oo>-1&&(this.activeIndex=oo,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(to=!1){this.options.forEach(ro=>ro.checked=this.multiple?!1:void 0),to||(this.rangeStartIndex=-1)}}__decorate([observable],ListboxElement.prototype,"activeIndex",void 0);__decorate([attr({mode:"boolean"})],ListboxElement.prototype,"multiple",void 0);__decorate([attr({converter:nullableNumberConverter})],ListboxElement.prototype,"size",void 0);class _TextField extends FoundationElement{}class FormAssociatedTextField extends FormAssociated(_TextField){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const TextFieldType={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let TextField$1=class extends FormAssociatedTextField{constructor(){super(...arguments),this.type=TextFieldType.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&DOM.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],TextField$1.prototype,"readOnly",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"autofocus",void 0);__decorate([attr],TextField$1.prototype,"placeholder",void 0);__decorate([attr],TextField$1.prototype,"type",void 0);__decorate([attr],TextField$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"minlength",void 0);__decorate([attr],TextField$1.prototype,"pattern",void 0);__decorate([attr({converter:nullableNumberConverter})],TextField$1.prototype,"size",void 0);__decorate([attr({mode:"boolean"})],TextField$1.prototype,"spellcheck",void 0);__decorate([observable],TextField$1.prototype,"defaultSlottedNodes",void 0);class DelegatesARIATextbox{}applyMixins(DelegatesARIATextbox,ARIAGlobalStatesAndProperties);applyMixins(TextField$1,StartEnd,DelegatesARIATextbox);const progressSegments=44,progressRingTemplate=(eo,to)=>html` + +`;class BaseProgress extends FoundationElement{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const to=typeof this.min=="number"?this.min:0,ro=typeof this.max=="number"?this.max:100,no=typeof this.value=="number"?this.value:0,oo=ro-to;this.percentComplete=oo===0?0:Math.fround((no-to)/oo*100)}}__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"value",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"min",void 0);__decorate([attr({converter:nullableNumberConverter})],BaseProgress.prototype,"max",void 0);__decorate([attr({mode:"boolean"})],BaseProgress.prototype,"paused",void 0);__decorate([observable],BaseProgress.prototype,"percentComplete",void 0);const radioGroupTemplate=(eo,to)=>html` + +`;let RadioGroup$1=class extends FoundationElement{constructor(){super(...arguments),this.orientation=Orientation.horizontal,this.radioChangeHandler=to=>{const ro=to.target;ro.checked&&(this.slottedRadioButtons.forEach(no=>{no!==ro&&(no.checked=!1,this.isInsideFoundationToolbar||no.setAttribute("tabindex","-1"))}),this.selectedRadio=ro,this.value=ro.value,ro.setAttribute("tabindex","0"),this.focusedRadio=ro),to.stopPropagation()},this.moveToRadioByIndex=(to,ro)=>{const no=to[ro];this.isInsideToolbar||(no.setAttribute("tabindex","0"),no.readOnly?this.slottedRadioButtons.forEach(oo=>{oo!==no&&oo.setAttribute("tabindex","-1")}):(no.checked=!0,this.selectedRadio=no)),this.focusedRadio=no,no.focus()},this.moveRightOffGroup=()=>{var to;(to=this.nextElementSibling)===null||to===void 0||to.focus()},this.moveLeftOffGroup=()=>{var to;(to=this.previousElementSibling)===null||to===void 0||to.focus()},this.focusOutHandler=to=>{const ro=this.slottedRadioButtons,no=to.target,oo=no!==null?ro.indexOf(no):0,io=this.focusedRadio?ro.indexOf(this.focusedRadio):-1;return(io===0&&oo===io||io===ro.length-1&&io===oo)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),ro.forEach(so=>{so!==this.selectedRadio&&so.setAttribute("tabindex","-1")}))):(this.focusedRadio=ro[0],this.focusedRadio.setAttribute("tabindex","0"),ro.forEach(so=>{so!==this.focusedRadio&&so.setAttribute("tabindex","-1")}))),!0},this.clickHandler=to=>{const ro=to.target;if(ro){const no=this.slottedRadioButtons;ro.checked||no.indexOf(ro)===0?(ro.setAttribute("tabindex","0"),this.selectedRadio=ro):(ro.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=ro}to.preventDefault()},this.shouldMoveOffGroupToTheRight=(to,ro,no)=>to===ro.length&&this.isInsideToolbar&&no===keyArrowRight,this.shouldMoveOffGroupToTheLeft=(to,ro)=>(this.focusedRadio?to.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&ro===keyArrowLeft,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=to=>{const ro=this.slottedRadioButtons;let no=0;if(no=this.focusedRadio?ro.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(no,ro,to.key)){this.moveRightOffGroup();return}else no===ro.length&&(no=0);for(;no1;)if(ro[no].disabled){if(this.focusedRadio&&no===ro.indexOf(this.focusedRadio))break;if(no+1>=ro.length){if(this.isInsideToolbar)break;no=0}else no+=1}else{this.moveToRadioByIndex(ro,no);break}},this.moveLeft=to=>{const ro=this.slottedRadioButtons;let no=0;if(no=this.focusedRadio?ro.indexOf(this.focusedRadio)-1:0,no=no<0?ro.length-1:no,this.shouldMoveOffGroupToTheLeft(ro,to.key)){this.moveLeftOffGroup();return}for(;no>=0&&ro.length>1;)if(ro[no].disabled){if(this.focusedRadio&&no===ro.indexOf(this.focusedRadio))break;no-1<0?no=ro.length-1:no-=1}else{this.moveToRadioByIndex(ro,no);break}},this.keydownHandler=to=>{const ro=to.key;if(ro in ArrowKeys&&this.isInsideFoundationToolbar)return!0;switch(ro){case keyEnter:{this.checkFocusedRadio();break}case keyArrowRight:case keyArrowDown:{this.direction===Direction.ltr?this.moveRight(to):this.moveLeft(to);break}case keyArrowLeft:case keyArrowUp:{this.direction===Direction.ltr?this.moveLeft(to):this.moveRight(to);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(to=>{this.readOnly?to.readOnly=!0:to.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(to=>{this.disabled?to.disabled=!0:to.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(to=>{to.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(to=>{to.value===this.value&&(to.checked=!0,this.selectedRadio=to)}),this.$emit("change")}slottedRadioButtonsChanged(to,ro){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var to;return(to=this.parentToolbar)!==null&&to!==void 0?to:!1}get isInsideFoundationToolbar(){var to;return!!(!((to=this.parentToolbar)===null||to===void 0)&&to.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=getDirection(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(to=>{to.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const to=this.slottedRadioButtons.filter(oo=>oo.hasAttribute("checked")),ro=to?to.length:0;if(ro>1){const oo=to[ro-1];oo.checked=!0}let no=!1;if(this.slottedRadioButtons.forEach(oo=>{this.name!==void 0&&oo.setAttribute("name",this.name),this.disabled&&(oo.disabled=!0),this.readOnly&&(oo.readOnly=!0),this.value&&this.value===oo.value?(this.selectedRadio=oo,this.focusedRadio=oo,oo.checked=!0,oo.setAttribute("tabindex","0"),no=!0):(this.isInsideFoundationToolbar||oo.setAttribute("tabindex","-1"),oo.checked=!1),oo.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const oo=this.slottedRadioButtons.filter(so=>so.hasAttribute("checked")),io=oo!==null?oo.length:0;if(io>0&&!no){const so=oo[io-1];so.checked=!0,this.focusedRadio=so,so.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};__decorate([attr({attribute:"readonly",mode:"boolean"})],RadioGroup$1.prototype,"readOnly",void 0);__decorate([attr({attribute:"disabled",mode:"boolean"})],RadioGroup$1.prototype,"disabled",void 0);__decorate([attr],RadioGroup$1.prototype,"name",void 0);__decorate([attr],RadioGroup$1.prototype,"value",void 0);__decorate([attr],RadioGroup$1.prototype,"orientation",void 0);__decorate([observable],RadioGroup$1.prototype,"childItems",void 0);__decorate([observable],RadioGroup$1.prototype,"slottedRadioButtons",void 0);const radioTemplate=(eo,to)=>html` + +`;class _Radio extends FoundationElement{}class FormAssociatedRadio extends CheckableFormAssociated(_Radio){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Radio$1=class extends FormAssociatedRadio{constructor(){super(),this.initialValue="on",this.keypressHandler=to=>{switch(to.key){case keySpace:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var to;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(to=this.defaultChecked)!==null&&to!==void 0?to:!1,this.dirtyChecked=!1))}connectedCallback(){var to,ro;super.connectedCallback(),this.validate(),((to=this.parentElement)===null||to===void 0?void 0:to.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(ro=this.defaultChecked)!==null&&ro!==void 0?ro:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(to){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};__decorate([attr({attribute:"readonly",mode:"boolean"})],Radio$1.prototype,"readOnly",void 0);__decorate([observable],Radio$1.prototype,"name",void 0);__decorate([observable],Radio$1.prototype,"defaultSlottedNodes",void 0);function whitespaceFilter(eo,to,ro){return eo.nodeType!==Node.TEXT_NODE?!0:typeof eo.nodeValue=="string"&&!!eo.nodeValue.trim().length}class _Select extends ListboxElement{}class FormAssociatedSelect extends FormAssociated(_Select){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Select extends FormAssociatedSelect{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=uniqueId("listbox-"),this.maxHeight=0}openChanged(to,ro){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,DOM.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Observable$1.track(this,"value"),this._value}set value(to){var ro,no,oo,io,so,ao,lo;const uo=`${this._value}`;if(!((ro=this._options)===null||ro===void 0)&&ro.length){const co=this._options.findIndex(ho=>ho.value===to),fo=(oo=(no=this._options[this.selectedIndex])===null||no===void 0?void 0:no.value)!==null&&oo!==void 0?oo:null,po=(so=(io=this._options[co])===null||io===void 0?void 0:io.value)!==null&&so!==void 0?so:null;(co===-1||fo!==po)&&(to="",this.selectedIndex=co),to=(lo=(ao=this.firstSelectedOption)===null||ao===void 0?void 0:ao.value)!==null&&lo!==void 0?lo:to}uo!==to&&(this._value=to,super.valueChanged(uo,to),Observable$1.notify(this,"value"),this.updateDisplayValue())}updateValue(to){var ro,no;this.$fastController.isConnected&&(this.value=(no=(ro=this.firstSelectedOption)===null||ro===void 0?void 0:ro.value)!==null&&no!==void 0?no:""),to&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(to,ro){super.selectedIndexChanged(to,ro),this.updateValue()}positionChanged(to,ro){this.positionAttribute=ro,this.setPositioning()}setPositioning(){const to=this.getBoundingClientRect(),no=window.innerHeight-to.bottom;this.position=this.forcedPosition?this.positionAttribute:to.top>no?SelectPosition.above:SelectPosition.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===SelectPosition.above?~~to.top:~~no}get displayValue(){var to,ro;return Observable$1.track(this,"displayValue"),(ro=(to=this.firstSelectedOption)===null||to===void 0?void 0:to.text)!==null&&ro!==void 0?ro:""}disabledChanged(to,ro){super.disabledChanged&&super.disabledChanged(to,ro),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(to){if(!this.disabled){if(this.open){const ro=to.target.closest("option,[role=option]");if(ro&&ro.disabled)return}return super.clickHandler(to),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(to){var ro;if(super.focusoutHandler(to),!this.open)return!0;const no=to.relatedTarget;if(this.isSameNode(no)){this.focus();return}!((ro=this.options)===null||ro===void 0)&&ro.includes(no)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(to,ro){super.handleChange(to,ro),ro==="value"&&this.updateValue()}slottedOptionsChanged(to,ro){this.options.forEach(no=>{Observable$1.getNotifier(no).unsubscribe(this,"value")}),super.slottedOptionsChanged(to,ro),this.options.forEach(no=>{Observable$1.getNotifier(no).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(to){var ro;return to.offsetX>=0&&to.offsetX<=((ro=this.listbox)===null||ro===void 0?void 0:ro.scrollWidth)?super.mousedownHandler(to):this.collapsible}multipleChanged(to,ro){super.multipleChanged(to,ro),this.proxy&&(this.proxy.multiple=ro)}selectedOptionsChanged(to,ro){var no;super.selectedOptionsChanged(to,ro),(no=this.options)===null||no===void 0||no.forEach((oo,io)=>{var so;const ao=(so=this.proxy)===null||so===void 0?void 0:so.options.item(io);ao&&(ao.selected=oo.selected)})}setDefaultSelectedOption(){var to;const ro=(to=this.options)!==null&&to!==void 0?to:Array.from(this.children).filter(Listbox.slottedOptionFilter),no=ro==null?void 0:ro.findIndex(oo=>oo.hasAttribute("selected")||oo.selected||oo.value===this.value);if(no!==-1){this.selectedIndex=no;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(to=>{const ro=to.proxy||(to instanceof HTMLOptionElement?to.cloneNode():null);ro&&this.proxy.options.add(ro)}))}keydownHandler(to){super.keydownHandler(to);const ro=to.key||to.key.charCodeAt(0);switch(ro){case keySpace:{to.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case keyHome:case keyEnd:{to.preventDefault();break}case keyEnter:{to.preventDefault(),this.open=!this.open;break}case keyEscape:{this.collapsible&&this.open&&(to.preventDefault(),this.open=!1);break}case keyTab:return this.collapsible&&this.open&&(to.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(ro===keyArrowDown||ro===keyArrowUp)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(to,ro){super.sizeChanged(to,ro),this.proxy&&(this.proxy.size=ro)}updateDisplayValue(){this.collapsible&&Observable$1.notify(this,"displayValue")}}__decorate([attr({attribute:"open",mode:"boolean"})],Select.prototype,"open",void 0);__decorate([volatile],Select.prototype,"collapsible",null);__decorate([observable],Select.prototype,"control",void 0);__decorate([attr({attribute:"position"})],Select.prototype,"positionAttribute",void 0);__decorate([observable],Select.prototype,"position",void 0);__decorate([observable],Select.prototype,"maxHeight",void 0);class DelegatesARIASelect{}__decorate([observable],DelegatesARIASelect.prototype,"ariaControls",void 0);applyMixins(DelegatesARIASelect,DelegatesARIAListbox);applyMixins(Select,StartEnd,DelegatesARIASelect);const selectTemplate=(eo,to)=>html` + +`,tabPanelTemplate=(eo,to)=>html` + +`;class TabPanel extends FoundationElement{}const tabTemplate=(eo,to)=>html` + +`;class Tab extends FoundationElement{}__decorate([attr({mode:"boolean"})],Tab.prototype,"disabled",void 0);const tabsTemplate=(eo,to)=>html` + +`,TabsOrientation={vertical:"vertical",horizontal:"horizontal"};class Tabs extends FoundationElement{constructor(){super(...arguments),this.orientation=TabsOrientation.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=to=>to.getAttribute("aria-disabled")==="true",this.isHiddenElement=to=>to.hasAttribute("hidden"),this.isFocusableElement=to=>!this.isDisabledElement(to)&&!this.isHiddenElement(to),this.setTabs=()=>{const to="gridColumn",ro="gridRow",no=this.isHorizontal()?to:ro;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((oo,io)=>{if(oo.slot==="tab"){const so=this.activeTabIndex===io&&this.isFocusableElement(oo);this.activeindicator&&this.isFocusableElement(oo)&&(this.showActiveIndicator=!0);const ao=this.tabIds[io],lo=this.tabpanelIds[io];oo.setAttribute("id",ao),oo.setAttribute("aria-selected",so?"true":"false"),oo.setAttribute("aria-controls",lo),oo.addEventListener("click",this.handleTabClick),oo.addEventListener("keydown",this.handleTabKeyDown),oo.setAttribute("tabindex",so?"0":"-1"),so&&(this.activetab=oo,this.activeid=ao)}oo.style[to]="",oo.style[ro]="",oo.style[no]=`${io+1}`,this.isHorizontal()?oo.classList.remove("vertical"):oo.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((to,ro)=>{const no=this.tabIds[ro],oo=this.tabpanelIds[ro];to.setAttribute("id",oo),to.setAttribute("aria-labelledby",no),this.activeTabIndex!==ro?to.setAttribute("hidden",""):to.removeAttribute("hidden")})},this.handleTabClick=to=>{const ro=to.currentTarget;ro.nodeType===1&&this.isFocusableElement(ro)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(ro),this.setComponent())},this.handleTabKeyDown=to=>{if(this.isHorizontal())switch(to.key){case keyArrowLeft:to.preventDefault(),this.adjustBackward(to);break;case keyArrowRight:to.preventDefault(),this.adjustForward(to);break}else switch(to.key){case keyArrowUp:to.preventDefault(),this.adjustBackward(to);break;case keyArrowDown:to.preventDefault(),this.adjustForward(to);break}switch(to.key){case keyHome:to.preventDefault(),this.adjust(-this.activeTabIndex);break;case keyEnd:to.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=to=>{const ro=this.tabs;let no=0;for(no=this.activetab?ro.indexOf(this.activetab)+1:1,no===ro.length&&(no=0);no1;)if(this.isFocusableElement(ro[no])){this.moveToTabByIndex(ro,no);break}else{if(this.activetab&&no===ro.indexOf(this.activetab))break;no+1>=ro.length?no=0:no+=1}},this.adjustBackward=to=>{const ro=this.tabs;let no=0;for(no=this.activetab?ro.indexOf(this.activetab)-1:0,no=no<0?ro.length-1:no;no>=0&&ro.length>1;)if(this.isFocusableElement(ro[no])){this.moveToTabByIndex(ro,no);break}else no-1<0?no=ro.length-1:no-=1},this.moveToTabByIndex=(to,ro)=>{const no=to[ro];this.activetab=no,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=ro,no.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(to,ro){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(no=>no.id===to),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(to=>{var ro;return(ro=to.getAttribute("id"))!==null&&ro!==void 0?ro:`tab-${uniqueId()}`})}getTabPanelIds(){return this.tabpanels.map(to=>{var ro;return(ro=to.getAttribute("id"))!==null&&ro!==void 0?ro:`panel-${uniqueId()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===TabsOrientation.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const to=this.isHorizontal()?"gridColumn":"gridRow",ro=this.isHorizontal()?"translateX":"translateY",no=this.isHorizontal()?"offsetLeft":"offsetTop",oo=this.activeIndicatorRef[no];this.activeIndicatorRef.style[to]=`${this.activeTabIndex+1}`;const io=this.activeIndicatorRef[no];this.activeIndicatorRef.style[to]=`${this.prevActiveTabIndex+1}`;const so=io-oo;this.activeIndicatorRef.style.transform=`${ro}(${so}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[to]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${ro}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(to){const ro=this.tabs.filter(so=>this.isFocusableElement(so)),no=ro.indexOf(this.activetab),oo=limit(0,ro.length-1,no+to),io=this.tabs.indexOf(ro[oo]);io>-1&&this.moveToTabByIndex(this.tabs,io)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}__decorate([attr],Tabs.prototype,"orientation",void 0);__decorate([attr],Tabs.prototype,"activeid",void 0);__decorate([observable],Tabs.prototype,"tabs",void 0);__decorate([observable],Tabs.prototype,"tabpanels",void 0);__decorate([attr({mode:"boolean"})],Tabs.prototype,"activeindicator",void 0);__decorate([observable],Tabs.prototype,"activeIndicatorRef",void 0);__decorate([observable],Tabs.prototype,"showActiveIndicator",void 0);applyMixins(Tabs,StartEnd);class _TextArea extends FoundationElement{}class FormAssociatedTextArea extends FormAssociated(_TextArea){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const TextAreaResize={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let TextArea$1=class extends FormAssociatedTextArea{constructor(){super(...arguments),this.resize=TextAreaResize.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"readOnly",void 0);__decorate([attr],TextArea$1.prototype,"resize",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"autofocus",void 0);__decorate([attr({attribute:"form"})],TextArea$1.prototype,"formId",void 0);__decorate([attr],TextArea$1.prototype,"list",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"maxlength",void 0);__decorate([attr({converter:nullableNumberConverter})],TextArea$1.prototype,"minlength",void 0);__decorate([attr],TextArea$1.prototype,"name",void 0);__decorate([attr],TextArea$1.prototype,"placeholder",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"cols",void 0);__decorate([attr({converter:nullableNumberConverter,mode:"fromView"})],TextArea$1.prototype,"rows",void 0);__decorate([attr({mode:"boolean"})],TextArea$1.prototype,"spellcheck",void 0);__decorate([observable],TextArea$1.prototype,"defaultSlottedNodes",void 0);applyMixins(TextArea$1,DelegatesARIATextbox);const textAreaTemplate=(eo,to)=>html` + +`,textFieldTemplate=(eo,to)=>html` + +`,disabledCursor="not-allowed",hidden=":host([hidden]){display:none}";function display(eo){return`${hidden}:host{display:${eo}}`}const focusVisible=canUseFocusVisible()?"focus-visible":"focus",reservedReactProperties=new Set(["children","localName","ref","style","className"]),emptyProps=Object.freeze(Object.create(null)),DEFAULT_CACHE_NAME="_default",wrappersCache=new Map;function setRef(eo,to){typeof eo=="function"?eo(to):eo.current=to}function getTagName(eo,to){if(!to.name){const ro=FASTElementDefinition.forType(eo);if(ro)to.name=ro.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return to.name}function getElementEvents(eo){return eo.events||(eo.events={})}function keyIsValid(eo,to,ro){return reservedReactProperties.has(ro)?(console.warn(`${getTagName(eo,to)} contains property ${ro} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function getElementKeys(eo,to){if(!to.keys)if(to.properties)to.keys=new Set(to.properties.concat(Object.keys(getElementEvents(to))));else{const ro=new Set(Object.keys(getElementEvents(to))),no=Observable$1.getAccessors(eo.prototype);if(no.length>0)for(const oo of no)keyIsValid(eo,to,oo.name)&&ro.add(oo.name);else for(const oo in eo.prototype)!(oo in HTMLElement.prototype)&&keyIsValid(eo,to,oo)&&ro.add(oo);to.keys=ro}return to.keys}function provideReactWrapper(eo,to){let ro=[];const no={register(io,...so){ro.forEach(ao=>ao.register(io,...so)),ro=[]}};function oo(io,so={}){var ao,lo;io instanceof FoundationElementRegistry&&(to?to.register(io):ro.push(io),io=io.type);const uo=wrappersCache.get(io);if(uo){const po=uo.get((ao=so.name)!==null&&ao!==void 0?ao:DEFAULT_CACHE_NAME);if(po)return po}class co extends eo.Component{constructor(){super(...arguments),this._element=null}_updateElement(ho){const mo=this._element;if(mo===null)return;const vo=this.props,bo=ho||emptyProps,xo=getElementEvents(so);for(const _o in this._elementProps){const So=vo[_o],Eo=xo[_o];if(Eo===void 0)mo[_o]=So;else{const ko=bo[_o];if(So===ko)continue;ko!==void 0&&mo.removeEventListener(Eo,ko),So!==void 0&&mo.addEventListener(Eo,So)}}}componentDidMount(){this._updateElement()}componentDidUpdate(ho){this._updateElement(ho)}render(){const ho=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==ho)&&(this._ref=_o=>{this._element===null&&(this._element=_o),ho!==null&&setRef(ho,_o),this._userRef=ho});const mo={ref:this._ref},vo=this._elementProps={},bo=getElementKeys(io,so),xo=this.props;for(const _o in xo){const So=xo[_o];bo.has(_o)?vo[_o]=So:mo[_o==="className"?"class":_o]=So}return eo.createElement(getTagName(io,so),mo)}}const fo=eo.forwardRef((po,ho)=>eo.createElement(co,Object.assign(Object.assign({},po),{__forwardedRef:ho}),po==null?void 0:po.children));return wrappersCache.has(io)||wrappersCache.set(io,new Map),wrappersCache.get(io).set((lo=so.name)!==null&&lo!==void 0?lo:DEFAULT_CACHE_NAME,fo),fo}return{wrap:oo,registry:no}}function provideVSCodeDesignSystem(eo){return DesignSystem.getOrCreate(eo).withPrefix("vscode")}function initThemeChangeListener(eo){window.addEventListener("load",()=>{new MutationObserver(()=>{applyCurrentTheme(eo)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),applyCurrentTheme(eo)})}function applyCurrentTheme(eo){const to=getComputedStyle(document.body),ro=document.querySelector("body");if(ro){const no=ro.getAttribute("data-vscode-theme-kind");for(const[oo,io]of eo){let so=to.getPropertyValue(oo).toString();if(no==="vscode-high-contrast")so.length===0&&io.name.includes("background")&&(so="transparent"),io.name==="button-icon-hover-background"&&(so="transparent");else if(no==="vscode-high-contrast-light"){if(so.length===0&&io.name.includes("background"))switch(io.name){case"button-primary-hover-background":so="#0F4A85";break;case"button-secondary-hover-background":so="transparent";break;case"button-icon-hover-background":so="transparent";break}}else io.name==="contrast-active-border"&&(so="transparent");io.setValueFor(ro,so)}}}const tokenMappings=new Map;let isThemeListenerInitialized=!1;function create$1(eo,to){const ro=DesignToken.create(eo);if(to){if(to.includes("--fake-vscode-token")){const no="id"+Math.random().toString(16).slice(2);to=`${to}-${no}`}tokenMappings.set(to,ro)}return isThemeListenerInitialized||(initThemeChangeListener(tokenMappings),isThemeListenerInitialized=!0),ro}const background=create$1("background","--vscode-editor-background").withDefault("#1e1e1e"),borderWidth=create$1("border-width").withDefault(1),contrastActiveBorder=create$1("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");create$1("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const cornerRadius=create$1("corner-radius").withDefault(0),cornerRadiusRound=create$1("corner-radius-round").withDefault(2),designUnit=create$1("design-unit").withDefault(4),disabledOpacity=create$1("disabled-opacity").withDefault(.4),focusBorder=create$1("focus-border","--vscode-focusBorder").withDefault("#007fd4"),fontFamily=create$1("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");create$1("font-weight","--vscode-font-weight").withDefault("400");const foreground=create$1("foreground","--vscode-foreground").withDefault("#cccccc"),inputHeight=create$1("input-height").withDefault("26"),inputMinWidth=create$1("input-min-width").withDefault("100px"),typeRampBaseFontSize=create$1("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),typeRampBaseLineHeight=create$1("type-ramp-base-line-height").withDefault("normal"),typeRampMinus1FontSize=create$1("type-ramp-minus1-font-size").withDefault("11px"),typeRampMinus1LineHeight=create$1("type-ramp-minus1-line-height").withDefault("16px");create$1("type-ramp-minus2-font-size").withDefault("9px");create$1("type-ramp-minus2-line-height").withDefault("16px");create$1("type-ramp-plus1-font-size").withDefault("16px");create$1("type-ramp-plus1-line-height").withDefault("24px");const scrollbarWidth=create$1("scrollbarWidth").withDefault("10px"),scrollbarHeight=create$1("scrollbarHeight").withDefault("10px"),scrollbarSliderBackground=create$1("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),scrollbarSliderHoverBackground=create$1("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),scrollbarSliderActiveBackground=create$1("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),badgeBackground=create$1("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),badgeForeground=create$1("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),buttonBorder=create$1("button-border","--vscode-button-border").withDefault("transparent"),buttonIconBackground=create$1("button-icon-background").withDefault("transparent"),buttonIconCornerRadius=create$1("button-icon-corner-radius").withDefault("5px"),buttonIconFocusBorderOffset=create$1("button-icon-outline-offset").withDefault(0),buttonIconHoverBackground=create$1("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),buttonIconPadding=create$1("button-icon-padding").withDefault("3px"),buttonPrimaryBackground=create$1("button-primary-background","--vscode-button-background").withDefault("#0e639c"),buttonPrimaryForeground=create$1("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),buttonPrimaryHoverBackground=create$1("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),buttonSecondaryBackground=create$1("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),buttonSecondaryForeground=create$1("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),buttonSecondaryHoverBackground=create$1("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),buttonPaddingHorizontal=create$1("button-padding-horizontal").withDefault("11px"),buttonPaddingVertical=create$1("button-padding-vertical").withDefault("4px"),checkboxBackground=create$1("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),checkboxBorder=create$1("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),checkboxCornerRadius=create$1("checkbox-corner-radius").withDefault(3);create$1("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const listActiveSelectionBackground=create$1("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),listActiveSelectionForeground=create$1("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),listHoverBackground=create$1("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),dividerBackground=create$1("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),dropdownBackground=create$1("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),dropdownBorder=create$1("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");create$1("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const dropdownListMaxHeight=create$1("dropdown-list-max-height").withDefault("200px"),inputBackground=create$1("input-background","--vscode-input-background").withDefault("#3c3c3c"),inputForeground=create$1("input-foreground","--vscode-input-foreground").withDefault("#cccccc");create$1("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const linkActiveForeground=create$1("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),linkForeground=create$1("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),progressBackground=create$1("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),panelTabActiveBorder=create$1("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),panelTabActiveForeground=create$1("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),panelTabForeground=create$1("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");create$1("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");create$1("panel-view-border","--vscode-panel-border").withDefault("#80808059");const tagCornerRadius=create$1("tag-corner-radius").withDefault("2px"),badgeStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampMinus1FontSize}; + line-height: ${typeRampMinus1LineHeight}; + text-align: center; + } + .control { + align-items: center; + background-color: ${badgeBackground}; + border: calc(${borderWidth} * 1px) solid ${buttonBorder}; + border-radius: 11px; + box-sizing: border-box; + color: ${badgeForeground}; + display: flex; + height: calc(${designUnit} * 4px); + justify-content: center; + min-width: calc(${designUnit} * 4px + 2px); + min-height: calc(${designUnit} * 4px + 2px); + padding: 3px 6px; + } +`;class Badge extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const vsCodeBadge=Badge.compose({baseName:"badge",template:badgeTemplate,styles:badgeStyles}),BaseButtonStyles=css$1` + ${display("inline-flex")} :host { + outline: none; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + color: ${buttonPrimaryForeground}; + background: ${buttonPrimaryBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + fill: currentColor; + cursor: pointer; + } + .control { + background: transparent; + height: inherit; + flex-grow: 1; + box-sizing: border-box; + display: inline-flex; + justify-content: center; + align-items: center; + padding: ${buttonPaddingVertical} ${buttonPaddingHorizontal}; + white-space: wrap; + outline: none; + text-decoration: none; + border: calc(${borderWidth} * 1px) solid ${buttonBorder}; + color: inherit; + border-radius: inherit; + fill: inherit; + cursor: inherit; + font-family: inherit; + } + :host(:hover) { + background: ${buttonPrimaryHoverBackground}; + } + :host(:active) { + background: ${buttonPrimaryBackground}; + } + .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: calc(${borderWidth} * 2px); + } + .control::-moz-focus-inner { + border: 0; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + background: ${buttonPrimaryBackground}; + cursor: ${disabledCursor}; + } + .content { + display: flex; + } + .start { + display: flex; + } + ::slotted(svg), + ::slotted(span) { + width: calc(${designUnit} * 4px); + height: calc(${designUnit} * 4px); + } + .start { + margin-inline-end: 8px; + } +`,PrimaryButtonStyles=css$1` + :host([appearance='primary']) { + background: ${buttonPrimaryBackground}; + color: ${buttonPrimaryForeground}; + } + :host([appearance='primary']:hover) { + background: ${buttonPrimaryHoverBackground}; + } + :host([appearance='primary']:active) .control:active { + background: ${buttonPrimaryBackground}; + } + :host([appearance='primary']) .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: calc(${borderWidth} * 2px); + } + :host([appearance='primary'][disabled]) { + background: ${buttonPrimaryBackground}; + } +`,SecondaryButtonStyles=css$1` + :host([appearance='secondary']) { + background: ${buttonSecondaryBackground}; + color: ${buttonSecondaryForeground}; + } + :host([appearance='secondary']:hover) { + background: ${buttonSecondaryHoverBackground}; + } + :host([appearance='secondary']:active) .control:active { + background: ${buttonSecondaryBackground}; + } + :host([appearance='secondary']) .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: calc(${borderWidth} * 2px); + } + :host([appearance='secondary'][disabled]) { + background: ${buttonSecondaryBackground}; + } +`,IconButtonStyles=css$1` + :host([appearance='icon']) { + background: ${buttonIconBackground}; + border-radius: ${buttonIconCornerRadius}; + color: ${foreground}; + } + :host([appearance='icon']:hover) { + background: ${buttonIconHoverBackground}; + outline: 1px dotted ${contrastActiveBorder}; + outline-offset: -1px; + } + :host([appearance='icon']) .control { + padding: ${buttonIconPadding}; + border: none; + } + :host([appearance='icon']:active) .control:active { + background: ${buttonIconHoverBackground}; + } + :host([appearance='icon']) .control:${focusVisible} { + outline: calc(${borderWidth} * 1px) solid ${focusBorder}; + outline-offset: ${buttonIconFocusBorderOffset}; + } + :host([appearance='icon'][disabled]) { + background: ${buttonIconBackground}; + } +`,buttonStyles=(eo,to)=>css$1` + ${BaseButtonStyles} + ${PrimaryButtonStyles} + ${SecondaryButtonStyles} + ${IconButtonStyles} +`;class Button extends Button$1{connectedCallback(){if(super.connectedCallback(),!this.appearance){const to=this.getAttribute("appearance");this.appearance=to}}attributeChangedCallback(to,ro,no){to==="appearance"&&no==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),to==="aria-label"&&(this.ariaLabel=no),to==="disabled"&&(this.disabled=no!==null)}}__decorate$1([attr],Button.prototype,"appearance",void 0);const vsCodeButton=Button.compose({baseName:"button",template:buttonTemplate,styles:buttonStyles,shadowOptions:{delegatesFocus:!0}}),checkboxStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + align-items: center; + outline: none; + margin: calc(${designUnit} * 1px) 0; + user-select: none; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + } + .control { + position: relative; + width: calc(${designUnit} * 4px + 2px); + height: calc(${designUnit} * 4px + 2px); + box-sizing: border-box; + border-radius: calc(${checkboxCornerRadius} * 1px); + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + background: ${checkboxBackground}; + outline: none; + cursor: pointer; + } + .label { + font-family: ${fontFamily}; + color: ${foreground}; + padding-inline-start: calc(${designUnit} * 2px + 2px); + margin-inline-end: calc(${designUnit} * 2px + 2px); + cursor: pointer; + } + .label__hidden { + display: none; + visibility: hidden; + } + .checked-indicator { + width: 100%; + height: 100%; + display: block; + fill: ${foreground}; + opacity: 0; + pointer-events: none; + } + .indeterminate-indicator { + border-radius: 2px; + background: ${foreground}; + position: absolute; + top: 50%; + left: 50%; + width: 50%; + height: 50%; + transform: translate(-50%, -50%); + opacity: 0; + } + :host(:enabled) .control:hover { + background: ${checkboxBackground}; + border-color: ${checkboxBorder}; + } + :host(:enabled) .control:active { + background: ${checkboxBackground}; + border-color: ${focusBorder}; + } + :host(:${focusVisible}) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host(.disabled) .label, + :host(.readonly) .label, + :host(.readonly) .control, + :host(.disabled) .control { + cursor: ${disabledCursor}; + } + :host(.checked:not(.indeterminate)) .checked-indicator, + :host(.indeterminate) .indeterminate-indicator { + opacity: 1; + } + :host(.disabled) { + opacity: ${disabledOpacity}; + } +`;class Checkbox extends Checkbox$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const vsCodeCheckbox=Checkbox.compose({baseName:"checkbox",template:checkboxTemplate,styles:checkboxStyles,checkedIndicator:` + + + + `,indeterminateIndicator:` +
+ `}),dataGridStyles=(eo,to)=>css$1` + :host { + display: flex; + position: relative; + flex-direction: column; + width: 100%; + } +`,dataGridRowStyles=(eo,to)=>css$1` + :host { + display: grid; + padding: calc((${designUnit} / 4) * 1px) 0; + box-sizing: border-box; + width: 100%; + background: transparent; + } + :host(.header) { + } + :host(.sticky-header) { + background: ${background}; + position: sticky; + top: 0; + } + :host(:hover) { + background: ${listHoverBackground}; + outline: 1px dotted ${contrastActiveBorder}; + outline-offset: -1px; + } +`,dataGridCellStyles=(eo,to)=>css$1` + :host { + padding: calc(${designUnit} * 1px) calc(${designUnit} * 3px); + color: ${foreground}; + opacity: 1; + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + font-weight: 400; + border: solid calc(${borderWidth} * 1px) transparent; + border-radius: calc(${cornerRadius} * 1px); + white-space: wrap; + overflow-wrap: anywhere; + } + :host(.column-header) { + font-weight: 600; + } + :host(:${focusVisible}), + :host(:focus), + :host(:active) { + background: ${listActiveSelectionBackground}; + border: solid calc(${borderWidth} * 1px) ${focusBorder}; + color: ${listActiveSelectionForeground}; + outline: none; + } + :host(:${focusVisible}) ::slotted(*), + :host(:focus) ::slotted(*), + :host(:active) ::slotted(*) { + color: ${listActiveSelectionForeground} !important; + } +`;class DataGrid extends DataGrid$1{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const vsCodeDataGrid=DataGrid.compose({baseName:"data-grid",baseClass:DataGrid$1,template:dataGridTemplate,styles:dataGridStyles});class DataGridRow extends DataGridRow$1{}const vsCodeDataGridRow=DataGridRow.compose({baseName:"data-grid-row",baseClass:DataGridRow$1,template:dataGridRowTemplate,styles:dataGridRowStyles});class DataGridCell extends DataGridCell$1{}const vsCodeDataGridCell=DataGridCell.compose({baseName:"data-grid-cell",baseClass:DataGridCell$1,template:dataGridCellTemplate,styles:dataGridCellStyles}),dividerStyles=(eo,to)=>css$1` + ${display("block")} :host { + border: none; + border-top: calc(${borderWidth} * 1px) solid ${dividerBackground}; + box-sizing: content-box; + height: 0; + margin: calc(${designUnit} * 1px) 0; + width: 100%; + } +`;class Divider extends Divider$1{}const vsCodeDivider=Divider.compose({baseName:"divider",template:dividerTemplate,styles:dividerStyles}),dropdownStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + background: ${dropdownBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + box-sizing: border-box; + color: ${foreground}; + contain: contents; + font-family: ${fontFamily}; + height: calc(${inputHeight} * 1px); + position: relative; + user-select: none; + min-width: ${inputMinWidth}; + outline: none; + vertical-align: top; + } + .control { + align-items: center; + box-sizing: border-box; + border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; + border-radius: calc(${cornerRadiusRound} * 1px); + cursor: pointer; + display: flex; + font-family: inherit; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + min-height: 100%; + padding: 2px 6px 2px 8px; + width: 100%; + } + .listbox { + background: ${dropdownBackground}; + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + border-radius: calc(${cornerRadiusRound} * 1px); + box-sizing: border-box; + display: inline-flex; + flex-direction: column; + left: 0; + max-height: ${dropdownListMaxHeight}; + padding: 0; + overflow-y: auto; + position: absolute; + width: 100%; + z-index: 1; + } + .listbox[hidden] { + display: none; + } + :host(:${focusVisible}) .control { + border-color: ${focusBorder}; + } + :host(:not([disabled]):hover) { + background: ${dropdownBackground}; + border-color: ${dropdownBorder}; + } + :host(:${focusVisible}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { + background: ${listActiveSelectionBackground}; + border: calc(${borderWidth} * 1px) solid transparent; + color: ${listActiveSelectionForeground}; + } + :host([disabled]) { + cursor: ${disabledCursor}; + opacity: ${disabledOpacity}; + } + :host([disabled]) .control { + cursor: ${disabledCursor}; + user-select: none; + } + :host([disabled]:hover) { + background: ${dropdownBackground}; + color: ${foreground}; + fill: currentcolor; + } + :host(:not([disabled])) .control:active { + border-color: ${focusBorder}; + } + :host(:empty) .listbox { + display: none; + } + :host([open]) .control { + border-color: ${focusBorder}; + } + :host([open][position='above']) .listbox { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + } + :host([open][position='below']) .listbox { + border-top-left-radius: 0; + border-top-right-radius: 0; + } + :host([open][position='above']) .listbox { + bottom: calc(${inputHeight} * 1px); + } + :host([open][position='below']) .listbox { + top: calc(${inputHeight} * 1px); + } + .selected-value { + flex: 1 1 auto; + font-family: inherit; + overflow: hidden; + text-align: start; + text-overflow: ellipsis; + white-space: nowrap; + } + .indicator { + flex: 0 0 auto; + margin-inline-start: 1em; + } + slot[name='listbox'] { + display: none; + width: 100%; + } + :host([open]) slot[name='listbox'] { + display: flex; + position: absolute; + } + .end { + margin-inline-start: auto; + } + .start, + .end, + .indicator, + .select-indicator, + ::slotted(svg), + ::slotted(span) { + fill: currentcolor; + height: 1em; + min-height: calc(${designUnit} * 4px); + min-width: calc(${designUnit} * 4px); + width: 1em; + } + ::slotted([role='option']), + ::slotted(option) { + flex: 0 0 auto; + } +`;class Dropdown extends Select{}const vsCodeDropdown=Dropdown.compose({baseName:"dropdown",template:selectTemplate,styles:dropdownStyles,indicator:` + + + + `}),linkStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + background: transparent; + box-sizing: border-box; + color: ${linkForeground}; + cursor: pointer; + fill: currentcolor; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + outline: none; + } + .control { + background: transparent; + border: calc(${borderWidth} * 1px) solid transparent; + border-radius: calc(${cornerRadius} * 1px); + box-sizing: border-box; + color: inherit; + cursor: inherit; + fill: inherit; + font-family: inherit; + height: inherit; + padding: 0; + outline: none; + text-decoration: none; + word-break: break-word; + } + .control::-moz-focus-inner { + border: 0; + } + :host(:hover) { + color: ${linkActiveForeground}; + } + :host(:hover) .content { + text-decoration: underline; + } + :host(:active) { + background: transparent; + color: ${linkActiveForeground}; + } + :host(:${focusVisible}) .control, + :host(:focus) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } +`;class Link extends Anchor{}const vsCodeLink=Link.compose({baseName:"link",template:anchorTemplate,styles:linkStyles,shadowOptions:{delegatesFocus:!0}}),optionStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + font-family: var(--body-font); + border-radius: ${cornerRadius}; + border: calc(${borderWidth} * 1px) solid transparent; + box-sizing: border-box; + color: ${foreground}; + cursor: pointer; + fill: currentcolor; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin: 0; + outline: none; + overflow: hidden; + padding: 0 calc((${designUnit} / 2) * 1px) + calc((${designUnit} / 4) * 1px); + user-select: none; + white-space: nowrap; + } + :host(:${focusVisible}) { + border-color: ${focusBorder}; + background: ${listActiveSelectionBackground}; + color: ${foreground}; + } + :host([aria-selected='true']) { + background: ${listActiveSelectionBackground}; + border: calc(${borderWidth} * 1px) solid transparent; + color: ${listActiveSelectionForeground}; + } + :host(:active) { + background: ${listActiveSelectionBackground}; + color: ${listActiveSelectionForeground}; + } + :host(:not([aria-selected='true']):hover) { + background: ${listActiveSelectionBackground}; + border: calc(${borderWidth} * 1px) solid transparent; + color: ${listActiveSelectionForeground}; + } + :host(:not([aria-selected='true']):active) { + background: ${listActiveSelectionBackground}; + color: ${foreground}; + } + :host([disabled]) { + cursor: ${disabledCursor}; + opacity: ${disabledOpacity}; + } + :host([disabled]:hover) { + background-color: inherit; + } + .content { + grid-column-start: 2; + justify-self: start; + overflow: hidden; + text-overflow: ellipsis; + } +`;let Option$1=class extends ListboxOption{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const vsCodeOption=Option$1.compose({baseName:"option",template:listboxOptionTemplate,styles:optionStyles}),panelsStyles=(eo,to)=>css$1` + ${display("grid")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + color: ${foreground}; + grid-template-columns: auto 1fr auto; + grid-template-rows: auto 1fr; + overflow-x: auto; + } + .tablist { + display: grid; + grid-template-rows: auto auto; + grid-template-columns: auto; + column-gap: calc(${designUnit} * 8px); + position: relative; + width: max-content; + align-self: end; + padding: calc(${designUnit} * 1px) calc(${designUnit} * 1px) 0; + box-sizing: border-box; + } + .start, + .end { + align-self: center; + } + .activeIndicator { + grid-row: 2; + grid-column: 1; + width: 100%; + height: calc((${designUnit} / 4) * 1px); + justify-self: center; + background: ${panelTabActiveForeground}; + margin: 0; + border-radius: calc(${cornerRadius} * 1px); + } + .activeIndicatorTransition { + transition: transform 0.01s linear; + } + .tabpanel { + grid-row: 2; + grid-column-start: 1; + grid-column-end: 4; + position: relative; + } +`,panelTabStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + height: calc(${designUnit} * 7px); + padding: calc(${designUnit} * 1px) 0; + color: ${panelTabForeground}; + fill: currentcolor; + border-radius: calc(${cornerRadius} * 1px); + border: solid calc(${borderWidth} * 1px) transparent; + align-items: center; + justify-content: center; + grid-row: 1; + cursor: pointer; + } + :host(:hover) { + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host(:active) { + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host([aria-selected='true']) { + background: transparent; + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host([aria-selected='true']:hover) { + background: transparent; + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host([aria-selected='true']:active) { + background: transparent; + color: ${panelTabActiveForeground}; + fill: currentcolor; + } + :host(:${focusVisible}) { + outline: none; + border: solid calc(${borderWidth} * 1px) ${panelTabActiveBorder}; + } + :host(:focus) { + outline: none; + } + ::slotted(vscode-badge) { + margin-inline-start: calc(${designUnit} * 2px); + } +`,panelViewStyles=(eo,to)=>css$1` + ${display("flex")} :host { + color: inherit; + background-color: transparent; + border: solid calc(${borderWidth} * 1px) transparent; + box-sizing: border-box; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + padding: 10px calc((${designUnit} + 2) * 1px); + } +`;class Panels extends Tabs{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=TabsOrientation.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const vsCodePanels=Panels.compose({baseName:"panels",template:tabsTemplate,styles:panelsStyles});class PanelTab extends Tab{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const vsCodePanelTab=PanelTab.compose({baseName:"panel-tab",template:tabTemplate,styles:panelTabStyles});class PanelView extends TabPanel{}const vsCodePanelView=PanelView.compose({baseName:"panel-view",template:tabPanelTemplate,styles:panelViewStyles}),progressRingStyles=(eo,to)=>css$1` + ${display("flex")} :host { + align-items: center; + outline: none; + height: calc(${designUnit} * 7px); + width: calc(${designUnit} * 7px); + margin: 0; + } + .progress { + height: 100%; + width: 100%; + } + .background { + fill: none; + stroke: transparent; + stroke-width: calc(${designUnit} / 2 * 1px); + } + .indeterminate-indicator-1 { + fill: none; + stroke: ${progressBackground}; + stroke-width: calc(${designUnit} / 2 * 1px); + stroke-linecap: square; + transform-origin: 50% 50%; + transform: rotate(-90deg); + transition: all 0.2s ease-in-out; + animation: spin-infinite 2s linear infinite; + } + @keyframes spin-infinite { + 0% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(0deg); + } + 50% { + stroke-dasharray: 21.99px 21.99px; + transform: rotate(450deg); + } + 100% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(1080deg); + } + } +`;class ProgressRing extends BaseProgress{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(to,ro,no){to==="value"&&this.removeAttribute("value")}}const vsCodeProgressRing=ProgressRing.compose({baseName:"progress-ring",template:progressRingTemplate,styles:progressRingStyles,indeterminateIndicator:` + + + + + `}),radioGroupStyles=(eo,to)=>css$1` + ${display("flex")} :host { + align-items: flex-start; + margin: calc(${designUnit} * 1px) 0; + flex-direction: column; + } + .positioning-region { + display: flex; + flex-wrap: wrap; + } + :host([orientation='vertical']) .positioning-region { + flex-direction: column; + } + :host([orientation='horizontal']) .positioning-region { + flex-direction: row; + } + ::slotted([slot='label']) { + color: ${foreground}; + font-size: ${typeRampBaseFontSize}; + margin: calc(${designUnit} * 1px) 0; + } +`;class RadioGroup extends RadioGroup$1{connectedCallback(){super.connectedCallback();const to=this.querySelector("label");if(to){const ro="radio-group-"+Math.random().toString(16).slice(2);to.setAttribute("id",ro),this.setAttribute("aria-labelledby",ro)}}}const vsCodeRadioGroup=RadioGroup.compose({baseName:"radio-group",template:radioGroupTemplate,styles:radioGroupStyles}),radioStyles=(eo,to)=>css$1` + ${display("inline-flex")} :host { + align-items: center; + flex-direction: row; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin: calc(${designUnit} * 1px) 0; + outline: none; + position: relative; + transition: all 0.2s ease-in-out; + user-select: none; + } + .control { + background: ${checkboxBackground}; + border-radius: 999px; + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + box-sizing: border-box; + cursor: pointer; + height: calc(${designUnit} * 4px); + position: relative; + outline: none; + width: calc(${designUnit} * 4px); + } + .label { + color: ${foreground}; + cursor: pointer; + font-family: ${fontFamily}; + margin-inline-end: calc(${designUnit} * 2px + 2px); + padding-inline-start: calc(${designUnit} * 2px + 2px); + } + .label__hidden { + display: none; + visibility: hidden; + } + .control, + .checked-indicator { + flex-shrink: 0; + } + .checked-indicator { + background: ${foreground}; + border-radius: 999px; + display: inline-block; + inset: calc(${designUnit} * 1px); + opacity: 0; + pointer-events: none; + position: absolute; + } + :host(:not([disabled])) .control:hover { + background: ${checkboxBackground}; + border-color: ${checkboxBorder}; + } + :host(:not([disabled])) .control:active { + background: ${checkboxBackground}; + border-color: ${focusBorder}; + } + :host(:${focusVisible}) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host([aria-checked='true']) .control { + background: ${checkboxBackground}; + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + } + :host([aria-checked='true']:not([disabled])) .control:hover { + background: ${checkboxBackground}; + border: calc(${borderWidth} * 1px) solid ${checkboxBorder}; + } + :host([aria-checked='true']:not([disabled])) .control:active { + background: ${checkboxBackground}; + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host([aria-checked="true"]:${focusVisible}:not([disabled])) .control { + border: calc(${borderWidth} * 1px) solid ${focusBorder}; + } + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${disabledCursor}; + } + :host([aria-checked='true']) .checked-indicator { + opacity: 1; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + } +`;class Radio extends Radio$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const vsCodeRadio=Radio.compose({baseName:"radio",template:radioTemplate,styles:radioStyles,checkedIndicator:` +
+ `}),tagStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + box-sizing: border-box; + font-family: ${fontFamily}; + font-size: ${typeRampMinus1FontSize}; + line-height: ${typeRampMinus1LineHeight}; + } + .control { + background-color: ${badgeBackground}; + border: calc(${borderWidth} * 1px) solid ${buttonBorder}; + border-radius: ${tagCornerRadius}; + color: ${badgeForeground}; + padding: calc(${designUnit} * 0.5px) calc(${designUnit} * 1px); + text-transform: uppercase; + } +`;class Tag extends Badge$1{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const vsCodeTag=Tag.compose({baseName:"tag",template:badgeTemplate,styles:tagStyles}),textAreaStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + font-family: ${fontFamily}; + outline: none; + user-select: none; + } + .control { + box-sizing: border-box; + position: relative; + color: ${inputForeground}; + background: ${inputBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; + font: inherit; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + padding: calc(${designUnit} * 2px + 1px); + width: 100%; + min-width: ${inputMinWidth}; + resize: none; + } + .control:hover:enabled { + background: ${inputBackground}; + border-color: ${dropdownBorder}; + } + .control:active:enabled { + background: ${inputBackground}; + border-color: ${focusBorder}; + } + .control:hover, + .control:${focusVisible}, + .control:disabled, + .control:active { + outline: none; + } + .control::-webkit-scrollbar { + width: ${scrollbarWidth}; + height: ${scrollbarHeight}; + } + .control::-webkit-scrollbar-corner { + background: ${inputBackground}; + } + .control::-webkit-scrollbar-thumb { + background: ${scrollbarSliderBackground}; + } + .control::-webkit-scrollbar-thumb:hover { + background: ${scrollbarSliderHoverBackground}; + } + .control::-webkit-scrollbar-thumb:active { + background: ${scrollbarSliderActiveBackground}; + } + :host(:focus-within:not([disabled])) .control { + border-color: ${focusBorder}; + } + :host([resize='both']) .control { + resize: both; + } + :host([resize='horizontal']) .control { + resize: horizontal; + } + :host([resize='vertical']) .control { + resize: vertical; + } + .label { + display: block; + color: ${foreground}; + cursor: pointer; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin-bottom: 2px; + } + .label__hidden { + display: none; + visibility: hidden; + } + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${disabledCursor}; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + } + :host([disabled]) .control { + border-color: ${dropdownBorder}; + } +`;class TextArea extends TextArea$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const vsCodeTextArea=TextArea.compose({baseName:"text-area",template:textAreaTemplate,styles:textAreaStyles,shadowOptions:{delegatesFocus:!0}}),textFieldStyles=(eo,to)=>css$1` + ${display("inline-block")} :host { + font-family: ${fontFamily}; + outline: none; + user-select: none; + } + .root { + box-sizing: border-box; + position: relative; + display: flex; + flex-direction: row; + color: ${inputForeground}; + background: ${inputBackground}; + border-radius: calc(${cornerRadiusRound} * 1px); + border: calc(${borderWidth} * 1px) solid ${dropdownBorder}; + height: calc(${inputHeight} * 1px); + min-width: ${inputMinWidth}; + } + .control { + -webkit-appearance: none; + font: inherit; + background: transparent; + border: 0; + color: inherit; + height: calc(100% - (${designUnit} * 1px)); + width: 100%; + margin-top: auto; + margin-bottom: auto; + border: none; + padding: 0 calc(${designUnit} * 2px + 1px); + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + } + .control:hover, + .control:${focusVisible}, + .control:disabled, + .control:active { + outline: none; + } + .label { + display: block; + color: ${foreground}; + cursor: pointer; + font-size: ${typeRampBaseFontSize}; + line-height: ${typeRampBaseLineHeight}; + margin-bottom: 2px; + } + .label__hidden { + display: none; + visibility: hidden; + } + .start, + .end { + display: flex; + margin: auto; + fill: currentcolor; + } + ::slotted(svg), + ::slotted(span) { + width: calc(${designUnit} * 4px); + height: calc(${designUnit} * 4px); + } + .start { + margin-inline-start: calc(${designUnit} * 2px); + } + .end { + margin-inline-end: calc(${designUnit} * 2px); + } + :host(:hover:not([disabled])) .root { + background: ${inputBackground}; + border-color: ${dropdownBorder}; + } + :host(:active:not([disabled])) .root { + background: ${inputBackground}; + border-color: ${focusBorder}; + } + :host(:focus-within:not([disabled])) .root { + border-color: ${focusBorder}; + } + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${disabledCursor}; + } + :host([disabled]) { + opacity: ${disabledOpacity}; + } + :host([disabled]) .control { + border-color: ${dropdownBorder}; + } +`;class TextField extends TextField$1{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const vsCodeTextField=TextField.compose({baseName:"text-field",template:textFieldTemplate,styles:textFieldStyles,shadowOptions:{delegatesFocus:!0}}),{wrap}=provideReactWrapper(React,provideVSCodeDesignSystem());wrap(vsCodeBadge(),{name:"vscode-badge"});wrap(vsCodeButton(),{name:"vscode-button"});wrap(vsCodeCheckbox(),{name:"vscode-checkbox",events:{onChange:"change"}});wrap(vsCodeDataGrid(),{name:"vscode-data-grid"});wrap(vsCodeDataGridCell(),{name:"vscode-data-grid-cell"});wrap(vsCodeDataGridRow(),{name:"vscode-data-grid-row"});wrap(vsCodeDivider(),{name:"vscode-divider"});wrap(vsCodeDropdown(),{name:"vscode-dropdown",events:{onChange:"change"}});wrap(vsCodeLink(),{name:"vscode-link"});wrap(vsCodeOption(),{name:"vscode-option"});wrap(vsCodePanels(),{name:"vscode-panels",events:{onChange:"change"}});wrap(vsCodePanelTab(),{name:"vscode-panel-tab"});wrap(vsCodePanelView(),{name:"vscode-panel-view"});const VSCodeProgressRing=wrap(vsCodeProgressRing(),{name:"vscode-progress-ring"});wrap(vsCodeRadio(),{name:"vscode-radio",events:{onChange:"change"}});wrap(vsCodeRadioGroup(),{name:"vscode-radio-group",events:{onChange:"change"}});wrap(vsCodeTag(),{name:"vscode-tag"});wrap(vsCodeTextArea(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});wrap(vsCodeTextField(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});const Loading=({isFullPage:eo=!1,style:to={}})=>{const ro=eo?{...to,height:"100vh",width:"100%"}:{...to};return jsxRuntimeExports.jsx(Stack$1,{horizontalAlign:"center",verticalAlign:"center",verticalFill:!0,style:ro,children:jsxRuntimeExports.jsx(VSCodeProgressRing,{})})};memoizeFunction((eo,to)=>mergeStyleSets({root:mergeStyles$1({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...to&&{position:"fixed",top:0,zIndex:100}},eo),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var toggleSelection=function(){var eo=document.getSelection();if(!eo.rangeCount)return function(){};for(var to=document.activeElement,ro=[],no=0;no"u"){ro&&console.warn("unable to use e.clipboardData"),ro&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var fo=clipboardToIE11Formatting[to.format]||clipboardToIE11Formatting.default;window.clipboardData.setData(fo,eo)}else co.clipboardData.clearData(),co.clipboardData.setData(to.format,eo);to.onCopy&&(co.preventDefault(),to.onCopy(co.clipboardData))}),document.body.appendChild(ao),io.selectNodeContents(ao),so.addRange(io);var uo=document.execCommand("copy");if(!uo)throw new Error("copy command was unsuccessful");lo=!0}catch(co){ro&&console.error("unable to copy using execCommand: ",co),ro&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(to.format||"text",eo),to.onCopy&&to.onCopy(window.clipboardData),lo=!0}catch(fo){ro&&console.error("unable to copy using clipboardData: ",fo),ro&&console.error("falling back to prompt"),no=format$1("message"in to?to.message:defaultMessage),window.prompt(no,eo)}}finally{so&&(typeof so.removeRange=="function"?so.removeRange(io):so.removeAllRanges()),ao&&document.body.removeChild(ao),oo()}return lo}var copyToClipboard$1=copy$1;const copy$2=getDefaultExportFromCjs(copyToClipboard$1);var main={exports:{}};(function(eo,to){(function(ro,no){eo.exports=no(reactExports)})(commonjsGlobal,function(ro){return function(no){var oo={};function io(so){if(oo[so])return oo[so].exports;var ao=oo[so]={i:so,l:!1,exports:{}};return no[so].call(ao.exports,ao,ao.exports,io),ao.l=!0,ao.exports}return io.m=no,io.c=oo,io.d=function(so,ao,lo){io.o(so,ao)||Object.defineProperty(so,ao,{enumerable:!0,get:lo})},io.r=function(so){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(so,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(so,"__esModule",{value:!0})},io.t=function(so,ao){if(1&ao&&(so=io(so)),8&ao||4&ao&&typeof so=="object"&&so&&so.__esModule)return so;var lo=Object.create(null);if(io.r(lo),Object.defineProperty(lo,"default",{enumerable:!0,value:so}),2&ao&&typeof so!="string")for(var uo in so)io.d(lo,uo,(function(co){return so[co]}).bind(null,uo));return lo},io.n=function(so){var ao=so&&so.__esModule?function(){return so.default}:function(){return so};return io.d(ao,"a",ao),ao},io.o=function(so,ao){return Object.prototype.hasOwnProperty.call(so,ao)},io.p="",io(io.s=48)}([function(no,oo){no.exports=ro},function(no,oo){var io=no.exports={version:"2.6.12"};typeof __e=="number"&&(__e=io)},function(no,oo,io){var so=io(26)("wks"),ao=io(17),lo=io(3).Symbol,uo=typeof lo=="function";(no.exports=function(co){return so[co]||(so[co]=uo&&lo[co]||(uo?lo:ao)("Symbol."+co))}).store=so},function(no,oo){var io=no.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=io)},function(no,oo,io){no.exports=!io(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(no,oo){var io={}.hasOwnProperty;no.exports=function(so,ao){return io.call(so,ao)}},function(no,oo,io){var so=io(7),ao=io(16);no.exports=io(4)?function(lo,uo,co){return so.f(lo,uo,ao(1,co))}:function(lo,uo,co){return lo[uo]=co,lo}},function(no,oo,io){var so=io(10),ao=io(35),lo=io(23),uo=Object.defineProperty;oo.f=io(4)?Object.defineProperty:function(co,fo,po){if(so(co),fo=lo(fo,!0),so(po),ao)try{return uo(co,fo,po)}catch{}if("get"in po||"set"in po)throw TypeError("Accessors not supported!");return"value"in po&&(co[fo]=po.value),co}},function(no,oo){no.exports=function(io){try{return!!io()}catch{return!0}}},function(no,oo,io){var so=io(40),ao=io(22);no.exports=function(lo){return so(ao(lo))}},function(no,oo,io){var so=io(11);no.exports=function(ao){if(!so(ao))throw TypeError(ao+" is not an object!");return ao}},function(no,oo){no.exports=function(io){return typeof io=="object"?io!==null:typeof io=="function"}},function(no,oo){no.exports={}},function(no,oo,io){var so=io(39),ao=io(27);no.exports=Object.keys||function(lo){return so(lo,ao)}},function(no,oo){no.exports=!0},function(no,oo,io){var so=io(3),ao=io(1),lo=io(53),uo=io(6),co=io(5),fo=function(po,ho,mo){var vo,bo,xo,_o=po&fo.F,So=po&fo.G,Eo=po&fo.S,ko=po&fo.P,wo=po&fo.B,Co=po&fo.W,Ro=So?ao:ao[ho]||(ao[ho]={}),Ao=Ro.prototype,Io=So?so:Eo?so[ho]:(so[ho]||{}).prototype;for(vo in So&&(mo=ho),mo)(bo=!_o&&Io&&Io[vo]!==void 0)&&co(Ro,vo)||(xo=bo?Io[vo]:mo[vo],Ro[vo]=So&&typeof Io[vo]!="function"?mo[vo]:wo&&bo?lo(xo,so):Co&&Io[vo]==xo?function($o){var Bo=function(Mo,Ho,jo){if(this instanceof $o){switch(arguments.length){case 0:return new $o;case 1:return new $o(Mo);case 2:return new $o(Mo,Ho)}return new $o(Mo,Ho,jo)}return $o.apply(this,arguments)};return Bo.prototype=$o.prototype,Bo}(xo):ko&&typeof xo=="function"?lo(Function.call,xo):xo,ko&&((Ro.virtual||(Ro.virtual={}))[vo]=xo,po&fo.R&&Ao&&!Ao[vo]&&uo(Ao,vo,xo)))};fo.F=1,fo.G=2,fo.S=4,fo.P=8,fo.B=16,fo.W=32,fo.U=64,fo.R=128,no.exports=fo},function(no,oo){no.exports=function(io,so){return{enumerable:!(1&io),configurable:!(2&io),writable:!(4&io),value:so}}},function(no,oo){var io=0,so=Math.random();no.exports=function(ao){return"Symbol(".concat(ao===void 0?"":ao,")_",(++io+so).toString(36))}},function(no,oo,io){var so=io(22);no.exports=function(ao){return Object(so(ao))}},function(no,oo){oo.f={}.propertyIsEnumerable},function(no,oo,io){var so=io(52)(!0);io(34)(String,"String",function(ao){this._t=String(ao),this._i=0},function(){var ao,lo=this._t,uo=this._i;return uo>=lo.length?{value:void 0,done:!0}:(ao=so(lo,uo),this._i+=ao.length,{value:ao,done:!1})})},function(no,oo){var io=Math.ceil,so=Math.floor;no.exports=function(ao){return isNaN(ao=+ao)?0:(ao>0?so:io)(ao)}},function(no,oo){no.exports=function(io){if(io==null)throw TypeError("Can't call method on "+io);return io}},function(no,oo,io){var so=io(11);no.exports=function(ao,lo){if(!so(ao))return ao;var uo,co;if(lo&&typeof(uo=ao.toString)=="function"&&!so(co=uo.call(ao))||typeof(uo=ao.valueOf)=="function"&&!so(co=uo.call(ao))||!lo&&typeof(uo=ao.toString)=="function"&&!so(co=uo.call(ao)))return co;throw TypeError("Can't convert object to primitive value")}},function(no,oo){var io={}.toString;no.exports=function(so){return io.call(so).slice(8,-1)}},function(no,oo,io){var so=io(26)("keys"),ao=io(17);no.exports=function(lo){return so[lo]||(so[lo]=ao(lo))}},function(no,oo,io){var so=io(1),ao=io(3),lo=ao["__core-js_shared__"]||(ao["__core-js_shared__"]={});(no.exports=function(uo,co){return lo[uo]||(lo[uo]=co!==void 0?co:{})})("versions",[]).push({version:so.version,mode:io(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(no,oo){no.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(no,oo,io){var so=io(7).f,ao=io(5),lo=io(2)("toStringTag");no.exports=function(uo,co,fo){uo&&!ao(uo=fo?uo:uo.prototype,lo)&&so(uo,lo,{configurable:!0,value:co})}},function(no,oo,io){io(62);for(var so=io(3),ao=io(6),lo=io(12),uo=io(2)("toStringTag"),co="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),fo=0;fodocument.F=Object<\/script>"),po.close(),fo=po.F;mo--;)delete fo.prototype[lo[mo]];return fo()};no.exports=Object.create||function(po,ho){var mo;return po!==null?(co.prototype=so(po),mo=new co,co.prototype=null,mo[uo]=po):mo=fo(),ho===void 0?mo:ao(mo,ho)}},function(no,oo,io){var so=io(5),ao=io(9),lo=io(57)(!1),uo=io(25)("IE_PROTO");no.exports=function(co,fo){var po,ho=ao(co),mo=0,vo=[];for(po in ho)po!=uo&&so(ho,po)&&vo.push(po);for(;fo.length>mo;)so(ho,po=fo[mo++])&&(~lo(vo,po)||vo.push(po));return vo}},function(no,oo,io){var so=io(24);no.exports=Object("z").propertyIsEnumerable(0)?Object:function(ao){return so(ao)=="String"?ao.split(""):Object(ao)}},function(no,oo,io){var so=io(39),ao=io(27).concat("length","prototype");oo.f=Object.getOwnPropertyNames||function(lo){return so(lo,ao)}},function(no,oo,io){var so=io(24),ao=io(2)("toStringTag"),lo=so(function(){return arguments}())=="Arguments";no.exports=function(uo){var co,fo,po;return uo===void 0?"Undefined":uo===null?"Null":typeof(fo=function(ho,mo){try{return ho[mo]}catch{}}(co=Object(uo),ao))=="string"?fo:lo?so(co):(po=so(co))=="Object"&&typeof co.callee=="function"?"Arguments":po}},function(no,oo){var io;io=function(){return this}();try{io=io||new Function("return this")()}catch{typeof window=="object"&&(io=window)}no.exports=io},function(no,oo){var io=/-?\d+(\.\d+)?%?/g;no.exports=function(so){return so.match(io)}},function(no,oo,io){Object.defineProperty(oo,"__esModule",{value:!0}),oo.getBase16Theme=oo.createStyling=oo.invertTheme=void 0;var so=bo(io(49)),ao=bo(io(76)),lo=bo(io(81)),uo=bo(io(89)),co=bo(io(93)),fo=function(Ao){if(Ao&&Ao.__esModule)return Ao;var Io={};if(Ao!=null)for(var $o in Ao)Object.prototype.hasOwnProperty.call(Ao,$o)&&(Io[$o]=Ao[$o]);return Io.default=Ao,Io}(io(94)),po=bo(io(132)),ho=bo(io(133)),mo=bo(io(138)),vo=io(139);function bo(Ao){return Ao&&Ao.__esModule?Ao:{default:Ao}}var xo=fo.default,_o=(0,uo.default)(xo),So=(0,mo.default)(ho.default,vo.rgb2yuv,function(Ao){var Io,$o=(0,lo.default)(Ao,3),Bo=$o[0],Mo=$o[1],Ho=$o[2];return[(Io=Bo,Io<.25?1:Io<.5?.9-Io:1.1-Io),Mo,Ho]},vo.yuv2rgb,po.default),Eo=function(Ao){return function(Io){return{className:[Io.className,Ao.className].filter(Boolean).join(" "),style:(0,ao.default)({},Io.style||{},Ao.style||{})}}},ko=function(Ao,Io){var $o=(0,uo.default)(Io);for(var Bo in Ao)$o.indexOf(Bo)===-1&&$o.push(Bo);return $o.reduce(function(Mo,Ho){return Mo[Ho]=function(jo,Oo){if(jo===void 0)return Oo;if(Oo===void 0)return jo;var Fo=jo===void 0?"undefined":(0,so.default)(jo),Go=Oo===void 0?"undefined":(0,so.default)(Oo);switch(Fo){case"string":switch(Go){case"string":return[Oo,jo].filter(Boolean).join(" ");case"object":return Eo({className:jo,style:Oo});case"function":return function(qo){for(var Xo=arguments.length,Zo=Array(Xo>1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo1?Xo-1:0),Qo=1;Qo2?$o-2:0),Mo=2;Mo<$o;Mo++)Bo[Mo-2]=arguments[Mo];if(Io===null)return Ao;Array.isArray(Io)||(Io=[Io]);var Ho=Io.map(function(Oo){return Ao[Oo]}).filter(Boolean),jo=Ho.reduce(function(Oo,Fo){return typeof Fo=="string"?Oo.className=[Oo.className,Fo].filter(Boolean).join(" "):(Fo===void 0?"undefined":(0,so.default)(Fo))==="object"?Oo.style=(0,ao.default)({},Oo.style,Fo):typeof Fo=="function"&&(Oo=(0,ao.default)({},Oo,Fo.apply(void 0,[Oo].concat(Bo)))),Oo},{className:"",style:{}});return jo.className||delete jo.className,(0,uo.default)(jo.style).length===0&&delete jo.style,jo},Co=oo.invertTheme=function(Ao){return(0,uo.default)(Ao).reduce(function(Io,$o){return Io[$o]=/^base/.test($o)?So(Ao[$o]):$o==="scheme"?Ao[$o]+":inverted":Ao[$o],Io},{})},Ro=(oo.createStyling=(0,co.default)(function(Ao){for(var Io=arguments.length,$o=Array(Io>3?Io-3:0),Bo=3;Bo1&&arguments[1]!==void 0?arguments[1]:{},Ho=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jo=Mo.defaultBase16,Oo=jo===void 0?xo:jo,Fo=Mo.base16Themes,Go=Fo===void 0?null:Fo,qo=Ro(Ho,Go);qo&&(Ho=(0,ao.default)({},qo,Ho));var Xo=_o.reduce(function(Ts,Rs){return Ts[Rs]=Ho[Rs]||Oo[Rs],Ts},{}),Zo=(0,uo.default)(Ho).reduce(function(Ts,Rs){return _o.indexOf(Rs)===-1&&(Ts[Rs]=Ho[Rs]),Ts},{}),Qo=Ao(Xo),xs=ko(Zo,Qo);return(0,co.default)(wo,2).apply(void 0,[xs].concat($o))},3),oo.getBase16Theme=function(Ao,Io){if(Ao&&Ao.extend&&(Ao=Ao.extend),typeof Ao=="string"){var $o=Ao.split(":"),Bo=(0,lo.default)($o,2),Mo=Bo[0],Ho=Bo[1];Ao=(Io||{})[Mo]||fo[Mo],Ho==="inverted"&&(Ao=Co(Ao))}return Ao&&Ao.hasOwnProperty("base00")?Ao:void 0})},function(no,oo,io){var so,ao=typeof Reflect=="object"?Reflect:null,lo=ao&&typeof ao.apply=="function"?ao.apply:function(Eo,ko,wo){return Function.prototype.apply.call(Eo,ko,wo)};so=ao&&typeof ao.ownKeys=="function"?ao.ownKeys:Object.getOwnPropertySymbols?function(Eo){return Object.getOwnPropertyNames(Eo).concat(Object.getOwnPropertySymbols(Eo))}:function(Eo){return Object.getOwnPropertyNames(Eo)};var uo=Number.isNaN||function(Eo){return Eo!=Eo};function co(){co.init.call(this)}no.exports=co,no.exports.once=function(Eo,ko){return new Promise(function(wo,Co){function Ro(){Ao!==void 0&&Eo.removeListener("error",Ao),wo([].slice.call(arguments))}var Ao;ko!=="error"&&(Ao=function(Io){Eo.removeListener(ko,Ro),Co(Io)},Eo.once("error",Ao)),Eo.once(ko,Ro)})},co.EventEmitter=co,co.prototype._events=void 0,co.prototype._eventsCount=0,co.prototype._maxListeners=void 0;var fo=10;function po(Eo){if(typeof Eo!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Eo)}function ho(Eo){return Eo._maxListeners===void 0?co.defaultMaxListeners:Eo._maxListeners}function mo(Eo,ko,wo,Co){var Ro,Ao,Io,$o;if(po(wo),(Ao=Eo._events)===void 0?(Ao=Eo._events=Object.create(null),Eo._eventsCount=0):(Ao.newListener!==void 0&&(Eo.emit("newListener",ko,wo.listener?wo.listener:wo),Ao=Eo._events),Io=Ao[ko]),Io===void 0)Io=Ao[ko]=wo,++Eo._eventsCount;else if(typeof Io=="function"?Io=Ao[ko]=Co?[wo,Io]:[Io,wo]:Co?Io.unshift(wo):Io.push(wo),(Ro=ho(Eo))>0&&Io.length>Ro&&!Io.warned){Io.warned=!0;var Bo=new Error("Possible EventEmitter memory leak detected. "+Io.length+" "+String(ko)+" listeners added. Use emitter.setMaxListeners() to increase limit");Bo.name="MaxListenersExceededWarning",Bo.emitter=Eo,Bo.type=ko,Bo.count=Io.length,$o=Bo,console&&console.warn&&console.warn($o)}return Eo}function vo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function bo(Eo,ko,wo){var Co={fired:!1,wrapFn:void 0,target:Eo,type:ko,listener:wo},Ro=vo.bind(Co);return Ro.listener=wo,Co.wrapFn=Ro,Ro}function xo(Eo,ko,wo){var Co=Eo._events;if(Co===void 0)return[];var Ro=Co[ko];return Ro===void 0?[]:typeof Ro=="function"?wo?[Ro.listener||Ro]:[Ro]:wo?function(Ao){for(var Io=new Array(Ao.length),$o=0;$o0&&(Ao=ko[0]),Ao instanceof Error)throw Ao;var Io=new Error("Unhandled error."+(Ao?" ("+Ao.message+")":""));throw Io.context=Ao,Io}var $o=Ro[Eo];if($o===void 0)return!1;if(typeof $o=="function")lo($o,this,ko);else{var Bo=$o.length,Mo=So($o,Bo);for(wo=0;wo=0;Ao--)if(wo[Ao]===ko||wo[Ao].listener===ko){Io=wo[Ao].listener,Ro=Ao;break}if(Ro<0)return this;Ro===0?wo.shift():function($o,Bo){for(;Bo+1<$o.length;Bo++)$o[Bo]=$o[Bo+1];$o.pop()}(wo,Ro),wo.length===1&&(Co[Eo]=wo[0]),Co.removeListener!==void 0&&this.emit("removeListener",Eo,Io||ko)}return this},co.prototype.off=co.prototype.removeListener,co.prototype.removeAllListeners=function(Eo){var ko,wo,Co;if((wo=this._events)===void 0)return this;if(wo.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):wo[Eo]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete wo[Eo]),this;if(arguments.length===0){var Ro,Ao=Object.keys(wo);for(Co=0;Co=0;Co--)this.removeListener(Eo,ko[Co]);return this},co.prototype.listeners=function(Eo){return xo(this,Eo,!0)},co.prototype.rawListeners=function(Eo){return xo(this,Eo,!1)},co.listenerCount=function(Eo,ko){return typeof Eo.listenerCount=="function"?Eo.listenerCount(ko):_o.call(Eo,ko)},co.prototype.listenerCount=_o,co.prototype.eventNames=function(){return this._eventsCount>0?so(this._events):[]}},function(no,oo,io){no.exports.Dispatcher=io(140)},function(no,oo,io){no.exports=io(142)},function(no,oo,io){oo.__esModule=!0;var so=uo(io(50)),ao=uo(io(65)),lo=typeof ao.default=="function"&&typeof so.default=="symbol"?function(co){return typeof co}:function(co){return co&&typeof ao.default=="function"&&co.constructor===ao.default&&co!==ao.default.prototype?"symbol":typeof co};function uo(co){return co&&co.__esModule?co:{default:co}}oo.default=typeof ao.default=="function"&&lo(so.default)==="symbol"?function(co){return co===void 0?"undefined":lo(co)}:function(co){return co&&typeof ao.default=="function"&&co.constructor===ao.default&&co!==ao.default.prototype?"symbol":co===void 0?"undefined":lo(co)}},function(no,oo,io){no.exports={default:io(51),__esModule:!0}},function(no,oo,io){io(20),io(29),no.exports=io(30).f("iterator")},function(no,oo,io){var so=io(21),ao=io(22);no.exports=function(lo){return function(uo,co){var fo,po,ho=String(ao(uo)),mo=so(co),vo=ho.length;return mo<0||mo>=vo?lo?"":void 0:(fo=ho.charCodeAt(mo))<55296||fo>56319||mo+1===vo||(po=ho.charCodeAt(mo+1))<56320||po>57343?lo?ho.charAt(mo):fo:lo?ho.slice(mo,mo+2):po-56320+(fo-55296<<10)+65536}}},function(no,oo,io){var so=io(54);no.exports=function(ao,lo,uo){if(so(ao),lo===void 0)return ao;switch(uo){case 1:return function(co){return ao.call(lo,co)};case 2:return function(co,fo){return ao.call(lo,co,fo)};case 3:return function(co,fo,po){return ao.call(lo,co,fo,po)}}return function(){return ao.apply(lo,arguments)}}},function(no,oo){no.exports=function(io){if(typeof io!="function")throw TypeError(io+" is not a function!");return io}},function(no,oo,io){var so=io(38),ao=io(16),lo=io(28),uo={};io(6)(uo,io(2)("iterator"),function(){return this}),no.exports=function(co,fo,po){co.prototype=so(uo,{next:ao(1,po)}),lo(co,fo+" Iterator")}},function(no,oo,io){var so=io(7),ao=io(10),lo=io(13);no.exports=io(4)?Object.defineProperties:function(uo,co){ao(uo);for(var fo,po=lo(co),ho=po.length,mo=0;ho>mo;)so.f(uo,fo=po[mo++],co[fo]);return uo}},function(no,oo,io){var so=io(9),ao=io(58),lo=io(59);no.exports=function(uo){return function(co,fo,po){var ho,mo=so(co),vo=ao(mo.length),bo=lo(po,vo);if(uo&&fo!=fo){for(;vo>bo;)if((ho=mo[bo++])!=ho)return!0}else for(;vo>bo;bo++)if((uo||bo in mo)&&mo[bo]===fo)return uo||bo||0;return!uo&&-1}}},function(no,oo,io){var so=io(21),ao=Math.min;no.exports=function(lo){return lo>0?ao(so(lo),9007199254740991):0}},function(no,oo,io){var so=io(21),ao=Math.max,lo=Math.min;no.exports=function(uo,co){return(uo=so(uo))<0?ao(uo+co,0):lo(uo,co)}},function(no,oo,io){var so=io(3).document;no.exports=so&&so.documentElement},function(no,oo,io){var so=io(5),ao=io(18),lo=io(25)("IE_PROTO"),uo=Object.prototype;no.exports=Object.getPrototypeOf||function(co){return co=ao(co),so(co,lo)?co[lo]:typeof co.constructor=="function"&&co instanceof co.constructor?co.constructor.prototype:co instanceof Object?uo:null}},function(no,oo,io){var so=io(63),ao=io(64),lo=io(12),uo=io(9);no.exports=io(34)(Array,"Array",function(co,fo){this._t=uo(co),this._i=0,this._k=fo},function(){var co=this._t,fo=this._k,po=this._i++;return!co||po>=co.length?(this._t=void 0,ao(1)):ao(0,fo=="keys"?po:fo=="values"?co[po]:[po,co[po]])},"values"),lo.Arguments=lo.Array,so("keys"),so("values"),so("entries")},function(no,oo){no.exports=function(){}},function(no,oo){no.exports=function(io,so){return{value:so,done:!!io}}},function(no,oo,io){no.exports={default:io(66),__esModule:!0}},function(no,oo,io){io(67),io(73),io(74),io(75),no.exports=io(1).Symbol},function(no,oo,io){var so=io(3),ao=io(5),lo=io(4),uo=io(15),co=io(37),fo=io(68).KEY,po=io(8),ho=io(26),mo=io(28),vo=io(17),bo=io(2),xo=io(30),_o=io(31),So=io(69),Eo=io(70),ko=io(10),wo=io(11),Co=io(18),Ro=io(9),Ao=io(23),Io=io(16),$o=io(38),Bo=io(71),Mo=io(72),Ho=io(32),jo=io(7),Oo=io(13),Fo=Mo.f,Go=jo.f,qo=Bo.f,Xo=so.Symbol,Zo=so.JSON,Qo=Zo&&Zo.stringify,xs=bo("_hidden"),Ts=bo("toPrimitive"),Rs={}.propertyIsEnumerable,Os=ho("symbol-registry"),As=ho("symbols"),Ds=ho("op-symbols"),Jo=Object.prototype,Cs=typeof Xo=="function"&&!!Ho.f,Bs=so.QObject,zs=!Bs||!Bs.prototype||!Bs.prototype.findChild,Ls=lo&&po(function(){return $o(Go({},"a",{get:function(){return Go(this,"a",{value:7}).a}})).a!=7})?function(bs,ws,Gs){var Ks=Fo(Jo,ws);Ks&&delete Jo[ws],Go(bs,ws,Gs),Ks&&bs!==Jo&&Go(Jo,ws,Ks)}:Go,ga=function(bs){var ws=As[bs]=$o(Xo.prototype);return ws._k=bs,ws},Js=Cs&&typeof Xo.iterator=="symbol"?function(bs){return typeof bs=="symbol"}:function(bs){return bs instanceof Xo},Zs=function(bs,ws,Gs){return bs===Jo&&Zs(Ds,ws,Gs),ko(bs),ws=Ao(ws,!0),ko(Gs),ao(As,ws)?(Gs.enumerable?(ao(bs,xs)&&bs[xs][ws]&&(bs[xs][ws]=!1),Gs=$o(Gs,{enumerable:Io(0,!1)})):(ao(bs,xs)||Go(bs,xs,Io(1,{})),bs[xs][ws]=!0),Ls(bs,ws,Gs)):Go(bs,ws,Gs)},$a=function(bs,ws){ko(bs);for(var Gs,Ks=So(ws=Ro(ws)),Ms=0,Hs=Ks.length;Hs>Ms;)Zs(bs,Gs=Ks[Ms++],ws[Gs]);return bs},Ll=function(bs){var ws=Rs.call(this,bs=Ao(bs,!0));return!(this===Jo&&ao(As,bs)&&!ao(Ds,bs))&&(!(ws||!ao(this,bs)||!ao(As,bs)||ao(this,xs)&&this[xs][bs])||ws)},Kl=function(bs,ws){if(bs=Ro(bs),ws=Ao(ws,!0),bs!==Jo||!ao(As,ws)||ao(Ds,ws)){var Gs=Fo(bs,ws);return!Gs||!ao(As,ws)||ao(bs,xs)&&bs[xs][ws]||(Gs.enumerable=!0),Gs}},Zl=function(bs){for(var ws,Gs=qo(Ro(bs)),Ks=[],Ms=0;Gs.length>Ms;)ao(As,ws=Gs[Ms++])||ws==xs||ws==fo||Ks.push(ws);return Ks},$l=function(bs){for(var ws,Gs=bs===Jo,Ks=qo(Gs?Ds:Ro(bs)),Ms=[],Hs=0;Ks.length>Hs;)!ao(As,ws=Ks[Hs++])||Gs&&!ao(Jo,ws)||Ms.push(As[ws]);return Ms};Cs||(co((Xo=function(){if(this instanceof Xo)throw TypeError("Symbol is not a constructor!");var bs=vo(arguments.length>0?arguments[0]:void 0),ws=function(Gs){this===Jo&&ws.call(Ds,Gs),ao(this,xs)&&ao(this[xs],bs)&&(this[xs][bs]=!1),Ls(this,bs,Io(1,Gs))};return lo&&zs&&Ls(Jo,bs,{configurable:!0,set:ws}),ga(bs)}).prototype,"toString",function(){return this._k}),Mo.f=Kl,jo.f=Zs,io(41).f=Bo.f=Zl,io(19).f=Ll,Ho.f=$l,lo&&!io(14)&&co(Jo,"propertyIsEnumerable",Ll,!0),xo.f=function(bs){return ga(bo(bs))}),uo(uo.G+uo.W+uo.F*!Cs,{Symbol:Xo});for(var xa="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Sl=0;xa.length>Sl;)bo(xa[Sl++]);for(var cu=Oo(bo.store),ks=0;cu.length>ks;)_o(cu[ks++]);uo(uo.S+uo.F*!Cs,"Symbol",{for:function(bs){return ao(Os,bs+="")?Os[bs]:Os[bs]=Xo(bs)},keyFor:function(bs){if(!Js(bs))throw TypeError(bs+" is not a symbol!");for(var ws in Os)if(Os[ws]===bs)return ws},useSetter:function(){zs=!0},useSimple:function(){zs=!1}}),uo(uo.S+uo.F*!Cs,"Object",{create:function(bs,ws){return ws===void 0?$o(bs):$a($o(bs),ws)},defineProperty:Zs,defineProperties:$a,getOwnPropertyDescriptor:Kl,getOwnPropertyNames:Zl,getOwnPropertySymbols:$l});var Es=po(function(){Ho.f(1)});uo(uo.S+uo.F*Es,"Object",{getOwnPropertySymbols:function(bs){return Ho.f(Co(bs))}}),Zo&&uo(uo.S+uo.F*(!Cs||po(function(){var bs=Xo();return Qo([bs])!="[null]"||Qo({a:bs})!="{}"||Qo(Object(bs))!="{}"})),"JSON",{stringify:function(bs){for(var ws,Gs,Ks=[bs],Ms=1;arguments.length>Ms;)Ks.push(arguments[Ms++]);if(Gs=ws=Ks[1],(wo(ws)||bs!==void 0)&&!Js(bs))return Eo(ws)||(ws=function(Hs,Qs){if(typeof Gs=="function"&&(Qs=Gs.call(this,Hs,Qs)),!Js(Qs))return Qs}),Ks[1]=ws,Qo.apply(Zo,Ks)}}),Xo.prototype[Ts]||io(6)(Xo.prototype,Ts,Xo.prototype.valueOf),mo(Xo,"Symbol"),mo(Math,"Math",!0),mo(so.JSON,"JSON",!0)},function(no,oo,io){var so=io(17)("meta"),ao=io(11),lo=io(5),uo=io(7).f,co=0,fo=Object.isExtensible||function(){return!0},po=!io(8)(function(){return fo(Object.preventExtensions({}))}),ho=function(vo){uo(vo,so,{value:{i:"O"+ ++co,w:{}}})},mo=no.exports={KEY:so,NEED:!1,fastKey:function(vo,bo){if(!ao(vo))return typeof vo=="symbol"?vo:(typeof vo=="string"?"S":"P")+vo;if(!lo(vo,so)){if(!fo(vo))return"F";if(!bo)return"E";ho(vo)}return vo[so].i},getWeak:function(vo,bo){if(!lo(vo,so)){if(!fo(vo))return!0;if(!bo)return!1;ho(vo)}return vo[so].w},onFreeze:function(vo){return po&&mo.NEED&&fo(vo)&&!lo(vo,so)&&ho(vo),vo}}},function(no,oo,io){var so=io(13),ao=io(32),lo=io(19);no.exports=function(uo){var co=so(uo),fo=ao.f;if(fo)for(var po,ho=fo(uo),mo=lo.f,vo=0;ho.length>vo;)mo.call(uo,po=ho[vo++])&&co.push(po);return co}},function(no,oo,io){var so=io(24);no.exports=Array.isArray||function(ao){return so(ao)=="Array"}},function(no,oo,io){var so=io(9),ao=io(41).f,lo={}.toString,uo=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];no.exports.f=function(co){return uo&&lo.call(co)=="[object Window]"?function(fo){try{return ao(fo)}catch{return uo.slice()}}(co):ao(so(co))}},function(no,oo,io){var so=io(19),ao=io(16),lo=io(9),uo=io(23),co=io(5),fo=io(35),po=Object.getOwnPropertyDescriptor;oo.f=io(4)?po:function(ho,mo){if(ho=lo(ho),mo=uo(mo,!0),fo)try{return po(ho,mo)}catch{}if(co(ho,mo))return ao(!so.f.call(ho,mo),ho[mo])}},function(no,oo){},function(no,oo,io){io(31)("asyncIterator")},function(no,oo,io){io(31)("observable")},function(no,oo,io){oo.__esModule=!0;var so,ao=io(77),lo=(so=ao)&&so.__esModule?so:{default:so};oo.default=lo.default||function(uo){for(var co=1;coxo;)for(var Eo,ko=fo(arguments[xo++]),wo=_o?ao(ko).concat(_o(ko)):ao(ko),Co=wo.length,Ro=0;Co>Ro;)Eo=wo[Ro++],so&&!So.call(ko,Eo)||(vo[Eo]=ko[Eo]);return vo}:po},function(no,oo,io){oo.__esModule=!0;var so=lo(io(82)),ao=lo(io(85));function lo(uo){return uo&&uo.__esModule?uo:{default:uo}}oo.default=function(uo,co){if(Array.isArray(uo))return uo;if((0,so.default)(Object(uo)))return function(fo,po){var ho=[],mo=!0,vo=!1,bo=void 0;try{for(var xo,_o=(0,ao.default)(fo);!(mo=(xo=_o.next()).done)&&(ho.push(xo.value),!po||ho.length!==po);mo=!0);}catch(So){vo=!0,bo=So}finally{try{!mo&&_o.return&&_o.return()}finally{if(vo)throw bo}}return ho}(uo,co);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(no,oo,io){no.exports={default:io(83),__esModule:!0}},function(no,oo,io){io(29),io(20),no.exports=io(84)},function(no,oo,io){var so=io(42),ao=io(2)("iterator"),lo=io(12);no.exports=io(1).isIterable=function(uo){var co=Object(uo);return co[ao]!==void 0||"@@iterator"in co||lo.hasOwnProperty(so(co))}},function(no,oo,io){no.exports={default:io(86),__esModule:!0}},function(no,oo,io){io(29),io(20),no.exports=io(87)},function(no,oo,io){var so=io(10),ao=io(88);no.exports=io(1).getIterator=function(lo){var uo=ao(lo);if(typeof uo!="function")throw TypeError(lo+" is not iterable!");return so(uo.call(lo))}},function(no,oo,io){var so=io(42),ao=io(2)("iterator"),lo=io(12);no.exports=io(1).getIteratorMethod=function(uo){if(uo!=null)return uo[ao]||uo["@@iterator"]||lo[so(uo)]}},function(no,oo,io){no.exports={default:io(90),__esModule:!0}},function(no,oo,io){io(91),no.exports=io(1).Object.keys},function(no,oo,io){var so=io(18),ao=io(13);io(92)("keys",function(){return function(lo){return ao(so(lo))}})},function(no,oo,io){var so=io(15),ao=io(1),lo=io(8);no.exports=function(uo,co){var fo=(ao.Object||{})[uo]||Object[uo],po={};po[uo]=co(fo),so(so.S+so.F*lo(function(){fo(1)}),"Object",po)}},function(no,oo,io){(function(so){var ao=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],lo=/^\s+|\s+$/g,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,co=/\{\n\/\* \[wrapped with (.+)\] \*/,fo=/,? & /,po=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,mo=/^\[object .+?Constructor\]$/,vo=/^0o[0-7]+$/i,bo=/^(?:0|[1-9]\d*)$/,xo=parseInt,_o=typeof so=="object"&&so&&so.Object===Object&&so,So=typeof self=="object"&&self&&self.Object===Object&&self,Eo=_o||So||Function("return this")();function ko(ks,Es,bs){switch(bs.length){case 0:return ks.call(Es);case 1:return ks.call(Es,bs[0]);case 2:return ks.call(Es,bs[0],bs[1]);case 3:return ks.call(Es,bs[0],bs[1],bs[2])}return ks.apply(Es,bs)}function wo(ks,Es){return!!(ks&&ks.length)&&function(bs,ws,Gs){if(ws!=ws)return function(Hs,Qs,El,xl){for(var Ol=Hs.length,ru=El+(xl?1:-1);xl?ru--:++ru-1}function Co(ks){return ks!=ks}function Ro(ks,Es){for(var bs=ks.length,ws=0;bs--;)ks[bs]===Es&&ws++;return ws}function Ao(ks,Es){for(var bs=-1,ws=ks.length,Gs=0,Ks=[];++bs2?$o:void 0);function Rs(ks){return xa(ks)?Zo(ks):{}}function Os(ks){return!(!xa(ks)||function(Es){return!!Oo&&Oo in Es}(ks))&&(function(Es){var bs=xa(Es)?qo.call(Es):"";return bs=="[object Function]"||bs=="[object GeneratorFunction]"}(ks)||function(Es){var bs=!1;if(Es!=null&&typeof Es.toString!="function")try{bs=!!(Es+"")}catch{}return bs}(ks)?Xo:mo).test(function(Es){if(Es!=null){try{return Fo.call(Es)}catch{}try{return Es+""}catch{}}return""}(ks))}function As(ks,Es,bs,ws){for(var Gs=-1,Ks=ks.length,Ms=bs.length,Hs=-1,Qs=Es.length,El=Qo(Ks-Ms,0),xl=Array(Qs+El),Ol=!ws;++Hs1&&Dl.reverse(),xl&&Qs1?"& ":"")+Es[ws],Es=Es.join(bs>2?", ":" "),ks.replace(uo,`{ +/* [wrapped with `+Es+`] */ +`)}function $a(ks,Es){return!!(Es=Es??9007199254740991)&&(typeof ks=="number"||bo.test(ks))&&ks>-1&&ks%1==0&&ks1&&lo--,co=6*lo<1?so+6*(ao-so)*lo:2*lo<1?ao:3*lo<2?so+(ao-so)*(2/3-lo)*6:so,uo[mo]=255*co;return uo}},function(no,oo,io){(function(so){var ao=typeof so=="object"&&so&&so.Object===Object&&so,lo=typeof self=="object"&&self&&self.Object===Object&&self,uo=ao||lo||Function("return this")();function co(Ao,Io,$o){switch($o.length){case 0:return Ao.call(Io);case 1:return Ao.call(Io,$o[0]);case 2:return Ao.call(Io,$o[0],$o[1]);case 3:return Ao.call(Io,$o[0],$o[1],$o[2])}return Ao.apply(Io,$o)}function fo(Ao,Io){for(var $o=-1,Bo=Io.length,Mo=Ao.length;++$o-1&&Mo%1==0&&Mo<=9007199254740991}(Bo.length)&&!function(Mo){var Ho=function(jo){var Oo=typeof jo;return!!jo&&(Oo=="object"||Oo=="function")}(Mo)?mo.call(Mo):"";return Ho=="[object Function]"||Ho=="[object GeneratorFunction]"}(Bo)}($o)}(Io)&&ho.call(Io,"callee")&&(!bo.call(Io,"callee")||mo.call(Io)=="[object Arguments]")}(Ao)||!!(xo&&Ao&&Ao[xo])}var Eo=Array.isArray,ko,wo,Co,Ro=(wo=function(Ao){var Io=(Ao=function Bo(Mo,Ho,jo,Oo,Fo){var Go=-1,qo=Mo.length;for(jo||(jo=So),Fo||(Fo=[]);++Go0&&jo(Xo)?Ho>1?Bo(Xo,Ho-1,jo,Oo,Fo):fo(Fo,Xo):Oo||(Fo[Fo.length]=Xo)}return Fo}(Ao,1)).length,$o=Io;for(ko;$o--;)if(typeof Ao[$o]!="function")throw new TypeError("Expected a function");return function(){for(var Bo=0,Mo=Io?Ao[Bo].apply(this,arguments):arguments[0];++Bo2?lo-2:0),co=2;co"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Po,zo=mo(Ko);if(Uo){var Do=mo(this).constructor;Po=Reflect.construct(zo,arguments,Do)}else Po=zo.apply(this,arguments);return xo(this,Po)}}io.r(oo);var So=io(0),Eo=io.n(So);function ko(){var Ko=this.constructor.getDerivedStateFromProps(this.props,this.state);Ko!=null&&this.setState(Ko)}function wo(Ko){this.setState((function(Uo){var Po=this.constructor.getDerivedStateFromProps(Ko,Uo);return Po??null}).bind(this))}function Co(Ko,Uo){try{var Po=this.props,zo=this.state;this.props=Ko,this.state=Uo,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Po,zo)}finally{this.props=Po,this.state=zo}}function Ro(Ko){var Uo=Ko.prototype;if(!Uo||!Uo.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Ko.getDerivedStateFromProps!="function"&&typeof Uo.getSnapshotBeforeUpdate!="function")return Ko;var Po=null,zo=null,Do=null;if(typeof Uo.componentWillMount=="function"?Po="componentWillMount":typeof Uo.UNSAFE_componentWillMount=="function"&&(Po="UNSAFE_componentWillMount"),typeof Uo.componentWillReceiveProps=="function"?zo="componentWillReceiveProps":typeof Uo.UNSAFE_componentWillReceiveProps=="function"&&(zo="UNSAFE_componentWillReceiveProps"),typeof Uo.componentWillUpdate=="function"?Do="componentWillUpdate":typeof Uo.UNSAFE_componentWillUpdate=="function"&&(Do="UNSAFE_componentWillUpdate"),Po!==null||zo!==null||Do!==null){var Yo=Ko.displayName||Ko.name,vs=typeof Ko.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. + +`+Yo+" uses "+vs+" but also contains the following legacy lifecycles:"+(Po!==null?` + `+Po:"")+(zo!==null?` + `+zo:"")+(Do!==null?` + `+Do:"")+` + +The above lifecycles should be removed. Learn more about this warning here: +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Ko.getDerivedStateFromProps=="function"&&(Uo.componentWillMount=ko,Uo.componentWillReceiveProps=wo),typeof Uo.getSnapshotBeforeUpdate=="function"){if(typeof Uo.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");Uo.componentWillUpdate=Co;var ys=Uo.componentDidUpdate;Uo.componentDidUpdate=function(hs,Is,Us){var Il=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Us;ys.call(this,hs,Is,Il)}}return Ko}function Ao(Ko,Uo){if(Ko==null)return{};var Po,zo,Do=function(vs,ys){if(vs==null)return{};var hs,Is,Us={},Il=Object.keys(vs);for(Is=0;Is=0||(Us[hs]=vs[hs]);return Us}(Ko,Uo);if(Object.getOwnPropertySymbols){var Yo=Object.getOwnPropertySymbols(Ko);for(zo=0;zo=0||Object.prototype.propertyIsEnumerable.call(Ko,Po)&&(Do[Po]=Ko[Po])}return Do}function Io(Ko){var Uo=function(Po){return{}.toString.call(Po).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Ko);return Uo==="number"&&(Uo=isNaN(Ko)?"nan":(0|Ko)!=Ko?"float":"integer"),Uo}ko.__suppressDeprecationWarning=!0,wo.__suppressDeprecationWarning=!0,Co.__suppressDeprecationWarning=!0;var $o={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},Bo={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},Mo={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},Ho=io(45),jo=function(Ko){var Uo=function(Po){return{backgroundColor:Po.base00,ellipsisColor:Po.base09,braceColor:Po.base07,expandedIcon:Po.base0D,collapsedIcon:Po.base0E,keyColor:Po.base07,arrayKeyColor:Po.base0C,objectSize:Po.base04,copyToClipboard:Po.base0F,copyToClipboardCheck:Po.base0D,objectBorder:Po.base02,dataTypes:{boolean:Po.base0E,date:Po.base0D,float:Po.base0B,function:Po.base0D,integer:Po.base0F,string:Po.base09,nan:Po.base08,null:Po.base0A,undefined:Po.base05,regexp:Po.base0A,background:Po.base02},editVariable:{editIcon:Po.base0E,cancelIcon:Po.base09,removeIcon:Po.base09,addIcon:Po.base0E,checkIcon:Po.base0E,background:Po.base01,color:Po.base0A,border:Po.base07},addKeyModal:{background:Po.base05,border:Po.base04,color:Po.base0A,labelColor:Po.base01},validationFailure:{background:Po.base09,iconColor:Po.base01,fontColor:Po.base01}}}(Ko);return{"app-container":{fontFamily:Mo.globalFontFamily,cursor:Mo.globalCursor,backgroundColor:Uo.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:Uo.ellipsisColor,fontSize:Mo.ellipsisFontSize,lineHeight:Mo.ellipsisLineHeight,cursor:Mo.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:Mo.braceCursor,fontWeight:Mo.braceFontWeight,color:Uo.braceColor},"expanded-icon":{color:Uo.expandedIcon},"collapsed-icon":{color:Uo.collapsedIcon},colon:{display:"inline-block",margin:Mo.keyMargin,color:Uo.keyColor,verticalAlign:"top"},objectKeyVal:function(Po,zo){return{style:lo({paddingTop:Mo.keyValPaddingTop,paddingRight:Mo.keyValPaddingRight,paddingBottom:Mo.keyValPaddingBottom,borderLeft:Mo.keyValBorderLeft+" "+Uo.objectBorder,":hover":{paddingLeft:zo.paddingLeft-1+"px",borderLeft:Mo.keyValBorderHover+" "+Uo.objectBorder}},zo)}},"object-key-val-no-border":{padding:Mo.keyValPadding},"pushed-content":{marginLeft:Mo.pushedContentMarginLeft},variableValue:function(Po,zo){return{style:lo({display:"inline-block",paddingRight:Mo.variableValuePaddingRight,position:"relative"},zo)}},"object-name":{display:"inline-block",color:Uo.keyColor,letterSpacing:Mo.keyLetterSpacing,fontStyle:Mo.keyFontStyle,verticalAlign:Mo.keyVerticalAlign,opacity:Mo.keyOpacity,":hover":{opacity:Mo.keyOpacityHover}},"array-key":{display:"inline-block",color:Uo.arrayKeyColor,letterSpacing:Mo.keyLetterSpacing,fontStyle:Mo.keyFontStyle,verticalAlign:Mo.keyVerticalAlign,opacity:Mo.keyOpacity,":hover":{opacity:Mo.keyOpacityHover}},"object-size":{color:Uo.objectSize,borderRadius:Mo.objectSizeBorderRadius,fontStyle:Mo.objectSizeFontStyle,margin:Mo.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:Mo.dataTypeFontSize,marginRight:Mo.dataTypeMarginRight,opacity:Mo.datatypeOpacity},boolean:{display:"inline-block",color:Uo.dataTypes.boolean},date:{display:"inline-block",color:Uo.dataTypes.date},"date-value":{marginLeft:Mo.dateValueMarginLeft},float:{display:"inline-block",color:Uo.dataTypes.float},function:{display:"inline-block",color:Uo.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:Uo.dataTypes.integer},string:{display:"inline-block",color:Uo.dataTypes.string},nan:{display:"inline-block",color:Uo.dataTypes.nan,fontSize:Mo.nanFontSize,fontWeight:Mo.nanFontWeight,backgroundColor:Uo.dataTypes.background,padding:Mo.nanPadding,borderRadius:Mo.nanBorderRadius},null:{display:"inline-block",color:Uo.dataTypes.null,fontSize:Mo.nullFontSize,fontWeight:Mo.nullFontWeight,backgroundColor:Uo.dataTypes.background,padding:Mo.nullPadding,borderRadius:Mo.nullBorderRadius},undefined:{display:"inline-block",color:Uo.dataTypes.undefined,fontSize:Mo.undefinedFontSize,padding:Mo.undefinedPadding,borderRadius:Mo.undefinedBorderRadius,backgroundColor:Uo.dataTypes.background},regexp:{display:"inline-block",color:Uo.dataTypes.regexp},"copy-to-clipboard":{cursor:Mo.clipboardCursor},"copy-icon":{color:Uo.copyToClipboard,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:Uo.copyToClipboardCheck,marginLeft:Mo.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:Mo.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:Mo.metaDataPadding},"icon-container":{display:"inline-block",width:Mo.iconContainerWidth},tooltip:{padding:Mo.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:Uo.editVariable.removeIcon,cursor:Mo.iconCursor,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:Uo.editVariable.addIcon,cursor:Mo.iconCursor,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:Uo.editVariable.editIcon,cursor:Mo.iconCursor,fontSize:Mo.iconFontSize,marginRight:Mo.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:Mo.iconCursor,color:Uo.editVariable.checkIcon,fontSize:Mo.iconFontSize,paddingRight:Mo.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:Mo.iconCursor,color:Uo.editVariable.cancelIcon,fontSize:Mo.iconFontSize,paddingRight:Mo.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:Mo.editInputMinWidth,borderRadius:Mo.editInputBorderRadius,backgroundColor:Uo.editVariable.background,color:Uo.editVariable.color,padding:Mo.editInputPadding,marginRight:Mo.editInputMarginRight,fontFamily:Mo.editInputFontFamily},"detected-row":{paddingTop:Mo.detectedRowPaddingTop},"key-modal-request":{position:Mo.addKeyCoverPosition,top:Mo.addKeyCoverPositionPx,left:Mo.addKeyCoverPositionPx,right:Mo.addKeyCoverPositionPx,bottom:Mo.addKeyCoverPositionPx,backgroundColor:Mo.addKeyCoverBackground},"key-modal":{width:Mo.addKeyModalWidth,backgroundColor:Uo.addKeyModal.background,marginLeft:Mo.addKeyModalMargin,marginRight:Mo.addKeyModalMargin,padding:Mo.addKeyModalPadding,borderRadius:Mo.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:Uo.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:Uo.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:Uo.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:Uo.addKeyModal.labelColor,fontSize:Mo.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:Uo.editVariable.addIcon,fontSize:Mo.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:Uo.ellipsisColor,fontSize:Mo.ellipsisFontSize,lineHeight:Mo.ellipsisLineHeight,cursor:Mo.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:Uo.validationFailure.fontColor,backgroundColor:Uo.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:Uo.validationFailure.iconColor,fontSize:Mo.iconFontSize,transform:"rotate(45deg)"}}};function Oo(Ko,Uo,Po){return Ko||console.error("theme has not been set"),function(zo){var Do=$o;return zo!==!1&&zo!=="none"||(Do=Bo),Object(Ho.createStyling)(jo,{defaultBase16:Do})(zo)}(Ko)(Uo,Po)}var Fo=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=(zo.rjvId,zo.type_name),Yo=zo.displayDataTypes,vs=zo.theme;return Yo?Eo.a.createElement("span",Object.assign({className:"data-type-label"},Oo(vs,"data-type-label")),Do):null}}]),Po}(Eo.a.PureComponent),Go=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props;return Eo.a.createElement("div",Oo(zo.theme,"boolean"),Eo.a.createElement(Fo,Object.assign({type_name:"bool"},zo)),zo.value?"true":"false")}}]),Po}(Eo.a.PureComponent),qo=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props;return Eo.a.createElement("div",Oo(zo.theme,"date"),Eo.a.createElement(Fo,Object.assign({type_name:"date"},zo)),Eo.a.createElement("span",Object.assign({className:"date-value"},Oo(zo.theme,"date-value")),zo.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),Po}(Eo.a.PureComponent),Xo=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props;return Eo.a.createElement("div",Oo(zo.theme,"float"),Eo.a.createElement(Fo,Object.assign({type_name:"float"},zo)),this.props.value)}}]),Po}(Eo.a.PureComponent);function Zo(Ko,Uo){(Uo==null||Uo>Ko.length)&&(Uo=Ko.length);for(var Po=0,zo=new Array(Uo);Po"u"||Ko[Symbol.iterator]==null){if(Array.isArray(Ko)||(Po=Qo(Ko))||Uo&&Ko&&typeof Ko.length=="number"){Po&&(Ko=Po);var zo=0,Do=function(){};return{s:Do,n:function(){return zo>=Ko.length?{done:!0}:{done:!1,value:Ko[zo++]}},e:function(hs){throw hs},f:Do}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Yo,vs=!0,ys=!1;return{s:function(){Po=Ko[Symbol.iterator]()},n:function(){var hs=Po.next();return vs=hs.done,hs},e:function(hs){ys=!0,Yo=hs},f:function(){try{vs||Po.return==null||Po.return()}finally{if(ys)throw Yo}}}}function Ts(Ko){return function(Uo){if(Array.isArray(Uo))return Zo(Uo)}(Ko)||function(Uo){if(typeof Symbol<"u"&&Symbol.iterator in Object(Uo))return Array.from(Uo)}(Ko)||Qo(Ko)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Rs=io(46),Os=new(io(47)).Dispatcher,As=new(function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vsDo&&(ys.style.cursor="pointer",this.state.collapsed&&(vs=Eo.a.createElement("span",null,vs.substring(0,Do),Eo.a.createElement("span",Oo(Yo,"ellipsis")," ...")))),Eo.a.createElement("div",Oo(Yo,"string"),Eo.a.createElement(Fo,Object.assign({type_name:"string"},zo)),Eo.a.createElement("span",Object.assign({className:"string-value"},ys,{onClick:this.toggleCollapsed}),'"',vs,'"'))}}]),Po}(Eo.a.PureComponent),Js=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){return Eo.a.createElement("div",Oo(this.props.theme,"undefined"),"undefined")}}]),Po}(Eo.a.PureComponent);function Zs(){return(Zs=Object.assign||function(Ko){for(var Uo=1;Uo=0||(f1[Nu]=Bl[Nu]);return f1}(Ko,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Us,Il=Is.value!==void 0,Ml=Object(So.useRef)(null),Rl=Zl(Ml,Uo),Cl=Object(So.useRef)(0),Ul=Object(So.useRef)(),fu=function(){var Bl=Ml.current,Su=Po&&Ul.current?Ul.current:function(Xu){var A1=window.getComputedStyle(Xu);if(A1===null)return null;var p1,Au=(p1=A1,ks.reduce(function(w1,h1){return w1[h1]=p1[h1],w1},{})),t1=Au.boxSizing;return t1===""?null:(Es&&t1==="border-box"&&(Au.width=parseFloat(Au.width)+parseFloat(Au.borderRightWidth)+parseFloat(Au.borderLeftWidth)+parseFloat(Au.paddingRight)+parseFloat(Au.paddingLeft)+"px"),{sizingStyle:Au,paddingSize:parseFloat(Au.paddingBottom)+parseFloat(Au.paddingTop),borderSize:parseFloat(Au.borderBottomWidth)+parseFloat(Au.borderTopWidth)})}(Bl);if(Su){Ul.current=Su;var Nu=function(Xu,A1,p1,Au){p1===void 0&&(p1=1),Au===void 0&&(Au=1/0),Sl||((Sl=document.createElement("textarea")).setAttribute("tab-index","-1"),Sl.setAttribute("aria-hidden","true"),xa(Sl)),Sl.parentNode===null&&document.body.appendChild(Sl);var t1=Xu.paddingSize,w1=Xu.borderSize,h1=Xu.sizingStyle,R1=h1.boxSizing;Object.keys(h1).forEach(function(N1){var x1=N1;Sl.style[x1]=h1[x1]}),xa(Sl),Sl.value=A1;var g1=function(N1,x1){var S1=N1.scrollHeight;return x1.sizingStyle.boxSizing==="border-box"?S1+x1.borderSize:S1-x1.paddingSize}(Sl,Xu);Sl.value="x";var H1=Sl.scrollHeight-t1,E1=H1*p1;R1==="border-box"&&(E1=E1+t1+w1),g1=Math.max(E1,g1);var I1=H1*Au;return R1==="border-box"&&(I1=I1+t1+w1),[g1=Math.min(I1,g1),H1]}(Su,Bl.value||Bl.placeholder||"x",Do,zo),zu=Nu[0],f1=Nu[1];Cl.current!==zu&&(Cl.current=zu,Bl.style.setProperty("height",zu+"px","important"),hs(zu,{rowHeight:f1}))}};return Object(So.useLayoutEffect)(fu),Us=Ll(fu),Object(So.useLayoutEffect)(function(){var Bl=function(Su){Us.current(Su)};return window.addEventListener("resize",Bl),function(){window.removeEventListener("resize",Bl)}},[]),Object(So.createElement)("textarea",Zs({},Is,{onChange:function(Bl){Il||fu(),vs(Bl)},ref:Rl}))},ws=Object(So.forwardRef)(bs);function Gs(Ko){Ko=Ko.trim();try{if((Ko=JSON.stringify(JSON.parse(Ko)))[0]==="[")return Ks("array",JSON.parse(Ko));if(Ko[0]==="{")return Ks("object",JSON.parse(Ko));if(Ko.match(/\-?\d+\.\d+/)&&Ko.match(/\-?\d+\.\d+/)[0]===Ko)return Ks("float",parseFloat(Ko));if(Ko.match(/\-?\d+e-\d+/)&&Ko.match(/\-?\d+e-\d+/)[0]===Ko)return Ks("float",Number(Ko));if(Ko.match(/\-?\d+/)&&Ko.match(/\-?\d+/)[0]===Ko)return Ks("integer",parseInt(Ko));if(Ko.match(/\-?\d+e\+\d+/)&&Ko.match(/\-?\d+e\+\d+/)[0]===Ko)return Ks("integer",Number(Ko))}catch{}switch(Ko=Ko.toLowerCase()){case"undefined":return Ks("undefined",void 0);case"nan":return Ks("nan",NaN);case"null":return Ks("null",null);case"true":return Ks("boolean",!0);case"false":return Ks("boolean",!1);default:if(Ko=Date.parse(Ko))return Ks("date",new Date(Ko))}return Ks(!1,null)}function Ks(Ko,Uo){return{type:Ko,value:Uo}}var Ms=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),Po}(Eo.a.PureComponent),Hs=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),Po}(Eo.a.PureComponent),Qs=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]),vs=Dl(Do).style;return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{fill:vs.color,width:vs.height,height:vs.width,style:vs,viewBox:"0 0 1792 1792"},Eo.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Po}(Eo.a.PureComponent),El=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]),vs=Dl(Do).style;return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{fill:vs.color,width:vs.height,height:vs.width,style:vs,viewBox:"0 0 1792 1792"},Eo.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),Po}(Eo.a.PureComponent),xl=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{style:lo(lo({},Dl(Do).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},Eo.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),Po}(Eo.a.PureComponent),Ol=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",{style:lo(lo({},Dl(Do).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},Eo.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),Po}(Eo.a.PureComponent),ru=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),Po}(Eo.a.PureComponent),au=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Po}(Eo.a.PureComponent),zl=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Po}(Eo.a.PureComponent),hu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),Po}(Eo.a.PureComponent),xu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),Po}(Eo.a.PureComponent),Ql=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){return uo(this,Po),Uo.apply(this,arguments)}return fo(Po,[{key:"render",value:function(){var zo=this.props,Do=zo.style,Yo=Ao(zo,["style"]);return Eo.a.createElement("span",Yo,Eo.a.createElement("svg",Object.assign({},Dl(Do),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),Eo.a.createElement("g",null,Eo.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),Po}(Eo.a.PureComponent);function Dl(Ko){return Ko||(Ko={}),{style:lo(lo({verticalAlign:"middle"},Ko),{},{color:Ko.color?Ko.color:"#000000",height:"1em",width:"1em"})}}var gu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).copiedTimer=null,Do.handleCopy=function(){var Yo=document.createElement("textarea"),vs=Do.props,ys=vs.clickCallback,hs=vs.src,Is=vs.namespace;Yo.innerHTML=JSON.stringify(Do.clipboardValue(hs),null," "),document.body.appendChild(Yo),Yo.select(),document.execCommand("copy"),document.body.removeChild(Yo),Do.copiedTimer=setTimeout(function(){Do.setState({copied:!1})},5500),Do.setState({copied:!0},function(){typeof ys=="function"&&ys({src:hs,namespace:Is,name:Is[Is.length-1]})})},Do.getClippyIcon=function(){var Yo=Do.props.theme;return Do.state.copied?Eo.a.createElement("span",null,Eo.a.createElement(ru,Object.assign({className:"copy-icon"},Oo(Yo,"copy-icon"))),Eo.a.createElement("span",Oo(Yo,"copy-icon-copied"),"✔")):Eo.a.createElement(ru,Object.assign({className:"copy-icon"},Oo(Yo,"copy-icon")))},Do.clipboardValue=function(Yo){switch(Io(Yo)){case"function":case"regexp":return Yo.toString();default:return Yo}},Do.state={copied:!1},Do}return fo(Po,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var zo=this.props,Do=(zo.src,zo.theme),Yo=zo.hidden,vs=zo.rowHovered,ys=Oo(Do,"copy-to-clipboard").style,hs="inline";return Yo&&(hs="none"),Eo.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:vs?"inline-block":"none"}},Eo.a.createElement("span",{style:lo(lo({},ys),{},{display:hs}),onClick:this.handleCopy},this.getClippyIcon()))}}]),Po}(Eo.a.PureComponent),lu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).getEditIcon=function(){var Yo=Do.props,vs=Yo.variable,ys=Yo.theme;return Eo.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:Do.state.hovered?"inline-block":"none"}},Eo.a.createElement(xu,Object.assign({className:"click-to-edit-icon"},Oo(ys,"editVarIcon"),{onClick:function(){Do.prepopInput(vs)}})))},Do.prepopInput=function(Yo){if(Do.props.onEdit!==!1){var vs=function(hs){var Is;switch(Io(hs)){case"undefined":Is="undefined";break;case"nan":Is="NaN";break;case"string":Is=hs;break;case"date":case"function":case"regexp":Is=hs.toString();break;default:try{Is=JSON.stringify(hs,null," ")}catch{Is=""}}return Is}(Yo.value),ys=Gs(vs);Do.setState({editMode:!0,editValue:vs,parsedInput:{type:ys.type,value:ys.value}})}},Do.getRemoveIcon=function(){var Yo=Do.props,vs=Yo.variable,ys=Yo.namespace,hs=Yo.theme,Is=Yo.rjvId;return Eo.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:Do.state.hovered?"inline-block":"none"}},Eo.a.createElement(au,Object.assign({className:"click-to-remove-icon"},Oo(hs,"removeVarIcon"),{onClick:function(){Os.dispatch({name:"VARIABLE_REMOVED",rjvId:Is,data:{name:vs.name,namespace:ys,existing_value:vs.value,variable_removed:!0}})}})))},Do.getValue=function(Yo,vs){var ys=!vs&&Yo.type,hs=bo(Do).props;switch(ys){case!1:return Do.getEditInput();case"string":return Eo.a.createElement(ga,Object.assign({value:Yo.value},hs));case"integer":return Eo.a.createElement(zs,Object.assign({value:Yo.value},hs));case"float":return Eo.a.createElement(Xo,Object.assign({value:Yo.value},hs));case"boolean":return Eo.a.createElement(Go,Object.assign({value:Yo.value},hs));case"function":return Eo.a.createElement(Jo,Object.assign({value:Yo.value},hs));case"null":return Eo.a.createElement(Bs,hs);case"nan":return Eo.a.createElement(Cs,hs);case"undefined":return Eo.a.createElement(Js,hs);case"date":return Eo.a.createElement(qo,Object.assign({value:Yo.value},hs));case"regexp":return Eo.a.createElement(Ls,Object.assign({value:Yo.value},hs));default:return Eo.a.createElement("div",{className:"object-value"},JSON.stringify(Yo.value))}},Do.getEditInput=function(){var Yo=Do.props.theme,vs=Do.state.editValue;return Eo.a.createElement("div",null,Eo.a.createElement(ws,Object.assign({type:"text",inputRef:function(ys){return ys&&ys.focus()},value:vs,className:"variable-editor",onChange:function(ys){var hs=ys.target.value,Is=Gs(hs);Do.setState({editValue:hs,parsedInput:{type:Is.type,value:Is.value}})},onKeyDown:function(ys){switch(ys.key){case"Escape":Do.setState({editMode:!1,editValue:""});break;case"Enter":(ys.ctrlKey||ys.metaKey)&&Do.submitEdit(!0)}ys.stopPropagation()},placeholder:"update this value",minRows:2},Oo(Yo,"edit-input"))),Eo.a.createElement("div",Oo(Yo,"edit-icon-container"),Eo.a.createElement(au,Object.assign({className:"edit-cancel"},Oo(Yo,"cancel-icon"),{onClick:function(){Do.setState({editMode:!1,editValue:""})}})),Eo.a.createElement(Ql,Object.assign({className:"edit-check string-value"},Oo(Yo,"check-icon"),{onClick:function(){Do.submitEdit()}})),Eo.a.createElement("div",null,Do.showDetected())))},Do.submitEdit=function(Yo){var vs=Do.props,ys=vs.variable,hs=vs.namespace,Is=vs.rjvId,Us=Do.state,Il=Us.editValue,Ml=Us.parsedInput,Rl=Il;Yo&&Ml.type&&(Rl=Ml.value),Do.setState({editMode:!1}),Os.dispatch({name:"VARIABLE_UPDATED",rjvId:Is,data:{name:ys.name,namespace:hs,existing_value:ys.value,new_value:Rl,variable_removed:!1}})},Do.showDetected=function(){var Yo=Do.props,vs=Yo.theme,ys=(Yo.variable,Yo.namespace,Yo.rjvId,Do.state.parsedInput),hs=(ys.type,ys.value,Do.getDetectedInput());if(hs)return Eo.a.createElement("div",null,Eo.a.createElement("div",Oo(vs,"detected-row"),hs,Eo.a.createElement(Ql,{className:"edit-check detected",style:lo({verticalAlign:"top",paddingLeft:"3px"},Oo(vs,"check-icon").style),onClick:function(){Do.submitEdit(!0)}})))},Do.getDetectedInput=function(){var Yo=Do.state.parsedInput,vs=Yo.type,ys=Yo.value,hs=bo(Do).props,Is=hs.theme;if(vs!==!1)switch(vs.toLowerCase()){case"object":return Eo.a.createElement("span",null,Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"{"),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"ellipsis").style),{},{cursor:"default"})},"..."),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"}"));case"array":return Eo.a.createElement("span",null,Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"["),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"ellipsis").style),{},{cursor:"default"})},"..."),Eo.a.createElement("span",{style:lo(lo({},Oo(Is,"brace").style),{},{cursor:"default"})},"]"));case"string":return Eo.a.createElement(ga,Object.assign({value:ys},hs));case"integer":return Eo.a.createElement(zs,Object.assign({value:ys},hs));case"float":return Eo.a.createElement(Xo,Object.assign({value:ys},hs));case"boolean":return Eo.a.createElement(Go,Object.assign({value:ys},hs));case"function":return Eo.a.createElement(Jo,Object.assign({value:ys},hs));case"null":return Eo.a.createElement(Bs,hs);case"nan":return Eo.a.createElement(Cs,hs);case"undefined":return Eo.a.createElement(Js,hs);case"date":return Eo.a.createElement(qo,Object.assign({value:new Date(ys)},hs))}},Do.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},Do}return fo(Po,[{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.variable,vs=Do.singleIndent,ys=Do.type,hs=Do.theme,Is=Do.namespace,Us=Do.indentWidth,Il=Do.enableClipboard,Ml=Do.onEdit,Rl=Do.onDelete,Cl=Do.onSelect,Ul=Do.displayArrayKey,fu=Do.quotesOnKeys,Bl=this.state.editMode;return Eo.a.createElement("div",Object.assign({},Oo(hs,"objectKeyVal",{paddingLeft:Us*vs}),{onMouseEnter:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!0}))},onMouseLeave:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!1}))},className:"variable-row",key:Yo.name}),ys=="array"?Ul?Eo.a.createElement("span",Object.assign({},Oo(hs,"array-key"),{key:Yo.name+"_"+Is}),Yo.name,Eo.a.createElement("div",Oo(hs,"colon"),":")):null:Eo.a.createElement("span",null,Eo.a.createElement("span",Object.assign({},Oo(hs,"object-name"),{className:"object-key",key:Yo.name+"_"+Is}),!!fu&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"'),Eo.a.createElement("span",{style:{display:"inline-block"}},Yo.name),!!fu&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"')),Eo.a.createElement("span",Oo(hs,"colon"),":")),Eo.a.createElement("div",Object.assign({className:"variable-value",onClick:Cl===!1&&Ml===!1?null:function(Su){var Nu=Ts(Is);(Su.ctrlKey||Su.metaKey)&&Ml!==!1?zo.prepopInput(Yo):Cl!==!1&&(Nu.shift(),Cl(lo(lo({},Yo),{},{namespace:Nu})))}},Oo(hs,"variableValue",{cursor:Cl===!1?"default":"pointer"})),this.getValue(Yo,Bl)),Il?Eo.a.createElement(gu,{rowHovered:this.state.hovered,hidden:Bl,src:Yo.value,clickCallback:Il,theme:hs,namespace:[].concat(Ts(Is),[Yo.name])}):null,Ml!==!1&&Bl==0?this.getEditIcon():null,Rl!==!1&&Bl==0?this.getRemoveIcon():null)}}]),Po}(Eo.a.PureComponent),mu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vs0?Il:null,namespace:Us.splice(0,Us.length-1),existing_value:Ml,variable_removed:!1,key_name:null};Io(Ml)==="object"?Os.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:Rl,data:Ul}):Os.dispatch({name:"VARIABLE_ADDED",rjvId:Rl,data:lo(lo({},Ul),{},{new_value:[].concat(Ts(Ml),[null])})})}})))},zo.getRemoveObject=function(ys){var hs=zo.props,Is=hs.theme,Us=(hs.hover,hs.namespace),Il=hs.name,Ml=hs.src,Rl=hs.rjvId;if(Us.length!==1)return Eo.a.createElement("span",{className:"click-to-remove",style:{display:ys?"inline-block":"none"}},Eo.a.createElement(au,Object.assign({className:"click-to-remove-icon"},Oo(Is,"removeVarIcon"),{onClick:function(){Os.dispatch({name:"VARIABLE_REMOVED",rjvId:Rl,data:{name:Il,namespace:Us.splice(0,Us.length-1),existing_value:Ml,variable_removed:!0}})}})))},zo.render=function(){var ys=zo.props,hs=ys.theme,Is=ys.onDelete,Us=ys.onAdd,Il=ys.enableClipboard,Ml=ys.src,Rl=ys.namespace,Cl=ys.rowHovered;return Eo.a.createElement("div",Object.assign({},Oo(hs,"object-meta-data"),{className:"object-meta-data",onClick:function(Ul){Ul.stopPropagation()}}),zo.getObjectSize(),Il?Eo.a.createElement(gu,{rowHovered:Cl,clickCallback:Il,src:Ml,theme:hs,namespace:Rl}):null,Us!==!1?zo.getAddAttribute(Cl):null,Is!==!1?zo.getRemoveObject(Cl):null)},zo}return Po}(Eo.a.PureComponent);function ou(Ko){var Uo=Ko.parent_type,Po=Ko.namespace,zo=Ko.quotesOnKeys,Do=Ko.theme,Yo=Ko.jsvRoot,vs=Ko.name,ys=Ko.displayArrayKey,hs=Ko.name?Ko.name:"";return!Yo||vs!==!1&&vs!==null?Uo=="array"?ys?Eo.a.createElement("span",Object.assign({},Oo(Do,"array-key"),{key:Po}),Eo.a.createElement("span",{className:"array-key"},hs),Eo.a.createElement("span",Oo(Do,"colon"),":")):Eo.a.createElement("span",null):Eo.a.createElement("span",Object.assign({},Oo(Do,"object-name"),{key:Po}),Eo.a.createElement("span",{className:"object-key"},zo&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"'),Eo.a.createElement("span",null,hs),zo&&Eo.a.createElement("span",{style:{verticalAlign:"top"}},'"')),Eo.a.createElement("span",Oo(Do,"colon"),":")):Eo.a.createElement("span",null)}function Fl(Ko){var Uo=Ko.theme;switch(Ko.iconStyle){case"triangle":return Eo.a.createElement(Ol,Object.assign({},Oo(Uo,"expanded-icon"),{className:"expanded-icon"}));case"square":return Eo.a.createElement(Qs,Object.assign({},Oo(Uo,"expanded-icon"),{className:"expanded-icon"}));default:return Eo.a.createElement(Ms,Object.assign({},Oo(Uo,"expanded-icon"),{className:"expanded-icon"}))}}function yl(Ko){var Uo=Ko.theme;switch(Ko.iconStyle){case"triangle":return Eo.a.createElement(xl,Object.assign({},Oo(Uo,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return Eo.a.createElement(El,Object.assign({},Oo(Uo,"collapsed-icon"),{className:"collapsed-icon"}));default:return Eo.a.createElement(Hs,Object.assign({},Oo(Uo,"collapsed-icon"),{className:"collapsed-icon"}))}}var Xs=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).toggleCollapsed=function(Yo){var vs=[];for(var ys in Do.state.expanded)vs.push(Do.state.expanded[ys]);vs[Yo]=!vs[Yo],Do.setState({expanded:vs})},Do.state={expanded:[]},Do}return fo(Po,[{key:"getExpandedIcon",value:function(zo){var Do=this.props,Yo=Do.theme,vs=Do.iconStyle;return this.state.expanded[zo]?Eo.a.createElement(Fl,{theme:Yo,iconStyle:vs}):Eo.a.createElement(yl,{theme:Yo,iconStyle:vs})}},{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.src,vs=Do.groupArraysAfterLength,ys=(Do.depth,Do.name),hs=Do.theme,Is=Do.jsvRoot,Us=Do.namespace,Il=(Do.parent_type,Ao(Do,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Ml=0,Rl=5*this.props.indentWidth;Is||(Ml=5*this.props.indentWidth);var Cl=vs,Ul=Math.ceil(Yo.length/Cl);return Eo.a.createElement("div",Object.assign({className:"object-key-val"},Oo(hs,Is?"jsv-root":"objectKeyVal",{paddingLeft:Ml})),Eo.a.createElement(ou,this.props),Eo.a.createElement("span",null,Eo.a.createElement(mu,Object.assign({size:Yo.length},this.props))),Ts(Array(Ul)).map(function(fu,Bl){return Eo.a.createElement("div",Object.assign({key:Bl,className:"object-key-val array-group"},Oo(hs,"objectKeyVal",{marginLeft:6,paddingLeft:Rl})),Eo.a.createElement("span",Oo(hs,"brace-row"),Eo.a.createElement("div",Object.assign({className:"icon-container"},Oo(hs,"icon-container"),{onClick:function(Su){zo.toggleCollapsed(Bl)}}),zo.getExpandedIcon(Bl)),zo.state.expanded[Bl]?Eo.a.createElement(du,Object.assign({key:ys+Bl,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Cl,index_offset:Bl*Cl,src:Yo.slice(Bl*Cl,Bl*Cl+Cl),namespace:Us,type:"array",parent_type:"array_group",theme:hs},Il)):Eo.a.createElement("span",Object.assign({},Oo(hs,"brace"),{onClick:function(Su){zo.toggleCollapsed(Bl)},className:"array-group-brace"}),"[",Eo.a.createElement("div",Object.assign({},Oo(hs,"array-group-meta-data"),{className:"array-group-meta-data"}),Eo.a.createElement("span",Object.assign({className:"object-size"},Oo(hs,"object-size")),Bl*Cl," - ",Bl*Cl+Cl>Yo.length?Yo.length:Bl*Cl+Cl)),"]")))}))}}]),Po}(Eo.a.PureComponent),vu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;uo(this,Po),(Do=Uo.call(this,zo)).toggleCollapsed=function(){Do.setState({expanded:!Do.state.expanded},function(){Ds.set(Do.props.rjvId,Do.props.namespace,"expanded",Do.state.expanded)})},Do.getObjectContent=function(vs,ys,hs){return Eo.a.createElement("div",{className:"pushed-content object-container"},Eo.a.createElement("div",Object.assign({className:"object-content"},Oo(Do.props.theme,"pushed-content")),Do.renderObjectContents(ys,hs)))},Do.getEllipsis=function(){return Do.state.size===0?null:Eo.a.createElement("div",Object.assign({},Oo(Do.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:Do.toggleCollapsed}),"...")},Do.getObjectMetaData=function(vs){var ys=Do.props,hs=(ys.rjvId,ys.theme,Do.state),Is=hs.size,Us=hs.hovered;return Eo.a.createElement(mu,Object.assign({rowHovered:Us,size:Is},Do.props))},Do.renderObjectContents=function(vs,ys){var hs,Is=Do.props,Us=Is.depth,Il=Is.parent_type,Ml=Is.index_offset,Rl=Is.groupArraysAfterLength,Cl=Is.namespace,Ul=Do.state.object_type,fu=[],Bl=Object.keys(vs||{});return Do.props.sortKeys&&Ul!=="array"&&(Bl=Bl.sort()),Bl.forEach(function(Su){if(hs=new $u(Su,vs[Su]),Il==="array_group"&&Ml&&(hs.name=parseInt(hs.name)+Ml),vs.hasOwnProperty(Su))if(hs.type==="object")fu.push(Eo.a.createElement(du,Object.assign({key:hs.name,depth:Us+1,name:hs.name,src:hs.value,namespace:Cl.concat(hs.name),parent_type:Ul},ys)));else if(hs.type==="array"){var Nu=du;Rl&&hs.value.length>Rl&&(Nu=Xs),fu.push(Eo.a.createElement(Nu,Object.assign({key:hs.name,depth:Us+1,name:hs.name,src:hs.value,namespace:Cl.concat(hs.name),type:"array",parent_type:Ul},ys)))}else fu.push(Eo.a.createElement(lu,Object.assign({key:hs.name+"_"+Cl,variable:hs,singleIndent:5,namespace:Cl,type:Do.props.type},ys)))}),fu};var Yo=Po.getState(zo);return Do.state=lo(lo({},Yo),{},{prevProps:{}}),Do}return fo(Po,[{key:"getBraceStart",value:function(zo,Do){var Yo=this,vs=this.props,ys=vs.src,hs=vs.theme,Is=vs.iconStyle;if(vs.parent_type==="array_group")return Eo.a.createElement("span",null,Eo.a.createElement("span",Oo(hs,"brace"),zo==="array"?"[":"{"),Do?this.getObjectMetaData(ys):null);var Us=Do?Fl:yl;return Eo.a.createElement("span",null,Eo.a.createElement("span",Object.assign({onClick:function(Il){Yo.toggleCollapsed()}},Oo(hs,"brace-row")),Eo.a.createElement("div",Object.assign({className:"icon-container"},Oo(hs,"icon-container")),Eo.a.createElement(Us,{theme:hs,iconStyle:Is})),Eo.a.createElement(ou,this.props),Eo.a.createElement("span",Oo(hs,"brace"),zo==="array"?"[":"{")),Do?this.getObjectMetaData(ys):null)}},{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.depth,vs=Do.src,ys=(Do.namespace,Do.name,Do.type,Do.parent_type),hs=Do.theme,Is=Do.jsvRoot,Us=Do.iconStyle,Il=Ao(Do,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Ml=this.state,Rl=Ml.object_type,Cl=Ml.expanded,Ul={};return Is||ys==="array_group"?ys==="array_group"&&(Ul.borderLeft=0,Ul.display="inline"):Ul.paddingLeft=5*this.props.indentWidth,Eo.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!0}))},onMouseLeave:function(){return zo.setState(lo(lo({},zo.state),{},{hovered:!1}))}},Oo(hs,Is?"jsv-root":"objectKeyVal",Ul)),this.getBraceStart(Rl,Cl),Cl?this.getObjectContent(Yo,vs,lo({theme:hs,iconStyle:Us},Il)):this.getEllipsis(),Eo.a.createElement("span",{className:"brace-row"},Eo.a.createElement("span",{style:lo(lo({},Oo(hs,"brace").style),{},{paddingLeft:Cl?"3px":"0px"})},Rl==="array"?"]":"}"),Cl?null:this.getObjectMetaData(vs)))}}],[{key:"getDerivedStateFromProps",value:function(zo,Do){var Yo=Do.prevProps;return zo.src!==Yo.src||zo.collapsed!==Yo.collapsed||zo.name!==Yo.name||zo.namespace!==Yo.namespace||zo.rjvId!==Yo.rjvId?lo(lo({},Po.getState(zo)),{},{prevProps:zo}):null}}]),Po}(Eo.a.PureComponent);vu.getState=function(Ko){var Uo=Object.keys(Ko.src).length,Po=(Ko.collapsed===!1||Ko.collapsed!==!0&&Ko.collapsed>Ko.depth)&&(!Ko.shouldCollapse||Ko.shouldCollapse({name:Ko.name,src:Ko.src,type:Io(Ko.src),namespace:Ko.namespace})===!1)&&Uo!==0;return{expanded:Ds.get(Ko.rjvId,Ko.namespace,"expanded",Po),object_type:Ko.type==="array"?"array":"object",parent_type:Ko.type==="array"?"array":"object",size:Uo,hovered:!1}};var $u=function Ko(Uo,Po){uo(this,Ko),this.name=Uo,this.value=Po,this.type=Io(Po)};Ro(vu);var du=vu,d1=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vsys.groupArraysAfterLength&&(Is=Xs),Eo.a.createElement("div",{className:"pretty-json-container object-container"},Eo.a.createElement("div",{className:"object-content"},Eo.a.createElement(Is,Object.assign({namespace:hs,depth:0,jsvRoot:!0},ys))))},zo}return Po}(Eo.a.PureComponent),qu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(zo){var Do;return uo(this,Po),(Do=Uo.call(this,zo)).closeModal=function(){Os.dispatch({rjvId:Do.props.rjvId,name:"RESET"})},Do.submit=function(){Do.props.submit(Do.state.input)},Do.state={input:zo.input?zo.input:""},Do}return fo(Po,[{key:"render",value:function(){var zo=this,Do=this.props,Yo=Do.theme,vs=Do.rjvId,ys=Do.isValid,hs=this.state.input,Is=ys(hs);return Eo.a.createElement("div",Object.assign({className:"key-modal-request"},Oo(Yo,"key-modal-request"),{onClick:this.closeModal}),Eo.a.createElement("div",Object.assign({},Oo(Yo,"key-modal"),{onClick:function(Us){Us.stopPropagation()}}),Eo.a.createElement("div",Oo(Yo,"key-modal-label"),"Key Name:"),Eo.a.createElement("div",{style:{position:"relative"}},Eo.a.createElement("input",Object.assign({},Oo(Yo,"key-modal-input"),{className:"key-modal-input",ref:function(Us){return Us&&Us.focus()},spellCheck:!1,value:hs,placeholder:"...",onChange:function(Us){zo.setState({input:Us.target.value})},onKeyPress:function(Us){Is&&Us.key==="Enter"?zo.submit():Us.key==="Escape"&&zo.closeModal()}})),Is?Eo.a.createElement(Ql,Object.assign({},Oo(Yo,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Us){return zo.submit()}})):null),Eo.a.createElement("span",Oo(Yo,"key-modal-cancel"),Eo.a.createElement(hu,Object.assign({},Oo(Yo,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Os.dispatch({rjvId:vs,name:"RESET"})}})))))}}]),Po}(Eo.a.PureComponent),Iu=function(Ko){ho(Po,Ko);var Uo=_o(Po);function Po(){var zo;uo(this,Po);for(var Do=arguments.length,Yo=new Array(Do),vs=0;vs=0)&&(ro[oo]=eo[oo]);return ro}function _objectWithoutProperties(eo,to){if(eo==null)return{};var ro=_objectWithoutPropertiesLoose(eo,to),no,oo;if(Object.getOwnPropertySymbols){var io=Object.getOwnPropertySymbols(eo);for(oo=0;oo=0)&&Object.prototype.propertyIsEnumerable.call(eo,no)&&(ro[no]=eo[no])}return ro}function _slicedToArray(eo,to){return _arrayWithHoles(eo)||_iterableToArrayLimit(eo,to)||_unsupportedIterableToArray(eo,to)||_nonIterableRest()}function _arrayWithHoles(eo){if(Array.isArray(eo))return eo}function _iterableToArrayLimit(eo,to){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(eo)))){var ro=[],no=!0,oo=!1,io=void 0;try{for(var so=eo[Symbol.iterator](),ao;!(no=(ao=so.next()).done)&&(ro.push(ao.value),!(to&&ro.length===to));no=!0);}catch(lo){oo=!0,io=lo}finally{try{!no&&so.return!=null&&so.return()}finally{if(oo)throw io}}return ro}}function _unsupportedIterableToArray(eo,to){if(eo){if(typeof eo=="string")return _arrayLikeToArray(eo,to);var ro=Object.prototype.toString.call(eo).slice(8,-1);if(ro==="Object"&&eo.constructor&&(ro=eo.constructor.name),ro==="Map"||ro==="Set")return Array.from(eo);if(ro==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ro))return _arrayLikeToArray(eo,to)}}function _arrayLikeToArray(eo,to){(to==null||to>eo.length)&&(to=eo.length);for(var ro=0,no=new Array(to);ro=eo.length?eo.apply(this,oo):function(){for(var so=arguments.length,ao=new Array(so),lo=0;lo1&&arguments[1]!==void 0?arguments[1]:{};validators$1.initial(eo),validators$1.handler(to);var ro={current:eo},no=curry$1(didStateUpdate)(ro,to),oo=curry$1(updateState)(ro),io=curry$1(validators$1.changes)(eo),so=curry$1(extractChanges)(ro);function ao(){var uo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(co){return co};return validators$1.selector(uo),uo(ro.current)}function lo(uo){compose$1(no,oo,io,so)(uo)}return[ao,lo]}function extractChanges(eo,to){return isFunction(to)?to(eo.current):to}function updateState(eo,to){return eo.current=_objectSpread2(_objectSpread2({},eo.current),to),to}function didStateUpdate(eo,to,ro){return isFunction(to)?to(eo.current):Object.keys(ro).forEach(function(no){var oo;return(oo=to[no])===null||oo===void 0?void 0:oo.call(to,eo.current[no])}),ro}var index={create},config$1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function curry(eo){return function to(){for(var ro=this,no=arguments.length,oo=new Array(no),io=0;io=eo.length?eo.apply(this,oo):function(){for(var so=arguments.length,ao=new Array(so),lo=0;lo{no.current=!1}:eo,to)}var l$4=he$1;function D$3(){}function h$4(eo,to,ro,no){return De$1(eo,no)||be$1(eo,to,ro,no)}function De$1(eo,to){return eo.editor.getModel(te$1(eo,to))}function be$1(eo,to,ro,no){return eo.editor.createModel(to,ro,no?te$1(eo,no):void 0)}function te$1(eo,to){return eo.Uri.parse(to)}function Oe$1({original:eo,modified:to,language:ro,originalLanguage:no,modifiedLanguage:oo,originalModelPath:io,modifiedModelPath:so,keepCurrentOriginalModel:ao=!1,keepCurrentModifiedModel:lo=!1,theme:uo="light",loading:co="Loading...",options:fo={},height:po="100%",width:ho="100%",className:mo,wrapperProps:vo={},beforeMount:bo=D$3,onMount:xo=D$3}){let[_o,So]=reactExports.useState(!1),[Eo,ko]=reactExports.useState(!0),wo=reactExports.useRef(null),Co=reactExports.useRef(null),Ro=reactExports.useRef(null),Ao=reactExports.useRef(xo),Io=reactExports.useRef(bo),$o=reactExports.useRef(!1);k$3(()=>{let jo=loader.init();return jo.then(Oo=>(Co.current=Oo)&&ko(!1)).catch(Oo=>(Oo==null?void 0:Oo.type)!=="cancelation"&&console.error("Monaco initialization: error:",Oo)),()=>wo.current?Ho():jo.cancel()}),l$4(()=>{if(wo.current&&Co.current){let jo=wo.current.getOriginalEditor(),Oo=h$4(Co.current,eo||"",no||ro||"text",io||"");Oo!==jo.getModel()&&jo.setModel(Oo)}},[io],_o),l$4(()=>{if(wo.current&&Co.current){let jo=wo.current.getModifiedEditor(),Oo=h$4(Co.current,to||"",oo||ro||"text",so||"");Oo!==jo.getModel()&&jo.setModel(Oo)}},[so],_o),l$4(()=>{let jo=wo.current.getModifiedEditor();jo.getOption(Co.current.editor.EditorOption.readOnly)?jo.setValue(to||""):to!==jo.getValue()&&(jo.executeEdits("",[{range:jo.getModel().getFullModelRange(),text:to||"",forceMoveMarkers:!0}]),jo.pushUndoStop())},[to],_o),l$4(()=>{var jo,Oo;(Oo=(jo=wo.current)==null?void 0:jo.getModel())==null||Oo.original.setValue(eo||"")},[eo],_o),l$4(()=>{let{original:jo,modified:Oo}=wo.current.getModel();Co.current.editor.setModelLanguage(jo,no||ro||"text"),Co.current.editor.setModelLanguage(Oo,oo||ro||"text")},[ro,no,oo],_o),l$4(()=>{var jo;(jo=Co.current)==null||jo.editor.setTheme(uo)},[uo],_o),l$4(()=>{var jo;(jo=wo.current)==null||jo.updateOptions(fo)},[fo],_o);let Bo=reactExports.useCallback(()=>{var Fo;if(!Co.current)return;Io.current(Co.current);let jo=h$4(Co.current,eo||"",no||ro||"text",io||""),Oo=h$4(Co.current,to||"",oo||ro||"text",so||"");(Fo=wo.current)==null||Fo.setModel({original:jo,modified:Oo})},[ro,to,oo,eo,no,io,so]),Mo=reactExports.useCallback(()=>{var jo;!$o.current&&Ro.current&&(wo.current=Co.current.editor.createDiffEditor(Ro.current,{automaticLayout:!0,...fo}),Bo(),(jo=Co.current)==null||jo.editor.setTheme(uo),So(!0),$o.current=!0)},[fo,uo,Bo]);reactExports.useEffect(()=>{_o&&Ao.current(wo.current,Co.current)},[_o]),reactExports.useEffect(()=>{!Eo&&!_o&&Mo()},[Eo,_o,Mo]);function Ho(){var Oo,Fo,Go,qo;let jo=(Oo=wo.current)==null?void 0:Oo.getModel();ao||((Fo=jo==null?void 0:jo.original)==null||Fo.dispose()),lo||((Go=jo==null?void 0:jo.modified)==null||Go.dispose()),(qo=wo.current)==null||qo.dispose()}return React.createElement(H$2,{width:ho,height:po,isEditorReady:_o,loading:co,_ref:Ro,className:mo,wrapperProps:vo})}var ie$1=Oe$1;reactExports.memo(ie$1);function He$1(eo){let to=reactExports.useRef();return reactExports.useEffect(()=>{to.current=eo},[eo]),to.current}var se$1=He$1,_$6=new Map;function Ve$1({defaultValue:eo,defaultLanguage:to,defaultPath:ro,value:no,language:oo,path:io,theme:so="light",line:ao,loading:lo="Loading...",options:uo={},overrideServices:co={},saveViewState:fo=!0,keepCurrentModel:po=!1,width:ho="100%",height:mo="100%",className:vo,wrapperProps:bo={},beforeMount:xo=D$3,onMount:_o=D$3,onChange:So,onValidate:Eo=D$3}){let[ko,wo]=reactExports.useState(!1),[Co,Ro]=reactExports.useState(!0),Ao=reactExports.useRef(null),Io=reactExports.useRef(null),$o=reactExports.useRef(null),Bo=reactExports.useRef(_o),Mo=reactExports.useRef(xo),Ho=reactExports.useRef(),jo=reactExports.useRef(no),Oo=se$1(io),Fo=reactExports.useRef(!1),Go=reactExports.useRef(!1);k$3(()=>{let Zo=loader.init();return Zo.then(Qo=>(Ao.current=Qo)&&Ro(!1)).catch(Qo=>(Qo==null?void 0:Qo.type)!=="cancelation"&&console.error("Monaco initialization: error:",Qo)),()=>Io.current?Xo():Zo.cancel()}),l$4(()=>{var Qo,xs,Ts,Rs;let Zo=h$4(Ao.current,eo||no||"",to||oo||"",io||ro||"");Zo!==((Qo=Io.current)==null?void 0:Qo.getModel())&&(fo&&_$6.set(Oo,(xs=Io.current)==null?void 0:xs.saveViewState()),(Ts=Io.current)==null||Ts.setModel(Zo),fo&&((Rs=Io.current)==null||Rs.restoreViewState(_$6.get(io))))},[io],ko),l$4(()=>{var Zo;(Zo=Io.current)==null||Zo.updateOptions(uo)},[uo],ko),l$4(()=>{!Io.current||no===void 0||(Io.current.getOption(Ao.current.editor.EditorOption.readOnly)?Io.current.setValue(no):no!==Io.current.getValue()&&(Go.current=!0,Io.current.executeEdits("",[{range:Io.current.getModel().getFullModelRange(),text:no,forceMoveMarkers:!0}]),Io.current.pushUndoStop(),Go.current=!1))},[no],ko),l$4(()=>{var Qo,xs;let Zo=(Qo=Io.current)==null?void 0:Qo.getModel();Zo&&oo&&((xs=Ao.current)==null||xs.editor.setModelLanguage(Zo,oo))},[oo],ko),l$4(()=>{var Zo;ao!==void 0&&((Zo=Io.current)==null||Zo.revealLine(ao))},[ao],ko),l$4(()=>{var Zo;(Zo=Ao.current)==null||Zo.editor.setTheme(so)},[so],ko);let qo=reactExports.useCallback(()=>{var Zo;if(!(!$o.current||!Ao.current)&&!Fo.current){Mo.current(Ao.current);let Qo=io||ro,xs=h$4(Ao.current,no||eo||"",to||oo||"",Qo||"");Io.current=(Zo=Ao.current)==null?void 0:Zo.editor.create($o.current,{model:xs,automaticLayout:!0,...uo},co),fo&&Io.current.restoreViewState(_$6.get(Qo)),Ao.current.editor.setTheme(so),ao!==void 0&&Io.current.revealLine(ao),wo(!0),Fo.current=!0}},[eo,to,ro,no,oo,io,uo,co,fo,so,ao]);reactExports.useEffect(()=>{ko&&Bo.current(Io.current,Ao.current)},[ko]),reactExports.useEffect(()=>{!Co&&!ko&&qo()},[Co,ko,qo]),jo.current=no,reactExports.useEffect(()=>{var Zo,Qo;ko&&So&&((Zo=Ho.current)==null||Zo.dispose(),Ho.current=(Qo=Io.current)==null?void 0:Qo.onDidChangeModelContent(xs=>{Go.current||So(Io.current.getValue(),xs)}))},[ko,So]),reactExports.useEffect(()=>{if(ko){let Zo=Ao.current.editor.onDidChangeMarkers(Qo=>{var Ts;let xs=(Ts=Io.current.getModel())==null?void 0:Ts.uri;if(xs&&Qo.find(Rs=>Rs.path===xs.path)){let Rs=Ao.current.editor.getModelMarkers({resource:xs});Eo==null||Eo(Rs)}});return()=>{Zo==null||Zo.dispose()}}return()=>{}},[ko,Eo]);function Xo(){var Zo,Qo;(Zo=Ho.current)==null||Zo.dispose(),po?fo&&_$6.set(io,Io.current.saveViewState()):(Qo=Io.current.getModel())==null||Qo.dispose(),Io.current.dispose()}return React.createElement(H$2,{width:ho,height:mo,isEditorReady:ko,loading:lo,_ref:$o,className:vo,wrapperProps:bo})}var fe$1=Ve$1,de$1=reactExports.memo(fe$1),Ft$1=de$1;const JinjaSyntaxHighlighter=({value:eo,theme:to,onMount:ro})=>jsxRuntimeExports.jsx(Ft$1,{value:eo,theme:to,options:{readOnly:!0,minimap:{enabled:!1}},defaultLanguage:"jinja2",onMount:(no,oo)=>{oo.languages.register({id:"jinja2"}),oo.languages.setLanguageConfiguration("jinja2",{comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["{","}"]],folding:{markers:{start:/\{%\s*(block|for|if)/,end:/\{%\s*end(block|for|if)/}}}),oo.languages.setMonarchTokensProvider("jinja2",{tokenizer:{root:[[/\{\{/,"delimiter"],[/\}\}/,"delimiter"],[/\{#/,"comment"],[/#\}/,"comment"],[/\{%/,"control"],[/%\}/,"control"],[/\b(if|else|elif|endif|for|endfor|set|extends|include|block|endblock|macro|endmacro)\b/,"keyword"],[/\b(length|list|lower|upper|trim|truncate|replace|round|urlencode|urlize)\b/,"filter"],[/\b(\+|-|\*|\/|%|\*\*|\/\/)\b/,"operator"],[/\b(\d+|\d*\.\d+)\b/,"number"],[/(^user:|^# user:|^system:|^# system:|^assistant:|^# assistant:)/,"keyword"]]}}),ro==null||ro(no)}}),locStringsInjectionToken=createInjectionToken("locStrings",{}),useLocStrings=()=>{const[eo]=useInjected(locStringsInjectionToken);return eo},safeJSONParse=eo=>{try{return JSON.parse(eo)}catch{return eo}};function formatDecimal(eo){return Math.abs(eo=Math.round(eo))>=1e21?eo.toLocaleString("en").replace(/,/g,""):eo.toString(10)}function formatDecimalParts(eo,to){if((ro=(eo=to?eo.toExponential(to-1):eo.toExponential()).indexOf("e"))<0)return null;var ro,no=eo.slice(0,ro);return[no.length>1?no[0]+no.slice(2):no,+eo.slice(ro+1)]}function exponent(eo){return eo=formatDecimalParts(Math.abs(eo)),eo?eo[1]:NaN}function formatGroup(eo,to){return function(ro,no){for(var oo=ro.length,io=[],so=0,ao=eo[0],lo=0;oo>0&&ao>0&&(lo+ao+1>no&&(ao=Math.max(1,no-lo)),io.push(ro.substring(oo-=ao,oo+ao)),!((lo+=ao+1)>no));)ao=eo[so=(so+1)%eo.length];return io.reverse().join(to)}}function formatNumerals(eo){return function(to){return to.replace(/[0-9]/g,function(ro){return eo[+ro]})}}var re$2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(eo){if(!(to=re$2.exec(eo)))throw new Error("invalid format: "+eo);var to;return new FormatSpecifier({fill:to[1],align:to[2],sign:to[3],symbol:to[4],zero:to[5],width:to[6],comma:to[7],precision:to[8]&&to[8].slice(1),trim:to[9],type:to[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(eo){this.fill=eo.fill===void 0?" ":eo.fill+"",this.align=eo.align===void 0?">":eo.align+"",this.sign=eo.sign===void 0?"-":eo.sign+"",this.symbol=eo.symbol===void 0?"":eo.symbol+"",this.zero=!!eo.zero,this.width=eo.width===void 0?void 0:+eo.width,this.comma=!!eo.comma,this.precision=eo.precision===void 0?void 0:+eo.precision,this.trim=!!eo.trim,this.type=eo.type===void 0?"":eo.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(eo){e:for(var to=eo.length,ro=1,no=-1,oo;ro0&&(no=0);break}return no>0?eo.slice(0,no)+eo.slice(oo+1):eo}var prefixExponent;function formatPrefixAuto(eo,to){var ro=formatDecimalParts(eo,to);if(!ro)return eo+"";var no=ro[0],oo=ro[1],io=oo-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(oo/3)))*3)+1,so=no.length;return io===so?no:io>so?no+new Array(io-so+1).join("0"):io>0?no.slice(0,io)+"."+no.slice(io):"0."+new Array(1-io).join("0")+formatDecimalParts(eo,Math.max(0,to+io-1))[0]}function formatRounded(eo,to){var ro=formatDecimalParts(eo,to);if(!ro)return eo+"";var no=ro[0],oo=ro[1];return oo<0?"0."+new Array(-oo).join("0")+no:no.length>oo+1?no.slice(0,oo+1)+"."+no.slice(oo+1):no+new Array(oo-no.length+2).join("0")}const formatTypes={"%":(eo,to)=>(eo*100).toFixed(to),b:eo=>Math.round(eo).toString(2),c:eo=>eo+"",d:formatDecimal,e:(eo,to)=>eo.toExponential(to),f:(eo,to)=>eo.toFixed(to),g:(eo,to)=>eo.toPrecision(to),o:eo=>Math.round(eo).toString(8),p:(eo,to)=>formatRounded(eo*100,to),r:formatRounded,s:formatPrefixAuto,X:eo=>Math.round(eo).toString(16).toUpperCase(),x:eo=>Math.round(eo).toString(16)};function identity(eo){return eo}var map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale(eo){var to=eo.grouping===void 0||eo.thousands===void 0?identity:formatGroup(map.call(eo.grouping,Number),eo.thousands+""),ro=eo.currency===void 0?"":eo.currency[0]+"",no=eo.currency===void 0?"":eo.currency[1]+"",oo=eo.decimal===void 0?".":eo.decimal+"",io=eo.numerals===void 0?identity:formatNumerals(map.call(eo.numerals,String)),so=eo.percent===void 0?"%":eo.percent+"",ao=eo.minus===void 0?"−":eo.minus+"",lo=eo.nan===void 0?"NaN":eo.nan+"";function uo(fo){fo=formatSpecifier(fo);var po=fo.fill,ho=fo.align,mo=fo.sign,vo=fo.symbol,bo=fo.zero,xo=fo.width,_o=fo.comma,So=fo.precision,Eo=fo.trim,ko=fo.type;ko==="n"?(_o=!0,ko="g"):formatTypes[ko]||(So===void 0&&(So=12),Eo=!0,ko="g"),(bo||po==="0"&&ho==="=")&&(bo=!0,po="0",ho="=");var wo=vo==="$"?ro:vo==="#"&&/[boxX]/.test(ko)?"0"+ko.toLowerCase():"",Co=vo==="$"?no:/[%p]/.test(ko)?so:"",Ro=formatTypes[ko],Ao=/[defgprs%]/.test(ko);So=So===void 0?6:/[gprs]/.test(ko)?Math.max(1,Math.min(21,So)):Math.max(0,Math.min(20,So));function Io($o){var Bo=wo,Mo=Co,Ho,jo,Oo;if(ko==="c")Mo=Ro($o)+Mo,$o="";else{$o=+$o;var Fo=$o<0||1/$o<0;if($o=isNaN($o)?lo:Ro(Math.abs($o),So),Eo&&($o=formatTrim($o)),Fo&&+$o==0&&mo!=="+"&&(Fo=!1),Bo=(Fo?mo==="("?mo:ao:mo==="-"||mo==="("?"":mo)+Bo,Mo=(ko==="s"?prefixes[8+prefixExponent/3]:"")+Mo+(Fo&&mo==="("?")":""),Ao){for(Ho=-1,jo=$o.length;++HoOo||Oo>57){Mo=(Oo===46?oo+$o.slice(Ho+1):$o.slice(Ho))+Mo,$o=$o.slice(0,Ho);break}}}_o&&!bo&&($o=to($o,1/0));var Go=Bo.length+$o.length+Mo.length,qo=Go>1)+Bo+$o+Mo+qo.slice(Go);break;default:$o=qo+Bo+$o+Mo;break}return io($o)}return Io.toString=function(){return fo+""},Io}function co(fo,po){var ho=uo((fo=formatSpecifier(fo),fo.type="f",fo)),mo=Math.max(-8,Math.min(8,Math.floor(exponent(po)/3)))*3,vo=Math.pow(10,-mo),bo=prefixes[8+mo/3];return function(xo){return ho(vo*xo)+bo}}return{format:uo,formatPrefix:co}}var locale,format;defaultLocale({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale(eo){return locale=formatLocale(eo),format=locale.format,locale.formatPrefix,locale}function formatInt(eo){return Math.abs(eo)<1e6?format(",")(eo):format("0.2s")(eo)}function formatFloat(eo){const to=Math.abs(eo);return to===0?"0.00":to<.01?format(".2e")(eo):to<1e3?format("0.2f")(eo):format("0.2s")(eo)}function formatNumber(eo){return Number.isInteger(eo)?formatInt(eo):formatFloat(eo)}function createNumberFormatter(eo){return to=>typeof to!="number"?"--":eo(to)}const intFormatter=createNumberFormatter(formatInt),floatFormatter=createNumberFormatter(formatFloat),timeFormat=eo=>(eo&&!eo.endsWith("Z")&&(eo+="Z"),eo?new Date(eo).toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"--"),latencyFormat=eo=>eo===void 0?"N/A":eo===0?"0 ms":eo<10?formatFloat(eo)+"ms":formatFloat(eo/1e3)+"s",parseSpanOutput=eo=>{var ro;const to=(ro=eo==null?void 0:eo.attributes)==null?void 0:ro.output;if(typeof to=="string")try{const no=JSON.parse(to);if(typeof no.usage=="string")try{no.usage=JSON.parse(no.usage)}catch{no.usage={}}return no}catch{return to}return to},parseHttpSpanAttributes=eo=>{var no;const to=eo==null?void 0:eo.attributes;if(!to||((no=to.span_type)==null?void 0:no.toLowerCase())!=="http")return;const ro={response:{headers:{}},request:{headers:{}}};return Object.entries(to).forEach(([oo,io])=>{const so=oo.toLowerCase();if(so==="url.full"){ro.urlFull=io;return}const[ao,lo,uo,...co]=so.split(".");if(ao==="http")switch(lo){case"request":uo==="header"?ro.request.headers[co.join(".")]=io:ro.request[[uo,...co].join(".")]=io;break;case"response":uo==="header"?ro.response.headers[co.join(".")]=io:ro.response[[uo,...co].join(".")]=io;break;case"status_code":ro.status_code=io;break;case"method":ro.method=io;break;default:ro[oo.substring(5)]=io}}),ro},convertToTraceListRow=eo=>{var ro,no,oo;const to=eo.end_time&&eo.start_time?Date.parse(eo.end_time)-Date.parse(eo.start_time):0;return{...eo,latency:to,total_tokens:((ro=eo==null?void 0:eo.cumulative_token_count)==null?void 0:ro.total)??0,prompt_tokens:(no=eo==null?void 0:eo.cumulative_token_count)==null?void 0:no.prompt,completion_tokens:(oo=eo==null?void 0:eo.cumulative_token_count)==null?void 0:oo.completion}};var _a;const initialTableColumnNames={normalColumns:[],evaluationColumns:[]};var ViewStatus=(eo=>(eo.loading="loading",eo.loaded="loaded",eo.error="error",eo.hidden="hidden",eo))(ViewStatus||{});const tv=class tv{constructor(to){this.selectedSpanId$=new State$1(void 0),this.selectedTraceId$=new State$1(void 0),this.selectedEvaluationTraceId$=new State$1(void 0),this.spans$=new ObservableMap,this.traces$=new ObservableOrderedMap,this.tableColumnNames$=new State$1(initialTableColumnNames),this.tableHiddenColumnKeys$=new State$1([]),this.isTraceDetailOpen$=new State$1(!1),this.isGanttChartOpen$=new State$1(!1),this.traceListStatus$=new State$1("loading"),this.traceDetailStatus$=new State$1("loading"),this.traceListShowMetrics$=new State$1(!0),this.messagesBySpanId$=new ObservableOrderedMap,this.sortColumn$=new State$1(void 0),this.sortableColumns=[],this.isLazyLoadSpan=!0,this.spanEventsLoadStatus$=new ObservableMap;const{traceListConfig:ro,spanConfig:no}=to||{};ro&&(this.traceListColumnModifier=ro.columnModifier,ro.showMetrics!==void 0&&this.traceListShowMetrics$.setState(ro.showMetrics),ro.defaultHiddenColumnKeys!==void 0&&this.tableHiddenColumnKeys$.setState(ro.defaultHiddenColumnKeys),ro.sortableColumns&&(this.sortableColumns=ro.sortableColumns)),no&&(this._fetchSpanEvent=no.fetchSpanEvent,this.isLazyLoadSpan=no.isLazyLoadSpan??!0),this.selectedTrace$=Computed$1.fromStates([this.selectedTraceId$,this.traces$,this.selectedEvaluationTraceId$],([oo,io,so])=>{const ao=oo&&io.get(oo)||void 0;return ao&&ao.evaluations&&Object.values(ao.evaluations).find(uo=>uo.trace_id===so)||ao}),this.selectedTraceId$.subscribe(oo=>{var so;if(!oo)return;const io=this.traces$.get(oo);(so=this._traceDetailDidOpenCallback)==null||so.call(this,oo,io)}),this.isTraceDetailOpen$.subscribe(oo=>{var ao;const io=this.selectedTraceId$.getSnapshot(),so=this.selectedTrace$.getSnapshot();!oo&&io&&((ao=this._traceDetailDidCloseCallback)==null||ao.call(this,io,so),this.traceDetailStatus$.setState("hidden"),this.isGanttChartOpen$.setState(!1),this.selectedTraceId$.setState(void 0),this.selectedEvaluationTraceId$.next(void 0),this.spanEventsLoadStatus$.clear())}),this.sortColumn$.subscribe(oo=>{var io;(io=this._traceListSortColumnDidChangeCallback)==null||io.call(this,oo)}),this.traceDetailTitleParts$=Computed$1.fromStates([this.selectedTraceId$,this.selectedEvaluationTraceId$,this.traces$],([oo,io,so])=>{if(!oo)return[];const ao=so.get(oo),lo=ao==null?void 0:ao.evaluations,uo=[];ao!=null&&ao.name&&uo.push(ao.name);const co=Object.values(lo??{}).find(fo=>fo.trace_id===io);return co!=null&&co.name&&uo.push(co.name),uo})}traceDetailDidOpen(to){this._traceDetailDidOpenCallback=to}traceDetailDidClose(to){this._traceDetailDidCloseCallback=to}onTraceDetailCopyUrl(to){this._traceDetailCopyUrlCallback=to}traceListSortColumnDidChange(to){this._traceListSortColumnDidChangeCallback=to}onRefreshSpans(to){this._refreshSpansCallback=to}setOnRefreshTraces(to){this._refreshTracesCallback=to}traceDetailCopyUrl(){const to=this.selectedTraceId$.getSnapshot(),ro=this.selectedTrace$.getSnapshot();return to&&this._traceDetailCopyUrlCallback?(this._traceDetailCopyUrlCallback(to,ro),!0):!1}refreshSpans(){var no;const to=this.selectedTraceId$.getSnapshot(),ro=this.selectedTrace$.getSnapshot();to&&((no=this._refreshSpansCallback)==null||no.call(this,to,ro))}refreshTraces(){var to;(to=this._refreshTracesCallback)==null||to.call(this)}clear(){this.traces$.clear(),this.spans$.clear()}appendTraces(to,ro){to.forEach(no=>{no.trace_id!==void 0&&(ro?this.traces$.set(no.trace_id,no).sortByValue(ro):this.traces$.set(no.trace_id,no))})}appendSpans(to){to.forEach(ro=>{var so,ao;const no=(so=ro==null?void 0:ro.context)==null?void 0:so.trace_id,oo=(ao=ro==null?void 0:ro.context)==null?void 0:ao.span_id;if(!no||!oo)return;const io=this.spans$.get(no)||new ObservableOrderedMap;this.spans$.set(no,io.set(oo,ro))})}toggleIsGanttChartOpen(){this.isGanttChartOpen$.setState(!this.isGanttChartOpen$.getSnapshot())}getTraceById(to){return to?this.traces$.get(to):void 0}setTraceListStatus(to){this.traceListStatus$.setState(to)}setTraceDetailStatus(to){this.traceDetailStatus$.setState(to)}setTraceDetailOpen(to,ro){this.isTraceDetailOpen$.setState(to),this.selectedTraceId$.setState(to?ro:void 0)}sortTraces(to){this.traces$.sortByValue(to)}fetchSpanEvent(to){var ro;return((ro=this._fetchSpanEvent)==null?void 0:ro.call(this,to))??Promise.resolve({status:"success"})}};_a=SINGLETON,tv[_a]=!0;let TraceViewModel=tv;const TraceViewModelToken=createInjectionToken("TraceViewModel",new TraceViewModel),useTraceViewModel=()=>{const[eo]=useInjected(TraceViewModelToken);return eo},useSelectedSpanId=()=>{const eo=useTraceViewModel();return useState(eo.selectedSpanId$)},useSelectedSpan=()=>{var io;const eo=useTraceViewModel(),to=useSelectedSpanId(),ro=useSelectedTraceId(),oo=useSelectedEvaluationTraceId()??ro;if(!(!to||!oo))return(io=eo.spans$.get(oo))==null?void 0:io.get(to)},useParentSpanOfSelectedSpan=()=>{var no;const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedSpan();if(!(!ro||!to||!ro.parent_id))return(no=eo.spans$.get(to))==null?void 0:no.get(ro.parent_id)},useSetSelectedSpanId=()=>useSetState(useTraceViewModel().selectedSpanId$),useSelectedTraceId=()=>useState(useTraceViewModel().selectedTraceId$),useSetSelectedTraceId=()=>useSetState(useTraceViewModel().selectedTraceId$),useSelectedTrace=()=>{const eo=useTraceViewModel();return useState(eo.selectedTrace$)},useSpansOfSelectedTrace=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedEvaluationTraceId(),no=useState(eo.spans$.get(ro??to??"")??new ObservableOrderedMap);return Array.from(no.values())},useTraces=()=>{const eo=useState(useTraceViewModel().traces$);return reactExports.useMemo(()=>Array.from(eo.values()),[eo])},useTraceNavigation=()=>{const eo=useTraceViewModel(),to=useTraces(),ro=useSelectedTraceId(),no=to.findIndex(lo=>lo.trace_id===ro),oo=no>0,io=no{oo&&eo.selectedTraceId$.setState(to[no-1].trace_id)},[oo,no,to,eo]),ao=reactExports.useCallback(()=>{io&&eo.selectedTraceId$.setState(to[no+1].trace_id)},[io,no,to,eo]);return{hasPreviousTrace:oo,hasNextTrace:io,goToPreviousTrace:so,goToNextTrace:ao}},useParseTraceOutput=eo=>reactExports.useMemo(()=>parseSpanOutput(eo),[eo]),useEvaluationSpansOfSelectedSpan=()=>{const eo=useTraceViewModel(),to=[],ro=useSelectedTrace();return ro?(Object.keys(ro.evaluations??[]).forEach(no=>{var io,so;const oo=(io=ro==null?void 0:ro.evaluations)==null?void 0:io[no];if(oo){const ao=Array.from(((so=eo.spans$.get(oo.trace_id??""))==null?void 0:so.getState().values())??[]);to.push({evaluationName:oo.name??no,evaluationTraces:ao})}}),to):[]},useRootSpanIdOfSelectedSpans=()=>{const eo=useSelectedTrace();return eo==null?void 0:eo.root_span_id},useTableColumnNames=()=>useState(useTraceViewModel().tableColumnNames$),useSetTableColumnNames=()=>useSetState(useTraceViewModel().tableColumnNames$),useTableHiddenColumnKeys=()=>useState(useTraceViewModel().tableHiddenColumnKeys$),useSetTableHiddenColumnKeys=()=>useSetState(useTraceViewModel().tableHiddenColumnKeys$),useIsTraceDetailOpen=()=>useState(useTraceViewModel().isTraceDetailOpen$),useSetIsTraceDetailOpen=()=>useSetState(useTraceViewModel().isTraceDetailOpen$),useTraceDetailRefreshKey=()=>{const eo=useTraceViewModel(),to=useSelectedTraceId(),ro=useSelectedEvaluationTraceId(),no=useState(eo.spans$),oo=Array.from(useState(no.get(to??"")??new ObservableOrderedMap).keys());return`${to}-${ro}-${oo.join("-")}`},useIsGanttChartOpen=()=>useState(useTraceViewModel().isGanttChartOpen$),useTraceListColumnModifier=()=>useTraceViewModel().traceListColumnModifier,useTraceListShowMetrics=()=>useState(useTraceViewModel().traceListShowMetrics$),useMessagesBySpanId=eo=>{var fo,po,ho,mo,vo;const to=useTraceViewModel(),ro=useState(to.selectedTraceId$);if(!ro)return{inputMessages:[],outputMessages:[],tools:[]};const no=(fo=to.spans$.get(ro))==null?void 0:fo.get(eo),oo=safeJSONParse(((po=no==null?void 0:no.attributes)==null?void 0:po.inputs)??"{}"),io=safeJSONParse(((ho=no==null?void 0:no.attributes)==null?void 0:ho.output)??"{}"),so=(mo=no==null?void 0:no.attributes)==null?void 0:mo["llm.generated_message"],ao=so?safeJSONParse(so):void 0,lo=(oo==null?void 0:oo.tools)??[],uo=(oo==null?void 0:oo.messages)??[],co=((vo=io==null?void 0:io.choices)==null?void 0:vo.reduce((bo,xo)=>xo.message?[...bo,{...xo.message,tools:lo}]:xo.text?[...bo,{content:xo.text,role:"assistant",tools:lo}]:bo,[]))??[];return ao&&co.push(ao),{inputMessages:uo,outputMessages:co,tools:lo}},useMessagesOfSelectedSpan=()=>{const eo=useSelectedSpanId();return useMessagesBySpanId(eo??"")},useGetAllTraces=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>Array.from(eo.traces$.getState().values()),[eo.traces$])},useGetAllSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(()=>{const to=[];return eo.spans$.getState().forEach(no=>{no.getState().forEach(io=>{to.push(io)})}),to},[eo.spans$])},useSortColumn=()=>{const eo=useTraceViewModel();return useState(eo.sortColumn$)},useSetSortColumn=()=>useSetState(useTraceViewModel().sortColumn$),useSortableColumns=()=>useTraceViewModel().sortableColumns,useSelectedEvaluationTraceId=()=>useState(useTraceViewModel().selectedEvaluationTraceId$),useSetSelectedEvaluationTraceId=()=>useSetState(useTraceViewModel().selectedEvaluationTraceId$),useSelectedTraceTitleParts=()=>useState(useTraceViewModel().traceDetailTitleParts$),useSpanEventsLoadStatus=()=>useTraceViewModel().spanEventsLoadStatus$,StreamSwitcher=({isStreaming:eo,style:to,onIsStreamingChange:ro,labelName:no})=>{const oo=useLocStrings();return jsxRuntimeExports.jsx(Switch,{label:no||oo.Streaming,labelPosition:"before",checked:eo,onChange:(io,so)=>ro(so.checked),style:to})};var UISize=(eo=>(eo.extraSmall="extra-small",eo.small="small",eo.normal="normal",eo.large="large",eo))(UISize||{});const useUISize=eo=>{const{textSize:to,iconSize:ro,gap:no}=reactExports.useMemo(()=>{switch(eo){case UISize.extraSmall:return{textSize:200,iconSize:"12px",gap:"2px"};case UISize.small:return{textSize:300,iconSize:"16px",gap:"2px"};case UISize.large:return{textSize:500,iconSize:"26px",gap:"5px"};case UISize.normal:default:return{textSize:400,iconSize:"20px",gap:"5px"}}},[eo]);return{textSize:to,iconSize:ro,gap:no}},LatencyText=({startTimeISOString:eo,endTimeISOString:to,size:ro,tipTextSize:no})=>{const oo=useClasses$r(),io=eo?new Date(eo):void 0,so=to?new Date(to):void 0,ao=io&&so?so.getTime()-io.getTime():void 0,lo=latencyFormat(ao),{textSize:uo,iconSize:co,gap:fo}=useUISize(ro);return jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Text$1,{size:no,weight:"bold",block:!0,children:"Start Time"}),jsxRuntimeExports.jsx(Text$1,{size:no,block:!0,children:timeFormat(eo)}),jsxRuntimeExports.jsx(Text$1,{size:no,weight:"bold",block:!0,children:"End Time"}),jsxRuntimeExports.jsx(Text$1,{size:no,block:!0,children:timeFormat(to)})]}),relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:oo.wrapper,style:{gap:fo},children:[jsxRuntimeExports.jsx(Clock20Regular,{style:{height:co,width:co}}),jsxRuntimeExports.jsx(Text$1,{size:uo,className:oo.text,children:lo})]})})},useClasses$r=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center"},text:{color:tokens.colorNeutralForeground3,fontWeight:600}}),MetricTag=({tag:eo})=>{const to=useClasses$q(),[ro,no]=React.useState(!0),oo=reactExports.useMemo(()=>{if(typeof eo.value=="number")return formatNumber(eo.value);{const io=eo.value.toString();return ro&&io.length>20?io.substring(0,20)+"...":io}},[eo.value,ro]);return jsxRuntimeExports.jsxs(Badge$2,{className:to.wrapper,size:"medium",shape:"rounded",appearance:"outline",onClick:()=>no(!ro),children:[jsxRuntimeExports.jsxs("span",{className:to.name,children:[eo.name," "]}),jsxRuntimeExports.jsx("span",{className:to.data,children:oo})]})},useClasses$q=makeStyles({wrapper:{display:"inline-flex",fontSize:"12px",cursor:"pointer",...shorthands.padding("0px","8px","1px"),...shorthands.borderColor(tokens.colorPaletteGreenBorder2),...shorthands.gap("0.5rem")},name:{color:tokens.colorPaletteGreenBorder2,fontWeight:tokens.fontWeightRegular},data:{color:tokens.colorNeutralForeground1,fontWeight:tokens.fontWeightRegular}});function TokenText({token:eo,info:to,size:ro=UISize.normal}){const no=useClasses$p(),oo=typeof eo=="number"?intFormatter(eo):eo,{textSize:io,iconSize:so,gap:ao}=useUISize(ro);return jsxRuntimeExports.jsxs("div",{className:no.wrapper,style:{gap:ao},children:[jsxRuntimeExports.jsx(NumberCircle020Regular,{style:{height:so,width:so}}),to?jsxRuntimeExports.jsx(Tooltip,{content:to,relationship:"description",children:jsxRuntimeExports.jsx(Text$1,{size:io,className:no.text,children:oo})}):jsxRuntimeExports.jsx(Text$1,{size:io,className:no.text,children:oo})]})}const useClasses$p=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},text:{color:tokens.colorNeutralForeground3,fontWeight:600}}),NodeToken=({span:eo,showDetail:to=!0,size:ro})=>{const no=useParseTraceOutput(eo);if(!no||typeof no=="string")return null;const oo=no.usage;return!oo||typeof oo=="string"||!oo.total_tokens?null:jsxRuntimeExports.jsx(TokenText,{token:oo.total_tokens,size:ro,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:oo.total_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:oo.prompt_tokens??0}}),jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:oo.completion_tokens??0}})]}):void 0})},SummaryToken=({trace:eo,showDetail:to=!0,size:ro})=>{const{total_tokens:no,prompt_tokens:oo,completion_tokens:io}=eo;return jsxRuntimeExports.jsx(TokenText,{token:no,size:ro,info:to?jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",rowGap:6},children:[jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Total tokens",value:no}}),oo!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Prompt tokens",value:oo}}),io!==void 0&&jsxRuntimeExports.jsx(MetricTag,{tag:{name:"Completion tokens",value:io}})]}):void 0})};function StatusText({statusCode:eo,showText:to=!1,size:ro,tooltipContent:no}){const oo=useClasses$o(),io=useLocStrings();eo=eo||io.unknown;const{textSize:so,iconSize:ao,gap:lo}=useUISize(ro),uo=reactExports.useMemo(()=>({width:ao,height:ao}),[ao]),[co,fo]=reactExports.useMemo(()=>{switch(eo==null?void 0:eo.toLowerCase()){case"ok":case"completed":return[jsxRuntimeExports.jsx(CheckmarkCircle20Filled,{style:uo},"ok"),tokens.colorPaletteGreenForeground1];case"error":return[jsxRuntimeExports.jsx(DismissCircle20Filled,{style:uo},"error"),tokens.colorPaletteRedForeground1];case"unset":return[jsxRuntimeExports.jsx(ErrorCircle20Filled,{style:uo},"unset"),tokens.colorPaletteYellowForeground1];case"running":return[jsxRuntimeExports.jsx(ArrowClockwiseDashes20Filled,{className:oo.rotate,style:uo},"running"),tokens.colorPaletteYellowForeground1];default:return[jsxRuntimeExports.jsx(QuestionCircle20Filled,{},"unknown"),tokens.colorPaletteYellowForeground1]}},[oo.rotate,uo,eo]);return jsxRuntimeExports.jsx(Tooltip,{content:no??eo??"",relationship:"label",children:jsxRuntimeExports.jsxs("div",{className:oo.wrapper,style:{color:fo,gap:to?lo:0},children:[co,to&&jsxRuntimeExports.jsx(Text$1,{size:so,children:eo})]})})}const useClasses$o=makeStyles({wrapper:{display:"inline-flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},rotate:{animationDuration:"2s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}}),useClasses$n=makeStyles({root:{display:"flex",fontSize:tokens.fontSizeBase200,marginLeft:"8px",...shorthands.gap("8px","column")}}),TraceSystemMetrics=()=>{const eo=useSelectedTrace(),to=useClasses$n();return eo?jsxRuntimeExports.jsxs("div",{className:to.root,children:[jsxRuntimeExports.jsx(StatusText,{statusCode:eo.status,size:UISize.normal,showText:!0}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:eo.start_time,endTimeISOString:eo.end_time,size:UISize.normal}),jsxRuntimeExports.jsx(SummaryToken,{trace:convertToTraceListRow(eo),size:UISize.normal})]}):null},useClasses$m=makeStyles({title:{...shorthands.flex(1),...shorthands.padding("0"),lineHeight:"28px",fontSize:"20px",fontWeight:600},button:{fontSize:"20px",...shorthands.padding("0")}}),TraceDetailTitle=()=>{const eo=useSelectedTraceTitleParts(),to=useSetSelectedEvaluationTraceId(),ro=eo[0],no=eo[1],oo=useClasses$m();return jsxRuntimeExports.jsxs(Breadcrumb,{className:oo.title,size:"large",children:[jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs(BreadcrumbButton,{className:oo.button,onClick:()=>{to(void 0)},children:[ro,!no&&jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})}),no&&jsxRuntimeExports.jsx(BreadcrumbDivider,{}),no&&jsxRuntimeExports.jsx(BreadcrumbItem,{children:jsxRuntimeExports.jsxs(BreadcrumbButton,{className:oo.button,children:[no,jsxRuntimeExports.jsx(TraceSystemMetrics,{})]})})]})},TraceDetailHeader=({setIsTraceDetailOpen:eo,showRefresh:to=!0,showGantt:ro=!1,showCopyUrl:no=!1,showStreamSwitch:oo=!1,isStreaming:io,onIsStreamingChange:so})=>{const ao=useClasses$l(),lo=useLocStrings(),uo=useTraceViewModel(),co=useIsGanttChartOpen(),[fo,po]=React.useState("Copy URL"),ho=useSelectedTrace(),mo=ho!=null&&ho.start_time?timeFormat(ho.start_time):void 0;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ao.header,children:[jsxRuntimeExports.jsx(TraceDetailTitle,{}),mo&&jsxRuntimeExports.jsxs("time",{className:ao.time,children:["Created on: ",mo]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:ao.divider}),jsxRuntimeExports.jsx(TraceNavigation,{}),oo&&io!==void 0&&so!==void 0&&jsxRuntimeExports.jsx(StreamSwitcher,{style:{marginRight:"16px",marginTop:"4px"},isStreaming:io,onIsStreamingChange:so}),no?jsxRuntimeExports.jsx(Tooltip,{content:lo[`${fo}`],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Copy URL",icon:jsxRuntimeExports.jsx(SendCopy20Regular,{}),onMouseEnter:()=>{po("Copy URL")},onClick:()=>{if(uo.traceDetailCopyUrl()){po("Copied!");return}const vo=window.location.href;if(navigator.clipboard)navigator.clipboard.writeText(vo),po("Copied!");else{const bo=document.createElement("textarea");bo.value=vo,document.body.appendChild(bo),bo.select();try{document.execCommand("copy"),po("Copied!")}catch(xo){console.error("Fallback: Oops, unable to copy",xo),po("Oops, unable to copy!")}document.body.removeChild(bo)}}})}):null,to?jsxRuntimeExports.jsx(Tooltip,{content:lo["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>uo.refreshSpans()})}):null,ro?jsxRuntimeExports.jsx(Tooltip,{content:lo[co?"Hide Gantt":"Show Gantt"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{style:{color:co?tokens.colorBrandForeground1:""},appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(GanttChart20Regular,{}),onClick:()=>uo.toggleIsGanttChartOpen()})}):null,jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Close",icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:()=>eo(!1)})]}),jsxRuntimeExports.jsx(Divider$2,{})]})},TraceNavigation=()=>{const eo=useLocStrings(),to=useClasses$l(),{hasPreviousTrace:ro,hasNextTrace:no,goToPreviousTrace:oo,goToNextTrace:io}=useTraceNavigation();return ro||no?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:to.navigation,children:[ro&&jsxRuntimeExports.jsxs(Button$2,{icon:jsxRuntimeExports.jsx(ArrowUp20Regular,{}),onClick:oo,appearance:"subtle",children:[eo["Previous trace"]," "]}),no&&jsxRuntimeExports.jsxs(Button$2,{icon:jsxRuntimeExports.jsx(ArrowDown20Regular,{}),onClick:io,appearance:"subtle",children:[eo["Next trace"]," "]})]}),jsxRuntimeExports.jsx(Divider$2,{vertical:!0,className:to.divider})]}):void 0},useClasses$l=makeStyles({header:{display:"flex",width:"100%",boxSizing:"border-box",...shorthands.padding("12px","20px")},divider:{height:"100%",...shorthands.flex("none"),...shorthands.padding(0,tokens.spacingHorizontalM)},navigation:{display:"flex",alignItems:"center",...shorthands.gap(tokens.spacingHorizontalS)},time:{display:"flex",alignItems:"center",paddingRight:tokens.spacingHorizontalL,...shorthands.flex("0 1 auto")}}),traceDetailErrorInjectionToken=createInjectionToken("traceDetailErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_trace})}),traceDetailLoadingInjectionToken=createInjectionToken("traceDetailLoadingInjectionToken",Loading),traceListErrorInjectionToken=createInjectionToken("traceListErrorInjectionToken",()=>{const eo=useLocStrings();return jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:eo.Failed_to_load_traces})}),traceListLoadingInjectionToken=createInjectionToken("traceListLoadingInjectionToken",Loading),useTraceListViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceListStatus$)},useTraceDetailViewStatus=()=>{const eo=useTraceViewModel();return useState(eo.traceDetailStatus$)},useTraceListLoadingComponent=()=>{const[eo]=useInjected(traceListLoadingInjectionToken);return eo},useTraceListErrorComponent=()=>{const[eo]=useInjected(traceListErrorInjectionToken);return eo},useTraceDetailLoadingComponent=()=>{const[eo]=useInjected(traceDetailLoadingInjectionToken);return eo},useTraceDetailErrorComponent=()=>{const[eo]=useInjected(traceDetailErrorInjectionToken);return eo},TREE_NODE_HEIGHT=40,TREE_NODE_WIDTH=400,TREE_NODE_PADDING=10,TREE_NODE_INDENT=48,sortTraceByStartTimeDesc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(to.start_time)-Date.parse(eo.start_time):1,sortTraceByStartTimeAsc=(eo,to)=>eo.start_time&&to.start_time?Date.parse(eo.start_time)-Date.parse(to.start_time):1,defaultGetNodeX=({level:eo})=>eo*TREE_NODE_INDENT,defaultGetNodeWidth=()=>TREE_NODE_WIDTH,defaultGetNodeHeight=()=>TREE_NODE_HEIGHT,spansToGraphModel=(eo,{isEdgesHidden:to=!1,getNodeX:ro=defaultGetNodeX,getNodeWidth:no=defaultGetNodeWidth,getNodeHeight:oo=defaultGetNodeHeight,collapsedSpanIds:io})=>{const so=[],ao=[],lo=new Map,uo=new Set,co=new Set(eo.map(ho=>{var mo;return(mo=ho.context)==null?void 0:mo.span_id}).filter(ho=>!!ho));eo.forEach(ho=>{var mo,vo;(mo=ho.context)!=null&&mo.span_id&&(ho.parent_id&&co.has(ho.parent_id)?lo.has(ho.parent_id)?lo.get(ho.parent_id).push(ho):lo.set(ho.parent_id,[ho]):uo.add((vo=ho.context)==null?void 0:vo.span_id))});const fo=eo.filter(ho=>{var mo,vo;return((mo=ho.context)==null?void 0:mo.span_id)&&uo.has((vo=ho.context)==null?void 0:vo.span_id)}).sort((ho,mo)=>Date.parse(ho.start_time??"")??0-Date.parse(mo.start_time??"")??0);let po=0;return fo.sort(sortTraceByStartTimeAsc).forEach(ho=>{var vo,bo;const mo=[{span:ho,level:0}];for(;mo.length>0;){const{span:xo,level:_o}=mo.pop(),So=oo({span:xo,level:_o,index:po});so.push({id:((vo=xo==null?void 0:xo.context)==null?void 0:vo.span_id)??"",width:no({span:xo,level:_o,index:po}),height:So,x:ro({span:xo,level:_o,index:po}),y:po*(So+TREE_NODE_PADDING),ports:[{id:"port",name:"port",position:[0,.5]}]}),po++,(bo=xo==null?void 0:xo.context)!=null&&bo.span_id&&lo.has(xo.context.span_id)&&!(io!=null&&io.has(xo.context.span_id))&&lo.get(xo.context.span_id).sort(sortTraceByStartTimeDesc).forEach(Eo=>{var ko,wo;!to&&((ko=xo==null?void 0:xo.context)!=null&&ko.span_id)&&((wo=Eo==null?void 0:Eo.context)!=null&&wo.span_id)&&ao.push({id:`${xo.context.span_id}-${Eo.context.span_id}`,source:xo.context.span_id,sourcePortId:"port",target:Eo.context.span_id,targetPortId:"port"}),mo.push({span:Eo,level:_o+1})})}}),{graph:GraphModel.fromJSON({nodes:so,edges:ao}),rootIds:Array.from(uo.values()),parentIdLookUp:lo}},TreeViewEdge=({x1:eo,x2:to,y1:ro,y2:no,model:oo,data:io})=>{if(!io.nodes.get(oo.source)||!io.nodes.get(oo.target))return null;const lo=eo+30,uo=to+20,co=ro+10,fo=`M ${lo} ${co} L ${lo} ${no} L ${uo} ${no}`;return jsxRuntimeExports.jsx("g",{children:jsxRuntimeExports.jsx("path",{d:fo,stroke:tokens.colorNeutralStrokeAccessible,strokeWidth:1,fill:"none"})})};class EdgeConfig{render(to){return jsxRuntimeExports.jsx(TreeViewEdge,{...to})}}const GanttTreeNode=({node:eo})=>{const to=bitset.has(GraphNodeStatus.Selected)(eo.status),ro=bitset.has(GraphNodeStatus.Activated)(eo.status);let no=tokens.colorNeutralStroke1,oo=tokens.colorBrandBackground2,io=1;return to&&(no=tokens.colorBrandStroke2,io=2,oo=tokens.colorBrandBackground2Pressed),ro&&(oo=tokens.colorBrandBackground2Hover),jsxRuntimeExports.jsx("foreignObject",{x:eo.x,y:eo.y,width:eo.width,height:eo.height,style:{border:`${io}px solid ${no}`,backgroundColor:oo,borderRadius:10,paddingLeft:10},children:jsxRuntimeExports.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",cursor:"pointer"}})})};class GanttNodeConfig{constructor(to){this.options=to}render(to){const ro=this.options.spans.find(no=>{var oo;return((oo=no==null?void 0:no.context)==null?void 0:oo.span_id)===to.model.id});return ro?jsxRuntimeExports.jsx(GanttTreeNode,{node:to.model,span:ro}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const GanttTimeline=({startMs:eo,endMs:to})=>{const ro=to-eo,no=Math.pow(10,Math.floor(Math.log10(ro))-1),oo=Math.ceil(ro/no),io=[],so=[];for(let ao=0;aojsxRuntimeExports.jsx("div",{style:{width:"100%",height:"100%"},children:jsxRuntimeExports.jsx(ReactDagEditor,{state:eo,dispatch:to,style:{height:"100%",flexGrow:1,display:"flex"},children:jsxRuntimeExports.jsx(Graph,{canvasMouseMode:CanvasMouseMode.Pan})})}),GanttView=()=>{var ho;const eo=useSpansOfSelectedTrace(),to=useSetSelectedSpanId(),ro=useSelectedSpanId(),no=mo=>(vo,bo)=>(bo&&bo.type===GraphNodeEvent.Click&&to(bo.node.id),mo(vo,bo)),oo=GraphConfigBuilder.default().registerNode(()=>new GanttNodeConfig({spans:eo})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build();previewMode.add(GraphFeatures.ClickNodeToSelect);const[so,ao]=useGraphReducer({data:GraphModel.empty(),settings:{features:previewMode,graphConfig:oo}},no),lo=((ho=so.viewport.rect)==null?void 0:ho.width)||1200;let uo=Number.MAX_SAFE_INTEGER,co=0;eo.forEach(mo=>{const vo=Date.parse(mo.start_time??"");voco&&(co=bo)});const fo=reactExports.useCallback(({span:mo})=>lo/(co-uo)*(Date.parse(mo.start_time??"")-uo),[co,lo,uo]),po=reactExports.useCallback(({span:mo})=>lo/(co-uo)*(Date.parse(mo.end_time??"")-Date.parse(mo.start_time??"")),[co,lo,uo]);return reactExports.useEffect(()=>{ao({type:GraphCanvasEvent.SetData,data:spansToGraphModel(eo,{isEdgesHidden:!0,getNodeX:fo,getNodeWidth:po,getNodeHeight:()=>24}).graph.selectNodes(mo=>mo.id===ro)})},[]),reactExports.useEffect(()=>{ro&&ao({type:GraphNodeEvent.Select,nodes:[ro]})},[ro]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GanttTimeline,{startMs:uo,endMs:co}),jsxRuntimeExports.jsx(TreeGraph,{state:so,dispatch:ao})]})},useNodeDetailClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},detailHeaderWrapper:{display:"flex",boxSizing:"border-box",width:"100%",...shorthands.padding("12px","12px",0,"12px"),flexDirection:"row",alignItems:"center",...shorthands.gap("12px")},detailHeaderTitle:{flexGrow:1,flexShrink:1,...shorthands.overflow("hidden"),whiteSpace:"nowrap",textOverflow:"ellipsis"},header:{display:"flex",height:"50px",boxSizing:"border-box",alignItems:"center",justifyContent:"flex-start",...shorthands.padding("6px","12px")},headerModalName:{color:tokens.colorNeutralForeground3,fontSize:"12px",fontWeight:600,lineHeight:"16px"},headerSpan:{marginRight:"10px"},headerTitle:{...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px",...shorthands.flex(0,1,"auto")},headerDivider:{...shorthands.flex("none"),...shorthands.padding(0)},headerRight:{marginLeft:"auto",display:"flex",alignItems:"center",...shorthands.gap("12px")},tabDivider:{...shorthands.flex("none"),...shorthands.padding(0,"12px")},content:{...shorthands.flex(1),...shorthands.padding("12px"),...shorthands.overflow("auto")},panels:{...shorthands.padding(0,"10px"),"& th":{textAlign:"left",...shorthands.padding(0,"30px",0,0)}},cardWrapper:{backgroundColor:tokens.colorNeutralBackground3},cardTitle:{fontSize:"16px",fontWeight:600},innerCardWrapper:{...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens.colorNeutralForeground1),...shorthands.borderRadius("8px")}}),useRetrievalNodeDetailClasses=makeStyles({accordionHeader:{"& button":{...shorthands.padding(0),fontWeight:600}}});var BuildInEventName=(eo=>(eo.exception="exception",eo["function.inputs"]="promptflow.function.inputs",eo["function.output"]="promptflow.function.output",eo["embedding.embeddings"]="promptflow.embedding.embeddings",eo["retrieval.query"]="promptflow.retrieval.query",eo["retrieval.documents"]="promptflow.retrieval.documents",eo["llm.generated_message"]="promptflow.llm.generated_message",eo["prompt.template"]="promptflow.prompt.template",eo))(BuildInEventName||{});const getSpanType=eo=>{var ro;const to=(ro=eo==null?void 0:eo.attributes)==null?void 0:ro.span_type;return to==null?void 0:to.split(".").pop()},useLoadSpanEvents=(eo,to,ro)=>{const no=useTraceViewModel(),oo=useSpanEventsLoadStatus();return reactExports.useCallback(({onCompleted:io,forceRefresh:so})=>{var lo,uo,co,fo;if(!((lo=eo==null?void 0:eo.events)!=null&&lo.length)||!no.isLazyLoadSpan){io();return}if(ro!==void 0){const po=(uo=eo.external_event_data_uris)==null?void 0:uo[ro];if(!po){io();return}const ho=`${(co=eo.context)==null?void 0:co.span_id}__${po}`;if(!so&&oo.has(ho)){io(oo.get(ho)==="error"?new Error("load error"):void 0);return}no.fetchSpanEvent(po).then(mo=>{var vo;mo.status==="error"?(oo.set(ho,"error"),io(new Error("load error"))):((vo=eo.events)!=null&&vo[ro]&&(eo.events[ro].attributes={...eo.events[ro].attributes,payload:mo.data??""}),oo.set(ho,"success"),io())});return}const ao=`${(fo=eo.context)==null?void 0:fo.span_id}__${to}`;if(!so&&oo.has(ao)){io(oo.get(ao)==="error"?new Error("load error"):void 0);return}Promise.all(eo.events.map((po,ho)=>{var mo,vo;if(po.name===to){const bo=(mo=eo.external_event_data_uris)==null?void 0:mo[ho];if(!bo)return Promise.resolve({status:"success"});const xo=`${(vo=eo.context)==null?void 0:vo.span_id}__${bo}`;return oo.get(xo)==="success"?Promise.resolve({status:"success"}):!so&&oo.has(xo)?Promise.resolve({status:oo.get(xo)==="error"?"error":"success"}):no.fetchSpanEvent(bo).then(_o=>{var So;return _o.status==="error"?oo.set(xo,"error"):((So=eo.events)!=null&&So[ho]&&(eo.events[ho].attributes={...eo.events[ho].attributes,payload:_o.data??""}),oo.set(xo,"success")),_o})}}).filter(po=>po!==void 0)).then(po=>{if(po.some(ho=>(ho==null?void 0:ho.status)==="error")){oo.set(ao,"error"),io(new Error("load error"));return}oo.set(ao,"success"),io()})},[no,eo,to,ro,oo])},useSpanEventsWithPayload=(eo,to)=>{var ro;return((ro=eo==null?void 0:eo.events)==null?void 0:ro.filter(no=>no.name===to).map(no=>{var oo;return{...no,attributes:safeJSONParse(((oo=no.attributes)==null?void 0:oo.payload)??"")}}))??[]},TraceViewThemeContext=reactExports.createContext(!1),useIsDark=()=>reactExports.useContext(TraceViewThemeContext);function isObject(eo){return Object.prototype.toString.call(eo)==="[object Object]"}function objectSize(eo){return Array.isArray(eo)?eo.length:isObject(eo)?Object.keys(eo).length:0}function stringifyForCopying(eo,to){if(typeof eo=="string")return eo;try{return JSON.stringify(eo,(ro,no)=>{switch(typeof no){case"bigint":return String(no)+"n";case"number":case"boolean":case"object":case"string":return no;default:return String(no)}},to)}catch(ro){return`${ro.name}: ${ro.message}`||"JSON.stringify failed"}}function isCollapsed(eo,to,ro,no,oo,io){if(io&&io.collapsed!==void 0)return!!io.collapsed;if(typeof no=="boolean")return no;if(typeof no=="number"&&to>no)return!0;const so=objectSize(eo);if(typeof no=="function"){const ao=safeCall(no,[{node:eo,depth:to,indexOrName:ro,size:so}]);if(typeof ao=="boolean")return ao}return!!(Array.isArray(eo)&&so>oo||isObject(eo)&&so>oo)}function isCollapsed_largeArray(eo,to,ro,no,oo,io){if(io&&io.collapsed!==void 0)return!!io.collapsed;if(typeof no=="boolean")return no;if(typeof no=="number"&&to>no)return!0;const so=Math.ceil(eo.length/100);if(typeof no=="function"){const ao=safeCall(no,[{node:eo,depth:to,indexOrName:ro,size:so}]);if(typeof ao=="boolean")return ao}return!!(Array.isArray(eo)&&so>oo||isObject(eo)&&so>oo)}function ifDisplay(eo,to,ro){return typeof eo=="boolean"?eo:!!(typeof eo=="number"&&to>eo||eo==="collapsed"&&ro||eo==="expanded"&&!ro)}function safeCall(eo,to){try{return eo(...to)}catch(ro){reportError(ro)}}function editableAdd(eo){if(eo===!0||isObject(eo)&&eo.add===!0)return!0}function editableEdit(eo){if(eo===!0||isObject(eo)&&eo.edit===!0)return!0}function editableDelete(eo){if(eo===!0||isObject(eo)&&eo.delete===!0)return!0}function isReactComponent(eo){return typeof eo=="function"}function customAdd(eo){return!eo||eo.add===void 0||!!eo.add}function customEdit(eo){return!eo||eo.edit===void 0||!!eo.edit}function customDelete(eo){return!eo||eo.delete===void 0||!!eo.delete}function customCopy(eo){return!eo||eo.enableClipboard===void 0||!!eo.enableClipboard}function customMatchesURL(eo){return!eo||eo.matchesURL===void 0||!!eo.matchesURL}function resolveEvalFailedNewValue(eo,to){return eo==="string"?to.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):to}var _path$8;function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{oo.stopPropagation();const io=to(eo);typeof io=="string"&&io&&navigator.clipboard.writeText(io),no(!0),setTimeout(()=>no(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:eo,value:to,depth:ro,parent:no,deleteHandle:oo,editHandle:io}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof eo=="number"?"json-view--index":"json-view--property"},{children:eo})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:to,depth:ro+1,deleteHandle:oo,editHandle:io,parent:no,indexOrName:eo})]}))}var _path$5,_path2$4;function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{eo[_o]=So,uo&&uo({newValue:So,oldValue:Eo,depth:ro,src:lo,indexOrName:_o,parentType:"array"}),co&&co({type:"edit",depth:ro,src:lo,indexOrName:_o,parentType:"array"}),fo()},[to,uo,co,fo]),bo=_o=>{eo.splice(_o,1),fo()},xo=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!ho&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>mo(!0),className:"jv-size-chevron"},{children:[ifDisplay(po,ro,ho)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(to)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),!ho&&ao&&customCopy(io)&&jsxRuntimeExports.jsx(CopyButton$1,{node:to})]});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("span",{children:"["}),xo,ho?jsxRuntimeExports.jsxs("button",Object.assign({onClick:()=>mo(!1),className:"jv-button"},{children:[so," ... ",so+to.length-1]})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:to.map((_o,So)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:So+so,value:_o,depth:ro,parent:to,deleteHandle:bo,editHandle:vo},String(no)+String(So)))})),jsxRuntimeExports.jsx("span",{children:"]"})]})}function LargeArray({node:eo,depth:to,deleteHandle:ro,indexOrName:no,customOptions:oo}){const io=[];for(let Bo=0;Bo{_o(isCollapsed_largeArray(eo,to,no,so,lo,oo))},[so,lo]);const[So,Eo]=reactExports.useState(!1),ko=()=>{Eo(!1),ro&&ro(no),co&&co({value:eo,depth:to,src:fo,indexOrName:no,parentType:"array"}),mo&&mo({type:"delete",depth:to,src:fo,indexOrName:no,parentType:"array"})},[wo,Co]=reactExports.useState(!1),Ro=()=>{const Bo=eo;Bo.push(null),po&&po({indexOrName:Bo.length-1,depth:to,src:fo,parentType:"array"}),mo&&mo({type:"add",indexOrName:Bo.length-1,depth:to,src:fo,parentType:"array"}),vo()},Ao=So||wo,Io=()=>{Eo(!1),Co(!1)},$o=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!xo&&!Ao&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_o(!0),className:"jv-size-chevron"},{children:[ifDisplay(bo,to,xo)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[eo.length," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Ao&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:wo?Ro:ko}),Ao&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:Io}),!xo&&!Ao&&ao&&customCopy(oo)&&jsxRuntimeExports.jsx(CopyButton$1,{node:eo}),!xo&&!Ao&&editableAdd(uo)&&customAdd(oo)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{Ro()}}),!xo&&!Ao&&editableDelete(uo)&&customDelete(oo)&&ro&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Eo(!0)})]});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),$o,xo?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>_o(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:io.map((Bo,Mo)=>jsxRuntimeExports.jsx(LargeArrayNode,{originNode:eo,node:Bo,depth:to,index:Mo,startIndex:Mo*100},String(no)+String(Mo)))})),jsxRuntimeExports.jsx("span",{children:"]"}),xo&&ifDisplay(bo,to,xo)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>_o(!1),className:"jv-size"},{children:[eo.length," Items"]}))]})}function ObjectNode({node:eo,depth:to,indexOrName:ro,deleteHandle:no,customOptions:oo}){const{collapsed:io,enableClipboard:so,ignoreLargeArray:ao,collapseObjectsAfterLength:lo,editable:uo,onDelete:co,src:fo,onAdd:po,onEdit:ho,onChange:mo,forceUpdate:vo,displaySize:bo}=reactExports.useContext(JsonViewContext);if(!ao&&Array.isArray(eo)&&eo.length>100)return jsxRuntimeExports.jsx(LargeArray,{node:eo,depth:to,indexOrName:ro,deleteHandle:no,customOptions:oo});const xo=isObject(eo),[_o,So]=reactExports.useState(isCollapsed(eo,to,ro,io,lo,oo));reactExports.useEffect(()=>{So(isCollapsed(eo,to,ro,io,lo,oo))},[io,lo]);const Eo=reactExports.useCallback((Fo,Go,qo)=>{Array.isArray(eo)?eo[+Fo]=Go:eo&&(eo[Fo]=Go),ho&&ho({newValue:Go,oldValue:qo,depth:to,src:fo,indexOrName:Fo,parentType:xo?"object":"array"}),mo&&mo({type:"edit",depth:to,src:fo,indexOrName:Fo,parentType:xo?"object":"array"}),vo()},[eo,ho,mo,vo]),ko=Fo=>{Array.isArray(eo)?eo.splice(+Fo,1):eo&&delete eo[Fo],vo()},[wo,Co]=reactExports.useState(!1),Ro=()=>{Co(!1),no&&no(ro),co&&co({value:eo,depth:to,src:fo,indexOrName:ro,parentType:xo?"object":"array"}),mo&&mo({type:"delete",depth:to,src:fo,indexOrName:ro,parentType:xo?"object":"array"})},[Ao,Io]=reactExports.useState(!1),$o=reactExports.useRef(null),Bo=()=>{var Fo;if(xo){const Go=(Fo=$o.current)===null||Fo===void 0?void 0:Fo.value;Go&&(eo[Go]=null,$o.current&&($o.current.value=""),Io(!1),po&&po({indexOrName:Go,depth:to,src:fo,parentType:"object"}),mo&&mo({type:"add",indexOrName:Go,depth:to,src:fo,parentType:"object"}))}else if(Array.isArray(eo)){const Go=eo;Go.push(null),po&&po({indexOrName:Go.length-1,depth:to,src:fo,parentType:"array"}),mo&&mo({type:"add",indexOrName:Go.length-1,depth:to,src:fo,parentType:"array"})}vo()},Mo=Fo=>{Fo.key==="Enter"?(Fo.preventDefault(),Bo()):Fo.key==="Escape"&&jo()},Ho=wo||Ao,jo=()=>{Co(!1),Io(!1)},Oo=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!_o&&!Ho&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>So(!0),className:"jv-size-chevron"},{children:[ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(eo)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),Ao&&xo&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:$o,onKeyDown:Mo}),Ho&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:Ao?Bo:Ro}),Ho&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:jo}),!_o&&!Ho&&so&&customCopy(oo)&&jsxRuntimeExports.jsx(CopyButton$1,{node:eo}),!_o&&!Ho&&editableAdd(uo)&&customAdd(oo)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{xo?(Io(!0),setTimeout(()=>{var Fo;return(Fo=$o.current)===null||Fo===void 0?void 0:Fo.focus()})):Bo()}}),!_o&&!Ho&&editableDelete(uo)&&customDelete(oo)&&no&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>Co(!0)})]});return Array.isArray(eo)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),Oo,_o?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>So(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:eo.map((Fo,Go)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Go,value:Fo,depth:to,parent:eo,deleteHandle:ko,editHandle:Eo},String(ro)+String(Go)))})),jsxRuntimeExports.jsx("span",{children:"]"}),_o&&ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>So(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):xo?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),Oo,_o?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>So(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(eo).map(([Fo,Go])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:Fo,value:Go,depth:to,parent:eo,deleteHandle:ko,editHandle:Eo},String(ro)+String(Fo)))})),jsxRuntimeExports.jsx("span",{children:"}"}),_o&&ifDisplay(bo,to,_o)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>So(!1),className:"jv-size"},{children:[objectSize(eo)," Items"]}))]}):null}const LongString=React.forwardRef(({str:eo,className:to,ctrlClick:ro},no)=>{let{collapseStringMode:oo,collapseStringsAfterLength:io,customizeCollapseStringUI:so}=reactExports.useContext(JsonViewContext);const[ao,lo]=reactExports.useState(!0),uo=reactExports.useRef(null);io=io>0?io:0;const co=eo.replace(/\s+/g," "),fo=typeof so=="function"?so(co,ao):typeof so=="string"?so:"...",po=ho=>{var mo;if((ho.ctrlKey||ho.metaKey)&&ro)ro(ho);else{const vo=window.getSelection();if(vo&&vo.anchorOffset!==vo.focusOffset&&((mo=vo.anchorNode)===null||mo===void 0?void 0:mo.parentElement)===uo.current)return;lo(!ao)}};if(eo.length<=io)return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to,onClick:ro},{children:['"',eo,'"']}));if(oo==="address")return eo.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to,onClick:ro},{children:['"',eo,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:po,className:to+" cursor-pointer"},{children:['"',ao?[co.slice(0,6),fo,co.slice(-4)]:eo,'"']}));if(oo==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:po,className:to+" cursor-pointer"},{children:['"',ao?[co.slice(0,io),fo]:eo,'"']}));if(oo==="word"){let ho=io,mo=io+1,vo=co,bo=1;for(;;){if(/\W/.test(eo[ho])){vo=eo.slice(0,ho);break}if(/\W/.test(eo[mo])){vo=eo.slice(0,mo);break}if(bo===6){vo=eo.slice(0,io);break}bo++,ho--,mo++}return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,onClick:po,className:to+" cursor-pointer"},{children:['"',ao?[vo,fo]:eo,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({ref:uo,className:to},{children:['"',eo,'"']}))});var _path$1;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{setEditing(!0),setTimeout(()=>{var eo,to;(eo=window.getSelection())===null||eo===void 0||eo.selectAllChildren(valueRef.current),(to=valueRef.current)===null||to===void 0||to.focus()})},done=reactExports.useCallback(()=>{let newValue=valueRef.current.innerText;try{(newValue==="{}"||newValue==="[]")&&(newValue=`(${newValue})`);const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(eo){const to=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,to,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(eo=>{eo.key==="Enter"?(eo.preventDefault(),done()):eo.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?eo=>{(eo.ctrlKey||eo.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton$1,{node}),!isEditing&&matchesURL&&type==="string"&&urlRegExp.test(node)&&customMatchesURL(customReturn)&&jsxRuntimeExports.jsx("a",Object.assign({href:node,target:"_blank",className:"json-view--link"},{children:jsxRuntimeExports.jsx(SvgLink,{})})),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const defaultURLRegExp=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",customizeCollapseStringUI:void 0,collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,customizeCopy:()=>{},displaySize:void 0,matchesURL:!1,urlRegExp:defaultURLRegExp,ignoreLargeArray:!1});function JsonView({src:eo,collapseStringsAfterLength:to=99,collapseStringMode:ro="directly",customizeCollapseStringUI:no,collapseObjectsAfterLength:oo=99,collapsed:io,enableClipboard:so=!0,editable:ao=!1,onEdit:lo,onDelete:uo,onAdd:co,onChange:fo,dark:po=!1,theme:ho="default",customizeNode:mo,customizeCopy:vo=stringifyForCopying,displaySize:bo,style:xo,className:_o,matchesURL:So=!1,urlRegExp:Eo=defaultURLRegExp,ignoreLargeArray:ko=!1}){const[wo,Co]=reactExports.useState(0),Ro=reactExports.useCallback(()=>Co($o=>++$o),[]),[Ao,Io]=reactExports.useState(eo);return reactExports.useEffect(()=>Io(eo),[eo]),jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:Ao,collapseStringsAfterLength:to,collapseStringMode:ro,customizeCollapseStringUI:no,collapseObjectsAfterLength:oo,collapsed:io,enableClipboard:so,editable:ao,onEdit:lo,onDelete:uo,onAdd:co,onChange:fo,forceUpdate:Ro,customizeNode:mo,customizeCopy:vo,displaySize:bo,matchesURL:So,urlRegExp:Eo,ignoreLargeArray:ko}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(po?" dark":"")+(ho&&ho!=="default"?" json-view_"+ho:"")+(_o?" "+_o:""),style:xo},{children:jsxRuntimeExports.jsx(JsonNode,{node:Ao,depth:1,editHandle:($o,Bo,Mo)=>{Io(Bo),lo&&lo({newValue:Bo,oldValue:Mo,depth:1,src:Ao,indexOrName:$o,parentType:null}),fo&&fo({type:"edit",depth:1,src:Ao,indexOrName:$o,parentType:null})},deleteHandle:()=>{Io(void 0),uo&&uo({value:Ao,depth:1,src:Ao,indexOrName:"",parentType:null}),fo&&fo({depth:1,src:Ao,indexOrName:"",parentType:null,type:"delete"})}})}))}))}const JsonViewer=eo=>{const{useCustomCollapse:to=!0,...ro}=eo;return jsxRuntimeExports.jsx(JsonView,{customizeCollapseStringUI:to?()=>jsxRuntimeExports.jsx(ExpandButton,{}):void 0,...ro})},ExpandButton=()=>{const eo=useClasses$k();return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:["...",jsxRuntimeExports.jsxs("div",{className:eo.btn,children:[jsxRuntimeExports.jsx(ChevronDown16Regular,{className:eo.icon}),jsxRuntimeExports.jsx("span",{className:eo.text,children:"view all"})]})]})},useClasses$k=makeStyles({btn:{display:"inline-flex",pointer:"cursor",alignItems:"center",...shorthands.padding(0),paddingLeft:"4px",...shorthands.margin(0),fontWeight:400,color:"#A3BEE9"},icon:{height:"12px",width:"12px",...shorthands.padding(0),...shorthands.margin(0)},text:{fontSize:"12px",...shorthands.padding(0),...shorthands.margin(0)}}),JsonNodeCard=({title:eo,src:to,wrapperStyle:ro={},status:no=ViewStatus.loaded,errorTip:oo=null,jsonViewerProps:io={}})=>{let so="";if(typeof to=="string")try{so=JSON.parse(to)}catch{so=to}else typeof to=="object"&&(so=to);const ao=useIsDark();return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,...ro},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:eo})})}),no===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),no===ViewStatus.loaded&&jsxRuntimeExports.jsx(JsonViewer,{src:so,theme:"vscode",dark:ao,...io}),no===ViewStatus.error&&oo]})},DefaultNodeInfo=()=>{var mo,vo,bo,xo;const eo=useSelectedSpan(),to=(mo=getSpanType(eo))==null?void 0:mo.toLocaleLowerCase(),ro=useLocStrings(),[no,oo]=reactExports.useState(ViewStatus.loading),[io,so]=reactExports.useState(ViewStatus.loading),ao=useSpanEventsWithPayload(eo,BuildInEventName["function.inputs"]),lo=useSpanEventsWithPayload(eo,BuildInEventName["llm.generated_message"]),uo=useLoadSpanEvents(eo,BuildInEventName["function.inputs"]),co=useLoadSpanEvents(eo,BuildInEventName["llm.generated_message"]);let fo=useSpanEventsWithPayload(eo,BuildInEventName["function.output"]),po=useLoadSpanEvents(eo,BuildInEventName["function.output"]);to==="llm"&&fo.length===0&&(fo=lo,po=co);let ho=(vo=eo==null?void 0:eo.attributes)==null?void 0:vo.output;return to==="llm"&&(ho=ho??((bo=eo==null?void 0:eo.attributes)==null?void 0:bo["llm.generated_message"])),reactExports.useEffect(()=>{uo({onCompleted:_o=>{oo(_o?ViewStatus.error:ViewStatus.loaded)}}),po({onCompleted:_o=>{so(_o?ViewStatus.error:ViewStatus.loaded)}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[ao.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Input,status:no,src:ao.length===1?ao[0].attributes:ao,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{oo(ViewStatus.loading),uo({onCompleted:_o=>{oo(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Input,src:(xo=eo==null?void 0:eo.attributes)==null?void 0:xo.inputs}),fo.length>0?jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Output,status:io,src:fo.length===1?fo[0].attributes:fo,errorTip:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),po({onCompleted:_o=>{so(_o?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Output,src:ho})]})},DefaultNodeLoadError=({onRetry:eo})=>{const to=useLocStrings();return jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",icon:jsxRuntimeExports.jsx(ErrorCircle16Filled,{style:{color:tokens.colorStatusDangerForeground1}}),style:{fontWeight:400},onClick:eo,children:to["Failed to load, click to try again"]})},BlockquoteType="blockquote",BreakType="break",CodeType="code",DefinitionType="definition",DeleteType="delete",EmphasisType="emphasis",HeadingType="heading",HtmlType="html";var HtmlContentType;(function(eo){eo.CDATA="cdata",eo.Closing="closing",eo.Comment="comment",eo.Declaration="declaration",eo.Instruction="instruction",eo.Open="open"})(HtmlContentType||(HtmlContentType={}));const ImageReferenceType="imageReference",ImageType$1="image",InlineCodeType="inlineCode",LinkReferenceType="linkReference",LinkType="link",ListItemType="listItem";var TaskStatus;(function(eo){eo.TODO="todo",eo.DOING="doing",eo.DONE="done"})(TaskStatus||(TaskStatus={}));const ListType="list",ParagraphType$1="paragraph",StrongType="strong",TableType="table",TextType$1="text",ThematicBreakType="thematicBreak";var AsciiCodePoint;(function(eo){eo[eo.NUL=0]="NUL",eo[eo.SOH=1]="SOH",eo[eo.STX=2]="STX",eo[eo.ETX=3]="ETX",eo[eo.EOT=4]="EOT",eo[eo.ENQ=5]="ENQ",eo[eo.ACK=6]="ACK",eo[eo.BEL=7]="BEL",eo[eo.BS=8]="BS",eo[eo.HT=9]="HT",eo[eo.LF=10]="LF",eo[eo.VT=11]="VT",eo[eo.FF=12]="FF",eo[eo.CR=13]="CR",eo[eo.SO=14]="SO",eo[eo.SI=15]="SI",eo[eo.DLE=16]="DLE",eo[eo.DC1=17]="DC1",eo[eo.DC2=18]="DC2",eo[eo.DC3=19]="DC3",eo[eo.DC4=20]="DC4",eo[eo.NAK=21]="NAK",eo[eo.SYN=22]="SYN",eo[eo.ETB=23]="ETB",eo[eo.CAN=24]="CAN",eo[eo.EM=25]="EM",eo[eo.SUB=26]="SUB",eo[eo.ESC=27]="ESC",eo[eo.FS=28]="FS",eo[eo.GS=29]="GS",eo[eo.RS=30]="RS",eo[eo.US=31]="US",eo[eo.SPACE=32]="SPACE",eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.DOLLAR_SIGN=36]="DOLLAR_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.SINGLE_QUOTE=39]="SINGLE_QUOTE",eo[eo.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",eo[eo.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.PLUS_SIGN=43]="PLUS_SIGN",eo[eo.COMMA=44]="COMMA",eo[eo.MINUS_SIGN=45]="MINUS_SIGN",eo[eo.DOT=46]="DOT",eo[eo.SLASH=47]="SLASH",eo[eo.DIGIT0=48]="DIGIT0",eo[eo.DIGIT1=49]="DIGIT1",eo[eo.DIGIT2=50]="DIGIT2",eo[eo.DIGIT3=51]="DIGIT3",eo[eo.DIGIT4=52]="DIGIT4",eo[eo.DIGIT5=53]="DIGIT5",eo[eo.DIGIT6=54]="DIGIT6",eo[eo.DIGIT7=55]="DIGIT7",eo[eo.DIGIT8=56]="DIGIT8",eo[eo.DIGIT9=57]="DIGIT9",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.OPEN_ANGLE=60]="OPEN_ANGLE",eo[eo.EQUALS_SIGN=61]="EQUALS_SIGN",eo[eo.CLOSE_ANGLE=62]="CLOSE_ANGLE",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.AT_SIGN=64]="AT_SIGN",eo[eo.UPPERCASE_A=65]="UPPERCASE_A",eo[eo.UPPERCASE_B=66]="UPPERCASE_B",eo[eo.UPPERCASE_C=67]="UPPERCASE_C",eo[eo.UPPERCASE_D=68]="UPPERCASE_D",eo[eo.UPPERCASE_E=69]="UPPERCASE_E",eo[eo.UPPERCASE_F=70]="UPPERCASE_F",eo[eo.UPPERCASE_G=71]="UPPERCASE_G",eo[eo.UPPERCASE_H=72]="UPPERCASE_H",eo[eo.UPPERCASE_I=73]="UPPERCASE_I",eo[eo.UPPERCASE_J=74]="UPPERCASE_J",eo[eo.UPPERCASE_K=75]="UPPERCASE_K",eo[eo.UPPERCASE_L=76]="UPPERCASE_L",eo[eo.UPPERCASE_M=77]="UPPERCASE_M",eo[eo.UPPERCASE_N=78]="UPPERCASE_N",eo[eo.UPPERCASE_O=79]="UPPERCASE_O",eo[eo.UPPERCASE_P=80]="UPPERCASE_P",eo[eo.UPPERCASE_Q=81]="UPPERCASE_Q",eo[eo.UPPERCASE_R=82]="UPPERCASE_R",eo[eo.UPPERCASE_S=83]="UPPERCASE_S",eo[eo.UPPERCASE_T=84]="UPPERCASE_T",eo[eo.UPPERCASE_U=85]="UPPERCASE_U",eo[eo.UPPERCASE_V=86]="UPPERCASE_V",eo[eo.UPPERCASE_W=87]="UPPERCASE_W",eo[eo.UPPERCASE_X=88]="UPPERCASE_X",eo[eo.UPPERCASE_Y=89]="UPPERCASE_Y",eo[eo.UPPERCASE_Z=90]="UPPERCASE_Z",eo[eo.OPEN_BRACKET=91]="OPEN_BRACKET",eo[eo.BACKSLASH=92]="BACKSLASH",eo[eo.CLOSE_BRACKET=93]="CLOSE_BRACKET",eo[eo.CARET=94]="CARET",eo[eo.UNDERSCORE=95]="UNDERSCORE",eo[eo.BACKTICK=96]="BACKTICK",eo[eo.LOWERCASE_A=97]="LOWERCASE_A",eo[eo.LOWERCASE_B=98]="LOWERCASE_B",eo[eo.LOWERCASE_C=99]="LOWERCASE_C",eo[eo.LOWERCASE_D=100]="LOWERCASE_D",eo[eo.LOWERCASE_E=101]="LOWERCASE_E",eo[eo.LOWERCASE_F=102]="LOWERCASE_F",eo[eo.LOWERCASE_G=103]="LOWERCASE_G",eo[eo.LOWERCASE_H=104]="LOWERCASE_H",eo[eo.LOWERCASE_I=105]="LOWERCASE_I",eo[eo.LOWERCASE_J=106]="LOWERCASE_J",eo[eo.LOWERCASE_K=107]="LOWERCASE_K",eo[eo.LOWERCASE_L=108]="LOWERCASE_L",eo[eo.LOWERCASE_M=109]="LOWERCASE_M",eo[eo.LOWERCASE_N=110]="LOWERCASE_N",eo[eo.LOWERCASE_O=111]="LOWERCASE_O",eo[eo.LOWERCASE_P=112]="LOWERCASE_P",eo[eo.LOWERCASE_Q=113]="LOWERCASE_Q",eo[eo.LOWERCASE_R=114]="LOWERCASE_R",eo[eo.LOWERCASE_S=115]="LOWERCASE_S",eo[eo.LOWERCASE_T=116]="LOWERCASE_T",eo[eo.LOWERCASE_U=117]="LOWERCASE_U",eo[eo.LOWERCASE_V=118]="LOWERCASE_V",eo[eo.LOWERCASE_W=119]="LOWERCASE_W",eo[eo.LOWERCASE_X=120]="LOWERCASE_X",eo[eo.LOWERCASE_Y=121]="LOWERCASE_Y",eo[eo.LOWERCASE_Z=122]="LOWERCASE_Z",eo[eo.OPEN_BRACE=123]="OPEN_BRACE",eo[eo.VERTICAL_SLASH=124]="VERTICAL_SLASH",eo[eo.CLOSE_BRACE=125]="CLOSE_BRACE",eo[eo.TILDE=126]="TILDE",eo[eo.DELETE=127]="DELETE"})(AsciiCodePoint||(AsciiCodePoint={}));const foldingCaseCodeMap={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},entityReferences=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` +`},{key:[78,102,114,59],value:"𝔑"},{key:[78,111,66,114,101,97,107,59],value:"⁠"},{key:[78,111,110,66,114,101,97,107,105,110,103,83,112,97,99,101,59],value:" "},{key:[78,111,112,102,59],value:"ℕ"},{key:[78,111,116,59],value:"⫬"},{key:[78,111,116,67,111,110,103,114,117,101,110,116,59],value:"≢"},{key:[78,111,116,67,117,112,67,97,112,59],value:"≭"},{key:[78,111,116,68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∦"},{key:[78,111,116,69,108,101,109,101,110,116,59],value:"∉"},{key:[78,111,116,69,113,117,97,108,59],value:"≠"},{key:[78,111,116,69,113,117,97,108,84,105,108,100,101,59],value:"≂̸"},{key:[78,111,116,69,120,105,115,116,115,59],value:"∄"},{key:[78,111,116,71,114,101,97,116,101,114,59],value:"≯"},{key:[78,111,116,71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≱"},{key:[78,111,116,71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧̸"},{key:[78,111,116,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫̸"},{key:[78,111,116,71,114,101,97,116,101,114,76,101,115,115,59],value:"≹"},{key:[78,111,116,71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾̸"},{key:[78,111,116,71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≵"},{key:[78,111,116,72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎̸"},{key:[78,111,116,72,117,109,112,69,113,117,97,108,59],value:"≏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⋪"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋬"},{key:[78,111,116,76,101,115,115,59],value:"≮"},{key:[78,111,116,76,101,115,115,69,113,117,97,108,59],value:"≰"},{key:[78,111,116,76,101,115,115,71,114,101,97,116,101,114,59],value:"≸"},{key:[78,111,116,76,101,115,115,76,101,115,115,59],value:"≪̸"},{key:[78,111,116,76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽̸"},{key:[78,111,116,76,101,115,115,84,105,108,100,101,59],value:"≴"},{key:[78,111,116,78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢̸"},{key:[78,111,116,78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"⪡̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,59],value:"⊀"},{key:[78,111,116,80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋠"},{key:[78,111,116,82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∌"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⋫"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐̸"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋭"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⋢"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⋣"},{key:[78,111,116,83,117,98,115,101,116,59],value:"⊂⃒"},{key:[78,111,116,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊈"},{key:[78,111,116,83,117,99,99,101,101,100,115,59],value:"⊁"},{key:[78,111,116,83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰̸"},{key:[78,111,116,83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋡"},{key:[78,111,116,83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿̸"},{key:[78,111,116,83,117,112,101,114,115,101,116,59],value:"⊃⃒"},{key:[78,111,116,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊉"},{key:[78,111,116,84,105,108,100,101,59],value:"≁"},{key:[78,111,116,84,105,108,100,101,69,113,117,97,108,59],value:"≄"},{key:[78,111,116,84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≇"},{key:[78,111,116,84,105,108,100,101,84,105,108,100,101,59],value:"≉"},{key:[78,111,116,86,101,114,116,105,99,97,108,66,97,114,59],value:"∤"},{key:[78,115,99,114,59],value:"𝒩"},{key:[78,116,105,108,100,101,59],value:"Ñ"},{key:[78,117,59],value:"Ν"},{key:[79,69,108,105,103,59],value:"Œ"},{key:[79,97,99,117,116,101,59],value:"Ó"},{key:[79,99,105,114,99,59],value:"Ô"},{key:[79,99,121,59],value:"О"},{key:[79,100,98,108,97,99,59],value:"Ő"},{key:[79,102,114,59],value:"𝔒"},{key:[79,103,114,97,118,101,59],value:"Ò"},{key:[79,109,97,99,114,59],value:"Ō"},{key:[79,109,101,103,97,59],value:"Ω"},{key:[79,109,105,99,114,111,110,59],value:"Ο"},{key:[79,111,112,102,59],value:"𝕆"},{key:[79,112,101,110,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"“"},{key:[79,112,101,110,67,117,114,108,121,81,117,111,116,101,59],value:"‘"},{key:[79,114,59],value:"⩔"},{key:[79,115,99,114,59],value:"𝒪"},{key:[79,115,108,97,115,104,59],value:"Ø"},{key:[79,116,105,108,100,101,59],value:"Õ"},{key:[79,116,105,109,101,115,59],value:"⨷"},{key:[79,117,109,108,59],value:"Ö"},{key:[79,118,101,114,66,97,114,59],value:"‾"},{key:[79,118,101,114,66,114,97,99,101,59],value:"⏞"},{key:[79,118,101,114,66,114,97,99,107,101,116,59],value:"⎴"},{key:[79,118,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏜"},{key:[80,97,114,116,105,97,108,68,59],value:"∂"},{key:[80,99,121,59],value:"П"},{key:[80,102,114,59],value:"𝔓"},{key:[80,104,105,59],value:"Φ"},{key:[80,105,59],value:"Π"},{key:[80,108,117,115,77,105,110,117,115,59],value:"±"},{key:[80,111,105,110,99,97,114,101,112,108,97,110,101,59],value:"ℌ"},{key:[80,111,112,102,59],value:"ℙ"},{key:[80,114,59],value:"⪻"},{key:[80,114,101,99,101,100,101,115,59],value:"≺"},{key:[80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯"},{key:[80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"≼"},{key:[80,114,101,99,101,100,101,115,84,105,108,100,101,59],value:"≾"},{key:[80,114,105,109,101,59],value:"″"},{key:[80,114,111,100,117,99,116,59],value:"∏"},{key:[80,114,111,112,111,114,116,105,111,110,59],value:"∷"},{key:[80,114,111,112,111,114,116,105,111,110,97,108,59],value:"∝"},{key:[80,115,99,114,59],value:"𝒫"},{key:[80,115,105,59],value:"Ψ"},{key:[81,85,79,84,59],value:'"'},{key:[81,102,114,59],value:"𝔔"},{key:[81,111,112,102,59],value:"ℚ"},{key:[81,115,99,114,59],value:"𝒬"},{key:[82,66,97,114,114,59],value:"⤐"},{key:[82,69,71,59],value:"®"},{key:[82,97,99,117,116,101,59],value:"Ŕ"},{key:[82,97,110,103,59],value:"⟫"},{key:[82,97,114,114,59],value:"↠"},{key:[82,97,114,114,116,108,59],value:"⤖"},{key:[82,99,97,114,111,110,59],value:"Ř"},{key:[82,99,101,100,105,108,59],value:"Ŗ"},{key:[82,99,121,59],value:"Р"},{key:[82,101,59],value:"ℜ"},{key:[82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∋"},{key:[82,101,118,101,114,115,101,69,113,117,105,108,105,98,114,105,117,109,59],value:"⇋"},{key:[82,101,118,101,114,115,101,85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥯"},{key:[82,102,114,59],value:"ℜ"},{key:[82,104,111,59],value:"Ρ"},{key:[82,105,103,104,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟩"},{key:[82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[82,105,103,104,116,65,114,114,111,119,66,97,114,59],value:"⇥"},{key:[82,105,103,104,116,65,114,114,111,119,76,101,102,116,65,114,114,111,119,59],value:"⇄"},{key:[82,105,103,104,116,67,101,105,108,105,110,103,59],value:"⌉"},{key:[82,105,103,104,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟧"},{key:[82,105,103,104,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥝"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇂"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥕"},{key:[82,105,103,104,116,70,108,111,111,114,59],value:"⌋"},{key:[82,105,103,104,116,84,101,101,59],value:"⊢"},{key:[82,105,103,104,116,84,101,101,65,114,114,111,119,59],value:"↦"},{key:[82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥛"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⊳"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊵"},{key:[82,105,103,104,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥏"},{key:[82,105,103,104,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥜"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,59],value:"↾"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥔"},{key:[82,105,103,104,116,86,101,99,116,111,114,59],value:"⇀"},{key:[82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥓"},{key:[82,105,103,104,116,97,114,114,111,119,59],value:"⇒"},{key:[82,111,112,102,59],value:"ℝ"},{key:[82,111,117,110,100,73,109,112,108,105,101,115,59],value:"⥰"},{key:[82,114,105,103,104,116,97,114,114,111,119,59],value:"⇛"},{key:[82,115,99,114,59],value:"ℛ"},{key:[82,115,104,59],value:"↱"},{key:[82,117,108,101,68,101,108,97,121,101,100,59],value:"⧴"},{key:[83,72,67,72,99,121,59],value:"Щ"},{key:[83,72,99,121,59],value:"Ш"},{key:[83,79,70,84,99,121,59],value:"Ь"},{key:[83,97,99,117,116,101,59],value:"Ś"},{key:[83,99,59],value:"⪼"},{key:[83,99,97,114,111,110,59],value:"Š"},{key:[83,99,101,100,105,108,59],value:"Ş"},{key:[83,99,105,114,99,59],value:"Ŝ"},{key:[83,99,121,59],value:"С"},{key:[83,102,114,59],value:"𝔖"},{key:[83,104,111,114,116,68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[83,104,111,114,116,76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[83,104,111,114,116,82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[83,104,111,114,116,85,112,65,114,114,111,119,59],value:"↑"},{key:[83,105,103,109,97,59],value:"Σ"},{key:[83,109,97,108,108,67,105,114,99,108,101,59],value:"∘"},{key:[83,111,112,102,59],value:"𝕊"},{key:[83,113,114,116,59],value:"√"},{key:[83,113,117,97,114,101,59],value:"□"},{key:[83,113,117,97,114,101,73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⊓"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊑"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊒"},{key:[83,113,117,97,114,101,85,110,105,111,110,59],value:"⊔"},{key:[83,115,99,114,59],value:"𝒮"},{key:[83,116,97,114,59],value:"⋆"},{key:[83,117,98,59],value:"⋐"},{key:[83,117,98,115,101,116,59],value:"⋐"},{key:[83,117,98,115,101,116,69,113,117,97,108,59],value:"⊆"},{key:[83,117,99,99,101,101,100,115,59],value:"≻"},{key:[83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰"},{key:[83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"≽"},{key:[83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿"},{key:[83,117,99,104,84,104,97,116,59],value:"∋"},{key:[83,117,109,59],value:"∑"},{key:[83,117,112,59],value:"⋑"},{key:[83,117,112,101,114,115,101,116,59],value:"⊃"},{key:[83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊇"},{key:[83,117,112,115,101,116,59],value:"⋑"},{key:[84,72,79,82,78,59],value:"Þ"},{key:[84,82,65,68,69,59],value:"™"},{key:[84,83,72,99,121,59],value:"Ћ"},{key:[84,83,99,121,59],value:"Ц"},{key:[84,97,98,59],value:" "},{key:[84,97,117,59],value:"Τ"},{key:[84,99,97,114,111,110,59],value:"Ť"},{key:[84,99,101,100,105,108,59],value:"Ţ"},{key:[84,99,121,59],value:"Т"},{key:[84,102,114,59],value:"𝔗"},{key:[84,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[84,104,101,116,97,59],value:"Θ"},{key:[84,104,105,99,107,83,112,97,99,101,59],value:"  "},{key:[84,104,105,110,83,112,97,99,101,59],value:" "},{key:[84,105,108,100,101,59],value:"∼"},{key:[84,105,108,100,101,69,113,117,97,108,59],value:"≃"},{key:[84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≅"},{key:[84,105,108,100,101,84,105,108,100,101,59],value:"≈"},{key:[84,111,112,102,59],value:"𝕋"},{key:[84,114,105,112,108,101,68,111,116,59],value:"⃛"},{key:[84,115,99,114,59],value:"𝒯"},{key:[84,115,116,114,111,107,59],value:"Ŧ"},{key:[85,97,99,117,116,101,59],value:"Ú"},{key:[85,97,114,114,59],value:"↟"},{key:[85,97,114,114,111,99,105,114,59],value:"⥉"},{key:[85,98,114,99,121,59],value:"Ў"},{key:[85,98,114,101,118,101,59],value:"Ŭ"},{key:[85,99,105,114,99,59],value:"Û"},{key:[85,99,121,59],value:"У"},{key:[85,100,98,108,97,99,59],value:"Ű"},{key:[85,102,114,59],value:"𝔘"},{key:[85,103,114,97,118,101,59],value:"Ù"},{key:[85,109,97,99,114,59],value:"Ū"},{key:[85,110,100,101,114,66,97,114,59],value:"_"},{key:[85,110,100,101,114,66,114,97,99,101,59],value:"⏟"},{key:[85,110,100,101,114,66,114,97,99,107,101,116,59],value:"⎵"},{key:[85,110,100,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏝"},{key:[85,110,105,111,110,59],value:"⋃"},{key:[85,110,105,111,110,80,108,117,115,59],value:"⊎"},{key:[85,111,103,111,110,59],value:"Ų"},{key:[85,111,112,102,59],value:"𝕌"},{key:[85,112,65,114,114,111,119,59],value:"↑"},{key:[85,112,65,114,114,111,119,66,97,114,59],value:"⤒"},{key:[85,112,65,114,114,111,119,68,111,119,110,65,114,114,111,119,59],value:"⇅"},{key:[85,112,68,111,119,110,65,114,114,111,119,59],value:"↕"},{key:[85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥮"},{key:[85,112,84,101,101,59],value:"⊥"},{key:[85,112,84,101,101,65,114,114,111,119,59],value:"↥"},{key:[85,112,97,114,114,111,119,59],value:"⇑"},{key:[85,112,100,111,119,110,97,114,114,111,119,59],value:"⇕"},{key:[85,112,112,101,114,76,101,102,116,65,114,114,111,119,59],value:"↖"},{key:[85,112,112,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↗"},{key:[85,112,115,105,59],value:"ϒ"},{key:[85,112,115,105,108,111,110,59],value:"Υ"},{key:[85,114,105,110,103,59],value:"Ů"},{key:[85,115,99,114,59],value:"𝒰"},{key:[85,116,105,108,100,101,59],value:"Ũ"},{key:[85,117,109,108,59],value:"Ü"},{key:[86,68,97,115,104,59],value:"⊫"},{key:[86,98,97,114,59],value:"⫫"},{key:[86,99,121,59],value:"В"},{key:[86,100,97,115,104,59],value:"⊩"},{key:[86,100,97,115,104,108,59],value:"⫦"},{key:[86,101,101,59],value:"⋁"},{key:[86,101,114,98,97,114,59],value:"‖"},{key:[86,101,114,116,59],value:"‖"},{key:[86,101,114,116,105,99,97,108,66,97,114,59],value:"∣"},{key:[86,101,114,116,105,99,97,108,76,105,110,101,59],value:"|"},{key:[86,101,114,116,105,99,97,108,83,101,112,97,114,97,116,111,114,59],value:"❘"},{key:[86,101,114,116,105,99,97,108,84,105,108,100,101,59],value:"≀"},{key:[86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:" "},{key:[86,102,114,59],value:"𝔙"},{key:[86,111,112,102,59],value:"𝕍"},{key:[86,115,99,114,59],value:"𝒱"},{key:[86,118,100,97,115,104,59],value:"⊪"},{key:[87,99,105,114,99,59],value:"Ŵ"},{key:[87,101,100,103,101,59],value:"⋀"},{key:[87,102,114,59],value:"𝔚"},{key:[87,111,112,102,59],value:"𝕎"},{key:[87,115,99,114,59],value:"𝒲"},{key:[88,102,114,59],value:"𝔛"},{key:[88,105,59],value:"Ξ"},{key:[88,111,112,102,59],value:"𝕏"},{key:[88,115,99,114,59],value:"𝒳"},{key:[89,65,99,121,59],value:"Я"},{key:[89,73,99,121,59],value:"Ї"},{key:[89,85,99,121,59],value:"Ю"},{key:[89,97,99,117,116,101,59],value:"Ý"},{key:[89,99,105,114,99,59],value:"Ŷ"},{key:[89,99,121,59],value:"Ы"},{key:[89,102,114,59],value:"𝔜"},{key:[89,111,112,102,59],value:"𝕐"},{key:[89,115,99,114,59],value:"𝒴"},{key:[89,117,109,108,59],value:"Ÿ"},{key:[90,72,99,121,59],value:"Ж"},{key:[90,97,99,117,116,101,59],value:"Ź"},{key:[90,99,97,114,111,110,59],value:"Ž"},{key:[90,99,121,59],value:"З"},{key:[90,100,111,116,59],value:"Ż"},{key:[90,101,114,111,87,105,100,116,104,83,112,97,99,101,59],value:"​"},{key:[90,101,116,97,59],value:"Ζ"},{key:[90,102,114,59],value:"ℨ"},{key:[90,111,112,102,59],value:"ℤ"},{key:[90,115,99,114,59],value:"𝒵"},{key:[97,97,99,117,116,101,59],value:"á"},{key:[97,98,114,101,118,101,59],value:"ă"},{key:[97,99,59],value:"∾"},{key:[97,99,69,59],value:"∾̳"},{key:[97,99,100,59],value:"∿"},{key:[97,99,105,114,99,59],value:"â"},{key:[97,99,117,116,101,59],value:"´"},{key:[97,99,121,59],value:"а"},{key:[97,101,108,105,103,59],value:"æ"},{key:[97,102,59],value:"⁡"},{key:[97,102,114,59],value:"𝔞"},{key:[97,103,114,97,118,101,59],value:"à"},{key:[97,108,101,102,115,121,109,59],value:"ℵ"},{key:[97,108,101,112,104,59],value:"ℵ"},{key:[97,108,112,104,97,59],value:"α"},{key:[97,109,97,99,114,59],value:"ā"},{key:[97,109,97,108,103,59],value:"⨿"},{key:[97,109,112,59],value:"&"},{key:[97,110,100,59],value:"∧"},{key:[97,110,100,97,110,100,59],value:"⩕"},{key:[97,110,100,100,59],value:"⩜"},{key:[97,110,100,115,108,111,112,101,59],value:"⩘"},{key:[97,110,100,118,59],value:"⩚"},{key:[97,110,103,59],value:"∠"},{key:[97,110,103,101,59],value:"⦤"},{key:[97,110,103,108,101,59],value:"∠"},{key:[97,110,103,109,115,100,59],value:"∡"},{key:[97,110,103,109,115,100,97,97,59],value:"⦨"},{key:[97,110,103,109,115,100,97,98,59],value:"⦩"},{key:[97,110,103,109,115,100,97,99,59],value:"⦪"},{key:[97,110,103,109,115,100,97,100,59],value:"⦫"},{key:[97,110,103,109,115,100,97,101,59],value:"⦬"},{key:[97,110,103,109,115,100,97,102,59],value:"⦭"},{key:[97,110,103,109,115,100,97,103,59],value:"⦮"},{key:[97,110,103,109,115,100,97,104,59],value:"⦯"},{key:[97,110,103,114,116,59],value:"∟"},{key:[97,110,103,114,116,118,98,59],value:"⊾"},{key:[97,110,103,114,116,118,98,100,59],value:"⦝"},{key:[97,110,103,115,112,104,59],value:"∢"},{key:[97,110,103,115,116,59],value:"Å"},{key:[97,110,103,122,97,114,114,59],value:"⍼"},{key:[97,111,103,111,110,59],value:"ą"},{key:[97,111,112,102,59],value:"𝕒"},{key:[97,112,59],value:"≈"},{key:[97,112,69,59],value:"⩰"},{key:[97,112,97,99,105,114,59],value:"⩯"},{key:[97,112,101,59],value:"≊"},{key:[97,112,105,100,59],value:"≋"},{key:[97,112,111,115,59],value:"'"},{key:[97,112,112,114,111,120,59],value:"≈"},{key:[97,112,112,114,111,120,101,113,59],value:"≊"},{key:[97,114,105,110,103,59],value:"å"},{key:[97,115,99,114,59],value:"𝒶"},{key:[97,115,116,59],value:"*"},{key:[97,115,121,109,112,59],value:"≈"},{key:[97,115,121,109,112,101,113,59],value:"≍"},{key:[97,116,105,108,100,101,59],value:"ã"},{key:[97,117,109,108,59],value:"ä"},{key:[97,119,99,111,110,105,110,116,59],value:"∳"},{key:[97,119,105,110,116,59],value:"⨑"},{key:[98,78,111,116,59],value:"⫭"},{key:[98,97,99,107,99,111,110,103,59],value:"≌"},{key:[98,97,99,107,101,112,115,105,108,111,110,59],value:"϶"},{key:[98,97,99,107,112,114,105,109,101,59],value:"‵"},{key:[98,97,99,107,115,105,109,59],value:"∽"},{key:[98,97,99,107,115,105,109,101,113,59],value:"⋍"},{key:[98,97,114,118,101,101,59],value:"⊽"},{key:[98,97,114,119,101,100,59],value:"⌅"},{key:[98,97,114,119,101,100,103,101,59],value:"⌅"},{key:[98,98,114,107,59],value:"⎵"},{key:[98,98,114,107,116,98,114,107,59],value:"⎶"},{key:[98,99,111,110,103,59],value:"≌"},{key:[98,99,121,59],value:"б"},{key:[98,100,113,117,111,59],value:"„"},{key:[98,101,99,97,117,115,59],value:"∵"},{key:[98,101,99,97,117,115,101,59],value:"∵"},{key:[98,101,109,112,116,121,118,59],value:"⦰"},{key:[98,101,112,115,105,59],value:"϶"},{key:[98,101,114,110,111,117,59],value:"ℬ"},{key:[98,101,116,97,59],value:"β"},{key:[98,101,116,104,59],value:"ℶ"},{key:[98,101,116,119,101,101,110,59],value:"≬"},{key:[98,102,114,59],value:"𝔟"},{key:[98,105,103,99,97,112,59],value:"⋂"},{key:[98,105,103,99,105,114,99,59],value:"◯"},{key:[98,105,103,99,117,112,59],value:"⋃"},{key:[98,105,103,111,100,111,116,59],value:"⨀"},{key:[98,105,103,111,112,108,117,115,59],value:"⨁"},{key:[98,105,103,111,116,105,109,101,115,59],value:"⨂"},{key:[98,105,103,115,113,99,117,112,59],value:"⨆"},{key:[98,105,103,115,116,97,114,59],value:"★"},{key:[98,105,103,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▽"},{key:[98,105,103,116,114,105,97,110,103,108,101,117,112,59],value:"△"},{key:[98,105,103,117,112,108,117,115,59],value:"⨄"},{key:[98,105,103,118,101,101,59],value:"⋁"},{key:[98,105,103,119,101,100,103,101,59],value:"⋀"},{key:[98,107,97,114,111,119,59],value:"⤍"},{key:[98,108,97,99,107,108,111,122,101,110,103,101,59],value:"⧫"},{key:[98,108,97,99,107,115,113,117,97,114,101,59],value:"▪"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,59],value:"▴"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▾"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◂"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▸"},{key:[98,108,97,110,107,59],value:"␣"},{key:[98,108,107,49,50,59],value:"▒"},{key:[98,108,107,49,52,59],value:"░"},{key:[98,108,107,51,52,59],value:"▓"},{key:[98,108,111,99,107,59],value:"█"},{key:[98,110,101,59],value:"=⃥"},{key:[98,110,101,113,117,105,118,59],value:"≡⃥"},{key:[98,110,111,116,59],value:"⌐"},{key:[98,111,112,102,59],value:"𝕓"},{key:[98,111,116,59],value:"⊥"},{key:[98,111,116,116,111,109,59],value:"⊥"},{key:[98,111,119,116,105,101,59],value:"⋈"},{key:[98,111,120,68,76,59],value:"╗"},{key:[98,111,120,68,82,59],value:"╔"},{key:[98,111,120,68,108,59],value:"╖"},{key:[98,111,120,68,114,59],value:"╓"},{key:[98,111,120,72,59],value:"═"},{key:[98,111,120,72,68,59],value:"╦"},{key:[98,111,120,72,85,59],value:"╩"},{key:[98,111,120,72,100,59],value:"╤"},{key:[98,111,120,72,117,59],value:"╧"},{key:[98,111,120,85,76,59],value:"╝"},{key:[98,111,120,85,82,59],value:"╚"},{key:[98,111,120,85,108,59],value:"╜"},{key:[98,111,120,85,114,59],value:"╙"},{key:[98,111,120,86,59],value:"║"},{key:[98,111,120,86,72,59],value:"╬"},{key:[98,111,120,86,76,59],value:"╣"},{key:[98,111,120,86,82,59],value:"╠"},{key:[98,111,120,86,104,59],value:"╫"},{key:[98,111,120,86,108,59],value:"╢"},{key:[98,111,120,86,114,59],value:"╟"},{key:[98,111,120,98,111,120,59],value:"⧉"},{key:[98,111,120,100,76,59],value:"╕"},{key:[98,111,120,100,82,59],value:"╒"},{key:[98,111,120,100,108,59],value:"┐"},{key:[98,111,120,100,114,59],value:"┌"},{key:[98,111,120,104,59],value:"─"},{key:[98,111,120,104,68,59],value:"╥"},{key:[98,111,120,104,85,59],value:"╨"},{key:[98,111,120,104,100,59],value:"┬"},{key:[98,111,120,104,117,59],value:"┴"},{key:[98,111,120,109,105,110,117,115,59],value:"⊟"},{key:[98,111,120,112,108,117,115,59],value:"⊞"},{key:[98,111,120,116,105,109,101,115,59],value:"⊠"},{key:[98,111,120,117,76,59],value:"╛"},{key:[98,111,120,117,82,59],value:"╘"},{key:[98,111,120,117,108,59],value:"┘"},{key:[98,111,120,117,114,59],value:"└"},{key:[98,111,120,118,59],value:"│"},{key:[98,111,120,118,72,59],value:"╪"},{key:[98,111,120,118,76,59],value:"╡"},{key:[98,111,120,118,82,59],value:"╞"},{key:[98,111,120,118,104,59],value:"┼"},{key:[98,111,120,118,108,59],value:"┤"},{key:[98,111,120,118,114,59],value:"├"},{key:[98,112,114,105,109,101,59],value:"‵"},{key:[98,114,101,118,101,59],value:"˘"},{key:[98,114,118,98,97,114,59],value:"¦"},{key:[98,115,99,114,59],value:"𝒷"},{key:[98,115,101,109,105,59],value:"⁏"},{key:[98,115,105,109,59],value:"∽"},{key:[98,115,105,109,101,59],value:"⋍"},{key:[98,115,111,108,59],value:"\\"},{key:[98,115,111,108,98,59],value:"⧅"},{key:[98,115,111,108,104,115,117,98,59],value:"⟈"},{key:[98,117,108,108,59],value:"•"},{key:[98,117,108,108,101,116,59],value:"•"},{key:[98,117,109,112,59],value:"≎"},{key:[98,117,109,112,69,59],value:"⪮"},{key:[98,117,109,112,101,59],value:"≏"},{key:[98,117,109,112,101,113,59],value:"≏"},{key:[99,97,99,117,116,101,59],value:"ć"},{key:[99,97,112,59],value:"∩"},{key:[99,97,112,97,110,100,59],value:"⩄"},{key:[99,97,112,98,114,99,117,112,59],value:"⩉"},{key:[99,97,112,99,97,112,59],value:"⩋"},{key:[99,97,112,99,117,112,59],value:"⩇"},{key:[99,97,112,100,111,116,59],value:"⩀"},{key:[99,97,112,115,59],value:"∩︀"},{key:[99,97,114,101,116,59],value:"⁁"},{key:[99,97,114,111,110,59],value:"ˇ"},{key:[99,99,97,112,115,59],value:"⩍"},{key:[99,99,97,114,111,110,59],value:"č"},{key:[99,99,101,100,105,108,59],value:"ç"},{key:[99,99,105,114,99,59],value:"ĉ"},{key:[99,99,117,112,115,59],value:"⩌"},{key:[99,99,117,112,115,115,109,59],value:"⩐"},{key:[99,100,111,116,59],value:"ċ"},{key:[99,101,100,105,108,59],value:"¸"},{key:[99,101,109,112,116,121,118,59],value:"⦲"},{key:[99,101,110,116,59],value:"¢"},{key:[99,101,110,116,101,114,100,111,116,59],value:"·"},{key:[99,102,114,59],value:"𝔠"},{key:[99,104,99,121,59],value:"ч"},{key:[99,104,101,99,107,59],value:"✓"},{key:[99,104,101,99,107,109,97,114,107,59],value:"✓"},{key:[99,104,105,59],value:"χ"},{key:[99,105,114,59],value:"○"},{key:[99,105,114,69,59],value:"⧃"},{key:[99,105,114,99,59],value:"ˆ"},{key:[99,105,114,99,101,113,59],value:"≗"},{key:[99,105,114,99,108,101,97,114,114,111,119,108,101,102,116,59],value:"↺"},{key:[99,105,114,99,108,101,97,114,114,111,119,114,105,103,104,116,59],value:"↻"},{key:[99,105,114,99,108,101,100,82,59],value:"®"},{key:[99,105,114,99,108,101,100,83,59],value:"Ⓢ"},{key:[99,105,114,99,108,101,100,97,115,116,59],value:"⊛"},{key:[99,105,114,99,108,101,100,99,105,114,99,59],value:"⊚"},{key:[99,105,114,99,108,101,100,100,97,115,104,59],value:"⊝"},{key:[99,105,114,101,59],value:"≗"},{key:[99,105,114,102,110,105,110,116,59],value:"⨐"},{key:[99,105,114,109,105,100,59],value:"⫯"},{key:[99,105,114,115,99,105,114,59],value:"⧂"},{key:[99,108,117,98,115,59],value:"♣"},{key:[99,108,117,98,115,117,105,116,59],value:"♣"},{key:[99,111,108,111,110,59],value:":"},{key:[99,111,108,111,110,101,59],value:"≔"},{key:[99,111,108,111,110,101,113,59],value:"≔"},{key:[99,111,109,109,97,59],value:","},{key:[99,111,109,109,97,116,59],value:"@"},{key:[99,111,109,112,59],value:"∁"},{key:[99,111,109,112,102,110,59],value:"∘"},{key:[99,111,109,112,108,101,109,101,110,116,59],value:"∁"},{key:[99,111,109,112,108,101,120,101,115,59],value:"ℂ"},{key:[99,111,110,103,59],value:"≅"},{key:[99,111,110,103,100,111,116,59],value:"⩭"},{key:[99,111,110,105,110,116,59],value:"∮"},{key:[99,111,112,102,59],value:"𝕔"},{key:[99,111,112,114,111,100,59],value:"∐"},{key:[99,111,112,121,59],value:"©"},{key:[99,111,112,121,115,114,59],value:"℗"},{key:[99,114,97,114,114,59],value:"↵"},{key:[99,114,111,115,115,59],value:"✗"},{key:[99,115,99,114,59],value:"𝒸"},{key:[99,115,117,98,59],value:"⫏"},{key:[99,115,117,98,101,59],value:"⫑"},{key:[99,115,117,112,59],value:"⫐"},{key:[99,115,117,112,101,59],value:"⫒"},{key:[99,116,100,111,116,59],value:"⋯"},{key:[99,117,100,97,114,114,108,59],value:"⤸"},{key:[99,117,100,97,114,114,114,59],value:"⤵"},{key:[99,117,101,112,114,59],value:"⋞"},{key:[99,117,101,115,99,59],value:"⋟"},{key:[99,117,108,97,114,114,59],value:"↶"},{key:[99,117,108,97,114,114,112,59],value:"⤽"},{key:[99,117,112,59],value:"∪"},{key:[99,117,112,98,114,99,97,112,59],value:"⩈"},{key:[99,117,112,99,97,112,59],value:"⩆"},{key:[99,117,112,99,117,112,59],value:"⩊"},{key:[99,117,112,100,111,116,59],value:"⊍"},{key:[99,117,112,111,114,59],value:"⩅"},{key:[99,117,112,115,59],value:"∪︀"},{key:[99,117,114,97,114,114,59],value:"↷"},{key:[99,117,114,97,114,114,109,59],value:"⤼"},{key:[99,117,114,108,121,101,113,112,114,101,99,59],value:"⋞"},{key:[99,117,114,108,121,101,113,115,117,99,99,59],value:"⋟"},{key:[99,117,114,108,121,118,101,101,59],value:"⋎"},{key:[99,117,114,108,121,119,101,100,103,101,59],value:"⋏"},{key:[99,117,114,114,101,110,59],value:"¤"},{key:[99,117,114,118,101,97,114,114,111,119,108,101,102,116,59],value:"↶"},{key:[99,117,114,118,101,97,114,114,111,119,114,105,103,104,116,59],value:"↷"},{key:[99,117,118,101,101,59],value:"⋎"},{key:[99,117,119,101,100,59],value:"⋏"},{key:[99,119,99,111,110,105,110,116,59],value:"∲"},{key:[99,119,105,110,116,59],value:"∱"},{key:[99,121,108,99,116,121,59],value:"⌭"},{key:[100,65,114,114,59],value:"⇓"},{key:[100,72,97,114,59],value:"⥥"},{key:[100,97,103,103,101,114,59],value:"†"},{key:[100,97,108,101,116,104,59],value:"ℸ"},{key:[100,97,114,114,59],value:"↓"},{key:[100,97,115,104,59],value:"‐"},{key:[100,97,115,104,118,59],value:"⊣"},{key:[100,98,107,97,114,111,119,59],value:"⤏"},{key:[100,98,108,97,99,59],value:"˝"},{key:[100,99,97,114,111,110,59],value:"ď"},{key:[100,99,121,59],value:"д"},{key:[100,100,59],value:"ⅆ"},{key:[100,100,97,103,103,101,114,59],value:"‡"},{key:[100,100,97,114,114,59],value:"⇊"},{key:[100,100,111,116,115,101,113,59],value:"⩷"},{key:[100,101,103,59],value:"°"},{key:[100,101,108,116,97,59],value:"δ"},{key:[100,101,109,112,116,121,118,59],value:"⦱"},{key:[100,102,105,115,104,116,59],value:"⥿"},{key:[100,102,114,59],value:"𝔡"},{key:[100,104,97,114,108,59],value:"⇃"},{key:[100,104,97,114,114,59],value:"⇂"},{key:[100,105,97,109,59],value:"⋄"},{key:[100,105,97,109,111,110,100,59],value:"⋄"},{key:[100,105,97,109,111,110,100,115,117,105,116,59],value:"♦"},{key:[100,105,97,109,115,59],value:"♦"},{key:[100,105,101,59],value:"¨"},{key:[100,105,103,97,109,109,97,59],value:"ϝ"},{key:[100,105,115,105,110,59],value:"⋲"},{key:[100,105,118,59],value:"÷"},{key:[100,105,118,105,100,101,59],value:"÷"},{key:[100,105,118,105,100,101,111,110,116,105,109,101,115,59],value:"⋇"},{key:[100,105,118,111,110,120,59],value:"⋇"},{key:[100,106,99,121,59],value:"ђ"},{key:[100,108,99,111,114,110,59],value:"⌞"},{key:[100,108,99,114,111,112,59],value:"⌍"},{key:[100,111,108,108,97,114,59],value:"$"},{key:[100,111,112,102,59],value:"𝕕"},{key:[100,111,116,59],value:"˙"},{key:[100,111,116,101,113,59],value:"≐"},{key:[100,111,116,101,113,100,111,116,59],value:"≑"},{key:[100,111,116,109,105,110,117,115,59],value:"∸"},{key:[100,111,116,112,108,117,115,59],value:"∔"},{key:[100,111,116,115,113,117,97,114,101,59],value:"⊡"},{key:[100,111,117,98,108,101,98,97,114,119,101,100,103,101,59],value:"⌆"},{key:[100,111,119,110,97,114,114,111,119,59],value:"↓"},{key:[100,111,119,110,100,111,119,110,97,114,114,111,119,115,59],value:"⇊"},{key:[100,111,119,110,104,97,114,112,111,111,110,108,101,102,116,59],value:"⇃"},{key:[100,111,119,110,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"⇂"},{key:[100,114,98,107,97,114,111,119,59],value:"⤐"},{key:[100,114,99,111,114,110,59],value:"⌟"},{key:[100,114,99,114,111,112,59],value:"⌌"},{key:[100,115,99,114,59],value:"𝒹"},{key:[100,115,99,121,59],value:"ѕ"},{key:[100,115,111,108,59],value:"⧶"},{key:[100,115,116,114,111,107,59],value:"đ"},{key:[100,116,100,111,116,59],value:"⋱"},{key:[100,116,114,105,59],value:"▿"},{key:[100,116,114,105,102,59],value:"▾"},{key:[100,117,97,114,114,59],value:"⇵"},{key:[100,117,104,97,114,59],value:"⥯"},{key:[100,119,97,110,103,108,101,59],value:"⦦"},{key:[100,122,99,121,59],value:"џ"},{key:[100,122,105,103,114,97,114,114,59],value:"⟿"},{key:[101,68,68,111,116,59],value:"⩷"},{key:[101,68,111,116,59],value:"≑"},{key:[101,97,99,117,116,101,59],value:"é"},{key:[101,97,115,116,101,114,59],value:"⩮"},{key:[101,99,97,114,111,110,59],value:"ě"},{key:[101,99,105,114,59],value:"≖"},{key:[101,99,105,114,99,59],value:"ê"},{key:[101,99,111,108,111,110,59],value:"≕"},{key:[101,99,121,59],value:"э"},{key:[101,100,111,116,59],value:"ė"},{key:[101,101,59],value:"ⅇ"},{key:[101,102,68,111,116,59],value:"≒"},{key:[101,102,114,59],value:"𝔢"},{key:[101,103,59],value:"⪚"},{key:[101,103,114,97,118,101,59],value:"è"},{key:[101,103,115,59],value:"⪖"},{key:[101,103,115,100,111,116,59],value:"⪘"},{key:[101,108,59],value:"⪙"},{key:[101,108,105,110,116,101,114,115,59],value:"⏧"},{key:[101,108,108,59],value:"ℓ"},{key:[101,108,115,59],value:"⪕"},{key:[101,108,115,100,111,116,59],value:"⪗"},{key:[101,109,97,99,114,59],value:"ē"},{key:[101,109,112,116,121,59],value:"∅"},{key:[101,109,112,116,121,115,101,116,59],value:"∅"},{key:[101,109,112,116,121,118,59],value:"∅"},{key:[101,109,115,112,49,51,59],value:" "},{key:[101,109,115,112,49,52,59],value:" "},{key:[101,109,115,112,59],value:" "},{key:[101,110,103,59],value:"ŋ"},{key:[101,110,115,112,59],value:" "},{key:[101,111,103,111,110,59],value:"ę"},{key:[101,111,112,102,59],value:"𝕖"},{key:[101,112,97,114,59],value:"⋕"},{key:[101,112,97,114,115,108,59],value:"⧣"},{key:[101,112,108,117,115,59],value:"⩱"},{key:[101,112,115,105,59],value:"ε"},{key:[101,112,115,105,108,111,110,59],value:"ε"},{key:[101,112,115,105,118,59],value:"ϵ"},{key:[101,113,99,105,114,99,59],value:"≖"},{key:[101,113,99,111,108,111,110,59],value:"≕"},{key:[101,113,115,105,109,59],value:"≂"},{key:[101,113,115,108,97,110,116,103,116,114,59],value:"⪖"},{key:[101,113,115,108,97,110,116,108,101,115,115,59],value:"⪕"},{key:[101,113,117,97,108,115,59],value:"="},{key:[101,113,117,101,115,116,59],value:"≟"},{key:[101,113,117,105,118,59],value:"≡"},{key:[101,113,117,105,118,68,68,59],value:"⩸"},{key:[101,113,118,112,97,114,115,108,59],value:"⧥"},{key:[101,114,68,111,116,59],value:"≓"},{key:[101,114,97,114,114,59],value:"⥱"},{key:[101,115,99,114,59],value:"ℯ"},{key:[101,115,100,111,116,59],value:"≐"},{key:[101,115,105,109,59],value:"≂"},{key:[101,116,97,59],value:"η"},{key:[101,116,104,59],value:"ð"},{key:[101,117,109,108,59],value:"ë"},{key:[101,117,114,111,59],value:"€"},{key:[101,120,99,108,59],value:"!"},{key:[101,120,105,115,116,59],value:"∃"},{key:[101,120,112,101,99,116,97,116,105,111,110,59],value:"ℰ"},{key:[101,120,112,111,110,101,110,116,105,97,108,101,59],value:"ⅇ"},{key:[102,97,108,108,105,110,103,100,111,116,115,101,113,59],value:"≒"},{key:[102,99,121,59],value:"ф"},{key:[102,101,109,97,108,101,59],value:"♀"},{key:[102,102,105,108,105,103,59],value:"ffi"},{key:[102,102,108,105,103,59],value:"ff"},{key:[102,102,108,108,105,103,59],value:"ffl"},{key:[102,102,114,59],value:"𝔣"},{key:[102,105,108,105,103,59],value:"fi"},{key:[102,106,108,105,103,59],value:"fj"},{key:[102,108,97,116,59],value:"♭"},{key:[102,108,108,105,103,59],value:"fl"},{key:[102,108,116,110,115,59],value:"▱"},{key:[102,110,111,102,59],value:"ƒ"},{key:[102,111,112,102,59],value:"𝕗"},{key:[102,111,114,97,108,108,59],value:"∀"},{key:[102,111,114,107,59],value:"⋔"},{key:[102,111,114,107,118,59],value:"⫙"},{key:[102,112,97,114,116,105,110,116,59],value:"⨍"},{key:[102,114,97,99,49,50,59],value:"½"},{key:[102,114,97,99,49,51,59],value:"⅓"},{key:[102,114,97,99,49,52,59],value:"¼"},{key:[102,114,97,99,49,53,59],value:"⅕"},{key:[102,114,97,99,49,54,59],value:"⅙"},{key:[102,114,97,99,49,56,59],value:"⅛"},{key:[102,114,97,99,50,51,59],value:"⅔"},{key:[102,114,97,99,50,53,59],value:"⅖"},{key:[102,114,97,99,51,52,59],value:"¾"},{key:[102,114,97,99,51,53,59],value:"⅗"},{key:[102,114,97,99,51,56,59],value:"⅜"},{key:[102,114,97,99,52,53,59],value:"⅘"},{key:[102,114,97,99,53,54,59],value:"⅚"},{key:[102,114,97,99,53,56,59],value:"⅝"},{key:[102,114,97,99,55,56,59],value:"⅞"},{key:[102,114,97,115,108,59],value:"⁄"},{key:[102,114,111,119,110,59],value:"⌢"},{key:[102,115,99,114,59],value:"𝒻"},{key:[103,69,59],value:"≧"},{key:[103,69,108,59],value:"⪌"},{key:[103,97,99,117,116,101,59],value:"ǵ"},{key:[103,97,109,109,97,59],value:"γ"},{key:[103,97,109,109,97,100,59],value:"ϝ"},{key:[103,97,112,59],value:"⪆"},{key:[103,98,114,101,118,101,59],value:"ğ"},{key:[103,99,105,114,99,59],value:"ĝ"},{key:[103,99,121,59],value:"г"},{key:[103,100,111,116,59],value:"ġ"},{key:[103,101,59],value:"≥"},{key:[103,101,108,59],value:"⋛"},{key:[103,101,113,59],value:"≥"},{key:[103,101,113,113,59],value:"≧"},{key:[103,101,113,115,108,97,110,116,59],value:"⩾"},{key:[103,101,115,59],value:"⩾"},{key:[103,101,115,99,99,59],value:"⪩"},{key:[103,101,115,100,111,116,59],value:"⪀"},{key:[103,101,115,100,111,116,111,59],value:"⪂"},{key:[103,101,115,100,111,116,111,108,59],value:"⪄"},{key:[103,101,115,108,59],value:"⋛︀"},{key:[103,101,115,108,101,115,59],value:"⪔"},{key:[103,102,114,59],value:"𝔤"},{key:[103,103,59],value:"≫"},{key:[103,103,103,59],value:"⋙"},{key:[103,105,109,101,108,59],value:"ℷ"},{key:[103,106,99,121,59],value:"ѓ"},{key:[103,108,59],value:"≷"},{key:[103,108,69,59],value:"⪒"},{key:[103,108,97,59],value:"⪥"},{key:[103,108,106,59],value:"⪤"},{key:[103,110,69,59],value:"≩"},{key:[103,110,97,112,59],value:"⪊"},{key:[103,110,97,112,112,114,111,120,59],value:"⪊"},{key:[103,110,101,59],value:"⪈"},{key:[103,110,101,113,59],value:"⪈"},{key:[103,110,101,113,113,59],value:"≩"},{key:[103,110,115,105,109,59],value:"⋧"},{key:[103,111,112,102,59],value:"𝕘"},{key:[103,114,97,118,101,59],value:"`"},{key:[103,115,99,114,59],value:"ℊ"},{key:[103,115,105,109,59],value:"≳"},{key:[103,115,105,109,101,59],value:"⪎"},{key:[103,115,105,109,108,59],value:"⪐"},{key:[103,116,59],value:">"},{key:[103,116,99,99,59],value:"⪧"},{key:[103,116,99,105,114,59],value:"⩺"},{key:[103,116,100,111,116,59],value:"⋗"},{key:[103,116,108,80,97,114,59],value:"⦕"},{key:[103,116,113,117,101,115,116,59],value:"⩼"},{key:[103,116,114,97,112,112,114,111,120,59],value:"⪆"},{key:[103,116,114,97,114,114,59],value:"⥸"},{key:[103,116,114,100,111,116,59],value:"⋗"},{key:[103,116,114,101,113,108,101,115,115,59],value:"⋛"},{key:[103,116,114,101,113,113,108,101,115,115,59],value:"⪌"},{key:[103,116,114,108,101,115,115,59],value:"≷"},{key:[103,116,114,115,105,109,59],value:"≳"},{key:[103,118,101,114,116,110,101,113,113,59],value:"≩︀"},{key:[103,118,110,69,59],value:"≩︀"},{key:[104,65,114,114,59],value:"⇔"},{key:[104,97,105,114,115,112,59],value:" "},{key:[104,97,108,102,59],value:"½"},{key:[104,97,109,105,108,116,59],value:"ℋ"},{key:[104,97,114,100,99,121,59],value:"ъ"},{key:[104,97,114,114,59],value:"↔"},{key:[104,97,114,114,99,105,114,59],value:"⥈"},{key:[104,97,114,114,119,59],value:"↭"},{key:[104,98,97,114,59],value:"ℏ"},{key:[104,99,105,114,99,59],value:"ĥ"},{key:[104,101,97,114,116,115,59],value:"♥"},{key:[104,101,97,114,116,115,117,105,116,59],value:"♥"},{key:[104,101,108,108,105,112,59],value:"…"},{key:[104,101,114,99,111,110,59],value:"⊹"},{key:[104,102,114,59],value:"𝔥"},{key:[104,107,115,101,97,114,111,119,59],value:"⤥"},{key:[104,107,115,119,97,114,111,119,59],value:"⤦"},{key:[104,111,97,114,114,59],value:"⇿"},{key:[104,111,109,116,104,116,59],value:"∻"},{key:[104,111,111,107,108,101,102,116,97,114,114,111,119,59],value:"↩"},{key:[104,111,111,107,114,105,103,104,116,97,114,114,111,119,59],value:"↪"},{key:[104,111,112,102,59],value:"𝕙"},{key:[104,111,114,98,97,114,59],value:"―"},{key:[104,115,99,114,59],value:"𝒽"},{key:[104,115,108,97,115,104,59],value:"ℏ"},{key:[104,115,116,114,111,107,59],value:"ħ"},{key:[104,121,98,117,108,108,59],value:"⁃"},{key:[104,121,112,104,101,110,59],value:"‐"},{key:[105,97,99,117,116,101,59],value:"í"},{key:[105,99,59],value:"⁣"},{key:[105,99,105,114,99,59],value:"î"},{key:[105,99,121,59],value:"и"},{key:[105,101,99,121,59],value:"е"},{key:[105,101,120,99,108,59],value:"¡"},{key:[105,102,102,59],value:"⇔"},{key:[105,102,114,59],value:"𝔦"},{key:[105,103,114,97,118,101,59],value:"ì"},{key:[105,105,59],value:"ⅈ"},{key:[105,105,105,105,110,116,59],value:"⨌"},{key:[105,105,105,110,116,59],value:"∭"},{key:[105,105,110,102,105,110,59],value:"⧜"},{key:[105,105,111,116,97,59],value:"℩"},{key:[105,106,108,105,103,59],value:"ij"},{key:[105,109,97,99,114,59],value:"ī"},{key:[105,109,97,103,101,59],value:"ℑ"},{key:[105,109,97,103,108,105,110,101,59],value:"ℐ"},{key:[105,109,97,103,112,97,114,116,59],value:"ℑ"},{key:[105,109,97,116,104,59],value:"ı"},{key:[105,109,111,102,59],value:"⊷"},{key:[105,109,112,101,100,59],value:"Ƶ"},{key:[105,110,59],value:"∈"},{key:[105,110,99,97,114,101,59],value:"℅"},{key:[105,110,102,105,110,59],value:"∞"},{key:[105,110,102,105,110,116,105,101,59],value:"⧝"},{key:[105,110,111,100,111,116,59],value:"ı"},{key:[105,110,116,59],value:"∫"},{key:[105,110,116,99,97,108,59],value:"⊺"},{key:[105,110,116,101,103,101,114,115,59],value:"ℤ"},{key:[105,110,116,101,114,99,97,108,59],value:"⊺"},{key:[105,110,116,108,97,114,104,107,59],value:"⨗"},{key:[105,110,116,112,114,111,100,59],value:"⨼"},{key:[105,111,99,121,59],value:"ё"},{key:[105,111,103,111,110,59],value:"į"},{key:[105,111,112,102,59],value:"𝕚"},{key:[105,111,116,97,59],value:"ι"},{key:[105,112,114,111,100,59],value:"⨼"},{key:[105,113,117,101,115,116,59],value:"¿"},{key:[105,115,99,114,59],value:"𝒾"},{key:[105,115,105,110,59],value:"∈"},{key:[105,115,105,110,69,59],value:"⋹"},{key:[105,115,105,110,100,111,116,59],value:"⋵"},{key:[105,115,105,110,115,59],value:"⋴"},{key:[105,115,105,110,115,118,59],value:"⋳"},{key:[105,115,105,110,118,59],value:"∈"},{key:[105,116,59],value:"⁢"},{key:[105,116,105,108,100,101,59],value:"ĩ"},{key:[105,117,107,99,121,59],value:"і"},{key:[105,117,109,108,59],value:"ï"},{key:[106,99,105,114,99,59],value:"ĵ"},{key:[106,99,121,59],value:"й"},{key:[106,102,114,59],value:"𝔧"},{key:[106,109,97,116,104,59],value:"ȷ"},{key:[106,111,112,102,59],value:"𝕛"},{key:[106,115,99,114,59],value:"𝒿"},{key:[106,115,101,114,99,121,59],value:"ј"},{key:[106,117,107,99,121,59],value:"є"},{key:[107,97,112,112,97,59],value:"κ"},{key:[107,97,112,112,97,118,59],value:"ϰ"},{key:[107,99,101,100,105,108,59],value:"ķ"},{key:[107,99,121,59],value:"к"},{key:[107,102,114,59],value:"𝔨"},{key:[107,103,114,101,101,110,59],value:"ĸ"},{key:[107,104,99,121,59],value:"х"},{key:[107,106,99,121,59],value:"ќ"},{key:[107,111,112,102,59],value:"𝕜"},{key:[107,115,99,114,59],value:"𝓀"},{key:[108,65,97,114,114,59],value:"⇚"},{key:[108,65,114,114,59],value:"⇐"},{key:[108,65,116,97,105,108,59],value:"⤛"},{key:[108,66,97,114,114,59],value:"⤎"},{key:[108,69,59],value:"≦"},{key:[108,69,103,59],value:"⪋"},{key:[108,72,97,114,59],value:"⥢"},{key:[108,97,99,117,116,101,59],value:"ĺ"},{key:[108,97,101,109,112,116,121,118,59],value:"⦴"},{key:[108,97,103,114,97,110,59],value:"ℒ"},{key:[108,97,109,98,100,97,59],value:"λ"},{key:[108,97,110,103,59],value:"⟨"},{key:[108,97,110,103,100,59],value:"⦑"},{key:[108,97,110,103,108,101,59],value:"⟨"},{key:[108,97,112,59],value:"⪅"},{key:[108,97,113,117,111,59],value:"«"},{key:[108,97,114,114,59],value:"←"},{key:[108,97,114,114,98,59],value:"⇤"},{key:[108,97,114,114,98,102,115,59],value:"⤟"},{key:[108,97,114,114,102,115,59],value:"⤝"},{key:[108,97,114,114,104,107,59],value:"↩"},{key:[108,97,114,114,108,112,59],value:"↫"},{key:[108,97,114,114,112,108,59],value:"⤹"},{key:[108,97,114,114,115,105,109,59],value:"⥳"},{key:[108,97,114,114,116,108,59],value:"↢"},{key:[108,97,116,59],value:"⪫"},{key:[108,97,116,97,105,108,59],value:"⤙"},{key:[108,97,116,101,59],value:"⪭"},{key:[108,97,116,101,115,59],value:"⪭︀"},{key:[108,98,97,114,114,59],value:"⤌"},{key:[108,98,98,114,107,59],value:"❲"},{key:[108,98,114,97,99,101,59],value:"{ "},{key:[108,98,114,97,99,107,59],value:"["},{key:[108,98,114,107,101,59],value:"⦋"},{key:[108,98,114,107,115,108,100,59],value:"⦏"},{key:[108,98,114,107,115,108,117,59],value:"⦍"},{key:[108,99,97,114,111,110,59],value:"ľ"},{key:[108,99,101,100,105,108,59],value:"ļ"},{key:[108,99,101,105,108,59],value:"⌈"},{key:[108,99,117,98,59],value:"{ "},{key:[108,99,121,59],value:"л"},{key:[108,100,99,97,59],value:"⤶"},{key:[108,100,113,117,111,59],value:"“"},{key:[108,100,113,117,111,114,59],value:"„"},{key:[108,100,114,100,104,97,114,59],value:"⥧"},{key:[108,100,114,117,115,104,97,114,59],value:"⥋"},{key:[108,100,115,104,59],value:"↲"},{key:[108,101,59],value:"≤"},{key:[108,101,102,116,97,114,114,111,119,59],value:"←"},{key:[108,101,102,116,97,114,114,111,119,116,97,105,108,59],value:"↢"},{key:[108,101,102,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"↽"},{key:[108,101,102,116,104,97,114,112,111,111,110,117,112,59],value:"↼"},{key:[108,101,102,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇇"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↔"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇆"},{key:[108,101,102,116,114,105,103,104,116,104,97,114,112,111,111,110,115,59],value:"⇋"},{key:[108,101,102,116,114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↭"},{key:[108,101,102,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋋"},{key:[108,101,103,59],value:"⋚"},{key:[108,101,113,59],value:"≤"},{key:[108,101,113,113,59],value:"≦"},{key:[108,101,113,115,108,97,110,116,59],value:"⩽"},{key:[108,101,115,59],value:"⩽"},{key:[108,101,115,99,99,59],value:"⪨"},{key:[108,101,115,100,111,116,59],value:"⩿"},{key:[108,101,115,100,111,116,111,59],value:"⪁"},{key:[108,101,115,100,111,116,111,114,59],value:"⪃"},{key:[108,101,115,103,59],value:"⋚︀"},{key:[108,101,115,103,101,115,59],value:"⪓"},{key:[108,101,115,115,97,112,112,114,111,120,59],value:"⪅"},{key:[108,101,115,115,100,111,116,59],value:"⋖"},{key:[108,101,115,115,101,113,103,116,114,59],value:"⋚"},{key:[108,101,115,115,101,113,113,103,116,114,59],value:"⪋"},{key:[108,101,115,115,103,116,114,59],value:"≶"},{key:[108,101,115,115,115,105,109,59],value:"≲"},{key:[108,102,105,115,104,116,59],value:"⥼"},{key:[108,102,108,111,111,114,59],value:"⌊"},{key:[108,102,114,59],value:"𝔩"},{key:[108,103,59],value:"≶"},{key:[108,103,69,59],value:"⪑"},{key:[108,104,97,114,100,59],value:"↽"},{key:[108,104,97,114,117,59],value:"↼"},{key:[108,104,97,114,117,108,59],value:"⥪"},{key:[108,104,98,108,107,59],value:"▄"},{key:[108,106,99,121,59],value:"љ"},{key:[108,108,59],value:"≪"},{key:[108,108,97,114,114,59],value:"⇇"},{key:[108,108,99,111,114,110,101,114,59],value:"⌞"},{key:[108,108,104,97,114,100,59],value:"⥫"},{key:[108,108,116,114,105,59],value:"◺"},{key:[108,109,105,100,111,116,59],value:"ŀ"},{key:[108,109,111,117,115,116,59],value:"⎰"},{key:[108,109,111,117,115,116,97,99,104,101,59],value:"⎰"},{key:[108,110,69,59],value:"≨"},{key:[108,110,97,112,59],value:"⪉"},{key:[108,110,97,112,112,114,111,120,59],value:"⪉"},{key:[108,110,101,59],value:"⪇"},{key:[108,110,101,113,59],value:"⪇"},{key:[108,110,101,113,113,59],value:"≨"},{key:[108,110,115,105,109,59],value:"⋦"},{key:[108,111,97,110,103,59],value:"⟬"},{key:[108,111,97,114,114,59],value:"⇽"},{key:[108,111,98,114,107,59],value:"⟦"},{key:[108,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟵"},{key:[108,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟷"},{key:[108,111,110,103,109,97,112,115,116,111,59],value:"⟼"},{key:[108,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟶"},{key:[108,111,111,112,97,114,114,111,119,108,101,102,116,59],value:"↫"},{key:[108,111,111,112,97,114,114,111,119,114,105,103,104,116,59],value:"↬"},{key:[108,111,112,97,114,59],value:"⦅"},{key:[108,111,112,102,59],value:"𝕝"},{key:[108,111,112,108,117,115,59],value:"⨭"},{key:[108,111,116,105,109,101,115,59],value:"⨴"},{key:[108,111,119,97,115,116,59],value:"∗"},{key:[108,111,119,98,97,114,59],value:"_"},{key:[108,111,122,59],value:"◊"},{key:[108,111,122,101,110,103,101,59],value:"◊"},{key:[108,111,122,102,59],value:"⧫"},{key:[108,112,97,114,59],value:"("},{key:[108,112,97,114,108,116,59],value:"⦓"},{key:[108,114,97,114,114,59],value:"⇆"},{key:[108,114,99,111,114,110,101,114,59],value:"⌟"},{key:[108,114,104,97,114,59],value:"⇋"},{key:[108,114,104,97,114,100,59],value:"⥭"},{key:[108,114,109,59],value:"‎"},{key:[108,114,116,114,105,59],value:"⊿"},{key:[108,115,97,113,117,111,59],value:"‹"},{key:[108,115,99,114,59],value:"𝓁"},{key:[108,115,104,59],value:"↰"},{key:[108,115,105,109,59],value:"≲"},{key:[108,115,105,109,101,59],value:"⪍"},{key:[108,115,105,109,103,59],value:"⪏"},{key:[108,115,113,98,59],value:"["},{key:[108,115,113,117,111,59],value:"‘"},{key:[108,115,113,117,111,114,59],value:"‚"},{key:[108,115,116,114,111,107,59],value:"ł"},{key:[108,116,59],value:"<"},{key:[108,116,99,99,59],value:"⪦"},{key:[108,116,99,105,114,59],value:"⩹"},{key:[108,116,100,111,116,59],value:"⋖"},{key:[108,116,104,114,101,101,59],value:"⋋"},{key:[108,116,105,109,101,115,59],value:"⋉"},{key:[108,116,108,97,114,114,59],value:"⥶"},{key:[108,116,113,117,101,115,116,59],value:"⩻"},{key:[108,116,114,80,97,114,59],value:"⦖"},{key:[108,116,114,105,59],value:"◃"},{key:[108,116,114,105,101,59],value:"⊴"},{key:[108,116,114,105,102,59],value:"◂"},{key:[108,117,114,100,115,104,97,114,59],value:"⥊"},{key:[108,117,114,117,104,97,114,59],value:"⥦"},{key:[108,118,101,114,116,110,101,113,113,59],value:"≨︀"},{key:[108,118,110,69,59],value:"≨︀"},{key:[109,68,68,111,116,59],value:"∺"},{key:[109,97,99,114,59],value:"¯"},{key:[109,97,108,101,59],value:"♂"},{key:[109,97,108,116,59],value:"✠"},{key:[109,97,108,116,101,115,101,59],value:"✠"},{key:[109,97,112,59],value:"↦"},{key:[109,97,112,115,116,111,59],value:"↦"},{key:[109,97,112,115,116,111,100,111,119,110,59],value:"↧"},{key:[109,97,112,115,116,111,108,101,102,116,59],value:"↤"},{key:[109,97,112,115,116,111,117,112,59],value:"↥"},{key:[109,97,114,107,101,114,59],value:"▮"},{key:[109,99,111,109,109,97,59],value:"⨩"},{key:[109,99,121,59],value:"м"},{key:[109,100,97,115,104,59],value:"—"},{key:[109,101,97,115,117,114,101,100,97,110,103,108,101,59],value:"∡"},{key:[109,102,114,59],value:"𝔪"},{key:[109,104,111,59],value:"℧"},{key:[109,105,99,114,111,59],value:"µ"},{key:[109,105,100,59],value:"∣"},{key:[109,105,100,97,115,116,59],value:"*"},{key:[109,105,100,99,105,114,59],value:"⫰"},{key:[109,105,100,100,111,116,59],value:"·"},{key:[109,105,110,117,115,59],value:"−"},{key:[109,105,110,117,115,98,59],value:"⊟"},{key:[109,105,110,117,115,100,59],value:"∸"},{key:[109,105,110,117,115,100,117,59],value:"⨪"},{key:[109,108,99,112,59],value:"⫛"},{key:[109,108,100,114,59],value:"…"},{key:[109,110,112,108,117,115,59],value:"∓"},{key:[109,111,100,101,108,115,59],value:"⊧"},{key:[109,111,112,102,59],value:"𝕞"},{key:[109,112,59],value:"∓"},{key:[109,115,99,114,59],value:"𝓂"},{key:[109,115,116,112,111,115,59],value:"∾"},{key:[109,117,59],value:"μ"},{key:[109,117,108,116,105,109,97,112,59],value:"⊸"},{key:[109,117,109,97,112,59],value:"⊸"},{key:[110,71,103,59],value:"⋙̸"},{key:[110,71,116,59],value:"≫⃒"},{key:[110,71,116,118,59],value:"≫̸"},{key:[110,76,101,102,116,97,114,114,111,119,59],value:"⇍"},{key:[110,76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇎"},{key:[110,76,108,59],value:"⋘̸"},{key:[110,76,116,59],value:"≪⃒"},{key:[110,76,116,118,59],value:"≪̸"},{key:[110,82,105,103,104,116,97,114,114,111,119,59],value:"⇏"},{key:[110,86,68,97,115,104,59],value:"⊯"},{key:[110,86,100,97,115,104,59],value:"⊮"},{key:[110,97,98,108,97,59],value:"∇"},{key:[110,97,99,117,116,101,59],value:"ń"},{key:[110,97,110,103,59],value:"∠⃒"},{key:[110,97,112,59],value:"≉"},{key:[110,97,112,69,59],value:"⩰̸"},{key:[110,97,112,105,100,59],value:"≋̸"},{key:[110,97,112,111,115,59],value:"ʼn"},{key:[110,97,112,112,114,111,120,59],value:"≉"},{key:[110,97,116,117,114,59],value:"♮"},{key:[110,97,116,117,114,97,108,59],value:"♮"},{key:[110,97,116,117,114,97,108,115,59],value:"ℕ"},{key:[110,98,115,112,59],value:" "},{key:[110,98,117,109,112,59],value:"≎̸"},{key:[110,98,117,109,112,101,59],value:"≏̸"},{key:[110,99,97,112,59],value:"⩃"},{key:[110,99,97,114,111,110,59],value:"ň"},{key:[110,99,101,100,105,108,59],value:"ņ"},{key:[110,99,111,110,103,59],value:"≇"},{key:[110,99,111,110,103,100,111,116,59],value:"⩭̸"},{key:[110,99,117,112,59],value:"⩂"},{key:[110,99,121,59],value:"н"},{key:[110,100,97,115,104,59],value:"–"},{key:[110,101,59],value:"≠"},{key:[110,101,65,114,114,59],value:"⇗"},{key:[110,101,97,114,104,107,59],value:"⤤"},{key:[110,101,97,114,114,59],value:"↗"},{key:[110,101,97,114,114,111,119,59],value:"↗"},{key:[110,101,100,111,116,59],value:"≐̸"},{key:[110,101,113,117,105,118,59],value:"≢"},{key:[110,101,115,101,97,114,59],value:"⤨"},{key:[110,101,115,105,109,59],value:"≂̸"},{key:[110,101,120,105,115,116,59],value:"∄"},{key:[110,101,120,105,115,116,115,59],value:"∄"},{key:[110,102,114,59],value:"𝔫"},{key:[110,103,69,59],value:"≧̸"},{key:[110,103,101,59],value:"≱"},{key:[110,103,101,113,59],value:"≱"},{key:[110,103,101,113,113,59],value:"≧̸"},{key:[110,103,101,113,115,108,97,110,116,59],value:"⩾̸"},{key:[110,103,101,115,59],value:"⩾̸"},{key:[110,103,115,105,109,59],value:"≵"},{key:[110,103,116,59],value:"≯"},{key:[110,103,116,114,59],value:"≯"},{key:[110,104,65,114,114,59],value:"⇎"},{key:[110,104,97,114,114,59],value:"↮"},{key:[110,104,112,97,114,59],value:"⫲"},{key:[110,105,59],value:"∋"},{key:[110,105,115,59],value:"⋼"},{key:[110,105,115,100,59],value:"⋺"},{key:[110,105,118,59],value:"∋"},{key:[110,106,99,121,59],value:"њ"},{key:[110,108,65,114,114,59],value:"⇍"},{key:[110,108,69,59],value:"≦̸"},{key:[110,108,97,114,114,59],value:"↚"},{key:[110,108,100,114,59],value:"‥"},{key:[110,108,101,59],value:"≰"},{key:[110,108,101,102,116,97,114,114,111,119,59],value:"↚"},{key:[110,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↮"},{key:[110,108,101,113,59],value:"≰"},{key:[110,108,101,113,113,59],value:"≦̸"},{key:[110,108,101,113,115,108,97,110,116,59],value:"⩽̸"},{key:[110,108,101,115,59],value:"⩽̸"},{key:[110,108,101,115,115,59],value:"≮"},{key:[110,108,115,105,109,59],value:"≴"},{key:[110,108,116,59],value:"≮"},{key:[110,108,116,114,105,59],value:"⋪"},{key:[110,108,116,114,105,101,59],value:"⋬"},{key:[110,109,105,100,59],value:"∤"},{key:[110,111,112,102,59],value:"𝕟"},{key:[110,111,116,59],value:"¬"},{key:[110,111,116,105,110,59],value:"∉"},{key:[110,111,116,105,110,69,59],value:"⋹̸"},{key:[110,111,116,105,110,100,111,116,59],value:"⋵̸"},{key:[110,111,116,105,110,118,97,59],value:"∉"},{key:[110,111,116,105,110,118,98,59],value:"⋷"},{key:[110,111,116,105,110,118,99,59],value:"⋶"},{key:[110,111,116,110,105,59],value:"∌"},{key:[110,111,116,110,105,118,97,59],value:"∌"},{key:[110,111,116,110,105,118,98,59],value:"⋾"},{key:[110,111,116,110,105,118,99,59],value:"⋽"},{key:[110,112,97,114,59],value:"∦"},{key:[110,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,112,97,114,115,108,59],value:"⫽⃥"},{key:[110,112,97,114,116,59],value:"∂̸"},{key:[110,112,111,108,105,110,116,59],value:"⨔"},{key:[110,112,114,59],value:"⊀"},{key:[110,112,114,99,117,101,59],value:"⋠"},{key:[110,112,114,101,59],value:"⪯̸"},{key:[110,112,114,101,99,59],value:"⊀"},{key:[110,112,114,101,99,101,113,59],value:"⪯̸"},{key:[110,114,65,114,114,59],value:"⇏"},{key:[110,114,97,114,114,59],value:"↛"},{key:[110,114,97,114,114,99,59],value:"⤳̸"},{key:[110,114,97,114,114,119,59],value:"↝̸"},{key:[110,114,105,103,104,116,97,114,114,111,119,59],value:"↛"},{key:[110,114,116,114,105,59],value:"⋫"},{key:[110,114,116,114,105,101,59],value:"⋭"},{key:[110,115,99,59],value:"⊁"},{key:[110,115,99,99,117,101,59],value:"⋡"},{key:[110,115,99,101,59],value:"⪰̸"},{key:[110,115,99,114,59],value:"𝓃"},{key:[110,115,104,111,114,116,109,105,100,59],value:"∤"},{key:[110,115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,115,105,109,59],value:"≁"},{key:[110,115,105,109,101,59],value:"≄"},{key:[110,115,105,109,101,113,59],value:"≄"},{key:[110,115,109,105,100,59],value:"∤"},{key:[110,115,112,97,114,59],value:"∦"},{key:[110,115,113,115,117,98,101,59],value:"⋢"},{key:[110,115,113,115,117,112,101,59],value:"⋣"},{key:[110,115,117,98,59],value:"⊄"},{key:[110,115,117,98,69,59],value:"⫅̸"},{key:[110,115,117,98,101,59],value:"⊈"},{key:[110,115,117,98,115,101,116,59],value:"⊂⃒"},{key:[110,115,117,98,115,101,116,101,113,59],value:"⊈"},{key:[110,115,117,98,115,101,116,101,113,113,59],value:"⫅̸"},{key:[110,115,117,99,99,59],value:"⊁"},{key:[110,115,117,99,99,101,113,59],value:"⪰̸"},{key:[110,115,117,112,59],value:"⊅"},{key:[110,115,117,112,69,59],value:"⫆̸"},{key:[110,115,117,112,101,59],value:"⊉"},{key:[110,115,117,112,115,101,116,59],value:"⊃⃒"},{key:[110,115,117,112,115,101,116,101,113,59],value:"⊉"},{key:[110,115,117,112,115,101,116,101,113,113,59],value:"⫆̸"},{key:[110,116,103,108,59],value:"≹"},{key:[110,116,105,108,100,101,59],value:"ñ"},{key:[110,116,108,103,59],value:"≸"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⋪"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⋬"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⋫"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⋭"},{key:[110,117,59],value:"ν"},{key:[110,117,109,59],value:"#"},{key:[110,117,109,101,114,111,59],value:"№"},{key:[110,117,109,115,112,59],value:" "},{key:[110,118,68,97,115,104,59],value:"⊭"},{key:[110,118,72,97,114,114,59],value:"⤄"},{key:[110,118,97,112,59],value:"≍⃒"},{key:[110,118,100,97,115,104,59],value:"⊬"},{key:[110,118,103,101,59],value:"≥⃒"},{key:[110,118,103,116,59],value:">⃒"},{key:[110,118,105,110,102,105,110,59],value:"⧞"},{key:[110,118,108,65,114,114,59],value:"⤂"},{key:[110,118,108,101,59],value:"≤⃒"},{key:[110,118,108,116,59],value:"<⃒"},{key:[110,118,108,116,114,105,101,59],value:"⊴⃒"},{key:[110,118,114,65,114,114,59],value:"⤃"},{key:[110,118,114,116,114,105,101,59],value:"⊵⃒"},{key:[110,118,115,105,109,59],value:"∼⃒"},{key:[110,119,65,114,114,59],value:"⇖"},{key:[110,119,97,114,104,107,59],value:"⤣"},{key:[110,119,97,114,114,59],value:"↖"},{key:[110,119,97,114,114,111,119,59],value:"↖"},{key:[110,119,110,101,97,114,59],value:"⤧"},{key:[111,83,59],value:"Ⓢ"},{key:[111,97,99,117,116,101,59],value:"ó"},{key:[111,97,115,116,59],value:"⊛"},{key:[111,99,105,114,59],value:"⊚"},{key:[111,99,105,114,99,59],value:"ô"},{key:[111,99,121,59],value:"о"},{key:[111,100,97,115,104,59],value:"⊝"},{key:[111,100,98,108,97,99,59],value:"ő"},{key:[111,100,105,118,59],value:"⨸"},{key:[111,100,111,116,59],value:"⊙"},{key:[111,100,115,111,108,100,59],value:"⦼"},{key:[111,101,108,105,103,59],value:"œ"},{key:[111,102,99,105,114,59],value:"⦿"},{key:[111,102,114,59],value:"𝔬"},{key:[111,103,111,110,59],value:"˛"},{key:[111,103,114,97,118,101,59],value:"ò"},{key:[111,103,116,59],value:"⧁"},{key:[111,104,98,97,114,59],value:"⦵"},{key:[111,104,109,59],value:"Ω"},{key:[111,105,110,116,59],value:"∮"},{key:[111,108,97,114,114,59],value:"↺"},{key:[111,108,99,105,114,59],value:"⦾"},{key:[111,108,99,114,111,115,115,59],value:"⦻"},{key:[111,108,105,110,101,59],value:"‾"},{key:[111,108,116,59],value:"⧀"},{key:[111,109,97,99,114,59],value:"ō"},{key:[111,109,101,103,97,59],value:"ω"},{key:[111,109,105,99,114,111,110,59],value:"ο"},{key:[111,109,105,100,59],value:"⦶"},{key:[111,109,105,110,117,115,59],value:"⊖"},{key:[111,111,112,102,59],value:"𝕠"},{key:[111,112,97,114,59],value:"⦷"},{key:[111,112,101,114,112,59],value:"⦹"},{key:[111,112,108,117,115,59],value:"⊕"},{key:[111,114,59],value:"∨"},{key:[111,114,97,114,114,59],value:"↻"},{key:[111,114,100,59],value:"⩝"},{key:[111,114,100,101,114,59],value:"ℴ"},{key:[111,114,100,101,114,111,102,59],value:"ℴ"},{key:[111,114,100,102,59],value:"ª"},{key:[111,114,100,109,59],value:"º"},{key:[111,114,105,103,111,102,59],value:"⊶"},{key:[111,114,111,114,59],value:"⩖"},{key:[111,114,115,108,111,112,101,59],value:"⩗"},{key:[111,114,118,59],value:"⩛"},{key:[111,115,99,114,59],value:"ℴ"},{key:[111,115,108,97,115,104,59],value:"ø"},{key:[111,115,111,108,59],value:"⊘"},{key:[111,116,105,108,100,101,59],value:"õ"},{key:[111,116,105,109,101,115,59],value:"⊗"},{key:[111,116,105,109,101,115,97,115,59],value:"⨶"},{key:[111,117,109,108,59],value:"ö"},{key:[111,118,98,97,114,59],value:"⌽"},{key:[112,97,114,59],value:"∥"},{key:[112,97,114,97,59],value:"¶"},{key:[112,97,114,97,108,108,101,108,59],value:"∥"},{key:[112,97,114,115,105,109,59],value:"⫳"},{key:[112,97,114,115,108,59],value:"⫽"},{key:[112,97,114,116,59],value:"∂"},{key:[112,99,121,59],value:"п"},{key:[112,101,114,99,110,116,59],value:"%"},{key:[112,101,114,105,111,100,59],value:"."},{key:[112,101,114,109,105,108,59],value:"‰"},{key:[112,101,114,112,59],value:"⊥"},{key:[112,101,114,116,101,110,107,59],value:"‱"},{key:[112,102,114,59],value:"𝔭"},{key:[112,104,105,59],value:"φ"},{key:[112,104,105,118,59],value:"ϕ"},{key:[112,104,109,109,97,116,59],value:"ℳ"},{key:[112,104,111,110,101,59],value:"☎"},{key:[112,105,59],value:"π"},{key:[112,105,116,99,104,102,111,114,107,59],value:"⋔"},{key:[112,105,118,59],value:"ϖ"},{key:[112,108,97,110,99,107,59],value:"ℏ"},{key:[112,108,97,110,99,107,104,59],value:"ℎ"},{key:[112,108,97,110,107,118,59],value:"ℏ"},{key:[112,108,117,115,59],value:"+"},{key:[112,108,117,115,97,99,105,114,59],value:"⨣"},{key:[112,108,117,115,98,59],value:"⊞"},{key:[112,108,117,115,99,105,114,59],value:"⨢"},{key:[112,108,117,115,100,111,59],value:"∔"},{key:[112,108,117,115,100,117,59],value:"⨥"},{key:[112,108,117,115,101,59],value:"⩲"},{key:[112,108,117,115,109,110,59],value:"±"},{key:[112,108,117,115,115,105,109,59],value:"⨦"},{key:[112,108,117,115,116,119,111,59],value:"⨧"},{key:[112,109,59],value:"±"},{key:[112,111,105,110,116,105,110,116,59],value:"⨕"},{key:[112,111,112,102,59],value:"𝕡"},{key:[112,111,117,110,100,59],value:"£"},{key:[112,114,59],value:"≺"},{key:[112,114,69,59],value:"⪳"},{key:[112,114,97,112,59],value:"⪷"},{key:[112,114,99,117,101,59],value:"≼"},{key:[112,114,101,59],value:"⪯"},{key:[112,114,101,99,59],value:"≺"},{key:[112,114,101,99,97,112,112,114,111,120,59],value:"⪷"},{key:[112,114,101,99,99,117,114,108,121,101,113,59],value:"≼"},{key:[112,114,101,99,101,113,59],value:"⪯"},{key:[112,114,101,99,110,97,112,112,114,111,120,59],value:"⪹"},{key:[112,114,101,99,110,101,113,113,59],value:"⪵"},{key:[112,114,101,99,110,115,105,109,59],value:"⋨"},{key:[112,114,101,99,115,105,109,59],value:"≾"},{key:[112,114,105,109,101,59],value:"′"},{key:[112,114,105,109,101,115,59],value:"ℙ"},{key:[112,114,110,69,59],value:"⪵"},{key:[112,114,110,97,112,59],value:"⪹"},{key:[112,114,110,115,105,109,59],value:"⋨"},{key:[112,114,111,100,59],value:"∏"},{key:[112,114,111,102,97,108,97,114,59],value:"⌮"},{key:[112,114,111,102,108,105,110,101,59],value:"⌒"},{key:[112,114,111,102,115,117,114,102,59],value:"⌓"},{key:[112,114,111,112,59],value:"∝"},{key:[112,114,111,112,116,111,59],value:"∝"},{key:[112,114,115,105,109,59],value:"≾"},{key:[112,114,117,114,101,108,59],value:"⊰"},{key:[112,115,99,114,59],value:"𝓅"},{key:[112,115,105,59],value:"ψ"},{key:[112,117,110,99,115,112,59],value:" "},{key:[113,102,114,59],value:"𝔮"},{key:[113,105,110,116,59],value:"⨌"},{key:[113,111,112,102,59],value:"𝕢"},{key:[113,112,114,105,109,101,59],value:"⁗"},{key:[113,115,99,114,59],value:"𝓆"},{key:[113,117,97,116,101,114,110,105,111,110,115,59],value:"ℍ"},{key:[113,117,97,116,105,110,116,59],value:"⨖"},{key:[113,117,101,115,116,59],value:"?"},{key:[113,117,101,115,116,101,113,59],value:"≟"},{key:[113,117,111,116,59],value:'"'},{key:[114,65,97,114,114,59],value:"⇛"},{key:[114,65,114,114,59],value:"⇒"},{key:[114,65,116,97,105,108,59],value:"⤜"},{key:[114,66,97,114,114,59],value:"⤏"},{key:[114,72,97,114,59],value:"⥤"},{key:[114,97,99,101,59],value:"∽̱"},{key:[114,97,99,117,116,101,59],value:"ŕ"},{key:[114,97,100,105,99,59],value:"√"},{key:[114,97,101,109,112,116,121,118,59],value:"⦳"},{key:[114,97,110,103,59],value:"⟩"},{key:[114,97,110,103,100,59],value:"⦒"},{key:[114,97,110,103,101,59],value:"⦥"},{key:[114,97,110,103,108,101,59],value:"⟩"},{key:[114,97,113,117,111,59],value:"»"},{key:[114,97,114,114,59],value:"→"},{key:[114,97,114,114,97,112,59],value:"⥵"},{key:[114,97,114,114,98,59],value:"⇥"},{key:[114,97,114,114,98,102,115,59],value:"⤠"},{key:[114,97,114,114,99,59],value:"⤳"},{key:[114,97,114,114,102,115,59],value:"⤞"},{key:[114,97,114,114,104,107,59],value:"↪"},{key:[114,97,114,114,108,112,59],value:"↬"},{key:[114,97,114,114,112,108,59],value:"⥅"},{key:[114,97,114,114,115,105,109,59],value:"⥴"},{key:[114,97,114,114,116,108,59],value:"↣"},{key:[114,97,114,114,119,59],value:"↝"},{key:[114,97,116,97,105,108,59],value:"⤚"},{key:[114,97,116,105,111,59],value:"∶"},{key:[114,97,116,105,111,110,97,108,115,59],value:"ℚ"},{key:[114,98,97,114,114,59],value:"⤍"},{key:[114,98,98,114,107,59],value:"❳"},{key:[114,98,114,97,99,101,59],value:" }"},{key:[114,98,114,97,99,107,59],value:"]"},{key:[114,98,114,107,101,59],value:"⦌"},{key:[114,98,114,107,115,108,100,59],value:"⦎"},{key:[114,98,114,107,115,108,117,59],value:"⦐"},{key:[114,99,97,114,111,110,59],value:"ř"},{key:[114,99,101,100,105,108,59],value:"ŗ"},{key:[114,99,101,105,108,59],value:"⌉"},{key:[114,99,117,98,59],value:" }"},{key:[114,99,121,59],value:"р"},{key:[114,100,99,97,59],value:"⤷"},{key:[114,100,108,100,104,97,114,59],value:"⥩"},{key:[114,100,113,117,111,59],value:"”"},{key:[114,100,113,117,111,114,59],value:"”"},{key:[114,100,115,104,59],value:"↳"},{key:[114,101,97,108,59],value:"ℜ"},{key:[114,101,97,108,105,110,101,59],value:"ℛ"},{key:[114,101,97,108,112,97,114,116,59],value:"ℜ"},{key:[114,101,97,108,115,59],value:"ℝ"},{key:[114,101,99,116,59],value:"▭"},{key:[114,101,103,59],value:"®"},{key:[114,102,105,115,104,116,59],value:"⥽"},{key:[114,102,108,111,111,114,59],value:"⌋"},{key:[114,102,114,59],value:"𝔯"},{key:[114,104,97,114,100,59],value:"⇁"},{key:[114,104,97,114,117,59],value:"⇀"},{key:[114,104,97,114,117,108,59],value:"⥬"},{key:[114,104,111,59],value:"ρ"},{key:[114,104,111,118,59],value:"ϱ"},{key:[114,105,103,104,116,97,114,114,111,119,59],value:"→"},{key:[114,105,103,104,116,97,114,114,111,119,116,97,105,108,59],value:"↣"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"⇁"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,117,112,59],value:"⇀"},{key:[114,105,103,104,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇄"},{key:[114,105,103,104,116,108,101,102,116,104,97,114,112,111,111,110,115,59],value:"⇌"},{key:[114,105,103,104,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇉"},{key:[114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↝"},{key:[114,105,103,104,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋌"},{key:[114,105,110,103,59],value:"˚"},{key:[114,105,115,105,110,103,100,111,116,115,101,113,59],value:"≓"},{key:[114,108,97,114,114,59],value:"⇄"},{key:[114,108,104,97,114,59],value:"⇌"},{key:[114,108,109,59],value:"‏"},{key:[114,109,111,117,115,116,59],value:"⎱"},{key:[114,109,111,117,115,116,97,99,104,101,59],value:"⎱"},{key:[114,110,109,105,100,59],value:"⫮"},{key:[114,111,97,110,103,59],value:"⟭"},{key:[114,111,97,114,114,59],value:"⇾"},{key:[114,111,98,114,107,59],value:"⟧"},{key:[114,111,112,97,114,59],value:"⦆"},{key:[114,111,112,102,59],value:"𝕣"},{key:[114,111,112,108,117,115,59],value:"⨮"},{key:[114,111,116,105,109,101,115,59],value:"⨵"},{key:[114,112,97,114,59],value:")"},{key:[114,112,97,114,103,116,59],value:"⦔"},{key:[114,112,112,111,108,105,110,116,59],value:"⨒"},{key:[114,114,97,114,114,59],value:"⇉"},{key:[114,115,97,113,117,111,59],value:"›"},{key:[114,115,99,114,59],value:"𝓇"},{key:[114,115,104,59],value:"↱"},{key:[114,115,113,98,59],value:"]"},{key:[114,115,113,117,111,59],value:"’"},{key:[114,115,113,117,111,114,59],value:"’"},{key:[114,116,104,114,101,101,59],value:"⋌"},{key:[114,116,105,109,101,115,59],value:"⋊"},{key:[114,116,114,105,59],value:"▹"},{key:[114,116,114,105,101,59],value:"⊵"},{key:[114,116,114,105,102,59],value:"▸"},{key:[114,116,114,105,108,116,114,105,59],value:"⧎"},{key:[114,117,108,117,104,97,114,59],value:"⥨"},{key:[114,120,59],value:"℞"},{key:[115,97,99,117,116,101,59],value:"ś"},{key:[115,98,113,117,111,59],value:"‚"},{key:[115,99,59],value:"≻"},{key:[115,99,69,59],value:"⪴"},{key:[115,99,97,112,59],value:"⪸"},{key:[115,99,97,114,111,110,59],value:"š"},{key:[115,99,99,117,101,59],value:"≽"},{key:[115,99,101,59],value:"⪰"},{key:[115,99,101,100,105,108,59],value:"ş"},{key:[115,99,105,114,99,59],value:"ŝ"},{key:[115,99,110,69,59],value:"⪶"},{key:[115,99,110,97,112,59],value:"⪺"},{key:[115,99,110,115,105,109,59],value:"⋩"},{key:[115,99,112,111,108,105,110,116,59],value:"⨓"},{key:[115,99,115,105,109,59],value:"≿"},{key:[115,99,121,59],value:"с"},{key:[115,100,111,116,59],value:"⋅"},{key:[115,100,111,116,98,59],value:"⊡"},{key:[115,100,111,116,101,59],value:"⩦"},{key:[115,101,65,114,114,59],value:"⇘"},{key:[115,101,97,114,104,107,59],value:"⤥"},{key:[115,101,97,114,114,59],value:"↘"},{key:[115,101,97,114,114,111,119,59],value:"↘"},{key:[115,101,99,116,59],value:"§"},{key:[115,101,109,105,59],value:";"},{key:[115,101,115,119,97,114,59],value:"⤩"},{key:[115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,101,116,109,110,59],value:"∖"},{key:[115,101,120,116,59],value:"✶"},{key:[115,102,114,59],value:"𝔰"},{key:[115,102,114,111,119,110,59],value:"⌢"},{key:[115,104,97,114,112,59],value:"♯"},{key:[115,104,99,104,99,121,59],value:"щ"},{key:[115,104,99,121,59],value:"ш"},{key:[115,104,111,114,116,109,105,100,59],value:"∣"},{key:[115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∥"},{key:[115,104,121,59],value:"­"},{key:[115,105,103,109,97,59],value:"σ"},{key:[115,105,103,109,97,102,59],value:"ς"},{key:[115,105,103,109,97,118,59],value:"ς"},{key:[115,105,109,59],value:"∼"},{key:[115,105,109,100,111,116,59],value:"⩪"},{key:[115,105,109,101,59],value:"≃"},{key:[115,105,109,101,113,59],value:"≃"},{key:[115,105,109,103,59],value:"⪞"},{key:[115,105,109,103,69,59],value:"⪠"},{key:[115,105,109,108,59],value:"⪝"},{key:[115,105,109,108,69,59],value:"⪟"},{key:[115,105,109,110,101,59],value:"≆"},{key:[115,105,109,112,108,117,115,59],value:"⨤"},{key:[115,105,109,114,97,114,114,59],value:"⥲"},{key:[115,108,97,114,114,59],value:"←"},{key:[115,109,97,108,108,115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,109,97,115,104,112,59],value:"⨳"},{key:[115,109,101,112,97,114,115,108,59],value:"⧤"},{key:[115,109,105,100,59],value:"∣"},{key:[115,109,105,108,101,59],value:"⌣"},{key:[115,109,116,59],value:"⪪"},{key:[115,109,116,101,59],value:"⪬"},{key:[115,109,116,101,115,59],value:"⪬︀"},{key:[115,111,102,116,99,121,59],value:"ь"},{key:[115,111,108,59],value:"/"},{key:[115,111,108,98,59],value:"⧄"},{key:[115,111,108,98,97,114,59],value:"⌿"},{key:[115,111,112,102,59],value:"𝕤"},{key:[115,112,97,100,101,115,59],value:"♠"},{key:[115,112,97,100,101,115,117,105,116,59],value:"♠"},{key:[115,112,97,114,59],value:"∥"},{key:[115,113,99,97,112,59],value:"⊓"},{key:[115,113,99,97,112,115,59],value:"⊓︀"},{key:[115,113,99,117,112,59],value:"⊔"},{key:[115,113,99,117,112,115,59],value:"⊔︀"},{key:[115,113,115,117,98,59],value:"⊏"},{key:[115,113,115,117,98,101,59],value:"⊑"},{key:[115,113,115,117,98,115,101,116,59],value:"⊏"},{key:[115,113,115,117,98,115,101,116,101,113,59],value:"⊑"},{key:[115,113,115,117,112,59],value:"⊐"},{key:[115,113,115,117,112,101,59],value:"⊒"},{key:[115,113,115,117,112,115,101,116,59],value:"⊐"},{key:[115,113,115,117,112,115,101,116,101,113,59],value:"⊒"},{key:[115,113,117,59],value:"□"},{key:[115,113,117,97,114,101,59],value:"□"},{key:[115,113,117,97,114,102,59],value:"▪"},{key:[115,113,117,102,59],value:"▪"},{key:[115,114,97,114,114,59],value:"→"},{key:[115,115,99,114,59],value:"𝓈"},{key:[115,115,101,116,109,110,59],value:"∖"},{key:[115,115,109,105,108,101,59],value:"⌣"},{key:[115,115,116,97,114,102,59],value:"⋆"},{key:[115,116,97,114,59],value:"☆"},{key:[115,116,97,114,102,59],value:"★"},{key:[115,116,114,97,105,103,104,116,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[115,116,114,97,105,103,104,116,112,104,105,59],value:"ϕ"},{key:[115,116,114,110,115,59],value:"¯"},{key:[115,117,98,59],value:"⊂"},{key:[115,117,98,69,59],value:"⫅"},{key:[115,117,98,100,111,116,59],value:"⪽"},{key:[115,117,98,101,59],value:"⊆"},{key:[115,117,98,101,100,111,116,59],value:"⫃"},{key:[115,117,98,109,117,108,116,59],value:"⫁"},{key:[115,117,98,110,69,59],value:"⫋"},{key:[115,117,98,110,101,59],value:"⊊"},{key:[115,117,98,112,108,117,115,59],value:"⪿"},{key:[115,117,98,114,97,114,114,59],value:"⥹"},{key:[115,117,98,115,101,116,59],value:"⊂"},{key:[115,117,98,115,101,116,101,113,59],value:"⊆"},{key:[115,117,98,115,101,116,101,113,113,59],value:"⫅"},{key:[115,117,98,115,101,116,110,101,113,59],value:"⊊"},{key:[115,117,98,115,101,116,110,101,113,113,59],value:"⫋"},{key:[115,117,98,115,105,109,59],value:"⫇"},{key:[115,117,98,115,117,98,59],value:"⫕"},{key:[115,117,98,115,117,112,59],value:"⫓"},{key:[115,117,99,99,59],value:"≻"},{key:[115,117,99,99,97,112,112,114,111,120,59],value:"⪸"},{key:[115,117,99,99,99,117,114,108,121,101,113,59],value:"≽"},{key:[115,117,99,99,101,113,59],value:"⪰"},{key:[115,117,99,99,110,97,112,112,114,111,120,59],value:"⪺"},{key:[115,117,99,99,110,101,113,113,59],value:"⪶"},{key:[115,117,99,99,110,115,105,109,59],value:"⋩"},{key:[115,117,99,99,115,105,109,59],value:"≿"},{key:[115,117,109,59],value:"∑"},{key:[115,117,110,103,59],value:"♪"},{key:[115,117,112,49,59],value:"¹"},{key:[115,117,112,50,59],value:"²"},{key:[115,117,112,51,59],value:"³"},{key:[115,117,112,59],value:"⊃"},{key:[115,117,112,69,59],value:"⫆"},{key:[115,117,112,100,111,116,59],value:"⪾"},{key:[115,117,112,100,115,117,98,59],value:"⫘"},{key:[115,117,112,101,59],value:"⊇"},{key:[115,117,112,101,100,111,116,59],value:"⫄"},{key:[115,117,112,104,115,111,108,59],value:"⟉"},{key:[115,117,112,104,115,117,98,59],value:"⫗"},{key:[115,117,112,108,97,114,114,59],value:"⥻"},{key:[115,117,112,109,117,108,116,59],value:"⫂"},{key:[115,117,112,110,69,59],value:"⫌"},{key:[115,117,112,110,101,59],value:"⊋"},{key:[115,117,112,112,108,117,115,59],value:"⫀"},{key:[115,117,112,115,101,116,59],value:"⊃"},{key:[115,117,112,115,101,116,101,113,59],value:"⊇"},{key:[115,117,112,115,101,116,101,113,113,59],value:"⫆"},{key:[115,117,112,115,101,116,110,101,113,59],value:"⊋"},{key:[115,117,112,115,101,116,110,101,113,113,59],value:"⫌"},{key:[115,117,112,115,105,109,59],value:"⫈"},{key:[115,117,112,115,117,98,59],value:"⫔"},{key:[115,117,112,115,117,112,59],value:"⫖"},{key:[115,119,65,114,114,59],value:"⇙"},{key:[115,119,97,114,104,107,59],value:"⤦"},{key:[115,119,97,114,114,59],value:"↙"},{key:[115,119,97,114,114,111,119,59],value:"↙"},{key:[115,119,110,119,97,114,59],value:"⤪"},{key:[115,122,108,105,103,59],value:"ß"},{key:[116,97,114,103,101,116,59],value:"⌖"},{key:[116,97,117,59],value:"τ"},{key:[116,98,114,107,59],value:"⎴"},{key:[116,99,97,114,111,110,59],value:"ť"},{key:[116,99,101,100,105,108,59],value:"ţ"},{key:[116,99,121,59],value:"т"},{key:[116,100,111,116,59],value:"⃛"},{key:[116,101,108,114,101,99,59],value:"⌕"},{key:[116,102,114,59],value:"𝔱"},{key:[116,104,101,114,101,52,59],value:"∴"},{key:[116,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[116,104,101,116,97,59],value:"θ"},{key:[116,104,101,116,97,115,121,109,59],value:"ϑ"},{key:[116,104,101,116,97,118,59],value:"ϑ"},{key:[116,104,105,99,107,97,112,112,114,111,120,59],value:"≈"},{key:[116,104,105,99,107,115,105,109,59],value:"∼"},{key:[116,104,105,110,115,112,59],value:" "},{key:[116,104,107,97,112,59],value:"≈"},{key:[116,104,107,115,105,109,59],value:"∼"},{key:[116,104,111,114,110,59],value:"þ"},{key:[116,105,108,100,101,59],value:"˜"},{key:[116,105,109,101,115,59],value:"×"},{key:[116,105,109,101,115,98,59],value:"⊠"},{key:[116,105,109,101,115,98,97,114,59],value:"⨱"},{key:[116,105,109,101,115,100,59],value:"⨰"},{key:[116,105,110,116,59],value:"∭"},{key:[116,111,101,97,59],value:"⤨"},{key:[116,111,112,59],value:"⊤"},{key:[116,111,112,98,111,116,59],value:"⌶"},{key:[116,111,112,99,105,114,59],value:"⫱"},{key:[116,111,112,102,59],value:"𝕥"},{key:[116,111,112,102,111,114,107,59],value:"⫚"},{key:[116,111,115,97,59],value:"⤩"},{key:[116,112,114,105,109,101,59],value:"‴"},{key:[116,114,97,100,101,59],value:"™"},{key:[116,114,105,97,110,103,108,101,59],value:"▵"},{key:[116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▿"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◃"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⊴"},{key:[116,114,105,97,110,103,108,101,113,59],value:"≜"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▹"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⊵"},{key:[116,114,105,100,111,116,59],value:"◬"},{key:[116,114,105,101,59],value:"≜"},{key:[116,114,105,109,105,110,117,115,59],value:"⨺"},{key:[116,114,105,112,108,117,115,59],value:"⨹"},{key:[116,114,105,115,98,59],value:"⧍"},{key:[116,114,105,116,105,109,101,59],value:"⨻"},{key:[116,114,112,101,122,105,117,109,59],value:"⏢"},{key:[116,115,99,114,59],value:"𝓉"},{key:[116,115,99,121,59],value:"ц"},{key:[116,115,104,99,121,59],value:"ћ"},{key:[116,115,116,114,111,107,59],value:"ŧ"},{key:[116,119,105,120,116,59],value:"≬"},{key:[116,119,111,104,101,97,100,108,101,102,116,97,114,114,111,119,59],value:"↞"},{key:[116,119,111,104,101,97,100,114,105,103,104,116,97,114,114,111,119,59],value:"↠"},{key:[117,65,114,114,59],value:"⇑"},{key:[117,72,97,114,59],value:"⥣"},{key:[117,97,99,117,116,101,59],value:"ú"},{key:[117,97,114,114,59],value:"↑"},{key:[117,98,114,99,121,59],value:"ў"},{key:[117,98,114,101,118,101,59],value:"ŭ"},{key:[117,99,105,114,99,59],value:"û"},{key:[117,99,121,59],value:"у"},{key:[117,100,97,114,114,59],value:"⇅"},{key:[117,100,98,108,97,99,59],value:"ű"},{key:[117,100,104,97,114,59],value:"⥮"},{key:[117,102,105,115,104,116,59],value:"⥾"},{key:[117,102,114,59],value:"𝔲"},{key:[117,103,114,97,118,101,59],value:"ù"},{key:[117,104,97,114,108,59],value:"↿"},{key:[117,104,97,114,114,59],value:"↾"},{key:[117,104,98,108,107,59],value:"▀"},{key:[117,108,99,111,114,110,59],value:"⌜"},{key:[117,108,99,111,114,110,101,114,59],value:"⌜"},{key:[117,108,99,114,111,112,59],value:"⌏"},{key:[117,108,116,114,105,59],value:"◸"},{key:[117,109,97,99,114,59],value:"ū"},{key:[117,109,108,59],value:"¨"},{key:[117,111,103,111,110,59],value:"ų"},{key:[117,111,112,102,59],value:"𝕦"},{key:[117,112,97,114,114,111,119,59],value:"↑"},{key:[117,112,100,111,119,110,97,114,114,111,119,59],value:"↕"},{key:[117,112,104,97,114,112,111,111,110,108,101,102,116,59],value:"↿"},{key:[117,112,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"↾"},{key:[117,112,108,117,115,59],value:"⊎"},{key:[117,112,115,105,59],value:"υ"},{key:[117,112,115,105,104,59],value:"ϒ"},{key:[117,112,115,105,108,111,110,59],value:"υ"},{key:[117,112,117,112,97,114,114,111,119,115,59],value:"⇈"},{key:[117,114,99,111,114,110,59],value:"⌝"},{key:[117,114,99,111,114,110,101,114,59],value:"⌝"},{key:[117,114,99,114,111,112,59],value:"⌎"},{key:[117,114,105,110,103,59],value:"ů"},{key:[117,114,116,114,105,59],value:"◹"},{key:[117,115,99,114,59],value:"𝓊"},{key:[117,116,100,111,116,59],value:"⋰"},{key:[117,116,105,108,100,101,59],value:"ũ"},{key:[117,116,114,105,59],value:"▵"},{key:[117,116,114,105,102,59],value:"▴"},{key:[117,117,97,114,114,59],value:"⇈"},{key:[117,117,109,108,59],value:"ü"},{key:[117,119,97,110,103,108,101,59],value:"⦧"},{key:[118,65,114,114,59],value:"⇕"},{key:[118,66,97,114,59],value:"⫨"},{key:[118,66,97,114,118,59],value:"⫩"},{key:[118,68,97,115,104,59],value:"⊨"},{key:[118,97,110,103,114,116,59],value:"⦜"},{key:[118,97,114,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[118,97,114,107,97,112,112,97,59],value:"ϰ"},{key:[118,97,114,110,111,116,104,105,110,103,59],value:"∅"},{key:[118,97,114,112,104,105,59],value:"ϕ"},{key:[118,97,114,112,105,59],value:"ϖ"},{key:[118,97,114,112,114,111,112,116,111,59],value:"∝"},{key:[118,97,114,114,59],value:"↕"},{key:[118,97,114,114,104,111,59],value:"ϱ"},{key:[118,97,114,115,105,103,109,97,59],value:"ς"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,59],value:"⊊︀"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,113,59],value:"⫋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,59],value:"⊋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,113,59],value:"⫌︀"},{key:[118,97,114,116,104,101,116,97,59],value:"ϑ"},{key:[118,97,114,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⊲"},{key:[118,97,114,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⊳"},{key:[118,99,121,59],value:"в"},{key:[118,100,97,115,104,59],value:"⊢"},{key:[118,101,101,59],value:"∨"},{key:[118,101,101,98,97,114,59],value:"⊻"},{key:[118,101,101,101,113,59],value:"≚"},{key:[118,101,108,108,105,112,59],value:"⋮"},{key:[118,101,114,98,97,114,59],value:"|"},{key:[118,101,114,116,59],value:"|"},{key:[118,102,114,59],value:"𝔳"},{key:[118,108,116,114,105,59],value:"⊲"},{key:[118,110,115,117,98,59],value:"⊂⃒"},{key:[118,110,115,117,112,59],value:"⊃⃒"},{key:[118,111,112,102,59],value:"𝕧"},{key:[118,112,114,111,112,59],value:"∝"},{key:[118,114,116,114,105,59],value:"⊳"},{key:[118,115,99,114,59],value:"𝓋"},{key:[118,115,117,98,110,69,59],value:"⫋︀"},{key:[118,115,117,98,110,101,59],value:"⊊︀"},{key:[118,115,117,112,110,69,59],value:"⫌︀"},{key:[118,115,117,112,110,101,59],value:"⊋︀"},{key:[118,122,105,103,122,97,103,59],value:"⦚"},{key:[119,99,105,114,99,59],value:"ŵ"},{key:[119,101,100,98,97,114,59],value:"⩟"},{key:[119,101,100,103,101,59],value:"∧"},{key:[119,101,100,103,101,113,59],value:"≙"},{key:[119,101,105,101,114,112,59],value:"℘"},{key:[119,102,114,59],value:"𝔴"},{key:[119,111,112,102,59],value:"𝕨"},{key:[119,112,59],value:"℘"},{key:[119,114,59],value:"≀"},{key:[119,114,101,97,116,104,59],value:"≀"},{key:[119,115,99,114,59],value:"𝓌"},{key:[120,99,97,112,59],value:"⋂"},{key:[120,99,105,114,99,59],value:"◯"},{key:[120,99,117,112,59],value:"⋃"},{key:[120,100,116,114,105,59],value:"▽"},{key:[120,102,114,59],value:"𝔵"},{key:[120,104,65,114,114,59],value:"⟺"},{key:[120,104,97,114,114,59],value:"⟷"},{key:[120,105,59],value:"ξ"},{key:[120,108,65,114,114,59],value:"⟸"},{key:[120,108,97,114,114,59],value:"⟵"},{key:[120,109,97,112,59],value:"⟼"},{key:[120,110,105,115,59],value:"⋻"},{key:[120,111,100,111,116,59],value:"⨀"},{key:[120,111,112,102,59],value:"𝕩"},{key:[120,111,112,108,117,115,59],value:"⨁"},{key:[120,111,116,105,109,101,59],value:"⨂"},{key:[120,114,65,114,114,59],value:"⟹"},{key:[120,114,97,114,114,59],value:"⟶"},{key:[120,115,99,114,59],value:"𝓍"},{key:[120,115,113,99,117,112,59],value:"⨆"},{key:[120,117,112,108,117,115,59],value:"⨄"},{key:[120,117,116,114,105,59],value:"△"},{key:[120,118,101,101,59],value:"⋁"},{key:[120,119,101,100,103,101,59],value:"⋀"},{key:[121,97,99,117,116,101,59],value:"ý"},{key:[121,97,99,121,59],value:"я"},{key:[121,99,105,114,99,59],value:"ŷ"},{key:[121,99,121,59],value:"ы"},{key:[121,101,110,59],value:"¥"},{key:[121,102,114,59],value:"𝔶"},{key:[121,105,99,121,59],value:"ї"},{key:[121,111,112,102,59],value:"𝕪"},{key:[121,115,99,114,59],value:"𝓎"},{key:[121,117,99,121,59],value:"ю"},{key:[121,117,109,108,59],value:"ÿ"},{key:[122,97,99,117,116,101,59],value:"ź"},{key:[122,99,97,114,111,110,59],value:"ž"},{key:[122,99,121,59],value:"з"},{key:[122,100,111,116,59],value:"ż"},{key:[122,101,101,116,114,102,59],value:"ℨ"},{key:[122,101,116,97,59],value:"ζ"},{key:[122,102,114,59],value:"𝔷"},{key:[122,104,99,121,59],value:"ж"},{key:[122,105,103,114,97,114,114,59],value:"⇝"},{key:[122,111,112,102,59],value:"𝕫"},{key:[122,115,99,114,59],value:"𝓏"},{key:[122,119,106,59],value:"‍"},{key:[122,119,110,106,59],value:"‌"}];var UnicodePcCodePoint;(function(eo){eo[eo.LOW_LINE=95]="LOW_LINE",eo[eo.UNDERTIE=8255]="UNDERTIE",eo[eo.CHARACTER_TIE=8256]="CHARACTER_TIE",eo[eo.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",eo[eo.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",eo[eo.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",eo[eo.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",eo[eo.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(UnicodePcCodePoint||(UnicodePcCodePoint={}));var UnicodePdCodePoint;(function(eo){eo[eo.HYPHEN_MINUS=45]="HYPHEN_MINUS",eo[eo.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",eo[eo.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",eo[eo.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",eo[eo.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",eo[eo.HYPHEN=8208]="HYPHEN",eo[eo.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",eo[eo.FIGURE_DASH=8210]="FIGURE_DASH",eo[eo.EN_DASH=8211]="EN_DASH",eo[eo.EM_DASH=8212]="EM_DASH",eo[eo.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",eo[eo.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",eo[eo.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",eo[eo.TWO_EM_DASH=11834]="TWO_EM_DASH",eo[eo.THREE_EM_DASH=11835]="THREE_EM_DASH",eo[eo.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",eo[eo.WAVE_DASH=12316]="WAVE_DASH",eo[eo.WAVY_DASH=12336]="WAVY_DASH",eo[eo.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",eo[eo.SMALL_EM_DASH=65112]="SMALL_EM_DASH",eo[eo.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",eo[eo.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",eo[eo.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(UnicodePdCodePoint||(UnicodePdCodePoint={}));var UnicodePeCodePoint;(function(eo){eo[eo.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",eo[eo.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",eo[eo.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",eo[eo.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",eo[eo.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",eo[eo.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",eo[eo.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",eo[eo.RIGHT_CEILING=8969]="RIGHT_CEILING",eo[eo.RIGHT_FLOOR=8971]="RIGHT_FLOOR",eo[eo.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",eo[eo.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",eo[eo.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",eo[eo.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",eo[eo.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",eo[eo.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",eo[eo.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",eo[eo.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",eo[eo.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",eo[eo.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",eo[eo.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",eo[eo.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",eo[eo.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",eo[eo.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",eo[eo.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",eo[eo.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",eo[eo.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",eo[eo.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",eo[eo.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",eo[eo.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",eo[eo.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",eo[eo.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",eo[eo.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",eo[eo.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",eo[eo.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",eo[eo.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",eo[eo.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(UnicodePeCodePoint||(UnicodePeCodePoint={}));var UnicodePfCodePoint;(function(eo){eo[eo.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",eo[eo.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",eo[eo.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",eo[eo.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",eo[eo.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",eo[eo.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",eo[eo.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(UnicodePfCodePoint||(UnicodePfCodePoint={}));var UnicodePiCodePoint;(function(eo){eo[eo.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",eo[eo.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",eo[eo.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",eo[eo.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",eo[eo.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",eo[eo.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",eo[eo.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",eo[eo.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",eo[eo.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",eo[eo.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(UnicodePiCodePoint||(UnicodePiCodePoint={}));var UnicodePoCodePoint;(function(eo){eo[eo.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",eo[eo.QUOTATION_MARK=34]="QUOTATION_MARK",eo[eo.NUMBER_SIGN=35]="NUMBER_SIGN",eo[eo.PERCENT_SIGN=37]="PERCENT_SIGN",eo[eo.AMPERSAND=38]="AMPERSAND",eo[eo.APOSTROPHE=39]="APOSTROPHE",eo[eo.ASTERISK=42]="ASTERISK",eo[eo.COMMA=44]="COMMA",eo[eo.FULL_STOP=46]="FULL_STOP",eo[eo.SOLIDUS=47]="SOLIDUS",eo[eo.COLON=58]="COLON",eo[eo.SEMICOLON=59]="SEMICOLON",eo[eo.QUESTION_MARK=63]="QUESTION_MARK",eo[eo.COMMERCIAL_AT=64]="COMMERCIAL_AT",eo[eo.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",eo[eo.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",eo[eo.SECTION_SIGN=167]="SECTION_SIGN",eo[eo.PILCROW_SIGN=182]="PILCROW_SIGN",eo[eo.MIDDLE_DOT=183]="MIDDLE_DOT",eo[eo.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",eo[eo.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",eo[eo.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",eo[eo.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",eo[eo.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",eo[eo.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",eo[eo.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",eo[eo.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",eo[eo.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",eo[eo.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",eo[eo.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",eo[eo.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",eo[eo.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",eo[eo.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",eo[eo.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",eo[eo.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",eo[eo.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",eo[eo.ARABIC_COMMA=1548]="ARABIC_COMMA",eo[eo.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",eo[eo.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",eo[eo.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",eo[eo.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",eo[eo.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",eo[eo.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",eo[eo.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",eo[eo.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",eo[eo.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",eo[eo.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",eo[eo.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",eo[eo.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",eo[eo.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",eo[eo.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",eo[eo.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",eo[eo.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",eo[eo.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",eo[eo.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",eo[eo.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",eo[eo.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",eo[eo.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",eo[eo.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",eo[eo.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",eo[eo.NKO_COMMA=2040]="NKO_COMMA",eo[eo.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",eo[eo.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",eo[eo.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",eo[eo.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",eo[eo.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",eo[eo.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",eo[eo.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",eo[eo.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",eo[eo.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",eo[eo.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",eo[eo.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",eo[eo.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",eo[eo.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",eo[eo.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",eo[eo.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",eo[eo.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",eo[eo.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",eo[eo.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",eo[eo.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",eo[eo.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",eo[eo.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",eo[eo.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",eo[eo.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",eo[eo.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",eo[eo.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",eo[eo.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",eo[eo.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",eo[eo.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",eo[eo.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",eo[eo.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",eo[eo.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",eo[eo.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",eo[eo.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",eo[eo.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",eo[eo.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",eo[eo.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",eo[eo.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",eo[eo.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",eo[eo.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",eo[eo.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",eo[eo.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",eo[eo.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",eo[eo.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",eo[eo.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",eo[eo.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",eo[eo.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",eo[eo.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",eo[eo.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",eo[eo.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",eo[eo.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",eo[eo.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",eo[eo.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",eo[eo.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",eo[eo.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",eo[eo.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",eo[eo.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",eo[eo.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",eo[eo.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",eo[eo.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",eo[eo.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",eo[eo.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",eo[eo.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",eo[eo.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",eo[eo.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",eo[eo.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",eo[eo.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",eo[eo.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",eo[eo.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",eo[eo.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",eo[eo.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",eo[eo.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",eo[eo.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",eo[eo.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",eo[eo.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",eo[eo.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",eo[eo.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",eo[eo.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",eo[eo.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",eo[eo.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",eo[eo.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",eo[eo.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",eo[eo.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",eo[eo.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",eo[eo.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",eo[eo.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",eo[eo.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",eo[eo.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",eo[eo.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",eo[eo.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",eo[eo.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",eo[eo.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",eo[eo.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",eo[eo.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",eo[eo.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",eo[eo.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",eo[eo.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",eo[eo.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",eo[eo.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",eo[eo.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",eo[eo.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",eo[eo.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",eo[eo.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",eo[eo.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",eo[eo.BALINESE_PANTI=7002]="BALINESE_PANTI",eo[eo.BALINESE_PAMADA=7003]="BALINESE_PAMADA",eo[eo.BALINESE_WINDU=7004]="BALINESE_WINDU",eo[eo.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",eo[eo.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",eo[eo.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",eo[eo.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",eo[eo.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",eo[eo.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",eo[eo.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",eo[eo.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",eo[eo.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",eo[eo.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",eo[eo.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",eo[eo.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",eo[eo.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",eo[eo.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",eo[eo.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",eo[eo.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",eo[eo.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",eo[eo.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",eo[eo.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",eo[eo.DAGGER=8224]="DAGGER",eo[eo.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",eo[eo.BULLET=8226]="BULLET",eo[eo.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",eo[eo.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",eo[eo.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",eo[eo.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",eo[eo.HYPHENATION_POINT=8231]="HYPHENATION_POINT",eo[eo.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",eo[eo.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",eo[eo.PRIME=8242]="PRIME",eo[eo.DOUBLE_PRIME=8243]="DOUBLE_PRIME",eo[eo.TRIPLE_PRIME=8244]="TRIPLE_PRIME",eo[eo.REVERSED_PRIME=8245]="REVERSED_PRIME",eo[eo.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",eo[eo.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",eo[eo.CARET=8248]="CARET",eo[eo.REFERENCE_MARK=8251]="REFERENCE_MARK",eo[eo.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",eo[eo.INTERROBANG=8253]="INTERROBANG",eo[eo.OVERLINE=8254]="OVERLINE",eo[eo.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",eo[eo.ASTERISM=8258]="ASTERISM",eo[eo.HYPHEN_BULLET=8259]="HYPHEN_BULLET",eo[eo.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",eo[eo.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",eo[eo.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",eo[eo.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",eo[eo.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",eo[eo.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",eo[eo.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",eo[eo.LOW_ASTERISK=8270]="LOW_ASTERISK",eo[eo.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",eo[eo.CLOSE_UP=8272]="CLOSE_UP",eo[eo.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",eo[eo.SWUNG_DASH=8275]="SWUNG_DASH",eo[eo.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",eo[eo.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",eo[eo.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",eo[eo.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",eo[eo.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",eo[eo.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",eo[eo.DOTTED_CROSS=8284]="DOTTED_CROSS",eo[eo.TRICOLON=8285]="TRICOLON",eo[eo.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",eo[eo.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",eo[eo.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",eo[eo.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",eo[eo.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",eo[eo.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",eo[eo.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",eo[eo.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",eo[eo.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",eo[eo.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",eo[eo.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",eo[eo.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",eo[eo.RAISED_SQUARE=11787]="RAISED_SQUARE",eo[eo.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",eo[eo.PARAGRAPHOS=11791]="PARAGRAPHOS",eo[eo.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",eo[eo.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",eo[eo.HYPODIASTOLE=11794]="HYPODIASTOLE",eo[eo.DOTTED_OBELOS=11795]="DOTTED_OBELOS",eo[eo.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",eo[eo.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",eo[eo.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",eo[eo.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",eo[eo.PALM_BRANCH=11801]="PALM_BRANCH",eo[eo.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",eo[eo.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",eo[eo.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",eo[eo.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",eo[eo.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",eo[eo.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",eo[eo.RING_POINT=11824]="RING_POINT",eo[eo.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",eo[eo.TURNED_COMMA=11826]="TURNED_COMMA",eo[eo.RAISED_DOT=11827]="RAISED_DOT",eo[eo.RAISED_COMMA=11828]="RAISED_COMMA",eo[eo.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",eo[eo.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",eo[eo.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",eo[eo.TURNED_DAGGER=11832]="TURNED_DAGGER",eo[eo.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",eo[eo.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",eo[eo.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",eo[eo.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",eo[eo.CAPITULUM=11839]="CAPITULUM",eo[eo.REVERSED_COMMA=11841]="REVERSED_COMMA",eo[eo.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",eo[eo.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",eo[eo.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",eo[eo.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",eo[eo.LOW_KAVYKA=11847]="LOW_KAVYKA",eo[eo.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",eo[eo.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",eo[eo.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",eo[eo.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",eo[eo.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",eo[eo.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",eo[eo.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",eo[eo.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",eo[eo.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",eo[eo.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",eo[eo.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",eo[eo.DITTO_MARK=12291]="DITTO_MARK",eo[eo.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",eo[eo.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",eo[eo.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",eo[eo.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",eo[eo.VAI_COMMA=42509]="VAI_COMMA",eo[eo.VAI_FULL_STOP=42510]="VAI_FULL_STOP",eo[eo.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",eo[eo.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",eo[eo.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",eo[eo.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",eo[eo.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",eo[eo.BAMUM_COLON=42740]="BAMUM_COLON",eo[eo.BAMUM_COMMA=42741]="BAMUM_COMMA",eo[eo.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",eo[eo.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",eo[eo.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",eo[eo.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",eo[eo.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",eo[eo.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",eo[eo.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",eo[eo.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",eo[eo.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",eo[eo.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",eo[eo.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",eo[eo.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",eo[eo.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",eo[eo.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",eo[eo.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",eo[eo.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",eo[eo.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",eo[eo.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",eo[eo.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",eo[eo.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",eo[eo.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",eo[eo.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",eo[eo.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",eo[eo.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",eo[eo.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",eo[eo.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",eo[eo.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",eo[eo.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",eo[eo.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",eo[eo.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",eo[eo.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",eo[eo.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",eo[eo.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",eo[eo.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",eo[eo.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",eo[eo.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",eo[eo.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",eo[eo.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",eo[eo.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",eo[eo.SESAME_DOT=65093]="SESAME_DOT",eo[eo.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",eo[eo.DASHED_OVERLINE=65097]="DASHED_OVERLINE",eo[eo.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",eo[eo.WAVY_OVERLINE=65099]="WAVY_OVERLINE",eo[eo.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",eo[eo.SMALL_COMMA=65104]="SMALL_COMMA",eo[eo.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",eo[eo.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",eo[eo.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",eo[eo.SMALL_COLON=65109]="SMALL_COLON",eo[eo.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",eo[eo.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",eo[eo.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",eo[eo.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",eo[eo.SMALL_ASTERISK=65121]="SMALL_ASTERISK",eo[eo.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",eo[eo.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",eo[eo.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",eo[eo.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",eo[eo.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",eo[eo.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",eo[eo.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",eo[eo.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",eo[eo.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",eo[eo.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",eo[eo.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",eo[eo.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",eo[eo.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",eo[eo.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",eo[eo.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",eo[eo.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",eo[eo.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",eo[eo.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",eo[eo.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",eo[eo.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",eo[eo.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",eo[eo.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",eo[eo.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",eo[eo.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",eo[eo.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",eo[eo.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",eo[eo.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",eo[eo.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",eo[eo.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",eo[eo.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",eo[eo.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",eo[eo.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",eo[eo.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",eo[eo.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",eo[eo.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",eo[eo.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",eo[eo.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",eo[eo.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",eo[eo.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",eo[eo.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",eo[eo.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",eo[eo.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",eo[eo.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",eo[eo.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",eo[eo.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",eo[eo.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",eo[eo.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",eo[eo.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",eo[eo.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",eo[eo.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",eo[eo.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",eo[eo.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",eo[eo.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",eo[eo.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",eo[eo.BRAHMI_DANDA=69703]="BRAHMI_DANDA",eo[eo.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",eo[eo.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",eo[eo.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",eo[eo.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",eo[eo.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",eo[eo.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",eo[eo.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",eo[eo.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",eo[eo.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",eo[eo.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",eo[eo.KAITHI_DANDA=69824]="KAITHI_DANDA",eo[eo.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",eo[eo.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",eo[eo.CHAKMA_DANDA=69953]="CHAKMA_DANDA",eo[eo.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",eo[eo.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",eo[eo.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",eo[eo.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",eo[eo.SHARADA_DANDA=70085]="SHARADA_DANDA",eo[eo.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",eo[eo.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",eo[eo.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",eo[eo.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",eo[eo.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",eo[eo.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",eo[eo.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",eo[eo.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",eo[eo.KHOJKI_DANDA=70200]="KHOJKI_DANDA",eo[eo.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",eo[eo.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",eo[eo.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",eo[eo.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",eo[eo.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",eo[eo.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",eo[eo.NEWA_DANDA=70731]="NEWA_DANDA",eo[eo.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",eo[eo.NEWA_COMMA=70733]="NEWA_COMMA",eo[eo.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",eo[eo.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",eo[eo.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",eo[eo.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",eo[eo.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",eo[eo.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",eo[eo.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",eo[eo.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",eo[eo.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",eo[eo.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",eo[eo.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",eo[eo.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",eo[eo.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",eo[eo.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",eo[eo.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",eo[eo.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",eo[eo.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",eo[eo.MODI_DANDA=71233]="MODI_DANDA",eo[eo.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",eo[eo.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",eo[eo.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",eo[eo.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",eo[eo.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",eo[eo.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",eo[eo.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",eo[eo.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",eo[eo.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",eo[eo.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",eo[eo.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",eo[eo.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",eo[eo.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",eo[eo.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",eo[eo.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",eo[eo.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",eo[eo.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",eo[eo.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",eo[eo.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",eo[eo.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",eo[eo.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",eo[eo.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",eo[eo.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",eo[eo.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",eo[eo.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",eo[eo.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",eo[eo.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",eo[eo.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",eo[eo.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",eo[eo.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",eo[eo.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",eo[eo.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",eo[eo.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",eo[eo.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",eo[eo.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",eo[eo.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",eo[eo.MRO_DANDA=92782]="MRO_DANDA",eo[eo.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",eo[eo.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",eo[eo.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",eo[eo.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",eo[eo.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",eo[eo.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",eo[eo.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",eo[eo.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",eo[eo.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",eo[eo.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",eo[eo.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",eo[eo.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",eo[eo.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",eo[eo.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",eo[eo.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",eo[eo.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",eo[eo.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",eo[eo.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",eo[eo.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",eo[eo.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",eo[eo.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(UnicodePoCodePoint||(UnicodePoCodePoint={}));var UnicodePsCodePoint;(function(eo){eo[eo.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",eo[eo.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",eo[eo.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",eo[eo.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",eo[eo.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",eo[eo.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",eo[eo.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",eo[eo.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",eo[eo.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",eo[eo.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",eo[eo.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",eo[eo.LEFT_CEILING=8968]="LEFT_CEILING",eo[eo.LEFT_FLOOR=8970]="LEFT_FLOOR",eo[eo.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",eo[eo.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",eo[eo.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",eo[eo.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",eo[eo.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",eo[eo.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",eo[eo.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",eo[eo.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",eo[eo.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",eo[eo.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",eo[eo.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",eo[eo.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",eo[eo.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",eo[eo.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",eo[eo.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",eo[eo.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",eo[eo.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",eo[eo.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",eo[eo.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",eo[eo.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",eo[eo.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",eo[eo.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",eo[eo.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",eo[eo.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",eo[eo.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",eo[eo.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",eo[eo.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",eo[eo.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",eo[eo.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",eo[eo.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",eo[eo.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",eo[eo.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",eo[eo.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",eo[eo.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",eo[eo.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",eo[eo.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",eo[eo.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",eo[eo.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",eo[eo.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",eo[eo.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",eo[eo.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",eo[eo.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(UnicodePsCodePoint||(UnicodePsCodePoint={}));var UnicodeZsCodePoint;(function(eo){eo[eo.SPACE=32]="SPACE",eo[eo.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",eo[eo.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",eo[eo.EN_QUAD=8192]="EN_QUAD",eo[eo.EM_QUAD=8193]="EM_QUAD",eo[eo.EN_SPACE=8194]="EN_SPACE",eo[eo.EM_SPACE=8195]="EM_SPACE",eo[eo.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",eo[eo.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",eo[eo.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",eo[eo.FIGURE_SPACE=8199]="FIGURE_SPACE",eo[eo.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",eo[eo.THIN_SPACE=8201]="THIN_SPACE",eo[eo.HAIR_SPACE=8202]="HAIR_SPACE",eo[eo.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",eo[eo.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",eo[eo.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(UnicodeZsCodePoint||(UnicodeZsCodePoint={}));var VirtualCodePoint;(function(eo){eo[eo.LINE_END=-1]="LINE_END",eo[eo.SPACE=-2]="SPACE"})(VirtualCodePoint||(VirtualCodePoint={}));function createCodePointSearcher(eo){const to=[...new Set(eo)].sort((oo,io)=>oo-io),ro=to.length;if(ro<8)return[oo=>{for(let io=0;ioso+io);++io);no.push(so,so+io)}if(no.length*1.5{for(let so=0;so{let so=0,ao=oo;for(;so>>1;io{let io=0,so=ro;for(;io>>1;ootypeof to=="number")}createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SPACE]);const[isAsciiPunctuationCharacter,asciiPunctuationCharacters]=createCodePointSearcher([AsciiCodePoint.EXCLAMATION_MARK,AsciiCodePoint.DOUBLE_QUOTE,AsciiCodePoint.NUMBER_SIGN,AsciiCodePoint.DOLLAR_SIGN,AsciiCodePoint.PERCENT_SIGN,AsciiCodePoint.AMPERSAND,AsciiCodePoint.SINGLE_QUOTE,AsciiCodePoint.OPEN_PARENTHESIS,AsciiCodePoint.CLOSE_PARENTHESIS,AsciiCodePoint.ASTERISK,AsciiCodePoint.PLUS_SIGN,AsciiCodePoint.COMMA,AsciiCodePoint.MINUS_SIGN,AsciiCodePoint.DOT,AsciiCodePoint.SLASH,AsciiCodePoint.COLON,AsciiCodePoint.SEMICOLON,AsciiCodePoint.OPEN_ANGLE,AsciiCodePoint.EQUALS_SIGN,AsciiCodePoint.CLOSE_ANGLE,AsciiCodePoint.QUESTION_MARK,AsciiCodePoint.AT_SIGN,AsciiCodePoint.OPEN_BRACKET,AsciiCodePoint.BACKSLASH,AsciiCodePoint.CLOSE_BRACKET,AsciiCodePoint.CARET,AsciiCodePoint.UNDERSCORE,AsciiCodePoint.BACKTICK,AsciiCodePoint.OPEN_BRACE,AsciiCodePoint.VERTICAL_SLASH,AsciiCodePoint.CLOSE_BRACE,AsciiCodePoint.TILDE]),isAsciiDigitCharacter=eo=>eo>=AsciiCodePoint.DIGIT0&&eo<=AsciiCodePoint.DIGIT9,isAsciiLowerLetter=eo=>eo>=AsciiCodePoint.LOWERCASE_A&&eo<=AsciiCodePoint.LOWERCASE_Z,isAsciiUpperLetter=eo=>eo>=AsciiCodePoint.UPPERCASE_A&&eo<=AsciiCodePoint.UPPERCASE_Z,isAsciiLetter=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo),isAlphanumeric=eo=>isAsciiLowerLetter(eo)||isAsciiUpperLetter(eo)||isAsciiDigitCharacter(eo),isAsciiCharacter=eo=>eo>=AsciiCodePoint.NUL&&eo<=AsciiCodePoint.DELETE,[isAsciiControlCharacter,asciiControlCharacters]=createCodePointSearcher([AsciiCodePoint.NUL,AsciiCodePoint.SOH,AsciiCodePoint.STX,AsciiCodePoint.ETX,AsciiCodePoint.EOT,AsciiCodePoint.ENQ,AsciiCodePoint.ACK,AsciiCodePoint.BEL,AsciiCodePoint.BS,AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.CR,AsciiCodePoint.SO,AsciiCodePoint.SI,AsciiCodePoint.DLE,AsciiCodePoint.DC1,AsciiCodePoint.DC2,AsciiCodePoint.DC3,AsciiCodePoint.DC4,AsciiCodePoint.NAK,AsciiCodePoint.SYN,AsciiCodePoint.ETB,AsciiCodePoint.CAN,AsciiCodePoint.EM,AsciiCodePoint.SUB,AsciiCodePoint.ESC,AsciiCodePoint.FS,AsciiCodePoint.GS,AsciiCodePoint.RS,AsciiCodePoint.US,AsciiCodePoint.DELETE]),[isWhitespaceCharacter,whitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.VT,AsciiCodePoint.FF,AsciiCodePoint.SPACE,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END]);AsciiCodePoint.SPACE,VirtualCodePoint.SPACE;const isSpaceCharacter=eo=>eo===AsciiCodePoint.SPACE||eo===VirtualCodePoint.SPACE,isLineEnding=eo=>eo===VirtualCodePoint.LINE_END,[isPunctuationCharacter,punctuationCharacters]=createCodePointSearcher([...asciiPunctuationCharacters,...collectCodePointsFromEnum(UnicodePcCodePoint),...collectCodePointsFromEnum(UnicodePdCodePoint),...collectCodePointsFromEnum(UnicodePeCodePoint),...collectCodePointsFromEnum(UnicodePfCodePoint),...collectCodePointsFromEnum(UnicodePiCodePoint),...collectCodePointsFromEnum(UnicodePoCodePoint),...collectCodePointsFromEnum(UnicodePsCodePoint)]),isSpaceLike=eo=>isSpaceCharacter(eo)||isLineEnding(eo),[isUnicodeWhitespaceCharacter,unicodeWhitespaceCharacters]=createCodePointSearcher([AsciiCodePoint.HT,AsciiCodePoint.LF,AsciiCodePoint.FF,AsciiCodePoint.CR,VirtualCodePoint.SPACE,VirtualCodePoint.LINE_END,...collectCodePointsFromEnum(UnicodeZsCodePoint)]);var UnicodeCodePoint;(function(eo){eo[eo.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(UnicodeCodePoint||(UnicodeCodePoint={}));function createEntityReferenceTrie(){const eo=(oo,io)=>{if(oo.length<=4){for(let lo=0;lo=io)return lo;return oo.length}let so=0,ao=oo.length;for(;so>>1;oo[lo].key{let so=to;for(const ao of oo){const lo=eo(so.children,ao);if(lo>=so.children.length){const co={key:ao,children:[]};so.children.push(co),so=co;continue}let uo=so.children[lo];if(uo.key===ao){so=uo;continue}uo={key:ao,children:[]},so.children.splice(lo,0,uo),so=uo}so.value=io},search:(oo,io,so)=>{let ao=to;for(let lo=io;lo=ao.children.length)return null;const fo=ao.children[co];if(fo.key!==uo)return null;if(fo.value!=null)return{nextIndex:lo+1,value:fo.value};ao=fo}return null}}}const entityReferenceTrie=createEntityReferenceTrie();entityReferences.forEach(eo=>entityReferenceTrie.insert(eo.key,eo.value));function eatEntityReference(eo,to,ro){if(to+1>=ro)return null;const no=entityReferenceTrie.search(eo,to,ro);if(no!=null)return no;if(eo[to].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;let oo=0,io=to+1;if(eo[io].codePoint===AsciiCodePoint.LOWERCASE_X||eo[io].codePoint===AsciiCodePoint.UPPERCASE_X){io+=1;for(let ao=1;ao<=6&&io=AsciiCodePoint.UPPERCASE_A&&lo<=AsciiCodePoint.UPPERCASE_F){oo=(oo<<4)+(lo-AsciiCodePoint.UPPERCASE_A+10);continue}if(lo>=AsciiCodePoint.LOWERCASE_A&&lo<=AsciiCodePoint.LOWERCASE_F){oo=(oo<<4)+(lo-AsciiCodePoint.LOWERCASE_A+10);continue}break}}else for(let ao=1;ao<=7&&io=ro||eo[io].codePoint!==AsciiCodePoint.SEMICOLON)return null;let so;try{oo===0&&(oo=UnicodeCodePoint.REPLACEMENT_CHARACTER),so=String.fromCodePoint(oo)}catch{so=String.fromCodePoint(UnicodeCodePoint.REPLACEMENT_CHARACTER)}return{nextIndex:io+1,value:so}}function foldCase(eo){return Array.from(eo).map(to=>foldingCaseCodeMap[to]??to).join("")}(()=>{try{const eo=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}catch{const eo=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,to=new RegExp(`(${eo})\\n+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}})();(()=>{try{const eo=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}catch{const eo=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,to=new RegExp(`(${eo})[\\s\\n]+(${eo})`,"gu");return ro=>ro.replace(to,"$1$2")}})();function*createNodePointGenerator(eo){let to=0,ro=1,no=1;const oo=typeof eo=="string"?[eo]:eo;for(const io of oo){const so=[];for(const uo of io){const co=uo.codePointAt(0);so.push(co)}const ao=[],lo=so.length;for(let uo=0;uo>2,uo=so-io&3;for(let co=0;co>2,uo=so-io&3;for(let co=0;co!0;if(eo instanceof Function)return eo;if(eo.length===0)return()=>!1;if(eo.length===1){const to=eo[0];return ro=>ro.type===to}if(eo.length===2){const[to,ro]=eo;return no=>no.type===to||no.type===ro}return to=>{for(const ro of eo)if(to.type===ro)return!0;return!1}}function traverseAst(eo,to,ro){const no=createNodeMatcher(to),oo=io=>{const{children:so}=io;for(let ao=0;ao{const no={};traverseAst(eo,to,so=>{const ao=so;no[ao.identifier]===void 0&&(no[ao.identifier]=ao)});const oo=[];for(const so of ro)no[so.identifier]===void 0&&(no[so.identifier]=so,oo.push(so));return{root:oo.length>0?{...eo,children:eo.children.concat(oo)}:eo,definitionMap:no}},astClasses=mergeStyleSets({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),NodeRendererContextType=React.createContext(null);NodeRendererContextType.displayName="NodeRendererContextType";const useNodeRendererContext=()=>React.useContext(NodeRendererContextType);class SafeBatchHandler{constructor(){Ws(this,"_errors");Ws(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(to){try{to()}catch(ro){this._errors.push(ro),this._summary=void 0}}summary(to){if(this._summary===void 0){if(this._errors.length===1)throw this._summary=this._errors[0];this._errors.length>1&&(this._summary=new AggregateError(this._errors,to))}if(this._summary!==void 0)throw this._summary}}function disposeAll(eo){const to=new SafeBatchHandler;for(const ro of eo)to.run(()=>ro.dispose());to.summary("[disposeAll] Encountered errors while disposing"),to.cleanup()}class BatchDisposable{constructor(){Ws(this,"_disposed");Ws(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{disposeAll(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(to){to.disposed||(this._disposed?to.dispose():this._disposables.push(to))}}class Disposable{constructor(to){Ws(this,"_onDispose");Ws(this,"_disposed");this._onDispose=to,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function isDisposable(eo){return eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"}const noop$1=()=>{};class Subscriber{constructor(to){Ws(this,"_onDispose");Ws(this,"_onNext");Ws(this,"_disposed");this._onDispose=(to==null?void 0:to.onDispose)??noop$1,this._onNext=to.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(to,ro){this._disposed||this._onNext(to,ro)}}const noopUnsubscribable$1={unsubscribe:()=>{}};class Subscribers{constructor(to={}){Ws(this,"ARRANGE_THRESHOLD");Ws(this,"_disposed");Ws(this,"_items");Ws(this,"_subscribingCount");this.ARRANGE_THRESHOLD=to.ARRANGE_THRESHOLD??16,this._disposed=!1,this._items=[],this._subscribingCount=0}get size(){return this._subscribingCount}get disposed(){return this._disposed}dispose(){if(this._disposed)return;this._disposed=!0;const to=new SafeBatchHandler,ro=this._items;for(let no=0;nooo.subscriber.dispose()))}ro.length=0,this._subscribingCount=0,to.summary("Encountered errors while disposing."),to.cleanup()}notify(to,ro){if(this._disposed)return;const no=new SafeBatchHandler,oo=this._items;for(let io=0,so=oo.length;ioao.subscriber.next(to,ro))}no.summary("Encountered errors while notifying subscribers."),no.cleanup()}subscribe(to){if(to.disposed)return noopUnsubscribable$1;if(this.disposed)return to.dispose(),noopUnsubscribable$1;const ro={subscriber:to,unsubscribed:!1};return this._items.push(ro),this._subscribingCount+=1,{unsubscribe:()=>{ro.unsubscribed||(ro.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const to=this._items;if(to.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=to.length){const ro=[];for(let no=0;no{},noopUnsubscribable={unsubscribe:noop},noopUnobservable={unobserve:noop},isObservable=eo=>eo===null||typeof eo!="object"?!1:typeof Reflect.get(eo,"dispose")=="function"&&typeof Reflect.get(eo,"disposed")=="boolean"&&typeof Reflect.get(eo,"subscribe")=="function"&&typeof Reflect.get(eo,"equals")=="function"&&typeof Reflect.get(eo,"getSnapshot")=="function"&&typeof Reflect.get(eo,"next")=="function",defaultEquals=(eo,to)=>Object.is(eo,to);class Observable extends BatchDisposable{constructor(ro,no={}){super();Ws(this,"equals");Ws(this,"_delay");Ws(this,"_subscribers");Ws(this,"_value");Ws(this,"_updateTick");Ws(this,"_notifyTick");Ws(this,"_lastNotifiedValue");Ws(this,"_timer");const{equals:oo=defaultEquals}=no;this._delay=Math.max(0,Number(no.delay)||0),this._subscribers=new Subscribers,this._value=ro,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=oo}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(ro,no){if(this.disposed){if((no==null?void 0:no.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(ro)}.`);return}!((no==null?void 0:no.force)??!1)&&this.equals(ro,this._value)||(this._value=ro,this._updateTick+=1,this._notify())}subscribe(ro){if(ro.disposed)return noopUnsubscribable;const no=this._lastNotifiedValue,oo=this._value;return this.disposed?(ro.next(oo,no),ro.dispose(),noopUnsubscribable):(this._flush(),ro.next(oo,no),this._subscribers.subscribe(ro))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const ro=this._lastNotifiedValue,no=this._value;this._lastNotifiedValue=no,this._notifyTick=this._updateTick,this._subscribers.notify(no,ro)}}const equals=(eo,to)=>eo===to;class Ticker extends Observable{constructor(to={}){const{start:ro=0,delay:no}=to;super(ro,{delay:no,equals})}tick(to){this.next(this._value+1,to)}observe(to,ro){if(this.disposed){if((ro==null?void 0:ro.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return noopUnobservable}if(to.disposed)return noopUnobservable;const no=new Subscriber({onNext:()=>this.tick()}),oo=to.subscribe(no),io=new Disposable(()=>{no.dispose(),oo.unsubscribe()});return this.registerDisposable(io),{unobserve:()=>io.dispose()}}}class Computed{constructor(to){Ws(this,"_observable");Ws(this,"getSnapshot",()=>this._observable.getSnapshot());Ws(this,"getServerSnapshot",()=>this._observable.getSnapshot());Ws(this,"subscribeStateChange",to=>{const ro=new Subscriber({onNext:()=>to()}),no=this._observable.subscribe(ro),oo=new Disposable(()=>{ro.dispose(),no.unsubscribe()});return this._observable.registerDisposable(oo),()=>oo.dispose()});this._observable=to}static fromObservables(to,ro,no){const oo=new Ticker;for(const lo of to)oo.observe(lo);const io=()=>{const lo=to.map(uo=>uo.getSnapshot());return ro(lo)},so=new Observable(io(),no);so.registerDisposable(oo);const ao=new Subscriber({onNext:()=>so.next(io())});return oo.subscribe(ao),new Computed(so)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(to){this._observable.registerDisposable(to)}subscribe(to){return this._observable.subscribe(to)}}class State extends Observable{constructor(){super(...arguments);Ws(this,"getSnapshot",()=>super.getSnapshot());Ws(this,"getServerSnapshot",()=>super.getSnapshot());Ws(this,"setState",ro=>{const no=this.getSnapshot(),oo=ro(no);super.next(oo)});Ws(this,"subscribeStateChange",ro=>{const no=new Subscriber({onNext:()=>ro()}),oo=super.subscribe(no),io=new Disposable(()=>{no.dispose(),oo.unsubscribe()});return this.registerDisposable(io),()=>io.dispose()})}}class ViewModel extends BatchDisposable{constructor(){super();Ws(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const ro of Reflect.ownKeys(this))if(typeof ro=="string"&&ro.endsWith("$")){const no=this[ro];isDisposable(no)&&no.dispose()}for(const ro of this._tickerMap.values())ro.ticker.dispose();this._tickerMap.clear()}}ticker(ro){const no=Array.from(new Set(ro)).sort(),oo=no.join("|");let io=this._tickerMap.get(oo);if(io===void 0){const so=new Ticker;io={keys:no,ticker:so},this.registerDisposable(so),this._tickerMap.set(oo,io);for(const ao of no){const lo=this[ao];if(!isObservable(lo)){console.warn("[ViewModel.ticker] not an observable, key:",ao,"val:",lo);continue}so.observe(lo)}}return io}}class ReactMarkdownViewModel extends ViewModel{constructor(to){super(),this.preferCodeWrap$=new State(!1);const{definitionMap:ro,rendererMap:no,showCodeLineno:oo,themeScheme:io}=to;this.definitionMap$=new State(ro),this.rendererMap$=new State(no),this.showCodeLineno$=new State(oo),this.themeScheme$=new State(io)}}function useSyncExternalStore$2(eo,to,ro){const no=to(),[{inst:oo},io]=reactExports.useState({inst:{value:no,getSnapshot:to}});return reactExports.useLayoutEffect(()=>{oo.value=no,oo.getSnapshot=to,checkIfSnapshotChanged(oo)&&io({inst:oo})},[eo,no,to]),reactExports.useEffect(()=>(checkIfSnapshotChanged(oo)&&io({inst:oo}),eo(()=>{checkIfSnapshotChanged(oo)&&io({inst:oo})})),[eo]),reactExports.useDebugValue(no),no}function checkIfSnapshotChanged(eo){const to=eo.getSnapshot,ro=eo.value;try{const no=to();return!Object.is(ro,no)}catch{return!0}}function useSyncExternalStore$1(eo,to,ro){return to()}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",shim=canUseDOM?useSyncExternalStore$2:useSyncExternalStore$1,builtin=reactExports.useSyncExternalStore,useSyncExternalStore=builtin||shim;function useStateValue(eo){const{getSnapshot:to,getServerSnapshot:ro,subscribeStateChange:no}=eo;return useSyncExternalStore(no,to,ro)}const NodesRenderer=eo=>{const{nodes:to}=eo,{viewmodel:ro}=useNodeRendererContext(),no=useStateValue(ro.rendererMap$);return!Array.isArray(to)||to.length<=0?jsxRuntimeExports.jsx(React.Fragment,{}):jsxRuntimeExports.jsx(NodesRendererInner,{nodes:to,rendererMap:no})};class NodesRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return!lodashExports.isEqual(ro.nodes,to.nodes)||ro.rendererMap!==to.rendererMap}render(){const{nodes:to,rendererMap:ro}=this.props;return jsxRuntimeExports.jsx(React.Fragment,{children:to.map((no,oo)=>{const io=`${no.type}-${oo}`,so=ro[no.type]??ro._fallback;return jsxRuntimeExports.jsx(so,{...no},io)})})}}var TokenizerType;(function(eo){eo.BLOCK="block",eo.INLINE="inline"})(TokenizerType||(TokenizerType={}));var TokenizerPriority;(function(eo){eo[eo.ATOMIC=10]="ATOMIC",eo[eo.FENCED_BLOCK=10]="FENCED_BLOCK",eo[eo.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",eo[eo.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",eo[eo.IMAGES=4]="IMAGES",eo[eo.LINKS=3]="LINKS",eo[eo.CONTAINING_INLINE=2]="CONTAINING_INLINE",eo[eo.SOFT_INLINE=1]="SOFT_INLINE",eo[eo.FALLBACK=-1]="FALLBACK"})(TokenizerPriority||(TokenizerPriority={}));class BaseInlineTokenizer{constructor(to){Ws(this,"type",TokenizerType.INLINE);Ws(this,"name");Ws(this,"priority");this.name=to.name,this.priority=to.priority}toString(){return this.name}}function*genFindDelimiter(eo){let to=-1,ro=null;for(;;){const[no,oo]=yield ro;to===oo&&(ro==null||ro.startIndex>=no)||(to=oo,ro=eo(no,oo))}}class BaseBlockTokenizer{constructor(to){Ws(this,"type",TokenizerType.BLOCK);Ws(this,"name");Ws(this,"priority");this.name=to.name,this.priority=to.priority}extractPhrasingContentLines(to){return null}buildBlockToken(to,ro){return null}toString(){return this.name}}function calcStartPoint(eo,to){const{line:ro,column:no,offset:oo}=eo[to];return{line:ro,column:no,offset:oo}}function calcEndPoint(eo,to){const{line:ro,column:no,offset:oo}=eo[to];return{line:ro,column:no+1,offset:oo+1}}function calcPositionFromPhrasingContentLines(eo){const to=eo[0],ro=eo[eo.length-1];return{start:calcStartPoint(to.nodePoints,to.startIndex),end:calcEndPoint(ro.nodePoints,ro.endIndex-1)}}function mergeContentLinesFaithfully(eo,to=0,ro=eo.length){if(to>=ro||to<0||ro>eo.length)return[];const no=[];for(let oo=to;oo=ro||to<0||ro>eo.length)return[];for(let lo=to;lo+1=0;--ao){const lo=oo[ao];if(!isWhitespaceCharacter(lo.codePoint))break}for(let lo=so;lo<=ao;++lo)no.push(oo[lo]);return no}function encodeLinkDestination(eo){let to=eo;for(;;)try{const ro=decodeURIComponent(to);if(ro===to)break;to=ro}catch{break}return encodeURI(to)}function resolveLabelToIdentifier(eo){const to=eo.trim().replace(/\s+/gu," ").toLowerCase();return foldCase(to)}function resolveLinkLabelAndIdentifier(eo,to,ro){const no=calcStringFromNodePoints(eo,to,ro,!0);if(no.length<=0)return null;const oo=resolveLabelToIdentifier(no);return{label:no,identifier:oo}}function eatLinkLabel(eo,to,ro){let no=to+1;const oo=Math.min(no+1e3,ro);for(;noto;--ro){const no=eo[ro];if(no.firstNonWhitespaceIndexro?[]:eo.slice(to,ro+1)}const prefix$1="Invariant failed";function invariant(eo,to){if(!eo)throw new Error(prefix$1)}const createBlockContentProcessor=(eo,to)=>{const ro={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},no=[];no.push({hook:{isContainingBlock:!0},token:ro});let oo=0;const io=ho=>{for(let mo=oo;mo>=0;--mo){const vo=no[mo];vo.token.position.end={...ho}}},so=(ho,mo)=>{if(mo.length<=0)return null;const vo=eo.filter(xo=>xo!==ho),bo=createBlockContentProcessor(vo,to);for(const xo of mo)bo.consume(xo);return bo},ao=()=>{const ho=no.pop();if(ho!=null){if(no.length>0){const mo=no[no.length-1];if(ho.hook.onClose!=null){const vo=ho.hook.onClose(ho.token);if(vo!=null)switch(vo.status){case"closingAndRollback":{const bo=so(ho.hook,vo.lines);if(bo==null)break;const xo=bo.done();mo.token.children.push(...xo.children);break}case"failedAndRollback":{mo.token.children.pop();const bo=so(ho.hook,vo.lines);if(bo==null)break;const xo=bo.done();mo.token.children.push(...xo.children);break}}}}return oo>=no.length&&(oo=no.length-1),ho}},lo=ho=>{for(;no.length>ho;)ao()},uo=(ho,mo,vo)=>{lo(oo+1),no[oo].token.children.push(mo),io(mo.position.end),oo+=1,no.push({hook:ho,token:mo}),vo&&ao()},co=(ho,mo,vo)=>{const bo=so(ho,mo);if(bo==null)return!1;const xo=bo.shallowSnapshot(),_o=xo[0];_o.token.children!=null&&vo.token.children.push(..._o.token.children),io(_o.token.position.end);for(let So=1;So{const{nodePoints:mo,startIndex:vo,endIndex:bo}=ho;let{firstNonWhitespaceIndex:xo,countOfPrecedeSpaces:_o,startIndex:So}=ho;const Eo=()=>({nodePoints:mo,startIndex:So,endIndex:bo,firstNonWhitespaceIndex:xo,countOfPrecedeSpaces:_o}),ko=($o,Bo)=>{if(invariant(So<=$o),Bo){const Mo=calcEndPoint(mo,$o-1);io(Mo)}if(So!==$o)for(So=$o,_o=0,xo=$o;xo{const{token:Mo}=no[oo],Ho=$o.eatOpener(Bo,Mo);if(Ho==null)return!1;invariant(Ho.nextIndex>So,`[consumeNewOpener] The marker of the new data node cannot be empty. + tokenizer(${Ho.token._tokenizer})`),ko(Ho.nextIndex,!1);const jo=Ho.token;return jo._tokenizer=$o.name,uo($o,jo,!!Ho.saturated),!0},Co=($o,Bo)=>{if($o.eatAndInterruptPreviousSibling==null)return!1;const{hook:Mo,token:Ho}=no[oo],{token:jo}=no[oo-1];if($o.priority<=Mo.priority)return!1;const Oo=$o.eatAndInterruptPreviousSibling(Bo,Ho,jo);if(Oo==null)return!1;lo(oo),jo.children.pop(),Oo.remainingSibling!=null&&(Array.isArray(Oo.remainingSibling)?jo.children.push(...Oo.remainingSibling):jo.children.push(Oo.remainingSibling)),ko(Oo.nextIndex,!1);const Fo=Oo.token;return Fo._tokenizer=$o.name,uo($o,Fo,!!Oo.saturated),!0},Ro=()=>{if(oo=1,no.length<2)return;let{token:$o}=no[oo-1];for(;SoGo!==Mo&&Co(Go,Ho)))break;const jo=Mo.eatContinuationText==null?{status:"notMatched"}:Mo.eatContinuationText(Ho,Bo.token,$o);let Oo=!1,Fo=!1;switch(jo.status){case"failedAndRollback":{if($o.children.pop(),no.length=oo,oo-=1,jo.lines.length>0){const Go=no[oo];if(co(Mo,jo.lines,Go)){Fo=!0;break}}Oo=!0;break}case"closingAndRollback":{if(lo(oo),jo.lines.length>0){const Go=no[oo];if(co(Mo,jo.lines,Go)){Fo=!0;break}}Oo=!0;break}case"notMatched":{oo-=1,Oo=!0;break}case"closing":{ko(jo.nextIndex,!0),oo-=1,Oo=!0;break}case"opening":{ko(jo.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${jo.status}).`)}if(Oo)break;Fo||(oo+=1,$o=Bo.token)}},Ao=()=>{if(!(So>=bo)){if(oo=4)return}else oo=no.length-1;for(;So{if(So>=bo||oo+1>=no.length)return!1;const{hook:$o,token:Bo}=no[no.length-1];if($o.eatLazyContinuationText==null)return!1;const{token:Mo}=no[no.length-2],Ho=Eo(),jo=$o.eatLazyContinuationText(Ho,Bo,Mo);switch(jo.status){case"notMatched":return!1;case"opening":return oo=no.length-1,ko(jo.nextIndex,!0),oo=no.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${jo.status}).`)}};if(Ro(),Ao(),Io()||lo(oo+1),to!=null&&So=bo)},done:()=>{for(;no.length>1;)ao();return ro},shallowSnapshot:()=>[...no]}},createSinglePriorityDelimiterProcessor=()=>{let eo=0;const to=[],ro=[],no=[],oo=fo=>{let po=fo-1;for(;po>=0&&ro[po].inactive;)po-=1;ro.length=po+1},io=(fo,po)=>{ro.push({hook:fo,delimiter:po,inactive:!1,tokenStackIndex:no.length})},so=(fo,po)=>{if(ro.length<=0)return null;let ho=null;for(let mo=ro.length-1;mo>=0;--mo){if(ho=ro[mo],ho.inactive||ho.hook!==fo)continue;const vo=ho.delimiter,bo=fo.isDelimiterPair(vo,po,to);if(bo.paired)return vo;if(!bo.closer)return null}return null},ao=(fo,po)=>{if(ro.length<=0)return po;let ho,mo=po,vo=[];for(let bo=ro.length-1;bo>=0;--bo){const xo=ro[bo];if(xo.hook!==fo||xo.inactive)continue;const _o=xo.tokenStackIndex;for(_o0){for(const wo of ko)wo._tokenizer=fo.name;vo.unshift(...ko)}ho=void 0,xo.inactive=!0}if(!So.closer){const ko=fo.processSingleDelimiter(mo);if(ko.length>0){for(const wo of ko)wo._tokenizer=fo.name;vo.push(...ko)}mo=void 0}break}const Eo=fo.processDelimiterPair(ho,mo,vo);{for(const ko of Eo.tokens)ko._tokenizer==null&&(ko._tokenizer=fo.name);vo=Eo.tokens}ho=Eo.remainOpenerDelimiter,mo=Eo.remainCloserDelimiter,oo(bo),bo=Math.min(bo,ro.length),ho!=null&&io(fo,ho)}if(mo==null||mo.type==="full")break}if(no.push(...vo),mo==null)return null;if(mo.type==="full"||mo.type==="closer"){const bo=fo.processSingleDelimiter(mo);for(const xo of bo)xo._tokenizer=fo.name,no.push(xo);return null}return mo};return{process:(fo,po)=>{for(;eo=po.endIndex)break;ho.startIndex>=po.startIndex||no.push(ho)}switch(po.type){case"opener":{io(fo,po);break}case"both":{const ho=ao(fo,po);ho!=null&&io(fo,ho);break}case"closer":{ao(fo,po);break}case"full":{const ho=fo.processSingleDelimiter(po);for(const mo of ho)mo._tokenizer=fo.name,no.push(mo);break}default:throw new TypeError(`Unexpected delimiter type(${po.type}) from ${fo.name}.`)}},done:()=>{const fo=[];for(const{delimiter:ho,hook:mo}of ro){const vo=mo.processSingleDelimiter(ho);for(const bo of vo)bo._tokenizer=mo.name,fo.push(bo)}if(ro.length=0,fo.length>0){const ho=mergeSortedTokenStack(no,fo);no.length=0,no.push(...ho)}return no.concat(to.slice(eo))},reset:fo=>{to.length=fo.length;for(let po=0;po{if(eo.length<=0)return to;if(to.length<=0)return eo;const ro=[];let no=0,oo=0;for(;no{const ro=(io,so,ao)=>{let lo=[],uo=null;const co=[io,so];for(const po of ao){const ho=po.findDelimiter(co);if(ho!=null){if(uo!=null){if(ho.startIndex>uo)continue;ho.startIndex1){let po=0;for(const ho of lo){const mo=ho.delimiter.type;if(mo==="full")return{items:[ho],nextIndex:ho.delimiter.endIndex};(mo==="both"||mo==="closer")&&(po+=1)}if(po>1){let ho=-1,mo=-1;for(let bo=0;bo-1?[lo[ho]]:lo.filter(bo=>bo.delimiter.type!=="closer"),nextIndex:fo}}}return{items:lo,nextIndex:fo}},no=createSinglePriorityDelimiterProcessor();return{process:(io,so,ao)=>{let lo=io;for(let uo=to;uo{const no=[];for(let oo=0;oo{let po=so.process(uo,co,fo);return po=ro(po,co,fo),po}}),lo=eo[oo].priority;for(;oo{let ro;const no=eo.match(to);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(oo,io,so)=>({tokens:so}),processSingleDelimiter:()=>[],...no,name:eo.name,priority:eo.priority,findDelimiter:oo=>ro.next(oo).value,reset:()=>{ro=no.findDelimiter(),ro.next()}}};function createProcessor(eo){const{inlineTokenizers:to,inlineTokenizerMap:ro,blockTokenizers:no,blockTokenizerMap:oo,blockFallbackTokenizer:io,inlineFallbackTokenizer:so,shouldReservePosition:ao,presetDefinitions:lo,presetFootnoteDefinitions:uo,formatUrl:co}=eo;let fo=!1;const po=new Set,ho=new Set;let mo=[],vo=-1,bo=-1;const xo=Object.freeze({matchBlockApi:{extractPhrasingLines:Ao,rollbackPhrasingLines:Io,registerDefinitionIdentifier:Fo=>{fo&&po.add(Fo)},registerFootnoteDefinitionIdentifier:Fo=>{fo&&ho.add(Fo)}},parseBlockApi:{shouldReservePosition:ao,formatUrl:co,processInlines:Ho,parseBlockTokens:Mo},matchInlineApi:{hasDefinition:Fo=>po.has(Fo),hasFootnoteDefinition:Fo=>ho.has(Fo),getNodePoints:()=>mo,getBlockStartIndex:()=>vo,getBlockEndIndex:()=>bo,resolveFallbackTokens:$o},parseInlineApi:{shouldReservePosition:ao,calcPosition:Fo=>({start:calcStartPoint(mo,Fo.startIndex),end:calcEndPoint(mo,Fo.endIndex-1)}),formatUrl:co,getNodePoints:()=>mo,hasDefinition:Fo=>po.has(Fo),hasFootnoteDefinition:Fo=>ho.has(Fo),parseInlineTokens:Oo}}),_o=no.map(Fo=>({...Fo.match(xo.matchBlockApi),name:Fo.name,priority:Fo.priority})),So=new Map(Array.from(oo.entries()).map(Fo=>[Fo[0],Fo[1].parse(xo.parseBlockApi)])),Eo=io?{...io.match(xo.matchBlockApi),name:io.name,priority:io.priority}:null,ko=createProcessorHookGroups(to,xo.matchInlineApi,$o),wo=new Map(Array.from(ro.entries()).map(Fo=>[Fo[0],Fo[1].parse(xo.parseInlineApi)])),Co=createPhrasingContentProcessor(ko,0);return{process:Ro};function Ro(Fo){po.clear(),ho.clear(),fo=!0;const Go=Bo(Fo);fo=!1;for(const Zo of lo)po.add(Zo.identifier);for(const Zo of uo)ho.add(Zo.identifier);const qo=Mo(Go.children);return ao?{type:"root",position:Go.position,children:qo}:{type:"root",children:qo}}function Ao(Fo){const Go=oo.get(Fo._tokenizer);return(Go==null?void 0:Go.extractPhrasingContentLines(Fo))??null}function Io(Fo,Go){if(Go!=null){const Xo=oo.get(Go._tokenizer);if(Xo!==void 0&&Xo.buildBlockToken!=null){const Zo=Xo.buildBlockToken(Fo,Go);if(Zo!==null)return Zo._tokenizer=Xo.name,[Zo]}}return Bo([Fo]).children}function $o(Fo,Go,qo){if(so==null)return Fo;let Xo=Go;const Zo=[];for(const Qo of Fo){if(Xoso.priority)break}io<0||io>=to.length?to.push(no):to.splice(io,0,no)}_unregisterTokenizer(to,ro,no){var ao,lo;const oo=typeof no=="string"?no:no.name;if(!ro.delete(oo))return;((ao=this.blockFallbackTokenizer)==null?void 0:ao.name)===oo&&(this.blockFallbackTokenizer=null),((lo=this.inlineFallbackTokenizer)==null?void 0:lo.name)===oo&&(this.inlineFallbackTokenizer=null);const so=to.findIndex(uo=>uo.name===oo);so>=0&&to.splice(so,1)}}function eatEmailAddress(eo,to,ro){let no=to;for(;no=ro||eo[no].codePoint!==AsciiCodePoint.AT_SIGN||!isAlphanumeric(eo[no+1].codePoint))return{valid:!1,nextIndex:no+1};for(no=eatAddressPart0(eo,no+2,ro);no+1=to?oo+1:to}function eatAbsoluteUri(eo,to,ro){const no=eatAutolinkSchema(eo,to,ro);let{nextIndex:oo}=no;if(!no.valid||oo>=ro||eo[oo].codePoint!==AsciiCodePoint.COLON)return{valid:!1,nextIndex:oo};for(oo+=1;oo32?{valid:!1,nextIndex:no+1}:{valid:!0,nextIndex:no}}const helpers=[{contentType:"uri",eat:eatAbsoluteUri},{contentType:"email",eat:eatEmailAddress}],match$l=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no;soto.map(ro=>{const no=eo.getNodePoints();let oo=calcStringFromNodePoints(no,ro.startIndex+1,ro.endIndex-1);ro.contentType==="email"&&(oo="mailto:"+oo);const io=eo.formatUrl(oo),so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(ro),url:io,children:so}:{type:LinkType,url:io,children:so}})}},uniqueName$j="@yozora/tokenizer-autolink";class AutolinkTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$j,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$l);Ws(this,"parse",parse$l)}}const match$k=function(){return{isContainingBlock:!0,eatOpener:eo,eatAndInterruptPreviousSibling:to,eatContinuationText:ro};function eo(no){if(no.countOfPrecedeSpaces>=4)return null;const{nodePoints:oo,startIndex:io,endIndex:so,firstNonWhitespaceIndex:ao}=no;if(ao>=so||oo[ao].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;let lo=ao+1;return lo=4||uo>=lo||so[uo].codePoint!==AsciiCodePoint.CLOSE_ANGLE?io.nodeType===BlockquoteType?{status:"opening",nextIndex:ao}:{status:"notMatched"}:{status:"opening",nextIndex:uo+1to.map(ro=>{const no=eo.parseBlockTokens(ro.children);return eo.shouldReservePosition?{type:BlockquoteType,position:ro.position,children:no}:{type:BlockquoteType,children:no}})}},uniqueName$i="@yozora/tokenizer-blockquote";class BlockquoteTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$i,priority:ro.priority??TokenizerPriority.CONTAINING_BLOCK});Ws(this,"match",match$k);Ws(this,"parse",parse$k)}}const uniqueName$h="@yozora/tokenizer-break";var BreakTokenMarkerType;(function(eo){eo.BACKSLASH="backslash",eo.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(BreakTokenMarkerType||(BreakTokenMarkerType={}));const match$j=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no+1;so=no&&io[co].codePoint===AsciiCodePoint.BACKSLASH;co-=1);so-co&1||(lo=so-1,uo=BreakTokenMarkerType.BACKSLASH);break}case AsciiCodePoint.SPACE:{let co=so-2;for(;co>=no&&io[co].codePoint===AsciiCodePoint.SPACE;co-=1);so-co>2&&(lo=co+1,uo=BreakTokenMarkerType.MORE_THAN_TWO_SPACES);break}}if(!(lo==null||uo==null))return{type:"full",markerType:uo,startIndex:lo,endIndex:so}}return null}function ro(no){return[{nodeType:BreakType,startIndex:no.startIndex,endIndex:no.endIndex}]}},parse$j=function(eo){return{parse:to=>to.map(ro=>eo.shouldReservePosition?{type:BreakType,position:eo.calcPosition(ro)}:{type:BreakType})}};class BreakTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$h,priority:ro.priority??TokenizerPriority.SOFT_INLINE});Ws(this,"match",match$j);Ws(this,"parse",parse$j)}}function eatAndCollectLinkDestination(eo,to,ro,no){let oo=to;no==null&&(no={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const io=eatOptionalWhitespaces(eo,oo,ro);if(io>=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];so.codePoint===AsciiCodePoint.OPEN_ANGLE&&(oo+=1,no.hasOpenAngleBracket=!0,no.nodePoints.push(so))}if(no.hasOpenAngleBracket){for(;oo=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];if(so.codePoint!==AsciiCodePoint.OPEN_BRACKET)return{nextIndex:-1,state:no};oo+=1,no.nodePoints.push(so)}for(;oo=ro)return{nextIndex:-1,state:no};if(no.nodePoints.length<=0){oo=io;const so=eo[oo];switch(so.codePoint){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:case AsciiCodePoint.OPEN_PARENTHESIS:no.wrapSymbol=so.codePoint,no.nodePoints.push(so),oo+=1;break;default:return{nextIndex:-1,state:no}}}if(no.wrapSymbol==null)return{nextIndex:-1,state:no};switch(no.wrapSymbol){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(;oo=ro||eo[oo+1].codePoint===VirtualCodePoint.LINE_END){no.nodePoints.push(so),no.saturated=!0;break}return{nextIndex:-1,state:no};default:no.nodePoints.push(so)}}break}}return{nextIndex:ro,state:no}}const match$i=function(eo){return{isContainingBlock:!1,eatOpener:to,eatContinuationText:ro,onClose:no};function to(oo){if(oo.countOfPrecedeSpaces>=4)return null;const{nodePoints:io,startIndex:so,endIndex:ao,firstNonWhitespaceIndex:lo}=oo;if(lo>=ao)return null;let uo=lo;const{nextIndex:co,state:fo}=eatAndCollectLinkLabel(io,uo,ao,null);if(co<0)return null;const po=io[so].line,ho=()=>({nodeType:DefinitionType,position:{start:calcStartPoint(io,so),end:calcEndPoint(io,ao-1)},label:fo,destination:null,title:null,lineNoOfLabel:po,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[oo]});if(!fo.saturated)return{token:ho(),nextIndex:ao};if(co<0||co+1>=ao||io[co].codePoint!==AsciiCodePoint.COLON)return null;if(uo=eatOptionalWhitespaces(io,co+1,ao),uo>=ao)return{token:ho(),nextIndex:ao};const{nextIndex:mo,state:vo}=eatAndCollectLinkDestination(io,uo,ao,null);if(mo<0||!vo.saturated&&mo!==ao)return null;if(uo=eatOptionalWhitespaces(io,mo,ao),uo>=ao){const So=ho();return So.destination=vo,So.lineNoOfDestination=po,{token:So,nextIndex:ao}}if(uo===mo)return null;const{nextIndex:bo,state:xo}=eatAndCollectLinkTitle(io,uo,ao,null);if(bo>=0&&(uo=bo),uo=uo||so[bo].codePoint!==AsciiCodePoint.COLON)return{status:"failedAndRollback",lines:io.lines};fo=bo+1}if(io.destination==null){if(fo=eatOptionalWhitespaces(so,fo,uo),fo>=uo)return{status:"failedAndRollback",lines:io.lines};const{nextIndex:bo,state:xo}=eatAndCollectLinkDestination(so,fo,uo,null);if(bo<0||!xo.saturated)return{status:"failedAndRollback",lines:io.lines};if(fo=eatOptionalWhitespaces(so,bo,uo),fo>=uo)return io.destination=xo,io.lines.push(oo),{status:"opening",nextIndex:uo};io.lineNoOfDestination=co,io.lineNoOfTitle=co}io.lineNoOfTitle<0&&(io.lineNoOfTitle=co);const{nextIndex:po,state:ho}=eatAndCollectLinkTitle(so,fo,uo,io.title);if(io.title=ho,po<0||ho.nodePoints.length<=0||ho.saturated&&eatOptionalWhitespaces(so,po,uo)to.map(ro=>{const no=ro._label,oo=ro._identifier,io=ro.destination.nodePoints,so=io[0].codePoint===AsciiCodePoint.OPEN_ANGLE?calcEscapedStringFromNodePoints(io,1,io.length-1,!0):calcEscapedStringFromNodePoints(io,0,io.length,!0),ao=eo.formatUrl(so),lo=ro.title==null?void 0:calcEscapedStringFromNodePoints(ro.title.nodePoints,1,ro.title.nodePoints.length-1);return eo.shouldReservePosition?{type:DefinitionType,position:ro.position,identifier:oo,label:no,url:ao,title:lo}:{type:DefinitionType,identifier:oo,label:no,url:ao,title:lo}})}},uniqueName$g="@yozora/tokenizer-definition";class DefinitionTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$g,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$i);Ws(this,"parse",parse$i)}}const match$h=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockStartIndex(),lo=eo.getBlockEndIndex(),uo=(fo,po)=>{if(po===lo)return!1;if(po===io)return!0;const ho=so[po];if(isUnicodeWhitespaceCharacter(ho.codePoint))return!1;if(!isPunctuationCharacter(ho.codePoint)||fo<=oo)return!0;const mo=so[fo-1];return isUnicodeWhitespaceCharacter(mo.codePoint)||isPunctuationCharacter(mo.codePoint)},co=(fo,po)=>{if(fo===ao)return!1;if(fo===oo)return!0;const ho=so[fo-1];if(isUnicodeWhitespaceCharacter(ho.codePoint))return!1;if(!isPunctuationCharacter(ho.codePoint)||po>=io)return!0;const mo=so[po];return isUnicodeWhitespaceCharacter(mo.codePoint)||isPunctuationCharacter(mo.codePoint)};for(let fo=oo;fooo&&!isPunctuationCharacter(so[ho-1].codePoint)&&(xo=!1);const Eo=so[mo];isPunctuationCharacter(Eo.codePoint)||(_o=!1)}if(!xo&&!_o)break;const So=mo-ho;return{type:xo?_o?"both":"opener":"closer",startIndex:ho,endIndex:mo,thickness:So,originalThickness:So}}}}return null}function ro(oo,io){const so=eo.getNodePoints();return so[oo.startIndex].codePoint!==so[io.startIndex].codePoint||(oo.type==="both"||io.type==="both")&&(oo.originalThickness+io.originalThickness)%3===0&&oo.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function no(oo,io,so){let ao=1;oo.thickness>1&&io.thickness>1&&(ao=2),so=eo.resolveInternalTokens(so,oo.endIndex,io.startIndex);const lo={nodeType:ao===1?EmphasisType:StrongType,startIndex:oo.endIndex-ao,endIndex:io.startIndex+ao,thickness:ao,children:so},uo=oo.thickness>ao?{type:oo.type,startIndex:oo.startIndex,endIndex:oo.endIndex-ao,thickness:oo.thickness-ao,originalThickness:oo.originalThickness}:void 0,co=io.thickness>ao?{type:io.type,startIndex:io.startIndex+ao,endIndex:io.endIndex,thickness:io.thickness-ao,originalThickness:io.originalThickness}:void 0;return{tokens:[lo],remainOpenerDelimiter:uo,remainCloserDelimiter:co}}},parse$h=function(eo){return{parse:to=>to.map(ro=>{const no=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:ro.nodeType,position:eo.calcPosition(ro),children:no}:{type:ro.nodeType,children:no}})}},uniqueName$f="@yozora/tokenizer-emphasis";class EmphasisTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$f,priority:ro.priority??TokenizerPriority.CONTAINING_INLINE});Ws(this,"match",match$h);Ws(this,"parse",parse$h)}}function match$g(eo){const{nodeType:to,markers:ro,markersRequired:no,checkInfoString:oo}=this;return{isContainingBlock:!1,eatOpener:io,eatAndInterruptPreviousSibling:so,eatContinuationText:ao};function io(lo){if(lo.countOfPrecedeSpaces>=4)return null;const{endIndex:uo,firstNonWhitespaceIndex:co}=lo;if(co+no-1>=uo)return null;const{nodePoints:fo,startIndex:po}=lo,ho=fo[co].codePoint;if(ro.indexOf(ho)<0)return null;const mo=eatOptionalCharacters(fo,co+1,uo,ho),vo=mo-co;if(vo=uo.markerCount){for(;bo=po)return{status:"closing",nextIndex:po}}}const vo=Math.min(fo+uo.indent,ho,po-1);return uo.lines.push({nodePoints:co,startIndex:vo,endIndex:po,firstNonWhitespaceIndex:ho,countOfPrecedeSpaces:mo}),{status:"opening",nextIndex:po}}}class FencedBlockTokenizer extends BaseBlockTokenizer{constructor(ro){super({name:ro.name,priority:ro.priority??TokenizerPriority.FENCED_BLOCK});Ws(this,"nodeType");Ws(this,"markers",[]);Ws(this,"markersRequired");Ws(this,"checkInfoString");Ws(this,"match",match$g);this.nodeType=ro.nodeType,this.markers=ro.markers,this.markersRequired=ro.markersRequired,this.checkInfoString=ro.checkInfoString}}const match$f=function(eo){return{...match$g.call(this,eo),isContainingBlock:!1}},parse$g=function(eo){return{parse:to=>to.map(ro=>{const no=ro.infoString;let oo=0;const io=[];for(;oo0?so:null,meta:ao.length>0?ao:null,value:uo}:{type:CodeType,lang:so.length>0?so:null,meta:ao.length>0?ao:null,value:uo}})}},uniqueName$e="@yozora/tokenizer-fenced-code";class FencedCodeTokenizer extends FencedBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$e,priority:ro.priority??TokenizerPriority.FENCED_BLOCK,nodeType:CodeType,markers:[AsciiCodePoint.BACKTICK,AsciiCodePoint.TILDE],markersRequired:3,checkInfoString:(no,oo)=>{if(oo===AsciiCodePoint.BACKTICK){for(const io of no)if(io.codePoint===AsciiCodePoint.BACKTICK)return!1}return!0}});Ws(this,"match",match$f);Ws(this,"parse",parse$g)}}const match$e=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(ro){if(ro.countOfPrecedeSpaces>=4)return null;const{nodePoints:no,startIndex:oo,endIndex:io,firstNonWhitespaceIndex:so}=ro;if(so>=io||no[so].codePoint!==AsciiCodePoint.NUMBER_SIGN)return null;const ao=eatOptionalCharacters(no,so+1,io,AsciiCodePoint.NUMBER_SIGN),lo=ao-so;if(lo>6||ao+1to.map(ro=>{const{nodePoints:no,firstNonWhitespaceIndex:oo,endIndex:io}=ro.line;let[so,ao]=calcTrimBoundaryOfCodePoints(no,oo+ro.depth,io),lo=0;for(let ho=ao-1;ho>=so&&no[ho].codePoint===AsciiCodePoint.NUMBER_SIGN;--ho)lo+=1;if(lo>0){let ho=0,mo=ao-1-lo;for(;mo>=so;--mo){const vo=no[mo].codePoint;if(!isWhitespaceCharacter(vo))break;ho+=1}(ho>0||mo=ro)return null;const oo=no;let io=eo[no].codePoint;if(!isAsciiLetter(io)&&io!==AsciiCodePoint.UNDERSCORE&&io!==AsciiCodePoint.COLON)return null;for(no=oo+1;nouo&&(ao.value={startIndex:uo,endIndex:co});break}}if(ao.value!=null)return{attribute:ao,nextIndex:no}}return{attribute:ao,nextIndex:so}}function eatHTMLTagName(eo,to,ro){if(to>=ro||!isAsciiLetter(eo[to].codePoint))return null;let no=to;for(;no=ro)return ro;const oo=eo[to].codePoint;return isWhitespaceCharacter(oo)||oo===AsciiCodePoint.CLOSE_ANGLE?to+1:null}function eatEndCondition1(eo,to,ro){for(let no=to;no=ro||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE){no+=1;continue}const ao=calcStringFromNodePoints(eo,oo,io,!0).toLowerCase();if(includedTags$1.includes(ao))return io}return null}function eatStartCondition2(eo,to,ro){const no=to;return no+2=ro)return ro;const oo=eo[to].codePoint;return isWhitespaceCharacter(oo)||oo===AsciiCodePoint.CLOSE_ANGLE?to+1:oo===AsciiCodePoint.SLASH&&to+1=ro)return null;let io=to;if(oo){for(;io=ro)return null;eo[io].codePoint===AsciiCodePoint.SLASH&&(io+=1)}else io=eatOptionalWhitespaces(eo,to,ro);if(io>=ro||eo[io].codePoint!==AsciiCodePoint.CLOSE_ANGLE)return null;for(io+=1;io=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo||so[uo].codePoint!==AsciiCodePoint.OPEN_ANGLE)return null;const co=uo+1,fo=no(so,co,lo);if(fo==null)return null;const{condition:po}=fo;let ho=!1;po!==6&&po!==7&&oo(so,fo.nextIndex,lo,po)!=null&&(ho=!0);const mo=lo;return{token:{nodeType:HtmlType,position:{start:calcStartPoint(so,ao),end:calcEndPoint(so,mo-1)},condition:po,lines:[io]},nextIndex:mo,saturated:ho}}function to(io,so){const ao=eo(io);if(ao==null||ao.token.condition===7)return null;const{token:lo,nextIndex:uo}=ao;return{token:lo,nextIndex:uo,remainingSibling:so}}function ro(io,so){const{nodePoints:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io,co=oo(ao,uo,lo,so.condition);return co===-1?{status:"notMatched"}:(so.lines.push(io),co!=null?{status:"closing",nextIndex:lo}:{status:"opening",nextIndex:lo})}function no(io,so,ao){let lo=null;if(so>=ao)return null;if(lo=eatStartCondition2(io,so,ao),lo!=null)return{nextIndex:lo,condition:2};if(lo=eatStartCondition3(io,so,ao),lo!=null)return{nextIndex:lo,condition:3};if(lo=eatStartCondition4(io,so,ao),lo!=null)return{nextIndex:lo,condition:4};if(lo=eatStartCondition5(io,so,ao),lo!=null)return{nextIndex:lo,condition:5};if(io[so].codePoint!==AsciiCodePoint.SLASH){const mo=so,vo=eatHTMLTagName(io,mo,ao);if(vo==null)return null;const bo={startIndex:mo,endIndex:vo},_o=calcStringFromNodePoints(io,bo.startIndex,bo.endIndex).toLowerCase();return lo=eatStartCondition1(io,bo.endIndex,ao,_o),lo!=null?{nextIndex:lo,condition:1}:(lo=eatStartCondition6(io,bo.endIndex,ao,_o),lo!=null?{nextIndex:lo,condition:6}:(lo=eatStartCondition7(io,bo.endIndex,ao,_o,!0),lo!=null?{nextIndex:lo,condition:7}:null))}const uo=so+1,co=eatHTMLTagName(io,uo,ao);if(co==null)return null;const fo={startIndex:uo,endIndex:co},ho=calcStringFromNodePoints(io,fo.startIndex,fo.endIndex).toLowerCase();return lo=eatStartCondition6(io,fo.endIndex,ao,ho),lo!=null?{nextIndex:lo,condition:6}:(lo=eatStartCondition7(io,fo.endIndex,ao,ho,!1),lo!=null?{nextIndex:lo,condition:7}:null)}function oo(io,so,ao,lo){switch(lo){case 1:return eatEndCondition1(io,so,ao)==null?null:ao;case 2:return eatEndCondition2(io,so,ao)==null?null:ao;case 3:return eatEndCondition3(io,so,ao)==null?null:ao;case 4:return eatEndCondition4(io,so,ao)==null?null:ao;case 5:return eatEndCondition5(io,so,ao)==null?null:ao;case 6:case 7:return eatOptionalWhitespaces(io,so,ao)>=ao?-1:null}}},parse$e=function(eo){return{parse:to=>to.map(ro=>{const no=mergeContentLinesFaithfully(ro.lines);return eo.shouldReservePosition?{type:"html",position:ro.position,value:calcStringFromNodePoints(no)}:{type:"html",value:calcStringFromNodePoints(no)}})}},uniqueName$c="@yozora/tokenizer-html-block";class HtmlBlockTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$c,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$d);Ws(this,"parse",parse$e)}}function eatHtmlInlineCDataDelimiter(eo,to,ro){let no=to;if(no+11>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[no+2].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[no+3].codePoint!==AsciiCodePoint.UPPERCASE_C||eo[no+4].codePoint!==AsciiCodePoint.UPPERCASE_D||eo[no+5].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[no+6].codePoint!==AsciiCodePoint.UPPERCASE_T||eo[no+7].codePoint!==AsciiCodePoint.UPPERCASE_A||eo[no+8].codePoint!==AsciiCodePoint.OPEN_BRACKET)return null;const oo=no+9;for(no=oo;no=ro)return null;if(eo[no+1].codePoint===AsciiCodePoint.CLOSE_BRACKET&&eo[no+2].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:no+3,htmlType:"cdata"}}return null}function eatHtmlInlineClosingDelimiter(eo,to,ro){let no=to;if(no+3>=ro||eo[no+1].codePoint!==AsciiCodePoint.SLASH)return null;const oo=no+2,io=eatHTMLTagName(eo,oo,ro);return io==null||(no=eatOptionalWhitespaces(eo,io,ro),no>=ro||eo[no].codePoint!==AsciiCodePoint.CLOSE_ANGLE)?null:{type:"full",startIndex:to,endIndex:no+1,htmlType:"closing",tagName:{startIndex:oo,endIndex:io}}}function eatHtmlInlineCommentDelimiter(eo,to,ro){let no=to;if(no+6>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK||eo[no+2].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[no+3].codePoint!==AsciiCodePoint.MINUS_SIGN||eo[no+4].codePoint===AsciiCodePoint.CLOSE_ANGLE||eo[no+4].codePoint===AsciiCodePoint.MINUS_SIGN&&eo[no+5].codePoint===AsciiCodePoint.CLOSE_ANGLE)return null;const oo=no+4;for(no=oo;no2||no+2>=ro||eo[no+2].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:no+3,htmlType:"comment"}}return null}function eatHtmlInlineDeclarationDelimiter(eo,to,ro){let no=to;if(no+4>=ro||eo[no+1].codePoint!==AsciiCodePoint.EXCLAMATION_MARK)return null;const oo=no+2;for(no=oo;no=ro||!isWhitespaceCharacter(eo[no].codePoint))return null;const io=no,so=no+1;for(no=so;no=ro||eo[no+1].codePoint!==AsciiCodePoint.QUESTION_MARK)return null;const oo=no+2;for(no=oo;no=ro)return null;if(eo[no+1].codePoint===AsciiCodePoint.CLOSE_ANGLE)return{type:"full",startIndex:to,endIndex:no+2,htmlType:"instruction"}}return null}function eatHtmlInlineTokenOpenDelimiter(eo,to,ro){let no=to;if(no+2>=ro)return null;const oo=no+1,io=eatHTMLTagName(eo,oo,ro);if(io==null)return null;const so=[];for(no=io;no=ro)return null;let ao=!1;return eo[no].codePoint===AsciiCodePoint.SLASH&&(no+=1,ao=!0),no>=ro||eo[no].codePoint!==AsciiCodePoint.CLOSE_ANGLE?null:{type:"full",startIndex:to,endIndex:no+1,htmlType:"open",tagName:{startIndex:oo,endIndex:io},attributes:so,selfClosed:ao}}const match$c=function(eo){return{findDelimiter:()=>genFindDelimiter(to),processSingleDelimiter:ro};function to(no,oo){const io=eo.getNodePoints();for(let so=no;so=oo));++so)switch(io[so].codePoint){case AsciiCodePoint.BACKSLASH:so+=1;break;case AsciiCodePoint.OPEN_ANGLE:{const lo=tryToEatDelimiter(io,so,oo);if(lo!=null)return lo;break}}return null}function ro(no){return[{...no,nodeType:HtmlType}]}};function tryToEatDelimiter(eo,to,ro){let no=null;return no=eatHtmlInlineTokenOpenDelimiter(eo,to,ro),no!=null||(no=eatHtmlInlineClosingDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineCommentDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineInstructionDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineDeclarationDelimiter(eo,to,ro),no!=null)||(no=eatHtmlInlineCDataDelimiter(eo,to,ro)),no}const parse$d=function(eo){return{parse:to=>to.map(ro=>{const{startIndex:no,endIndex:oo}=ro,io=eo.getNodePoints(),so=calcStringFromNodePoints(io,no,oo);return eo.shouldReservePosition?{type:HtmlType,position:eo.calcPosition(ro),value:so}:{type:HtmlType,value:so}})}},uniqueName$b="@yozora/tokenizer-html-inline";class HtmlInlineTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$b,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$c);Ws(this,"parse",parse$d)}}const checkBalancedBracketsStatus=(eo,to,ro,no)=>{let oo=eo,io=0;const so=()=>{switch(no[oo].codePoint){case AsciiCodePoint.BACKSLASH:oo+=1;break;case AsciiCodePoint.OPEN_BRACKET:io+=1;break;case AsciiCodePoint.CLOSE_BRACKET:io-=1;break}};for(const ao of ro)if(!(ao.startIndexto)break;for(;oo0?1:0};function eatLinkDestination(eo,to,ro){if(to>=ro)return-1;let no=to;switch(eo[no].codePoint){case AsciiCodePoint.OPEN_ANGLE:{for(no+=1;no=ro)return-1;let no=to;const oo=eo[no].codePoint;switch(oo){case AsciiCodePoint.DOUBLE_QUOTE:case AsciiCodePoint.SINGLE_QUOTE:{for(no+=1;noio.line+1)return-1;break}}}break}case AsciiCodePoint.OPEN_PARENTHESIS:{let io=1;for(no+=1;noso.line+1)return-1;break}case AsciiCodePoint.OPEN_PARENTHESIS:io+=1;break;case AsciiCodePoint.CLOSE_PARENTHESIS:if(io-=1,io===0)return no+1;break}}break}case AsciiCodePoint.CLOSE_PARENTHESIS:return no;default:return-1}return-1}const match$b=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockEndIndex();for(let lo=oo;lo=io||so[lo+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const co=eatOptionalWhitespaces(so,lo+2,ao),fo=eatLinkDestination(so,co,ao);if(fo<0)break;const po=eatOptionalWhitespaces(so,fo,ao),ho=eatLinkTitle(so,po,ao);if(ho<0)break;const mo=lo,vo=eatOptionalWhitespaces(so,ho,ao)+1;if(vo>ao||so[vo-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:mo,endIndex:vo,destinationContent:coto.map(ro=>{const no=eo.getNodePoints();let oo="";if(ro.destinationContent!=null){let{startIndex:lo,endIndex:uo}=ro.destinationContent;no[lo].codePoint===AsciiCodePoint.OPEN_ANGLE&&(lo+=1,uo-=1);const co=calcEscapedStringFromNodePoints(no,lo,uo,!0);oo=eo.formatUrl(co)}let io;if(ro.titleContent!=null){const{startIndex:lo,endIndex:uo}=ro.titleContent;io=calcEscapedStringFromNodePoints(no,lo+1,uo-1)}const so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkType,position:eo.calcPosition(ro),url:oo,title:io,children:so}:{type:LinkType,url:oo,title:io,children:so}})}},uniqueName$a="@yozora/tokenizer-link";class LinkTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$a,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$b);Ws(this,"parse",parse$c)}}function calcImageAlt(eo){return eo.map(to=>to.value!=null?to.value:to.alt!=null?to.alt:to.children!=null?calcImageAlt(to.children):"").join("")}const match$a=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints(),ao=eo.getBlockEndIndex();for(let lo=oo;lo=io||so[lo+1].codePoint!==AsciiCodePoint.OPEN_PARENTHESIS)break;const co=eatOptionalWhitespaces(so,lo+2,ao),fo=eatLinkDestination(so,co,ao);if(fo<0)break;const po=eatOptionalWhitespaces(so,fo,ao),ho=eatLinkTitle(so,po,ao);if(ho<0)break;const mo=lo,vo=eatOptionalWhitespaces(so,ho,ao)+1;if(vo>ao||so[vo-1].codePoint!==AsciiCodePoint.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:mo,endIndex:vo,destinationContent:coto.map(ro=>{const no=eo.getNodePoints();let oo="";if(ro.destinationContent!=null){let{startIndex:uo,endIndex:co}=ro.destinationContent;no[uo].codePoint===AsciiCodePoint.OPEN_ANGLE&&(uo+=1,co-=1);const fo=calcEscapedStringFromNodePoints(no,uo,co,!0);oo=eo.formatUrl(fo)}const io=eo.parseInlineTokens(ro.children),so=calcImageAlt(io);let ao;if(ro.titleContent!=null){const{startIndex:uo,endIndex:co}=ro.titleContent;ao=calcEscapedStringFromNodePoints(no,uo+1,co-1)}return eo.shouldReservePosition?{type:ImageType$1,position:eo.calcPosition(ro),url:oo,alt:so,title:ao}:{type:ImageType$1,url:oo,alt:so,title:ao}})}},uniqueName$9="@yozora/tokenizer-image";class ImageTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$9,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$a);Ws(this,"parse",parse$b)}}const match$9=function(eo){return{findDelimiter:()=>genFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no};function to(oo,io){const so=eo.getNodePoints();for(let ao=oo;ao=io||so[ao+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;return{type:"opener",startIndex:ao,endIndex:ao+2,brackets:[]}}case AsciiCodePoint.CLOSE_BRACKET:{const uo={type:"closer",startIndex:ao,endIndex:ao+1,brackets:[]};if(ao+1>=io||so[ao+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)return uo;const co=eatLinkLabel(so,ao+1,io);return co.nextIndex<0?uo:co.labelAndIdentifier==null?{type:"closer",startIndex:ao,endIndex:co.nextIndex,brackets:[{startIndex:ao+1,endIndex:co.nextIndex}]}:{type:"closer",startIndex:ao,endIndex:co.nextIndex,brackets:[{startIndex:ao+1,endIndex:co.nextIndex,label:co.labelAndIdentifier.label,identifier:co.labelAndIdentifier.identifier}]}}}return null}function ro(oo,io,so){const ao=eo.getNodePoints();switch(checkBalancedBracketsStatus(oo.endIndex,io.startIndex,so,ao)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function no(oo,io,so){const ao=eo.getNodePoints(),lo=io.brackets[0];if(lo!=null&&lo.identifier!=null)return eo.hasDefinition(lo.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:oo.startIndex,endIndex:lo.endIndex,referenceType:"full",label:lo.label,identifier:lo.identifier,children:eo.resolveInternalTokens(so,oo.endIndex,io.startIndex)}]}:{tokens:so};const{nextIndex:uo,labelAndIdentifier:co}=eatLinkLabel(ao,oo.endIndex-1,io.startIndex+1);return uo===io.startIndex+1&&co!=null&&eo.hasDefinition(co.identifier)?{tokens:[{nodeType:ImageReferenceType,startIndex:oo.startIndex,endIndex:io.endIndex,referenceType:lo==null?"shortcut":"collapsed",label:co.label,identifier:co.identifier,children:eo.resolveInternalTokens(so,oo.endIndex,io.startIndex)}]}:{tokens:so}}},parse$a=function(eo){return{parse:to=>to.map(ro=>{const{identifier:no,label:oo,referenceType:io}=ro,so=eo.parseInlineTokens(ro.children),ao=calcImageAlt(so);return eo.shouldReservePosition?{type:ImageReferenceType,position:eo.calcPosition(ro),identifier:no,label:oo,referenceType:io,alt:ao}:{type:ImageReferenceType,identifier:no,label:oo,referenceType:io,alt:ao}})}},uniqueName$8="@yozora/tokenizer-image-reference";class ImageReferenceTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$8,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$9);Ws(this,"parse",parse$a)}}const match$8=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to};function eo(ro){if(ro.countOfPrecedeSpaces<4)return null;const{nodePoints:no,startIndex:oo,firstNonWhitespaceIndex:io,endIndex:so}=ro;let ao=oo+4;if(no[oo].codePoint===AsciiCodePoint.SPACE&&no[oo+3].codePoint===VirtualCodePoint.SPACE){let co=oo+1;for(;coto.map(ro=>{const{lines:no}=ro;let oo=0,io=no.length;for(;ooco+1&&so.push({type:"opener",startIndex:co+1,endIndex:po}),co=po-1}break}case AsciiCodePoint.BACKTICK:{const po=co,ho=eatOptionalCharacters(no,co+1,io,fo);so.push({type:"both",startIndex:po,endIndex:ho}),co=ho-1;break}}}let ao=0,lo=-1,uo=null;for(;ao=co))continue;lo=fo;let po=null,ho=null;for(;ao=co&&vo.type!=="closer")break}if(ao+1>=so.length)return;po=so[ao];const mo=po.endIndex-po.startIndex;for(let vo=ao+1;voto.map(ro=>{const no=eo.getNodePoints();let oo=ro.startIndex+ro.thickness,io=ro.endIndex-ro.thickness,so=!0;for(let uo=oo;uogenFindDelimiter(to),isDelimiterPair:ro,processDelimiterPair:no,processSingleDelimiter:oo};function to(io,so){const ao=eo.getNodePoints();for(let lo=io;lo=so||ao[lo+1].codePoint!==AsciiCodePoint.OPEN_BRACKET)break;const co=eatLinkLabel(ao,lo+1,so);if(co.nextIndex===-1)return{type:"opener",startIndex:lo+1,endIndex:lo+2,brackets:[]};if(co.labelAndIdentifier==null){lo=co.nextIndex-1;break}const fo=[{startIndex:lo+1,endIndex:co.nextIndex,label:co.labelAndIdentifier.label,identifier:co.labelAndIdentifier.identifier}],po={type:"closer",startIndex:lo,endIndex:co.nextIndex,brackets:fo};for(lo=co.nextIndex;lo=ao.length)break;if(uo+1to.map(ro=>{const{identifier:no,label:oo,referenceType:io}=ro,so=eo.parseInlineTokens(ro.children);return eo.shouldReservePosition?{type:LinkReferenceType,position:eo.calcPosition(ro),identifier:no,label:oo,referenceType:io,children:so}:{type:LinkReferenceType,identifier:no,label:oo,referenceType:io,children:so}})}},uniqueName$5="@yozora/tokenizer-link-reference";class LinkReferenceTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$5,priority:ro.priority??TokenizerPriority.LINKS});Ws(this,"match",match$6);Ws(this,"parse",parse$7)}}const match$5=function(){const{emptyItemCouldNotInterruptedTypes:eo,enableTaskListItem:to}=this;return{isContainingBlock:!0,eatOpener:ro,eatAndInterruptPreviousSibling:no,eatContinuationText:oo};function ro(io){if(io.countOfPrecedeSpaces>=4)return null;const{nodePoints:so,startIndex:ao,endIndex:lo,firstNonWhitespaceIndex:uo}=io;if(uo>=lo)return null;let co=!1,fo=null,po,ho,mo=uo,vo=so[mo].codePoint;if(mo+1uo&&mo-uo<=9&&(vo===AsciiCodePoint.DOT||vo===AsciiCodePoint.CLOSE_PARENTHESIS)&&(mo+=1,co=!0,fo=vo)}if(co||(vo===AsciiCodePoint.PLUS_SIGN||vo===AsciiCodePoint.MINUS_SIGN||vo===AsciiCodePoint.ASTERISK)&&(mo+=1,fo=vo),fo==null)return null;let bo=0,xo=mo;for(xo4&&(xo-=bo-1,bo=1),bo===0&&xo=lo){if(so.countOfTopBlankLine>=0&&(so.countOfTopBlankLine+=1,so.countOfTopBlankLine>1))return{status:"notMatched"}}else so.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(ao+so.indent,lo-1)}}};function eatTaskStatus(eo,to,ro){let no=to;for(;no=ro||eo[no].codePoint!==AsciiCodePoint.OPEN_BRACKET||eo[no+2].codePoint!==AsciiCodePoint.CLOSE_BRACKET||!isWhitespaceCharacter(eo[no+3].codePoint))return{status:null,nextIndex:to};let oo;switch(eo[no+1].codePoint){case AsciiCodePoint.SPACE:oo=TaskStatus.TODO;break;case AsciiCodePoint.MINUS_SIGN:oo=TaskStatus.DOING;break;case AsciiCodePoint.LOWERCASE_X:case AsciiCodePoint.UPPERCASE_X:oo=TaskStatus.DONE;break;default:return{status:null,nextIndex:to}}return{status:oo,nextIndex:no+4}}const parse$6=function(eo){return{parse:to=>{const ro=[];let no=[];for(let io=0;io{if(eo.length<=0)return null;let ro=eo.some(io=>{if(io.children==null||io.children.length<=1)return!1;let so=io.children[0].position;for(let ao=1;ao1){let io=eo[0];for(let so=1;so{const so=to.parseBlockTokens(io.children),ao=ro?so:so.map(uo=>uo.type===ParagraphType$1?uo.children:uo).flat();return to.shouldReservePosition?{type:ListItemType,position:io.position,status:io.status,children:ao}:{type:ListItemType,status:io.status,children:ao}});return to.shouldReservePosition?{type:ListType,position:{start:{...eo[0].position.start},end:{...eo[eo.length-1].position.end}},ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:ro,children:no}:{type:ListType,ordered:eo[0].ordered,orderType:eo[0].orderType,start:eo[0].order,marker:eo[0].marker,spread:ro,children:no}},uniqueName$4="@yozora/tokenizer-list";class ListTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$4,priority:ro.priority??TokenizerPriority.CONTAINING_BLOCK});Ws(this,"enableTaskListItem");Ws(this,"emptyItemCouldNotInterruptedTypes");Ws(this,"match",match$5);Ws(this,"parse",parse$6);this.enableTaskListItem=ro.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=ro.emptyItemCouldNotInterruptedTypes??[ParagraphType$1]}}const match$4=function(){return{isContainingBlock:!1,eatOpener:eo,eatContinuationText:to,eatLazyContinuationText:ro};function eo(no){const{endIndex:oo,firstNonWhitespaceIndex:io}=no;if(io>=oo)return null;const so=[no],ao=calcPositionFromPhrasingContentLines(so);return{token:{nodeType:ParagraphType$1,position:ao,lines:so},nextIndex:oo}}function to(no,oo){const{endIndex:io,firstNonWhitespaceIndex:so}=no;return so>=io?{status:"notMatched"}:(oo.lines.push(no),{status:"opening",nextIndex:io})}function ro(no,oo){return to(no,oo)}},parse$5=function(eo){return{parse:to=>{const ro=[];for(const no of to){const oo=mergeAndStripContentLines(no.lines),io=eo.processInlines(oo);if(io.length<=0)continue;const so=eo.shouldReservePosition?{type:ParagraphType$1,position:no.position,children:io}:{type:ParagraphType$1,children:io};ro.push(so)}return ro}}},uniqueName$3="@yozora/tokenizer-paragraph";class ParagraphTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$3,priority:ro.priority??TokenizerPriority.FALLBACK});Ws(this,"match",match$4);Ws(this,"parse",parse$5)}extractPhrasingContentLines(ro){return ro.lines}buildBlockToken(ro){const no=trimBlankLines(ro);if(no.length<=0)return null;const oo=calcPositionFromPhrasingContentLines(no);return{nodeType:ParagraphType$1,lines:no,position:oo}}}const match$3=function(eo){return{isContainingBlock:!1,eatOpener:to,eatAndInterruptPreviousSibling:ro};function to(){return null}function ro(no,oo){const{nodePoints:io,endIndex:so,firstNonWhitespaceIndex:ao,countOfPrecedeSpaces:lo}=no;if(lo>=4||ao>=so)return null;let uo=null,co=!1;for(let mo=ao;moto.map(ro=>{let no=1;switch(ro.marker){case AsciiCodePoint.EQUALS_SIGN:no=1;break;case AsciiCodePoint.MINUS_SIGN:no=2;break}const oo=mergeAndStripContentLines(ro.lines),io=eo.processInlines(oo);return eo.shouldReservePosition?{type:HeadingType,position:ro.position,depth:no,children:io}:{type:HeadingType,depth:no,children:io}})}},uniqueName$2="@yozora/tokenizer-setext-heading";class SetextHeadingTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$2,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$3);Ws(this,"parse",parse$4)}}const match$2=function(){return{findDelimiter:()=>genFindDelimiter((eo,to)=>({type:"full",startIndex:eo,endIndex:to})),processSingleDelimiter:eo=>[{nodeType:TextType$1,startIndex:eo.startIndex,endIndex:eo.endIndex}]}},parse$3=function(eo){return{parse:to=>to.map(ro=>{const no=eo.getNodePoints();let oo=calcEscapedStringFromNodePoints(no,ro.startIndex,ro.endIndex);return oo=stripSpaces(oo),eo.shouldReservePosition?{type:TextType$1,position:eo.calcPosition(ro),value:oo}:{type:TextType$1,value:oo}})}},_stripRegex=/[^\S\n]*\n[^\S\n]*/g,stripSpaces=eo=>eo.replace(_stripRegex,` +`),uniqueName$1="@yozora/tokenizer-text";class TextTokenizer extends BaseInlineTokenizer{constructor(ro={}){super({name:ro.name??uniqueName$1,priority:ro.priority??TokenizerPriority.FALLBACK});Ws(this,"match",match$2);Ws(this,"parse",parse$3)}findAndHandleDelimiter(ro,no){return{nodeType:TextType$1,startIndex:ro,endIndex:no}}}const match$1=function(){return{isContainingBlock:!1,eatOpener:eo,eatAndInterruptPreviousSibling:to};function eo(ro){if(ro.countOfPrecedeSpaces>=4)return null;const{nodePoints:no,startIndex:oo,endIndex:io,firstNonWhitespaceIndex:so}=ro;if(so+2>=io)return null;let ao,lo=0,uo=!0,co=!1;for(let po=so;poto.map(ro=>eo.shouldReservePosition?{type:ThematicBreakType,position:ro.position}:{type:ThematicBreakType})}},uniqueName="@yozora/tokenizer-thematic-break";class ThematicBreakTokenizer extends BaseBlockTokenizer{constructor(ro={}){super({name:ro.name??uniqueName,priority:ro.priority??TokenizerPriority.ATOMIC});Ws(this,"match",match$1);Ws(this,"parse",parse$2)}}class GfmParser extends DefaultParser{constructor(to={}){super({...to,blockFallbackTokenizer:to.blockFallbackTokenizer??new ParagraphTokenizer,inlineFallbackTokenizer:to.inlineFallbackTokenizer??new TextTokenizer}),this.useTokenizer(new IndentedCodeTokenizer).useTokenizer(new HtmlBlockTokenizer).useTokenizer(new SetextHeadingTokenizer).useTokenizer(new ThematicBreakTokenizer).useTokenizer(new BlockquoteTokenizer).useTokenizer(new ListTokenizer({enableTaskListItem:!1})).useTokenizer(new HeadingTokenizer).useTokenizer(new FencedCodeTokenizer).useTokenizer(new DefinitionTokenizer).useTokenizer(new HtmlInlineTokenizer).useTokenizer(new InlineCodeTokenizer).useTokenizer(new AutolinkTokenizer).useTokenizer(new BreakTokenizer).useTokenizer(new ImageTokenizer).useTokenizer(new ImageReferenceTokenizer).useTokenizer(new LinkTokenizer).useTokenizer(new LinkReferenceTokenizer).useTokenizer(new EmphasisTokenizer)}}const parser=new GfmParser({defaultParseOptions:{shouldReservePosition:!1}});class BlockquoteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("blockquote",{className:cls$b,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$b=mergeStyles$1(astClasses.blockquote,{boxSizing:"border-box",padding:"0.625em 1em",borderLeft:"0.25em solid var(--colorBorderBlockquote)",margin:"0px 0px 1.25em 0px",background:"var(--colorBgBlockquote)",boxShadow:"0 1px 2px 0 hsla(0deg, 0%, 0%, 0.1)","> :last-child":{marginBottom:0}});class BreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("br",{className:cls$a})}}const cls$a=mergeStyles$1(astClasses.break,{boxSizing:"border-box"});var prism={exports:{}};(function(eo){var to=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */var ro=function(no){var oo=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,io=0,so={},ao={manual:no.Prism&&no.Prism.manual,disableWorkerMessageHandler:no.Prism&&no.Prism.disableWorkerMessageHandler,util:{encode:function _o(So){return So instanceof lo?new lo(So.type,_o(So.content),So.alias):Array.isArray(So)?So.map(_o):So.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(ko){var _o=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ko.stack)||[])[1];if(_o){var So=document.getElementsByTagName("script");for(var Eo in So)if(So[Eo].src==_o)return So[Eo]}return null}},isActive:function(_o,So,Eo){for(var ko="no-"+So;_o;){var wo=_o.classList;if(wo.contains(So))return!0;if(wo.contains(ko))return!1;_o=_o.parentElement}return!!Eo}},languages:{plain:so,plaintext:so,text:so,txt:so,extend:function(_o,So){var Eo=ao.util.clone(ao.languages[_o]);for(var ko in So)Eo[ko]=So[ko];return Eo},insertBefore:function(_o,So,Eo,ko){ko=ko||ao.languages;var wo=ko[_o],Co={};for(var Ro in wo)if(wo.hasOwnProperty(Ro)){if(Ro==So)for(var Ao in Eo)Eo.hasOwnProperty(Ao)&&(Co[Ao]=Eo[Ao]);Eo.hasOwnProperty(Ro)||(Co[Ro]=wo[Ro])}var Io=ko[_o];return ko[_o]=Co,ao.languages.DFS(ao.languages,function($o,Bo){Bo===Io&&$o!=_o&&(this[$o]=Co)}),Co},DFS:function _o(So,Eo,ko,wo){wo=wo||{};var Co=ao.util.objId;for(var Ro in So)if(So.hasOwnProperty(Ro)){Eo.call(So,Ro,So[Ro],ko||Ro);var Ao=So[Ro],Io=ao.util.type(Ao);Io==="Object"&&!wo[Co(Ao)]?(wo[Co(Ao)]=!0,_o(Ao,Eo,null,wo)):Io==="Array"&&!wo[Co(Ao)]&&(wo[Co(Ao)]=!0,_o(Ao,Eo,Ro,wo))}}},plugins:{},highlightAll:function(_o,So){ao.highlightAllUnder(document,_o,So)},highlightAllUnder:function(_o,So,Eo){var ko={callback:Eo,container:_o,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};ao.hooks.run("before-highlightall",ko),ko.elements=Array.prototype.slice.apply(ko.container.querySelectorAll(ko.selector)),ao.hooks.run("before-all-elements-highlight",ko);for(var wo=0,Co;Co=ko.elements[wo++];)ao.highlightElement(Co,So===!0,ko.callback)},highlightElement:function(_o,So,Eo){var ko=ao.util.getLanguage(_o),wo=ao.languages[ko];ao.util.setLanguage(_o,ko);var Co=_o.parentElement;Co&&Co.nodeName.toLowerCase()==="pre"&&ao.util.setLanguage(Co,ko);var Ro=_o.textContent,Ao={element:_o,language:ko,grammar:wo,code:Ro};function Io(Bo){Ao.highlightedCode=Bo,ao.hooks.run("before-insert",Ao),Ao.element.innerHTML=Ao.highlightedCode,ao.hooks.run("after-highlight",Ao),ao.hooks.run("complete",Ao),Eo&&Eo.call(Ao.element)}if(ao.hooks.run("before-sanity-check",Ao),Co=Ao.element.parentElement,Co&&Co.nodeName.toLowerCase()==="pre"&&!Co.hasAttribute("tabindex")&&Co.setAttribute("tabindex","0"),!Ao.code){ao.hooks.run("complete",Ao),Eo&&Eo.call(Ao.element);return}if(ao.hooks.run("before-highlight",Ao),!Ao.grammar){Io(ao.util.encode(Ao.code));return}if(So&&no.Worker){var $o=new Worker(ao.filename);$o.onmessage=function(Bo){Io(Bo.data)},$o.postMessage(JSON.stringify({language:Ao.language,code:Ao.code,immediateClose:!0}))}else Io(ao.highlight(Ao.code,Ao.grammar,Ao.language))},highlight:function(_o,So,Eo){var ko={code:_o,grammar:So,language:Eo};if(ao.hooks.run("before-tokenize",ko),!ko.grammar)throw new Error('The language "'+ko.language+'" has no grammar.');return ko.tokens=ao.tokenize(ko.code,ko.grammar),ao.hooks.run("after-tokenize",ko),lo.stringify(ao.util.encode(ko.tokens),ko.language)},tokenize:function(_o,So){var Eo=So.rest;if(Eo){for(var ko in Eo)So[ko]=Eo[ko];delete So.rest}var wo=new fo;return po(wo,wo.head,_o),co(_o,wo,So,wo.head,0),mo(wo)},hooks:{all:{},add:function(_o,So){var Eo=ao.hooks.all;Eo[_o]=Eo[_o]||[],Eo[_o].push(So)},run:function(_o,So){var Eo=ao.hooks.all[_o];if(!(!Eo||!Eo.length))for(var ko=0,wo;wo=Eo[ko++];)wo(So)}},Token:lo};no.Prism=ao;function lo(_o,So,Eo,ko){this.type=_o,this.content=So,this.alias=Eo,this.length=(ko||"").length|0}lo.stringify=function _o(So,Eo){if(typeof So=="string")return So;if(Array.isArray(So)){var ko="";return So.forEach(function(Io){ko+=_o(Io,Eo)}),ko}var wo={type:So.type,content:_o(So.content,Eo),tag:"span",classes:["token",So.type],attributes:{},language:Eo},Co=So.alias;Co&&(Array.isArray(Co)?Array.prototype.push.apply(wo.classes,Co):wo.classes.push(Co)),ao.hooks.run("wrap",wo);var Ro="";for(var Ao in wo.attributes)Ro+=" "+Ao+'="'+(wo.attributes[Ao]||"").replace(/"/g,""")+'"';return"<"+wo.tag+' class="'+wo.classes.join(" ")+'"'+Ro+">"+wo.content+""};function uo(_o,So,Eo,ko){_o.lastIndex=So;var wo=_o.exec(Eo);if(wo&&ko&&wo[1]){var Co=wo[1].length;wo.index+=Co,wo[0]=wo[0].slice(Co)}return wo}function co(_o,So,Eo,ko,wo,Co){for(var Ro in Eo)if(!(!Eo.hasOwnProperty(Ro)||!Eo[Ro])){var Ao=Eo[Ro];Ao=Array.isArray(Ao)?Ao:[Ao];for(var Io=0;Io=Co.reach);qo+=Go.value.length,Go=Go.next){var Xo=Go.value;if(So.length>_o.length)return;if(!(Xo instanceof lo)){var Zo=1,Qo;if(Ho){if(Qo=uo(Fo,qo,_o,Mo),!Qo||Qo.index>=_o.length)break;var Os=Qo.index,xs=Qo.index+Qo[0].length,Ts=qo;for(Ts+=Go.value.length;Os>=Ts;)Go=Go.next,Ts+=Go.value.length;if(Ts-=Go.value.length,qo=Ts,Go.value instanceof lo)continue;for(var Rs=Go;Rs!==So.tail&&(TsCo.reach&&(Co.reach=Cs);var Bs=Go.prev;Ds&&(Bs=po(So,Bs,Ds),qo+=Ds.length),ho(So,Bs,Zo);var zs=new lo(Ro,Bo?ao.tokenize(As,Bo):As,jo,As);if(Go=po(So,Bs,zs),Jo&&po(So,Go,Jo),Zo>1){var Ls={cause:Ro+","+Io,reach:Cs};co(_o,So,Eo,Go.prev,qo,Ls),Co&&Ls.reach>Co.reach&&(Co.reach=Ls.reach)}}}}}}function fo(){var _o={value:null,prev:null,next:null},So={value:null,prev:_o,next:null};_o.next=So,this.head=_o,this.tail=So,this.length=0}function po(_o,So,Eo){var ko=So.next,wo={value:Eo,prev:So,next:ko};return So.next=wo,ko.prev=wo,_o.length++,wo}function ho(_o,So,Eo){for(var ko=So.next,wo=0;wo/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},ro.languages.markup.tag.inside["attr-value"].inside.entity=ro.languages.markup.entity,ro.languages.markup.doctype.inside["internal-subset"].inside=ro.languages.markup,ro.hooks.add("wrap",function(no){no.type==="entity"&&(no.attributes.title=no.content.replace(/&/,"&"))}),Object.defineProperty(ro.languages.markup.tag,"addInlined",{value:function(oo,io){var so={};so["language-"+io]={pattern:/(^$)/i,lookbehind:!0,inside:ro.languages[io]},so.cdata=/^$/i;var ao={"included-cdata":{pattern://i,inside:so}};ao["language-"+io]={pattern:/[\s\S]+/,inside:ro.languages[io]};var lo={};lo[oo]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return oo}),"i"),lookbehind:!0,greedy:!0,inside:ao},ro.languages.insertBefore("markup","cdata",lo)}}),Object.defineProperty(ro.languages.markup.tag,"addAttribute",{value:function(no,oo){ro.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+no+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[oo,"language-"+oo],inside:ro.languages[oo]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ro.languages.html=ro.languages.markup,ro.languages.mathml=ro.languages.markup,ro.languages.svg=ro.languages.markup,ro.languages.xml=ro.languages.extend("markup",{}),ro.languages.ssml=ro.languages.xml,ro.languages.atom=ro.languages.xml,ro.languages.rss=ro.languages.xml,function(no){var oo=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;no.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+oo.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+oo.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+oo.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+oo.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:oo,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},no.languages.css.atrule.inside.rest=no.languages.css;var io=no.languages.markup;io&&(io.tag.addInlined("style","css"),io.tag.addAttribute("style","css"))}(ro),ro.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},ro.languages.javascript=ro.languages.extend("clike",{"class-name":[ro.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),ro.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ro.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ro.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ro.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ro.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ro.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ro.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ro.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ro.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),ro.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ro.languages.markup&&(ro.languages.markup.tag.addInlined("script","javascript"),ro.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),ro.languages.js=ro.languages.javascript,function(){if(typeof ro>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var no="Loading…",oo=function(vo,bo){return"✖ Error "+vo+" while fetching file: "+bo},io="✖ Error: File does not exist or is empty",so={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},ao="data-src-status",lo="loading",uo="loaded",co="failed",fo="pre[data-src]:not(["+ao+'="'+uo+'"]):not(['+ao+'="'+lo+'"])';function po(vo,bo,xo){var _o=new XMLHttpRequest;_o.open("GET",vo,!0),_o.onreadystatechange=function(){_o.readyState==4&&(_o.status<400&&_o.responseText?bo(_o.responseText):_o.status>=400?xo(oo(_o.status,_o.statusText)):xo(io))},_o.send(null)}function ho(vo){var bo=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(vo||"");if(bo){var xo=Number(bo[1]),_o=bo[2],So=bo[3];return _o?So?[xo,Number(So)]:[xo,void 0]:[xo,xo]}}ro.hooks.add("before-highlightall",function(vo){vo.selector+=", "+fo}),ro.hooks.add("before-sanity-check",function(vo){var bo=vo.element;if(bo.matches(fo)){vo.code="",bo.setAttribute(ao,lo);var xo=bo.appendChild(document.createElement("CODE"));xo.textContent=no;var _o=bo.getAttribute("data-src"),So=vo.language;if(So==="none"){var Eo=(/\.(\w+)$/.exec(_o)||[,"none"])[1];So=so[Eo]||Eo}ro.util.setLanguage(xo,So),ro.util.setLanguage(bo,So);var ko=ro.plugins.autoloader;ko&&ko.loadLanguages(So),po(_o,function(wo){bo.setAttribute(ao,uo);var Co=ho(bo.getAttribute("data-range"));if(Co){var Ro=wo.split(/\r\n?|\n/g),Ao=Co[0],Io=Co[1]==null?Ro.length:Co[1];Ao<0&&(Ao+=Ro.length),Ao=Math.max(0,Math.min(Ao-1,Ro.length)),Io<0&&(Io+=Ro.length),Io=Math.max(0,Math.min(Io,Ro.length)),wo=Ro.slice(Ao,Io).join(` +`),bo.hasAttribute("data-start")||bo.setAttribute("data-start",String(Ao+1))}xo.textContent=wo,ro.highlightElement(xo)},function(wo){bo.setAttribute(ao,co),xo.textContent=wo})}}),ro.plugins.fileHighlight={highlight:function(bo){for(var xo=(bo||document).querySelectorAll(fo),_o=0,So;So=xo[_o++];)ro.highlightElement(So)}};var mo=!1;ro.fileHighlight=function(){mo||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),mo=!0),ro.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(prism);var prismExports=prism.exports;const Prism=getDefaultExportFromCjs(prismExports);function sheetForTag(eo){if(eo.sheet)return eo.sheet;for(var to=0;to0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token$1(character)>3?"":" "}function escaping(eo,to){for(;--to&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(eo,caret()+(to<6&&peek()==32&&next()==32))}function delimiter(eo){for(;next();)switch(character){case eo:return position;case 34:case 39:eo!==34&&eo!==39&&delimiter(character);break;case 40:eo===41&&delimiter(eo);break;case 92:next();break}return position}function commenter(eo,to){for(;next()&&eo+character!==57;)if(eo+character===84&&peek()===47)break;return"/*"+slice(to,position-1)+"*"+from(eo===47?eo:next())}function identifier(eo){for(;!token$1(peek());)next();return slice(eo,position)}function compile(eo){return dealloc(parse$1("",null,null,null,[""],eo=alloc(eo),0,[0],eo))}function parse$1(eo,to,ro,no,oo,io,so,ao,lo){for(var uo=0,co=0,fo=so,po=0,ho=0,mo=0,vo=1,bo=1,xo=1,_o=0,So="",Eo=oo,ko=io,wo=no,Co=So;bo;)switch(mo=_o,_o=next()){case 40:if(mo!=108&&charat(Co,fo-1)==58){indexof(Co+=replace(delimit(_o),"&","&\f"),"&\f")!=-1&&(xo=-1);break}case 34:case 39:case 91:Co+=delimit(_o);break;case 9:case 10:case 13:case 32:Co+=whitespace(mo);break;case 92:Co+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),to,ro),lo);break;default:Co+="/"}break;case 123*vo:ao[uo++]=strlen(Co)*xo;case 125*vo:case 59:case 0:switch(_o){case 0:case 125:bo=0;case 59+co:xo==-1&&(Co=replace(Co,/\f/g,"")),ho>0&&strlen(Co)-fo&&append(ho>32?declaration(Co+";",no,ro,fo-1):declaration(replace(Co," ","")+";",no,ro,fo-2),lo);break;case 59:Co+=";";default:if(append(wo=ruleset(Co,to,ro,uo,co,oo,ao,So,Eo=[],ko=[],fo),io),_o===123)if(co===0)parse$1(Co,to,wo,wo,Eo,io,fo,ao,ko);else switch(po===99&&charat(Co,3)===110?100:po){case 100:case 108:case 109:case 115:parse$1(eo,wo,wo,no&&append(ruleset(eo,wo,wo,0,0,oo,ao,So,oo,Eo=[],fo),ko),oo,ko,fo,ao,no?Eo:ko);break;default:parse$1(Co,wo,wo,wo,[""],ko,0,ao,ko)}}uo=co=ho=0,vo=xo=1,So=Co="",fo=so;break;case 58:fo=1+strlen(Co),ho=mo;default:if(vo<1){if(_o==123)--vo;else if(_o==125&&vo++==0&&prev()==125)continue}switch(Co+=from(_o),_o*vo){case 38:xo=co>0?1:(Co+="\f",-1);break;case 44:ao[uo++]=(strlen(Co)-1)*xo,xo=1;break;case 64:peek()===45&&(Co+=delimit(next())),po=peek(),co=fo=strlen(So=Co+=identifier(caret())),_o++;break;case 45:mo===45&&strlen(Co)==2&&(vo=0)}}return io}function ruleset(eo,to,ro,no,oo,io,so,ao,lo,uo,co){for(var fo=oo-1,po=oo===0?io:[""],ho=sizeof(po),mo=0,vo=0,bo=0;mo0?po[xo]+" "+_o:replace(_o,/&\f/g,po[xo])))&&(lo[bo++]=So);return node(eo,to,ro,oo===0?RULESET:ao,lo,uo,co)}function comment(eo,to,ro){return node(eo,to,ro,COMMENT,from(char()),substr(eo,2,-2),0)}function declaration(eo,to,ro,no){return node(eo,to,ro,DECLARATION,substr(eo,0,no),substr(eo,no+1,-1),no)}function serialize(eo,to){for(var ro="",no=sizeof(eo),oo=0;oo6)switch(charat(eo,to+1)){case 109:if(charat(eo,to+4)!==45)break;case 102:return replace(eo,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(eo,to+3)==108?"$3":"$2-$3"))+eo;case 115:return~indexof(eo,"stretch")?prefix(replace(eo,"stretch","fill-available"),to)+eo:eo}break;case 4949:if(charat(eo,to+1)!==115)break;case 6444:switch(charat(eo,strlen(eo)-3-(~indexof(eo,"!important")&&10))){case 107:return replace(eo,":",":"+WEBKIT)+eo;case 101:return replace(eo,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(eo,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+eo}break;case 5936:switch(charat(eo,to+11)){case 114:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"tb")+eo;case 108:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"tb-rl")+eo;case 45:return WEBKIT+eo+MS+replace(eo,/[svh]\w+-[tblr]{2}/,"lr")+eo}return WEBKIT+eo+MS+eo+eo}return eo}var prefixer=function eo(to,ro,no,oo){if(to.length>-1&&!to.return)switch(to.type){case DECLARATION:to.return=prefix(to.value,to.length);break;case KEYFRAMES:return serialize([copy(to,{value:replace(to.value,"@","@"+WEBKIT)})],oo);case RULESET:if(to.length)return combine(to.props,function(io){switch(match(io,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(to,{props:[replace(io,/:(read-\w+)/,":"+MOZ+"$1")]})],oo);case"::placeholder":return serialize([copy(to,{props:[replace(io,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(to,{props:[replace(io,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(to,{props:[replace(io,/:(plac\w+)/,MS+"input-$1")]})],oo)}return""})}},defaultStylisPlugins=[prefixer],createCache=function eo(to){var ro=to.key;if(ro==="css"){var no=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(no,function(vo){var bo=vo.getAttribute("data-emotion");bo.indexOf(" ")!==-1&&(document.head.appendChild(vo),vo.setAttribute("data-s",""))})}var oo=to.stylisPlugins||defaultStylisPlugins,io={},so,ao=[];so=to.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+ro+' "]'),function(vo){for(var bo=vo.getAttribute("data-emotion").split(" "),xo=1;xoNumber.isNaN(Number(eo))).map(([eo,to])=>[eo,`var(${to})`]));Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(eo){eo.type==="entity"&&eo.attributes&&(eo.attributes.title=eo.content.replace(/&/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function eo(to,ro){const no={};no["language-"+ro]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[ro]},no.cdata=/^$/i;const oo={"included-cdata":{pattern://i,inside:no}};oo["language-"+ro]={pattern:/[\s\S]+/,inside:Prism.languages[ro]};const io={};io[to]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return to}),"i"),lookbehind:!0,greedy:!0,inside:oo},Prism.languages.insertBefore("markup","cdata",io)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(eo,to){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+eo+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[to,"language-"+to],inside:Prism.languages[to]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;const envVars="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",commandAfterHeredoc={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},insideString={bash:commandAfterHeredoc,environment:{pattern:RegExp("\\$"+envVars),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};commandAfterHeredoc.inside=Prism.languages.bash;const toBeCopied=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside$1=insideString.variable[1].inside;for(let eo=0;eo>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;const string$1=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+string$1.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string$1.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string$1.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string$1.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string$1,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};Prism.languages.css.atrule.inside.rest=Prism.languages.css;const markup=Prism.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"));const keyword=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,modName=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return keyword.source});Prism.languages.cpp=Prism.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return keyword.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});Prism.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return modName})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});Prism.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Prism.languages.cpp}}}});Prism.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});Prism.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Prism.languages.extend("cpp",{})}});Prism.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Prism.languages.cpp["base-clause"]);const ID="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",IDInside={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:Prism.languages.markup}};function withID(eo,to){return RegExp(eo.replace(//g,function(){return ID}),to)}Prism.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:withID(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:IDInside},"attr-value":{pattern:withID(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:IDInside},"attr-name":{pattern:withID(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:IDInside},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:withID(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:IDInside},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};Prism.languages.gv=Prism.languages.dot;Prism.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const PREFIXES={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(PREFIXES).forEach(function(eo){const to=PREFIXES[eo],ro=[];/^\w+$/.test(eo)||ro.push(/\w+/.exec(eo)[0]),eo==="diff"&&ro.push("bold"),Prism.languages.diff[eo]={pattern:RegExp("^(?:["+to+`].*(?:\r +?| +|(?![\\s\\S])))+`,"m"),alias:ro,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(eo)[0]}}}});Object.defineProperty(Prism.languages.diff,"PREFIXES",{value:PREFIXES});Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m};Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];const keywords=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,classNamePrefix=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,className={pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};Prism.languages.java=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[className,{pattern:RegExp(/(^|[^\w.])/.source+classNamePrefix+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:className.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+classNamePrefix+/[A-Z]\w*\b/.source),lookbehind:!0,inside:className.inside}],keyword:keywords,function:[Prism.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/});Prism.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});Prism.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":className,keyword:keywords,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+classNamePrefix+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:className.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+classNamePrefix+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:className.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return keywords.source})),lookbehind:!0,inside:{punctuation:/\./}}});Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});if(Prism.languages.markup){const eo=Prism.languages.markup;eo.tag.addInlined("script","javascript"),eo.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}Prism.languages.js=Prism.languages.javascript;Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;const javascript=Prism.util.clone(Prism.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re$1(eo,to){const ro=eo.replace(//g,()=>space).replace(//g,()=>braces).replace(//g,()=>spread);return RegExp(ro,to)}spread=re$1(spread).source;Prism.languages.jsx=Prism.languages.extend("markup",javascript);const jsx=Prism.languages.jsx;jsx.tag.pattern=re$1(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);jsx.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;jsx.tag.inside.comment=javascript.comment;Prism.languages.insertBefore("inside","attr-name",{spread:{pattern:re$1(//.source),inside:Prism.languages.jsx}},jsx.tag);Prism.languages.insertBefore("inside","special-attr",{script:{pattern:re$1(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism.languages.jsx}}},jsx.tag);const stringifyToken=function(eo){return eo?typeof eo=="string"?eo:typeof eo.content=="string"?eo.content:eo.content.map(stringifyToken).join(""):""},walkTokens=function(eo){const to=[];for(let ro=0;ro0&&to[to.length-1].tagName===stringifyToken(io[0].content[1])&&to.pop():io[io.length-1].content==="/>"||to.push({tagName:stringifyToken(io[0].content[1]),openedBraces:0}):to.length>0&&no.type==="punctuation"&&no.content==="{"?to[to.length-1].openedBraces+=1:to.length>0&&to[to.length-1].openedBraces>0&&no.type==="punctuation"&&no.content==="}"?to[to.length-1].openedBraces-=1:oo=!0}if((oo||typeof no=="string")&&to.length>0&&to[to.length-1].openedBraces===0){let io=stringifyToken(no);ro0&&(typeof eo[ro-1]=="string"||eo[ro-1].type==="plain-text")&&(io=stringifyToken(eo[ro-1])+io,eo.splice(ro-1,1),ro-=1),eo[ro]=new Prism.Token("plain-text",io,void 0,io)}typeof no!="string"&&no.content&&typeof no.content!="string"&&walkTokens(no.content)}};Prism.hooks.add("after-tokenize",function(eo){eo.language!=="jsx"&&eo.language!=="tsx"||walkTokens(eo.tokens)});Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};const inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(eo){const to=eo.replace(//g,function(){return inner});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+to+")")}const tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism.languages.markdown=Prism.languages.extend("markup",{});Prism.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}});["url","bold","italic","strike"].forEach(function(eo){["url","bold","italic","strike","code-snippet"].forEach(function(to){if(eo!==to){const ro=Prism.languages.markdown;ro[eo].inside.content.inside[to]=ro[to]}})});Prism.hooks.add("after-tokenize",function(eo){if(eo.language!=="markdown"&&eo.language!=="md")return;function to(ro){if(!(!ro||typeof ro=="string"))for(let no=0,oo=ro.length;no",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(eo){let to=eo.replace(tagPattern,"");return to=to.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(ro,no){if(no=no.toLowerCase(),no[0]==="#"){let oo;return no[1]==="x"?oo=parseInt(no.slice(2),16):oo=Number(no.slice(1)),fromCodePoint(oo)}else{const oo=KNOWN_ENTITY_NAMES[no];return oo||ro}}),to}Prism.languages.md=Prism.languages.markdown;Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});Prism.languages.scss.atrule.inside.rest=Prism.languages.scss;Prism.languages.sass=Prism.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});Prism.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete Prism.languages.sass.atrule;const variable=/\$[-\w]+|#\{\$[-\w]+\}/,operator=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];Prism.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable,operator}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable,operator,important:Prism.languages.sass.important}}});delete Prism.languages.sass.property;delete Prism.languages.sass.important;Prism.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};const unit={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},inside={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit,number,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number,punctuation:/[{}()[\];:,]/};inside.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:inside}};inside.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:inside}};Prism.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:inside}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:inside}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:inside}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:inside.interpolation}},rest:inside}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:inside.interpolation,comment:inside.comment,punctuation:/[{},]/}},func:inside.func,string:inside.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:inside.interpolation,punctuation:/[{}()[\];:.]/};Prism.languages.typescript=Prism.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/});Prism.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[{*]|$))/);delete Prism.languages.typescript.parameter;delete Prism.languages.typescript["literal-property"];const typeInside=Prism.languages.extend("typescript",{});delete typeInside["class-name"];Prism.languages.typescript["class-name"].inside=typeInside;Prism.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}});Prism.languages.ts=Prism.languages.typescript;const typescript=Prism.util.clone(Prism.languages.typescript);Prism.languages.tsx=Prism.languages.extend("jsx",typescript);delete Prism.languages.tsx.parameter;delete Prism.languages.tsx["literal-property"];const tag$1=Prism.languages.tsx.tag;tag$1.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag$1.pattern.source+")",tag$1.pattern.flags);tag$1.lookbehind=!0;Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/};Prism.languages.vb=Prism.languages["visual-basic"];Prism.languages.vba=Prism.languages["visual-basic"];Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,()=>/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(eo,to){const ro=(to||"").replace(/m/g,"")+"m",no=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return eo});return RegExp(no,ro)}Prism.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return"(?:"+plainKey+"|"+string+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};Prism.languages.yml=Prism.languages.yaml;const vscDarkTheme={plain:{color:"#d4d4d4",backgroundColor:"#1e1e1e"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment","punctuation"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin"],style:{color:"rgb(79, 193, 255)"}},{types:["number","variable","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["operator"],style:{color:"rgb(212, 212, 212)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["tag","changed","function","keyword"],style:{color:"rgb(86, 156, 214)"}},{types:["attr-name"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value"],style:{color:"rgb(206, 145, 120)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}}]},vscLightTheme={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},vars={border:`1px solid var(${TokenNames.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${TokenNames.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${CommonTokenNames.fontSizeCode}, 14px)`,lineHeightCode:`var(${CommonTokenNames.lineHeightCode}, 1.6)`},classes$2={container:css({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,padding:0,transition:"max-height 0.5s ease-in-out",tabSize:2,fontSmooth:"always",whiteSpace:"pre",wordBreak:"keep-all",wordSpacing:"normal",wordWrap:"normal"}),line:css({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,height:vars.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:css({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:css({background:vars.highlightBackground,borderColor:"transparent"}),lineno:css({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:vars.border}),codes:css({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:vars.fontSizeCode,lineHeight:vars.lineHeightCode}),codeWrapper:css({minWidth:"100%",width:"fit-content"}),codeLine:css({boxSizing:"border-box",padding:"0 12px"})},languageMap={js:"javascript",ts:"typescript"},themeToDict=(eo,to)=>{eo=languageMap[eo]??eo;const{plain:ro}=to,no=Object.create(null),oo=to.styles.reduce((io,so)=>{const{types:ao,style:lo,languages:uo}=so;if(uo&&!uo.includes(eo))return io;for(const co of ao){const fo={...io[co],...lo};io[co]=fo}return io},no);return oo.root=ro,oo.plain={...ro,backgroundColor:void 0},oo},newlineRegex=/\r\n|\r|\n/,normalizeEmptyLines=eo=>{eo.length===0?eo.push({types:["plain"],content:` +`,empty:!0}):eo.length===1&&eo[0].content===""&&(eo[0].content=` +`,eo[0].empty=!0)},appendTypes=(eo,to)=>{const ro=eo.length;return ro>0&&eo[ro-1]===to?eo:eo.concat(to)},normalizeTokens=eo=>{const to=[[]],ro=[eo],no=[0],oo=[eo.length];let io=[];const so=[io];for(let ao=0;ao>-1;--ao){for(let lo=0;(lo=no[ao]++)0?co:["plain"],uo=po):(co=appendTypes(co,po.type),po.alias&&(co=appendTypes(co,po.alias)),uo=po.content),typeof uo!="string"){ao+=1,to.push(co),ro.push(uo),no.push(0),oo.push(uo.length);continue}const ho=uo.split(newlineRegex),mo=ho.length;io.push({types:co,content:ho[0]});for(let vo=1;vo{var io,so;const no=ro.target;if(no==null)return;const{scrollTop:oo}=no;(so=(io=this.linenoRef.current)==null?void 0:io.scrollTo)==null||so.call(io,0,oo)});const no=themeToDict(ro.language,ro.theme),oo=this.tokenize(ro.code,ro.language),io=ro.showLineno?`${Math.max(2,String(oo.length).length)*1.1}em`:void 0;this.state={linenoWidth:io,themeDict:no,tokens:oo},this.linenoRef={current:null}}shouldComponentUpdate(ro,no){const oo=this.props,io=this.state;return io.linenoWidth!==no.linenoWidth||io.themeDict!==no.themeDict||io.tokens!==no.tokens||oo.code!==ro.code||oo.codesRef!==ro.codesRef||oo.collapsed!==ro.collapsed||oo.language!==ro.language||oo.maxLines!==ro.maxLines||oo.showLineno!==ro.showLineno||!isEqual(oo.theme,ro.theme)||!isEqual(oo.highlightLinenos,ro.highlightLinenos)}render(){const{linenoRef:ro,onScroll:no}=this,{codesRef:oo,collapsed:io,highlightLinenos:so,language:ao,maxLines:lo,showLineno:uo=!0}=this.props,{linenoWidth:co,tokens:fo}=this.state,po=fo.length,ho=lo>0?Math.min(lo,po):po,mo={...this.state.themeDict.root,backgroundColor:"none",...io?{maxHeight:0}:{maxHeight:`calc(calc(${vars.lineHeightCode} * ${ho+.8}) + 6px)`,minHeight:"100%"}};return React.createElement("div",{className:cx(classes$2.container,ao?`prism-code language-${ao}`:"prism-code"),style:mo},uo&&React.createElement("div",{key:"linenos",className:classes$2.lineno,style:{width:co},ref:ro},React.createElement(HighlightLinenos,{countOfLines:po,highlightLinenos:so})),React.createElement("div",{key:"codes",ref:oo,className:classes$2.codes,onScroll:no},React.createElement("div",{className:classes$2.codeWrapper},fo.map((vo,bo)=>{const xo=so.includes(bo+1),_o=this.getLineProps({line:vo});return React.createElement("div",{..._o,key:bo,className:cx(classes$2.line,classes$2.codeLine,xo&&classes$2.highlightLine,_o.className)},vo.map((So,Eo)=>React.createElement("span",{...this.getTokenProps({token:So}),key:Eo})))}))))}componentDidMount(){var ro,no;(no=(ro=this.props).onLinenoWidthChange)==null||no.call(ro,this.state.linenoWidth)}componentDidUpdate(ro,no){var ao,lo;const oo=this.props,io=this.state,so=oo.language!==ro.language||!isEqual(oo.theme,ro.theme)?themeToDict(oo.language,oo.theme):io.themeDict;if(oo.code!==ro.code||oo.language!==ro.language||so!==no.themeDict){const uo=this.tokenize(oo.code,oo.language),co=oo.showLineno?`${Math.max(2,String(uo.length).length)*1.1}em`:void 0;this.setState({linenoWidth:co,themeDict:so,tokens:uo})}io.linenoWidth!==no.linenoWidth&&((lo=(ao=this.props).onLinenoWidthChange)==null||lo.call(ao,io.linenoWidth))}tokenize(ro,no){const oo=no?Prism.languages[no]:void 0;if(oo){const io={code:ro,grammar:oo,language:no,tokens:[]};return Prism.hooks.run("before-tokenize",io),io.tokens=Prism.tokenize(io.code,io.grammar),Prism.hooks.run("after-tokenize",io),normalizeTokens(io.tokens)}else return normalizeTokens([ro])}getLineProps(ro){const{themeDict:no}=this.state,{key:oo,className:io,style:so,line:ao,...lo}=ro,uo={...lo,className:"token-line",style:void 0,key:void 0};return no!==void 0&&(uo.style=no.plain),so!==void 0&&(uo.style=uo.style!==void 0?{...uo.style,...so}:so),oo!==void 0&&(uo.key=oo),io&&(uo.className+=` ${io}`),uo}getStyleForToken({types:ro,empty:no}){const{themeDict:oo}=this.state,io=ro.length;if(oo===void 0)return;if(io===1&&ro[0]==="plain")return no?{display:"inline-block"}:void 0;if(io===1&&!no)return oo[ro[0]];const so=no?{display:"inline-block"}:{};for(const ao of ro){const lo=oo[ao];Object.assign(so,lo)}return so}getTokenProps(ro){const{key:no,className:oo,style:io,token:so,...ao}=ro,lo={...ao,className:`token ${so.types.join(" ")}`,children:so.content,style:this.getStyleForToken(so),key:void 0};return io!==void 0&&(lo.style=lo.style!==void 0?{...lo.style,...io}:io),no!==void 0&&(lo.key=no),oo&&(lo.className+=` ${oo}`),lo}}Ws(HighlightContent,"displayName","HighlightContent"),Ws(HighlightContent,"propTypes",{code:PropTypes.string.isRequired,codesRef:PropTypes.any,collapsed:PropTypes.bool.isRequired,language:PropTypes.string.isRequired,maxLines:PropTypes.number.isRequired,showLineno:PropTypes.bool.isRequired,theme:PropTypes.object.isRequired,highlightLinenos:PropTypes.array.isRequired,onLinenoWidthChange:PropTypes.func});class CodeHighlighter extends React.PureComponent{render(){const{lang:to,value:ro,darken:no=!0,highlightLinenos:oo=[],maxLines:io=-1,collapsed:so=!1,showLineNo:ao=!0,codesRef:lo,onLinenoWidthChange:uo}=this.props,co=this.props.theme??(no?vscDarkTheme:vscLightTheme);return React.createElement(HighlightContent,{code:ro,codesRef:lo,collapsed:so,highlightLinenos:oo,language:to??"",maxLines:io,showLineno:ao,theme:co,onLinenoWidthChange:uo})}}Ws(CodeHighlighter,"displayName","YozoraCodeHighlighter"),Ws(CodeHighlighter,"propTypes",{codesRef:PropTypes.any,collapsed:PropTypes.bool,darken:PropTypes.bool,highlightLinenos:PropTypes.arrayOf(PropTypes.number),lang:PropTypes.string,maxLines:PropTypes.number,onLinenoWidthChange:PropTypes.func,showLineNo:PropTypes.bool,theme:PropTypes.any,value:PropTypes.string.isRequired});const CopyButton=eo=>{const{className:to,delay:ro=1500,calcContentForCopy:no}=eo,[oo,io]=React.useState(0),so=useStyles$h(),ao=oo!==0,lo=()=>{if(oo===0){io(1);try{const uo=no();copy$2(uo),io(2)}catch{io(3)}}};return React.useEffect(()=>{if(oo===2||oo===3){const uo=setTimeout(()=>io(0),ro);return()=>{uo&&clearTimeout(uo)}}},[oo,ro]),jsxRuntimeExports.jsx(Button$2,{appearance:"transparent",className:mergeClasses(so.copyButton,to),disabled:ao,as:"button",icon:oo===0?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),onClick:lo})},useStyles$h=makeStyles({copyButton:{cursor:"pointer"}});class CodeRendererInner extends React.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:to}=this,{darken:ro,lang:no,value:oo,preferCodeWrap:io,showCodeLineno:so}=this.props;return jsxRuntimeExports.jsxs("code",{className:codeCls,"data-wrap":io,children:[jsxRuntimeExports.jsx(CodeHighlighter,{lang:no,value:oo,collapsed:!1,showLineNo:so&&!io,darken:ro}),jsxRuntimeExports.jsx("div",{className:copyBtnCls,children:jsxRuntimeExports.jsx(CopyButton,{calcContentForCopy:to})})]})}}const copyBtnCls=mergeStyles$1({position:"absolute",right:"4px",top:"4px",display:"none"}),codeCls=mergeStyles$1(astClasses.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${copyBtnCls}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),CodeRenderer=eo=>{const{lang:to}=eo,ro=eo.value.replace(/[\r\n]+$/,""),{viewmodel:no}=useNodeRendererContext(),oo=useStateValue(no.preferCodeWrap$),io=useStateValue(no.showCodeLineno$),ao=useStateValue(no.themeScheme$)==="darken";return jsxRuntimeExports.jsx(CodeRendererInner,{darken:ao,lang:to??"text",value:ro,preferCodeWrap:oo,showCodeLineno:io})};class DeleteRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("del",{className:cls$9,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$9=mergeStyles$1(astClasses.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class EmphasisRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("em",{className:cls$8,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$8=mergeStyles$1(astClasses.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class HeadingRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.depth!==to.depth||ro.identifier!==to.identifier||ro.children!==to.children||ro.linkIcon!==to.linkIcon}render(){const{depth:to,identifier:ro,children:no,linkIcon:oo="¶"}=this.props,io=ro==null?void 0:encodeURIComponent(ro),so="h"+to,ao=so,lo=mergeStyles$1(astClasses.heading,classes$1.heading,classes$1[so]);return jsxRuntimeExports.jsxs(ao,{id:io,className:lo,children:[jsxRuntimeExports.jsx("p",{className:classes$1.content,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:no})}),ro&&jsxRuntimeExports.jsx("a",{className:classes$1.anchor,href:"#"+io,children:oo})]})}}const anchorCls=mergeStyles$1({flex:"0 0 3rem",paddingLeft:"0.5rem",color:"var(--colorLink)",opacity:0,transition:"color 0.2s ease-in-out, opacity 0.2s ease-in-out",userSelect:"none",textDecoration:"none","> svg":{overflow:"hidden",display:"inline-block",verticalAlign:"middle",fill:"currentColor"}}),classes$1=mergeStyleSets({heading:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"0px",margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.25",fontFamily:"var(--fontFamilyHeading)",color:"var(--colorHeading)",[`&:active .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${anchorCls}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:anchorCls,content:{flex:"0 1 auto",minWidth:0,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre-wrap",lineHeight:"1.7"},h1:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"2rem",fontStyle:"normal",fontWeight:500},h2:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"1.5rem",fontStyle:"normal",fontWeight:500,marginBottom:"0.875rem"},h3:{fontSize:"1.25rem",fontStyle:"normal",fontWeight:500},h4:{fontSize:"1rem",fontStyle:"normal",fontWeight:500},h5:{fontSize:"0.875rem",fontStyle:"normal",fontWeight:500},h6:{fontSize:"0.85rem",fontStyle:"normal",fontWeight:500}});class ImageRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.src!==to.src||ro.alt!==to.alt||ro.title!==to.title||ro.srcSet!==to.srcSet||ro.sizes!==to.sizes||ro.loading!==to.loading||ro.className!==to.className}render(){const{src:to,alt:ro,title:no,srcSet:oo,sizes:io,loading:so,className:ao}=this.props;return jsxRuntimeExports.jsxs("figure",{className:`${ao} ${cls$7}`,children:[jsxRuntimeExports.jsx("img",{alt:ro,src:to,title:no,srcSet:oo,sizes:io,loading:so}),no&&jsxRuntimeExports.jsx("figcaption",{children:no})]})}}const cls$7=mergeStyles$1({boxSizing:"border-box",maxWidth:"80%",display:"flex",flexDirection:"column",alignItems:"center",margin:0,"> img":{flex:"1 0 auto",boxSizing:"border-box",maxWidth:"100%",border:"1px solid var(--colorBorderImage)",boxShadow:"0 0 20px 1px rgba(126, 125, 150, 0.6)"},"> figcaption":{textAlign:"center",fontStyle:"italic",fontSize:"1em",color:"var(--colorImageTitle)"}}),ImageRenderer=eo=>{const{url:to,alt:ro,title:no,srcSet:oo,sizes:io,loading:so}=eo;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:ro,src:to,title:no,srcSet:oo,sizes:io,loading:so,className:astClasses.image})},ImageReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),ro=useStateValue(to.definitionMap$),{alt:no,srcSet:oo,sizes:io,loading:so}=eo,ao=ro[eo.identifier],lo=(ao==null?void 0:ao.url)??"",uo=ao==null?void 0:ao.title;return jsxRuntimeExports.jsx(ImageRendererInner,{alt:no,src:lo,title:uo,srcSet:oo,sizes:io,loading:so,className:astClasses.imageReference})};class InlineCodeRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx("code",{className:cls$6,children:this.props.value})}}const cls$6=mergeStyles$1(astClasses.inlineCode,{padding:"1px 4px",borderRadius:"4px",margin:0,background:"hsla(210deg, 15%, 60%, 0.15)",lineHeight:"1.375",color:"var(--colorInlineCode)",fontFamily:"var(--fontFamilyCode)",fontSize:"min(1rem, 18px)",fontWeight:500});class LinkRendererInner extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.url!==to.url||ro.title!==to.title||ro.childNodes!==to.childNodes||ro.className!==to.className}render(){const{url:to,title:ro,childNodes:no,className:oo}=this.props;return jsxRuntimeExports.jsx("a",{className:mergeStyles$1(cls$5,oo),href:to,title:ro,rel:"noopener, noreferrer",target:"_blank",children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:no})})}}const cls$5=mergeStyles$1({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none",background:"linear-gradient(90deg, hsla(358deg, 100%, 62%, 0.8), hsla(048deg, 100%, 50%, 0.8), hsla(196deg, 100%, 53%, 0.8))",backgroundSize:"0 3px",backgroundRepeat:"no-repeat",backgroundPosition:"50% 100%",transition:"all 0.3s ease-in-out","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",backgroundSize:"100% 3px",backgroundPositionX:0},"&:visited":{color:"var(--colorLinkVisited)"}}),LinkRenderer=eo=>{const{url:to,title:ro,children:no}=eo;return jsxRuntimeExports.jsx(LinkRendererInner,{url:to,title:ro,childNodes:no,className:astClasses.link})},LinkReferenceRenderer=eo=>{const{viewmodel:to}=useNodeRendererContext(),no=useStateValue(to.definitionMap$)[eo.identifier],oo=(no==null?void 0:no.url)??"",io=no==null?void 0:no.title;return jsxRuntimeExports.jsx(LinkRendererInner,{url:oo,title:io,childNodes:eo.children,className:astClasses.linkReference})};class ListRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return ro.ordered!==to.ordered||ro.orderType!==to.orderType||ro.start!==to.start||ro.children!==to.children}render(){const{ordered:to,orderType:ro,start:no,children:oo}=this.props;return to?jsxRuntimeExports.jsx("ol",{className:cls$4,type:ro,start:no,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:oo})}):jsxRuntimeExports.jsx("ul",{className:cls$4,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:oo})})}}const cls$4=mergeStyles$1(astClasses.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class ListItemRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("li",{className:cls$3,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$3=mergeStyles$1(astClasses.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class ParagraphRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return to.some(no=>no.type===ImageType$1||no.type===ImageReferenceType)?jsxRuntimeExports.jsx("div",{className:paragraphDisplayCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})}):jsxRuntimeExports.jsx("p",{className:paragraphCls,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const paragraphCls=mergeStyles$1(astClasses.paragraph,{overflow:"hidden",padding:0,margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.8",hyphens:"auto",wordBreak:"normal",letterSpacing:"1px",overflowWrap:"break-word","> :last-child":{marginBottom:0}}),paragraphDisplayCls=mergeStyles$1(paragraphCls,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class StrongRenderer extends React.Component{shouldComponentUpdate(to){return this.props.children!==to.children}render(){const to=this.props.children;return jsxRuntimeExports.jsx("strong",{className:cls$2,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:to})})}}const cls$2=mergeStyles$1(astClasses.strong,{fontWeight:600});class TableRenderer extends React.Component{shouldComponentUpdate(to){const ro=this.props;return!isEqual(ro.columns,to.columns)||!isEqual(ro.children,to.children)}render(){const{columns:to,children:ro}=this.props,no=to.map(so=>so.align??void 0),[oo,...io]=ro.map(so=>so.children.map((ao,lo)=>jsxRuntimeExports.jsx(NodesRenderer,{nodes:ao.children},lo)));return jsxRuntimeExports.jsxs("table",{className:cls$1,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsx("tr",{children:oo.map((so,ao)=>jsxRuntimeExports.jsx(Th,{align:no[ao],children:so},ao))})}),jsxRuntimeExports.jsx("tbody",{children:io.map((so,ao)=>jsxRuntimeExports.jsx("tr",{children:so.map((lo,uo)=>jsxRuntimeExports.jsx("td",{align:no[uo],children:lo},uo))},ao))})]})}}class Th extends React.Component{constructor(to){super(to),this.ref={current:null}}shouldComponentUpdate(to){const ro=this.props;return ro.align!==to.align||ro.children!==to.children}render(){const{align:to,children:ro}=this.props;return jsxRuntimeExports.jsx("th",{ref:this.ref,align:to,children:ro})}componentDidMount(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}componentDidUpdate(){const to=this.ref.current;to&&to.setAttribute("title",to.innerText)}}const cls$1=mergeStyles$1(astClasses.table,{display:"block",overflow:"auto",width:"max-content",maxWidth:"100%",padding:0,borderCollapse:"collapse",borderRadius:"6px",borderSpacing:"0px",border:"1px solid var(--colorBorderTable)",margin:"0 auto 1.25em",lineHeight:"1.6","> thead":{backgroundColor:"var(--colorBgTableHead)",borderBottom:"1px solid #f0f0f0",th:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)",wordBreak:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:first-child":{borderLeft:"none"}}},"> tbody":{tr:{borderTop:"1px solid var(--colorBorderTable)",backgroundColor:"var(--colorBgTableOddRow)"},"tr:nth-child(2n)":{backgroundColor:"var(--colorBgTableEvenRow)"},td:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)","&:first-child":{borderLeft:"none"}}}});class TextRenderer extends React.Component{shouldComponentUpdate(to){return this.props.value!==to.value}render(){return jsxRuntimeExports.jsx(React.Fragment,{children:this.props.value})}}class ThematicBreakRenderer extends React.Component{shouldComponentUpdate(){return!1}render(){return jsxRuntimeExports.jsx("hr",{className:cls})}}const cls=mergeStyles$1(astClasses.thematicBreak,{boxSizing:"content-box",display:"block",height:0,width:"100%",padding:0,border:0,borderBottom:"1px solid #dadada",outline:0,margin:"1.5em 0px"});function buildNodeRendererMap(eo){if(eo==null)return defaultNodeRendererMap;let to=!1;const ro={};for(const[no,oo]of Object.entries(eo))oo&&oo!==defaultNodeRendererMap[no]&&(to=!0,ro[no]=oo);return to?{...defaultNodeRendererMap,...ro}:defaultNodeRendererMap}const defaultNodeRendererMap={[BlockquoteType]:BlockquoteRenderer,[BreakType]:BreakRenderer,[CodeType]:CodeRenderer,[DefinitionType]:()=>null,[DeleteType]:DeleteRenderer,[EmphasisType]:EmphasisRenderer,[HeadingType]:HeadingRenderer,[HtmlType]:()=>null,[ImageType$1]:ImageRenderer,[ImageReferenceType]:ImageReferenceRenderer,[InlineCodeType]:InlineCodeRenderer,[LinkType]:LinkRenderer,[LinkReferenceType]:LinkReferenceRenderer,[ListType]:ListRenderer,[ListItemType]:ListItemRenderer,[ParagraphType$1]:ParagraphRenderer,[StrongType]:StrongRenderer,[TableType]:TableRenderer,[TextType$1]:TextRenderer,[ThematicBreakType]:ThematicBreakRenderer,_fallback:function eo(to,ro){return console.warn(`Cannot find render for \`${to.type}\` type node with key \`${ro}\`:`,to),null}},ReactMarkdown=eo=>{const{presetDefinitionMap:to,customizedRendererMap:ro,preferCodeWrap:no=!1,showCodeLineno:oo=!0,text:io,themeScheme:so="lighten",className:ao,style:lo}=eo,uo=React.useMemo(()=>parser.parse(io),[io]),co=React.useMemo(()=>calcDefinitionMap(uo).definitionMap,[uo]),[fo]=React.useState(()=>new ReactMarkdownViewModel({definitionMap:{...to,...co},rendererMap:buildNodeRendererMap(ro),preferCodeWrap:no,showCodeLineno:oo,themeScheme:so})),po=React.useMemo(()=>({viewmodel:fo}),[fo]),ho=mergeClasses(rootCls,so==="darken"&&astClasses.rootDarken,ao);return React.useEffect(()=>{fo.preferCodeWrap$.next(no)},[fo,no]),React.useEffect(()=>{fo.showCodeLineno$.next(oo)},[fo,oo]),React.useEffect(()=>{fo.themeScheme$.next(so)},[fo,so]),jsxRuntimeExports.jsx("div",{className:ho,style:lo,children:jsxRuntimeExports.jsx(NodeRendererContextType.Provider,{value:po,children:jsxRuntimeExports.jsx(NodesRenderer,{nodes:uo.children})})})},rootCls=mergeStyles$1(astClasses.root,{wordBreak:"break-all",userSelect:"unset",[astClasses.listItem]:{[`> ${astClasses.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}}),BasicViewer=({styles:eo,showEmpty:to,emptyRender:ro,previewRender:no,rawRender:oo,headerRender:io})=>{const so=useClasses$j(),[ao,lo]=reactExports.useState("preview"),uo=reactExports.useCallback(fo=>{lo(fo)},[]),co=useLocStrings();return to?ro?ro():jsxRuntimeExports.jsx(MessageBar,{intent:"info",children:co["No content"]}):jsxRuntimeExports.jsxs("div",{className:eo==null?void 0:eo.root,children:[oo&&jsxRuntimeExports.jsxs("div",{className:so.header,children:[jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden"},children:io==null?void 0:io()}),jsxRuntimeExports.jsx("div",{className:so.groupWrapper,children:jsxRuntimeExports.jsxs("div",{className:so.buttonGroup,children:[jsxRuntimeExports.jsx(Button$2,{value:"preview",size:"small",appearance:ao==="preview"?void 0:"transparent",onClick:()=>uo("preview"),children:co.Preview}),jsxRuntimeExports.jsx(Button$2,{value:"raw",size:"small",appearance:ao==="raw"?void 0:"transparent",onClick:()=>uo("raw"),children:co.Raw})]})})]}),ao==="preview"||!oo?no():null,ao==="raw"&&oo?oo():null]})},useClasses$j=makeStyles({header:{display:"flex",alignItems:"center",marginBottom:"12px"},groupWrapper:{display:"flex",flexDirection:"row-reverse"},buttonGroup:{display:"inline-flex",...shorthands.borderRadius("5px"),backgroundColor:tokens.colorNeutralBackground5}}),MarkdownViewer=({content:eo})=>{const to=useStyles$g();return jsxRuntimeExports.jsx(BasicViewer,{styles:to,showEmpty:!eo,previewRender:()=>jsxRuntimeExports.jsx(ReactMarkdown,{text:`${eo}`}),rawRender:()=>jsxRuntimeExports.jsx("div",{style:{marginTop:6},children:`${eo}`})})},useStyles$g=makeStyles({root:{wordBreak:"break-all",whiteSpace:"break-spaces",...shorthands.overflow("auto")}}),EmbeddingNodeInfo=()=>{var lo,uo,co;const eo=useSelectedSpan(),to=((lo=eo==null?void 0:eo.attributes)==null?void 0:lo["llm.response.model"])??((uo=eo==null?void 0:eo.attributes)==null?void 0:uo["embedding.model"]),ro=useLocStrings(),[no,oo]=reactExports.useState(ViewStatus.loading),io=useLoadSpanEvents(eo,BuildInEventName["embedding.embeddings"]),so=useSpanEventsWithPayload(eo,BuildInEventName["embedding.embeddings"]);let ao=JSON.parse(((co=eo==null?void 0:eo.attributes)==null?void 0:co["embedding.embeddings"])??"[]")??[];return so.length>0&&(ao=so.map(fo=>(fo==null?void 0:fo.attributes)??[]).flat()),reactExports.useEffect(()=>{io({onCompleted:fo=>{oo(fo?ViewStatus.error:ViewStatus.loaded)}})},[]),no===ViewStatus.loading?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh"},children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):no===ViewStatus.error?jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{oo(ViewStatus.loading),io({onCompleted:fo=>{oo(fo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("span",{children:to})}),ao.map((fo,po)=>jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("i",{children:ro.Embedded_text})}),fo["embedding.text"]?jsxRuntimeExports.jsx(MarkdownViewer,{content:fo["embedding.text"]}):null]},po))]})},CollapsibleTextArea=({children:eo})=>{const[to,ro]=reactExports.useState(!0),no=useClasses$i();return jsxRuntimeExports.jsxs("div",{className:no.wrapper,children:[jsxRuntimeExports.jsx(Button$2,{icon:to?jsxRuntimeExports.jsx(TextWrapOff16Regular,{}):jsxRuntimeExports.jsx(TextWrap16Regular,{}),onClick:()=>ro(!to),size:"small"}),jsxRuntimeExports.jsx("pre",{className:`${to&&no.wrap} ${no.pre}`,children:eo})]})},useClasses$i=makeStyles({wrapper:{width:"95%",height:"100%",paddingLeft:tokens.spacingHorizontalM,color:tokens.colorNeutralForeground1,display:"flex",flexDirection:"column"},wrap:{wordBreak:"break-all",whiteSpace:"pre-wrap"},pre:{marginTop:0}}),ErrorsTab=()=>{const eo=useClasses$h(),to=useSelectedSpan(),ro=useSpanEventsWithPayload(to,BuildInEventName.exception),no=useIsDark(),oo=useLocStrings(),[io,so]=reactExports.useState(ViewStatus.loading),ao=useLoadSpanEvents(to,BuildInEventName.exception);return reactExports.useEffect(()=>{ao({onCompleted:lo=>{so(lo?ViewStatus.error:ViewStatus.loaded)}})},[]),ro.length===0?jsxRuntimeExports.jsxs("div",{className:eo.emptyWrapper,children:[jsxRuntimeExports.jsx(ShieldCheckmark24Regular,{}),jsxRuntimeExports.jsxs(Text$1,{className:eo.emptyText,children:[" ",oo.No_Exception_found]})]}):io===ViewStatus.loading?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(Spinner,{size:"tiny"})}):io===ViewStatus.error?jsxRuntimeExports.jsx("div",{className:eo.emptyWrapper,children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ao({onCompleted:lo=>{so(lo?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ro.map((lo,uo)=>jsxRuntimeExports.jsx(Card,{className:eo.wrapper,children:jsxRuntimeExports.jsx(JsonViewer,{src:lo,collapseStringsAfterLength:1e4,theme:"vscode",dark:no,customizeNode:({node:co,indexOrName:fo})=>{if(fo==="exception.message"||fo==="exception.stacktrace")return jsxRuntimeExports.jsx(CollapsibleTextArea,{children:co})}})},uo))})},useClasses$h=makeStyles({wrapper:{marginBottom:tokens.spacingVerticalM},emptyWrapper:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%"},emptyText:{paddingTop:tokens.spacingVerticalM}}),useEvaluationTracesListRow=eo=>{const[to,ro]=reactExports.useState([]),no=reactExports.useMemo(()=>{const ao={};return eo.forEach(lo=>{var uo;(uo=lo==null?void 0:lo.context)!=null&&uo.span_id&&(ao[lo.context.span_id]={...lo,children:[],depth:0})}),eo.forEach(lo=>{var uo;if(lo.parent_id&&((uo=lo==null?void 0:lo.context)!=null&&uo.span_id)&&lo.parent_id!==""){const co=ao[lo.parent_id],fo=ao[lo.context.span_id];fo.depth=co.depth+1,co.children.push(fo)}}),Object.values(ao).filter(lo=>!lo.parent_id)},[eo]),oo=reactExports.useCallback(ao=>{if(to.includes(ao)){const uo=findRowById(ao,no);if(!uo)return;const fo=(uo.children?findAllDescendants(uo):[]).map(ho=>{var mo;return(mo=ho==null?void 0:ho.context)==null?void 0:mo.span_id}).filter(ho=>ho!==void 0),po=to.filter(ho=>ho!==ao).filter(ho=>!fo.includes(ho));ro(po)}else ro([...to,ao])},[to,no]),io=reactExports.useMemo(()=>{const ao=lo=>lo.reduce((uo,co)=>{var ho,mo;const po=((ho=co==null?void 0:co.context)!=null&&ho.span_id?to.includes((mo=co==null?void 0:co.context)==null?void 0:mo.span_id):!1)?ao(co.children):[];return[...uo,co,...po]},[]);return ao(no)},[to,no]),so=reactExports.useCallback(ao=>ao?to.includes(ao):!1,[to]);return{rows:io,toggleSubRows:oo,isRowExpanded:so}},findAllDescendants=eo=>{let to=[...eo.children];return eo.children.forEach(ro=>{to=[...to,...findAllDescendants(ro)]}),to},findRowById=(eo,to)=>{var ro;for(const no of to){if(((ro=no==null?void 0:no.context)==null?void 0:ro.span_id)===eo)return no;const oo=findRowById(eo,no.children);if(oo)return oo}return null},CellExpander=({isExpanded:eo=!1,onToggle:to})=>{const ro=useClasses$g();return jsxRuntimeExports.jsx("div",{className:ro.wrapper,onClick:()=>to&&to(!eo),children:eo?jsxRuntimeExports.jsx(ChevronDown16Filled,{}):jsxRuntimeExports.jsx(ChevronRight16Filled,{})})},useClasses$g=makeStyles({wrapper:{cursor:"pointer",display:"flex"}}),UNDEFINED_VALUE_PLACEHOLDER="N/A",TRACE_POLLING_GAP=6e4,RUNNING_TRACE_POLLING_GAP=3e4,SPAN_POLLING_GAP=3e4,LOCAL_URL_PREFIX="http://localhost:63082";function KindText({kind:eo}){return jsxRuntimeExports.jsx(Badge$2,{appearance:"outline",size:"medium",children:eo||UNDEFINED_VALUE_PLACEHOLDER})}function TimeText({time:eo}){const to=timeFormat(eo);return jsxRuntimeExports.jsx("time",{children:to})}const CellWrapper=({children:eo})=>{const to=useClasses$f();return jsxRuntimeExports.jsx("div",{className:to.cellWrapper,children:eo})},TextCellWrapper=({children:eo})=>{const to=useClasses$f();return jsxRuntimeExports.jsx("div",{className:to.textCellWrapper,children:jsxRuntimeExports.jsx("p",{className:to.textCellP,children:eo})})},CellSkeleton=({height:eo})=>{const to=useClasses$f();return jsxRuntimeExports.jsx(Skeleton,{className:to.textCellWrapper,children:jsxRuntimeExports.jsx(SkeletonItem,{style:{height:`${eo??20}px`}})})},useClasses$f=makeStyles({cellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},textCellWrapper:{display:"flex",flexDirection:"row",alignItems:"center",height:"100%",width:"100%"},textCellP:{wordWrap:"break-word",maxWidth:"100%",lineHeight:tokens.lineHeightBase200,fontSize:tokens.fontSizeBase300,maxHeight:"100%",whiteSpace:"normal",...shorthands.padding(tokens.spacingVerticalS,tokens.spacingHorizontalXS)}}),isValidJson=eo=>{if(typeof eo=="string")return!1;try{return JSON.stringify(eo),!0}catch{return!1}},TraceListJsonCell=({jsonObject:eo,isViewDetailEnabled:to=!1})=>{const ro=isValidJson(eo);return jsxRuntimeExports.jsx(CellWrapper,{children:ro?jsxRuntimeExports.jsx(TraceListObjectCell,{object:eo,isViewDetailEnabled:to}):jsxRuntimeExports.jsx(TextCellWrapper,{children:formatText(String(eo))})})},TraceListObjectCell=({object:eo,isViewDetailEnabled:to})=>{const ro=useIsDark();return to?jsxRuntimeExports.jsxs(Dialog,{children:[jsxRuntimeExports.jsx(DialogTrigger,{children:jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapsed:1,dark:ro,theme:"vscode"})})}),jsxRuntimeExports.jsx(DialogSurface,{children:jsxRuntimeExports.jsx("div",{style:{height:"800px",width:"800ppx",marginTop:"12px",lineHeight:"16px",overflow:"auto"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!0,collapseStringsAfterLength:200,dark:ro,theme:"vscode"})})})]}):jsxRuntimeExports.jsx("div",{style:{overflow:"hidden",height:"100%",width:"100%",marginTop:"12px",lineHeight:"16px"},children:jsxRuntimeExports.jsx(JsonViewer,{src:eo,enableClipboard:!1,collapseStringsAfterLength:50,collapsed:1,dark:ro,theme:"vscode"})})},MAX_LENGTH=80;function formatText(eo){return eo.length>MAX_LENGTH?`${eo.slice(0,MAX_LENGTH)}...`:eo}const useClasses$e=makeStyles({grid:{},row:{cursor:"pointer"},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}},kindCell:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"100%",...shorthands.gap("4px")}}),EvaluationTracesList=({evaluationSpans:eo,className:to})=>{const ro=useClasses$e(),no=useIsDark(),{rows:oo,toggleSubRows:io,isRowExpanded:so}=useEvaluationTracesListRow(eo),ao=useLocStrings(),lo=useSetSelectedEvaluationTraceId();return jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${mergeStyles$1(ro.grid,to)} ${no?"rdg-dark":"rdg-light"}`,rowClass:()=>ro.row,columns:[{key:"kind",name:ao.Kind,minWidth:150,maxWidth:300,renderCell:({row:uo})=>{var fo,po,ho;const co=((fo=uo==null?void 0:uo.children)==null?void 0:fo.length)>0;return jsxRuntimeExports.jsxs("div",{className:ro.kindCell,style:{paddingLeft:uo.depth*16+(co?0:20)},children:[co&&jsxRuntimeExports.jsx(CellExpander,{isExpanded:so((po=uo==null?void 0:uo.context)==null?void 0:po.span_id),onToggle:()=>{var mo,vo;(mo=uo==null?void 0:uo.context)!=null&&mo.span_id&&io((vo=uo==null?void 0:uo.context)==null?void 0:vo.span_id)}}),jsxRuntimeExports.jsx(KindText,{kind:(ho=uo.attributes)==null?void 0:ho.span_type})]})}},{key:"name",name:ao.Name,minWidth:150,maxWidth:300,renderCell:({row:uo})=>jsxRuntimeExports.jsx(Tooltip,{content:uo.name??"",relationship:"label",children:jsxRuntimeExports.jsx(Link$1,{className:ro.nameCell,title:uo.name,onClick:()=>{var co;lo((co=uo.context)==null?void 0:co.trace_id)},children:uo.name})})},{key:"input",name:ao.Input,minWidth:200,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:JSON.parse(((co=uo.attributes)==null?void 0:co.inputs)??"{}")})}},{key:"output",name:ao.Output,minWidth:200,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(TraceListJsonCell,{isViewDetailEnabled:!0,jsonObject:JSON.parse(((co=uo.attributes)==null?void 0:co.output)??"{}")})}},{key:"start_time",name:ao.Start_time,minWidth:150,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:uo.start_time})})},{key:"end_time",name:ao.End_time,minWidth:150,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:uo.end_time})})},{key:"latency",name:ao.Latency,minWidth:120,renderCell:({row:uo})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:uo.start_time,endTimeISOString:uo.end_time})})},{key:"total_tokens",name:ao.Total_tokens,minWidth:120,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(TokenText,{token:Number.parseInt(((co=uo.attributes)==null?void 0:co["__computed__.cumulative_token_count.total"])??"0")})})}},{key:"status",name:ao.Status,minWidth:120,renderCell:({row:uo})=>{var co;return jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:(co=uo.status)==null?void 0:co.status_code})})}}],rows:oo,headerRowHeight:26,rowHeight:80,defaultColumnOptions:{resizable:!0}})},EvaluationsTab=()=>{var lo,uo,co;const eo=useClasses$d(),to=useEvaluationSpansOfSelectedSpan(),[ro,no]=reactExports.useState((lo=to[0])==null?void 0:lo.evaluationName),oo=((uo=to.find(fo=>fo.evaluationName===ro))==null?void 0:uo.evaluationTraces)??[],io=useSelectedTrace(),so=(io==null?void 0:io.evaluations)??{},ao=((co=so[ro??""])==null?void 0:co.outputs)??{};return jsxRuntimeExports.jsxs(Card,{style:{height:"100%"},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx(TabList,{selectedValue:ro,onTabSelect:(fo,po)=>{no(po.value)},children:to.map(fo=>jsxRuntimeExports.jsx(Tab$1,{value:fo.evaluationName,children:fo.evaluationName},fo.evaluationName))})}),jsxRuntimeExports.jsxs("div",{className:eo.wrapper,children:[ro&&so[ro]&&Object.keys(ao).map(fo=>{const po=ao[fo];return po?jsxRuntimeExports.jsx(MetricTag,{tag:{name:fo,value:po}},fo):null}),jsxRuntimeExports.jsx(EvaluationTracesList,{evaluationSpans:oo,className:eo.grid})]})]})},useClasses$d=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%",...shorthands.gap("8px")},grid:{flexGrow:1}}),LLMNodeInvocationParametersTab=({invocationParameters:eo})=>{const to=useIsDark();return jsxRuntimeExports.jsx(JsonViewer,{src:eo,theme:"vscode",dark:to})};var ChatMessageCategory=(eo=>(eo.System="system",eo.Error="error",eo.Chatbot="chatbot",eo.User="user",eo))(ChatMessageCategory||{}),ChatMessageType=(eo=>(eo.Message="message",eo.SessionSplit="session-split",eo))(ChatMessageType||{}),CopyStatus=(eo=>(eo[eo.PENDING=0]="PENDING",eo[eo.COPYING=1]="COPYING",eo[eo.COPIED=2]="COPIED",eo[eo.FAILED=3]="FAILED",eo))(CopyStatus||{}),ChatboxLocator=(eo=>(eo.MessageBubble="chatbox-message-bubble",eo.MessageContent="chatbox-message-content",eo.MessageList="chatbox-message-list",eo.MessageActionBar="chatbox-message-action-bar",eo))(ChatboxLocator||{}),ChatboxSelector=(eo=>(eo.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',eo.MessageContent='[data-chatbox-locator="chatbox-message-content"]',eo.MessageList='[data-chatbox-locator="chatbox-message-list"]',eo.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',eo))(ChatboxSelector||{});const defaultLocStrings$1={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class ChatboxViewModel{constructor(to){this.calcContentForCopy=fo=>this.calcContentForCopy$.getSnapshot()(fo),this.monitorInputContentChange=fo=>this.inputContentChangeTick$.subscribeStateChange(fo),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(fo=>fo+1)},this.sendMessage=fo=>{const po=this.editorRef.current;if(!po){console.log("!!!editorRef is not mounted.");return}const ho=fo??po.getContent(),mo=this.sendMessage$.getSnapshot(),bo=this.makeUserMessage$.getSnapshot()(ho);this.messages$.setState(xo=>[...xo,bo]),po.clear(),this.isOthersTyping$.next(!0),mo(ho,this,bo).then(xo=>{xo!==void 0&&this.messages$.setState(_o=>[..._o,xo])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=fo=>{this.calcContentForCopy$.next(fo)},this.setMakeUserMessage=fo=>{this.makeUserMessage$.next(fo)},this.setSendMessage=fo=>{this.sendMessage$.next(fo)},this.sessionSplit=fo=>{const po={id:uuid_1.v4(),type:ChatMessageType.SessionSplit,history:[{category:ChatMessageCategory.System,from:"system",content:fo??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(ho=>[...ho,po]),po};const{alias:ro="",initialDisabled:no=!1,initialMessages:oo=[],locStrings:io=defaultLocStrings$1,calcContentForCopy:so=fo=>typeof fo.content=="string"?fo.content:JSON.stringify(fo.content),makeUserMessage:ao=fo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:fo}]}),sendMessage:lo=async fo=>({id:uuid_1.v4(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:fo}]})}=to;this.editorRef={current:null};const uo=new State(0),co=Computed.fromObservables([uo],()=>{var fo;return(fo=this.editorRef.current)==null?void 0:fo.isEmpty()});this.alias$=new State(ro),this.disabled$=new State(no),this.inputContentChangeTick$=uo,this.isEditorEmpty$=co,this.isOthersTyping$=new State(!1),this.locStrings$=new State(io),this.messages$=new State(oo),this.calcContentForCopy$=new State(so),this.makeUserMessage$=new State(ao),this.sendMessage$=new State(lo)}}const viewmodel=new ChatboxViewModel({sendMessage:()=>Promise.resolve({id:Date.now(),type:ChatMessageType.Message,history:[{category:ChatMessageCategory.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})});React.createContext({viewmodel});function useEventCallback$1(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[])}function useCopyAction(eo,to){const[ro,no]=React.useState(CopyStatus.PENDING),oo=useEventCallback$3(so=>{if(ro===CopyStatus.PENDING){no(CopyStatus.COPYING);try{const ao=to(so);copy$2(ao),no(CopyStatus.COPIED)}catch{no(CopyStatus.FAILED)}}});return React.useEffect(()=>{if(ro===CopyStatus.COPIED||ro===CopyStatus.FAILED){let so=setTimeout(()=>{so=void 0,no(CopyStatus.PENDING)},1500);return()=>{so&&clearTimeout(so)}}},[ro]),React.useMemo(()=>({key:"copy",group:2,icon:ro===CopyStatus.PENDING?jsxRuntimeExports.jsx(Copy20Regular,{}):jsxRuntimeExports.jsx(CopyArrowRight20Regular,{}),tooltip:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:eo.CopyToClipboard}),disabled:ro!==CopyStatus.PENDING,onClick:oo,condition:so=>so.category===ChatMessageCategory.Chatbot||so.category===ChatMessageCategory.User||so.category===ChatMessageCategory.Error}),[eo,ro,oo])}makeStyles({copyButton:{cursor:"pointer"}});const defaultUploadPopoverLocStrings={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},ImageView=eo=>{const{src:to,alt:ro,loading:no=!1,width:oo,height:io,styles:so}=eo;return to?no?jsxRuntimeExports.jsx("div",{children:"Loading..."}):jsxRuntimeExports.jsx("div",{className:so==null?void 0:so.root,children:jsxRuntimeExports.jsx("img",{className:so==null?void 0:so.image,src:to,alt:ro,width:oo,height:io})}):jsxRuntimeExports.jsx("div",{children:"This image can not be previewed."})},ImageViewModal=eo=>{const{src:to,alt:ro,visible:no,loading:oo=!1,width:io,height:so,onDismiss:ao}=eo,lo=useStyles$f(),uo=jsxRuntimeExports.jsxs("div",{className:lo.container,children:[jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx("h2",{className:lo.heading,children:"Preview"}),jsxRuntimeExports.jsx(Button$2,{as:"button",appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),className:lo.dismissBtn,onClick:ao})]}),jsxRuntimeExports.jsx("div",{className:lo.main,children:jsxRuntimeExports.jsx(ImageView,{src:to,alt:ro,loading:oo,width:io,height:so,styles:{image:lo.image}})})]});return jsxRuntimeExports.jsx(Modal,{isOpen:no,isBlocking:!1,onDismiss:ao,children:uo})},useStyles$f=makeStyles({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...shorthands.padding("16px")},header:{...shorthands.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...shorthands.margin(0),fontWeight:FontWeights.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:tokens.colorNeutralStroke1}},main:{...shorthands.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),IMAGE_WIDTH="48px",MASK_SELECTOR_CLASS_NAME="__MASK_SELECTOR_CLASS_NAME__",UploadPopoverImagePreview=eo=>{const{image:to,alt:ro,isReadonly:no,onClickDelete:oo}=eo,[io,so]=React.useState(!1),ao=useStyles$e(),lo=React.useMemo(()=>{if(to)return typeof to=="string"?to:URL.createObjectURL(to)},[to]),uo=React.useCallback(()=>{so(fo=>!fo)},[]),co=lo||"";return jsxRuntimeExports.jsxs("div",{className:mergeClasses(ao.root,no?ao.readonlyRoot:void 0),children:[jsxRuntimeExports.jsxs("div",{className:ao.imageContainer,children:[jsxRuntimeExports.jsx("img",{decoding:"async",className:ao.image,src:co,alt:ro}),jsxRuntimeExports.jsx("div",{"aria-hidden":!0,className:mergeClasses(ao.mask,MASK_SELECTOR_CLASS_NAME),onClick:uo,role:"button",children:jsxRuntimeExports.jsx(ZoomIn20Regular,{})})]}),!no&&jsxRuntimeExports.jsx(Button$2,{as:"button",className:ao.closeButton,icon:jsxRuntimeExports.jsx(Dismiss20Regular,{}),onClick:oo}),jsxRuntimeExports.jsx(ImageViewModal,{src:co,alt:ro||"",visible:io,onDismiss:uo})]})},useStyles$e=makeStyles({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...shorthands.border("1px","solid",tokens.colorNeutralStroke2),...shorthands.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:IMAGE_WIDTH,[`:hover .${MASK_SELECTOR_CLASS_NAME}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${IMAGE_WIDTH} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:tokens.colorNeutralForegroundStaticInverted,...shorthands.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...shorthands.border(0)}}),UploadPopoverTrigger=React.forwardRef((eo,to)=>jsxRuntimeExports.jsx(Button$2,{...eo,ref:to,as:"button",appearance:"transparent",size:"medium",icon:jsxRuntimeExports.jsx(Attach16Regular,{})}));UploadPopoverTrigger.displayName="UploadPopoverTrigger";const mergeStyleSlots=(eo,...to)=>{const ro={...eo};for(const no of Object.keys(eo))ro[no]=mergeClasses(eo[no],...to.map(oo=>oo==null?void 0:oo[no]));return ro},UploadPopover=React.forwardRef(({isUploading:eo,disabled:to,trigger:ro=jsxRuntimeExports.jsx(UploadPopoverTrigger,{}),locStrings:no=defaultUploadPopoverLocStrings,styles:oo,events:io,onUpload:so,onRenderImagePreview:ao},lo)=>{const uo=mergeStyleSlots(useStyles$d(),oo),{onDelete:co,onInputBlur:fo,onPaste:po,onLocalUpload:ho}=io??{};React.useImperativeHandle(lo,()=>({open(){vo(!0)},close(){vo(!1)},reset:()=>{wo()},retrieve:()=>_o}));const[mo,vo]=React.useState(!1),[bo,xo]=React.useState(""),[_o,So]=React.useState(void 0),Eo=React.useRef(null),ko=React.useCallback((Bo,Mo)=>{vo(Mo.open||!1)},[]),wo=React.useCallback(()=>{xo(""),So(void 0),Eo.current&&(Eo.current.value="")},[]),Co=React.useCallback(Bo=>{const Mo=Bo[0];So(Mo),po==null||po(Mo)},[po]),Ro=React.useCallback(Bo=>{Bo.clipboardData.files&&Co&&Co(Bo.clipboardData.files)},[Co]),Ao=React.useCallback(()=>{fo==null||fo(bo),So(bo)},[bo,fo]),Io=React.useCallback(()=>{_o&&so(_o)},[_o,so]),$o=React.useMemo(()=>ao?ao({cachedImage:_o,customerInputContent:bo,isReadonly:to||eo||!1}):jsxRuntimeExports.jsx(UploadPopoverImagePreview,{image:_o||bo,alt:bo||"",isReadonly:eo,onClickDelete:()=>{wo(),co==null||co()}}),[bo,_o,wo,to,eo,co,ao]);return jsxRuntimeExports.jsxs(Popover,{positioning:"above-end",open:mo,onOpenChange:ko,children:[jsxRuntimeExports.jsx(PopoverTrigger,{disableButtonEnhancement:!0,children:ro}),jsxRuntimeExports.jsxs(PopoverSurface,{className:uo.attachUploadPopover,children:[jsxRuntimeExports.jsxs("div",{className:uo.attachUploadHeader,children:[jsxRuntimeExports.jsx("span",{children:no.AddAnImage}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(Dismiss24Regular,{}),onClick:()=>{vo(!1)}})]}),jsxRuntimeExports.jsxs("div",{className:uo.attachUploadInputWrapper,children:[_o?$o:jsxRuntimeExports.jsx(Input,{className:uo.attachUploadInput,value:bo,disabled:to,placeholder:no.PasteImageOrLinkHere,onChange:(Bo,Mo)=>{So(void 0),xo(Mo.value)},onPaste:Ro,onBlur:Ao}),jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to||eo||!_o&&!bo,className:uo.addButton,onClick:Io,children:eo?jsxRuntimeExports.jsx(Spinner,{size:"tiny"}):no.Add})]}),jsxRuntimeExports.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:Eo,disabled:to,className:uo.invisibleFileInput,onChange:Bo=>{var Ho;const Mo=(Ho=Bo.target.files)==null?void 0:Ho[0];Mo&&(ho==null||ho(Mo)),So(Mo)},type:"file",accept:"image/*"}),jsxRuntimeExports.jsx("div",{className:uo.triggerUploadButton,children:jsxRuntimeExports.jsx(Button$2,{as:"button",disabled:to,appearance:"transparent",icon:jsxRuntimeExports.jsx(ArrowUpload24Regular,{}),onClick:()=>{var Bo;(Bo=Eo.current)==null||Bo.click()},children:no.UploadFromThisDevice})})]})]})});UploadPopover.displayName="UploadPopover";const useStyles$d=makeStyles({attachUploadPopover:{width:"400px",backgroundColor:tokens.colorNeutralBackground1,...shorthands.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}});function DefaultMessageContentRenderer(eo){const{content:to,className:ro}=eo,no=useStyles$c(),oo=mergeClasses(no.content,ro);if(typeof to=="string")return jsxRuntimeExports.jsx("p",{className:oo,children:to});const io=JSON.stringify(to,null,2);return jsxRuntimeExports.jsx("pre",{className:oo,children:io})}DefaultMessageContentRenderer.displayName="DefaultMessageContentRenderer";const useStyles$c=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function DefaultMessageErrorRenderer(eo){const{error:to,locStrings:ro,className:no}=eo,[oo,io]=React.useState(!1),so=useStyles$b(),ao=mergeClasses(so.errorMessageDetail,!oo&&so.errorMessageDetailHidden,no);return jsxRuntimeExports.jsxs(React.Fragment,{children:[jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx(Link$1,{onClick:()=>io(lo=>!lo),children:oo?ro.MessageError_HideDetail:ro.MessageError_ShowDetail})}),jsxRuntimeExports.jsx("p",{className:ao,children:to})]})}DefaultMessageErrorRenderer.displayName="DefaultMessageErrorRenderer";const useStyles$b=makeStyles({errorMessageDetail:{...shorthands.margin("0","0","0","0"),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),useToolbarDefaultActions=()=>React.useMemo(()=>[],[]);function DefaultMessageActionBarRenderer(eo){const{useMessageActions:to=useToolbarDefaultActions,data:ro,className:no}=eo,oo=to(ro),io=useStyles$a(),so=React.useMemo(()=>{const uo=oo.filter(fo=>!fo.condition||fo.condition(ro)).sort((fo,po)=>fo.group-po.group),co=[];for(let fo=0,po;fo0))return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const lo=[];for(let uo=0;uobo(ro)},po)},po))}uo+1{ro>0&&oo(ro-1)},ao=()=>{ro=jo?Ho:""+Array(jo+1-Fo.length).join(Oo)+Ho},Eo={s:So,z:function(Ho){var jo=-Ho.utcOffset(),Oo=Math.abs(jo),Fo=Math.floor(Oo/60),Go=Oo%60;return(jo<=0?"+":"-")+So(Fo,2,"0")+":"+So(Go,2,"0")},m:function Ho(jo,Oo){if(jo.date()1)return Ho(Xo[0])}else{var Zo=jo.name;wo[Zo]=jo,Go=Zo}return!Fo&&Go&&(ko=Go),Go||!Fo&&ko},Io=function(Ho,jo){if(Ro(Ho))return Ho.clone();var Oo=typeof jo=="object"?jo:{};return Oo.date=Ho,Oo.args=arguments,new Bo(Oo)},$o=Eo;$o.l=Ao,$o.i=Ro,$o.w=function(Ho,jo){return Io(Ho,{locale:jo.$L,utc:jo.$u,x:jo.$x,$offset:jo.$offset})};var Bo=function(){function Ho(Oo){this.$L=Ao(Oo.locale,null,!0),this.parse(Oo),this.$x=this.$x||Oo.x||{},this[Co]=!0}var jo=Ho.prototype;return jo.parse=function(Oo){this.$d=function(Fo){var Go=Fo.date,qo=Fo.utc;if(Go===null)return new Date(NaN);if($o.u(Go))return new Date;if(Go instanceof Date)return new Date(Go);if(typeof Go=="string"&&!/Z$/i.test(Go)){var Xo=Go.match(bo);if(Xo){var Zo=Xo[2]-1||0,Qo=(Xo[7]||"0").substring(0,3);return qo?new Date(Date.UTC(Xo[1],Zo,Xo[3]||1,Xo[4]||0,Xo[5]||0,Xo[6]||0,Qo)):new Date(Xo[1],Zo,Xo[3]||1,Xo[4]||0,Xo[5]||0,Xo[6]||0,Qo)}}return new Date(Go)}(Oo),this.init()},jo.init=function(){var Oo=this.$d;this.$y=Oo.getFullYear(),this.$M=Oo.getMonth(),this.$D=Oo.getDate(),this.$W=Oo.getDay(),this.$H=Oo.getHours(),this.$m=Oo.getMinutes(),this.$s=Oo.getSeconds(),this.$ms=Oo.getMilliseconds()},jo.$utils=function(){return $o},jo.isValid=function(){return this.$d.toString()!==vo},jo.isSame=function(Oo,Fo){var Go=Io(Oo);return this.startOf(Fo)<=Go&&Go<=this.endOf(Fo)},jo.isAfter=function(Oo,Fo){return Io(Oo){const{duration:to,tokens:ro,locStrings:no,className:oo}=eo,io=to.toFixed(2).replace(/\.?0*$/,"");return jsxRuntimeExports.jsxs("div",{className:oo,children:[ro>0&&jsxRuntimeExports.jsxs(React.Fragment,{children:[`${no.MessageStatus_TokensDesc}: `,jsxRuntimeExports.jsx("b",{children:ro}),` ${no.MessageStatus_TokensUint}, `]}),`${ro>0?no.MessageStatus_TimeSpentDesc:no.MessageStatus_TimeSpentDscCapitalized}: `,jsxRuntimeExports.jsx("b",{children:io}),` ${no.MessageStatus_TimeSpent_Unit}`]})};DefaultMessageStatusRenderer.displayName="DefaultMessageStatusRenderer";const EMPTY_CONTEXTUAL_MENU_ITEMS$1=[],defaultUseContextualMenuItems$1=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS$1;function DefaultMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro=DefaultMessageContentRenderer,MessageErrorRenderer:no=DefaultMessageErrorRenderer,MessageSenderRenderer:oo=DefaultMessageSenderRenderer,MessagePaginationRenderer:io=DefaultMessagePaginationRenderer,MessageActionBarRenderer:so=DefaultMessageActionBarRenderer,MessageStatusRenderer:ao=DefaultMessageStatusRenderer,useMessageContextualMenuItems:lo=defaultUseContextualMenuItems$1,useMessageActions:uo,initialPage:co=-1,locStrings:fo,message:po,className:ho}=eo,mo=useStyles$8(),[vo,bo]=React.useState((co%po.history.length+po.history.length)%po.history.length),[xo,_o]=React.useState(!1),So=React.useRef(null),Eo=React.useRef(null),ko=React.useCallback(()=>{_o(!1)},[]),wo=React.useCallback($o=>{const Bo=So.current,Mo=Eo.current;if(Bo&&Mo){const Ho=$o.clientX,jo=$o.clientY,Oo=Bo.getBoundingClientRect(),Fo=Oo.left+window.scrollX,Go=Oo.top+window.scrollY,qo=Ho-Fo,Xo=jo-Go;Mo.style.left=`${qo}px`,Mo.style.top=`${Xo}px`}},[]),Co=React.useCallback($o=>{$o.preventDefault(),wo($o),_o(!0)},[]),Ro=po.history[vo],Ao=Ro.category===ChatMessageCategory.User?"right":"left",Io=lo(Ro);return React.useEffect(()=>{const $o=()=>{_o(!1)};return document.addEventListener("mousedown",$o),()=>document.removeEventListener("mousedown",$o)},[]),jsxRuntimeExports.jsx("div",{className:mo.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Ao,children:jsxRuntimeExports.jsxs("div",{className:mergeClasses(mo.message,ho),"data-position":Ao,children:[jsxRuntimeExports.jsx("div",{className:mo.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Ro,position:Ao})}),jsxRuntimeExports.jsxs("div",{className:mo.main,children:[jsxRuntimeExports.jsx("div",{className:mo.sender,children:jsxRuntimeExports.jsx(oo,{data:Ro,position:Ao})}),jsxRuntimeExports.jsxs("div",{ref:So,className:mo.content,"data-category":Ro.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Co,onClick:wo,children:[jsxRuntimeExports.jsx(ro,{content:Ro.content,className:mo.contentMain}),Ro.error&&jsxRuntimeExports.jsx(no,{error:Ro.error,locStrings:fo,className:mo.error}),typeof Ro.duration=="number"&&typeof Ro.tokens=="number"&&jsxRuntimeExports.jsx(ao,{duration:Ro.duration,tokens:Ro.tokens,locStrings:fo,className:mo.status}),po.history.length>1&&jsxRuntimeExports.jsx(io,{className:mo.pagination,message:po,current:vo,setCurrent:bo}),jsxRuntimeExports.jsx("div",{ref:Eo,className:mo.contentMenuAnchor}),Io.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Io,hidden:!xo,target:Eo,onItemClick:ko,onDismiss:ko,className:mo.contextualMenu}),jsxRuntimeExports.jsx("div",{className:mo.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(so,{data:Ro,locStrings:fo,useMessageActions:uo})})]})]})]})})}DefaultMessageBubbleRenderer.displayName="DefaultMessageBubbleRenderer";const useStyles$8=makeStyles({container:{...shorthands.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto")},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens.colorPaletteRedBackground2,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens.colorNeutralBackground4,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens.colorBrandBackground2,color:tokens.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function DefaultSessionSplitRenderer(eo){const{locStrings:to,className:ro}=eo,no=useStyles$7();return jsxRuntimeExports.jsx("div",{className:mergeClasses(no.sessionSplit,ro),children:jsxRuntimeExports.jsxs("span",{children:["--- ",to.SessionSplit_Desc," ---"]})})}DefaultSessionSplitRenderer.displayName="DefaultSessionSplitRenderer";const useStyles$7=makeStyles({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:tokens.colorNeutralForeground4}});makeStyles({hintTyping:{...shorthands.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...shorthands.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...shorthands.borderRadius("50%"),...shorthands.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:tokens.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...shorthands.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});makeStyles({toolbar:{display:"flex",justifyContent:"flex-end"}});makeStyles({input:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...shorthands.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function MessageListRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro,MessageErrorRenderer:no,MessageSenderRenderer:oo,MessageBubbleRenderer:io=DefaultMessageBubbleRenderer,SessionSplitRenderer:so=DefaultSessionSplitRenderer,className:ao,bubbleClassName:lo,sessionSplitClassName:uo,locStrings:co,messages:fo,useMessageContextualMenuItems:po,useMessageActions:ho}=eo,mo=useStyles$6();return jsxRuntimeExports.jsx("div",{className:mergeClasses(mo.container,ao),"data-chatbox-locator":ChatboxLocator.MessageList,children:fo.map(vo=>{switch(vo.type){case ChatMessageType.Message:return jsxRuntimeExports.jsx(io,{MessageAvatarRenderer:to,MessageContentRenderer:ro,MessageErrorRenderer:no,MessageSenderRenderer:oo,locStrings:co,message:vo,className:lo,useMessageContextualMenuItems:po,useMessageActions:ho},vo.id);case ChatMessageType.SessionSplit:return jsxRuntimeExports.jsx(so,{locStrings:co,className:uo},vo.id);default:return jsxRuntimeExports.jsx(React.Fragment,{},vo.id)}})})}MessageListRenderer.displayName="MessageListRenderer";const useStyles$6=makeStyles({container:{boxSizing:"border-box"}}),rv=class rv extends React.PureComponent{render(){const{elements:to,deltaH:ro,deltaW:no,scaleH:oo,scaleW:io,className:so,elementClassName:ao}=this.props;return jsxRuntimeExports.jsx("div",{className:so,children:to.map((lo,uo)=>{const co=(lo.top-ro)*oo,fo=(lo.left-no)*io,po=lo.height*oo,ho=lo.width*io,mo={top:co,left:fo,height:po,width:ho};return lo.backgroundColor&&(mo.backgroundColor=lo.backgroundColor),jsxRuntimeExports.jsx("div",{className:ao,style:mo},uo)})})}};rv.displayName="MinimapOverview";let MinimapOverview=rv;const MinimapViewport=eo=>{const{scaleH:to,sourceRootRef:ro,sourceQuerySelector:no,className:oo}=eo,[io,so]=React.useState(0),[ao,lo]=React.useState(0),uo=useStyles$5();return React.useLayoutEffect(()=>{var ho,mo;const co=(mo=(ho=ro.current)==null?void 0:ho.querySelector(no))==null?void 0:mo.parentElement;if(!co)return()=>{};const{height:fo}=co.getBoundingClientRect();lo(fo);const po=()=>{so(co.scrollTop||0)};return co.addEventListener("scroll",po),()=>co.removeEventListener("scroll",po)},[ro.current]),jsxRuntimeExports.jsx("div",{className:mergeClasses(uo.viewport,oo),style:{position:"absolute",top:io*to,height:`${ao*to}px`}})};MinimapViewport.displayName="MinimapViewport";const useStyles$5=makeStyles({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}}),Minimap=eo=>{const{SCROLL_DELTA_THRESHOLD:to=5,syncScale:ro=!0,sourceRootRef:no,sourceQuerySelector:oo,sourceElementQuerySelector:io,className:so,overviewClassName:ao,overviewElementClassName:lo,viewportClassName:uo,style:co}=eo,[fo,po]=React.useState([]),[ho,mo]=React.useState(0),[vo,bo]=React.useState(0),[xo,_o]=React.useState(0),[So,Eo]=React.useState(0),[ko,wo]=React.useState(0),[Co,Ro]=React.useState(0),[Ao,Io]=React.useState(0),[$o,Bo]=React.useState(0),Mo=So<=0?0:vo/So||.1,Ho=xo<=0?0:ro?Math.max(1/xo,Math.min(Mo,(ho-10)/xo||.1)):Math.max(1/xo,(ho-10)/xo||.1),jo=React.useRef(null),Oo=React.useRef(null),Fo=React.useRef(!1),Go=useEventCallback$1(Ts=>{var Os,As;if(Ts.preventDefault(),Ts.stopPropagation(),Fo.current=!0,!Oo.current)return;const Rs=(As=(Os=no.current)==null?void 0:Os.querySelector(oo))==null?void 0:As.parentElement;if(Rs){const Jo=(Ts.clientY-Oo.current.getBoundingClientRect().top)/Ho;Math.abs(Rs.scrollTop-Jo)>to&&(Rs.scrollTop=Jo)}}),qo=useEventCallback$1(Ts=>{var Os,As;if(Ts.preventDefault(),Ts.stopPropagation(),!Fo.current||!Oo.current)return;const Rs=(As=(Os=no.current)==null?void 0:Os.querySelector(oo))==null?void 0:As.parentElement;if(Rs){const Jo=(Ts.clientY-Oo.current.getBoundingClientRect().top)/Ho;Math.abs(Rs.scrollTop-Jo)>to&&(Rs.scrollTop=Jo)}}),Xo=React.useCallback(Ts=>{const Rs=Ts.querySelector(oo);if(!Rs)return;const Os=Rs.querySelectorAll(io),As=[];for(let Jo=0;Jo{const Ts=()=>{Fo.current=!1};return document.addEventListener("mouseup",Ts),()=>document.removeEventListener("mouseup",Ts)},[]),React.useLayoutEffect(()=>{const Ts=jo.current;if(!Ts)return;const{height:Rs,width:Os}=Ts.getBoundingClientRect();mo(Rs),bo(Os)},[]),React.useLayoutEffect(()=>{const Ts=no.current;if(!Ts)return()=>{};Xo(Ts);const Rs=new MutationObserver(Os=>{for(const As of Os)As.type==="childList"&&Xo(Ts)});return Rs.observe(Ts,{childList:!0,subtree:!0}),()=>{Rs.disconnect()}},[no.current,Xo]);const Zo=useStyles$4(),Qo=xo+ko-Ao,xs=So+Co-$o;return jsxRuntimeExports.jsx("div",{ref:jo,className:mergeClasses(Zo.container,so),style:co,children:jsxRuntimeExports.jsxs("div",{ref:Oo,className:Zo.minimap,onMouseDown:Go,onMouseMove:qo,children:[jsxRuntimeExports.jsx(MinimapOverview,{elements:fo,deltaH:Qo,deltaW:xs,scaleH:Ho,scaleW:Mo,className:mergeClasses(Zo.overview,ao),elementClassName:mergeClasses(Zo.minimapElement,lo)}),jsxRuntimeExports.jsx(MinimapViewport,{scaleH:Ho,sourceRootRef:no,sourceQuerySelector:oo,className:uo})]})})};Minimap.displayName="Minimap";const useStyles$4=makeStyles({container:{height:"100%",width:"100%",...shorthands.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:tokens.colorNeutralBackgroundDisabled}},textarea:{...shorthands.padding("0px"),...shorthands.overflow("hidden","auto"),...shorthands.borderWidth(0),...shorthands.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:tokens.colorNeutralForeground1,userSelect:"text"}});function e$1(eo){return{}}const t$3={},n$2={},r$1={},i$2={},s$2={},o$5={},l$3={},c$5={},u$5={},a$4={},f$4={},d$4={},h$3={},g$6={},_$5={},p$4={},y$4={},m$5={},x$5={},v$3={},T$3={},S$4={},k$2={},C$4={},b$2={},N$3={},w$3={},E$4={},P$3={},D$2={},I$1={},O$2={},A$3={},L$2={},F$1={},M$3={},W={},z$1={},B$2={},R$2={},K$2={},J={},U={},V={},$$1={};var H$1=function(eo){const to=new URLSearchParams;to.append("code",eo);for(let ro=1;roOe;try{Vi(eo,()=>{const oo=fi()||function(po){return po.getEditorState().read(()=>{const ho=fi();return ho!==null?ho.clone():null})}(eo),io=new Map,so=eo.getRootElement(),ao=eo._editorState,lo=eo._blockCursorElement;let uo=!1,co="";for(let po=0;po0){let Eo=0;for(let ko=0;ko0)for(const[po,ho]of io)if(qi(ho)){const mo=ho.getChildrenKeys();let vo=po.firstChild;for(let bo=0;bo0){for(let po=0;po{Be(eo,to,ro)})}function Je(eo,to){const ro=eo.__mode,no=eo.__format,oo=eo.__style,io=to.__mode,so=to.__format,ao=to.__style;return!(ro!==null&&ro!==io||no!==null&&no!==so||oo!==null&&oo!==ao)}function Ue(eo,to){const ro=eo.mergeWithSibling(to),no=Oi()._normalizedNodes;return no.add(eo.__key),no.add(to.__key),ro}function Ve(eo){let to,ro,no=eo;if(no.__text!==""||!no.isSimpleText()||no.isUnmergeable()){for(;(to=no.getPreviousSibling())!==null&&Br(to)&&to.isSimpleText()&&!to.isUnmergeable();){if(to.__text!==""){if(Je(to,no)){no=Ue(to,no);break}break}to.remove()}for(;(ro=no.getNextSibling())!==null&&Br(ro)&&ro.isSimpleText()&&!ro.isUnmergeable();){if(ro.__text!==""){if(Je(no,ro)){no=Ue(no,ro);break}break}ro.remove()}}else no.remove()}function $e(eo){return He(eo.anchor),He(eo.focus),eo}function He(eo){for(;eo.type==="element";){const to=eo.getNode(),ro=eo.offset;let no,oo;if(ro===to.getChildrenSize()?(no=to.getChildAtIndex(ro-1),oo=!0):(no=to.getChildAtIndex(ro),oo=!1),Br(no)){eo.set(no.__key,oo?no.getTextContentSize():0,"text");break}if(!qi(no))break;eo.set(no.__key,oo?no.getChildrenSize():0,"element")}}let je=1;const qe=typeof queueMicrotask=="function"?queueMicrotask:eo=>{Promise.resolve().then(eo)};function Qe(eo){const to=document.activeElement;if(to===null)return!1;const ro=to.nodeName;return Hi(at$1(eo))&&(ro==="INPUT"||ro==="TEXTAREA"||to.contentEditable==="true"&&to.__lexicalEditor==null)}function Xe(eo,to,ro){const no=eo.getRootElement();try{return no!==null&&no.contains(to)&&no.contains(ro)&&to!==null&&!Qe(to)&&Ye(to)===eo}catch{return!1}}function Ye(eo){let to=eo;for(;to!=null;){const ro=to.__lexicalEditor;if(ro!=null)return ro;to=Jt(to)}return null}function Ze(eo){return eo.isToken()||eo.isSegmented()}function Ge(eo){return eo.nodeType===se}function et(eo){let to=eo;for(;to!=null;){if(Ge(to))return to;to=to.firstChild}return null}function tt(eo,to,ro){const no=be[to];if(ro!==null&&(eo&no)==(ro&no))return eo;let oo=eo^no;return to==="subscript"?oo&=~be.superscript:to==="superscript"&&(oo&=~be.subscript),oo}function nt(eo){return Br(eo)||vr(eo)||Hi(eo)}function rt(eo,to){if(to!=null)return void(eo.__key=to);Pi(),Di();const ro=Oi(),no=Ii(),oo=""+je++;no._nodeMap.set(oo,eo),qi(eo)?ro._dirtyElements.set(oo,!0):ro._dirtyLeaves.add(oo),ro._cloneNotNeeded.add(oo),ro._dirtyType=le,eo.__key=oo}function it(eo){const to=eo.getParent();if(to!==null){const ro=eo.getWritable(),no=to.getWritable(),oo=eo.getPreviousSibling(),io=eo.getNextSibling();if(oo===null)if(io!==null){const so=io.getWritable();no.__first=io.__key,so.__prev=null}else no.__first=null;else{const so=oo.getWritable();if(io!==null){const ao=io.getWritable();ao.__prev=so.__key,so.__next=ao.__key}else so.__next=null;ro.__prev=null}if(io===null)if(oo!==null){const so=oo.getWritable();no.__last=oo.__key,so.__next=null}else no.__last=null;else{const so=io.getWritable();if(oo!==null){const ao=oo.getWritable();ao.__next=so.__key,so.__prev=ao.__key}else so.__prev=null;ro.__next=null}no.__size--,ro.__parent=null}}function st$1(eo){Di();const to=eo.getLatest(),ro=to.__parent,no=Ii(),oo=Oi(),io=no._nodeMap,so=oo._dirtyElements;ro!==null&&function(lo,uo,co){let fo=lo;for(;fo!==null;){if(co.has(fo))return;const po=uo.get(fo);if(po===void 0)break;co.set(fo,!1),fo=po.__parent}}(ro,io,so);const ao=to.__key;oo._dirtyType=le,qi(eo)?so.set(ao,!0):oo._dirtyLeaves.add(ao)}function ot(eo){Pi();const to=Oi(),ro=to._compositionKey;if(eo!==ro){if(to._compositionKey=eo,ro!==null){const no=ct$1(ro);no!==null&&no.getWritable()}if(eo!==null){const no=ct$1(eo);no!==null&&no.getWritable()}}}function lt$1(){return Ei()?null:Oi()._compositionKey}function ct$1(eo,to){const ro=(to||Ii())._nodeMap.get(eo);return ro===void 0?null:ro}function ut$1(eo,to){const ro=eo[`__lexicalKey_${Oi()._key}`];return ro!==void 0?ct$1(ro,to):null}function at$1(eo,to){let ro=eo;for(;ro!=null;){const no=ut$1(ro,to);if(no!==null)return no;ro=Jt(ro)}return null}function ft$1(eo){const to=eo._decorators,ro=Object.assign({},to);return eo._pendingDecorators=ro,ro}function dt$1(eo){return eo.read(()=>ht$1().getTextContent())}function ht$1(){return gt$1(Ii())}function gt$1(eo){return eo._nodeMap.get("root")}function _t(eo){Pi();const to=Ii();eo!==null&&(eo.dirty=!0,eo.setCachedNodes(null)),to._selection=eo}function pt$1(eo){const to=Oi(),ro=function(no,oo){let io=no;for(;io!=null;){const so=io[`__lexicalKey_${oo._key}`];if(so!==void 0)return so;io=Jt(io)}return null}(eo,to);return ro===null?eo===to.getRootElement()?ct$1("root"):null:ct$1(ro)}function yt$1(eo,to){return to?eo.getTextContentSize():0}function mt$1(eo){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(eo)}function xt$1(eo){const to=[];let ro=eo;for(;ro!==null;)to.push(ro),ro=ro._parentEditor;return to}function vt$1(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Tt(eo){return eo.nodeType===se?eo.nodeValue:null}function St(eo,to,ro){const no=nn(to._window);if(no===null)return;const oo=no.anchorNode;let{anchorOffset:io,focusOffset:so}=no;if(oo!==null){let ao=Tt(oo);const lo=at$1(oo);if(ao!==null&&Br(lo)){if(ao===me&&ro){const uo=ro.length;ao=ro,io=uo,so=uo}ao!==null&&kt(lo,ao,io,so,eo)}}}function kt(eo,to,ro,no,oo){let io=eo;if(io.isAttached()&&(oo||!io.isDirty())){const so=io.isComposing();let ao=to;(so||oo)&&to[to.length-1]===me&&(ao=to.slice(0,-1));const lo=io.getTextContent();if(oo||ao!==lo){if(ao===""){if(ot(null),Z||G||re)io.remove();else{const vo=Oi();setTimeout(()=>{vo.update(()=>{io.isAttached()&&io.remove()})},20)}return}const uo=io.getParent(),co=di(),fo=io.getTextContentSize(),po=lt$1(),ho=io.getKey();if(io.isToken()||po!==null&&ho===po&&!so||Xr(co)&&(uo!==null&&!uo.canInsertTextBefore()&&co.anchor.offset===0||co.anchor.key===eo.__key&&co.anchor.offset===0&&!io.canInsertTextBefore()&&!so||co.focus.key===eo.__key&&co.focus.offset===fo&&!io.canInsertTextAfter()&&!so))return void io.markDirty();const mo=fi();if(!Xr(mo)||ro===null||no===null)return void io.setTextContent(ao);if(mo.setTextNodeRange(io,ro,io,no),io.isSegmented()){const vo=zr(io.getTextContent());io.replace(vo),io=vo}io.setTextContent(ao)}}}function Ct$1(eo,to){if(to.isSegmented())return!0;if(!eo.isCollapsed())return!1;const ro=eo.anchor.offset,no=to.getParentOrThrow(),oo=to.isToken();return ro===0?!to.canInsertTextBefore()||!no.canInsertTextBefore()||oo||function(io){const so=io.getPreviousSibling();return(Br(so)||qi(so)&&so.isInline())&&!so.canInsertTextAfter()}(to):ro===to.getTextContentSize()&&(!to.canInsertTextAfter()||!no.canInsertTextAfter()||oo)}function bt(eo){return eo===37}function Nt$1(eo){return eo===39}function wt$1(eo,to){return Q?eo:to}function Et$1(eo){return eo===13}function Pt$1(eo){return eo===8}function Dt$1(eo){return eo===46}function It(eo,to,ro){return eo===65&&wt$1(to,ro)}function Ot$1(){const eo=ht$1();_t($e(eo.select(0,eo.getChildrenSize())))}function At$1(eo,to){eo.__lexicalClassNameCache===void 0&&(eo.__lexicalClassNameCache={});const ro=eo.__lexicalClassNameCache,no=ro[to];if(no!==void 0)return no;const oo=eo[to];if(typeof oo=="string"){const io=Ie(oo);return ro[to]=io,io}return oo}function Lt(eo,to,ro,no,oo){if(ro.size===0)return;const io=no.__type,so=no.__key,ao=to.get(io);ao===void 0&&H$1(33,io);const lo=ao.klass;let uo=eo.get(lo);uo===void 0&&(uo=new Map,eo.set(lo,uo));const co=uo.get(so),fo=co==="destroyed"&&oo==="created";(co===void 0||fo)&&uo.set(so,fo?"updated":oo)}function Ft(eo){const to=Ii(),ro=to._readOnly,no=eo.getType(),oo=to._nodeMap,io=[];for(const[,so]of oo)so instanceof eo&&so.__type===no&&(ro||so.isAttached())&&io.push(so);return io}function Mt(eo,to,ro){const no=eo.getParent();let oo=ro,io=eo;return no!==null&&(to&&ro===0?(oo=io.getIndexWithinParent(),io=no):to||ro!==io.getChildrenSize()||(oo=io.getIndexWithinParent()+1,io=no)),io.getChildAtIndex(to?oo-1:oo)}function Wt(eo,to){const ro=eo.offset;if(eo.type==="element")return Mt(eo.getNode(),to,ro);{const no=eo.getNode();if(to&&ro===0||!to&&ro===no.getTextContentSize()){const oo=to?no.getPreviousSibling():no.getNextSibling();return oo===null?Mt(no.getParentOrThrow(),to,no.getIndexWithinParent()+(to?0:1)):oo}}return null}function zt(eo){const to=Ht(eo).event,ro=to&&to.inputType;return ro==="insertFromPaste"||ro==="insertFromPasteAsQuotation"}function Bt(eo,to,ro){return Ki(eo,to,ro)}function Rt(eo){return!Yi(eo)&&!eo.isLastChild()&&!eo.isInline()}function Kt(eo,to){const ro=eo._keyToDOMMap.get(to);return ro===void 0&&H$1(75,to),ro}function Jt(eo){const to=eo.assignedSlot||eo.parentElement;return to!==null&&to.nodeType===11?to.host:to}function Ut(eo){return Oi()._updateTags.has(eo)}function Vt(eo){Pi(),Oi()._updateTags.add(eo)}function $t(eo,to){let ro=eo.getParent();for(;ro!==null;){if(ro.is(to))return!0;ro=ro.getParent()}return!1}function Ht(eo){const to=eo._window;return to===null&&H$1(78),to}function jt(eo){return qi(eo)&&eo.isInline()||Hi(eo)&&eo.isInline()}function qt(eo){let to=eo.getParentOrThrow();for(;to!==null;){if(Qt(to))return to;to=to.getParentOrThrow()}return to}function Qt(eo){return Yi(eo)||qi(eo)&&eo.isShadowRoot()}function Xt(eo){const to=eo.constructor.clone(eo);return rt(to,null),to}function Yt(eo){const to=Oi(),ro=eo.constructor.getType(),no=to._nodes.get(ro);no===void 0&&H$1(97);const oo=no.replace;if(oo!==null){const io=oo(eo);return io instanceof eo.constructor||H$1(98),io}return eo}function Zt(eo,to){!Yi(eo.getParent())||qi(to)||Hi(to)||H$1(99)}function Gt(eo){return(Hi(eo)||qi(eo)&&!eo.canBeEmpty())&&!eo.isInline()}function en(eo,to,ro){ro.style.removeProperty("caret-color"),to._blockCursorElement=null;const no=eo.parentElement;no!==null&&no.removeChild(eo)}function tn(eo,to,ro){let no=eo._blockCursorElement;if(Xr(ro)&&ro.isCollapsed()&&ro.anchor.type==="element"&&to.contains(document.activeElement)){const oo=ro.anchor,io=oo.getNode(),so=oo.offset;let ao=!1,lo=null;if(so===io.getChildrenSize())Gt(io.getChildAtIndex(so-1))&&(ao=!0);else{const uo=io.getChildAtIndex(so);if(Gt(uo)){const co=uo.getPreviousSibling();(co===null||Gt(co))&&(ao=!0,lo=eo.getElementByKey(uo.__key))}}if(ao){const uo=eo.getElementByKey(io.__key);return no===null&&(eo._blockCursorElement=no=function(co){const fo=co.theme,po=document.createElement("div");po.contentEditable="false",po.setAttribute("data-lexical-cursor","true");let ho=fo.blockCursor;if(ho!==void 0){if(typeof ho=="string"){const mo=Ie(ho);ho=fo.blockCursor=mo}ho!==void 0&&po.classList.add(...ho)}return po}(eo._config)),to.style.caretColor="transparent",void(lo===null?uo.appendChild(no):uo.insertBefore(no,lo))}}no!==null&&en(no,eo,to)}function nn(eo){return j?(eo||window).getSelection():null}function rn(eo,to){let ro=eo.getChildAtIndex(to);ro==null&&(ro=eo),Qt(eo)&&H$1(102);const no=so=>{const ao=so.getParentOrThrow(),lo=Qt(ao),uo=so!==ro||lo?Xt(so):so;if(lo)return qi(so)&&qi(uo)||H$1(133),so.insertAfter(uo),[so,uo,uo];{const[co,fo,po]=no(ao),ho=so.getNextSiblings();return po.append(uo,...ho),[co,fo,uo]}},[oo,io]=no(ro);return[oo,io]}function sn(eo){return on(eo)&&eo.tagName==="A"}function on(eo){return eo.nodeType===1}function ln(eo){if(Hi(eo)&&!eo.isInline())return!0;if(!qi(eo)||Qt(eo))return!1;const to=eo.getFirstChild(),ro=to===null||vr(to)||Br(to)||to.isInline();return!eo.isInline()&&eo.canBeEmpty()!==!1&&ro}function cn(eo,to){let ro=eo;for(;ro!==null&&ro.getParent()!==null&&!to(ro);)ro=ro.getParentOrThrow();return to(ro)?ro:null}function un(){return Oi()}function an(eo,to,ro,no,oo,io){let so=eo.getFirstChild();for(;so!==null;){const ao=so.__key;so.__parent===to&&(qi(so)&&an(so,ao,ro,no,oo,io),ro.has(ao)||io.delete(ao),oo.push(ao)),so=so.getNextSibling()}}let fn,dn,hn,gn,_n,pn,yn,mn,xn,vn,Tn="",Sn="",kn="",Cn=!1,bn=!1,Nn=null;function wn(eo,to){const ro=yn.get(eo);if(to!==null){const no=Vn(eo);no.parentNode===to&&to.removeChild(no)}if(mn.has(eo)||dn._keyToDOMMap.delete(eo),qi(ro)){const no=Bn(ro,yn);En(no,0,no.length-1,null)}ro!==void 0&&Lt(vn,hn,gn,ro,"destroyed")}function En(eo,to,ro,no){let oo=to;for(;oo<=ro;++oo){const io=eo[oo];io!==void 0&&wn(io,no)}}function Pn(eo,to){eo.setProperty("text-align",to)}const Dn="40px";function In(eo,to){const ro=fn.theme.indent;if(typeof ro=="string"){const oo=eo.classList.contains(ro);to>0&&!oo?eo.classList.add(ro):to<1&&oo&&eo.classList.remove(ro)}const no=getComputedStyle(eo).getPropertyValue("--lexical-indent-base-value")||Dn;eo.style.setProperty("padding-inline-start",to===0?"":`calc(${to} * ${no})`)}function On(eo,to){const ro=eo.style;to===0?Pn(ro,""):to===de?Pn(ro,"left"):to===he?Pn(ro,"center"):to===ge?Pn(ro,"right"):to===_e?Pn(ro,"justify"):to===pe?Pn(ro,"start"):to===ye&&Pn(ro,"end")}function An(eo,to,ro){const no=mn.get(eo);no===void 0&&H$1(60);const oo=no.createDOM(fn,dn);if(function(io,so,ao){const lo=ao._keyToDOMMap;so["__lexicalKey_"+ao._key]=io,lo.set(io,so)}(eo,oo,dn),Br(no)?oo.setAttribute("data-lexical-text","true"):Hi(no)&&oo.setAttribute("data-lexical-decorator","true"),qi(no)){const io=no.__indent,so=no.__size;if(io!==0&&In(oo,io),so!==0){const lo=so-1;(function(uo,co,fo,po){const ho=Sn;Sn="",Ln(uo,fo,0,co,po,null),Wn(fo,po),Sn=ho})(Bn(no,mn),lo,no,oo)}const ao=no.__format;ao!==0&&On(oo,ao),no.isInline()||Mn(null,no,oo),Rt(no)&&(Tn+=xe,kn+=xe)}else{const io=no.getTextContent();if(Hi(no)){const so=no.decorate(dn,fn);so!==null&&Kn(eo,so),oo.contentEditable="false"}else Br(no)&&(no.isDirectionless()||(Sn+=io));Tn+=io,kn+=io}if(to!==null)if(ro!=null)to.insertBefore(oo,ro);else{const io=to.__lexicalLineBreak;io!=null?to.insertBefore(oo,io):to.appendChild(oo)}return Lt(vn,hn,gn,no,"created"),oo}function Ln(eo,to,ro,no,oo,io){const so=Tn;Tn="";let ao=ro;for(;ao<=no;++ao)An(eo[ao],oo,io);Rt(to)&&(Tn+=xe),oo.__lexicalTextContent=Tn,Tn=so+Tn}function Fn(eo,to){const ro=to.get(eo);return vr(ro)||Hi(ro)&&ro.isInline()}function Mn(eo,to,ro){const no=eo!==null&&(eo.__size===0||Fn(eo.__last,yn)),oo=to.__size===0||Fn(to.__last,mn);if(no){if(!oo){const io=ro.__lexicalLineBreak;io!=null&&ro.removeChild(io),ro.__lexicalLineBreak=null}}else if(oo){const io=document.createElement("br");ro.__lexicalLineBreak=io,ro.appendChild(io)}}function Wn(eo,to){const ro=to.__lexicalDirTextContent,no=to.__lexicalDir;if(ro!==Sn||no!==Nn){const io=Sn==="",so=io?Nn:(oo=Sn,ke.test(oo)?"rtl":Ce.test(oo)?"ltr":null);if(so!==no){const ao=to.classList,lo=fn.theme;let uo=no!==null?lo[no]:void 0,co=so!==null?lo[so]:void 0;if(uo!==void 0){if(typeof uo=="string"){const fo=Ie(uo);uo=lo[no]=fo}ao.remove(...uo)}if(so===null||io&&so==="ltr")to.removeAttribute("dir");else{if(co!==void 0){if(typeof co=="string"){const fo=Ie(co);co=lo[so]=fo}co!==void 0&&ao.add(...co)}to.dir=so}bn||(eo.getWritable().__dir=so)}Nn=so,to.__lexicalDirTextContent=Sn,to.__lexicalDir=so}var oo}function zn(eo,to,ro){const no=Sn;Sn="",function(oo,io,so){const ao=Tn,lo=oo.__size,uo=io.__size;if(Tn="",lo===1&&uo===1){const co=oo.__first,fo=io.__first;if(co===fo)Rn(co,so);else{const po=Vn(co),ho=An(fo,null,null);so.replaceChild(ho,po),wn(co,null)}}else{const co=Bn(oo,yn),fo=Bn(io,mn);if(lo===0)uo!==0&&Ln(fo,io,0,uo-1,so,null);else if(uo===0){if(lo!==0){const po=so.__lexicalLineBreak==null;En(co,0,lo-1,po?null:so),po&&(so.textContent="")}}else(function(po,ho,mo,vo,bo,xo){const _o=vo-1,So=bo-1;let Eo,ko,wo=(Ao=xo,Ao.firstChild),Co=0,Ro=0;for(var Ao;Co<=_o&&Ro<=So;){const Bo=ho[Co],Mo=mo[Ro];if(Bo===Mo)wo=Jn(Rn(Mo,xo)),Co++,Ro++;else{Eo===void 0&&(Eo=new Set(ho)),ko===void 0&&(ko=new Set(mo));const Ho=ko.has(Bo),jo=Eo.has(Mo);if(Ho)if(jo){const Oo=Kt(dn,Mo);Oo===wo?wo=Jn(Rn(Mo,xo)):(wo!=null?xo.insertBefore(Oo,wo):xo.appendChild(Oo),Rn(Mo,xo)),Co++,Ro++}else An(Mo,xo,wo),Ro++;else wo=Jn(Vn(Bo)),wn(Bo,xo),Co++}}const Io=Co>_o,$o=Ro>So;if(Io&&!$o){const Bo=mo[So+1];Ln(mo,po,Ro,So,xo,Bo===void 0?null:dn.getElementByKey(Bo))}else $o&&!Io&&En(ho,Co,_o,xo)})(io,co,fo,lo,uo,so)}Rt(io)&&(Tn+=xe),so.__lexicalTextContent=Tn,Tn=ao+Tn}(eo,to,ro),Wn(to,ro),Sn=no}function Bn(eo,to){const ro=[];let no=eo.__first;for(;no!==null;){const oo=to.get(no);oo===void 0&&H$1(101),ro.push(no),no=oo.__next}return ro}function Rn(eo,to){const ro=yn.get(eo);let no=mn.get(eo);ro!==void 0&&no!==void 0||H$1(61);const oo=Cn||pn.has(eo)||_n.has(eo),io=Kt(dn,eo);if(ro===no&&!oo){if(qi(ro)){const so=io.__lexicalTextContent;so!==void 0&&(Tn+=so,kn+=so);const ao=io.__lexicalDirTextContent;ao!==void 0&&(Sn+=ao)}else{const so=ro.getTextContent();Br(ro)&&!ro.isDirectionless()&&(Sn+=so),kn+=so,Tn+=so}return io}if(ro!==no&&oo&&Lt(vn,hn,gn,no,"updated"),no.updateDOM(ro,io,fn)){const so=An(eo,null,null);return to===null&&H$1(62),to.replaceChild(so,io),wn(eo,null),so}if(qi(ro)&&qi(no)){const so=no.__indent;so!==ro.__indent&&In(io,so);const ao=no.__format;ao!==ro.__format&&On(io,ao),oo&&(zn(ro,no,io),Yi(no)||no.isInline()||Mn(ro,no,io)),Rt(no)&&(Tn+=xe,kn+=xe)}else{const so=no.getTextContent();if(Hi(no)){const ao=no.decorate(dn,fn);ao!==null&&Kn(eo,ao)}else Br(no)&&!no.isDirectionless()&&(Sn+=so);Tn+=so,kn+=so}if(!bn&&Yi(no)&&no.__cachedText!==kn){const so=no.getWritable();so.__cachedText=kn,no=so}return io}function Kn(eo,to){let ro=dn._pendingDecorators;const no=dn._decorators;if(ro===null){if(no[eo]===to)return;ro=ft$1(dn)}ro[eo]=to}function Jn(eo){let to=eo.nextSibling;return to!==null&&to===dn._blockCursorElement&&(to=to.nextSibling),to}function Un(eo,to,ro,no,oo,io){Tn="",kn="",Sn="",Cn=no===ce,Nn=null,dn=ro,fn=ro._config,hn=ro._nodes,gn=dn._listeners.mutation,_n=oo,pn=io,yn=eo._nodeMap,mn=to._nodeMap,bn=to._readOnly,xn=new Map(ro._keyToDOMMap);const so=new Map;return vn=so,Rn("root",null),dn=void 0,hn=void 0,_n=void 0,pn=void 0,yn=void 0,mn=void 0,fn=void 0,xn=void 0,vn=void 0,so}function Vn(eo){const to=xn.get(eo);return to===void 0&&H$1(75,eo),to}const $n=Object.freeze({}),Hn=30,jn=[["keydown",function(eo,to){if(qn=eo.timeStamp,Qn=eo.keyCode,to.isComposing())return;const{keyCode:ro,shiftKey:no,ctrlKey:oo,metaKey:io,altKey:so}=eo;Bt(to,_$5,eo)||(function(ao,lo,uo,co){return Nt$1(ao)&&!lo&&!co&&!uo}(ro,oo,so,io)?Bt(to,p$4,eo):function(ao,lo,uo,co,fo){return Nt$1(ao)&&!co&&!uo&&(lo||fo)}(ro,oo,no,so,io)?Bt(to,y$4,eo):function(ao,lo,uo,co){return bt(ao)&&!lo&&!co&&!uo}(ro,oo,so,io)?Bt(to,m$5,eo):function(ao,lo,uo,co,fo){return bt(ao)&&!co&&!uo&&(lo||fo)}(ro,oo,no,so,io)?Bt(to,x$5,eo):function(ao,lo,uo){return function(co){return co===38}(ao)&&!lo&&!uo}(ro,oo,io)?Bt(to,v$3,eo):function(ao,lo,uo){return function(co){return co===40}(ao)&&!lo&&!uo}(ro,oo,io)?Bt(to,T$3,eo):function(ao,lo){return Et$1(ao)&&lo}(ro,no)?(tr=!0,Bt(to,S$4,eo)):function(ao){return ao===32}(ro)?Bt(to,k$2,eo):function(ao,lo){return Q&&lo&&ao===79}(ro,oo)?(eo.preventDefault(),tr=!0,Bt(to,s$2,!0)):function(ao,lo){return Et$1(ao)&&!lo}(ro,no)?(tr=!1,Bt(to,S$4,eo)):function(ao,lo,uo,co){return Q?!lo&&!uo&&(Pt$1(ao)||ao===72&&co):!(co||lo||uo)&&Pt$1(ao)}(ro,so,io,oo)?Pt$1(ro)?Bt(to,C$4,eo):(eo.preventDefault(),Bt(to,i$2,!0)):function(ao){return ao===27}(ro)?Bt(to,b$2,eo):function(ao,lo,uo,co,fo){return Q?!(uo||co||fo)&&(Dt$1(ao)||ao===68&&lo):!(lo||co||fo)&&Dt$1(ao)}(ro,oo,no,so,io)?Dt$1(ro)?Bt(to,N$3,eo):(eo.preventDefault(),Bt(to,i$2,!1)):function(ao,lo,uo){return Pt$1(ao)&&(Q?lo:uo)}(ro,so,oo)?(eo.preventDefault(),Bt(to,a$4,!0)):function(ao,lo,uo){return Dt$1(ao)&&(Q?lo:uo)}(ro,so,oo)?(eo.preventDefault(),Bt(to,a$4,!1)):function(ao,lo){return Q&&lo&&Pt$1(ao)}(ro,io)?(eo.preventDefault(),Bt(to,f$4,!0)):function(ao,lo){return Q&&lo&&Dt$1(ao)}(ro,io)?(eo.preventDefault(),Bt(to,f$4,!1)):function(ao,lo,uo,co){return ao===66&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"bold")):function(ao,lo,uo,co){return ao===85&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"underline")):function(ao,lo,uo,co){return ao===73&&!lo&&wt$1(uo,co)}(ro,so,io,oo)?(eo.preventDefault(),Bt(to,d$4,"italic")):function(ao,lo,uo,co){return ao===9&&!lo&&!uo&&!co}(ro,so,oo,io)?Bt(to,w$3,eo):function(ao,lo,uo,co){return ao===90&&!lo&&wt$1(uo,co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,h$3,void 0)):function(ao,lo,uo,co){return Q?ao===90&&uo&&lo:ao===89&&co||ao===90&&co&&lo}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,g$6,void 0)):Zr(to._editorState._selection)?function(ao,lo,uo,co){return!lo&&ao===67&&(Q?uo:co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,M$3,eo)):function(ao,lo,uo,co){return!lo&&ao===88&&(Q?uo:co)}(ro,no,io,oo)?(eo.preventDefault(),Bt(to,W,eo)):It(ro,io,oo)&&(eo.preventDefault(),Bt(to,z$1,eo)):!X&&It(ro,io,oo)&&(eo.preventDefault(),Bt(to,z$1,eo)),function(ao,lo,uo,co){return ao||lo||uo||co}(oo,no,so,io)&&Bt(to,$$1,eo))}],["pointerdown",function(eo,to){const ro=eo.target,no=eo.pointerType;ro instanceof Node&&no!=="touch"&&Vi(to,()=>{Hi(at$1(ro))||(er=!0)})}],["compositionstart",function(eo,to){Vi(to,()=>{const ro=fi();if(Xr(ro)&&!to.isComposing()){const no=ro.anchor,oo=ro.anchor.getNode();ot(no.key),(eo.timeStamp{cr(to,eo.data)})}],["input",function(eo,to){eo.stopPropagation(),Vi(to,()=>{const ro=fi(),no=eo.data,oo=lr(eo);if(no!=null&&Xr(ro)&&ir(ro,oo,no,eo.timeStamp,!1)){nr&&(cr(to,no),nr=!1);const io=ro.anchor,so=io.getNode(),ao=nn(to._window);if(ao===null)return;const lo=io.offset;Y&&!ro.isCollapsed()&&Br(so)&&ao.anchorNode!==null&&so.getTextContent().slice(0,lo)+no+so.getTextContent().slice(lo+ro.focus.offset)===Tt(ao.anchorNode)||Bt(to,l$3,no);const uo=no.length;X&&uo>1&&eo.inputType==="insertCompositionText"&&!to.isComposing()&&(ro.anchor.offset-=uo),Z||G||re||!to.isComposing()||(qn=0,ot(null))}else St(!1,to,no!==null?no:void 0),nr&&(cr(to,no||void 0),nr=!1);Pi(),Re(Oi())}),Yn=null}],["click",function(eo,to){Vi(to,()=>{const ro=fi(),no=nn(to._window),oo=di();if(no){if(Xr(ro)){const io=ro.anchor,so=io.getNode();io.type==="element"&&io.offset===0&&ro.isCollapsed()&&!Yi(so)&&ht$1().getChildrenSize()===1&&so.getTopLevelElementOrThrow().isEmpty()&&oo!==null&&ro.is(oo)?(no.removeAllRanges(),ro.dirty=!0):eo.detail===3&&!ro.isCollapsed()&&so!==ro.focus.getNode()&&(qi(so)?so.select(0):so.getParentOrThrow().select(0))}else if(eo.pointerType==="touch"){const io=no.anchorNode;if(io!==null){const so=io.nodeType;(so===ie||so===se)&&_t(ai(oo,no,to,eo))}}}Bt(to,r$1,eo)})}],["cut",$n],["copy",$n],["dragstart",$n],["dragover",$n],["dragend",$n],["paste",$n],["focus",$n],["blur",$n],["drop",$n]];Y&&jn.push(["beforeinput",(eo,to)=>function(ro,no){const oo=ro.inputType,io=lr(ro);oo==="deleteCompositionText"||X&&zt(no)||oo!=="insertCompositionText"&&Vi(no,()=>{const so=fi();if(oo==="deleteContentBackward"){if(so===null){const ho=di();if(!Xr(ho))return;_t(ho.clone())}if(Xr(so)){const ho=so.anchor.key===so.focus.key;if(ao=ro.timeStamp,Qn===229&&ao{Vi(no,()=>{ot(null)})},Hn),Xr(so)){const mo=so.anchor.getNode();mo.markDirty(),so.format=mo.getFormat(),Br(mo)||H$1(142),so.style=mo.getStyle()}}else{ot(null),ro.preventDefault();const mo=so.anchor.getNode().getTextContent(),vo=so.anchor.offset===0&&so.focus.offset===mo.length;ne&&ho&&!vo||Bt(no,i$2,!0)}return}}var ao;if(!Xr(so))return;const lo=ro.data;Yn!==null&&St(!1,no,Yn),so.dirty&&Yn===null||!so.isCollapsed()||Yi(so.anchor.getNode())||io===null||so.applyDOMRange(io),Yn=null;const uo=so.anchor,co=so.focus,fo=uo.getNode(),po=co.getNode();if(oo!=="insertText"&&oo!=="insertTranspose")switch(ro.preventDefault(),oo){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Bt(no,l$3,ro);break;case"insertFromComposition":ot(null),Bt(no,l$3,ro);break;case"insertLineBreak":ot(null),Bt(no,s$2,!1);break;case"insertParagraph":ot(null),tr&&!G?(tr=!1,Bt(no,s$2,!1)):Bt(no,o$5,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Bt(no,c$5,ro);break;case"deleteByComposition":(function(ho,mo){return ho!==mo||qi(ho)||qi(mo)||!ho.isToken()||!mo.isToken()})(fo,po)&&Bt(no,u$5,ro);break;case"deleteByDrag":case"deleteByCut":Bt(no,u$5,ro);break;case"deleteContent":Bt(no,i$2,!1);break;case"deleteWordBackward":Bt(no,a$4,!0);break;case"deleteWordForward":Bt(no,a$4,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Bt(no,f$4,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Bt(no,f$4,!1);break;case"formatStrikeThrough":Bt(no,d$4,"strikethrough");break;case"formatBold":Bt(no,d$4,"bold");break;case"formatItalic":Bt(no,d$4,"italic");break;case"formatUnderline":Bt(no,d$4,"underline");break;case"historyUndo":Bt(no,h$3,void 0);break;case"historyRedo":Bt(no,g$6,void 0)}else{if(lo===` +`)ro.preventDefault(),Bt(no,s$2,!1);else if(lo===xe)ro.preventDefault(),Bt(no,o$5,void 0);else if(lo==null&&ro.dataTransfer){const ho=ro.dataTransfer.getData("text/plain");ro.preventDefault(),so.insertRawText(ho)}else lo!=null&&ir(so,io,lo,ro.timeStamp,!0)?(ro.preventDefault(),Bt(no,l$3,lo)):Yn=lo;Xn=ro.timeStamp}})}(eo,to)]);let qn=0,Qn=0,Xn=0,Yn=null;const Zn=new WeakMap;let Gn=!1,er=!1,tr=!1,nr=!1,rr=[0,"",0,"root",0];function ir(eo,to,ro,no,oo){const io=eo.anchor,so=eo.focus,ao=io.getNode(),lo=Oi(),uo=nn(lo._window),co=uo!==null?uo.anchorNode:null,fo=io.key,po=lo.getElementByKey(fo),ho=ro.length;return fo!==so.key||!Br(ao)||(!oo&&(!Y||Xn1||(oo||!Y)&&po!==null&&!ao.isComposing()&&co!==et(po)||uo!==null&&to!==null&&(!to.collapsed||to.startContainer!==uo.anchorNode||to.startOffset!==uo.anchorOffset)||ao.getFormat()!==eo.format||ao.getStyle()!==eo.style||Ct$1(eo,ao)}function sr(eo,to){return eo!==null&&eo.nodeValue!==null&&eo.nodeType===se&&to!==0&&to!==eo.nodeValue.length}function or(eo,to,ro){const{anchorNode:no,anchorOffset:oo,focusNode:io,focusOffset:so}=eo;Gn&&(Gn=!1,sr(no,oo)&&sr(io,so))||Vi(to,()=>{if(!ro)return void _t(null);if(!Xe(to,no,io))return;const ao=fi();if(Xr(ao)){const lo=ao.anchor,uo=lo.getNode();if(ao.isCollapsed()){eo.type==="Range"&&eo.anchorNode===eo.focusNode&&(ao.dirty=!0);const co=Ht(to).event,fo=co?co.timeStamp:performance.now(),[po,ho,mo,vo,bo]=rr,xo=ht$1(),_o=to.isComposing()===!1&&xo.getTextContent()==="";fo{const uo=di(),co=ro.anchorNode;if(co===null)return;const fo=co.nodeType;fo!==ie&&fo!==se||_t(ai(uo,ro,no,eo))}));const oo=xt$1(no),io=oo[oo.length-1],so=io._key,ao=ar.get(so),lo=ao||io;lo!==no&&or(ro,lo,!1),or(ro,no,!0),no!==io?ar.set(so,no):ao&&ar.delete(so)}function dr(eo){eo._lexicalHandled=!0}function hr(eo){return eo._lexicalHandled===!0}function gr(eo){const to=eo.ownerDocument,ro=Zn.get(to);if(ro===void 0)throw Error("Root element not registered");Zn.set(to,ro-1),ro===1&&to.removeEventListener("selectionchange",fr);const no=eo.__lexicalEditor;no!=null&&(function(io){if(io._parentEditor!==null){const so=xt$1(io),ao=so[so.length-1]._key;ar.get(ao)===io&&ar.delete(ao)}else ar.delete(io._key)}(no),eo.__lexicalEditor=null);const oo=ur(eo);for(let io=0;iooo.__key===this.__key);return(Br(this)||!Xr(ro)||ro.anchor.type!=="element"||ro.focus.type!=="element"||ro.anchor.key!==ro.focus.key||ro.anchor.offset!==ro.focus.offset)&&no}getKey(){return this.__key}getIndexWithinParent(){const to=this.getParent();if(to===null)return-1;let ro=to.getFirstChild(),no=0;for(;ro!==null;){if(this.is(ro))return no;no++,ro=ro.getNextSibling()}return-1}getParent(){const to=this.getLatest().__parent;return to===null?null:ct$1(to)}getParentOrThrow(){const to=this.getParent();return to===null&&H$1(66,this.__key),to}getTopLevelElement(){let to=this;for(;to!==null;){const ro=to.getParent();if(Qt(ro))return qi(to)||H$1(138),to;to=ro}return null}getTopLevelElementOrThrow(){const to=this.getTopLevelElement();return to===null&&H$1(67,this.__key),to}getParents(){const to=[];let ro=this.getParent();for(;ro!==null;)to.push(ro),ro=ro.getParent();return to}getParentKeys(){const to=[];let ro=this.getParent();for(;ro!==null;)to.push(ro.__key),ro=ro.getParent();return to}getPreviousSibling(){const to=this.getLatest().__prev;return to===null?null:ct$1(to)}getPreviousSiblings(){const to=[],ro=this.getParent();if(ro===null)return to;let no=ro.getFirstChild();for(;no!==null&&!no.is(this);)to.push(no),no=no.getNextSibling();return to}getNextSibling(){const to=this.getLatest().__next;return to===null?null:ct$1(to)}getNextSiblings(){const to=[];let ro=this.getNextSibling();for(;ro!==null;)to.push(ro),ro=ro.getNextSibling();return to}getCommonAncestor(to){const ro=this.getParents(),no=to.getParents();qi(this)&&ro.unshift(this),qi(to)&&no.unshift(to);const oo=ro.length,io=no.length;if(oo===0||io===0||ro[oo-1]!==no[io-1])return null;const so=new Set(no);for(let ao=0;ao{ao.append(vo)})),Xr(no)){_t(no);const vo=no.anchor,bo=no.focus;vo.key===io&&Hr(vo,ao),bo.key===io&&Hr(bo,ao)}return lt$1()===io&&ot(so),ao}insertAfter(to,ro=!0){Pi(),Zt(this,to);const no=this.getWritable(),oo=to.getWritable(),io=oo.getParent(),so=fi();let ao=!1,lo=!1;if(io!==null){const ho=to.getIndexWithinParent();if(it(oo),Xr(so)){const mo=io.__key,vo=so.anchor,bo=so.focus;ao=vo.type==="element"&&vo.key===mo&&vo.offset===ho+1,lo=bo.type==="element"&&bo.key===mo&&bo.offset===ho+1}}const uo=this.getNextSibling(),co=this.getParentOrThrow().getWritable(),fo=oo.__key,po=no.__next;if(uo===null?co.__last=fo:uo.getWritable().__prev=fo,co.__size++,no.__next=fo,oo.__next=po,oo.__prev=no.__key,oo.__parent=no.__parent,ro&&Xr(so)){const ho=this.getIndexWithinParent();hi(so,co,ho+1);const mo=co.__key;ao&&so.anchor.set(mo,ho+2,"element"),lo&&so.focus.set(mo,ho+2,"element")}return to}insertBefore(to,ro=!0){Pi(),Zt(this,to);const no=this.getWritable(),oo=to.getWritable(),io=oo.__key;it(oo);const so=this.getPreviousSibling(),ao=this.getParentOrThrow().getWritable(),lo=no.__prev,uo=this.getIndexWithinParent();so===null?ao.__first=io:so.getWritable().__next=io,ao.__size++,no.__prev=io,oo.__prev=lo,oo.__next=no.__key,oo.__parent=no.__parent;const co=fi();return ro&&Xr(co)&&hi(co,this.getParentOrThrow(),uo),to}isParentRequired(){return!1}createParentElementNode(){return rs()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(to,ro){Pi();const no=this.getPreviousSibling(),oo=this.getParentOrThrow();if(no===null)return oo.select(0,0);if(qi(no))return no.select();if(!Br(no)){const io=no.getIndexWithinParent()+1;return oo.select(io,io)}return no.select(to,ro)}selectNext(to,ro){Pi();const no=this.getNextSibling(),oo=this.getParentOrThrow();if(no===null)return oo.select();if(qi(no))return no.select(0,0);if(!Br(no)){const io=no.getIndexWithinParent();return oo.select(io,io)}return no.select(to,ro)}markDirty(){this.getWritable()}}class yr extends pr{static getType(){return"linebreak"}static clone(to){return new yr(to.__key)}constructor(to){super(to)}getTextContent(){return` +`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:to=>function(ro){const no=ro.parentElement;if(no!==null){const oo=no.firstChild;if(oo===ro||oo.nextSibling===ro&&Tr(oo)){const io=no.lastChild;if(io===ro||io.previousSibling===ro&&Tr(io))return!0}}return!1}(to)?null:{conversion:mr,priority:0}}}static importJSON(to){return xr()}exportJSON(){return{type:"linebreak",version:1}}}function mr(eo){return{node:xr()}}function xr(){return Yt(new yr)}function vr(eo){return eo instanceof yr}function Tr(eo){return eo.nodeType===se&&/^( |\t|\r?\n)+$/.test(eo.textContent||"")}function Sr(eo,to){return 16&to?"code":128&to?"mark":32&to?"sub":64&to?"sup":null}function kr(eo,to){return 1&to?"strong":2&to?"em":"span"}function Cr(eo,to,ro,no,oo){const io=no.classList;let so=At$1(oo,"base");so!==void 0&&io.add(...so),so=At$1(oo,"underlineStrikethrough");let ao=!1;const lo=to&ae&&to&ue;so!==void 0&&(ro&ae&&ro&ue?(ao=!0,lo||io.add(...so)):lo&&io.remove(...so));for(const uo in be){const co=be[uo];if(so=At$1(oo,uo),so!==void 0)if(ro&co){if(ao&&(uo==="underline"||uo==="strikethrough")){to&co&&io.remove(...so);continue}(!(to&co)||lo&&uo==="underline"||uo==="strikethrough")&&io.add(...so)}else to&co&&io.remove(...so)}}function br(eo,to,ro){const no=to.firstChild,oo=ro.isComposing(),io=eo+(oo?me:"");if(no==null)to.textContent=io;else{const so=no.nodeValue;if(so!==io)if(oo||X){const[ao,lo,uo]=function(co,fo){const po=co.length,ho=fo.length;let mo=0,vo=0;for(;mo({conversion:Ar,priority:0}),b:()=>({conversion:Dr,priority:0}),code:()=>({conversion:Wr,priority:0}),em:()=>({conversion:Wr,priority:0}),i:()=>({conversion:Wr,priority:0}),s:()=>({conversion:Wr,priority:0}),span:()=>({conversion:Pr,priority:0}),strong:()=>({conversion:Wr,priority:0}),sub:()=>({conversion:Wr,priority:0}),sup:()=>({conversion:Wr,priority:0}),u:()=>({conversion:Wr,priority:0})}}static importJSON(to){const ro=zr(to.text);return ro.setFormat(to.format),ro.setDetail(to.detail),ro.setMode(to.mode),ro.setStyle(to.style),ro}exportDOM(to){let{element:ro}=super.exportDOM(to);return ro!==null&&on(ro)||H$1(132),ro.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(ro=wr(ro,"b")),this.hasFormat("italic")&&(ro=wr(ro,"i")),this.hasFormat("strikethrough")&&(ro=wr(ro,"s")),this.hasFormat("underline")&&(ro=wr(ro,"u")),{element:ro}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(to,ro){}setFormat(to){const ro=this.getWritable();return ro.__format=typeof to=="string"?be[to]:to,ro}setDetail(to){const ro=this.getWritable();return ro.__detail=typeof to=="string"?Ne[to]:to,ro}setStyle(to){const ro=this.getWritable();return ro.__style=to,ro}toggleFormat(to){const ro=tt(this.getFormat(),to,null);return this.setFormat(ro)}toggleDirectionless(){const to=this.getWritable();return to.__detail^=1,to}toggleUnmergeable(){const to=this.getWritable();return to.__detail^=2,to}setMode(to){const ro=Pe[to];if(this.__mode===ro)return this;const no=this.getWritable();return no.__mode=ro,no}setTextContent(to){if(this.__text===to)return this;const ro=this.getWritable();return ro.__text=to,ro}select(to,ro){Pi();let no=to,oo=ro;const io=fi(),so=this.getTextContent(),ao=this.__key;if(typeof so=="string"){const lo=so.length;no===void 0&&(no=lo),oo===void 0&&(oo=lo)}else no=0,oo=0;if(!Xr(io))return li(ao,no,ao,oo,"text","text");{const lo=lt$1();lo!==io.anchor.key&&lo!==io.focus.key||ot(ao),io.setTextNodeRange(this,no,this,oo)}return io}selectStart(){return this.select(0,0)}selectEnd(){const to=this.getTextContentSize();return this.select(to,to)}spliceText(to,ro,no,oo){const io=this.getWritable(),so=io.__text,ao=no.length;let lo=to;lo<0&&(lo=ao+lo,lo<0&&(lo=0));const uo=fi();if(oo&&Xr(uo)){const fo=to+ao;uo.setTextNodeRange(io,fo,io,fo)}const co=so.slice(0,lo)+no+so.slice(lo+ro);return io.__text=co,io}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...to){Pi();const ro=this.getLatest(),no=ro.getTextContent(),oo=ro.__key,io=lt$1(),so=new Set(to),ao=[],lo=no.length;let uo="";for(let Co=0;CoEo&&Mo.offset<=Bo&&(Mo.key=$o,Mo.offset-=Eo,_o.dirty=!0),Ho.key===oo&&Ho.type==="text"&&Ho.offset>Eo&&Ho.offset<=Bo&&(Ho.key=$o,Ho.offset-=Eo,_o.dirty=!0)}io===oo&&ot($o),Eo=Bo,So.push(Io)}(function(Co){const Ro=Co.getPreviousSibling(),Ao=Co.getNextSibling();Ro!==null&&st$1(Ro),Ao!==null&&st$1(Ao)})(this);const ko=po.getWritable(),wo=this.getIndexWithinParent();return xo?(ko.splice(wo,0,So),this.remove()):ko.splice(wo,1,So),Xr(_o)&&hi(_o,po,wo,co-1),So}mergeWithSibling(to){const ro=to===this.getPreviousSibling();ro||to===this.getNextSibling()||H$1(50);const no=this.__key,oo=to.__key,io=this.__text,so=io.length;lt$1()===oo&&ot(no);const ao=fi();if(Xr(ao)){const fo=ao.anchor,po=ao.focus;fo!==null&&fo.key===oo&&(pi(fo,ro,no,to,so),ao.dirty=!0),po!==null&&po.key===oo&&(pi(po,ro,no,to,so),ao.dirty=!0)}const lo=to.__text,uo=ro?lo+io:io+lo;this.setTextContent(uo);const co=this.getWritable();return to.remove(),co}isTextEntity(){return!1}}function Pr(eo){const to=eo,ro=to.style.fontWeight==="700",no=to.style.textDecoration==="line-through",oo=to.style.fontStyle==="italic",io=to.style.textDecoration==="underline",so=to.style.verticalAlign;return{forChild:ao=>(Br(ao)&&(ro&&ao.toggleFormat("bold"),no&&ao.toggleFormat("strikethrough"),oo&&ao.toggleFormat("italic"),io&&ao.toggleFormat("underline"),so==="sub"&&ao.toggleFormat("subscript"),so==="super"&&ao.toggleFormat("superscript")),ao),node:null}}function Dr(eo){const to=eo.style.fontWeight==="normal";return{forChild:ro=>(Br(ro)&&!to&&ro.toggleFormat("bold"),ro),node:null}}const Ir=new WeakMap;function Or(eo){return eo.nodeName==="PRE"||eo.nodeType===ie&&eo.style!==void 0&&eo.style.whiteSpace!==void 0&&eo.style.whiteSpace.startsWith("pre")}function Ar(eo){const to=eo;eo.parentElement===null&&H$1(129);let ro=to.textContent||"";if(function(no){let oo,io=no.parentNode;const so=[no];for(;io!==null&&(oo=Ir.get(io))===void 0&&!Or(io);)so.push(io),io=io.parentNode;const ao=oo===void 0?io:oo;for(let lo=0;lo0){/[ \t\n]$/.test(io)&&(ro=ro.slice(1)),oo=!1;break}}oo&&(ro=ro.slice(1))}if(ro[ro.length-1]===" "){let no=to,oo=!0;for(;no!==null&&(no=Fr(no,!0))!==null;)if((no.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){oo=!1;break}oo&&(ro=ro.slice(0,ro.length-1))}return ro===""?{node:null}:{node:zr(ro)}}const Lr=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function Fr(eo,to){let ro=eo;for(;;){let no;for(;(no=to?ro.nextSibling:ro.previousSibling)===null;){const io=ro.parentElement;if(io===null)return null;ro=io}if(ro=no,ro.nodeType===ie){const io=ro.style.display;if(io===""&&ro.nodeName.match(Lr)===null||io!==""&&!io.startsWith("inline"))return null}let oo=ro;for(;(oo=to?ro.firstChild:ro.lastChild)!==null;)ro=oo;if(ro.nodeType===se)return ro;if(ro.nodeName==="BR")return null}}const Mr={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Wr(eo){const to=Mr[eo.nodeName.toLowerCase()];return to===void 0?{node:null}:{forChild:ro=>(Br(ro)&&!ro.hasFormat(to)&&ro.toggleFormat(to),ro),node:null}}function zr(eo=""){return Yt(new Er(eo))}function Br(eo){return eo instanceof Er}class Rr extends Er{static getType(){return"tab"}static clone(to){const ro=new Rr(to.__key);return ro.__text=to.__text,ro.__format=to.__format,ro.__style=to.__style,ro}constructor(to){super(" ",to),this.__detail=2}static importDOM(){return null}static importJSON(to){const ro=Kr();return ro.setFormat(to.format),ro.setStyle(to.style),ro}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(to){H$1(126)}setDetail(to){H$1(127)}setMode(to){H$1(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Kr(){return Yt(new Rr)}function Jr(eo){return eo instanceof Rr}class Ur{constructor(to,ro,no){this._selection=null,this.key=to,this.offset=ro,this.type=no}is(to){return this.key===to.key&&this.offset===to.offset&&this.type===to.type}isBefore(to){let ro=this.getNode(),no=to.getNode();const oo=this.offset,io=to.offset;if(qi(ro)){const so=ro.getDescendantByIndex(oo);ro=so??ro}if(qi(no)){const so=no.getDescendantByIndex(io);no=so??no}return ro===no?ooio&&(no=io)}else if(!qi(to)){const io=to.getNextSibling();if(Br(io))ro=io.__key,no=0,oo="text";else{const so=to.getParent();so&&(ro=so.__key,no=to.getIndexWithinParent()+1)}}eo.set(ro,no,oo)}function Hr(eo,to){if(qi(to)){const ro=to.getLastDescendant();qi(ro)||Br(ro)?$r(eo,ro):$r(eo,to)}else $r(eo,to)}function jr(eo,to,ro,no){const oo=eo.getNode(),io=oo.getChildAtIndex(eo.offset),so=zr(),ao=Yi(oo)?rs().append(so):so;so.setFormat(ro),so.setStyle(no),io===null?oo.append(ao):io.insertBefore(ao),eo.is(to)&&to.set(so.__key,0,"text"),eo.set(so.__key,0,"text")}function qr(eo,to,ro,no){eo.key=to,eo.offset=ro,eo.type=no}class Qr{constructor(to){this._cachedNodes=null,this._nodes=to,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(to){this._cachedNodes=to}is(to){if(!Zr(to))return!1;const ro=this._nodes,no=to._nodes;return ro.size===no.size&&Array.from(ro).every(oo=>no.has(oo))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(to){this.dirty=!0,this._nodes.add(to),this._cachedNodes=null}delete(to){this.dirty=!0,this._nodes.delete(to),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(to){return this._nodes.has(to)}clone(){return new Qr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(to){}insertText(){}insertNodes(to){const ro=this.getNodes(),no=ro.length,oo=ro[no-1];let io;if(Br(oo))io=oo.select();else{const so=oo.getIndexWithinParent()+1;io=oo.getParentOrThrow().select(so,so)}io.insertNodes(to);for(let so=0;so0?[]:[ao]:ao.getNodesBetween(lo),Ei()||(this._cachedNodes=fo),fo}setTextNodeRange(to,ro,no,oo){qr(this.anchor,to.__key,ro,"text"),qr(this.focus,no.__key,oo,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const to=this.getNodes();if(to.length===0)return"";const ro=to[0],no=to[to.length-1],oo=this.anchor,io=this.focus,so=oo.isBefore(io),[ao,lo]=ei(this);let uo="",co=!0;for(let fo=0;fo=0;Ro--){const Ao=Eo[Ro];if(Ao.is(po)||qi(Ao)&&Ao.isParentOf(po))break;Ao.isAttached()&&(!ko.has(Ao)||Ao.is(So)?wo||Co.insertAfter(Ao,!1):Ao.remove())}if(!wo){let Ro=_o,Ao=null;for(;Ro!==null;){const Io=Ro.getChildren(),$o=Io.length;($o===0||Io[$o-1].is(Ao))&&(bo.delete(Ro.__key),Ao=Ro),Ro=Ro.getParent()}}if(po.isToken())if(co===ho)po.select();else{const Ro=zr(to);Ro.select(),po.replace(Ro)}else po=po.spliceText(co,ho-co,to,!0),po.getTextContent()===""?po.remove():po.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=to.length);for(let Ro=1;Ro0&&(bo!==vo.getTextContentSize()&&([vo]=vo.splitText(bo)),vo.setFormat(xo));for(let _o=co+1;_o(qi(mo)||Hi(mo))&&!mo.isInline())){qi(ro)||H$1(135);const mo=vi(this);return ro.splice(mo,0,to),void no.selectEnd()}const oo=function(mo){const vo=rs();let bo=null;for(let xo=0;xo"__value"in mo&&"__checked"in mo,lo=!qi(ro)||!ro.isEmpty()?this.insertParagraph():null,uo=so[so.length-1];let co=so[0];var fo;qi(fo=co)&&ln(fo)&&!fo.isEmpty()&&qi(ro)&&(!ro.isEmpty()||ao(ro))&&(qi(ro)||H$1(135),ro.append(...co.getChildren()),co=so[1]),co&&function(mo,vo,bo){const xo=bo||vo.getParentOrThrow().getLastChild();let _o=vo;const So=[vo];for(;_o!==xo;)_o.getNextSibling()||H$1(140),_o=_o.getNextSibling(),So.push(_o);let Eo=mo;for(const ko of So)Eo=Eo.insertAfter(ko)}(ro,co);const po=cn(io,ln);lo&&qi(po)&&(ao(lo)||ln(uo))&&(po.append(...lo.getChildren()),lo.remove()),qi(ro)&&ro.isEmpty()&&ro.remove(),io.selectEnd();const ho=qi(ro)?ro.getLastChild():null;vr(ho)&&po!==ro&&ho.remove()}insertParagraph(){if(this.anchor.key==="root"){const so=rs();return ht$1().splice(this.anchor.offset,0,[so]),so.select(),so}const to=vi(this),ro=cn(this.anchor.getNode(),ln);qi(ro)||H$1(136);const no=ro.getChildAtIndex(to),oo=no?[no,...no.getNextSiblings()]:[],io=ro.insertNewAfter(this,!1);return io?(io.append(...oo),io.selectStart(),io):null}insertLineBreak(to){const ro=xr();if(this.insertNodes([ro]),to){const no=ro.getParentOrThrow(),oo=ro.getIndexWithinParent();no.select(oo,oo)}}extract(){const to=this.getNodes(),ro=to.length,no=ro-1,oo=this.anchor,io=this.focus;let so=to[0],ao=to[no];const[lo,uo]=ei(this);if(ro===0)return[];if(ro===1){if(Br(so)&&!this.isCollapsed()){const fo=lo>uo?uo:lo,po=lo>uo?lo:uo,ho=so.splitText(fo,po),mo=fo===0?ho[0]:ho[1];return mo!=null?[mo]:[]}return[so]}const co=oo.isBefore(io);if(Br(so)){const fo=co?lo:uo;fo===so.getTextContentSize()?to.shift():fo!==0&&([,so]=so.splitText(fo),to[0]=so)}if(Br(ao)){const fo=ao.getTextContent().length,po=co?uo:lo;po===0?to.pop():po!==fo&&([ao]=ao.splitText(po),to[no]=ao)}return to}modify(to,ro,no){const oo=this.focus,io=this.anchor,so=to==="move",ao=Wt(oo,ro);if(Hi(ao)&&!ao.isIsolated()){if(so&&ao.isKeyboardSelectable()){const ho=ui();return ho.add(ao.__key),void _t(ho)}const po=ro?ao.getPreviousSibling():ao.getNextSibling();if(Br(po)){const ho=po.__key,mo=ro?po.getTextContent().length:0;return oo.set(ho,mo,"text"),void(so&&io.set(ho,mo,"text"))}{const ho=ao.getParentOrThrow();let mo,vo;return qi(po)?(vo=po.__key,mo=ro?po.getChildrenSize():0):(mo=ao.getIndexWithinParent(),vo=ho.__key,ro||mo++),oo.set(vo,mo,"element"),void(so&&io.set(vo,mo,"element"))}}const lo=Oi(),uo=nn(lo._window);if(!uo)return;const co=lo._blockCursorElement,fo=lo._rootElement;if(fo===null||co===null||!qi(ao)||ao.isInline()||ao.canBeEmpty()||en(co,lo,fo),function(po,ho,mo,vo){po.modify(ho,mo,vo)}(uo,to,ro?"backward":"forward",no),uo.rangeCount>0){const po=uo.getRangeAt(0),ho=this.anchor.getNode(),mo=Yi(ho)?ho:qt(ho);if(this.applyDOMRange(po),this.dirty=!0,!so){const vo=this.getNodes(),bo=[];let xo=!1;for(let _o=0;_o0)if(ro){const _o=bo[0];qi(_o)?_o.selectStart():_o.getParentOrThrow().selectStart()}else{const _o=bo[bo.length-1];qi(_o)?_o.selectEnd():_o.getParentOrThrow().selectEnd()}uo.anchorNode===po.startContainer&&uo.anchorOffset===po.startOffset||function(_o){const So=_o.focus,Eo=_o.anchor,ko=Eo.key,wo=Eo.offset,Co=Eo.type;qr(Eo,So.key,So.offset,So.type),qr(So,ko,wo,Co),_o._cachedNodes=null}(this)}}}forwardDeletion(to,ro,no){if(!no&&(to.type==="element"&&qi(ro)&&to.offset===ro.getChildrenSize()||to.type==="text"&&to.offset===ro.getTextContentSize())){const oo=ro.getParent(),io=ro.getNextSibling()||(oo===null?null:oo.getNextSibling());if(qi(io)&&io.isShadowRoot())return!0}return!1}deleteCharacter(to){const ro=this.isCollapsed();if(this.isCollapsed()){const no=this.anchor;let oo=no.getNode();if(this.forwardDeletion(no,oo,to))return;const io=this.focus,so=Wt(io,to);if(Hi(so)&&!so.isIsolated()){if(so.isKeyboardSelectable()&&qi(oo)&&oo.getChildrenSize()===0){oo.remove();const ao=ui();ao.add(so.__key),_t(ao)}else so.remove(),Oi().dispatchCommand(t$3,void 0);return}if(!to&&qi(so)&&qi(oo)&&oo.isEmpty())return oo.remove(),void so.selectStart();if(this.modify("extend",to,"character"),this.isCollapsed()){if(to&&no.offset===0&&(no.type==="element"?no.getNode():no.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const ao=io.type==="text"?io.getNode():null;if(oo=no.type==="text"?no.getNode():null,ao!==null&&ao.isSegmented()){const lo=io.offset,uo=ao.getTextContentSize();if(ao.is(oo)||to&&lo!==uo||!to&&lo!==0)return void ti(ao,to,lo)}else if(oo!==null&&oo.isSegmented()){const lo=no.offset,uo=oo.getTextContentSize();if(oo.is(ao)||to&&lo!==0||!to&&lo!==uo)return void ti(oo,to,lo)}(function(lo,uo){const co=lo.anchor,fo=lo.focus,po=co.getNode(),ho=fo.getNode();if(po===ho&&co.type==="text"&&fo.type==="text"){const mo=co.offset,vo=fo.offset,bo=moro||co){oo.splice(uo,1),co&&(ao=void 0);break}}const lo=oo.join("").trim();lo===""?no.remove():(no.setTextContent(lo),no.select(ao,ao))}function ni(eo,to,ro,no){let oo,io=to;if(eo.nodeType===ie){let so=!1;const ao=eo.childNodes,lo=ao.length;io===lo&&(so=!0,io=lo-1);let uo=ao[io],co=!1;if(uo===no._blockCursorElement?(uo=ao[io+1],co=!0):no._blockCursorElement!==null&&io--,oo=pt$1(uo),Br(oo))io=yt$1(oo,so);else{let fo=pt$1(eo);if(fo===null)return null;if(qi(fo)){let po=fo.getChildAtIndex(io);if(qi(po)&&function(ho,mo,vo){const bo=ho.getParent();return vo===null||bo===null||!bo.canBeEmpty()||bo!==vo.getNode()}(po,0,ro)){const ho=so?po.getLastDescendant():po.getFirstDescendant();ho===null?(fo=po,io=0):(po=ho,fo=qi(po)?po:po.getParentOrThrow())}Br(po)?(oo=po,fo=null,io=yt$1(po,so)):po!==fo&&so&&!co&&io++}else{const po=fo.getIndexWithinParent();io=to===0&&Hi(fo)&&pt$1(eo)===fo?po:po+1,fo=fo.getParentOrThrow()}if(qi(fo))return Vr(fo.__key,io,"element")}}else oo=pt$1(eo);return Br(oo)?Vr(oo.__key,io,"text"):null}function ri(eo,to,ro){const no=eo.offset,oo=eo.getNode();if(no===0){const io=oo.getPreviousSibling(),so=oo.getParent();if(to){if((ro||!to)&&io===null&&qi(so)&&so.isInline()){const ao=so.getPreviousSibling();Br(ao)&&(eo.key=ao.__key,eo.offset=ao.getTextContent().length)}}else qi(io)&&!ro&&io.isInline()?(eo.key=io.__key,eo.offset=io.getChildrenSize(),eo.type="element"):Br(io)&&(eo.key=io.__key,eo.offset=io.getTextContent().length)}else if(no===oo.getTextContent().length){const io=oo.getNextSibling(),so=oo.getParent();if(to&&qi(io)&&io.isInline())eo.key=io.__key,eo.offset=0,eo.type="element";else if((ro||to)&&io===null&&qi(so)&&so.isInline()&&!so.canInsertTextAfter()){const ao=so.getNextSibling();Br(ao)&&(eo.key=ao.__key,eo.offset=0)}}}function ii(eo,to,ro){if(eo.type==="text"&&to.type==="text"){const no=eo.isBefore(to),oo=eo.is(to);ri(eo,no,oo),ri(to,!no,oo),oo&&(to.key=eo.key,to.offset=eo.offset,to.type=eo.type);const io=Oi();if(io.isComposing()&&io._compositionKey!==eo.key&&Xr(ro)){const so=ro.anchor,ao=ro.focus;qr(eo,so.key,so.offset,so.type),qr(to,ao.key,ao.offset,ao.type)}}}function si(eo,to,ro,no,oo,io){if(eo===null||ro===null||!Xe(oo,eo,ro))return null;const so=ni(eo,to,Xr(io)?io.anchor:null,oo);if(so===null)return null;const ao=ni(ro,no,Xr(io)?io.focus:null,oo);if(ao===null)return null;if(so.type==="element"&&ao.type==="element"){const lo=pt$1(eo),uo=pt$1(ro);if(Hi(lo)&&Hi(uo))return null}return ii(so,ao,io),[so,ao]}function oi(eo){return qi(eo)&&!eo.isInline()}function li(eo,to,ro,no,oo,io){const so=Ii(),ao=new Yr(Vr(eo,to,oo),Vr(ro,no,io),0,"");return ao.dirty=!0,so._selection=ao,ao}function ci(){const eo=Vr("root",0,"element"),to=Vr("root",0,"element");return new Yr(eo,to,0,"")}function ui(){return new Qr(new Set)}function ai(eo,to,ro,no){const oo=ro._window;if(oo===null)return null;const io=no||oo.event,so=io?io.type:void 0,ao=so==="selectionchange",lo=!Ae&&(ao||so==="beforeinput"||so==="compositionstart"||so==="compositionend"||so==="click"&&io&&io.detail===3||so==="drop"||so===void 0);let uo,co,fo,po;if(Xr(eo)&&!lo)return eo.clone();if(to===null)return null;if(uo=to.anchorNode,co=to.focusNode,fo=to.anchorOffset,po=to.focusOffset,ao&&Xr(eo)&&!Xe(ro,uo,co))return eo.clone();const ho=si(uo,fo,co,po,ro,eo);if(ho===null)return null;const[mo,vo]=ho;return new Yr(mo,vo,Xr(eo)?eo.format:0,Xr(eo)?eo.style:"")}function fi(){return Ii()._selection}function di(){return Oi()._editorState._selection}function hi(eo,to,ro,no=1){const oo=eo.anchor,io=eo.focus,so=oo.getNode(),ao=io.getNode();if(!to.is(so)&&!to.is(ao))return;const lo=to.__key;if(eo.isCollapsed()){const uo=oo.offset;if(ro<=uo&&no>0||ro0||ro0||ro=ao,uo=lo?io.getChildAtIndex(ao-1):io.getChildAtIndex(ro);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),to.set(uo.__key,co,"text"),no.set(uo.__key,co,"text")}}else{if(qi(io)){const ao=io.getChildrenSize(),lo=ro>=ao,uo=lo?io.getChildAtIndex(ao-1):io.getChildAtIndex(ro);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),to.set(uo.__key,co,"text")}}if(qi(so)){const ao=so.getChildrenSize(),lo=oo>=ao,uo=lo?so.getChildAtIndex(ao-1):so.getChildAtIndex(oo);if(Br(uo)){let co=0;lo&&(co=uo.getTextContentSize()),no.set(uo.__key,co,"text")}}}}function _i(eo,to,ro,no,oo){let io=null,so=0,ao=null;no!==null?(io=no.__key,Br(no)?(so=no.getTextContentSize(),ao="text"):qi(no)&&(so=no.getChildrenSize(),ao="element")):oo!==null&&(io=oo.__key,Br(oo)?ao="text":qi(oo)&&(ao="element")),io!==null&&ao!==null?eo.set(io,so,ao):(so=to.getIndexWithinParent(),so===-1&&(so=ro.getChildrenSize()),eo.set(ro.__key,so,"element"))}function pi(eo,to,ro,no,oo){eo.type==="text"?(eo.key=ro,to||(eo.offset+=oo)):eo.offset>no.getIndexWithinParent()&&(eo.offset-=1)}function yi(eo,to,ro,no,oo,io,so){const ao=no.anchorNode,lo=no.focusNode,uo=no.anchorOffset,co=no.focusOffset,fo=document.activeElement;if(oo.has("collaboration")&&fo!==io||fo!==null&&Qe(fo))return;if(!Xr(to))return void(eo!==null&&Xe(ro,ao,lo)&&no.removeAllRanges());const po=to.anchor,ho=to.focus,mo=po.key,vo=ho.key,bo=Kt(ro,mo),xo=Kt(ro,vo),_o=po.offset,So=ho.offset,Eo=to.format,ko=to.style,wo=to.isCollapsed();let Co=bo,Ro=xo,Ao=!1;if(po.type==="text"){Co=et(bo);const jo=po.getNode();Ao=jo.getFormat()!==Eo||jo.getStyle()!==ko}else Xr(eo)&&eo.anchor.type==="text"&&(Ao=!0);var Io,$o,Bo,Mo,Ho;if(ho.type==="text"&&(Ro=et(xo)),Co!==null&&Ro!==null&&(wo&&(eo===null||Ao||Xr(eo)&&(eo.format!==Eo||eo.style!==ko))&&(Io=Eo,$o=ko,Bo=_o,Mo=mo,Ho=performance.now(),rr=[Io,$o,Bo,Mo,Ho]),uo!==_o||co!==So||ao!==Co||lo!==Ro||no.type==="Range"&&wo||(fo!==null&&io.contains(fo)||io.focus({preventScroll:!0}),po.type==="element"))){try{no.setBaseAndExtent(Co,_o,Ro,So)}catch{}if(!oo.has("skip-scroll-into-view")&&to.isCollapsed()&&io!==null&&io===document.activeElement){const jo=to instanceof Yr&&to.anchor.type==="element"?Co.childNodes[_o]||null:no.rangeCount>0?no.getRangeAt(0):null;if(jo!==null){let Oo;if(jo instanceof Text){const Fo=document.createRange();Fo.selectNode(jo),Oo=Fo.getBoundingClientRect()}else Oo=jo.getBoundingClientRect();(function(Fo,Go,qo){const Xo=qo.ownerDocument,Zo=Xo.defaultView;if(Zo===null)return;let{top:Qo,bottom:xs}=Go,Ts=0,Rs=0,Os=qo;for(;Os!==null;){const As=Os===Xo.body;if(As)Ts=0,Rs=Ht(Fo).innerHeight;else{const Jo=Os.getBoundingClientRect();Ts=Jo.top,Rs=Jo.bottom}let Ds=0;if(QoRs&&(Ds=xs-Rs),Ds!==0)if(As)Zo.scrollBy(0,Ds);else{const Jo=Os.scrollTop;Os.scrollTop+=Ds;const Cs=Os.scrollTop-Jo;Qo-=Cs,xs-=Cs}if(As)break;Os=Jt(Os)}})(ro,Oo,io)}}Gn=!0}}function mi(eo){let to=fi()||di();to===null&&(to=ht$1().selectEnd()),to.insertNodes(eo)}function xi(){const eo=fi();return eo===null?"":eo.getTextContent()}function vi(eo){eo.isCollapsed()||eo.removeText();const to=eo.anchor;let ro=to.getNode(),no=to.offset;for(;!ln(ro);)[ro,no]=Ti(ro,no);return no}function Ti(eo,to){const ro=eo.getParent();if(!ro){const oo=rs();return ht$1().append(oo),oo.select(),[ht$1(),0]}if(Br(eo)){const oo=eo.splitText(to);if(oo.length===0)return[ro,eo.getIndexWithinParent()];const io=to===0?0:1;return[ro,oo[0].getIndexWithinParent()+io]}if(!qi(eo)||to===0)return[ro,eo.getIndexWithinParent()];const no=eo.getChildAtIndex(to);if(no){const oo=new Yr(Vr(eo.__key,to,"element"),Vr(eo.__key,to,"element"),0,""),io=eo.insertNewAfter(oo);io&&io.append(no,...no.getNextSiblings())}return[ro,eo.getIndexWithinParent()+1]}let Si=null,ki=null,Ci=!1,bi=!1,Ni=0;const wi={characterData:!0,childList:!0,subtree:!0};function Ei(){return Ci||Si!==null&&Si._readOnly}function Pi(){Ci&&H$1(13)}function Di(){Ni>99&&H$1(14)}function Ii(){return Si===null&&H$1(15),Si}function Oi(){return ki===null&&H$1(16),ki}function Ai(){return ki}function Li(eo,to,ro){const no=to.__type,oo=function(ao,lo){const uo=ao._nodes.get(lo);return uo===void 0&&H$1(30,lo),uo}(eo,no);let io=ro.get(no);io===void 0&&(io=Array.from(oo.transforms),ro.set(no,io));const so=io.length;for(let ao=0;ao{oo=Ki(eo,to,ro)}),oo}const no=xt$1(eo);for(let oo=4;oo>=0;oo--)for(let io=0;io0||Bo>0;){if(Io>0){So._dirtyLeaves=new Set;for(const Mo of Ao){const Ho=wo.get(Mo);Br(Ho)&&Ho.isAttached()&&Ho.isSimpleText()&&!Ho.isUnmergeable()&&Ve(Ho),Ho!==void 0&&Fi(Ho,Co)&&Li(So,Ho,Ro),Eo.add(Mo)}if(Ao=So._dirtyLeaves,Io=Ao.size,Io>0){Ni++;continue}}So._dirtyLeaves=new Set,So._dirtyElements=new Map;for(const Mo of $o){const Ho=Mo[0],jo=Mo[1];if(Ho!=="root"&&!jo)continue;const Oo=wo.get(Ho);Oo!==void 0&&Fi(Oo,Co)&&Li(So,Oo,Ro),ko.set(Ho,jo)}Ao=So._dirtyLeaves,Io=Ao.size,$o=So._dirtyElements,Bo=$o.size,Ni++}So._dirtyLeaves=Eo,So._dirtyElements=ko}(uo,eo),Ji(eo),function(_o,So,Eo,ko){const wo=_o._nodeMap,Co=So._nodeMap,Ro=[];for(const[Ao]of ko){const Io=Co.get(Ao);Io!==void 0&&(Io.isAttached()||(qi(Io)&&an(Io,Ao,wo,Co,Ro,ko),wo.has(Ao)||ko.delete(Ao),Ro.push(Ao)))}for(const Ao of Ro)Co.delete(Ao);for(const Ao of Eo){const Io=Co.get(Ao);Io===void 0||Io.isAttached()||(wo.has(Ao)||Eo.delete(Ao),Co.delete(Ao))}}(lo,uo,eo._dirtyLeaves,eo._dirtyElements)),bo!==eo._compositionKey&&(uo._flushSync=!0);const xo=uo._selection;if(Xr(xo)){const _o=uo._nodeMap,So=xo.anchor.key,Eo=xo.focus.key;_o.get(So)!==void 0&&_o.get(Eo)!==void 0||H$1(19)}else Zr(xo)&&xo._nodes.size===0&&(uo._selection=null)}catch(bo){return bo instanceof Error&&eo._onError(bo),eo._pendingEditorState=lo,eo._dirtyType=ce,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),void Bi(eo)}finally{Si=fo,Ci=po,ki=ho,eo._updating=mo,Ni=0}eo._dirtyType!==oe||function(bo,xo){const _o=xo.getEditorState()._selection,So=bo._selection;if(So!==null){if(So.dirty||!So.is(_o))return!0}else if(_o!==null)return!0;return!1}(uo,eo)?uo._flushSync?(uo._flushSync=!1,Bi(eo)):co&&qe(()=>{Bi(eo)}):(uo._flushSync=!1,co&&(no.clear(),eo._deferred=[],eo._pendingEditorState=null))}function Vi(eo,to,ro){eo._updating?eo._updates.push([to,ro]):Ui(eo,to,ro)}class $i extends pr{constructor(to){super(to)}decorate(to,ro){H$1(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Hi(eo){return eo instanceof $i}class ji extends pr{constructor(to){super(to),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const to=this.getFormat();return Ee[to]||""}getIndent(){return this.getLatest().__indent}getChildren(){const to=[];let ro=this.getFirstChild();for(;ro!==null;)to.push(ro),ro=ro.getNextSibling();return to}getChildrenKeys(){const to=[];let ro=this.getFirstChild();for(;ro!==null;)to.push(ro.__key),ro=ro.getNextSibling();return to}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const to=Oi()._dirtyElements;return to!==null&&to.has(this.__key)}isLastChild(){const to=this.getLatest(),ro=this.getParentOrThrow().getLastChild();return ro!==null&&ro.is(to)}getAllTextNodes(){const to=[];let ro=this.getFirstChild();for(;ro!==null;){if(Br(ro)&&to.push(ro),qi(ro)){const no=ro.getAllTextNodes();to.push(...no)}ro=ro.getNextSibling()}return to}getFirstDescendant(){let to=this.getFirstChild();for(;qi(to);){const ro=to.getFirstChild();if(ro===null)break;to=ro}return to}getLastDescendant(){let to=this.getLastChild();for(;qi(to);){const ro=to.getLastChild();if(ro===null)break;to=ro}return to}getDescendantByIndex(to){const ro=this.getChildren(),no=ro.length;if(to>=no){const io=ro[no-1];return qi(io)&&io.getLastDescendant()||io||null}const oo=ro[to];return qi(oo)&&oo.getFirstDescendant()||oo||null}getFirstChild(){const to=this.getLatest().__first;return to===null?null:ct$1(to)}getFirstChildOrThrow(){const to=this.getFirstChild();return to===null&&H$1(45,this.__key),to}getLastChild(){const to=this.getLatest().__last;return to===null?null:ct$1(to)}getLastChildOrThrow(){const to=this.getLastChild();return to===null&&H$1(96,this.__key),to}getChildAtIndex(to){const ro=this.getChildrenSize();let no,oo;if(to=to;){if(oo===to)return no;no=no.getPreviousSibling(),oo--}return null}getTextContent(){let to="";const ro=this.getChildren(),no=ro.length;for(let oo=0;ooro.remove()),to}append(...to){return this.splice(this.getChildrenSize(),0,to)}setDirection(to){const ro=this.getWritable();return ro.__dir=to,ro}setFormat(to){return this.getWritable().__format=to!==""?we[to]:0,this}setIndent(to){return this.getWritable().__indent=to,this}splice(to,ro,no){const oo=no.length,io=this.getChildrenSize(),so=this.getWritable(),ao=so.__key,lo=[],uo=[],co=this.getChildAtIndex(to+ro);let fo=null,po=io-ro+oo;if(to!==0)if(to===io)fo=this.getLastChild();else{const mo=this.getChildAtIndex(to);mo!==null&&(fo=mo.getPreviousSibling())}if(ro>0){let mo=fo===null?this.getFirstChild():fo.getNextSibling();for(let vo=0;vo({root:Gi(ht$1())}))}}class ts extends ji{static getType(){return"paragraph"}static clone(to){return new ts(to.__key)}createDOM(to){const ro=document.createElement("p"),no=At$1(to.theme,"paragraph");return no!==void 0&&ro.classList.add(...no),ro}updateDOM(to,ro,no){return!1}static importDOM(){return{p:to=>({conversion:ns,priority:0})}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&on(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo);const io=this.getIndent();io>0&&(ro.style.textIndent=20*io+"px")}return{element:ro}}static importJSON(to){const ro=rs();return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(to,ro){const no=rs(),oo=this.getDirection();return no.setDirection(oo),this.insertAfter(no,ro),no}collapseAtStart(){const to=this.getChildren();if(to.length===0||Br(to[0])&&to[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function ns(eo){const to=rs();if(eo.style){to.setFormat(eo.style.textAlign);const ro=parseInt(eo.style.textIndent,10)/20;ro>0&&to.setIndent(ro)}return{node:to}}function rs(){return Yt(new ts)}function is(eo){return eo instanceof ts}const ss=0,os=1,ls=2,cs=3,us=4;function as(eo,to,ro,no){const oo=eo._keyToDOMMap;oo.clear(),eo._editorState=Zi(),eo._pendingEditorState=no,eo._compositionKey=null,eo._dirtyType=oe,eo._cloneNotNeeded.clear(),eo._dirtyLeaves=new Set,eo._dirtyElements.clear(),eo._normalizedNodes=new Set,eo._updateTags=new Set,eo._updates=[],eo._blockCursorElement=null;const io=eo._observer;io!==null&&(io.disconnect(),eo._observer=null),to!==null&&(to.textContent=""),ro!==null&&(ro.textContent="",oo.set("root",ro))}function fs(eo){const to=eo||{},ro=Ai(),no=to.theme||{},oo=eo===void 0?ro:to.parentEditor||null,io=to.disableEvents||!1,so=Zi(),ao=to.namespace||(oo!==null?oo._config.namespace:vt$1()),lo=to.editorState,uo=[Xi,Er,yr,Rr,ts,...to.nodes||[]],{onError:co,html:fo}=to,po=to.editable===void 0||to.editable;let ho;if(eo===void 0&&ro!==null)ho=ro._nodes;else{ho=new Map;for(let vo=0;vo{Object.keys(Eo).forEach(ko=>{let wo=xo.get(ko);wo===void 0&&(wo=[],xo.set(ko,wo)),wo.push(Eo[ko])})};return vo.forEach(Eo=>{const ko=Eo.klass.importDOM;if(ko==null||_o.has(ko))return;_o.add(ko);const wo=ko.call(Eo.klass);wo!==null&&So(wo)}),bo&&So(bo),xo}(ho,fo?fo.import:void 0),po);return lo!==void 0&&(mo._pendingEditorState=lo,mo._dirtyType=ce),mo}class ds{constructor(to,ro,no,oo,io,so,ao){this._parentEditor=ro,this._rootElement=null,this._editorState=to,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=oo,this._nodes=no,this._decorators={},this._pendingDecorators=null,this._dirtyType=oe,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=vt$1(),this._onError=io,this._htmlConversions=so,this._editable=ao,this._headless=ro!==null&&ro._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(to){const ro=this._listeners.update;return ro.add(to),()=>{ro.delete(to)}}registerEditableListener(to){const ro=this._listeners.editable;return ro.add(to),()=>{ro.delete(to)}}registerDecoratorListener(to){const ro=this._listeners.decorator;return ro.add(to),()=>{ro.delete(to)}}registerTextContentListener(to){const ro=this._listeners.textcontent;return ro.add(to),()=>{ro.delete(to)}}registerRootListener(to){const ro=this._listeners.root;return to(this._rootElement,null),ro.add(to),()=>{to(null,this._rootElement),ro.delete(to)}}registerCommand(to,ro,no){no===void 0&&H$1(35);const oo=this._commands;oo.has(to)||oo.set(to,[new Set,new Set,new Set,new Set,new Set]);const io=oo.get(to);io===void 0&&H$1(36,String(to));const so=io[no];return so.add(ro),()=>{so.delete(ro),io.every(ao=>ao.size===0)&&oo.delete(to)}}registerMutationListener(to,ro){this._nodes.get(to.getType())===void 0&&H$1(37,to.name);const no=this._listeners.mutation;return no.set(ro,to),()=>{no.delete(ro)}}registerNodeTransformToKlass(to,ro){const no=to.getType(),oo=this._nodes.get(no);return oo===void 0&&H$1(37,to.name),oo.transforms.add(ro),oo}registerNodeTransform(to,ro){const no=this.registerNodeTransformToKlass(to,ro),oo=[no],io=no.replaceWithKlass;if(io!=null){const lo=this.registerNodeTransformToKlass(io,ro);oo.push(lo)}var so,ao;return so=this,ao=to.getType(),Vi(so,()=>{const lo=Ii();if(lo.isEmpty())return;if(ao==="root")return void ht$1().markDirty();const uo=lo._nodeMap;for(const[,co]of uo)co.markDirty()},so._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{oo.forEach(lo=>lo.transforms.delete(ro))}}hasNode(to){return this._nodes.has(to.getType())}hasNodes(to){return to.every(this.hasNode.bind(this))}dispatchCommand(to,ro){return Bt(this,to,ro)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(to){const ro=this._rootElement;if(to!==ro){const no=At$1(this._config.theme,"root"),oo=this._pendingEditorState||this._editorState;if(this._rootElement=to,as(this,ro,to,oo),ro!==null&&(this._config.disableEvents||gr(ro),no!=null&&ro.classList.remove(...no)),to!==null){const io=function(ao){const lo=ao.ownerDocument;return lo&&lo.defaultView||null}(to),so=to.style;so.userSelect="text",so.whiteSpace="pre-wrap",so.wordBreak="break-word",to.setAttribute("data-lexical-editor","true"),this._window=io,this._dirtyType=ce,Ke(this),this._updateTags.add("history-merge"),Bi(this),this._config.disableEvents||function(ao,lo){const uo=ao.ownerDocument,co=Zn.get(uo);co===void 0&&uo.addEventListener("selectionchange",fr),Zn.set(uo,co||1),ao.__lexicalEditor=lo;const fo=ur(ao);for(let po=0;po{hr(bo)||(dr(bo),(lo.isEditable()||ho==="click")&&mo(bo,lo))}:bo=>{if(!hr(bo)&&(dr(bo),lo.isEditable()))switch(ho){case"cut":return Bt(lo,W,bo);case"copy":return Bt(lo,M$3,bo);case"paste":return Bt(lo,c$5,bo);case"dragstart":return Bt(lo,A$3,bo);case"dragover":return Bt(lo,L$2,bo);case"dragend":return Bt(lo,F$1,bo);case"focus":return Bt(lo,U,bo);case"blur":return Bt(lo,V,bo);case"drop":return Bt(lo,I$1,bo)}};ao.addEventListener(ho,vo),fo.push(()=>{ao.removeEventListener(ho,vo)})}}(to,this),no!=null&&to.classList.add(...no)}else this._editorState=oo,this._pendingEditorState=null,this._window=null;Ri("root",this,!1,to,ro)}}getElementByKey(to){return this._keyToDOMMap.get(to)||null}getEditorState(){return this._editorState}setEditorState(to,ro){to.isEmpty()&&H$1(38),Re(this);const no=this._pendingEditorState,oo=this._updateTags,io=ro!==void 0?ro.tag:null;no===null||no.isEmpty()||(io!=null&&oo.add(io),Bi(this)),this._pendingEditorState=to,this._dirtyType=ce,this._dirtyElements.set("root",!1),this._compositionKey=null,io!=null&&oo.add(io),Bi(this)}parseEditorState(to,ro){return function(no,oo,io){const so=Zi(),ao=Si,lo=Ci,uo=ki,co=oo._dirtyElements,fo=oo._dirtyLeaves,po=oo._cloneNotNeeded,ho=oo._dirtyType;oo._dirtyElements=new Map,oo._dirtyLeaves=new Set,oo._cloneNotNeeded=new Set,oo._dirtyType=0,Si=so,Ci=!1,ki=oo;try{const mo=oo._nodes;Wi(no.root,mo),io&&io(),so._readOnly=!0}catch(mo){mo instanceof Error&&oo._onError(mo)}finally{oo._dirtyElements=co,oo._dirtyLeaves=fo,oo._cloneNotNeeded=po,oo._dirtyType=ho,Si=ao,Ci=lo,ki=uo}return so}(typeof to=="string"?JSON.parse(to):to,this,ro)}update(to,ro){Vi(this,to,ro)}focus(to,ro={}){const no=this._rootElement;no!==null&&(no.setAttribute("autocapitalize","off"),Vi(this,()=>{const oo=fi(),io=ht$1();oo!==null?oo.dirty=!0:io.getChildrenSize()!==0&&(ro.defaultSelection==="rootStart"?io.selectStart():io.selectEnd())},{onUpdate:()=>{no.removeAttribute("autocapitalize"),to&&to()},tag:"focus"}),this._pendingEditorState===null&&no.removeAttribute("autocapitalize"))}blur(){const to=this._rootElement;to!==null&&to.blur();const ro=nn(this._window);ro!==null&&ro.removeAllRanges()}isEditable(){return this._editable}setEditable(to){this._editable!==to&&(this._editable=to,Ri("editable",this,!0,to))}toJSON(){return{editorState:this._editorState.toJSON()}}}const modProd$i=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:Vt,$applyNodeReplacement:Yt,$copyNode:Xt,$createLineBreakNode:xr,$createNodeSelection:ui,$createParagraphNode:rs,$createPoint:Vr,$createRangeSelection:ci,$createTabNode:Kr,$createTextNode:zr,$getAdjacentNode:Wt,$getCharacterOffsets:ei,$getEditor:un,$getNearestNodeFromDOMNode:at$1,$getNearestRootOrShadowRoot:qt,$getNodeByKey:ct$1,$getPreviousSelection:di,$getRoot:ht$1,$getSelection:fi,$getTextContent:xi,$hasAncestor:$t,$hasUpdateTag:Ut,$insertNodes:mi,$isBlockElementNode:oi,$isDecoratorNode:Hi,$isElementNode:qi,$isInlineElementOrDecoratorNode:jt,$isLeafNode:nt,$isLineBreakNode:vr,$isNodeSelection:Zr,$isParagraphNode:is,$isRangeSelection:Xr,$isRootNode:Yi,$isRootOrShadowRoot:Qt,$isTabNode:Jr,$isTextNode:Br,$nodesOfType:Ft,$normalizeSelection__EXPERIMENTAL:$e,$parseSerializedNode:Mi,$selectAll:Ot$1,$setCompositionKey:ot,$setSelection:_t,$splitNode:rn,BLUR_COMMAND:V,CAN_REDO_COMMAND:K$2,CAN_UNDO_COMMAND:J,CLEAR_EDITOR_COMMAND:B$2,CLEAR_HISTORY_COMMAND:R$2,CLICK_COMMAND:r$1,COMMAND_PRIORITY_CRITICAL:us,COMMAND_PRIORITY_EDITOR:ss,COMMAND_PRIORITY_HIGH:cs,COMMAND_PRIORITY_LOW:os,COMMAND_PRIORITY_NORMAL:ls,CONTROLLED_TEXT_INSERTION_COMMAND:l$3,COPY_COMMAND:M$3,CUT_COMMAND:W,DELETE_CHARACTER_COMMAND:i$2,DELETE_LINE_COMMAND:f$4,DELETE_WORD_COMMAND:a$4,DRAGEND_COMMAND:F$1,DRAGOVER_COMMAND:L$2,DRAGSTART_COMMAND:A$3,DROP_COMMAND:I$1,DecoratorNode:$i,ElementNode:ji,FOCUS_COMMAND:U,FORMAT_ELEMENT_COMMAND:O$2,FORMAT_TEXT_COMMAND:d$4,INDENT_CONTENT_COMMAND:P$3,INSERT_LINE_BREAK_COMMAND:s$2,INSERT_PARAGRAPH_COMMAND:o$5,INSERT_TAB_COMMAND:E$4,KEY_ARROW_DOWN_COMMAND:T$3,KEY_ARROW_LEFT_COMMAND:m$5,KEY_ARROW_RIGHT_COMMAND:p$4,KEY_ARROW_UP_COMMAND:v$3,KEY_BACKSPACE_COMMAND:C$4,KEY_DELETE_COMMAND:N$3,KEY_DOWN_COMMAND:_$5,KEY_ENTER_COMMAND:S$4,KEY_ESCAPE_COMMAND:b$2,KEY_MODIFIER_COMMAND:$$1,KEY_SPACE_COMMAND:k$2,KEY_TAB_COMMAND:w$3,LineBreakNode:yr,MOVE_TO_END:y$4,MOVE_TO_START:x$5,OUTDENT_CONTENT_COMMAND:D$2,PASTE_COMMAND:c$5,ParagraphNode:ts,REDO_COMMAND:g$6,REMOVE_TEXT_COMMAND:u$5,RootNode:Xi,SELECTION_CHANGE_COMMAND:t$3,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:n$2,SELECT_ALL_COMMAND:z$1,TabNode:Rr,TextNode:Er,UNDO_COMMAND:h$3,createCommand:e$1,createEditor:fs,getNearestEditorFromDOMNode:Ye,isCurrentlyReadOnlyMode:Ei,isHTMLAnchorElement:sn,isHTMLElement:on,isSelectionCapturedInDecoratorInput:Qe,isSelectionWithinEditor:Xe},Symbol.toStringTag,{value:"Module"})),mod$i=modProd$i,$applyNodeReplacement=mod$i.$applyNodeReplacement,$copyNode=mod$i.$copyNode,$createNodeSelection=mod$i.$createNodeSelection,$createParagraphNode=mod$i.$createParagraphNode,$createRangeSelection=mod$i.$createRangeSelection,$createTabNode=mod$i.$createTabNode,$createTextNode=mod$i.$createTextNode,$getAdjacentNode=mod$i.$getAdjacentNode,$getCharacterOffsets=mod$i.$getCharacterOffsets,$getNearestNodeFromDOMNode=mod$i.$getNearestNodeFromDOMNode,$getNodeByKey=mod$i.$getNodeByKey,$getPreviousSelection=mod$i.$getPreviousSelection,$getRoot=mod$i.$getRoot,$getSelection=mod$i.$getSelection,$hasAncestor=mod$i.$hasAncestor,$insertNodes=mod$i.$insertNodes,$isDecoratorNode=mod$i.$isDecoratorNode,$isElementNode=mod$i.$isElementNode,$isLeafNode=mod$i.$isLeafNode,$isLineBreakNode=mod$i.$isLineBreakNode,$isNodeSelection=mod$i.$isNodeSelection,$isParagraphNode=mod$i.$isParagraphNode,$isRangeSelection=mod$i.$isRangeSelection,$isRootNode=mod$i.$isRootNode,$isRootOrShadowRoot=mod$i.$isRootOrShadowRoot,$isTextNode=mod$i.$isTextNode,$normalizeSelection__EXPERIMENTAL=mod$i.$normalizeSelection__EXPERIMENTAL,$parseSerializedNode=mod$i.$parseSerializedNode,$selectAll=mod$i.$selectAll,$setSelection=mod$i.$setSelection,$splitNode=mod$i.$splitNode,CAN_REDO_COMMAND=mod$i.CAN_REDO_COMMAND,CAN_UNDO_COMMAND=mod$i.CAN_UNDO_COMMAND,CLEAR_EDITOR_COMMAND=mod$i.CLEAR_EDITOR_COMMAND,CLEAR_HISTORY_COMMAND=mod$i.CLEAR_HISTORY_COMMAND,CLICK_COMMAND=mod$i.CLICK_COMMAND,COMMAND_PRIORITY_CRITICAL=mod$i.COMMAND_PRIORITY_CRITICAL,COMMAND_PRIORITY_EDITOR=mod$i.COMMAND_PRIORITY_EDITOR,COMMAND_PRIORITY_HIGH=mod$i.COMMAND_PRIORITY_HIGH,COMMAND_PRIORITY_LOW=mod$i.COMMAND_PRIORITY_LOW,CONTROLLED_TEXT_INSERTION_COMMAND=mod$i.CONTROLLED_TEXT_INSERTION_COMMAND,COPY_COMMAND=mod$i.COPY_COMMAND,CUT_COMMAND=mod$i.CUT_COMMAND,DELETE_CHARACTER_COMMAND=mod$i.DELETE_CHARACTER_COMMAND,DELETE_LINE_COMMAND=mod$i.DELETE_LINE_COMMAND,DELETE_WORD_COMMAND=mod$i.DELETE_WORD_COMMAND,DRAGOVER_COMMAND=mod$i.DRAGOVER_COMMAND,DRAGSTART_COMMAND=mod$i.DRAGSTART_COMMAND,DROP_COMMAND=mod$i.DROP_COMMAND,DecoratorNode=mod$i.DecoratorNode,ElementNode=mod$i.ElementNode,FORMAT_ELEMENT_COMMAND=mod$i.FORMAT_ELEMENT_COMMAND,FORMAT_TEXT_COMMAND=mod$i.FORMAT_TEXT_COMMAND,INDENT_CONTENT_COMMAND=mod$i.INDENT_CONTENT_COMMAND,INSERT_LINE_BREAK_COMMAND=mod$i.INSERT_LINE_BREAK_COMMAND,INSERT_PARAGRAPH_COMMAND=mod$i.INSERT_PARAGRAPH_COMMAND,INSERT_TAB_COMMAND=mod$i.INSERT_TAB_COMMAND,KEY_ARROW_DOWN_COMMAND=mod$i.KEY_ARROW_DOWN_COMMAND,KEY_ARROW_LEFT_COMMAND=mod$i.KEY_ARROW_LEFT_COMMAND,KEY_ARROW_RIGHT_COMMAND=mod$i.KEY_ARROW_RIGHT_COMMAND,KEY_ARROW_UP_COMMAND=mod$i.KEY_ARROW_UP_COMMAND,KEY_BACKSPACE_COMMAND=mod$i.KEY_BACKSPACE_COMMAND,KEY_DELETE_COMMAND=mod$i.KEY_DELETE_COMMAND,KEY_ENTER_COMMAND=mod$i.KEY_ENTER_COMMAND,KEY_ESCAPE_COMMAND=mod$i.KEY_ESCAPE_COMMAND,LineBreakNode=mod$i.LineBreakNode,OUTDENT_CONTENT_COMMAND=mod$i.OUTDENT_CONTENT_COMMAND,PASTE_COMMAND=mod$i.PASTE_COMMAND,ParagraphNode=mod$i.ParagraphNode,REDO_COMMAND=mod$i.REDO_COMMAND,REMOVE_TEXT_COMMAND=mod$i.REMOVE_TEXT_COMMAND,RootNode=mod$i.RootNode,SELECTION_CHANGE_COMMAND=mod$i.SELECTION_CHANGE_COMMAND,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND=mod$i.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,SELECT_ALL_COMMAND=mod$i.SELECT_ALL_COMMAND,TextNode=mod$i.TextNode,UNDO_COMMAND=mod$i.UNDO_COMMAND,createCommand=mod$i.createCommand,createEditor=mod$i.createEditor,isHTMLAnchorElement$1=mod$i.isHTMLAnchorElement,isHTMLElement$2=mod$i.isHTMLElement,isSelectionCapturedInDecoratorInput=mod$i.isSelectionCapturedInDecoratorInput,isSelectionWithinEditor=mod$i.isSelectionWithinEditor,m$4=new Map;function _$4(eo){let to=eo;for(;to!=null;){if(to.nodeType===Node.TEXT_NODE)return to;to=to.firstChild}return null}function y$3(eo){const to=eo.parentNode;if(to==null)throw new Error("Should never happen");return[to,Array.from(to.childNodes).indexOf(eo)]}function T$2(eo,to,ro,no,oo){const io=to.getKey(),so=no.getKey(),ao=document.createRange();let lo=eo.getElementByKey(io),uo=eo.getElementByKey(so),co=ro,fo=oo;if($isTextNode(to)&&(lo=_$4(lo)),$isTextNode(no)&&(uo=_$4(uo)),to===void 0||no===void 0||lo===null||uo===null)return null;lo.nodeName==="BR"&&([lo,co]=y$3(lo)),uo.nodeName==="BR"&&([uo,fo]=y$3(uo));const po=lo.firstChild;lo===uo&&po!=null&&po.nodeName==="BR"&&co===0&&fo===0&&(fo=1);try{ao.setStart(lo,co),ao.setEnd(uo,fo)}catch{return null}return!ao.collapsed||co===fo&&io===so||(ao.setStart(uo,fo),ao.setEnd(lo,co)),ao}function x$4(eo,to){const ro=eo.getRootElement();if(ro===null)return[];const no=ro.getBoundingClientRect(),oo=getComputedStyle(ro),io=parseFloat(oo.paddingLeft)+parseFloat(oo.paddingRight),so=Array.from(to.getClientRects());let ao,lo=so.length;so.sort((uo,co)=>{const fo=uo.top-co.top;return Math.abs(fo)<=3?uo.left-co.left:fo});for(let uo=0;uoco.top&&ao.left+ao.width>co.left,po=co.width+io===no.width;fo||po?(so.splice(uo--,1),lo--):ao=co}return so}function S$3(eo){const to={},ro=eo.split(";");for(const no of ro)if(no!==""){const[oo,io]=no.split(/:([^]+)/);oo&&io&&(to[oo.trim()]=io.trim())}return to}function N$2(eo){let to=m$4.get(eo);return to===void 0&&(to=S$3(eo),m$4.set(eo,to)),to}function E$3(eo){const to=eo.constructor.clone(eo);return to.__parent=eo.__parent,to.__next=eo.__next,to.__prev=eo.__prev,$isElementNode(eo)&&$isElementNode(to)?(no=eo,(ro=to).__first=no.__first,ro.__last=no.__last,ro.__size=no.__size,ro.__format=no.__format,ro.__indent=no.__indent,ro.__dir=no.__dir,ro):$isTextNode(eo)&&$isTextNode(to)?function(oo,io){return oo.__format=io.__format,oo.__style=io.__style,oo.__mode=io.__mode,oo.__detail=io.__detail,oo}(to,eo):to;var ro,no}function v$2(eo,to){const ro=eo.getStartEndPoints();if(to.isSelected(eo)&&!to.isSegmented()&&!to.isToken()&&ro!==null){const[no,oo]=ro,io=eo.isBackward(),so=no.getNode(),ao=oo.getNode(),lo=to.is(so),uo=to.is(ao);if(lo||uo){const[co,fo]=$getCharacterOffsets(eo),po=so.is(ao),ho=to.is(io?ao:so),mo=to.is(io?so:ao);let vo,bo=0;return po?(bo=co>fo?fo:co,vo=co>fo?co:fo):ho?(bo=io?fo:co,vo=void 0):mo&&(bo=0,vo=io?co:fo),to.__text=to.__text.slice(bo,vo),to}}return to}function C$3(eo){if(eo.type==="text")return eo.offset===eo.getNode().getTextContentSize();const to=eo.getNode();if(!$isElementNode(to))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return eo.offset===to.getChildrenSize()}function w$2(eo,to,ro){let no=to.getNode(),oo=ro;if($isElementNode(no)){const io=no.getDescendantByIndex(to.offset);io!==null&&(no=io)}for(;oo>0&&no!==null;){if($isElementNode(no)){const uo=no.getLastDescendant();uo!==null&&(no=uo)}let io=no.getPreviousSibling(),so=0;if(io===null){let uo=no.getParentOrThrow(),co=uo.getPreviousSibling();for(;co===null;){if(uo=uo.getParent(),uo===null){io=null;break}co=uo.getPreviousSibling()}uo!==null&&(so=uo.isInline()?0:2,io=co)}let ao=no.getTextContent();ao===""&&$isElementNode(no)&&!no.isInline()&&(ao=` + +`);const lo=ao.length;if(!$isTextNode(no)||oo>=lo){const uo=no.getParent();no.remove(),uo==null||uo.getChildrenSize()!==0||$isRootNode(uo)||uo.remove(),oo-=lo+so,no=io}else{const uo=no.getKey(),co=eo.getEditorState().read(()=>{const ho=$getNodeByKey(uo);return $isTextNode(ho)&&ho.isSimpleText()?ho.getTextContent():null}),fo=lo-oo,po=ao.slice(0,fo);if(co!==null&&co!==ao){const ho=$getPreviousSelection();let mo=no;if(no.isSimpleText())no.setTextContent(co);else{const vo=$createTextNode(co);no.replace(vo),mo=vo}if($isRangeSelection(ho)&&ho.isCollapsed()){const vo=ho.anchor.offset;mo.select(vo,vo)}}else if(no.isSimpleText()){const ho=to.key===uo;let mo=to.offset;mo(ao instanceof Function?io[so]=ao(ro[so]):ao===null?delete io[so]:io[so]=ao,io),{...ro}),oo=function(io){let so="";for(const ao in io)ao&&(so+=`${ao}: ${io[ao]};`);return so}(no);eo.setStyle(oo),m$4.set(oo,no)}function I(eo,to){const ro=eo.getNodes(),no=ro.length,oo=eo.getStartEndPoints();if(oo===null)return;const[io,so]=oo,ao=no-1;let lo=ro[0],uo=ro[ao];if(eo.isCollapsed()&&$isRangeSelection(eo))return void F(eo,to);const co=lo.getTextContent().length,fo=so.offset;let po=io.offset;const ho=io.isBefore(so);let mo=ho?po:fo,vo=ho?fo:po;const bo=ho?io.type:so.type,xo=ho?so.type:io.type,_o=ho?so.key:io.key;if($isTextNode(lo)&&mo===co){const So=lo.getNextSibling();$isTextNode(So)&&(po=0,mo=0,lo=So)}if(ro.length===1){if($isTextNode(lo)&&lo.canHaveFormat()){if(mo=bo==="element"?0:po>fo?fo:po,vo=xo==="element"?co:po>fo?po:fo,mo===vo)return;if(mo===0&&vo===co)F(lo,to),lo.select(mo,vo);else{const So=lo.splitText(mo,vo),Eo=mo===0?So[0]:So[1];F(Eo,to),Eo.select(0,vo-mo)}}}else{if($isTextNode(lo)&&mofo.append(po)),ro&&(fo=ro.append(fo)),void uo.replace(fo)}let ao=null,lo=[];for(let uo=0;uo{_o.append(So),fo.add(So.getKey()),$isElementNode(So)&&So.getChildrenKeys().forEach(Eo=>fo.add(Eo))}),O$1(bo)}}else if(co.has(vo.getKey())){if(!$isElementNode(vo))throw Error("Expected node in emptyElements to be an ElementNode");const xo=no();xo.setFormat(vo.getFormatType()),xo.setIndent(vo.getIndent()),ao.push(xo),vo.remove(!0)}}if(oo!==null)for(let mo=0;mo=0;mo--){const vo=ao[mo];lo.insertAfter(vo)}else{const mo=lo.getFirstChild();if($isElementNode(mo)&&(lo=mo),mo===null)if(oo)lo.append(oo);else for(let vo=0;vo=0;mo--){const vo=ao[mo];lo.insertAfter(vo),po=vo}const ho=$getPreviousSelection();$isRangeSelection(ho)&&b$1(ho.anchor)&&b$1(ho.focus)?$setSelection(ho.clone()):po!==null?po.selectEnd():eo.dirty=!0}function z(eo,to){const ro=$getAdjacentNode(eo.focus,to);return $isDecoratorNode(ro)&&!ro.isIsolated()||$isElementNode(ro)&&!ro.isInline()&&!ro.canBeEmpty()}function A$2(eo,to,ro,no){eo.modify(to?"extend":"move",ro,no)}function R$1(eo){const to=eo.anchor.getNode();return($isRootNode(to)?to:to.getParentOrThrow()).getDirection()==="rtl"}function D$1(eo,to,ro){const no=R$1(eo);A$2(eo,to,ro?!no:no,"character")}function L$1(eo){const to=eo.anchor,ro=eo.focus,no=to.getNode().getTopLevelElementOrThrow().getParentOrThrow();let oo=no.getFirstDescendant(),io=no.getLastDescendant(),so="element",ao="element",lo=0;$isTextNode(oo)?so="text":$isElementNode(oo)||oo===null||(oo=oo.getParentOrThrow()),$isTextNode(io)?(ao="text",lo=io.getTextContentSize()):$isElementNode(io)||io===null||(io=io.getParentOrThrow()),oo&&io&&(to.set(oo.getKey(),0,so),ro.set(io.getKey(),lo,ao))}function H(eo,to,ro){const no=N$2(eo.getStyle());return no!==null&&no[to]||ro}function M$2(eo,to,ro=""){let no=null;const oo=eo.getNodes(),io=eo.anchor,so=eo.focus,ao=eo.isBackward(),lo=ao?so.offset:io.offset,uo=ao?so.getNode():io.getNode();if(eo.isCollapsed()&&eo.style!==""){const co=N$2(eo.style);if(co!==null&&to in co)return co[to]}for(let co=0;co{eo.forEach(to=>to())}}function m$3(eo){return`${eo}px`}const E$2={attributes:!0,characterData:!0,childList:!0,subtree:!0};function x$3(eo,to,ro){let no=null,oo=null,io=null,so=[];const ao=document.createElement("div");function lo(){if(no===null)throw Error("Unexpected null rootDOMNode");if(oo===null)throw Error("Unexpected null parentDOMNode");const{left:fo,top:po}=no.getBoundingClientRect(),ho=oo,mo=createRectsFromDOMRange(eo,to);ao.isConnected||ho.append(ao);let vo=!1;for(let bo=0;bomo.length;)so.pop();vo&&ro(so)}function uo(){oo=null,no=null,io!==null&&io.disconnect(),io=null,ao.remove();for(const fo of so)fo.remove();so=[]}const co=eo.registerRootListener(function fo(){const po=eo.getRootElement();if(po===null)return uo();const ho=po.parentElement;if(!(ho instanceof HTMLElement))return uo();uo(),no=po,oo=ho,io=new MutationObserver(mo=>{const vo=eo.getRootElement(),bo=vo&&vo.parentElement;if(vo!==no||bo!==oo)return fo();for(const xo of mo)if(!ao.contains(xo.target))return lo()}),io.observe(ho,E$2),lo()});return()=>{co(),uo()}}function y$2(eo,to){let ro=null,no=null,oo=null,io=null,so=()=>{};function ao(lo){lo.read(()=>{const uo=$getSelection();if(!$isRangeSelection(uo))return ro=null,no=null,oo=null,io=null,so(),void(so=()=>{});const{anchor:co,focus:fo}=uo,po=co.getNode(),ho=po.getKey(),mo=co.offset,vo=fo.getNode(),bo=vo.getKey(),xo=fo.offset,_o=eo.getElementByKey(ho),So=eo.getElementByKey(bo),Eo=ro===null||_o===null||mo!==no||ho!==ro.getKey()||po!==ro&&(!(ro instanceof TextNode)||po.updateDOM(ro,_o,eo._config)),ko=oo===null||So===null||xo!==io||bo!==oo.getKey()||vo!==oo&&(!(oo instanceof TextNode)||vo.updateDOM(oo,So,eo._config));if(Eo||ko){const wo=eo.getElementByKey(co.getNode().getKey()),Co=eo.getElementByKey(fo.getNode().getKey());if(wo!==null&&Co!==null&&wo.tagName==="SPAN"&&Co.tagName==="SPAN"){const Ro=document.createRange();let Ao,Io,$o,Bo;fo.isBefore(co)?(Ao=Co,Io=fo.offset,$o=wo,Bo=co.offset):(Ao=wo,Io=co.offset,$o=Co,Bo=fo.offset);const Mo=Ao.firstChild;if(Mo===null)throw Error("Expected text node to be first child of span");const Ho=$o.firstChild;if(Ho===null)throw Error("Expected text node to be first child of span");Ro.setStart(Mo,Io),Ro.setEnd(Ho,Bo),so(),so=x$3(eo,Ro,jo=>{for(const Oo of jo){const Fo=Oo.style;Fo.background!=="Highlight"&&(Fo.background="Highlight"),Fo.color!=="HighlightText"&&(Fo.color="HighlightText"),Fo.zIndex!=="-1"&&(Fo.zIndex="-1"),Fo.pointerEvents!=="none"&&(Fo.pointerEvents="none"),Fo.marginTop!==m$3(-1.5)&&(Fo.marginTop=m$3(-1.5)),Fo.paddingTop!==m$3(4)&&(Fo.paddingTop=m$3(4)),Fo.paddingBottom!==m$3(0)&&(Fo.paddingBottom=m$3(0))}to!==void 0&&to(jo)})}}ro=po,no=mo,oo=vo,io=xo})}return ao(eo.getEditorState()),h$2(eo.registerUpdateListener(({editorState:lo})=>ao(lo)),so,()=>{so()})}function v$1(eo,...to){const ro=p$3(...to);ro.length>0&&eo.classList.add(...ro)}function N$1(eo,...to){const ro=p$3(...to);ro.length>0&&eo.classList.remove(...ro)}function w$1(eo,to){for(const ro of to)if(eo.type.startsWith(ro))return!0;return!1}function L(eo,to){const ro=eo[Symbol.iterator]();return new Promise((no,oo)=>{const io=[],so=()=>{const{done:ao,value:lo}=ro.next();if(ao)return no(io);const uo=new FileReader;uo.addEventListener("error",oo),uo.addEventListener("load",()=>{const co=uo.result;typeof co=="string"&&io.push({file:lo,result:co}),so()}),w$1(lo,to)?uo.readAsDataURL(lo):so()};so()})}function T$1(eo,to){const ro=[],no=(eo||$getRoot()).getLatest(),oo=to||($isElementNode(no)?no.getLastDescendant():no);let io=no,so=function(ao){let lo=ao,uo=0;for(;(lo=lo.getParent())!==null;)uo++;return uo}(io);for(;io!==null&&!io.is(oo);)if(ro.push({depth:so,node:io}),$isElementNode(io)&&io.getChildrenSize()>0)io=io.getFirstChild(),so++;else{let ao=null;for(;ao===null&&io!==null;)ao=io.getNextSibling(),ao===null?(io=io.getParent(),so--):io=ao}return io!==null&&io.is(oo)&&ro.push({depth:so,node:io}),ro}function b(eo,to){let ro=eo;for(;ro!=null;){if(ro instanceof to)return ro;ro=ro.getParent()}return null}function S$2(eo){const to=_$3(eo,ro=>$isElementNode(ro)&&!ro.isInline());return $isElementNode(to)||g$5(4,eo.__key),to}const _$3=(eo,to)=>{let ro=eo;for(;ro!==$getRoot()&&ro!=null;){if(to(ro))return ro;ro=ro.getParent()}return null};function B(eo,to,ro,no){const oo=io=>io instanceof to;return eo.registerNodeTransform(to,io=>{const so=(ao=>{const lo=ao.getChildren();for(let fo=0;fo0&&(so+=1,no.splitText(oo))):(io=no,so=oo);const[,ao]=$splitNode(io,so);ao.insertBefore(eo),ao.selectStart()}}else{if(to!=null){const no=to.getNodes();no[no.length-1].getTopLevelElementOrThrow().insertAfter(eo)}else $getRoot().append(eo);const ro=$createParagraphNode();eo.insertAfter(ro),ro.select()}return eo.getLatest()}function A$1(eo,to){const ro=to();return eo.replace(ro),ro.append(eo),ro}function C$2(eo,to){return eo!==null&&Object.getPrototypeOf(eo).constructor.name===to.name}function K(eo,to){const ro=[];for(let no=0;no({conversion:a$3,priority:1})}}static importJSON(to){const ro=g$4(to.url,{rel:to.rel,target:to.target,title:to.title});return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}sanitizeUrl(to){try{const ro=new URL(to);if(!o$4.has(ro.protocol))return"about:blank"}catch{return to}return to}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(to){this.getWritable().__url=to}getTarget(){return this.getLatest().__target}setTarget(to){this.getWritable().__target=to}getRel(){return this.getLatest().__rel}setRel(to){this.getWritable().__rel=to}getTitle(){return this.getLatest().__title}setTitle(to){this.getWritable().__title=to}insertNewAfter(to,ro=!0){const no=g$4(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(no,ro),no}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(to,ro,no){if(!$isRangeSelection(ro))return!1;const oo=ro.anchor.getNode(),io=ro.focus.getNode();return this.isParentOf(oo)&&this.isParentOf(io)&&ro.getTextContent().length>0}};function a$3(eo){let to=null;if(isHTMLAnchorElement(eo)){const ro=eo.textContent;(ro!==null&&ro!==""||eo.children.length>0)&&(to=g$4(eo.getAttribute("href")||"",{rel:eo.getAttribute("rel"),target:eo.getAttribute("target"),title:eo.getAttribute("title")}))}return{node:to}}function g$4(eo,to){return $applyNodeReplacement(new _$2(eo,to))}function c$4(eo){return eo instanceof _$2}let h$1=class c_ extends _$2{static getType(){return"autolink"}static clone(to){return new c_(to.__url,{rel:to.__rel,target:to.__target,title:to.__title},to.__key)}static importJSON(to){const ro=f$3(to.url,{rel:to.rel,target:to.target,title:to.title});return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(to,ro=!0){const no=this.getParentOrThrow().insertNewAfter(to,ro);if($isElementNode(no)){const oo=f$3(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return no.append(oo),oo}return null}};function f$3(eo,to){return $applyNodeReplacement(new h$1(eo,to))}function p$2(eo){return eo instanceof h$1}const d$3=createCommand("TOGGLE_LINK_COMMAND");function m$2(eo,to={}){const{target:ro,title:no}=to,oo=to.rel===void 0?"noreferrer":to.rel,io=$getSelection();if(!$isRangeSelection(io))return;const so=io.extract();if(eo===null)so.forEach(ao=>{const lo=ao.getParent();if(c$4(lo)){const uo=lo.getChildren();for(let co=0;co{const co=uo.getParent();if(co!==lo&&co!==null&&(!$isElementNode(uo)||uo.isInline())){if(c$4(co))return lo=co,co.setURL(eo),ro!==void 0&&co.setTarget(ro),oo!==null&&lo.setRel(oo),void(no!==void 0&&lo.setTitle(no));if(co.is(ao)||(ao=co,lo=g$4(eo,{rel:oo,target:ro,title:no}),c$4(co)?uo.getPreviousSibling()===null?co.insertBefore(lo):co.insertAfter(lo):uo.insertBefore(lo)),c$4(uo)){if(uo.is(lo))return;if(lo!==null){const fo=uo.getChildren();for(let po=0;po{const{theme:no,namespace:oo,editor__DEPRECATED:io,nodes:so,onError:ao,editorState:lo,html:uo}=eo,co=createLexicalComposerContext(null,no);let fo=io||null;if(fo===null){const po=createEditor({editable:eo.editable,html:uo,namespace:oo,nodes:so,onError:ho=>ao(ho,po),theme:no});(function(ho,mo){if(mo!==null){if(mo===void 0)ho.update(()=>{const vo=$getRoot();if(vo.isEmpty()){const bo=$createParagraphNode();vo.append(bo);const xo=d$2?document.activeElement:null;($getSelection()!==null||xo!==null&&xo===ho.getRootElement())&&bo.select()}},u$4);else if(mo!==null)switch(typeof mo){case"string":{const vo=ho.parseEditorState(mo);ho.setEditorState(vo,u$4);break}case"object":ho.setEditorState(mo,u$4);break;case"function":ho.update(()=>{$getRoot().isEmpty()&&mo(ho)},u$4)}}})(po,lo),fo=po}return[fo,co]},[]);return m$1(()=>{const no=eo.editable,[oo]=ro;oo.setEditable(no===void 0||no)},[]),reactExports.createElement(LexicalComposerContext.Provider,{value:ro},to)}const modProd$d=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:f$2},Symbol.toStringTag,{value:"Module"})),mod$d=modProd$d,LexicalComposer=mod$d.LexicalComposer;function n$1(){return n$1=Object.assign?Object.assign.bind():function(eo){for(var to=1;to{Co&&Co.ownerDocument&&Co.ownerDocument.defaultView&&So.setRootElement(Co)},[So]);return d$1(()=>(ko(So.isEditable()),So.registerEditableListener(Co=>{ko(Co)})),[So]),reactExports.createElement("div",n$1({},_o,{"aria-activedescendant":Eo?eo:void 0,"aria-autocomplete":Eo?to:"none","aria-controls":Eo?ro:void 0,"aria-describedby":no,"aria-expanded":Eo&&ho==="combobox"?!!oo:void 0,"aria-label":io,"aria-labelledby":so,"aria-multiline":ao,"aria-owns":Eo?lo:void 0,"aria-readonly":!Eo||void 0,"aria-required":uo,autoCapitalize:co,className:fo,contentEditable:Eo,"data-testid":xo,id:po,ref:wo,role:ho,spellCheck:mo,style:vo,tabIndex:bo}))}const modProd$c=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:l$1},Symbol.toStringTag,{value:"Module"})),mod$c=modProd$c,ContentEditable=mod$c.ContentEditable;function e(eo,to){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ro,no){return ro.__proto__=no,ro},e(eo,to)}var t$1={error:null},o$2=function(eo){var to,ro;function no(){for(var io,so=arguments.length,ao=new Array(so),lo=0;lo1){const xo=to._nodeMap,_o=xo.get(io.anchor.key),So=xo.get(so.anchor.key);return _o&&So&&!eo._nodeMap.has(_o.__key)&&$isTextNode(_o)&&_o.__text.length===1&&io.anchor.offset===1?m:p$1}const lo=ao[0],uo=eo._nodeMap.get(lo.__key);if(!$isTextNode(uo)||!$isTextNode(lo)||uo.__mode!==lo.__mode)return p$1;const co=uo.__text,fo=lo.__text;if(co===fo)return p$1;const po=io.anchor,ho=so.anchor;if(po.key!==ho.key||po.type!=="text")return p$1;const mo=po.offset,vo=ho.offset,bo=fo.length-co.length;return bo===1&&vo===mo-1?m:bo===-1&&vo===mo+1?g$3:bo===-1&&vo===mo?y$1:p$1}function k(eo,to){let ro=Date.now(),no=p$1;return(oo,io,so,ao,lo,uo)=>{const co=Date.now();if(uo.has("historic"))return no=p$1,ro=co,f$1;const fo=S$1(oo,io,ao,lo,eo.isComposing()),po=(()=>{const ho=so===null||so.editor===eo,mo=uo.has("history-push");if(!mo&&ho&&uo.has("history-merge"))return l;if(oo===null)return _$1;const vo=io._selection;return ao.size>0||lo.size>0?mo===!1&&fo!==p$1&&fo===no&&co{const po=to.current,ho=to.redoStack,mo=to.undoStack,vo=po===null?null:po.editorState;if(po!==null&&ao===vo)return;const bo=no(lo,ao,po,uo,co,fo);if(bo===_$1)ho.length!==0&&(to.redoStack=[],eo.dispatchCommand(CAN_REDO_COMMAND,!1)),po!==null&&(mo.push({...po}),eo.dispatchCommand(CAN_UNDO_COMMAND,!0));else if(bo===f$1)return;to.current={editor:eo,editorState:ao}},io=mergeRegister(eo.registerCommand(UNDO_COMMAND,()=>(function(ao,lo){const uo=lo.redoStack,co=lo.undoStack;if(co.length!==0){const fo=lo.current,po=co.pop();fo!==null&&(uo.push(fo),ao.dispatchCommand(CAN_REDO_COMMAND,!0)),co.length===0&&ao.dispatchCommand(CAN_UNDO_COMMAND,!1),lo.current=po||null,po&&po.editor.setEditorState(po.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(REDO_COMMAND,()=>(function(ao,lo){const uo=lo.redoStack,co=lo.undoStack;if(uo.length!==0){const fo=lo.current;fo!==null&&(co.push(fo),ao.dispatchCommand(CAN_UNDO_COMMAND,!0));const po=uo.pop();uo.length===0&&ao.dispatchCommand(CAN_REDO_COMMAND,!1),lo.current=po||null,po&&po.editor.setEditorState(po.editorState,{tag:"historic"})}}(eo,to),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_EDITOR_COMMAND,()=>(C$1(to),!1),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CLEAR_HISTORY_COMMAND,()=>(C$1(to),eo.dispatchCommand(CAN_REDO_COMMAND,!1),eo.dispatchCommand(CAN_UNDO_COMMAND,!1),!0),COMMAND_PRIORITY_EDITOR),eo.registerUpdateListener(oo)),so=eo.registerUpdateListener(oo);return()=>{io(),so()}}function M(){return{current:null,redoStack:[],undoStack:[]}}const modProd$a=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:M,registerHistory:x$2},Symbol.toStringTag,{value:"Module"})),mod$a=modProd$a,createEmptyHistoryState=mod$a.createEmptyHistoryState,registerHistory=mod$a.registerHistory;function c$3({externalHistoryState:eo}){const[to]=useLexicalComposerContext();return function(ro,no,oo=1e3){const io=reactExports.useMemo(()=>no||createEmptyHistoryState(),[no]);reactExports.useEffect(()=>registerHistory(ro,io,oo),[oo,ro,io])}(to,eo),null}const modProd$9=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:c$3,createEmptyHistoryState},Symbol.toStringTag,{value:"Module"})),mod$9=modProd$9,HistoryPlugin=mod$9.HistoryPlugin;var o$1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function i$1({ignoreHistoryMergeTagChange:eo=!0,ignoreSelectionChange:to=!1,onChange:ro}){const[no]=useLexicalComposerContext();return o$1(()=>{if(ro)return no.registerUpdateListener(({editorState:oo,dirtyElements:io,dirtyLeaves:so,prevEditorState:ao,tags:lo})=>{to&&io.size===0&&so.size===0||eo&&lo.has("history-merge")||ao.isEmpty()||ro(oo,no,lo)})},[no,eo,to,ro]),null}const modProd$8=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:i$1},Symbol.toStringTag,{value:"Module"})),mod$8=modProd$8,OnChangePlugin=mod$8.OnChangePlugin;var u$3=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function c$2(eo){return{initialValueFn:()=>eo.isEditable(),subscribe:to=>eo.registerEditableListener(to)}}function a$2(){return function(eo){const[to]=useLexicalComposerContext(),ro=reactExports.useMemo(()=>eo(to),[to,eo]),no=reactExports.useRef(ro.initialValueFn()),[oo,io]=reactExports.useState(no.current);return u$3(()=>{const{initialValueFn:so,subscribe:ao}=ro,lo=so();return no.current!==lo&&(no.current=lo,io(lo)),ao(uo=>{no.current=uo,io(uo)})},[ro,eo]),oo}(c$2)}const modProd$7=Object.freeze(Object.defineProperty({__proto__:null,default:a$2},Symbol.toStringTag,{value:"Module"})),mod$7=modProd$7,t=mod$7.default;function s$1(eo,to){let ro=eo.getFirstChild(),no=0;e:for(;ro!==null;){if($isElementNode(ro)){const so=ro.getFirstChild();if(so!==null){ro=so;continue}}else if($isTextNode(ro)){const so=ro.getTextContentSize();if(no+so>to)return{node:ro,offset:to-no};no+=so}const oo=ro.getNextSibling();if(oo!==null){ro=oo;continue}let io=ro.getParent();for(;io!==null;){const so=io.getNextSibling();if(so!==null){ro=so;continue e}io=io.getParent()}break}return null}function u$2(eo,to=!0){if(eo)return!1;let ro=c$1();return to&&(ro=ro.trim()),ro===""}function f(eo,to){return()=>u$2(eo,to)}function c$1(){return $getRoot().getTextContent()}function g$2(eo){if(!u$2(eo,!1))return!1;const to=$getRoot().getChildren(),ro=to.length;if(ro>1)return!1;for(let no=0;nog$2(eo)}function a$1(eo,to,ro,no){const oo=so=>so instanceof ro,io=so=>{const ao=$createTextNode(so.getTextContent());ao.setFormat(so.getFormat()),so.replace(ao)};return[eo.registerNodeTransform(TextNode,so=>{if(!so.isSimpleText())return;const ao=so.getPreviousSibling();let lo,uo=so.getTextContent(),co=so;if($isTextNode(ao)){const fo=ao.getTextContent(),po=to(fo+uo);if(oo(ao)){if(po===null||(ho=>ho.getLatest().__mode)(ao)!==0)return void io(ao);{const ho=po.end-fo.length;if(ho>0){const mo=fo+uo.slice(0,ho);if(ao.select(),ao.setTextContent(mo),ho===uo.length)so.remove();else{const vo=uo.slice(ho);so.setTextContent(vo)}return}}}else if(po===null||po.start{const ao=so.getTextContent(),lo=to(ao);if(lo===null||lo.start!==0)return void io(so);if(ao.length>lo.end)return void so.splitText(lo.end);const uo=so.getPreviousSibling();$isTextNode(uo)&&uo.isTextEntity()&&(io(uo),io(so));const co=so.getNextSibling();$isTextNode(co)&&co.isTextEntity()&&(io(co),oo(so)&&io(so))})]}const modProd$6=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:g$2,$canShowPlaceholderCurry:x$1,$findTextIntersectionFromCharacters:s$1,$isRootTextContentEmpty:u$2,$isRootTextContentEmptyCurry:f,$rootTextContent:c$1,registerLexicalTextEntity:a$1},Symbol.toStringTag,{value:"Module"})),mod$6=modProd$6,$canShowPlaceholderCurry=mod$6.$canShowPlaceholderCurry;function o(eo){const to=window.location.origin,ro=no=>{if(no.origin!==to)return;const oo=eo.getRootElement();if(document.activeElement!==oo)return;const io=no.data;if(typeof io=="string"){let so;try{so=JSON.parse(io)}catch{return}if(so&&so.protocol==="nuanria_messaging"&&so.type==="request"){const ao=so.payload;if(ao&&ao.functionId==="makeChanges"){const lo=ao.args;if(lo){const[uo,co,fo,po,ho,mo]=lo;eo.update(()=>{const vo=$getSelection();if($isRangeSelection(vo)){const bo=vo.anchor;let xo=bo.getNode(),_o=0,So=0;if($isTextNode(xo)&&uo>=0&&co>=0&&(_o=uo,So=uo+co,vo.setTextNodeRange(xo,_o,xo,So)),_o===So&&fo===""||(vo.insertRawText(fo),xo=bo.getNode()),$isTextNode(xo)){_o=po,So=po+ho;const Eo=xo.getTextContentSize();_o=_o>Eo?Eo:_o,So=So>Eo?Eo:So,vo.setTextNodeRange(xo,_o,xo,So)}no.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",ro,!0),()=>{window.removeEventListener("message",ro,!0)}}const modProd$5=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:o},Symbol.toStringTag,{value:"Module"})),mod$5=modProd$5,registerDragonSupport=mod$5.registerDragonSupport;function i(eo,to){const ro=to.body?to.body.childNodes:[];let no=[];for(let oo=0;oo"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const ro=document.createElement("div"),no=$getRoot().getChildren();for(let oo=0;oow?(eo||window).getSelection():null;function v(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?"":$generateHtmlFromNodes(eo,to)}function D(eo){const to=$getSelection();if(to==null)throw Error("Expected valid LexicalSelection");return $isRangeSelection(to)&&to.isCollapsed()||to.getNodes().length===0?null:JSON.stringify(T(eo,to))}function C(eo,to){const ro=eo.getData("text/plain")||eo.getData("text/uri-list");ro!=null&&to.insertRawText(ro)}function E$1(eo,to,ro){const no=eo.getData("application/x-lexical-editor");if(no)try{const so=JSON.parse(no);if(so.namespace===ro._config.namespace&&Array.isArray(so.nodes))return N(ro,_(so.nodes),to)}catch{}const oo=eo.getData("text/html");if(oo)try{const so=new DOMParser().parseFromString(oo,"text/html");return N(ro,$generateNodesFromDOM(ro,so),to)}catch{}const io=eo.getData("text/plain")||eo.getData("text/uri-list");if(io!=null)if($isRangeSelection(to)){const so=io.split(/(\r?\n|\t)/);so[so.length-1]===""&&so.pop();for(let ao=0;ao0?lo.text=uo:oo=!1}for(let uo=0;uo{eo.update(()=>{ao(P(eo,to))})});const ro=eo.getRootElement(),no=eo._window==null?window.document:eo._window.document,oo=y(eo._window);if(ro===null||oo===null)return!1;const io=no.createElement("span");io.style.cssText="position: fixed; top: -1000px;",io.append(no.createTextNode("#")),ro.append(io);const so=new Range;return so.setStart(io,0),so.setEnd(io,1),oo.removeAllRanges(),oo.addRange(so),new Promise((ao,lo)=>{const uo=eo.registerCommand(COPY_COMMAND,co=>(objectKlassEquals(co,ClipboardEvent)&&(uo(),A!==null&&(window.clearTimeout(A),A=null),ao(P(eo,co))),!0),COMMAND_PRIORITY_CRITICAL);A=window.setTimeout(()=>{uo(),A=null,ao(!1)},50),no.execCommand("copy"),io.remove()})}function P(eo,to){const ro=y(eo._window);if(!ro)return!1;const no=ro.anchorNode,oo=ro.focusNode;if(no!==null&&oo!==null&&!isSelectionWithinEditor(eo,no,oo))return!1;to.preventDefault();const io=to.clipboardData,so=$getSelection();if(io===null||so===null)return!1;const ao=v(eo),lo=D(eo);let uo="";return so!==null&&(uo=so.getTextContent()),ao!==null&&io.setData("text/html",ao),lo!==null&&io.setData("application/x-lexical-editor",lo),io.setData("text/plain",uo),!0}const modProd$3=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:T,$generateNodesFromSerializedNodes:_,$getHtmlContent:v,$getLexicalContent:D,$insertDataTransferForPlainText:C,$insertDataTransferForRichText:E$1,$insertGeneratedNodes:N,copyToClipboard:R},Symbol.toStringTag,{value:"Module"})),mod$3=modProd$3,$insertDataTransferForRichText=mod$3.$insertDataTransferForRichText,copyToClipboard=mod$3.copyToClipboard;function st(eo,to){if(document.caretRangeFromPoint!==void 0){const ro=document.caretRangeFromPoint(eo,to);return ro===null?null:{node:ro.startContainer,offset:ro.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const ro=document.caretPositionFromPoint(eo,to);return ro===null?null:{node:ro.offsetNode,offset:ro.offset}}return null}const at=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ct=at&&"documentMode"in document?document.documentMode:null,ut=!(!at||!("InputEvent"in window)||ct)&&"getTargetRanges"in new window.InputEvent("input"),lt=at&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),dt=at&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mt=at&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ft=at&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!mt,gt=createCommand("DRAG_DROP_PASTE_FILE");class pt extends ElementNode{static getType(){return"quote"}static clone(to){return new pt(to.__key)}constructor(to){super(to)}createDOM(to){const ro=document.createElement("blockquote");return addClassNamesToElement(ro,to.theme.quote),ro}updateDOM(to,ro){return!1}static importDOM(){return{blockquote:to=>({conversion:xt,priority:0})}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&isHTMLElement$1(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo)}return{element:ro}}static importJSON(to){const ro=ht();return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(to,ro){const no=$createParagraphNode(),oo=this.getDirection();return no.setDirection(oo),this.insertAfter(no,ro),no}collapseAtStart(){const to=$createParagraphNode();return this.getChildren().forEach(ro=>to.append(ro)),this.replace(to),!0}}function ht(){return $applyNodeReplacement(new pt)}function vt(eo){return eo instanceof pt}class Ct extends ElementNode{static getType(){return"heading"}static clone(to){return new Ct(to.__tag,to.__key)}constructor(to,ro){super(ro),this.__tag=to}getTag(){return this.__tag}createDOM(to){const ro=this.__tag,no=document.createElement(ro),oo=to.theme.heading;if(oo!==void 0){const io=oo[ro];addClassNamesToElement(no,io)}return no}updateDOM(to,ro){return!1}static importDOM(){return{h1:to=>({conversion:Dt,priority:0}),h2:to=>({conversion:Dt,priority:0}),h3:to=>({conversion:Dt,priority:0}),h4:to=>({conversion:Dt,priority:0}),h5:to=>({conversion:Dt,priority:0}),h6:to=>({conversion:Dt,priority:0}),p:to=>{const ro=to.firstChild;return ro!==null&&yt(ro)?{conversion:()=>({node:null}),priority:3}:null},span:to=>yt(to)?{conversion:ro=>({node:wt("h1")}),priority:3}:null}}exportDOM(to){const{element:ro}=super.exportDOM(to);if(ro&&isHTMLElement$1(ro)){this.isEmpty()&&ro.append(document.createElement("br"));const no=this.getFormatType();ro.style.textAlign=no;const oo=this.getDirection();oo&&(ro.dir=oo)}return{element:ro}}static importJSON(to){const ro=wt(to.tag);return ro.setFormat(to.format),ro.setIndent(to.indent),ro.setDirection(to.direction),ro}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(to,ro=!0){const no=to?to.anchor.offset:0,oo=no!==this.getTextContentSize()&&to?wt(this.getTag()):$createParagraphNode(),io=this.getDirection();if(oo.setDirection(io),this.insertAfter(oo,ro),no===0&&!this.isEmpty()&&to){const so=$createParagraphNode();so.select(),this.replace(so,!0)}return oo}collapseAtStart(){const to=this.isEmpty()?$createParagraphNode():wt(this.getTag());return this.getChildren().forEach(ro=>to.append(ro)),this.replace(to),!0}extractWithChild(){return!0}}function yt(eo){return eo.nodeName.toLowerCase()==="span"&&eo.style.fontSize==="26pt"}function Dt(eo){const to=eo.nodeName.toLowerCase();let ro=null;return to!=="h1"&&to!=="h2"&&to!=="h3"&&to!=="h4"&&to!=="h5"&&to!=="h6"||(ro=wt(to),eo.style!==null&&ro.setFormat(eo.style.textAlign)),{node:ro}}function xt(eo){const to=ht();return eo.style!==null&&to.setFormat(eo.style.textAlign),{node:to}}function wt(eo){return $applyNodeReplacement(new Ct(eo))}function Et(eo){return eo instanceof Ct}function Nt(eo){let to=null;if(objectKlassEquals(eo,DragEvent)?to=eo.dataTransfer:objectKlassEquals(eo,ClipboardEvent)&&(to=eo.clipboardData),to===null)return[!1,[],!1];const ro=to.types,no=ro.includes("Files"),oo=ro.includes("text/html")||ro.includes("text/plain");return[no,Array.from(to.files),oo]}function At(eo){const to=$getSelection();if(!$isRangeSelection(to))return!1;const ro=new Set,no=to.getNodes();for(let oo=0;oo0}function Pt(eo){const to=$getNearestNodeFromDOMNode(eo);return $isDecoratorNode(to)}function Ot(eo){return mergeRegister(eo.registerCommand(CLICK_COMMAND,to=>{const ro=$getSelection();return!!$isNodeSelection(ro)&&(ro.clear(),!0)},0),eo.registerCommand(DELETE_CHARACTER_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteCharacter(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_WORD_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteWord(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DELETE_LINE_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.deleteLine(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(CONTROLLED_TEXT_INSERTION_COMMAND,to=>{const ro=$getSelection();if(typeof to=="string")ro!==null&&ro.insertText(to);else{if(ro===null)return!1;const no=to.dataTransfer;if(no!=null)$insertDataTransferForRichText(no,ro,eo);else if($isRangeSelection(ro)){const oo=to.data;return oo&&ro.insertText(oo),!0}}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(REMOVE_TEXT_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.removeText(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_TEXT_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.formatText(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(FORMAT_ELEMENT_COMMAND,to=>{const ro=$getSelection();if(!$isRangeSelection(ro)&&!$isNodeSelection(ro))return!1;const no=ro.getNodes();for(const oo of no){const io=$findMatchingParent(oo,so=>$isElementNode(so)&&!so.isInline());io!==null&&io.setFormat(to)}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_LINE_BREAK_COMMAND,to=>{const ro=$getSelection();return!!$isRangeSelection(ro)&&(ro.insertLineBreak(to),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_PARAGRAPH_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(to.insertParagraph(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(INSERT_TAB_COMMAND,()=>($insertNodes([$createTabNode()]),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(INDENT_CONTENT_COMMAND,()=>At(to=>{const ro=to.getIndent();to.setIndent(ro+1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(OUTDENT_CONTENT_COMMAND,()=>At(to=>{const ro=to.getIndent();ro>0&&to.setIndent(ro-1)}),COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_UP_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)&&!Pt(to.target)){const no=ro.getNodes();if(no.length>0)return no[0].selectPrevious(),!0}else if($isRangeSelection(ro)){const no=$getAdjacentNode(ro.focus,!0);if(!to.shiftKey&&$isDecoratorNode(no)&&!no.isIsolated()&&!no.isInline())return no.selectPrevious(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_DOWN_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)){const no=ro.getNodes();if(no.length>0)return no[0].selectNext(0,0),!0}else if($isRangeSelection(ro)){if(function(oo){const io=oo.focus;return io.key==="root"&&io.offset===$getRoot().getChildrenSize()}(ro))return to.preventDefault(),!0;const no=$getAdjacentNode(ro.focus,!1);if(!to.shiftKey&&$isDecoratorNode(no)&&!no.isIsolated()&&!no.isInline())return no.selectNext(),to.preventDefault(),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_LEFT_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)){const no=ro.getNodes();if(no.length>0)return to.preventDefault(),no[0].selectPrevious(),!0}if(!$isRangeSelection(ro))return!1;if($shouldOverrideDefaultCharacterSelection(ro,!0)){const no=to.shiftKey;return to.preventDefault(),$moveCharacter(ro,no,!0),!0}return!1},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ARROW_RIGHT_COMMAND,to=>{const ro=$getSelection();if($isNodeSelection(ro)&&!Pt(to.target)){const oo=ro.getNodes();if(oo.length>0)return to.preventDefault(),oo[0].selectNext(0,0),!0}if(!$isRangeSelection(ro))return!1;const no=to.shiftKey;return!!$shouldOverrideDefaultCharacterSelection(ro,!1)&&(to.preventDefault(),$moveCharacter(ro,no,!1),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_BACKSPACE_COMMAND,to=>{if(Pt(to.target))return!1;const ro=$getSelection();if(!$isRangeSelection(ro))return!1;to.preventDefault();const{anchor:no}=ro,oo=no.getNode();return ro.isCollapsed()&&no.offset===0&&!$isRootNode(oo)&&$getNearestBlockElementAncestorOrThrow(oo).getIndent()>0?eo.dispatchCommand(OUTDENT_CONTENT_COMMAND,void 0):eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_DELETE_COMMAND,to=>{if(Pt(to.target))return!1;const ro=$getSelection();return!!$isRangeSelection(ro)&&(to.preventDefault(),eo.dispatchCommand(DELETE_CHARACTER_COMMAND,!1))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ENTER_COMMAND,to=>{const ro=$getSelection();if(!$isRangeSelection(ro))return!1;if(to!==null){if((dt||lt||ft)&&ut)return!1;if(to.preventDefault(),to.shiftKey)return eo.dispatchCommand(INSERT_LINE_BREAK_COMMAND,!1)}return eo.dispatchCommand(INSERT_PARAGRAPH_COMMAND,void 0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(KEY_ESCAPE_COMMAND,()=>{const to=$getSelection();return!!$isRangeSelection(to)&&(eo.blur(),!0)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DROP_COMMAND,to=>{const[,ro]=Nt(to);if(ro.length>0){const oo=st(to.clientX,to.clientY);if(oo!==null){const{offset:io,node:so}=oo,ao=$getNearestNodeFromDOMNode(so);if(ao!==null){const lo=$createRangeSelection();if($isTextNode(ao))lo.anchor.set(ao.getKey(),io,"text"),lo.focus.set(ao.getKey(),io,"text");else{const co=ao.getParentOrThrow().getKey(),fo=ao.getIndexWithinParent()+1;lo.anchor.set(co,fo,"element"),lo.focus.set(co,fo,"element")}const uo=$normalizeSelection__EXPERIMENTAL(lo);$setSelection(uo)}eo.dispatchCommand(gt,ro)}return to.preventDefault(),!0}const no=$getSelection();return!!$isRangeSelection(no)},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,to=>{const[ro]=Nt(to),no=$getSelection();return!(ro&&!$isRangeSelection(no))},COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGOVER_COMMAND,to=>{const[ro]=Nt(to),no=$getSelection();if(ro&&!$isRangeSelection(no))return!1;const oo=st(to.clientX,to.clientY);if(oo!==null){const io=$getNearestNodeFromDOMNode(oo.node);$isDecoratorNode(io)&&to.preventDefault()}return!0},COMMAND_PRIORITY_EDITOR),eo.registerCommand(SELECT_ALL_COMMAND,()=>($selectAll(),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(COPY_COMMAND,to=>(copyToClipboard(eo,objectKlassEquals(to,ClipboardEvent)?to:null),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(CUT_COMMAND,to=>(async function(ro,no){await copyToClipboard(no,objectKlassEquals(ro,ClipboardEvent)?ro:null),no.update(()=>{const oo=$getSelection();$isRangeSelection(oo)?oo.removeText():$isNodeSelection(oo)&&oo.getNodes().forEach(io=>io.remove())})}(to,eo),!0),COMMAND_PRIORITY_EDITOR),eo.registerCommand(PASTE_COMMAND,to=>{const[,ro,no]=Nt(to);return ro.length>0&&!no?(eo.dispatchCommand(gt,ro),!0):isSelectionCapturedInDecoratorInput(to.target)?!1:$getSelection()!==null&&(function(oo,io){oo.preventDefault(),io.update(()=>{const so=$getSelection(),ao=objectKlassEquals(oo,InputEvent)||objectKlassEquals(oo,KeyboardEvent)?null:oo.clipboardData;ao!=null&&so!==null&&$insertDataTransferForRichText(ao,so,io)},{tag:"paste"})}(to,eo),!0)},COMMAND_PRIORITY_EDITOR))}const modProd$2=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:wt,$createQuoteNode:ht,$isHeadingNode:Et,$isQuoteNode:vt,DRAG_DROP_PASTE:gt,HeadingNode:Ct,QuoteNode:pt,eventFiles:Nt,registerRichText:Ot},Symbol.toStringTag,{value:"Module"})),mod$2=modProd$2,DRAG_DROP_PASTE=mod$2.DRAG_DROP_PASTE,eventFiles=mod$2.eventFiles,registerRichText=mod$2.registerRichText;var p=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?reactExports.useLayoutEffect:reactExports.useEffect;function E(eo){return eo.getEditorState().read($canShowPlaceholderCurry(eo.isComposing()))}function x({contentEditable:eo,placeholder:to,ErrorBoundary:ro}){const[no]=useLexicalComposerContext(),oo=function(io,so){const[ao,lo]=reactExports.useState(()=>io.getDecorators());return p(()=>io.registerDecoratorListener(uo=>{reactDomExports.flushSync(()=>{lo(uo)})}),[io]),reactExports.useEffect(()=>{lo(io.getDecorators())},[io]),reactExports.useMemo(()=>{const uo=[],co=Object.keys(ao);for(let fo=0;foio._onError(vo)},reactExports.createElement(reactExports.Suspense,{fallback:null},ao[po])),mo=io.getElementByKey(po);mo!==null&&uo.push(reactDomExports.createPortal(ho,mo,po))}return uo},[so,ao,io])}(no,ro);return function(io){p(()=>mergeRegister(registerRichText(io),registerDragonSupport(io)),[io])}(no),reactExports.createElement(reactExports.Fragment,null,eo,reactExports.createElement(g,{content:to}),oo)}function g({content:eo}){const[to]=useLexicalComposerContext(),ro=function(oo){const[io,so]=reactExports.useState(()=>E(oo));return p(()=>{function ao(){const lo=E(oo);so(lo)}return ao(),mergeRegister(oo.registerUpdateListener(()=>{ao()}),oo.registerEditableListener(()=>{ao()}))},[oo]),io}(to),no=t();return ro?typeof eo=="function"?eo(no):eo:null}const modProd$1=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:x},Symbol.toStringTag,{value:"Module"})),mod$1=modProd$1,RichTextPlugin=mod$1.RichTextPlugin;var RichEditorContentType=(eo=>(eo.IMAGE="image",eo.TEXT="text",eo))(RichEditorContentType||{});const FAKE_PROTOCOL="fake:",CAN_USE_DOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function d(eo,to){return eo.getEditorState().read(()=>{const ro=$getNodeByKey(to);return ro!==null&&ro.isSelected()})}function u(eo){const[to]=useLexicalComposerContext(),[ro,no]=reactExports.useState(()=>d(to,eo));return reactExports.useEffect(()=>{let oo=!0;const io=to.registerUpdateListener(()=>{oo&&no(d(to,eo))});return()=>{oo=!1,io()}},[to,eo]),[ro,reactExports.useCallback(oo=>{to.update(()=>{let io=$getSelection();$isNodeSelection(io)||(io=$createNodeSelection(),$setSelection(io)),$isNodeSelection(io)&&(oo?io.add(eo):io.delete(eo))})},[to,eo]),reactExports.useCallback(()=>{to.update(()=>{const oo=$getSelection();$isNodeSelection(oo)&&oo.clear()})},[to])]}const modProd=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:u},Symbol.toStringTag,{value:"Module"})),mod=modProd,useLexicalNodeSelection=mod.useLexicalNodeSelection;function useEventCallback(eo){const to=reactExports.useRef(eo);return reactExports.useLayoutEffect(()=>{to.current=eo}),reactExports.useCallback((...ro)=>{const no=to.current;return no(...ro)},[])}const INSERT_IMAGE_COMMAND=createCommand("INSERT_IMAGE_COMMAND"),INSERT_MULTIPLE_NODES_COMMAND=createCommand("INSERT_MULTIPLE_NODES_COMMAND"),RIGHT_CLICK_IMAGE_COMMAND=createCommand("RIGHT_CLICK_IMAGE_COMMAND");class RichEditorViewModel extends ViewModel{constructor(to){super(),this.editor$=new State(void 0),this.maxHeight$=new State(void 0),this.resolveUrlByPath$=new State(void 0),this.resolveUrlByFile$=new State(void 0),this._resetEditorState=to.resetEditorState,this._replaceImageSrc=to.replaceImageSrc,this._extractEditorData=to.extractEditorData}get requiredEditor(){const to=this.editor$.getSnapshot();if(!to)throw new Error("[RichEditor] editor is not prepared.");return to}focus(){this.requiredEditor.focus()}getContent(){const ro=this.requiredEditor.getEditorState();return this._extractEditorData(ro)}insert(to){this.requiredEditor.dispatchCommand(INSERT_MULTIPLE_NODES_COMMAND,{nodes:to})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const oo=$getRoot(),io=oo.getFirstChild();return io?oo.getChildrenSize()===1&&io instanceof ElementNode?io.isEmpty():!1:!0})}replaceImageSrc(to,ro){const no=this.editor$.getSnapshot();if(!no)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(no,to,ro)}reset(to){const ro=this.requiredEditor;this._resetEditorState(to)(ro)}async resolveUrlByFile(to){const ro=this.resolveUrlByFile$.getSnapshot();return ro?ro(to):""}async resolveUrlByPath(to){if(to.startsWith(FAKE_PROTOCOL))return to;const ro=this.resolveUrlByPath$.getSnapshot();return(ro==null?void 0:ro(to))??to}}const RichEditorContextType=reactExports.createContext({viewmodel:new RichEditorViewModel({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),useRichEditorContext=()=>{const eo=reactExports.useContext(RichEditorContextType),to=reactExports.useContext(LexicalComposerContext),ro=(to==null?void 0:to[0])??void 0;return ro&&eo.viewmodel.editor$.next(ro),eo},useAutoResize=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext(),ro=useStateValue(to.maxHeight$);return useEventCallback(()=>{if(ro===void 0)return;const oo=eo==null?void 0:eo.getRootElement();if(oo){oo.style.height="24px";const io=Math.min(ro,oo.scrollHeight);oo.style.height=`${io}px`}})},imageCache=new Set;function useSuspenseImage(eo){imageCache.has(eo)||new Promise(to=>{const ro=new Image;ro.src=eo,ro.onload=()=>{imageCache.add(eo),to(null)}})}function LazyImage({alt:eo,className:to,imageRef:ro,src:no,width:oo,height:io,maxWidth:so,onLoad:ao}){return useSuspenseImage(no),jsxRuntimeExports.jsx("img",{className:to||void 0,src:no,alt:eo,ref:ro,style:{height:io,maxWidth:so,width:oo,border:"1px solid #E5E5E5"},draggable:!1,onLoad:ao})}const ImageComponent=eo=>{const{viewmodel:to}=useRichEditorContext(),ro=useAutoResize(),{src:no,alt:oo,nodeKey:io,width:so,height:ao,maxWidth:lo,isImageNode:uo}=eo,[co,fo]=reactExports.useState(no),po=reactExports.useRef(null),ho=reactExports.useRef(null),[mo,vo,bo]=useLexicalNodeSelection(io),[xo]=useLexicalComposerContext(),[_o,So]=reactExports.useState(null),Eo=reactExports.useRef(null),ko=reactExports.useCallback(jo=>{if(mo&&$isNodeSelection($getSelection())){jo.preventDefault();const Fo=$getNodeByKey(io);uo(Fo)&&Fo.remove()}return!1},[mo,io,uo]),wo=reactExports.useCallback(jo=>{const Oo=$getSelection(),Fo=ho.current;return mo&&$isNodeSelection(Oo)&&Oo.getNodes().length===1&&Fo!==null&&Fo!==document.activeElement?(jo.preventDefault(),Fo.focus(),!0):!1},[mo]),Co=reactExports.useCallback(jo=>jo.target===po.current?(jo.preventDefault(),!0):!1,[]),Ro=reactExports.useCallback(jo=>ho.current===jo.target?($setSelection(null),xo.update(()=>{vo(!0);const Oo=xo.getRootElement();Oo!==null&&Oo.focus()}),!0):!1,[xo,vo]),Ao=reactExports.useCallback(jo=>{const Oo=jo;return Oo.target===po.current?(Oo.shiftKey?vo(!mo):(bo(),vo(!0)),!0):!1},[mo,vo,bo]),Io=reactExports.useCallback(jo=>{xo.getEditorState().read(()=>{const Oo=$getSelection();jo.target.tagName==="IMG"&&$isRangeSelection(Oo)&&Oo.getNodes().length===1&&xo.dispatchCommand(RIGHT_CLICK_IMAGE_COMMAND,jo)})},[xo]);reactExports.useEffect(()=>{let jo=!1;return to.resolveUrlByPath(no).then(Oo=>{jo||fo(Oo)}),()=>{jo=!0}},[to,no]),reactExports.useEffect(()=>{let jo=!0;const Oo=xo.getRootElement(),Fo=mergeRegister(xo.registerUpdateListener(({editorState:Go})=>{jo&&So(Go.read($getSelection))}),xo.registerCommand(SELECTION_CHANGE_COMMAND,(Go,qo)=>(Eo.current=qo,!1),COMMAND_PRIORITY_LOW),xo.registerCommand(CLICK_COMMAND,Ao,COMMAND_PRIORITY_LOW),xo.registerCommand(RIGHT_CLICK_IMAGE_COMMAND,Ao,COMMAND_PRIORITY_LOW),xo.registerCommand(DRAGSTART_COMMAND,Co,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_DELETE_COMMAND,ko,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_BACKSPACE_COMMAND,ko,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_ENTER_COMMAND,wo,COMMAND_PRIORITY_LOW),xo.registerCommand(KEY_ESCAPE_COMMAND,Ro,COMMAND_PRIORITY_LOW));return Oo==null||Oo.addEventListener("contextmenu",Io),()=>{jo=!1,Fo(),Oo==null||Oo.removeEventListener("contextmenu",Io)}},[xo,mo,io,bo,ko,Co,wo,Ro,Ao,Io,vo]);const $o=mo&&$isNodeSelection(_o),Mo=mo?`focused ${$isNodeSelection(_o)?"draggable":""}`:void 0,Ho=(co.startsWith(FAKE_PROTOCOL)?co.slice(FAKE_PROTOCOL.length):co).replace(/#[\s\S]*$/,"");return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx("div",{draggable:$o,children:jsxRuntimeExports.jsx(LazyImage,{className:Mo,src:Ho,alt:oo,imageRef:po,width:so,height:ao,maxWidth:lo,onLoad:ro})})})};class ImageNode extends DecoratorNode{constructor(to,ro,no,oo,io,so){super(so),this.src=to,this.alt=ro,this.maxWidth=no,this.width=oo||"inherit",this.height=io||"inherit"}static getType(){return RichEditorContentType.IMAGE}static clone(to){return new ImageNode(to.src,to.alt,to.maxWidth,to.width,to.height,to.__key)}static importDOM(){return{img:to=>({conversion:convertImageElement,priority:0})}}static importJSON(to){const{alt:ro,height:no,width:oo,maxWidth:io,src:so}=to;return $createImageNode({alt:ro,height:no,maxWidth:io,src:so,width:oo})}exportDOM(){const to=document.createElement("img");return to.setAttribute("src",this.src),to.setAttribute("alt",this.alt),to.setAttribute("width",this.width.toString()),to.setAttribute("height",this.height.toString()),{element:to}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:RichEditorContentType.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(to,ro){const no=this.getWritable();no.width=to,no.height=ro}createDOM(to){const ro=document.createElement("span"),oo=to.theme.image;return oo!==void 0&&(ro.className=oo),ro}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsx(ImageComponent,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:$isImageNode})})}}function $createImageNode({alt:eo,height:to,maxWidth:ro=240,src:no,width:oo,key:io}){return $applyNodeReplacement(new ImageNode(no,eo,ro,oo,to,io))}function $isImageNode(eo){return eo instanceof ImageNode}function convertImageElement(eo){if(eo instanceof HTMLImageElement){const{alt:to,src:ro,width:no,height:oo}=eo;return ro.startsWith("blob:")?null:{node:$createImageNode({alt:to,height:oo,src:ro,width:no})}}return null}const CommandPlugin=()=>{const[eo]=useLexicalComposerContext();return React.useLayoutEffect(()=>mergeRegister(eo.registerCommand(INSERT_MULTIPLE_NODES_COMMAND,to=>{const{nodes:ro}=to;if(ro.length===1&&ro[0].type===RichEditorContentType.TEXT){const io=ro[0];return eo.update(()=>{const so=$getSelection();so&&so.insertRawText(io.value)}),!0}let no;const oo=[];for(const io of ro)switch(io.type){case RichEditorContentType.TEXT:{const so=$createTextNode(io.value),ao=$createParagraphNode();no=so,ao.append(so),oo.push(ao);break}case RichEditorContentType.IMAGE:{const so=$createImageNode(io),ao=$createParagraphNode();no=so,ao.append(so),oo.push(ao);break}}return oo.length<=0||($insertNodes(oo),no&&$isRootOrShadowRoot(no.getParentOrThrow())&&no.selectEnd()),!0},COMMAND_PRIORITY_EDITOR)),[eo]),jsxRuntimeExports.jsx(React.Fragment,{})};CommandPlugin.displayName="CommandPlugin";const ACCEPTABLE_IMAGE_TYPES=["image/","image/heic","image/heif","image/gif","image/webp"],DragDropPastePlugin=()=>{const[eo]=useLexicalComposerContext(),{viewmodel:to}=useRichEditorContext();return reactExports.useLayoutEffect(()=>eo.registerCommand(DRAG_DROP_PASTE,ro=>{return no(),!0;async function no(){for(const oo of ro)if(isMimeType(oo,ACCEPTABLE_IMAGE_TYPES)){const io=oo.name,so=await to.resolveUrlByFile(oo);eo.dispatchCommand(INSERT_IMAGE_COMMAND,{alt:io,src:so})}}},COMMAND_PRIORITY_LOW),[eo,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};DragDropPastePlugin.displayName="DragDropPastePlugin";class Point{constructor(to,ro){this._x=to,this._y=ro}get x(){return this._x}get y(){return this._y}equals(to){return this.x===to.x&&this.y===to.y}calcDeltaXTo(to){return this.x-to.x}calcDeltaYTo(to){return this.y-to.y}calcHorizontalDistanceTo(to){return Math.abs(this.calcDeltaXTo(to))}calcVerticalDistance(to){return Math.abs(this.calcDeltaYTo(to))}calcDistanceTo(to){const ro=this.calcDeltaXTo(to)**2,no=this.calcDeltaYTo(to)**2;return Math.sqrt(ro+no)}}function isPoint(eo){return eo instanceof Point}class Rect{constructor(to,ro,no,oo){const[io,so]=ro<=oo?[ro,oo]:[oo,ro],[ao,lo]=to<=no?[to,no]:[no,to];this._top=io,this._right=lo,this._left=ao,this._bottom=so}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(to,ro,no,oo){return new Rect(to,ro,no,oo)}static fromLWTH(to,ro,no,oo){return new Rect(to,no,to+ro,no+oo)}static fromPoints(to,ro){const{y:no,x:oo}=to,{y:io,x:so}=ro;return Rect.fromLTRB(oo,no,so,io)}static fromDOM(to){const{top:ro,width:no,left:oo,height:io}=to.getBoundingClientRect();return Rect.fromLWTH(oo,no,ro,io)}equals(to){return to.top===this._top&&to.bottom===this._bottom&&to.left===this._left&&to.right===this._right}contains(to){if(isPoint(to)){const{x:ro,y:no}=to,oo=nothis._bottom,so=rothis._right;return{reason:{isOnBottomSide:io,isOnLeftSide:so,isOnRightSide:ao,isOnTopSide:oo},result:!oo&&!io&&!so&&!ao}}else{const{top:ro,left:no,bottom:oo,right:io}=to;return ro>=this._top&&ro<=this._bottom&&oo>=this._top&&oo<=this._bottom&&no>=this._left&&no<=this._right&&io>=this._left&&io<=this._right}}intersectsWith(to){const{left:ro,top:no,width:oo,height:io}=to,{left:so,top:ao,width:lo,height:uo}=this,co=ro+oo>=so+lo?ro+oo:so+lo,fo=no+io>=ao+uo?no+io:ao+uo,po=ro<=so?ro:so,ho=no<=ao?no:ao;return co-po<=oo+lo&&fo-ho<=io+uo}generateNewRect({left:to=this.left,top:ro=this.top,right:no=this.right,bottom:oo=this.bottom}){return new Rect(to,ro,no,oo)}}const SPACE=4,TARGET_LINE_HALF_HEIGHT=2,DRAGGABLE_BLOCK_MENU_CLASSNAME="draggable-block-menu",DRAG_DATA_FORMAT="application/x-lexical-drag-block",TEXT_BOX_HORIZONTAL_PADDING=28,Downward=1,Upward=-1,Indeterminate=0,DraggableBlockPlugin=eo=>{const{anchorElem:to=document.body}=eo,[ro]=useLexicalComposerContext();return useDraggableBlockMenu(ro,to,ro._editable)};DraggableBlockPlugin.displayName="DraggableBlockPlugin";let prevIndex=1/0;function getCurrentIndex(eo){return eo===0?1/0:prevIndex>=0&&prevIndex$getRoot().getChildrenKeys())}function getCollapsedMargins(eo){const to=(lo,uo)=>lo?parseFloat(window.getComputedStyle(lo)[uo]):0,{marginTop:ro,marginBottom:no}=window.getComputedStyle(eo),oo=to(eo.previousElementSibling,"marginBottom"),io=to(eo.nextElementSibling,"marginTop"),so=Math.max(parseFloat(ro),oo);return{marginBottom:Math.max(parseFloat(no),io),marginTop:so}}function getBlockElement(eo,to,ro,no=!1){const oo=eo.getBoundingClientRect(),io=getTopLevelNodeKeys(to);let so=null;return to.getEditorState().read(()=>{if(no){const uo=to.getElementByKey(io[0]),co=to.getElementByKey(io[io.length-1]),fo=uo==null?void 0:uo.getBoundingClientRect(),po=co==null?void 0:co.getBoundingClientRect();if(fo&&po&&(ro.ypo.bottom&&(so=co),so))return}let ao=getCurrentIndex(io.length),lo=Indeterminate;for(;ao>=0&&ao{no.transform=ro})}function setTargetLine(eo,to,ro,no){const{top:oo,height:io}=to.getBoundingClientRect(),{top:so,width:ao}=no.getBoundingClientRect(),{marginTop:lo,marginBottom:uo}=getCollapsedMargins(to);let co=oo;ro>=oo?co+=io+uo/2:co-=lo/2;const fo=co-so-TARGET_LINE_HALF_HEIGHT,po=TEXT_BOX_HORIZONTAL_PADDING-SPACE,ho=eo.style;ho.transform=`translate(${po}px, ${fo}px)`,ho.width=`${ao-(TEXT_BOX_HORIZONTAL_PADDING-SPACE)*2}px`,ho.opacity=".4"}function hideTargetLine(eo){const to=eo==null?void 0:eo.style;to&&(to.opacity="0",to.transform="translate(-10000px, -10000px)")}function useDraggableBlockMenu(eo,to,ro){const no=to.parentElement,oo=reactExports.useRef(null),io=reactExports.useRef(null),so=reactExports.useRef(!1),[ao,lo]=reactExports.useState(null);reactExports.useLayoutEffect(()=>{function fo(ho){const mo=ho.target;if(!isHTMLElement(mo)){lo(null);return}if(isOnMenu(mo))return;const vo=getBlockElement(to,eo,ho);lo(vo)}function po(){lo(null)}return no==null||no.addEventListener("mousemove",fo),no==null||no.addEventListener("mouseleave",po),()=>{no==null||no.removeEventListener("mousemove",fo),no==null||no.removeEventListener("mouseleave",po)}},[no,to,eo]),reactExports.useEffect(()=>{oo.current&&setMenuPosition(ao,oo.current,to)},[to,ao]),reactExports.useEffect(()=>{function fo(ho){if(!so.current)return!1;const[mo]=eventFiles(ho);if(mo)return!1;const{pageY:vo,target:bo}=ho;if(!isHTMLElement(bo))return!1;const xo=getBlockElement(to,eo,ho,!0),_o=io.current;return xo===null||_o===null?!1:(setTargetLine(_o,xo,vo,to),ho.preventDefault(),!0)}function po(ho){if(!so.current)return!1;const[mo]=eventFiles(ho);if(mo)return!1;const{target:vo,dataTransfer:bo,pageY:xo}=ho,_o=(bo==null?void 0:bo.getData(DRAG_DATA_FORMAT))||"",So=$getNodeByKey(_o);if(!So||!isHTMLElement(vo))return!1;const Eo=getBlockElement(to,eo,ho,!0);if(!Eo)return!1;const ko=$getNearestNodeFromDOMNode(Eo);if(!ko)return!1;if(ko===So)return!0;const wo=Eo.getBoundingClientRect().top;return xo>=wo?ko.insertAfter(So):ko.insertBefore(So),lo(null),!0}return mergeRegister(eo.registerCommand(DRAGOVER_COMMAND,ho=>fo(ho),COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,ho=>po(ho),COMMAND_PRIORITY_HIGH))},[to,eo]);const uo=fo=>{const po=fo.dataTransfer;if(!po||!ao)return;setDragImage(po,ao);let ho="";eo.update(()=>{const mo=$getNearestNodeFromDOMNode(ao);mo&&(ho=mo.getKey())}),so.current=!0,po.setData(DRAG_DATA_FORMAT,ho)},co=()=>{so.current=!1,hideTargetLine(io.current)};return reactDomExports.createPortal(jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:oo,draggable:!0,onDragStart:uo,onDragEnd:co,children:jsxRuntimeExports.jsx("div",{className:ro?"icon":""})}),jsxRuntimeExports.jsx("div",{className:"draggable-block-target-line",ref:io})]}),to)}const EditablePlugin=eo=>{const{editable:to}=eo,[ro]=useLexicalComposerContext();return reactExports.useEffect(()=>{ro.setEditable(to)},[ro,to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};EditablePlugin.displayName="EditablePlugin";const ImagesPlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>{if(!eo.hasNodes([ImageNode]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return mergeRegister(eo.registerCommand(INSERT_IMAGE_COMMAND,onInsertImage,COMMAND_PRIORITY_EDITOR),eo.registerCommand(DRAGSTART_COMMAND,onDragStart,COMMAND_PRIORITY_HIGH),eo.registerCommand(DRAGOVER_COMMAND,onDragover,COMMAND_PRIORITY_LOW),eo.registerCommand(DROP_COMMAND,to=>onDrop(to,eo),COMMAND_PRIORITY_HIGH))},[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};ImagesPlugin.displayName="ImagesPlugin";let _transparentImage;const getTransparentImage=()=>{if(_transparentImage===void 0){const eo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";_transparentImage=document.createElement("img"),_transparentImage.src=eo}return _transparentImage};function onInsertImage(eo){const to=$createImageNode(eo);return $insertNodes([to]),$isRootOrShadowRoot(to.getParentOrThrow())&&$wrapNodeInElement(to,$createParagraphNode).selectEnd(),!0}function onDragStart(eo){const to=getImageNodeInSelection();if(!to)return!1;const ro=eo.dataTransfer;if(!ro)return!1;const no=getTransparentImage();return ro.setData("text/plain","_"),ro.setDragImage(no,0,0),ro.setData("application/x-lexical-drag",JSON.stringify({type:RichEditorContentType.IMAGE,data:{alt:to.alt,height:to.height,key:to.getKey(),maxWidth:to.maxWidth,src:to.src,width:to.width}})),!0}function onDragover(eo){return getImageNodeInSelection()?(canDropImage(eo)||eo.preventDefault(),!0):!1}function onDrop(eo,to){const ro=getImageNodeInSelection();if(!ro)return!1;const no=getDragImageData(eo);if(!no)return!1;if(eo.preventDefault(),canDropImage(eo)){const oo=getDragSelection(eo);ro.remove();const io=$createRangeSelection();oo!=null&&io.applyDOMRange(oo),$setSelection(io),to.dispatchCommand(INSERT_IMAGE_COMMAND,no)}return!0}function getImageNodeInSelection(){const eo=$getSelection();if(!$isNodeSelection(eo))return null;const ro=eo.getNodes()[0];return $isImageNode(ro)?ro:null}function getDragImageData(eo){var ro;const to=(ro=eo.dataTransfer)==null?void 0:ro.getData("application/x-lexical-drag");if(!to)return null;try{const{type:no,data:oo}=JSON.parse(to);return no===RichEditorContentType.IMAGE?oo:null}catch{return null}}function canDropImage(eo){const to=eo.target;return!!(to&&to instanceof HTMLElement&&!to.closest("code, span.editor-image")&&to.parentElement&&to.parentElement.closest("div.ContentEditable__root"))}const getDOMSelection=eo=>CAN_USE_DOM?(eo||window).getSelection():null;function getDragSelection(eo){const to=eo,ro=to.target,no=ro==null?null:ro.nodeType===9?ro.defaultView:ro.ownerDocument.defaultView,oo=getDOMSelection(no);let io;if(document.caretRangeFromPoint)io=document.caretRangeFromPoint(to.clientX,to.clientY);else if(to.rangeParent&&oo!==null)oo.collapse(to.rangeParent,to.rangeOffset||0),io=oo.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return io}const OnKeyDownPlugin=eo=>{const[to]=useLexicalComposerContext(),ro=reactExports.useRef(eo.onKeyDown);return reactExports.useLayoutEffect(()=>{const no=oo=>{var io;(io=ro.current)==null||io.call(ro,oo)};return to.registerRootListener((oo,io)=>{io!==null&&io.removeEventListener("keydown",no),oo!==null&&oo.addEventListener("keydown",no)})},[to]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};OnKeyDownPlugin.displayName="OnKeyDownPlugin";const PlainContentPastePlugin=()=>{const[eo]=useLexicalComposerContext();return reactExports.useLayoutEffect(()=>mergeRegister(eo.registerUpdateListener(to=>{to.tags.has("paste")&&eo.update(()=>{to.dirtyLeaves.forEach(ro=>{const no=$getNodeByKey(ro);if($isTextNode(no)){const oo=$copyNode(no);oo.setFormat(0),oo.setStyle(""),no.replace(oo)}})})}),eo.registerNodeTransform(TextNode,to=>{const ro=to.getParentOrThrow();if($isLinkNode(ro)){const no=$createTextNode(ro.__url);ro.insertBefore(no),ro.remove()}})),[eo]),jsxRuntimeExports.jsx(reactExports.Fragment,{})};PlainContentPastePlugin.displayName="PlainContentPastePlugin";const resetEditorState=eo=>to=>{to.update(()=>{const ro=$getRoot();ro.clear();for(const no of eo)if(no!=null){if(typeof no=="string"){const oo=$createTextNode(no),io=$createParagraphNode();io.append(oo),ro.append(io);continue}if(typeof no=="object"){switch(no.type){case RichEditorContentType.IMAGE:{const oo=$createImageNode({alt:no.alt,src:no.src}),io=$createParagraphNode();io.append(oo),ro.append(io);break}case RichEditorContentType.TEXT:{const oo=$createTextNode(no.value),io=$createParagraphNode();io.append(oo),ro.append(io);break}default:throw console.log("item:",no),new TypeError(`[resetEditorState] unknown rich-editor content type: ${no.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",no)}})},RootType=RootNode.getType(),ParagraphType=ParagraphNode.getType(),TextType=TextNode.getType(),ImageType=ImageNode.getType(),LineBreakType=LineBreakNode.getType(),extractEditorData=eo=>{const to=eo.toJSON(),ro=[];for(const oo of to.root.children)no(oo);return ro;function no(oo){switch(oo.type){case ImageType:{const{src:io,alt:so}=oo;if(io.startsWith(FAKE_PROTOCOL)){const ao=ro[ro.length-1];(ao==null?void 0:ao.type)===RichEditorContentType.TEXT&&(ao.value+=` +`);break}ro.push({type:RichEditorContentType.IMAGE,src:io,alt:so});break}case LineBreakType:{const io=ro[ro.length-1];(io==null?void 0:io.type)===RichEditorContentType.TEXT&&(io.value+=` +`);break}case ParagraphType:{const io=oo.children;for(const so of io)no(so);break}case TextType:{const io=oo.text,so=ro[ro.length-1];(so==null?void 0:so.type)===RichEditorContentType.TEXT?so.value+=io:ro.push({type:RichEditorContentType.TEXT,value:io});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${oo.type})`)}}},replaceImageSrc=(eo,to,ro)=>{eo.update(()=>{const no=$getRoot();oo(no);function oo(io){switch(io.getType()){case RootType:case ParagraphType:for(const so of io.getChildren())oo(so);break;case ImageType:{const so=io;if(so.getSrc()===to){const ao=$createImageNode({alt:so.getAltText(),src:ro});so.replace(ao)}break}}}})};class RichEditor extends reactExports.Component{constructor(to){super(to),this.state={floatingAnchorElem:null};const{editable:ro=!0,initialContent:no}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:classes.editorPlaceholder,paragraph:classes.editorParagraph},nodes:[ImageNode,LinkNode],editable:ro,editorState:no?resetEditorState(no):null,onError:oo=>{console.error(oo)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:to,onKeyDown:ro,onFocus:no,onBlur:oo,onChange:io,onEditorInputWrapperRef:so}=this,{editable:ao=!0,placeholder:lo="Enter some text...",pluginsBeforeRichEditors:uo=[],pluginsAfterRichEditors:co=[]}=this.props,{floatingAnchorElem:fo}=this.state,po=mergeStyles$1(classes.editorContainer,this.props.editorContainerCls),ho=mergeStyles$1(classes.editorInput,this.props.editorInputCls),mo=mergeStyles$1(classes.editorInputBox,this.props.editorInputBoxCls),vo=mergeStyles$1(classes.editorPlaceholder,this.props.editorPlaceholderCls),bo=jsxRuntimeExports.jsx("div",{ref:so,className:mo,children:jsxRuntimeExports.jsx(ContentEditable,{onFocus:no,onBlur:oo,className:ho})});return jsxRuntimeExports.jsxs(LexicalComposer,{initialConfig:to,children:[jsxRuntimeExports.jsx(EditablePlugin,{editable:ao}),jsxRuntimeExports.jsx(CommandPlugin,{}),jsxRuntimeExports.jsxs("div",{className:po,children:[uo,jsxRuntimeExports.jsx(RichTextPlugin,{contentEditable:bo,placeholder:jsxRuntimeExports.jsx("div",{className:vo,children:lo}),ErrorBoundary:LexicalErrorBoundary}),co,jsxRuntimeExports.jsx(OnKeyDownPlugin,{onKeyDown:ro}),jsxRuntimeExports.jsx(OnChangePlugin,{onChange:io}),jsxRuntimeExports.jsx(DragDropPastePlugin,{}),jsxRuntimeExports.jsx(PlainContentPastePlugin,{}),jsxRuntimeExports.jsx(ImagesPlugin,{}),jsxRuntimeExports.jsx(HistoryPlugin,{}),fo&&jsxRuntimeExports.jsx(DraggableBlockPlugin,{anchorElem:fo})]})]})}onKeyDown(to){var ro,no;(no=(ro=this.props).onKeyDown)==null||no.call(ro,to)}onFocus(to){var ro,no;(no=(ro=this.props).onFocus)==null||no.call(ro,to)}onBlur(to){var ro,no;(no=(ro=this.props).onBlur)==null||no.call(ro,to)}onChange(to){var ro,no;(no=(ro=this.props).onChange)==null||no.call(ro,to)}onEditorInputWrapperRef(to){to!==null&&this.setState({floatingAnchorElem:to})}}const classes=mergeStyleSets({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),ReactRichEditor=reactExports.forwardRef((eo,to)=>{const[ro]=reactExports.useState(()=>new RichEditorViewModel({extractEditorData,replaceImageSrc,resetEditorState})),no=reactExports.useMemo(()=>({viewmodel:ro}),[ro]);return ro.resolveUrlByFile$.next(eo.resolveUrlByFile),ro.resolveUrlByPath$.next(eo.resolveUrlByPath),reactExports.useImperativeHandle(to,()=>({focus:()=>{no.viewmodel.focus()},getContent:()=>no.viewmodel.getContent(),insert:oo=>{no.viewmodel.insert(oo)},isEmpty:()=>no.viewmodel.isEmpty(),replaceImageSrc:(oo,io)=>{no.viewmodel.replaceImageSrc(oo,io)},reset:oo=>{no.viewmodel.reset(oo)}})),jsxRuntimeExports.jsx(RichEditorContextType.Provider,{value:no,children:jsxRuntimeExports.jsx(RichEditor,{...eo})})});ReactRichEditor.displayName="ReactRichEditor";makeStyles({editor:{...shorthands.padding("8px"),...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});makeStyles({chatbox:{...shorthands.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:tokens.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:tokens.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:tokens.colorScrollbarOverlay,...shorthands.border("1px","solid",tokens.colorNeutralBackground1),...shorthands.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:tokens.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...shorthands.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),...shorthands.overflow("hidden","auto")},footer:{...shorthands.flex(0,0,"auto")}});makeStyles({header:{},topbar:{...shorthands.padding("0px","16px"),...shorthands.borderBottom("1px","solid",tokens.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:tokens.colorNeutralForeground2}});makeStyles({main:{...shorthands.padding("0","16px"),...shorthands.overflow("hidden","auto"),height:"100%"}});makeStyles({footer:{...shorthands.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...shorthands.flex(0,0,"auto")},editor:{...shorthands.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...shorthands.border("1px","solid",tokens.colorNeutralBackground5),...shorthands.borderRadius("4px"),...shorthands.margin("8px","0px"),...shorthands.padding("2px","8px"),backgroundColor:tokens.colorStatusWarningBackground1,color:tokens.colorStatusWarningForeground1}});const capitalizeFirstLetter=eo=>eo.charAt(0).toUpperCase()+eo.slice(1),getSenderNameByLLMMessage=eo=>eo.role&&eo.name?`${eo.role}: ${eo.name}`:eo.role?eo.role:eo.name?eo.name:"user",defaultCalcContentForCopy=eo=>JSON.stringify(eo.content),messageRoleToCategory=eo=>{switch(eo){case"system":return ChatMessageCategory.System;case"user":return ChatMessageCategory.User;default:return ChatMessageCategory.Chatbot}},EMPTY_CONTEXTUAL_MENU_ITEMS=[],defaultUseContextualMenuItems=eo=>EMPTY_CONTEXTUAL_MENU_ITEMS;function LLMNodeMessageBubbleRenderer(eo){const{MessageAvatarRenderer:to,MessageContentRenderer:ro=DefaultMessageContentRenderer,MessageErrorRenderer:no=DefaultMessageErrorRenderer,MessageSenderRenderer:oo=DefaultMessageSenderRenderer,MessagePaginationRenderer:io=DefaultMessagePaginationRenderer,MessageActionBarRenderer:so=DefaultMessageActionBarRenderer,MessageStatusRenderer:ao=DefaultMessageStatusRenderer,useMessageContextualMenuItems:lo=defaultUseContextualMenuItems,useMessageActions:uo,initialPage:co=-1,locStrings:fo,message:po,className:ho}=eo,mo=useStyles$3(),[vo,bo]=React.useState((co%po.history.length+po.history.length)%po.history.length),[xo,_o]=React.useState(!1),So=React.useRef(null),Eo=React.useRef(null),ko=React.useCallback(()=>{_o(!1)},[]),wo=React.useCallback($o=>{const Bo=So.current,Mo=Eo.current;if(Bo&&Mo){const Ho=$o.clientX,jo=$o.clientY,Oo=Bo.getBoundingClientRect(),Fo=Oo.left+window.scrollX,Go=Oo.top+window.scrollY,qo=Ho-Fo,Xo=jo-Go;Mo.style.left=`${qo}px`,Mo.style.top=`${Xo}px`}},[]),Co=React.useCallback($o=>{$o.preventDefault(),wo($o),_o(!0)},[wo]),Ro=po.history[vo],Ao="left",Io=lo(Ro);return React.useEffect(()=>{const $o=()=>{_o(!1)};return document.addEventListener("mousedown",$o),()=>document.removeEventListener("mousedown",$o)},[]),jsxRuntimeExports.jsx("div",{className:mo.container,"data-chatbox-locator":ChatboxLocator.MessageBubble,"data-position":Ao,children:jsxRuntimeExports.jsx("div",{className:mergeClasses(mo.message,ho),"data-position":Ao,children:jsxRuntimeExports.jsxs("div",{className:mo.main,children:[jsxRuntimeExports.jsxs("div",{className:mo.heading,children:[jsxRuntimeExports.jsx("div",{className:mo.avatar,children:to&&jsxRuntimeExports.jsx(to,{data:Ro,position:Ao})}),jsxRuntimeExports.jsx("div",{className:mo.sender,children:jsxRuntimeExports.jsx(oo,{data:Ro,position:Ao})})]}),jsxRuntimeExports.jsxs("div",{ref:So,className:mo.content,"data-category":Ro.category,"data-chatbox-locator":ChatboxLocator.MessageContent,onContextMenu:Co,onClick:wo,children:[jsxRuntimeExports.jsx(ro,{content:Ro.content,className:mo.contentMain}),Ro.error&&jsxRuntimeExports.jsx(no,{error:Ro.error,locStrings:fo,className:mo.error}),typeof Ro.duration=="number"&&typeof Ro.tokens=="number"&&jsxRuntimeExports.jsx(ao,{duration:Ro.duration,tokens:Ro.tokens,locStrings:fo,className:mo.status}),po.history.length>1&&jsxRuntimeExports.jsx(io,{className:mo.pagination,message:po,current:vo,setCurrent:bo}),jsxRuntimeExports.jsx("div",{ref:Eo,className:mo.contentMenuAnchor}),Io.length>0&&jsxRuntimeExports.jsx(ContextualMenu,{items:Io,hidden:!xo,target:Eo,onItemClick:ko,onDismiss:ko,className:mo.contextualMenu}),jsxRuntimeExports.jsx("div",{className:mo.actionBar,"data-chatbox-locator":ChatboxLocator.MessageActionBar,children:jsxRuntimeExports.jsx(so,{data:Ro,locStrings:fo,useMessageActions:uo})})]})]})})})}LLMNodeMessageBubbleRenderer.displayName="LLMNodeMessageBubbleRenderer";const useStyles$3=makeStyles({container:{...shorthands.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},width:"calc(100% - 8px)",marginBottom:"18px"},heading:{display:"flex",alignContent:"center"},avatar:{...shorthands.flex(0,0,"auto")},main:{...shorthands.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...shorthands.flex(0,0,"auto"),fontSize:"16px",fontWeight:600,lineHeight:"22px"},content:{...shorthands.flex(1,1,"auto"),...shorthands.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...shorthands.margin(0)},[`&:hover > ${ChatboxSelector.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${ChatMessageCategory.System}"]`]:{color:tokens.colorNeutralForeground4},[`&&[data-category="${ChatMessageCategory.Error}"]`]:{backgroundColor:tokens.colorPaletteRedBackground2,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.Chatbot}"]`]:{backgroundColor:tokens.colorNeutralBackground4,color:tokens.colorNeutralForeground1},[`&&[data-category="${ChatMessageCategory.User}"]`]:{backgroundColor:tokens.colorBrandBackground2,color:tokens.colorNeutralForeground1}},contentMain:{...shorthands.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...shorthands.borderTop("1px","solid",tokens.colorPaletteDarkRedBorderActive),marginTop:"8px !important",paddingTop:"8px"},pagination:{},status:{...shorthands.borderTop("1px","solid",tokens.colorNeutralStroke1),...shorthands.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function MessageSenderRenderer(eo){const{data:to,position:ro,className:no}=eo,oo=useStyles$2(),{name:io,role:so}=to.content[0],ao={user:"success",assistant:"brand",system:"informative"};return jsxRuntimeExports.jsxs("div",{className:mergeClasses(oo.container,no),"data-position":ro,children:[io&&jsxRuntimeExports.jsx("span",{className:oo.name,"data-position":ro,"data-category":to.category,children:io}),so&&jsxRuntimeExports.jsx(Badge$2,{className:oo.role,color:ao[so],children:so})]})}MessageSenderRenderer.displayName="MessageSenderRenderer";const useStyles$2=makeStyles({container:{display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-start",color:tokens.colorNeutralForeground3},name:{...shorthands.margin("0px","0px","0px","6px"),fontSize:"16px",lineHeight:"22px"},role:{marginLeft:"6px"}}),OpenAIIcon=({styles:eo})=>jsxRuntimeExports.jsxs("svg",{fill:"currentColor",width:"20px",height:"20px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",style:eo,children:[jsxRuntimeExports.jsx("title",{children:"OpenAI icon"}),jsxRuntimeExports.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]});var RichContentType=(eo=>(eo.TEXT="text",eo.IMAGE_URL="image_url",eo.IMAGE_FILE="image_file",eo))(RichContentType||{});const useClasses$c=makeStyles({header:{display:"flex",alignItems:"center"},paramKey:{fontSize:"14px",fontWeight:600,lineHeight:"20px",marginRight:"4px"},type:{fontSize:"13px",marginLeft:"10px",lineHeight:"20px",color:tokens.colorNeutralForeground3},description:{fontSize:"14px",lineHeight:"21px"},required:{color:tokens.colorPaletteRedForeground1,marginLeft:"10px"},optional:{color:tokens.colorPaletteGreenForeground1,marginLeft:"10px"},sectionTitle:{fontSize:"12px",color:tokens.colorNeutralForeground3}}),FunctionParameterRow=({paramKey:eo,paramSchema:to,isRequired:ro})=>{const{type:no,description:oo,properties:io,required:so,enum:ao}=to,lo=useClasses$c();return jsxRuntimeExports.jsxs(Card,{appearance:"outline",children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsxs("div",{className:lo.header,children:[jsxRuntimeExports.jsx("div",{className:lo.paramKey,children:eo}),jsxRuntimeExports.jsx("div",{className:lo.type,children:no}),ro?jsxRuntimeExports.jsx("div",{className:lo.required,children:"Required"}):jsxRuntimeExports.jsx("div",{className:lo.optional,children:"Optional"})]})}),oo&&jsxRuntimeExports.jsx("div",{className:lo.description,children:oo}),io&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"properties",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:lo.sectionTitle,children:"Properties"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:Object.keys(io).map(uo=>jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:uo,paramSchema:io[uo],isRequired:so==null?void 0:so.includes(uo)},uo))})]})}),ao&&jsxRuntimeExports.jsx(Accordion,{collapsible:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"enum",children:[jsxRuntimeExports.jsx(AccordionHeader,{children:jsxRuntimeExports.jsx("div",{className:lo.sectionTitle,children:"Possible values"})}),jsxRuntimeExports.jsx(AccordionPanel,{children:ao.map(uo=>jsxRuntimeExports.jsx("div",{children:uo},uo))})]})})]})},useClasses$b=makeStyles({root:{...shorthands.padding("8px")},header:{fontSize:"24px",fontWeight:700,lineHeight:"30px"},parametersTitle:{fontSize:"20px",fontWeight:700,lineHeight:"28px"}}),LLMNodeToolCard=({tool:eo})=>{var ro;const to=useClasses$b();return jsxRuntimeExports.jsx("div",{className:to.root,children:jsxRuntimeExports.jsxs(Card,{children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{className:to.header,children:eo.function.name})}),eo.function.description&&jsxRuntimeExports.jsx("div",{children:eo.function.description}),eo.function.parameters&&jsxRuntimeExports.jsx("div",{className:to.parametersTitle,children:"Parameters"}),Object.keys(((ro=eo.function.parameters)==null?void 0:ro.properties)||{}).map(no=>{var io,so,ao,lo;const oo=(so=(io=eo.function.parameters)==null?void 0:io.properties)==null?void 0:so[no];return oo?jsxRuntimeExports.jsx(FunctionParameterRow,{paramKey:no,paramSchema:oo,isRequired:(lo=(ao=eo.function.parameters)==null?void 0:ao.required)==null?void 0:lo.includes(no)},no):null})]})})},RichTextChatboxMessageContent=eo=>{const{content:to,className:ro}=eo,no=to.map(co=>co.function_call).filter(Boolean),oo=to.reduce((co,fo)=>fo.tool_calls?[...co,...fo.tool_calls]:co,[]),io=to.reduce((co,fo)=>fo.tools?[...co,...fo.tools]:co,[]),so=reactExports.useMemo(()=>to.map(co=>weaveRichNodesIntoMarkup(co.content??"")).join(` + +`),[to]),ao=useStyles$1(),lo=mergeClasses(ao.content,ro,"rich-text-chatbox-message-content"),uo=useLocStrings();return jsxRuntimeExports.jsxs("div",{className:lo,children:[jsxRuntimeExports.jsx(ReactMarkdown,{text:so}),no.length>0&&jsxRuntimeExports.jsx("h3",{children:uo.Function_Calls}),no.map(co=>jsxRuntimeExports.jsx(JsonNodeCard,{title:(co==null?void 0:co.name)??"Function call",src:co==null?void 0:co.arguments},co==null?void 0:co.name)),oo.length>0&&jsxRuntimeExports.jsx("h3",{children:uo.Tool_Calls}),oo.map(co=>{const fo=io.find(po=>po.function.name===co.function.name);return jsxRuntimeExports.jsxs(Card,{style:{marginBottom:8},children:[jsxRuntimeExports.jsx(CardHeader,{header:fo?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("span",{children:["[",co.type,"]"]}),jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{children:jsxRuntimeExports.jsx("div",{className:ao.popoverTrigger,children:co.function.name})}),jsxRuntimeExports.jsx(PopoverSurface,{children:jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:fo})})]})]}):`[${co.type}] ${co.function.name}`}),jsxRuntimeExports.jsx(JsonNodeCard,{title:uo.Arguments,src:co.function.arguments})]},co.id)})]})},useStyles$1=makeStyles({content:{...shorthands.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"},popoverTrigger:{cursor:"pointer",marginLeft:"4px",color:tokens.colorBrandBackground,...shorthands.textDecoration("underline")}});function weaveRichNodesIntoMarkup(eo){if(typeof eo=="string")return eo;return Array.isArray(eo)?eo.map(to).filter(Boolean).join(` + +`):new Error("content type is not supported");function to(ro){var no,oo,io,so;switch(ro.type){case RichContentType.TEXT:return ro.text??"";case RichContentType.IMAGE_URL:return`![${(no=ro.image_url)==null?void 0:no.url}](${(oo=ro.image_url)==null?void 0:oo.url})`;case RichContentType.IMAGE_FILE:return`![${(io=ro.image_file)==null?void 0:io.path}](${(so=ro.image_file)==null?void 0:so.path})`;default:return""}}}const useAvatarStyles=makeStyles({avatar:{}}),useMessagesContainerStyles=makeStyles({messagesContainer:{display:"flex",height:"100%",width:"100%"},minimap:{boxSizing:"border-box",height:"100%",width:"8px"},minimapInner:{boxSizing:"border-box",width:"8px",...shorthands.border("1px","solid","rgba(0, 0, 128, 0.15)")}}),LLMNodeMessagesList=eo=>{const to=useSelectedSpan(),ro=useMessagesContainerStyles(),no=reactExports.useRef(null),oo=ChatboxSelector.MessageList,io=ChatboxSelector.MessageContent,so=eo.messages.map((ao,lo)=>({id:lo,type:ChatMessageType.Message,history:[{content:[{content:ao.content??"",name:ao.name,role:ao.role,timestamp:ao.timestamp,function_call:ao.function_call,tool_calls:ao.tool_calls,tools:ao.tools}],category:messageRoleToCategory(ao.role),from:capitalizeFirstLetter(getSenderNameByLLMMessage(ao)),timestamp:ao.role==="assistant"?to==null?void 0:to.start_time:to==null?void 0:to.end_time}]}));return reactExports.useEffect(()=>{const ao=document.querySelectorAll(".rich-text-chatbox-message-content"),lo=ao[ao.length-1];lo&&lo.scrollIntoView({block:"end"})},[]),jsxRuntimeExports.jsxs("div",{className:ro.messagesContainer,children:[jsxRuntimeExports.jsx(ChatboxMessageList,{locStrings:defaultLocStrings$1,messages:so,calcContentForCopy:defaultCalcContentForCopy,containerRef:no}),jsxRuntimeExports.jsx("div",{className:ro.minimap,children:jsxRuntimeExports.jsx(Minimap,{className:ro.minimapInner,syncScale:!1,sourceRootRef:no,sourceQuerySelector:oo,sourceElementQuerySelector:io})})]})},MessageAvatarRenderer=({data:eo,className:to})=>{const ro=useAvatarStyles();return eo.category===ChatMessageCategory.System?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(Alert24Regular,{})}):eo.category===ChatMessageCategory.User?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(Person24Regular,{})}):eo.category===ChatMessageCategory.Chatbot?jsxRuntimeExports.jsx("div",{className:mergeClasses(ro.avatar,to),children:jsxRuntimeExports.jsx(OpenAIIcon,{})}):null};function ChatboxMessageList(eo){const{locStrings:to,messages:ro,calcContentForCopy:no,containerRef:oo}=eo,io=useCopyAction(to,no),so=reactExports.useCallback(()=>[io],[io]),ao=useStyles();return jsxRuntimeExports.jsx("div",{ref:oo,className:ao.main,children:jsxRuntimeExports.jsx(MessageListRenderer,{locStrings:to,messages:ro,MessageAvatarRenderer,MessageContentRenderer:RichTextChatboxMessageContent,MessageSenderRenderer,MessageBubbleRenderer:LLMNodeMessageBubbleRenderer,useMessageActions:so})})}ChatboxMessageList.displayName="ChatboxMessageList";const useStyles=makeStyles({main:{...shorthands.padding("0","6px"),...shorthands.overflow("auto"),...shorthands.flex(1),height:"100%"}}),getVariableHoverMarkdown=eo=>{let to="";return typeof eo=="string"?to=eo:to=JSON.stringify(eo),to},useLLMJinjaEditorMount=eo=>reactExports.useCallback(ro=>{const no=Object.keys(eo),oo=ro.getModel();no.forEach(io=>{const so=oo==null?void 0:oo.findMatches(`[^.](${io})\\s*(%|\\})`,!1,!0,!1,null,!1);so==null||so.forEach(ao=>{ro.createDecorationsCollection([{range:{...ao.range,startColumn:ao.range.startColumn+1,endColumn:ao.range.endColumn-1},options:{isWholeLine:!1,inlineClassName:"llm-variable-highlight",hoverMessage:{value:getVariableHoverMarkdown(eo[io])}}}])})})},[eo]),useMessageCardClasses=makeStyles({card:{...shorthands.borderRadius("8px"),...shorthands.borderColor(tokens.colorNeutralStroke1),...shorthands.borderWidth("1px"),...shorthands.borderStyle("solid"),...shorthands.padding("16px"),...shorthands.margin("16px")}}),useClasses$a=makeStyles({root:{height:"100%",display:"flex",flexDirection:"column",...shorthands.overflow("auto")},title:{fontSize:"14px",lineHeight:"20px",fontStyle:"italic",fontWeight:400,color:tokens.colorNeutralForeground1},card:{flexGrow:1,...shorthands.padding("0px"),...shorthands.margin("0px")}}),LLMNodePromptTemplateTab=({promptTemplate:eo,templateVariables:to})=>{const ro=useClasses$a(),no=useMessageCardClasses(),io=useIsDark()?"vs-dark":"light",so=useLLMJinjaEditorMount(to);return jsxRuntimeExports.jsx("div",{className:ro.root,children:jsxRuntimeExports.jsx(Card,{className:mergeClasses(no.card,ro.card),children:jsxRuntimeExports.jsx(JinjaSyntaxHighlighter,{value:eo,theme:io,onMount:so})})})},LLMNodeTools=({tools:eo})=>jsxRuntimeExports.jsx("div",{children:eo.map((to,ro)=>jsxRuntimeExports.jsx(LLMNodeToolCard,{tool:to},ro))}),useLLMNodeClasses=makeStyles({root:{height:"100%",display:"flex"},header:{display:"flex",width:"100%",justifyContent:"space-between"},content:{...shorthands.overflow("auto")}}),LLMNodeInfo=({item:eo})=>{var _o,So,Eo;const to=useSelectedSpan(),ro=useParentSpanOfSelectedSpan(),no=ro==null?void 0:ro.attributes,oo=JSON.parse(((_o=to==null?void 0:to.attributes)==null?void 0:_o.inputs)??"{}"),[io,so]=reactExports.useState(ViewStatus.loading),ao=useLoadSpanEvents(ro,BuildInEventName["prompt.template"]),lo=useSpanEventsWithPayload(ro,BuildInEventName["prompt.template"])[0],uo=lo?(So=lo.attributes)==null?void 0:So["prompt.template"]:no==null?void 0:no["prompt.template"],co=lo?(Eo=lo.attributes)==null?void 0:Eo["prompt.variables"]:JSON.parse((no==null?void 0:no["prompt.variables"])??"{}"),fo=Object.keys(co??{}),po={},{inputMessages:ho,outputMessages:mo,tools:vo}=useMessagesOfSelectedSpan();Object.keys(oo).forEach(ko=>{ko!=="messages"&&(fo.includes(ko)||(po[ko]=oo[ko]))});const bo=[...ho,...mo],xo=useLLMNodeClasses();return reactExports.useEffect(()=>{eo==="promptTemplate"&&ao({onCompleted:ko=>{so(ko?ViewStatus.error:ViewStatus.loaded)}})},[eo]),eo==="raw"?jsxRuntimeExports.jsx(DefaultNodeInfo,{}):eo==="promptTemplate"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[io===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny",style:{marginTop:"30vh"}}),io===ViewStatus.loaded&&uo&&jsxRuntimeExports.jsx(LLMNodePromptTemplateTab,{promptTemplate:uo,templateVariables:co}),io===ViewStatus.error&&jsxRuntimeExports.jsx("div",{style:{marginTop:"30vh",textAlign:"center"},children:jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{so(ViewStatus.loading),ao({onCompleted:ko=>{so(ko?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})})]}):jsxRuntimeExports.jsx(Card,{className:xo.root,children:jsxRuntimeExports.jsxs("div",{className:xo.content,children:[eo==="messages"&&jsxRuntimeExports.jsx(LLMNodeMessagesList,{messages:bo}),eo==="llmParameters"&&jsxRuntimeExports.jsx(LLMNodeInvocationParametersTab,{invocationParameters:po}),eo==="tools"&&jsxRuntimeExports.jsx(LLMNodeTools,{tools:vo})]})})},getMimeTypeFromContentType=eo=>{var ro;return(ro=/^\s*([^;\s]*)(?:;|\s|$)/.exec(eo))==null?void 0:ro[1].toLowerCase()},NodeHttpCard=({type:eo})=>{const to=useLocStrings(),ro=useSelectedSpan(),no=React.useMemo(()=>parseHttpSpanAttributes(ro),[ro]);if(!no)return null;const{urlFull:oo}=no,io=parseInt(no.status_code);let so;io>=200&&io<300?so="success":io>=400?so="danger":so="warning";const ao=jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[no.status_code!==void 0?jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",color:so,children:[to.Status," ",jsxRuntimeExports.jsx("span",{style:{marginLeft:4},children:no.status_code})]}):null,jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:no.method}),jsxRuntimeExports.jsx("span",{style:{marginRight:8,wordBreak:"break-all"},children:oo})]}),lo=eo==="response"?no.response:no.request;return jsxRuntimeExports.jsx(Card,{style:{marginBottom:12},children:jsxRuntimeExports.jsx(NodeHttpItem,{type:eo,header:ao,data:lo})})},NodeHttpItem=({type:eo,header:to,data:ro})=>{const no=useLocStrings(),{headers:oo,body:io}=ro,so=JSON.stringify(ro),ao=eo==="response",lo=ao?"Response":"Request";let uo;if(io)if(ao){const co=getMimeTypeFromContentType(oo["content-type"]);uo=jsxRuntimeExports.jsx(HttpResponseContent,{mimeType:co,body:io})}else uo=jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:io,title:no[`${lo} Body`]});return jsxRuntimeExports.jsx(BasicViewer,{showEmpty:!1,previewRender:()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:oo,title:no[`${lo} Headers`]}),uo]}),rawRender:()=>jsxRuntimeExports.jsx(Card,{style:{wordBreak:"break-all"},children:so}),headerRender:to?()=>to:void 0})},HttpResponseContent=({mimeType:eo,body:to=""})=>{const ro=useLocStrings();return eo!=null&&eo.includes("json")?jsxRuntimeExports.jsx(JsonNodeCard,{wrapperStyle:{background:tokens.colorNeutralBackground2},src:to,title:ro["Response Body"]}):eo==="text/event-stream"?jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ro["Response Body"]})})}),to.split("data:").filter(no=>!!no).map((no,oo)=>jsxRuntimeExports.jsxs("div",{children:["data: ",no]},`${no}-${oo}`))]}):jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12,background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:ro["Response Body"]})})}),jsxRuntimeExports.jsx("div",{style:{wordBreak:"break-all"},children:to})]})},NodeRawCard=()=>{const eo=useSelectedSpan(),to=useSpanEventsLoadStatus(),ro=useLocStrings(),[,no]=reactExports.useReducer(oo=>oo+1,0);return jsxRuntimeExports.jsx(JsonNodeCard,{title:ro.Raw_JSON,src:eo,jsonViewerProps:{customizeNode:({depth:oo,indexOrName:io,node:so})=>{var lo,uo;if(oo===3&&typeof io=="number"&&typeof so.name=="string"&&typeof so.timestamp=="string"&&typeof so.attributes=="object"){const co=`${(lo=eo==null?void 0:eo.context)==null?void 0:lo.span_id}__${(uo=eo==null?void 0:eo.external_event_data_uris)==null?void 0:uo[io]}`;return to.get(co)==="success"?void 0:jsxRuntimeExports.jsx(NodeEventItem,{name:so.name,index:io,timestamp:so.timestamp,forceUpdate:no})}}}})},NodeEventItem=({index:eo,name:to,timestamp:ro,forceUpdate:no})=>{const oo=useSelectedSpan(),io=useLocStrings(),so=useLoadSpanEvents(oo,to,eo),[ao,lo]=reactExports.useState(ViewStatus.hidden);if(ao===ViewStatus.loaded){no();return}let uo=io.load_all;return ao===ViewStatus.loading?uo=io.loading:ao===ViewStatus.error&&(uo=io["Failed to load, click to try again"]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"name:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${to}",`})]}),jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"1em"},children:[jsxRuntimeExports.jsx("span",{style:{color:"var(--json-property)"},children:"timestamp:"}),jsxRuntimeExports.jsx("span",{style:{color:"var(--json-string)"},children:` "${ro}",`})]}),jsxRuntimeExports.jsx("div",{style:{paddingLeft:"1em"},children:jsxRuntimeExports.jsxs(Button$2,{size:"small",appearance:"transparent",style:{padding:0,color:"rgb(163, 190, 233)",justifyContent:"flex-start"},onClick:()=>{lo(ViewStatus.loading),so({onCompleted:co=>{lo(co?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})},children:["... ",uo]})}),jsxRuntimeExports.jsx("span",{children:"}"})]})},RetrievalNodeInfo=()=>{const eo=useSelectedSpan(),to=useLocStrings(),[ro,no]=reactExports.useState(ViewStatus.loading),oo=useLoadSpanEvents(eo,BuildInEventName["retrieval.documents"]),io=useSpanEventsWithPayload(eo,BuildInEventName["retrieval.documents"]),so=(eo==null?void 0:eo.attributes)??{};let ao=[];if(io.length>0)ao=io.map(ho=>ho.attributes).flat();else if(typeof so["retrieval.documents"]=="string")try{ao=JSON.parse(so["retrieval.documents"])}catch{ao=[]}const[lo,uo]=reactExports.useState(ViewStatus.loading),co=useLoadSpanEvents(eo,BuildInEventName["retrieval.query"]),fo=useSpanEventsWithPayload(eo,BuildInEventName["retrieval.query"]);let po=so["retrieval.query"];return fo.length>0&&(po=fo.map(ho=>ho.attributes).join(` +`)),reactExports.useEffect(()=>{oo({onCompleted:ho=>{no(ho?ViewStatus.error:ViewStatus.loaded)}}),co({onCompleted:ho=>{uo(ho?ViewStatus.error:ViewStatus.loaded)}})},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Query})})}),lo===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),lo===ViewStatus.loaded&&(po??""),lo===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{uo(ViewStatus.loading),co({onCompleted:ho=>{uo(ho?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]}),jsxRuntimeExports.jsxs(Card,{style:{marginBottom:12},children:[jsxRuntimeExports.jsx(CardHeader,{header:jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:to.Documents})})}),ro===ViewStatus.loading&&jsxRuntimeExports.jsx(Spinner,{size:"tiny"}),ro===ViewStatus.loaded&&jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ao.map(ho=>jsxRuntimeExports.jsx(Document$1,{document:ho},ho["document.id"]))}),ro===ViewStatus.error&&jsxRuntimeExports.jsx(DefaultNodeLoadError,{onRetry:()=>{no(ViewStatus.loading),oo({onCompleted:ho=>{no(ho?ViewStatus.error:ViewStatus.loaded)},forceRefresh:!0})}})]})]})},Document$1=({document:eo})=>{const to=useRetrievalNodeDetailClasses(),[ro,no]=reactExports.useState(["content"]),oo=reactExports.useCallback((so,ao)=>{no(ao.openItems)},[]),io=useLocStrings();return jsxRuntimeExports.jsxs(Card,{style:{background:tokens.colorNeutralBackground2},children:[jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:6},children:[jsxRuntimeExports.jsx(Document16Regular,{}),jsxRuntimeExports.jsx("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:"id"})," ",eo["document.id"]]}),relationship:"description",children:jsxRuntimeExports.jsxs("span",{children:[io.document," ",eo["document.id"]]})})}),jsxRuntimeExports.jsx(Tooltip,{content:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600},children:io.score})," ",eo["document.score"]]}),relationship:"description",children:jsxRuntimeExports.jsxs(Badge$2,{appearance:"outline",children:["score ",floatFormatter(eo["document.score"])]})})]}),jsxRuntimeExports.jsx(Divider$2,{}),jsxRuntimeExports.jsx(Card,{style:{background:tokens.colorNeutralBackground3},children:jsxRuntimeExports.jsx(Accordion,{openItems:ro,onToggle:oo,collapsible:!0,multiple:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{value:"content",children:[jsxRuntimeExports.jsx(AccordionHeader,{className:to.accordionHeader,children:io.content}),jsxRuntimeExports.jsx(AccordionPanel,{children:jsxRuntimeExports.jsx(MarkdownViewer,{content:eo["document.content"]})})]})})}),jsxRuntimeExports.jsx(JsonNodeCard,{title:"metadata",src:eo["document.metadata"],wrapperStyle:{background:tokens.colorNeutralBackground3}})]})};function SpanType({span:eo,showText:to=!0,className:ro}){const no=useClasses$9(),{color:oo,backgroundColor:io,borderColor:so,icon:ao,text:lo}=reactExports.useMemo(()=>(eo==null?void 0:eo.toLocaleLowerCase())==="flow"?{color:tokens.colorBrandForeground2,backgroundColor:tokens.colorBrandBackground2,borderColor:tokens.colorBrandStroke2,icon:jsxRuntimeExports.jsx(Flow16Regular,{}),text:"Flow"}:(eo==null?void 0:eo.toLocaleLowerCase())==="function"||(eo==null?void 0:eo.toLocaleLowerCase())==="tool"?{color:tokens.colorPaletteBerryForeground2,backgroundColor:tokens.colorPaletteBerryBackground1,borderColor:tokens.colorPaletteBerryBorder1,icon:jsxRuntimeExports.jsx(HexagonThree16Regular,{}),text:"Function"}:(eo==null?void 0:eo.toLocaleLowerCase())==="retrieval"?{color:tokens.colorPaletteDarkOrangeForeground2,backgroundColor:tokens.colorPaletteDarkOrangeBackground1,borderColor:tokens.colorPaletteDarkOrangeBorder1,icon:jsxRuntimeExports.jsx(BranchRequest16Regular,{}),text:"Retrieval"}:(eo==null?void 0:eo.toLocaleLowerCase())==="embedding"?{color:tokens.colorPaletteLightGreenForeground2,backgroundColor:tokens.colorPaletteLightGreenBackground1,borderColor:tokens.colorPaletteLightGreenBorder1,icon:jsxRuntimeExports.jsx(FlowchartRegular,{}),text:"Embedding"}:(eo==null?void 0:eo.toLocaleLowerCase())==="llm"?{color:tokens.colorPaletteMarigoldForeground2,backgroundColor:tokens.colorPaletteMarigoldBackground1,borderColor:tokens.colorPaletteMarigoldBorder1,icon:jsxRuntimeExports.jsx(OpenAIIcon,{styles:{height:"16px",width:"16px"}}),text:"LLM"}:(eo==null?void 0:eo.toLocaleLowerCase())==="network"?{color:tokens.colorPaletteRedForeground2,backgroundColor:tokens.colorPaletteRedBackground1,borderColor:tokens.colorPaletteRedBorder1,icon:jsxRuntimeExports.jsx(Link16Regular,{}),text:"Network"}:{color:tokens.colorPaletteYellowForeground2,backgroundColor:tokens.colorPaletteYellowBackground1,borderColor:tokens.colorPaletteYellowBorder1,icon:jsxRuntimeExports.jsx(QuestionCircle16Regular,{}),text:"Unknown"},[eo]);return jsxRuntimeExports.jsx(Badge$2,{appearance:"filled",size:"large",className:mergeClasses(no.root,ro),icon:ao,style:{color:oo,backgroundColor:io,borderColor:so},children:to&&lo})}const useClasses$9=makeStyles({root:{height:"24px",...shorthands.padding("0","6px")}}),NodeDetail=({emptyTip:eo=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"No Data"})})=>{var So,Eo,ko,wo,Co;const to=useNodeDetailClasses(),ro=useSelectedSpan(),no=useEvaluationSpansOfSelectedSpan(),oo=useRootSpanIdOfSelectedSpans(),io=useLocStrings(),so=getSpanType(ro),ao=reactExports.useMemo(()=>{var Ro;return oo===((Ro=ro==null?void 0:ro.context)==null?void 0:Ro.span_id)},[oo,ro]),lo=reactExports.useMemo(()=>(so==null?void 0:so.toLowerCase())==="http",[so]),uo=reactExports.useMemo(()=>(so==null?void 0:so.toLowerCase())==="llm",[so]),co=reactExports.useMemo(()=>{const Ro=so==null?void 0:so.toLowerCase();let Ao="Input_&_Output";return Ro==="retrieval"?Ao="Retrieval":Ro==="embedding"&&(Ao="Embedding"),Ao},[so]),fo=[...uo?[{key:"llm_conversations",name:io.Conversations}]:[],...lo?[{key:"response",name:io.Response},{key:"request",name:io.Request}]:[{key:"info",name:io[`${co}`]}],{key:"raw",name:io.Raw_JSON},...uo?[{key:"llm_template",name:io.Prompt_Template},{key:"llm_params",name:io.LLM_Parameters},{key:"llm_tools",name:io.Tools}]:[],...ao?[{key:"evaluations",name:io.Metrics}]:[],{key:"error",name:io.Exception}];let po="info";uo?po="llm_conversations":lo&&(po="response");const[ho,mo]=reactExports.useState(po),vo=(So=ro==null?void 0:ro.events)==null?void 0:So.filter(Ro=>Ro.name===BuildInEventName.exception),bo=(vo==null?void 0:vo.length)??0,xo=no.length??0,_o=(Eo=ro==null?void 0:ro.attributes)!=null&&Eo.inputs?safelyParseJson((ko=ro==null?void 0:ro.attributes)==null?void 0:ko.inputs).model:void 0;return ro?jsxRuntimeExports.jsxs("div",{className:to.wrapper,children:[jsxRuntimeExports.jsxs("div",{className:to.header,children:[so&&jsxRuntimeExports.jsx(SpanType,{span:so,showText:!1,className:to.headerSpan})," ",jsxRuntimeExports.jsx(Tooltip,{content:ro.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:to.headerTitle,children:`${ro.name}`})}),jsxRuntimeExports.jsxs("div",{className:to.headerRight,children:[_o&&jsxRuntimeExports.jsx("div",{className:to.headerModalName,children:_o}),jsxRuntimeExports.jsx(NodeToken,{span:ro,size:UISize.small}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:ro.start_time,endTimeISOString:ro.end_time,size:UISize.small})]})]}),jsxRuntimeExports.jsx(Divider$2,{className:to.headerDivider}),((Co=(wo=ro==null?void 0:ro.status)==null?void 0:wo.status_code)==null?void 0:Co.toLowerCase())==="error"&&jsxRuntimeExports.jsx(MessageBar,{intent:"error",onClick:()=>{mo("error")},style:{cursor:"pointer"},children:jsxRuntimeExports.jsxs(MessageBarBody,{children:[jsxRuntimeExports.jsxs(MessageBarTitle,{children:[" ",io.Error]}),ro.status.message]})}),jsxRuntimeExports.jsx(TabList,{selectedValue:ho,onTabSelect:(Ro,Ao)=>{mo(Ao.value)},children:fo.map(Ro=>jsxRuntimeExports.jsxs(Tab$1,{value:Ro.key,style:{flexShrink:1},children:[Ro.name,Ro.key==="evaluations"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:"informative",count:xo,size:"small",showZero:!0})]}),Ro.key==="error"&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsx(CounterBadge,{appearance:"filled",color:bo>0?"danger":"informative",count:bo,size:"small",showZero:!0})]})]},Ro.key))}),jsxRuntimeExports.jsx(Divider$2,{className:to.tabDivider}),jsxRuntimeExports.jsxs("div",{className:to.content,children:[uo&&ho==="llm_conversations"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"messages"}),!lo&&ho==="info"&&jsxRuntimeExports.jsx(NodeInfoCard,{}),lo&&ho==="response"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"response"}),lo&&ho==="request"&&jsxRuntimeExports.jsx(NodeHttpCard,{type:"request"}),ho==="raw"&&jsxRuntimeExports.jsx(NodeRawCard,{}),uo&&ho==="llm_template"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"promptTemplate"}),uo&&ho==="llm_params"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"llmParameters"}),uo&&ho==="llm_tools"&&jsxRuntimeExports.jsx(LLMNodeInfo,{item:"tools"}),ao&&ho==="evaluations"&&jsxRuntimeExports.jsx(EvaluationsTab,{}),ho==="error"&&jsxRuntimeExports.jsx(ErrorsTab,{})]})]}):eo},NodeInfoCard=()=>{const eo=useSelectedSpan(),to=getSpanType(eo);switch(to==null?void 0:to.toLowerCase()){case"llm":return jsxRuntimeExports.jsx(LLMNodeInfo,{item:"raw"});case"retrieval":return jsxRuntimeExports.jsx(RetrievalNodeInfo,{});case"embedding":return jsxRuntimeExports.jsx(EmbeddingNodeInfo,{});default:return jsxRuntimeExports.jsx(DefaultNodeInfo,{})}},SpansTreeContext=reactExports.createContext({parentIdLookUp:new Map,collapsedSpanIds:Set$1(),setCollapsedSpanIds:()=>{}}),useIsLeafSpan=eo=>{var no;const ro=reactExports.useContext(SpansTreeContext).parentIdLookUp;return!ro.get(eo)||((no=ro.get(eo))==null?void 0:no.length)===0},useToggleCollapse=()=>{const{setCollapsedSpanIds:eo}=reactExports.useContext(SpansTreeContext);return reactExports.useCallback(to=>{eo(ro=>ro.has(to)?ro.delete(to):ro.add(to))},[eo])},useIsCollapsed=eo=>reactExports.useContext(SpansTreeContext).collapsedSpanIds.has(eo),useClasses$8=makeStyles({root:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"nowrap",cursor:"pointer",boxSizing:"border-box",position:"relative",...shorthands.padding("6px","8px"),...shorthands.gap("6px")},toggleButton:{marginLeft:"-6px",marginRight:"-2px"},spanName:{...shorthands.flex(0,1,"auto"),fontSize:"14px",color:tokens.colorNeutralForeground1,...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:"4px"},lastInputMessage:{...shorthands.margin("0px","0px","0px","4px"),fontSize:"12px",color:tokens.colorNeutralForeground2},lastInputMessageLabel:shorthands.margin("0px","4px","0px","0px"),right:{display:"flex",flexWrap:"nowrap",justifyContent:"flex-end",marginLeft:"auto",...shorthands.flex(0,1,"auto"),...shorthands.padding("0px","10px","0px","0px"),...shorthands.gap(tokens.spacingHorizontalXS)},selectedBar:{position:"absolute",backgroundColor:"#1372ED",width:"3px",height:"24px",left:"0px",...shorthands.borderRadius("3px")}}),TreeNode=({node:eo,span:to})=>{var po,ho,mo,vo,bo,xo;const ro=getSpanType(to),no=bitset.has(GraphNodeStatus.Selected)(eo.status),oo=bitset.has(GraphNodeStatus.Activated)(eo.status),io=useClasses$8(),so=useIsLeafSpan(((po=to.context)==null?void 0:po.span_id)??""),ao=useIsCollapsed(((ho=to.context)==null?void 0:ho.span_id)??""),lo=useToggleCollapse(),uo=tokens.colorNeutralStroke2;let co=tokens.colorNeutralBackground1;no&&(co=tokens.colorNeutralBackground1Selected),oo&&(co=tokens.colorNeutralBackground1Hover);const fo=reactExports.useCallback(_o=>{var So;_o.preventDefault(),_o.stopPropagation(),lo(((So=to.context)==null?void 0:So.span_id)??"")},[(mo=to.context)==null?void 0:mo.span_id,lo]);return jsxRuntimeExports.jsx("foreignObject",{x:eo.x,y:eo.y,width:TREE_NODE_WIDTH,height:TREE_NODE_HEIGHT,style:{borderRadius:tokens.borderRadiusXLarge,border:`1px solid ${uo}`,backgroundColor:co,boxShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.05)"},children:jsxRuntimeExports.jsxs("div",{className:io.root,children:[no&&jsxRuntimeExports.jsx("div",{className:io.selectedBar}),!so&&jsxRuntimeExports.jsx(Button$2,{size:"small",className:io.toggleButton,onClick:fo,appearance:"transparent",icon:ao?jsxRuntimeExports.jsx(ChevronRight20Regular,{}):jsxRuntimeExports.jsx(ChevronDown20Regular,{})}),ro&&jsxRuntimeExports.jsx(SpanType,{span:ro}),jsxRuntimeExports.jsx(Tooltip,{content:to.name??"",relationship:"label",children:jsxRuntimeExports.jsx("div",{className:io.spanName,children:`${to.name}`})}),jsxRuntimeExports.jsxs("div",{className:io.right,children:[((bo=(vo=to==null?void 0:to.status)==null?void 0:vo.status_code)==null?void 0:bo.toLowerCase())==="error"&&jsxRuntimeExports.jsx(StatusText,{statusCode:(xo=to.status)==null?void 0:xo.status_code,tooltipContent:to.status.message,size:UISize.extraSmall}),jsxRuntimeExports.jsx(NodeToken,{span:to,size:UISize.extraSmall}),jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:to.start_time,endTimeISOString:to.end_time,size:UISize.extraSmall})]})]})})};class NodeConfig{constructor(to){this.options=to}render(to){const ro=this.options.spans.find(no=>{var oo;return((oo=no==null?void 0:no.context)==null?void 0:oo.span_id)===to.model.id});return ro?jsxRuntimeExports.jsx(TreeNode,{node:to.model,span:ro}):null}getMinHeight(){return 0}getMinWidth(){return 0}}const TreeView=()=>{const[eo,to]=reactExports.useState(new Map),[ro,no]=reactExports.useState(Set$1()),oo=useSpansOfSelectedTrace(),io=useSetSelectedSpanId(),so=useSelectedSpanId(),ao=po=>(ho,mo)=>(mo&&mo.type===GraphNodeEvent.Click&&io(mo.node.id),po(ho,mo)),lo=GraphConfigBuilder.default().registerNode(()=>new NodeConfig({spans:oo})).registerPort(()=>new PortConfig).registerEdge(()=>new EdgeConfig).build(),uo=new Set;uo.add(GraphFeatures.ClickNodeToSelect),uo.add(GraphFeatures.CanvasVerticalScrollable),uo.add(GraphFeatures.LimitBoundary),uo.add(GraphFeatures.InvisibleScrollbar);const[co,fo]=useGraphReducer({data:GraphModel.empty(),settings:{features:uo,graphConfig:lo,canvasBoundaryPadding:{top:0,bottom:TREE_NODE_HEIGHT}}},ao);return reactExports.useEffect(()=>{const{graph:po,rootIds:ho,parentIdLookUp:mo}=spansToGraphModel(oo,{collapsedSpanIds:ro});to(mo),fo({type:GraphCanvasEvent.SetData,data:po.selectNodes(vo=>vo.id===ho[0])}),io(ho[0])},[]),reactExports.useEffect(()=>{const{graph:po,rootIds:ho,parentIdLookUp:mo}=spansToGraphModel(oo,{collapsedSpanIds:ro});to(mo),fo({type:GraphCanvasEvent.SetData,data:po.selectNodes(vo=>vo.id===ho[0])})},[ro]),reactExports.useEffect(()=>{so&&fo({type:GraphNodeEvent.Select,nodes:[so]})},[so]),jsxRuntimeExports.jsx(SpansTreeContext.Provider,{value:{parentIdLookUp:eo,collapsedSpanIds:ro,setCollapsedSpanIds:no},children:jsxRuntimeExports.jsx(TreeGraph,{state:co,dispatch:fo})})},TraceDetail=()=>{const eo=useClasses$7(),to=useSelectedSpanId(),ro=reactExports.useRef(null),no=useTraceDetailRefreshKey(),oo=useIsGanttChartOpen(),io=useTraceDetailViewStatus(),so=useTraceDetailLoadingComponent(),ao=useTraceDetailErrorComponent(),lo=useLocStrings();return reactExports.useEffect(()=>{var uo;oo&&((uo=ro.current)==null||uo.updateSize({height:400,width:"100%"}))},[oo]),io===ViewStatus.error?jsxRuntimeExports.jsx(ao,{}):io===ViewStatus.loading?jsxRuntimeExports.jsx(so,{}):io===ViewStatus.hidden?null:jsxRuntimeExports.jsxs("div",{className:eo.root,children:[jsxRuntimeExports.jsx("div",{className:eo.container,children:jsxRuntimeExports.jsxs("div",{className:eo.content,children:[jsxRuntimeExports.jsx(Resizable,{enable:{right:!0},minWidth:100,maxWidth:"60%",defaultSize:{width:TREE_NODE_WIDTH+2*TREE_NODE_INDENT+32,height:"100%"},handleComponent:{right:jsxRuntimeExports.jsx("div",{className:eo.resizeBar})},children:jsxRuntimeExports.jsx("div",{className:eo.leftPane,children:jsxRuntimeExports.jsx(TreeView,{},no)})}),jsxRuntimeExports.jsx("div",{className:eo.rightPane,children:jsxRuntimeExports.jsx(NodeDetail,{emptyTip:jsxRuntimeExports.jsx(MessageBar,{intent:"error",children:lo.No_span_data})},no)},`${to}`)]})}),oo&&jsxRuntimeExports.jsx("div",{className:eo.bottomPane,children:jsxRuntimeExports.jsx(Resizable,{ref:ro,className:eo.ganttContainer,defaultSize:{height:0,width:"100%"},enable:{top:!0},handleComponent:{top:jsxRuntimeExports.jsx("div",{className:eo.resizeBarBottom})},children:jsxRuntimeExports.jsx(GanttView,{},no)})})]})},useClasses$7=makeStyles({root:{width:"100%",height:"100%"},container:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},summary:{display:"flex",alignItems:"stretch",height:"48px",width:"100%",...shorthands.margin("16px"),...shorthands.gap("1rem")},content:{...shorthands.flex(1),display:"flex"},leftPane:{height:"100%",...shorthands.margin("16px",0,0,"16px")},rightPane:{position:"relative",width:"100%",height:"100%",...shorthands.flex(1),...shorthands.overflow("hidden")},bottomPane:{position:"absolute",backgroundColor:tokens.colorNeutralBackground1,bottom:0,width:"100%"},ganttContainer:{...shorthands.padding("16px")},resizeBar:{position:"absolute",top:0,bottom:0,right:"5px",width:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",top:"50%",right:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",top:"50%",left:"1px",marginTop:"-12px",height:"24px",width:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}},resizeBarBottom:{position:"absolute",left:0,right:0,bottom:"5px",height:"6px",backgroundColor:tokens.colorNeutralBackground3,"::before":{content:"''",position:"absolute",left:"50%",bottom:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed},"::after":{content:"''",position:"absolute",left:"50%",top:"1px",marginLeft:"-12px",width:"24px",height:"1px",backgroundColor:tokens.colorNeutralBackground3Pressed}}}),TraceFilter=()=>{const eo=useClasses$6(),to=useTableColumnNames(),[ro,no]=[useTableHiddenColumnKeys(),useSetTableHiddenColumnKeys()],oo=useTraceListShowMetrics(),io=reactExports.useMemo(()=>[...to.normalColumns,...to.evaluationColumns].filter(lo=>!ro.includes(lo.key)).map(lo=>lo.key),[ro,to]),so=(ao,lo)=>{const{optionValue:uo}=lo;uo&&no(ro.includes(uo)?ro.filter(co=>co!==uo):[...ro,uo])};return jsxRuntimeExports.jsxs("div",{className:eo.wrapper,children:[jsxRuntimeExports.jsx(Input,{className:eo.filter,disabled:!0,placeholder:"NOT implement yet"}),jsxRuntimeExports.jsx(Combobox,{multiselect:!0,placeholder:"Columns Filter",selectedOptions:io,onOptionSelect:so,children:jsxRuntimeExports.jsxs("div",{className:eo.popUp,children:[jsxRuntimeExports.jsx(OptionGroup,{label:"Trace Info",children:to.normalColumns.map(ao=>jsxRuntimeExports.jsx(Option$2,{value:ao.key,children:ao.name},ao.key))}),oo&&jsxRuntimeExports.jsx(OptionGroup,{label:"Metrics",children:to.evaluationColumns.map(ao=>jsxRuntimeExports.jsx(Option$2,{value:ao.key,text:"123"+ao.name,children:jsxRuntimeExports.jsx(Tooltip,{relationship:"label",content:ao.name,children:jsxRuntimeExports.jsx("span",{className:eo.optionText,children:ao.name})})},ao.key))})]})})]})},useClasses$6=makeStyles({wrapper:{display:"flex",...shorthands.gap("1rem"),...shorthands.margin(tokens.spacingVerticalM)},filter:{flexGrow:1},popUp:{overflowX:"hidden"},optionText:{display:"block",width:"90%",...shorthands.overflow("hidden"),textOverflow:"ellipsis",whiteSpace:"nowrap"}}),useDebugFunctions=()=>{const eo=useGetAllTraces(),to=useGetAllSpans(),ro=useSelectedTrace(),no=useSpansOfSelectedTrace();reactExports.useEffect(()=>{window.printTracesAndSpans=()=>{const oo=eo();console.log("traces",oo);const io=to();console.log("spans",io)},window.printSelectedTrace=()=>{console.log("selectedTrace",ro)},window.printSpansOfSelectedTrace=()=>{console.log("spansOfSelectedTrace",no)}},[eo,to,ro,no])},useOnClickTraceRow=()=>{const eo=useSetSelectedTraceId();return reactExports.useCallback((to,ro)=>{eo(to==null?void 0:to.trace_id)},[eo])};function useResolvedElement(eo,to){var ro=reactExports.useRef(null),no=reactExports.useRef(null);no.current=to;var oo=reactExports.useRef(null);reactExports.useEffect(function(){io()});var io=reactExports.useCallback(function(){var so=oo.current,ao=no.current,lo=so||(ao?ao instanceof Element?ao:ao.current:null);ro.current&&ro.current.element===lo&&ro.current.subscriber===eo||(ro.current&&ro.current.cleanup&&ro.current.cleanup(),ro.current={element:lo,subscriber:eo,cleanup:lo?eo(lo):void 0})},[eo]);return reactExports.useEffect(function(){return function(){ro.current&&ro.current.cleanup&&(ro.current.cleanup(),ro.current=null)}},[]),reactExports.useCallback(function(so){oo.current=so,io()},[io])}function extractSize(eo,to,ro){return eo[to]?eo[to][0]?eo[to][0][ro]:eo[to][ro]:to==="contentBoxSize"?eo.contentRect[ro==="inlineSize"?"width":"height"]:void 0}function useResizeObserver(eo){eo===void 0&&(eo={});var to=eo.onResize,ro=reactExports.useRef(void 0);ro.current=to;var no=eo.round||Math.round,oo=reactExports.useRef(),io=reactExports.useState({width:void 0,height:void 0}),so=io[0],ao=io[1],lo=reactExports.useRef(!1);reactExports.useEffect(function(){return lo.current=!1,function(){lo.current=!0}},[]);var uo=reactExports.useRef({width:void 0,height:void 0}),co=useResolvedElement(reactExports.useCallback(function(fo){return(!oo.current||oo.current.box!==eo.box||oo.current.round!==no)&&(oo.current={box:eo.box,round:no,instance:new ResizeObserver(function(po){var ho=po[0],mo=eo.box==="border-box"?"borderBoxSize":eo.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",vo=extractSize(ho,mo,"inlineSize"),bo=extractSize(ho,mo,"blockSize"),xo=vo?no(vo):void 0,_o=bo?no(bo):void 0;if(uo.current.width!==xo||uo.current.height!==_o){var So={width:xo,height:_o};uo.current.width=xo,uo.current.height=_o,ro.current?ro.current(So):lo.current||ao(So)}})}),oo.current.instance.observe(fo,{box:eo.box}),function(){oo.current&&oo.current.instance.unobserve(fo)}},[eo.box,no]),eo.ref);return reactExports.useMemo(function(){return{ref:co,width:so.width,height:so.height}},[co,so.width,so.height])}const genStatusChecker=eo=>to=>to===void 0?!1:to.toLowerCase()===eo.toLowerCase(),checkStatus=(eo,to)=>eo===void 0?!1:eo.toLowerCase()===to.toLowerCase(),useTraceListRows=()=>{const eo=useTraces();return reactExports.useMemo(()=>eo.map(to=>convertToTraceListRow(to)),[eo])},BASIC_WIDTH=200,getColumnChildrenCount=eo=>eo.children?eo==null?void 0:eo.children.reduce((to,ro)=>to+getColumnChildrenCount(ro),0):eo.minWidth??BASIC_WIDTH,useTraceListColumns=()=>{const{ref:eo,width:to}=useResizeObserver(),ro=useClasses$5(),no=useTraceListRows(),oo=useOnClickTraceRow(),io=useSetTableColumnNames(),so=useTableHiddenColumnKeys(),ao=useLocStrings(),lo=useTraceListColumnModifier(),uo=useSortableColumns(),co=reactExports.useMemo(()=>genStatusChecker("running"),[]),[fo,po]=React.useState([]);return reactExports.useEffect(()=>{const ho=[{key:"kind",name:ao.Kind,minWidth:120,maxWidth:200,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(KindText,{kind:Ao.kind})},{key:"name",name:ao.Name,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(Tooltip,{content:Ao.name??"",relationship:"label",children:jsxRuntimeExports.jsx("span",{className:ro.nameCell,title:Ao.name,onClick:()=>{oo(Ao,"name")},children:Ao.name})})},{key:"input",name:ao.Input,minWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Ao.inputs})},{key:"output",name:ao.Output,minWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TraceListJsonCell,{jsonObject:Ao.outputs})},{key:"start_time",name:ao.Start_time,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Ao.start_time})})},{key:"end_time",name:ao.End_time,minWidth:150,maxWidth:300,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{height:40}):jsxRuntimeExports.jsx(TextCellWrapper,{children:jsxRuntimeExports.jsx(TimeText,{time:Ao.end_time})})},{key:"latency",name:ao.Latency,minWidth:120,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(LatencyText,{startTimeISOString:Ao.start_time,endTimeISOString:Ao.end_time})})},{key:"total_tokens",name:ao.Total_tokens,minWidth:120,renderCell:({row:Ao})=>co(Ao.status)?jsxRuntimeExports.jsx(CellSkeleton,{}):jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(SummaryToken,{trace:Ao})})},{key:"status",name:ao.Status,minWidth:120,renderCell:({row:Ao})=>jsxRuntimeExports.jsx(CellWrapper,{children:jsxRuntimeExports.jsx(StatusText,{statusCode:Ao.status})})}],mo=[];no.forEach(Ao=>{Object.entries(Ao.evaluations??{}).forEach(([Io])=>{!mo.includes(Io)&&Io&&mo.push(Io)})});const vo=mo.map(Ao=>{const Io=[],$o=[];return no.forEach(Bo=>{var jo;const Mo=(jo=Bo.evaluations)==null?void 0:jo[Ao];if(!Mo||!Mo.outputs)return;const Ho=Mo.outputs;Object.keys(Ho).forEach(Oo=>{const Fo=Ho[Oo];!Io.includes(Oo)&&Fo!==null&&(Io.push(Oo),$o.push({key:`evaluation-${Ao}-${Oo}-value`,name:Oo,renderCell:({row:Go})=>{var Zo,Qo,xs;if(co(Go.status))return jsxRuntimeExports.jsx(CellSkeleton,{});let qo;const Xo=(xs=(Qo=(Zo=Go==null?void 0:Go.evaluations)==null?void 0:Zo[Ao])==null?void 0:Qo.outputs)==null?void 0:xs[Oo];return Xo===void 0?qo="N/A":typeof Xo=="number"?qo=formatNumber(Xo):qo=`${Xo}`,qo}}))})}),{name:Ao,key:`evaluation-${Ao}`,children:$o}});let bo=[...ho,{key:"evaluations",name:"Metrics",minWidth:450,children:vo}];bo=lo?lo(bo,no):bo;const xo=bo.filter(Ao=>Ao.key!=="evaluations"),_o=bo.find(Ao=>Ao.key==="evaluations");io({normalColumns:xo.map(Ao=>({name:Ao.name,key:Ao.key})).filter(Ao=>!UN_FILTERABLE_COLUMNS.includes(Ao.name)),evaluationColumns:_o.children.map(Ao=>({name:Ao.name,key:Ao.key}))});const So=xo.filter(Ao=>!so.includes(Ao.key)),Eo={..._o,children:_o.children.filter(Ao=>!so.includes(Ao.key))},ko=[...So,Eo],wo=bo.reduce((Ao,Io)=>Ao+getColumnChildrenCount(Io),0),Co=Ao=>{if(Ao.children)return{...Ao,children:Ao.children.map(Co)};const Io=Ao.minWidth??BASIC_WIDTH,$o=to?(to-24)/wo*Io:200;return{...Ao,width:$o,minWidth:$o}},Ro=ko.map(Co).map(Ao=>{const Io=Ao.key;return Io?{...Ao,key:Ao.key,sortable:!!(Io&&uo.includes(Io))}:Ao});po(Ro)},[no,oo,ro.nameCell,lo,so,ao,io,uo,to,co]),{columns:fo,ref:eo}},useClasses$5=makeStyles({typeBadge:{...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalS)},latencyWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},nameCell:{color:tokens.colorBrandForeground1,fontWeight:tokens.fontWeightSemibold,":hover":{...shorthands.textDecoration("underline")}}}),UN_FILTERABLE_COLUMNS=["Kind","Name"];function TraceList({onRowClick:eo,className:to}){const ro=useClasses$4(),no=useTraceListRows(),{columns:oo,ref:io}=useTraceListColumns(),so=useTraceListViewStatus(),ao=useTraceListLoadingComponent(),lo=useTraceListErrorComponent(),uo=useIsDark();useDebugFunctions();const co=useSortColumn(),fo=useSetSortColumn(),po=co?[co]:[],ho=useOnClickTraceRow(),mo=reactExports.useCallback(vo=>{const{row:bo,column:xo}=vo;ho(bo,xo.key),eo==null||eo(bo)},[ho,eo]);return so===ViewStatus.error?jsxRuntimeExports.jsx(lo,{}):so===ViewStatus.loading?jsxRuntimeExports.jsx(ao,{}):jsxRuntimeExports.jsx("div",{ref:io,className:ro.root,children:jsxRuntimeExports.jsx(DataGrid$1$1,{className:`${ro.grid} ${to??""} ${uo?"rdg-dark":"rdg-light"}`,renderers:{noRowsFallback:jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",gridColumn:"1/-1",display:"flex",alignItems:"center",justifyContent:"center"},children:[jsxRuntimeExports.jsx(TextBulletListSquareWarning24Regular,{}),jsxRuntimeExports.jsx(Text$1,{style:{paddingLeft:"1rem"},children:"No traces found."})]})},rowClass:()=>ro.row,columns:oo,rows:no,headerRowHeight:26,rowHeight:80,onCellClick:mo,defaultColumnOptions:{resizable:!0},sortColumns:po,onSortColumnsChange:vo=>{var bo;fo((bo=vo.slice(-1))==null?void 0:bo[0])}})})}const useClasses$4=makeStyles({root:{display:"flex",flexDirection:"column",flexGrow:1},grid:{},row:{cursor:"pointer"}}),DefaultDetailContainer=({isOpen:eo,setIsOpen:to,header:ro=null,content:no})=>jsxRuntimeExports.jsxs(OverlayDrawer,{position:"end",style:{width:"calc(100% - 48px)"},open:eo,onOpenChange:(oo,io)=>to(io.open),children:[ro,jsxRuntimeExports.jsx("div",{style:{width:"100%",height:"calc(100vh - 40px)"},children:no})]});makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});makeStyles({wrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",...shorthands.flex(0,0,"auto")},horizontal:{flexDirection:"row",alignItems:"center",...shorthands.flex(0,0,"auto")},title:{color:tokens.colorNeutralForeground2,marginBottom:tokens.spacingVerticalXS},data:{color:tokens.colorNeutralForeground1},tagsWrapper:{display:"flex",flexDirection:"row",...shorthands.gap("0.5rem")},tagsWrapperHorizontal:{flexDirection:"column"},timeWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyItems:"center","> svg":{marginRight:"5px"}},scoreWrapper:{display:"flex",flexDirection:"row",alignItems:"center","> :first-child":{marginRight:"8px"}}});const defaultLocStrings=new Proxy({},{get:(eo,to)=>to.replace(/_/g," ")}),RegistryWrapper=createRegistry({name:"TraceView"}),Provider=({isDark:eo=!1,viewModel:to,children:ro,locStrings:no=defaultLocStrings,TraceListLoading:oo,TraceListError:io,TraceDetailLoading:so,TraceDetailError:ao})=>{const lo=React.useCallback(uo=>{uo.register(TraceViewModelToken,{useValue:to}),oo&&uo.register(traceListLoadingInjectionToken,{useValue:oo}),io&&uo.register(traceListErrorInjectionToken,{useValue:io}),so&&uo.register(traceDetailLoadingInjectionToken,{useValue:so}),ao&&uo.register(traceDetailErrorInjectionToken,{useValue:ao}),no&&uo.register(locStringsInjectionToken,{useValue:no})},[]);return jsxRuntimeExports.jsx(TraceViewThemeContext.Provider,{value:eo,children:jsxRuntimeExports.jsx(RegistryWrapper,{onInitialize:lo,children:ro})})},ThemeContext=reactExports.createContext({});ThemeContext.displayName="ThemeContext";const ThemeContextProvider=({children:eo})=>{const[to,ro]=reactExports.useState("light");return reactExports.useEffect(()=>{const no=window.matchMedia("(prefers-color-scheme: dark)");ro(no.matches?"dark":"light");const oo=io=>{ro(io.matches?"dark":"light")};return no.addEventListener("change",oo),()=>{no.removeEventListener("change",oo)}},[]),jsxRuntimeExports.jsx(ThemeContext.Provider,{value:{theme:to,setTheme:ro},children:eo})},token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(eo,to){try{return[decodeURIComponent(eo.join(""))]}catch{}if(eo.length===1)return eo;to=to||1;const ro=eo.slice(0,to),no=eo.slice(to);return Array.prototype.concat.call([],decodeComponents(ro),decodeComponents(no))}function decode$1(eo){try{return decodeURIComponent(eo)}catch{let to=eo.match(singleMatcher)||[];for(let ro=1;roeo==null,strictUriEncode=eo=>encodeURIComponent(eo).replaceAll(/[!'()*]/g,to=>`%${to.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(eo){switch(eo.arrayFormat){case"index":return to=>(ro,no)=>{const oo=ro.length;return no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),"[",oo,"]"].join("")]:[...ro,[encode(to,eo),"[",encode(oo,eo),"]=",encode(no,eo)].join("")]};case"bracket":return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),"[]"].join("")]:[...ro,[encode(to,eo),"[]=",encode(no,eo)].join("")];case"colon-list-separator":return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,[encode(to,eo),":list="].join("")]:[...ro,[encode(to,eo),":list=",encode(no,eo)].join("")];case"comma":case"separator":case"bracket-separator":{const to=eo.arrayFormat==="bracket-separator"?"[]=":"=";return ro=>(no,oo)=>oo===void 0||eo.skipNull&&oo===null||eo.skipEmptyString&&oo===""?no:(oo=oo===null?"":oo,no.length===0?[[encode(ro,eo),to,encode(oo,eo)].join("")]:[[no,encode(oo,eo)].join(eo.arrayFormatSeparator)])}default:return to=>(ro,no)=>no===void 0||eo.skipNull&&no===null||eo.skipEmptyString&&no===""?ro:no===null?[...ro,encode(to,eo)]:[...ro,[encode(to,eo),"=",encode(no,eo)].join("")]}}function parserForArrayFormat(eo){let to;switch(eo.arrayFormat){case"index":return(ro,no,oo)=>{if(to=/\[(\d*)]$/.exec(ro),ro=ro.replace(/\[\d*]$/,""),!to){oo[ro]=no;return}oo[ro]===void 0&&(oo[ro]={}),oo[ro][to[1]]=no};case"bracket":return(ro,no,oo)=>{if(to=/(\[])$/.exec(ro),ro=ro.replace(/\[]$/,""),!to){oo[ro]=no;return}if(oo[ro]===void 0){oo[ro]=[no];return}oo[ro]=[...oo[ro],no]};case"colon-list-separator":return(ro,no,oo)=>{if(to=/(:list)$/.exec(ro),ro=ro.replace(/:list$/,""),!to){oo[ro]=no;return}if(oo[ro]===void 0){oo[ro]=[no];return}oo[ro]=[...oo[ro],no]};case"comma":case"separator":return(ro,no,oo)=>{const io=typeof no=="string"&&no.includes(eo.arrayFormatSeparator),so=typeof no=="string"&&!io&&decode(no,eo).includes(eo.arrayFormatSeparator);no=so?decode(no,eo):no;const ao=io||so?no.split(eo.arrayFormatSeparator).map(lo=>decode(lo,eo)):no===null?no:decode(no,eo);oo[ro]=ao};case"bracket-separator":return(ro,no,oo)=>{const io=/(\[])$/.test(ro);if(ro=ro.replace(/\[]$/,""),!io){oo[ro]=no&&decode(no,eo);return}const so=no===null?[]:no.split(eo.arrayFormatSeparator).map(ao=>decode(ao,eo));if(oo[ro]===void 0){oo[ro]=so;return}oo[ro]=[...oo[ro],...so]};default:return(ro,no,oo)=>{if(oo[ro]===void 0){oo[ro]=no;return}oo[ro]=[...[oo[ro]].flat(),no]}}}function validateArrayFormatSeparator(eo){if(typeof eo!="string"||eo.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(eo,to){return to.encode?to.strict?strictUriEncode(eo):encodeURIComponent(eo):eo}function decode(eo,to){return to.decode?decodeUriComponent(eo):eo}function keysSorter(eo){return Array.isArray(eo)?eo.sort():typeof eo=="object"?keysSorter(Object.keys(eo)).sort((to,ro)=>Number(to)-Number(ro)).map(to=>eo[to]):eo}function removeHash(eo){const to=eo.indexOf("#");return to!==-1&&(eo=eo.slice(0,to)),eo}function getHash(eo){let to="";const ro=eo.indexOf("#");return ro!==-1&&(to=eo.slice(ro)),to}function parseValue(eo,to){return to.parseNumbers&&!Number.isNaN(Number(eo))&&typeof eo=="string"&&eo.trim()!==""?eo=Number(eo):to.parseBooleans&&eo!==null&&(eo.toLowerCase()==="true"||eo.toLowerCase()==="false")&&(eo=eo.toLowerCase()==="true"),eo}function extract(eo){eo=removeHash(eo);const to=eo.indexOf("?");return to===-1?"":eo.slice(to+1)}function parse(eo,to){to={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const ro=parserForArrayFormat(to),no=Object.create(null);if(typeof eo!="string"||(eo=eo.trim().replace(/^[?#&]/,""),!eo))return no;for(const oo of eo.split("&")){if(oo==="")continue;const io=to.decode?oo.replaceAll("+"," "):oo;let[so,ao]=splitOnFirst(io,"=");so===void 0&&(so=io),ao=ao===void 0?null:["comma","separator","bracket-separator"].includes(to.arrayFormat)?ao:decode(ao,to),ro(decode(so,to),ao,no)}for(const[oo,io]of Object.entries(no))if(typeof io=="object"&&io!==null)for(const[so,ao]of Object.entries(io))io[so]=parseValue(ao,to);else no[oo]=parseValue(io,to);return to.sort===!1?no:(to.sort===!0?Object.keys(no).sort():Object.keys(no).sort(to.sort)).reduce((oo,io)=>{const so=no[io];return oo[io]=so&&typeof so=="object"&&!Array.isArray(so)?keysSorter(so):so,oo},Object.create(null))}function stringify(eo,to){if(!eo)return"";to={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...to},validateArrayFormatSeparator(to.arrayFormatSeparator);const ro=so=>to.skipNull&&isNullOrUndefined(eo[so])||to.skipEmptyString&&eo[so]==="",no=encoderForArrayFormat(to),oo={};for(const[so,ao]of Object.entries(eo))ro(so)||(oo[so]=ao);const io=Object.keys(oo);return to.sort!==!1&&io.sort(to.sort),io.map(so=>{const ao=eo[so];return ao===void 0?"":ao===null?encode(so,to):Array.isArray(ao)?ao.length===0&&to.arrayFormat==="bracket-separator"?encode(so,to)+"[]":ao.reduce(no(so),[]).join("&"):encode(so,to)+"="+encode(ao,to)}).filter(so=>so.length>0).join("&")}function parseUrl(eo,to){var oo;to={decode:!0,...to};let[ro,no]=splitOnFirst(eo,"#");return ro===void 0&&(ro=eo),{url:((oo=ro==null?void 0:ro.split("?"))==null?void 0:oo[0])??"",query:parse(extract(eo),to),...to&&to.parseFragmentIdentifier&&no?{fragmentIdentifier:decode(no,to)}:{}}}function stringifyUrl(eo,to){to={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...to};const ro=removeHash(eo.url).split("?")[0]||"",no=extract(eo.url),oo={...parse(no,{sort:!1}),...eo.query};let io=stringify(oo,to);io&&(io=`?${io}`);let so=getHash(eo.url);if(typeof eo.fragmentIdentifier=="string"){const ao=new URL(ro);ao.hash=eo.fragmentIdentifier,so=to[encodeFragmentIdentifier]?ao.hash:`#${eo.fragmentIdentifier}`}return`${ro}${io}${so}`}function pick(eo,to,ro){ro={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...ro};const{url:no,query:oo,fragmentIdentifier:io}=parseUrl(eo,ro);return stringifyUrl({url:no,query:includeKeys(oo,to),fragmentIdentifier:io},ro)}function exclude(eo,to,ro){const no=Array.isArray(to)?oo=>!to.includes(oo):(oo,io)=>!to(oo,io);return pick(eo,no,ro)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse,parseUrl,pick,stringify,stringifyUrl},Symbol.toStringTag,{value:"Module"}));function useHashObject(){const[eo,to]=reactExports.useState(()=>queryString.parse(window.location.hash.substring(1))),ro=reactExports.useCallback(no=>{to(oo=>{const io={...oo,...no},so=queryString.stringify(io);return window.location.hash=so,io})},[]);return reactExports.useEffect(()=>{const no=()=>{to(queryString.parse(window.location.hash.substring(1)))};return window.addEventListener("hashchange",no),()=>window.removeEventListener("hashchange",no)},[]),[eo,ro]}function genLocalUrlParamsWithHash(eo){return isNotNullOrUndefined(eo)?isNotNullOrUndefined(eo.session)?`session=${eo.session}`:isNotNullOrUndefined(eo.experiment)?`experiment=${eo.experiment}`:isNotNullOrUndefined(eo.run)?`run=${eo.run}`:isNotNullOrUndefined(eo.trace)?`trace_ids=${eo.trace}`:"":""}function isNotNullOrUndefined(eo){return eo!=null}const getSummariesSignature=eo=>eo.flatMap(no=>[`${no.line_run_id}_${no.status}`,...Object.values(no.evaluations??[]).map(oo=>`${oo.trace_id}_${oo.status}`)]).sort().join(","),useLocalFetchSummaries=(eo,to)=>{const ro=useTraceViewModel(),[no,oo]=reactExports.useState(!0),io=useLocalFetchSummariesFunc(eo);reactExports.useEffect(()=>{no&&ro.setTraceListStatus(ViewStatus.loading),io().finally(()=>{no&&(oo(!1),ro.setTraceListStatus(ViewStatus.loaded))});let so;return to&&(so=setInterval(io,TRACE_POLLING_GAP)),()=>{so&&clearInterval(so)}},[eo,to])},useLocalFetchSummary=()=>{const eo=useTraceViewModel();return reactExports.useCallback(async ro=>fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list?trace_ids=${ro}`).then(no=>no.json()).then(no=>{no&&(eo.appendTraces(no),eo.setTraceListStatus(ViewStatus.loaded))}).catch(no=>{eo.setTraceListStatus(ViewStatus.error),eo.appendTraces([]),console.error("Error:",no)}),[eo])},useLocalFetchSummariesFunc=eo=>{const to=useTraceViewModel(),[ro,no]=reactExports.useState(void 0);return async()=>{const io=genLocalUrlParamsWithHash(eo),so=io!==""?`?${io}`:"";return fetch(`${LOCAL_URL_PREFIX}/v1.0/LineRuns/list${so}`).then(ao=>ao.json()).then(ao=>{if(!ao&&Array.isArray(ao))throw new Error("No new traces");const lo=getSummariesSignature(ao);(ro===void 0||lo!==ro)&&(no(lo),to.traces$.clear(),to.appendTraces(ao))}).catch(ao=>{to.setTraceListStatus(ViewStatus.error),to.appendTraces([]),console.error("Error:",ao)})}},useLocalRefreshTraces=eo=>{const to=useTraceViewModel(),ro=useLocalFetchSummariesFunc(eo);return reactExports.useCallback(()=>{to.setTraceListStatus(ViewStatus.loading),ro().then(()=>{to.setTraceListStatus(ViewStatus.loaded)})},[ro,to])},useLocalFetchRunningTraces=()=>{const eo=useTraces(),to=useLocalFetchSummary(),ro=eo.filter(no=>checkStatus(no.status,"running")).map(no=>no.trace_id).filter(no=>no!==void 0);reactExports.useEffect(()=>{let no;return ro.length>0&&(no=setInterval(()=>{ro.forEach(oo=>to(oo))},RUNNING_TRACE_POLLING_GAP)),()=>{no&&clearInterval(no)}},[to,ro])},useLocalTraceDetailDidOpen=eo=>{const to=useTraceViewModel(),ro=useLocalFetchSummary(),no=useFetchLocalSpans();return reactExports.useCallback(async io=>{if(!io)return;let so=to.getTraceById(io);so||(await ro(io),so=to.getTraceById(io));const ao=[io,...Object.values((so==null?void 0:so.evaluations)??[]).map(lo=>lo.trace_id)].filter(lo=>lo!==void 0);eo({uiTraceId:io}),to.setTraceDetailStatus(ViewStatus.loading),no(ao)},[to])},useLocalOnTraceDetailClose=eo=>reactExports.useCallback(()=>{eo({uiTraceId:void 0})},[eo]),useFetchLocalSpans=()=>{const eo=useTraceViewModel();return reactExports.useCallback(ro=>{fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/list?trace_ids=${ro.join(",")}&lazy_load=${eo.isLazyLoadSpan}`).then(no=>no.json()).then(no=>{eo.appendSpans(no),eo.setTraceDetailStatus(ViewStatus.loaded)}).catch(no=>{console.error("Error:",no),eo.setTraceDetailStatus(ViewStatus.error)})},[eo])},useLocalOnRefreshSpans=()=>{const eo=useLocalFetchSummary(),to=useFetchLocalSpans();return reactExports.useCallback((no,oo)=>{const io=[no,...Object.values((oo==null?void 0:oo.evaluations)??[]).map(so=>so.trace_id)].filter(so=>so!==void 0);eo(no),to(io)},[to,eo])},fetchSpanEvent=eo=>fetch(`${LOCAL_URL_PREFIX}/v1.0/Spans/Event/${eo}`).then(to=>to.json()).then(to=>({status:"success",data:to.attributes.payload})).catch(to=>({status:"error",error:to})),ThemeSwitcher=({style:eo,labelName:to})=>{const ro=useLocStrings(),{theme:no,setTheme:oo}=reactExports.useContext(ThemeContext);return jsxRuntimeExports.jsx(Switch,{label:to||ro["Dark Theme"],labelPosition:"before",checked:no==="dark",onChange:(io,so)=>oo(so.checked?"dark":"light"),style:eo})},LocalCommonHeader=({isStreaming:eo,onIsStreamingChange:to,streamLabelName:ro,slot:no,showRefresh:oo=!1})=>{const io=useClasses$3(),so=useLocStrings(),ao=useTraceViewModel();return jsxRuntimeExports.jsxs("div",{className:io.root,children:[jsxRuntimeExports.jsxs("div",{className:io.wrapper,children:[jsxRuntimeExports.jsx("div",{className:io.main}),oo&&jsxRuntimeExports.jsx(Tooltip,{content:so["Refresh Data"],relationship:"description",children:jsxRuntimeExports.jsx(Button$2,{appearance:"subtle","aria-label":"Refresh",icon:jsxRuntimeExports.jsx(ArrowClockwise16Regular,{}),onClick:()=>ao.refreshTraces()})}),jsxRuntimeExports.jsx(StreamSwitcher,{isStreaming:eo,onIsStreamingChange:to,labelName:ro}),jsxRuntimeExports.jsx(ThemeSwitcher,{})]}),no]})},useClasses$3=makeStyles({root:{display:"flex",flexDirection:"column",width:"100%"},wrapper:{display:"flex",...shorthands.padding(tokens.spacingVerticalXXS,tokens.spacingHorizontalL)},main:{...shorthands.flex(1)}}),LocalOverallMetric=({hash:eo})=>{var ao;const[[to,ro],no]=reactExports.useState([void 0,void 0]),oo=useClasses$2(),io=useTraces(),so=(()=>{if(isNotNullOrUndefined(eo.run)){const lo=eo.run.split(",");if(lo.length===1)return lo[0]}})();return reactExports.useEffect(()=>{so&&Promise.allSettled([fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${so}`).then(lo=>lo.json()),fetch(`${LOCAL_URL_PREFIX}/v1.0/Runs/${so}/metrics`).then(lo=>lo.json())]).then(lo=>{lo.some(uo=>uo.status==="rejected")?no([void 0,void 0]):no(lo.map(uo=>uo.value))})},[so]),so&&to&&ro?jsxRuntimeExports.jsxs("div",{className:oo.wrapper,children:[jsxRuntimeExports.jsx("div",{className:oo.title,children:so}),jsxRuntimeExports.jsxs("div",{className:oo.blockListWrapper,children:[jsxRuntimeExports.jsx(InfoBlock,{title:"Total traces:",value:io.length}),isNotNullOrUndefined(to.status)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Status:",value:to.status,slot:jsxRuntimeExports.jsx(StatusText,{statusCode:to.status,showText:!0,size:UISize.small})}),isNotNullOrUndefined(to==null?void 0:to.created_on)&&jsxRuntimeExports.jsx(InfoBlock,{title:"Create on:",value:timeFormat(to.created_on)}),((ao=to==null?void 0:to.properties)==null?void 0:ao.system_metrics)&&jsxRuntimeExports.jsx(SystemMetrics,{systemMetrics:to.properties.system_metrics}),isNotNullOrUndefined(ro)&&Object.keys(ro).length>0&&jsxRuntimeExports.jsx(Metrics,{metrics:ro})]})]}):null},InfoBlock=({title:eo,slot:to,value:ro})=>{const no=useClasses$2();return jsxRuntimeExports.jsxs("div",{className:no.blockWrapper,children:[jsxRuntimeExports.jsx("div",{className:no.blockTitle,children:eo}),to||jsxRuntimeExports.jsx("div",{className:no.blockValue,children:ro.toString()})]})},SYSTEM_METRICS_NAME_MAP={completion_tokens:"Completion tokens",duration:"Duration",prompt_tokens:"Prompt tokens",total_tokens:"Total tokens"},SystemMetrics=({systemMetrics:eo})=>{const to=useClasses$2();return jsxRuntimeExports.jsx(InfoBlock,{title:"System metrics:",slot:jsxRuntimeExports.jsxs("div",{className:to.metricsWrapper,children:[jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["prompt_tokens","total_tokens"].map(ro=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[ro]}: ${eo[ro].toString()}`},ro))}),jsxRuntimeExports.jsx("div",{className:to.metricsItemRow,children:["completion_tokens","duration"].map(ro=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${SYSTEM_METRICS_NAME_MAP[ro]}: ${eo[ro].toString()}`},ro))})]})})},Metrics=({metrics:eo})=>{const to=useClasses$2();return jsxRuntimeExports.jsx(InfoBlock,{title:"Metrics:",slot:jsxRuntimeExports.jsx("div",{className:to.metricsItemColumn,children:Object.entries(eo).map(([ro,no])=>jsxRuntimeExports.jsx("span",{className:to.metricsItem,children:`${ro}: ${no.toString()}`},ro))})})},useClasses$2=makeStyles({wrapper:{display:"flex",flexDirection:"column",boxSizing:"border-box",...shorthands.gap("6px"),...shorthands.borderRadius("4px"),...shorthands.margin("0","24px"),...shorthands.padding("16px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke2)},title:{fontSize:"16px",fontWeight:600,lineHeight:"22px"},blockListWrapper:{display:"flex",...shorthands.gap("24px")},blockWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("4px")},blockTitle:{fontSize:"12px",fontWeight:"600",lineHeight:"16px"},blockValue:{fontSize:"14px",lineHeight:"20px",fontWeight:"400"},metricsWrapper:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItemRow:{display:"flex",...shorthands.gap("8px")},metricsItemColumn:{display:"flex",flexDirection:"column",...shorthands.gap("8px")},metricsItem:{fontSize:"12px",lineHeight:"16px",fontWeight:"400",...shorthands.padding("4px","8px"),...shorthands.borderRadius("4px"),...shorthands.border("1px","solid",tokens.colorNeutralStroke1)}}),LocalTraceView=eo=>{const{viewModel:to,isDark:ro}=eo;return jsxRuntimeExports.jsx(Provider,{viewModel:to,isDark:ro,children:jsxRuntimeExports.jsx(TraceViewContent,{...eo})})},TraceViewContent=({hash:eo,setHash:to})=>{const ro=useClasses$1(),no=useIsTraceDetailOpen(),oo=useSetIsTraceDetailOpen(),io=useTraceViewModel(),[so,ao]=reactExports.useState(!1),[lo,uo]=React.useState(!1),[co,fo]=React.useState(!1),po=useSelectedTrace(),ho=useLocalFetchSummary(),mo=useFetchLocalSpans();useLocalFetchSummaries(eo,so),useLocalFetchRunningTraces();const vo=useLocalTraceDetailDidOpen(to),bo=useLocalOnTraceDetailClose(to),xo=useLocalRefreshTraces(eo),_o=useLocalOnRefreshSpans();return reactExports.useEffect(()=>{io.traceDetailDidOpen(vo),io.traceDetailDidClose(bo),io.setOnRefreshTraces(xo),io.onRefreshSpans(_o)},[_o,xo,bo,vo,io]),reactExports.useEffect(()=>{let So;return lo&&no&&po&&co&&(So=setInterval(()=>{const Eo=[po==null?void 0:po.trace_id,...Object.values((po==null?void 0:po.evaluations)??[]).map(ko=>ko.trace_id)].filter(ko=>ko!==void 0);mo(Eo),po.trace_id&&ho(po.trace_id)},SPAN_POLLING_GAP)),()=>{So&&clearInterval(So)}},[co,po,no,io,lo,ho,mo]),reactExports.useEffect(()=>{no&&po&&(checkStatus(po.status,"Running")?uo(!0):uo(!1))},[ho,no,po]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:ro.wrapper,children:[jsxRuntimeExports.jsx(LocalCommonHeader,{isStreaming:so,onIsStreamingChange:ao,showRefresh:!0,slot:jsxRuntimeExports.jsx(LocalOverallMetric,{hash:eo})}),jsxRuntimeExports.jsx(TraceFilter,{}),jsxRuntimeExports.jsx(TraceList,{className:ro.grid,onRowClick:()=>{oo(!0)}})]}),jsxRuntimeExports.jsx(DefaultDetailContainer,{isOpen:no,setIsOpen:oo,header:jsxRuntimeExports.jsx(TraceDetailHeader,{setIsTraceDetailOpen:oo,showStreamSwitch:lo,isStreaming:co,onIsStreamingChange:fo}),content:jsxRuntimeExports.jsx(TraceDetail,{})})]})},useClasses$1=makeStyles({header:{display:"flex",width:"100%"},wrapper:{display:"flex",flexDirection:"column",height:"100%"},divider:{flexGrow:0,...shorthands.margin("16px",0)},grid:{flexGrow:1}});window.TraceView_Version="20240329.3-main";const TraceViewApp=()=>{const[eo,to]=useHashObject(),ro=useClasses(),no=React.useMemo(()=>new TraceViewModel({spanConfig:{fetchSpanEvent}}),[]);return reactExports.useEffect(()=>{isNotNullOrUndefined(eo.uiTraceId)&&no.setTraceDetailOpen(!0,eo.uiTraceId)},[no,eo.uiTraceId]),jsxRuntimeExports.jsx(ThemeContextProvider,{children:jsxRuntimeExports.jsx(ThemeContext.Consumer,{children:({theme:oo})=>{const io=oo==="dark";return jsxRuntimeExports.jsxs(FluentProvider,{theme:io?webDarkTheme:webLightTheme,style:{height:"100%",width:"100%"},children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:` + html, + body { + height: 100%; + width: 100%; + padding: 0; + margin: 0; + box-sizing: border-box; + overflow: hidden; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", + "Droid Sans", "Helvetica Neue", sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + #root { + height: 100%; + width: 100%; + display: flex; + } + `}}),jsxRuntimeExports.jsx("div",{className:ro.wrapper,children:jsxRuntimeExports.jsx(LocalTraceView,{viewModel:no,hash:eo,setHash:to,isDark:io})})]})}})})},useClasses=makeStyles({wrapper:{display:"flex",flexDirection:"column",height:"100%"}});client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(TraceViewApp,{}))});export default KA(); diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index.mjs b/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index.mjs deleted file mode 100644 index efa88ec2c04..00000000000 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/assets/index.mjs +++ /dev/null @@ -1,139639 +0,0 @@ -var NFe = Object.defineProperty; -var IFe = (e, t, r) => t in e ? NFe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; -var Cr = (e, t, r) => (IFe(e, typeof t != "symbol" ? t + "" : t, r), r); -function Pbe(e, t) { - for (var r = 0; r < t.length; r++) { - const n = t[r]; - if (typeof n != "string" && !Array.isArray(n)) { - for (const i in n) - if (i !== "default" && !(i in e)) { - const o = Object.getOwnPropertyDescriptor(n, i); - o && Object.defineProperty(e, i, o.get ? o : { - enumerable: !0, - get: () => n[i] - }); - } - } - } - return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" })); -} -var xh = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function fa(e) { - return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; -} -var cG = { exports: {} }, KO = {}, fG = { exports: {} }, NR = { exports: {} }; -NR.exports; -var eoe; -function DFe() { - return eoe || (eoe = 1, function(e, t) { - var r = {}; - /** - * @license React - * react.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - r.NODE_ENV !== "production" && function() { - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); - var n = "18.2.0", i = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, C = "@@iterator"; - function N(Se) { - if (Se === null || typeof Se != "object") - return null; - var Je = A && Se[A] || Se[C]; - return typeof Je == "function" ? Je : null; - } - var x = { - /** - * @internal - * @type {ReactComponent} - */ - current: null - }, R = { - transition: null - }, D = { - current: null, - // Used to reproduce behavior of `batchedUpdates` in legacy mode. - isBatchingLegacy: !1, - didScheduleLegacyUpdate: !1 - }, M = { - /** - * @internal - * @type {ReactComponent} - */ - current: null - }, j = {}, F = null; - function z(Se) { - F = Se; - } - j.setExtraStackFrame = function(Se) { - F = Se; - }, j.getCurrentStack = null, j.getStackAddendum = function() { - var Se = ""; - F && (Se += F); - var Je = j.getCurrentStack; - return Je && (Se += Je() || ""), Se; - }; - var G = !1, te = !1, Q = !1, ae = !1, J = !1, Y = { - ReactCurrentDispatcher: x, - ReactCurrentBatchConfig: R, - ReactCurrentOwner: M - }; - Y.ReactDebugCurrentFrame = j, Y.ReactCurrentActQueue = D; - function re(Se) { - { - for (var Je = arguments.length, Nt = new Array(Je > 1 ? Je - 1 : 0), Dt = 1; Dt < Je; Dt++) - Nt[Dt - 1] = arguments[Dt]; - ve("warn", Se, Nt); - } - } - function fe(Se) { - { - for (var Je = arguments.length, Nt = new Array(Je > 1 ? Je - 1 : 0), Dt = 1; Dt < Je; Dt++) - Nt[Dt - 1] = arguments[Dt]; - ve("error", Se, Nt); - } - } - function ve(Se, Je, Nt) { - { - var Dt = Y.ReactDebugCurrentFrame, Rr = Dt.getStackAddendum(); - Rr !== "" && (Je += "%s", Nt = Nt.concat([Rr])); - var yn = Nt.map(function(Qr) { - return String(Qr); - }); - yn.unshift("Warning: " + Je), Function.prototype.apply.call(console[Se], console, yn); - } - } - var ie = {}; - function he(Se, Je) { - { - var Nt = Se.constructor, Dt = Nt && (Nt.displayName || Nt.name) || "ReactClass", Rr = Dt + "." + Je; - if (ie[Rr]) - return; - fe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", Je, Dt), ie[Rr] = !0; - } - } - var ye = { - /** - * Checks whether or not this composite component is mounted. - * @param {ReactClass} publicInstance The instance we want to test. - * @return {boolean} True if mounted, false otherwise. - * @protected - * @final - */ - isMounted: function(Se) { - return !1; - }, - /** - * Forces an update. This should only be invoked when it is known with - * certainty that we are **not** in a DOM transaction. - * - * You may want to call this when you know that some deeper aspect of the - * component's state has changed but `setState` was not called. - * - * This will not invoke `shouldComponentUpdate`, but it will invoke - * `componentWillUpdate` and `componentDidUpdate`. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {?function} callback Called after component is updated. - * @param {?string} callerName name of the calling function in the public API. - * @internal - */ - enqueueForceUpdate: function(Se, Je, Nt) { - he(Se, "forceUpdate"); - }, - /** - * Replaces all of the state. Always use this or `setState` to mutate state. - * You should treat `this.state` as immutable. - * - * There is no guarantee that `this.state` will be immediately updated, so - * accessing `this.state` after calling this method may return the old value. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {object} completeState Next state. - * @param {?function} callback Called after component is updated. - * @param {?string} callerName name of the calling function in the public API. - * @internal - */ - enqueueReplaceState: function(Se, Je, Nt, Dt) { - he(Se, "replaceState"); - }, - /** - * Sets a subset of the state. This only exists because _pendingState is - * internal. This provides a merging strategy that is not available to deep - * properties which is confusing. TODO: Expose pendingState or don't use it - * during the merge. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {object} partialState Next partial state to be merged with state. - * @param {?function} callback Called after component is updated. - * @param {?string} Name of the calling function in the public API. - * @internal - */ - enqueueSetState: function(Se, Je, Nt, Dt) { - he(Se, "setState"); - } - }, ke = Object.assign, Ne = {}; - Object.freeze(Ne); - function ze(Se, Je, Nt) { - this.props = Se, this.context = Je, this.refs = Ne, this.updater = Nt || ye; - } - ze.prototype.isReactComponent = {}, ze.prototype.setState = function(Se, Je) { - if (typeof Se != "object" && typeof Se != "function" && Se != null) - throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - this.updater.enqueueSetState(this, Se, Je, "setState"); - }, ze.prototype.forceUpdate = function(Se) { - this.updater.enqueueForceUpdate(this, Se, "forceUpdate"); - }; - { - var qe = { - isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], - replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] - }, We = function(Se, Je) { - Object.defineProperty(ze.prototype, Se, { - get: function() { - re("%s(...) is deprecated in plain JavaScript React classes. %s", Je[0], Je[1]); - } - }); - }; - for (var Qe in qe) - qe.hasOwnProperty(Qe) && We(Qe, qe[Qe]); - } - function je() { - } - je.prototype = ze.prototype; - function Ve(Se, Je, Nt) { - this.props = Se, this.context = Je, this.refs = Ne, this.updater = Nt || ye; - } - var Ye = Ve.prototype = new je(); - Ye.constructor = Ve, ke(Ye, ze.prototype), Ye.isPureReactComponent = !0; - function Pe() { - var Se = { - current: null - }; - return Object.seal(Se), Se; - } - var tt = Array.isArray; - function it(Se) { - return tt(Se); - } - function Tt(Se) { - { - var Je = typeof Symbol == "function" && Symbol.toStringTag, Nt = Je && Se[Symbol.toStringTag] || Se.constructor.name || "Object"; - return Nt; - } - } - function Pt(Se) { - try { - return Bt(Se), !1; - } catch { - return !0; - } - } - function Bt(Se) { - return "" + Se; - } - function Mr(Se) { - if (Pt(Se)) - return fe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tt(Se)), Bt(Se); - } - function ln(Se, Je, Nt) { - var Dt = Se.displayName; - if (Dt) - return Dt; - var Rr = Je.displayName || Je.name || ""; - return Rr !== "" ? Nt + "(" + Rr + ")" : Nt; - } - function zr(Se) { - return Se.displayName || "Context"; - } - function Or(Se) { - if (Se == null) - return null; - if (typeof Se.tag == "number" && fe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof Se == "function") - return Se.displayName || Se.name || null; - if (typeof Se == "string") - return Se; - switch (Se) { - case a: - return "Fragment"; - case o: - return "Portal"; - case l: - return "Profiler"; - case s: - return "StrictMode"; - case p: - return "Suspense"; - case g: - return "SuspenseList"; - } - if (typeof Se == "object") - switch (Se.$$typeof) { - case f: - var Je = Se; - return zr(Je) + ".Consumer"; - case u: - var Nt = Se; - return zr(Nt._context) + ".Provider"; - case h: - return ln(Se, Se.render, "ForwardRef"); - case m: - var Dt = Se.displayName || null; - return Dt !== null ? Dt : Or(Se.type) || "Memo"; - case _: { - var Rr = Se, yn = Rr._payload, Qr = Rr._init; - try { - return Or(Qr(yn)); - } catch { - return null; - } - } - } - return null; - } - var ar = Object.prototype.hasOwnProperty, xr = { - key: !0, - ref: !0, - __self: !0, - __source: !0 - }, Nn, bt, lt; - lt = {}; - function at(Se) { - if (ar.call(Se, "ref")) { - var Je = Object.getOwnPropertyDescriptor(Se, "ref").get; - if (Je && Je.isReactWarning) - return !1; - } - return Se.ref !== void 0; - } - function yt(Se) { - if (ar.call(Se, "key")) { - var Je = Object.getOwnPropertyDescriptor(Se, "key").get; - if (Je && Je.isReactWarning) - return !1; - } - return Se.key !== void 0; - } - function Vt(Se, Je) { - var Nt = function() { - Nn || (Nn = !0, fe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Je)); - }; - Nt.isReactWarning = !0, Object.defineProperty(Se, "key", { - get: Nt, - configurable: !0 - }); - } - function Xt(Se, Je) { - var Nt = function() { - bt || (bt = !0, fe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Je)); - }; - Nt.isReactWarning = !0, Object.defineProperty(Se, "ref", { - get: Nt, - configurable: !0 - }); - } - function $t(Se) { - if (typeof Se.ref == "string" && M.current && Se.__self && M.current.stateNode !== Se.__self) { - var Je = Or(M.current.type); - lt[Je] || (fe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Je, Se.ref), lt[Je] = !0); - } - } - var pt = function(Se, Je, Nt, Dt, Rr, yn, Qr) { - var ii = { - // This tag allows us to uniquely identify this as a React Element - $$typeof: i, - // Built-in properties that belong on the element - type: Se, - key: Je, - ref: Nt, - props: Qr, - // Record the component responsible for creating this element. - _owner: yn - }; - return ii._store = {}, Object.defineProperty(ii._store, "validated", { - configurable: !1, - enumerable: !1, - writable: !0, - value: !1 - }), Object.defineProperty(ii, "_self", { - configurable: !1, - enumerable: !1, - writable: !1, - value: Dt - }), Object.defineProperty(ii, "_source", { - configurable: !1, - enumerable: !1, - writable: !1, - value: Rr - }), Object.freeze && (Object.freeze(ii.props), Object.freeze(ii)), ii; - }; - function kt(Se, Je, Nt) { - var Dt, Rr = {}, yn = null, Qr = null, ii = null, Ci = null; - if (Je != null) { - at(Je) && (Qr = Je.ref, $t(Je)), yt(Je) && (Mr(Je.key), yn = "" + Je.key), ii = Je.__self === void 0 ? null : Je.__self, Ci = Je.__source === void 0 ? null : Je.__source; - for (Dt in Je) - ar.call(Je, Dt) && !xr.hasOwnProperty(Dt) && (Rr[Dt] = Je[Dt]); - } - var wo = arguments.length - 2; - if (wo === 1) - Rr.children = Nt; - else if (wo > 1) { - for (var bi = Array(wo), zo = 0; zo < wo; zo++) - bi[zo] = arguments[zo + 2]; - Object.freeze && Object.freeze(bi), Rr.children = bi; - } - if (Se && Se.defaultProps) { - var Pi = Se.defaultProps; - for (Dt in Pi) - Rr[Dt] === void 0 && (Rr[Dt] = Pi[Dt]); - } - if (yn || Qr) { - var ha = typeof Se == "function" ? Se.displayName || Se.name || "Unknown" : Se; - yn && Vt(Rr, ha), Qr && Xt(Rr, ha); - } - return pt(Se, yn, Qr, ii, Ci, M.current, Rr); - } - function Jt(Se, Je) { - var Nt = pt(Se.type, Je, Se.ref, Se._self, Se._source, Se._owner, Se.props); - return Nt; - } - function wr(Se, Je, Nt) { - if (Se == null) - throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + Se + "."); - var Dt, Rr = ke({}, Se.props), yn = Se.key, Qr = Se.ref, ii = Se._self, Ci = Se._source, wo = Se._owner; - if (Je != null) { - at(Je) && (Qr = Je.ref, wo = M.current), yt(Je) && (Mr(Je.key), yn = "" + Je.key); - var bi; - Se.type && Se.type.defaultProps && (bi = Se.type.defaultProps); - for (Dt in Je) - ar.call(Je, Dt) && !xr.hasOwnProperty(Dt) && (Je[Dt] === void 0 && bi !== void 0 ? Rr[Dt] = bi[Dt] : Rr[Dt] = Je[Dt]); - } - var zo = arguments.length - 2; - if (zo === 1) - Rr.children = Nt; - else if (zo > 1) { - for (var Pi = Array(zo), ha = 0; ha < zo; ha++) - Pi[ha] = arguments[ha + 2]; - Rr.children = Pi; - } - return pt(Se.type, yn, Qr, ii, Ci, wo, Rr); - } - function Lr(Se) { - return typeof Se == "object" && Se !== null && Se.$$typeof === i; - } - var wn = ".", Bn = ":"; - function un(Se) { - var Je = /[=:]/g, Nt = { - "=": "=0", - ":": "=2" - }, Dt = Se.replace(Je, function(Rr) { - return Nt[Rr]; - }); - return "$" + Dt; - } - var Cn = !1, vi = /\/+/g; - function Xr(Se) { - return Se.replace(vi, "$&/"); - } - function Fr(Se, Je) { - return typeof Se == "object" && Se !== null && Se.key != null ? (Mr(Se.key), un("" + Se.key)) : Je.toString(36); - } - function xi(Se, Je, Nt, Dt, Rr) { - var yn = typeof Se; - (yn === "undefined" || yn === "boolean") && (Se = null); - var Qr = !1; - if (Se === null) - Qr = !0; - else - switch (yn) { - case "string": - case "number": - Qr = !0; - break; - case "object": - switch (Se.$$typeof) { - case i: - case o: - Qr = !0; - } - } - if (Qr) { - var ii = Se, Ci = Rr(ii), wo = Dt === "" ? wn + Fr(ii, 0) : Dt; - if (it(Ci)) { - var bi = ""; - wo != null && (bi = Xr(wo) + "/"), xi(Ci, Je, bi, "", function(Wd) { - return Wd; - }); - } else - Ci != null && (Lr(Ci) && (Ci.key && (!ii || ii.key !== Ci.key) && Mr(Ci.key), Ci = Jt( - Ci, - // Keep both the (mapped) and old keys if they differ, just as - // traverseAllChildren used to do for objects as children - Nt + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key - (Ci.key && (!ii || ii.key !== Ci.key) ? ( - // $FlowFixMe Flow incorrectly thinks existing element's key can be a number - // eslint-disable-next-line react-internal/safe-string-coercion - Xr("" + Ci.key) + "/" - ) : "") + wo - )), Je.push(Ci)); - return 1; - } - var zo, Pi, ha = 0, Vi = Dt === "" ? wn : Dt + Bn; - if (it(Se)) - for (var mu = 0; mu < Se.length; mu++) - zo = Se[mu], Pi = Vi + Fr(zo, mu), ha += xi(zo, Je, Nt, Pi, Rr); - else { - var qu = N(Se); - if (typeof qu == "function") { - var Zc = Se; - qu === Zc.entries && (Cn || re("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Cn = !0); - for (var uo = qu.call(Zc), Ea, qd = 0; !(Ea = uo.next()).done; ) - zo = Ea.value, Pi = Vi + Fr(zo, qd++), ha += xi(zo, Je, Nt, Pi, Rr); - } else if (yn === "object") { - var Jc = String(Se); - throw new Error("Objects are not valid as a React child (found: " + (Jc === "[object Object]" ? "object with keys {" + Object.keys(Se).join(", ") + "}" : Jc) + "). If you meant to render a collection of children, use an array instead."); - } - } - return ha; - } - function On(Se, Je, Nt) { - if (Se == null) - return Se; - var Dt = [], Rr = 0; - return xi(Se, Dt, "", "", function(yn) { - return Je.call(Nt, yn, Rr++); - }), Dt; - } - function Ai(Se) { - var Je = 0; - return On(Se, function() { - Je++; - }), Je; - } - function Fn(Se, Je, Nt) { - On(Se, function() { - Je.apply(this, arguments); - }, Nt); - } - function vn(Se) { - return On(Se, function(Je) { - return Je; - }) || []; - } - function Wr(Se) { - if (!Lr(Se)) - throw new Error("React.Children.only expected to receive a single React element child."); - return Se; - } - function ur(Se) { - var Je = { - $$typeof: f, - // As a workaround to support multiple concurrent renderers, we categorize - // some renderers as primary and others as secondary. We only expect - // there to be two concurrent renderers at most: React Native (primary) and - // Fabric (secondary); React DOM (primary) and React ART (secondary). - // Secondary renderers store their context values on separate fields. - _currentValue: Se, - _currentValue2: Se, - // Used to track how many concurrent renderers this context currently - // supports within in a single renderer. Such as parallel server rendering. - _threadCount: 0, - // These are circular - Provider: null, - Consumer: null, - // Add these to use same hidden class in VM as ServerContext - _defaultValue: null, - _globalName: null - }; - Je.Provider = { - $$typeof: u, - _context: Je - }; - var Nt = !1, Dt = !1, Rr = !1; - { - var yn = { - $$typeof: f, - _context: Je - }; - Object.defineProperties(yn, { - Provider: { - get: function() { - return Dt || (Dt = !0, fe("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")), Je.Provider; - }, - set: function(Qr) { - Je.Provider = Qr; - } - }, - _currentValue: { - get: function() { - return Je._currentValue; - }, - set: function(Qr) { - Je._currentValue = Qr; - } - }, - _currentValue2: { - get: function() { - return Je._currentValue2; - }, - set: function(Qr) { - Je._currentValue2 = Qr; - } - }, - _threadCount: { - get: function() { - return Je._threadCount; - }, - set: function(Qr) { - Je._threadCount = Qr; - } - }, - Consumer: { - get: function() { - return Nt || (Nt = !0, fe("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")), Je.Consumer; - } - }, - displayName: { - get: function() { - return Je.displayName; - }, - set: function(Qr) { - Rr || (re("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", Qr), Rr = !0); - } - } - }), Je.Consumer = yn; - } - return Je._currentRenderer = null, Je._currentRenderer2 = null, Je; - } - var Ni = -1, $o = 0, oi = 1, Fi = 2; - function So(Se) { - if (Se._status === Ni) { - var Je = Se._result, Nt = Je(); - if (Nt.then(function(yn) { - if (Se._status === $o || Se._status === Ni) { - var Qr = Se; - Qr._status = oi, Qr._result = yn; - } - }, function(yn) { - if (Se._status === $o || Se._status === Ni) { - var Qr = Se; - Qr._status = Fi, Qr._result = yn; - } - }), Se._status === Ni) { - var Dt = Se; - Dt._status = $o, Dt._result = Nt; - } - } - if (Se._status === oi) { - var Rr = Se._result; - return Rr === void 0 && fe(`lazy: Expected the result of a dynamic import() call. Instead received: %s - -Your code should look like: - const MyComponent = lazy(() => import('./MyComponent')) - -Did you accidentally put curly braces around the import?`, Rr), "default" in Rr || fe(`lazy: Expected the result of a dynamic import() call. Instead received: %s - -Your code should look like: - const MyComponent = lazy(() => import('./MyComponent'))`, Rr), Rr.default; - } else - throw Se._result; - } - function ao(Se) { - var Je = { - // We use these fields to store the result. - _status: Ni, - _result: Se - }, Nt = { - $$typeof: _, - _payload: Je, - _init: So - }; - { - var Dt, Rr; - Object.defineProperties(Nt, { - defaultProps: { - configurable: !0, - get: function() { - return Dt; - }, - set: function(yn) { - fe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), Dt = yn, Object.defineProperty(Nt, "defaultProps", { - enumerable: !0 - }); - } - }, - propTypes: { - configurable: !0, - get: function() { - return Rr; - }, - set: function(yn) { - fe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), Rr = yn, Object.defineProperty(Nt, "propTypes", { - enumerable: !0 - }); - } - } - }); - } - return Nt; - } - function ds(Se) { - Se != null && Se.$$typeof === m ? fe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof Se != "function" ? fe("forwardRef requires a render function but was given %s.", Se === null ? "null" : typeof Se) : Se.length !== 0 && Se.length !== 2 && fe("forwardRef render functions accept exactly two parameters: props and ref. %s", Se.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), Se != null && (Se.defaultProps != null || Se.propTypes != null) && fe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); - var Je = { - $$typeof: h, - render: Se - }; - { - var Nt; - Object.defineProperty(Je, "displayName", { - enumerable: !1, - configurable: !0, - get: function() { - return Nt; - }, - set: function(Dt) { - Nt = Dt, !Se.name && !Se.displayName && (Se.displayName = Dt); - } - }); - } - return Je; - } - var De; - De = Symbol.for("react.module.reference"); - function we(Se) { - return !!(typeof Se == "string" || typeof Se == "function" || Se === a || Se === l || J || Se === s || Se === p || Se === g || ae || Se === S || G || te || Q || typeof Se == "object" && Se !== null && (Se.$$typeof === _ || Se.$$typeof === m || Se.$$typeof === u || Se.$$typeof === f || Se.$$typeof === h || // This needs to include all possible module reference object - // types supported by any Flight configuration anywhere since - // we don't know which Flight build this will end up being used - // with. - Se.$$typeof === De || Se.getModuleId !== void 0)); - } - function Re(Se, Je) { - we(Se) || fe("memo: The first argument must be a component. Instead received: %s", Se === null ? "null" : typeof Se); - var Nt = { - $$typeof: m, - type: Se, - compare: Je === void 0 ? null : Je - }; - { - var Dt; - Object.defineProperty(Nt, "displayName", { - enumerable: !1, - configurable: !0, - get: function() { - return Dt; - }, - set: function(Rr) { - Dt = Rr, !Se.name && !Se.displayName && (Se.displayName = Rr); - } - }); - } - return Nt; - } - function _e() { - var Se = x.current; - return Se === null && fe(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: -1. You might have mismatching versions of React and the renderer (such as React DOM) -2. You might be breaking the Rules of Hooks -3. You might have more than one copy of React in the same app -See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), Se; - } - function Ae(Se) { - var Je = _e(); - if (Se._context !== void 0) { - var Nt = Se._context; - Nt.Consumer === Se ? fe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : Nt.Provider === Se && fe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); - } - return Je.useContext(Se); - } - function ge(Se) { - var Je = _e(); - return Je.useState(Se); - } - function Me(Se, Je, Nt) { - var Dt = _e(); - return Dt.useReducer(Se, Je, Nt); - } - function Ge(Se) { - var Je = _e(); - return Je.useRef(Se); - } - function nt(Se, Je) { - var Nt = _e(); - return Nt.useEffect(Se, Je); - } - function Xe(Se, Je) { - var Nt = _e(); - return Nt.useInsertionEffect(Se, Je); - } - function St(Se, Je) { - var Nt = _e(); - return Nt.useLayoutEffect(Se, Je); - } - function Qt(Se, Je) { - var Nt = _e(); - return Nt.useCallback(Se, Je); - } - function cn(Se, Je) { - var Nt = _e(); - return Nt.useMemo(Se, Je); - } - function Hr(Se, Je, Nt) { - var Dt = _e(); - return Dt.useImperativeHandle(Se, Je, Nt); - } - function Jr(Se, Je) { - { - var Nt = _e(); - return Nt.useDebugValue(Se, Je); - } - } - function tn() { - var Se = _e(); - return Se.useTransition(); - } - function Un(Se) { - var Je = _e(); - return Je.useDeferredValue(Se); - } - function Kr() { - var Se = _e(); - return Se.useId(); - } - function In(Se, Je, Nt) { - var Dt = _e(); - return Dt.useSyncExternalStore(Se, Je, Nt); - } - var Zi = 0, Ko, Gi, al, xo, gu, sl, Yo; - function Wi() { - } - Wi.__reactDisabledLog = !0; - function oa() { - { - if (Zi === 0) { - Ko = console.log, Gi = console.info, al = console.warn, xo = console.error, gu = console.group, sl = console.groupCollapsed, Yo = console.groupEnd; - var Se = { - configurable: !0, - enumerable: !0, - value: Wi, - writable: !0 - }; - Object.defineProperties(console, { - info: Se, - log: Se, - warn: Se, - error: Se, - group: Se, - groupCollapsed: Se, - groupEnd: Se - }); - } - Zi++; - } - } - function Xo() { - { - if (Zi--, Zi === 0) { - var Se = { - configurable: !0, - enumerable: !0, - writable: !0 - }; - Object.defineProperties(console, { - log: ke({}, Se, { - value: Ko - }), - info: ke({}, Se, { - value: Gi - }), - warn: ke({}, Se, { - value: al - }), - error: ke({}, Se, { - value: xo - }), - group: ke({}, Se, { - value: gu - }), - groupCollapsed: ke({}, Se, { - value: sl - }), - groupEnd: ke({}, Se, { - value: Yo - }) - }); - } - Zi < 0 && fe("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } - } - var Na = Y.ReactCurrentDispatcher, Bi; - function Es(Se, Je, Nt) { - { - if (Bi === void 0) - try { - throw Error(); - } catch (Rr) { - var Dt = Rr.stack.trim().match(/\n( *(at )?)/); - Bi = Dt && Dt[1] || ""; - } - return ` -` + Bi + Se; - } - } - var As = !1, ll; - { - var ul = typeof WeakMap == "function" ? WeakMap : Map; - ll = new ul(); - } - function ya(Se, Je) { - if (!Se || As) - return ""; - { - var Nt = ll.get(Se); - if (Nt !== void 0) - return Nt; - } - var Dt; - As = !0; - var Rr = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var yn; - yn = Na.current, Na.current = null, oa(); - try { - if (Je) { - var Qr = function() { - throw Error(); - }; - if (Object.defineProperty(Qr.prototype, "props", { - set: function() { - throw Error(); - } - }), typeof Reflect == "object" && Reflect.construct) { - try { - Reflect.construct(Qr, []); - } catch (Vi) { - Dt = Vi; - } - Reflect.construct(Se, [], Qr); - } else { - try { - Qr.call(); - } catch (Vi) { - Dt = Vi; - } - Se.call(Qr.prototype); - } - } else { - try { - throw Error(); - } catch (Vi) { - Dt = Vi; - } - Se(); - } - } catch (Vi) { - if (Vi && Dt && typeof Vi.stack == "string") { - for (var ii = Vi.stack.split(` -`), Ci = Dt.stack.split(` -`), wo = ii.length - 1, bi = Ci.length - 1; wo >= 1 && bi >= 0 && ii[wo] !== Ci[bi]; ) - bi--; - for (; wo >= 1 && bi >= 0; wo--, bi--) - if (ii[wo] !== Ci[bi]) { - if (wo !== 1 || bi !== 1) - do - if (wo--, bi--, bi < 0 || ii[wo] !== Ci[bi]) { - var zo = ` -` + ii[wo].replace(" at new ", " at "); - return Se.displayName && zo.includes("") && (zo = zo.replace("", Se.displayName)), typeof Se == "function" && ll.set(Se, zo), zo; - } - while (wo >= 1 && bi >= 0); - break; - } - } - } finally { - As = !1, Na.current = yn, Xo(), Error.prepareStackTrace = Rr; - } - var Pi = Se ? Se.displayName || Se.name : "", ha = Pi ? Es(Pi) : ""; - return typeof Se == "function" && ll.set(Se, ha), ha; - } - function zs(Se, Je, Nt) { - return ya(Se, !1); - } - function Ec(Se) { - var Je = Se.prototype; - return !!(Je && Je.isReactComponent); - } - function _n(Se, Je, Nt) { - if (Se == null) - return ""; - if (typeof Se == "function") - return ya(Se, Ec(Se)); - if (typeof Se == "string") - return Es(Se); - switch (Se) { - case p: - return Es("Suspense"); - case g: - return Es("SuspenseList"); - } - if (typeof Se == "object") - switch (Se.$$typeof) { - case h: - return zs(Se.render); - case m: - return _n(Se.type, Je, Nt); - case _: { - var Dt = Se, Rr = Dt._payload, yn = Dt._init; - try { - return _n(yn(Rr), Je, Nt); - } catch { - } - } - } - return ""; - } - var ba = {}, _a = Y.ReactDebugCurrentFrame; - function Cl(Se) { - if (Se) { - var Je = Se._owner, Nt = _n(Se.type, Se._source, Je ? Je.type : null); - _a.setExtraStackFrame(Nt); - } else - _a.setExtraStackFrame(null); - } - function cl(Se, Je, Nt, Dt, Rr) { - { - var yn = Function.call.bind(ar); - for (var Qr in Se) - if (yn(Se, Qr)) { - var ii = void 0; - try { - if (typeof Se[Qr] != "function") { - var Ci = Error((Dt || "React class") + ": " + Nt + " type `" + Qr + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Se[Qr] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw Ci.name = "Invariant Violation", Ci; - } - ii = Se[Qr](Je, Qr, Dt, Nt, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (wo) { - ii = wo; - } - ii && !(ii instanceof Error) && (Cl(Rr), fe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Dt || "React class", Nt, Qr, typeof ii), Cl(null)), ii instanceof Error && !(ii.message in ba) && (ba[ii.message] = !0, Cl(Rr), fe("Failed %s type: %s", Nt, ii.message), Cl(null)); - } - } - } - function ki(Se) { - if (Se) { - var Je = Se._owner, Nt = _n(Se.type, Se._source, Je ? Je.type : null); - z(Nt); - } else - z(null); - } - var fl; - fl = !1; - function Hu() { - if (M.current) { - var Se = Or(M.current.type); - if (Se) - return ` - -Check the render method of \`` + Se + "`."; - } - return ""; - } - function dn(Se) { - if (Se !== void 0) { - var Je = Se.fileName.replace(/^.*[\\\/]/, ""), Nt = Se.lineNumber; - return ` - -Check your code at ` + Je + ":" + Nt + "."; - } - return ""; - } - function Ol(Se) { - return Se != null ? dn(Se.__source) : ""; - } - var Ki = {}; - function Rl(Se) { - var Je = Hu(); - if (!Je) { - var Nt = typeof Se == "string" ? Se : Se.displayName || Se.name; - Nt && (Je = ` - -Check the top-level render call using <` + Nt + ">."); - } - return Je; - } - function hs(Se, Je) { - if (!(!Se._store || Se._store.validated || Se.key != null)) { - Se._store.validated = !0; - var Nt = Rl(Je); - if (!Ki[Nt]) { - Ki[Nt] = !0; - var Dt = ""; - Se && Se._owner && Se._owner !== M.current && (Dt = " It was passed a child from " + Or(Se._owner.type) + "."), ki(Se), fe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Nt, Dt), ki(null); - } - } - } - function Sc(Se, Je) { - if (typeof Se == "object") { - if (it(Se)) - for (var Nt = 0; Nt < Se.length; Nt++) { - var Dt = Se[Nt]; - Lr(Dt) && hs(Dt, Je); - } - else if (Lr(Se)) - Se._store && (Se._store.validated = !0); - else if (Se) { - var Rr = N(Se); - if (typeof Rr == "function" && Rr !== Se.entries) - for (var yn = Rr.call(Se), Qr; !(Qr = yn.next()).done; ) - Lr(Qr.value) && hs(Qr.value, Je); - } - } - } - function Po(Se) { - { - var Je = Se.type; - if (Je == null || typeof Je == "string") - return; - var Nt; - if (typeof Je == "function") - Nt = Je.propTypes; - else if (typeof Je == "object" && (Je.$$typeof === h || // Note: Memo only checks outer props here. - // Inner props are checked in the reconciler. - Je.$$typeof === m)) - Nt = Je.propTypes; - else - return; - if (Nt) { - var Dt = Or(Je); - cl(Nt, Se.props, "prop", Dt, Se); - } else if (Je.PropTypes !== void 0 && !fl) { - fl = !0; - var Rr = Or(Je); - fe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Rr || "Unknown"); - } - typeof Je.getDefaultProps == "function" && !Je.getDefaultProps.isReactClassApproved && fe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); - } - } - function so(Se) { - { - for (var Je = Object.keys(Se.props), Nt = 0; Nt < Je.length; Nt++) { - var Dt = Je[Nt]; - if (Dt !== "children" && Dt !== "key") { - ki(Se), fe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Dt), ki(null); - break; - } - } - Se.ref !== null && (ki(Se), fe("Invalid attribute `ref` supplied to `React.Fragment`."), ki(null)); - } - } - function $f(Se, Je, Nt) { - var Dt = we(Se); - if (!Dt) { - var Rr = ""; - (Se === void 0 || typeof Se == "object" && Se !== null && Object.keys(Se).length === 0) && (Rr += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); - var yn = Ol(Je); - yn ? Rr += yn : Rr += Hu(); - var Qr; - Se === null ? Qr = "null" : it(Se) ? Qr = "array" : Se !== void 0 && Se.$$typeof === i ? (Qr = "<" + (Or(Se.type) || "Unknown") + " />", Rr = " Did you accidentally export a JSX literal instead of a component?") : Qr = typeof Se, fe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Qr, Rr); - } - var ii = kt.apply(this, arguments); - if (ii == null) - return ii; - if (Dt) - for (var Ci = 2; Ci < arguments.length; Ci++) - Sc(arguments[Ci], Se); - return Se === a ? so(ii) : Po(ii), ii; - } - var da = !1; - function ks(Se) { - var Je = $f.bind(null, Se); - return Je.type = Se, da || (da = !0, re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(Je, "type", { - enumerable: !1, - get: function() { - return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", { - value: Se - }), Se; - } - }), Je; - } - function er(Se, Je, Nt) { - for (var Dt = wr.apply(this, arguments), Rr = 2; Rr < arguments.length; Rr++) - Sc(arguments[Rr], Dt.type); - return Po(Dt), Dt; - } - function Ar(Se, Je) { - var Nt = R.transition; - R.transition = {}; - var Dt = R.transition; - R.transition._updatedFibers = /* @__PURE__ */ new Set(); - try { - Se(); - } finally { - if (R.transition = Nt, Nt === null && Dt._updatedFibers) { - var Rr = Dt._updatedFibers.size; - Rr > 10 && re("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), Dt._updatedFibers.clear(); - } - } - } - var Gn = !1, Kn = null; - function hn(Se) { - if (Kn === null) - try { - var Je = ("require" + Math.random()).slice(0, 7), Nt = e && e[Je]; - Kn = Nt.call(e, "timers").setImmediate; - } catch { - Kn = function(Rr) { - Gn === !1 && (Gn = !0, typeof MessageChannel > "u" && fe("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.")); - var yn = new MessageChannel(); - yn.port1.onmessage = Rr, yn.port2.postMessage(void 0); - }; - } - return Kn(Se); - } - var on = 0, $i = !1; - function lo(Se) { - { - var Je = on; - on++, D.current === null && (D.current = []); - var Nt = D.isBatchingLegacy, Dt; - try { - if (D.isBatchingLegacy = !0, Dt = Se(), !Nt && D.didScheduleLegacyUpdate) { - var Rr = D.current; - Rr !== null && (D.didScheduleLegacyUpdate = !1, xc(Rr)); - } - } catch (Pi) { - throw Qo(Je), Pi; - } finally { - D.isBatchingLegacy = Nt; - } - if (Dt !== null && typeof Dt == "object" && typeof Dt.then == "function") { - var yn = Dt, Qr = !1, ii = { - then: function(Pi, ha) { - Qr = !0, yn.then(function(Vi) { - Qo(Je), on === 0 ? Ss(Vi, Pi, ha) : Pi(Vi); - }, function(Vi) { - Qo(Je), ha(Vi); - }); - } - }; - return !$i && typeof Promise < "u" && Promise.resolve().then(function() { - }).then(function() { - Qr || ($i = !0, fe("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);")); - }), ii; - } else { - var Ci = Dt; - if (Qo(Je), on === 0) { - var wo = D.current; - wo !== null && (xc(wo), D.current = null); - var bi = { - then: function(Pi, ha) { - D.current === null ? (D.current = [], Ss(Ci, Pi, ha)) : Pi(Ci); - } - }; - return bi; - } else { - var zo = { - then: function(Pi, ha) { - Pi(Ci); - } - }; - return zo; - } - } - } - } - function Qo(Se) { - Se !== on - 1 && fe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), on = Se; - } - function Ss(Se, Je, Nt) { - { - var Dt = D.current; - if (Dt !== null) - try { - xc(Dt), hn(function() { - Dt.length === 0 ? (D.current = null, Je(Se)) : Ss(Se, Je, Nt); - }); - } catch (Rr) { - Nt(Rr); - } - else - Je(Se); - } - } - var ps = !1; - function xc(Se) { - if (!ps) { - ps = !0; - var Je = 0; - try { - for (; Je < Se.length; Je++) { - var Nt = Se[Je]; - do - Nt = Nt(!0); - while (Nt !== null); - } - Se.length = 0; - } catch (Dt) { - throw Se = Se.slice(Je + 1), Dt; - } finally { - ps = !1; - } - } - } - var wc = $f, Pf = er, jo = ks, Hd = { - map: On, - forEach: Fn, - count: Ai, - toArray: vn, - only: Wr - }; - t.Children = Hd, t.Component = ze, t.Fragment = a, t.Profiler = l, t.PureComponent = Ve, t.StrictMode = s, t.Suspense = p, t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Y, t.cloneElement = Pf, t.createContext = ur, t.createElement = wc, t.createFactory = jo, t.createRef = Pe, t.forwardRef = ds, t.isValidElement = Lr, t.lazy = ao, t.memo = Re, t.startTransition = Ar, t.unstable_act = lo, t.useCallback = Qt, t.useContext = Ae, t.useDebugValue = Jr, t.useDeferredValue = Un, t.useEffect = nt, t.useId = Kr, t.useImperativeHandle = Hr, t.useInsertionEffect = Xe, t.useLayoutEffect = St, t.useMemo = cn, t.useReducer = Me, t.useRef = Ge, t.useState = ge, t.useSyncExternalStore = In, t.useTransition = tn, t.version = n, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); - }(); - }(NR, NR.exports)), NR.exports; -} -var ta = {}; -/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var toe; -function MFe() { - if (toe) - return ta; - toe = 1; - var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.iterator; - function p(ie) { - return ie === null || typeof ie != "object" ? null : (ie = h && ie[h] || ie["@@iterator"], typeof ie == "function" ? ie : null); - } - var g = { isMounted: function() { - return !1; - }, enqueueForceUpdate: function() { - }, enqueueReplaceState: function() { - }, enqueueSetState: function() { - } }, m = Object.assign, _ = {}; - function S(ie, he, ye) { - this.props = ie, this.context = he, this.refs = _, this.updater = ye || g; - } - S.prototype.isReactComponent = {}, S.prototype.setState = function(ie, he) { - if (typeof ie != "object" && typeof ie != "function" && ie != null) - throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - this.updater.enqueueSetState(this, ie, he, "setState"); - }, S.prototype.forceUpdate = function(ie) { - this.updater.enqueueForceUpdate(this, ie, "forceUpdate"); - }; - function A() { - } - A.prototype = S.prototype; - function C(ie, he, ye) { - this.props = ie, this.context = he, this.refs = _, this.updater = ye || g; - } - var N = C.prototype = new A(); - N.constructor = C, m(N, S.prototype), N.isPureReactComponent = !0; - var x = Array.isArray, R = Object.prototype.hasOwnProperty, D = { current: null }, M = { key: !0, ref: !0, __self: !0, __source: !0 }; - function j(ie, he, ye) { - var ke, Ne = {}, ze = null, qe = null; - if (he != null) - for (ke in he.ref !== void 0 && (qe = he.ref), he.key !== void 0 && (ze = "" + he.key), he) - R.call(he, ke) && !M.hasOwnProperty(ke) && (Ne[ke] = he[ke]); - var We = arguments.length - 2; - if (We === 1) - Ne.children = ye; - else if (1 < We) { - for (var Qe = Array(We), je = 0; je < We; je++) - Qe[je] = arguments[je + 2]; - Ne.children = Qe; - } - if (ie && ie.defaultProps) - for (ke in We = ie.defaultProps, We) - Ne[ke] === void 0 && (Ne[ke] = We[ke]); - return { $$typeof: e, type: ie, key: ze, ref: qe, props: Ne, _owner: D.current }; - } - function F(ie, he) { - return { $$typeof: e, type: ie.type, key: he, ref: ie.ref, props: ie.props, _owner: ie._owner }; - } - function z(ie) { - return typeof ie == "object" && ie !== null && ie.$$typeof === e; - } - function G(ie) { - var he = { "=": "=0", ":": "=2" }; - return "$" + ie.replace(/[=:]/g, function(ye) { - return he[ye]; - }); - } - var te = /\/+/g; - function Q(ie, he) { - return typeof ie == "object" && ie !== null && ie.key != null ? G("" + ie.key) : he.toString(36); - } - function ae(ie, he, ye, ke, Ne) { - var ze = typeof ie; - (ze === "undefined" || ze === "boolean") && (ie = null); - var qe = !1; - if (ie === null) - qe = !0; - else - switch (ze) { - case "string": - case "number": - qe = !0; - break; - case "object": - switch (ie.$$typeof) { - case e: - case t: - qe = !0; - } - } - if (qe) - return qe = ie, Ne = Ne(qe), ie = ke === "" ? "." + Q(qe, 0) : ke, x(Ne) ? (ye = "", ie != null && (ye = ie.replace(te, "$&/") + "/"), ae(Ne, he, ye, "", function(je) { - return je; - })) : Ne != null && (z(Ne) && (Ne = F(Ne, ye + (!Ne.key || qe && qe.key === Ne.key ? "" : ("" + Ne.key).replace(te, "$&/") + "/") + ie)), he.push(Ne)), 1; - if (qe = 0, ke = ke === "" ? "." : ke + ":", x(ie)) - for (var We = 0; We < ie.length; We++) { - ze = ie[We]; - var Qe = ke + Q(ze, We); - qe += ae(ze, he, ye, Qe, Ne); - } - else if (Qe = p(ie), typeof Qe == "function") - for (ie = Qe.call(ie), We = 0; !(ze = ie.next()).done; ) - ze = ze.value, Qe = ke + Q(ze, We++), qe += ae(ze, he, ye, Qe, Ne); - else if (ze === "object") - throw he = String(ie), Error("Objects are not valid as a React child (found: " + (he === "[object Object]" ? "object with keys {" + Object.keys(ie).join(", ") + "}" : he) + "). If you meant to render a collection of children, use an array instead."); - return qe; - } - function J(ie, he, ye) { - if (ie == null) - return ie; - var ke = [], Ne = 0; - return ae(ie, ke, "", "", function(ze) { - return he.call(ye, ze, Ne++); - }), ke; - } - function Y(ie) { - if (ie._status === -1) { - var he = ie._result; - he = he(), he.then(function(ye) { - (ie._status === 0 || ie._status === -1) && (ie._status = 1, ie._result = ye); - }, function(ye) { - (ie._status === 0 || ie._status === -1) && (ie._status = 2, ie._result = ye); - }), ie._status === -1 && (ie._status = 0, ie._result = he); - } - if (ie._status === 1) - return ie._result.default; - throw ie._result; - } - var re = { current: null }, fe = { transition: null }, ve = { ReactCurrentDispatcher: re, ReactCurrentBatchConfig: fe, ReactCurrentOwner: D }; - return ta.Children = { map: J, forEach: function(ie, he, ye) { - J(ie, function() { - he.apply(this, arguments); - }, ye); - }, count: function(ie) { - var he = 0; - return J(ie, function() { - he++; - }), he; - }, toArray: function(ie) { - return J(ie, function(he) { - return he; - }) || []; - }, only: function(ie) { - if (!z(ie)) - throw Error("React.Children.only expected to receive a single React element child."); - return ie; - } }, ta.Component = S, ta.Fragment = r, ta.Profiler = i, ta.PureComponent = C, ta.StrictMode = n, ta.Suspense = l, ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ve, ta.cloneElement = function(ie, he, ye) { - if (ie == null) - throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + ie + "."); - var ke = m({}, ie.props), Ne = ie.key, ze = ie.ref, qe = ie._owner; - if (he != null) { - if (he.ref !== void 0 && (ze = he.ref, qe = D.current), he.key !== void 0 && (Ne = "" + he.key), ie.type && ie.type.defaultProps) - var We = ie.type.defaultProps; - for (Qe in he) - R.call(he, Qe) && !M.hasOwnProperty(Qe) && (ke[Qe] = he[Qe] === void 0 && We !== void 0 ? We[Qe] : he[Qe]); - } - var Qe = arguments.length - 2; - if (Qe === 1) - ke.children = ye; - else if (1 < Qe) { - We = Array(Qe); - for (var je = 0; je < Qe; je++) - We[je] = arguments[je + 2]; - ke.children = We; - } - return { $$typeof: e, type: ie.type, key: Ne, ref: ze, props: ke, _owner: qe }; - }, ta.createContext = function(ie) { - return ie = { $$typeof: a, _currentValue: ie, _currentValue2: ie, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, ie.Provider = { $$typeof: o, _context: ie }, ie.Consumer = ie; - }, ta.createElement = j, ta.createFactory = function(ie) { - var he = j.bind(null, ie); - return he.type = ie, he; - }, ta.createRef = function() { - return { current: null }; - }, ta.forwardRef = function(ie) { - return { $$typeof: s, render: ie }; - }, ta.isValidElement = z, ta.lazy = function(ie) { - return { $$typeof: f, _payload: { _status: -1, _result: ie }, _init: Y }; - }, ta.memo = function(ie, he) { - return { $$typeof: u, type: ie, compare: he === void 0 ? null : he }; - }, ta.startTransition = function(ie) { - var he = fe.transition; - fe.transition = {}; - try { - ie(); - } finally { - fe.transition = he; - } - }, ta.unstable_act = function() { - throw Error("act(...) is not supported in production builds of React."); - }, ta.useCallback = function(ie, he) { - return re.current.useCallback(ie, he); - }, ta.useContext = function(ie) { - return re.current.useContext(ie); - }, ta.useDebugValue = function() { - }, ta.useDeferredValue = function(ie) { - return re.current.useDeferredValue(ie); - }, ta.useEffect = function(ie, he) { - return re.current.useEffect(ie, he); - }, ta.useId = function() { - return re.current.useId(); - }, ta.useImperativeHandle = function(ie, he, ye) { - return re.current.useImperativeHandle(ie, he, ye); - }, ta.useInsertionEffect = function(ie, he) { - return re.current.useInsertionEffect(ie, he); - }, ta.useLayoutEffect = function(ie, he) { - return re.current.useLayoutEffect(ie, he); - }, ta.useMemo = function(ie, he) { - return re.current.useMemo(ie, he); - }, ta.useReducer = function(ie, he, ye) { - return re.current.useReducer(ie, he, ye); - }, ta.useRef = function(ie) { - return re.current.useRef(ie); - }, ta.useState = function(ie) { - return re.current.useState(ie); - }, ta.useSyncExternalStore = function(ie, he, ye) { - return re.current.useSyncExternalStore(ie, he, ye); - }, ta.useTransition = function() { - return re.current.useTransition(); - }, ta.version = "18.2.0", ta; -} -var LFe = {}; -LFe.NODE_ENV === "production" ? fG.exports = MFe() : fG.exports = DFe(); -var W = fG.exports; -const Oe = /* @__PURE__ */ fa(W), DN = /* @__PURE__ */ Pbe({ - __proto__: null, - default: Oe -}, [W]); -var roe; -function FFe() { - if (roe) - return KO; - roe = 1; - var e = {}; - /** - * @license React - * react-jsx-runtime.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - return e.NODE_ENV !== "production" && function() { - var t = W, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), _ = Symbol.iterator, S = "@@iterator"; - function A(De) { - if (De === null || typeof De != "object") - return null; - var we = _ && De[_] || De[S]; - return typeof we == "function" ? we : null; - } - var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function N(De) { - { - for (var we = arguments.length, Re = new Array(we > 1 ? we - 1 : 0), _e = 1; _e < we; _e++) - Re[_e - 1] = arguments[_e]; - x("error", De, Re); - } - } - function x(De, we, Re) { - { - var _e = C.ReactDebugCurrentFrame, Ae = _e.getStackAddendum(); - Ae !== "" && (we += "%s", Re = Re.concat([Ae])); - var ge = Re.map(function(Me) { - return String(Me); - }); - ge.unshift("Warning: " + we), Function.prototype.apply.call(console[De], console, ge); - } - } - var R = !1, D = !1, M = !1, j = !1, F = !1, z; - z = Symbol.for("react.module.reference"); - function G(De) { - return !!(typeof De == "string" || typeof De == "function" || De === i || De === a || F || De === o || De === f || De === h || j || De === m || R || D || M || typeof De == "object" && De !== null && (De.$$typeof === g || De.$$typeof === p || De.$$typeof === s || De.$$typeof === l || De.$$typeof === u || // This needs to include all possible module reference object - // types supported by any Flight configuration anywhere since - // we don't know which Flight build this will end up being used - // with. - De.$$typeof === z || De.getModuleId !== void 0)); - } - function te(De, we, Re) { - var _e = De.displayName; - if (_e) - return _e; - var Ae = we.displayName || we.name || ""; - return Ae !== "" ? Re + "(" + Ae + ")" : Re; - } - function Q(De) { - return De.displayName || "Context"; - } - function ae(De) { - if (De == null) - return null; - if (typeof De.tag == "number" && N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof De == "function") - return De.displayName || De.name || null; - if (typeof De == "string") - return De; - switch (De) { - case i: - return "Fragment"; - case n: - return "Portal"; - case a: - return "Profiler"; - case o: - return "StrictMode"; - case f: - return "Suspense"; - case h: - return "SuspenseList"; - } - if (typeof De == "object") - switch (De.$$typeof) { - case l: - var we = De; - return Q(we) + ".Consumer"; - case s: - var Re = De; - return Q(Re._context) + ".Provider"; - case u: - return te(De, De.render, "ForwardRef"); - case p: - var _e = De.displayName || null; - return _e !== null ? _e : ae(De.type) || "Memo"; - case g: { - var Ae = De, ge = Ae._payload, Me = Ae._init; - try { - return ae(Me(ge)); - } catch { - return null; - } - } - } - return null; - } - var J = Object.assign, Y = 0, re, fe, ve, ie, he, ye, ke; - function Ne() { - } - Ne.__reactDisabledLog = !0; - function ze() { - { - if (Y === 0) { - re = console.log, fe = console.info, ve = console.warn, ie = console.error, he = console.group, ye = console.groupCollapsed, ke = console.groupEnd; - var De = { - configurable: !0, - enumerable: !0, - value: Ne, - writable: !0 - }; - Object.defineProperties(console, { - info: De, - log: De, - warn: De, - error: De, - group: De, - groupCollapsed: De, - groupEnd: De - }); - } - Y++; - } - } - function qe() { - { - if (Y--, Y === 0) { - var De = { - configurable: !0, - enumerable: !0, - writable: !0 - }; - Object.defineProperties(console, { - log: J({}, De, { - value: re - }), - info: J({}, De, { - value: fe - }), - warn: J({}, De, { - value: ve - }), - error: J({}, De, { - value: ie - }), - group: J({}, De, { - value: he - }), - groupCollapsed: J({}, De, { - value: ye - }), - groupEnd: J({}, De, { - value: ke - }) - }); - } - Y < 0 && N("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } - } - var We = C.ReactCurrentDispatcher, Qe; - function je(De, we, Re) { - { - if (Qe === void 0) - try { - throw Error(); - } catch (Ae) { - var _e = Ae.stack.trim().match(/\n( *(at )?)/); - Qe = _e && _e[1] || ""; - } - return ` -` + Qe + De; - } - } - var Ve = !1, Ye; - { - var Pe = typeof WeakMap == "function" ? WeakMap : Map; - Ye = new Pe(); - } - function tt(De, we) { - if (!De || Ve) - return ""; - { - var Re = Ye.get(De); - if (Re !== void 0) - return Re; - } - var _e; - Ve = !0; - var Ae = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var ge; - ge = We.current, We.current = null, ze(); - try { - if (we) { - var Me = function() { - throw Error(); - }; - if (Object.defineProperty(Me.prototype, "props", { - set: function() { - throw Error(); - } - }), typeof Reflect == "object" && Reflect.construct) { - try { - Reflect.construct(Me, []); - } catch (Jr) { - _e = Jr; - } - Reflect.construct(De, [], Me); - } else { - try { - Me.call(); - } catch (Jr) { - _e = Jr; - } - De.call(Me.prototype); - } - } else { - try { - throw Error(); - } catch (Jr) { - _e = Jr; - } - De(); - } - } catch (Jr) { - if (Jr && _e && typeof Jr.stack == "string") { - for (var Ge = Jr.stack.split(` -`), nt = _e.stack.split(` -`), Xe = Ge.length - 1, St = nt.length - 1; Xe >= 1 && St >= 0 && Ge[Xe] !== nt[St]; ) - St--; - for (; Xe >= 1 && St >= 0; Xe--, St--) - if (Ge[Xe] !== nt[St]) { - if (Xe !== 1 || St !== 1) - do - if (Xe--, St--, St < 0 || Ge[Xe] !== nt[St]) { - var Qt = ` -` + Ge[Xe].replace(" at new ", " at "); - return De.displayName && Qt.includes("") && (Qt = Qt.replace("", De.displayName)), typeof De == "function" && Ye.set(De, Qt), Qt; - } - while (Xe >= 1 && St >= 0); - break; - } - } - } finally { - Ve = !1, We.current = ge, qe(), Error.prepareStackTrace = Ae; - } - var cn = De ? De.displayName || De.name : "", Hr = cn ? je(cn) : ""; - return typeof De == "function" && Ye.set(De, Hr), Hr; - } - function it(De, we, Re) { - return tt(De, !1); - } - function Tt(De) { - var we = De.prototype; - return !!(we && we.isReactComponent); - } - function Pt(De, we, Re) { - if (De == null) - return ""; - if (typeof De == "function") - return tt(De, Tt(De)); - if (typeof De == "string") - return je(De); - switch (De) { - case f: - return je("Suspense"); - case h: - return je("SuspenseList"); - } - if (typeof De == "object") - switch (De.$$typeof) { - case u: - return it(De.render); - case p: - return Pt(De.type, we, Re); - case g: { - var _e = De, Ae = _e._payload, ge = _e._init; - try { - return Pt(ge(Ae), we, Re); - } catch { - } - } - } - return ""; - } - var Bt = Object.prototype.hasOwnProperty, Mr = {}, ln = C.ReactDebugCurrentFrame; - function zr(De) { - if (De) { - var we = De._owner, Re = Pt(De.type, De._source, we ? we.type : null); - ln.setExtraStackFrame(Re); - } else - ln.setExtraStackFrame(null); - } - function Or(De, we, Re, _e, Ae) { - { - var ge = Function.call.bind(Bt); - for (var Me in De) - if (ge(De, Me)) { - var Ge = void 0; - try { - if (typeof De[Me] != "function") { - var nt = Error((_e || "React class") + ": " + Re + " type `" + Me + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof De[Me] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw nt.name = "Invariant Violation", nt; - } - Ge = De[Me](we, Me, _e, Re, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (Xe) { - Ge = Xe; - } - Ge && !(Ge instanceof Error) && (zr(Ae), N("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _e || "React class", Re, Me, typeof Ge), zr(null)), Ge instanceof Error && !(Ge.message in Mr) && (Mr[Ge.message] = !0, zr(Ae), N("Failed %s type: %s", Re, Ge.message), zr(null)); - } - } - } - var ar = Array.isArray; - function xr(De) { - return ar(De); - } - function Nn(De) { - { - var we = typeof Symbol == "function" && Symbol.toStringTag, Re = we && De[Symbol.toStringTag] || De.constructor.name || "Object"; - return Re; - } - } - function bt(De) { - try { - return lt(De), !1; - } catch { - return !0; - } - } - function lt(De) { - return "" + De; - } - function at(De) { - if (bt(De)) - return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Nn(De)), lt(De); - } - var yt = C.ReactCurrentOwner, Vt = { - key: !0, - ref: !0, - __self: !0, - __source: !0 - }, Xt, $t, pt; - pt = {}; - function kt(De) { - if (Bt.call(De, "ref")) { - var we = Object.getOwnPropertyDescriptor(De, "ref").get; - if (we && we.isReactWarning) - return !1; - } - return De.ref !== void 0; - } - function Jt(De) { - if (Bt.call(De, "key")) { - var we = Object.getOwnPropertyDescriptor(De, "key").get; - if (we && we.isReactWarning) - return !1; - } - return De.key !== void 0; - } - function wr(De, we) { - if (typeof De.ref == "string" && yt.current && we && yt.current.stateNode !== we) { - var Re = ae(yt.current.type); - pt[Re] || (N('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ae(yt.current.type), De.ref), pt[Re] = !0); - } - } - function Lr(De, we) { - { - var Re = function() { - Xt || (Xt = !0, N("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", we)); - }; - Re.isReactWarning = !0, Object.defineProperty(De, "key", { - get: Re, - configurable: !0 - }); - } - } - function wn(De, we) { - { - var Re = function() { - $t || ($t = !0, N("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", we)); - }; - Re.isReactWarning = !0, Object.defineProperty(De, "ref", { - get: Re, - configurable: !0 - }); - } - } - var Bn = function(De, we, Re, _e, Ae, ge, Me) { - var Ge = { - // This tag allows us to uniquely identify this as a React Element - $$typeof: r, - // Built-in properties that belong on the element - type: De, - key: we, - ref: Re, - props: Me, - // Record the component responsible for creating this element. - _owner: ge - }; - return Ge._store = {}, Object.defineProperty(Ge._store, "validated", { - configurable: !1, - enumerable: !1, - writable: !0, - value: !1 - }), Object.defineProperty(Ge, "_self", { - configurable: !1, - enumerable: !1, - writable: !1, - value: _e - }), Object.defineProperty(Ge, "_source", { - configurable: !1, - enumerable: !1, - writable: !1, - value: Ae - }), Object.freeze && (Object.freeze(Ge.props), Object.freeze(Ge)), Ge; - }; - function un(De, we, Re, _e, Ae) { - { - var ge, Me = {}, Ge = null, nt = null; - Re !== void 0 && (at(Re), Ge = "" + Re), Jt(we) && (at(we.key), Ge = "" + we.key), kt(we) && (nt = we.ref, wr(we, Ae)); - for (ge in we) - Bt.call(we, ge) && !Vt.hasOwnProperty(ge) && (Me[ge] = we[ge]); - if (De && De.defaultProps) { - var Xe = De.defaultProps; - for (ge in Xe) - Me[ge] === void 0 && (Me[ge] = Xe[ge]); - } - if (Ge || nt) { - var St = typeof De == "function" ? De.displayName || De.name || "Unknown" : De; - Ge && Lr(Me, St), nt && wn(Me, St); - } - return Bn(De, Ge, nt, Ae, _e, yt.current, Me); - } - } - var Cn = C.ReactCurrentOwner, vi = C.ReactDebugCurrentFrame; - function Xr(De) { - if (De) { - var we = De._owner, Re = Pt(De.type, De._source, we ? we.type : null); - vi.setExtraStackFrame(Re); - } else - vi.setExtraStackFrame(null); - } - var Fr; - Fr = !1; - function xi(De) { - return typeof De == "object" && De !== null && De.$$typeof === r; - } - function On() { - { - if (Cn.current) { - var De = ae(Cn.current.type); - if (De) - return ` - -Check the render method of \`` + De + "`."; - } - return ""; - } - } - function Ai(De) { - { - if (De !== void 0) { - var we = De.fileName.replace(/^.*[\\\/]/, ""), Re = De.lineNumber; - return ` - -Check your code at ` + we + ":" + Re + "."; - } - return ""; - } - } - var Fn = {}; - function vn(De) { - { - var we = On(); - if (!we) { - var Re = typeof De == "string" ? De : De.displayName || De.name; - Re && (we = ` - -Check the top-level render call using <` + Re + ">."); - } - return we; - } - } - function Wr(De, we) { - { - if (!De._store || De._store.validated || De.key != null) - return; - De._store.validated = !0; - var Re = vn(we); - if (Fn[Re]) - return; - Fn[Re] = !0; - var _e = ""; - De && De._owner && De._owner !== Cn.current && (_e = " It was passed a child from " + ae(De._owner.type) + "."), Xr(De), N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Re, _e), Xr(null); - } - } - function ur(De, we) { - { - if (typeof De != "object") - return; - if (xr(De)) - for (var Re = 0; Re < De.length; Re++) { - var _e = De[Re]; - xi(_e) && Wr(_e, we); - } - else if (xi(De)) - De._store && (De._store.validated = !0); - else if (De) { - var Ae = A(De); - if (typeof Ae == "function" && Ae !== De.entries) - for (var ge = Ae.call(De), Me; !(Me = ge.next()).done; ) - xi(Me.value) && Wr(Me.value, we); - } - } - } - function Ni(De) { - { - var we = De.type; - if (we == null || typeof we == "string") - return; - var Re; - if (typeof we == "function") - Re = we.propTypes; - else if (typeof we == "object" && (we.$$typeof === u || // Note: Memo only checks outer props here. - // Inner props are checked in the reconciler. - we.$$typeof === p)) - Re = we.propTypes; - else - return; - if (Re) { - var _e = ae(we); - Or(Re, De.props, "prop", _e, De); - } else if (we.PropTypes !== void 0 && !Fr) { - Fr = !0; - var Ae = ae(we); - N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ae || "Unknown"); - } - typeof we.getDefaultProps == "function" && !we.getDefaultProps.isReactClassApproved && N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); - } - } - function $o(De) { - { - for (var we = Object.keys(De.props), Re = 0; Re < we.length; Re++) { - var _e = we[Re]; - if (_e !== "children" && _e !== "key") { - Xr(De), N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _e), Xr(null); - break; - } - } - De.ref !== null && (Xr(De), N("Invalid attribute `ref` supplied to `React.Fragment`."), Xr(null)); - } - } - function oi(De, we, Re, _e, Ae, ge) { - { - var Me = G(De); - if (!Me) { - var Ge = ""; - (De === void 0 || typeof De == "object" && De !== null && Object.keys(De).length === 0) && (Ge += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); - var nt = Ai(Ae); - nt ? Ge += nt : Ge += On(); - var Xe; - De === null ? Xe = "null" : xr(De) ? Xe = "array" : De !== void 0 && De.$$typeof === r ? (Xe = "<" + (ae(De.type) || "Unknown") + " />", Ge = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof De, N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Xe, Ge); - } - var St = un(De, we, Re, Ae, ge); - if (St == null) - return St; - if (Me) { - var Qt = we.children; - if (Qt !== void 0) - if (_e) - if (xr(Qt)) { - for (var cn = 0; cn < Qt.length; cn++) - ur(Qt[cn], De); - Object.freeze && Object.freeze(Qt); - } else - N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); - else - ur(Qt, De); - } - return De === i ? $o(St) : Ni(St), St; - } - } - function Fi(De, we, Re) { - return oi(De, we, Re, !0); - } - function So(De, we, Re) { - return oi(De, we, Re, !1); - } - var ao = So, ds = Fi; - KO.Fragment = i, KO.jsx = ao, KO.jsxs = ds; - }(), KO; -} -var YO = {}; -/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var noe; -function BFe() { - if (noe) - return YO; - noe = 1; - var e = W, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 }; - function a(s, l, u) { - var f, h = {}, p = null, g = null; - u !== void 0 && (p = "" + u), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (g = l.ref); - for (f in l) - n.call(l, f) && !o.hasOwnProperty(f) && (h[f] = l[f]); - if (s && s.defaultProps) - for (f in l = s.defaultProps, l) - h[f] === void 0 && (h[f] = l[f]); - return { $$typeof: t, type: s, key: p, ref: g, props: h, _owner: i.current }; - } - return YO.Fragment = r, YO.jsx = a, YO.jsxs = a, YO; -} -var $Fe = {}; -$Fe.NODE_ENV === "production" ? cG.exports = BFe() : cG.exports = FFe(); -var ee = cG.exports; -const PFe = /* @__PURE__ */ fa(ee), jFe = /* @__PURE__ */ Pbe({ - __proto__: null, - default: PFe -}, [ee]); -var ioe = {}, BM = void 0; -try { - BM = window; -} catch { -} -function uQ(e, t) { - if (typeof BM < "u") { - var r = BM.__packages__ = BM.__packages__ || {}; - if (!r[e] || !ioe[e]) { - ioe[e] = t; - var n = r[e] = r[e] || []; - n.push(t); - } - } -} -uQ("@fluentui/set-version", "6.0.0"); -var dG = function(e, t) { - return dG = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { - r.__proto__ = n; - } || function(r, n) { - for (var i in n) - Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]); - }, dG(e, t); -}; -function fy(e, t) { - if (typeof t != "function" && t !== null) - throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); - dG(e, t); - function r() { - this.constructor = e; - } - e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r()); -} -var Ht = function() { - return Ht = Object.assign || function(t) { - for (var r, n = 1, i = arguments.length; n < i; n++) { - r = arguments[n]; - for (var o in r) - Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]); - } - return t; - }, Ht.apply(this, arguments); -}; -function jk(e, t) { - var r = {}; - for (var n in e) - Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); - if (e != null && typeof Object.getOwnPropertySymbols == "function") - for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) - t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]); - return r; -} -function zFe(e, t, r, n) { - var i = arguments.length, o = i < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, r) : n, a; - if (typeof Reflect == "object" && typeof Reflect.decorate == "function") - o = Reflect.decorate(e, t, r, n); - else - for (var s = e.length - 1; s >= 0; s--) - (a = e[s]) && (o = (i < 3 ? a(o) : i > 3 ? a(t, r, o) : a(t, r)) || o); - return i > 3 && o && Object.defineProperty(t, r, o), o; -} -function _0(e, t, r) { - if (r || arguments.length === 2) - for (var n = 0, i = t.length, o; n < i; n++) - (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]); - return e.concat(o || Array.prototype.slice.call(t)); -} -var XO = { - /** - * Avoids style injection, use getRules() to read the styles. - */ - none: 0, - /** - * Inserts rules using the insertRule api. - */ - insertNode: 1, - /** - * Appends rules using appendChild. - */ - appendChild: 2 -}, ooe = "__stylesheet__", HFe = typeof navigator < "u" && /rv:11.0/.test(navigator.userAgent), WT = {}; -try { - WT = window || {}; -} catch { -} -var xT, tg = ( - /** @class */ - function() { - function e(t, r) { - var n, i, o, a, s, l; - this._rules = [], this._preservedRules = [], this._counter = 0, this._keyToClassName = {}, this._onInsertRuleCallbacks = [], this._onResetCallbacks = [], this._classNameToArgs = {}, this._config = Ht({ - // If there is no document we won't have an element to inject into. - injectionMode: typeof document > "u" ? XO.none : XO.insertNode, - defaultPrefix: "css", - namespace: void 0, - cspSettings: void 0 - }, t), this._classNameToArgs = (n = r == null ? void 0 : r.classNameToArgs) !== null && n !== void 0 ? n : this._classNameToArgs, this._counter = (i = r == null ? void 0 : r.counter) !== null && i !== void 0 ? i : this._counter, this._keyToClassName = (a = (o = this._config.classNameCache) !== null && o !== void 0 ? o : r == null ? void 0 : r.keyToClassName) !== null && a !== void 0 ? a : this._keyToClassName, this._preservedRules = (s = r == null ? void 0 : r.preservedRules) !== null && s !== void 0 ? s : this._preservedRules, this._rules = (l = r == null ? void 0 : r.rules) !== null && l !== void 0 ? l : this._rules; - } - return e.getInstance = function() { - if (xT = WT[ooe], !xT || xT._lastStyleElement && xT._lastStyleElement.ownerDocument !== document) { - var t = (WT == null ? void 0 : WT.FabricConfig) || {}, r = new e(t.mergeStyles, t.serializedStylesheet); - xT = r, WT[ooe] = r; - } - return xT; - }, e.prototype.serialize = function() { - return JSON.stringify({ - classNameToArgs: this._classNameToArgs, - counter: this._counter, - keyToClassName: this._keyToClassName, - preservedRules: this._preservedRules, - rules: this._rules - }); - }, e.prototype.setConfig = function(t) { - this._config = Ht(Ht({}, this._config), t); - }, e.prototype.onReset = function(t) { - var r = this; - return this._onResetCallbacks.push(t), function() { - r._onResetCallbacks = r._onResetCallbacks.filter(function(n) { - return n !== t; - }); - }; - }, e.prototype.onInsertRule = function(t) { - var r = this; - return this._onInsertRuleCallbacks.push(t), function() { - r._onInsertRuleCallbacks = r._onInsertRuleCallbacks.filter(function(n) { - return n !== t; - }); - }; - }, e.prototype.getClassName = function(t) { - var r = this._config.namespace, n = t || this._config.defaultPrefix; - return "".concat(r ? r + "-" : "").concat(n, "-").concat(this._counter++); - }, e.prototype.cacheClassName = function(t, r, n, i) { - this._keyToClassName[r] = t, this._classNameToArgs[t] = { - args: n, - rules: i - }; - }, e.prototype.classNameFromKey = function(t) { - return this._keyToClassName[t]; - }, e.prototype.getClassNameCache = function() { - return this._keyToClassName; - }, e.prototype.argsFromClassName = function(t) { - var r = this._classNameToArgs[t]; - return r && r.args; - }, e.prototype.insertedRulesFromClassName = function(t) { - var r = this._classNameToArgs[t]; - return r && r.rules; - }, e.prototype.insertRule = function(t, r) { - var n = this._config.injectionMode, i = n !== XO.none ? this._getStyleElement() : void 0; - if (r && this._preservedRules.push(t), i) - switch (n) { - case XO.insertNode: - var o = i.sheet; - try { - o.insertRule(t, o.cssRules.length); - } catch { - } - break; - case XO.appendChild: - i.appendChild(document.createTextNode(t)); - break; - } - else - this._rules.push(t); - this._config.onInsertRule && this._config.onInsertRule(t), this._onInsertRuleCallbacks.forEach(function(a) { - return a(); - }); - }, e.prototype.getRules = function(t) { - return (t ? this._preservedRules.join("") : "") + this._rules.join(""); - }, e.prototype.reset = function() { - this._rules = [], this._counter = 0, this._classNameToArgs = {}, this._keyToClassName = {}, this._onResetCallbacks.forEach(function(t) { - return t(); - }); - }, e.prototype.resetKeys = function() { - this._keyToClassName = {}; - }, e.prototype._getStyleElement = function() { - var t = this; - return !this._styleElement && typeof document < "u" && (this._styleElement = this._createStyleElement(), HFe || window.requestAnimationFrame(function() { - t._styleElement = void 0; - })), this._styleElement; - }, e.prototype._createStyleElement = function() { - var t = document.head, r = document.createElement("style"), n = null; - r.setAttribute("data-merge-styles", "true"); - var i = this._config.cspSettings; - if (i && i.nonce && r.setAttribute("nonce", i.nonce), this._lastStyleElement) - n = this._lastStyleElement.nextElementSibling; - else { - var o = this._findPlaceholderStyleTag(); - o ? n = o.nextElementSibling : n = t.childNodes[0]; - } - return t.insertBefore(r, t.contains(n) ? n : null), this._lastStyleElement = r, r; - }, e.prototype._findPlaceholderStyleTag = function() { - var t = document.head; - return t ? t.querySelector("style[data-merge-styles]") : null; - }, e; - }() -); -function jbe() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - var r = [], n = [], i = tg.getInstance(); - function o(a) { - for (var s = 0, l = a; s < l.length; s++) { - var u = l[s]; - if (u) - if (typeof u == "string") - if (u.indexOf(" ") >= 0) - o(u.split(" ")); - else { - var f = i.argsFromClassName(u); - f ? o(f) : r.indexOf(u) === -1 && r.push(u); - } - else - Array.isArray(u) ? o(u) : typeof u == "object" && n.push(u); - } - } - return o(e), { - classes: r, - objects: n - }; -} -function zbe(e) { - yA !== e && (yA = e); -} -function Hbe() { - return yA === void 0 && (yA = typeof document < "u" && !!document.documentElement && document.documentElement.getAttribute("dir") === "rtl"), yA; -} -var yA; -yA = Hbe(); -function w4() { - return { - rtl: Hbe() - }; -} -var aoe = {}; -function qFe(e, t) { - var r = e[t]; - r.charAt(0) !== "-" && (e[t] = aoe[r] = aoe[r] || r.replace(/([A-Z])/g, "-$1").toLowerCase()); -} -var s2; -function WFe() { - var e; - if (!s2) { - var t = typeof document < "u" ? document : void 0, r = typeof navigator < "u" ? navigator : void 0, n = (e = r == null ? void 0 : r.userAgent) === null || e === void 0 ? void 0 : e.toLowerCase(); - t ? s2 = { - isWebkit: !!(t && "WebkitAppearance" in t.documentElement.style), - isMoz: !!(n && n.indexOf("firefox") > -1), - isOpera: !!(n && n.indexOf("opera") > -1), - isMs: !!(r && (/rv:11.0/i.test(r.userAgent) || /Edge\/\d./i.test(navigator.userAgent))) - } : s2 = { - isWebkit: !0, - isMoz: !0, - isOpera: !0, - isMs: !0 - }; - } - return s2; -} -var soe = { - "user-select": 1 -}; -function VFe(e, t) { - var r = WFe(), n = e[t]; - if (soe[n]) { - var i = e[t + 1]; - soe[n] && (r.isWebkit && e.push("-webkit-" + n, i), r.isMoz && e.push("-moz-" + n, i), r.isMs && e.push("-ms-" + n, i), r.isOpera && e.push("-o-" + n, i)); - } -} -var UFe = [ - "column-count", - "font-weight", - "flex", - "flex-grow", - "flex-shrink", - "fill-opacity", - "opacity", - "order", - "z-index", - "zoom" -]; -function GFe(e, t) { - var r = e[t], n = e[t + 1]; - if (typeof n == "number") { - var i = UFe.indexOf(r) > -1, o = r.indexOf("--") > -1, a = i || o ? "" : "px"; - e[t + 1] = "".concat(n).concat(a); - } -} -var l2, sE = "left", lE = "right", KFe = "@noflip", loe = (l2 = {}, l2[sE] = lE, l2[lE] = sE, l2), uoe = { - "w-resize": "e-resize", - "sw-resize": "se-resize", - "nw-resize": "ne-resize" -}; -function YFe(e, t, r) { - if (e.rtl) { - var n = t[r]; - if (!n) - return; - var i = t[r + 1]; - if (typeof i == "string" && i.indexOf(KFe) >= 0) - t[r + 1] = i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g, ""); - else if (n.indexOf(sE) >= 0) - t[r] = n.replace(sE, lE); - else if (n.indexOf(lE) >= 0) - t[r] = n.replace(lE, sE); - else if (String(i).indexOf(sE) >= 0) - t[r + 1] = i.replace(sE, lE); - else if (String(i).indexOf(lE) >= 0) - t[r + 1] = i.replace(lE, sE); - else if (loe[n]) - t[r] = loe[n]; - else if (uoe[i]) - t[r + 1] = uoe[i]; - else - switch (n) { - case "margin": - case "padding": - t[r + 1] = QFe(i); - break; - case "box-shadow": - t[r + 1] = XFe(i, 0); - break; - } - } -} -function XFe(e, t) { - var r = e.split(" "), n = parseInt(r[t], 10); - return r[0] = r[0].replace(String(n), String(n * -1)), r.join(" "); -} -function QFe(e) { - if (typeof e == "string") { - var t = e.split(" "); - if (t.length === 4) - return "".concat(t[0], " ").concat(t[3], " ").concat(t[2], " ").concat(t[1]); - } - return e; -} -function ZFe(e) { - for (var t = [], r = 0, n = 0, i = 0; i < e.length; i++) - switch (e[i]) { - case "(": - n++; - break; - case ")": - n && n--; - break; - case " ": - case " ": - n || (i > r && t.push(e.substring(r, i)), r = i + 1); - break; - } - return r < e.length && t.push(e.substring(r)), t; -} -var JFe = "displayName"; -function e4e(e) { - var t = e && e["&"]; - return t ? t.displayName : void 0; -} -var qbe = /\:global\((.+?)\)/g; -function t4e(e) { - if (!qbe.test(e)) - return e; - for (var t = [], r = /\:global\((.+?)\)/g, n = null; n = r.exec(e); ) - n[1].indexOf(",") > -1 && t.push([ - n.index, - n.index + n[0].length, - // Wrap each of the found selectors in :global() - n[1].split(",").map(function(i) { - return ":global(".concat(i.trim(), ")"); - }).join(", ") - ]); - return t.reverse().reduce(function(i, o) { - var a = o[0], s = o[1], l = o[2], u = i.slice(0, a), f = i.slice(s); - return u + l + f; - }, e); -} -function coe(e, t) { - return e.indexOf(":global(") >= 0 ? e.replace(qbe, "$1") : e.indexOf(":") === 0 ? t + e : e.indexOf("&") < 0 ? t + " " + e : e; -} -function foe(e, t, r, n) { - t === void 0 && (t = { __order: [] }), r.indexOf("@") === 0 ? (r = r + "{" + e, bA([n], t, r)) : r.indexOf(",") > -1 ? t4e(r).split(",").map(function(i) { - return i.trim(); - }).forEach(function(i) { - return bA([n], t, coe(i, e)); - }) : bA([n], t, coe(r, e)); -} -function bA(e, t, r) { - t === void 0 && (t = { __order: [] }), r === void 0 && (r = "&"); - var n = tg.getInstance(), i = t[r]; - i || (i = {}, t[r] = i, t.__order.push(r)); - for (var o = 0, a = e; o < a.length; o++) { - var s = a[o]; - if (typeof s == "string") { - var l = n.argsFromClassName(s); - l && bA(l, t, r); - } else if (Array.isArray(s)) - bA(s, t, r); - else - for (var u in s) - if (s.hasOwnProperty(u)) { - var f = s[u]; - if (u === "selectors") { - var h = s.selectors; - for (var p in h) - h.hasOwnProperty(p) && foe(r, t, p, h[p]); - } else - typeof f == "object" ? f !== null && foe(r, t, u, f) : f !== void 0 && (u === "margin" || u === "padding" ? r4e(i, u, f) : i[u] = f); - } - } - return t; -} -function r4e(e, t, r) { - var n = typeof r == "string" ? ZFe(r) : [r]; - n.length === 0 && n.push(r), n[n.length - 1] === "!important" && (n = n.slice(0, -1).map(function(i) { - return i + " !important"; - })), e[t + "Top"] = n[0], e[t + "Right"] = n[1] || n[0], e[t + "Bottom"] = n[2] || n[0], e[t + "Left"] = n[3] || n[1] || n[0]; -} -function n4e(e, t) { - for (var r = [e.rtl ? "rtl" : "ltr"], n = !1, i = 0, o = t.__order; i < o.length; i++) { - var a = o[i]; - r.push(a); - var s = t[a]; - for (var l in s) - s.hasOwnProperty(l) && s[l] !== void 0 && (n = !0, r.push(l, s[l])); - } - return n ? r.join("") : void 0; -} -function Wbe(e, t) { - return t <= 0 ? "" : t === 1 ? e : e + Wbe(e, t - 1); -} -function cQ(e, t) { - if (!t) - return ""; - var r = []; - for (var n in t) - t.hasOwnProperty(n) && n !== JFe && t[n] !== void 0 && r.push(n, t[n]); - for (var i = 0; i < r.length; i += 2) - qFe(r, i), GFe(r, i), YFe(e, r, i), VFe(r, i); - for (var i = 1; i < r.length; i += 4) - r.splice(i, 1, ":", r[i], ";"); - return r.join(""); -} -function Vbe(e) { - for (var t = [], r = 1; r < arguments.length; r++) - t[r - 1] = arguments[r]; - var n = bA(t), i = n4e(e, n); - if (i) { - var o = tg.getInstance(), a = { - className: o.classNameFromKey(i), - key: i, - args: t - }; - if (!a.className) { - a.className = o.getClassName(e4e(n)); - for (var s = [], l = 0, u = n.__order; l < u.length; l++) { - var f = u[l]; - s.push(f, cQ(e, n[f])); - } - a.rulesToInsert = s; - } - return a; - } -} -function Ube(e, t) { - t === void 0 && (t = 1); - var r = tg.getInstance(), n = e.className, i = e.key, o = e.args, a = e.rulesToInsert; - if (a) { - for (var s = 0; s < a.length; s += 2) { - var l = a[s + 1]; - if (l) { - var u = a[s]; - u = u.replace(/&/g, Wbe(".".concat(e.className), t)); - var f = "".concat(u, "{").concat(l, "}").concat(u.indexOf("@") === 0 ? "}" : ""); - r.insertRule(f); - } - } - r.cacheClassName(n, i, o, a); - } -} -function i4e(e) { - for (var t = [], r = 1; r < arguments.length; r++) - t[r - 1] = arguments[r]; - var n = Vbe.apply(void 0, _0([e], t, !1)); - return n ? (Ube(n, e.specificityMultiplier), n.className) : ""; -} -function ua() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - return Gbe(e, w4()); -} -function Gbe(e, t) { - var r = e instanceof Array ? e : [e], n = jbe(r), i = n.classes, o = n.objects; - return o.length && i.push(i4e(t || {}, o)), i.join(" "); -} -function mD() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - if (e && e.length === 1 && e[0] && !e[0].subComponentStyles) - return e[0]; - for (var r = {}, n = {}, i = 0, o = e; i < o.length; i++) { - var a = o[i]; - if (a) { - for (var s in a) - if (a.hasOwnProperty(s)) { - if (s === "subComponentStyles" && a.subComponentStyles !== void 0) { - var l = a.subComponentStyles; - for (var u in l) - l.hasOwnProperty(u) && (n.hasOwnProperty(u) ? n[u].push(l[u]) : n[u] = [l[u]]); - continue; - } - var f = r[s], h = a[s]; - f === void 0 ? r[s] = h : r[s] = _0(_0([], Array.isArray(f) ? f : [f], !0), Array.isArray(h) ? h : [h], !0); - } - } - } - if (Object.keys(n).length > 0) { - r.subComponentStyles = {}; - var p = r.subComponentStyles, g = function(m) { - if (n.hasOwnProperty(m)) { - var _ = n[m]; - p[m] = function(S) { - return mD.apply(void 0, _.map(function(A) { - return typeof A == "function" ? A(S) : A; - })); - }; - } - }; - for (var u in n) - g(u); - } - return r; -} -function sd() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - return Kbe(e, w4()); -} -function Kbe(e, t) { - var r = { subComponentStyles: {} }, n = e[0]; - if (!n && e.length <= 1) - return { subComponentStyles: {} }; - var i = mD.apply(void 0, e), o = []; - for (var a in i) - if (i.hasOwnProperty(a)) { - if (a === "subComponentStyles") { - r.subComponentStyles = i.subComponentStyles || {}; - continue; - } - var s = i[a], l = jbe(s), u = l.classes, f = l.objects; - if (f != null && f.length) { - var h = Vbe(t || {}, { displayName: a }, f); - h && (o.push(h), r[a] = u.concat([h.className]).join(" ")); - } else - r[a] = u.join(" "); - } - for (var p = 0, g = o; p < g.length; p++) { - var h = g[p]; - h && Ube(h, t == null ? void 0 : t.specificityMultiplier); - } - return r; -} -function Ybe(e) { - for (var t = [], r = 1; r < arguments.length; r++) - t[r - 1] = arguments[r]; - for (var n = [], i = 0, o = t; i < o.length; i++) { - var a = o[i]; - a && n.push(typeof a == "function" ? a(e) : a); - } - return n.length === 1 ? n[0] : n.length ? mD.apply(void 0, n) : {}; -} -function Xbe(e) { - var t = tg.getInstance(), r = cQ(w4(), e), n = t.classNameFromKey(r); - if (!n) { - var i = t.getClassName(); - t.insertRule("@font-face{".concat(r, "}"), !0), t.cacheClassName(i, r, [], ["font-face", r]); - } -} -function ug(e) { - var t = tg.getInstance(), r = []; - for (var n in e) - e.hasOwnProperty(n) && r.push(n, "{", cQ(w4(), e[n]), "}"); - var i = r.join(""), o = t.classNameFromKey(i); - if (o) - return o; - var a = t.getClassName(); - return t.insertRule("@keyframes ".concat(a, "{").concat(i, "}"), !0), t.cacheClassName(a, i, [], ["keyframes", i]), a; -} -function o4e(e) { - var t = {}, r = function(i) { - if (e.hasOwnProperty(i)) { - var o; - Object.defineProperty(t, i, { - get: function() { - return o === void 0 && (o = ua(e[i]).toString()), o; - }, - enumerable: !0, - configurable: !0 - }); - } - }; - for (var n in e) - r(n); - return t; -} -function fQ() { - return typeof window < "u" && !!(window.document && // eslint-disable-next-line deprecation/deprecation - window.document.createElement); -} -var hG = void 0; -try { - hG = window; -} catch { -} -function gc(e) { - if (!(!fQ() || typeof hG > "u")) { - var t = e; - return t && t.ownerDocument && t.ownerDocument.defaultView ? t.ownerDocument.defaultView : hG; - } -} -var Qbe = ( - /** @class */ - function() { - function e(t, r) { - this._timeoutIds = null, this._immediateIds = null, this._intervalIds = null, this._animationFrameIds = null, this._isDisposed = !1, this._parent = t || null, this._onErrorHandler = r, this._noop = function() { - }; - } - return e.prototype.dispose = function() { - var t; - if (this._isDisposed = !0, this._parent = null, this._timeoutIds) { - for (t in this._timeoutIds) - this._timeoutIds.hasOwnProperty(t) && this.clearTimeout(parseInt(t, 10)); - this._timeoutIds = null; - } - if (this._immediateIds) { - for (t in this._immediateIds) - this._immediateIds.hasOwnProperty(t) && this.clearImmediate(parseInt(t, 10)); - this._immediateIds = null; - } - if (this._intervalIds) { - for (t in this._intervalIds) - this._intervalIds.hasOwnProperty(t) && this.clearInterval(parseInt(t, 10)); - this._intervalIds = null; - } - if (this._animationFrameIds) { - for (t in this._animationFrameIds) - this._animationFrameIds.hasOwnProperty(t) && this.cancelAnimationFrame(parseInt(t, 10)); - this._animationFrameIds = null; - } - }, e.prototype.setTimeout = function(t, r) { - var n = this, i = 0; - return this._isDisposed || (this._timeoutIds || (this._timeoutIds = {}), i = setTimeout(function() { - try { - n._timeoutIds && delete n._timeoutIds[i], t.apply(n._parent); - } catch (o) { - n._logError(o); - } - }, r), this._timeoutIds[i] = !0), i; - }, e.prototype.clearTimeout = function(t) { - this._timeoutIds && this._timeoutIds[t] && (clearTimeout(t), delete this._timeoutIds[t]); - }, e.prototype.setImmediate = function(t, r) { - var n = this, i = 0, o = gc(r); - if (!this._isDisposed) { - this._immediateIds || (this._immediateIds = {}); - var a = function() { - try { - n._immediateIds && delete n._immediateIds[i], t.apply(n._parent); - } catch (s) { - n._logError(s); - } - }; - i = o.setTimeout(a, 0), this._immediateIds[i] = !0; - } - return i; - }, e.prototype.clearImmediate = function(t, r) { - var n = gc(r); - this._immediateIds && this._immediateIds[t] && (n.clearTimeout(t), delete this._immediateIds[t]); - }, e.prototype.setInterval = function(t, r) { - var n = this, i = 0; - return this._isDisposed || (this._intervalIds || (this._intervalIds = {}), i = setInterval(function() { - try { - t.apply(n._parent); - } catch (o) { - n._logError(o); - } - }, r), this._intervalIds[i] = !0), i; - }, e.prototype.clearInterval = function(t) { - this._intervalIds && this._intervalIds[t] && (clearInterval(t), delete this._intervalIds[t]); - }, e.prototype.throttle = function(t, r, n) { - var i = this; - if (this._isDisposed) - return this._noop; - var o = r || 0, a = !0, s = !0, l = 0, u, f, h = null; - n && typeof n.leading == "boolean" && (a = n.leading), n && typeof n.trailing == "boolean" && (s = n.trailing); - var p = function(m) { - var _ = Date.now(), S = _ - l, A = a ? o - S : o; - return S >= o && (!m || a) ? (l = _, h && (i.clearTimeout(h), h = null), u = t.apply(i._parent, f)) : h === null && s && (h = i.setTimeout(p, A)), u; - }, g = function() { - for (var m = [], _ = 0; _ < arguments.length; _++) - m[_] = arguments[_]; - return f = m, p(!0); - }; - return g; - }, e.prototype.debounce = function(t, r, n) { - var i = this; - if (this._isDisposed) { - var o = function() { - }; - return o.cancel = function() { - }, o.flush = function() { - return null; - }, o.pending = function() { - return !1; - }, o; - } - var a = r || 0, s = !1, l = !0, u = null, f = 0, h = Date.now(), p, g, m = null; - n && typeof n.leading == "boolean" && (s = n.leading), n && typeof n.trailing == "boolean" && (l = n.trailing), n && typeof n.maxWait == "number" && !isNaN(n.maxWait) && (u = n.maxWait); - var _ = function(D) { - m && (i.clearTimeout(m), m = null), h = D; - }, S = function(D) { - _(D), p = t.apply(i._parent, g); - }, A = function(D) { - var M = Date.now(), j = !1; - D && (s && M - f >= a && (j = !0), f = M); - var F = M - f, z = a - F, G = M - h, te = !1; - return u !== null && (G >= u && m ? te = !0 : z = Math.min(z, u - G)), F >= a || te || j ? S(M) : (m === null || !D) && l && (m = i.setTimeout(A, z)), p; - }, C = function() { - return !!m; - }, N = function() { - C() && _(Date.now()); - }, x = function() { - return C() && S(Date.now()), p; - }, R = function() { - for (var D = [], M = 0; M < arguments.length; M++) - D[M] = arguments[M]; - return g = D, A(!0); - }; - return R.cancel = N, R.flush = x, R.pending = C, R; - }, e.prototype.requestAnimationFrame = function(t, r) { - var n = this, i = 0, o = gc(r); - if (!this._isDisposed) { - this._animationFrameIds || (this._animationFrameIds = {}); - var a = function() { - try { - n._animationFrameIds && delete n._animationFrameIds[i], t.apply(n._parent); - } catch (s) { - n._logError(s); - } - }; - i = o.requestAnimationFrame ? o.requestAnimationFrame(a) : o.setTimeout(a, 0), this._animationFrameIds[i] = !0; - } - return i; - }, e.prototype.cancelAnimationFrame = function(t, r) { - var n = gc(r); - this._animationFrameIds && this._animationFrameIds[t] && (n.cancelAnimationFrame ? n.cancelAnimationFrame(t) : n.clearTimeout(t), delete this._animationFrameIds[t]); - }, e.prototype._logError = function(t) { - this._onErrorHandler && this._onErrorHandler(t); - }, e; - }() -); -function dQ(e, t) { - if (!e || !t) - return !e && !t; - for (var r in e) - if (e.hasOwnProperty(r) && (!t.hasOwnProperty(r) || t[r] !== e[r])) - return !1; - for (var r in t) - if (t.hasOwnProperty(r) && !e.hasOwnProperty(r)) - return !1; - return !0; -} -function Zbe(e) { - for (var t = [], r = 1; r < arguments.length; r++) - t[r - 1] = arguments[r]; - return a4e.apply(this, [null, e].concat(t)); -} -function a4e(e, t) { - for (var r = [], n = 2; n < arguments.length; n++) - r[n - 2] = arguments[n]; - t = t || {}; - for (var i = 0, o = r; i < o.length; i++) { - var a = o[i]; - if (a) - for (var s in a) - a.hasOwnProperty(s) && (!e || e(s)) && (t[s] = a[s]); - } - return t; -} -var uE = ( - /** @class */ - function() { - function e(t) { - this._id = e._uniqueId++, this._parent = t, this._eventRecords = []; - } - return e.raise = function(t, r, n, i) { - var o; - if (e._isElement(t)) { - if (typeof document < "u" && document.createEvent) { - var a = document.createEvent("HTMLEvents"); - a.initEvent(r, i || !1, !0), Zbe(a, n), o = t.dispatchEvent(a); - } else if (typeof document < "u" && document.createEventObject) { - var s = document.createEventObject(n); - t.fireEvent("on" + r, s); - } - } else - for (; t && o !== !1; ) { - var l = t.__events__, u = l ? l[r] : null; - if (u) { - for (var f in u) - if (u.hasOwnProperty(f)) - for (var h = u[f], p = 0; o !== !1 && p < h.length; p++) { - var g = h[p]; - g.objectCallback && (o = g.objectCallback.call(g.parent, n)); - } - } - t = i ? t.parent : null; - } - return o; - }, e.isObserved = function(t, r) { - var n = t && t.__events__; - return !!n && !!n[r]; - }, e.isDeclared = function(t, r) { - var n = t && t.__declaredEvents; - return !!n && !!n[r]; - }, e.stopPropagation = function(t) { - t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0; - }, e._isElement = function(t) { - return !!t && (!!t.addEventListener || typeof HTMLElement < "u" && t instanceof HTMLElement); - }, e.prototype.dispose = function() { - this._isDisposed || (this._isDisposed = !0, this.off(), this._parent = null); - }, e.prototype.onAll = function(t, r, n) { - for (var i in r) - r.hasOwnProperty(i) && this.on(t, i, r[i], n); - }, e.prototype.on = function(t, r, n, i) { - var o = this; - if (r.indexOf(",") > -1) - for (var a = r.split(/[ ,]+/), s = 0; s < a.length; s++) - this.on(t, a[s], n, i); - else { - var l = this._parent, u = { - target: t, - eventName: r, - parent: l, - callback: n, - options: i - }, a = t.__events__ = t.__events__ || {}; - if (a[r] = a[r] || { - count: 0 - }, a[r][this._id] = a[r][this._id] || [], a[r][this._id].push(u), a[r].count++, e._isElement(t)) { - var f = function() { - for (var g = [], m = 0; m < arguments.length; m++) - g[m] = arguments[m]; - if (!o._isDisposed) { - var _; - try { - if (_ = n.apply(l, g), _ === !1 && g[0]) { - var S = g[0]; - S.preventDefault && S.preventDefault(), S.stopPropagation && S.stopPropagation(), S.cancelBubble = !0; - } - } catch { - } - return _; - } - }; - u.elementCallback = f, t.addEventListener ? t.addEventListener(r, f, i) : t.attachEvent && t.attachEvent("on" + r, f); - } else { - var h = function() { - for (var g = [], m = 0; m < arguments.length; m++) - g[m] = arguments[m]; - if (!o._isDisposed) - return n.apply(l, g); - }; - u.objectCallback = h; - } - this._eventRecords.push(u); - } - }, e.prototype.off = function(t, r, n, i) { - for (var o = 0; o < this._eventRecords.length; o++) { - var a = this._eventRecords[o]; - if ((!t || t === a.target) && (!r || r === a.eventName) && (!n || n === a.callback) && (typeof i != "boolean" || i === a.options)) { - var s = a.target.__events__, l = s[a.eventName], u = l ? l[this._id] : null; - u && (u.length === 1 || !n ? (l.count -= u.length, delete s[a.eventName][this._id]) : (l.count--, u.splice(u.indexOf(a), 1)), l.count || delete s[a.eventName]), a.elementCallback && (a.target.removeEventListener ? a.target.removeEventListener(a.eventName, a.elementCallback, a.options) : a.target.detachEvent && a.target.detachEvent("on" + a.eventName, a.elementCallback)), this._eventRecords.splice(o--, 1); - } - } - }, e.prototype.raise = function(t, r, n) { - return e.raise(this._parent, t, r, n); - }, e.prototype.declare = function(t) { - var r = this._parent.__declaredEvents = this._parent.__declaredEvents || {}; - if (typeof t == "string") - r[t] = !0; - else - for (var n = 0; n < t.length; n++) - r[t[n]] = !0; - }, e._uniqueId = 0, e; - }() -); -function gp(e) { - if (!(!fQ() || typeof document > "u")) { - var t = e; - return t && t.ownerDocument ? t.ownerDocument : document; - } -} -var q$, tN = 0, Jbe = ua({ - overflow: "hidden !important" -}), doe = "data-is-scrollable", s4e = function(e, t) { - if (e) { - var r = 0, n = null, i = function(a) { - a.targetTouches.length === 1 && (r = a.targetTouches[0].clientY); - }, o = function(a) { - if (a.targetTouches.length === 1 && (a.stopPropagation(), !!n)) { - var s = a.targetTouches[0].clientY - r, l = t_e(a.target); - l && (n = l), n.scrollTop === 0 && s > 0 && a.preventDefault(), n.scrollHeight - Math.ceil(n.scrollTop) <= n.clientHeight && s < 0 && a.preventDefault(); - } - }; - t.on(e, "touchstart", i, { passive: !1 }), t.on(e, "touchmove", o, { passive: !1 }), n = e; - } -}, l4e = function(e, t) { - if (e) { - var r = function(n) { - n.stopPropagation(); - }; - t.on(e, "touchmove", r, { passive: !1 }); - } -}, e_e = function(e) { - e.preventDefault(); -}; -function u4e() { - var e = gp(); - e && e.body && !tN && (e.body.classList.add(Jbe), e.body.addEventListener("touchmove", e_e, { passive: !1, capture: !1 })), tN++; -} -function c4e() { - if (tN > 0) { - var e = gp(); - e && e.body && tN === 1 && (e.body.classList.remove(Jbe), e.body.removeEventListener("touchmove", e_e)), tN--; - } -} -function f4e() { - if (q$ === void 0) { - var e = document.createElement("div"); - e.style.setProperty("width", "100px"), e.style.setProperty("height", "100px"), e.style.setProperty("overflow", "scroll"), e.style.setProperty("position", "absolute"), e.style.setProperty("top", "-9999px"), document.body.appendChild(e), q$ = e.offsetWidth - e.clientWidth, document.body.removeChild(e); - } - return q$; -} -function t_e(e) { - for (var t = e, r = gp(e); t && t !== r.body; ) { - if (t.getAttribute(doe) === "true") - return t; - t = t.parentElement; - } - for (t = e; t && t !== r.body; ) { - if (t.getAttribute(doe) !== "false") { - var n = getComputedStyle(t), i = n ? n.getPropertyValue("overflow-y") : ""; - if (i && (i === "scroll" || i === "auto")) - return t; - } - t = t.parentElement; - } - return (!t || t === r.body) && (t = gc(e)), t; -} -var d4e = {}, hoe = void 0; -function Ab(e) { - hoe && d4e.NODE_ENV !== "production" ? hoe(e) : console && console.warn && console.warn(e); -} -var h4e = {}; -function p4e(e, t, r, n, i) { - if (i === !0 && h4e.NODE_ENV !== "production") - for (var o = 0, a = r; o < a.length; o++) { - var s = a[o]; - s in t || Ab("".concat(e, " property '").concat(s, "' is required when '").concat(n, "' is used.'")); - } -} -var v4e = {}; -function g4e(e, t, r) { - if (v4e.NODE_ENV !== "production") { - for (var n in r) - if (t && t[n] !== void 0) { - var i = r[n]; - i && t[i] !== void 0 && Ab("".concat(e, " property '").concat(n, "' is mutually exclusive with '").concat(r[n], "'. ") + "Use one or the other."); - } - } -} -var m4e = {}; -function hQ(e, t, r) { - if (m4e.NODE_ENV !== "production") { - for (var n in r) - if (t && n in t) { - var i = "".concat(e, " property '").concat(n, "' was used but has been deprecated."), o = r[n]; - o && (i += " Use '".concat(o, "' instead.")), Ab(i); - } - } -} -var W$ = "__globalSettings__", pQ = "__callbacks__", y4e = 0, r_e = ( - /** @class */ - function() { - function e() { - } - return e.getValue = function(t, r) { - var n = pG(); - return n[t] === void 0 && (n[t] = typeof r == "function" ? r() : r), n[t]; - }, e.setValue = function(t, r) { - var n = pG(), i = n[pQ], o = n[t]; - if (r !== o) { - n[t] = r; - var a = { - oldValue: o, - value: r, - key: t - }; - for (var s in i) - i.hasOwnProperty(s) && i[s](a); - } - return r; - }, e.addChangeListener = function(t) { - var r = t.__id__, n = poe(); - r || (r = t.__id__ = String(y4e++)), n[r] = t; - }, e.removeChangeListener = function(t) { - var r = poe(); - delete r[t.__id__]; - }, e; - }() -); -function pG() { - var e, t = gc(), r = t || {}; - return r[W$] || (r[W$] = (e = {}, e[pQ] = {}, e)), r[W$]; -} -function poe() { - var e = pG(); - return e[pQ]; -} -var Ui = { - backspace: 8, - tab: 9, - enter: 13, - shift: 16, - ctrl: 17, - alt: 18, - pauseBreak: 19, - capslock: 20, - escape: 27, - space: 32, - pageUp: 33, - pageDown: 34, - end: 35, - home: 36, - left: 37, - up: 38, - right: 39, - down: 40, - insert: 45, - del: 46, - zero: 48, - one: 49, - two: 50, - three: 51, - four: 52, - five: 53, - six: 54, - seven: 55, - eight: 56, - nine: 57, - colon: 58, - a: 65, - b: 66, - c: 67, - d: 68, - e: 69, - f: 70, - g: 71, - h: 72, - i: 73, - j: 74, - k: 75, - l: 76, - m: 77, - n: 78, - o: 79, - p: 80, - q: 81, - r: 82, - s: 83, - t: 84, - u: 85, - v: 86, - w: 87, - x: 88, - y: 89, - z: 90, - leftWindow: 91, - rightWindow: 92, - select: 93, - /* eslint-disable @typescript-eslint/naming-convention */ - zero_numpad: 96, - one_numpad: 97, - two_numpad: 98, - three_numpad: 99, - four_numpad: 100, - five_numpad: 101, - six_numpad: 102, - seven_numpad: 103, - eight_numpad: 104, - nine_numpad: 105, - /* eslint-enable @typescript-eslint/naming-convention */ - multiply: 106, - add: 107, - subtract: 109, - decimalPoint: 110, - divide: 111, - f1: 112, - f2: 113, - f3: 114, - f4: 115, - f5: 116, - f6: 117, - f7: 118, - f8: 119, - f9: 120, - f10: 121, - f11: 122, - f12: 123, - numlock: 144, - scrollLock: 145, - semicolon: 186, - equalSign: 187, - comma: 188, - dash: 189, - period: 190, - forwardSlash: 191, - graveAccent: 192, - openBracket: 219, - backSlash: 220, - closeBracket: 221, - singleQuote: 222 -}, Xv = ( - /** @class */ - function() { - function e(t, r, n, i) { - t === void 0 && (t = 0), r === void 0 && (r = 0), n === void 0 && (n = 0), i === void 0 && (i = 0), this.top = n, this.bottom = i, this.left = t, this.right = r; - } - return Object.defineProperty(e.prototype, "width", { - /** - * Calculated automatically by subtracting the right from left - */ - get: function() { - return this.right - this.left; - }, - enumerable: !1, - configurable: !0 - }), Object.defineProperty(e.prototype, "height", { - /** - * Calculated automatically by subtracting the bottom from top. - */ - get: function() { - return this.bottom - this.top; - }, - enumerable: !1, - configurable: !0 - }), e.prototype.equals = function(t) { - return parseFloat(this.top.toFixed(4)) === parseFloat(t.top.toFixed(4)) && parseFloat(this.bottom.toFixed(4)) === parseFloat(t.bottom.toFixed(4)) && parseFloat(this.left.toFixed(4)) === parseFloat(t.left.toFixed(4)) && parseFloat(this.right.toFixed(4)) === parseFloat(t.right.toFixed(4)); - }, e; - }() -); -function b4e(e) { - for (var t = [], r = 1; r < arguments.length; r++) - t[r - 1] = arguments[r]; - return t.length < 2 ? t[0] : function() { - for (var n = [], i = 0; i < arguments.length; i++) - n[i] = arguments[i]; - t.forEach(function(o) { - return o && o.apply(e, n); - }); - }; -} -function T4() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - var r = e.filter(function(n) { - return n; - }).join(" ").trim(); - return r === "" ? void 0 : r; -} -function _4e(e, t, r) { - var n = e.slice(); - return n.splice(t, 0, r), n; -} -function E4e(e, t) { - if (e.length !== t.length) - return !1; - for (var r = 0; r < e.length; r++) - if (e[r] !== t[r]) - return !1; - return !0; -} -function n_e(e) { - var t = null; - try { - var r = gc(); - t = r ? r.sessionStorage.getItem(e) : null; - } catch { - } - return t; -} -function S4e(e, t) { - var r; - try { - (r = gc()) === null || r === void 0 || r.sessionStorage.setItem(e, t); - } catch { - } -} -var i_e = "isRTL", fb; -function up(e) { - if (e === void 0 && (e = {}), e.rtl !== void 0) - return e.rtl; - if (fb === void 0) { - var t = n_e(i_e); - t !== null && (fb = t === "1", x4e(fb)); - var r = gp(); - fb === void 0 && r && (fb = (r.body && r.body.getAttribute("dir") || r.documentElement.getAttribute("dir")) === "rtl", zbe(fb)); - } - return !!fb; -} -function x4e(e, t) { - t === void 0 && (t = !1); - var r = gp(); - r && r.documentElement.setAttribute("dir", e ? "rtl" : "ltr"), t && S4e(i_e, e ? "1" : "0"), fb = e, zbe(fb); -} -function w4e(e) { - return e && !!e._virtual; -} -function T4e(e) { - var t; - return e && w4e(e) && (t = e._virtual.parent), t; -} -function Rm(e, t) { - return t === void 0 && (t = !0), e && (t && T4e(e) || e.parentNode && e.parentNode); -} -function Jp(e, t, r) { - r === void 0 && (r = !0); - var n = !1; - if (e && t) - if (r) - if (e === t) - n = !0; - else - for (n = !1; t; ) { - var i = Rm(t); - if (i === e) { - n = !0; - break; - } - t = i; - } - else - e.contains && (n = e.contains(t)); - return n; -} -function vQ(e, t) { - return !e || e === document.body ? null : t(e) ? e : vQ(Rm(e), t); -} -function A4e(e, t) { - var r = vQ(e, function(n) { - return n.hasAttribute(t); - }); - return r && r.getAttribute(t); -} -var vG = "data-portal-element"; -function k4e(e) { - e.setAttribute(vG, "true"); -} -function C4e(e, t) { - var r = vQ(e, function(n) { - return t === n || n.hasAttribute(vG); - }); - return r !== null && r.hasAttribute(vG); -} -function O4e(e, t) { - var r = e, n = t; - r._virtual || (r._virtual = { - children: [] - }); - var i = r._virtual.parent; - if (i && i !== t) { - var o = i._virtual.children.indexOf(r); - o > -1 && i._virtual.children.splice(o, 1); - } - r._virtual.parent = n || void 0, n && (n._virtual || (n._virtual = { - children: [] - }), n._virtual.children.push(r)); -} -var R4e = "data-is-focusable", N4e = "data-is-visible", I4e = "data-focuszone-id", D4e = "data-is-sub-focuszone"; -function M4e(e, t, r) { - return op(e, t, !0, !1, !1, r); -} -function L4e(e, t, r) { - return Qp(e, t, !0, !1, !0, r); -} -function F4e(e, t, r, n) { - return n === void 0 && (n = !0), op( - e, - t, - n, - !1, - !1, - r, - !1, - !0 - /*tabbable*/ - ); -} -function B4e(e, t, r, n) { - return n === void 0 && (n = !0), Qp( - e, - t, - n, - !1, - !0, - r, - !1, - !0 - /*tabbable*/ - ); -} -function $4e(e, t) { - var r = op(e, e, !0, !1, !1, !0, void 0, void 0, t); - return r ? (s_e(r), !0) : !1; -} -function Qp(e, t, r, n, i, o, a, s) { - if (!t || !a && t === e) - return null; - var l = A4(t); - if (i && l && (o || !(db(t) || gQ(t)))) { - var u = Qp(e, t.lastElementChild, !0, !0, !0, o, a, s); - if (u) { - if (s && Im(u, !0) || !s) - return u; - var f = Qp(e, u.previousElementSibling, !0, !0, !0, o, a, s); - if (f) - return f; - for (var h = u.parentElement; h && h !== t; ) { - var p = Qp(e, h.previousElementSibling, !0, !0, !0, o, a, s); - if (p) - return p; - h = h.parentElement; - } - } - } - if (r && l && Im(t, s)) - return t; - var g = Qp(e, t.previousElementSibling, !0, !0, !0, o, a, s); - return g || (n ? null : Qp(e, t.parentElement, !0, !1, !1, o, a, s)); -} -function op(e, t, r, n, i, o, a, s, l) { - if (!t || t === e && i && !a) - return null; - var u = l ? o_e : A4, f = u(t); - if (r && f && Im(t, s)) - return t; - if (!i && f && (o || !(db(t) || gQ(t)))) { - var h = op(e, t.firstElementChild, !0, !0, !1, o, a, s, l); - if (h) - return h; - } - if (t === e) - return null; - var p = op(e, t.nextElementSibling, !0, !0, !1, o, a, s, l); - return p || (n ? null : op(e, t.parentElement, !1, !1, !0, o, a, s, l)); -} -function A4(e) { - if (!e || !e.getAttribute) - return !1; - var t = e.getAttribute(N4e); - return t != null ? t === "true" : e.offsetHeight !== 0 || e.offsetParent !== null || // eslint-disable-next-line @typescript-eslint/no-explicit-any - e.isVisible === !0; -} -function o_e(e) { - return !!e && A4(e) && !e.hidden && window.getComputedStyle(e).visibility !== "hidden"; -} -function Im(e, t) { - if (!e || e.disabled) - return !1; - var r = 0, n = null; - e && e.getAttribute && (n = e.getAttribute("tabIndex"), n && (r = parseInt(n, 10))); - var i = e.getAttribute ? e.getAttribute(R4e) : null, o = n !== null && r >= 0, a = !!e && i !== "false" && (e.tagName === "A" || e.tagName === "BUTTON" || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT" || i === "true" || o); - return t ? r !== -1 && a : a; -} -function db(e) { - return !!(e && e.getAttribute && e.getAttribute(I4e)); -} -function gQ(e) { - return !!(e && e.getAttribute && e.getAttribute(D4e) === "true"); -} -function P4e(e) { - var t = gp(e), r = t && t.activeElement; - return !!(r && Jp(e, r)); -} -function a_e(e, t) { - return A4e(e, t) !== "true"; -} -var u2 = void 0; -function s_e(e) { - if (e) { - var t = gc(e); - t && (u2 !== void 0 && t.cancelAnimationFrame(u2), u2 = t.requestAnimationFrame(function() { - e && e.focus(), u2 = void 0; - })); - } -} -function j4e(e, t) { - for (var r = e, n = 0, i = t; n < i.length; n++) { - var o = i[n], a = r.children[Math.min(o, r.children.length - 1)]; - if (!a) - break; - r = a; - } - return r = Im(r) && A4(r) ? r : op(e, r, !0) || Qp(e, r), r; -} -function z4e(e, t) { - for (var r = []; t && e && t !== e; ) { - var n = Rm(t, !0); - if (n === null) - return []; - r.unshift(Array.prototype.indexOf.call(n.children, t)), t = n; - } - return r; -} -function $m(e, t, r, n) { - return e.addEventListener(t, r, n), function() { - return e.removeEventListener(t, r, n); - }; -} -var H4e = 50, q4e = 5, $M = 0, V$ = tg.getInstance(); -V$ && V$.onReset && V$.onReset(function() { - return $M++; -}); -var c2 = "__retval__"; -function dy(e) { - e === void 0 && (e = {}); - var t = /* @__PURE__ */ new Map(), r = 0, n = 0, i = $M, o = function(a, s) { - var l; - if (s === void 0 && (s = {}), e.useStaticStyles && typeof a == "function" && a.__noStyleOverride__) - return a(s); - n++; - var u = t, f = s.theme, h = f && f.rtl !== void 0 ? f.rtl : up(), p = e.disableCaching; - if (i !== $M && (i = $M, t = /* @__PURE__ */ new Map(), r = 0), e.disableCaching || (u = voe(t, a), u = voe(u, s)), (p || !u[c2]) && (a === void 0 ? u[c2] = {} : u[c2] = Kbe([ - typeof a == "function" ? a(s) : a - ], { rtl: !!h, specificityMultiplier: e.useStaticStyles ? q4e : void 0 }), p || r++), r > (e.cacheSize || H4e)) { - var g = gc(); - !((l = g == null ? void 0 : g.FabricConfig) === null || l === void 0) && l.enableClassNameCacheFullWarning && (console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(r, "/").concat(n, ".")), console.trace()), t.clear(), r = 0, e.disableCaching = !0; - } - return u[c2]; - }; - return o; -} -function U$(e, t) { - return t = W4e(t), e.has(t) || e.set(t, /* @__PURE__ */ new Map()), e.get(t); -} -function voe(e, t) { - if (typeof t == "function") { - var r = t.__cachedInputs__; - if (r) - for (var n = 0, i = t.__cachedInputs__; n < i.length; n++) { - var o = i[n]; - e = U$(e, o); - } - else - e = U$(e, t); - } else if (typeof t == "object") - for (var a in t) - t.hasOwnProperty(a) && (e = U$(e, t[a])); - return e; -} -function W4e(e) { - switch (e) { - case void 0: - return "__undefined__"; - case null: - return "__null__"; - default: - return e; - } -} -var goe = !1, PM = 0, V4e = { empty: !0 }, G$ = {}, MN = typeof WeakMap > "u" ? null : WeakMap; -function U4e() { - PM++; -} -function Ep(e, t, r) { - if (t === void 0 && (t = 100), r === void 0 && (r = !1), !MN) - return e; - if (!goe) { - var n = tg.getInstance(); - n && n.onReset && tg.getInstance().onReset(U4e), goe = !0; - } - var i, o = 0, a = PM; - return function() { - for (var l = [], u = 0; u < arguments.length; u++) - l[u] = arguments[u]; - var f = i; - (i === void 0 || a !== PM || t > 0 && o > t) && (i = moe(), o = 0, a = PM), f = i; - for (var h = 0; h < l.length; h++) { - var p = G4e(l[h]); - f.map.has(p) || f.map.set(p, moe()), f = f.map.get(p); - } - return f.hasOwnProperty("value") || (f.value = e.apply(void 0, l), o++), r && (f.value === null || f.value === void 0) && (f.value = e.apply(void 0, l)), f.value; - }; -} -function HA(e) { - if (!MN) - return e; - var t = new MN(); - function r(n) { - if (!n || typeof n != "function" && typeof n != "object") - return e(n); - if (t.has(n)) - return t.get(n); - var i = e(n); - return t.set(n, i), i; - } - return r; -} -function G4e(e) { - if (e) { - if (typeof e == "object" || typeof e == "function") - return e; - G$[e] || (G$[e] = { val: e }); - } else - return V4e; - return G$[e]; -} -function moe() { - return { - map: MN ? new MN() : null - }; -} -function K4e(e) { - var t = e, r = HA(function(n) { - if (e === n) - throw new Error("Attempted to compose a component with itself."); - var i = n, o = HA(function(s) { - var l = function(u) { - return W.createElement(i, Ht({}, u, { defaultRender: s })); - }; - return l; - }), a = function(s) { - var l = s.defaultRender; - return W.createElement(t, Ht({}, s, { defaultRender: l ? o(l) : i })); - }; - return a; - }); - return r; -} -var Y4e = HA(K4e); -function c0(e, t) { - return Y4e(e)(t); -} -function yoe(e, t) { - return e[t] !== void 0 && e[t] !== null; -} -function $E() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - for (var r = [], n = 0, i = e; n < i.length; n++) { - var o = i[n]; - if (o) - if (typeof o == "string") - r.push(o); - else if (o.hasOwnProperty("toString") && typeof o.toString == "function") - r.push(o.toString()); - else - for (var a in o) - o[a] && r.push(a); - } - return r.join(" "); -} -var X4e = "customizations", Q4e = { settings: {}, scopedSettings: {}, inCustomizerContext: !1 }, G_ = r_e.getValue(X4e, { - settings: {}, - scopedSettings: {}, - inCustomizerContext: !1 -}), f2 = [], kb = ( - /** @class */ - function() { - function e() { - } - return e.reset = function() { - G_.settings = {}, G_.scopedSettings = {}; - }, e.applySettings = function(t) { - G_.settings = Ht(Ht({}, G_.settings), t), e._raiseChange(); - }, e.applyScopedSettings = function(t, r) { - G_.scopedSettings[t] = Ht(Ht({}, G_.scopedSettings[t]), r), e._raiseChange(); - }, e.getSettings = function(t, r, n) { - n === void 0 && (n = Q4e); - for (var i = {}, o = r && n.scopedSettings[r] || {}, a = r && G_.scopedSettings[r] || {}, s = 0, l = t; s < l.length; s++) { - var u = l[s]; - i[u] = o[u] || n.settings[u] || a[u] || G_.settings[u]; - } - return i; - }, e.applyBatchedUpdates = function(t, r) { - e._suppressUpdates = !0; - try { - t(); - } catch { - } - e._suppressUpdates = !1, r || e._raiseChange(); - }, e.observe = function(t) { - f2.push(t); - }, e.unobserve = function(t) { - f2 = f2.filter(function(r) { - return r !== t; - }); - }, e._raiseChange = function() { - e._suppressUpdates || f2.forEach(function(t) { - return t(); - }); - }, e; - }() -), SL = W.createContext({ - customizations: { - inCustomizerContext: !1, - settings: {}, - scopedSettings: {} - } -}); -function Z4e(e, t) { - e === void 0 && (e = {}); - var r = l_e(t) ? t : eBe(t); - return r(e); -} -function J4e(e, t) { - e === void 0 && (e = {}); - var r = l_e(t) ? t : tBe(t); - return r(e); -} -function l_e(e) { - return typeof e == "function"; -} -function eBe(e) { - return function(t) { - return e ? Ht(Ht({}, t), e) : t; - }; -} -function tBe(e) { - return e === void 0 && (e = {}), function(t) { - var r = Ht({}, t); - for (var n in e) - e.hasOwnProperty(n) && (r[n] = Ht(Ht({}, t[n]), e[n])); - return r; - }; -} -function rBe(e, t) { - var r = (t || {}).customizations, n = r === void 0 ? { settings: {}, scopedSettings: {} } : r; - return { - customizations: { - settings: Z4e(n.settings, e.settings), - scopedSettings: J4e(n.scopedSettings, e.scopedSettings), - inCustomizerContext: !0 - } - }; -} -var nBe = ( - /** @class */ - function(e) { - fy(t, e); - function t() { - var r = e !== null && e.apply(this, arguments) || this; - return r._onCustomizationChange = function() { - return r.forceUpdate(); - }, r; - } - return t.prototype.componentDidMount = function() { - kb.observe(this._onCustomizationChange); - }, t.prototype.componentWillUnmount = function() { - kb.unobserve(this._onCustomizationChange); - }, t.prototype.render = function() { - var r = this, n = this.props.contextTransform; - return W.createElement(SL.Consumer, null, function(i) { - var o = rBe(r.props, i); - return n && (o = n(o)), W.createElement(SL.Provider, { value: o }, r.props.children); - }); - }, t; - }(W.Component) -); -function iBe(e, t) { - var r = oBe(), n = W.useContext(SL).customizations, i = n.inCustomizerContext; - return W.useEffect(function() { - return i || kb.observe(r), function() { - i || kb.unobserve(r); - }; - }, [i]), kb.getSettings(e, t, n); -} -function oBe() { - var e = W.useState(0), t = e[1]; - return function() { - return t(function(r) { - return ++r; - }); - }; -} -function aBe(e, t) { - for (var r in t) - t.hasOwnProperty(r) && (e[r] = b4e(e, e[r], t[r])); -} -var xL = "__currentId__", sBe = "id__", wL = gc() || {}; -wL[xL] === void 0 && (wL[xL] = 0); -var boe = !1; -function Qx(e) { - if (!boe) { - var t = tg.getInstance(); - t && t.onReset && t.onReset(lBe), boe = !0; - } - var r = wL[xL]++; - return (e === void 0 ? sBe : e) + r; -} -function lBe(e) { - e === void 0 && (e = 0), wL[xL] = e; -} -var nc = function() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - for (var r = {}, n = 0, i = e; n < i.length; n++) - for (var o = i[n], a = Array.isArray(o) ? o : Object.keys(o), s = 0, l = a; s < l.length; s++) { - var u = l[s]; - r[u] = 1; - } - return r; -}, uBe = nc([ - "onCopy", - "onCut", - "onPaste", - "onCompositionEnd", - "onCompositionStart", - "onCompositionUpdate", - "onFocus", - "onFocusCapture", - "onBlur", - "onBlurCapture", - "onChange", - "onInput", - "onSubmit", - "onLoad", - "onError", - "onKeyDown", - "onKeyDownCapture", - "onKeyPress", - "onKeyUp", - "onAbort", - "onCanPlay", - "onCanPlayThrough", - "onDurationChange", - "onEmptied", - "onEncrypted", - "onEnded", - "onLoadedData", - "onLoadedMetadata", - "onLoadStart", - "onPause", - "onPlay", - "onPlaying", - "onProgress", - "onRateChange", - "onSeeked", - "onSeeking", - "onStalled", - "onSuspend", - "onTimeUpdate", - "onVolumeChange", - "onWaiting", - "onClick", - "onClickCapture", - "onContextMenu", - "onDoubleClick", - "onDrag", - "onDragEnd", - "onDragEnter", - "onDragExit", - "onDragLeave", - "onDragOver", - "onDragStart", - "onDrop", - "onMouseDown", - "onMouseDownCapture", - "onMouseEnter", - "onMouseLeave", - "onMouseMove", - "onMouseOut", - "onMouseOver", - "onMouseUp", - "onMouseUpCapture", - "onSelect", - "onTouchCancel", - "onTouchEnd", - "onTouchMove", - "onTouchStart", - "onScroll", - "onWheel", - "onPointerCancel", - "onPointerDown", - "onPointerEnter", - "onPointerLeave", - "onPointerMove", - "onPointerOut", - "onPointerOver", - "onPointerUp", - "onGotPointerCapture", - "onLostPointerCapture" -]), cBe = nc([ - "accessKey", - "children", - "className", - "contentEditable", - "dir", - "draggable", - "hidden", - "htmlFor", - "id", - "lang", - "ref", - "role", - "style", - "tabIndex", - "title", - "translate", - "spellCheck", - "name" - // global -]), _c = nc(cBe, uBe); -nc(_c, [ - "form" - // button, fieldset, input, label, meter, object, output, select, textarea -]); -var fBe = nc(_c, [ - "height", - "loop", - "muted", - "preload", - "src", - "width" - // canvas, embed, iframe, img, input, object, video -]); -nc(fBe, [ - "poster" - // video -]); -nc(_c, [ - "start" - // ol -]); -nc(_c, [ - "value" - // button, input, li, option, meter, progress, param -]); -var dBe = nc(_c, [ - "download", - "href", - "hrefLang", - "media", - "rel", - "target", - "type" - // a, button, input, link, menu, object, script, source, style -]), qA = nc(_c, [ - "autoFocus", - "disabled", - "form", - "formAction", - "formEncType", - "formMethod", - "formNoValidate", - "formTarget", - "type", - "value" - // button, input, li, option, meter, progress, param, -]); -nc(qA, [ - "accept", - "alt", - "autoCapitalize", - "autoComplete", - "checked", - "dirname", - "form", - "height", - "inputMode", - "list", - "max", - "maxLength", - "min", - "minLength", - "multiple", - "pattern", - "placeholder", - "readOnly", - "required", - "src", - "step", - "size", - "type", - "value", - "width" - // canvas, embed, iframe, img, input, object, video -]); -nc(qA, [ - "autoCapitalize", - "cols", - "dirname", - "form", - "maxLength", - "minLength", - "placeholder", - "readOnly", - "required", - "rows", - "wrap" - // textarea -]); -nc(qA, [ - "form", - "multiple", - "required" - // input, select, textarea -]); -nc(_c, [ - "selected", - "value" - // button, input, li, option, meter, progress, param -]); -nc(_c, [ - "cellPadding", - "cellSpacing" - // table -]); -nc(_c, [ - "rowSpan", - "scope" - // th -]); -nc(_c, [ - "colSpan", - "headers", - "rowSpan", - "scope" - // th -]); -nc(_c, [ - "span" - // col, colgroup -]); -nc(_c, [ - "span" - // col, colgroup -]); -nc(_c, [ - "acceptCharset", - "action", - "encType", - "encType", - "method", - "noValidate", - "target" - // form -]); -nc(_c, [ - "allow", - "allowFullScreen", - "allowPaymentRequest", - "allowTransparency", - "csp", - "height", - "importance", - "referrerPolicy", - "sandbox", - "src", - "srcDoc", - "width" - // canvas, embed, iframe, img, input, object, video, -]); -var hBe = nc(_c, [ - "alt", - "crossOrigin", - "height", - "src", - "srcSet", - "useMap", - "width" - // canvas, embed, iframe, img, input, object, video -]), zk = _c; -function Ah(e, t, r) { - for (var n = Array.isArray(t), i = {}, o = Object.keys(e), a = 0, s = o; a < s.length; a++) { - var l = s[a], u = !n && t[l] || n && t.indexOf(l) >= 0 || l.indexOf("data-") === 0 || l.indexOf("aria-") === 0; - u && (!r || (r == null ? void 0 : r.indexOf(l)) === -1) && (i[l] = e[l]); - } - return i; -} -function k4(e) { - aBe(e, { - componentDidMount: pBe, - componentDidUpdate: vBe, - componentWillUnmount: gBe - }); -} -function pBe() { - TL(this.props.componentRef, this); -} -function vBe(e) { - e.componentRef !== this.props.componentRef && (TL(e.componentRef, null), TL(this.props.componentRef, this)); -} -function gBe() { - TL(this.props.componentRef, null); -} -function TL(e, t) { - e && (typeof e == "object" ? e.current = t : typeof e == "function" && e(t)); -} -var Jg, mBe = (Jg = {}, Jg[Ui.up] = 1, Jg[Ui.down] = 1, Jg[Ui.left] = 1, Jg[Ui.right] = 1, Jg[Ui.home] = 1, Jg[Ui.end] = 1, Jg[Ui.tab] = 1, Jg[Ui.pageUp] = 1, Jg[Ui.pageDown] = 1, Jg); -function u_e(e) { - return !!mBe[e]; -} -var yh = "ms-Fabric--isFocusVisible", _oe = "ms-Fabric--isFocusHidden"; -function Eoe(e, t) { - e && (e.classList.add(t ? yh : _oe), e.classList.remove(t ? _oe : yh)); -} -function C4(e, t, r) { - var n; - r ? r.forEach(function(i) { - return Eoe(i.current, e); - }) : Eoe((n = gc(t)) === null || n === void 0 ? void 0 : n.document.body, e); -} -var Soe = /* @__PURE__ */ new WeakMap(), xoe = /* @__PURE__ */ new WeakMap(); -function woe(e, t) { - var r, n = Soe.get(e); - return n ? r = n + t : r = 1, Soe.set(e, r), r; -} -function yBe(e) { - var t = xoe.get(e); - if (t) - return t; - var r = function(a) { - return c_e(a, e.registeredProviders); - }, n = function(a) { - return f_e(a, e.registeredProviders); - }, i = function(a) { - return d_e(a, e.registeredProviders); - }, o = function(a) { - return h_e(a, e.registeredProviders); - }; - return t = { onMouseDown: r, onPointerDown: n, onKeyDown: i, onKeyUp: o }, xoe.set(e, t), t; -} -var AL = W.createContext(void 0); -function bBe(e) { - var t = W.useContext(AL); - W.useEffect(function() { - var r, n, i, o, a = gc(e == null ? void 0 : e.current); - if (!(!a || ((r = a.FabricConfig) === null || r === void 0 ? void 0 : r.disableFocusRects) === !0)) { - var s = a, l, u, f, h; - if (!((n = t == null ? void 0 : t.providerRef) === null || n === void 0) && n.current && (!((o = (i = t == null ? void 0 : t.providerRef) === null || i === void 0 ? void 0 : i.current) === null || o === void 0) && o.addEventListener)) { - s = t.providerRef.current; - var p = ( - /*@__NOINLINE__*/ - yBe(t) - ); - l = p.onMouseDown, u = p.onPointerDown, f = p.onKeyDown, h = p.onKeyUp; - } else - l = c_e, u = f_e, f = d_e, h = h_e; - var g = woe(s, 1); - return g <= 1 && (s.addEventListener("mousedown", l, !0), s.addEventListener("pointerdown", u, !0), s.addEventListener("keydown", f, !0), s.addEventListener("keyup", h, !0)), function() { - var m; - !a || ((m = a.FabricConfig) === null || m === void 0 ? void 0 : m.disableFocusRects) === !0 || (g = woe(s, -1), g === 0 && (s.removeEventListener("mousedown", l, !0), s.removeEventListener("pointerdown", u, !0), s.removeEventListener("keydown", f, !0), s.removeEventListener("keyup", h, !0))); - }; - } - }, [t, e]); -} -var _Be = function(e) { - return bBe(e.rootRef), null; -}; -function c_e(e, t) { - C4(!1, e.target, t); -} -function f_e(e, t) { - e.pointerType !== "mouse" && C4(!1, e.target, t); -} -function d_e(e, t) { - u_e(e.which) && C4(!0, e.target, t); -} -function h_e(e, t) { - u_e(e.which) && C4(!0, e.target, t); -} -var p_e = function(e) { - var t = e.providerRef, r = e.layerRoot, n = W.useState([])[0], i = W.useContext(AL), o = i !== void 0 && !r, a = W.useMemo(function() { - return o ? void 0 : { - providerRef: t, - registeredProviders: n, - registerProvider: function(s) { - n.push(s), i == null || i.registerProvider(s); - }, - unregisterProvider: function(s) { - i == null || i.unregisterProvider(s); - var l = n.indexOf(s); - l >= 0 && n.splice(l, 1); - } - }; - }, [t, n, i, o]); - return W.useEffect(function() { - if (a) - return a.registerProvider(a.providerRef), function() { - return a.unregisterProvider(a.providerRef); - }; - }, [a]), a ? W.createElement(AL.Provider, { value: a }, e.children) : W.createElement(W.Fragment, null, e.children); -}; -function EBe(e) { - var t = null; - try { - var r = gc(); - t = r ? r.localStorage.getItem(e) : null; - } catch { - } - return t; -} -var ex, Toe = "language"; -function SBe(e) { - if (e === void 0 && (e = "sessionStorage"), ex === void 0) { - var t = gp(), r = e === "localStorage" ? EBe(Toe) : e === "sessionStorage" ? n_e(Toe) : void 0; - r && (ex = r), ex === void 0 && t && (ex = t.documentElement.getAttribute("lang")), ex === void 0 && (ex = "en"); - } - return ex; -} -function Aoe(e) { - for (var t = [], r = 1; r < arguments.length; r++) - t[r - 1] = arguments[r]; - for (var n = 0, i = t; n < i.length; n++) { - var o = i[n]; - v_e(e || {}, o); - } - return e; -} -function v_e(e, t, r) { - r === void 0 && (r = []), r.push(t); - for (var n in t) - if (t.hasOwnProperty(n) && n !== "__proto__" && n !== "constructor" && n !== "prototype") { - var i = t[n]; - if (typeof i == "object" && i !== null && !Array.isArray(i)) { - var o = r.indexOf(i) > -1; - e[n] = o ? i : v_e(e[n] || {}, i, r); - } else - e[n] = i; - } - return r.pop(), e; -} -var koe = function() { - return !window || !window.navigator || !window.navigator.userAgent ? !1 : /iPad|iPhone|iPod/i.test(window.navigator.userAgent); -}, xBe = ["TEMPLATE", "STYLE", "SCRIPT"]; -function g_e(e) { - var t = gp(e); - if (!t) - return function() { - }; - for (var r = []; e !== t.body && e.parentElement; ) { - for (var n = 0, i = e.parentElement.children; n < i.length; n++) { - var o = i[n], a = o.getAttribute("aria-hidden"); - o !== e && (a == null ? void 0 : a.toLowerCase()) !== "true" && xBe.indexOf(o.tagName) === -1 && r.push([o, a]); - } - e = e.parentElement; - } - return r.forEach(function(s) { - var l = s[0]; - l.setAttribute("aria-hidden", "true"); - }), function() { - wBe(r), r = []; - }; -} -function wBe(e) { - e.forEach(function(t) { - var r = t[0], n = t[1]; - n ? r.setAttribute("aria-hidden", n) : r.removeAttribute("aria-hidden"); - }); -} -var K$; -function Coe(e) { - var t; - if (typeof K$ > "u" || e) { - var r = gc(), n = (t = r == null ? void 0 : r.navigator) === null || t === void 0 ? void 0 : t.userAgent; - K$ = !!n && n.indexOf("Macintosh") !== -1; - } - return !!K$; -} -function TBe(e) { - var t = HA(function(r) { - var n = HA(function(i) { - return function(o) { - return r(o, i); - }; - }); - return function(i, o) { - return e(i, o ? n(o) : r); - }; - }); - return t; -} -var ABe = HA(TBe); -function kBe(e, t) { - return ABe(e)(t); -} -var CBe = ["theme", "styles"]; -function hy(e, t, r, n, i) { - n = n || { scope: "", fields: void 0 }; - var o = n.scope, a = n.fields, s = a === void 0 ? CBe : a, l = W.forwardRef(function(f, h) { - var p = W.useRef(), g = iBe(s, o), m = g.styles; - g.dir; - var _ = jk(g, ["styles", "dir"]), S = r ? r(f) : void 0, A = p.current && p.current.__cachedInputs__ || [], C = f.styles; - if (!p.current || m !== A[1] || C !== A[2]) { - var N = function(x) { - return Ybe(x, t, m, C); - }; - N.__cachedInputs__ = [ - t, - m, - C - ], N.__noStyleOverride__ = !m && !C, p.current = N; - } - return W.createElement(e, Ht({ ref: h }, _, S, f, { styles: p.current })); - }); - l.displayName = "Styled".concat(e.displayName || e.name); - var u = i ? W.memo(l) : l; - return l.displayName && (u.displayName = l.displayName), u; -} -var m_e = {}, ux; -m_e.NODE_ENV !== "production" && (ux = { - valueOnChange: {}, - valueDefaultValue: {}, - controlledToUncontrolled: {}, - uncontrolledToControlled: {} -}); -function OBe(e) { - if (m_e.NODE_ENV !== "production") { - var t = e.componentId, r = e.componentName, n = e.defaultValueProp, i = e.props, o = e.oldProps, a = e.onChangeProp, s = e.readOnlyProp, l = e.valueProp, u = o ? yoe(o, l) : void 0, f = yoe(i, l); - if (f) { - var h = !!i[a], p = !!(s && i[s]); - !(h || p) && !ux.valueOnChange[t] && (ux.valueOnChange[t] = !0, Ab("Warning: You provided a '".concat(String(l), "' prop to a ").concat(String(r), " without an '").concat(String(a), "' handler. ") + "This will render a read-only field. If the field should be mutable use '".concat(String(n), "'. ") + "Otherwise, set '".concat(String(a), "'").concat(s ? " or '".concat(String(s), "'") : "", "."))); - var g = i[n]; - g != null && !ux.valueDefaultValue[t] && (ux.valueDefaultValue[t] = !0, Ab("Warning: You provided both '".concat(String(l), "' and '").concat(String(n), "' to a ").concat(r, ". ") + "Form fields must be either controlled or uncontrolled (specify either the '".concat(String(l), "' prop, ") + "or the '".concat(String(n), "' prop, but not both). Decide between using a controlled or uncontrolled ") + "".concat(r, " and remove one of these props. More info: https://fb.me/react-controlled-components"))); - } - if (o && f !== u) { - var m = u ? "a controlled" : "an uncontrolled", _ = u ? "uncontrolled" : "controlled", S = u ? ux.controlledToUncontrolled : ux.uncontrolledToControlled; - S[t] || (S[t] = !0, Ab("Warning: A component is changing ".concat(m, " ").concat(r, " to be ").concat(_, ". ") + "".concat(r, "s should not switch from controlled to uncontrolled (or vice versa). ") + "Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components")); - } - } -} -function yD(e, t) { - for (var r = Ht({}, t), n = 0, i = Object.keys(e); n < i.length; n++) { - var o = i[n]; - r[o] === void 0 && (r[o] = e[o]); - } - return r; -} -var RBe = function(e) { - return function(t) { - for (var r = 0, n = e.refs; r < n.length; r++) { - var i = n[r]; - typeof i == "function" ? i(t) : i && (i.current = t); - } - }; -}, NBe = function(e) { - var t = { - refs: [] - }; - return function() { - for (var r = [], n = 0; n < arguments.length; n++) - r[n] = arguments[n]; - return (!t.resolver || !E4e(t.refs, r)) && (t.resolver = RBe(t)), t.refs = r, t.resolver; - }; -}, WA = fQ() ? W.useLayoutEffect : W.useEffect, IBe = "icons", j1 = r_e.getValue(IBe, { - __options: { - disableWarnings: !1, - warnOnMissingIcons: !0 - }, - __remapped: {} -}), Y$ = tg.getInstance(); -Y$ && Y$.onReset && Y$.onReset(function() { - for (var e in j1) - j1.hasOwnProperty(e) && j1[e].subset && (j1[e].subset.className = void 0); -}); -var kL = function(e) { - return e.toLowerCase(); -}; -function Xc(e, t) { - var r = Ht(Ht({}, e), { isRegistered: !1, className: void 0 }), n = e.icons; - t = t ? Ht(Ht({}, j1.__options), t) : j1.__options; - for (var i in n) - if (n.hasOwnProperty(i)) { - var o = n[i], a = kL(i); - j1[a] ? MBe(i) : j1[a] = { - code: o, - subset: r - }; - } -} -function tx(e, t) { - j1.__remapped[kL(e)] = kL(t); -} -function DBe(e) { - var t = void 0, r = j1.__options; - if (e = e ? kL(e) : "", e = j1.__remapped[e] || e, e) - if (t = j1[e], t) { - var n = t.subset; - n && n.fontFace && (n.isRegistered || (Xbe(n.fontFace), n.isRegistered = !0), n.className || (n.className = ua(n.style, { - fontFamily: n.fontFace.fontFamily, - fontWeight: n.fontFace.fontWeight || "normal", - fontStyle: n.fontFace.fontStyle || "normal" - }))); - } else - !r.disableWarnings && r.warnOnMissingIcons && Ab('The icon "'.concat(e, '" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.')); - return t; -} -var QO = [], X$ = void 0; -function MBe(e) { - var t = j1.__options, r = 2e3, n = 10; - t.disableWarnings || (QO.push(e), X$ === void 0 && (X$ = setTimeout(function() { - Ab(`Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: -` + QO.slice(0, n).join(", ") + (QO.length > n ? " (+ ".concat(QO.length - n, " more)") : "")), X$ = void 0, QO = []; - }, r))); -} -function LBe(e, t, r, n, i) { - i === void 0 && (i = !1); - var o = Ht({ - primaryButtonBorder: "transparent", - errorText: n ? "#F1707B" : "#a4262c", - messageText: n ? "#F3F2F1" : "#323130", - messageLink: n ? "#6CB8F6" : "#005A9E", - messageLinkHovered: n ? "#82C7FF" : "#004578", - infoIcon: n ? "#C8C6C4" : "#605e5c", - errorIcon: n ? "#F1707B" : "#A80000", - blockingIcon: n ? "#442726" : "#FDE7E9", - warningIcon: n ? "#C8C6C4" : "#797775", - severeWarningIcon: n ? "#FCE100" : "#D83B01", - successIcon: n ? "#92C353" : "#107C10", - infoBackground: n ? "#323130" : "#f3f2f1", - errorBackground: n ? "#442726" : "#FDE7E9", - blockingBackground: n ? "#442726" : "#FDE7E9", - warningBackground: n ? "#433519" : "#FFF4CE", - severeWarningBackground: n ? "#4F2A0F" : "#FED9CC", - successBackground: n ? "#393D1B" : "#DFF6DD", - // deprecated - warningHighlight: n ? "#fff100" : "#ffb900", - successText: n ? "#92c353" : "#107C10" - }, r), a = y_e(e, t, o, n); - return FBe(a, i); -} -function y_e(e, t, r, n, i) { - var o = {}, a = e || {}, s = a.white, l = a.black, u = a.themePrimary, f = a.themeDark, h = a.themeDarker, p = a.themeDarkAlt, g = a.themeLighter, m = a.neutralLight, _ = a.neutralLighter, S = a.neutralDark, A = a.neutralQuaternary, C = a.neutralQuaternaryAlt, N = a.neutralPrimary, x = a.neutralSecondary, R = a.neutralSecondaryAlt, D = a.neutralTertiary, M = a.neutralTertiaryAlt, j = a.neutralLighterAlt, F = a.accent; - return s && (o.bodyBackground = s, o.bodyFrameBackground = s, o.accentButtonText = s, o.buttonBackground = s, o.primaryButtonText = s, o.primaryButtonTextHovered = s, o.primaryButtonTextPressed = s, o.inputBackground = s, o.inputForegroundChecked = s, o.listBackground = s, o.menuBackground = s, o.cardStandoutBackground = s), l && (o.bodyTextChecked = l, o.buttonTextCheckedHovered = l), u && (o.link = u, o.primaryButtonBackground = u, o.inputBackgroundChecked = u, o.inputIcon = u, o.inputFocusBorderAlt = u, o.menuIcon = u, o.menuHeader = u, o.accentButtonBackground = u), f && (o.primaryButtonBackgroundPressed = f, o.inputBackgroundCheckedHovered = f, o.inputIconHovered = f), h && (o.linkHovered = h), p && (o.primaryButtonBackgroundHovered = p), g && (o.inputPlaceholderBackgroundChecked = g), m && (o.bodyBackgroundChecked = m, o.bodyFrameDivider = m, o.bodyDivider = m, o.variantBorder = m, o.buttonBackgroundCheckedHovered = m, o.buttonBackgroundPressed = m, o.listItemBackgroundChecked = m, o.listHeaderBackgroundPressed = m, o.menuItemBackgroundPressed = m, o.menuItemBackgroundChecked = m), _ && (o.bodyBackgroundHovered = _, o.buttonBackgroundHovered = _, o.buttonBackgroundDisabled = _, o.buttonBorderDisabled = _, o.primaryButtonBackgroundDisabled = _, o.disabledBackground = _, o.listItemBackgroundHovered = _, o.listHeaderBackgroundHovered = _, o.menuItemBackgroundHovered = _), A && (o.primaryButtonTextDisabled = A, o.disabledSubtext = A), C && (o.listItemBackgroundCheckedHovered = C), D && (o.disabledBodyText = D, o.variantBorderHovered = (r == null ? void 0 : r.variantBorderHovered) || D, o.buttonTextDisabled = D, o.inputIconDisabled = D, o.disabledText = D), N && (o.bodyText = N, o.actionLink = N, o.buttonText = N, o.inputBorderHovered = N, o.inputText = N, o.listText = N, o.menuItemText = N), j && (o.bodyStandoutBackground = j, o.defaultStateBackground = j), S && (o.actionLinkHovered = S, o.buttonTextHovered = S, o.buttonTextChecked = S, o.buttonTextPressed = S, o.inputTextHovered = S, o.menuItemTextHovered = S), x && (o.bodySubtext = x, o.focusBorder = x, o.inputBorder = x, o.smallInputBorder = x, o.inputPlaceholderText = x), R && (o.buttonBorder = R), M && (o.disabledBodySubtext = M, o.disabledBorder = M, o.buttonBackgroundChecked = M, o.menuDivider = M), F && (o.accentButtonBackground = F), t != null && t.elevation4 && (o.cardShadow = t.elevation4), !n && (t != null && t.elevation8) ? o.cardShadowHovered = t.elevation8 : o.variantBorderHovered && (o.cardShadowHovered = "0 0 1px " + o.variantBorderHovered), o = Ht(Ht({}, o), r), o; -} -function FBe(e, t) { - var r = ""; - return t === !0 && (r = " /* @deprecated */"), e.listTextColor = e.listText + r, e.menuItemBackgroundChecked += r, e.warningHighlight += r, e.warningText = e.messageText + r, e.successText += r, e; -} -function BBe(e, t) { - var r, n, i; - t === void 0 && (t = {}); - var o = Aoe({}, e, t, { - semanticColors: y_e(t.palette, t.effects, t.semanticColors, t.isInverted === void 0 ? e.isInverted : t.isInverted) - }); - if (!((r = t.palette) === null || r === void 0) && r.themePrimary && !(!((n = t.palette) === null || n === void 0) && n.accent) && (o.palette.accent = t.palette.themePrimary), t.defaultFontStyle) - for (var a = 0, s = Object.keys(o.fonts); a < s.length; a++) { - var l = s[a]; - o.fonts[l] = Aoe(o.fonts[l], t.defaultFontStyle, (i = t == null ? void 0 : t.fonts) === null || i === void 0 ? void 0 : i[l]); - } - return o; -} -var Ooe = { - themeDarker: "#004578", - themeDark: "#005a9e", - themeDarkAlt: "#106ebe", - themePrimary: "#0078d4", - themeSecondary: "#2b88d8", - themeTertiary: "#71afe5", - themeLight: "#c7e0f4", - themeLighter: "#deecf9", - themeLighterAlt: "#eff6fc", - black: "#000000", - blackTranslucent40: "rgba(0,0,0,.4)", - neutralDark: "#201f1e", - neutralPrimary: "#323130", - neutralPrimaryAlt: "#3b3a39", - neutralSecondary: "#605e5c", - neutralSecondaryAlt: "#8a8886", - neutralTertiary: "#a19f9d", - neutralTertiaryAlt: "#c8c6c4", - neutralQuaternary: "#d2d0ce", - neutralQuaternaryAlt: "#e1dfdd", - neutralLight: "#edebe9", - neutralLighter: "#f3f2f1", - neutralLighterAlt: "#faf9f8", - accent: "#0078d4", - white: "#ffffff", - whiteTranslucent40: "rgba(255,255,255,.4)", - yellowDark: "#d29200", - yellow: "#ffb900", - yellowLight: "#fff100", - orange: "#d83b01", - orangeLight: "#ea4300", - orangeLighter: "#ff8c00", - redDark: "#a4262c", - red: "#e81123", - magentaDark: "#5c005c", - magenta: "#b4009e", - magentaLight: "#e3008c", - purpleDark: "#32145a", - purple: "#5c2d91", - purpleLight: "#b4a0ff", - blueDark: "#002050", - blueMid: "#00188f", - blue: "#0078d4", - blueLight: "#00bcf2", - tealDark: "#004b50", - teal: "#008272", - tealLight: "#00b294", - greenDark: "#004b1c", - green: "#107c10", - greenLight: "#bad80a" -}, rA; -(function(e) { - e.depth0 = "0 0 0 0 transparent", e.depth4 = "0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)", e.depth8 = "0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)", e.depth16 = "0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)", e.depth64 = "0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"; -})(rA || (rA = {})); -var Roe = { - elevation4: rA.depth4, - elevation8: rA.depth8, - elevation16: rA.depth16, - elevation64: rA.depth64, - roundedCorner2: "2px", - roundedCorner4: "4px", - roundedCorner6: "6px" -}, $Be = { - s2: "4px", - s1: "8px", - m: "16px", - l1: "20px", - l2: "32px" -}, tl = "cubic-bezier(.1,.9,.2,1)", R1 = "cubic-bezier(.1,.25,.75,.9)", IR = "0.167s", gG = "0.267s", ws = "0.367s", mG = "0.467s", ed = ug({ - from: { opacity: 0 }, - to: { opacity: 1 } -}), td = ug({ - from: { opacity: 1 }, - to: { opacity: 0, visibility: "hidden" } -}), PBe = ZE(-10), jBe = ZE(-20), zBe = ZE(-40), HBe = ZE(-400), qBe = ZE(10), WBe = ZE(20), VBe = ZE(40), UBe = ZE(400), GBe = O4(10), KBe = O4(20), YBe = O4(-10), XBe = O4(-20), QBe = JE(10), ZBe = JE(20), JBe = JE(40), e3e = JE(400), t3e = JE(-10), r3e = JE(-20), n3e = JE(-40), i3e = JE(-400), o3e = R4(-10), a3e = R4(-20), s3e = R4(10), l3e = R4(20), u3e = ug({ - from: { transform: "scale3d(.98,.98,1)" }, - to: { transform: "scale3d(1,1,1)" } -}), c3e = ug({ - from: { transform: "scale3d(1,1,1)" }, - to: { transform: "scale3d(.98,.98,1)" } -}), f3e = ug({ - from: { transform: "scale3d(1.03,1.03,1)" }, - to: { transform: "scale3d(1,1,1)" } -}), d3e = ug({ - from: { transform: "scale3d(1,1,1)" }, - to: { transform: "scale3d(1.03,1.03,1)" } -}), h3e = ug({ - from: { transform: "rotateZ(0deg)" }, - to: { transform: "rotateZ(90deg)" } -}), p3e = ug({ - from: { transform: "rotateZ(0deg)" }, - to: { transform: "rotateZ(-90deg)" } -}), v3e = { - easeFunction1: tl, - easeFunction2: R1, - durationValue1: IR, - durationValue2: gG, - durationValue3: ws, - durationValue4: mG -}, g3e = { - slideRightIn10: Vo("".concat(ed, ",").concat(PBe), ws, tl), - slideRightIn20: Vo("".concat(ed, ",").concat(jBe), ws, tl), - slideRightIn40: Vo("".concat(ed, ",").concat(zBe), ws, tl), - slideRightIn400: Vo("".concat(ed, ",").concat(HBe), ws, tl), - slideLeftIn10: Vo("".concat(ed, ",").concat(qBe), ws, tl), - slideLeftIn20: Vo("".concat(ed, ",").concat(WBe), ws, tl), - slideLeftIn40: Vo("".concat(ed, ",").concat(VBe), ws, tl), - slideLeftIn400: Vo("".concat(ed, ",").concat(UBe), ws, tl), - slideUpIn10: Vo("".concat(ed, ",").concat(GBe), ws, tl), - slideUpIn20: Vo("".concat(ed, ",").concat(KBe), ws, tl), - slideDownIn10: Vo("".concat(ed, ",").concat(YBe), ws, tl), - slideDownIn20: Vo("".concat(ed, ",").concat(XBe), ws, tl), - slideRightOut10: Vo("".concat(td, ",").concat(QBe), ws, tl), - slideRightOut20: Vo("".concat(td, ",").concat(ZBe), ws, tl), - slideRightOut40: Vo("".concat(td, ",").concat(JBe), ws, tl), - slideRightOut400: Vo("".concat(td, ",").concat(e3e), ws, tl), - slideLeftOut10: Vo("".concat(td, ",").concat(t3e), ws, tl), - slideLeftOut20: Vo("".concat(td, ",").concat(r3e), ws, tl), - slideLeftOut40: Vo("".concat(td, ",").concat(n3e), ws, tl), - slideLeftOut400: Vo("".concat(td, ",").concat(i3e), ws, tl), - slideUpOut10: Vo("".concat(td, ",").concat(o3e), ws, tl), - slideUpOut20: Vo("".concat(td, ",").concat(a3e), ws, tl), - slideDownOut10: Vo("".concat(td, ",").concat(s3e), ws, tl), - slideDownOut20: Vo("".concat(td, ",").concat(l3e), ws, tl), - scaleUpIn100: Vo("".concat(ed, ",").concat(u3e), ws, tl), - scaleDownIn100: Vo("".concat(ed, ",").concat(f3e), ws, tl), - scaleUpOut103: Vo("".concat(td, ",").concat(d3e), IR, R1), - scaleDownOut98: Vo("".concat(td, ",").concat(c3e), IR, R1), - fadeIn100: Vo(ed, IR, R1), - fadeIn200: Vo(ed, gG, R1), - fadeIn400: Vo(ed, ws, R1), - fadeIn500: Vo(ed, mG, R1), - fadeOut100: Vo(td, IR, R1), - fadeOut200: Vo(td, gG, R1), - fadeOut400: Vo(td, ws, R1), - fadeOut500: Vo(td, mG, R1), - rotate90deg: Vo(h3e, "0.1s", R1), - rotateN90deg: Vo(p3e, "0.1s", R1) - // expandCollapse 100/200/400, delay 100/200 -}; -function Vo(e, t, r) { - return { - animationName: e, - animationDuration: t, - animationTimingFunction: r, - animationFillMode: "both" - }; -} -function ZE(e) { - return ug({ - from: { transform: "translate3d(".concat(e, "px,0,0)"), pointerEvents: "none" }, - to: { transform: "translate3d(0,0,0)", pointerEvents: "auto" } - }); -} -function O4(e) { - return ug({ - from: { transform: "translate3d(0,".concat(e, "px,0)"), pointerEvents: "none" }, - to: { transform: "translate3d(0,0,0)", pointerEvents: "auto" } - }); -} -function JE(e) { - return ug({ - from: { transform: "translate3d(0,0,0)" }, - to: { transform: "translate3d(".concat(e, "px,0,0)") } - }); -} -function R4(e) { - return ug({ - from: { transform: "translate3d(0,0,0)" }, - to: { transform: "translate3d(0,".concat(e, "px,0)") } - }); -} -var Lu; -(function(e) { - e.Arabic = "Segoe UI Web (Arabic)", e.Cyrillic = "Segoe UI Web (Cyrillic)", e.EastEuropean = "Segoe UI Web (East European)", e.Greek = "Segoe UI Web (Greek)", e.Hebrew = "Segoe UI Web (Hebrew)", e.Thai = "Leelawadee UI Web", e.Vietnamese = "Segoe UI Web (Vietnamese)", e.WestEuropean = "Segoe UI Web (West European)", e.Selawik = "Selawik Web", e.Armenian = "Segoe UI Web (Armenian)", e.Georgian = "Segoe UI Web (Georgian)"; -})(Lu || (Lu = {})); -var Ts; -(function(e) { - e.Arabic = "'".concat(Lu.Arabic, "'"), e.ChineseSimplified = "'Microsoft Yahei UI', Verdana, Simsun", e.ChineseTraditional = "'Microsoft Jhenghei UI', Pmingliu", e.Cyrillic = "'".concat(Lu.Cyrillic, "'"), e.EastEuropean = "'".concat(Lu.EastEuropean, "'"), e.Greek = "'".concat(Lu.Greek, "'"), e.Hebrew = "'".concat(Lu.Hebrew, "'"), e.Hindi = "'Nirmala UI'", e.Japanese = "'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka", e.Korean = "'Malgun Gothic', Gulim", e.Selawik = "'".concat(Lu.Selawik, "'"), e.Thai = "'Leelawadee UI Web', 'Kmer UI'", e.Vietnamese = "'".concat(Lu.Vietnamese, "'"), e.WestEuropean = "'".concat(Lu.WestEuropean, "'"), e.Armenian = "'".concat(Lu.Armenian, "'"), e.Georgian = "'".concat(Lu.Georgian, "'"); -})(Ts || (Ts = {})); -var rp; -(function(e) { - e.size10 = "10px", e.size12 = "12px", e.size14 = "14px", e.size16 = "16px", e.size18 = "18px", e.size20 = "20px", e.size24 = "24px", e.size28 = "28px", e.size32 = "32px", e.size42 = "42px", e.size68 = "68px", e.mini = "10px", e.xSmall = "10px", e.small = "12px", e.smallPlus = "12px", e.medium = "14px", e.mediumPlus = "16px", e.icon = "16px", e.large = "18px", e.xLarge = "20px", e.xLargePlus = "24px", e.xxLarge = "28px", e.xxLargePlus = "32px", e.superLarge = "42px", e.mega = "68px"; -})(rp || (rp = {})); -var tu; -(function(e) { - e.light = 100, e.semilight = 300, e.regular = 400, e.semibold = 600, e.bold = 700; -})(tu || (tu = {})); -var cE; -(function(e) { - e.xSmall = "10px", e.small = "12px", e.medium = "16px", e.large = "20px"; -})(cE || (cE = {})); -var m3e = "'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif", y3e = "'Segoe UI', '".concat(Lu.WestEuropean, "'"), Q$ = { - ar: Ts.Arabic, - bg: Ts.Cyrillic, - cs: Ts.EastEuropean, - el: Ts.Greek, - et: Ts.EastEuropean, - he: Ts.Hebrew, - hi: Ts.Hindi, - hr: Ts.EastEuropean, - hu: Ts.EastEuropean, - ja: Ts.Japanese, - kk: Ts.EastEuropean, - ko: Ts.Korean, - lt: Ts.EastEuropean, - lv: Ts.EastEuropean, - pl: Ts.EastEuropean, - ru: Ts.Cyrillic, - sk: Ts.EastEuropean, - "sr-latn": Ts.EastEuropean, - th: Ts.Thai, - tr: Ts.EastEuropean, - uk: Ts.Cyrillic, - vi: Ts.Vietnamese, - "zh-hans": Ts.ChineseSimplified, - "zh-hant": Ts.ChineseTraditional, - hy: Ts.Armenian, - ka: Ts.Georgian -}; -function b3e(e) { - return "".concat(e, ", ").concat(m3e); -} -function _3e(e) { - for (var t in Q$) - if (Q$.hasOwnProperty(t) && e && t.indexOf(e) === 0) - return Q$[t]; - return y3e; -} -function C1(e, t, r) { - return { - fontFamily: r, - MozOsxFontSmoothing: "grayscale", - WebkitFontSmoothing: "antialiased", - fontSize: e, - fontWeight: t - }; -} -function E3e(e) { - var t = _3e(e), r = b3e(t), n = { - tiny: C1(rp.mini, tu.regular, r), - xSmall: C1(rp.xSmall, tu.regular, r), - small: C1(rp.small, tu.regular, r), - smallPlus: C1(rp.smallPlus, tu.regular, r), - medium: C1(rp.medium, tu.regular, r), - mediumPlus: C1(rp.mediumPlus, tu.regular, r), - large: C1(rp.large, tu.regular, r), - xLarge: C1(rp.xLarge, tu.semibold, r), - xLargePlus: C1(rp.xLargePlus, tu.semibold, r), - xxLarge: C1(rp.xxLarge, tu.semibold, r), - xxLargePlus: C1(rp.xxLargePlus, tu.semibold, r), - superLarge: C1(rp.superLarge, tu.semibold, r), - mega: C1(rp.mega, tu.semibold, r) - }; - return n; -} -var S3e = "https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets", x3e = E3e(SBe()); -function _x(e, t, r, n) { - e = "'".concat(e, "'"); - var i = n !== void 0 ? "local('".concat(n, "'),") : ""; - Xbe({ - fontFamily: e, - src: i + "url('".concat(t, ".woff2') format('woff2'),") + "url('".concat(t, ".woff') format('woff')"), - fontWeight: r, - fontStyle: "normal", - fontDisplay: "swap" - }); -} -function e0(e, t, r, n, i) { - n === void 0 && (n = "segoeui"); - var o = "".concat(e, "/").concat(r, "/").concat(n); - _x(t, o + "-light", tu.light, i && i + " Light"), _x(t, o + "-semilight", tu.semilight, i && i + " SemiLight"), _x(t, o + "-regular", tu.regular, i), _x(t, o + "-semibold", tu.semibold, i && i + " SemiBold"), _x(t, o + "-bold", tu.bold, i && i + " Bold"); -} -function w3e(e) { - if (e) { - var t = "".concat(e, "/fonts"); - e0(t, Lu.Thai, "leelawadeeui-thai", "leelawadeeui"), e0(t, Lu.Arabic, "segoeui-arabic"), e0(t, Lu.Cyrillic, "segoeui-cyrillic"), e0(t, Lu.EastEuropean, "segoeui-easteuropean"), e0(t, Lu.Greek, "segoeui-greek"), e0(t, Lu.Hebrew, "segoeui-hebrew"), e0(t, Lu.Vietnamese, "segoeui-vietnamese"), e0(t, Lu.WestEuropean, "segoeui-westeuropean", "segoeui", "Segoe UI"), e0(t, Ts.Selawik, "selawik", "selawik"), e0(t, Lu.Armenian, "segoeui-armenian"), e0(t, Lu.Georgian, "segoeui-georgian"), _x("Leelawadee UI Web", "".concat(t, "/leelawadeeui-thai/leelawadeeui-semilight"), tu.light), _x("Leelawadee UI Web", "".concat(t, "/leelawadeeui-thai/leelawadeeui-bold"), tu.semibold); - } -} -function T3e() { - var e, t, r = (e = gc()) === null || e === void 0 ? void 0 : e.FabricConfig; - return (t = r == null ? void 0 : r.fontBaseUrl) !== null && t !== void 0 ? t : S3e; -} -w3e(T3e()); -function bD(e, t) { - e === void 0 && (e = {}), t === void 0 && (t = !1); - var r = !!e.isInverted, n = { - palette: Ooe, - effects: Roe, - fonts: x3e, - spacing: $Be, - isInverted: r, - disableGlobalClassNames: !1, - semanticColors: LBe(Ooe, Roe, void 0, r, t), - rtl: void 0 - }; - return BBe(n, e); -} -var _A = "@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)", A3e = 640, b_e = A3e - 1; -function E_e(e, t) { - var r = typeof e == "number" ? " and (min-width: ".concat(e, "px)") : "", n = typeof t == "number" ? " and (max-width: ".concat(t, "px)") : ""; - return "@media only screen".concat(r).concat(n); -} -function k3e() { - return { - forcedColorAdjust: "none", - MsHighContrastAdjust: "none" - }; -} -var VA; -(function(e) { - e.Nav = 1, e.ScrollablePane = 1, e.FocusStyle = 1, e.Coachmark = 1e3, e.Layer = 1e6, e.KeytipLayer = 1000001; -})(VA || (VA = {})); -function Noe(e, t, r, n, i, o, a, s) { - return typeof t == "number" || !t ? Ioe(e, { - inset: t, - position: r, - highContrastStyle: n, - borderColor: i, - outlineColor: o, - isFocusedOnly: a, - borderRadius: s - }) : Ioe(e, t); -} -function Ioe(e, t) { - var r, n; - t === void 0 && (t = {}); - var i = t.borderRadius, o = t.inset, a = o === void 0 ? 0 : o, s = t.width, l = s === void 0 ? 1 : s, u = t.position, f = u === void 0 ? "relative" : u, h = t.highContrastStyle, p = t.borderColor, g = p === void 0 ? e.palette.white : p, m = t.outlineColor, _ = m === void 0 ? e.palette.neutralSecondary : m, S = t.isFocusedOnly, A = S === void 0 ? !0 : S, C = t.pointerEvents; - return { - // Clear browser-specific focus styles and use 'transparent' as placeholder for focus style. - outline: "transparent", - // Requirement because pseudo-element is absolutely positioned. - position: f, - selectors: (r = { - // Clear the focus border in Firefox. - // Reference: http://stackoverflow.com/a/199319/1436671 - "::-moz-focus-inner": { - border: "0" - } - }, // When the element that uses this mixin is in a :focus state, add a pseudo-element to - // create a border. - r[".".concat(yh, " &").concat(A ? ":focus" : "", ":after")] = { - content: '""', - position: "absolute", - pointerEvents: C, - left: a + 1, - top: a + 1, - bottom: a + 1, - right: a + 1, - border: "".concat(l, "px solid ").concat(g), - outline: "".concat(l, "px solid ").concat(_), - zIndex: VA.FocusStyle, - borderRadius: i, - selectors: (n = {}, n[_A] = h, n) - }, r) - }; -} -function C3e() { - return { - selectors: { - "&::-moz-focus-inner": { - // Clear the focus border in Firefox. Reference: http://stackoverflow.com/a/199319/1436671 - border: 0 - }, - "&": { - // Clear browser specific focus styles and use transparent as placeholder for focus style - outline: "transparent" - } - } - }; -} -var O3e = { - position: "absolute", - width: 1, - height: 1, - margin: -1, - padding: 0, - border: 0, - overflow: "hidden", - whiteSpace: "nowrap" -}, R3e = Ep(function(e, t) { - var r = tg.getInstance(); - return t ? Object.keys(e).reduce(function(n, i) { - return n[i] = r.getClassName(e[i]), n; - }, {}) : e; -}); -function py(e, t, r) { - return R3e(e, r !== void 0 ? r : t.disableGlobalClassNames); -} -var nA = function() { - return nA = Object.assign || function(e) { - for (var t, r = 1, n = arguments.length; r < n; r++) { - t = arguments[r]; - for (var i in t) - Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); - } - return e; - }, nA.apply(this, arguments); -}, rN = typeof window > "u" ? global : window, Doe = rN && rN.CSPSettings && rN.CSPSettings.nonce, z1 = N3e(); -function N3e() { - var e = rN.__themeState__ || { - theme: void 0, - lastStyleElement: void 0, - registeredStyles: [] - }; - return e.runState || (e = nA(nA({}, e), { perf: { - count: 0, - duration: 0 - }, runState: { - flushTimer: 0, - mode: 0, - buffer: [] - } })), e.registeredThemableStyles || (e = nA(nA({}, e), { registeredThemableStyles: [] })), rN.__themeState__ = e, e; -} -function I3e(e, t) { - z1.loadStyles ? z1.loadStyles(S_e(e).styleString, e) : F3e(e); -} -function D3e(e) { - z1.theme = e, L3e(); -} -function M3e(e) { - e === void 0 && (e = 3), (e === 3 || e === 2) && (Moe(z1.registeredStyles), z1.registeredStyles = []), (e === 3 || e === 1) && (Moe(z1.registeredThemableStyles), z1.registeredThemableStyles = []); -} -function Moe(e) { - e.forEach(function(t) { - var r = t && t.styleElement; - r && r.parentElement && r.parentElement.removeChild(r); - }); -} -function L3e() { - if (z1.theme) { - for (var e = [], t = 0, r = z1.registeredThemableStyles; t < r.length; t++) { - var n = r[t]; - e.push(n.themableStyle); - } - e.length > 0 && (M3e( - 1 - /* ClearStyleOptions.onlyThemable */ - ), I3e([].concat.apply([], e))); - } -} -function S_e(e) { - var t = z1.theme, r = !1, n = (e || []).map(function(i) { - var o = i.theme; - if (o) { - r = !0; - var a = t ? t[o] : void 0, s = i.defaultValue || "inherit"; - return t && !a && console && !(o in t) && typeof DEBUG < "u" && DEBUG && console.warn('Theming value not provided for "'.concat(o, '". Falling back to "').concat(s, '".')), a || s; - } else - return i.rawString; - }); - return { - styleString: n.join(""), - themable: r - }; -} -function F3e(e) { - if (!(typeof document > "u")) { - var t = document.getElementsByTagName("head")[0], r = document.createElement("style"), n = S_e(e), i = n.styleString, o = n.themable; - r.setAttribute("data-load-themed-styles", "true"), Doe && r.setAttribute("nonce", Doe), r.appendChild(document.createTextNode(i)), z1.perf.count++, t.appendChild(r); - var a = document.createEvent("HTMLEvents"); - a.initEvent( - "styleinsert", - !0, - !1 - /* cancelable */ - ), a.args = { - newStyle: r - }, document.dispatchEvent(a); - var s = { - styleElement: r, - themableStyle: e - }; - o ? z1.registeredThemableStyles.push(s) : z1.registeredStyles.push(s); - } -} -var Bv = bD({}), B3e = [], yG = "theme"; -function x_e() { - var e, t, r, n = gc(); - !((t = n == null ? void 0 : n.FabricConfig) === null || t === void 0) && t.legacyTheme ? P3e(n.FabricConfig.legacyTheme) : kb.getSettings([yG]).theme || (!((r = n == null ? void 0 : n.FabricConfig) === null || r === void 0) && r.theme && (Bv = bD(n.FabricConfig.theme)), kb.applySettings((e = {}, e[yG] = Bv, e))); -} -x_e(); -function $3e(e) { - return e === void 0 && (e = !1), e === !0 && (Bv = bD({}, e)), Bv; -} -function P3e(e, t) { - var r; - return t === void 0 && (t = !1), Bv = bD(e, t), D3e(Ht(Ht(Ht(Ht({}, Bv.palette), Bv.semanticColors), Bv.effects), j3e(Bv))), kb.applySettings((r = {}, r[yG] = Bv, r)), B3e.forEach(function(n) { - try { - n(Bv); - } catch { - } - }), Bv; -} -function j3e(e) { - for (var t = {}, r = 0, n = Object.keys(e.fonts); r < n.length; r++) - for (var i = n[r], o = e.fonts[i], a = 0, s = Object.keys(o); a < s.length; a++) { - var l = s[a], u = i + l.charAt(0).toUpperCase() + l.slice(1), f = o[l]; - l === "fontSize" && typeof f == "number" && (f = f + "px"), t[u] = f; - } - return t; -} -var DR = o4e(g3e), z3e = "https://res.cdn.office.net/files/fabric-cdn-prod_20230815.002"; -uQ("@fluentui/style-utilities", "8.9.21"); -x_e(); -var Wc = { - /** - * Appear above the target element, with the left edges of the callout and target aligning. - */ - topLeftEdge: 0, - /** - * Appear above the target element, with the centers of the callout and target aligning. - */ - topCenter: 1, - /** - * Appear above the target element, with the right edges of the callout and target aligning. - */ - topRightEdge: 2, - /** - * Appear above the target element, aligning with the target element such that the callout tends toward - * the center of the screen. - */ - topAutoEdge: 3, - /** - * Appear below the target element, with the left edges of the callout and target aligning. - */ - bottomLeftEdge: 4, - /** - * Appear below the target element, with the centers of the callout and target aligning. - */ - bottomCenter: 5, - /** - * Appear below the target element, with the right edges of the callout and target aligning. - */ - bottomRightEdge: 6, - /** - * Appear below the target element, aligning with the target element such that the callout tends toward - * the center of the screen. - */ - bottomAutoEdge: 7, - /** - * Appear to the left of the target element, with the top edges of the callout and target aligning. - */ - leftTopEdge: 8, - /** - * Appear to the left of the target element, with the centers of the callout and target aligning. - */ - leftCenter: 9, - /** - * Appear to the left of the target element, with the bottom edges of the callout and target aligning. - */ - leftBottomEdge: 10, - /** - * Appear to the right of the target element, with the top edges of the callout and target aligning. - */ - rightTopEdge: 11, - /** - * Appear to the right of the target element, with the centers of the callout and target aligning. - */ - rightCenter: 12, - /** - * Appear to the right of the target element, with the bottom edges of the callout and target aligning. - */ - rightBottomEdge: 13 -}, hi; -(function(e) { - e[e.top = 1] = "top", e[e.bottom = -1] = "bottom", e[e.left = 2] = "left", e[e.right = -2] = "right"; -})(hi || (hi = {})); -var Loe; -(function(e) { - e[e.top = 0] = "top", e[e.bottom = 1] = "bottom", e[e.start = 2] = "start", e[e.end = 3] = "end"; -})(Loe || (Loe = {})); -var ph; -function Vp(e, t, r) { - return { - targetEdge: e, - alignmentEdge: t, - isAuto: r - }; -} -var Foe = (ph = {}, ph[Wc.topLeftEdge] = Vp(hi.top, hi.left), ph[Wc.topCenter] = Vp(hi.top), ph[Wc.topRightEdge] = Vp(hi.top, hi.right), ph[Wc.topAutoEdge] = Vp(hi.top, void 0, !0), ph[Wc.bottomLeftEdge] = Vp(hi.bottom, hi.left), ph[Wc.bottomCenter] = Vp(hi.bottom), ph[Wc.bottomRightEdge] = Vp(hi.bottom, hi.right), ph[Wc.bottomAutoEdge] = Vp(hi.bottom, void 0, !0), ph[Wc.leftTopEdge] = Vp(hi.left, hi.top), ph[Wc.leftCenter] = Vp(hi.left), ph[Wc.leftBottomEdge] = Vp(hi.left, hi.bottom), ph[Wc.rightTopEdge] = Vp(hi.right, hi.top), ph[Wc.rightCenter] = Vp(hi.right), ph[Wc.rightBottomEdge] = Vp(hi.right, hi.bottom), ph); -function mQ(e, t) { - return !(e.top < t.top || e.bottom > t.bottom || e.left < t.left || e.right > t.right); -} -function CL(e, t) { - var r = []; - return e.top < t.top && r.push(hi.top), e.bottom > t.bottom && r.push(hi.bottom), e.left < t.left && r.push(hi.left), e.right > t.right && r.push(hi.right), r; -} -function kh(e, t) { - return e[hi[t]]; -} -function Boe(e, t, r) { - return e[hi[t]] = r, e; -} -function LN(e, t) { - var r = Hk(t); - return (kh(e, r.positiveEdge) + kh(e, r.negativeEdge)) / 2; -} -function N4(e, t) { - return e > 0 ? t : t * -1; -} -function bG(e, t) { - return N4(e, kh(t, e)); -} -function Hm(e, t, r) { - var n = kh(e, r) - kh(t, r); - return N4(r, n); -} -function UA(e, t, r, n) { - n === void 0 && (n = !0); - var i = kh(e, t) - r, o = Boe(e, t, r); - return n && (o = Boe(e, t * -1, kh(e, t * -1) - i)), o; -} -function FN(e, t, r, n) { - return n === void 0 && (n = 0), UA(e, r, kh(t, r) + N4(r, n)); -} -function H3e(e, t, r, n) { - n === void 0 && (n = 0); - var i = r * -1, o = N4(i, n); - return UA(e, r * -1, kh(t, r) + o); -} -function OL(e, t, r) { - var n = bG(r, e); - return n > bG(r, t); -} -function q3e(e, t) { - for (var r = CL(e, t), n = 0, i = 0, o = r; i < o.length; i++) { - var a = o[i]; - n += Math.pow(Hm(e, t, a), 2); - } - return n; -} -function W3e(e, t, r, n) { - return n === void 0 && (n = 200), r !== hi.bottom && r !== hi.top ? !1 : Hm(e, t, r) >= n; -} -function V3e(e, t, r, n, i, o, a) { - i === void 0 && (i = !1), a === void 0 && (a = 0); - var s = [ - hi.left, - hi.right, - hi.bottom, - hi.top - ]; - up() && (s[0] *= -1, s[1] *= -1); - for (var l = e, u = n.targetEdge, f = n.alignmentEdge, h, p = u, g = f, m = 0; m < 4; m++) { - if (OL(l, r, u)) - return { - elementRectangle: l, - targetEdge: u, - alignmentEdge: f - }; - if (i && W3e(t, r, u, o)) { - switch (u) { - case hi.bottom: - l.bottom = r.bottom; - break; - case hi.top: - l.top = r.top; - break; - } - return { - elementRectangle: l, - targetEdge: u, - alignmentEdge: f, - forcedInBounds: !0 - }; - } else { - var _ = q3e(l, r); - (!h || _ < h) && (h = _, p = u, g = f), s.splice(s.indexOf(u), 1), s.length > 0 && (s.indexOf(u * -1) > -1 ? u = u * -1 : (f = u, u = s.slice(-1)[0]), l = RL(e, t, { targetEdge: u, alignmentEdge: f }, a)); - } - } - return l = RL(e, t, { targetEdge: p, alignmentEdge: g }, a), { - elementRectangle: l, - targetEdge: p, - alignmentEdge: g - }; -} -function U3e(e, t, r, n) { - var i = e.alignmentEdge, o = e.targetEdge, a = e.elementRectangle, s = i * -1, l = RL(a, t, { targetEdge: o, alignmentEdge: s }, r, n); - return { - elementRectangle: l, - targetEdge: o, - alignmentEdge: s - }; -} -function G3e(e, t, r, n, i, o, a, s, l) { - i === void 0 && (i = !1), a === void 0 && (a = 0); - var u = n.alignmentEdge, f = n.alignTargetEdge, h = { - elementRectangle: e, - targetEdge: n.targetEdge, - alignmentEdge: u - }; - !s && !l && (h = V3e(e, t, r, n, i, o, a)); - var p = CL(h.elementRectangle, r), g = s ? -h.targetEdge : void 0; - if (p.length > 0) - if (f) - if (h.alignmentEdge && p.indexOf(h.alignmentEdge * -1) > -1) { - var m = U3e(h, t, a, l); - if (mQ(m.elementRectangle, r)) - return m; - h = Z$(CL(m.elementRectangle, r), h, r, g); - } else - h = Z$(p, h, r, g); - else - h = Z$(p, h, r, g); - return h; -} -function Z$(e, t, r, n) { - for (var i = 0, o = e; i < o.length; i++) { - var a = o[i], s = void 0; - if (n && n === a * -1) - s = UA(t.elementRectangle, a, kh(r, a), !1), t.forcedInBounds = !0; - else { - s = FN(t.elementRectangle, r, a); - var l = OL(s, r, a * -1); - l || (s = UA(s, a * -1, kh(r, a * -1), !1), t.forcedInBounds = !0); - } - t.elementRectangle = s; - } - return t; -} -function w_e(e, t, r) { - var n = Hk(t).positiveEdge, i = LN(e, t), o = i - kh(e, n); - return UA(e, n, r - o); -} -function RL(e, t, r, n, i) { - n === void 0 && (n = 0); - var o = new Xv(e.left, e.right, e.top, e.bottom), a = r.alignmentEdge, s = r.targetEdge, l = i ? s : s * -1; - if (o = i ? FN(o, t, s, n) : H3e(o, t, s, n), a) - o = FN(o, t, a); - else { - var u = LN(t, s); - o = w_e(o, l, u); - } - return o; -} -function Hk(e) { - return e === hi.top || e === hi.bottom ? { - positiveEdge: hi.left, - negativeEdge: hi.right - } : { - positiveEdge: hi.top, - negativeEdge: hi.bottom - }; -} -function T_e(e, t, r) { - return r && Math.abs(Hm(e, r, t)) > Math.abs(Hm(e, r, t * -1)) ? t * -1 : t; -} -function K3e(e, t, r) { - return r !== void 0 && kh(e, t) === kh(r, t); -} -function Y3e(e, t, r, n, i, o, a, s) { - var l = {}, u = I4(t), f = o ? r : r * -1, h = i || Hk(r).positiveEdge; - return (!a || K3e(e, c6e(h), n)) && (h = T_e(e, h, n)), l[hi[f]] = Hm(e, u, f), l[hi[h]] = Hm(e, u, h), s && (l[hi[f * -1]] = Hm(e, u, f * -1), l[hi[h * -1]] = Hm(e, u, h * -1)), l; -} -function X3e(e) { - return Math.sqrt(e * e * 2); -} -function Q3e(e, t, r) { - if (e === void 0 && (e = Wc.bottomAutoEdge), r) - return { - alignmentEdge: r.alignmentEdge, - isAuto: r.isAuto, - targetEdge: r.targetEdge - }; - var n = Ht({}, Foe[e]); - return up() ? (n.alignmentEdge && n.alignmentEdge % 2 === 0 && (n.alignmentEdge = n.alignmentEdge * -1), t !== void 0 ? Foe[t] : n) : n; -} -function Z3e(e, t, r, n, i) { - return e.isAuto && (e.alignmentEdge = A_e(e.targetEdge, t, r)), e.alignTargetEdge = i, e; -} -function A_e(e, t, r) { - var n = LN(t, e), i = LN(r, e), o = Hk(e), a = o.positiveEdge, s = o.negativeEdge; - return n <= i ? a : s; -} -function J3e(e, t, r, n, i, o, a, s, l) { - o === void 0 && (o = !1); - var u = RL(e, t, n, i, l); - return mQ(u, r) ? { - elementRectangle: u, - targetEdge: n.targetEdge, - alignmentEdge: n.alignmentEdge - } : G3e(u, t, r, n, o, a, i, s, l); -} -function e6e(e, t, r) { - var n = e.targetEdge * -1, i = new Xv(0, e.elementRectangle.width, 0, e.elementRectangle.height), o = {}, a = T_e(e.elementRectangle, e.alignmentEdge ? e.alignmentEdge : Hk(n).positiveEdge, r), s = Hm(e.elementRectangle, e.targetRectangle, n), l = s > Math.abs(kh(t, n)); - return o[hi[n]] = kh(t, n), o[hi[a]] = Hm(t, i, a), { - elementPosition: Ht({}, o), - closestEdge: A_e(e.targetEdge, t, i), - targetEdge: n, - hideBeak: !l - }; -} -function t6e(e, t) { - var r = t.targetRectangle, n = Hk(t.targetEdge), i = n.positiveEdge, o = n.negativeEdge, a = LN(r, t.targetEdge), s = new Xv(e / 2, t.elementRectangle.width - e / 2, e / 2, t.elementRectangle.height - e / 2), l = new Xv(0, e, 0, e); - return l = UA(l, t.targetEdge * -1, -e / 2), l = w_e(l, t.targetEdge * -1, a - bG(i, t.elementRectangle)), OL(l, s, i) ? OL(l, s, o) || (l = FN(l, s, o)) : l = FN(l, s, i), l; -} -function I4(e) { - var t = e.getBoundingClientRect(); - return new Xv(t.left, t.right, t.top, t.bottom); -} -function r6e(e) { - return new Xv(e.left, e.right, e.top, e.bottom); -} -function n6e(e, t) { - var r; - if (t) { - if (t.preventDefault) { - var n = t; - r = new Xv(n.clientX, n.clientX, n.clientY, n.clientY); - } else if (t.getBoundingClientRect) - r = I4(t); - else { - var i = t, o = i.left || i.x, a = i.top || i.y, s = i.right || o, l = i.bottom || a; - r = new Xv(o, s, a, l); - } - if (!mQ(r, e)) - for (var u = CL(r, e), f = 0, h = u; f < h.length; f++) { - var p = h[f]; - r[hi[p]] = e[hi[p]]; - } - } else - r = new Xv(0, 0, 0, 0); - return r; -} -function i6e(e, t, r, n, i, o) { - i === void 0 && (i = !1); - var a = e.gapSpace ? e.gapSpace : 0, s = n6e(r, e.target), l = Z3e(Q3e(e.directionalHint, e.directionalHintForRTL, n), s, r, e.coverTarget, e.alignTargetEdge), u = J3e(I4(t), s, r, l, a, i, o, e.directionalHintFixed, e.coverTarget); - return Ht(Ht({}, u), { targetRectangle: s }); -} -function o6e(e, t, r, n, i) { - var o = Y3e(e.elementRectangle, t, e.targetEdge, r, e.alignmentEdge, n, i, e.forcedInBounds); - return { - elementPosition: o, - targetEdge: e.targetEdge, - alignmentEdge: e.alignmentEdge - }; -} -function k_e(e, t, r) { - return t === void 0 && (t = 0), r === void 0 && (r = 0), X3e(e ? t : 0) / 2 + r; -} -function C_e(e, t, r, n, i, o, a) { - i === void 0 && (i = !1); - var s = e.isBeakVisible && e.beakWidth || 0, l = k_e(e.isBeakVisible, e.beakWidth, e.gapSpace), u = e; - u.gapSpace = l; - var f = e.bounds ? r6e(e.bounds) : new Xv(0, window.innerWidth - f4e(), 0, window.innerHeight), h = i6e(u, r, f, n, i, o), p = t6e(s, h), g = e6e(h, p, f); - return Ht(Ht({}, o6e(h, t, f, e.coverTarget, a)), { beakPosition: g }); -} -function a6e(e, t, r, n) { - return C_e(e, t, r, n, !1, void 0, !0); -} -function s6e(e) { - var t = e, r = e, n = e, i, o = n.left || n.x, a = n.top || n.y, s = n.right || o, l = n.bottom || a; - return t.stopPropagation ? i = new Xv(t.clientX, t.clientX, t.clientY, t.clientY) : o !== void 0 && a !== void 0 ? i = new Xv(o, s, a, l) : i = I4(r), i; -} -function l6e(e, t, r, n, i, o) { - return C_e(e, t, r, n, i, o); -} -function u6e(e, t, r, n) { - return a6e(e, t, r, n); -} -function c6e(e) { - return e * -1; -} -function f6e(e, t) { - var r = void 0; - if (t.getWindowSegments && (r = t.getWindowSegments()), r === void 0 || r.length <= 1) - return { - top: 0, - left: 0, - right: t.innerWidth, - bottom: t.innerHeight, - width: t.innerWidth, - height: t.innerHeight - }; - var n = 0, i = 0; - if (e !== null && e.getBoundingClientRect) { - var o = e.getBoundingClientRect(); - n = (o.left + o.right) / 2, i = (o.top + o.bottom) / 2; - } else - e !== null && (n = e.left || e.x, i = e.top || e.y); - for (var a = { top: 0, left: 0, right: 0, bottom: 0, width: 0, height: 0 }, s = 0, l = r; s < l.length; s++) { - var u = l[s]; - n && u.left <= n && u.right >= n && i && u.top <= i && u.bottom >= i && (a = { - top: u.top, - left: u.left, - right: u.right, - bottom: u.bottom, - width: u.width, - height: u.height - }); - } - return a; -} -function d6e(e, t) { - return f6e(e, t); -} -function h6e(e, t, r) { - return k_e(e, t, r); -} -function p6e(e) { - return s6e(e); -} -function qk() { - var e = W.useRef(); - return e.current || (e.current = new Qbe()), W.useEffect(function() { - return function() { - var t; - (t = e.current) === null || t === void 0 || t.dispose(), e.current = void 0; - }; - }, []), e.current; -} -function m0(e) { - var t = W.useRef(); - return t.current === void 0 && (t.current = { - value: typeof e == "function" ? e() : e - }), t.current.value; -} -function v6e(e) { - var t = W.useState(e), r = t[0], n = t[1], i = m0(function() { - return function() { - n(!0); - }; - }), o = m0(function() { - return function() { - n(!1); - }; - }), a = m0(function() { - return function() { - n(function(s) { - return !s; - }); - }; - }); - return [r, { setTrue: i, setFalse: o, toggle: a }]; -} -function J$(e) { - var t = W.useRef(function() { - throw new Error("Cannot call an event handler while rendering"); - }); - return WA(function() { - t.current = e; - }, [e]), m0(function() { - return function() { - for (var r = [], n = 0; n < arguments.length; n++) - r[n] = arguments[n]; - var i = t.current; - return i.apply(void 0, r); - }; - }); -} -function D4(e, t) { - var r = W.useRef(t); - return r.current || (r.current = Qx(e)), r.current; -} -function ty() { - for (var e = [], t = 0; t < arguments.length; t++) - e[t] = arguments[t]; - var r = W.useCallback(function(n) { - r.current = n; - for (var i = 0, o = e; i < o.length; i++) { - var a = o[i]; - typeof a == "function" ? a(n) : a && (a.current = n); - } - }, _0([], e, !0)); - return r; -} -function BN(e, t, r, n) { - var i = W.useRef(r); - i.current = r, W.useEffect(function() { - var o = e && "current" in e ? e.current : e; - if (!(!o || !o.addEventListener)) { - var a = $m(o, t, function(s) { - return i.current(s); - }, n); - return a; - } - }, [e, t, n]); -} -function M4(e) { - var t = W.useRef(); - return W.useEffect(function() { - t.current = e; - }), t.current; -} -var g6e = function() { - var e = m0({}); - return W.useEffect( - function() { - return function() { - for (var t = 0, r = Object.keys(e); t < r.length; t++) { - var n = r[t]; - clearTimeout(n); - } - }; - }, - // useConst ensures this will never change, but react-hooks/exhaustive-deps doesn't know that - [e] - ), m0({ - setTimeout: function(t, r) { - var n = setTimeout(t, r); - return e[n] = 1, n; - }, - clearTimeout: function(t) { - delete e[t], clearTimeout(t); - } - }); -}, O_e = W.createContext({ - // eslint-disable-next-line no-restricted-globals - window: typeof window == "object" ? window : void 0 -}), _D = function() { - return W.useContext(O_e).window; -}, m6e = function() { - var e; - return (e = W.useContext(O_e).window) === null || e === void 0 ? void 0 : e.document; -}; -function R_e(e, t) { - var r = W.useRef(), n = W.useRef(null), i = _D(); - if (!e || e !== r.current || typeof e == "string") { - var o = t == null ? void 0 : t.current; - if (e) - if (typeof e == "string") { - var a = gp(o); - n.current = a ? a.querySelector(e) : null; - } else - "stopPropagation" in e || "getBoundingClientRect" in e ? n.current = e : "current" in e ? n.current = e.current : n.current = e; - r.current = e; - } - return [n, i]; -} -var N_e = function(e) { - var t = W.useRef(e); - t.current = e, W.useEffect(function() { - return function() { - var r; - (r = t.current) === null || r === void 0 || r.call(t); - }; - }, []); -}, y6e = {}, b6e = 0; -function yQ(e) { - if (y6e.NODE_ENV !== "production") { - var t = e.name, r = e.props, n = e.other, i = n === void 0 ? [] : n, o = e.conditionallyRequired, a = e.deprecations, s = e.mutuallyExclusive, l = e.controlledUsage, u = W.useRef(!1), f = m0(function() { - return "useWarnings_".concat(b6e++); - }), h = M4(r); - if (!u.current) { - u.current = !0; - for (var p = 0, g = i; p < g.length; p++) { - var m = g[p]; - Ab(m); - } - if (o) - for (var _ = 0, S = o; _ < S.length; _++) { - var A = S[_]; - p4e(t, r, A.requiredProps, A.conditionalPropName, A.condition); - } - a && hQ(t, r, a), s && g4e(t, r, s); - } - l && OBe(Ht(Ht({}, l), { componentId: f, props: r, componentName: t, oldProps: h })); - } -} -function _6e(e, t) { - var r = qk(), n = W.useState(!1), i = n[0], o = n[1]; - return W.useEffect(function() { - return r.requestAnimationFrame(function() { - var a; - if (!(e.style && e.style.overflowY)) { - var s = !1; - if (t && t.current && (!((a = t.current) === null || a === void 0) && a.firstElementChild)) { - var l = t.current.clientHeight, u = t.current.firstElementChild.clientHeight; - l > 0 && u > l && (s = u - l > 1); - } - i !== s && o(s); - } - }), function() { - return r.dispose(); - }; - }), i; -} -function E6e(e) { - var t = e.originalElement, r = e.containsFocus; - t && r && t !== gc() && setTimeout(function() { - var n; - (n = t.focus) === null || n === void 0 || n.call(t); - }, 0); -} -function S6e(e, t) { - var r = e.onRestoreFocus, n = r === void 0 ? E6e : r, i = W.useRef(), o = W.useRef(!1); - W.useEffect(function() { - return i.current = gp().activeElement, P4e(t.current) && (o.current = !0), function() { - var a; - n == null || n({ - originalElement: i.current, - containsFocus: o.current, - documentContainsFocus: ((a = gp()) === null || a === void 0 ? void 0 : a.hasFocus()) || !1 - }), i.current = void 0; - }; - }, []), BN(t, "focus", W.useCallback(function() { - o.current = !0; - }, []), !0), BN(t, "blur", W.useCallback(function(a) { - t.current && a.relatedTarget && !t.current.contains(a.relatedTarget) && (o.current = !1); - }, []), !0); -} -function x6e(e, t) { - var r = String(e["aria-modal"]).toLowerCase() === "true" && e.enableAriaHiddenSiblings; - W.useEffect(function() { - if (r && t.current) { - var n = g_e(t.current); - return n; - } - }, [t, r]); -} -var bQ = W.forwardRef(function(e, t) { - var r = yD({ shouldRestoreFocus: !0, enableAriaHiddenSiblings: !0 }, e), n = W.useRef(), i = ty(n, t); - x6e(r, n), S6e(r, n); - var o = r.role, a = r.className, s = r.ariaLabel, l = r.ariaLabelledBy, u = r.ariaDescribedBy, f = r.style, h = r.children, p = r.onDismiss, g = _6e(r, n), m = W.useCallback(function(S) { - switch (S.which) { - case Ui.escape: - p && (p(S), S.preventDefault(), S.stopPropagation()); - break; - } - }, [p]), _ = _D(); - return BN(_, "keydown", m), W.createElement("div", Ht({ ref: i }, Ah(r, zk), { className: a, role: o, "aria-label": s, "aria-labelledby": l, "aria-describedby": u, onKeyDown: m, style: Ht({ overflowY: g ? "scroll" : void 0, outline: "none" }, f) }), h); -}); -bQ.displayName = "Popup"; -var wT, w6e = "CalloutContentBase", T6e = (wT = {}, wT[hi.top] = DR.slideUpIn10, wT[hi.bottom] = DR.slideDownIn10, wT[hi.left] = DR.slideLeftIn10, wT[hi.right] = DR.slideRightIn10, wT), $oe = { top: 0, left: 0 }, A6e = { - opacity: 0, - filter: "opacity(0)", - pointerEvents: "none" -}, k6e = ["role", "aria-roledescription"], I_e = { - preventDismissOnLostFocus: !1, - preventDismissOnScroll: !1, - preventDismissOnResize: !1, - isBeakVisible: !0, - beakWidth: 16, - gapSpace: 0, - minPagePadding: 8, - directionalHint: Wc.bottomAutoEdge -}, C6e = dy({ - disableCaching: !0 - // disabling caching because stylesProp.position mutates often -}); -function O6e(e, t, r) { - var n = e.bounds, i = e.minPagePadding, o = i === void 0 ? I_e.minPagePadding : i, a = e.target, s = W.useState(!1), l = s[0], u = s[1], f = W.useRef(), h = W.useCallback(function() { - if (!f.current || l) { - var g = typeof n == "function" ? r ? n(a, r) : void 0 : n; - !g && r && (g = d6e(t.current, r), g = { - top: g.top + o, - left: g.left + o, - right: g.right - o, - bottom: g.bottom - o, - width: g.width - o * 2, - height: g.height - o * 2 - }), f.current = g, l && u(!1); - } - return f.current; - }, [n, o, a, t, r, l]), p = qk(); - return BN(r, "resize", p.debounce(function() { - u(!0); - }, 500, { leading: !0 })), h; -} -function R6e(e, t, r, n) { - var i, o = e.calloutMaxHeight, a = e.finalHeight, s = e.directionalHint, l = e.directionalHintFixed, u = e.hidden, f = e.gapSpace, h = e.beakWidth, p = e.isBeakVisible, g = W.useState(), m = g[0], _ = g[1], S = (i = n == null ? void 0 : n.elementPosition) !== null && i !== void 0 ? i : {}, A = S.top, C = S.bottom, N = r != null && r.current ? p6e(r.current) : void 0; - return W.useEffect(function() { - var x, R = (x = t()) !== null && x !== void 0 ? x : {}, D = R.top, M = R.bottom, j; - (n == null ? void 0 : n.targetEdge) === hi.top && (N != null && N.top) && (M = N.top - h6e(p, h, f)), typeof A == "number" && M ? j = M - A : typeof C == "number" && typeof D == "number" && M && (j = M - D - C), !o && !u || o && j && o > j ? _(j) : _(o || void 0); - }, [ - C, - o, - a, - s, - l, - t, - u, - n, - A, - f, - h, - p, - N - ]), m; -} -function N6e(e, t, r, n, i, o) { - var a = W.useState(), s = a[0], l = a[1], u = W.useRef(0), f = W.useRef(), h = qk(), p = e.hidden, g = e.target, m = e.finalHeight, _ = e.calloutMaxHeight, S = e.onPositioned, A = e.directionalHint, C = e.hideOverflow, N = e.preferScrollResizePositioning, x = _D(), R = W.useRef(), D; - R.current !== o.current && (R.current = o.current, D = o.current ? x == null ? void 0 : x.getComputedStyle(o.current) : void 0); - var M = D == null ? void 0 : D.overflowY; - return W.useEffect(function() { - if (p) - l(void 0), u.current = 0; - else { - var j = h.requestAnimationFrame(function() { - var F, z; - if (t.current && r) { - var G = Ht(Ht({}, e), { target: n.current, bounds: i() }), te = r.cloneNode(!0); - te.style.maxHeight = _ ? "".concat(_) : "", te.style.visibility = "hidden", (F = r.parentElement) === null || F === void 0 || F.appendChild(te); - var Q = f.current === g ? s : void 0, ae = C || M === "clip" || M === "hidden", J = N && !ae, Y = m ? u6e(G, t.current, te, Q) : l6e(G, t.current, te, Q, J); - (z = r.parentElement) === null || z === void 0 || z.removeChild(te), !s && Y || s && Y && !L6e(s, Y) && u.current < 5 ? (u.current++, l(Y)) : u.current > 0 && (u.current = 0, S == null || S(s)); - } - }, r); - return f.current = g, function() { - h.cancelAnimationFrame(j), f.current = void 0; - }; - } - }, [ - p, - A, - h, - r, - _, - t, - n, - m, - i, - S, - s, - e, - g, - C, - N, - M - ]), s; -} -function I6e(e, t, r) { - var n = e.hidden, i = e.setInitialFocus, o = qk(), a = !!t; - W.useEffect(function() { - if (!n && i && a && r) { - var s = o.requestAnimationFrame(function() { - return $4e(r); - }, r); - return function() { - return o.cancelAnimationFrame(s); - }; - } - }, [n, a, o, r, i]); -} -function D6e(e, t, r, n, i) { - var o = e.hidden, a = e.onDismiss, s = e.preventDismissOnScroll, l = e.preventDismissOnResize, u = e.preventDismissOnLostFocus, f = e.dismissOnTargetClick, h = e.shouldDismissOnWindowFocus, p = e.preventDismissOnEvent, g = W.useRef(!1), m = qk(), _ = m0([ - function() { - g.current = !0; - }, - function() { - g.current = !1; - } - ]), S = !!t; - return W.useEffect(function() { - var A = function(M) { - S && !s && x(M); - }, C = function(M) { - !l && !(p && p(M)) && (a == null || a(M)); - }, N = function(M) { - u || x(M); - }, x = function(M) { - var j = M.composedPath ? M.composedPath() : [], F = j.length > 0 ? j[0] : M.target, z = r.current && !Jp(r.current, F); - if (z && g.current) { - g.current = !1; - return; - } - if (!n.current && z || M.target !== i && z && (!n.current || "stopPropagation" in n.current || f || F !== n.current && !Jp(n.current, F))) { - if (p && p(M)) - return; - a == null || a(M); - } - }, R = function(M) { - h && (p && !p(M) || !p && !u) && !(i != null && i.document.hasFocus()) && M.relatedTarget === null && (a == null || a(M)); - }, D = new Promise(function(M) { - m.setTimeout(function() { - if (!o && i) { - var j = [ - $m(i, "scroll", A, !0), - $m(i, "resize", C, !0), - $m(i.document.documentElement, "focus", N, !0), - $m(i.document.documentElement, "click", N, !0), - $m(i, "blur", R, !0) - ]; - M(function() { - j.forEach(function(F) { - return F(); - }); - }); - } - }, 0); - }); - return function() { - D.then(function(M) { - return M(); - }); - }; - }, [ - o, - m, - r, - n, - i, - a, - h, - f, - u, - l, - s, - S, - p - ]), _; -} -var D_e = W.memo(W.forwardRef(function(e, t) { - var r = yD(I_e, e), n = r.styles, i = r.style, o = r.ariaLabel, a = r.ariaDescribedBy, s = r.ariaLabelledBy, l = r.className, u = r.isBeakVisible, f = r.children, h = r.beakWidth, p = r.calloutWidth, g = r.calloutMaxWidth, m = r.calloutMinWidth, _ = r.doNotLayer, S = r.finalHeight, A = r.hideOverflow, C = A === void 0 ? !!S : A, N = r.backgroundColor, x = r.calloutMaxHeight, R = r.onScroll, D = r.shouldRestoreFocus, M = D === void 0 ? !0 : D, j = r.target, F = r.hidden, z = r.onLayerMounted, G = r.popupProps, te = W.useRef(null), Q = W.useRef(null), ae = ty(Q, G == null ? void 0 : G.ref), J = W.useState(null), Y = J[0], re = J[1], fe = W.useCallback(function(Pt) { - re(Pt); - }, []), ve = ty(te, t), ie = R_e(r.target, { - current: Y - }), he = ie[0], ye = ie[1], ke = O6e(r, he, ye), Ne = N6e(r, te, Y, he, ke, ae), ze = R6e(r, ke, he, Ne), qe = D6e(r, Ne, te, he, ye), We = qe[0], Qe = qe[1], je = (Ne == null ? void 0 : Ne.elementPosition.top) && (Ne == null ? void 0 : Ne.elementPosition.bottom), Ve = Ht(Ht({}, Ne == null ? void 0 : Ne.elementPosition), { maxHeight: ze }); - if (je && (Ve.bottom = void 0), I6e(r, Ne, Y), W.useEffect(function() { - F || z == null || z(); - }, [F]), !ye) - return null; - var Ye = C, Pe = u && !!j, tt = C6e(n, { - theme: r.theme, - className: l, - overflowYHidden: Ye, - calloutWidth: p, - positions: Ne, - beakWidth: h, - backgroundColor: N, - calloutMaxWidth: g, - calloutMinWidth: m, - doNotLayer: _ - }), it = Ht(Ht({ maxHeight: x || "100%" }, i), Ye && { overflowY: "hidden" }), Tt = r.hidden ? { visibility: "hidden" } : void 0; - return W.createElement( - "div", - { ref: ve, className: tt.container, style: Tt }, - W.createElement( - "div", - Ht({}, Ah(r, zk, k6e), { - className: $E(tt.root, Ne && Ne.targetEdge && T6e[Ne.targetEdge]), - style: Ne ? Ht({}, Ve) : A6e, - // Safari and Firefox on Mac OS requires this to back-stop click events so focus remains in the Callout. - // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - tabIndex: -1, - ref: fe - }), - Pe && W.createElement("div", { className: tt.beak, style: M6e(Ne) }), - Pe && W.createElement("div", { className: tt.beakCurtain }), - W.createElement( - bQ, - Ht({ - // don't use getNativeElementProps for role and roledescription because it will also - // pass through data-* props (resulting in them being used in two places) - role: r.role, - "aria-roledescription": r["aria-roledescription"], - ariaDescribedBy: a, - ariaLabel: o, - ariaLabelledBy: s, - className: tt.calloutMain, - onDismiss: r.onDismiss, - onMouseDown: We, - onMouseUp: Qe, - onRestoreFocus: r.onRestoreFocus, - onScroll: R, - shouldRestoreFocus: M, - style: it - }, G, { ref: ae }), - f - ) - ) - ); -}), function(e, t) { - return !t.shouldUpdateWhenHidden && e.hidden && t.hidden ? !0 : dQ(e, t); -}); -function M6e(e) { - var t, r, n = Ht(Ht({}, (t = e == null ? void 0 : e.beakPosition) === null || t === void 0 ? void 0 : t.elementPosition), { display: !((r = e == null ? void 0 : e.beakPosition) === null || r === void 0) && r.hideBeak ? "none" : void 0 }); - return !n.top && !n.bottom && !n.left && !n.right && (n.left = $oe.left, n.top = $oe.top), n; -} -function L6e(e, t) { - return Poe(e.elementPosition, t.elementPosition) && Poe(e.beakPosition.elementPosition, t.beakPosition.elementPosition); -} -function Poe(e, t) { - for (var r in t) - if (t.hasOwnProperty(r)) { - var n = e[r], i = t[r]; - if (n !== void 0 && i !== void 0) { - if (n.toFixed(2) !== i.toFixed(2)) - return !1; - } else - return !1; - } - return !0; -} -D_e.displayName = w6e; -function F6e(e) { - return { - height: e, - width: e - }; -} -var B6e = { - container: "ms-Callout-container", - root: "ms-Callout", - beak: "ms-Callout-beak", - beakCurtain: "ms-Callout-beakCurtain", - calloutMain: "ms-Callout-main" -}, $6e = function(e) { - var t, r = e.theme, n = e.className, i = e.overflowYHidden, o = e.calloutWidth, a = e.beakWidth, s = e.backgroundColor, l = e.calloutMaxWidth, u = e.calloutMinWidth, f = e.doNotLayer, h = py(B6e, r), p = r.semanticColors, g = r.effects; - return { - container: [ - h.container, - { - position: "relative" - } - ], - root: [ - h.root, - r.fonts.medium, - { - position: "absolute", - display: "flex", - zIndex: f ? VA.Layer : void 0, - boxSizing: "border-box", - borderRadius: g.roundedCorner2, - boxShadow: g.elevation16, - selectors: (t = {}, t[_A] = { - borderWidth: 1, - borderStyle: "solid", - borderColor: "WindowText" - }, t) - }, - C3e(), - n, - !!o && { width: o }, - !!l && { maxWidth: l }, - !!u && { minWidth: u } - ], - beak: [ - h.beak, - { - position: "absolute", - backgroundColor: p.menuBackground, - boxShadow: "inherit", - border: "inherit", - boxSizing: "border-box", - transform: "rotate(45deg)" - }, - F6e(a), - s && { - backgroundColor: s - } - ], - beakCurtain: [ - h.beakCurtain, - { - position: "absolute", - top: 0, - right: 0, - bottom: 0, - left: 0, - backgroundColor: p.menuBackground, - borderRadius: g.roundedCorner2 - } - ], - calloutMain: [ - h.calloutMain, - { - backgroundColor: p.menuBackground, - overflowX: "hidden", - overflowY: "auto", - position: "relative", - width: "100%", - borderRadius: g.roundedCorner2 - }, - i && { - overflowY: "hidden" - }, - s && { - backgroundColor: s - } - ] - }; -}, P6e = hy(D_e, $6e, void 0, { - scope: "CalloutContent" -}); -const M_e = W.createContext(void 0), j6e = () => () => { -}; -M_e.Provider; -function z6e() { - var e; - return (e = W.useContext(M_e)) !== null && e !== void 0 ? e : j6e; -} -var _G = { exports: {} }, Up = {}, d2 = { exports: {} }, eP = {}, joe; -function H6e() { - return joe || (joe = 1, function(e) { - var t = {}; - /** - * @license React - * scheduler.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - t.NODE_ENV !== "production" && function() { - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); - var r = !1, n = !1, i = 5; - function o(pt, kt) { - var Jt = pt.length; - pt.push(kt), l(pt, kt, Jt); - } - function a(pt) { - return pt.length === 0 ? null : pt[0]; - } - function s(pt) { - if (pt.length === 0) - return null; - var kt = pt[0], Jt = pt.pop(); - return Jt !== kt && (pt[0] = Jt, u(pt, Jt, 0)), kt; - } - function l(pt, kt, Jt) { - for (var wr = Jt; wr > 0; ) { - var Lr = wr - 1 >>> 1, wn = pt[Lr]; - if (f(wn, kt) > 0) - pt[Lr] = kt, pt[wr] = wn, wr = Lr; - else - return; - } - } - function u(pt, kt, Jt) { - for (var wr = Jt, Lr = pt.length, wn = Lr >>> 1; wr < wn; ) { - var Bn = (wr + 1) * 2 - 1, un = pt[Bn], Cn = Bn + 1, vi = pt[Cn]; - if (f(un, kt) < 0) - Cn < Lr && f(vi, un) < 0 ? (pt[wr] = vi, pt[Cn] = kt, wr = Cn) : (pt[wr] = un, pt[Bn] = kt, wr = Bn); - else if (Cn < Lr && f(vi, kt) < 0) - pt[wr] = vi, pt[Cn] = kt, wr = Cn; - else - return; - } - } - function f(pt, kt) { - var Jt = pt.sortIndex - kt.sortIndex; - return Jt !== 0 ? Jt : pt.id - kt.id; - } - var h = 1, p = 2, g = 3, m = 4, _ = 5; - function S(pt, kt) { - } - var A = typeof performance == "object" && typeof performance.now == "function"; - if (A) { - var C = performance; - e.unstable_now = function() { - return C.now(); - }; - } else { - var N = Date, x = N.now(); - e.unstable_now = function() { - return N.now() - x; - }; - } - var R = 1073741823, D = -1, M = 250, j = 5e3, F = 1e4, z = R, G = [], te = [], Q = 1, ae = null, J = g, Y = !1, re = !1, fe = !1, ve = typeof setTimeout == "function" ? setTimeout : null, ie = typeof clearTimeout == "function" ? clearTimeout : null, he = typeof setImmediate < "u" ? setImmediate : null; - typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function ye(pt) { - for (var kt = a(te); kt !== null; ) { - if (kt.callback === null) - s(te); - else if (kt.startTime <= pt) - s(te), kt.sortIndex = kt.expirationTime, o(G, kt); - else - return; - kt = a(te); - } - } - function ke(pt) { - if (fe = !1, ye(pt), !re) - if (a(G) !== null) - re = !0, at(Ne); - else { - var kt = a(te); - kt !== null && yt(ke, kt.startTime - pt); - } - } - function Ne(pt, kt) { - re = !1, fe && (fe = !1, Vt()), Y = !0; - var Jt = J; - try { - var wr; - if (!n) - return ze(pt, kt); - } finally { - ae = null, J = Jt, Y = !1; - } - } - function ze(pt, kt) { - var Jt = kt; - for (ye(Jt), ae = a(G); ae !== null && !r && !(ae.expirationTime > Jt && (!pt || zr())); ) { - var wr = ae.callback; - if (typeof wr == "function") { - ae.callback = null, J = ae.priorityLevel; - var Lr = ae.expirationTime <= Jt, wn = wr(Lr); - Jt = e.unstable_now(), typeof wn == "function" ? ae.callback = wn : ae === a(G) && s(G), ye(Jt); - } else - s(G); - ae = a(G); - } - if (ae !== null) - return !0; - var Bn = a(te); - return Bn !== null && yt(ke, Bn.startTime - Jt), !1; - } - function qe(pt, kt) { - switch (pt) { - case h: - case p: - case g: - case m: - case _: - break; - default: - pt = g; - } - var Jt = J; - J = pt; - try { - return kt(); - } finally { - J = Jt; - } - } - function We(pt) { - var kt; - switch (J) { - case h: - case p: - case g: - kt = g; - break; - default: - kt = J; - break; - } - var Jt = J; - J = kt; - try { - return pt(); - } finally { - J = Jt; - } - } - function Qe(pt) { - var kt = J; - return function() { - var Jt = J; - J = kt; - try { - return pt.apply(this, arguments); - } finally { - J = Jt; - } - }; - } - function je(pt, kt, Jt) { - var wr = e.unstable_now(), Lr; - if (typeof Jt == "object" && Jt !== null) { - var wn = Jt.delay; - typeof wn == "number" && wn > 0 ? Lr = wr + wn : Lr = wr; - } else - Lr = wr; - var Bn; - switch (pt) { - case h: - Bn = D; - break; - case p: - Bn = M; - break; - case _: - Bn = z; - break; - case m: - Bn = F; - break; - case g: - default: - Bn = j; - break; - } - var un = Lr + Bn, Cn = { - id: Q++, - callback: kt, - priorityLevel: pt, - startTime: Lr, - expirationTime: un, - sortIndex: -1 - }; - return Lr > wr ? (Cn.sortIndex = Lr, o(te, Cn), a(G) === null && Cn === a(te) && (fe ? Vt() : fe = !0, yt(ke, Lr - wr))) : (Cn.sortIndex = un, o(G, Cn), !re && !Y && (re = !0, at(Ne))), Cn; - } - function Ve() { - } - function Ye() { - !re && !Y && (re = !0, at(Ne)); - } - function Pe() { - return a(G); - } - function tt(pt) { - pt.callback = null; - } - function it() { - return J; - } - var Tt = !1, Pt = null, Bt = -1, Mr = i, ln = -1; - function zr() { - var pt = e.unstable_now() - ln; - return !(pt < Mr); - } - function Or() { - } - function ar(pt) { - if (pt < 0 || pt > 125) { - console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"); - return; - } - pt > 0 ? Mr = Math.floor(1e3 / pt) : Mr = i; - } - var xr = function() { - if (Pt !== null) { - var pt = e.unstable_now(); - ln = pt; - var kt = !0, Jt = !0; - try { - Jt = Pt(kt, pt); - } finally { - Jt ? Nn() : (Tt = !1, Pt = null); - } - } else - Tt = !1; - }, Nn; - if (typeof he == "function") - Nn = function() { - he(xr); - }; - else if (typeof MessageChannel < "u") { - var bt = new MessageChannel(), lt = bt.port2; - bt.port1.onmessage = xr, Nn = function() { - lt.postMessage(null); - }; - } else - Nn = function() { - ve(xr, 0); - }; - function at(pt) { - Pt = pt, Tt || (Tt = !0, Nn()); - } - function yt(pt, kt) { - Bt = ve(function() { - pt(e.unstable_now()); - }, kt); - } - function Vt() { - ie(Bt), Bt = -1; - } - var Xt = Or, $t = null; - e.unstable_IdlePriority = _, e.unstable_ImmediatePriority = h, e.unstable_LowPriority = m, e.unstable_NormalPriority = g, e.unstable_Profiling = $t, e.unstable_UserBlockingPriority = p, e.unstable_cancelCallback = tt, e.unstable_continueExecution = Ye, e.unstable_forceFrameRate = ar, e.unstable_getCurrentPriorityLevel = it, e.unstable_getFirstCallbackNode = Pe, e.unstable_next = We, e.unstable_pauseExecution = Ve, e.unstable_requestPaint = Xt, e.unstable_runWithPriority = qe, e.unstable_scheduleCallback = je, e.unstable_shouldYield = zr, e.unstable_wrapCallback = Qe, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); - }(); - }(eP)), eP; -} -var tP = {}; -/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var zoe; -function q6e() { - return zoe || (zoe = 1, function(e) { - function t(fe, ve) { - var ie = fe.length; - fe.push(ve); - e: - for (; 0 < ie; ) { - var he = ie - 1 >>> 1, ye = fe[he]; - if (0 < i(ye, ve)) - fe[he] = ve, fe[ie] = ye, ie = he; - else - break e; - } - } - function r(fe) { - return fe.length === 0 ? null : fe[0]; - } - function n(fe) { - if (fe.length === 0) - return null; - var ve = fe[0], ie = fe.pop(); - if (ie !== ve) { - fe[0] = ie; - e: - for (var he = 0, ye = fe.length, ke = ye >>> 1; he < ke; ) { - var Ne = 2 * (he + 1) - 1, ze = fe[Ne], qe = Ne + 1, We = fe[qe]; - if (0 > i(ze, ie)) - qe < ye && 0 > i(We, ze) ? (fe[he] = We, fe[qe] = ie, he = qe) : (fe[he] = ze, fe[Ne] = ie, he = Ne); - else if (qe < ye && 0 > i(We, ie)) - fe[he] = We, fe[qe] = ie, he = qe; - else - break e; - } - } - return ve; - } - function i(fe, ve) { - var ie = fe.sortIndex - ve.sortIndex; - return ie !== 0 ? ie : fe.id - ve.id; - } - if (typeof performance == "object" && typeof performance.now == "function") { - var o = performance; - e.unstable_now = function() { - return o.now(); - }; - } else { - var a = Date, s = a.now(); - e.unstable_now = function() { - return a.now() - s; - }; - } - var l = [], u = [], f = 1, h = null, p = 3, g = !1, m = !1, _ = !1, S = typeof setTimeout == "function" ? setTimeout : null, A = typeof clearTimeout == "function" ? clearTimeout : null, C = typeof setImmediate < "u" ? setImmediate : null; - typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); - function N(fe) { - for (var ve = r(u); ve !== null; ) { - if (ve.callback === null) - n(u); - else if (ve.startTime <= fe) - n(u), ve.sortIndex = ve.expirationTime, t(l, ve); - else - break; - ve = r(u); - } - } - function x(fe) { - if (_ = !1, N(fe), !m) - if (r(l) !== null) - m = !0, Y(R); - else { - var ve = r(u); - ve !== null && re(x, ve.startTime - fe); - } - } - function R(fe, ve) { - m = !1, _ && (_ = !1, A(j), j = -1), g = !0; - var ie = p; - try { - for (N(ve), h = r(l); h !== null && (!(h.expirationTime > ve) || fe && !G()); ) { - var he = h.callback; - if (typeof he == "function") { - h.callback = null, p = h.priorityLevel; - var ye = he(h.expirationTime <= ve); - ve = e.unstable_now(), typeof ye == "function" ? h.callback = ye : h === r(l) && n(l), N(ve); - } else - n(l); - h = r(l); - } - if (h !== null) - var ke = !0; - else { - var Ne = r(u); - Ne !== null && re(x, Ne.startTime - ve), ke = !1; - } - return ke; - } finally { - h = null, p = ie, g = !1; - } - } - var D = !1, M = null, j = -1, F = 5, z = -1; - function G() { - return !(e.unstable_now() - z < F); - } - function te() { - if (M !== null) { - var fe = e.unstable_now(); - z = fe; - var ve = !0; - try { - ve = M(!0, fe); - } finally { - ve ? Q() : (D = !1, M = null); - } - } else - D = !1; - } - var Q; - if (typeof C == "function") - Q = function() { - C(te); - }; - else if (typeof MessageChannel < "u") { - var ae = new MessageChannel(), J = ae.port2; - ae.port1.onmessage = te, Q = function() { - J.postMessage(null); - }; - } else - Q = function() { - S(te, 0); - }; - function Y(fe) { - M = fe, D || (D = !0, Q()); - } - function re(fe, ve) { - j = S(function() { - fe(e.unstable_now()); - }, ve); - } - e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(fe) { - fe.callback = null; - }, e.unstable_continueExecution = function() { - m || g || (m = !0, Y(R)); - }, e.unstable_forceFrameRate = function(fe) { - 0 > fe || 125 < fe ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : F = 0 < fe ? Math.floor(1e3 / fe) : 5; - }, e.unstable_getCurrentPriorityLevel = function() { - return p; - }, e.unstable_getFirstCallbackNode = function() { - return r(l); - }, e.unstable_next = function(fe) { - switch (p) { - case 1: - case 2: - case 3: - var ve = 3; - break; - default: - ve = p; - } - var ie = p; - p = ve; - try { - return fe(); - } finally { - p = ie; - } - }, e.unstable_pauseExecution = function() { - }, e.unstable_requestPaint = function() { - }, e.unstable_runWithPriority = function(fe, ve) { - switch (fe) { - case 1: - case 2: - case 3: - case 4: - case 5: - break; - default: - fe = 3; - } - var ie = p; - p = fe; - try { - return ve(); - } finally { - p = ie; - } - }, e.unstable_scheduleCallback = function(fe, ve, ie) { - var he = e.unstable_now(); - switch (typeof ie == "object" && ie !== null ? (ie = ie.delay, ie = typeof ie == "number" && 0 < ie ? he + ie : he) : ie = he, fe) { - case 1: - var ye = -1; - break; - case 2: - ye = 250; - break; - case 5: - ye = 1073741823; - break; - case 4: - ye = 1e4; - break; - default: - ye = 5e3; - } - return ye = ie + ye, fe = { id: f++, callback: ve, priorityLevel: fe, startTime: ie, expirationTime: ye, sortIndex: -1 }, ie > he ? (fe.sortIndex = ie, t(u, fe), r(l) === null && fe === r(u) && (_ ? (A(j), j = -1) : _ = !0, re(x, ie - he))) : (fe.sortIndex = ye, t(l, fe), m || g || (m = !0, Y(R))), fe; - }, e.unstable_shouldYield = G, e.unstable_wrapCallback = function(fe) { - var ve = p; - return function() { - var ie = p; - p = ve; - try { - return fe.apply(this, arguments); - } finally { - p = ie; - } - }; - }; - }(tP)), tP; -} -var Hoe; -function _Q() { - if (Hoe) - return d2.exports; - Hoe = 1; - var e = {}; - return e.NODE_ENV === "production" ? d2.exports = q6e() : d2.exports = H6e(), d2.exports; -} -var qoe; -function W6e() { - if (qoe) - return Up; - qoe = 1; - var e = {}; - /** - * @license React - * react-dom.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - return e.NODE_ENV !== "production" && function() { - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); - var t = W, r = _Q(), n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, i = !1; - function o(c) { - i = c; - } - function a(c) { - if (!i) { - for (var d = arguments.length, b = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++) - b[w - 1] = arguments[w]; - l("warn", c, b); - } - } - function s(c) { - if (!i) { - for (var d = arguments.length, b = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++) - b[w - 1] = arguments[w]; - l("error", c, b); - } - } - function l(c, d, b) { - { - var w = n.ReactDebugCurrentFrame, L = w.getStackAddendum(); - L !== "" && (d += "%s", b = b.concat([L])); - var U = b.map(function(ne) { - return String(ne); - }); - U.unshift("Warning: " + d), Function.prototype.apply.call(console[c], console, U); - } - } - var u = 0, f = 1, h = 2, p = 3, g = 4, m = 5, _ = 6, S = 7, A = 8, C = 9, N = 10, x = 11, R = 12, D = 13, M = 14, j = 15, F = 16, z = 17, G = 18, te = 19, Q = 21, ae = 22, J = 23, Y = 24, re = 25, fe = !0, ve = !1, ie = !1, he = !1, ye = !1, ke = !0, Ne = !1, ze = !1, qe = !0, We = !0, Qe = !0, je = /* @__PURE__ */ new Set(), Ve = {}, Ye = {}; - function Pe(c, d) { - tt(c, d), tt(c + "Capture", d); - } - function tt(c, d) { - Ve[c] && s("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", c), Ve[c] = d; - { - var b = c.toLowerCase(); - Ye[b] = c, c === "onDoubleClick" && (Ye.ondblclick = c); - } - for (var w = 0; w < d.length; w++) - je.add(d[w]); - } - var it = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Tt = Object.prototype.hasOwnProperty; - function Pt(c) { - { - var d = typeof Symbol == "function" && Symbol.toStringTag, b = d && c[Symbol.toStringTag] || c.constructor.name || "Object"; - return b; - } - } - function Bt(c) { - try { - return Mr(c), !1; - } catch { - return !0; - } - } - function Mr(c) { - return "" + c; - } - function ln(c, d) { - if (Bt(c)) - return s("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", d, Pt(c)), Mr(c); - } - function zr(c) { - if (Bt(c)) - return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pt(c)), Mr(c); - } - function Or(c, d) { - if (Bt(c)) - return s("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", d, Pt(c)), Mr(c); - } - function ar(c, d) { - if (Bt(c)) - return s("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", d, Pt(c)), Mr(c); - } - function xr(c) { - if (Bt(c)) - return s("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", Pt(c)), Mr(c); - } - function Nn(c) { - if (Bt(c)) - return s("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.", Pt(c)), Mr(c); - } - var bt = 0, lt = 1, at = 2, yt = 3, Vt = 4, Xt = 5, $t = 6, pt = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", kt = pt + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", Jt = new RegExp("^[" + pt + "][" + kt + "]*$"), wr = {}, Lr = {}; - function wn(c) { - return Tt.call(Lr, c) ? !0 : Tt.call(wr, c) ? !1 : Jt.test(c) ? (Lr[c] = !0, !0) : (wr[c] = !0, s("Invalid attribute name: `%s`", c), !1); - } - function Bn(c, d, b) { - return d !== null ? d.type === bt : b ? !1 : c.length > 2 && (c[0] === "o" || c[0] === "O") && (c[1] === "n" || c[1] === "N"); - } - function un(c, d, b, w) { - if (b !== null && b.type === bt) - return !1; - switch (typeof d) { - case "function": - case "symbol": - return !0; - case "boolean": { - if (w) - return !1; - if (b !== null) - return !b.acceptsBooleans; - var L = c.toLowerCase().slice(0, 5); - return L !== "data-" && L !== "aria-"; - } - default: - return !1; - } - } - function Cn(c, d, b, w) { - if (d === null || typeof d > "u" || un(c, d, b, w)) - return !0; - if (w) - return !1; - if (b !== null) - switch (b.type) { - case yt: - return !d; - case Vt: - return d === !1; - case Xt: - return isNaN(d); - case $t: - return isNaN(d) || d < 1; - } - return !1; - } - function vi(c) { - return Fr.hasOwnProperty(c) ? Fr[c] : null; - } - function Xr(c, d, b, w, L, U, ne) { - this.acceptsBooleans = d === at || d === yt || d === Vt, this.attributeName = w, this.attributeNamespace = L, this.mustUseProperty = b, this.propertyName = c, this.type = d, this.sanitizeURL = U, this.removeEmptyString = ne; - } - var Fr = {}, xi = [ - "children", - "dangerouslySetInnerHTML", - // TODO: This prevents the assignment of defaultValue to regular - // elements (not just inputs). Now that ReactDOMInput assigns to the - // defaultValue property -- do we need this? - "defaultValue", - "defaultChecked", - "innerHTML", - "suppressContentEditableWarning", - "suppressHydrationWarning", - "style" - ]; - xi.forEach(function(c) { - Fr[c] = new Xr( - c, - bt, - !1, - // mustUseProperty - c, - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(c) { - var d = c[0], b = c[1]; - Fr[d] = new Xr( - d, - lt, - !1, - // mustUseProperty - b, - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(c) { - Fr[c] = new Xr( - c, - at, - !1, - // mustUseProperty - c.toLowerCase(), - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(c) { - Fr[c] = new Xr( - c, - at, - !1, - // mustUseProperty - c, - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), [ - "allowFullScreen", - "async", - // Note: there is a special case that prevents it from being written to the DOM - // on the client side because the browsers are inconsistent. Instead we call focus(). - "autoFocus", - "autoPlay", - "controls", - "default", - "defer", - "disabled", - "disablePictureInPicture", - "disableRemotePlayback", - "formNoValidate", - "hidden", - "loop", - "noModule", - "noValidate", - "open", - "playsInline", - "readOnly", - "required", - "reversed", - "scoped", - "seamless", - // Microdata - "itemScope" - ].forEach(function(c) { - Fr[c] = new Xr( - c, - yt, - !1, - // mustUseProperty - c.toLowerCase(), - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), [ - "checked", - // Note: `option.selected` is not updated if `select.multiple` is - // disabled with `removeAttribute`. We have special logic for handling this. - "multiple", - "muted", - "selected" - // NOTE: if you add a camelCased prop to this list, - // you'll need to set attributeName to name.toLowerCase() - // instead in the assignment below. - ].forEach(function(c) { - Fr[c] = new Xr( - c, - yt, - !0, - // mustUseProperty - c, - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), [ - "capture", - "download" - // NOTE: if you add a camelCased prop to this list, - // you'll need to set attributeName to name.toLowerCase() - // instead in the assignment below. - ].forEach(function(c) { - Fr[c] = new Xr( - c, - Vt, - !1, - // mustUseProperty - c, - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), [ - "cols", - "rows", - "size", - "span" - // NOTE: if you add a camelCased prop to this list, - // you'll need to set attributeName to name.toLowerCase() - // instead in the assignment below. - ].forEach(function(c) { - Fr[c] = new Xr( - c, - $t, - !1, - // mustUseProperty - c, - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), ["rowSpan", "start"].forEach(function(c) { - Fr[c] = new Xr( - c, - Xt, - !1, - // mustUseProperty - c.toLowerCase(), - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }); - var On = /[\-\:]([a-z])/g, Ai = function(c) { - return c[1].toUpperCase(); - }; - [ - "accent-height", - "alignment-baseline", - "arabic-form", - "baseline-shift", - "cap-height", - "clip-path", - "clip-rule", - "color-interpolation", - "color-interpolation-filters", - "color-profile", - "color-rendering", - "dominant-baseline", - "enable-background", - "fill-opacity", - "fill-rule", - "flood-color", - "flood-opacity", - "font-family", - "font-size", - "font-size-adjust", - "font-stretch", - "font-style", - "font-variant", - "font-weight", - "glyph-name", - "glyph-orientation-horizontal", - "glyph-orientation-vertical", - "horiz-adv-x", - "horiz-origin-x", - "image-rendering", - "letter-spacing", - "lighting-color", - "marker-end", - "marker-mid", - "marker-start", - "overline-position", - "overline-thickness", - "paint-order", - "panose-1", - "pointer-events", - "rendering-intent", - "shape-rendering", - "stop-color", - "stop-opacity", - "strikethrough-position", - "strikethrough-thickness", - "stroke-dasharray", - "stroke-dashoffset", - "stroke-linecap", - "stroke-linejoin", - "stroke-miterlimit", - "stroke-opacity", - "stroke-width", - "text-anchor", - "text-decoration", - "text-rendering", - "underline-position", - "underline-thickness", - "unicode-bidi", - "unicode-range", - "units-per-em", - "v-alphabetic", - "v-hanging", - "v-ideographic", - "v-mathematical", - "vector-effect", - "vert-adv-y", - "vert-origin-x", - "vert-origin-y", - "word-spacing", - "writing-mode", - "xmlns:xlink", - "x-height" - // NOTE: if you add a camelCased prop to this list, - // you'll need to set attributeName to name.toLowerCase() - // instead in the assignment below. - ].forEach(function(c) { - var d = c.replace(On, Ai); - Fr[d] = new Xr( - d, - lt, - !1, - // mustUseProperty - c, - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }), [ - "xlink:actuate", - "xlink:arcrole", - "xlink:role", - "xlink:show", - "xlink:title", - "xlink:type" - // NOTE: if you add a camelCased prop to this list, - // you'll need to set attributeName to name.toLowerCase() - // instead in the assignment below. - ].forEach(function(c) { - var d = c.replace(On, Ai); - Fr[d] = new Xr( - d, - lt, - !1, - // mustUseProperty - c, - "http://www.w3.org/1999/xlink", - !1, - // sanitizeURL - !1 - ); - }), [ - "xml:base", - "xml:lang", - "xml:space" - // NOTE: if you add a camelCased prop to this list, - // you'll need to set attributeName to name.toLowerCase() - // instead in the assignment below. - ].forEach(function(c) { - var d = c.replace(On, Ai); - Fr[d] = new Xr( - d, - lt, - !1, - // mustUseProperty - c, - "http://www.w3.org/XML/1998/namespace", - !1, - // sanitizeURL - !1 - ); - }), ["tabIndex", "crossOrigin"].forEach(function(c) { - Fr[c] = new Xr( - c, - lt, - !1, - // mustUseProperty - c.toLowerCase(), - // attributeName - null, - // attributeNamespace - !1, - // sanitizeURL - !1 - ); - }); - var Fn = "xlinkHref"; - Fr[Fn] = new Xr( - "xlinkHref", - lt, - !1, - // mustUseProperty - "xlink:href", - "http://www.w3.org/1999/xlink", - !0, - // sanitizeURL - !1 - ), ["src", "href", "action", "formAction"].forEach(function(c) { - Fr[c] = new Xr( - c, - lt, - !1, - // mustUseProperty - c.toLowerCase(), - // attributeName - null, - // attributeNamespace - !0, - // sanitizeURL - !0 - ); - }); - var vn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i, Wr = !1; - function ur(c) { - !Wr && vn.test(c) && (Wr = !0, s("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(c))); - } - function Ni(c, d, b, w) { - if (w.mustUseProperty) { - var L = w.propertyName; - return c[L]; - } else { - ln(b, d), w.sanitizeURL && ur("" + b); - var U = w.attributeName, ne = null; - if (w.type === Vt) { - if (c.hasAttribute(U)) { - var pe = c.getAttribute(U); - return pe === "" ? !0 : Cn(d, b, w, !1) ? pe : pe === "" + b ? b : pe; - } - } else if (c.hasAttribute(U)) { - if (Cn(d, b, w, !1)) - return c.getAttribute(U); - if (w.type === yt) - return b; - ne = c.getAttribute(U); - } - return Cn(d, b, w, !1) ? ne === null ? b : ne : ne === "" + b ? b : ne; - } - } - function $o(c, d, b, w) { - { - if (!wn(d)) - return; - if (!c.hasAttribute(d)) - return b === void 0 ? void 0 : null; - var L = c.getAttribute(d); - return ln(b, d), L === "" + b ? b : L; - } - } - function oi(c, d, b, w) { - var L = vi(d); - if (!Bn(d, L, w)) { - if (Cn(d, b, L, w) && (b = null), w || L === null) { - if (wn(d)) { - var U = d; - b === null ? c.removeAttribute(U) : (ln(b, d), c.setAttribute(U, "" + b)); - } - return; - } - var ne = L.mustUseProperty; - if (ne) { - var pe = L.propertyName; - if (b === null) { - var Ee = L.type; - c[pe] = Ee === yt ? !1 : ""; - } else - c[pe] = b; - return; - } - var Fe = L.attributeName, He = L.attributeNamespace; - if (b === null) - c.removeAttribute(Fe); - else { - var gt = L.type, vt; - gt === yt || gt === Vt && b === !0 ? vt = "" : (ln(b, Fe), vt = "" + b, L.sanitizeURL && ur(vt.toString())), He ? c.setAttributeNS(He, Fe, vt) : c.setAttribute(Fe, vt); - } - } - } - var Fi = Symbol.for("react.element"), So = Symbol.for("react.portal"), ao = Symbol.for("react.fragment"), ds = Symbol.for("react.strict_mode"), De = Symbol.for("react.profiler"), we = Symbol.for("react.provider"), Re = Symbol.for("react.context"), _e = Symbol.for("react.forward_ref"), Ae = Symbol.for("react.suspense"), ge = Symbol.for("react.suspense_list"), Me = Symbol.for("react.memo"), Ge = Symbol.for("react.lazy"), nt = Symbol.for("react.scope"), Xe = Symbol.for("react.debug_trace_mode"), St = Symbol.for("react.offscreen"), Qt = Symbol.for("react.legacy_hidden"), cn = Symbol.for("react.cache"), Hr = Symbol.for("react.tracing_marker"), Jr = Symbol.iterator, tn = "@@iterator"; - function Un(c) { - if (c === null || typeof c != "object") - return null; - var d = Jr && c[Jr] || c[tn]; - return typeof d == "function" ? d : null; - } - var Kr = Object.assign, In = 0, Zi, Ko, Gi, al, xo, gu, sl; - function Yo() { - } - Yo.__reactDisabledLog = !0; - function Wi() { - { - if (In === 0) { - Zi = console.log, Ko = console.info, Gi = console.warn, al = console.error, xo = console.group, gu = console.groupCollapsed, sl = console.groupEnd; - var c = { - configurable: !0, - enumerable: !0, - value: Yo, - writable: !0 - }; - Object.defineProperties(console, { - info: c, - log: c, - warn: c, - error: c, - group: c, - groupCollapsed: c, - groupEnd: c - }); - } - In++; - } - } - function oa() { - { - if (In--, In === 0) { - var c = { - configurable: !0, - enumerable: !0, - writable: !0 - }; - Object.defineProperties(console, { - log: Kr({}, c, { - value: Zi - }), - info: Kr({}, c, { - value: Ko - }), - warn: Kr({}, c, { - value: Gi - }), - error: Kr({}, c, { - value: al - }), - group: Kr({}, c, { - value: xo - }), - groupCollapsed: Kr({}, c, { - value: gu - }), - groupEnd: Kr({}, c, { - value: sl - }) - }); - } - In < 0 && s("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } - } - var Xo = n.ReactCurrentDispatcher, Na; - function Bi(c, d, b) { - { - if (Na === void 0) - try { - throw Error(); - } catch (L) { - var w = L.stack.trim().match(/\n( *(at )?)/); - Na = w && w[1] || ""; - } - return ` -` + Na + c; - } - } - var Es = !1, As; - { - var ll = typeof WeakMap == "function" ? WeakMap : Map; - As = new ll(); - } - function ul(c, d) { - if (!c || Es) - return ""; - { - var b = As.get(c); - if (b !== void 0) - return b; - } - var w; - Es = !0; - var L = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var U; - U = Xo.current, Xo.current = null, Wi(); - try { - if (d) { - var ne = function() { - throw Error(); - }; - if (Object.defineProperty(ne.prototype, "props", { - set: function() { - throw Error(); - } - }), typeof Reflect == "object" && Reflect.construct) { - try { - Reflect.construct(ne, []); - } catch (Ft) { - w = Ft; - } - Reflect.construct(c, [], ne); - } else { - try { - ne.call(); - } catch (Ft) { - w = Ft; - } - c.call(ne.prototype); - } - } else { - try { - throw Error(); - } catch (Ft) { - w = Ft; - } - c(); - } - } catch (Ft) { - if (Ft && w && typeof Ft.stack == "string") { - for (var pe = Ft.stack.split(` -`), Ee = w.stack.split(` -`), Fe = pe.length - 1, He = Ee.length - 1; Fe >= 1 && He >= 0 && pe[Fe] !== Ee[He]; ) - He--; - for (; Fe >= 1 && He >= 0; Fe--, He--) - if (pe[Fe] !== Ee[He]) { - if (Fe !== 1 || He !== 1) - do - if (Fe--, He--, He < 0 || pe[Fe] !== Ee[He]) { - var gt = ` -` + pe[Fe].replace(" at new ", " at "); - return c.displayName && gt.includes("") && (gt = gt.replace("", c.displayName)), typeof c == "function" && As.set(c, gt), gt; - } - while (Fe >= 1 && He >= 0); - break; - } - } - } finally { - Es = !1, Xo.current = U, oa(), Error.prepareStackTrace = L; - } - var vt = c ? c.displayName || c.name : "", Lt = vt ? Bi(vt) : ""; - return typeof c == "function" && As.set(c, Lt), Lt; - } - function ya(c, d, b) { - return ul(c, !0); - } - function zs(c, d, b) { - return ul(c, !1); - } - function Ec(c) { - var d = c.prototype; - return !!(d && d.isReactComponent); - } - function _n(c, d, b) { - if (c == null) - return ""; - if (typeof c == "function") - return ul(c, Ec(c)); - if (typeof c == "string") - return Bi(c); - switch (c) { - case Ae: - return Bi("Suspense"); - case ge: - return Bi("SuspenseList"); - } - if (typeof c == "object") - switch (c.$$typeof) { - case _e: - return zs(c.render); - case Me: - return _n(c.type, d, b); - case Ge: { - var w = c, L = w._payload, U = w._init; - try { - return _n(U(L), d, b); - } catch { - } - } - } - return ""; - } - function ba(c) { - switch (c._debugOwner && c._debugOwner.type, c._debugSource, c.tag) { - case m: - return Bi(c.type); - case F: - return Bi("Lazy"); - case D: - return Bi("Suspense"); - case te: - return Bi("SuspenseList"); - case u: - case h: - case j: - return zs(c.type); - case x: - return zs(c.type.render); - case f: - return ya(c.type); - default: - return ""; - } - } - function _a(c) { - try { - var d = "", b = c; - do - d += ba(b), b = b.return; - while (b); - return d; - } catch (w) { - return ` -Error generating stack: ` + w.message + ` -` + w.stack; - } - } - function Cl(c, d, b) { - var w = c.displayName; - if (w) - return w; - var L = d.displayName || d.name || ""; - return L !== "" ? b + "(" + L + ")" : b; - } - function cl(c) { - return c.displayName || "Context"; - } - function ki(c) { - if (c == null) - return null; - if (typeof c.tag == "number" && s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function") - return c.displayName || c.name || null; - if (typeof c == "string") - return c; - switch (c) { - case ao: - return "Fragment"; - case So: - return "Portal"; - case De: - return "Profiler"; - case ds: - return "StrictMode"; - case Ae: - return "Suspense"; - case ge: - return "SuspenseList"; - } - if (typeof c == "object") - switch (c.$$typeof) { - case Re: - var d = c; - return cl(d) + ".Consumer"; - case we: - var b = c; - return cl(b._context) + ".Provider"; - case _e: - return Cl(c, c.render, "ForwardRef"); - case Me: - var w = c.displayName || null; - return w !== null ? w : ki(c.type) || "Memo"; - case Ge: { - var L = c, U = L._payload, ne = L._init; - try { - return ki(ne(U)); - } catch { - return null; - } - } - } - return null; - } - function fl(c, d, b) { - var w = d.displayName || d.name || ""; - return c.displayName || (w !== "" ? b + "(" + w + ")" : b); - } - function Hu(c) { - return c.displayName || "Context"; - } - function dn(c) { - var d = c.tag, b = c.type; - switch (d) { - case Y: - return "Cache"; - case C: - var w = b; - return Hu(w) + ".Consumer"; - case N: - var L = b; - return Hu(L._context) + ".Provider"; - case G: - return "DehydratedFragment"; - case x: - return fl(b, b.render, "ForwardRef"); - case S: - return "Fragment"; - case m: - return b; - case g: - return "Portal"; - case p: - return "Root"; - case _: - return "Text"; - case F: - return ki(b); - case A: - return b === ds ? "StrictMode" : "Mode"; - case ae: - return "Offscreen"; - case R: - return "Profiler"; - case Q: - return "Scope"; - case D: - return "Suspense"; - case te: - return "SuspenseList"; - case re: - return "TracingMarker"; - case f: - case u: - case z: - case h: - case M: - case j: - if (typeof b == "function") - return b.displayName || b.name || null; - if (typeof b == "string") - return b; - break; - } - return null; - } - var Ol = n.ReactDebugCurrentFrame, Ki = null, Rl = !1; - function hs() { - { - if (Ki === null) - return null; - var c = Ki._debugOwner; - if (c !== null && typeof c < "u") - return dn(c); - } - return null; - } - function Sc() { - return Ki === null ? "" : _a(Ki); - } - function Po() { - Ol.getCurrentStack = null, Ki = null, Rl = !1; - } - function so(c) { - Ol.getCurrentStack = c === null ? null : Sc, Ki = c, Rl = !1; - } - function $f() { - return Ki; - } - function da(c) { - Rl = c; - } - function ks(c) { - return "" + c; - } - function er(c) { - switch (typeof c) { - case "boolean": - case "number": - case "string": - case "undefined": - return c; - case "object": - return Nn(c), c; - default: - return ""; - } - } - var Ar = { - button: !0, - checkbox: !0, - image: !0, - hidden: !0, - radio: !0, - reset: !0, - submit: !0 - }; - function Gn(c, d) { - Ar[d.type] || d.onChange || d.onInput || d.readOnly || d.disabled || d.value == null || s("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."), d.onChange || d.readOnly || d.disabled || d.checked == null || s("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."); - } - function Kn(c) { - var d = c.type, b = c.nodeName; - return b && b.toLowerCase() === "input" && (d === "checkbox" || d === "radio"); - } - function hn(c) { - return c._valueTracker; - } - function on(c) { - c._valueTracker = null; - } - function $i(c) { - var d = ""; - return c && (Kn(c) ? d = c.checked ? "true" : "false" : d = c.value), d; - } - function lo(c) { - var d = Kn(c) ? "checked" : "value", b = Object.getOwnPropertyDescriptor(c.constructor.prototype, d); - Nn(c[d]); - var w = "" + c[d]; - if (!(c.hasOwnProperty(d) || typeof b > "u" || typeof b.get != "function" || typeof b.set != "function")) { - var L = b.get, U = b.set; - Object.defineProperty(c, d, { - configurable: !0, - get: function() { - return L.call(this); - }, - set: function(pe) { - Nn(pe), w = "" + pe, U.call(this, pe); - } - }), Object.defineProperty(c, d, { - enumerable: b.enumerable - }); - var ne = { - getValue: function() { - return w; - }, - setValue: function(pe) { - Nn(pe), w = "" + pe; - }, - stopTracking: function() { - on(c), delete c[d]; - } - }; - return ne; - } - } - function Qo(c) { - hn(c) || (c._valueTracker = lo(c)); - } - function Ss(c) { - if (!c) - return !1; - var d = hn(c); - if (!d) - return !0; - var b = d.getValue(), w = $i(c); - return w !== b ? (d.setValue(w), !0) : !1; - } - function ps(c) { - if (c = c || (typeof document < "u" ? document : void 0), typeof c > "u") - return null; - try { - return c.activeElement || c.body; - } catch { - return c.body; - } - } - var xc = !1, wc = !1, Pf = !1, jo = !1; - function Hd(c) { - var d = c.type === "checkbox" || c.type === "radio"; - return d ? c.checked != null : c.value != null; - } - function Se(c, d) { - var b = c, w = d.checked, L = Kr({}, d, { - defaultChecked: void 0, - defaultValue: void 0, - value: void 0, - checked: w ?? b._wrapperState.initialChecked - }); - return L; - } - function Je(c, d) { - Gn("input", d), d.checked !== void 0 && d.defaultChecked !== void 0 && !wc && (s("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", hs() || "A component", d.type), wc = !0), d.value !== void 0 && d.defaultValue !== void 0 && !xc && (s("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", hs() || "A component", d.type), xc = !0); - var b = c, w = d.defaultValue == null ? "" : d.defaultValue; - b._wrapperState = { - initialChecked: d.checked != null ? d.checked : d.defaultChecked, - initialValue: er(d.value != null ? d.value : w), - controlled: Hd(d) - }; - } - function Nt(c, d) { - var b = c, w = d.checked; - w != null && oi(b, "checked", w, !1); - } - function Dt(c, d) { - var b = c; - { - var w = Hd(d); - !b._wrapperState.controlled && w && !jo && (s("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"), jo = !0), b._wrapperState.controlled && !w && !Pf && (s("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"), Pf = !0); - } - Nt(c, d); - var L = er(d.value), U = d.type; - if (L != null) - U === "number" ? (L === 0 && b.value === "" || // We explicitly want to coerce to number here if possible. - // eslint-disable-next-line - b.value != L) && (b.value = ks(L)) : b.value !== ks(L) && (b.value = ks(L)); - else if (U === "submit" || U === "reset") { - b.removeAttribute("value"); - return; - } - d.hasOwnProperty("value") ? ii(b, d.type, L) : d.hasOwnProperty("defaultValue") && ii(b, d.type, er(d.defaultValue)), d.checked == null && d.defaultChecked != null && (b.defaultChecked = !!d.defaultChecked); - } - function Rr(c, d, b) { - var w = c; - if (d.hasOwnProperty("value") || d.hasOwnProperty("defaultValue")) { - var L = d.type, U = L === "submit" || L === "reset"; - if (U && (d.value === void 0 || d.value === null)) - return; - var ne = ks(w._wrapperState.initialValue); - b || ne !== w.value && (w.value = ne), w.defaultValue = ne; - } - var pe = w.name; - pe !== "" && (w.name = ""), w.defaultChecked = !w.defaultChecked, w.defaultChecked = !!w._wrapperState.initialChecked, pe !== "" && (w.name = pe); - } - function yn(c, d) { - var b = c; - Dt(b, d), Qr(b, d); - } - function Qr(c, d) { - var b = d.name; - if (d.type === "radio" && b != null) { - for (var w = c; w.parentNode; ) - w = w.parentNode; - ln(b, "name"); - for (var L = w.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'), U = 0; U < L.length; U++) { - var ne = L[U]; - if (!(ne === c || ne.form !== c.form)) { - var pe = Xi(ne); - if (!pe) - throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."); - Ss(ne), Dt(ne, pe); - } - } - } - } - function ii(c, d, b) { - // Focused number inputs synchronize on blur. See ChangeEventPlugin.js - (d !== "number" || ps(c.ownerDocument) !== c) && (b == null ? c.defaultValue = ks(c._wrapperState.initialValue) : c.defaultValue !== ks(b) && (c.defaultValue = ks(b))); - } - var Ci = !1, wo = !1, bi = !1; - function zo(c, d) { - d.value == null && (typeof d.children == "object" && d.children !== null ? t.Children.forEach(d.children, function(b) { - b != null && (typeof b == "string" || typeof b == "number" || wo || (wo = !0, s("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to