toT1S#h%kf2m$E|8;J~Cv8T;3i&iG+9$QZyM?@PhPwn5R||2y6! zE}06a-BP1XOAz!>caOYsWpEo5O2{{{V#uaj(lF}%Ym3^l1CUh4Vvo{dosJ?q7=tRl zbQlh~{JFJYYC7apDS4$_Glpr6f>b`*2Q2ud-{jRmZgT=P1C1r!X9{##$h~3s_3;%b zV%*PHQd?qBevC(WSh~|;C>+cX@>ZeCH1yjonRfsiS8y1G(Rp032FT9*VI9mNn@&Q} zH%%Fa(g#g0!?CP`p!*n(aLy(fVzkdh#jq#R5|Czr`(SZud2vGHeg<1?9*zFpng<m42w1}l2&{B6P>UmpkVJ@*=)vLx5#WT}a8%;xkdPueH-1UqPIDv3 zNunQQSIOHwzksO|MwWHCZXbO7+tq4yj?4ctTb~@CJ;?)m{qmt8>9FLodZzAL6KKE6 zsa=ns9&oEzy(3qpab>bU-@uzsDXsJt^fg5-LwS8CulIemJUVp&*xy5-y338=^$n5a zXAgyDesjrBUotQbKPX{&jh|7tauT#lZ)3Z~IDDJM>`Hq 9~4=ovv7A)~1lJ|WG z4;6#;TgXbMI9y3q^t5qF-{zSI)K0iIAGlqZbNcC4^CLAJetO?X5KV)1C<4%RVjvag zWOQ!m{m|$l@cWZHw0lkQrggfcJhWc^irYZw+W@Uy>~&sgk!fzIcY?jpBu35hbv(5A zAqPT;8$RV^UwhR)j!n}xouq|l@g}ATjIw&5o&VYn$}>6ERJvC7>fg9v=&@jbmkpWT z#KJ+Z(WXMe+X!6v&E;y2zB=UittQv89nKMwn6v)~aqMClOQPup)C LE ziIwAvo$bRw?^iWueF}`&f)=0a4s{(ubvR=!Z9;XSw&s9?XK}vDx%(Lf7%~qzoL_=< zYtRNJLeEr%xOQKIlL_X%T0;N^|M(5qcLeYknehDO^Dids@75U2 _Z+5x;Qo zdv>^q*N-p@w~*!bY$3};7pTDC$RmPl8a11Iq%ykm@T*&E_rJ<5T;}OrX4u+KF^l;{ z?`0sA-7w&>dB`K?i0 (d=9P7Pr&(((jhnlKz^^a9KP+o8S=)#sS(hD>SyKL3J@mna>ksd2wH3N$SkY^ zH;2g8t;Pbqkr>QbO&@-DbN~j ?JLU( zR@<6w38qyQ_ct8}Rm_)xc@4(Kr3pQtUHJSR4li&hQ7nj54XSq^>>F&!6sem8Ert-~ zOOjz^I(*Hq`W4T5xIf1W(k`>85S gCw*ue^n*5M*Vfi;IS2$-ktvVlK#+a?y8-?mv%8LNhG0i9dP zV=gk|Se0Jh?L`pbD|goVPJzPH1Jy^e(tj)jLY%Nqh~Bdg?z-TcXR?_tZUDVfbR!6a ztcq>0{o;}6z;nd;anky`$B?aGFWh6h!W{Z>EnvAnX?P*W0^P2BM6%R-598O7Z7yc- zMyzc}oRZ38%;XQvZqp3FcJInWrFd_Ce>f^4^+%G5Fbc0=dzEST9GCbAAIJyx##O%j z0;6hnFrLBp*Xle#By8K^a)jhMoWCt<4V>2Dh@ox88*Rypd00N@&eIED3Hiq3J<4V@ zPS$)YHNeis^Zp2#@cbld;OYg79t!R(dTw^yK#?DP0oCrdRV jvGv4PO56FvH^$>Pii%8qwyeSaX5)F^J1Axro<(r)&V^gC1_6cV{k<*9lT$EDN| z&R15< RNT*~P<;-Ohp*X~zbz}>uuG^Cv z3~y1gC!Ip3RBq1Q+RPC$$T?3|K^m5m|8wzx{@Nn$t!ub^Pzua4d#pQeZCCrOEtbOJ zj!CM$i y^{s=^ZM{n!59RfKb0*~1p@`ks;HR?28aPjcW=~_kQqCZT z(iCa%)9>*!v)6(@L0lED3;#I~{`2kU)jjp7KdOFIvD&H7XR*Ea`y1>x!{Xu*(T6OR z8DC8Z*vm%iO$Bzspmjq3()$>Xj4C9|r`*PS>9rdFq*_DCv(5BMXvCG^Ph)_L)LMm5 zVgk$970G1UV+?N5sk2TXQ-!v>%(w5EyFV_hcVUB?+#9&kz(ThTp2XWl@{x}OBCqHV z_SyY>GktZAJ5Q5fAF2{#G+5*seGLCb8O{ehM(Y$M4#~;yzCkCR#creEe>QBL>1^|r z5spByIuEHYzEO)_pBXRz1hrMWFT1)@SX}TWJ3agTA*>o}o%+w|c9$TaSD?Q)OYSrK zoeyM!@0<+%>2R7xvmqJ?cE97PWgkC#kMPN6mj~c~4?ox{yw8~XL1B$q>A@3z{a6W> z%69H^dz60n%Vg3+{K4nWk?m?#{ (|YZ zKh9Sn#2ZgQb(|)5@ym!U>+=|PnB4DrjEac(1xPCzz244CNM}2quf}diI6cCE<#6sn z{x@e*vTJZQGLHL=6c{yR-P9CPLW?aTKcwPGv`aPmM1~1z6r^UHp}{-v->K8x$BbxI z#2vU}lb^y(>ds?aAAdbI%7znddYvZn_l>i@qJU9BV1m>QFn{TD!Lvv8NgXXr_P4dD zL)xVt5fZ8rzW+gsFoCS8omV=@YmO&%TYooPbwj?oqQGh$D<&NzWiR4W2S}_DYu$h> z0|%@CpHm>ajq}|P#Tm11RxFI(E9=bQl`kY1vRpuyZu{7NjaETwjEegFMvKa~@G@Y5 zf3VGiR9?Wj7-W|TpzhmQ-|u!HT3;&bJ!Io8KA$S~UN`S{Ly{$}Qn3rc%`Hi+8*hm# zd^{nVc@=FpudaeK8`qnr>f3hs8g4%D%G#TSIb`QT5YU$h$^lhqu5gFbOVgNL)AQq; zjmAmqq%D(m G;pRd&~P)z6w>y3(X1aVV%ot@`|Y%Y2LSaf}Fj#!G!p zX*w$pzbU8knuh_5 RtprdsX)wW+&$fmKIE8ka388#H) z%s>vW61f!(jn`=bXo?{y*W@cak^S{XtG^A1@2`Dd0C-v9l3ZC_kArl%NA$^6%ES)I zCkhwT^j5#)m~?6e1?oTJ( IqU$M?ca$`HBCf6=d7)dO9f+7ZTx}H*M^N7MYiR=#J)VyQ zbRb0H=S1_tQV-rUAKX1~aNMy*M%r@%R+L|Qx(G|m)YX|fr4HWo3{SzTmKn*Y&Fdwk z*62XZd-Cu^MMW{m;c>pBl0R9QDpnS2`62GIbv_XWYQu1`I}nZbx!|sSyX=i4m7&NR zntdUf&3XjW^|AYXs5H^B>x8TNYRBilU@$vXucx@r+X6NGrxdi1@N=F+5TXE$ge4O6 z0T?h~7$Pk^FG&W^!?=-}_#BWz+vi&Ix4p(rUUnLZXEse~pR)|{Ogq^$6S9)&NevpZ zo}E58y~pFJpR-jz4ZDMjcItQW90Z8FLs#I?PV=uo8mwVU-5V`&DPvW9Po=gLx) zS??<;t5R84US$)qA_*$$JubNnF2tXCGt{DVqAc86R6qQ>D9+N#-?=wdTS#q5Xo%ox z^dklZ_I&O8%;(C_Ma<_5{Nk(84i_56Y6CQXns(TXKUOd~*W2 au59`ONMXS zJa$|co?&Sme&HP%&clFdV|rD+ec+x$D=(xLT39HQ9Ju~+=3lpL%^+P-(it@hdRH29 zph!dkp`YNts2ms0cCd-sYumG^+6I^)+O#Mpmy7NBS|Hrp*S%B47ndLP7dF{PKmg2l z#9ZlZt(!Uae(CZ-b;CZRvflM^JbofyxVt;|>%d0kbUJl9%$|svJ}oq8B}KCWmHQ*J z%Eg9Qm_lcDm`MnTkx}}bKDs}*Pb4%n5g8dWEcJ{AbhKntH8=_6C?7XM#yaI#HSi}t zolbtk>JP^dn6ct|JYP-r211usR(4M5GvR+RZZV{Im|pz8kFv{r68 sNJ7QHaTt&y4SV85_ zKtXv J 0=Q9)VRXvw0{grA>ZNkKsY zxLR*24+#Zzwb^XDZOi|0BivQ~emjjdM1MI~{#d`Y6)*vB+;EN@Q=N^KoV=K%rkwaG z4yo16Q^<^cR=JfyMP&W_*B_r-X=ZP@`KX%c?qJRy6lu;$oP2aNqF^lk)fUKTrPx@j z(t*jV`@2Ya*A~@%CSQN52-dKvJHDx^S+!T8*?3krQJr_hjH2EE%$OW0no}2*3y=4k z(HHuJxV^nEY$^-6kX}_*RYBRV<&EV766^VX!HcHe-p otXB|Qn(+_a2v|Kvr*1YfHulRQNZ;X+k-`b& zPP%v2ucyV?ZZEr`l5%oG7L9AVPuDTq`@PUaA9sz*y6v466%%Rk@qc2XqZidHRb}1W zT86CHm6Vl(X3fwC2L~11-QAD!WBK0tJg+;S87aKq2C*tsRJIhi{c9Ig;k`c76?AmP z-VtXPQfWq+RPFTT3Hf|bHfH$OB08cnKm$3Cp%lxzwVo ij&YVo~CGra09cLq#$ zc)v8}1hj+!_}WQ=0KT>&%IFCNf|(?@dVdkmF#oR5g(Q 3&2-8G}#$ zgEQ)!tC_OmAC}G@7wXQwthxvlZ)NQPdWvG|D>t_fci8GUyq+z=mZo6yOANsCXev|M z%Zmpf1oL#YDV@%4ZMIm3vAesA&uQnUQm#r8lw-Z#M5o jg(YKNlVM}bfGk{siH#W8zkf)CMM>O)5kX? z1gOB*t#_MFX8v*+kBjt2E6;sMue?rJ+R>xSWz*ZCP(8a_SF&5fAHNk^(pI3wnW~J% z|5ob~AIa&EYE-I9bMyPcP5LxQTts~_hPwaY39Dv_biWkBNYo5YSRsvyZ}&ak{?tTq z9t8*LM)RdGcD)D{6c;BZC6Oa=v8lxYxW`l4y|+4j2q`&OZ8f$FIF~D6bej!oGuNGd zM22qLU42YUu+P=0XvGjpQ$Fq}7_2psHYtgZjnh&;(+k!uAg@fsUh-e(&8hqA`7r`< zfAV?^+wXo{Z)~-5y#D+5;(i(i_aH`F0YWu$dSzAgopXfBJ_uOEJCdeB{j}haz2p7y z!VY}$dW;^+qltfXnhjxoegK&tXx{Hn6iiHU6%}-(WMtt{Q3VAB-!kRIWn~eFydO{! zDdic!z{R3*7e7ZSv$b77b8T&AR>JA?(ekht$*9@c(NRFi>yb(+n|82SEKkI4wL%Qa zj?VqSAh7v;I!>0W^^CfGJ~6>Z_laWU xF=gvJhO$&6c2L2sCsc+Ozh& zD`hgh53R+At?=mdiR;y0fn+j^)0Gj81CRqub-m&lblPURygda0aZrv#%kXmt``Hef zH|ai=-yZc>3D<>8@Tyvp?O zN@)r;B5mZ5k1&9O!Lwni<^4u13JNNcM(e6>@2@B&^K&wkBpMX#wwqwM;Vp=_4Q7iO zVX2t-znuOauS4(9n}@}O71XT_6z(aqf(HbG-^@xZXj+0HpeV$v)2U7@ngk((Y&Fi8 zI`s4%ex==&5nwu _*GJ=N}E8wdwm@{Y6Rzd)q3o6xlpP! zyt1MmA0JOrR$g9MRz|~Yzb7JVZA}kykOX9*j=M41zmV{lX4_u(vM3-|=;-YH<$h;$ zc(dCd2tdrzA$`acyBo}6yq#TSGM>o)X5RO5bezqZ5ib^8iyFCz ^lsmquVOG6zTzJ^MZF zD?%;$D@;wc+lbdc5? Wv>U7)Al IH@$bqeP zo6hCR(t6RU26(5Fz#_0MnpjMLXZsNc1oV$EGLX qo-H)z%mr z8*4n9C;Io|!YWd=yiw*Ki>TvnALMxi1}$B&eD)7cPIV~>i8xGp&4G{C`$CZOMARA% zTa1s7pL<5Ksm5S_N~NprZY+6XGy7N0T68d}EX|Z@NE>JkAmgJ89tB(2w0h%vHeH=T z|F(J@dQZPregW95-C-mr^CfNm3}qtXU+n%msy2H*#4Wq>ObcDtixo@YLQKOWPECXB zfajUAAfE$#HLz}}*9AQ^u+E{W*8iYigyl1DtXH66r~u?h3z6!eqMjtgnH^u3&@u$1 z$hD1*PGfkr4h~vLzb6;QPBuhx+q}B>fd|0AB9PM2Mb*`@NJSaLl;<=J1l2TEZ?kV~(9G&5QYfN?SQr2`%N>)x(GU+o~R8ZBPER2v|STGB-Sq&eHfE#1e zY`T=pH*KC;z{L9PMV) 4^A?Sub+OIma!i`BbAYzG zL+JTxlbV_u?4-$le~4n5@BPA2&-b&@?X0wT!ra_kyTfgE4itJ&6B7$~J#V@;LL(6_ zWbk=wZrJrB92H8Z)LE~yGaC%RDCp=^0!gK#FvPx0Cc)9TpD1$YttEUaODZ-3vtt=& zcW)ak2zsl aaiP|Yjr zJA1f4{oZP_H!eT{qbI`V`EK`G+&C3bRMdASf(|n;Ss5q}Ks_}tow_LmV}6{jYpDr{ z7` CGnTJdl5UJXn+0!K~MTG&2<#^Q31b^Q}h)P0y3$$(qO z6gs>7MO6ubO&8?5{nWHoISXb3>gEF$Y=&&hIq(m?Ml{0ejmpXXL( TIW7K?C_2_xg>98yxZ<>>7R HpPG{>3Tu2n5xz;`y+E%)M;TEoy)gW52c%eB*`YCT2}7#FamPafsv z<<*b1`fT0~M|fVvY9i0kp^tK-&+J?t2F5mHi53>BGcLu&KXQWs;}6spuDfoOm7zUe zPhL7$iTJPWIto}Uf~{snoj?283ob>`<~yeN0pv4MxGq3#282225u^shzK4c|Hs~yX zkdPF5n6iW~PclPz_~T7sZ|~uGp)P+cS`%iKv=F$Egx_!e`FW$cNO)Qp1k0i&lxj(` z1EVQ(uHk`1_cQFnzJfPb%hL^UO&wz)tgVc@I|mwC+F#CR=&I$(N0WiG;kXg9nlmbY z7TuL>=ty{Yz7z4=$~3CR;QyN1A=IJ%>8Ye`xf|N)**hGX1JEN)3sq9o5G^doEy+oO zVso?$1=FfgR}GwCIe3f8yQWUXb+o_=}e(d5iOhzqW)qQd-mTWaR4`QQNxSl`T& zb*uFp)~%Zn+D?no1H@zSOV1a}u{gH9>K{R1vqqWaCPc%)u!Mnybw9;@9hQ?r3 tTT~?WNpZcB@i~p+s=_eBZZfBfP8KdO(P(0zB~p96@~7+NO1zJ(kE%MJih)M8 z-4=8B>5natx$6E}AiGD^>uD}jM$RLxan%!c`xgIM 1x!&9n>wsgCcQ&i@P#I=Mz z14k#jgPK$Lh3;}2$|4MLuu7sL1orX5tL6IinUq1n;bk>wovbO&_R;KQfaEJ*ECV-d z)TE}N5z0^AJf0qJp3`T#$YlD{*ZI?AVui_IAS~|wczPLlJ4~dgtekYR-QCT`z%b?Y z@nUcPa`Q(Pgj$j^G7C-C>q{2w>5K1Q_tQ}0w!U<^Ids|2U!56aJZPeWDhF69$g>^v zLo8^6qP{at(%+Mlx4u;8+-2PY{7Hb{D{2KCiKwb~`z0e^bCx2S DGzq8Z$ef2v zr8g B@7~>>aMcpGys&9u7dV%)~#0S4m+upilSO} zL+~2Fz`*7vIkqbh;Na#`Cr$oa2OLl5DC!q2C^$HlQ3(mJEIk>6a2O5`K%tLl`_k;i zx@Xi87d+0t;g`cur?<_ye{*xvZtms_PKxVP1;~0Ojl>Z$VSTtFe=+jX72bR8MS_v? z8j!6|9_?Oumhkxt 1V1(H2{v|u)c7GS(y4-XyGHPiHO^d+RrpB-~)oBZIs z0OhV3q$D(1H>oZQsZK!+7IM*&e4;MyY=R7PYO1L>4AjHp*T<2q zWw_-2a>e-_1sQW=QksJ<18UHNy5RMr@QI?KMR@^#IG&F72JyL?Ehe)*-_6koLQ-Oh z3Wpr>4D-yEtJv7s7L81enVfoL!`9#$oZ*{68vrxskJds$LJa6wSo_zE)x|P0GUT98 zKQ$E_lTml#^LbldCHbT0s%0OM4l{D|yG&s3Z>Wu8(C$ez5kIh2%eM1z>gMJKk(rq} zC?q5zAOO6+ySrO8fn4TC;&iD}@j|QZPt#3~kH_T1(e6~?oF6cmGpN`bQDo*=B_*u$ zw))&%8t>HO$5XjfA`{?UU^$x5D!4bZ;HqITf>Pi8ENIQjXGPwG#;M4a=t*19B)|iN za>gQ xnYWkfRAtZZCQEPMtSa9Hh2Db>0d8Y^{f1`2NWGXU2jhl BQsnpQ+dZZ$vUxn5)a>?$x>7MP5MmP%@fS#^Fjxl$1Qbk6OpM8 }XpL!}1dF)ID^(A~KY M27W29P`}AfE|iL1JV8dnp4m+E-7jSzt4qW8 z3>8+bZEuxHbh@KZNJE3Xc}fw2-UYeqwTwq^Vo6huU@g3AvyJ&?*A$FaGgCxD0_KMj zLNZ43%ZtbC^N?=F^k^O(BQ%kuc;Tu{aBW&DGUJ*{Ys?0m-r7;taT}twIT~hAbqb~q z!oeZtT&Xk%D;FcHW{YxM;Gkk;N^?wH4?s# ^i_&wb2bba#K1udJL-MN_%k zyj>UI1Dw@gIDf MImrX7(Ts|RHbx(>^Ipt^! z*v#sn?Cc+TS6r2Vb)Sz?qk)Lq`ASMwb(aML-ts|*o+t{8un3`-0pcjWncE*Xhy@)j zbw|t0SOwkSUN_G`Ki_k>Mas9Jk;&3+_hm-nq(qExhRCO>Nkvf=_u8|V81vWdY@`=o z9bpsiLd`Uy?T+(q-Q%{kwUl+0GqgYneiv}Ry*@>*W zSmbDUXPYh1kf>b|7%BD4E>glc%4$Fc0@re`VV@s-vy*H`zz^HQ1VAF-H#uk?>e z4BzT@u`LEb*V 4LX(oIy)lYwmtr`xI5VrVS3Bi0i5#vY6+oWXD zcJQsmnZu&3L^=un$S=D^63}otXKSScGWFcuQNX|^FF&S=irv5ck&p;8(_KldsArrn z+y99kOpsSlFhIRoKbkN4J7>d<_UGRme2xN^{EhV-Key$P^ O=b3FQO40iEeyn~hp~UW-0RkzK$TgilNo=< _<0C75sT zwM;Evh9B-8s^Y%g($;KlU7f17 (csk;ZOC>YEarSaV4`6TJaQ(2gMcCTH zeJbS7CERv?_j+{uVx;KkA|}j~^Z6#|Px1{iMBkGB{i!t`llg9gN9zS3$L<@hC3KKk zt2rPt-#i^{Q!QG(4Bx5C$nMd(<20>GiL0JzR^!Xv7P#eW#CbfGDQsjdXn`5IK!+LM z7z~o|7D(2gxmOOrjj!DD*%1x&-|t~2;Y94PX4;Xg*YUsJEZwEUHX)~^42A5E>fmPE zAcMgm*zlSn;|Gxv)oG8;9`|y0(*-kxXdaK;3|EH|_GIr~ c`=1rg6$3( zav20Yzv6eJGT0YJ^{gTJ4Vfeu&mZ@20{sO8q2g;apXAjM0-+GV7f8yX=y&7E#EIpz zf?5p4X&&S&o^3@!83_#J_Ou^dzs9L$e4h~}B)y{gQxIEavr}IfkPt#OB8kMMWCRL| z7QM&nz0uINja&Z&j5idf*x}M#tXY4@!Sb<>SWZpi(qE%Q+CMxL1r@1ak-TAuLHrO~ zv(<#yw<_q2=2lL3m?`ut=rrzN mppDi=Fi?)$hv{R6>liH6rhBqCrly jaqK`Jx z3Lmu?)=l!3&lknQSrE%6{Ft%7vzmN@qQd|3#c)tTx5nvIacpcXmD8S-*W*EdzDO2< zT||*jI$qn~cpU(SYvo7Bfn6Zq)YpE!B&hcMeARC5Ri}bzd-4X>*YB%FqI~98xxOLe z)-o?8(_E*$Au3t8$s#93Q>o5y<$%*&G$bV(ot#XordVS~a{V-SxA-hwT3UOzm*HD? za4Onh4aDWx!tbk@wH|rvmslbaQ|)?8RyL+n+C5)C76V!PscqOnap;-2yN^dn1TaLR zof8KKM;XT$-dt ZVfX2>~SWQ1L&aWBCF{7H1AhC09qF2p8YvM@@9T zz{vti?x9QWAQ6Qc^)*N &D*46H?H!MYm0|dmfVj~j zP}L1&$)^~qBQ0jt@Exgkxm@0Czf#&dKfH`RkgK7vwK=|6tyf+exy@p{qui^XUU)ax z`Ua69i~Jop5UZ5&P5(xcf9eO!N~p!>21f6dGRV0@YivlP!ME3`@7%s}z0DiW*MfHh zeA^!iholfMrSn_r(wddnnaIrPEK}$)7{rA@9Hs`xV>vC?M24okyZ~myp}6eq>6u*N z)rQelmTM{M>_Um|DWD2Z>POJ{O+_g@?xl~t@!{Y0h!Y__-)7ym|JECjk%Km5em^o& znN6=g*z%nD+@A7kvk nw)%!TcO1^m0eA7h&HJtI^P14mYe^)Vj&mPsr z4IiuM{xrryW?Rs^E(4W55z&rDuZxoX6HLQ0`QvS%|CH7y+*2N?jRe2Fmze*U!1J~a z+0*sBWIHV_&O&Xnk)OvrgL`FtCE)mTg-5I=4Hs1W#i?itHXdfXzDf3i{`x@3P%Bn- zj_~h^IcQ7y`Z_1s)|;XdmsfKD$N1a?KI`^=`j5jl*UJ>D>roW$6UE*5xwW8T%ycH7 zY^eO+FIP?7paOi_8dNkL-|rhb@ABsP%kX>A&{Kj|bYJRcl>so1OikfoMPIMxF5A6E zx5oSBdUnql?-vp3T9D9h^Y!upxF+dGY0;1zkX%}93q721j(!T9)r_5MZ*T37ieBqi zeM{cIUO}#7a4EtsR$;I6ti*bW*DCzFOm?~l%7Bdy$C4E@`6(Kiyx*JvbMu$|7}U}5 zhb_+8c$Z?_R^pOVIO7XLW4{bPb>r$((&^4(|HyN{TdO(LGu+yb%o`|<(w@C?biF|i zCNElfJ;JZ%1-~d*RD7$c_XD&c^B1%Fj;=C+LZ()_zN$s!jYZW*|4M`HLFEt^oRHdz zu%4Ww3yE#H?7!g*l{tB*^TqHzur)({*28X_(a#>JrZWel2FKz=l7QCDrbq$n&oZw3 z!T{dlLk#jElR_%wr?3|ts-+1v%e_e7PXRC2*7B0JNfFqd<33z4yEh4xXI>W&UGzg5 z{N<~SPxGPR4PuP8l9;9iC@ALxtnB`X9YNs}Z9+cMr75mxORe^pQ0?!2Sw?DT-6v8! zHYwc$tpVJCb?3{z(Fl>#zGmC7cfxiR*?SH@-vq*R&c3O#FUv_+MWw# 8vuGnDC3{@=|Qo;)5-vf!D7eyMhJ(> zs8ZtK!+P=j{Zv*^BSQX7tPrBNci2Jc=$->{2B&>OT#emDGUe&hPN2c@mkjZ}1H(jc zRXC(f7W=9(0fYOZxbN%UvBi09IN89z_4A#`I;6;ViK+tbK4?1zvRLD6B8vnH<%%qN zuRqp(R2{!dgj()A-3>|Q1^;_F3_SdxMI*5!F1ci0O-(ABC0~~d=1o6R d- z(UFU#1HP=taeo|@Lzfifd=N%ax?TitS=_J=QVa%>5}x@prkqrLy64C&InC$DQBX-; zZ_OIGkOPEW3G krQVJgTHKSeXpe~$xk!rVAd5hRma~*CPFIeaPh*FQ*`VC?P z&2lVm%8zg+-EW$Ceb9II+MDm%+zl~8{Gafwn)IrXko{xtX-VF93r5UTKFB)UP83fe z>Trzc2|Qe@)LYiiTVfXowKAq$lv9~EFnw`3CfKy)Dz4Mjht!UGe9lNeT*Ix<>+7;h zI1O@V@&=6-e~VFs!*(6Wd@cIeVms4JeRqE;&e`yxyPs@6bf2p?xhO0tiR <`X%>@WTE!R8glv1q`(`y;--&TF>nte8b _k zQ$>Ci*8OG*Pc%ZmHFX&nZi^;x{M0L>)f7#C&0t0)%`Mxl(_~g%<*D-c6ABv#onPV; zbY84cTkaeScce`9X_xt2YqSiWTfLM5)ziddvk!{1UH8gfqBU0K2P!Tog|aWnBD#JW z$|Odob`MEGU*p0tvkcj7F=Wm^S?ySTY7c_7s@s%3DlNoeDAQ%DrC=@;neH!&`aEBC z$^J`yux)D;dhec#-2F7V0kkchi7qSHmD*6~U+ugxiPGp_LJ=3pAYS*wHe6k5k%g &kyT?m04+n^VcpgwnYkB1C)FL_b&vfBsQLF)=1tG|9qU0t{rpV@wAsx$s$8WyAc zS@bhF{wF_i4G*&4@2}sj3~r`%xW&%2>65^?b3ftiHzehwI_E*Nw9sHBW%ZqJdJ|(l z;5jE+Ki|gez5^lAwOEz4*jVS)OHondx!|8S2_(R7%6)Qf5+=xj9pZD;k9;MJKK&4^ z7Mt?7&GZ3yb9)4(bogl}ELKl%l^uLj?oAb>+ff?eIn$}?i}L=+Jqv5RUV#30|BaoQ zNa;aj6bm9k6gctevtat5{w!@0oP@^!6lCkkqoyr;x!0rYP3fv1f&K3;Tp0aTZR+U0 z+%tKA1tQ<*Oci4cD0eu -=M*a5> z?n5;#Lzg@0_Y*{?%VCzg(dv~piva2I<-JZ^M3I2(g5Djy93cs{@W@kKAqsdsWz3n^ zbJYQxQ!)TU1U_nMy Ea`{$E bLsHG1T-vNEXs zC9@3!8KnNfzVybB0xl{j>BE5YD$9Ep-fW=Dd#^VpiPG-)cUXRCoL9c3O9HjUl3LyU z!7*<#kpv)2Wzs$A=zz6mKq~z={gwVR*LnqLj@`;o1YcBGDA{?BHc;CZ(%#z*@RJs! zuLWaEN|tt7Xd)KT8jC*z+>I(n8nmn4q}x6lFGY2B+!)AXa1K_J9HvQyJteC-f*AWT ze_D%BQ|!@SEavN99fT3~F&hindDBz5x1LJCc3`r}+_Zdy@va@@isjiQ*0M|SK8!qk<+2iwPgcP>E=DmDz;kKOp#`$EH`rDFnIfX%seM%~n2$HrS`gZt2d!4| zxL*4Ef3DUU!1=w6R`DX+60uQ!p@Jv~6qI_pmQ4R)I}U|B0-6vN z@!(0|28OrVqYH1cr#q(_d1{;1ou(DdaCwwV)gVZ*{*+?;u`HXaaOMLSG``dm?b>?n zbBb?rXtZn3 wV`ZCJ#5B zI6Yhv4|Z+d=w4CH(y;`HA+=Jg+pA1Y&z5{*1Ct5mQEfQnvVu 5&FfsF`Vyp$07To3VQDH#`U$+r O8%+IIx$YL90#FzE zZ9`#|d}|v_UjL~KN(U=4Rvv5}F=IE^-tg7rQ>`KLTu51l?!TKI@UaSLE}7oEO!5pi zy*MK6Z-27hp~6TZn^f+J*{iU$wsd+VumH3>##z6@n%*bnUgO%KK~@XQuZ>FY5DclF z`s&$LlAE2*`Xzf`V+X1sn$-Wx>jVD}aJ01pYQ~Ubi1@PtORI{<7Mrc6>m|44I(5-d z%@_Hc_%(#D34f$@y2vH;pFbxq@qXAjo`M33Ao`#y&E71k=7OM&4OA{776lf)tZo}k z--JY7@9-EKuUWPQ2#%3BI+wF_J{R|W9jH &>x@e0uUCM(Dl0y-}dtzPjtJZ1!ALf1|*b z(&zkz2Vnj4@2x*`_;Jg4DV`Vse3Lc8^VvqcqlV2HJA0dFg``v#yT-%i#YbI&dHryF zx|SN9cxcU;^YL=)HSfRo6kMV$;F8R2elXIh_&HX*Q!Af;|LUR*cWyH2lgzV}-F=o+ zA;ZaOOI1Q~IkSPNlz3w~52&O>n{aK%mrUjr@gG_Q1&=3lSE`OXPV)|f_z7 0U;!&8U{hp@G*{1)7IXOY#mvvGN zwNpB+8qq{Ab<=9>Z*&elbLxMJpld4Z+&P}P=s@8 +0El&Q6X3x9J%7JB7-H**_dEJx+x?}`g59Kfj$ }ic z%7*kLeIeYE3;j}7O!*a1GH;$Ma~oc;p%LH0iu}|S8Dho7Lq}+rWsc-|q?+w-cA(w~ zu7Rh;Q1`Rvcw0eZ`ZrdA;PMorqN1N_9OXcefQ9eZ-CuRpyVY@9OWwPEg0mz*tUOY# z+1klVfYGsaS)d)K_1c5Q0~l9daS1aF2O=TeR*h!w ;_qy_qTE%4;SLNRdJ z#X&9tE$Doy5^dY}i#OYA5BRn*I19$Z$`_lWSME!)@>8DT?#{B5=RS$Y>By~O;MFK| z!*c7-M*W44H!+0Ca<#9@M!OzS$=hlh^u*R+>*H5>$R;*1qY3b+q62U4B&IxbW2|;> zOAi=**2SG0;M#<({ESBS*ik>Y^I(qG#a!ugxSZOSf?idX&dI4Fr5uaVZ1_?{^{z1< ziug%`KE4c+DksqsMN?$dbK>EuG5L~TH8P|khs>*T4+ti(^pE3ak(ZpOG02$fxQ~9s z08Dm&5%^G?@!8gK#C1icR1_98AoBKfInI6ELDmCAPz13wzCkWt_uP0%MW}-;hdP_f zuXlMAtMSp>eP3v>(u-!epJ>$<>o~Ek=H~Au0H=+4oMn}jacRnTqE3eL`Dz&&)fz&- ze8#84F^60Jfp2f=Q{ L$1+axp?K>JvNN9cR^6_!9J1Yac!Ly0_Zb0@(b`IOK zPnzs{E}--z)#%I}!fnHeihH*IjR?S%2$!qK_#gu3HD(VIh(`|3$lNWmap(X>`%S5e zq=GGd6+~)#eSIy $T2=Hf~NZK9)LU<`t&g8$`LDlomd7(5^GpWl6rx--|4 z@%O0}ca;2;8q9So;EaV80qxq X?i){waU(Oo-ac{0=wa(1s;F #uP+^8>GTX1RKqf_exF+^Gl+S;Iv zx~qE_SalNW!J7Q4k{34a=|@Wm(8reTr0TP1@;oG9LexGWZY03nkV5o$I=fh0nO^B? zDH4et_pI2kadvcD&7bDe&>iWBolEd-xbu|d)XxJXJOsP_0Zy|uY2YOv2DQ!L+vHn| zj5F -q6pckWvc*g&1Q$5ve?^xT=YP4kV5jFRR;g`!9O4mK z+>$J>@i@QG4hC^Xw`oHiZ{rM%U4OZ3s*P*c@dMGd`A_?T0};~F#!q9+%O2b3_OLGe z9aSiuD70X#x4GbUuCMiu)y8Ky88Q00wR+WBF}zM@s!2IlLTAE|upQUe0T=5W@ee=i zsp+jfIAjd2Lr1ypL&QO#(iot#_>9i4R;lmmVKjz*3xp<;h?V(AYB6czbciDo>gK2u z DO4ALvsiFdtfxw z>2+?4WkpFGZThu6=thL1X3x#DQ$_cqo@yXw%`;Z{fd6~ZXEyWa7o!>Q<5kYN1_Z#s zY;PzAu&7L4X_4n^sjDos2b1KHO~-(VWjtMUABs6M)|5pAgGSA-X&!7y9<`duY<@j$ zh9Dx}kJ?mL^EtgIzF%P2+@60|tf~$a@VY0Dq{Jq(C~yO7KCiSOd#)jT%;vC~G%M$B z)@>|NgS48h+bhz`^tdJB03mYRUo1$2m`rLl^g3 8zsS=$bW*I{|`Qa0xa6g1Zyk-GaLlY;X -{l;5r^sCc=*#jY;Z^m^_~ed)vRzHhO^R?GxobJ;roE3ey(b+gT_rTY=|fOP4E zdC=lc&qDI7pVmsk>DeZ$jJ?g94t4;&S~+_CBv*4);cC|cUP{3FeE7n4z~i4(y|sa+ zuLoYcU3OxZ%6IgawJqZ_Z(m>dkfK}fVUzsMPNzAA7thz5$0F-{Ud^)i41ck+F7S7U zAzsv&juEiEz9+N 5bD|S3JK-IzD7TC{!5P5hCR0 z<%y~skUg%}Bp!p-?D%J~#(tOW&$03+;2`=E$SD4QFTj4U>Wz196>+GnqR}On+G`^G zIZ}Npt6B4{`t2}%6+(qtc%kijW_7*>&`B*X@aCLvFq*}u-Rp8%+{{{24dJ%Zk94qi za07(H5v!t&`EXFUe`Aq5{ub-Lq%US58ZYnq`HR>6&o?-c|NLW~g&uu&_|L?E$GdUI zHV $exjzxR}lwXv3QS}J#ux|8+2 zHJwi pFLWr}tvl zIR1F}K8c%K>!aI@r`& 1hhI|-Q9~%TdIx}S-*Z|zyZF% zXMQODtEO*w64v!=fz|Wg`fA0lV+!b7zdu_!xPCcZZ%bcH!DC@%#s6*|v)H8kE*EwA zwMr>wlEuAOMT%!g`Jcc1kg7Lgh0(matgi69VlR2p`^85yiZlq{?w|;|NyE$TS-{QN zU=1tZ#VYiC1ABhX4n(k~zn&xES2Ym!K yyZ&46N1+NweSSl}Ju~NIw~kEK`O6<|+pA8Y9l0sL zT}?zQIZAsus43WM@ns44v`aon3+>DhF C zja2-Jj`1_^-SuZZPjP-T$p~Jr$E~75w&wy8w@pX~2V)$@hT3g%&191&ov*tG68}|Y zy 5?zV7WrI)~Wj9{46m%8mWA_x88zQLGbbL&Kp?p zd^u~l8HpD7yz!4hk@ N28B=Zafw1y^N3Svnv~~VNxyf@{ zMJil0U+ph|(XfCi(&4fhVf4M93PP<^X+L%7cbqMKEUdeSNT^nLy{sQ$PD>(?k)azN z!eCqYL*-BN;(P-YlTM2UiC}#Fa!1-rk!LSR5f}hVCIo{WF$n3WKqLs`r=U!Wh-eYN z9{(eC==ptdDL!@dk8e)8iV$=X_1rm!-h~Xn2iIv(n`>LlkbC zw=x!Z5fi51VFr|DhT>UaRUF~j9FVNVwfFFSmC 6V71}-aF20XEv#q1>Q~As= zxECaq+||S&8fY%vG4rlG4RVmH?#3i$TByD0y~v6z_*u$j@GkA5Dfc5IdJi&q0g<$O zVj>y<2bM4HLVoLWxD#7FzrS3-3R?QNu7fUANNv6( OS5&M{X{uyJZW=V9_;;Qf#rlq`V^=RXPWeduo=C#^kk^_zEeddp>xK9! zK?pxt2>;fPn1n!ig_x=5uFNWbifHUfhgeko%wd*x4r(6X+P`(v@izy*Gn(xFN$7V) z 14+WM+z7Kp3oCIry{O9IHRz_!l@GO9GSGev6GOE1 d)!;*55WW^gG3uXw
=a7=2d9GJf za~K^Zp?id;aJTs4rrM6!%krn(vhQW@j->ZZXb$h>9fUE04Nwkehh`|*9VEUYKlAbV zeFWGNsmw7yH6ZjZWH+ovpYPb&+Bo&*&1o}MZv88^IC(HDD>bdRuWdk~%}(WXPt`wQ zya={aj?QLPtm*kafv`#7viR5Oo`$Vy*HBqG9BmWo(6_reIX@pYDvs}rj>m$30enBG z`ys}tlKm2)T$#}kTI+sex^q=)F{AY=QO5P*hsS=ya~&r?Lv0TsA>fs?b@LGK@eYqg zixw0qe#}hBL&Fh%LbvI~JJ0*pb^h&8 vY{wF|?FK%y(& zVZ%;7&PU-~u3eZ|Zo~O@9Y3#5?Vq-i!HynJ@|Q)BsQyvh>MsLuP<;GNO{uepIVgSe zimEw`_}AK6zxtAofdk)<{3&}CFXu(^7t}Q2SXoy-6wygcd$C_0(@;ge0fLc?jf*_? z@+KhJl>MC+sI9v>5=2j)8->rA`yBkg(O3d|f`^UF4nVrw&vz%H5)w{8R*fU1;q(qY z^ DBBrn!pF-7w@)4jGA!I=P0VXSG31_Hx!%hpXcr~em! J-g}Kjt+)~%*1QkAyyy>`<5&aKEcBIZpaC)ar~Wz|kw$Kn zEb>-tgv9a53W!B2gGh8O#39X)7Be&=;ugR4PhPg%UmYYk;}gGC8f_F`5N6R>d?zp! zV0k%^Ss^^u^XNjbJPaib)?$ev14AqkSo&7@<_Dmj*L{IGxljkqG1wT_-_9p~u9t$4 zaWkZqFp9&U=Rhw>M9yoCIP*La>0pD~d2MnM6L};jCr{yav8+Lldb<9yH9zcU*_N}q z87hSpr(F*3g*cm_nXu5R*#Y$m*l8%m)A%8DGRY=W1NU?4xFXLd8 baIilH{)a~<9~flx7>_^z 9m>74a5F)p!sqPhwrl%rI#zeMtCS)I~&DqkOmDN!~EW&DsCE z)e!@iN#`7~rA)-DgBT%4u~tRg=2x?W8(K&z!_O)&<2HpWjSF$2_1D19-pNU%Xr}HG zMH6z(C+XJre)-mHrR>xrX~8t7lpnhNT{4&;aMwRm#O(RbyYS!&?qh_#iGAtVaoAq` z68#=5k9r1y$fIPR0|y`GU<}%XpzWHW)b_*tlnX&dM%I06@(hc5L$IH2IlA)@pX7$E zUIMh~N=hfV-W{QXNyr7FYZt>IP~1sF8}~*SDvglze^&jAcxq^+*iG@d$ospXA+r*U zx@WE)RFf%cWk%Rs7e82b(=b>bp1XU3#Ks1 09W3oG#OGFc z6s!5I@X6wAqhgo!ruT2r%FgC~uiuz*8nM0(U^c|k&)olmQwN3<>Fq4Q^@WM0X0l?~ zK|@34M$r@&KH`UEF~!1oFzlQ+26NPk*f&aV{hULe7GhB*iM3h2DIlyy_hO$u#t5k> zicltp=B5e5WVz6&5#H`fKLrK`B1DS!011|~lG10bilmqrbPQ~4s?>c*oTow#{Stbb zmwi-j=SuzZt&5c`XB)V8-`R0AA5z_PA@863!N)q`@CKGoGF!^C2~=SFMu9f!#u-Qj z9olQinYJfWlv9x@y_=g^%g8@d#eG9qc(X&4J-yRnX``ZVMCWovnH7p zt)WgYPNFVJF4eUU{ zot>B%bwWtG<&tO9S^H{rqVib(lR#_S^hezk^%7(yJH8mgYR@Bgcctu`W($;86tU7! z(~?=O<7A1)yh1ycGIb=sS}>sr2F8M%eg xTlHH{_nYqE%L6dU-(wc3$b;E&-!ryTFdnBVZQTMqVw?~Ed1(0 zh6vEitsIYbyh|6jr{Atpd>dH*$E!XSH8-MMguGm43}Ey(5R5#k89ilx0_~8j0{ zIZHW;o&ERlsS0f~)Erf{Q>Af$(>p!6!DPE01pAp4lpul>`r^-UNb_jH@F>*YYYGb@ z>TEv*B41<|{e5Gr@Uob<(YUxcNlD3X-S9aYjeq`7-k&ZRjZO>>e%nXGQy@WCZnJH3 zKDOrmr*6pA_#wfh-!ythxG N%zo*iK9K5lFDLl zWGbv-&7A0I{MejLCv0N^UAkDyL96uy?Le } zK7-8h1-&Ub9bD+WFXac?i{Qo0cCJfU_tQ}6k-BL7`W1cO*zD#(vnDWn*%7Q9t9|y_ z;q_XGrA)~~s 8zVWxH$9wC_J^NBYzd(D5*`(0 zdkcnbAN{Q1+!-zg->LzO-69SQ0~o(drap(bP14XO5dMXN_pr8x4LBeGQ}6GhVg6oO zb+w62Tzw!gV3$6}7b>`kac`3zrQuSkj#}QLLlitQUkK$DO_MPAV?xx4M#3!)i0GEN zLXZZo4cp&t=`x>RVm&MQ{mm`}6)X-yM Of}R`BfR`k;PJYetR}uRI@#(x zTUK8|y;7gVyF86E2%G2og25ZmiR}Kk2XEY=2JcCD8bqO2JLQX_B_!mB4-QM<-JAQ? zksDlrnw*gAvF7oWDHp;lkyY+q3yKFOE+a|CQHqL!-)5EAdb!p@>7-FN!a1p8FFJf+ zn%g!RqrI>n4wpDa+t=In4#$295|r=4P*L39weBd}ck@LI%(+a&0NZ$86y|nAh$dGO z?zZ0Zxjj{%C?RU?FPku4`aRse6$u$1dzQ&u(c{&v%rLIlwbwGP_@nm-!@-)(wL(-j zw^Eo+w#@FcF;IJ)@9WYPo1RmOo3`Y1&^uS8(q-%$DfCxf+2L|%_rI!YVA!7TK|~}f zF3HVdI;~_w@R1{2njxKwxxU$X7S%m+dYV-Lq&t3DG8d!{g_dv7GBApAbL_RmV;o=Q z>&KaiQvSEHAKQg^**#?Tm#OvTXqm+|27eiZD)mLmLBZ$$0i`Y>!AtMOhLIL3V9dU| zIf_sIH@+3a(J@TNhYdC-4~X^Q?{6>vWqPJt%09Hcr-+s;(grJ!V2V)E08WPxTmkEk z3`HYqhusc+2YYwd8mp8jSa#|H+|@ (#o< z-z*(uPx}m-j}vV~o0?pR7i~inrdX3&E+gC8(w)yFn{*6Coqxh{?=Tr2%jn LK=O^&<@|1XOE&fN7HeH@VW4i zJ;|jss1>5XNXP(m1ejm!^$PSq^-luxg|MF^_tQHvScR39xQS#@Mau-Rwo4Sz@~bNQ zl}#XiboVVG+8`z*CmMV^oH~8^)JX?MH9^{`;3kJ)NH^CUV}r{o!IE~R>3ZRNzAM8> zoDg^mH7b2sQM(u@<(W6U0{{bBHT55f$Cj4=u+6RiPKjEQf2jMpmMK*g T0vj!bK{R zBL3FAax w_cCSul`iyQp`ncxdsxava%>lYt3QZSxJ6*NxR|#Zimu#o zsyhPCpk3otG~Kl?Q4xbjM-5(I4VTcnbb}NiLGKNCHMd#Ndw-!AA(_EtRT|fNRy$YM zu1Kk@KUVTQ)qIu9*Pzivk$-rECtP@NAZ 6G80^Ftz|SmI}b;&g$d_ z(P4|URH|y#UYq9|uq1-kx_D_M`9?zww|_{dhQD_cPyfw|B?nFt`B4y#<-g;|q5=|_ z#|SC1it3_{8eC=<&Jd&<9lQAOieL4o1W-<**85_ADV1h 8R6K18no{`Ml+=~H1HrU+O5`A z6{2Kk0C}j9W|xy*UF0rXq^+~=28}iin1_I!ngB%ZnbgG~x 4aO_Q{+AJEC=$pbc zxC`#umLlc6J_}aY=cmwu{-y0qwU*^}AZ{Q(837r8j+Z^*sYirp+%bhRY(%y> D3VGv>0cpp{H|&gaWClQWIHW&(~ZxOqN(iWbMzF*-@e4v3|ef z$_5aLhqE3?tbY!qQ{l8Zl&8A;D27iuOsT$*TPtv33zXyf d<6on4UJ_N?94+jdasdE00M%E?rI$gIv? zi(wy9u8fi8aX(ZdyMejVXTX$E_|>&FL}X-EPk5k9)(9x{nJ&~qU*3sQu1jvUka+KB zx~`J}AQzy6!)z2x^tE}*!Na3@E}e)oM-pOoKBMq?Uvs*05ObTjc|@(uC;PdMaIC8l z@Ze*KKSc2#bl?6}N&$kaf0yiT=>@Xy(P&-AAh-OYz4H{%7Yne1{Dhy^5f^$=$5V~w za~#^9rM-kPip>kh7bo{~5i>lV<|N&h4+|MWo@a=mA VHbVIQyrRq%Hnr++|_o=H&) 1gnylbo|pF%N7iY=5gw&9%GT ztmD-< M4c`!(K7t-K5VZtkqwWQ1Ya7ZB9}$|>6i2LmIZ4(lYdg{LgJ zUWTX8_KAm{g@sOFyL19*JsKPwG}!5nG*wgJsvN-u2DAsOcbUK)JK69l?h^yq {Nh1!x854paY{Ux=#-Fz5HVSD|Ku__?r5@4rR&%f|-a zMPN0TkBFl~#@P*HzB;Jq*nHG|E=WRtz|JJ$^XK0pT*T%^E<%i#e7S^P<<}hGp!ky8 zwAt6@`LG?1>>^Fg1d+gMyUO{=nEuKBu9VA{j)t&s6i-Oa6tVrR?f3f;5gICSgglS_ zv%q4|2(E2jS-IgF?!{z(3tOL<`)CH{{c@>K6|>&X&II+=COZVr!up{!$jSMEI^j{d zN+y$Xxh~cVnS|)|TcpKmqr-oDyukiy5~H?h#PDB$JD~v28#f#b@U?ROp iCSFc_nDzP%#19!uL(+dAB4?3!Ta$bW7cVnWPN!kBHR=#~x29BE@N@Uw@D-Rd(W zOb4da(S1c@uw4$E{fjX%Rn?fuRk|HBcYc7qw>jlS)MvGc4)D@5cYNV438zZ)XIJ3} zH(op*9v-!-<>5-=5d6DcQtFOd6o`rp-M|0pa?5K|MjYIExf@q#I< Oh( zS5;MEeCs@|aa`57E1Tezo-E!IA4vuqbNEH`k6l&p;N6;&(nM3T9!?3~+ti>0mIzZp z7xuuk4>$8R)g p7 u~d%J)nWpU(~Xusr4O+D)EH&xQqj8xMOtH{JOF~R12=%(+tDqnYu?GoDmR6o=t zX5Jvf(!KEc?s#rwafYqJ-}OAf3q9dBSa2D#_WF?Wj(GZayU3$1clKNTYzTIqh^s(c z^eOuYk2@v4kATFzO?c6okv8L(JnJ>2h)F+`EM?t3ZH)yC3mE~QT?5lSOVn#qOkgoV zy-tggc561M6ZPYzF4hn#IIhzPGSp2BgXMLAlK+5^(o2`Vo;Lo~KJ)K~8#aP&Ip TAiJ+XLT&7DrB t&t)F7XJz zOkYUZ%rL0z&qAXr`1p?PYzS+s+Oe6s;SCKGOcfbd);pgL0kJlgN~ZgS*-mJ*V2!qm z35t5DDw)KJ%&*S>IZS#u(j=| zT-HjVM6f6yy@~aDul xBCAx_E81 zH8UM^%ii>Ci33wWAE?n$%XPf)WL0W6oF`>`-k)c@Yb|?$H6yP4sIo)^`_!kUAHbTB zKA)cvEvrcU`Ny79^6TPN>JN3%O=qV!$`|f!(8nktti4H!d*Xfcll1$wfOwI2Yu`r@ z-57t(2J7}ehi$v)sQq@PF4-*CD-Q+%;-!hM9-fcui5;JS@?XMmXkQpilgAn)U+xz4 zKdRBZR*XR5X1<}k!=yti3&=IBTA;6xXj8HTv!7vm72RGBy8*~51gMIa(fgl!W? !Hv}zn0#tH-4}+x#AMD=)Y>tU;VnB?>aCZi^DfS2 zZ1OpMT!NjwmOVZ%e~H0*1Xj4ck0(vlnuQF0-sBuo9{?qdwAg!c?;z<+kgs>J+wB9?@)D1k@8MmvQUdk^uQ196{gMSP6L+FgP2|*ALm~k*Z?Sni2sM_jM9! zzRC^sT`AMsNki1pT)R2kdqNz7Mx5$@wRz4H9|%FKgGlsonPfGGMGhKvoQ}Au4k{;0 zm?q93p9*y@&I~`9uAM#LJ>m5gZQv4fHw5o+FBbkp?_4qRbyhr3R%7b`YSdGu+hR(_ z3wU+5h_IW_h<<|cN$gt{Her$s_C|1l!m9V@d4`<4+O~BZ3*xMA*_|jCY7G=t4c_*f zG|~_ua(KglY{MP|f7f09b^mvIx^BN|=>;x!lO|@_67LXkCdlKm{jz1tn$o6kG| $JvN-ETyl)V|TvOB+Dt*0CE13QELJ zK=x0tsg9{f7B2r4{q^9pGk3t1_D0mx-5x~P_Q=i |*Ebi}&phoI+|NA;}w0|PVp%2en+&{1Yi&hGl$5oJAc{BNRW^A=5 zwl2nb+503Z=kvxW0m8YN%BbS>aHeTxK?QH_RwKehp>_>mfQkIt1Ppn60DxU~)0r$o z-{HNo+qDH~^(|3xKAH{!I(3b-Btv;|%UT;mH8nN20Sds_#Dr}LvdLZfeW1Lef@)}= zvn_gP#a{K$StTWKWo&df4`5YL<>8GV*WK>i-}!%$9$j@XJ8yA7gkCw^zP&PtJ#oEy zoeBcK -`fea`YvtX5H9AUXUMA6-SZ*d3DQH}9eJNeu4IMX zRJ9{d+H@n@3}$|j8U&(mt`GV^UiKCcXS{2D(pj?WrvCA`+EenKv)O_bu(K!zQ__e$ z^heUq(MqU?&zBkPnZ2=<3AKNjy=a^--5RKGuuqCKnmE>h2ICCGX6M+V51^z8xDSey zj!vprh0Z9WxBpM)LW`>%z`oJ==@4@;Z~$_hQ_XeoU(U}Hk`g8hb2vIySJJoh$iu?I zztS;Lv(kr;mNS6C;K8vm6OYh4bSsmk>Yl+AelAJow@q=-A3V+%P5u5`i{;oJt4oJg zIFf_cAkH1LJ(E%{^$C`PV@)_wF{ntC9@@FHf6ZT~y1Hx#D*UTdSFU01HosnCZyBh~ z`LE)Dx51P}4c18$vT{Wer1;%6D@EZHh#Uqprom@kgoagJ=-5j$9prqNI@Y9C72=ku zuFILq(w?0LwtH$7T2z3UM@L8hIT(;FNcbMJqsgK6rWH`dY_n7?md5K|Eh#HqGk9}- z`<-We%w{?FRJa?pRfm{M>f3DHFG lzsQ8&oWvba8CvMa~=``B)3<%44`>I; $@i=B6~Zlt~2+eIDkNg+&g4{|)|rUZ1O!)(;B!X@FX z19`6TMXFmaw 5E{Q8P%Jb+(l=_xe#A=sRMq<3 ztNGD!hI;7sMtY_wU6Z#e=UoO(F AN*_ z`$wr!%|mhdqBW kWfeyCImVGj?Yvo)EnuOYp{I|6x`y zkNeib?X)2XvUEqXu|!H;A4A)Qn?HW+y1$1Lg?xPjKOGIeYxCOyGAnTwY^|1wtqZ@U z3Rr3!8S&v;i6051AS=lNXGCW2!aLjADufX>_m0hf?#bK$t>@4JYvVQqCXkx~`=D60 z{{p`07>l(2<-AVWCq&GL5a|{135zLb8KceA(v3h_rMWpTataqvo?T<0$wa#%s<$0N zPqww~5gO655pgYO-SfGAV!`}-|IZY_t;qBXaqH(7K|rMt0ei051?sqLJD3=v4~c(n zf6 zxKYeA|9Z9W)bx|*{dvZWh9s3T&L-`bxWf0VOI(}|v*mCnF^|G|EeGT`JLdtGGhp6M zsGx>u5d>T$Y9gnz@%F(UHF`c1ZeV-0|BSr-fQW~JvMoTL9|j&l2k}EpPP9_k!2f^s C7r%)B literal 0 HcmV?d00001 diff --git a/icons/safe_dial.png b/icons/ui_icons/safe_dial.png similarity index 100% rename from icons/safe_dial.png rename to icons/ui_icons/safe_dial.png diff --git a/paradise.dme b/paradise.dme index 50ffe7ecf947..f232da7df0cb 100644 --- a/paradise.dme +++ b/paradise.dme @@ -1510,6 +1510,7 @@ #include "code\modules\asset_cache\assets\asset_claw_game.dm" #include "code\modules\asset_cache\assets\asset_cloning.dm" #include "code\modules\asset_cache\assets\asset_common.dm" +#include "code\modules\asset_cache\assets\asset_emoji.dm" #include "code\modules\asset_cache\assets\asset_jquery.dm" #include "code\modules\asset_cache\assets\asset_materials.dm" #include "code\modules\asset_cache\assets\asset_mob_hunt.dm" @@ -1743,6 +1744,8 @@ #include "code\modules\economy\economy_machinery\atm.dm" #include "code\modules\economy\economy_machinery\economy_machinery.dm" #include "code\modules\economy\economy_machinery\eftpos.dm" +#include "code\modules\emoji\emoji_parse.dm" +#include "code\modules\emoji\emojipedia.dm" #include "code\modules\error_handler\error_handler.dm" #include "code\modules\error_handler\error_viewer.dm" #include "code\modules\events\abductor_event.dm" diff --git a/tgui/packages/tgui-panel/styles/tgchat/chat-dark.scss b/tgui/packages/tgui-panel/styles/tgchat/chat-dark.scss index 26a44a6ac67b..996aacc3bf14 100644 --- a/tgui/packages/tgui-panel/styles/tgchat/chat-dark.scss +++ b/tgui/packages/tgui-panel/styles/tgchat/chat-dark.scss @@ -23,6 +23,10 @@ img.icon { vertical-align: bottom; } +.emoji16x16 { + vertical-align: middle; +} + a { color: #397ea5; } diff --git a/tgui/packages/tgui/interfaces/Emojipedia.tsx b/tgui/packages/tgui/interfaces/Emojipedia.tsx new file mode 100644 index 000000000000..4095ef96b245 --- /dev/null +++ b/tgui/packages/tgui/interfaces/Emojipedia.tsx @@ -0,0 +1,72 @@ +import { classes } from 'common/react'; +import { useBackend, useLocalState } from '../backend'; +import { Button, Input, Section } from '../components'; +import { Window } from '../layouts'; + +type Data = { + emoji_list: Emoji[]; +}; + +type Emoji = { + name: string; +}; + +export const Emojipedia = (props, context) => { + const { data } = useBackend(context); + const { emoji_list } = data; + const [searchText, setSearchText] = useLocalState(context, 'searchText', ''); + const filteredEmoji = emoji_list.filter((emoji) => + emoji.name.toLowerCase().includes(searchText.toLowerCase()) + ); + + return ( + + + ); +}; + +const copyText = (text: string) => { + const input = document.createElement('input'); + const formattedText = `:${text}:`; + input.value = formattedText; + document.body.appendChild(input); + input.select(); + document.execCommand('copy'); + document.body.removeChild(input); +}; diff --git a/tgui/public/tgui-panel.bundle.css b/tgui/public/tgui-panel.bundle.css index da2e584dc9a4..b4b7d06ef3f5 100644 --- a/tgui/public/tgui-panel.bundle.css +++ b/tgui/public/tgui-panel.bundle.css @@ -1 +1 @@ -html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a!important}.color-white{color:#fff!important}.color-red{color:#df3e3e!important}.color-orange{color:#f37f33!important}.color-yellow{color:#fbda21!important}.color-olive{color:#cbe41c!important}.color-green{color:#25ca4c!important}.color-teal{color:#00d6cc!important}.color-blue{color:#2e93de!important}.color-violet{color:#7349cf!important}.color-purple{color:#ad45d0!important}.color-pink{color:#e34da1!important}.color-brown{color:#b97447!important}.color-grey{color:#848484!important}.color-good{color:#68c22d!important}.color-average{color:#f29a29!important}.color-bad{color:#df3e3e!important}.color-label{color:#8b9bb0!important}.color-bg-black{background-color:#000!important}.color-bg-white{background-color:#d9d9d9!important}.color-bg-red{background-color:#bd2020!important}.color-bg-orange{background-color:#d95e0c!important}.color-bg-yellow{background-color:#d9b804!important}.color-bg-olive{background-color:#9aad14!important}.color-bg-green{background-color:#1b9638!important}.color-bg-teal{background-color:#009a93!important}.color-bg-blue{background-color:#1c71b1!important}.color-bg-violet{background-color:#552dab!important}.color-bg-purple{background-color:#8b2baa!important}.color-bg-pink{background-color:#cf2082!important}.color-bg-brown{background-color:#8c5836!important}.color-bg-grey{background-color:#646464!important}.color-bg-good{background-color:#4d9121!important}.color-bg-average{background-color:#cd7a0d!important}.color-bg-bad{background-color:#bd2020!important}.color-bg-label{background-color:#657a94!important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9)!important;background:rgba(0,0,0,0)!important;outline:1px solid rgba(255,255,255,.5)!important;box-shadow:none!important;filter:none!important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8)!important}.outline-dotted{outline-style:dotted!important}.outline-dashed{outline-style:dashed!important}.outline-solid{outline-style:solid!important}.outline-double{outline-style:double!important}.outline-groove{outline-style:groove!important}.outline-ridge{outline-style:ridge!important}.outline-inset{outline-style:inset!important}.outline-outset{outline-style:outset!important}.outline-color-black{outline:.167rem solid #1a1a1a!important}.outline-color-white{outline:.167rem solid #fff!important}.outline-color-red{outline:.167rem solid #df3e3e!important}.outline-color-orange{outline:.167rem solid #f37f33!important}.outline-color-yellow{outline:.167rem solid #fbda21!important}.outline-color-olive{outline:.167rem solid #cbe41c!important}.outline-color-green{outline:.167rem solid #25ca4c!important}.outline-color-teal{outline:.167rem solid #00d6cc!important}.outline-color-blue{outline:.167rem solid #2e93de!important}.outline-color-violet{outline:.167rem solid #7349cf!important}.outline-color-purple{outline:.167rem solid #ad45d0!important}.outline-color-pink{outline:.167rem solid #e34da1!important}.outline-color-brown{outline:.167rem solid #b97447!important}.outline-color-grey{outline:.167rem solid #848484!important}.outline-color-good{outline:.167rem solid #68c22d!important}.outline-color-average{outline:.167rem solid #f29a29!important}.outline-color-bad{outline:.167rem solid #df3e3e!important}.outline-color-label{outline:.167rem solid #8b9bb0!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:700}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconRight .fa,.Button--hasContent.Button--iconRight .fas,.Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--multiLine{white-space:normal;word-wrap:break-word}.Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.Button--color--black:focus{transition:color .25s,background-color .25s}.Button--color--black:hover{background-color:#101010;color:#fff}.Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.Button--color--white:focus{transition:color .25s,background-color .25s}.Button--color--white:hover{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--red:focus{transition:color .25s,background-color .25s}.Button--color--red:hover{background-color:#d93f3f;color:#fff}.Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.Button--color--orange:focus{transition:color .25s,background-color .25s}.Button--color--orange:hover{background-color:#ef7e33;color:#fff}.Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--yellow:focus{transition:color .25s,background-color .25s}.Button--color--yellow:hover{background-color:#f5d523;color:#000}.Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.Button--color--olive:focus{transition:color .25s,background-color .25s}.Button--color--olive:hover{background-color:#bdd327;color:#fff}.Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--color--green:focus{transition:color .25s,background-color .25s}.Button--color--green:hover{background-color:#2fb94f;color:#fff}.Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.Button--color--teal:focus{transition:color .25s,background-color .25s}.Button--color--teal:hover{background-color:#10bdb6;color:#fff}.Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.Button--color--blue:focus{transition:color .25s,background-color .25s}.Button--color--blue:hover{background-color:#308fd6;color:#fff}.Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.Button--color--violet:focus{transition:color .25s,background-color .25s}.Button--color--violet:hover{background-color:#7249ca;color:#fff}.Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.Button--color--purple:focus{transition:color .25s,background-color .25s}.Button--color--purple:hover{background-color:#aa46ca;color:#fff}.Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.Button--color--pink:focus{transition:color .25s,background-color .25s}.Button--color--pink:hover{background-color:#e04ca0;color:#fff}.Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.Button--color--brown:focus{transition:color .25s,background-color .25s}.Button--color--brown:hover{background-color:#ae724c;color:#fff}.Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.Button--color--grey:focus{transition:color .25s,background-color .25s}.Button--color--grey:hover{background-color:#818181;color:#fff}.Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.Button--color--good:focus{transition:color .25s,background-color .25s}.Button--color--good:hover{background-color:#67b335;color:#fff}.Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.Button--color--average:focus{transition:color .25s,background-color .25s}.Button--color--average:hover{background-color:#eb972b;color:#fff}.Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--bad:focus{transition:color .25s,background-color .25s}.Button--color--bad:hover{background-color:#d93f3f;color:#fff}.Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.Button--color--label:focus{transition:color .25s,background-color .25s}.Button--color--label:hover{background-color:#8a9aae;color:#fff}.Button--color--default{transition:color .1s,background-color .1s;background-color:#3e6189;color:#fff}.Button--color--default:focus{transition:color .25s,background-color .25s}.Button--color--default:hover{background-color:#567daa;color:#fff}.Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--caution:focus{transition:color .25s,background-color .25s}.Button--color--caution:hover{background-color:#f5d523;color:#000}.Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--danger:focus{transition:color .25s,background-color .25s}.Button--color--danger:hover{background-color:#d93f3f;color:#fff}.Button--color--transparent{transition:color .1s,background-color .1s;background-color:#202020;color:#fff;background-color:rgba(32,32,32,0);color:rgba(255,255,255,.5)}.Button--color--transparent:focus{transition:color .25s,background-color .25s}.Button--color--transparent:hover{background-color:#343434;color:#fff}.Button--color--translucent{transition:color .1s,background-color .1s;background-color:#202020;color:#fff;background-color:rgba(32,32,32,.6);color:rgba(255,255,255,.5)}.Button--color--translucent:focus{transition:color .25s,background-color .25s}.Button--color--translucent:hover{background-color:#343434;color:#fff}.Button--disabled{background-color:#999!important}.Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--selected:focus{transition:color .25s,background-color .25s}.Button--selected:hover{background-color:#2fb94f;color:#fff}.Button--modal{float:right;z-index:1;margin-top:-.5rem}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Dropdown{position:relative;align-items:center}.Dropdown__control{display:inline-block;align-items:center;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.3333333333em;-ms-user-select:none;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{overflow-y:auto;align-items:center;z-index:5;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-scroll{overflow-y:scroll}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color .1s ease-out}.Dropdown__menuentry.selected{background-color:rgba(255,255,255,.5)!important;transition:background-color 0ms}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em);text-align:left;padding-top:2.5px}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:block}.Flex--iefix.Flex--inline,.Flex__item--iefix{display:inline-block}.Flex--iefix--column>.Flex__item--iefix{display:block}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue,.Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Knob__popupValue--right{top:.25rem;right:-50%}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotate(135deg)}.Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotate(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-.25em -.5em 0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#202020;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#181818;scrollbar-face-color:#363636;scrollbar-3dlight-color:#202020;scrollbar-highlight-color:#202020;scrollbar-track-color:#181818;scrollbar-arrow-color:#909090;scrollbar-shadow-color:#363636}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.ProgressBar__fill--animated{transition:background-color .5s,width .5s}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--disabled{border:1px solid #999}.ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.ProgressBar--color--black{border:.0833333333em solid #000!important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464!important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94!important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.Section{position:relative;margin-bottom:.5em;background-color:#131313;box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.Section .Section:first-child{margin-top:-.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Slider:not(.Slider__disabled){cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--zebra>.Stack__item:nth-child(2n){background-color:#131313}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:700;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:#131313}.Tabs--fill{height:100%}.Section .Tabs{background-color:rgba(0,0,0,0)}.Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:Consolas,monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.Chat{color:#abc6ec}.Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.Chat__badge:before{content:"x"}.Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.Chat__scrollButton{position:fixed;right:2em;bottom:1em}.Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#131313}.Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.Chat__highlight{color:#000}.Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.ChatMessage{word-wrap:break-word}.ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.Ping{position:relative;padding:.125em .25em;border:.0833333333em solid rgba(140,140,140,.5);border-radius:.25em;width:3.75em;text-align:right}.Ping__indicator{content:"";position:absolute;top:.5em;left:.5em;width:.5em;height:.5em;background-color:#888;border-radius:.25em}.Notifications{position:absolute;top:1em;left:.75em;right:2em}.Notification{color:#fff;background-color:#dc143c;padding:.5em;margin:1em 0}.Notification:first-child{margin-top:0}.Notification:last-child{margin-bottom:0}.Layout,.Layout *{scrollbar-base-color:#181818;scrollbar-face-color:#363636;scrollbar-3dlight-color:#202020;scrollbar-highlight-color:#202020;scrollbar-track-color:#181818;scrollbar-arrow-color:#909090;scrollbar-shadow-color:#363636}.Layout::-webkit-scrollbar,.Layout *::-webkit-scrollbar{width:12px}.Layout::-webkit-scrollbar-track,.Layout *::-webkit-scrollbar-track{background:#181818}.Layout::-webkit-scrollbar-thumb,.Layout *::-webkit-scrollbar-thumb{background:#363636}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.Layout__content--noMargin{margin:0}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#202020;background-image:linear-gradient(to bottom,#202020,#202020)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(56,56,56,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}img{margin:0;padding:0;line-height:1;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}img.icon{height:1em;min-height:16px;width:auto;vertical-align:bottom}a{color:#397ea5}a.popt{text-decoration:none}.popup{position:fixed;top:50%;left:50%;background:#ddd}.popup .close{position:absolute;background:#aaa;top:0;right:0;color:#333;text-decoration:none;z-index:2;padding:0 10px;height:30px;line-height:30px}.popup .close:hover{background:#999}.popup .head{background:#999;color:#ddd;padding:0 10px;height:30px;line-height:30px;text-transform:uppercase;font-size:.9em;font-weight:700;border-bottom:2px solid green}.popup input{border:1px solid #999;background:#fff;margin:0;padding:5px;outline:none;color:#333}.popup input[type=text]:hover,.popup input[type=text]:active,.popup input[type=text]:focus{border-color:green}.popup input[type=submit]{padding:5px 10px;background:#999;color:#ddd;text-transform:uppercase;font-size:.9em;font-weight:700}.popup input[type=submit]:hover,.popup input[type=submit]:focus,.popup input[type=submit]:active{background:#aaa;cursor:pointer}.changeFont{padding:10px}.changeFont a{display:block;text-decoration:none;padding:3px;color:#333}.changeFont a:hover{background:#ccc}.highlightPopup{padding:10px;text-align:center}.highlightPopup input[type=text]{display:block;width:215px;text-align:left;margin-top:5px}.highlightPopup input.highlightColor{background-color:#ff0}.highlightPopup input.highlightTermSubmit{margin-top:5px}.contextMenu{background-color:#ddd;position:fixed;margin:2px;width:150px}.contextMenu a{display:block;padding:2px 5px;text-decoration:none;color:#333}.contextMenu a:hover{background-color:#ccc}.filterMessages{padding:5px}.filterMessages div{padding:2px 0}.icon-stack{height:1em;line-height:1em;width:1em;vertical-align:middle;margin-top:-2px}.motd{color:#a4bad6;font-family:Verdana,sans-serif;white-space:normal}.motd h1,.motd h2,.motd h3,.motd h4,.motd h5,.motd h6{color:#a4bad6;text-decoration:underline}.motd a,.motd a:link,.motd a:active,.motd a:hover{color:#a4bad6}.italic,.italics,.emote{font-style:italic}.highlight{background:#ff0}h1,h2,h3,h4,h5,h6{color:#a4bad6;font-family:Georgia,Verdana,sans-serif}em{font-style:normal;font-weight:700}.darkmblue{color:#6685f5}.prefix,.ooc{font-weight:700}.looc{color:#69c;font-weight:700}.adminobserverooc{color:#09c;font-weight:700}.adminooc{color:#b82e00;font-weight:700}.adminobserver{color:#960;font-weight:700}.admin{color:#386aff;font-weight:700}.adminsay{color:#9611d4;font-weight:700}.mentorhelp{color:#07b;font-weight:700}.adminhelp{color:#a00;font-weight:700}.playerreply{color:#80b;font-weight:700}.pmsend{color:#6685f5}.debug{color:#6d2f83}.name,.yell{font-weight:700}.siliconsay{font-family:Courier New,Courier,monospace}.deadsay{color:#e2c1ff}.radio{color:#20b142}.deptradio{color:#939}.comradio{color:#5f5cff}.syndradio{color:#8f4a4b}.dsquadradio{color:#998599}.resteamradio{color:#18bc46}.airadio{color:#ff5ed7}.centradio{color:#2681a5}.secradio{color:#dd3535}.engradio{color:#feac20}.medradio{color:#00b5ad}.sciradio{color:#c68cfa}.supradio{color:#b88646}.srvradio{color:#bbd164}.proradio{color:#b84f92}.admin_channel{color:#03fc9d;font-weight:700}.all_admin_ping{color:#12a5f4;font-weight:700;font-size:120%;text-align:center}.mentor_channel{color:#775bff;font-weight:700}.mentor_channel_admin{color:#a35cff;font-weight:700}.djradio{color:#960}.binaryradio{color:#1b00fb;font-family:Courier New,Courier,monospace}.mommiradio{color:#6685f5}.alert{color:#d82020}h1.alert,h2.alert{color:#a4bad6}.ghostalert{color:#cc00c6;font-style:italic;font-weight:700}.emote{font-style:italic}.selecteddna{color:#a4bad6;background-color:#001b1b}.attack{color:red}.moderate{color:#c00}.disarm{color:#900}.passive{color:#600}.warning{color:#c51e1e;font-style:italic}.boldwarning{color:#c51e1e;font-style:italic;font-weight:700}.danger{color:#c51e1e;font-weight:700}.userdanger{color:#c51e1e;font-weight:700;font-size:120%}.biggerdanger{color:red;font-weight:700;font-size:150%}.info{color:#9ab0ff}.notice{color:#6685f5}.boldnotice{color:#6685f5;font-weight:700}.suicide{color:#ff5050;font-style:italic}.green{color:#03bb39}.pr_announce,.boldannounceic,.boldannounceooc{color:#c51e1e;font-weight:700}.greenannounce{color:#059223;font-weight:700}.alien{color:#c433c4}.noticealien{color:#00c000}.alertalien{color:#00c000;font-weight:700}.terrorspider{color:#cf52fa}.dantalion{color:#8b2c5e}.chaosverygood{color:#19e0c0;font-weight:700;font-size:120%}.chaosgood{color:#19e0c0;font-weight:700}.chaosneutral{color:#479ac0;font-weight:700}.chaosbad{color:#9047c0;font-weight:700}.chaosverybad{color:#9047c0;font-weight:700;font-size:120%}.sinister{color:purple;font-weight:700;font-style:italic}.medal{font-weight:700}.blob{color:#006221;font-weight:700;font-style:italic}.confirm{color:#00af3b}.rose{color:#ff5050}.sans{font-family:Comic Sans MS,cursive,sans-serif}.wingdings{font-family:Wingdings,Webdings}.robot{font-family:OCR-A,monospace;font-size:1.15em;font-weight:700}.ancient{color:#008b8b;font-style:italic}.newscaster{color:#c00}.mod{color:#735638;font-weight:700}.modooc{color:#184880;font-weight:700}.adminmod{color:#f0aa14;font-weight:700}.tajaran{color:#803b56}.skrell{color:#00ced1}.solcom{color:#8282fb}.com_srus{color:#7c4848}.zombie{color:red}.soghun{color:#228b22}.changeling{color:#00b4de}.vox{color:#a0a}.diona{color:#804000;font-weight:700}.trinary{color:#727272}.kidan{color:#c64c05}.slime{color:#07a}.drask{color:#a3d4eb;font-family:Arial Black}.moth{color:#869b29;font-family:Copperplate}.clown{color:red}.vulpkanin{color:#b97a57}.abductor{color:purple;font-style:italic}.mind_control{color:#a00d6f;font-size:3;font-weight:700;font-style:italic}.rough{font-family:Trebuchet MS,cursive,sans-serif}.say_quote{font-family:Georgia,Verdana,sans-serif}.cult{color:purple;font-weight:700;font-style:italic}.cultspeech{color:#af0000;font-style:italic}.cultitalic{color:#a60000;font-style:italic}.cultlarge{color:#a60000;font-weight:700;font-size:120%}.narsie{color:#a60000;font-weight:700;font-size:300%}.narsiesmall{color:#a60000;font-weight:700;font-size:200%}.interface{color:#9031c4}.big{font-size:150%}.reallybig{font-size:175%}.greentext{color:#0f0;font-size:150%}.redtext{color:red;font-size:150%}.bold{font-weight:700}.his_grace{color:#15d512;font-family:Courier New,cursive,sans-serif;font-style:italic}.center{text-align:center}.red{color:red}.purple{color:#9031c4}.skeleton{color:#c8c8c8;font-weight:700;font-style:italic}.gutter{color:#7092be;font-family:Trebuchet MS,cursive,sans-serif}.orange{color:orange}.orangei{color:orange;font-style:italic}.orangeb{color:orange;font-weight:700}.resonate{color:#298f85}.healthscan_oxy{color:#5cc9ff}.revennotice{color:#6685f5}.revenboldnotice{color:#6685f5;font-weight:700}.revenbignotice{color:#6685f5;font-weight:700;font-size:120%}.revenminor{color:#823abb}.revenwarning{color:#760fbb;font-style:italic}.revendanger{color:#760fbb;font-weight:700;font-size:120%}.specialnotice{color:#4a6f82;font-weight:700;font-size:120%}.good{color:green}.average{color:#ff8000}.bad{color:red}.italics,.talkinto{font-style:italic}.whisper{font-style:italic;color:#ccc}.recruit{color:#5c00e6;font-weight:700;font-style:italic}.memo{color:#638500;text-align:center}.memoedit{text-align:center;font-size:75%}.connectionClosed,.fatalError{background:red;color:#fff;padding:5px}.connectionClosed.restored{background:green}.internal.boldnshit{color:#6685f5;font-weight:700}.rebooting{background:#2979af;color:#fff;padding:5px}.rebooting a{color:#fff!important;text-decoration-color:#fff!important}.text-normal{font-weight:400;font-style:normal}.hidden{display:none;visibility:hidden}.colossus{color:#7f282a;font-size:175%}.hierophant{color:#609;font-weight:700;font-style:italic}.hierophant_warning{color:#609;font-style:italic}.emoji{max-height:16px;max-width:16px}.adminticket{color:#3daf21;font-weight:700}.adminticketalt{color:#ccb847;font-weight:700}span.body .codephrases{color:#55f}span.body .coderesponses{color:#f33}.announcement h1,.announcement h2{color:#a4bad6;margin:8pt 0;line-height:1.2}.announcement p{color:#d82020;line-height:1.3}.announcement.minor h1{font-size:180%}.announcement.minor h2{font-size:170%}.announcement.sec h1{color:red;font-size:180%;font-family:Verdana,sans-serif}.bolditalics{font-style:italic;font-weight:700}.boxed_message{background:#1b1c1e;border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.boxed_message.left_align_text{text-align:left}.boxed_message.red_border{background:#1e1b1b;border-color:#a00}.boxed_message.green_border{background:#1b1e1c;border-color:#0f0}.boxed_message.purple_border{background:#1d1c1f;border-color:#8000ff}.boxed_message.notice_border{background:#1b1c1e;border-color:#6685f5}.boxed_message.thick_border{border-width:thick}.theme-light .color-black{color:#000!important}.theme-light .color-white{color:#e6e6e6!important}.theme-light .color-red{color:#c82121!important}.theme-light .color-orange{color:#e6630d!important}.theme-light .color-yellow{color:#e5c304!important}.theme-light .color-olive{color:#a3b816!important}.theme-light .color-green{color:#1d9f3b!important}.theme-light .color-teal{color:#00a39c!important}.theme-light .color-blue{color:#1e78bb!important}.theme-light .color-violet{color:#5a30b5!important}.theme-light .color-purple{color:#932eb4!important}.theme-light .color-pink{color:#db228a!important}.theme-light .color-brown{color:#955d39!important}.theme-light .color-grey{color:#e6e6e6!important}.theme-light .color-good{color:#529923!important}.theme-light .color-average{color:#da810e!important}.theme-light .color-bad{color:#c82121!important}.theme-light .color-label{color:#353535!important}.theme-light .color-bg-black{background-color:#000!important}.theme-light .color-bg-white{background-color:#bfbfbf!important}.theme-light .color-bg-red{background-color:#a61c1c!important}.theme-light .color-bg-orange{background-color:#c0530b!important}.theme-light .color-bg-yellow{background-color:#bfa303!important}.theme-light .color-bg-olive{background-color:#889912!important}.theme-light .color-bg-green{background-color:#188532!important}.theme-light .color-bg-teal{background-color:#008882!important}.theme-light .color-bg-blue{background-color:#19649c!important}.theme-light .color-bg-violet{background-color:#4b2897!important}.theme-light .color-bg-purple{background-color:#7a2696!important}.theme-light .color-bg-pink{background-color:#b61d73!important}.theme-light .color-bg-brown{background-color:#7c4d2f!important}.theme-light .color-bg-grey{background-color:#bfbfbf!important}.theme-light .color-bg-good{background-color:#44801d!important}.theme-light .color-bg-average{background-color:#b56b0b!important}.theme-light .color-bg-bad{background-color:#a61c1c!important}.theme-light .color-bg-label{background-color:#2c2c2c!important}.theme-light .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:#fff}.theme-light .Tabs--fill{height:100%}.theme-light .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-light .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-light .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-light .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-light .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-light .Tabs--horizontal:last-child{margin-bottom:0}.theme-light .Tabs__Tab{flex-grow:0}.theme-light .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-light .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(0,0,0,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-light .Tab:not(.Tab--selected):hover{background-color:rgba(0,0,0,.075);transition:background-color 0}.theme-light .Tab--selected{background-color:rgba(0,0,0,.125);color:#404040}.theme-light .Tab__text{flex-grow:1;margin:0 .5em}.theme-light .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-light .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-light .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-light .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #000}.theme-light .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-light .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #000}.theme-light .Tab--selected.Tab--color--black{color:#404040}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#000}.theme-light .Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#000}.theme-light .Tab--selected.Tab--color--white{color:#ececec}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#e6e6e6}.theme-light .Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#e6e6e6}.theme-light .Tab--selected.Tab--color--red{color:#e14d4d}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#c82121}.theme-light .Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#c82121}.theme-light .Tab--selected.Tab--color--orange{color:#f48942}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#e6630d}.theme-light .Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#e6630d}.theme-light .Tab--selected.Tab--color--yellow{color:#fcdd33}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#e5c304}.theme-light .Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#e5c304}.theme-light .Tab--selected.Tab--color--olive{color:#d0e732}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#a3b816}.theme-light .Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#a3b816}.theme-light .Tab--selected.Tab--color--green{color:#33da5a}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#1d9f3b}.theme-light .Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#1d9f3b}.theme-light .Tab--selected.Tab--color--teal{color:#00faef}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00a39c}.theme-light .Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00a39c}.theme-light .Tab--selected.Tab--color--blue{color:#419ce1}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#1e78bb}.theme-light .Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#1e78bb}.theme-light .Tab--selected.Tab--color--violet{color:#7f58d3}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#5a30b5}.theme-light .Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#5a30b5}.theme-light .Tab--selected.Tab--color--purple{color:#b455d4}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#932eb4}.theme-light .Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#932eb4}.theme-light .Tab--selected.Tab--color--pink{color:#e558a7}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#db228a}.theme-light .Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#db228a}.theme-light .Tab--selected.Tab--color--brown{color:#c0825a}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#955d39}.theme-light .Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#955d39}.theme-light .Tab--selected.Tab--color--grey{color:#ececec}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#e6e6e6}.theme-light .Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#e6e6e6}.theme-light .Tab--selected.Tab--color--good{color:#77d23b}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#529923}.theme-light .Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#529923}.theme-light .Tab--selected.Tab--color--average{color:#f3a23a}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#da810e}.theme-light .Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#da810e}.theme-light .Tab--selected.Tab--color--bad{color:#e14d4d}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#c82121}.theme-light .Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#c82121}.theme-light .Tab--selected.Tab--color--label{color:#686868}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#353535}.theme-light .Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#353535}.theme-light .Section{position:relative;margin-bottom:.5em;background-color:#fff;box-sizing:border-box}.theme-light .Section:last-child{margin-bottom:0}.theme-light .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-light .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#000}.theme-light .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-light .Section__rest{position:relative}.theme-light .Section__content{padding:.66em .5em}.theme-light .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-light .Section--fill{display:flex;flex-direction:column;height:100%}.theme-light .Section--fill>.Section__rest{flex-grow:1}.theme-light .Section--fill>.Section__rest>.Section__content{height:100%}.theme-light .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-light .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-light .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-light .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-light .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-light .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-light .Section .Section:first-child{margin-top:-.5em}.theme-light .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-light .Section .Section .Section .Section__titleText{font-size:1em}.theme-light .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-light .Button:last-child{margin-right:0;margin-bottom:0}.theme-light .Button .fa,.theme-light .Button .fas,.theme-light .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-light .Button--hasContent .fa,.theme-light .Button--hasContent .fas,.theme-light .Button--hasContent .far{margin-right:.25em}.theme-light .Button--hasContent.Button--iconRight .fa,.theme-light .Button--hasContent.Button--iconRight .fas,.theme-light .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-light .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-light .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-light .Button--circular{border-radius:50%}.theme-light .Button--compact{padding:0 .25em;line-height:1.333em}.theme-light .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-light .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-light .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--black:hover{background-color:#101010;color:#fff}.theme-light .Button--color--white{transition:color .1s,background-color .1s;background-color:#bfbfbf;color:#000}.theme-light .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--white:hover{background-color:#e7e7e7;color:#000}.theme-light .Button--color--red{transition:color .1s,background-color .1s;background-color:#a61c1c;color:#fff}.theme-light .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--red:hover{background-color:#cb3030;color:#fff}.theme-light .Button--color--orange{transition:color .1s,background-color .1s;background-color:#c0530b;color:#fff}.theme-light .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--orange:hover{background-color:#e76d1d;color:#fff}.theme-light .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#bfa303;color:#fff}.theme-light .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--yellow:hover{background-color:#e7c714;color:#fff}.theme-light .Button--color--olive{transition:color .1s,background-color .1s;background-color:#889912;color:#fff}.theme-light .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--olive:hover{background-color:#a9bc25;color:#fff}.theme-light .Button--color--green{transition:color .1s,background-color .1s;background-color:#188532;color:#fff}.theme-light .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--green:hover{background-color:#2ba648;color:#fff}.theme-light .Button--color--teal{transition:color .1s,background-color .1s;background-color:#008882;color:#fff}.theme-light .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--teal:hover{background-color:#10a9a2;color:#fff}.theme-light .Button--color--blue{transition:color .1s,background-color .1s;background-color:#19649c;color:#fff}.theme-light .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--blue:hover{background-color:#2c81c0;color:#fff}.theme-light .Button--color--violet{transition:color .1s,background-color .1s;background-color:#4b2897;color:#fff}.theme-light .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--violet:hover{background-color:#653db9;color:#fff}.theme-light .Button--color--purple{transition:color .1s,background-color .1s;background-color:#7a2696;color:#fff}.theme-light .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--purple:hover{background-color:#9a3bb9;color:#fff}.theme-light .Button--color--pink{transition:color .1s,background-color .1s;background-color:#b61d73;color:#fff}.theme-light .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--pink:hover{background-color:#d93591;color:#fff}.theme-light .Button--color--brown{transition:color .1s,background-color .1s;background-color:#7c4d2f;color:#fff}.theme-light .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--brown:hover{background-color:#9c6745;color:#fff}.theme-light .Button--color--grey{transition:color .1s,background-color .1s;background-color:#bfbfbf;color:#000}.theme-light .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--grey:hover{background-color:#e7e7e7;color:#000}.theme-light .Button--color--good{transition:color .1s,background-color .1s;background-color:#44801d;color:#fff}.theme-light .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--good:hover{background-color:#5d9f31;color:#fff}.theme-light .Button--color--average{transition:color .1s,background-color .1s;background-color:#b56b0b;color:#fff}.theme-light .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--average:hover{background-color:#dc891d;color:#fff}.theme-light .Button--color--bad{transition:color .1s,background-color .1s;background-color:#a61c1c;color:#fff}.theme-light .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--bad:hover{background-color:#cb3030;color:#fff}.theme-light .Button--color--label{transition:color .1s,background-color .1s;background-color:#2c2c2c;color:#fff}.theme-light .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--label:hover{background-color:#424242;color:#fff}.theme-light .Button--color--default{transition:color .1s,background-color .1s;background-color:#bbb;color:#000}.theme-light .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--default:hover{background-color:#e3e3e3;color:#000}.theme-light .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-light .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-light .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-light .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-light .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#eee;color:#000;background-color:rgba(238,238,238,0);color:rgba(0,0,0,.5)}.theme-light .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--transparent:hover{background-color:#fcfcfc;color:#000}.theme-light .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#eee;color:#000;background-color:rgba(238,238,238,.6);color:rgba(0,0,0,.5)}.theme-light .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--translucent:hover{background-color:#fcfcfc;color:#000}.theme-light .Button--disabled{background-color:#363636!important}.theme-light .Button--selected{transition:color .1s,background-color .1s;background-color:#0668b8;color:#fff}.theme-light .Button--selected:focus{transition:color .25s,background-color .25s}.theme-light .Button--selected:hover{background-color:#1785df;color:#fff}.theme-light .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-light .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #353535;border:.0833333333em solid rgba(53,53,53,.75);border-radius:.16em;color:#353535;background-color:#e6e6e6;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-light .NumberInput--fluid{display:block}.theme-light .NumberInput__content{margin-left:.5em}.theme-light .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-light .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #353535;background-color:#353535}.theme-light .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#e6e6e6;color:#000;text-align:right}.theme-light .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #353535;border:.0833333333em solid rgba(53,53,53,.75);border-radius:.16em;color:#000;background-color:#e6e6e6;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-light .Input--disabled{color:#777;border-color:#000;border-color:rgba(0,0,0,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-light .Input--fluid{display:block;width:auto}.theme-light .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-light .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#000;color:inherit}.theme-light .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-light .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-light .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-light .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-light .TextArea{position:relative;display:inline-block;border:.0833333333em solid #353535;border:.0833333333em solid rgba(53,53,53,.75);border-radius:.16em;background-color:#e6e6e6;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-light .TextArea--fluid{display:block;width:auto;height:auto}.theme-light .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-light .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-light .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-light .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-light .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-light .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-light .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-light .Knob__popupValue,.theme-light .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-light .Knob__popupValue--right{top:.25rem;right:-50%}.theme-light .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-light .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-light .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-light .Knob__ringFillPivot{transform:rotate(135deg)}.theme-light .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-light .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-light .Knob--color--black .Knob__ringFill{stroke:#000}.theme-light .Knob--color--white .Knob__ringFill{stroke:#e6e6e6}.theme-light .Knob--color--red .Knob__ringFill{stroke:#c82121}.theme-light .Knob--color--orange .Knob__ringFill{stroke:#e6630d}.theme-light .Knob--color--yellow .Knob__ringFill{stroke:#e5c304}.theme-light .Knob--color--olive .Knob__ringFill{stroke:#a3b816}.theme-light .Knob--color--green .Knob__ringFill{stroke:#1d9f3b}.theme-light .Knob--color--teal .Knob__ringFill{stroke:#00a39c}.theme-light .Knob--color--blue .Knob__ringFill{stroke:#1e78bb}.theme-light .Knob--color--violet .Knob__ringFill{stroke:#5a30b5}.theme-light .Knob--color--purple .Knob__ringFill{stroke:#932eb4}.theme-light .Knob--color--pink .Knob__ringFill{stroke:#db228a}.theme-light .Knob--color--brown .Knob__ringFill{stroke:#955d39}.theme-light .Knob--color--grey .Knob__ringFill{stroke:#e6e6e6}.theme-light .Knob--color--good .Knob__ringFill{stroke:#529923}.theme-light .Knob--color--average .Knob__ringFill{stroke:#da810e}.theme-light .Knob--color--bad .Knob__ringFill{stroke:#c82121}.theme-light .Knob--color--label .Knob__ringFill{stroke:#353535}.theme-light .Slider:not(.Slider__disabled){cursor:e-resize}.theme-light .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-light .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #000}.theme-light .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #000}.theme-light .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-light .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-light .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-light .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-light .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-light .ProgressBar--color--default{border:.0833333333em solid #bfbfbf}.theme-light .ProgressBar--color--default .ProgressBar__fill{background-color:#bfbfbf}.theme-light .ProgressBar--color--disabled{border:1px solid #999}.theme-light .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-light .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-light .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-light .ProgressBar--color--white{border:.0833333333em solid #bfbfbf!important}.theme-light .ProgressBar--color--white .ProgressBar__fill{background-color:#bfbfbf}.theme-light .ProgressBar--color--red{border:.0833333333em solid #a61c1c!important}.theme-light .ProgressBar--color--red .ProgressBar__fill{background-color:#a61c1c}.theme-light .ProgressBar--color--orange{border:.0833333333em solid #c0530b!important}.theme-light .ProgressBar--color--orange .ProgressBar__fill{background-color:#c0530b}.theme-light .ProgressBar--color--yellow{border:.0833333333em solid #bfa303!important}.theme-light .ProgressBar--color--yellow .ProgressBar__fill{background-color:#bfa303}.theme-light .ProgressBar--color--olive{border:.0833333333em solid #889912!important}.theme-light .ProgressBar--color--olive .ProgressBar__fill{background-color:#889912}.theme-light .ProgressBar--color--green{border:.0833333333em solid #188532!important}.theme-light .ProgressBar--color--green .ProgressBar__fill{background-color:#188532}.theme-light .ProgressBar--color--teal{border:.0833333333em solid #008882!important}.theme-light .ProgressBar--color--teal .ProgressBar__fill{background-color:#008882}.theme-light .ProgressBar--color--blue{border:.0833333333em solid #19649c!important}.theme-light .ProgressBar--color--blue .ProgressBar__fill{background-color:#19649c}.theme-light .ProgressBar--color--violet{border:.0833333333em solid #4b2897!important}.theme-light .ProgressBar--color--violet .ProgressBar__fill{background-color:#4b2897}.theme-light .ProgressBar--color--purple{border:.0833333333em solid #7a2696!important}.theme-light .ProgressBar--color--purple .ProgressBar__fill{background-color:#7a2696}.theme-light .ProgressBar--color--pink{border:.0833333333em solid #b61d73!important}.theme-light .ProgressBar--color--pink .ProgressBar__fill{background-color:#b61d73}.theme-light .ProgressBar--color--brown{border:.0833333333em solid #7c4d2f!important}.theme-light .ProgressBar--color--brown .ProgressBar__fill{background-color:#7c4d2f}.theme-light .ProgressBar--color--grey{border:.0833333333em solid #bfbfbf!important}.theme-light .ProgressBar--color--grey .ProgressBar__fill{background-color:#bfbfbf}.theme-light .ProgressBar--color--good{border:.0833333333em solid #44801d!important}.theme-light .ProgressBar--color--good .ProgressBar__fill{background-color:#44801d}.theme-light .ProgressBar--color--average{border:.0833333333em solid #b56b0b!important}.theme-light .ProgressBar--color--average .ProgressBar__fill{background-color:#b56b0b}.theme-light .ProgressBar--color--bad{border:.0833333333em solid #a61c1c!important}.theme-light .ProgressBar--color--bad .ProgressBar__fill{background-color:#a61c1c}.theme-light .ProgressBar--color--label{border:.0833333333em solid #2c2c2c!important}.theme-light .ProgressBar--color--label .ProgressBar__fill{background-color:#2c2c2c}.theme-light .Chat{color:#000}.theme-light .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-light .Chat__badge:before{content:"x"}.theme-light .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-light .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-light .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-light .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#fff}.theme-light .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-light .Chat__highlight{color:#000}.theme-light .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-light .ChatMessage{word-wrap:break-word}.theme-light .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-light .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-light .Layout,.theme-light .Layout *{scrollbar-base-color:#f2f2f2;scrollbar-face-color:#d6d6d6;scrollbar-3dlight-color:#eee;scrollbar-highlight-color:#eee;scrollbar-track-color:#f2f2f2;scrollbar-arrow-color:#777;scrollbar-shadow-color:#d6d6d6}.theme-light .Layout::-webkit-scrollbar,.theme-light .Layout *::-webkit-scrollbar{width:12px}.theme-light .Layout::-webkit-scrollbar-track,.theme-light .Layout *::-webkit-scrollbar-track{background:#f2f2f2}.theme-light .Layout::-webkit-scrollbar-thumb,.theme-light .Layout *::-webkit-scrollbar-thumb{background:#d6d6d6}.theme-light .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-light .Layout__content--flexRow{display:flex;flex-flow:row}.theme-light .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-light .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-light .Layout__content--noMargin{margin:0}.theme-light .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#eee;background-image:linear-gradient(to bottom,#eee,#eee)}.theme-light .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-light .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-light .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-light .Window__contentPadding:after{height:0}.theme-light .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-light .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(252,252,252,.25);pointer-events:none}.theme-light .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-light .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-light .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-light .TitleBar{background-color:#eee;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-light .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#eee;transition:color .25s,background-color .25s}.theme-light .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-light .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-light .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-light .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-light .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-light .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-light html,.theme-light body{padding:0;margin:0;height:100%;color:#000}.theme-light body{background:#fff;font-family:Verdana,sans-serif;font-size:13px;line-height:1.2;overflow-x:hidden;overflow-y:scroll;word-wrap:break-word}.theme-light img{margin:0;padding:0;line-height:1;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-light img.icon{height:1em;min-height:16px;width:auto;vertical-align:bottom}.theme-light a{color:#00f}.theme-light a.popt{text-decoration:none}.theme-light .popup{position:fixed;top:50%;left:50%;background:#ddd}.theme-light .popup .close{position:absolute;background:#aaa;top:0;right:0;color:#333;text-decoration:none;z-index:2;padding:0 10px;height:30px;line-height:30px}.theme-light .popup .close:hover{background:#999}.theme-light .popup .head{background:#999;color:#ddd;padding:0 10px;height:30px;line-height:30px;text-transform:uppercase;font-size:.9em;font-weight:700;border-bottom:2px solid green}.theme-light .popup input{border:1px solid #999;background:#fff;margin:0;padding:5px;outline:none;color:#333}.theme-light .popup input[type=text]:hover,.theme-light .popup input[type=text]:active,.theme-light .popup input[type=text]:focus{border-color:green}.theme-light .popup input[type=submit]{padding:5px 10px;background:#999;color:#ddd;text-transform:uppercase;font-size:.9em;font-weight:700}.theme-light .popup input[type=submit]:hover,.theme-light .popup input[type=submit]:focus,.theme-light .popup input[type=submit]:active{background:#aaa;cursor:pointer}.theme-light .changeFont{padding:10px}.theme-light .changeFont a{display:block;text-decoration:none;padding:3px;color:#333}.theme-light .changeFont a:hover{background:#ccc}.theme-light .highlightPopup{padding:10px;text-align:center}.theme-light .highlightPopup input[type=text]{display:block;width:215px;text-align:left;margin-top:5px}.theme-light .highlightPopup input.highlightColor{background-color:#ff0}.theme-light .highlightPopup input.highlightTermSubmit{margin-top:5px}.theme-light .contextMenu{background-color:#ddd;position:fixed;margin:2px;width:150px}.theme-light .contextMenu a{display:block;padding:2px 5px;text-decoration:none;color:#333}.theme-light .contextMenu a:hover{background-color:#ccc}.theme-light .filterMessages{padding:5px}.theme-light .filterMessages div{padding:2px 0}.theme-light .icon-stack{height:1em;line-height:1em;width:1em;vertical-align:middle;margin-top:-2px}.theme-light .motd{color:#638500;font-family:Verdana,sans-serif;white-space:normal}.theme-light .motd h1,.theme-light .motd h2,.theme-light .motd h3,.theme-light .motd h4,.theme-light .motd h5,.theme-light .motd h6{color:#638500;text-decoration:underline}.theme-light .motd a,.theme-light .motd a:link,.theme-light .motd a:active,.theme-light .motd a:hover{color:#638500}.theme-light .italic,.theme-light .italics,.theme-light .emote{font-style:italic}.theme-light .highlight{background:#ff0}.theme-light h1,.theme-light h2,.theme-light h3,.theme-light h4,.theme-light h5,.theme-light h6{color:#00f;font-family:Georgia,Verdana,sans-serif}.theme-light em{font-style:normal;font-weight:700}.theme-light .darkmblue{color:#00f}.theme-light .prefix,.theme-light .ooc{font-weight:700}.theme-light .looc{color:#69c;font-weight:700}.theme-light .adminobserverooc{color:#09c;font-weight:700}.theme-light .adminooc{color:#b82e00;font-weight:700}.theme-light .adminobserver{color:#960;font-weight:700}.theme-light .admin{color:#386aff;font-weight:700}.theme-light .adminsay{color:#9611d4;font-weight:700}.theme-light .mentorhelp{color:#07b;font-weight:700}.theme-light .adminhelp{color:#a00;font-weight:700}.theme-light .playerreply{color:#80b;font-weight:700}.theme-light .pmsend{color:#00f}.theme-light .debug{color:#6d2f83}.theme-light .name,.theme-light .yell{font-weight:700}.theme-light .siliconsay{font-family:Courier New,Courier,monospace}.theme-light .deadsay{color:#5c00e6}.theme-light .radio{color:#408010}.theme-light .deptradio{color:#939}.theme-light .comradio{color:#204090}.theme-light .syndradio{color:#6d3f40}.theme-light .dsquadradio{color:#686868}.theme-light .resteamradio{color:#18bc46}.theme-light .airadio{color:#f0f}.theme-light .centradio{color:#5c5c7c}.theme-light .secradio{color:#a30000}.theme-light .engradio{color:#a66300}.theme-light .medradio{color:#009190}.theme-light .sciradio{color:#939}.theme-light .supradio{color:#7f6539}.theme-light .srvradio{color:#80a000}.theme-light .proradio{color:#e3027a}.theme-light .admin_channel{color:#9a04d1;font-weight:700}.theme-light .all_admin_ping{color:#12a5f4;font-weight:700;font-size:120%;text-align:center}.theme-light .mentor_channel{color:#775bff;font-weight:700}.theme-light .mentor_channel_admin{color:#a35cff;font-weight:700}.theme-light .djradio{color:#630}.theme-light .binaryradio{color:#0b0050;font-family:Courier New,Courier,monospace}.theme-light .mommiradio{color:navy}.theme-light .alert{color:red}.theme-light h1.alert,.theme-light h2.alert{color:#000}.theme-light .ghostalert{color:#5c00e6;font-style:italic;font-weight:700}.theme-light .emote{font-style:italic}.theme-light .selecteddna{color:#fff;background-color:#001b1b}.theme-light .attack{color:red}.theme-light .moderate{color:#c00}.theme-light .disarm{color:#900}.theme-light .passive{color:#600}.theme-light .warning{color:red;font-style:italic}.theme-light .boldwarning{color:red;font-style:italic;font-weight:700}.theme-light .danger{color:red;font-weight:700}.theme-light .userdanger{color:red;font-weight:700;font-size:120%}.theme-light .biggerdanger{color:red;font-weight:700;font-size:150%}.theme-light .info{color:#00c}.theme-light .notice{color:#009}.theme-light .boldnotice{color:#009;font-weight:700}.theme-light .suicide{color:#ff5050;font-style:italic}.theme-light .green{color:#03bb39}.theme-light .pr_announce{color:#228b22;font-weight:700}.theme-light .boldannounceic,.theme-light .boldannounceooc{color:red;font-weight:700}.theme-light .greenannounce{color:#0f0;font-weight:700}.theme-light .alien{color:#543354}.theme-light .noticealien{color:#00c000}.theme-light .alertalien{color:#00c000;font-weight:700}.theme-light .terrorspider{color:#320e32}.theme-light .dantalion{color:#6a2148}.theme-light .chaosverygood{color:#19e0c0;font-weight:700;font-size:120%}.theme-light .chaosgood{color:#19e0c0;font-weight:700}.theme-light .chaosneutral{color:#479ac0;font-weight:700}.theme-light .chaosbad{color:#9047c0;font-weight:700}.theme-light .chaosverybad{color:#9047c0;font-weight:700;font-size:120%}.theme-light .sinister{color:purple;font-weight:700;font-style:italic}.theme-light .blob{color:#006221;font-weight:700;font-style:italic}.theme-light .confirm{color:#00af3b}.theme-light .rose{color:#ff5050}.theme-light .sans{font-family:Comic Sans MS,cursive,sans-serif}.theme-light .wingdings{font-family:Wingdings,Webdings}.theme-light .robot{font-family:OCR-A,monospace;font-size:1.15em;font-weight:700}.theme-light .ancient{color:#008b8b;font-style:italic}.theme-light .newscaster{color:maroon}.theme-light .mod{color:#735638;font-weight:700}.theme-light .modooc{color:#184880;font-weight:700}.theme-light .adminmod{color:#402a14;font-weight:700}.theme-light .tajaran{color:#803b56}.theme-light .skrell{color:#00ced1}.theme-light .solcom{color:#22228b}.theme-light .com_srus{color:#7c4848}.theme-light .zombie{color:red}.theme-light .soghun{color:#228b22}.theme-light .changeling{color:purple}.theme-light .vox{color:#a0a}.theme-light .diona{color:#804000;font-weight:700}.theme-light .trinary{color:#727272}.theme-light .kidan{color:#664205}.theme-light .slime{color:#07a}.theme-light .drask{color:#a3d4eb;font-family:Arial Black}.theme-light .moth{color:#869b29;font-family:Copperplate}.theme-light .clown{color:red}.theme-light .vulpkanin{color:#b97a57}.theme-light .abductor{color:purple;font-style:italic}.theme-light .mind_control{color:#a00d6f;font-size:3;font-weight:700;font-style:italic}.theme-light .rough{font-family:Trebuchet MS,cursive,sans-serif}.theme-light .say_quote{font-family:Georgia,Verdana,sans-serif}.theme-light .cult{color:purple;font-weight:700;font-style:italic}.theme-light .cultspeech{color:#7f0000;font-style:italic}.theme-light .cultitalic{color:#960000;font-style:italic}.theme-light .cultlarge{color:#960000;font-weight:700;font-size:120%}.theme-light .narsie{color:#960000;font-weight:700;font-size:300%}.theme-light .narsiesmall{color:#960000;font-weight:700;font-size:200%}.theme-light .interface{color:#303}.theme-light .big{font-size:150%}.theme-light .reallybig{font-size:175%}.theme-light .greentext{color:#0f0;font-size:150%}.theme-light .redtext{color:red;font-size:150%}.theme-light .bold{font-weight:700}.theme-light .his_grace{color:#15d512;font-family:Courier New,cursive,sans-serif;font-style:italic}.theme-light .center{text-align:center}.theme-light .red{color:red}.theme-light .purple{color:#5e2d79}.theme-light .skeleton{color:#585858;font-weight:700;font-style:italic}.theme-light .gutter{color:#7092be;font-family:Trebuchet MS,cursive,sans-serif}.theme-light .orange{color:orange}.theme-light .orangei{color:orange;font-style:italic}.theme-light .orangeb{color:orange;font-weight:700}.theme-light .resonate{color:#298f85}.theme-light .healthscan_oxy{color:#0074bd}.theme-light .revennotice{color:#1d2953}.theme-light .revenboldnotice{color:#1d2953;font-weight:700}.theme-light .revenbignotice{color:#1d2953;font-weight:700;font-size:120%}.theme-light .revenminor{color:#823abb}.theme-light .revenwarning{color:#760fbb;font-style:italic}.theme-light .revendanger{color:#760fbb;font-weight:700;font-size:120%}.theme-light .specialnoticebold{color:#36525e;font-weight:700;font-size:120%}.theme-light .specialnotice{color:#36525e;font-size:120%}.theme-light .medal{font-weight:700}.theme-light .good{color:green}.theme-light .average{color:#ff8000}.theme-light .bad{color:red}.theme-light .italics,.theme-light .talkinto{font-style:italic}.theme-light .whisper{font-style:italic;color:#333}.theme-light .recruit{color:#5c00e6;font-weight:700;font-style:italic}.theme-light .memo{color:#638500;text-align:center}.theme-light .memoedit{text-align:center;font-size:75%}.theme-light .connectionClosed,.theme-light .fatalError{background:red;color:#fff;padding:5px}.theme-light .connectionClosed.restored{background:green}.theme-light .internal.boldnshit{color:#00f;font-weight:700}.theme-light .rebooting{background:#2979af;color:#fff;padding:5px}.theme-light .rebooting a{color:#fff!important;text-decoration-color:#fff!important}.theme-light .text-normal{font-weight:400;font-style:normal}.theme-light .hidden{display:none;visibility:hidden}.theme-light .colossus{color:#7f282a;font-size:175%}.theme-light .hierophant{color:#609;font-weight:700;font-style:italic}.theme-light .hierophant_warning{color:#609;font-style:italic}.theme-light .emoji{max-height:16px;max-width:16px}.theme-light .adminticket{color:#3e7336;font-weight:700}.theme-light .adminticketalt{color:#014c8a;font-weight:700}.theme-light span.body .codephrases{color:#00f}.theme-light span.body .coderesponses{color:red}.theme-light .announcement h1,.theme-light .announcement h2{color:#000;margin:8pt 0;line-height:1.2}.theme-light .announcement p{color:#d82020;line-height:1.3}.theme-light .announcement.minor h1{font-size:180%}.theme-light .announcement.minor h2{font-size:170%}.theme-light .announcement.sec h1{color:red;font-size:180%;font-family:Verdana,sans-serif}.theme-light .bolditalics{font-style:italic;font-weight:700}.theme-light .boxed_message{background:#f7fcff;border:1px solid #111a26;margin:.5em;padding:.5em .75em;text-align:center}.theme-light .boxed_message.left_align_text{text-align:left}.theme-light .boxed_message.red_border{background:#fff7f7;border-color:#a00}.theme-light .boxed_message.green_border{background:#f7fff7;border-color:#0f0}.theme-light .boxed_message.purple_border{background:#fdf7ff;border-color:#a0f}.theme-light .boxed_message.notice_border{background:#f7fdff;border-color:#0000bf}.theme-light .boxed_message.thick_border{border-width:thick}.theme-ntos .color-black{color:#1a1a1a!important}.theme-ntos .color-white{color:#fff!important}.theme-ntos .color-red{color:#df3e3e!important}.theme-ntos .color-orange{color:#f37f33!important}.theme-ntos .color-yellow{color:#fbda21!important}.theme-ntos .color-olive{color:#cbe41c!important}.theme-ntos .color-green{color:#25ca4c!important}.theme-ntos .color-teal{color:#00d6cc!important}.theme-ntos .color-blue{color:#2e93de!important}.theme-ntos .color-violet{color:#7349cf!important}.theme-ntos .color-purple{color:#ad45d0!important}.theme-ntos .color-pink{color:#e34da1!important}.theme-ntos .color-brown{color:#b97447!important}.theme-ntos .color-grey{color:#848484!important}.theme-ntos .color-good{color:#68c22d!important}.theme-ntos .color-average{color:#f29a29!important}.theme-ntos .color-bad{color:#df3e3e!important}.theme-ntos .color-label{color:#8b9bb0!important}.theme-ntos .color-bg-black{background-color:#000!important}.theme-ntos .color-bg-white{background-color:#d9d9d9!important}.theme-ntos .color-bg-red{background-color:#bd2020!important}.theme-ntos .color-bg-orange{background-color:#d95e0c!important}.theme-ntos .color-bg-yellow{background-color:#d9b804!important}.theme-ntos .color-bg-olive{background-color:#9aad14!important}.theme-ntos .color-bg-green{background-color:#1b9638!important}.theme-ntos .color-bg-teal{background-color:#009a93!important}.theme-ntos .color-bg-blue{background-color:#1c71b1!important}.theme-ntos .color-bg-violet{background-color:#552dab!important}.theme-ntos .color-bg-purple{background-color:#8b2baa!important}.theme-ntos .color-bg-pink{background-color:#cf2082!important}.theme-ntos .color-bg-brown{background-color:#8c5836!important}.theme-ntos .color-bg-grey{background-color:#646464!important}.theme-ntos .color-bg-good{background-color:#4d9121!important}.theme-ntos .color-bg-average{background-color:#cd7a0d!important}.theme-ntos .color-bg-bad{background-color:#bd2020!important}.theme-ntos .color-bg-label{background-color:#657a94!important}.theme-ntos .Section{position:relative;margin-bottom:.5em;background-color:#121922;box-sizing:border-box}.theme-ntos .Section:last-child{margin-bottom:0}.theme-ntos .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-ntos .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-ntos .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-ntos .Section__rest{position:relative}.theme-ntos .Section__content{padding:.66em .5em}.theme-ntos .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-ntos .Section--fill{display:flex;flex-direction:column;height:100%}.theme-ntos .Section--fill>.Section__rest{flex-grow:1}.theme-ntos .Section--fill>.Section__rest>.Section__content{height:100%}.theme-ntos .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-ntos .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-ntos .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-ntos .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-ntos .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-ntos .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-ntos .Section .Section:first-child{margin-top:-.5em}.theme-ntos .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-ntos .Section .Section .Section .Section__titleText{font-size:1em}.theme-ntos .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-ntos .Button:last-child{margin-right:0;margin-bottom:0}.theme-ntos .Button .fa,.theme-ntos .Button .fas,.theme-ntos .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-ntos .Button--hasContent .fa,.theme-ntos .Button--hasContent .fas,.theme-ntos .Button--hasContent .far{margin-right:.25em}.theme-ntos .Button--hasContent.Button--iconRight .fa,.theme-ntos .Button--hasContent.Button--iconRight .fas,.theme-ntos .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-ntos .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-ntos .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-ntos .Button--circular{border-radius:50%}.theme-ntos .Button--compact{padding:0 .25em;line-height:1.333em}.theme-ntos .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-ntos .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-ntos .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--black:hover{background-color:#101010;color:#fff}.theme-ntos .Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.theme-ntos .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--white:hover{background-color:#f8f8f8;color:#000}.theme-ntos .Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--red:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.theme-ntos .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--orange:hover{background-color:#ef7e33;color:#fff}.theme-ntos .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-ntos .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--yellow:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.theme-ntos .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--olive:hover{background-color:#bdd327;color:#fff}.theme-ntos .Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-ntos .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--green:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.theme-ntos .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--teal:hover{background-color:#10bdb6;color:#fff}.theme-ntos .Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.theme-ntos .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--blue:hover{background-color:#308fd6;color:#fff}.theme-ntos .Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.theme-ntos .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--violet:hover{background-color:#7249ca;color:#fff}.theme-ntos .Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.theme-ntos .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--purple:hover{background-color:#aa46ca;color:#fff}.theme-ntos .Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.theme-ntos .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--pink:hover{background-color:#e04ca0;color:#fff}.theme-ntos .Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.theme-ntos .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--brown:hover{background-color:#ae724c;color:#fff}.theme-ntos .Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.theme-ntos .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--grey:hover{background-color:#818181;color:#fff}.theme-ntos .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-ntos .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-ntos .Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.theme-ntos .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--average:hover{background-color:#eb972b;color:#fff}.theme-ntos .Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--bad:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.theme-ntos .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--label:hover{background-color:#8a9aae;color:#fff}.theme-ntos .Button--color--default{transition:color .1s,background-color .1s;background-color:#384e68;color:#fff}.theme-ntos .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--default:hover{background-color:#4f6885;color:#fff}.theme-ntos .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-ntos .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#1b2633;color:#fff;background-color:rgba(27,38,51,0);color:rgba(255,255,255,.5)}.theme-ntos .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--transparent:hover{background-color:#2f3b4a;color:#fff}.theme-ntos .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#1b2633;color:#fff;background-color:rgba(27,38,51,.6);color:rgba(255,255,255,.5)}.theme-ntos .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--translucent:hover{background-color:#2f3b4a;color:#fff}.theme-ntos .Button--disabled{background-color:#999!important}.theme-ntos .Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-ntos .Button--selected:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--selected:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-ntos .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-ntos .NumberInput--fluid{display:block}.theme-ntos .NumberInput__content{margin-left:.5em}.theme-ntos .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-ntos .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.theme-ntos .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-ntos .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-ntos .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-ntos .Input--fluid{display:block;width:auto}.theme-ntos .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-ntos .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-ntos .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-ntos .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-ntos .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-ntos .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-ntos .TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-ntos .TextArea--fluid{display:block;width:auto;height:auto}.theme-ntos .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-ntos .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-ntos .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-ntos .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-ntos .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-ntos .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-ntos .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-ntos .Knob__popupValue,.theme-ntos .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-ntos .Knob__popupValue--right{top:.25rem;right:-50%}.theme-ntos .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-ntos .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-ntos .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-ntos .Knob__ringFillPivot{transform:rotate(135deg)}.theme-ntos .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-ntos .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-ntos .Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.theme-ntos .Knob--color--white .Knob__ringFill{stroke:#fff}.theme-ntos .Knob--color--red .Knob__ringFill{stroke:#df3e3e}.theme-ntos .Knob--color--orange .Knob__ringFill{stroke:#f37f33}.theme-ntos .Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.theme-ntos .Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.theme-ntos .Knob--color--green .Knob__ringFill{stroke:#25ca4c}.theme-ntos .Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.theme-ntos .Knob--color--blue .Knob__ringFill{stroke:#2e93de}.theme-ntos .Knob--color--violet .Knob__ringFill{stroke:#7349cf}.theme-ntos .Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.theme-ntos .Knob--color--pink .Knob__ringFill{stroke:#e34da1}.theme-ntos .Knob--color--brown .Knob__ringFill{stroke:#b97447}.theme-ntos .Knob--color--grey .Knob__ringFill{stroke:#848484}.theme-ntos .Knob--color--good .Knob__ringFill{stroke:#68c22d}.theme-ntos .Knob--color--average .Knob__ringFill{stroke:#f29a29}.theme-ntos .Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.theme-ntos .Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.theme-ntos .Slider:not(.Slider__disabled){cursor:e-resize}.theme-ntos .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-ntos .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.theme-ntos .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.theme-ntos .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-ntos .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-ntos .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-ntos .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-ntos .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-ntos .ProgressBar--color--default{border:.0833333333em solid #3e6189}.theme-ntos .ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.theme-ntos .ProgressBar--color--disabled{border:1px solid #999}.theme-ntos .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-ntos .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-ntos .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-ntos .ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.theme-ntos .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-ntos .ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.theme-ntos .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-ntos .ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.theme-ntos .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-ntos .ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.theme-ntos .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-ntos .ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.theme-ntos .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-ntos .ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.theme-ntos .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-ntos .ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.theme-ntos .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-ntos .ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.theme-ntos .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-ntos .ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.theme-ntos .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-ntos .ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.theme-ntos .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-ntos .ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.theme-ntos .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-ntos .ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.theme-ntos .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-ntos .ProgressBar--color--grey{border:.0833333333em solid #646464!important}.theme-ntos .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-ntos .ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.theme-ntos .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-ntos .ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.theme-ntos .ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.theme-ntos .ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.theme-ntos .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-ntos .ProgressBar--color--label{border:.0833333333em solid #657a94!important}.theme-ntos .ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.theme-ntos .Chat{color:#abc6ec}.theme-ntos .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-ntos .Chat__badge:before{content:"x"}.theme-ntos .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-ntos .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-ntos .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-ntos .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#121922}.theme-ntos .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-ntos .Chat__highlight{color:#000}.theme-ntos .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-ntos .ChatMessage{word-wrap:break-word}.theme-ntos .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-ntos .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-ntos .Layout,.theme-ntos .Layout *{scrollbar-base-color:#141d26;scrollbar-face-color:#2a3b4f;scrollbar-3dlight-color:#1b2633;scrollbar-highlight-color:#1b2633;scrollbar-track-color:#141d26;scrollbar-arrow-color:#7290b4;scrollbar-shadow-color:#2a3b4f}.theme-ntos .Layout::-webkit-scrollbar,.theme-ntos .Layout *::-webkit-scrollbar{width:12px}.theme-ntos .Layout::-webkit-scrollbar-track,.theme-ntos .Layout *::-webkit-scrollbar-track{background:#141d26}.theme-ntos .Layout::-webkit-scrollbar-thumb,.theme-ntos .Layout *::-webkit-scrollbar-thumb{background:#2a3b4f}.theme-ntos .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-ntos .Layout__content--flexRow{display:flex;flex-flow:row}.theme-ntos .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-ntos .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-ntos .Layout__content--noMargin{margin:0}.theme-ntos .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1b2633;background-image:linear-gradient(to bottom,#1b2633,#1b2633)}.theme-ntos .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-ntos .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-ntos .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-ntos .Window__contentPadding:after{height:0}.theme-ntos .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-ntos .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(50,63,78,.25);pointer-events:none}.theme-ntos .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-ntos .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-ntos .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-ntos .TitleBar{background-color:#1b2633;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-ntos .TitleBar__clickable{color:rgba(255,0,0,.5);background-color:#1b2633;transition:color .25s,background-color .25s}.theme-ntos .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-ntos .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-ntos .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-ntos .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-ntos .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-ntos .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-ntos .boxed_message{background:#1c242e;border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.theme-ntos .boxed_message.left_align_text{text-align:left}.theme-ntos .boxed_message.red_border{background:#2e1c1c;border-color:#a00}.theme-ntos .boxed_message.green_border{background:#1c2e22;border-color:#0f0}.theme-ntos .boxed_message.purple_border{background:#221c2e;border-color:#8000ff}.theme-ntos .boxed_message.notice_border{background:#1f2633;border-color:#6685f5}.theme-ntos .boxed_message.thick_border{border-width:thick}.theme-syndicate .color-black{color:#1a1a1a!important}.theme-syndicate .color-white{color:#fff!important}.theme-syndicate .color-red{color:#df3e3e!important}.theme-syndicate .color-orange{color:#f37f33!important}.theme-syndicate .color-yellow{color:#fbda21!important}.theme-syndicate .color-olive{color:#cbe41c!important}.theme-syndicate .color-green{color:#25ca4c!important}.theme-syndicate .color-teal{color:#00d6cc!important}.theme-syndicate .color-blue{color:#2e93de!important}.theme-syndicate .color-violet{color:#7349cf!important}.theme-syndicate .color-purple{color:#ad45d0!important}.theme-syndicate .color-pink{color:#e34da1!important}.theme-syndicate .color-brown{color:#b97447!important}.theme-syndicate .color-grey{color:#848484!important}.theme-syndicate .color-good{color:#68c22d!important}.theme-syndicate .color-average{color:#f29a29!important}.theme-syndicate .color-bad{color:#df3e3e!important}.theme-syndicate .color-label{color:#8b9bb0!important}.theme-syndicate .color-bg-black{background-color:#000!important}.theme-syndicate .color-bg-white{background-color:#d9d9d9!important}.theme-syndicate .color-bg-red{background-color:#bd2020!important}.theme-syndicate .color-bg-orange{background-color:#d95e0c!important}.theme-syndicate .color-bg-yellow{background-color:#d9b804!important}.theme-syndicate .color-bg-olive{background-color:#9aad14!important}.theme-syndicate .color-bg-green{background-color:#1b9638!important}.theme-syndicate .color-bg-teal{background-color:#009a93!important}.theme-syndicate .color-bg-blue{background-color:#1c71b1!important}.theme-syndicate .color-bg-violet{background-color:#552dab!important}.theme-syndicate .color-bg-purple{background-color:#8b2baa!important}.theme-syndicate .color-bg-pink{background-color:#cf2082!important}.theme-syndicate .color-bg-brown{background-color:#8c5836!important}.theme-syndicate .color-bg-grey{background-color:#646464!important}.theme-syndicate .color-bg-good{background-color:#4d9121!important}.theme-syndicate .color-bg-average{background-color:#cd7a0d!important}.theme-syndicate .color-bg-bad{background-color:#bd2020!important}.theme-syndicate .color-bg-label{background-color:#657a94!important}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#2b0101;box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-syndicate .Section .Section:first-child{margin-top:-.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconRight .fa,.theme-syndicate .Button--hasContent.Button--iconRight .fas,.theme-syndicate .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-syndicate .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-syndicate .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--black:hover{background-color:#101010;color:#fff}.theme-syndicate .Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.theme-syndicate .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--white:hover{background-color:#f8f8f8;color:#000}.theme-syndicate .Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-syndicate .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--red:hover{background-color:#d93f3f;color:#fff}.theme-syndicate .Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.theme-syndicate .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--orange:hover{background-color:#ef7e33;color:#fff}.theme-syndicate .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-syndicate .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--yellow:hover{background-color:#f5d523;color:#000}.theme-syndicate .Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.theme-syndicate .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--olive:hover{background-color:#bdd327;color:#fff}.theme-syndicate .Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-syndicate .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--green:hover{background-color:#2fb94f;color:#fff}.theme-syndicate .Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.theme-syndicate .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--teal:hover{background-color:#10bdb6;color:#fff}.theme-syndicate .Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.theme-syndicate .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--blue:hover{background-color:#308fd6;color:#fff}.theme-syndicate .Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.theme-syndicate .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--violet:hover{background-color:#7249ca;color:#fff}.theme-syndicate .Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.theme-syndicate .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--purple:hover{background-color:#aa46ca;color:#fff}.theme-syndicate .Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.theme-syndicate .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--pink:hover{background-color:#e04ca0;color:#fff}.theme-syndicate .Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.theme-syndicate .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--brown:hover{background-color:#ae724c;color:#fff}.theme-syndicate .Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.theme-syndicate .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--grey:hover{background-color:#818181;color:#fff}.theme-syndicate .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-syndicate .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-syndicate .Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.theme-syndicate .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--average:hover{background-color:#eb972b;color:#fff}.theme-syndicate .Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-syndicate .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--bad:hover{background-color:#d93f3f;color:#fff}.theme-syndicate .Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.theme-syndicate .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--label:hover{background-color:#8a9aae;color:#fff}.theme-syndicate .Button--color--default{transition:color .1s,background-color .1s;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--default:hover{background-color:#509350;color:#fff}.theme-syndicate .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-syndicate .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-syndicate .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#4d0202;color:#fff;background-color:rgba(77,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--transparent:hover{background-color:#671313;color:#fff}.theme-syndicate .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#4d0202;color:#fff;background-color:rgba(77,2,2,.6);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--translucent:hover{background-color:#671313;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636!important}.theme-syndicate .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--selected:hover{background-color:#c11919;color:#fff}.theme-syndicate .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-syndicate .NoticeBox--color--black{color:#fff;background-color:#000}.theme-syndicate .NoticeBox--color--white{color:#000;background-color:#b3b3b3}.theme-syndicate .NoticeBox--color--red{color:#fff;background-color:#701f1f}.theme-syndicate .NoticeBox--color--orange{color:#fff;background-color:#854114}.theme-syndicate .NoticeBox--color--yellow{color:#000;background-color:#83710d}.theme-syndicate .NoticeBox--color--olive{color:#000;background-color:#576015}.theme-syndicate .NoticeBox--color--green{color:#fff;background-color:#174e24}.theme-syndicate .NoticeBox--color--teal{color:#fff;background-color:#064845}.theme-syndicate .NoticeBox--color--blue{color:#fff;background-color:#1b4565}.theme-syndicate .NoticeBox--color--violet{color:#fff;background-color:#3b2864}.theme-syndicate .NoticeBox--color--purple{color:#fff;background-color:#542663}.theme-syndicate .NoticeBox--color--pink{color:#fff;background-color:#802257}.theme-syndicate .NoticeBox--color--brown{color:#fff;background-color:#4c3729}.theme-syndicate .NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.theme-syndicate .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-syndicate .NoticeBox--color--average{color:#fff;background-color:#7b4e13}.theme-syndicate .NoticeBox--color--bad{color:#fff;background-color:#701f1f}.theme-syndicate .NoticeBox--color--label{color:#fff;background-color:#53565a}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-syndicate .Input--disabled{color:#777;border-color:#6b6b6b;border-color:rgba(107,107,107,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-syndicate .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-syndicate .TextArea{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-syndicate .TextArea--fluid{display:block;width:auto;height:auto}.theme-syndicate .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-syndicate .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-syndicate .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-syndicate .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-syndicate .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-syndicate .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-syndicate .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-syndicate .Knob__popupValue,.theme-syndicate .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-syndicate .Knob__popupValue--right{top:.25rem;right:-50%}.theme-syndicate .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-syndicate .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-syndicate .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-syndicate .Knob__ringFillPivot{transform:rotate(135deg)}.theme-syndicate .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-syndicate .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-syndicate .Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.theme-syndicate .Knob--color--white .Knob__ringFill{stroke:#fff}.theme-syndicate .Knob--color--red .Knob__ringFill{stroke:#df3e3e}.theme-syndicate .Knob--color--orange .Knob__ringFill{stroke:#f37f33}.theme-syndicate .Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.theme-syndicate .Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.theme-syndicate .Knob--color--green .Knob__ringFill{stroke:#25ca4c}.theme-syndicate .Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.theme-syndicate .Knob--color--blue .Knob__ringFill{stroke:#2e93de}.theme-syndicate .Knob--color--violet .Knob__ringFill{stroke:#7349cf}.theme-syndicate .Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.theme-syndicate .Knob--color--pink .Knob__ringFill{stroke:#e34da1}.theme-syndicate .Knob--color--brown .Knob__ringFill{stroke:#b97447}.theme-syndicate .Knob--color--grey .Knob__ringFill{stroke:#848484}.theme-syndicate .Knob--color--good .Knob__ringFill{stroke:#68c22d}.theme-syndicate .Knob--color--average .Knob__ringFill{stroke:#f29a29}.theme-syndicate .Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.theme-syndicate .Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.theme-syndicate .Slider:not(.Slider__disabled){cursor:e-resize}.theme-syndicate .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-syndicate .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.theme-syndicate .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.theme-syndicate .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-syndicate .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .ProgressBar--color--disabled{border:1px solid #999}.theme-syndicate .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-syndicate .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-syndicate .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-syndicate .ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.theme-syndicate .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-syndicate .ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.theme-syndicate .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-syndicate .ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.theme-syndicate .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-syndicate .ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.theme-syndicate .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-syndicate .ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.theme-syndicate .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-syndicate .ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.theme-syndicate .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-syndicate .ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.theme-syndicate .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-syndicate .ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.theme-syndicate .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-syndicate .ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.theme-syndicate .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-syndicate .ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.theme-syndicate .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-syndicate .ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.theme-syndicate .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-syndicate .ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.theme-syndicate .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-syndicate .ProgressBar--color--grey{border:.0833333333em solid #646464!important}.theme-syndicate .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-syndicate .ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.theme-syndicate .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-syndicate .ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.theme-syndicate .ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.theme-syndicate .ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.theme-syndicate .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-syndicate .ProgressBar--color--label{border:.0833333333em solid #657a94!important}.theme-syndicate .ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.theme-syndicate .Chat{color:#abc6ec}.theme-syndicate .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-syndicate .Chat__badge:before{content:"x"}.theme-syndicate .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-syndicate .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-syndicate .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-syndicate .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#2b0101}.theme-syndicate .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-syndicate .Chat__highlight{color:#000}.theme-syndicate .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-syndicate .ChatMessage{word-wrap:break-word}.theme-syndicate .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-syndicate .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#3a0202;scrollbar-face-color:#770303;scrollbar-3dlight-color:#4d0202;scrollbar-highlight-color:#4d0202;scrollbar-track-color:#3a0202;scrollbar-arrow-color:#fa2d2d;scrollbar-shadow-color:#770303}.theme-syndicate .Layout::-webkit-scrollbar,.theme-syndicate .Layout *::-webkit-scrollbar{width:12px}.theme-syndicate .Layout::-webkit-scrollbar-track,.theme-syndicate .Layout *::-webkit-scrollbar-track{background:#3a0202}.theme-syndicate .Layout::-webkit-scrollbar-thumb,.theme-syndicate .Layout *::-webkit-scrollbar-thumb{background:#770303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-syndicate .Layout__content--noMargin{margin:0}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#4d0202;background-image:linear-gradient(to bottom,#4d0202,#4d0202)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(108,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color .25s,background-color .25s}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .adminooc{color:#29ccbe}.theme-syndicate .debug{color:#8f39e6}.theme-syndicate .boxed_message{background:rgba(20,20,35,.25);border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.theme-syndicate .boxed_message.left_align_text{text-align:left}.theme-syndicate .boxed_message.red_border{background:rgba(0,0,0,.2);border-color:red}.theme-syndicate .boxed_message.green_border{background:rgba(0,75,0,.25);border-color:#0f0}.theme-syndicate .boxed_message.purple_border{background:rgba(25,0,50,.25);border-color:#8000ff}.theme-syndicate .boxed_message.notice_border{background:rgba(0,0,75,.25);border-color:#6685f5}.theme-syndicate .boxed_message.thick_border{border-width:thick}.theme-paradise .color-black{color:#1a1a1a!important}.theme-paradise .color-white{color:#fff!important}.theme-paradise .color-red{color:#df3e3e!important}.theme-paradise .color-orange{color:#f37f33!important}.theme-paradise .color-yellow{color:#fbda21!important}.theme-paradise .color-olive{color:#cbe41c!important}.theme-paradise .color-green{color:#25ca4c!important}.theme-paradise .color-teal{color:#00d6cc!important}.theme-paradise .color-blue{color:#2e93de!important}.theme-paradise .color-violet{color:#7349cf!important}.theme-paradise .color-purple{color:#ad45d0!important}.theme-paradise .color-pink{color:#e34da1!important}.theme-paradise .color-brown{color:#b97447!important}.theme-paradise .color-grey{color:#848484!important}.theme-paradise .color-good{color:#68c22d!important}.theme-paradise .color-average{color:#f29a29!important}.theme-paradise .color-bad{color:#df3e3e!important}.theme-paradise .color-label{color:#955d4b!important}.theme-paradise .color-bg-black{background-color:#000!important}.theme-paradise .color-bg-white{background-color:#d9d9d9!important}.theme-paradise .color-bg-red{background-color:#bd2020!important}.theme-paradise .color-bg-orange{background-color:#d95e0c!important}.theme-paradise .color-bg-yellow{background-color:#d9b804!important}.theme-paradise .color-bg-olive{background-color:#9aad14!important}.theme-paradise .color-bg-green{background-color:#1b9638!important}.theme-paradise .color-bg-teal{background-color:#009a93!important}.theme-paradise .color-bg-blue{background-color:#1c71b1!important}.theme-paradise .color-bg-violet{background-color:#552dab!important}.theme-paradise .color-bg-purple{background-color:#8b2baa!important}.theme-paradise .color-bg-pink{background-color:#cf2082!important}.theme-paradise .color-bg-brown{background-color:#8c5836!important}.theme-paradise .color-bg-grey{background-color:#646464!important}.theme-paradise .color-bg-good{background-color:#4d9121!important}.theme-paradise .color-bg-average{background-color:#cd7a0d!important}.theme-paradise .color-bg-bad{background-color:#bd2020!important}.theme-paradise .color-bg-label{background-color:#6d4436!important}.theme-paradise .Section{position:relative;margin-bottom:.5em;background-color:#40071a;background-color:rgba(0,0,0,.5);box-sizing:border-box}.theme-paradise .Section:last-child{margin-bottom:0}.theme-paradise .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #208080}.theme-paradise .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-paradise .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-paradise .Section__rest{position:relative}.theme-paradise .Section__content{padding:.66em .5em}.theme-paradise .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paradise .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paradise .Section--fill>.Section__rest{flex-grow:1}.theme-paradise .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paradise .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paradise .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-paradise .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-paradise .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paradise .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paradise .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-paradise .Section .Section:first-child{margin-top:-.5em}.theme-paradise .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paradise .Section .Section .Section .Section__titleText{font-size:1em}.theme-paradise .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paradise .Button:last-child{margin-right:0;margin-bottom:0}.theme-paradise .Button .fa,.theme-paradise .Button .fas,.theme-paradise .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-paradise .Button--hasContent .fa,.theme-paradise .Button--hasContent .fas,.theme-paradise .Button--hasContent .far{margin-right:.25em}.theme-paradise .Button--hasContent.Button--iconRight .fa,.theme-paradise .Button--hasContent.Button--iconRight .fas,.theme-paradise .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-paradise .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paradise .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paradise .Button--circular{border-radius:50%}.theme-paradise .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paradise .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-paradise .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-paradise .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--black:hover{background-color:#101010;color:#fff}.theme-paradise .Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.theme-paradise .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--white:hover{background-color:#f8f8f8;color:#000}.theme-paradise .Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-paradise .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--red:hover{background-color:#d93f3f;color:#fff}.theme-paradise .Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.theme-paradise .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--orange:hover{background-color:#ef7e33;color:#fff}.theme-paradise .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-paradise .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--yellow:hover{background-color:#f5d523;color:#000}.theme-paradise .Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.theme-paradise .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--olive:hover{background-color:#bdd327;color:#fff}.theme-paradise .Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-paradise .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--green:hover{background-color:#2fb94f;color:#fff}.theme-paradise .Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.theme-paradise .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--teal:hover{background-color:#10bdb6;color:#fff}.theme-paradise .Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.theme-paradise .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--blue:hover{background-color:#308fd6;color:#fff}.theme-paradise .Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.theme-paradise .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--violet:hover{background-color:#7249ca;color:#fff}.theme-paradise .Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.theme-paradise .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--purple:hover{background-color:#aa46ca;color:#fff}.theme-paradise .Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.theme-paradise .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--pink:hover{background-color:#e04ca0;color:#fff}.theme-paradise .Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.theme-paradise .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--brown:hover{background-color:#ae724c;color:#fff}.theme-paradise .Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.theme-paradise .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--grey:hover{background-color:#818181;color:#fff}.theme-paradise .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-paradise .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-paradise .Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.theme-paradise .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--average:hover{background-color:#eb972b;color:#fff}.theme-paradise .Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-paradise .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--bad:hover{background-color:#d93f3f;color:#fff}.theme-paradise .Button--color--label{transition:color .1s,background-color .1s;background-color:#6d4436;color:#fff}.theme-paradise .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--label:hover{background-color:#8b5d4d;color:#fff}.theme-paradise .Button--color--default{transition:color .1s,background-color .1s;background-color:#208080;color:#fff}.theme-paradise .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--default:hover{background-color:#34a0a0;color:#fff}.theme-paradise .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-paradise .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-paradise .Button--color--danger{transition:color .1s,background-color .1s;background-color:#8c1eff;color:#fff}.theme-paradise .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--danger:hover{background-color:#ae61ff;color:#fff}.theme-paradise .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#800d33;color:#fff;background-color:rgba(128,13,51,0);color:rgba(255,255,255,.5)}.theme-paradise .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--transparent:hover{background-color:#a01f4a;color:#fff}.theme-paradise .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#800d33;color:#fff;background-color:rgba(128,13,51,.6);color:rgba(255,255,255,.5)}.theme-paradise .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--translucent:hover{background-color:#a01f4a;color:#fff}.theme-paradise .Button--disabled{background-color:#999!important}.theme-paradise .Button--selected{transition:color .1s,background-color .1s;background-color:#bf6030;color:#fff}.theme-paradise .Button--selected:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--selected:hover{background-color:#d4835a;color:#fff}.theme-paradise .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-paradise .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #e65c2e;border:.0833333333em solid rgba(230,92,46,.75);border-radius:.16em;color:#e65c2e;background-color:rgba(0,0,0,.25);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-paradise .NumberInput--fluid{display:block}.theme-paradise .NumberInput__content{margin-left:.5em}.theme-paradise .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-paradise .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #e65c2e;background-color:#e65c2e}.theme-paradise .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,.25);color:#fff;text-align:right}.theme-paradise .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #e65c2e;border:.0833333333em solid rgba(230,92,46,.75);border-radius:.16em;background-color:rgba(0,0,0,.25);color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-paradise .Input--disabled{color:#777;border-color:#4a4a4a;border-color:rgba(74,74,74,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-paradise .Input--fluid{display:block;width:auto}.theme-paradise .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-paradise .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-paradise .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paradise .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-paradise .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paradise .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-paradise .TextArea{position:relative;display:inline-block;border:.0833333333em solid #e65c2e;border:.0833333333em solid rgba(230,92,46,.75);border-radius:.16em;background-color:rgba(0,0,0,.25);margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-paradise .TextArea--fluid{display:block;width:auto;height:auto}.theme-paradise .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-paradise .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-paradise .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-paradise .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-paradise .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-paradise .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-paradise .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-paradise .Knob__popupValue,.theme-paradise .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-paradise .Knob__popupValue--right{top:.25rem;right:-50%}.theme-paradise .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-paradise .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-paradise .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-paradise .Knob__ringFillPivot{transform:rotate(135deg)}.theme-paradise .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-paradise .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-paradise .Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.theme-paradise .Knob--color--white .Knob__ringFill{stroke:#fff}.theme-paradise .Knob--color--red .Knob__ringFill{stroke:#df3e3e}.theme-paradise .Knob--color--orange .Knob__ringFill{stroke:#f37f33}.theme-paradise .Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.theme-paradise .Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.theme-paradise .Knob--color--green .Knob__ringFill{stroke:#25ca4c}.theme-paradise .Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.theme-paradise .Knob--color--blue .Knob__ringFill{stroke:#2e93de}.theme-paradise .Knob--color--violet .Knob__ringFill{stroke:#7349cf}.theme-paradise .Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.theme-paradise .Knob--color--pink .Knob__ringFill{stroke:#e34da1}.theme-paradise .Knob--color--brown .Knob__ringFill{stroke:#b97447}.theme-paradise .Knob--color--grey .Knob__ringFill{stroke:#848484}.theme-paradise .Knob--color--good .Knob__ringFill{stroke:#68c22d}.theme-paradise .Knob--color--average .Knob__ringFill{stroke:#f29a29}.theme-paradise .Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.theme-paradise .Knob--color--label .Knob__ringFill{stroke:#955d4b}.theme-paradise .Slider:not(.Slider__disabled){cursor:e-resize}.theme-paradise .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-paradise .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.theme-paradise .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.theme-paradise .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-paradise .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-paradise .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-paradise .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-paradise .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-paradise .ProgressBar--color--default{border:.0833333333em solid #1b6d6d}.theme-paradise .ProgressBar--color--default .ProgressBar__fill{background-color:#1b6d6d}.theme-paradise .ProgressBar--color--disabled{border:1px solid #999}.theme-paradise .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-paradise .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-paradise .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-paradise .ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.theme-paradise .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-paradise .ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.theme-paradise .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-paradise .ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.theme-paradise .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-paradise .ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.theme-paradise .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-paradise .ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.theme-paradise .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-paradise .ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.theme-paradise .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-paradise .ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.theme-paradise .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-paradise .ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.theme-paradise .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-paradise .ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.theme-paradise .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-paradise .ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.theme-paradise .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-paradise .ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.theme-paradise .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-paradise .ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.theme-paradise .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-paradise .ProgressBar--color--grey{border:.0833333333em solid #646464!important}.theme-paradise .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-paradise .ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.theme-paradise .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-paradise .ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.theme-paradise .ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.theme-paradise .ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.theme-paradise .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-paradise .ProgressBar--color--label{border:.0833333333em solid #6d4436!important}.theme-paradise .ProgressBar--color--label .ProgressBar__fill{background-color:#6d4436}.theme-paradise .Chat{color:#abc6ec}.theme-paradise .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-paradise .Chat__badge:before{content:"x"}.theme-paradise .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-paradise .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-paradise .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-paradise .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#fff;background-color:#db2828}.theme-paradise .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-paradise .Chat__highlight{color:#000}.theme-paradise .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-paradise .ChatMessage{word-wrap:break-word}.theme-paradise .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-paradise .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-paradise .Layout,.theme-paradise .Layout *{scrollbar-base-color:#680b29;scrollbar-face-color:#99103d;scrollbar-3dlight-color:#800d33;scrollbar-highlight-color:#800d33;scrollbar-track-color:#680b29;scrollbar-arrow-color:#ea2e6c;scrollbar-shadow-color:#99103d}.theme-paradise .Layout::-webkit-scrollbar,.theme-paradise .Layout *::-webkit-scrollbar{width:12px}.theme-paradise .Layout::-webkit-scrollbar-track,.theme-paradise .Layout *::-webkit-scrollbar-track{background:#680b29}.theme-paradise .Layout::-webkit-scrollbar-thumb,.theme-paradise .Layout *::-webkit-scrollbar-thumb{background:#99103d}.theme-paradise .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-paradise .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paradise .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paradise .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-paradise .Layout__content--noMargin{margin:0}.theme-paradise .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#800d33;background-image:linear-gradient(to bottom,#80014b,#80460d)}.theme-paradise .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paradise .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paradise .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paradise .Window__contentPadding:after{height:0}.theme-paradise .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paradise .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(166,34,78,.25);pointer-events:none}.theme-paradise .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paradise .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paradise .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paradise .TitleBar{background-color:#800d33;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paradise .TitleBar__clickable{color:rgba(255,0,0,.5);background-color:#800d33;transition:color .25s,background-color .25s}.theme-paradise .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paradise .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-paradise .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paradise .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-paradise .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paradise .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paradise .adminooc{color:#29ccbe}.theme-paradise .debug{color:#8f39e6}.theme-paradise .boxed_message{background:rgba(0,0,0,.25);border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.theme-paradise .boxed_message.left_align_text{text-align:left}.theme-paradise .boxed_message.red_border{background:rgba(0,0,0,.25);border-color:#a00}.theme-paradise .boxed_message.green_border{background:rgba(0,0,0,.25);border-color:#0f0}.theme-paradise .boxed_message.purple_border{background:rgba(0,0,0,.25);border-color:#8000ff}.theme-paradise .boxed_message.notice_border{background:rgba(0,0,0,.25);border-color:#6685f5}.theme-paradise .boxed_message.thick_border{border-width:thick} +html,body{box-sizing:border-box;height:100%;margin:0;font-size:12px}html{overflow:hidden;cursor:default}body{overflow:auto;font-family:Verdana,Geneva,sans-serif}*,*:before,*:after{box-sizing:inherit}h1,h2,h3,h4,h5,h6{display:block;margin:0;padding:6px 0;padding:.5rem 0}h1{font-size:18px;font-size:1.5rem}h2{font-size:16px;font-size:1.333rem}h3{font-size:14px;font-size:1.167rem}h4{font-size:12px;font-size:1rem}td,th{vertical-align:baseline;text-align:left}.candystripe:nth-child(odd){background-color:rgba(0,0,0,.25)}.color-black{color:#1a1a1a!important}.color-white{color:#fff!important}.color-red{color:#df3e3e!important}.color-orange{color:#f37f33!important}.color-yellow{color:#fbda21!important}.color-olive{color:#cbe41c!important}.color-green{color:#25ca4c!important}.color-teal{color:#00d6cc!important}.color-blue{color:#2e93de!important}.color-violet{color:#7349cf!important}.color-purple{color:#ad45d0!important}.color-pink{color:#e34da1!important}.color-brown{color:#b97447!important}.color-grey{color:#848484!important}.color-good{color:#68c22d!important}.color-average{color:#f29a29!important}.color-bad{color:#df3e3e!important}.color-label{color:#8b9bb0!important}.color-bg-black{background-color:#000!important}.color-bg-white{background-color:#d9d9d9!important}.color-bg-red{background-color:#bd2020!important}.color-bg-orange{background-color:#d95e0c!important}.color-bg-yellow{background-color:#d9b804!important}.color-bg-olive{background-color:#9aad14!important}.color-bg-green{background-color:#1b9638!important}.color-bg-teal{background-color:#009a93!important}.color-bg-blue{background-color:#1c71b1!important}.color-bg-violet{background-color:#552dab!important}.color-bg-purple{background-color:#8b2baa!important}.color-bg-pink{background-color:#cf2082!important}.color-bg-brown{background-color:#8c5836!important}.color-bg-grey{background-color:#646464!important}.color-bg-good{background-color:#4d9121!important}.color-bg-average{background-color:#cd7a0d!important}.color-bg-bad{background-color:#bd2020!important}.color-bg-label{background-color:#657a94!important}.debug-layout,.debug-layout *:not(g):not(path){color:rgba(255,255,255,.9)!important;background:rgba(0,0,0,0)!important;outline:1px solid rgba(255,255,255,.5)!important;box-shadow:none!important;filter:none!important}.debug-layout:hover,.debug-layout *:not(g):not(path):hover{outline-color:rgba(255,255,255,.8)!important}.outline-dotted{outline-style:dotted!important}.outline-dashed{outline-style:dashed!important}.outline-solid{outline-style:solid!important}.outline-double{outline-style:double!important}.outline-groove{outline-style:groove!important}.outline-ridge{outline-style:ridge!important}.outline-inset{outline-style:inset!important}.outline-outset{outline-style:outset!important}.outline-color-black{outline:.167rem solid #1a1a1a!important}.outline-color-white{outline:.167rem solid #fff!important}.outline-color-red{outline:.167rem solid #df3e3e!important}.outline-color-orange{outline:.167rem solid #f37f33!important}.outline-color-yellow{outline:.167rem solid #fbda21!important}.outline-color-olive{outline:.167rem solid #cbe41c!important}.outline-color-green{outline:.167rem solid #25ca4c!important}.outline-color-teal{outline:.167rem solid #00d6cc!important}.outline-color-blue{outline:.167rem solid #2e93de!important}.outline-color-violet{outline:.167rem solid #7349cf!important}.outline-color-purple{outline:.167rem solid #ad45d0!important}.outline-color-pink{outline:.167rem solid #e34da1!important}.outline-color-brown{outline:.167rem solid #b97447!important}.outline-color-grey{outline:.167rem solid #848484!important}.outline-color-good{outline:.167rem solid #68c22d!important}.outline-color-average{outline:.167rem solid #f29a29!important}.outline-color-bad{outline:.167rem solid #df3e3e!important}.outline-color-label{outline:.167rem solid #8b9bb0!important}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-baseline{text-align:baseline}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-pre{white-space:pre}.text-bold{font-weight:700}.text-italic{font-style:italic}.text-underline{text-decoration:underline}.BlockQuote{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}.BlockQuote:last-child{margin-bottom:0}.Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.Button:last-child{margin-right:0;margin-bottom:0}.Button .fa,.Button .fas,.Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.Button--hasContent .fa,.Button--hasContent .fas,.Button--hasContent .far{margin-right:.25em}.Button--hasContent.Button--iconRight .fa,.Button--hasContent.Button--iconRight .fas,.Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.Button--fluid{display:block;margin-left:0;margin-right:0}.Button--circular{border-radius:50%}.Button--compact{padding:0 .25em;line-height:1.333em}.Button--multiLine{white-space:normal;word-wrap:break-word}.Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.Button--color--black:focus{transition:color .25s,background-color .25s}.Button--color--black:hover{background-color:#101010;color:#fff}.Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.Button--color--white:focus{transition:color .25s,background-color .25s}.Button--color--white:hover{background-color:#f8f8f8;color:#000}.Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--red:focus{transition:color .25s,background-color .25s}.Button--color--red:hover{background-color:#d93f3f;color:#fff}.Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.Button--color--orange:focus{transition:color .25s,background-color .25s}.Button--color--orange:hover{background-color:#ef7e33;color:#fff}.Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--yellow:focus{transition:color .25s,background-color .25s}.Button--color--yellow:hover{background-color:#f5d523;color:#000}.Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.Button--color--olive:focus{transition:color .25s,background-color .25s}.Button--color--olive:hover{background-color:#bdd327;color:#fff}.Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--color--green:focus{transition:color .25s,background-color .25s}.Button--color--green:hover{background-color:#2fb94f;color:#fff}.Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.Button--color--teal:focus{transition:color .25s,background-color .25s}.Button--color--teal:hover{background-color:#10bdb6;color:#fff}.Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.Button--color--blue:focus{transition:color .25s,background-color .25s}.Button--color--blue:hover{background-color:#308fd6;color:#fff}.Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.Button--color--violet:focus{transition:color .25s,background-color .25s}.Button--color--violet:hover{background-color:#7249ca;color:#fff}.Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.Button--color--purple:focus{transition:color .25s,background-color .25s}.Button--color--purple:hover{background-color:#aa46ca;color:#fff}.Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.Button--color--pink:focus{transition:color .25s,background-color .25s}.Button--color--pink:hover{background-color:#e04ca0;color:#fff}.Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.Button--color--brown:focus{transition:color .25s,background-color .25s}.Button--color--brown:hover{background-color:#ae724c;color:#fff}.Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.Button--color--grey:focus{transition:color .25s,background-color .25s}.Button--color--grey:hover{background-color:#818181;color:#fff}.Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.Button--color--good:focus{transition:color .25s,background-color .25s}.Button--color--good:hover{background-color:#67b335;color:#fff}.Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.Button--color--average:focus{transition:color .25s,background-color .25s}.Button--color--average:hover{background-color:#eb972b;color:#fff}.Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--bad:focus{transition:color .25s,background-color .25s}.Button--color--bad:hover{background-color:#d93f3f;color:#fff}.Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.Button--color--label:focus{transition:color .25s,background-color .25s}.Button--color--label:hover{background-color:#8a9aae;color:#fff}.Button--color--default{transition:color .1s,background-color .1s;background-color:#3e6189;color:#fff}.Button--color--default:focus{transition:color .25s,background-color .25s}.Button--color--default:hover{background-color:#567daa;color:#fff}.Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.Button--color--caution:focus{transition:color .25s,background-color .25s}.Button--color--caution:hover{background-color:#f5d523;color:#000}.Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.Button--color--danger:focus{transition:color .25s,background-color .25s}.Button--color--danger:hover{background-color:#d93f3f;color:#fff}.Button--color--transparent{transition:color .1s,background-color .1s;background-color:#202020;color:#fff;background-color:rgba(32,32,32,0);color:rgba(255,255,255,.5)}.Button--color--transparent:focus{transition:color .25s,background-color .25s}.Button--color--transparent:hover{background-color:#343434;color:#fff}.Button--color--translucent{transition:color .1s,background-color .1s;background-color:#202020;color:#fff;background-color:rgba(32,32,32,.6);color:rgba(255,255,255,.5)}.Button--color--translucent:focus{transition:color .25s,background-color .25s}.Button--color--translucent:hover{background-color:#343434;color:#fff}.Button--disabled{background-color:#999!important}.Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.Button--selected:focus{transition:color .25s,background-color .25s}.Button--selected:hover{background-color:#2fb94f;color:#fff}.Button--modal{float:right;z-index:1;margin-top:-.5rem}.ColorBox{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}.Dimmer{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.75);z-index:1}.Dropdown{position:relative;align-items:center}.Dropdown__control{display:inline-block;align-items:center;font-family:Verdana,sans-serif;font-size:1em;width:8.3333333333em;line-height:1.3333333333em;-ms-user-select:none;user-select:none}.Dropdown__arrow-button{float:right;padding-left:.35em;width:1.2em;height:1.8333333333em;border-left:.0833333333em solid #000;border-left:.0833333333em solid rgba(0,0,0,.25)}.Dropdown__menu{overflow-y:auto;align-items:center;z-index:5;max-height:16.6666666667em;border-radius:0 0 .1666666667em .1666666667em;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75)}.Dropdown__menu-scroll{overflow-y:scroll}.Dropdown__menuentry{padding:.1666666667em .3333333333em;font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em;transition:background-color .1s ease-out}.Dropdown__menuentry.selected{background-color:rgba(255,255,255,.5)!important;transition:background-color 0ms}.Dropdown__menuentry:hover{background-color:rgba(255,255,255,.2);transition:background-color 0ms}.Dropdown__over{top:auto;bottom:100%}.Dropdown__selected-text{display:inline-block;text-overflow:ellipsis;white-space:nowrap;height:1.4166666667em;width:calc(100% - 1.2em);text-align:left;padding-top:2.5px}.Flex{display:-ms-flexbox;display:flex}.Flex--inline{display:inline-flex}.Flex--iefix{display:block}.Flex--iefix.Flex--inline,.Flex__item--iefix{display:inline-block}.Flex--iefix--column>.Flex__item--iefix{display:block}.Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.Knob__popupValue,.Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Knob__popupValue--right{top:.25rem;right:-50%}.Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.Knob__ringTrackPivot{transform:rotate(135deg)}.Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.Knob__ringFillPivot{transform:rotate(135deg)}.Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.Knob--color--white .Knob__ringFill{stroke:#fff}.Knob--color--red .Knob__ringFill{stroke:#df3e3e}.Knob--color--orange .Knob__ringFill{stroke:#f37f33}.Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.Knob--color--green .Knob__ringFill{stroke:#25ca4c}.Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.Knob--color--blue .Knob__ringFill{stroke:#2e93de}.Knob--color--violet .Knob__ringFill{stroke:#7349cf}.Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.Knob--color--pink .Knob__ringFill{stroke:#e34da1}.Knob--color--brown .Knob__ringFill{stroke:#b97447}.Knob--color--grey .Knob__ringFill{stroke:#848484}.Knob--color--good .Knob__ringFill{stroke:#68c22d}.Knob--color--average .Knob__ringFill{stroke:#f29a29}.Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.LabeledList{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-.25em -.5em 0;padding:0}.LabeledList__row{display:table-row}.LabeledList__row:last-child .LabeledList__cell{padding-bottom:0}.LabeledList__cell{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left;vertical-align:baseline}.LabeledList__label{width:1%;white-space:nowrap;min-width:5em}.LabeledList__buttons{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}.LabeledList__breakContents{word-break:break-all;word-wrap:break-word}.Modal{background-color:#202020;max-width:calc(100% - 1rem);padding:1rem;scrollbar-base-color:#181818;scrollbar-face-color:#363636;scrollbar-3dlight-color:#202020;scrollbar-highlight-color:#202020;scrollbar-track-color:#181818;scrollbar-arrow-color:#909090;scrollbar-shadow-color:#363636}.NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.NoticeBox--color--black{color:#fff;background-color:#000}.NoticeBox--color--white{color:#000;background-color:#b3b3b3}.NoticeBox--color--red{color:#fff;background-color:#701f1f}.NoticeBox--color--orange{color:#fff;background-color:#854114}.NoticeBox--color--yellow{color:#000;background-color:#83710d}.NoticeBox--color--olive{color:#000;background-color:#576015}.NoticeBox--color--green{color:#fff;background-color:#174e24}.NoticeBox--color--teal{color:#fff;background-color:#064845}.NoticeBox--color--blue{color:#fff;background-color:#1b4565}.NoticeBox--color--violet{color:#fff;background-color:#3b2864}.NoticeBox--color--purple{color:#fff;background-color:#542663}.NoticeBox--color--pink{color:#fff;background-color:#802257}.NoticeBox--color--brown{color:#fff;background-color:#4c3729}.NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.NoticeBox--color--average{color:#fff;background-color:#7b4e13}.NoticeBox--color--bad{color:#fff;background-color:#701f1f}.NoticeBox--color--label{color:#fff;background-color:#53565a}.NoticeBox--type--info{color:#fff;background-color:#235982}.NoticeBox--type--success{color:#fff;background-color:#1e662f}.NoticeBox--type--warning{color:#fff;background-color:#a95219}.NoticeBox--type--danger{color:#fff;background-color:#8f2828}.NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.NumberInput--fluid{display:block}.NumberInput__content{margin-left:.5em}.NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.ProgressBar__fill--animated{transition:background-color .5s,width .5s}.ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.ProgressBar--color--default{border:.0833333333em solid #3e6189}.ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.ProgressBar--color--disabled{border:1px solid #999}.ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.ProgressBar--color--black{border:.0833333333em solid #000!important}.ProgressBar--color--black .ProgressBar__fill{background-color:#000}.ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.ProgressBar--color--grey{border:.0833333333em solid #646464!important}.ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.ProgressBar--color--label{border:.0833333333em solid #657a94!important}.ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.Section{position:relative;margin-bottom:.5em;background-color:#131313;box-sizing:border-box}.Section:last-child{margin-bottom:0}.Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.Section__rest{position:relative}.Section__content{padding:.66em .5em}.Section--fitted>.Section__rest>.Section__content{padding:0}.Section--fill{display:flex;flex-direction:column;height:100%}.Section--fill>.Section__rest{flex-grow:1}.Section--fill>.Section__rest>.Section__content{height:100%}.Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.Section--scrollable{overflow-x:hidden;overflow-y:hidden}.Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.Section .Section:first-child{margin-top:-.5em}.Section .Section .Section__titleText{font-size:1.0833333333em}.Section .Section .Section .Section__titleText{font-size:1em}.Slider:not(.Slider__disabled){cursor:e-resize}.Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.Divider--horizontal{margin:.5em 0}.Divider--horizontal:not(.Divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Divider--vertical{height:100%;margin:0 .5em}.Divider--vertical:not(.Divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--fill{height:100%}.Stack--horizontal>.Stack__item{margin-left:.5em}.Stack--horizontal>.Stack__item:first-child{margin-left:0}.Stack--vertical>.Stack__item{margin-top:.5em}.Stack--vertical>.Stack__item:first-child{margin-top:0}.Stack--zebra>.Stack__item:nth-child(2n){background-color:#131313}.Stack--horizontal>.Stack__divider:not(.Stack__divider--hidden){border-left:.1666666667em solid rgba(255,255,255,.1)}.Stack--vertical>.Stack__divider:not(.Stack__divider--hidden){border-top:.1666666667em solid rgba(255,255,255,.1)}.Table{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}.Table--collapsing{width:auto}.Table__row{display:table-row}.Table__cell{display:table-cell;padding:0 .25em}.Table__cell:first-child{padding-left:0}.Table__cell:last-child{padding-right:0}.Table__row--header .Table__cell,.Table__cell--header{font-weight:700;padding-bottom:.5em}.Table__cell--collapsing{width:1%;white-space:nowrap}.Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:#131313}.Tabs--fill{height:100%}.Section .Tabs{background-color:rgba(0,0,0,0)}.Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.Tabs--horizontal:last-child{margin-bottom:0}.Tabs__Tab{flex-grow:0}.Tabs--fluid .Tabs__Tab{flex-grow:1}.Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(255,255,255,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.Tab:not(.Tab--selected):hover{background-color:rgba(255,255,255,.075);transition:background-color 0}.Tab--selected{background-color:rgba(255,255,255,.125);color:#dfe7f0}.Tab__text{flex-grow:1;margin:0 .5em}.Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #d4dfec}.Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.Tabs--vertical .Tab--selected{border-left:.1666666667em solid #d4dfec}.Tab--selected.Tab--color--black{color:#535353}.Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#1a1a1a}.Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#1a1a1a}.Tab--selected.Tab--color--white{color:#fff}.Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#fff}.Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#fff}.Tab--selected.Tab--color--red{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#df3e3e}.Tab--selected.Tab--color--orange{color:#f69f66}.Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#f37f33}.Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#f37f33}.Tab--selected.Tab--color--yellow{color:#fce358}.Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#fbda21}.Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#fbda21}.Tab--selected.Tab--color--olive{color:#d8eb55}.Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#cbe41c}.Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#cbe41c}.Tab--selected.Tab--color--green{color:#53e074}.Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#25ca4c}.Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#25ca4c}.Tab--selected.Tab--color--teal{color:#21fff5}.Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00d6cc}.Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00d6cc}.Tab--selected.Tab--color--blue{color:#62aee6}.Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#2e93de}.Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#2e93de}.Tab--selected.Tab--color--violet{color:#9676db}.Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#7349cf}.Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#7349cf}.Tab--selected.Tab--color--purple{color:#c274db}.Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#ad45d0}.Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#ad45d0}.Tab--selected.Tab--color--pink{color:#ea79b9}.Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#e34da1}.Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#e34da1}.Tab--selected.Tab--color--brown{color:#ca9775}.Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#b97447}.Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#b97447}.Tab--selected.Tab--color--grey{color:#a3a3a3}.Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#848484}.Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#848484}.Tab--selected.Tab--color--good{color:#8cd95a}.Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#68c22d}.Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#68c22d}.Tab--selected.Tab--color--average{color:#f5b35e}.Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#f29a29}.Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#f29a29}.Tab--selected.Tab--color--bad{color:#e76e6e}.Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#df3e3e}.Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#df3e3e}.Tab--selected.Tab--color--label{color:#a8b4c4}.Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#8b9bb0}.Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#8b9bb0}.Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.Input--fluid{display:block;width:auto}.Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.Input--monospace .Input__input{font-family:Consolas,monospace}.TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.TextArea--fluid{display:block;width:auto;height:auto}.TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.Tooltip{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -.1em rgba(0,0,0,.5);border-radius:.16em;max-width:20.8333333333em}.Chat{color:#abc6ec}.Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.Chat__badge:before{content:"x"}.Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.Chat__scrollButton{position:fixed;right:2em;bottom:1em}.Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#131313}.Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.Chat__highlight{color:#000}.Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.ChatMessage{word-wrap:break-word}.ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.Ping{position:relative;padding:.125em .25em;border:.0833333333em solid rgba(140,140,140,.5);border-radius:.25em;width:3.75em;text-align:right}.Ping__indicator{content:"";position:absolute;top:.5em;left:.5em;width:.5em;height:.5em;background-color:#888;border-radius:.25em}.Notifications{position:absolute;top:1em;left:.75em;right:2em}.Notification{color:#fff;background-color:#dc143c;padding:.5em;margin:1em 0}.Notification:first-child{margin-top:0}.Notification:last-child{margin-bottom:0}.Layout,.Layout *{scrollbar-base-color:#181818;scrollbar-face-color:#363636;scrollbar-3dlight-color:#202020;scrollbar-highlight-color:#202020;scrollbar-track-color:#181818;scrollbar-arrow-color:#909090;scrollbar-shadow-color:#363636}.Layout::-webkit-scrollbar,.Layout *::-webkit-scrollbar{width:12px}.Layout::-webkit-scrollbar-track,.Layout *::-webkit-scrollbar-track{background:#181818}.Layout::-webkit-scrollbar-thumb,.Layout *::-webkit-scrollbar-thumb{background:#363636}.Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.Layout__content--flexRow{display:flex;flex-flow:row}.Layout__content--flexColumn{display:flex;flex-flow:column}.Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.Layout__content--noMargin{margin:0}.Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#202020;background-image:linear-gradient(to bottom,#202020,#202020)}.Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.Window__contentPadding:after{height:0}.Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(56,56,56,.25);pointer-events:none}.Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}img{margin:0;padding:0;line-height:1;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}img.icon{height:1em;min-height:16px;width:auto;vertical-align:bottom}.emoji16x16{vertical-align:middle}a{color:#397ea5}a.popt{text-decoration:none}.popup{position:fixed;top:50%;left:50%;background:#ddd}.popup .close{position:absolute;background:#aaa;top:0;right:0;color:#333;text-decoration:none;z-index:2;padding:0 10px;height:30px;line-height:30px}.popup .close:hover{background:#999}.popup .head{background:#999;color:#ddd;padding:0 10px;height:30px;line-height:30px;text-transform:uppercase;font-size:.9em;font-weight:700;border-bottom:2px solid green}.popup input{border:1px solid #999;background:#fff;margin:0;padding:5px;outline:none;color:#333}.popup input[type=text]:hover,.popup input[type=text]:active,.popup input[type=text]:focus{border-color:green}.popup input[type=submit]{padding:5px 10px;background:#999;color:#ddd;text-transform:uppercase;font-size:.9em;font-weight:700}.popup input[type=submit]:hover,.popup input[type=submit]:focus,.popup input[type=submit]:active{background:#aaa;cursor:pointer}.changeFont{padding:10px}.changeFont a{display:block;text-decoration:none;padding:3px;color:#333}.changeFont a:hover{background:#ccc}.highlightPopup{padding:10px;text-align:center}.highlightPopup input[type=text]{display:block;width:215px;text-align:left;margin-top:5px}.highlightPopup input.highlightColor{background-color:#ff0}.highlightPopup input.highlightTermSubmit{margin-top:5px}.contextMenu{background-color:#ddd;position:fixed;margin:2px;width:150px}.contextMenu a{display:block;padding:2px 5px;text-decoration:none;color:#333}.contextMenu a:hover{background-color:#ccc}.filterMessages{padding:5px}.filterMessages div{padding:2px 0}.icon-stack{height:1em;line-height:1em;width:1em;vertical-align:middle;margin-top:-2px}.motd{color:#a4bad6;font-family:Verdana,sans-serif;white-space:normal}.motd h1,.motd h2,.motd h3,.motd h4,.motd h5,.motd h6{color:#a4bad6;text-decoration:underline}.motd a,.motd a:link,.motd a:active,.motd a:hover{color:#a4bad6}.italic,.italics,.emote{font-style:italic}.highlight{background:#ff0}h1,h2,h3,h4,h5,h6{color:#a4bad6;font-family:Georgia,Verdana,sans-serif}em{font-style:normal;font-weight:700}.darkmblue{color:#6685f5}.prefix,.ooc{font-weight:700}.looc{color:#69c;font-weight:700}.adminobserverooc{color:#09c;font-weight:700}.adminooc{color:#b82e00;font-weight:700}.adminobserver{color:#960;font-weight:700}.admin{color:#386aff;font-weight:700}.adminsay{color:#9611d4;font-weight:700}.mentorhelp{color:#07b;font-weight:700}.adminhelp{color:#a00;font-weight:700}.playerreply{color:#80b;font-weight:700}.pmsend{color:#6685f5}.debug{color:#6d2f83}.name,.yell{font-weight:700}.siliconsay{font-family:Courier New,Courier,monospace}.deadsay{color:#e2c1ff}.radio{color:#20b142}.deptradio{color:#939}.comradio{color:#5f5cff}.syndradio{color:#8f4a4b}.dsquadradio{color:#998599}.resteamradio{color:#18bc46}.airadio{color:#ff5ed7}.centradio{color:#2681a5}.secradio{color:#dd3535}.engradio{color:#feac20}.medradio{color:#00b5ad}.sciradio{color:#c68cfa}.supradio{color:#b88646}.srvradio{color:#bbd164}.proradio{color:#b84f92}.admin_channel{color:#03fc9d;font-weight:700}.all_admin_ping{color:#12a5f4;font-weight:700;font-size:120%;text-align:center}.mentor_channel{color:#775bff;font-weight:700}.mentor_channel_admin{color:#a35cff;font-weight:700}.djradio{color:#960}.binaryradio{color:#1b00fb;font-family:Courier New,Courier,monospace}.mommiradio{color:#6685f5}.alert{color:#d82020}h1.alert,h2.alert{color:#a4bad6}.ghostalert{color:#cc00c6;font-style:italic;font-weight:700}.emote{font-style:italic}.selecteddna{color:#a4bad6;background-color:#001b1b}.attack{color:red}.moderate{color:#c00}.disarm{color:#900}.passive{color:#600}.warning{color:#c51e1e;font-style:italic}.boldwarning{color:#c51e1e;font-style:italic;font-weight:700}.danger{color:#c51e1e;font-weight:700}.userdanger{color:#c51e1e;font-weight:700;font-size:120%}.biggerdanger{color:red;font-weight:700;font-size:150%}.info{color:#9ab0ff}.notice{color:#6685f5}.boldnotice{color:#6685f5;font-weight:700}.suicide{color:#ff5050;font-style:italic}.green{color:#03bb39}.pr_announce,.boldannounceic,.boldannounceooc{color:#c51e1e;font-weight:700}.greenannounce{color:#059223;font-weight:700}.alien{color:#c433c4}.noticealien{color:#00c000}.alertalien{color:#00c000;font-weight:700}.terrorspider{color:#cf52fa}.dantalion{color:#8b2c5e}.chaosverygood{color:#19e0c0;font-weight:700;font-size:120%}.chaosgood{color:#19e0c0;font-weight:700}.chaosneutral{color:#479ac0;font-weight:700}.chaosbad{color:#9047c0;font-weight:700}.chaosverybad{color:#9047c0;font-weight:700;font-size:120%}.sinister{color:purple;font-weight:700;font-style:italic}.medal{font-weight:700}.blob{color:#006221;font-weight:700;font-style:italic}.confirm{color:#00af3b}.rose{color:#ff5050}.sans{font-family:Comic Sans MS,cursive,sans-serif}.wingdings{font-family:Wingdings,Webdings}.robot{font-family:OCR-A,monospace;font-size:1.15em;font-weight:700}.ancient{color:#008b8b;font-style:italic}.newscaster{color:#c00}.mod{color:#735638;font-weight:700}.modooc{color:#184880;font-weight:700}.adminmod{color:#f0aa14;font-weight:700}.tajaran{color:#803b56}.skrell{color:#00ced1}.solcom{color:#8282fb}.com_srus{color:#7c4848}.zombie{color:red}.soghun{color:#228b22}.changeling{color:#00b4de}.vox{color:#a0a}.diona{color:#804000;font-weight:700}.trinary{color:#727272}.kidan{color:#c64c05}.slime{color:#07a}.drask{color:#a3d4eb;font-family:Arial Black}.moth{color:#869b29;font-family:Copperplate}.clown{color:red}.vulpkanin{color:#b97a57}.abductor{color:purple;font-style:italic}.mind_control{color:#a00d6f;font-size:3;font-weight:700;font-style:italic}.rough{font-family:Trebuchet MS,cursive,sans-serif}.say_quote{font-family:Georgia,Verdana,sans-serif}.cult{color:purple;font-weight:700;font-style:italic}.cultspeech{color:#af0000;font-style:italic}.cultitalic{color:#a60000;font-style:italic}.cultlarge{color:#a60000;font-weight:700;font-size:120%}.narsie{color:#a60000;font-weight:700;font-size:300%}.narsiesmall{color:#a60000;font-weight:700;font-size:200%}.interface{color:#9031c4}.big{font-size:150%}.reallybig{font-size:175%}.greentext{color:#0f0;font-size:150%}.redtext{color:red;font-size:150%}.bold{font-weight:700}.his_grace{color:#15d512;font-family:Courier New,cursive,sans-serif;font-style:italic}.center{text-align:center}.red{color:red}.purple{color:#9031c4}.skeleton{color:#c8c8c8;font-weight:700;font-style:italic}.gutter{color:#7092be;font-family:Trebuchet MS,cursive,sans-serif}.orange{color:orange}.orangei{color:orange;font-style:italic}.orangeb{color:orange;font-weight:700}.resonate{color:#298f85}.healthscan_oxy{color:#5cc9ff}.revennotice{color:#6685f5}.revenboldnotice{color:#6685f5;font-weight:700}.revenbignotice{color:#6685f5;font-weight:700;font-size:120%}.revenminor{color:#823abb}.revenwarning{color:#760fbb;font-style:italic}.revendanger{color:#760fbb;font-weight:700;font-size:120%}.specialnotice{color:#4a6f82;font-weight:700;font-size:120%}.good{color:green}.average{color:#ff8000}.bad{color:red}.italics,.talkinto{font-style:italic}.whisper{font-style:italic;color:#ccc}.recruit{color:#5c00e6;font-weight:700;font-style:italic}.memo{color:#638500;text-align:center}.memoedit{text-align:center;font-size:75%}.connectionClosed,.fatalError{background:red;color:#fff;padding:5px}.connectionClosed.restored{background:green}.internal.boldnshit{color:#6685f5;font-weight:700}.rebooting{background:#2979af;color:#fff;padding:5px}.rebooting a{color:#fff!important;text-decoration-color:#fff!important}.text-normal{font-weight:400;font-style:normal}.hidden{display:none;visibility:hidden}.colossus{color:#7f282a;font-size:175%}.hierophant{color:#609;font-weight:700;font-style:italic}.hierophant_warning{color:#609;font-style:italic}.emoji{max-height:16px;max-width:16px}.adminticket{color:#3daf21;font-weight:700}.adminticketalt{color:#ccb847;font-weight:700}span.body .codephrases{color:#55f}span.body .coderesponses{color:#f33}.announcement h1,.announcement h2{color:#a4bad6;margin:8pt 0;line-height:1.2}.announcement p{color:#d82020;line-height:1.3}.announcement.minor h1{font-size:180%}.announcement.minor h2{font-size:170%}.announcement.sec h1{color:red;font-size:180%;font-family:Verdana,sans-serif}.bolditalics{font-style:italic;font-weight:700}.boxed_message{background:#1b1c1e;border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.boxed_message.left_align_text{text-align:left}.boxed_message.red_border{background:#1e1b1b;border-color:#a00}.boxed_message.green_border{background:#1b1e1c;border-color:#0f0}.boxed_message.purple_border{background:#1d1c1f;border-color:#8000ff}.boxed_message.notice_border{background:#1b1c1e;border-color:#6685f5}.boxed_message.thick_border{border-width:thick}.theme-light .color-black{color:#000!important}.theme-light .color-white{color:#e6e6e6!important}.theme-light .color-red{color:#c82121!important}.theme-light .color-orange{color:#e6630d!important}.theme-light .color-yellow{color:#e5c304!important}.theme-light .color-olive{color:#a3b816!important}.theme-light .color-green{color:#1d9f3b!important}.theme-light .color-teal{color:#00a39c!important}.theme-light .color-blue{color:#1e78bb!important}.theme-light .color-violet{color:#5a30b5!important}.theme-light .color-purple{color:#932eb4!important}.theme-light .color-pink{color:#db228a!important}.theme-light .color-brown{color:#955d39!important}.theme-light .color-grey{color:#e6e6e6!important}.theme-light .color-good{color:#529923!important}.theme-light .color-average{color:#da810e!important}.theme-light .color-bad{color:#c82121!important}.theme-light .color-label{color:#353535!important}.theme-light .color-bg-black{background-color:#000!important}.theme-light .color-bg-white{background-color:#bfbfbf!important}.theme-light .color-bg-red{background-color:#a61c1c!important}.theme-light .color-bg-orange{background-color:#c0530b!important}.theme-light .color-bg-yellow{background-color:#bfa303!important}.theme-light .color-bg-olive{background-color:#889912!important}.theme-light .color-bg-green{background-color:#188532!important}.theme-light .color-bg-teal{background-color:#008882!important}.theme-light .color-bg-blue{background-color:#19649c!important}.theme-light .color-bg-violet{background-color:#4b2897!important}.theme-light .color-bg-purple{background-color:#7a2696!important}.theme-light .color-bg-pink{background-color:#b61d73!important}.theme-light .color-bg-brown{background-color:#7c4d2f!important}.theme-light .color-bg-grey{background-color:#bfbfbf!important}.theme-light .color-bg-good{background-color:#44801d!important}.theme-light .color-bg-average{background-color:#b56b0b!important}.theme-light .color-bg-bad{background-color:#a61c1c!important}.theme-light .color-bg-label{background-color:#2c2c2c!important}.theme-light .Tabs{display:flex;align-items:stretch;overflow:hidden;background-color:#fff}.theme-light .Tabs--fill{height:100%}.theme-light .Section .Tabs{background-color:rgba(0,0,0,0)}.theme-light .Section:not(.Section--fitted) .Tabs{margin:0 -.5em .5em}.theme-light .Section:not(.Section--fitted) .Tabs:first-child{margin-top:-.5em}.theme-light .Tabs--vertical{flex-direction:column;padding:.25em .25em .25em 0}.theme-light .Tabs--horizontal{margin-bottom:.5em;padding:.25em .25em 0}.theme-light .Tabs--horizontal:last-child{margin-bottom:0}.theme-light .Tabs__Tab{flex-grow:0}.theme-light .Tabs--fluid .Tabs__Tab{flex-grow:1}.theme-light .Tab{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,0);color:rgba(0,0,0,.5);min-height:2.25em;min-width:4em;transition:background-color 50ms ease-out}.theme-light .Tab:not(.Tab--selected):hover{background-color:rgba(0,0,0,.075);transition:background-color 0}.theme-light .Tab--selected{background-color:rgba(0,0,0,.125);color:#404040}.theme-light .Tab__text{flex-grow:1;margin:0 .5em}.theme-light .Tab__left{min-width:1.5em;text-align:center;margin-left:.25em}.theme-light .Tab__right{min-width:1.5em;text-align:center;margin-right:.25em}.theme-light .Tabs--horizontal .Tab{border-top:.1666666667em solid rgba(0,0,0,0);border-bottom:.1666666667em solid rgba(0,0,0,0);border-top-left-radius:.25em;border-top-right-radius:.25em}.theme-light .Tabs--horizontal .Tab--selected{border-bottom:.1666666667em solid #000}.theme-light .Tabs--vertical .Tab{min-height:2em;border-left:.1666666667em solid rgba(0,0,0,0);border-right:.1666666667em solid rgba(0,0,0,0);border-top-right-radius:.25em;border-bottom-right-radius:.25em}.theme-light .Tabs--vertical .Tab--selected{border-left:.1666666667em solid #000}.theme-light .Tab--selected.Tab--color--black{color:#404040}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--black{border-bottom-color:#000}.theme-light .Tabs--vertical .Tab--selected.Tab--color--black{border-left-color:#000}.theme-light .Tab--selected.Tab--color--white{color:#ececec}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--white{border-bottom-color:#e6e6e6}.theme-light .Tabs--vertical .Tab--selected.Tab--color--white{border-left-color:#e6e6e6}.theme-light .Tab--selected.Tab--color--red{color:#e14d4d}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--red{border-bottom-color:#c82121}.theme-light .Tabs--vertical .Tab--selected.Tab--color--red{border-left-color:#c82121}.theme-light .Tab--selected.Tab--color--orange{color:#f48942}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--orange{border-bottom-color:#e6630d}.theme-light .Tabs--vertical .Tab--selected.Tab--color--orange{border-left-color:#e6630d}.theme-light .Tab--selected.Tab--color--yellow{color:#fcdd33}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--yellow{border-bottom-color:#e5c304}.theme-light .Tabs--vertical .Tab--selected.Tab--color--yellow{border-left-color:#e5c304}.theme-light .Tab--selected.Tab--color--olive{color:#d0e732}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--olive{border-bottom-color:#a3b816}.theme-light .Tabs--vertical .Tab--selected.Tab--color--olive{border-left-color:#a3b816}.theme-light .Tab--selected.Tab--color--green{color:#33da5a}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--green{border-bottom-color:#1d9f3b}.theme-light .Tabs--vertical .Tab--selected.Tab--color--green{border-left-color:#1d9f3b}.theme-light .Tab--selected.Tab--color--teal{color:#00faef}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--teal{border-bottom-color:#00a39c}.theme-light .Tabs--vertical .Tab--selected.Tab--color--teal{border-left-color:#00a39c}.theme-light .Tab--selected.Tab--color--blue{color:#419ce1}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--blue{border-bottom-color:#1e78bb}.theme-light .Tabs--vertical .Tab--selected.Tab--color--blue{border-left-color:#1e78bb}.theme-light .Tab--selected.Tab--color--violet{color:#7f58d3}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--violet{border-bottom-color:#5a30b5}.theme-light .Tabs--vertical .Tab--selected.Tab--color--violet{border-left-color:#5a30b5}.theme-light .Tab--selected.Tab--color--purple{color:#b455d4}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--purple{border-bottom-color:#932eb4}.theme-light .Tabs--vertical .Tab--selected.Tab--color--purple{border-left-color:#932eb4}.theme-light .Tab--selected.Tab--color--pink{color:#e558a7}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--pink{border-bottom-color:#db228a}.theme-light .Tabs--vertical .Tab--selected.Tab--color--pink{border-left-color:#db228a}.theme-light .Tab--selected.Tab--color--brown{color:#c0825a}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--brown{border-bottom-color:#955d39}.theme-light .Tabs--vertical .Tab--selected.Tab--color--brown{border-left-color:#955d39}.theme-light .Tab--selected.Tab--color--grey{color:#ececec}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--grey{border-bottom-color:#e6e6e6}.theme-light .Tabs--vertical .Tab--selected.Tab--color--grey{border-left-color:#e6e6e6}.theme-light .Tab--selected.Tab--color--good{color:#77d23b}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--good{border-bottom-color:#529923}.theme-light .Tabs--vertical .Tab--selected.Tab--color--good{border-left-color:#529923}.theme-light .Tab--selected.Tab--color--average{color:#f3a23a}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--average{border-bottom-color:#da810e}.theme-light .Tabs--vertical .Tab--selected.Tab--color--average{border-left-color:#da810e}.theme-light .Tab--selected.Tab--color--bad{color:#e14d4d}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--bad{border-bottom-color:#c82121}.theme-light .Tabs--vertical .Tab--selected.Tab--color--bad{border-left-color:#c82121}.theme-light .Tab--selected.Tab--color--label{color:#686868}.theme-light .Tabs--horizontal .Tab--selected.Tab--color--label{border-bottom-color:#353535}.theme-light .Tabs--vertical .Tab--selected.Tab--color--label{border-left-color:#353535}.theme-light .Section{position:relative;margin-bottom:.5em;background-color:#fff;box-sizing:border-box}.theme-light .Section:last-child{margin-bottom:0}.theme-light .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #fff}.theme-light .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#000}.theme-light .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-light .Section__rest{position:relative}.theme-light .Section__content{padding:.66em .5em}.theme-light .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-light .Section--fill{display:flex;flex-direction:column;height:100%}.theme-light .Section--fill>.Section__rest{flex-grow:1}.theme-light .Section--fill>.Section__rest>.Section__content{height:100%}.theme-light .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-light .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-light .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-light .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-light .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-light .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-light .Section .Section:first-child{margin-top:-.5em}.theme-light .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-light .Section .Section .Section .Section__titleText{font-size:1em}.theme-light .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-light .Button:last-child{margin-right:0;margin-bottom:0}.theme-light .Button .fa,.theme-light .Button .fas,.theme-light .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-light .Button--hasContent .fa,.theme-light .Button--hasContent .fas,.theme-light .Button--hasContent .far{margin-right:.25em}.theme-light .Button--hasContent.Button--iconRight .fa,.theme-light .Button--hasContent.Button--iconRight .fas,.theme-light .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-light .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-light .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-light .Button--circular{border-radius:50%}.theme-light .Button--compact{padding:0 .25em;line-height:1.333em}.theme-light .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-light .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-light .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--black:hover{background-color:#101010;color:#fff}.theme-light .Button--color--white{transition:color .1s,background-color .1s;background-color:#bfbfbf;color:#000}.theme-light .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--white:hover{background-color:#e7e7e7;color:#000}.theme-light .Button--color--red{transition:color .1s,background-color .1s;background-color:#a61c1c;color:#fff}.theme-light .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--red:hover{background-color:#cb3030;color:#fff}.theme-light .Button--color--orange{transition:color .1s,background-color .1s;background-color:#c0530b;color:#fff}.theme-light .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--orange:hover{background-color:#e76d1d;color:#fff}.theme-light .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#bfa303;color:#fff}.theme-light .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--yellow:hover{background-color:#e7c714;color:#fff}.theme-light .Button--color--olive{transition:color .1s,background-color .1s;background-color:#889912;color:#fff}.theme-light .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--olive:hover{background-color:#a9bc25;color:#fff}.theme-light .Button--color--green{transition:color .1s,background-color .1s;background-color:#188532;color:#fff}.theme-light .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--green:hover{background-color:#2ba648;color:#fff}.theme-light .Button--color--teal{transition:color .1s,background-color .1s;background-color:#008882;color:#fff}.theme-light .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--teal:hover{background-color:#10a9a2;color:#fff}.theme-light .Button--color--blue{transition:color .1s,background-color .1s;background-color:#19649c;color:#fff}.theme-light .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--blue:hover{background-color:#2c81c0;color:#fff}.theme-light .Button--color--violet{transition:color .1s,background-color .1s;background-color:#4b2897;color:#fff}.theme-light .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--violet:hover{background-color:#653db9;color:#fff}.theme-light .Button--color--purple{transition:color .1s,background-color .1s;background-color:#7a2696;color:#fff}.theme-light .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--purple:hover{background-color:#9a3bb9;color:#fff}.theme-light .Button--color--pink{transition:color .1s,background-color .1s;background-color:#b61d73;color:#fff}.theme-light .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--pink:hover{background-color:#d93591;color:#fff}.theme-light .Button--color--brown{transition:color .1s,background-color .1s;background-color:#7c4d2f;color:#fff}.theme-light .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--brown:hover{background-color:#9c6745;color:#fff}.theme-light .Button--color--grey{transition:color .1s,background-color .1s;background-color:#bfbfbf;color:#000}.theme-light .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--grey:hover{background-color:#e7e7e7;color:#000}.theme-light .Button--color--good{transition:color .1s,background-color .1s;background-color:#44801d;color:#fff}.theme-light .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--good:hover{background-color:#5d9f31;color:#fff}.theme-light .Button--color--average{transition:color .1s,background-color .1s;background-color:#b56b0b;color:#fff}.theme-light .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--average:hover{background-color:#dc891d;color:#fff}.theme-light .Button--color--bad{transition:color .1s,background-color .1s;background-color:#a61c1c;color:#fff}.theme-light .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--bad:hover{background-color:#cb3030;color:#fff}.theme-light .Button--color--label{transition:color .1s,background-color .1s;background-color:#2c2c2c;color:#fff}.theme-light .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--label:hover{background-color:#424242;color:#fff}.theme-light .Button--color--default{transition:color .1s,background-color .1s;background-color:#bbb;color:#000}.theme-light .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--default:hover{background-color:#e3e3e3;color:#000}.theme-light .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-light .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-light .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-light .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-light .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#eee;color:#000;background-color:rgba(238,238,238,0);color:rgba(0,0,0,.5)}.theme-light .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--transparent:hover{background-color:#fcfcfc;color:#000}.theme-light .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#eee;color:#000;background-color:rgba(238,238,238,.6);color:rgba(0,0,0,.5)}.theme-light .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-light .Button--color--translucent:hover{background-color:#fcfcfc;color:#000}.theme-light .Button--disabled{background-color:#363636!important}.theme-light .Button--selected{transition:color .1s,background-color .1s;background-color:#0668b8;color:#fff}.theme-light .Button--selected:focus{transition:color .25s,background-color .25s}.theme-light .Button--selected:hover{background-color:#1785df;color:#fff}.theme-light .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-light .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #353535;border:.0833333333em solid rgba(53,53,53,.75);border-radius:.16em;color:#353535;background-color:#e6e6e6;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-light .NumberInput--fluid{display:block}.theme-light .NumberInput__content{margin-left:.5em}.theme-light .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-light .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #353535;background-color:#353535}.theme-light .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#e6e6e6;color:#000;text-align:right}.theme-light .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #353535;border:.0833333333em solid rgba(53,53,53,.75);border-radius:.16em;color:#000;background-color:#e6e6e6;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-light .Input--disabled{color:#777;border-color:#000;border-color:rgba(0,0,0,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-light .Input--fluid{display:block;width:auto}.theme-light .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-light .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#000;color:inherit}.theme-light .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-light .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-light .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-light .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-light .TextArea{position:relative;display:inline-block;border:.0833333333em solid #353535;border:.0833333333em solid rgba(53,53,53,.75);border-radius:.16em;background-color:#e6e6e6;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-light .TextArea--fluid{display:block;width:auto;height:auto}.theme-light .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-light .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-light .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-light .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-light .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-light .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-light .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-light .Knob__popupValue,.theme-light .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-light .Knob__popupValue--right{top:.25rem;right:-50%}.theme-light .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-light .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-light .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-light .Knob__ringFillPivot{transform:rotate(135deg)}.theme-light .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-light .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-light .Knob--color--black .Knob__ringFill{stroke:#000}.theme-light .Knob--color--white .Knob__ringFill{stroke:#e6e6e6}.theme-light .Knob--color--red .Knob__ringFill{stroke:#c82121}.theme-light .Knob--color--orange .Knob__ringFill{stroke:#e6630d}.theme-light .Knob--color--yellow .Knob__ringFill{stroke:#e5c304}.theme-light .Knob--color--olive .Knob__ringFill{stroke:#a3b816}.theme-light .Knob--color--green .Knob__ringFill{stroke:#1d9f3b}.theme-light .Knob--color--teal .Knob__ringFill{stroke:#00a39c}.theme-light .Knob--color--blue .Knob__ringFill{stroke:#1e78bb}.theme-light .Knob--color--violet .Knob__ringFill{stroke:#5a30b5}.theme-light .Knob--color--purple .Knob__ringFill{stroke:#932eb4}.theme-light .Knob--color--pink .Knob__ringFill{stroke:#db228a}.theme-light .Knob--color--brown .Knob__ringFill{stroke:#955d39}.theme-light .Knob--color--grey .Knob__ringFill{stroke:#e6e6e6}.theme-light .Knob--color--good .Knob__ringFill{stroke:#529923}.theme-light .Knob--color--average .Knob__ringFill{stroke:#da810e}.theme-light .Knob--color--bad .Knob__ringFill{stroke:#c82121}.theme-light .Knob--color--label .Knob__ringFill{stroke:#353535}.theme-light .Slider:not(.Slider__disabled){cursor:e-resize}.theme-light .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-light .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #000}.theme-light .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #000}.theme-light .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-light .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-light .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-light .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-light .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-light .ProgressBar--color--default{border:.0833333333em solid #bfbfbf}.theme-light .ProgressBar--color--default .ProgressBar__fill{background-color:#bfbfbf}.theme-light .ProgressBar--color--disabled{border:1px solid #999}.theme-light .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-light .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-light .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-light .ProgressBar--color--white{border:.0833333333em solid #bfbfbf!important}.theme-light .ProgressBar--color--white .ProgressBar__fill{background-color:#bfbfbf}.theme-light .ProgressBar--color--red{border:.0833333333em solid #a61c1c!important}.theme-light .ProgressBar--color--red .ProgressBar__fill{background-color:#a61c1c}.theme-light .ProgressBar--color--orange{border:.0833333333em solid #c0530b!important}.theme-light .ProgressBar--color--orange .ProgressBar__fill{background-color:#c0530b}.theme-light .ProgressBar--color--yellow{border:.0833333333em solid #bfa303!important}.theme-light .ProgressBar--color--yellow .ProgressBar__fill{background-color:#bfa303}.theme-light .ProgressBar--color--olive{border:.0833333333em solid #889912!important}.theme-light .ProgressBar--color--olive .ProgressBar__fill{background-color:#889912}.theme-light .ProgressBar--color--green{border:.0833333333em solid #188532!important}.theme-light .ProgressBar--color--green .ProgressBar__fill{background-color:#188532}.theme-light .ProgressBar--color--teal{border:.0833333333em solid #008882!important}.theme-light .ProgressBar--color--teal .ProgressBar__fill{background-color:#008882}.theme-light .ProgressBar--color--blue{border:.0833333333em solid #19649c!important}.theme-light .ProgressBar--color--blue .ProgressBar__fill{background-color:#19649c}.theme-light .ProgressBar--color--violet{border:.0833333333em solid #4b2897!important}.theme-light .ProgressBar--color--violet .ProgressBar__fill{background-color:#4b2897}.theme-light .ProgressBar--color--purple{border:.0833333333em solid #7a2696!important}.theme-light .ProgressBar--color--purple .ProgressBar__fill{background-color:#7a2696}.theme-light .ProgressBar--color--pink{border:.0833333333em solid #b61d73!important}.theme-light .ProgressBar--color--pink .ProgressBar__fill{background-color:#b61d73}.theme-light .ProgressBar--color--brown{border:.0833333333em solid #7c4d2f!important}.theme-light .ProgressBar--color--brown .ProgressBar__fill{background-color:#7c4d2f}.theme-light .ProgressBar--color--grey{border:.0833333333em solid #bfbfbf!important}.theme-light .ProgressBar--color--grey .ProgressBar__fill{background-color:#bfbfbf}.theme-light .ProgressBar--color--good{border:.0833333333em solid #44801d!important}.theme-light .ProgressBar--color--good .ProgressBar__fill{background-color:#44801d}.theme-light .ProgressBar--color--average{border:.0833333333em solid #b56b0b!important}.theme-light .ProgressBar--color--average .ProgressBar__fill{background-color:#b56b0b}.theme-light .ProgressBar--color--bad{border:.0833333333em solid #a61c1c!important}.theme-light .ProgressBar--color--bad .ProgressBar__fill{background-color:#a61c1c}.theme-light .ProgressBar--color--label{border:.0833333333em solid #2c2c2c!important}.theme-light .ProgressBar--color--label .ProgressBar__fill{background-color:#2c2c2c}.theme-light .Chat{color:#000}.theme-light .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-light .Chat__badge:before{content:"x"}.theme-light .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-light .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-light .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-light .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#fff}.theme-light .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-light .Chat__highlight{color:#000}.theme-light .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-light .ChatMessage{word-wrap:break-word}.theme-light .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-light .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-light .Layout,.theme-light .Layout *{scrollbar-base-color:#f2f2f2;scrollbar-face-color:#d6d6d6;scrollbar-3dlight-color:#eee;scrollbar-highlight-color:#eee;scrollbar-track-color:#f2f2f2;scrollbar-arrow-color:#777;scrollbar-shadow-color:#d6d6d6}.theme-light .Layout::-webkit-scrollbar,.theme-light .Layout *::-webkit-scrollbar{width:12px}.theme-light .Layout::-webkit-scrollbar-track,.theme-light .Layout *::-webkit-scrollbar-track{background:#f2f2f2}.theme-light .Layout::-webkit-scrollbar-thumb,.theme-light .Layout *::-webkit-scrollbar-thumb{background:#d6d6d6}.theme-light .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-light .Layout__content--flexRow{display:flex;flex-flow:row}.theme-light .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-light .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-light .Layout__content--noMargin{margin:0}.theme-light .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#000;background-color:#eee;background-image:linear-gradient(to bottom,#eee,#eee)}.theme-light .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-light .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-light .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-light .Window__contentPadding:after{height:0}.theme-light .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-light .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(252,252,252,.25);pointer-events:none}.theme-light .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-light .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-light .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-light .TitleBar{background-color:#eee;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-light .TitleBar__clickable{color:rgba(0,0,0,.5);background-color:#eee;transition:color .25s,background-color .25s}.theme-light .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-light .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(0,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-light .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-light .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-light .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-light .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-light html,.theme-light body{padding:0;margin:0;height:100%;color:#000}.theme-light body{background:#fff;font-family:Verdana,sans-serif;font-size:13px;line-height:1.2;overflow-x:hidden;overflow-y:scroll;word-wrap:break-word}.theme-light img{margin:0;padding:0;line-height:1;-ms-interpolation-mode:nearest-neighbor;image-rendering:pixelated}.theme-light img.icon{height:1em;min-height:16px;width:auto;vertical-align:bottom}.theme-light a{color:#00f}.theme-light a.popt{text-decoration:none}.theme-light .popup{position:fixed;top:50%;left:50%;background:#ddd}.theme-light .popup .close{position:absolute;background:#aaa;top:0;right:0;color:#333;text-decoration:none;z-index:2;padding:0 10px;height:30px;line-height:30px}.theme-light .popup .close:hover{background:#999}.theme-light .popup .head{background:#999;color:#ddd;padding:0 10px;height:30px;line-height:30px;text-transform:uppercase;font-size:.9em;font-weight:700;border-bottom:2px solid green}.theme-light .popup input{border:1px solid #999;background:#fff;margin:0;padding:5px;outline:none;color:#333}.theme-light .popup input[type=text]:hover,.theme-light .popup input[type=text]:active,.theme-light .popup input[type=text]:focus{border-color:green}.theme-light .popup input[type=submit]{padding:5px 10px;background:#999;color:#ddd;text-transform:uppercase;font-size:.9em;font-weight:700}.theme-light .popup input[type=submit]:hover,.theme-light .popup input[type=submit]:focus,.theme-light .popup input[type=submit]:active{background:#aaa;cursor:pointer}.theme-light .changeFont{padding:10px}.theme-light .changeFont a{display:block;text-decoration:none;padding:3px;color:#333}.theme-light .changeFont a:hover{background:#ccc}.theme-light .highlightPopup{padding:10px;text-align:center}.theme-light .highlightPopup input[type=text]{display:block;width:215px;text-align:left;margin-top:5px}.theme-light .highlightPopup input.highlightColor{background-color:#ff0}.theme-light .highlightPopup input.highlightTermSubmit{margin-top:5px}.theme-light .contextMenu{background-color:#ddd;position:fixed;margin:2px;width:150px}.theme-light .contextMenu a{display:block;padding:2px 5px;text-decoration:none;color:#333}.theme-light .contextMenu a:hover{background-color:#ccc}.theme-light .filterMessages{padding:5px}.theme-light .filterMessages div{padding:2px 0}.theme-light .icon-stack{height:1em;line-height:1em;width:1em;vertical-align:middle;margin-top:-2px}.theme-light .motd{color:#638500;font-family:Verdana,sans-serif;white-space:normal}.theme-light .motd h1,.theme-light .motd h2,.theme-light .motd h3,.theme-light .motd h4,.theme-light .motd h5,.theme-light .motd h6{color:#638500;text-decoration:underline}.theme-light .motd a,.theme-light .motd a:link,.theme-light .motd a:active,.theme-light .motd a:hover{color:#638500}.theme-light .italic,.theme-light .italics,.theme-light .emote{font-style:italic}.theme-light .highlight{background:#ff0}.theme-light h1,.theme-light h2,.theme-light h3,.theme-light h4,.theme-light h5,.theme-light h6{color:#00f;font-family:Georgia,Verdana,sans-serif}.theme-light em{font-style:normal;font-weight:700}.theme-light .darkmblue{color:#00f}.theme-light .prefix,.theme-light .ooc{font-weight:700}.theme-light .looc{color:#69c;font-weight:700}.theme-light .adminobserverooc{color:#09c;font-weight:700}.theme-light .adminooc{color:#b82e00;font-weight:700}.theme-light .adminobserver{color:#960;font-weight:700}.theme-light .admin{color:#386aff;font-weight:700}.theme-light .adminsay{color:#9611d4;font-weight:700}.theme-light .mentorhelp{color:#07b;font-weight:700}.theme-light .adminhelp{color:#a00;font-weight:700}.theme-light .playerreply{color:#80b;font-weight:700}.theme-light .pmsend{color:#00f}.theme-light .debug{color:#6d2f83}.theme-light .name,.theme-light .yell{font-weight:700}.theme-light .siliconsay{font-family:Courier New,Courier,monospace}.theme-light .deadsay{color:#5c00e6}.theme-light .radio{color:#408010}.theme-light .deptradio{color:#939}.theme-light .comradio{color:#204090}.theme-light .syndradio{color:#6d3f40}.theme-light .dsquadradio{color:#686868}.theme-light .resteamradio{color:#18bc46}.theme-light .airadio{color:#f0f}.theme-light .centradio{color:#5c5c7c}.theme-light .secradio{color:#a30000}.theme-light .engradio{color:#a66300}.theme-light .medradio{color:#009190}.theme-light .sciradio{color:#939}.theme-light .supradio{color:#7f6539}.theme-light .srvradio{color:#80a000}.theme-light .proradio{color:#e3027a}.theme-light .admin_channel{color:#9a04d1;font-weight:700}.theme-light .all_admin_ping{color:#12a5f4;font-weight:700;font-size:120%;text-align:center}.theme-light .mentor_channel{color:#775bff;font-weight:700}.theme-light .mentor_channel_admin{color:#a35cff;font-weight:700}.theme-light .djradio{color:#630}.theme-light .binaryradio{color:#0b0050;font-family:Courier New,Courier,monospace}.theme-light .mommiradio{color:navy}.theme-light .alert{color:red}.theme-light h1.alert,.theme-light h2.alert{color:#000}.theme-light .ghostalert{color:#5c00e6;font-style:italic;font-weight:700}.theme-light .emote{font-style:italic}.theme-light .selecteddna{color:#fff;background-color:#001b1b}.theme-light .attack{color:red}.theme-light .moderate{color:#c00}.theme-light .disarm{color:#900}.theme-light .passive{color:#600}.theme-light .warning{color:red;font-style:italic}.theme-light .boldwarning{color:red;font-style:italic;font-weight:700}.theme-light .danger{color:red;font-weight:700}.theme-light .userdanger{color:red;font-weight:700;font-size:120%}.theme-light .biggerdanger{color:red;font-weight:700;font-size:150%}.theme-light .info{color:#00c}.theme-light .notice{color:#009}.theme-light .boldnotice{color:#009;font-weight:700}.theme-light .suicide{color:#ff5050;font-style:italic}.theme-light .green{color:#03bb39}.theme-light .pr_announce{color:#228b22;font-weight:700}.theme-light .boldannounceic,.theme-light .boldannounceooc{color:red;font-weight:700}.theme-light .greenannounce{color:#0f0;font-weight:700}.theme-light .alien{color:#543354}.theme-light .noticealien{color:#00c000}.theme-light .alertalien{color:#00c000;font-weight:700}.theme-light .terrorspider{color:#320e32}.theme-light .dantalion{color:#6a2148}.theme-light .chaosverygood{color:#19e0c0;font-weight:700;font-size:120%}.theme-light .chaosgood{color:#19e0c0;font-weight:700}.theme-light .chaosneutral{color:#479ac0;font-weight:700}.theme-light .chaosbad{color:#9047c0;font-weight:700}.theme-light .chaosverybad{color:#9047c0;font-weight:700;font-size:120%}.theme-light .sinister{color:purple;font-weight:700;font-style:italic}.theme-light .blob{color:#006221;font-weight:700;font-style:italic}.theme-light .confirm{color:#00af3b}.theme-light .rose{color:#ff5050}.theme-light .sans{font-family:Comic Sans MS,cursive,sans-serif}.theme-light .wingdings{font-family:Wingdings,Webdings}.theme-light .robot{font-family:OCR-A,monospace;font-size:1.15em;font-weight:700}.theme-light .ancient{color:#008b8b;font-style:italic}.theme-light .newscaster{color:maroon}.theme-light .mod{color:#735638;font-weight:700}.theme-light .modooc{color:#184880;font-weight:700}.theme-light .adminmod{color:#402a14;font-weight:700}.theme-light .tajaran{color:#803b56}.theme-light .skrell{color:#00ced1}.theme-light .solcom{color:#22228b}.theme-light .com_srus{color:#7c4848}.theme-light .zombie{color:red}.theme-light .soghun{color:#228b22}.theme-light .changeling{color:purple}.theme-light .vox{color:#a0a}.theme-light .diona{color:#804000;font-weight:700}.theme-light .trinary{color:#727272}.theme-light .kidan{color:#664205}.theme-light .slime{color:#07a}.theme-light .drask{color:#a3d4eb;font-family:Arial Black}.theme-light .moth{color:#869b29;font-family:Copperplate}.theme-light .clown{color:red}.theme-light .vulpkanin{color:#b97a57}.theme-light .abductor{color:purple;font-style:italic}.theme-light .mind_control{color:#a00d6f;font-size:3;font-weight:700;font-style:italic}.theme-light .rough{font-family:Trebuchet MS,cursive,sans-serif}.theme-light .say_quote{font-family:Georgia,Verdana,sans-serif}.theme-light .cult{color:purple;font-weight:700;font-style:italic}.theme-light .cultspeech{color:#7f0000;font-style:italic}.theme-light .cultitalic{color:#960000;font-style:italic}.theme-light .cultlarge{color:#960000;font-weight:700;font-size:120%}.theme-light .narsie{color:#960000;font-weight:700;font-size:300%}.theme-light .narsiesmall{color:#960000;font-weight:700;font-size:200%}.theme-light .interface{color:#303}.theme-light .big{font-size:150%}.theme-light .reallybig{font-size:175%}.theme-light .greentext{color:#0f0;font-size:150%}.theme-light .redtext{color:red;font-size:150%}.theme-light .bold{font-weight:700}.theme-light .his_grace{color:#15d512;font-family:Courier New,cursive,sans-serif;font-style:italic}.theme-light .center{text-align:center}.theme-light .red{color:red}.theme-light .purple{color:#5e2d79}.theme-light .skeleton{color:#585858;font-weight:700;font-style:italic}.theme-light .gutter{color:#7092be;font-family:Trebuchet MS,cursive,sans-serif}.theme-light .orange{color:orange}.theme-light .orangei{color:orange;font-style:italic}.theme-light .orangeb{color:orange;font-weight:700}.theme-light .resonate{color:#298f85}.theme-light .healthscan_oxy{color:#0074bd}.theme-light .revennotice{color:#1d2953}.theme-light .revenboldnotice{color:#1d2953;font-weight:700}.theme-light .revenbignotice{color:#1d2953;font-weight:700;font-size:120%}.theme-light .revenminor{color:#823abb}.theme-light .revenwarning{color:#760fbb;font-style:italic}.theme-light .revendanger{color:#760fbb;font-weight:700;font-size:120%}.theme-light .specialnoticebold{color:#36525e;font-weight:700;font-size:120%}.theme-light .specialnotice{color:#36525e;font-size:120%}.theme-light .medal{font-weight:700}.theme-light .good{color:green}.theme-light .average{color:#ff8000}.theme-light .bad{color:red}.theme-light .italics,.theme-light .talkinto{font-style:italic}.theme-light .whisper{font-style:italic;color:#333}.theme-light .recruit{color:#5c00e6;font-weight:700;font-style:italic}.theme-light .memo{color:#638500;text-align:center}.theme-light .memoedit{text-align:center;font-size:75%}.theme-light .connectionClosed,.theme-light .fatalError{background:red;color:#fff;padding:5px}.theme-light .connectionClosed.restored{background:green}.theme-light .internal.boldnshit{color:#00f;font-weight:700}.theme-light .rebooting{background:#2979af;color:#fff;padding:5px}.theme-light .rebooting a{color:#fff!important;text-decoration-color:#fff!important}.theme-light .text-normal{font-weight:400;font-style:normal}.theme-light .hidden{display:none;visibility:hidden}.theme-light .colossus{color:#7f282a;font-size:175%}.theme-light .hierophant{color:#609;font-weight:700;font-style:italic}.theme-light .hierophant_warning{color:#609;font-style:italic}.theme-light .emoji{max-height:16px;max-width:16px}.theme-light .adminticket{color:#3e7336;font-weight:700}.theme-light .adminticketalt{color:#014c8a;font-weight:700}.theme-light span.body .codephrases{color:#00f}.theme-light span.body .coderesponses{color:red}.theme-light .announcement h1,.theme-light .announcement h2{color:#000;margin:8pt 0;line-height:1.2}.theme-light .announcement p{color:#d82020;line-height:1.3}.theme-light .announcement.minor h1{font-size:180%}.theme-light .announcement.minor h2{font-size:170%}.theme-light .announcement.sec h1{color:red;font-size:180%;font-family:Verdana,sans-serif}.theme-light .bolditalics{font-style:italic;font-weight:700}.theme-light .boxed_message{background:#f7fcff;border:1px solid #111a26;margin:.5em;padding:.5em .75em;text-align:center}.theme-light .boxed_message.left_align_text{text-align:left}.theme-light .boxed_message.red_border{background:#fff7f7;border-color:#a00}.theme-light .boxed_message.green_border{background:#f7fff7;border-color:#0f0}.theme-light .boxed_message.purple_border{background:#fdf7ff;border-color:#a0f}.theme-light .boxed_message.notice_border{background:#f7fdff;border-color:#0000bf}.theme-light .boxed_message.thick_border{border-width:thick}.theme-ntos .color-black{color:#1a1a1a!important}.theme-ntos .color-white{color:#fff!important}.theme-ntos .color-red{color:#df3e3e!important}.theme-ntos .color-orange{color:#f37f33!important}.theme-ntos .color-yellow{color:#fbda21!important}.theme-ntos .color-olive{color:#cbe41c!important}.theme-ntos .color-green{color:#25ca4c!important}.theme-ntos .color-teal{color:#00d6cc!important}.theme-ntos .color-blue{color:#2e93de!important}.theme-ntos .color-violet{color:#7349cf!important}.theme-ntos .color-purple{color:#ad45d0!important}.theme-ntos .color-pink{color:#e34da1!important}.theme-ntos .color-brown{color:#b97447!important}.theme-ntos .color-grey{color:#848484!important}.theme-ntos .color-good{color:#68c22d!important}.theme-ntos .color-average{color:#f29a29!important}.theme-ntos .color-bad{color:#df3e3e!important}.theme-ntos .color-label{color:#8b9bb0!important}.theme-ntos .color-bg-black{background-color:#000!important}.theme-ntos .color-bg-white{background-color:#d9d9d9!important}.theme-ntos .color-bg-red{background-color:#bd2020!important}.theme-ntos .color-bg-orange{background-color:#d95e0c!important}.theme-ntos .color-bg-yellow{background-color:#d9b804!important}.theme-ntos .color-bg-olive{background-color:#9aad14!important}.theme-ntos .color-bg-green{background-color:#1b9638!important}.theme-ntos .color-bg-teal{background-color:#009a93!important}.theme-ntos .color-bg-blue{background-color:#1c71b1!important}.theme-ntos .color-bg-violet{background-color:#552dab!important}.theme-ntos .color-bg-purple{background-color:#8b2baa!important}.theme-ntos .color-bg-pink{background-color:#cf2082!important}.theme-ntos .color-bg-brown{background-color:#8c5836!important}.theme-ntos .color-bg-grey{background-color:#646464!important}.theme-ntos .color-bg-good{background-color:#4d9121!important}.theme-ntos .color-bg-average{background-color:#cd7a0d!important}.theme-ntos .color-bg-bad{background-color:#bd2020!important}.theme-ntos .color-bg-label{background-color:#657a94!important}.theme-ntos .Section{position:relative;margin-bottom:.5em;background-color:#121922;box-sizing:border-box}.theme-ntos .Section:last-child{margin-bottom:0}.theme-ntos .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}.theme-ntos .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-ntos .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-ntos .Section__rest{position:relative}.theme-ntos .Section__content{padding:.66em .5em}.theme-ntos .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-ntos .Section--fill{display:flex;flex-direction:column;height:100%}.theme-ntos .Section--fill>.Section__rest{flex-grow:1}.theme-ntos .Section--fill>.Section__rest>.Section__content{height:100%}.theme-ntos .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-ntos .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-ntos .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-ntos .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-ntos .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-ntos .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-ntos .Section .Section:first-child{margin-top:-.5em}.theme-ntos .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-ntos .Section .Section .Section .Section__titleText{font-size:1em}.theme-ntos .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-ntos .Button:last-child{margin-right:0;margin-bottom:0}.theme-ntos .Button .fa,.theme-ntos .Button .fas,.theme-ntos .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-ntos .Button--hasContent .fa,.theme-ntos .Button--hasContent .fas,.theme-ntos .Button--hasContent .far{margin-right:.25em}.theme-ntos .Button--hasContent.Button--iconRight .fa,.theme-ntos .Button--hasContent.Button--iconRight .fas,.theme-ntos .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-ntos .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-ntos .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-ntos .Button--circular{border-radius:50%}.theme-ntos .Button--compact{padding:0 .25em;line-height:1.333em}.theme-ntos .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-ntos .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-ntos .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--black:hover{background-color:#101010;color:#fff}.theme-ntos .Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.theme-ntos .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--white:hover{background-color:#f8f8f8;color:#000}.theme-ntos .Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--red:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.theme-ntos .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--orange:hover{background-color:#ef7e33;color:#fff}.theme-ntos .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-ntos .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--yellow:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.theme-ntos .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--olive:hover{background-color:#bdd327;color:#fff}.theme-ntos .Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-ntos .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--green:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.theme-ntos .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--teal:hover{background-color:#10bdb6;color:#fff}.theme-ntos .Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.theme-ntos .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--blue:hover{background-color:#308fd6;color:#fff}.theme-ntos .Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.theme-ntos .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--violet:hover{background-color:#7249ca;color:#fff}.theme-ntos .Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.theme-ntos .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--purple:hover{background-color:#aa46ca;color:#fff}.theme-ntos .Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.theme-ntos .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--pink:hover{background-color:#e04ca0;color:#fff}.theme-ntos .Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.theme-ntos .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--brown:hover{background-color:#ae724c;color:#fff}.theme-ntos .Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.theme-ntos .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--grey:hover{background-color:#818181;color:#fff}.theme-ntos .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-ntos .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-ntos .Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.theme-ntos .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--average:hover{background-color:#eb972b;color:#fff}.theme-ntos .Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--bad:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.theme-ntos .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--label:hover{background-color:#8a9aae;color:#fff}.theme-ntos .Button--color--default{transition:color .1s,background-color .1s;background-color:#384e68;color:#fff}.theme-ntos .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--default:hover{background-color:#4f6885;color:#fff}.theme-ntos .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-ntos .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-ntos .Button--color--danger{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-ntos .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--danger:hover{background-color:#d93f3f;color:#fff}.theme-ntos .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#1b2633;color:#fff;background-color:rgba(27,38,51,0);color:rgba(255,255,255,.5)}.theme-ntos .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--transparent:hover{background-color:#2f3b4a;color:#fff}.theme-ntos .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#1b2633;color:#fff;background-color:rgba(27,38,51,.6);color:rgba(255,255,255,.5)}.theme-ntos .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--color--translucent:hover{background-color:#2f3b4a;color:#fff}.theme-ntos .Button--disabled{background-color:#999!important}.theme-ntos .Button--selected{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-ntos .Button--selected:focus{transition:color .25s,background-color .25s}.theme-ntos .Button--selected:hover{background-color:#2fb94f;color:#fff}.theme-ntos .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-ntos .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-ntos .NumberInput--fluid{display:block}.theme-ntos .NumberInput__content{margin-left:.5em}.theme-ntos .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-ntos .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}.theme-ntos .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-ntos .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-ntos .Input--disabled{color:#777;border-color:#848484;border-color:rgba(132,132,132,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-ntos .Input--fluid{display:block;width:auto}.theme-ntos .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-ntos .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-ntos .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-ntos .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-ntos .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-ntos .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-ntos .TextArea{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-ntos .TextArea--fluid{display:block;width:auto;height:auto}.theme-ntos .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-ntos .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-ntos .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-ntos .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-ntos .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-ntos .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-ntos .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-ntos .Knob__popupValue,.theme-ntos .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-ntos .Knob__popupValue--right{top:.25rem;right:-50%}.theme-ntos .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-ntos .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-ntos .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-ntos .Knob__ringFillPivot{transform:rotate(135deg)}.theme-ntos .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-ntos .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-ntos .Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.theme-ntos .Knob--color--white .Knob__ringFill{stroke:#fff}.theme-ntos .Knob--color--red .Knob__ringFill{stroke:#df3e3e}.theme-ntos .Knob--color--orange .Knob__ringFill{stroke:#f37f33}.theme-ntos .Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.theme-ntos .Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.theme-ntos .Knob--color--green .Knob__ringFill{stroke:#25ca4c}.theme-ntos .Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.theme-ntos .Knob--color--blue .Knob__ringFill{stroke:#2e93de}.theme-ntos .Knob--color--violet .Knob__ringFill{stroke:#7349cf}.theme-ntos .Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.theme-ntos .Knob--color--pink .Knob__ringFill{stroke:#e34da1}.theme-ntos .Knob--color--brown .Knob__ringFill{stroke:#b97447}.theme-ntos .Knob--color--grey .Knob__ringFill{stroke:#848484}.theme-ntos .Knob--color--good .Knob__ringFill{stroke:#68c22d}.theme-ntos .Knob--color--average .Knob__ringFill{stroke:#f29a29}.theme-ntos .Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.theme-ntos .Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.theme-ntos .Slider:not(.Slider__disabled){cursor:e-resize}.theme-ntos .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-ntos .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.theme-ntos .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.theme-ntos .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-ntos .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-ntos .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-ntos .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-ntos .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-ntos .ProgressBar--color--default{border:.0833333333em solid #3e6189}.theme-ntos .ProgressBar--color--default .ProgressBar__fill{background-color:#3e6189}.theme-ntos .ProgressBar--color--disabled{border:1px solid #999}.theme-ntos .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-ntos .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-ntos .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-ntos .ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.theme-ntos .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-ntos .ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.theme-ntos .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-ntos .ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.theme-ntos .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-ntos .ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.theme-ntos .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-ntos .ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.theme-ntos .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-ntos .ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.theme-ntos .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-ntos .ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.theme-ntos .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-ntos .ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.theme-ntos .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-ntos .ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.theme-ntos .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-ntos .ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.theme-ntos .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-ntos .ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.theme-ntos .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-ntos .ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.theme-ntos .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-ntos .ProgressBar--color--grey{border:.0833333333em solid #646464!important}.theme-ntos .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-ntos .ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.theme-ntos .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-ntos .ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.theme-ntos .ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.theme-ntos .ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.theme-ntos .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-ntos .ProgressBar--color--label{border:.0833333333em solid #657a94!important}.theme-ntos .ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.theme-ntos .Chat{color:#abc6ec}.theme-ntos .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-ntos .Chat__badge:before{content:"x"}.theme-ntos .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-ntos .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-ntos .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-ntos .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#121922}.theme-ntos .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-ntos .Chat__highlight{color:#000}.theme-ntos .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-ntos .ChatMessage{word-wrap:break-word}.theme-ntos .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-ntos .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-ntos .Layout,.theme-ntos .Layout *{scrollbar-base-color:#141d26;scrollbar-face-color:#2a3b4f;scrollbar-3dlight-color:#1b2633;scrollbar-highlight-color:#1b2633;scrollbar-track-color:#141d26;scrollbar-arrow-color:#7290b4;scrollbar-shadow-color:#2a3b4f}.theme-ntos .Layout::-webkit-scrollbar,.theme-ntos .Layout *::-webkit-scrollbar{width:12px}.theme-ntos .Layout::-webkit-scrollbar-track,.theme-ntos .Layout *::-webkit-scrollbar-track{background:#141d26}.theme-ntos .Layout::-webkit-scrollbar-thumb,.theme-ntos .Layout *::-webkit-scrollbar-thumb{background:#2a3b4f}.theme-ntos .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-ntos .Layout__content--flexRow{display:flex;flex-flow:row}.theme-ntos .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-ntos .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-ntos .Layout__content--noMargin{margin:0}.theme-ntos .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#1b2633;background-image:linear-gradient(to bottom,#1b2633,#1b2633)}.theme-ntos .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-ntos .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-ntos .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-ntos .Window__contentPadding:after{height:0}.theme-ntos .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-ntos .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(50,63,78,.25);pointer-events:none}.theme-ntos .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-ntos .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-ntos .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-ntos .TitleBar{background-color:#1b2633;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-ntos .TitleBar__clickable{color:rgba(255,0,0,.5);background-color:#1b2633;transition:color .25s,background-color .25s}.theme-ntos .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-ntos .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-ntos .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-ntos .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-ntos .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-ntos .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-ntos .boxed_message{background:#1c242e;border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.theme-ntos .boxed_message.left_align_text{text-align:left}.theme-ntos .boxed_message.red_border{background:#2e1c1c;border-color:#a00}.theme-ntos .boxed_message.green_border{background:#1c2e22;border-color:#0f0}.theme-ntos .boxed_message.purple_border{background:#221c2e;border-color:#8000ff}.theme-ntos .boxed_message.notice_border{background:#1f2633;border-color:#6685f5}.theme-ntos .boxed_message.thick_border{border-width:thick}.theme-syndicate .color-black{color:#1a1a1a!important}.theme-syndicate .color-white{color:#fff!important}.theme-syndicate .color-red{color:#df3e3e!important}.theme-syndicate .color-orange{color:#f37f33!important}.theme-syndicate .color-yellow{color:#fbda21!important}.theme-syndicate .color-olive{color:#cbe41c!important}.theme-syndicate .color-green{color:#25ca4c!important}.theme-syndicate .color-teal{color:#00d6cc!important}.theme-syndicate .color-blue{color:#2e93de!important}.theme-syndicate .color-violet{color:#7349cf!important}.theme-syndicate .color-purple{color:#ad45d0!important}.theme-syndicate .color-pink{color:#e34da1!important}.theme-syndicate .color-brown{color:#b97447!important}.theme-syndicate .color-grey{color:#848484!important}.theme-syndicate .color-good{color:#68c22d!important}.theme-syndicate .color-average{color:#f29a29!important}.theme-syndicate .color-bad{color:#df3e3e!important}.theme-syndicate .color-label{color:#8b9bb0!important}.theme-syndicate .color-bg-black{background-color:#000!important}.theme-syndicate .color-bg-white{background-color:#d9d9d9!important}.theme-syndicate .color-bg-red{background-color:#bd2020!important}.theme-syndicate .color-bg-orange{background-color:#d95e0c!important}.theme-syndicate .color-bg-yellow{background-color:#d9b804!important}.theme-syndicate .color-bg-olive{background-color:#9aad14!important}.theme-syndicate .color-bg-green{background-color:#1b9638!important}.theme-syndicate .color-bg-teal{background-color:#009a93!important}.theme-syndicate .color-bg-blue{background-color:#1c71b1!important}.theme-syndicate .color-bg-violet{background-color:#552dab!important}.theme-syndicate .color-bg-purple{background-color:#8b2baa!important}.theme-syndicate .color-bg-pink{background-color:#cf2082!important}.theme-syndicate .color-bg-brown{background-color:#8c5836!important}.theme-syndicate .color-bg-grey{background-color:#646464!important}.theme-syndicate .color-bg-good{background-color:#4d9121!important}.theme-syndicate .color-bg-average{background-color:#cd7a0d!important}.theme-syndicate .color-bg-bad{background-color:#bd2020!important}.theme-syndicate .color-bg-label{background-color:#657a94!important}.theme-syndicate .Section{position:relative;margin-bottom:.5em;background-color:#2b0101;box-sizing:border-box}.theme-syndicate .Section:last-child{margin-bottom:0}.theme-syndicate .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #397439}.theme-syndicate .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-syndicate .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-syndicate .Section__rest{position:relative}.theme-syndicate .Section__content{padding:.66em .5em}.theme-syndicate .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-syndicate .Section--fill{display:flex;flex-direction:column;height:100%}.theme-syndicate .Section--fill>.Section__rest{flex-grow:1}.theme-syndicate .Section--fill>.Section__rest>.Section__content{height:100%}.theme-syndicate .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-syndicate .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-syndicate .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-syndicate .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-syndicate .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-syndicate .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-syndicate .Section .Section:first-child{margin-top:-.5em}.theme-syndicate .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-syndicate .Section .Section .Section .Section__titleText{font-size:1em}.theme-syndicate .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-syndicate .Button:last-child{margin-right:0;margin-bottom:0}.theme-syndicate .Button .fa,.theme-syndicate .Button .fas,.theme-syndicate .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-syndicate .Button--hasContent .fa,.theme-syndicate .Button--hasContent .fas,.theme-syndicate .Button--hasContent .far{margin-right:.25em}.theme-syndicate .Button--hasContent.Button--iconRight .fa,.theme-syndicate .Button--hasContent.Button--iconRight .fas,.theme-syndicate .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-syndicate .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-syndicate .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-syndicate .Button--circular{border-radius:50%}.theme-syndicate .Button--compact{padding:0 .25em;line-height:1.333em}.theme-syndicate .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-syndicate .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-syndicate .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--black:hover{background-color:#101010;color:#fff}.theme-syndicate .Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.theme-syndicate .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--white:hover{background-color:#f8f8f8;color:#000}.theme-syndicate .Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-syndicate .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--red:hover{background-color:#d93f3f;color:#fff}.theme-syndicate .Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.theme-syndicate .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--orange:hover{background-color:#ef7e33;color:#fff}.theme-syndicate .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-syndicate .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--yellow:hover{background-color:#f5d523;color:#000}.theme-syndicate .Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.theme-syndicate .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--olive:hover{background-color:#bdd327;color:#fff}.theme-syndicate .Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-syndicate .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--green:hover{background-color:#2fb94f;color:#fff}.theme-syndicate .Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.theme-syndicate .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--teal:hover{background-color:#10bdb6;color:#fff}.theme-syndicate .Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.theme-syndicate .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--blue:hover{background-color:#308fd6;color:#fff}.theme-syndicate .Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.theme-syndicate .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--violet:hover{background-color:#7249ca;color:#fff}.theme-syndicate .Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.theme-syndicate .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--purple:hover{background-color:#aa46ca;color:#fff}.theme-syndicate .Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.theme-syndicate .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--pink:hover{background-color:#e04ca0;color:#fff}.theme-syndicate .Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.theme-syndicate .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--brown:hover{background-color:#ae724c;color:#fff}.theme-syndicate .Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.theme-syndicate .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--grey:hover{background-color:#818181;color:#fff}.theme-syndicate .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-syndicate .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-syndicate .Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.theme-syndicate .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--average:hover{background-color:#eb972b;color:#fff}.theme-syndicate .Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-syndicate .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--bad:hover{background-color:#d93f3f;color:#fff}.theme-syndicate .Button--color--label{transition:color .1s,background-color .1s;background-color:#657a94;color:#fff}.theme-syndicate .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--label:hover{background-color:#8a9aae;color:#fff}.theme-syndicate .Button--color--default{transition:color .1s,background-color .1s;background-color:#397439;color:#fff}.theme-syndicate .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--default:hover{background-color:#509350;color:#fff}.theme-syndicate .Button--color--caution{transition:color .1s,background-color .1s;background-color:#be6209;color:#fff}.theme-syndicate .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--caution:hover{background-color:#e67f1a;color:#fff}.theme-syndicate .Button--color--danger{transition:color .1s,background-color .1s;background-color:#9a9d00;color:#fff}.theme-syndicate .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--danger:hover{background-color:#bec110;color:#fff}.theme-syndicate .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#4d0202;color:#fff;background-color:rgba(77,2,2,0);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--transparent:hover{background-color:#671313;color:#fff}.theme-syndicate .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#4d0202;color:#fff;background-color:rgba(77,2,2,.6);color:rgba(255,255,255,.5)}.theme-syndicate .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--color--translucent:hover{background-color:#671313;color:#fff}.theme-syndicate .Button--disabled{background-color:#363636!important}.theme-syndicate .Button--selected{transition:color .1s,background-color .1s;background-color:#9d0808;color:#fff}.theme-syndicate .Button--selected:focus{transition:color .25s,background-color .25s}.theme-syndicate .Button--selected:hover{background-color:#c11919;color:#fff}.theme-syndicate .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-syndicate .NoticeBox{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#fff;background-color:#910101;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}.theme-syndicate .NoticeBox--color--black{color:#fff;background-color:#000}.theme-syndicate .NoticeBox--color--white{color:#000;background-color:#b3b3b3}.theme-syndicate .NoticeBox--color--red{color:#fff;background-color:#701f1f}.theme-syndicate .NoticeBox--color--orange{color:#fff;background-color:#854114}.theme-syndicate .NoticeBox--color--yellow{color:#000;background-color:#83710d}.theme-syndicate .NoticeBox--color--olive{color:#000;background-color:#576015}.theme-syndicate .NoticeBox--color--green{color:#fff;background-color:#174e24}.theme-syndicate .NoticeBox--color--teal{color:#fff;background-color:#064845}.theme-syndicate .NoticeBox--color--blue{color:#fff;background-color:#1b4565}.theme-syndicate .NoticeBox--color--violet{color:#fff;background-color:#3b2864}.theme-syndicate .NoticeBox--color--purple{color:#fff;background-color:#542663}.theme-syndicate .NoticeBox--color--pink{color:#fff;background-color:#802257}.theme-syndicate .NoticeBox--color--brown{color:#fff;background-color:#4c3729}.theme-syndicate .NoticeBox--color--grey{color:#fff;background-color:#3e3e3e}.theme-syndicate .NoticeBox--color--good{color:#fff;background-color:#2e4b1a}.theme-syndicate .NoticeBox--color--average{color:#fff;background-color:#7b4e13}.theme-syndicate .NoticeBox--color--bad{color:#fff;background-color:#701f1f}.theme-syndicate .NoticeBox--color--label{color:#fff;background-color:#53565a}.theme-syndicate .NoticeBox--type--info{color:#fff;background-color:#235982}.theme-syndicate .NoticeBox--type--success{color:#fff;background-color:#1e662f}.theme-syndicate .NoticeBox--type--warning{color:#fff;background-color:#a95219}.theme-syndicate .NoticeBox--type--danger{color:#fff;background-color:#8f2828}.theme-syndicate .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;color:#87ce87;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-syndicate .NumberInput--fluid{display:block}.theme-syndicate .NumberInput__content{margin-left:.5em}.theme-syndicate .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-syndicate .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #87ce87;background-color:#87ce87}.theme-syndicate .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}.theme-syndicate .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-syndicate .Input--disabled{color:#777;border-color:#6b6b6b;border-color:rgba(107,107,107,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-syndicate .Input--fluid{display:block;width:auto}.theme-syndicate .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-syndicate .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-syndicate .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-syndicate .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-syndicate .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-syndicate .TextArea{position:relative;display:inline-block;border:.0833333333em solid #87ce87;border:.0833333333em solid rgba(135,206,135,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-syndicate .TextArea--fluid{display:block;width:auto;height:auto}.theme-syndicate .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-syndicate .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-syndicate .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-syndicate .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-syndicate .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-syndicate .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-syndicate .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-syndicate .Knob__popupValue,.theme-syndicate .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-syndicate .Knob__popupValue--right{top:.25rem;right:-50%}.theme-syndicate .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-syndicate .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-syndicate .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-syndicate .Knob__ringFillPivot{transform:rotate(135deg)}.theme-syndicate .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-syndicate .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-syndicate .Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.theme-syndicate .Knob--color--white .Knob__ringFill{stroke:#fff}.theme-syndicate .Knob--color--red .Knob__ringFill{stroke:#df3e3e}.theme-syndicate .Knob--color--orange .Knob__ringFill{stroke:#f37f33}.theme-syndicate .Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.theme-syndicate .Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.theme-syndicate .Knob--color--green .Knob__ringFill{stroke:#25ca4c}.theme-syndicate .Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.theme-syndicate .Knob--color--blue .Knob__ringFill{stroke:#2e93de}.theme-syndicate .Knob--color--violet .Knob__ringFill{stroke:#7349cf}.theme-syndicate .Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.theme-syndicate .Knob--color--pink .Knob__ringFill{stroke:#e34da1}.theme-syndicate .Knob--color--brown .Knob__ringFill{stroke:#b97447}.theme-syndicate .Knob--color--grey .Knob__ringFill{stroke:#848484}.theme-syndicate .Knob--color--good .Knob__ringFill{stroke:#68c22d}.theme-syndicate .Knob--color--average .Knob__ringFill{stroke:#f29a29}.theme-syndicate .Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.theme-syndicate .Knob--color--label .Knob__ringFill{stroke:#8b9bb0}.theme-syndicate .Slider:not(.Slider__disabled){cursor:e-resize}.theme-syndicate .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-syndicate .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.theme-syndicate .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.theme-syndicate .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-syndicate .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,.5);transition:border-color .5s}.theme-syndicate .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-syndicate .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-syndicate .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-syndicate .ProgressBar--color--default{border:.0833333333em solid #306330}.theme-syndicate .ProgressBar--color--default .ProgressBar__fill{background-color:#306330}.theme-syndicate .ProgressBar--color--disabled{border:1px solid #999}.theme-syndicate .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-syndicate .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-syndicate .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-syndicate .ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.theme-syndicate .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-syndicate .ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.theme-syndicate .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-syndicate .ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.theme-syndicate .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-syndicate .ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.theme-syndicate .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-syndicate .ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.theme-syndicate .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-syndicate .ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.theme-syndicate .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-syndicate .ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.theme-syndicate .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-syndicate .ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.theme-syndicate .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-syndicate .ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.theme-syndicate .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-syndicate .ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.theme-syndicate .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-syndicate .ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.theme-syndicate .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-syndicate .ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.theme-syndicate .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-syndicate .ProgressBar--color--grey{border:.0833333333em solid #646464!important}.theme-syndicate .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-syndicate .ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.theme-syndicate .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-syndicate .ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.theme-syndicate .ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.theme-syndicate .ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.theme-syndicate .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-syndicate .ProgressBar--color--label{border:.0833333333em solid #657a94!important}.theme-syndicate .ProgressBar--color--label .ProgressBar__fill{background-color:#657a94}.theme-syndicate .Chat{color:#abc6ec}.theme-syndicate .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-syndicate .Chat__badge:before{content:"x"}.theme-syndicate .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-syndicate .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-syndicate .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-syndicate .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#db2828;background-color:#2b0101}.theme-syndicate .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-syndicate .Chat__highlight{color:#000}.theme-syndicate .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-syndicate .ChatMessage{word-wrap:break-word}.theme-syndicate .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-syndicate .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-syndicate .Layout,.theme-syndicate .Layout *{scrollbar-base-color:#3a0202;scrollbar-face-color:#770303;scrollbar-3dlight-color:#4d0202;scrollbar-highlight-color:#4d0202;scrollbar-track-color:#3a0202;scrollbar-arrow-color:#fa2d2d;scrollbar-shadow-color:#770303}.theme-syndicate .Layout::-webkit-scrollbar,.theme-syndicate .Layout *::-webkit-scrollbar{width:12px}.theme-syndicate .Layout::-webkit-scrollbar-track,.theme-syndicate .Layout *::-webkit-scrollbar-track{background:#3a0202}.theme-syndicate .Layout::-webkit-scrollbar-thumb,.theme-syndicate .Layout *::-webkit-scrollbar-thumb{background:#770303}.theme-syndicate .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-syndicate .Layout__content--flexRow{display:flex;flex-flow:row}.theme-syndicate .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-syndicate .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-syndicate .Layout__content--noMargin{margin:0}.theme-syndicate .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#4d0202;background-image:linear-gradient(to bottom,#4d0202,#4d0202)}.theme-syndicate .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-syndicate .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-syndicate .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-syndicate .Window__contentPadding:after{height:0}.theme-syndicate .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-syndicate .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(108,22,22,.25);pointer-events:none}.theme-syndicate .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-syndicate .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-syndicate .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-syndicate .TitleBar{background-color:#910101;border-bottom:1px solid #161616;box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-syndicate .TitleBar__clickable{color:rgba(255,255,255,.5);background-color:#910101;transition:color .25s,background-color .25s}.theme-syndicate .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-syndicate .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,255,255,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-syndicate .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-syndicate .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-syndicate .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-syndicate .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-syndicate .adminooc{color:#29ccbe}.theme-syndicate .debug{color:#8f39e6}.theme-syndicate .boxed_message{background:rgba(20,20,35,.25);border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.theme-syndicate .boxed_message.left_align_text{text-align:left}.theme-syndicate .boxed_message.red_border{background:rgba(0,0,0,.2);border-color:red}.theme-syndicate .boxed_message.green_border{background:rgba(0,75,0,.25);border-color:#0f0}.theme-syndicate .boxed_message.purple_border{background:rgba(25,0,50,.25);border-color:#8000ff}.theme-syndicate .boxed_message.notice_border{background:rgba(0,0,75,.25);border-color:#6685f5}.theme-syndicate .boxed_message.thick_border{border-width:thick}.theme-paradise .color-black{color:#1a1a1a!important}.theme-paradise .color-white{color:#fff!important}.theme-paradise .color-red{color:#df3e3e!important}.theme-paradise .color-orange{color:#f37f33!important}.theme-paradise .color-yellow{color:#fbda21!important}.theme-paradise .color-olive{color:#cbe41c!important}.theme-paradise .color-green{color:#25ca4c!important}.theme-paradise .color-teal{color:#00d6cc!important}.theme-paradise .color-blue{color:#2e93de!important}.theme-paradise .color-violet{color:#7349cf!important}.theme-paradise .color-purple{color:#ad45d0!important}.theme-paradise .color-pink{color:#e34da1!important}.theme-paradise .color-brown{color:#b97447!important}.theme-paradise .color-grey{color:#848484!important}.theme-paradise .color-good{color:#68c22d!important}.theme-paradise .color-average{color:#f29a29!important}.theme-paradise .color-bad{color:#df3e3e!important}.theme-paradise .color-label{color:#955d4b!important}.theme-paradise .color-bg-black{background-color:#000!important}.theme-paradise .color-bg-white{background-color:#d9d9d9!important}.theme-paradise .color-bg-red{background-color:#bd2020!important}.theme-paradise .color-bg-orange{background-color:#d95e0c!important}.theme-paradise .color-bg-yellow{background-color:#d9b804!important}.theme-paradise .color-bg-olive{background-color:#9aad14!important}.theme-paradise .color-bg-green{background-color:#1b9638!important}.theme-paradise .color-bg-teal{background-color:#009a93!important}.theme-paradise .color-bg-blue{background-color:#1c71b1!important}.theme-paradise .color-bg-violet{background-color:#552dab!important}.theme-paradise .color-bg-purple{background-color:#8b2baa!important}.theme-paradise .color-bg-pink{background-color:#cf2082!important}.theme-paradise .color-bg-brown{background-color:#8c5836!important}.theme-paradise .color-bg-grey{background-color:#646464!important}.theme-paradise .color-bg-good{background-color:#4d9121!important}.theme-paradise .color-bg-average{background-color:#cd7a0d!important}.theme-paradise .color-bg-bad{background-color:#bd2020!important}.theme-paradise .color-bg-label{background-color:#6d4436!important}.theme-paradise .Section{position:relative;margin-bottom:.5em;background-color:#40071a;background-color:rgba(0,0,0,.5);box-sizing:border-box}.theme-paradise .Section:last-child{margin-bottom:0}.theme-paradise .Section__title{position:relative;padding:.5em;border-bottom:.1666666667em solid #208080}.theme-paradise .Section__titleText{font-size:1.1666666667em;font-weight:700;color:#fff}.theme-paradise .Section__buttons{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}.theme-paradise .Section__rest{position:relative}.theme-paradise .Section__content{padding:.66em .5em}.theme-paradise .Section--fitted>.Section__rest>.Section__content{padding:0}.theme-paradise .Section--fill{display:flex;flex-direction:column;height:100%}.theme-paradise .Section--fill>.Section__rest{flex-grow:1}.theme-paradise .Section--fill>.Section__rest>.Section__content{height:100%}.theme-paradise .Section--fill.Section--scrollable>.Section__rest>.Section__content{position:absolute;top:0;left:0;right:0;bottom:0}.theme-paradise .Section--fill.Section--iefix{display:table!important;width:100%!important;height:100%!important;border-collapse:collapse;border-spacing:0}.theme-paradise .Section--fill.Section--iefix>.Section__rest{display:table-row!important;height:100%!important}.theme-paradise .Section--scrollable{overflow-x:hidden;overflow-y:hidden}.theme-paradise .Section--scrollable>.Section__rest>.Section__content{overflow-y:auto;overflow-x:hidden}.theme-paradise .Section .Section{background-color:rgba(0,0,0,0);margin-left:-.5em;margin-right:-.5em}.theme-paradise .Section .Section:first-child{margin-top:-.5em}.theme-paradise .Section .Section .Section__titleText{font-size:1.0833333333em}.theme-paradise .Section .Section .Section .Section__titleText{font-size:1em}.theme-paradise .Button{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;user-select:none;-ms-user-select:none}.theme-paradise .Button:last-child{margin-right:0;margin-bottom:0}.theme-paradise .Button .fa,.theme-paradise .Button .fas,.theme-paradise .Button .far{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}.theme-paradise .Button--hasContent .fa,.theme-paradise .Button--hasContent .fas,.theme-paradise .Button--hasContent .far{margin-right:.25em}.theme-paradise .Button--hasContent.Button--iconRight .fa,.theme-paradise .Button--hasContent.Button--iconRight .fas,.theme-paradise .Button--hasContent.Button--iconRight .far{margin-right:0;margin-left:.25em}.theme-paradise .Button--ellipsis{overflow:hidden;text-overflow:ellipsis}.theme-paradise .Button--fluid{display:block;margin-left:0;margin-right:0}.theme-paradise .Button--circular{border-radius:50%}.theme-paradise .Button--compact{padding:0 .25em;line-height:1.333em}.theme-paradise .Button--multiLine{white-space:normal;word-wrap:break-word}.theme-paradise .Button--color--black{transition:color .1s,background-color .1s;background-color:#000;color:#fff}.theme-paradise .Button--color--black:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--black:hover{background-color:#101010;color:#fff}.theme-paradise .Button--color--white{transition:color .1s,background-color .1s;background-color:#d9d9d9;color:#000}.theme-paradise .Button--color--white:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--white:hover{background-color:#f8f8f8;color:#000}.theme-paradise .Button--color--red{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-paradise .Button--color--red:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--red:hover{background-color:#d93f3f;color:#fff}.theme-paradise .Button--color--orange{transition:color .1s,background-color .1s;background-color:#d95e0c;color:#fff}.theme-paradise .Button--color--orange:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--orange:hover{background-color:#ef7e33;color:#fff}.theme-paradise .Button--color--yellow{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-paradise .Button--color--yellow:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--yellow:hover{background-color:#f5d523;color:#000}.theme-paradise .Button--color--olive{transition:color .1s,background-color .1s;background-color:#9aad14;color:#fff}.theme-paradise .Button--color--olive:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--olive:hover{background-color:#bdd327;color:#fff}.theme-paradise .Button--color--green{transition:color .1s,background-color .1s;background-color:#1b9638;color:#fff}.theme-paradise .Button--color--green:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--green:hover{background-color:#2fb94f;color:#fff}.theme-paradise .Button--color--teal{transition:color .1s,background-color .1s;background-color:#009a93;color:#fff}.theme-paradise .Button--color--teal:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--teal:hover{background-color:#10bdb6;color:#fff}.theme-paradise .Button--color--blue{transition:color .1s,background-color .1s;background-color:#1c71b1;color:#fff}.theme-paradise .Button--color--blue:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--blue:hover{background-color:#308fd6;color:#fff}.theme-paradise .Button--color--violet{transition:color .1s,background-color .1s;background-color:#552dab;color:#fff}.theme-paradise .Button--color--violet:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--violet:hover{background-color:#7249ca;color:#fff}.theme-paradise .Button--color--purple{transition:color .1s,background-color .1s;background-color:#8b2baa;color:#fff}.theme-paradise .Button--color--purple:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--purple:hover{background-color:#aa46ca;color:#fff}.theme-paradise .Button--color--pink{transition:color .1s,background-color .1s;background-color:#cf2082;color:#fff}.theme-paradise .Button--color--pink:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--pink:hover{background-color:#e04ca0;color:#fff}.theme-paradise .Button--color--brown{transition:color .1s,background-color .1s;background-color:#8c5836;color:#fff}.theme-paradise .Button--color--brown:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--brown:hover{background-color:#ae724c;color:#fff}.theme-paradise .Button--color--grey{transition:color .1s,background-color .1s;background-color:#646464;color:#fff}.theme-paradise .Button--color--grey:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--grey:hover{background-color:#818181;color:#fff}.theme-paradise .Button--color--good{transition:color .1s,background-color .1s;background-color:#4d9121;color:#fff}.theme-paradise .Button--color--good:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--good:hover{background-color:#67b335;color:#fff}.theme-paradise .Button--color--average{transition:color .1s,background-color .1s;background-color:#cd7a0d;color:#fff}.theme-paradise .Button--color--average:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--average:hover{background-color:#eb972b;color:#fff}.theme-paradise .Button--color--bad{transition:color .1s,background-color .1s;background-color:#bd2020;color:#fff}.theme-paradise .Button--color--bad:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--bad:hover{background-color:#d93f3f;color:#fff}.theme-paradise .Button--color--label{transition:color .1s,background-color .1s;background-color:#6d4436;color:#fff}.theme-paradise .Button--color--label:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--label:hover{background-color:#8b5d4d;color:#fff}.theme-paradise .Button--color--default{transition:color .1s,background-color .1s;background-color:#208080;color:#fff}.theme-paradise .Button--color--default:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--default:hover{background-color:#34a0a0;color:#fff}.theme-paradise .Button--color--caution{transition:color .1s,background-color .1s;background-color:#d9b804;color:#000}.theme-paradise .Button--color--caution:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--caution:hover{background-color:#f5d523;color:#000}.theme-paradise .Button--color--danger{transition:color .1s,background-color .1s;background-color:#8c1eff;color:#fff}.theme-paradise .Button--color--danger:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--danger:hover{background-color:#ae61ff;color:#fff}.theme-paradise .Button--color--transparent{transition:color .1s,background-color .1s;background-color:#800d33;color:#fff;background-color:rgba(128,13,51,0);color:rgba(255,255,255,.5)}.theme-paradise .Button--color--transparent:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--transparent:hover{background-color:#a01f4a;color:#fff}.theme-paradise .Button--color--translucent{transition:color .1s,background-color .1s;background-color:#800d33;color:#fff;background-color:rgba(128,13,51,.6);color:rgba(255,255,255,.5)}.theme-paradise .Button--color--translucent:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--color--translucent:hover{background-color:#a01f4a;color:#fff}.theme-paradise .Button--disabled{background-color:#999!important}.theme-paradise .Button--selected{transition:color .1s,background-color .1s;background-color:#bf6030;color:#fff}.theme-paradise .Button--selected:focus{transition:color .25s,background-color .25s}.theme-paradise .Button--selected:hover{background-color:#d4835a;color:#fff}.theme-paradise .Button--modal{float:right;z-index:1;margin-top:-.5rem}.theme-paradise .NumberInput{position:relative;display:inline-block;border:.0833333333em solid #e65c2e;border:.0833333333em solid rgba(230,92,46,.75);border-radius:.16em;color:#e65c2e;background-color:rgba(0,0,0,.25);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}.theme-paradise .NumberInput--fluid{display:block}.theme-paradise .NumberInput__content{margin-left:.5em}.theme-paradise .NumberInput__barContainer{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}.theme-paradise .NumberInput__bar{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #e65c2e;background-color:#e65c2e}.theme-paradise .NumberInput__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,.25);color:#fff;text-align:right}.theme-paradise .Input{position:relative;display:inline-block;width:10em;border:.0833333333em solid #e65c2e;border:.0833333333em solid rgba(230,92,46,.75);border-radius:.16em;background-color:rgba(0,0,0,.25);color:#fff;background-color:#000;background-color:rgba(0,0,0,.75);padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible;white-space:nowrap}.theme-paradise .Input--disabled{color:#777;border-color:#4a4a4a;border-color:rgba(74,74,74,.75);background-color:#333;background-color:rgba(0,0,0,.25)}.theme-paradise .Input--fluid{display:block;width:auto}.theme-paradise .Input__baseline{display:inline-block;color:rgba(0,0,0,0)}.theme-paradise .Input__input{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit}.theme-paradise .Input__input:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paradise .Input__textarea{border:0;width:calc(100% + 4px);font-size:1em;line-height:1.4166666667em;margin-left:-.3333333333em;font-family:Verdana,sans-serif;background-color:rgba(0,0,0,0);color:#fff;color:inherit;resize:both;overflow:auto;white-space:pre-wrap}.theme-paradise .Input__textarea:-ms-input-placeholder{font-style:italic;color:#777;color:rgba(255,255,255,.45)}.theme-paradise .Input--monospace .Input__input{font-family:Consolas,monospace}.theme-paradise .TextArea{position:relative;display:inline-block;border:.0833333333em solid #e65c2e;border:.0833333333em solid rgba(230,92,46,.75);border-radius:.16em;background-color:rgba(0,0,0,.25);margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}.theme-paradise .TextArea--fluid{display:block;width:auto;height:auto}.theme-paradise .TextArea__textarea{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:rgba(0,0,0,0);color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.theme-paradise .TextArea__textarea:-ms-input-placeholder{font-style:italic;color:rgba(125,125,125,.75)}.theme-paradise .Knob{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}.theme-paradise .Knob:after{content:".";color:rgba(0,0,0,0);line-height:2.5em}.theme-paradise .Knob__circle{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,rgba(255,255,255,.15),rgba(255,255,255,0));border-radius:50%;box-shadow:0 .05em .5em rgba(0,0,0,.5)}.theme-paradise .Knob__cursorBox{position:absolute;top:0;bottom:0;left:0;right:0}.theme-paradise .Knob__cursor{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:rgba(255,255,255,.9)}.theme-paradise .Knob__popupValue,.theme-paradise .Knob__popupValue--right{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-paradise .Knob__popupValue--right{top:.25rem;right:-50%}.theme-paradise .Knob__ring{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}.theme-paradise .Knob__ringTrackPivot{transform:rotate(135deg)}.theme-paradise .Knob__ringTrack{fill:rgba(0,0,0,0);stroke:rgba(255,255,255,.1);stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}.theme-paradise .Knob__ringFillPivot{transform:rotate(135deg)}.theme-paradise .Knob--bipolar .Knob__ringFillPivot{transform:rotate(270deg)}.theme-paradise .Knob__ringFill{fill:rgba(0,0,0,0);stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms}.theme-paradise .Knob--color--black .Knob__ringFill{stroke:#1a1a1a}.theme-paradise .Knob--color--white .Knob__ringFill{stroke:#fff}.theme-paradise .Knob--color--red .Knob__ringFill{stroke:#df3e3e}.theme-paradise .Knob--color--orange .Knob__ringFill{stroke:#f37f33}.theme-paradise .Knob--color--yellow .Knob__ringFill{stroke:#fbda21}.theme-paradise .Knob--color--olive .Knob__ringFill{stroke:#cbe41c}.theme-paradise .Knob--color--green .Knob__ringFill{stroke:#25ca4c}.theme-paradise .Knob--color--teal .Knob__ringFill{stroke:#00d6cc}.theme-paradise .Knob--color--blue .Knob__ringFill{stroke:#2e93de}.theme-paradise .Knob--color--violet .Knob__ringFill{stroke:#7349cf}.theme-paradise .Knob--color--purple .Knob__ringFill{stroke:#ad45d0}.theme-paradise .Knob--color--pink .Knob__ringFill{stroke:#e34da1}.theme-paradise .Knob--color--brown .Knob__ringFill{stroke:#b97447}.theme-paradise .Knob--color--grey .Knob__ringFill{stroke:#848484}.theme-paradise .Knob--color--good .Knob__ringFill{stroke:#68c22d}.theme-paradise .Knob--color--average .Knob__ringFill{stroke:#f29a29}.theme-paradise .Knob--color--bad .Knob__ringFill{stroke:#df3e3e}.theme-paradise .Knob--color--label .Knob__ringFill{stroke:#955d4b}.theme-paradise .Slider:not(.Slider__disabled){cursor:e-resize}.theme-paradise .Slider__cursorOffset{position:absolute;top:0;left:0;bottom:0;transition:none!important}.theme-paradise .Slider__cursor{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #fff}.theme-paradise .Slider__pointer{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid rgba(0,0,0,0);border-right:.4166666667em solid rgba(0,0,0,0);border-bottom:.4166666667em solid #fff}.theme-paradise .Slider__popupValue{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}.theme-paradise .ProgressBar{display:inline-block;position:relative;width:100%;padding:0 .5em;border-radius:.16em;background-color:rgba(0,0,0,0);transition:border-color .5s}.theme-paradise .ProgressBar__fill{position:absolute;top:-.5px;left:0;bottom:-.5px}.theme-paradise .ProgressBar__fill--animated{transition:background-color .5s,width .5s}.theme-paradise .ProgressBar__content{position:relative;line-height:1.4166666667em;width:100%;text-align:right}.theme-paradise .ProgressBar--color--default{border:.0833333333em solid #1b6d6d}.theme-paradise .ProgressBar--color--default .ProgressBar__fill{background-color:#1b6d6d}.theme-paradise .ProgressBar--color--disabled{border:1px solid #999}.theme-paradise .ProgressBar--color--disabled .ProgressBar__fill{background-color:#999}.theme-paradise .ProgressBar--color--black{border:.0833333333em solid #000!important}.theme-paradise .ProgressBar--color--black .ProgressBar__fill{background-color:#000}.theme-paradise .ProgressBar--color--white{border:.0833333333em solid #d9d9d9!important}.theme-paradise .ProgressBar--color--white .ProgressBar__fill{background-color:#d9d9d9}.theme-paradise .ProgressBar--color--red{border:.0833333333em solid #bd2020!important}.theme-paradise .ProgressBar--color--red .ProgressBar__fill{background-color:#bd2020}.theme-paradise .ProgressBar--color--orange{border:.0833333333em solid #d95e0c!important}.theme-paradise .ProgressBar--color--orange .ProgressBar__fill{background-color:#d95e0c}.theme-paradise .ProgressBar--color--yellow{border:.0833333333em solid #d9b804!important}.theme-paradise .ProgressBar--color--yellow .ProgressBar__fill{background-color:#d9b804}.theme-paradise .ProgressBar--color--olive{border:.0833333333em solid #9aad14!important}.theme-paradise .ProgressBar--color--olive .ProgressBar__fill{background-color:#9aad14}.theme-paradise .ProgressBar--color--green{border:.0833333333em solid #1b9638!important}.theme-paradise .ProgressBar--color--green .ProgressBar__fill{background-color:#1b9638}.theme-paradise .ProgressBar--color--teal{border:.0833333333em solid #009a93!important}.theme-paradise .ProgressBar--color--teal .ProgressBar__fill{background-color:#009a93}.theme-paradise .ProgressBar--color--blue{border:.0833333333em solid #1c71b1!important}.theme-paradise .ProgressBar--color--blue .ProgressBar__fill{background-color:#1c71b1}.theme-paradise .ProgressBar--color--violet{border:.0833333333em solid #552dab!important}.theme-paradise .ProgressBar--color--violet .ProgressBar__fill{background-color:#552dab}.theme-paradise .ProgressBar--color--purple{border:.0833333333em solid #8b2baa!important}.theme-paradise .ProgressBar--color--purple .ProgressBar__fill{background-color:#8b2baa}.theme-paradise .ProgressBar--color--pink{border:.0833333333em solid #cf2082!important}.theme-paradise .ProgressBar--color--pink .ProgressBar__fill{background-color:#cf2082}.theme-paradise .ProgressBar--color--brown{border:.0833333333em solid #8c5836!important}.theme-paradise .ProgressBar--color--brown .ProgressBar__fill{background-color:#8c5836}.theme-paradise .ProgressBar--color--grey{border:.0833333333em solid #646464!important}.theme-paradise .ProgressBar--color--grey .ProgressBar__fill{background-color:#646464}.theme-paradise .ProgressBar--color--good{border:.0833333333em solid #4d9121!important}.theme-paradise .ProgressBar--color--good .ProgressBar__fill{background-color:#4d9121}.theme-paradise .ProgressBar--color--average{border:.0833333333em solid #cd7a0d!important}.theme-paradise .ProgressBar--color--average .ProgressBar__fill{background-color:#cd7a0d}.theme-paradise .ProgressBar--color--bad{border:.0833333333em solid #bd2020!important}.theme-paradise .ProgressBar--color--bad .ProgressBar__fill{background-color:#bd2020}.theme-paradise .ProgressBar--color--label{border:.0833333333em solid #6d4436!important}.theme-paradise .ProgressBar--color--label .ProgressBar__fill{background-color:#6d4436}.theme-paradise .Chat{color:#abc6ec}.theme-paradise .Chat__badge{display:inline-block;min-width:.5em;font-size:.7em;padding:.2em .3em;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#dc143c;border-radius:10px;transition:font-size .2s}.theme-paradise .Chat__badge:before{content:"x"}.theme-paradise .Chat__badge--animate{font-size:.9em;transition:font-size 0ms}.theme-paradise .Chat__scrollButton{position:fixed;right:2em;bottom:1em}.theme-paradise .Chat__reconnected{font-size:.85em;text-align:center;margin:1em 0 2em}.theme-paradise .Chat__reconnected:before{content:"Reconnected";display:inline-block;border-radius:1em;padding:0 .7em;color:#fff;background-color:#db2828}.theme-paradise .Chat__reconnected:after{content:"";display:block;margin-top:-.75em;border-bottom:.1666666667em solid #db2828}.theme-paradise .Chat__highlight{color:#000}.theme-paradise .Chat__highlight--restricted{color:#fff;background-color:#a00;font-weight:700}.theme-paradise .ChatMessage{word-wrap:break-word}.theme-paradise .ChatMessage--highlighted{position:relative;border-left:.1666666667em solid #fd4;padding-left:.5em}.theme-paradise .ChatMessage--highlighted:after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(255,221,68,.1);pointer-events:none}.theme-paradise .Layout,.theme-paradise .Layout *{scrollbar-base-color:#680b29;scrollbar-face-color:#99103d;scrollbar-3dlight-color:#800d33;scrollbar-highlight-color:#800d33;scrollbar-track-color:#680b29;scrollbar-arrow-color:#ea2e6c;scrollbar-shadow-color:#99103d}.theme-paradise .Layout::-webkit-scrollbar,.theme-paradise .Layout *::-webkit-scrollbar{width:12px}.theme-paradise .Layout::-webkit-scrollbar-track,.theme-paradise .Layout *::-webkit-scrollbar-track{background:#680b29}.theme-paradise .Layout::-webkit-scrollbar-thumb,.theme-paradise .Layout *::-webkit-scrollbar-thumb{background:#99103d}.theme-paradise .Layout__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.theme-paradise .Layout__content--flexRow{display:flex;flex-flow:row}.theme-paradise .Layout__content--flexColumn{display:flex;flex-flow:column}.theme-paradise .Layout__content--scrollable{overflow-y:auto;margin-bottom:0}.theme-paradise .Layout__content--noMargin{margin:0}.theme-paradise .Window{position:fixed;top:0;bottom:0;left:0;right:0;color:#fff;background-color:#800d33;background-image:linear-gradient(to bottom,#80014b,#80460d)}.theme-paradise .Window__titleBar{position:fixed;z-index:1;top:0;left:0;width:100%;height:32px;height:2.6666666667rem}.theme-paradise .Window__rest{position:fixed;top:32px;top:2.6666666667rem;bottom:0;left:0;right:0}.theme-paradise .Window__contentPadding{margin:.5rem;height:100%;height:calc(100% - 1.01rem)}.theme-paradise .Window__contentPadding:after{height:0}.theme-paradise .Layout__content--scrollable .Window__contentPadding:after{display:block;content:"";height:.5rem}.theme-paradise .Window__dimmer{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(166,34,78,.25);pointer-events:none}.theme-paradise .Window__resizeHandle__se{position:fixed;bottom:0;right:0;width:20px;width:1.6666666667rem;height:20px;height:1.6666666667rem;cursor:se-resize}.theme-paradise .Window__resizeHandle__s{position:fixed;bottom:0;left:0;right:0;height:6px;height:.5rem;cursor:s-resize}.theme-paradise .Window__resizeHandle__e{position:fixed;top:0;bottom:0;right:0;width:3px;width:.25rem;cursor:e-resize}.theme-paradise .TitleBar{background-color:#800d33;border-bottom:1px solid rgba(0,0,0,.25);box-shadow:0 2px 2px rgba(0,0,0,.1);box-shadow:0 .1666666667rem .1666666667rem rgba(0,0,0,.1);user-select:none;-ms-user-select:none}.theme-paradise .TitleBar__clickable{color:rgba(255,0,0,.5);background-color:#800d33;transition:color .25s,background-color .25s}.theme-paradise .TitleBar__clickable:hover{color:#fff;background-color:#c00;transition:color 0ms,background-color 0ms}.theme-paradise .TitleBar__title{position:absolute;top:0;left:46px;left:3.8333333333rem;color:rgba(255,0,0,.75);font-size:14px;font-size:1.1666666667rem;line-height:31px;line-height:2.5833333333rem;white-space:nowrap}.theme-paradise .TitleBar__dragZone{position:absolute;top:0;left:0;right:0;height:32px;height:2.6666666667rem}.theme-paradise .TitleBar__statusIcon{position:absolute;top:0;left:12px;left:1rem;transition:color .5s;font-size:20px;font-size:1.6666666667rem;line-height:32px!important;line-height:2.6666666667rem!important}.theme-paradise .TitleBar__close{position:absolute;top:-1px;right:0;width:45px;width:3.75rem;height:32px;height:2.6666666667rem;font-size:20px;font-size:1.6666666667rem;line-height:31px;line-height:2.5833333333rem;text-align:center}.theme-paradise .TitleBar__devBuildIndicator{position:absolute;top:6px;top:.5rem;right:52px;right:4.3333333333rem;min-width:20px;min-width:1.6666666667rem;padding:2px 4px;padding:.1666666667rem .3333333333rem;background-color:rgba(91,170,39,.75);color:#fff;text-align:center}.theme-paradise .adminooc{color:#29ccbe}.theme-paradise .debug{color:#8f39e6}.theme-paradise .boxed_message{background:rgba(0,0,0,.25);border:1px solid #a3b9d9;margin:.5em;padding:.5em .75em;text-align:center}.theme-paradise .boxed_message.left_align_text{text-align:left}.theme-paradise .boxed_message.red_border{background:rgba(0,0,0,.25);border-color:#a00}.theme-paradise .boxed_message.green_border{background:rgba(0,0,0,.25);border-color:#0f0}.theme-paradise .boxed_message.purple_border{background:rgba(0,0,0,.25);border-color:#8000ff}.theme-paradise .boxed_message.notice_border{background:rgba(0,0,0,.25);border-color:#6685f5}.theme-paradise .boxed_message.thick_border{border-width:thick} diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 9f76a627596f..55296a04453a 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -234,7 +234,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var N=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(u){if(u===16)return"Shift";if(u===17)return"Ctrl";if(u===18)return"Alt";if(u===33)return"Northeast";if(u===34)return"Southeast";if(u===35)return"Southwest";if(u===36)return"Northwest";if(u===37)return"West";if(u===38)return"North";if(u===39)return"East";if(u===40)return"South";if(u===45)return"Insert";if(u===46)return"Delete";if(u>=48&&u<=57||u>=65&&u<=90)return String.fromCharCode(u);if(u>=96&&u<=105)return"Numpad"+(u-96);if(u>=112&&u<=123)return"F"+(u-111);if(u===188)return",";if(u===189)return"-";if(u===190)return"."},i=function(u){var C=String(u);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(u.event.defaultPrevented||u.isModifierKey()||S.includes(u.code))){C==="F5"&&(u.event.preventDefault(),u.event.returnValue=!1);var g=p(u.code);if(g){var v=k[g];if(v)return N.debug("macro",v),Byond.command(v);if(u.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return N.debug(h),Byond.command(h)}if(u.isUp()&&y[g]){y[g]=!1;var V='Key_Up "'+g+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function s(u){S.push(u)}return s}(),f=r.releaseHotKey=function(){function s(u){var C=S.indexOf(u);C>=0&&S.splice(C,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var u=0,C=Object.keys(y);u+ ++ setSearchText(value)} + /> + + > + } + > + {filteredEmoji.map((emoji) => ( + +=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(f,l){return(0,e.createComponentVNode)(2,t.Box,{children:f},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function f(){return p("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function f(){return p("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return p("wipe")}return f}()})})]})})})]})})})}return N}()},78468:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AIFixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var f=null;i.integrity>=75?f="green":i.integrity>=25?f="yellow":f="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},73544:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),N=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.locked&&!d.siliconUser,u=d.normallyLocked,C=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],V=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!s,color:d.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return l("breaker")}return b}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:V})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:s,onClick:function(){function b(){return l("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(b.status===1||b.status===3),disabled:s,onClick:function(){function I(){return l("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&b.status===2,disabled:s,onClick:function(){function I(){return l("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&b.status===0,disabled:s,onClick:function(){function I(){return l("channel",B.off)}return I}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return l(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return l("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function b(){return l("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function b(){return l("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return l("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ATM=function(){function f(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.view_screen,v=C.authenticated_account,h=C.ticks_left_locked_down,V=C.linked_db,b;if(h>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!V)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,i);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return f}(),N=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.machine_id,v=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function h(){return u("insert_card")}return h}()})})})]})},k=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function v(){return u("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function v(){return u("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"fundsAmount",0),b=V[0],B=V[1],I=(0,a.useLocalState)(d,"purpose",0),w=I[0],T=I[1],A=C.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,M){return h(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,M){return B(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,M){return T(M)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return u("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],h=g[1],V=C.owner_name,b=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return u("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return u("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return u("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return u("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return u("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return u("balance_statement")}return B}()})})]})],4)},p=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"accountPin",null),b=V[0],B=V[1],I=C.machine_id,w=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return u("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},i=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return u("view_screen",{view_screen:0})}return g}()})}},64613:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(5126),N=n(45493),k=n(68159),S=n(27527),y=r.AccountsUplinkTerminal=function(){function C(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.loginState,I=b.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,i):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),p=function(g,v){var h=(0,t.useBackend)(v),V=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],I=b[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),V=h[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(v,"sortOrder",!0),j=M[0],P=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,l,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,l,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,l,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,l,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,D){var F=j?1:-1;return R[x].localeCompare(D[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function D(){return V("view_account_detail",{account_num:R.account_number})}return D}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},f=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),V=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!I):(b(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return V("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},s=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.account_number,I=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return V("back")}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function M(){return V("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return V("toggle_suspension")}return M}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},u=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return V("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(M,j){return w(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(M,j){return x(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},56839:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=m[c.power.main]||m[0],l=m[c.power.backup]||m[0],d=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return i("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return i("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return i("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return i("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return i("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return i("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return i("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return i("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return i("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return i("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return i("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return i("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},5565:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),N=r.AirAlarm=function(){function d(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.air,V=v.mode,b=v.atmos_alarm,B=v.locked,I=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(s,u){var C=(0,a.useLocalState)(u,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,u){var C=(0,a.useLocalState)(u,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.vents;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function b(){return g("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},c=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.scrubbers;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return g("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function b(){return g("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.modes,V=v.presets,b=v.emagged,B=v.mode,I=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:V.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},l=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},V.name)})]})})}},82915:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AirlockAccessController=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.exterior_status,f=i.interior_status,l=i.processing,d,s;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function u(){return p("force_ext")}return u}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function u(){return p("cycle_ext_door")}return u}()}),f==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:f==="open"?"red":l?"yellow":null,onClick:function(){function u(){return p("force_int")}return u}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function u(){return p("cycle_int_door")}return u}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,s]})})]})})}return N}()},14962:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),N=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function f(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return f}(),i=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&k?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&y?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&N?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:N})}return v}()})})]})]})})},c=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function V(){return u("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function V(){return u("set_one_access",{access:"all"})}return V}()})],4),accesses:h,selectedList:g,accessMod:function(){function V(b){return u("set",{access:b})}return V}(),grantAll:function(){function V(){return u("grant_all")}return V}(),denyAll:function(){function V(){return u("clear_all")}return V}(),grantDep:function(){function V(b){return u("grant_region",{region:b})}return V}(),denyDep:function(){function V(b){return u("deny_region",{region:b})}return V}()})}},99327:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),m=n(24674),N=n(45493),k=-1,S=1,y=r.AlertModal=function(){function c(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.autofocus,g=u.buttons,v=g===void 0?[]:g,h=u.large_buttons,V=u.message,b=V===void 0?"":V,B=u.timeout,I=u.title,w=(0,t.useLocalState)(l,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),M=function(){function j(P){T===0&&P===k?A(v.length-1):T===v.length-1&&P===S?A(0):A(T+P)}return j}();return(0,e.createComponentVNode)(2,N.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function j(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:v[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(P.preventDefault(),M(k)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),M(S))}return j}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(f,l){var d=(0,t.useBackend)(l),s=d.data,u=s.buttons,C=u===void 0?[]:u,g=s.large_buttons,v=s.swapped_buttons,h=f.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(V,b){return g&&C.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b)})})},i=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.large_buttons,g=f.button,v=f.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function V(){return s("choose",{choice:g})}return V}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},88642:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.change_race,l=c.species,d=c.specimen,s=c.change_gender,u=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,V=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,I=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,M=c.head_accessory_styles,j=c.head_accessory_style,P=c.change_hair,R=c.hair_styles,D=c.hair_style,F=c.change_hair_gradient,U=c.change_facial_hair,K=c.facial_hair_styles,H=c.facial_hair_style,z=c.change_head_markings,G=c.head_marking_styles,X=c.head_marking_style,Q=c.change_body_markings,ae=c.body_marking_styles,re=c.body_marking_style,de=c.change_tail_markings,pe=c.tail_marking_styles,ye=c.tail_marking_style,Ie=c.change_body_accessory,he=c.body_accessory_styles,ne=c.body_accessory_style,ce=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(g||v||h||V||b||B||I||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return i("race",{race:te.specimen})}return be}()},te.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:u==="male",onClick:function(){function te(){return i("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:u==="female",onClick:function(){function te(){return i("gender",{gender:"female"})}return te}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:u==="plural",onClick:function(){function te(){return i("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:M.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===j,onClick:function(){function be(){return i("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===D,onClick:function(){function be(){return i("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return i("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return i("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return i("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return i("hair_gradient_alpha")}return te}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===H,onClick:function(){function be(){return i("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===X,onClick:function(){function be(){return i("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ae.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===re,onClick:function(){function be(){return i("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return i("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Ie&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return i("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return i("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:f.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},51731:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosAlertConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.priority||[],f=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li","color-bad",l,0,null,l)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)})})})}return N}()},57467:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),m=n(45493),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function i(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=(0,a.useLocalState)(f,"tabIndex",0),C=u[0],g=u[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return i}(),y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.data,s=(0,a.useLocalState)(f,"zoom",1),u=s[0],C=s[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return C(h)}return v}(),children:g.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:u,icon:"circle",tooltip:v.name,color:k(v.danger)},v.ref)})})})}},41550:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosFilter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,f=i.pressure,l=i.max_pressure,d=i.filter_type,s=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function u(){return p("min_pressure")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:f,onDrag:function(){function u(C,g){return p("custom_pressure",{pressure:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function u(){return p("max_pressure")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.gas_type===d,content:u.label,onClick:function(){function C(){return p("set_filter",{filter:u.gas_type})}return C}()},u.label)})})]})})})})}return N}()},70151:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.on,l=c.pressure,d=c.max_pressure,s=c.node1_concentration,u=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function C(){return i("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function C(g,v){return i("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function C(){return i("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:u})]})})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(s,u){return i("set_node",{node_name:f,concentration:u/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(l+10)/100})}return d}()})]})}},54090:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosPump=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,f=i.rate,l=i.max_rate,d=i.gas_unit,s=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function u(){return p("min_rate")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:f,onDrag:function(){function u(C,g){return p("custom_rate",{rate:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function u(){return p("max_rate")}return u}()})]})]})})})})}return N}()},31335:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),m=n(38424),N=n(45493),k=r.AtmosTankControl=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[d].pressure," kpa"]}):"",Object.keys(l[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[d]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,m.getGasColor)(s),value:l[d][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[d][s],2)+"%"})},(0,m.getGasLabel)(s)):""})]})},d)}),f.inlet&&Object.keys(f.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.inlet.on,"power-off"),content:f.inlet.on?"On":"Off",color:f.inlet.on?null:"red",selected:f.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:f.inlet.rate,onDrag:function(){function d(s,u){return c("set_pressure",{dev:"inlet",val:u})}return d}()})})]})}):"",f.outlet&&Object.keys(f.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.outlet.on,"power-off"),content:f.outlet.on?"On":"Off",color:f.outlet.on?null:"red",selected:f.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:f.outlet.rate,onDrag:function(){function d(s,u){return c("set_pressure",{dev:"outlet",val:u})}return d}()})})]})}):""]})})}return S}()},85909:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),N=n(45493),k=n(78234),S=function(i,c,f,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>f)},y=r.Autolathe=function(){function p(i,c){var f=(0,o.useBackend)(c),l=f.act,d=f.data,s=d.total_amount,u=d.max_amount,C=d.metal_amount,g=d.glass_amount,v=d.busyname,h=d.busyamt,V=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,I=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],D=P[1],F=(0,k.createSearch)(R,function(z){return z.name}),U="";B>0&&(U=b.map(function(z,G){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:b[G][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:b.indexOf(z)+1})}return X}()},z)},G)}));var K=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||R)&&(d.showhacked||!z.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(I),H="Build";return R?H="Results for: '"+R+"':":A&&(H="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:H,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(G){return x(G)}return z}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(G,X){return D(X)}return z}(),mb:1}),K.map(function(z){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:1})}return G}(),children:(0,k.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:10})}return G}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:25})}return G}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:z.max_multiplier})}return G}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(G){return(0,k.toTitleCase)(G)+": "+z.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return l("clear_queue")}return z}()})]})]})]})})})}return p}()},81617:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BioChipPad=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.implant,f=i.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function l(){return p("eject_case")}return l}()})]})})})}return N}()},26215:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),N=r.Biogenerator=function(){function i(c,f){var l=(0,a.useBackend)(f),d=l.data,s=l.config,u=d.container,C=d.processing,g=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),u?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(c,f){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.biomass,C=s.container,g=s.container_curr_reagents,v=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:u}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.has_plants,C=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!u,tooltip:u?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!u,tooltip:u?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.biomass,C=s.product_list,g=(0,a.useSharedState)(f,"vendAmount",1),v=g[0],h=g[1],V=Object.entries(C).map(function(b,B){var I=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:u d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>V&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function I(){return i("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function I(){return i("set",{set_level:d})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function I(){return i("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return i("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return i("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return i("set",{set_level:v})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(g)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:u})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return i("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return k}()},71736:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),m=n(24674),N=n(45493),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(B,I){for(var w=[],T=0;T 0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,m.Box,{children:w},w)],0)},null):null},f=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},l=r.BodyScanner=function(){function b(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:M})})}return b}(),d=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,u,{occupant:I}),(0,e.createComponentVNode)(2,C,{occupant:I}),(0,e.createComponentVNode)(2,v,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},u=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,m.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:i(y,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A 100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,f(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([f(I.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=n(18963),k=r.BookBinder=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.selectedbook,d=f.book_categories,s=[];return d.map(function(u){return s[u.description]=u.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function u(){return c("print_book")}return u}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function u(){return(0,m.modalOpen)(p,"edit_selected_title")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function u(){return(0,m.modalOpen)(p,"edit_selected_author")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(u){return u.description}),onSelected:function(){function u(C){return c("toggle_binder_category",{category_id:s[C]})}return u}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function u(){return(0,m.modalOpen)(p,"edit_selected_summary")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(u){return l.categories.includes(u.category_id)}).map(function(u){return(0,e.createComponentVNode)(2,t.Button,{content:u.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:u.category_id})}return C}()},u.category_id)})]})})]})})})]})}return S}()},43506:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.locked,l=c.noaccess,d=c.maintpanel,s=c.on,u=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.cleanblood,b=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:l,onClick:function(){function B(){return i("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return i("area")}return B}()}),b!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:b})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function B(){return i("ejectpai")}return B}()})})]})})}return k}()},89593:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.noaccess,l=c.painame,d=c.hullplating,s=c.replace,u=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,h=c.magnet,V=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:f,onClick:function(){function b(){return i("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:f,onClick:function(){function b(){return i("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:f,onClick:function(){function b(){return i("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Finds tiles",disabled:f,onClick:function(){function b(){return i("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:f,onClick:function(){function b(){return i("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:f,onClick:function(){function b(){return i("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:f,onClick:function(){function b(){return i("anchored")}return b}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:l,disabled:f,onClick:function(){function b(){return i("ejectpai")}return b}()})})]})})}return k}()},89513:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.BotStatus)})})}return k}()},19297:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.locked,l=c.noaccess,d=c.maintpanel,s=c.on,u=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:l,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:l,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:l,onChange:function(){function E(M,j){return i("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:l,onChange:function(){function E(M,j){return i("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:l,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:l,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:l,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return k}()},4249:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.noaccess,l=c.painame,d=c.check_id,s=c.check_weapons,u=c.check_warrant,C=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:f,onClick:function(){function v(){return i("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:f,onClick:function(){function v(){return i("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Wanted Criminals",disabled:f,onClick:function(){function v(){return i("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function v(){return i("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function v(){return i("arrdeclare")}return v}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:l,disabled:f,onClick:function(){function v(){return i("ejectpai")}return v}()})})]})})}return k}()},27267:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),m=function(y,p){var i=y.cell,c=(0,o.useBackend)(p),f=c.act,l=i.cell_id,d=i.occupant,s=i.crimes,u=i.brigged_by,C=i.time_left_seconds,g=i.time_set_seconds,v=i.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var V=function(){f("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,m,{cell:i},i.ref)})]})},k=r.BrigCells=function(){function S(y,p){var i=(0,o.useBackend)(p),c=i.act,f=i.data,l=f.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N,{cells:l})})})})})}return S}()},26623:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BrigTimer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var f=[],l=0;for(l=0;l f?this.substring(0,f)+"...":this};var y=function(l,d){var s,u;if(!d)return[];var C=l.findIndex(function(g){return g.name===d.name});return[(s=l[C-1])==null?void 0:s.name,(u=l[C+1])==null?void 0:u.name]},p=function(l,d){d===void 0&&(d="");var s=(0,m.createSearch)(d,function(u){return u.name});return(0,t.flow)([(0,a.filter)(function(u){return u==null?void 0:u.name}),d&&(0,a.filter)(s),(0,a.sortBy)(function(u){return u.name})])(l)},i=r.CameraConsole=function(){function f(l,d){var s=(0,N.useBackend)(d),u=s.act,C=s.data,g=s.config,v=C.mapRef,h=C.activeCamera,V=p(C.cameras),b=y(V,h),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return u("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return u("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return f}(),c=r.CameraConsoleContent=function(){function f(l,d){var s=(0,N.useBackend)(d),u=s.act,C=s.data,g=(0,N.useLocalState)(d,"searchText",""),v=g[0],h=g[1],V=C.activeCamera,b=p(C.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return u("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return f}()},95513:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(92986),N=n(45493),k=r.Canister=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,l=f.portConnected,d=f.tankPressure,s=f.releasePressure,u=f.defaultReleasePressure,C=f.minReleasePressure,g=f.maxReleasePressure,v=f.valveOpen,h=f.name,V=f.canLabel,b=f.colorContainer,B=f.color_index,I=f.hasHoldingTank,w=f.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],j=[],P=[],R=[],D=0;for(D=0;D h.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:u.cooldown_time||!h.can_close,onClick:function(){function V(){return s("make_job_unavailable",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:u.cooldown_time||!h.can_open,onClick:function(){function V(){return s("make_job_available",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:u.cooldown_time||!h.can_prioritize,onClick:function(){function V(){return s("prioritize_job",{job:h.title})}return V}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,S):u.modify_name?v=(0,e.createComponentVNode)(2,m.AccessList,{accesses:u.regions,selectedList:u.selectedAccess,accessMod:function(){function h(V){return s("set",{access:V})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(V){return s("grant_region",{region:V})}return h}(),denyDep:function(){function h(V){return s("deny_region",{region:V})}return h}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:u.authenticated?u.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!u.authenticated||u.records.length===0||u.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),u.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!u.authenticated||u.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),u.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function V(){return s("remote_demote",{remote_demote:h.name})}return V}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},16377:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),N=n(45493),k=n(78234),S=r.CargoConsole=function(){function d(s,u){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),y=function(s,u){var C=(0,o.useLocalState)(u,"contentsModal",null),g=C[0],v=C[1],h=(0,o.useLocalState)(u,"contentsModalTitle",null),V=h[0],b=h[1];if(g!==null&&V!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(s,u){var C=(0,o.useBackend)(u),g=C.act,v=C.data,h=v.is_public,V=v.timeleft,b=v.moving,B=v.at_station,I,w;return!b&&!B?(I="Docked off-station",w="Call Shuttle"):!b&&B?(I="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",V!==1?I="Shuttle is en route (ETA: "+V+" minutes)":I="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},i=function(s,u){var C,g=(0,o.useBackend)(u),v=g.act,h=g.data,V=h.accounts,b=(0,o.useLocalState)(u,"selectedAccount"),B=b[0],I=b[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(C=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,m.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,u){var C=(0,o.useBackend)(u),g=C.act,v=C.data,h=v.requests,V=v.categories,b=v.supply_packs,B=(0,o.useSharedState)(u,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(u,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(u,"contentsModal",null),M=E[0],j=E[1],P=(0,o.useLocalState)(u,"contentsModalTitle",null),R=P[0],D=P[1],F=(0,k.createSearch)(A,function(X){return X.name}),U=(0,o.useLocalState)(u,"selectedAccount"),K=U[0],H=U[1],z=(0,a.flow)([(0,t.filter)(function(X){return X.cat===V.filter(function(Q){return Q.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(b),G="Crate Catalogue";return A?G="Results for '"+A+"':":I&&(G="Browsing "+I),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:G,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(X){return X.name}),selected:I,onSelected:function(){function X(Q){return w(Q)}return X}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(Q,ae){return x(ae)}return X}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:z.map(function(X){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",disabled:!K,onClick:function(){function Q(){return g("order",{crate:X.ref,multiple:!1,account:K})}return Q}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||X.singleton,onClick:function(){function Q(){return g("order",{crate:X.ref,multiple:!0,account:K})}return Q}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){j(X.contents),D(X.name)}return Q}()})]})]},X.name)})})})]})})},f=function(s,u){var C=s.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},l=function(s,u){var C=(0,o.useBackend)(u),g=C.act,v=C.data,h=v.requests,V=v.orders,b=v.shipments;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,m.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,f,{request:B})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ChangelogView=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),f=c[0],l=c[1],d=i.cl_data,s=i.last_cl,u={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function g(v){return v in u?u[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return l(!f)}return g}()}),children:d.map(function(g){return!f&&g.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},71254:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),m=n(45493),N=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),y=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.amount,g=u.energy,v=u.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function b(){return s("amount",{amount:h})}return b}()})},V)})})})]})})})},p=function(f,l){for(var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.chemicals,g=C===void 0?[]:C,v=[],h=0;h<(g.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:u.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(V,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:V.id})}return B}()},b)}),v.map(function(V,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},i=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.isBeakerLoaded,g=u.beakerCurrentVolume,v=u.beakerMaxVolume,h=u.beakerContents,V=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:u.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:V,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),k.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return b}()})})})}},27004:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(1496),N=n(45493),k=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var f=(0,t.useBackend)(c),l=f.act,d=f.data,s=d.targetTemp,u=d.targetTempReached,C=d.autoEject,g=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function V(){return l("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function V(){return l("toggle_on")}return V}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function V(b,B){return l("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:u?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function V(b){return(0,a.toFixed)(b)+" K"}return V}()})||"\u2014"})]})})})},y=function(i,c){var f=(0,t.useBackend)(c),l=f.act,d=f.data,s=d.isBeakerLoaded,u=d.beakerCurrentVolume,C=d.beakerMaxVolume,g=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[u," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:s,beakerContents:g})})})}},33611:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(1496),N=n(99665),k=n(28234),S=n(81856),y=["icon"];function p(x,E){if(x==null)return{};var M={},j=Object.keys(x),P,R;for(R=0;R =0)&&(M[P]=x[P]);return M}function i(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function M(j,P){return j.__proto__=P,j}return M}(),c(x,E)}var f=(0,S.createLogger)("ChemMaster"),l=[1,5,10],d=function(E,M){var j=(0,a.useBackend)(M),P=j.act,R=j.data,D=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:R.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:D.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(D.desc||"").length>0?D.desc:"N/A"}),D.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:D.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:D.blood_dna})],4),!R.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:R.printing?"spinner":"print",disabled:R.printing,iconSpin:!!R.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return P("print",{idx:D.idx,beaker:E.args.beaker})}return F}()})]})})})})},s=r.ChemMaster=function(){function x(E,M){var j=(0,a.useBackend)(M),P=j.data,R=P.condi,D=P.beaker,F=P.beaker_reagents,U=F===void 0?[]:F,K=P.buffer_reagents,H=K===void 0?[]:K,z=P.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u,{beaker:D,beakerReagents:U,bufferNonEmpty:H.length>0}),(0,e.createComponentVNode)(2,C,{mode:z,bufferReagents:H}),(0,e.createComponentVNode)(2,g,{isCondiment:R,bufferNonEmpty:H.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),u=function(E,M){var j=(0,a.useBackend)(M),P=j.act,R=E.beaker,D=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function U(){return P("eject")}return U}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function U(){return P("eject")}return U}()}),children:R?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function U(K,H){return(0,e.createComponentVNode)(2,t.Box,{mb:H 0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function U(K,H){return(0,e.createComponentVNode)(2,t.Box,{mb:H h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)]})]})})]})]})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.patient_limb_data,V=v.limb_list,b=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),h[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&N),checked:!(b[B][2]&N),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(b[B][2]&k),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},l=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.patient_organ_data,V=v.organ_list,b=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CloningPod=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,f=i.biomass_storage_capacity,l=i.sanguine_reagent,d=i.osseous_reagent,s=i.organs,u=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*f/3,f],average:[f/3,2*f/3],bad:[0,f/3]},minValue:0,maxValue:f})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"osseous_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!u&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return p("eject_organ",{organ_ref:C.ref})}return g}()})})]},C)})]}),!!u&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return N}()},11866:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ColourMatrixTester=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.colour_data,f=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(u,C){return p("setvalue",{idx:d.idx+1,value:C})}return s}()})]},d.name)})},l)})})})})})}return N}()},22420:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function d(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),m(h)]})})})}return d}(),k=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.authenticated,V=v.noauthbutton,b=v.esc_section,B=v.esc_callable,I=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:V,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function j(){return g("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function j(){return g("callshuttle")}return j}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function j(){return g("cancelshuttle")}return j}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.is_admin,V=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,I=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:b,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.msg_cooldown,V=v.emagged,b=v.cc_cooldown,B=v.security_level_color,I=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=V?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",j+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function P(){return g("announce")}return P}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function P(){return g("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function P(){return g("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function P(){return g("MessageCentcomm")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!T||b>0,onClick:function(){function P(){return g("nukerequest")}return P}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function P(){return g("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function P(){return g("messagelist")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function P(){return g("RestartNanoMob")}return P}()})})]})})})],4)},i=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.stat_display,V=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!V,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!V,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.authhead,V=v.current_message_title,b=v.current_message,B=v.messages,I=v.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||V===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=s.levels,V=s.required_access,b=s.use_confirm,B=v.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},l=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.is_admin,V=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(u,"subtitle",""),B=b[0],I=b[1],w=(0,a.useLocalState)(u,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(u,"classified",0),E=x[0],M=x[1],j=(0,a.useLocalState)(u,"beepsound","Beep"),P=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return g("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function D(F,U){return I(U)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function D(F,U){return A(U)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:P})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:P,onSelected:function(){function D(F){return R(F)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return g("test_sound",{sound:P})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return M(!E)}return D}()})})]})]})})}},46868:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CompostBin=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,f=i.compost,l=i.biomass_capacity,d=i.compost_capacity,s=(0,a.useSharedState)(S,"vendAmount",1),u=s[0],C=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[c," / ",l," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:f,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[f," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:u,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,h){return C(h)}return g}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:f<25*u,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:u})}return g}()})})})]})})})}return N}()},64707:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(99509),N=n(45493);function k(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(V,b){return V.__proto__=b,V}return h}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function g(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(P){return P.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:A.time_left,format:function(){function P(R,D){return" ("+D.substr(3)+")"}return P}()})],onClick:function(){function P(){return b("extract")}return P}()})},v,{children:I.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+P.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[P.status][1],inline:!0,mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return b("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(R=P.difficulties)==null?void 0:R.map(function(D,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:D.name+" ("+D.reward+" TC)",onClick:function(){function U(){return b("activate",{uid:P.uid,difficulty:F+1})}return U}()},F)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,V=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,I=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I -1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},u=function(g){function v(V){var b;return b=g.call(this,V)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}k(v,g);var h=v.prototype;return h.tick=function(){function V(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return V}(),h.componentDidMount=function(){function V(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return V}(),v}(e.Component),C=function(v,h){var V=(0,t.useLocalState)(h,"viewingPhoto",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},52141:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ConveyorSwitch=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.slowFactor,f=i.oneWay,l=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!f,onClick:function(){function d(){return p("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(s){return s+"x"}return d}(),onChange:function(){function d(s,u){return p("slowFactor",{value:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return N}()},94187:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),m=n(24674),N=n(5126),k=n(38424),S=n(45493),y=function(d,s){return d.dead?"Deceased":parseInt(d.health,10)<=s?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,s){return d.dead?"red":parseInt(d.health,10)<=s?"orange":parseInt(d.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function l(d,s){var u=(0,o.useBackend)(s),C=u.act,g=u.data,v=(0,o.useLocalState)(s,"tabIndex",0),h=v[0],V=v[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return l}(),c=function(d,s){var u=(0,o.useBackend)(s),C=u.act,g=u.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,V=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:b?(0,e.createComponentVNode)(2,m.Dropdown,{mr:"5px",width:"50px",options:h,selected:V,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2||g.ignoreSensors?(0,e.createComponentVNode)(2,m.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3||g.ignoreSensors?g.isAI||g.isObserver?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},f=function(d,s){var u=(0,o.useBackend)(s),C=u.act,g=u.data,v=(0,o.useLocalState)(s,"zoom",1),h=v[0],V=v[1];return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function b(B){return V(B)}return b}(),children:g.crewmembers.filter(function(b){return b.sensor_type===3||g.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:b.x,y:b.y,zoom:h,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:p(b,g.critThreshold),onClick:function(){function B(){return g.isObserver?C("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.isOperating,u=d.hasOccupant,C=d.occupant,g=C===void 0?[]:C,v=d.cellTemperature,h=d.cellTemperatureStatus,V=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,I=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return l("ejectOccupant")}return w}(),disabled:!u,children:"Eject"}),children:u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return l("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return l(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return l(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return l(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.isBeakerLoaded,u=d.beakerLabel,C=d.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!u&&"average",children:[u||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),N=r.CryopodConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.frozen_items,s=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,m.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(u.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return f("one_item",{item:u.uid})}return C}()})},u)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function u(){return f("all_items")}return u}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function P(){return I("selectMenuKey",{key:M[0]})}return P}(),children:M[1]},j)})}),E]})},c=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function M(j){return j.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(j,P){return I("changeUITarget",{value:P})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return I("pulseUIRadiation")}return M}()})]})},f=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},l=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationIntensity",{value:M})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationDuration",{value:M})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},d=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,u)})]})},s=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,M=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:M,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function j(){return I("bufferOption",{option:"clear",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function j(){return I("bufferOption",{option:"changeLabel",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return I("bufferOption",{option:"saveDisk",id:T})}return j}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUI",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveSE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"loadDisk",id:T})}return j}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"transfer",id:T})}return j}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},u=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function j(){return I("injectRejuvenators",{amount:E})}return j}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(V,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},v=function(V,b){for(var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,M=V.action,j=T.split(""),P=0,R=[],D=function(){for(var K=F/E+1,H=[],z=function(){var Q=G+1;H.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Q,content:j[F+G],mb:"0",onClick:function(){function ae(){return I(M,{block:K,subblock:Q})}return ae}()}))},G=0;G u.spawnpoints?"red":"green",children:[u.total," total, versus ",u.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return s("dispatch_ert",{silent:v})}return V}()})})]})})})},p=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return s("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,m.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=(0,a.useLocalState)(l,"text",""),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(V,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:g})}return h}()})]})})}},24503:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},15543:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data,f=c.power,l=c.code,d=c.frequency,s=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:u/10,value:d/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return i("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function C(g,v){return i("code",{code:v})}return C}()})})]})})})})}return k}()},99012:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(74041),k=n(50640),S=r.EvolutionMenu=function(){function i(c,f){return(0,e.createComponentVNode)(2,m.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return i}(),y=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.evo_points,C=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:u}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.evo_points,C=s.ability_tabs,g=s.purchased_abilities,v=s.view_mode,h=(0,t.useLocalState)(f,"selectedTab",C[0]),V=h[0],b=h[1],B=(0,t.useLocalState)(f,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(f,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(R,D){if(D===void 0&&(D=""),!R||R.length===0)return[];var F=(0,a.createSearch)(D,function(U){return U.name+"|"+U.description});return(0,N.flow)([(0,k.filter)(function(U){return U==null?void 0:U.name}),(0,k.filter)(F),(0,k.sortBy)(function(U){return U==null?void 0:U.name})])(R)},M=function(R){if(w(R),R==="")return x(V.abilities);x(E(C.map(function(D){return D.abilities}).flat(),R))},j=function(R){b(R),x(R.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function P(R,D){M(D)}return P}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function P(){return d("set_view_mode",{mode:0})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function P(){return d("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&V===P,onClick:function(){function R(){j(P)}return R}(),children:P.category},P)})}),A.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:P.name}),g.includes(P.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:P.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:P.cost>u||g.includes(P.power_path),content:"Evolve",onClick:function(){function D(){return d("purchase",{power_path:P.power_path})}return D}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:P.description+" "+P.helptext})]},R)})]})})}},37504:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),m=n(24674),N=n(99509),k=n(45493),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var h={},V=Object.keys(g),b,B;for(B=0;B =0)&&(h[b]=g[b]);return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),I&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return g}(),f=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,u,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},l=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],j=(0,t.createSearch)(E,function(R){return R.name}),P=T.filter(j);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function R(D){return b("category",{cat:D})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return b("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(D,F){return M(F)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,C,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,m.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E 0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},u=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[I]||0,M=w||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var j=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:j&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return b("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.open,d=f.feedback,s=f.occupant,u=f.occupant_name,C=f.occupant_status,g=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return m.get(C)}return B}(),b=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},77284:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=0,N=1013,k=function(p){var i="good",c=80,f=95,l=110,d=120;return p l?i="average":p>d&&(i="bad"),i},S=r.ExternalAirlockController=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.chamber_pressure,s=l.exterior_status,u=l.interior_status,C=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:k(d),value:d,minValue:m,maxValue:N,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return f("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function g(){return f("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return f("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function g(){return f("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function g(){return f("force_int")}return g}()})]})]})]})})}return y}()},52516:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FaxMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return N}()},24777:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FilingCabinet=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=y.config,f=i.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!f&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!f&&f.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:d.index})}return s}()})})]},d)})]})})})})}return N}()},88361:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=S.image,l=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":l&&"solid"||"none","border-width":"2px","border-color":"orange",padding:l&&"2px"||"4px"},onClick:d})},N=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.availableStyles,l=c.selectedStyle,d=c.selectedDir,s=c.directionsPreview,u=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return i("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:l,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return i("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return i("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{image:u[C],isSelected:l===C,onSelect:function(){function g(){return i("select_style",{style:C})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{image:s[g],isSelected:g===d,onSelect:function(){function v(){return i("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return k}()},70078:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=function(l){return l?"("+l.join(", ")+")":"ERROR"},k=function(l,d){if(!(!l||!d)){if(l[2]!==d[2])return null;var s=Math.atan2(d[1]-l[1],d[0]-l[0]),u=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:u}}},S=r.GPS=function(){function f(l,d){var s=(0,t.useBackend)(d),u=s.data,C=u.emped,g=u.active,v=u.area,h=u.position,V=u.saved;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:v,position:h})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return f}(),y=function(l,d){var s=l.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(l,d){var s=(0,t.useBackend)(d),u=s.act,C=s.data,g=C.active,v=C.tag,h=C.same_z,V=(0,t.useLocalState)(d,"newTag",v),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function I(){return u("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function I(){return u("tag",{newtag:b})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return u("tag",{newtag:b})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return u("same_z")}return I}()})})]})})},i=function(l,d){var s=l.title,u=l.area,C=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[u&&(0,e.createFragment)([u,(0,e.createVNode)(1,"br")],0),N(C)]})})},c=function(l,d){var s=(0,t.useBackend)(d),u=s.data,C=u.position,g=u.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,k(C,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(v.position)})]},h)})})})))}},92246:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),m=n(45493),N=r.GeneModder=function(){function l(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.has_seed;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return C("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},S=function(d,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.has_seed,h=g.seed,V=g.has_disk,b=g.disk,B,I;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?I=b.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},p=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[h.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return C("extract",{id:V.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return C("replace",{id:V.id})}return b}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function V(){return C("bulk_extract_core")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(v!=null&&v.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function V(){return C("bulk_replace_core")}return V}()})})]})]},"Core Genes")},i=function(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,f,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,f,{title:"Trait Genes",gene_set:g,do_we_show:v})},f=function(d,s){var u=d.title,C=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(s),h=v.act,V=v.data,b=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:u,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},u)}},27163:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),m=r.GenericCrewManifest=function(){function N(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return N}()},53808:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.security,f=i.medical,l=i.diagnostic,d=i.radioactivity,s=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,N,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=S.label,f=S.type,l=f===void 0?null:f,d=S.is_active,s=S.act_on,u=s===void 0?"hud_on":s,C=S.act_off,g=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?g:u,{hud_type:l})}return v}()})})]})}},32035:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GlandDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.glands,f=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return p("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return N}()},33004:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GravityGen=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.charging_state,f=i.charge_count,l=i.breaker,d=i.ext_power,s=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return C}(),u=function(){function C(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[u(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function C(){return p("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},39775:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),N=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function f(){return i("mode",{mode:0})}return f}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function f(){return i("mode",{mode:1})}return f}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function f(){return i("scan")}return f}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function f(){return i("giv_name")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function f(){return i("reason")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function f(){return i("duration")}return f}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function f(){return i("issue")}return f}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function f(l){return i("access",{access:l})}return f}(),grantAll:function(){function f(){return i("grant_all")}return f}(),denyAll:function(){function f(){return i("clear_all")}return f}(),grantDep:function(){function f(l){return i("grant_region",{region:l})}return f}(),denyDep:function(){function f(l){return i("deny_region",{region:l})}return f}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function f(){return i("print")}return f}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(f,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:f},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},22480:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[1,5,10,20,30,50],N=null,k=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.amount,u=d.energy,C=d.maxEnergy,g=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[u," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===v,content:v,onClick:function(){function V(){return l("amount",{amount:v})}return V}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(i,c){for(var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.chemicals,u=s===void 0?[]:s,C=d.current_reagent,g=[],v=0;v<(u.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[u.map(function(h,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return l("dispense",{reagent:h.id})}return b}()},V)}),g.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},22616:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.HealthSensor=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,l=f.on,d=f.user_health,s=f.minHealth,u=f.maxHealth,C=f.alarm_health;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:u,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},76861:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=(0,a.useLocalState)(y,"currentDeck",""),l=f[0],d=f[1],s=(0,a.useLocalState)(y,"showReload",!1),u=s[0],C=s[1],g=c.decks,v=c.ai_override,h=c.emagged,V=function(){function b(B){i("select_deck",{deck:B}),d(B),C(!0),setTimeout(function(){C(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[u&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",l]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===l,onClick:function(){function B(){return V(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return i("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return i("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),N=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.Instrument=function(){function i(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),k=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.help;if(u)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},S=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.lines,C=s.playing,g=s.repeat,v=s.maxRepeats,h=s.tempo,V=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:u.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,M){return d("repeat",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return d("setvolume",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.allowedInstrumentNames,C=s.instrumentLoaded,g=s.instrument,v=s.canNoteShift,h=s.noteShift,V=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function j(P){return(0,a.round)(P*100)/100+" seconds"}return j}(),onChange:function(){function j(P,R){return d("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function j(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(P,R){return d("setexpfalloff",{new:R})}return j}()})),u.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:g,width:"50%",onSelected:function(){function j(P){return d("switchinstrument",{name:P})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:b,value:h,stepPixelSize:2,format:function(){function j(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return j}(),onChange:function(){function j(P,R){return d("setnoteshift",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function j(P){return d("setsustainmode",{new:P})}return j}()}),M]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function j(P,R){return d("setdropoffvolume",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function j(){return d("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return d("reset")}return j}()})]})})})},p=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.playing,C=s.lines,g=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||u,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"pen",onClick:function(){function V(){return d("modifyline",{line:h+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"trash",onClick:function(){function V(){return d("deleteline",{line:h+1})}return V}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},53385:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.KeycardAuth=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return p("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:f})]})})}return N}()},58553:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),N=r.KitchenMachine=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,f=i.config,l=c.ingredients,d=c.operating,s=f.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:d,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," ",u.units]}),2)]},u.name)})})})})]})})})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.inactive,d=f.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.LawManager=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.isAdmin,s=l.isSlaved,u=l.isMalf,C=l.isAIMalf,g=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:u?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(u||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return f("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return f("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,N),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.has_zeroth_laws,s=l.zeroth_laws,u=l.has_ion_laws,C=l.ion_laws,g=l.ion_law_nr,v=l.has_inherent_laws,h=l.inherent_laws,V=l.has_supplied_laws,b=l.supplied_laws,B=l.channels,I=l.channel,w=l.isMalf,T=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,M=l.supplied_law,j=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:i}),!!u&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:i}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:i}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===I,onClick:function(){function R(){return f("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function u(){return f("transfer_laws",{transfer_laws:s.ref})}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)})]})},s.name)})})},S=function(p,i){var c=(0,a.useBackend)(p.ctx),f=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function u(){return f("state_law",{ref:s.ref,state_law:s.state?0:1})}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function u(){return f("edit_law",{edit_law:s.ref})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function u(){return f("delete_law",{delete_law:s.ref})}return u}()})],4)]})]},s.law)})]})})}},5872:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.LibraryComputer=function(){function g(v,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function M(){return b("set_report",{report_type:x.category_id})}return M}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},y=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},i=function(v,h){var V=(0,a.useBackend)(h),b=V.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var V=(0,a.useLocalState)(h,"tabIndex",0),b=V[0];switch(b){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,u);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},f=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},l=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,m.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,f),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,m.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,m.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},u=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,m.modalRegisterBodyOverride)("expand_info",k),(0,m.modalRegisterBodyOverride)("report_book",S),(0,m.modalRegisterBodyOverride)("rate_info",p)},37782:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.LibraryManager=function(){function i(c,f){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return i}(),k=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.pagestate;switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ssid_delete")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ckey_delete")}return u}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ckey_search")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function u(){return d("view_reported_books")}return u}()})]})},y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.ckey,C=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",u,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return d("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},26133:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),m=n(17899),N=n(68100),k=n(45493),S=r.ListInputModal=function(){function i(c,f){var l=(0,m.useBackend)(f),d=l.act,s=l.data,u=s.items,C=u===void 0?[]:u,g=s.message,v=g===void 0?"":g,h=s.init_value,V=s.timeout,b=s.title,B=(0,m.useLocalState)(f,"selected",C.indexOf(h)),I=B[0],w=B[1],T=(0,m.useLocalState)(f,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,m.useLocalState)(f,"searchQuery",""),M=E[0],j=E[1],P=function(){function G(X){var Q=H.length-1;if(X===N.KEY_DOWN)if(I===null||I===Q){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var re;w(I+1),(re=document.getElementById((I+1).toString()))==null||re.scrollIntoView()}else if(X===N.KEY_UP)if(I===null||I===0){var de;w(Q),(de=document.getElementById(Q.toString()))==null||de.scrollIntoView()}else{var pe;w(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return G}(),R=function(){function G(X){X!==I&&w(X)}return G}(),D=function(){function G(){x(!1),x(!0)}return G}(),F=function(){function G(X){var Q=String.fromCharCode(X),ae=C.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(ae){var re,de=C.indexOf(ae);w(de),(re=document.getElementById(de.toString()))==null||re.scrollIntoView()}}return G}(),U=function(){function G(X){var Q;X!==M&&(j(X),w(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return G}(),K=function(){function G(){x(!A),j("")}return G}(),H=C.filter(function(G){return G==null?void 0:G.toLowerCase().includes(M.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(I.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:z,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function G(X){var Q=window.event?X.which:X.keyCode;(Q===N.KEY_DOWN||Q===N.KEY_UP)&&(X.preventDefault(),P(Q)),Q===N.KEY_ENTER&&(X.preventDefault(),d("submit",{entry:H[I]})),!A&&Q>=N.KEY_A&&Q<=N.KEY_Z&&(X.preventDefault(),F(Q)),Q===N.KEY_ESCAPE&&(X.preventDefault(),d("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return K()}return G}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:H,onClick:R,onFocusSearch:D,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:H,onSearch:U,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:H[I]})})]})})})]})}return i}(),y=function(c,f){var l=(0,m.useBackend)(f),d=l.act,s=c.filteredItems,u=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function b(){return u(V)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:s[v]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;g&&I>=N.KEY_A&&I<=N.KEY_Z&&(B.preventDefault(),C())}return b}(),selected:V===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},V)})})},p=function(c,f){var l=(0,m.useBackend)(f),d=l.act,s=c.filteredItems,u=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:s[g]})}return v}(),onInput:function(){function v(h,V){return u(V)}return v}(),placeholder:"Search...",value:C})}},71963:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(P,R){return M("configure",{key:T,value:R,ref:x})}return j}()})},N=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function j(){return M("configure",{key:T,value:!A,ref:x})}return j}()})},k=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return M("configure",{key:T,ref:x})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(w),j=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function P(R){return j("configure",{key:T,value:R,ref:E})}return P}()})},y=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,M=I.values,j=I.module_ref,P={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",P[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,M=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},i=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,M=I.userburn,j=I.usertoxin,P=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,M=I.statusmaxhealth,j=I.statusbrute,P=I.statusburn,R=I.statustoxin,D=I.statusoxy,F=I.statustemp,U=I.statusnutrition,K=I.statusfingerprints,H=I.statusdna,z=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?H:"???"})]})}),!!T&&!!z&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),z.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},f={rad_counter:p,health_analyzer:i,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},u=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,j=x.locked,P=x.open,R=x.selected_module,D=x.complexity,F=x.complexity_max,U=x.wearer_name,K=x.wearer_job,H=M?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:H}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:P?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",K]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,j=x.helmet,P=x.chestplate,R=x.gauntlets,D=x.boots,F=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,j=M.filter(function(P){return!!P.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(P){var R=f[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},P,{active:E})))]},P.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,j=(0,a.useLocalState)(w,"module_configuration",null),P=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[P===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:D.ref})}return F}(),icon:"bullseye",selected:D.module_active,tooltip:u(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(D.ref)}return F}(),icon:"cog",selected:P===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:D.ref})}return F}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},84274:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=n(99665),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=c.data,d=l.autolink,s=l.code,u=l.frequency,C=l.linkedMagnets,g=l.magnetConfiguration,v=l.path,h=l.pathPosition,V=l.probing,b=l.powerState,B=l.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function I(){return f("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(u/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function I(){return f("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return f("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return f("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return f("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,N.modalOpen)(i,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(I,w){var T=k.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return f("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),C.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function M(){return f("toggle_magnet_power",{id:T})}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function M(j,P){return f("set_electricity_level",{id:T,electricityLevel:P})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function M(j,P){return f("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return y}()},95752:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.MechBayConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.recharge_port,f=c&&c.mech,l=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return N}()},53668:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=n(78234),k=r.MechaControlConsole=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,l=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:d.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:l.length&&l.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function u(){return c("send_message",{mt:s.uid})}return u}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function u(){return c("get_log",{mt:s.uid})}return u}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function u(){return c("shock",{mt:s.uid})}return u}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(99665),N=n(45493),k=n(68159),S=n(27527),y=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,m.modalOpen)(A,"edit",{field:x.edit,value:x.value})},f=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),M=E.data,j=M.loginState,P=M.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,d):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,u):P===5?R=(0,e.createComponentVNode)(2,h):P===6?R=(0,e.createComponentVNode)(2,V):P===7&&(R=(0,e.createComponentVNode)(2,b)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),d=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.records,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId","name"),K=U[0],H=U[1],z=(0,t.useLocalState)(x,"sortOrder",!0),G=z[0],X=z[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function Q(){return M("screen",{screen:3})}return Q}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function Q(ae,re){return F(re)}return Q}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(D,function(Q){return Q.name+"|"+Q.id+"|"+Q.rank+"|"+Q.p_stat+"|"+Q.m_stat})).sort(function(Q,ae){var re=G?1:-1;return Q[K].localeCompare(ae[K])*re}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[Q.p_stat],onClick:function(){function ae(){return M("view_record",{view_record:Q.ref})}return ae}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.m_stat})]},Q.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),M=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function j(){return M("del_all_med_records")}return j}()})})]})})},u=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical,R=j.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return M("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return M("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function D(){return M("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(A,x){var E=(0,t.useBackend)(x),M=E.data,j=M.general;return!j||!j.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:j.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(x,P)}return D}()})]},R)})})}),!!j.has_photos&&j.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return c(x,R)}return F}()})]},D)})})})})},v=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,m.modalOpen)(x,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:D+1})}return F}()})]},D)})})})},h=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.virus,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId2","name"),K=U[0],H=U[1],z=(0,t.useLocalState)(x,"sortOrder2",!0),G=z[0],X=z[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function Q(ae,re){return F(re)}return Q}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(D,function(Q){return Q.name+"|"+Q.max_stages+"|"+Q.severity})).sort(function(Q,ae){var re=G?1:-1;return Q[K].localeCompare(ae[K])*re}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Q.severity,onClick:function(){function ae(){return M("vir",{vir:Q.D})}return ae}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[Q.severity],children:Q.severity})]},Q.id)})]})})})})],4)},V=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},b=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(x,"sortOrder",!0),R=P[0],D=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?D(!R):(j(F),D(!0))}return K}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(x,"sortOrder2",!0),R=P[0],D=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?D(!R):(j(F),D(!0))}return K}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.screen,R=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function D(){M("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function D(){M("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:P===6,onClick:function(){function D(){M("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===7,onClick:function(){function D(){return M("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",f)},68211:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=p.product,s=p.productImage,u=p.productCategory,C=l.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>C,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return f("purchase",{name:d.name,category:u})}return g}()})})]})},N=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],s=f.products,u=f.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[C[d]].map(function(g){return(0,e.createComponentVNode)(2,m,{product:g,productImage:u[g.path],productCategory:C[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.user_cash,s=l.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function u(){return f("change")}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return y}(),S=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],s=l[1],u=f.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function C(){return s(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function C(){return s(2)}return C}(),children:"Decorations"})]})}},14162:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=["title","items"];function k(l,d){if(l==null)return{};var s={},u=Object.keys(l),C,g;for(g=0;g =0)&&(s[C]=l[C]);return s}var S={Alphabetical:function(){function l(d,s){return d-s}return l}(),Availability:function(){function l(d,s){return-(d.affordable-s.affordable)}return l}(),Price:function(){function l(d,s){return d.price-s.price}return l}()},y=r.MiningVendor=function(){function l(d,s){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return l}(),p=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return C("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.has_id,h=g.id,V=g.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],M=x[1],j=(0,a.createSearch)(B,function(D){return D[0]}),P=!1,R=Object.entries(V).map(function(D,F){var U=Object.entries(D[1]).filter(j).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:D[0],items:U},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,s){var u=(0,t.useLocalState)(s,"search",""),C=u[0],g=u[1],v=(0,t.useLocalState)(s,"sort",""),h=v[0],V=v[1],b=(0,t.useLocalState)(s,"descending",!1),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},f=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=d.title,h=d.items,V=k(d,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points =0)&&(T[x]=I[x]);return T}var c=128,f=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,j=E.is_admin,P=E.is_silent,R=E.is_printing,D=E.screen,F=E.channels,U=E.channel_idx,K=U===void 0?-1:U,H=(0,t.useLocalState)(T,"menuOpen",!1),z=H[0],G=H[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),Q=X[0],ae=X[1],re=(0,t.useLocalState)(T,"censorMode",!1),de=re[0],pe=re[1],ye;D===0||D===2?ye=(0,e.createComponentVNode)(2,u):D===1&&(ye=(0,e.createComponentVNode)(2,C));var Ie=F.reduce(function(he,ne){return he+ne.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:M&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function he(){return G(!z)}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:D===0,onClick:function(){function he(){return x("headlines")}return he}(),children:Ie>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Ie>=10?"9+":Ie})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function he(){return x("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:D===2&&F[K-1]===he,onClick:function(){function ne(){return x("channel",{uid:he.uid})}return ne}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,k.modalOpen)(T,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return pe(!de)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,k.modalOpen)(T,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,k.modalOpen)(T,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return x("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function he(){return x("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,j=w.iconSpin,P=w.selected,R=P===void 0?!1:P,D=w.security,F=D===void 0?!1:D,U=w.onClick,K=w.title,H=w.children,z=i(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},z,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),H]})))},u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,j=E.is_admin,P=E.channel_idx,R=E.channel_can_manage,D=E.channels,F=E.stories,U=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"censorMode",!1),X=G[0],Q=G[1],ae=M===2&&P>-1?D[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ae?ae.icon:"newspaper",mr:"0.5rem"}),ae?ae.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(re){return!H.includes(re.uid)&&re.body.length+3>c?Object.assign({},re,{body_short:re.body.substr(0,c-4)+"..."}):re}).map(function(re,de){return(0,e.createComponentVNode)(2,g,{story:re},de)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ae&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ae.admin&&!j,selected:ae.censored,icon:ae.censored?"comment-slash":"comment",content:ae.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function re(){return x("censor_channel",{uid:ae.uid})}return re}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function re(){return(0,k.modalOpen)(T,"manage_channel",{uid:ae.uid})}return re}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ae.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ae.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ae.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ae.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(re,de){return re+de.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,j=E.wanted,P=Object.entries(M).reduce(function(R,D){var F=D[0],U=D[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,g,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?f.map(function(R){return Object.assign({},l[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=w.story,j=w.wanted,P=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(T,"fullStories",[]),F=D[0],U=D[1],K=(0,t.useLocalState)(T,"censorMode",!1),H=K[0],z=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&H&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:M.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(G,X){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},X)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return U([].concat(F,[M.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=i(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return j(A)}return P}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var j=w.id==="manage_channel",P=!!w.args.is_admin,R=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=D[0],U=D[1],K=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),X=G[0],Q=G[1],ae=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),re=ae[0],de=ae[1],pe=(0,t.useLocalState)(T,"isPublic",j?!!(M!=null&&M.public):!1),ye=pe[0],Ie=pe[1],he=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+M.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function q(se,me){return U(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:H,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function q(se,me){return Q(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:re,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:re,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Ie(!ye)}return q}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||H.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:H.substr(0,49),description:X.substr(0,128),icon:re,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.channels,P=E.channel_idx,R=P===void 0?-1:P,D=!!w.args.is_admin,F=w.args.scanned_user,U=j.slice().sort(function(q,se){if(R<0)return 0;var me=j[R-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return D||!q.frozen&&(q.author===F||!!q.public)}),K=(0,t.useLocalState)(T,"author",F||"Unknown"),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),X=G[0],Q=G[1],ae=(0,t.useLocalState)(T,"title",""),re=ae[0],de=ae[1],pe=(0,t.useLocalState)(T,"body",""),ye=pe[0],Ie=pe[1],he=(0,t.useLocalState)(T,"adminLocked",!1),ne=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:H,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:U.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return Q(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:re,onInput:function(){function q(se,me){return de(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(se,me){return Ie(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(M?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:re,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:H.trim().length===0||X.trim().length===0||re.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:H,channel:X,title:re.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.wanted,P=!!w.args.is_admin,R=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(j==null?void 0:j.author)||R||"Unknown"),F=D[0],U=D[1],K=(0,t.useLocalState)(T,"name",(j==null?void 0:j.title.substr(8))||""),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"description",(j==null?void 0:j.body)||""),X=G[0],Q=G[1],ae=(0,t.useLocalState)(T,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),re=ae[0],de=ae[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function pe(ye,Ie){return U(Ie)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:H,maxLength:"128",onInput:function(){function pe(ye,Ie){return z(Ie)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function pe(ye,Ie){return Q(Ie)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return x(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"lock":"lock-open",content:re?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return de(!re)}return pe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function pe(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||H.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:H.substr(0,127),description:X.substr(0,511),admin_locked:re?1:0})}return pe}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",V),(0,k.modalRegisterBodyOverride)("manage_channel",V),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},46940:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.NuclearBomb=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return N}()},35478:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),m=n(17899),N=n(24674),k=n(45493),S=r.NumberInputModal=function(){function p(i,c){var f=(0,m.useBackend)(c),l=f.act,d=f.data,s=d.init_value,u=d.large_buttons,C=d.message,g=C===void 0?"":C,v=d.timeout,h=d.title,V=(0,m.useLocalState)(c,"input",s),b=V[0],B=V[1],I=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:b}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(i,c){var f=(0,m.useBackend)(c),l=f.act,d=f.data,s=d.min_value,u=d.max_value,C=d.init_value,g=d.round_value,v=i.input,h=i.onClick,V=i.onChange,b=Math.round(v!==s?Math.max(v/2,s):u/2),B=v===s&&s>0||v===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===s,icon:"angle-double-left",onClick:function(){function I(){return h(s)}return I}(),tooltip:v===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:s,maxValue:u,onChange:function(){function I(w,T){return V(T)}return I}(),onEnter:function(){function I(w,T){return l("submit",{entry:T})}return I}(),value:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===u,icon:"angle-double-right",onClick:function(){function I(){return h(u)}return I}(),tooltip:v===u?"Max":"Max ("+u+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===C,icon:"redo",onClick:function(){function I(){return h(C)}return I}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},98476:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),m=n(24674),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.hasOccupant,h=g.choice,V;return h?V=(0,e.createComponentVNode)(2,f):V=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return C("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return C("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return l}(),i=function(d,s){var u=(0,t.useBackend)(s),C=u.data,g=C.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(v,h){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.verbose,h=g.health,V=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return C(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return C(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return C(I?"critOff":"critOn")}return w}()})})]})}},98702:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(28234);function k(u,C){var g=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(g)return(g=g.call(u)).next.bind(g);if(Array.isArray(u)||(g=S(u))||C&&u&&typeof u.length=="number"){g&&(u=g);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,C){if(u){if(typeof u=="string")return y(u,C);var g=Object.prototype.toString.call(u).slice(8,-1);if(g==="Object"&&u.constructor&&(g=u.constructor.name),g==="Map"||g==="Set")return Array.from(u);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return y(u,C)}}function y(u,C){(C==null||C>u.length)&&(C=u.length);for(var g=0,v=new Array(C);g g},f=function(C,g){var v=C.name,h=g.name;if(!v||!h)return 0;var V=v.match(p),b=h.match(p);if(V&&b&&v.replace(p,"")===h.replace(p,"")){var B=parseInt(V[1],10),I=parseInt(b[1],10);return B-I}return c(v,h)},l=function(C,g){var v=C.searchText,h=C.source,V=C.title,b=C.color,B=C.sorted,I=h.filter(i(v));return B&&I.sort(f),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+h.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,d,{thing:w,color:b},w.name)})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.color,b=C.thing;return(0,e.createComponentVNode)(2,o.Button,{color:V,tooltip:b.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,N.classes)(["orbit_job16x16",b.assigned_role_sprite])})," ",b.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return h("orbit",{ref:b.ref})}return B}(),children:[b.name,b.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",b.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function u(C,g){for(var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alive,B=V.antagonists,I=V.highlights,w=V.response_teams,T=V.auto_observe,A=V.dead,x=V.ghosts,E=V.misc,M=V.npcs,j=(0,t.useLocalState)(g,"searchText",""),P=j[0],R=j[1],D={},F=k(B),U;!(U=F()).done;){var K=U.value;D[K.antag]===void 0&&(D[K.antag]=[]),D[K.antag].push(K)}var H=Object.entries(D);H.sort(function(G,X){return c(G[0],X[0])});var z=function(){function G(X){for(var Q=0,ae=[H.map(function(pe){var ye=pe[0],Ie=pe[1];return Ie}),I,b,x,A,M,E];Q 0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:H.map(function(G){var X=G[0],Q=G[1];return(0,e.createComponentVNode)(2,o.Section,{title:X+" - ("+Q.length+")",level:2,children:Q.filter(i(P)).sort(f).map(function(ae){return(0,e.createComponentVNode)(2,d,{color:"bad",thing:ae},ae.name)})},X)})}),I.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:I,searchText:P,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:w,searchText:P,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:b,searchText:P,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:x,searchText:P,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:A,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:M,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:E,searchText:P,sorted:!1})]})})}return u}()},74015:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=n(81856);function k(u){if(u==null)throw new TypeError("Cannot destructure "+u)}var S=(0,N.createLogger)("OreRedemption"),y=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function u(C,g){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})})})}return u}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.id,B=V.points,I=V.disk,w=Object.assign({},(k(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.sheets,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,d,{ore:I},I.id)})]})))})},f=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alloys,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},l=function(C,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})},s=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})}},48824:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),N=n(70752),k=function(p){var i;try{i=N("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw f}var c=i[p];return c||(0,m.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.app_template,s=l.app_icon,u=l.app_title,C=k(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),u,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return f("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return f("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return y}()},41565:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),N=n(59395),k=function(c){var f;try{f=N("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw d}var l=f[c];return l||(0,m.routingError)("missingExport",c)},S=r.PDA=function(){function i(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.app,C=s.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=k(u.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u.icon,mr:1}),u.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.idInserted,C=s.idLink,g=s.stationTime,v=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:u?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!u.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:u.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},78704:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(92986),N=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.active,l=c.anchored,d=c.broken,s=c.emagged,u=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,V=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=V/b,M=T*w,j=Math.round(g/C),P=Math.round(j/60),R=j>120?P+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:f,onClick:function(){function D(){return i("toggle_power")}return D}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(F,U){return i("change_power",{change_power:U})}return D}()}),"(",(0,m.formatPower)(M),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:f||h||!A,onClick:function(){function D(){return i("eject_fuel")}return D}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(C?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},78643:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ParticleAccelerator=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.assembled,f=i.power,l=i.strength,d=i.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return p("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,disabled:!c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||l===0,onClick:function(){function s(){return p("remove_strength")}return s}(),mr:"4px"}),l,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||l===d,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return N}()},34026:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PdaPainter=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,N)})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return f("insert_pda")}return l}()})]})})})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function u(){return f("choose_pda",{selectedPda:s})}return u}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.current_appearance,s=l.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function u(){return f("eject_pda")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function u(){return f("paint_pda")}return u}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},81378:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PersonalCrafting=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.busy,d=f.category,s=f.display_craftable_only,u=f.display_compact,C=f.prev_cat,g=f.next_cat,v=f.subcategory,h=f.prev_subcat,V=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),u?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.display_craftable_only,d=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)}),!l&&s.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.display_craftable_only,d=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)}),!l&&s.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)})]})}},58792:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Photocopier=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:f.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:f.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.copyitem&&!f.mob,content:f.copyitem?f.copyitem:f.mob?f.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.folder,content:f.folder?f.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!l&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:f.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:f.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:l.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:l.uid})}return d}()})]})},l.name)})})}},27902:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=["tempKey"];function N(p,i){if(p==null)return{};var c={},f=Object.keys(p),l,d;for(d=0;d =0)&&(c[l]=p[l]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(i,c){var f=i.tempKey,l=N(i,m),d=k[f];if(!d)return null;var s=(0,a.useBackend)(c),u=s.data,C=s.act,g=u.currentTemp,v=d.label,h=d.icon,V=f===g,b=function(){C("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:b},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(i,c){for(var f=(0,a.useBackend)(c),l=f.data,d=l.emagged,s=l.currentTemp,u=k[s]||k.normal,C=u.label,g=u.color,v=[],h=0,V=Object.entries(k);h 50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=m.pureComponentHooks;var s=function(C){var g,v,h=C.status;switch(h){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var V=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:V})};s.defaultHooks=m.pureComponentHooks},27262:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),m=n(99665),N=n(68159),k=n(27527),S=n(45493),y=r.PrisonerImplantManager=function(){function p(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.loginState,u=d.prisonerInfo,C=d.chemicalInfo,g=d.trackingInfo,v;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.name?"eject":"id-card",selected:u.name,content:u.name?u.name:"-----",tooltip:u.name?"Eject ID":"Insert ID",onClick:function(){function V(){return l("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[u.points!==null?u.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:u.points===null,content:"Reset",onClick:function(){function V(){return l("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[u.goal!==null?u.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:u.goal===null,content:"Edit",onClick:function(){function V(){return(0,m.modalOpen)(c,"set_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:u.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,m.modalOpen)(c,"warn",{uid:V.uid})}return b}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:V.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volumef;return(0,e.createComponentVNode)(2,o.Stack,{className:"PrizeCounter__Item",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{lineHeight:"0",align:"center",children:(0,e.createVNode)(1,"div",(0,a.classes)(["prize_counter64x64",v.imageID]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,mt:1,children:v.name}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{mb:1,children:v.desc})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:(0,a.classes)(["PrizeCounter__BuyButton",h&&"PrizeCounter__BuyButton--disabled"]),icon:"ticket",content:v.cost,tooltip:h?"Not enough tickets.":null,tooltipPosition:"top-end",onClick:function(){function V(){return!h&&i("purchase",{purchase:v.itemID})}return V}()})})]},v.name)})})})})})})}return k}()},87963:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=n(57842),k=r.RCD=function(){function l(d,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),S=function(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.matter,v=C.max_matter,h=v*.7,V=v*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[V,h],bad:[-1/0,V]},value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+v+" units"})})})})},y=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=d.mode_type,h=g.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:h===v?1:0,onClick:function(){function V(){return C("mode",{mode:v})}return V}()})})},i=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.door_name,h=g.electrochromic,V=g.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function b(){return(0,m.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:V===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return C("electrochromic")}return b}()})})]})})})},c=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.tab,h=g.locked,V=g.one_access,b=g.selected_accesses,B=g.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function I(){return C("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function I(){return C("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:1})})]})}):v===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return C("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,N.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return C("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:V,content:"One",onClick:function(){function I(){return C("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V,width:4,content:"All",onClick:function(){function I(){return C("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(w){return C("set",{access:w})}return I}(),grantAll:function(){function I(){return C("grant_all")}return I}(),denyAll:function(){function I(){return C("clear_all")}return I}(),grantDep:function(){function I(w){return C("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return C("deny_region",{region:w})}return I}()})})],4)},f=function(d,s){for(var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.door_types_ui_list,h=g.door_type,V=d.check_number,b=[],B=0;B 0?"envelope-open-text":"envelope",onClick:function(){function B(){return C("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return C("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return C("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return C("setScreen",{setScreen:3})}return B}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return C("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return C("setScreen",{setScreen:8})}return B}()})})]})})},k=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.department,h=[],V;switch(d.purpose){case"ASSISTANCE":h=g.assist_dept,V="Request assistance from another department";break;case"SUPPLIES":h=g.supply_dept,V="Request supplies from another department";break;case"INFO":h=g.info_dept,V="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return C("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(b){return b!==v}).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return C("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return C("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return C("setScreen",{setScreen:0})}return h}()})})},y=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v,h;switch(d.type){case"MESSAGES":v=g.message_log,h="Message Log";break;case"SHIPPING":v=g.shipping_log,h="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()}),children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[V.map(function(b,B){return(0,e.createVNode)(1,"div",null,b,0,null,B)}),(0,e.createVNode)(1,"hr")]},V)})})})},p=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.recipient,h=g.message,V=g.msgVerified,b=g.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return C("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:b})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function B(){return C("department",{department:v})}return B}()})})})],4)},i=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.message,h=g.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function V(){return C("writeAnnouncement")}return V}()})],4),children:v})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&v),onClick:function(){function V(){return C("sendAnnouncement")}return V}()})]})})],4)},c=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.shipDest,h=g.msgVerified,V=g.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return C("setScreen",{setScreen:0})}return b}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&h),onClick:function(){function b(){return C("printLabel")}return b}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:v===b?"Selected":"Select",selected:v===b,onClick:function(){function B(){return C("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},f=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.secondaryGoalAuth,h=g.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(v&&h),onClick:function(){function V(){return C("requestSecondaryGoal")}return V}()})]})})],4)}},89641:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),m=n(3422),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,m.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function d(s){return s===N.LATHE||s===N.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return d}()}),l?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:l})})}):null]})})})}return y}()},19348:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var f=i.name,l=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},f)})]})}return m}()},338:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N="design",k="tech",S=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function V(){return v("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return v("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,i)]})]}):null},y=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_data;if(!h)return null;var V=h.name,b=h.lathe_types,B=h.materials,I=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:V}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var b=h===k?"eject_tech":"eject_design";v(b)}return V}()}):null},c=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=g.disk_data,h=g.disk_type,V=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case N:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_type,V=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,I=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?v("copy_tech",{id:I}):v("copy_design",{id:I})}return w}()})},I)})})})})},l=r.DataDiskMenu=function(){function d(s,u){var C=(0,a.useBackend)(u),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,f)}return h}()})],4):null}return d}()},90785:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_item,c=y.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function f(){p("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){p("eject_item")}return f}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},34492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheCategory=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.category,f=p.matching_designs,l=p.menu,d=l===4,s=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(u){var C=u.id,g=u.name,v=u.can_build,h=u.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:v<1,onClick:function(){function V(){return i(s,{id:C,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return i(s,{id:C,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return i(s,{id:C,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},C)})})]})}return N}()},84275:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function f(){var l=c?"disposeallP":"disposeallI";p(l)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(f){var l=f.volume,d=f.name,s=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function u(){var C=c?"disposeP":"disposeI";p(C,{id:s})}return u}()})},s)})})]})}return m}()},12638:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheMainMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.menu,f=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function s(){i("setCategory",{category:d})}return s}()})},d)})})]})}return N}()},89004:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var f=c.id,l=c.amount,d=c.name,s=function(){function v(h){var V=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(V,{id:f,amount:h})}return v}(),u=Math.floor(l/2e3),C=l<1,g=u===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",u," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return s(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return s("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return s(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return s(50)}return v}()})],0):null})]},f)})})})}return m}()},73856:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,i=y.max_materials,c=y.max_chemicals,f=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},75955:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),m=n(24674),N=n(89641),k=r.LatheMenu=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,f=c.menu,l=c.linked_lathe,d=c.linked_imprinter;return f===4&&!l?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!d?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return y("search",{to_search:c})}return p}()})})}return m}()},62306:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.disk_type,f=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter,s=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(u){var C=u.name,g=u.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return k}()},99941:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function m(N,k){var S=N.icon,y=N.children,p=N.disabled,i=N.content,c=(0,a.useBackend)(k),f=c.data,l=c.act,d=f.menu,s=f.submenu,u=d,C=s;return N.menu!==null&&N.menu!==void 0&&(u=N.menu),N.submenu!==null&&N.submenu!==void 0&&(C=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:S,disabled:p,onClick:function(){function g(){l("nav",{menu:u,submenu:C})}return g}(),children:y})}return m}()},24448:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),m=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return N}()},78345:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,m){var N=o.render,k=(0,e.useBackend)(m),S=k.data,y=S.menu,p=S.submenu,i=function(){function f(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return f}(),c=i(o.menu,y)&&i(o.submenu,p);return c?N():null}return t}()},56454:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=p.act,f=i.sync,l=i.admin,d=i.linked_destroy,s=i.linked_lathe,u=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!f,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return k}()},3422:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var m=n(84275);r.LatheChemicalStorage=m.LatheChemicalStorage;var N=n(12638);r.LatheMainMenu=N.LatheMainMenu;var k=n(73856);r.LatheMaterials=k.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(75955);r.LatheMenu=y.LatheMenu;var p=n(72880);r.LatheSearch=p.LatheSearch;var i=n(62306);r.MainMenu=i.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var f=n(99941);r.RndNavButton=f.RndNavButton;var l=n(78345);r.RndRoute=l.RndRoute;var d=n(56454);r.SettingsMenu=d.SettingsMenu},71123:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),N=function(y,p){var i=y/p;return i<=.2?"good":i<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,f=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:N(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return S}()},98951:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.can_hack,l=c.safety,d=c.show_lock_all,s=c.cyborgs,u=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function C(){return i("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return i("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:u,can_hack:f})]})})}return k}(),N=function(S,y){var p=S.cyborgs,i=S.can_hack,c=(0,a.useBackend)(y),f=c.act,l=c.data,d="Detonate";return l.detonate_cooldown>0&&(d+=" ("+l.detonate_cooldown+"s)"),p.length?p.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function u(){return f("hackbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function u(){return f("stopbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function u(){return f("killbot",{uid:s.uid})}return u}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},2289:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Safe=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.dial,s=l.open,u=l.locked,C=l.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.dial,s=l.open,u=l.locked,C=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!u,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function V(){return f(h?"turnleft":"turnright",{num:v})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:u,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return f("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(s,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return f("retrieve",{index:u+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},49334:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SatelliteControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.satellites,f=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,s=i.meteor_shield_coverage_max,u=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u>=100?"good":"average",value:d,maxValue:s,children:[u," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return N}()},54892:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=n(5126),k=n(68100),S=r.SecureStorage=function(){function c(f,l){return(0,e.createComponentVNode)(2,m.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),y=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=window.event?f.which:f.keyCode;if(u===k.KEY_ENTER){f.preventDefault(),s("keypad",{digit:"E"});return}if(u===k.KEY_ESCAPE){f.preventDefault(),s("keypad",{digit:"C"});return}if(u===k.KEY_BACKSPACE){f.preventDefault(),s("backspace");return}if(u>=k.KEY_0&&u<=k.KEY_9){f.preventDefault(),s("keypad",{digit:u-k.KEY_0});return}if(u>=k.KEY_NUMPAD_0&&u<=k.KEY_NUMPAD_9){f.preventDefault(),s("keypad",{digit:u-k.KEY_NUMPAD_0});return}},p=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.locked,g=u.no_passcode,v=u.emagged,h=u.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return y(I,l)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:I})},I)})},B[0])})})]})},i=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=f.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return s("keypad",{digit:C})}return g}()})}},56798:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(99665),k=n(68159),S=n(27527),y=n(84537),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(h,V){(0,N.modalOpen)(h,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function v(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,l):T===2&&(A=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,f),A]})})]})}return v}(),f=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},l=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(V,"sortOrder",!0),R=P[0],D=P[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var K=R?1:-1;return F[M].localeCompare(U[M])*K}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},d=function(h,V){var b=(0,t.useLocalState)(V,"sortId","name"),B=b[0],I=b[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function M(){B===x?A(!T):(I(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(M,j){return x(j)}return E}()})})]})},u=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function M(){return i(V,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(h,V){var b=(0,t.useBackend)(V),B=b.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return i(V,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},59981:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(99665);function k(d,s){var u=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(u)return(u=u.call(d)).next.bind(u);if(Array.isArray(d)||(u=S(d))||s&&d&&typeof d.length=="number"){u&&(d=u);var C=0;return function(){return C>=d.length?{done:!0}:{done:!1,value:d[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(d,s){if(d){if(typeof d=="string")return y(d,s);var u=Object.prototype.toString.call(d).slice(8,-1);if(u==="Object"&&d.constructor&&(u=d.constructor.name),u==="Map"||u==="Set")return Array.from(d);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return y(d,s)}}function y(d,s){(s==null||s>d.length)&&(s=d.length);for(var u=0,C=new Array(s);u =A},g=function(T,A){return T<=A},v=s.split(" "),h=[],V=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function M(j){return!1}return M}()};var x,E=u;if(A[1][A[1].length-1]==="-"?(E=g,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=C,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function M(j){return!1}return M}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.push(function(M){return E(M.amount,x)});break;default:return{v:function(){function M(j){return!1}return M}()}}},b,B=k(v),I;!(I=B()).done;)if(b=V(),b!==0&&b)return b.v;return function(w){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function f(){return p("move",{move:c.id})}return f}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return N}()},50451:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleManipulator=function(){function y(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),f=c[0],l=c[1],d=function(){function s(u){switch(u){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===0,onClick:function(){function s(){return l(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function s(){return l(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function s(){return l(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),d(f)]})})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return f("jump_to",{type:"mobile",id:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function u(){return f("fast_travel",{id:s.id})}return u}()})]})]})},s.name)})})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.templates_tabs,s=l.existing_shuttle,u=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===s.id,icon:"file",onClick:function(){function g(){return f("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!s&&u[s.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return f("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return f("jump_to",{type:"mobile",id:d.id})}return u}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function u(){return f("preview",{shuttle_id:s.shuttle_id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function u(){return f("load",{shuttle_id:s.shuttle_id})}return u}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function u(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=b?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return u}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4)},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[b.stat][0],children:N[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},f=function(C,g){var v=(0,t.useBackend)(g),h=v.data,V=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[b[1]]/100,ranges:S,children:(0,a.round)(V[b[1]],0)},B)},B)})})})},l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=V.isBeakerLoaded,I=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.chemicals,I=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(M,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>I||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return h("chemical",{chemid:T.id,amount:M})}return P}()},j)})]})})},A)})})},s=function(C,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},37763:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SlotMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function f(){return p("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return N}()},26654:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Smartfridge=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.secure,f=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"Drying rack":"Contents",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function s(){return p("drying")}return s}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(s,u){return s.display_name.localeCompare(u.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function u(){return p("vend",{index:s.vend,amount:1})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function u(C,g){return p("vend",{index:s.vend,amount:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function u(){return p("vend",{index:s.vend,amount:s.quantity})}return u}()})]})]},s)})]})]})})})}return N}()},71124:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),m=n(45493),N=1e3,k=r.Smes=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.capacityPercent,d=f.capacity,s=f.charge,u=f.inputAttempt,C=f.inputting,g=f.inputLevel,v=f.inputLevelMax,h=f.inputAvailable,V=f.outputPowernet,b=f.outputAttempt,B=f.outputting,I=f.outputLevel,w=f.outputLevelMax,T=f.outputUsed,A=l>=100&&"good"||C&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sync-alt":"times",selected:u,onClick:function(){function E(){return c("tryinput")}return E}(),children:u?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/N,fillValue:h/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*N,1)}return E}(),onChange:function(){function E(M,j){return c("input",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*N,1)}return E}(),onChange:function(){function E(M,j){return c("output",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SolarControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=0,f=1,l=2,d=i.generated,s=i.generated_ratio,u=i.tracking_state,C=i.tracking_rate,g=i.connected_panels,v=i.connected_tracker,h=i.cdir,V=i.direction,b=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),u===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",b,")"," "]}),u===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[u!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:u===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:u===f,onClick:function(){function B(){return p("track",{track:f})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:u===l,disabled:!v,onClick:function(){function B(){return p("track",{track:l})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),u===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},31202:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpawnersMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return p("jump",{ID:f.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("spawn",{ID:f.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return N}()},84800:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpecMenu=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),N=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("hemomancer")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("umbrae")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("gargantua")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("dantalion")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},46501:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return k}(),N=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.alarms||[],f=c.Fire||[],l=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[f.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),f.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return k}()},18565:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),m=n(24674),N=n(45493),k=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(k||{}),S=function(c,f){var l=(0,o.useBackend)(f),d=l.act,s=l.data,u=s.future_station_traits,C=(0,o.useLocalState)(f,"selectedFutureTrait",null),g=C[0],v=C[1],h=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),V=Object.keys(h);return V.sort(),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:V,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],I=[B];if(u){var w,T=u.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}d("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,m.Divider),Array.isArray(u)?u.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:u.map(function(b){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(u,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return d("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,f){var l=(0,o.useBackend)(f),d=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(u){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:u.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!u.can_revert,tooltip:!u.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return d("revert",{ref:u.ref})}return C}()})})]})},u.ref)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function i(c,f){var l=(0,o.useLocalState)(f,"station_traits_tab",k.ViewStationTraits),d=l[0],s=l[1],u;switch(d){case k.SetupFutureStationTraits:u=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:u=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"eye",selected:d===k.ViewStationTraits,onClick:function(){function C(){return s(k.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function C(){return s(k.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,m.Divider),u]})]})})})}return i}()},95147:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),m=n(24674),N=n(45493),k=5,S=5,y="64px",p=function(u){return u[0]+"/"+u[1]},i=function(u){var C=u.align,g=u.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:g})},c={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},f={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},l=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(l||{}),d=r.StripMenu=function(){function s(u,C){for(var g=(0,o.useBackend)(C),v=g.act,h=g.data,V=new Map,b=0,B=Object.keys(h.items);b =.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(b),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(B),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SyndicateComputerSimple=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function f(){return p(c.buttonact)}return f}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(f){return(0,e.createComponentVNode)(2,t.Box,{children:f},f)})})]},c.title)})})})}return N}()},28830:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function f(){return i("check")}return f}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[m(c.cold_inlet_temp)," K,"," ",m(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[m(c.cold_outlet_temp)," K,"," ",m(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[m(c.hot_inlet_temp)," K,"," ",m(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[m(c.hot_outlet_temp)," K,"," ",m(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[m(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},39903:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.records,l=f===void 0?[]:f,d=c.explosion_target,s=c.toxins_tech,u=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||u,align:"center",onClick:function(){function C(){return i("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function C(){return i("delete_logs")}return C}()})]})]})}),l.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),N=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.records,l=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return i("delete_record",{index:d.index})}return s}()})})]},d.index)})]})})})})}return k}()},17068:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Tank=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function f(){return p("internals")}return f}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return p("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function f(l,d){return p("pressure",{pressure:d})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return p("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return p("pressure",{pressure:"reset"})}return f}()})]}),c]})})})})}return N}()},69161:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TankDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.o_tanks,f=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("plasma")}return l}()})})]})})})}return N}()},87394:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsCore=function(){function p(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.ion,u=(0,a.useLocalState)(c,"tabIndex",0),C=u[0],g=u[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return p}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.active,u=d.sectors_available,C=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,V=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return l("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:u})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function I(){return l("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return l("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function I(){return l("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function I(){return l("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return l("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return l("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return l("export")}return I}()})]})],4)},S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.link_password,u=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function C(){return l("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return l("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function u(){return l("add_filter")}return u}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return l("remove_filter",{user:u})}return C}()})})]},u)})]})})}},55684:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsRelay=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.linked,d=f.active,s=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function u(){return c("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function u(){return c("network_id")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,k)]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.linked_core_id,d=f.linked_core_addr,s=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function u(){return c("toggle_hidden_link")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function u(){return c("unlink")}return u}()})})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:d.addr})}return s}()})})]},d.addr)})]})})}},81088:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Teleporter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.targetsTeleport?i.targetsTeleport:{},f=0,l=1,d=2,s=i.calibrated,u=i.calibrating,C=i.powerstation,g=i.regime,v=i.teleporterhub,h=i.target,V=i.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===f&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===l?"good":null,onClick:function(){function b(){return p("setregime",{regime:l})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===f?"good":null,onClick:function(){function b(){return p("setregime",{regime:f})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===d?"good":null,disabled:!V,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||u),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&C&&v&&g===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return N}()},96150:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.TempGun=function(){function p(i,c){var f=(0,t.useBackend)(c),l=f.act,d=f.data,s=d.target_temperature,u=d.temperature,C=d.max_temp,g=d.min_temp;return(0,e.createComponentVNode)(2,m.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:C,value:s,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,V){return l("target_temperature",{target_temperature:V})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),bold:u>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(u,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),children:S(u)})})]})})})})}return p}(),k=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},S=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},y=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},95484:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),m=n(68100),N=n(24674),k=n(45493),S=r.sanitizeMultiline=function(){function c(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(f){return f.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(f,l){var d=(0,o.useBackend)(l),s=d.act,u=d.data,C=u.max_length,g=u.message,v=g===void 0?"":g,h=u.multiline,V=u.placeholder,b=u.timeout,B=u.title,I=(0,o.useLocalState)(l,"input",V||""),w=I[0],T=I[1],A=function(){function M(j){if(j!==w){var P=h?S(j):y(j);T(P)}}return M}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(j){var P=window.event?j.which:j.keyCode;P===m.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:w}),P===m.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),i=function(f,l){var d=(0,o.useBackend)(l),s=d.act,u=d.data,C=u.max_length,g=u.multiline,v=f.input,h=f.onType,V=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function b(){return s("cancel")}return b}(),onEnter:function(){function b(B){V&&B.shiftKey||(B.preventDefault(),s("submit",{entry:v}))}return b}(),onInput:function(){function b(B,I){return h(I)}return b}(),placeholder:"Type something...",value:v})}},378:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function f(l){return(0,a.toFixed)(l,2)}return f}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function f(l){return(0,a.toFixed)(l,2)}return f}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function f(){return i("power")}return f}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function f(){return i("cooling")}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function f(){return i("target",{target:c.min})}return f}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function f(l,d){return i("target",{target:d})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function f(){return i("target",{target:c.max})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function f(){return i("target",{target:c.initial})}return f}()})]})]})})]})})}return k}()},3365:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TransferValve=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.tank_one,f=i.tank_two,l=i.attached_device,d=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!f,onClick:function(){function s(){return p("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function s(){return p("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function s(){return p("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return p("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:f?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:f,disabled:!f,onClick:function(){function s(){return p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},13860:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(36121),N=r.TurbineComputer=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.compressor,s=l.compressor_broken,u=l.turbine,C=l.turbine_broken,g=l.online,v=!!(d&&!s&&u&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function h(){return f("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return f("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.compressor,d=f.compressor_broken,s=f.turbine,u=f.turbine_broken,C=f.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||d?"bad":"good",children:d?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||u?"bad":"good",children:u?s?"Offline":"Missing":"Online"})]})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.rpm,d=f.temperature,s=f.power,u=f.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,m.toFixed)(u)+"%"})})]})}},22169:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),m=n(17899),N=n(24674),k=n(45493),S=n(99665),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,u);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function C(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=(0,m.useLocalState)(v,"tabIndex",0),w=I[0],T=I[1],A=(0,m.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function M(){return V("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:y(w)})]})})]})}return C}(),i=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.crystals,I=b.cats,w=(0,m.useLocalState)(v,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,m.useLocalState)(v,"searchText",""),E=x[0],M=x[1],j=function(K,H){H===void 0&&(H="");var z=(0,o.createSearch)(H,function(G){var X=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),H&&(0,a.filter)(z),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(K)},P=function(K){if(M(K),K==="")return A(I[0].items);A(j(I.map(function(H){return H.items}).flat(),K))},R=(0,m.useLocalState)(v,"showDesc",1),D=R[0],F=R[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function U(){return F(!D)}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return V("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return V("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(K,H){P(H)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function K(){A(U.items),M("")}return K}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:U,showDecription:D},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=b.crystals,w=b.cart_price,T=(0,m.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,f)]})},f=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cats,I=b.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,l,{grow:!0,i:w})},T)})})})})},l=function(g,v){var h=g.i,V=g.showDecription,b=V===void 0?1:V,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,N.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},u=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.exploitable,I=(0,m.useLocalState)(v,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,m.useLocalState)(v,"searchText",""),x=A[0],E=A[1],M=function(R,D){D===void 0&&(D="");var F=(0,o.createSearch)(D,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),D&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(R)},j=M(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function P(R,D){return E(D)}return P}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:j.map(function(P){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:P===w,onClick:function(){function R(){return T(P)}return R}(),children:P.name},P)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=S.product,l=S.productStock,d=S.productImage,s=c.chargesMoney,u=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,V=!s||f.price===0,b="ERROR!",B="";V?(b="FREE",B="arrow-circle-down"):(b=f.price,B="shopping-cart");var I=!v||l===0||!V&&f.price>C&&f.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:l<=0&&"bad"||l<=f.max_amount/2&&"average"||"good",children:[l," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:f.inum})}return w}()})})]})},N=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.user,l=c.usermoney,d=c.inserted_cash,s=c.chargesMoney,u=c.product_records,C=u===void 0?[]:u,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,V=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return i("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return i("change")}return A}()})})]}),children:f&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),","," ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return i("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,m,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},33045:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VolumeMixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(f,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:f.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:f.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function d(s,u){return p("volume",{channel:f.num,volume:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:f.num,volume:100})}return d}()})})})]})})],4,f.num)})})})})}return N}()},53792:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VotePanel=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.remaining,f=i.question,l=i.choices,d=i.user_vote,s=i.counts,u=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(u?" ("+(s[C]||0)+")":""),onClick:function(){function g(){return p("vote",{target:C})}return g}(),selected:C===d})},C)})]})})})}return N}()},64860:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Wires=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.wires||[],f=i.status||[],l=56+c.length*23+(status?0:15+f.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:d.color})}return s}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return N}()},78262:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.WizardApprenticeContract=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("fire")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("translocation")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("restoration")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("stealth")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("honk")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},57842:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function m(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=N(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var f=0;return function(){return f>=p.length?{done:!0}:{done:!1,value:p[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(p,i){if(p){if(typeof p=="string")return k(p,i);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,i)}}function k(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,f=new Array(i);c0&&!b.includes(D.ref)&&!h.includes(D.ref),checked:h.includes(D.ref),onClick:function(){function F(){return B(D.ref)}return F}()},D.desc)})]})]})})}return p}()},79449:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=function(S,y,p,i,c){return S i?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:m(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return k}()},1496:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(k){return k+" unit"+(k===1?"":"s")},m=r.BeakerContents=function(){function N(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,i=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,f)})]},c.name)})]})}return N}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.locked,c=p.noaccess,f=p.maintpanel,l=p.on,d=p.autopatrol,s=p.canhack,u=p.emagged,C=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function g(){return y("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("autopatrol")}return g}()})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:u?"bad":"good",children:u?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:u?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return m}()},99665:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},m=r.modalOpen=function(){function p(i,c,f){var l=(0,a.useBackend)(i),d=l.act,s=l.data,u=Object.assign(s.modal?s.modal.args:{},f||{});d("modal_open",{id:c,arguments:JSON.stringify(u)})}return p}(),N=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),k=r.modalAnswer=function(){function p(i,c,f,l){var d=(0,a.useBackend)(i),s=d.act,u=d.data;if(u.modal){var C=Object.assign(u.modal.args||{},l||{});s("modal_answer",{id:c,answer:f,arguments:JSON.stringify(C)})}}return p}(),S=r.modalClose=function(){function p(i,c){var f=(0,a.useBackend)(i),l=f.act;l("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(i,c){var f=(0,a.useBackend)(c),l=f.data;if(l.modal){var d=l.modal,s=d.id,u=d.text,C=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,V,b="auto";if(o[s])h=o[s](l.modal,c);else if(C==="input"){var B=l.modal.value;g=function(){function w(T){return k(c,s,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var I=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,s,T)}return w}()}),b="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return k(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[u&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u}),o[s]&&v,h,V]})}}return p}()},98444:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),m=n(38424),N=m.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return k.indexOf(f)!==-1?"green":"orange"},y=function(f){if(k.indexOf(f)!==-1)return!0},p=function(f){return f.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),f.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.rank),bold:y(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(f,l){var d=(0,a.useBackend)(l),s=d.act,u;if(f.data)u=f.data;else{var C=(0,a.useBackend)(l),g=C.data;u=g}var v=u,h=v.manifest,V=h.heads,b=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},15113:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function m(N,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,i=p.large_buttons,c=p.swapped_buttons,f=N.input,l=N.message,d=N.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("submit",{entry:f})}return C}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),u=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("cancel")}return C}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return m}()},26893:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=N.siliconUser,c=i===void 0?p.siliconUser:i,f=N.locked,l=f===void 0?p.locked:f,d=N.normallyLocked,s=d===void 0?p.normallyLocked:d,u=N.onLockStatusChange,C=u===void 0?function(){return y("lock")}:u,g=N.accessText,v=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return m}()},14299:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function m(N){var k=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return m}()},68159:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return m}()},27527:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState,c=p.isAI,f=p.isRobot,l=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return m}()},75201:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function m(N){var k=N.operating,S=N.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},65435:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.Signaler=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=k.data,c=i.code,f=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:f/10,format:function(){function s(u){return(0,a.toFixed)(u,1)}return s}(),width:"80px",onDrag:function(){function s(u,C){return p("freq",{freq:C})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(u,C){return p("code",{code:C})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return N}()},77534:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),m=n(50640),N=n(24674),k=r.SimpleRecords=function(){function p(i,c){var f=i.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:f?(0,e.createComponentVNode)(2,y,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,S,{data:i.data})})}return p}(),S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=i.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),u=s[0],C=s[1],g=function(V,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,m.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,m.filter)(B),(0,m.sortBy)(function(I){return I.Name})])(d)},v=g(d,u);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(V,b){return C(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function V(){return l("Records",{target:h.uid})}return V}()})},h)})]})},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=i.data.records,s=d.general,u=d.medical,C=d.security,g;switch(i.recordType){case"MED":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:u?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:u.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:u.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:u.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},84537:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function m(N,k){var S,y=(0,a.useBackend)(k),p=y.act,i=y.data,c=i.temp;if(c){var f=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return p("cleartemp")}return l}()})})]})})))}}return m}()},24704:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},4209:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.holder,f=i.dead,l=i.health,d=i.brute,s=i.oxy,u=i.tox,C=i.burn,g=i.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},44430:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.master,f=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+f+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return y("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},3367:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.cable,f=i.machine,l=i.inprogress,d=i.progress,s=i.aborted,u;f?u=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):u=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var C;return f&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:u}),C]})}return m}()},73395:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.available_software,f=i.installed_software,l=i.installed_toggles,d=i.available_ram,s=i.emotions,u=i.current_emotion,C=i.speech_verbs,g=i.current_speech_verb,v=i.available_chassises,h=i.current_chassis,V=[];return f.map(function(b){return V[b.key]=b.name}),l.map(function(b){return V[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!V[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!V[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===u,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return m}()},37645:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},15836:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return m}()},91737:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},94077:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),m=r.pai_radio=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.app_data,f=c.minFrequency,l=c.maxFrequency,d=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:l/10,value:d/10,format:function(){function u(C){return(0,t.toFixed)(C,1)}return u}(),onChange:function(){function u(C,g){return p("freq",{freq:g})}return u}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function u(){return p("freq",{freq:"145.9"})}return u}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return p("toggleBroadcast")}return u}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return N}()},72621:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return m}()},53483:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},21606:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return m}()},12339:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.janitor,c=i.user_loc,f=i.mops,l=i.buckets,d=i.cleanbots,s=i.carts,u=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return m}()},36615:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.pda_main_menu=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=y.data,c=i.owner,f=i.ownjob,l=i.idInserted,d=i.categories,s=i.pai,u=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var g=i.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in u?v.notify_icon:v.icon,iconSpin:v.uid in u,color:v.uid in u?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return N}()},99737:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},61597:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return m}()},30709:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=r.pda_messenger=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,N,{data:l}):(0,e.createComponentVNode)(2,k,{data:l})}return y}(),N=r.ActiveConversation=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=p.data,d=l.convo_name,s=l.convo_job,u=l.messages,C=l.active_convo,g=(0,t.useLocalState)(i,"clipboardMode",!1),v=g[0],h=g[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(u).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(u).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return f("Clear",{option:"Convo"})}return b}()})})})}),V]})}return y}(),k=r.MessengerList=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=p.data,d=l.convopdas,s=l.pdas,u=l.charges,C=l.silent,g=l.toff,v=l.ringtone_list,h=l.ringtone,V=(0,t.useLocalState)(i,"searchTerm",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function I(){return f("Toggle Ringer")}return I}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return f("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return f("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return f("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function I(w){return f("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!u&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!d.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:b})]})}return y}(),S=function(p,i){var c=(0,t.useBackend)(i),f=c.act,l=p.data,d=p.pdas,s=p.title,u=p.msgAct,C=p.searchTerm,g=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function V(){return f(u,{target:h.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function b(){return f("Messenger Plugin",{plugin:V.uid,target:h.uid})}return b}()},V.uid)})})]},h.uid)})})}},71654:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(17442),m=r.pda_mob_hunt=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.connected,f=i.wild_captures,l=i.no_collection,d=i.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function s(){return p("Disconnect")}return s}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function s(){return p("Reconnect")}return s}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:f})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!l&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function s(){return p("Prev")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function s(){return p("Next")}return s}()})]})}),children:l?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function s(){return p("Transfer")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function s(){return p("Release")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function s(){return p("Rename")}return s}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function s(){return p("Set_Trap")}return s}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},68053:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.mulebot,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,m)})}return k}(),m=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.mulebot,l=f.bots;return l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function s(){return i("control",{bot:d.uid})}return s}()})},d.Name)})},N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.mulebot,l=f.botstatus,d=f.active,s=l.mode,u=l.loca,C=l.load,g=l.powr,v=l.dest,h=l.home,V=l.retn,b=l.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function I(){return i("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function I(){return i("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function I(){return i("set_pickup_type",{autopick:b?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return i("set_auto_return",{autoret:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return i("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return i("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return i("home")}return I}()})]})]})]})}},31728:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=r.pda_nanobank=function(){function c(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.logged_in,g=u.owner_name,v=u.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,i)}return c}(),N=function(f,l){var d=(0,t.useBackend)(l),s=d.data,u=(0,t.useLocalState)(l,"tabIndex",1),C=u[0],g=u[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(f,l){var d=(0,t.useLocalState)(l,"tabIndex",1),s=d[0],u=(0,t.useBackend)(l),C=u.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(f,l){var d,s=(0,t.useBackend)(l),u=s.act,C=s.data,g=C.requests,v=C.available_accounts,h=C.money,V=(0,t.useLocalState)(l,"selectedAccount"),b=V[0],B=V[1],I=(0,t.useLocalState)(l,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(l,"searchText",""),x=A[0],E=A[1],M=[];return v.map(function(j){return M[j.name]=j.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function j(P,R){return E(R)}return j}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(j){return j.name})).map(function(j){return j.name}),selected:(d=v.filter(function(j){return j.UID===b})[0])==null?void 0:d.name,onSelected:function(){function j(P){return B(M[P])}return j}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function j(P,R){return T(R)}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h 0&&u.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return m}()},61255:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),m=["className","theme","children"],N=["className","scrollable","children"];/** + */var N=(0,t.createLogger)("hotkeys"),k={},S=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],y={},p=function(u){if(u===16)return"Shift";if(u===17)return"Ctrl";if(u===18)return"Alt";if(u===33)return"Northeast";if(u===34)return"Southeast";if(u===35)return"Southwest";if(u===36)return"Northwest";if(u===37)return"West";if(u===38)return"North";if(u===39)return"East";if(u===40)return"South";if(u===45)return"Insert";if(u===46)return"Delete";if(u>=48&&u<=57||u>=65&&u<=90)return String.fromCharCode(u);if(u>=96&&u<=105)return"Numpad"+(u-96);if(u>=112&&u<=123)return"F"+(u-111);if(u===188)return",";if(u===189)return"-";if(u===190)return"."},i=function(u){var C=String(u);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(u.event.defaultPrevented||u.isModifierKey()||S.includes(u.code))){C==="F5"&&(u.event.preventDefault(),u.event.returnValue=!1);var g=p(u.code);if(g){var v=k[g];if(v)return N.debug("macro",v),Byond.command(v);if(u.isDown()&&!y[g]){y[g]=!0;var h='Key_Down "'+g+'"';return N.debug(h),Byond.command(h)}if(u.isUp()&&y[g]){y[g]=!1;var V='Key_Up "'+g+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function s(u){S.push(u)}return s}(),f=r.releaseHotKey=function(){function s(u){var C=S.indexOf(u);C>=0&&S.splice(C,1)}return s}(),l=r.releaseHeldKeys=function(){function s(){for(var u=0,C=Object.keys(y);u =75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(f,l){return(0,e.createComponentVNode)(2,t.Box,{children:f},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function f(){return p("wireless")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function f(){return p("radio")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return p("wipe")}return f}()})})]})})})]})})})}return N}()},78468:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AIFixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var f=null;i.integrity>=75?f="green":i.integrity>=25?f="yellow":f="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:f,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},s)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},73544:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),N=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,y)})})}return p}(),k={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.locked&&!d.siliconUser,u=d.normallyLocked,C=k[d.externalPower]||k[0],g=k[d.chargingStatus]||k[0],v=d.powerChannels||[],h=S[d.malfStatus]||S[0],V=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!s,color:d.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return l("breaker")}return b}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:V})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:s,onClick:function(){function b(){return l("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(b.status===1||b.status===3),disabled:s,onClick:function(){function I(){return l("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&b.status===2,disabled:s,onClick:function(){function I(){return l("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&b.status===0,disabled:s,onClick:function(){function I(){return l("channel",B.off)}return I}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return l(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return l("overload")}return b}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function b(){return l("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function b(){return l("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return l("toggle_nightshift")}return b}()})})]})})],4)}},79098:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ATM=function(){function f(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.view_screen,v=C.authenticated_account,h=C.ticks_left_locked_down,V=C.linked_db,b;if(h>0)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!V)b=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(v)switch(g){case 1:b=(0,e.createComponentVNode)(2,k);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,i);break;default:b=(0,e.createComponentVNode)(2,y)}else b=(0,e.createComponentVNode)(2,p);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return f}(),N=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.machine_id,v=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"eject",onClick:function(){function h(){return u("insert_card")}return h}()})})})]})},k=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:g===0,onClick:function(){function v(){return u("change_security_level",{new_security_level:1})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:g===2,onClick:function(){function v(){return u("change_security_level",{new_security_level:2})}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},S=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=(0,a.useLocalState)(d,"targetAccNumber",0),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"fundsAmount",0),b=V[0],B=V[1],I=(0,a.useLocalState)(d,"purpose",0),w=I[0],T=I[1],A=C.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function x(E,M){return h(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,M){return B(M)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,M){return T(M)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return u("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},y=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=(0,a.useLocalState)(d,"fundsAmount",0),v=g[0],h=g[1],V=C.owner_name,b=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return u("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return u("withdrawal",{funds_amount:v})}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function B(){return u("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return u("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return u("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return u("balance_statement")}return B}()})})]})],4)},p=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=(0,a.useLocalState)(d,"accountID",null),v=g[0],h=g[1],V=(0,a.useLocalState)(d,"accountPin",null),b=V[0],B=V[1],I=C.machine_id,w=C.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return u("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},i=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),g.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return u("view_screen",{view_screen:0})}return g}()})}},64613:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(5126),N=n(45493),k=n(68159),S=n(27527),y=r.AccountsUplinkTerminal=function(){function C(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.loginState,I=b.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,i):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),p=function(g,v){var h=(0,t.useBackend)(v),V=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],I=b[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),V=h[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],M=(0,t.useLocalState)(v,"sortOrder",!0),j=M[0],P=M[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,l,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,l,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,l,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,l,{id:"money",children:"Account Balance"})]}),B.filter((0,a.createSearch)(w,function(R){return R.owner_name+"|"+R.account_number+"|"+R.suspended+"|"+R.money})).sort(function(R,D){var F=j?1:-1;return R[x].localeCompare(D[x])*F}).map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+R.suspended,onClick:function(){function D(){return V("view_account_detail",{account_num:R.account_number})}return D}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",R.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",R.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.money})]},R.account_number)})]})})})]})},f=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),V=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!I):(b(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},d=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function A(){return V("create_new_account")}return A}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function A(x,E){return T(E)}return A}()})})]})},s=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.account_number,I=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function M(){return V("back")}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function M(){return V("set_account_pin",{account_number:B})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function M(){return V("toggle_suspension")}return M}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),A.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:M.is_deposit?"green":"red",children:["$",M.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.target_name})]},M)})]})})})]})},u=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function E(){return V("back")}return E}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function E(M,j){return w(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(M,j){return x(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},56839:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=m[c.power.main]||m[0],l=m[c.power.backup]||m[0],d=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return i("disrupt-main")}return s}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return i("disrupt-backup")}return s}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function s(){return i("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return i("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return i("shock-perm")}return s}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function s(){return i("idscan-toggle")}return s}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function s(){return i("emergency-toggle")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function s(){return i("bolt-toggle")}return s}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function s(){return i("light-toggle")}return s}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function s(){return i("safe-toggle")}return s}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function s(){return i("speed-toggle")}return s}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function s(){return i("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return k}()},5565:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(26893),N=r.AirAlarm=function(){function d(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),k=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.air,V=v.mode,b=v.atmos_alarm,B=v.locked,I=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:k(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:k(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:k(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:k(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:k(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:k(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:k(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},y=function(s,u){var C=(0,a.useLocalState)(u,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,u){var C=(0,a.useLocalState)(u,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.vents;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function b(){return g("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},c=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.scrubbers;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return g("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function b(){return g("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.modes,V=v.presets,b=v.emagged,B=v.mode,I=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:V.map(function(w){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},l=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},V.name)})]})})}},82915:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AirlockAccessController=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.exterior_status,f=i.interior_status,l=i.processing,d,s;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function u(){return p("force_ext")}return u}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function u(){return p("cycle_ext_door")}return u}()}),f==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:f==="open"?"red":l?"yellow":null,onClick:function(){function u(){return p("force_int")}return u}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function u(){return p("cycle_int_door")}return u}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:f==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,s]})})]})})}return N}()},14962:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),N=1,k=2,S=4,y=8,p=r.AirlockElectronics=function(){function f(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return f}(),i=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&k?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&y?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&N?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:N})}return v}()})})]})]})})},c=function(l,d){var s=(0,a.useBackend)(d),u=s.act,C=s.data,g=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function V(){return u("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function V(){return u("set_one_access",{access:"all"})}return V}()})],4),accesses:h,selectedList:g,accessMod:function(){function V(b){return u("set",{access:b})}return V}(),grantAll:function(){function V(){return u("grant_all")}return V}(),denyAll:function(){function V(){return u("clear_all")}return V}(),grantDep:function(){function V(b){return u("grant_region",{region:b})}return V}(),denyDep:function(){function V(b){return u("deny_region",{region:b})}return V}()})}},99327:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(96524),a=n(14299),t=n(17899),o=n(68100),m=n(24674),N=n(45493),k=-1,S=1,y=r.AlertModal=function(){function c(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.autofocus,g=u.buttons,v=g===void 0?[]:g,h=u.large_buttons,V=u.message,b=V===void 0?"":V,B=u.timeout,I=u.title,w=(0,t.useLocalState)(l,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),M=function(){function j(P){T===0&&P===k?A(v.length-1):T===v.length-1&&P===S?A(0):A(T+P)}return j}();return(0,e.createComponentVNode)(2,N.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function j(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?s("choose",{choice:v[T]}):R===o.KEY_ESCAPE?s("cancel"):R===o.KEY_LEFT?(P.preventDefault(),M(k)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),M(S))}return j}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(f,l){var d=(0,t.useBackend)(l),s=d.data,u=s.buttons,C=u===void 0?[]:u,g=s.large_buttons,v=s.swapped_buttons,h=f.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(V,b){return g&&C.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,i,{button:V,id:b.toString(),selected:h===b})},b)})})},i=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.large_buttons,g=f.button,v=f.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function V(){return s("choose",{choice:g})}return V}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},88642:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AppearanceChanger=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.change_race,l=c.species,d=c.specimen,s=c.change_gender,u=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,V=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,I=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,M=c.head_accessory_styles,j=c.head_accessory_style,P=c.change_hair,R=c.hair_styles,D=c.hair_style,F=c.change_hair_gradient,U=c.change_facial_hair,K=c.facial_hair_styles,H=c.facial_hair_style,z=c.change_head_markings,G=c.head_marking_styles,X=c.head_marking_style,Q=c.change_body_markings,ae=c.body_marking_styles,re=c.body_marking_style,de=c.change_tail_markings,pe=c.tail_marking_styles,ye=c.tail_marking_style,Ie=c.change_body_accessory,he=c.body_accessory_styles,ne=c.body_accessory_style,ce=c.change_alt_head,q=c.alt_head_styles,se=c.alt_head_style,me=!1;return(g||v||h||V||b||B||I||w||T||A||x)&&(me=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.specimen,selected:te.specimen===d,onClick:function(){function be(){return i("race",{race:te.specimen})}return be}()},te.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:u==="male",onClick:function(){function te(){return i("gender",{gender:"male"})}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:u==="female",onClick:function(){function te(){return i("gender",{gender:"female"})}return te}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:u==="plural",onClick:function(){function te(){return i("gender",{gender:"plural"})}return te}()})]}),!!me&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:M.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headaccessorystyle,selected:te.headaccessorystyle===j,onClick:function(){function be(){return i("head_accessory",{head_accessory:te.headaccessorystyle})}return be}()},te.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.hairstyle,selected:te.hairstyle===D,onClick:function(){function be(){return i("hair",{hair:te.hairstyle})}return be}()},te.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function te(){return i("hair_gradient")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function te(){return i("hair_gradient_offset")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function te(){return i("hair_gradient_colour")}return te}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function te(){return i("hair_gradient_alpha")}return te}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:K.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.facialhairstyle,selected:te.facialhairstyle===H,onClick:function(){function be(){return i("facial_hair",{facial_hair:te.facialhairstyle})}return be}()},te.facialhairstyle)})}),!!z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:G.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.headmarkingstyle,selected:te.headmarkingstyle===X,onClick:function(){function be(){return i("head_marking",{head_marking:te.headmarkingstyle})}return be}()},te.headmarkingstyle)})}),!!Q&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:ae.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodymarkingstyle,selected:te.bodymarkingstyle===re,onClick:function(){function be(){return i("body_marking",{body_marking:te.bodymarkingstyle})}return be}()},te.bodymarkingstyle)})}),!!de&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:pe.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.tailmarkingstyle,selected:te.tailmarkingstyle===ye,onClick:function(){function be(){return i("tail_marking",{tail_marking:te.tailmarkingstyle})}return be}()},te.tailmarkingstyle)})}),!!Ie&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:he.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.bodyaccessorystyle,selected:te.bodyaccessorystyle===ne,onClick:function(){function be(){return i("body_accessory",{body_accessory:te.bodyaccessorystyle})}return be}()},te.bodyaccessorystyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(te){return(0,e.createComponentVNode)(2,t.Button,{content:te.altheadstyle,selected:te.altheadstyle===se,onClick:function(){function be(){return i("alt_head",{alt_head:te.altheadstyle})}return be}()},te.altheadstyle)})})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:f.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},51731:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosAlertConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.priority||[],f=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li","color-bad",l,0,null,l)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(l){return(0,e.createVNode)(1,"li","color-average",l,0,null,l)})],0)})})})}return N}()},57467:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(5126),m=n(45493),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},k=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function i(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=(0,a.useLocalState)(f,"tabIndex",0),C=u[0],g=u[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return i}(),y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return d("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.data,s=(0,a.useLocalState)(f,"zoom",1),u=s[0],C=s[1],g=d.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return C(h)}return v}(),children:g.filter(function(v){return v.z===2}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:u,icon:"circle",tooltip:v.name,color:k(v.danger)},v.ref)})})})}},41550:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosFilter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,f=i.pressure,l=i.max_pressure,d=i.filter_type,s=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function u(){return p("min_pressure")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:f,onDrag:function(){function u(C,g){return p("custom_pressure",{pressure:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function u(){return p("max_pressure")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.gas_type===d,content:u.label,onClick:function(){function C(){return p("set_filter",{filter:u.gas_type})}return C}()},u.label)})})]})})})})}return N}()},70151:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosMixer=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.on,l=c.pressure,d=c.max_pressure,s=c.node1_concentration,u=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:f?"On":"Off",color:f?null:"red",selected:f,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function C(){return i("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function C(g,v){return i("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function C(){return i("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:u})]})})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=S.node_name,l=S.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(s,u){return i("set_node",{node_name:f,concentration:u/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:f,concentration:(l+10)/100})}return d}()})]})}},54090:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.AtmosPump=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.on,f=i.rate,l=i.max_rate,d=i.gas_unit,s=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:f===0,width:2.2,onClick:function(){function u(){return p("min_rate")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:l,value:f,onDrag:function(){function u(C,g){return p("custom_rate",{rate:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===l,width:2.2,onClick:function(){function u(){return p("max_rate")}return u}()})]})]})})})})}return N}()},31335:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(36121),m=n(38424),N=n(45493),k=r.AtmosTankControl=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(l).map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(l[d]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[l[d].pressure," kpa"]}):"",Object.keys(l[d]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[l[d].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(l[d]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,m.getGasColor)(s),value:l[d][s],minValue:0,maxValue:100,children:(0,o.toFixed)(l[d][s],2)+"%"})},(0,m.getGasLabel)(s)):""})]})},d)}),f.inlet&&Object.keys(f.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.inlet.on,"power-off"),content:f.inlet.on?"On":"Off",color:f.inlet.on?null:"red",selected:f.inlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"inlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:f.inlet.rate,onDrag:function(){function d(s,u){return c("set_pressure",{dev:"inlet",val:u})}return d}()})})]})}):"",f.outlet&&Object.keys(f.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:(f.outlet.on,"power-off"),content:f.outlet.on?"On":"Off",color:f.outlet.on?null:"red",selected:f.outlet.on,onClick:function(){function d(){return c("toggle_active",{dev:"outlet"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:f.outlet.rate,onDrag:function(){function d(s,u){return c("set_pressure",{dev:"outlet",val:u})}return d}()})})]})}):""]})})}return S}()},85909:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),N=n(45493),k=n(78234),S=function(i,c,f,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>f)},y=r.Autolathe=function(){function p(i,c){var f=(0,o.useBackend)(c),l=f.act,d=f.data,s=d.total_amount,u=d.max_amount,C=d.metal_amount,g=d.glass_amount,v=d.busyname,h=d.busyamt,V=d.showhacked,b=d.buildQueue,B=d.buildQueueLen,I=d.recipes,w=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],D=P[1],F=(0,k.createSearch)(R,function(z){return z.name}),U="";B>0&&(U=b.map(function(z,G){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:b[G][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:b.indexOf(z)+1})}return X}()},z)},G)}));var K=(0,a.flow)([(0,t.filter)(function(z){return(z.category.indexOf(A)>-1||R)&&(d.showhacked||!z.hacked)}),R&&(0,t.filter)(F),(0,t.sortBy)(function(z){return z.name.toLowerCase()})])(I),H="Build";return R?H="Results for: '"+R+"':":A&&(H="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:H,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function z(G){return x(G)}return z}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function z(G,X){return D(X)}return z}(),mb:1}),K.map(function(z){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+z.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===1,disabled:!S(z,d.metal_amount,d.glass_amount,1),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:1})}return G}(),children:(0,k.toTitleCase)(z.name)}),z.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===10,disabled:!S(z,d.metal_amount,d.glass_amount,10),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:10})}return G}(),children:"10x"}),z.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===25,disabled:!S(z,d.metal_amount,d.glass_amount,25),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:25})}return G}(),children:"25x"}),z.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===z.name&&d.busyamt===z.max_multiplier,disabled:!S(z,d.metal_amount,d.glass_amount,z.max_multiplier),onClick:function(){function G(){return l("make",{make:z.uid,multiplier:z.max_multiplier})}return G}(),children:[z.max_multiplier,"x"]}),z.requirements&&Object.keys(z.requirements).map(function(G){return(0,k.toTitleCase)(G)+": "+z.requirements[G]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},z.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:M}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function z(){return l("clear_queue")}return z}()})]})]})]})})})}return p}()},81617:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BioChipPad=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.implant,f=i.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",children:[c&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+c.image,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function l(){return p("eject_case")}return l}()})]})})})}return N}()},26215:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),N=r.Biogenerator=function(){function i(c,f){var l=(0,a.useBackend)(f),d=l.data,s=l.config,u=d.container,C=d.processing,g=s.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),u?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,k)]})})})}return i}(),k=function(c,f){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.biomass,C=s.container,g=s.container_curr_reagents,v=s.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:u}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),C?(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.has_plants,C=s.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!u,tooltip:u?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return d("activate")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!C,tooltip:C?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function g(){return d("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!u,tooltip:u?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return d("eject_plants")}return g}()})})]})})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.biomass,C=s.product_list,g=(0,a.useSharedState)(f,"vendAmount",1),v=g[0],h=g[1],V=Object.entries(C).map(function(b,B){var I=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(w){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:u d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>V&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function I(){return i("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function I(){return i("set",{set_level:d})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function I(){return i("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return i("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return i("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return i("set",{set_level:v})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(g)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:u})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return i("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return k}()},71736:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(96524),a=n(36121),t=n(78234),o=n(17899),m=n(24674),N=n(45493),k=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],y=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(B,I){for(var w=[],T=0;T 0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,m.Box,{children:w},w)],0)},null):null},f=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},l=r.BodyScanner=function(){function b(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,M=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:M})})}return b}(),d=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,u,{occupant:I}),(0,e.createComponentVNode)(2,C,{occupant:I}),(0,e.createComponentVNode)(2,v,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:k[x.stat][0],children:k[x.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},u=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,m.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:i(y,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A 100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,f(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([f(I.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},99449:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=n(18963),k=r.BookBinder=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.selectedbook,d=f.book_categories,s=[];return d.map(function(u){return s[u.description]=u.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function u(){return c("print_book")}return u}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.title,onClick:function(){function u(){return(0,m.modalOpen)(p,"edit_selected_title")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:l.author,onClick:function(){function u(){return(0,m.modalOpen)(p,"edit_selected_author")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:d.map(function(u){return u.description}),onSelected:function(){function u(C){return c("toggle_binder_category",{category_id:s[C]})}return u}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function u(){return(0,m.modalOpen)(p,"edit_selected_summary")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:l.summary})]}),(0,e.createVNode)(1,"br"),d.filter(function(u){return l.categories.includes(u.category_id)}).map(function(u){return(0,e.createComponentVNode)(2,t.Button,{content:u.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:u.category_id})}return C}()},u.category_id)})]})})]})})})]})}return S}()},43506:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotClean=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.locked,l=c.noaccess,d=c.maintpanel,s=c.on,u=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.cleanblood,b=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:l,onClick:function(){function B(){return i("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return i("area")}return B}()}),b!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:b})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function B(){return i("ejectpai")}return B}()})})]})})}return k}()},89593:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotFloor=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.noaccess,l=c.painame,d=c.hullplating,s=c.replace,u=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,h=c.magnet,V=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:f,onClick:function(){function b(){return i("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:f,onClick:function(){function b(){return i("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:f,onClick:function(){function b(){return i("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Finds tiles",disabled:f,onClick:function(){function b(){return i("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:f,onClick:function(){function b(){return i("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:f,onClick:function(){function b(){return i("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:f,onClick:function(){function b(){return i("anchored")}return b}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:l,disabled:f,onClick:function(){function b(){return i("ejectpai")}return b}()})})]})})}return k}()},89513:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotHonk=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.BotStatus)})})}return k}()},19297:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotMed=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.locked,l=c.noaccess,d=c.maintpanel,s=c.on,u=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:l,onClick:function(){function E(){return i("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:l,onClick:function(){function E(){return i("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:l,onChange:function(){function E(M,j){return i("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(M){return M+"u"}return E}(),disabled:l,onChange:function(){function E(M,j){return i("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:l,onClick:function(){function E(){return i("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:l,onClick:function(){function E(){return i("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:l,onClick:function(){function E(){return i("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:l,onClick:function(){function E(){return i("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:l,onClick:function(){function E(){return i("ejectpai")}return E}()})})]})})})}return k}()},4249:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(69521),N=r.BotSecurity=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.noaccess,l=c.painame,d=c.check_id,s=c.check_weapons,u=c.check_warrant,C=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Unidentifiable Persons",disabled:f,onClick:function(){function v(){return i("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:f,onClick:function(){function v(){return i("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Wanted Criminals",disabled:f,onClick:function(){function v(){return i("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function v(){return i("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function v(){return i("arrdeclare")}return v}()})]}),l&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:l,disabled:f,onClick:function(){function v(){return i("ejectpai")}return v}()})})]})})}return k}()},27267:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(96524),a=n(45493),t=n(24674),o=n(17899),m=function(y,p){var i=y.cell,c=(0,o.useBackend)(p),f=c.act,l=i.cell_id,d=i.occupant,s=i.crimes,u=i.brigged_by,C=i.time_left_seconds,g=i.time_set_seconds,v=i.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var V=function(){f("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(y){var p=y.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,m,{cell:i},i.ref)})]})},k=r.BrigCells=function(){function S(y,p){var i=(0,o.useBackend)(p),c=i.act,f=i.data,l=f.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N,{cells:l})})})})})}return S}()},26623:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.BrigTimer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var f=[],l=0;for(l=0;l f?this.substring(0,f)+"...":this};var y=function(l,d){var s,u;if(!d)return[];var C=l.findIndex(function(g){return g.name===d.name});return[(s=l[C-1])==null?void 0:s.name,(u=l[C+1])==null?void 0:u.name]},p=function(l,d){d===void 0&&(d="");var s=(0,m.createSearch)(d,function(u){return u.name});return(0,t.flow)([(0,a.filter)(function(u){return u==null?void 0:u.name}),d&&(0,a.filter)(s),(0,a.sortBy)(function(u){return u.name})])(l)},i=r.CameraConsole=function(){function f(l,d){var s=(0,N.useBackend)(d),u=s.act,C=s.data,g=s.config,v=C.mapRef,h=C.activeCamera,V=p(C.cameras),b=y(V,h),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return u("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,k.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return u("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,k.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return f}(),c=r.CameraConsoleContent=function(){function f(l,d){var s=(0,N.useBackend)(d),u=s.act,C=s.data,g=(0,N.useLocalState)(d,"searchText",""),v=g[0],h=g[1],V=C.activeCamera,b=p(C.cameras,v);return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return u("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return f}()},95513:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(92986),N=n(45493),k=r.Canister=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,l=f.portConnected,d=f.tankPressure,s=f.releasePressure,u=f.defaultReleasePressure,C=f.minReleasePressure,g=f.maxReleasePressure,v=f.valveOpen,h=f.name,V=f.canLabel,b=f.colorContainer,B=f.color_index,I=f.hasHoldingTank,w=f.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var M=[],j=[],P=[],R=[],D=0;for(D=0;D h.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:u.cooldown_time||!h.can_close,onClick:function(){function V(){return s("make_job_unavailable",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:u.cooldown_time||!h.can_open,onClick:function(){function V(){return s("make_job_available",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:u.cooldown_time||!h.can_prioritize,onClick:function(){function V(){return s("prioritize_job",{job:h.title})}return V}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,S):u.modify_name?v=(0,e.createComponentVNode)(2,m.AccessList,{accesses:u.regions,selectedList:u.selectedAccess,accessMod:function(){function h(V){return s("set",{access:V})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(V){return s("grant_region",{region:V})}return h}(),denyDep:function(){function h(V){return s("deny_region",{region:V})}return h}()}):v=(0,e.createComponentVNode)(2,y);break;case 3:u.authenticated?u.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!u.authenticated||u.records.length===0||u.target_dept,onClick:function(){function h(){return s("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),u.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!u.authenticated||u.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),u.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function V(){return s("remote_demote",{remote_demote:h.name})}return V}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},16377:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(96524),a=n(74041),t=n(50640),o=n(17899),m=n(24674),N=n(45493),k=n(78234),S=r.CargoConsole=function(){function d(s,u){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)]})})})}return d}(),y=function(s,u){var C=(0,o.useLocalState)(u,"contentsModal",null),g=C[0],v=C[1],h=(0,o.useLocalState)(u,"contentsModalTitle",null),V=h[0],b=h[1];if(g!==null&&V!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(s,u){var C=(0,o.useBackend)(u),g=C.act,v=C.data,h=v.is_public,V=v.timeleft,b=v.moving,B=v.at_station,I,w;return!b&&!B?(I="Docked off-station",w="Call Shuttle"):!b&&B?(I="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",V!==1?I="Shuttle is en route (ETA: "+V+" minutes)":I="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},i=function(s,u){var C,g=(0,o.useBackend)(u),v=g.act,h=g.data,V=h.accounts,b=(0,o.useLocalState)(u,"selectedAccount"),B=b[0],I=b[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(C=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,m.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,u){var C=(0,o.useBackend)(u),g=C.act,v=C.data,h=v.requests,V=v.categories,b=v.supply_packs,B=(0,o.useSharedState)(u,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(u,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(u,"contentsModal",null),M=E[0],j=E[1],P=(0,o.useLocalState)(u,"contentsModalTitle",null),R=P[0],D=P[1],F=(0,k.createSearch)(A,function(X){return X.name}),U=(0,o.useLocalState)(u,"selectedAccount"),K=U[0],H=U[1],z=(0,a.flow)([(0,t.filter)(function(X){return X.cat===V.filter(function(Q){return Q.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(X){return X.name.toLowerCase()})])(b),G="Crate Catalogue";return A?G="Results for '"+A+"':":I&&(G="Browsing "+I),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:G,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(X){return X.name}),selected:I,onSelected:function(){function X(Q){return w(Q)}return X}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function X(Q,ae){return x(ae)}return X}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:z.map(function(X){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[X.name," (",X.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",disabled:!K,onClick:function(){function Q(){return g("order",{crate:X.ref,multiple:!1,account:K})}return Q}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!K||X.singleton,onClick:function(){function Q(){return g("order",{crate:X.ref,multiple:!0,account:K})}return Q}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function Q(){j(X.contents),D(X.name)}return Q}()})]})]},X.name)})})})]})})},f=function(s,u){var C=s.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},l=function(s,u){var C=(0,o.useBackend)(u),g=C.act,v=C.data,h=v.requests,V=v.orders,b=v.shipments;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,m.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,f,{request:B})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},89917:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ChangelogView=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,a.useLocalState)(S,"onlyRecent",0),f=c[0],l=c[1],d=i.cl_data,s=i.last_cl,u={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function g(v){return v in u?u[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return l(!f)}return g}()}),children:d.map(function(g){return!f&&g.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},71254:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(1496),m=n(45493),N=[1,5,10,20,30,50],k=[1,5,10],S=r.ChemDispenser=function(){function c(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),y=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.amount,g=u.energy,v=u.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function b(){return s("amount",{amount:h})}return b}()})},V)})})})]})})})},p=function(f,l){for(var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.chemicals,g=C===void 0?[]:C,v=[],h=0;h<(g.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:u.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(V,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:V.id})}return B}()},b)}),v.map(function(V,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},i=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.isBeakerLoaded,g=u.beakerCurrentVolume,v=u.beakerMaxVolume,h=u.beakerContents,V=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:u.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:V,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),k.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return b}()})})})}},27004:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(1496),N=n(45493),k=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var f=(0,t.useBackend)(c),l=f.act,d=f.data,s=d.targetTemp,u=d.targetTempReached,C=d.autoEject,g=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function V(){return l("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function V(){return l("toggle_on")}return V}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function V(b,B){return l("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:u?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function V(b){return(0,a.toFixed)(b)+" K"}return V}()})||"\u2014"})]})})})},y=function(i,c){var f=(0,t.useBackend)(c),l=f.act,d=f.data,s=d.isBeakerLoaded,u=d.beakerCurrentVolume,C=d.beakerMaxVolume,g=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[u," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:s,beakerContents:g})})})}},33611:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(1496),N=n(99665),k=n(28234),S=n(81856),y=["icon"];function p(x,E){if(x==null)return{};var M={},j=Object.keys(x),P,R;for(R=0;R =0)&&(M[P]=x[P]);return M}function i(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function M(j,P){return j.__proto__=P,j}return M}(),c(x,E)}var f=(0,S.createLogger)("ChemMaster"),l=[1,5,10],d=function(E,M){var j=(0,a.useBackend)(M),P=j.act,R=j.data,D=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:R.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:D.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(D.desc||"").length>0?D.desc:"N/A"}),D.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:D.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:D.blood_dna})],4),!R.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:R.printing?"spinner":"print",disabled:R.printing,iconSpin:!!R.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return P("print",{idx:D.idx,beaker:E.args.beaker})}return F}()})]})})})})},s=r.ChemMaster=function(){function x(E,M){var j=(0,a.useBackend)(M),P=j.data,R=P.condi,D=P.beaker,F=P.beaker_reagents,U=F===void 0?[]:F,K=P.buffer_reagents,H=K===void 0?[]:K,z=P.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u,{beaker:D,beakerReagents:U,bufferNonEmpty:H.length>0}),(0,e.createComponentVNode)(2,C,{mode:z,bufferReagents:H}),(0,e.createComponentVNode)(2,g,{isCondiment:R,bufferNonEmpty:H.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),u=function(E,M){var j=(0,a.useBackend)(M),P=j.act,R=E.beaker,D=E.beakerReagents,F=E.bufferNonEmpty;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:F?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function U(){return P("eject")}return U}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!R,content:"Eject and Clear Buffer",onClick:function(){function U(){return P("eject")}return U}()}),children:R?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function U(K,H){return(0,e.createComponentVNode)(2,t.Box,{mb:H 0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function U(K,H){return(0,e.createComponentVNode)(2,t.Box,{mb:H h.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)]})]})})]})]})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.patient_limb_data,V=v.limb_list,b=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),h[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&N),checked:!(b[B][2]&N),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&k),checked:!(b[B][2]&k),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},l=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.patient_organ_data,V=v.organ_list,b=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},66373:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CloningPod=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,f=i.biomass_storage_capacity,l=i.sanguine_reagent,d=i.osseous_reagent,s=i.organs,u=i.currently_cloning;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*f/3,f],average:[f/3,2*f/3],bad:[0,f/3]},minValue:0,maxValue:f})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:l+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:l,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:d,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"osseous_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!u&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return p("eject_organ",{organ_ref:C.ref})}return g}()})})]},C)})]}),!!u&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return N}()},11866:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ColourMatrixTester=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.colour_data,f=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Matrix",children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:l.map(function(d){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[d.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[d.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(u,C){return p("setvalue",{idx:d.idx+1,value:C})}return s}()})]},d.name)})},l)})})})})})}return N}()},22420:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,i);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,l);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function d(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),m(h)]})})})}return d}(),k=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.authenticated,V=v.noauthbutton,b=v.esc_section,B=v.esc_callable,I=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,M;return h?h===1?M="Command":h===2?M="Captain":h===3?M="CentComm Officer":h===4?(M="CentComm Secure Connection",E=!0):M="ERROR: Report This Bug!":M="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:V,content:h?"Log Out ("+M+")":"Log In",onClick:function(){function j(){return g("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function j(){return g("callshuttle")}return j}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function j(){return g("cancelshuttle")}return j}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,p)},y=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.is_admin,V=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,I=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:b,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.msg_cooldown,V=v.emagged,b=v.cc_cooldown,B=v.security_level_color,I=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var M=V?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return b>0&&(M+=" ("+b+"s)",j+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function P(){return g("announce")}return P}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!T||b>0,onClick:function(){function P(){return g("MessageSyndicate")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function P(){return g("RestoreBackup")}return P}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!T||b>0,onClick:function(){function P(){return g("MessageCentcomm")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!T||b>0,onClick:function(){function P(){return g("nukerequest")}return P}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!A,onClick:function(){function P(){return g("status")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function P(){return g("messagelist")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function P(){return g("RestartNanoMob")}return P}()})})]})})})],4)},i=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.stat_display,V=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!V,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!V,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.authhead,V=v.current_message_title,b=v.current_message,B=v.messages,I=v.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||V===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=s.levels,V=s.required_access,b=s.use_confirm,B=v.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},l=function(s,u){var C=(0,a.useBackend)(u),g=C.act,v=C.data,h=v.is_admin,V=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(u,"subtitle",""),B=b[0],I=b[1],w=(0,a.useLocalState)(u,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(u,"classified",0),E=x[0],M=x[1],j=(0,a.useLocalState)(u,"beepsound","Beep"),P=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return g("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function D(F,U){return I(U)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function D(F,U){return A(U)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:P})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:P,onSelected:function(){function D(F){return R(F)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return g("test_sound",{sound:P})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return M(!E)}return D}()})})]})]})})}},46868:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.CompostBin=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.biomass,f=i.compost,l=i.biomass_capacity,d=i.compost_capacity,s=(0,a.useSharedState)(S,"vendAmount",1),u=s[0],C=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:l,ranges:{good:[l*.5,1/0],average:[l*.25,l*.5],bad:[-1/0,l*.25]},children:[c," / ",l," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:f,minValue:0,maxValue:d,ranges:{good:[d*.5,1/0],average:[d*.25,d*.5],bad:[-1/0,d*.25]},children:[f," / ",d," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:u,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,h){return C(h)}return g}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:f<25*u,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:u})}return g}()})})})]})})})}return N}()},64707:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(99509),N=n(45493);function k(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(V,b){return V.__proto__=b,V}return h}(),S(g,v)}var y={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function g(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:B.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(P){return P.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),M=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:A.time_left,format:function(){function P(R,D){return" ("+D.substr(3)+")"}return P}()})],onClick:function(){function P(){return b("extract")}return P}()})},v,{children:I.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+P.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!y[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:y[P.status][1],inline:!0,mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:y[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return b("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(R=P.difficulties)==null?void 0:R.map(function(D,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:D.name+" ("+D.reward+" TC)",onClick:function(){function U(){return b("activate",{uid:P.uid,difficulty:F+1})}return U}()},F)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,V=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,I=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I -1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},u=function(g){function v(V){var b;return b=g.call(this,V)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}k(v,g);var h=v.prototype;return h.tick=function(){function V(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return V}(),h.componentDidMount=function(){function V(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return V}(),v}(e.Component),C=function(v,h){var V=(0,t.useLocalState)(h,"viewingPhoto",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},52141:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ConveyorSwitch=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.slowFactor,f=i.oneWay,l=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:l>0?"forward":l<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!f,onClick:function(){function d(){return p("toggleOneWay")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function d(){return p("slowFactor",{value:c-5})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function d(){return p("slowFactor",{value:c-1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function d(s){return s+"x"}return d}(),onChange:function(){function d(s,u){return p("slowFactor",{value:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function d(){return p("slowFactor",{value:c+1})}return d}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function d(){return p("slowFactor",{value:c+5})}return d}()})," "]})]})})]})})})})}return N}()},94187:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(96524),a=n(50640),t=n(78234),o=n(17899),m=n(24674),N=n(5126),k=n(38424),S=n(45493),y=function(d,s){return d.dead?"Deceased":parseInt(d.health,10)<=s?"Critical":parseInt(d.stat,10)===1?"Unconscious":"Living"},p=function(d,s){return d.dead?"red":parseInt(d.health,10)<=s?"orange":parseInt(d.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function l(d,s){var u=(0,o.useBackend)(s),C=u.act,g=u.data,v=(0,o.useLocalState)(s,"tabIndex",0),h=v[0],V=v[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return l}(),c=function(d,s){var u=(0,o.useBackend)(s),C=u.act,g=u.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,V=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:b?(0,e.createComponentVNode)(2,m.Dropdown,{mr:"5px",width:"50px",options:h,selected:V,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(A,g.critThreshold),children:y(A,g.critThreshold)}),A.sensor_type>=2||g.ignoreSensors?(0,e.createComponentVNode)(2,m.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:k.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3||g.ignoreSensors?g.isAI||g.isObserver?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},f=function(d,s){var u=(0,o.useBackend)(s),C=u.act,g=u.data,v=(0,o.useLocalState)(s,"zoom",1),h=v[0],V=v[1];return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function b(B){return V(B)}return b}(),children:g.crewmembers.filter(function(b){return b.sensor_type===3||g.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:b.x,y:b.y,zoom:h,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:p(b,g.critThreshold),onClick:function(){function B(){return g.isObserver?C("track",{track:b.ref}):null}return B}()},b.ref)})})})}},60561:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=r.Cryo=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S)})})})}return p}(),S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.isOperating,u=d.hasOccupant,C=d.occupant,g=C===void 0?[]:C,v=d.cellTemperature,h=d.cellTemperatureStatus,V=d.isBeakerLoaded,b=d.cooldownProgress,B=d.auto_eject_healthy,I=d.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return l("ejectOccupant")}return w}(),disabled:!u,children:"Eject"}),children:u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return l("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",onClick:function(){function w(){return l(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return l(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return l(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.isBeakerLoaded,u=d.beakerLabel,C=d.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!u&&"average",children:[u||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},27889:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),N=r.CryopodConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,k),!!d&&(0,e.createComponentVNode)(2,S)]})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.frozen_items,s=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,m.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(u.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return f("one_item",{item:u.uid})}return C}()})},u)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function u(){return f("all_items")}return u}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},81434:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],y=r.DNAModifier=function(){function h(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.ComplexModal),E,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:k.map(function(M,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:M[2],selected:T===M[0],onClick:function(){function P(){return I("selectMenuKey",{key:M[0]})}return P}(),children:M[1]},j)})}),E]})},c=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:x,format:function(){function M(j){return j.toString(16).toUpperCase()}return M}(),ml:"0",onChange:function(){function M(j,P){return I("changeUITarget",{value:P})}return M}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function M(){return I("pulseUIRadiation")}return M}()})]})},f=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},l=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationIntensity",{value:M})}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function x(E,M){return I("radiationDuration",{value:M})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function x(){return I("pulseRadiation")}return x}()})]})},d=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},E)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,u)})]})},s=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,M=A+(x.data?" - "+x.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:M,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function j(){return I("bufferOption",{option:"clear",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function j(){return I("bufferOption",{option:"changeLabel",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return I("bufferOption",{option:"saveDisk",id:T})}return j}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUI",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveSE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"loadDisk",id:T})}return j}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"transfer",id:T})}return j}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},u=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,M){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function j(){return I("injectRejuvenators",{amount:E})}return j}()},M)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:x||"No label"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[A," unit",A===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},g=function(V,b){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},v=function(V,b){for(var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,M=V.action,j=T.split(""),P=0,R=[],D=function(){for(var K=F/E+1,H=[],z=function(){var Q=G+1;H.push((0,e.createComponentVNode)(2,t.Button,{selected:A===K&&x===Q,content:j[F+G],mb:"0",onClick:function(){function ae(){return I(M,{block:K,subblock:Q})}return ae}()}))},G=0;G u.spawnpoints?"red":"green",children:[u.total," total, versus ",u.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return s("dispatch_ert",{silent:v})}return V}()})})]})})})},p=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=u.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return s("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,m.decodeHtmlEntities)(g.time))}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},i=function(f,l){var d=(0,a.useBackend)(l),s=d.act,u=d.data,C=(0,a.useLocalState)(l,"text",""),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(V,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:g})}return h}()})]})})}},24503:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.EconomyManager=function(){function S(y,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"global"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"department_members"})}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function d(){return c("payroll_modification",{mod_type:"crew_member"})}return d}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",l," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function d(){return c("delay_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function d(){return c("set_payroll")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function d(){return c("accelerate_payroll")}return d}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},15543:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.Electropack=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data,f=c.power,l=c.code,d=c.frequency,s=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:u/10,value:d/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return i("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function C(g,v){return i("code",{code:v})}return C}()})})]})})})})}return k}()},57013:function(L,r,n){"use strict";r.__esModule=!0,r.Emojipedia=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=r.Emojipedia=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.data,f=c.emoji_list,l=(0,t.useLocalState)(p,"searchText",""),d=l[0],s=l[1],u=f.filter(function(C){return C.name.toLowerCase().includes(d.toLowerCase())});return(0,e.createComponentVNode)(2,m.Window,{width:325,height:400,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Emojipedia v1.0.1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by name",value:d,onInput:function(){function C(g,v){return s(v)}return C}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Click on an emoji to copy its tag!",tooltipPosition:"bottom",icon:"circle-question"})],4),children:u.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{m:1,color:"transparent",className:(0,a.classes)(["emoji16x16","emoji-"+C.name]),style:{transform:"scale(1.5)"},tooltip:C.name,onClick:function(){function g(){k(C.name)}return g}()},C.name)})})})})}return S}(),k=function(y){var p=document.createElement("input"),i=":"+y+":";p.value=i,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p)}},99012:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(74041),k=n(50640),S=r.EvolutionMenu=function(){function i(c,f){return(0,e.createComponentVNode)(2,m.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p)]})})})}return i}(),y=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.evo_points,C=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:u}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return d("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.evo_points,C=s.ability_tabs,g=s.purchased_abilities,v=s.view_mode,h=(0,t.useLocalState)(f,"selectedTab",C[0]),V=h[0],b=h[1],B=(0,t.useLocalState)(f,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(f,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(R,D){if(D===void 0&&(D=""),!R||R.length===0)return[];var F=(0,a.createSearch)(D,function(U){return U.name+"|"+U.description});return(0,N.flow)([(0,k.filter)(function(U){return U==null?void 0:U.name}),(0,k.filter)(F),(0,k.sortBy)(function(U){return U==null?void 0:U.name})])(R)},M=function(R){if(w(R),R==="")return x(V.abilities);x(E(C.map(function(D){return D.abilities}).flat(),R))},j=function(R){b(R),x(R.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function P(R,D){M(D)}return P}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function P(){return d("set_view_mode",{mode:0})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function P(){return d("set_view_mode",{mode:1})}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(P){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&V===P,onClick:function(){function R(){j(P)}return R}(),children:P.category},P)})}),A.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:P.name}),g.includes(P.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:P.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:P.cost>u||g.includes(P.power_path),content:"Evolve",onClick:function(){function D(){return d("purchase",{power_path:P.power_path})}return D}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:P.description+" "+P.helptext})]},R)})]})})}},37504:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(96524),a=n(28234),t=n(78234),o=n(17899),m=n(24674),N=n(99509),k=n(45493),S=["id","amount","lineDisplay","onClick"];function y(g,v){if(g==null)return{};var h={},V=Object.keys(g),b,B;for(B=0;B =0)&&(h[b]=g[b]);return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building;return(0,e.createComponentVNode)(2,k.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,k.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),I&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return g}(),f=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/w*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,u,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},l=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],M=x[1],j=(0,t.createSearch)(E,function(R){return R.name}),P=T.filter(j);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function R(D){return b("category",{cat:D})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return b("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return b("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(D,F){return M(F)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,C,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,M){return M.substr(3)}return x}()}),")"]})]})})})},s=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,m.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function M(){return b("queueswap",{from:E+1,to:E})}return M}()}),E 0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},u=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=y(v,S),E=B.materials[I]||0,M=w||E;if(!(M<=0&&!(I==="metal"||I==="glass"))){var j=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:j&&"bad",ml:0,mr:1,children:M.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[M.toLocaleString("en-US")," cm\xB3 (",Math.round(M/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return b("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},9466:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),k=r.ExperimentConsole=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.open,d=f.feedback,s=f.occupant,u=f.occupant_name,C=f.occupant_status,g=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return m.get(C)}return B}(),b=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!l,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},77284:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=0,N=1013,k=function(p){var i="good",c=80,f=95,l=110,d=120;return p l?i="average":p>d&&(i="bad"),i},S=r.ExternalAirlockController=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.chamber_pressure,s=l.exterior_status,u=l.interior_status,C=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:k(d),value:d,minValue:m,maxValue:N,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return f("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function g(){return f("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return f("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function g(){return f("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function g(){return f("force_int")}return g}()})]})]})]})})}return y}()},52516:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FaxMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:i.nologin,content:i.realauth?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return N}()},24777:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.FilingCabinet=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=y.config,f=i.contents,l=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Contents",children:[!f&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",l," is empty."]})}),!!f&&f.slice().map(function(d){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:d.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:d.index})}return s}()})})]},d)})]})})})})}return N}()},88361:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=S.image,l=S.isSelected,d=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":l&&"solid"||"none","border-width":"2px","border-color":"orange",padding:l&&"2px"||"4px"},onClick:d})},N=r.FloorPainter=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.availableStyles,l=c.selectedStyle,d=c.selectedDir,s=c.directionsPreview,u=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function C(){return i("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:l,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return i("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return i("cycle_style",{offset:1})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{image:u[C],isSelected:l===C,onSelect:function(){function g(){return i("select_style",{style:C})}return g}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{image:s[g],isSelected:g===d,onSelect:function(){function v(){return i("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return k}()},70078:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=function(l){return l?"("+l.join(", ")+")":"ERROR"},k=function(l,d){if(!(!l||!d)){if(l[2]!==d[2])return null;var s=Math.atan2(d[1]-l[1],d[0]-l[0]),u=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(s),distance:u}}},S=r.GPS=function(){function f(l,d){var s=(0,t.useBackend)(d),u=s.data,C=u.emped,g=u.active,v=u.area,h=u.position,V=u.saved;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,y,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{area:v,position:h})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,y)],0)})})})}return f}(),y=function(l,d){var s=l.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(l,d){var s=(0,t.useBackend)(d),u=s.act,C=s.data,g=C.active,v=C.tag,h=C.same_z,V=(0,t.useLocalState)(d,"newTag",v),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function I(){return u("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function I(){return u("tag",{newtag:b})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return u("tag",{newtag:b})}return I}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function I(){return u("same_z")}return I}()})})]})})},i=function(l,d){var s=l.title,u=l.area,C=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[u&&(0,e.createFragment)([u,(0,e.createVNode)(1,"br")],0),N(C)]})})},c=function(l,d){var s=(0,t.useBackend)(d),u=s.data,C=u.position,g=u.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,k(C,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(v.position)})]},h)})})})))}},92246:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(99665),m=n(45493),N=r.GeneModder=function(){function l(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.has_seed;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)]})})})}return l}(),k=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return C("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})},S=function(d,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},y=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.has_seed,h=g.seed,V=g.has_disk,b=g.disk,B,I;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?I=b.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},p=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:[h.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return C("extract",{id:V.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return C("replace",{id:V.id})}return b}()})})]},V)})," ",(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract All",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function V(){return C("bulk_extract_core")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace All",disabled:!(v!=null&&v.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function V(){return C("bulk_replace_core")}return V}()})})]})]},"Core Genes")},i=function(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,f,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,f,{title:"Trait Genes",gene_set:g,do_we_show:v})},f=function(d,s){var u=d.title,C=d.gene_set,g=d.do_we_show,v=(0,a.useBackend)(s),h=v.act,V=v.data,b=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:u,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},u)}},27163:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(96524),a=n(24674),t=n(45493),o=n(98444),m=r.GenericCrewManifest=function(){function N(k,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return N}()},53808:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GhostHudPanel=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.security,f=i.medical,l=i.diagnostic,d=i.radioactivity,s=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,N,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:d,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return k}(),N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=S.label,f=S.type,l=f===void 0?null:f,d=S.is_active,s=S.act_on,u=s===void 0?"hud_on":s,C=S.act_off,g=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?g:u,{hud_type:l})}return v}()})})]})}},32035:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GlandDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.glands,f=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return p("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return N}()},33004:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.GravityGen=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.charging_state,f=i.charge_count,l=i.breaker,d=i.ext_power,s=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:d?"good":"bad",children:["[ ",d?"Powered":"Unpowered"," ]"]})}return C}(),u=function(){function C(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[u(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"Online":"Offline",color:l?"green":"red",px:1.5,onClick:function(){function C(){return p("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:d?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},39775:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(57842),N=r.GuestPass=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function f(){return i("mode",{mode:0})}return f}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function f(){return i("mode",{mode:1})}return f}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function f(){return i("scan")}return f}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function f(){return i("giv_name")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function f(){return i("reason")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function f(){return i("duration")}return f}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function f(){return i("issue")}return f}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function f(l){return i("access",{access:l})}return f}(),grantAll:function(){function f(){return i("grant_all")}return f}(),denyAll:function(){function f(){return i("clear_all")}return f}(),grantDep:function(){function f(l){return i("grant_region",{region:l})}return f}(),denyDep:function(){function f(l){return i("deny_region",{region:l})}return f}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function f(){return i("print")}return f}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(f,l){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:f},l)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return k}()},22480:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=[1,5,10,20,30,50],N=null,k=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.amount,u=d.energy,C=d.maxEnergy,g=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[u," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===v,content:v,onClick:function(){function V(){return l("amount",{amount:v})}return V}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},y=function(i,c){for(var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.chemicals,u=s===void 0?[]:s,C=d.current_reagent,g=[],v=0;v<(u.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[u.map(function(h,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return l("dispense",{reagent:h.id})}return b}()},V)}),g.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},22616:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.HealthSensor=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,l=f.on,d=f.user_health,s=f.minHealth,u=f.maxHealth,C=f.alarm_health;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:l?"On":"Off",color:l?null:"red",selected:l,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:u,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),bold:d>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:d})})})]})})})})}return S}(),k=function(y){return y>50?"green":y>0?"orange":"red"}},76861:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Holodeck=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=(0,a.useLocalState)(y,"currentDeck",""),l=f[0],d=f[1],s=(0,a.useLocalState)(y,"showReload",!1),u=s[0],C=s[1],g=c.decks,v=c.ai_override,h=c.emagged,V=function(){function b(B){i("select_deck",{deck:B}),d(B),C(!0),setTimeout(function(){C(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[u&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",l]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===l,onClick:function(){function B(){return V(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return i("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return i("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return k}(),N=function(S,y){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},96729:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.Instrument=function(){function i(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),k=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.help;if(u)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},S=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.lines,C=s.playing,g=s.repeat,v=s.maxRepeats,h=s.tempo,V=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function x(){return d("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return d("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return d("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:u.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return d("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return d("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,M){return d("repeat",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return d("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,M){return d("setvolume",{new:M})}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,y)]})},y=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.allowedInstrumentNames,C=s.instrumentLoaded,g=s.instrument,v=s.canNoteShift,h=s.noteShift,V=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,M;return B===1?(E="Linear",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function j(P){return(0,a.round)(P*100)/100+" seconds"}return j}(),onChange:function(){function j(P,R){return d("setlinearfalloff",{new:R/10})}return j}()})):B===2&&(E="Exponential",M=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function j(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(P,R){return d("setexpfalloff",{new:R})}return j}()})),u.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:g,width:"50%",onSelected:function(){function j(P){return d("switchinstrument",{name:P})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:b,value:h,stepPixelSize:2,format:function(){function j(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return j}(),onChange:function(){function j(P,R){return d("setnoteshift",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function j(P){return d("setsustainmode",{new:P})}return j}()}),M]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function j(P,R){return d("setdropoffvolume",{new:R})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function j(){return d("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return d("reset")}return j}()})]})})})},p=function(c,f){var l=(0,t.useBackend)(f),d=l.act,s=l.data,u=s.playing,C=s.lines,g=s.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!g||u,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"pen",onClick:function(){function V(){return d("modifyline",{line:h+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"trash",onClick:function(){function V(){return d("deleteline",{line:h+1})}return V}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},53385:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.KeycardAuth=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return p("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:f})]})})}return N}()},58553:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(75201),N=r.KitchenMachine=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,f=i.config,l=c.ingredients,d=c.operating,s=f.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:d,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," ",u.units]}),2)]},u.name)})})})})]})})})}return S}(),k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.inactive,d=f.tooltip;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:l,tooltip:l?d:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},14047:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.LawManager=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.isAdmin,s=l.isSlaved,u=l.isMalf,C=l.isAIMalf,g=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:u?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(u||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return f("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return f("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,N),g===1&&(0,e.createComponentVNode)(2,k)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.has_zeroth_laws,s=l.zeroth_laws,u=l.has_ion_laws,C=l.ion_laws,g=l.ion_law_nr,v=l.has_inherent_laws,h=l.inherent_laws,V=l.has_supplied_laws,b=l.supplied_laws,B=l.channels,I=l.channel,w=l.isMalf,T=l.isAdmin,A=l.zeroth_law,x=l.ion_law,E=l.inherent_law,M=l.supplied_law,j=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:i}),!!u&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:i}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:i}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:B.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===I,onClick:function(){function R(){return f("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:M}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function u(){return f("transfer_laws",{transfer_laws:s.ref})}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)})]})},s.name)})})},S=function(p,i){var c=(0,a.useBackend)(p.ctx),f=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function u(){return f("state_law",{ref:s.ref,state_law:s.state?0:1})}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function u(){return f("edit_law",{edit_law:s.ref})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function u(){return f("delete_law",{delete_law:s.ref})}return u}()})],4)]})]},s.law)})]})})}},5872:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.LibraryComputer=function(){function g(v,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),k=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function M(){return b("set_report",{report_type:x.category_id})}return M}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},y=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},i=function(v,h){var V=(0,a.useBackend)(h),b=V.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var V=(0,a.useLocalState)(h,"tabIndex",0),b=V[0];switch(b){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,u);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},f=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},l=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,m.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,f),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,m.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},d=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,m.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},u=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,m.modalRegisterBodyOverride)("expand_info",k),(0,m.modalRegisterBodyOverride)("report_book",S),(0,m.modalRegisterBodyOverride)("rate_info",p)},37782:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=r.LibraryManager=function(){function i(c,f){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})]})}return i}(),k=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.pagestate;switch(u){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,y);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ssid_delete")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ckey_delete")}return u}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function u(){return(0,m.modalOpen)(f,"specify_ckey_search")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function u(){return d("view_reported_books")}return u}()})]})},y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return d("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return d("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return d("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return d("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.ckey,C=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",u,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return d("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return d("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return d("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},26133:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(24674),m=n(17899),N=n(68100),k=n(45493),S=r.ListInputModal=function(){function i(c,f){var l=(0,m.useBackend)(f),d=l.act,s=l.data,u=s.items,C=u===void 0?[]:u,g=s.message,v=g===void 0?"":g,h=s.init_value,V=s.timeout,b=s.title,B=(0,m.useLocalState)(f,"selected",C.indexOf(h)),I=B[0],w=B[1],T=(0,m.useLocalState)(f,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,m.useLocalState)(f,"searchQuery",""),M=E[0],j=E[1],P=function(){function G(X){var Q=H.length-1;if(X===N.KEY_DOWN)if(I===null||I===Q){var ae;w(0),(ae=document.getElementById("0"))==null||ae.scrollIntoView()}else{var re;w(I+1),(re=document.getElementById((I+1).toString()))==null||re.scrollIntoView()}else if(X===N.KEY_UP)if(I===null||I===0){var de;w(Q),(de=document.getElementById(Q.toString()))==null||de.scrollIntoView()}else{var pe;w(I-1),(pe=document.getElementById((I-1).toString()))==null||pe.scrollIntoView()}}return G}(),R=function(){function G(X){X!==I&&w(X)}return G}(),D=function(){function G(){x(!1),x(!0)}return G}(),F=function(){function G(X){var Q=String.fromCharCode(X),ae=C.find(function(pe){return pe==null?void 0:pe.toLowerCase().startsWith(Q==null?void 0:Q.toLowerCase())});if(ae){var re,de=C.indexOf(ae);w(de),(re=document.getElementById(de.toString()))==null||re.scrollIntoView()}}return G}(),U=function(){function G(X){var Q;X!==M&&(j(X),w(0),(Q=document.getElementById("0"))==null||Q.scrollIntoView())}return G}(),K=function(){function G(){x(!A),j("")}return G}(),H=C.filter(function(G){return G==null?void 0:G.toLowerCase().includes(M.toLowerCase())}),z=330+Math.ceil(v.length/3);return A||setTimeout(function(){var G;return(G=document.getElementById(I.toString()))==null?void 0:G.focus()},1),(0,e.createComponentVNode)(2,k.Window,{title:b,width:325,height:z,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function G(X){var Q=window.event?X.which:X.keyCode;(Q===N.KEY_DOWN||Q===N.KEY_UP)&&(X.preventDefault(),P(Q)),Q===N.KEY_ENTER&&(X.preventDefault(),d("submit",{entry:H[I]})),!A&&Q>=N.KEY_A&&Q<=N.KEY_Z&&(X.preventDefault(),F(Q)),Q===N.KEY_ESCAPE&&(X.preventDefault(),d("cancel"))}return G}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function G(){return K()}return G}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y,{filteredItems:H,onClick:R,onFocusSearch:D,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:H,onSearch:U,searchQuery:M,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:H[I]})})]})})})]})}return i}(),y=function(c,f){var l=(0,m.useBackend)(f),d=l.act,s=c.filteredItems,u=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function b(){return u(V)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),d("submit",{entry:s[v]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;g&&I>=N.KEY_A&&I<=N.KEY_Z&&(B.preventDefault(),C())}return b}(),selected:V===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},V)})})},p=function(c,f){var l=(0,m.useBackend)(f),d=l.act,s=c.filteredItems,u=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:s[g]})}return v}(),onInput:function(){function v(h,V){return u(V)}return v}(),placeholder:"Search...",value:C})}},71963:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(P,R){return M("configure",{key:T,value:R,ref:x})}return j}()})},N=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function j(){return M("configure",{key:T,value:!A,ref:x})}return j}()})},k=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),M=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return M("configure",{key:T,ref:x})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,M=(0,a.useBackend)(w),j=M.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function P(R){return j("configure",{key:T,value:R,ref:E})}return P}()})},y=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,M=I.values,j=I.module_ref,P={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,k,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",P[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,M=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&M?"bad":"good",bold:!0,children:T&&M?M:0})})]})},i=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,M=I.userburn,j=I.usertoxin,P=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,M=I.statusmaxhealth,j=I.statusbrute,P=I.statusburn,R=I.statustoxin,D=I.statusoxy,F=I.statustemp,U=I.statusnutrition,K=I.statusfingerprints,H=I.statusdna,z=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/M:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?R/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:R})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/M:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?K:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?H:"???"})]})}),!!T&&!!z&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),z.map(function(G){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[G.stage,"/",G.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:G.cure})]},G.name)})]})})],0)},f={rad_counter:p,health_analyzer:i,status_readout:c},l=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},d=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var M=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{name:E,display_name:M.display_name,type:M.type,value:M.value,values:M.values,module_ref:A})},M.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},u=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.malfunctioning,j=x.locked,P=x.open,R=x.selected_module,D=x.complexity,F=x.complexity_max,U=x.wearer_name,K=x.wearer_job,H=M?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function z(){return A("activate")}return z}()}),children:H}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function z(){return A("lock")}return z}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:P?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",K]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.control,j=x.helmet,P=x.chestplate,R=x.gauntlets,D=x.boots,F=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:M}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:P||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:R||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,M=x.modules,j=M.filter(function(P){return!!P.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(P){var R=f[P.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,d),(0,e.normalizeProps)((0,e.createComponentVNode)(2,R,Object.assign({},P,{active:E})))]},P.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,M=x.modules,j=(0,a.useLocalState)(w,"module_configuration",null),P=j[0],R=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:M.length!==0&&M.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[P===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function F(){return R(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:D.ref})}return F}(),icon:"bullseye",selected:D.module_active,tooltip:u(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return R(D.ref)}return F}(),icon:"cog",selected:P===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:D.ref})}return F}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!M,children:!!M&&(0,e.createComponentVNode)(2,l)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,M=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},84274:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=n(99665),k=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=c.data,d=l.autolink,s=l.code,u=l.frequency,C=l.linkedMagnets,g=l.magnetConfiguration,v=l.path,h=l.pathPosition,V=l.probing,b=l.powerState,B=l.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[!d&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function I(){return f("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(u/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function I(){return f("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return f("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(k.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return f("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return f("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,N.modalOpen)(i,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(I,w){var T=k.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return f("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),C.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function M(){return f("toggle_magnet_power",{id:T})}return M}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function M(j,P){return f("set_electricity_level",{id:T,electricityLevel:P})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function M(j,P){return f("set_magnetic_field",{id:T,magneticField:P})}return M}()})})]})},T)})]})]})}return y}()},95752:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.MechBayConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.recharge_port,f=c&&c.mech,l=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("reconnect")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return N}()},53668:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=n(78234),k=r.MechaControlConsole=function(){function S(y,p){var i=(0,t.useBackend)(p),c=i.act,f=i.data,l=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:d.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:l.length&&l.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function u(){return c("send_message",{mt:s.uid})}return u}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function u(){return c("get_log",{mt:s.uid})}return u}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function u(){return c("shock",{mt:s.uid})}return u}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},96467:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(99665),N=n(45493),k=n(68159),S=n(27527),y=n(84537),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,m.modalOpen)(A,"edit",{field:x.edit,value:x.value})},f=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),M=E.data,j=M.loginState,P=M.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var R;return P===2?R=(0,e.createComponentVNode)(2,d):P===3?R=(0,e.createComponentVNode)(2,s):P===4?R=(0,e.createComponentVNode)(2,u):P===5?R=(0,e.createComponentVNode)(2,h):P===6?R=(0,e.createComponentVNode)(2,V):P===7&&(R=(0,e.createComponentVNode)(2,b)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,w),R]})})]})}return T}(),d=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.records,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId","name"),K=U[0],H=U[1],z=(0,t.useLocalState)(x,"sortOrder",!0),G=z[0],X=z[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function Q(){return M("screen",{screen:3})}return Q}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function Q(ae,re){return F(re)}return Q}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(D,function(Q){return Q.name+"|"+Q.id+"|"+Q.rank+"|"+Q.p_stat+"|"+Q.m_stat})).sort(function(Q,ae){var re=G?1:-1;return Q[K].localeCompare(ae[K])*re}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[Q.p_stat],onClick:function(){function ae(){return M("view_record",{view_record:Q.ref})}return ae}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.m_stat})]},Q.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),M=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function j(){return M("del_all_med_records")}return j}()})})]})})},u=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical,R=j.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:R?"spinner":"print",disabled:R,iconSpin:!!R,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return M("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return M("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function D(){return M("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(A,x){var E=(0,t.useBackend)(x),M=E.data,j=M.general;return!j||!j.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:j.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(x,P)}return D}()})]},R)})})}),!!j.has_photos&&j.photos.map(function(P,R){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",R+1]},R)})]})},g=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(R,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:R.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:R.value}),!!R.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return c(x,R)}return F}()})]},D)})})})})},v=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function R(){return(0,m.modalOpen)(x,"add_comment")}return R}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(R,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:R.header}),(0,e.createVNode)(1,"br"),R.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return M("del_comment",{del_comment:D+1})}return F}()})]},D)})})})},h=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.virus,R=(0,t.useLocalState)(x,"searchText",""),D=R[0],F=R[1],U=(0,t.useLocalState)(x,"sortId2","name"),K=U[0],H=U[1],z=(0,t.useLocalState)(x,"sortOrder2",!0),G=z[0],X=z[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function Q(ae,re){return F(re)}return Q}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(D,function(Q){return Q.name+"|"+Q.max_stages+"|"+Q.severity})).sort(function(Q,ae){var re=G?1:-1;return Q[K].localeCompare(ae[K])*re}).map(function(Q){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Q.severity,onClick:function(){function ae(){return M("vir",{vir:Q.D})}return ae}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Q.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Q.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[Q.severity],children:Q.severity})]},Q.id)})]})})})})],4)},V=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:P.length!==0&&P.map(function(R){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:R.name,children:[(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:R.delivered,minValue:0,maxValue:R.deliverygoal,ranges:{good:[R.deliverygoal*.5,1/0],average:[R.deliverygoal*.25,R.deliverygoal*.5],bad:[-1/0,R.deliverygoal*.25]},children:[R.delivered," / ",R.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:R.report})]})},R.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},b=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(R){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+R.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",R.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[R.area||"Unknown"," (",R.x,", ",R.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:R.use_beaker?"Reservoir: "+R.total_volume+"/"+R.maximum_volume:"Using internal synthesizer"})]},R.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(x,"sortOrder",!0),R=P[0],D=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?D(!R):(j(F),D(!0))}return K}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(x,"sortOrder2",!0),R=P[0],D=P[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:M!==F&&"transparent",onClick:function(){function K(){M===F?D(!R):(j(F),D(!0))}return K}(),children:[U,M===F&&(0,e.createComponentVNode)(2,o.Icon,{name:R?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),M=E.act,j=E.data,P=j.screen,R=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function D(){M("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function D(){M("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:P===6,onClick:function(){function D(){M("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===7,onClick:function(){function D(){return M("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&R&&!R.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",R.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",f)},68211:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=p.product,s=p.productImage,u=p.productCategory,C=l.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d.price>C,icon:"shopping-cart",content:d.price,textAlign:"left",onClick:function(){function g(){return f("purchase",{name:d.name,category:u})}return g}()})})]})},N=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],s=f.products,u=f.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[C[d]].map(function(g){return(0,e.createComponentVNode)(2,m,{product:g,productImage:u[g.path],productCategory:C[d]},g.name)})})},k=r.MerchVendor=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.user_cash,s=l.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function u(){return f("change")}return u}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",d!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[d||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return y}(),S=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=(0,a.useLocalState)(i,"tabIndex",1),d=l[0],s=l[1],u=f.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:d===1,onClick:function(){function C(){return s(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:d===2,onClick:function(){function C(){return s(2)}return C}(),children:"Decorations"})]})}},14162:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=["title","items"];function k(l,d){if(l==null)return{};var s={},u=Object.keys(l),C,g;for(g=0;g =0)&&(s[C]=l[C]);return s}var S={Alphabetical:function(){function l(d,s){return d-s}return l}(),Availability:function(){function l(d,s){return-(d.affordable-s.affordable)}return l}(),Price:function(){function l(d,s){return d.price-s.price}return l}()},y=r.MiningVendor=function(){function l(d,s){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return l}(),p=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return C("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.has_id,h=g.id,V=g.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],M=x[1],j=(0,a.createSearch)(B,function(D){return D[0]}),P=!1,R=Object.entries(V).map(function(D,F){var U=Object.entries(D[1]).filter(j).map(function(K){return K[1].affordable=v&&h.points>=K[1].price,K[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:D[0],items:U},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,s){var u=(0,t.useLocalState)(s,"search",""),C=u[0],g=u[1],v=(0,t.useLocalState)(s,"sort",""),h=v[0],V=v[1],b=(0,t.useLocalState)(s,"descending",!1),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},f=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=d.title,h=d.items,V=k(d,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points =0)&&(T[x]=I[x]);return T}var c=128,f=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.is_security,j=E.is_admin,P=E.is_silent,R=E.is_printing,D=E.screen,F=E.channels,U=E.channel_idx,K=U===void 0?-1:U,H=(0,t.useLocalState)(T,"menuOpen",!1),z=H[0],G=H[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),Q=X[0],ae=X[1],re=(0,t.useLocalState)(T,"censorMode",!1),de=re[0],pe=re[1],ye;D===0||D===2?ye=(0,e.createComponentVNode)(2,u):D===1&&(ye=(0,e.createComponentVNode)(2,C));var Ie=F.reduce(function(he,ne){return he+ne.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:M&&"security",width:800,height:600,children:[Q?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,k.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",z&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function he(){return G(!z)}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:D===0,onClick:function(){function he(){return x("headlines")}return he}(),children:Ie>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Ie>=10?"9+":Ie})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function he(){return x("jobs")}return he}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(he){return(0,e.createComponentVNode)(2,s,{icon:he.icon,title:he.name,selected:D===2&&F[K-1]===he,onClick:function(){function ne(){return x("channel",{uid:he.uid})}return ne}(),children:he.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:he.unread>=10?"9+":he.unread})},he)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!M||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function he(){return(0,k.modalOpen)(T,"wanted_notice")}return he}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:de?"minus-square":"minus-square-o",title:"Censor Mode: "+(de?"On":"Off"),mb:"0.5rem",onClick:function(){function he(){return pe(!de)}return he}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function he(){return(0,k.modalOpen)(T,"create_story")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function he(){return(0,k.modalOpen)(T,"create_channel")}return he}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function he(){return x("print_newspaper")}return he}()}),(0,e.createComponentVNode)(2,s,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function he(){return x("toggle_mute")}return he}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,M=E===void 0?"":E,j=w.iconSpin,P=w.selected,R=P===void 0?!1:P,D=w.security,F=D===void 0?!1:D,U=w.onClick,K=w.title,H=w.children,z=i(w,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},z,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:M,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:K}),H]})))},u=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.screen,j=E.is_admin,P=E.channel_idx,R=E.channel_can_manage,D=E.channels,F=E.stories,U=E.wanted,K=(0,t.useLocalState)(T,"fullStories",[]),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"censorMode",!1),X=G[0],Q=G[1],ae=M===2&&P>-1?D[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:ae?ae.icon:"newspaper",mr:"0.5rem"}),ae?ae.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(re){return!H.includes(re.uid)&&re.body.length+3>c?Object.assign({},re,{body_short:re.body.substr(0,c-4)+"..."}):re}).map(function(re,de){return(0,e.createComponentVNode)(2,g,{story:re},de)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!ae&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!ae.admin&&!j,selected:ae.censored,icon:ae.censored?"comment-slash":"comment",content:ae.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function re(){return x("censor_channel",{uid:ae.uid})}return re}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function re(){return(0,k.modalOpen)(T,"manage_channel",{uid:ae.uid})}return re}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:ae.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:ae.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:ae.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:ae.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),F.reduce(function(re,de){return re+de.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.jobs,j=E.wanted,P=Object.entries(M).reduce(function(R,D){var F=D[0],U=D[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,g,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?f.map(function(R){return Object.assign({},l[R],{id:R,jobs:M[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=w.story,j=w.wanted,P=j===void 0?!1:j,R=E.is_admin,D=(0,t.useLocalState)(T,"fullStories",[]),F=D[0],U=D[1],K=(0,t.useLocalState)(T,"censorMode",!1),H=K[0],z=K[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),M.censor_flags&2&&"[REDACTED]"||M.title||"News from "+M.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&H&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:M.censor_flags&2,icon:M.censor_flags&2?"comment-slash":"comment",content:M.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return x("censor_story",{uid:M.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",M.author," |\xA0",!!R&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),M.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),M.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(M.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:M.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!M.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+M.uid+".png",float:"right",ml:"0.5rem"}),(M.body_short||M.body).split("\n").map(function(G,X){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},X)}),M.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return U([].concat(F,[M.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=i(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),M=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return j(A)}return P}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function M(){return E("")}return M}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!M){(0,k.modalClose)(T);return}var j=w.id==="manage_channel",P=!!w.args.is_admin,R=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),F=D[0],U=D[1],K=(0,t.useLocalState)(T,"name",(M==null?void 0:M.name)||""),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"description",(M==null?void 0:M.description)||""),X=G[0],Q=G[1],ae=(0,t.useLocalState)(T,"icon",(M==null?void 0:M.icon)||"newspaper"),re=ae[0],de=ae[1],pe=(0,t.useLocalState)(T,"isPublic",j?!!(M!=null&&M.public):!1),ye=pe[0],Ie=pe[1],he=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin)===1||!1),ne=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+M.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function q(se,me){return U(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:H,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function q(se,me){return Q(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:re,width:"35%",mr:"0.5rem",onInput:function(){function q(se,me){return de(me)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:re,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Ie(!ye)}return q}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||H.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:H.substr(0,49),description:X.substr(0,128),icon:re,public:ye?1:0,admin_locked:ne?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.channels,P=E.channel_idx,R=P===void 0?-1:P,D=!!w.args.is_admin,F=w.args.scanned_user,U=j.slice().sort(function(q,se){if(R<0)return 0;var me=j[R-1];if(me.uid===q.uid)return-1;if(me.uid===se.uid)return 1}).filter(function(q){return D||!q.frozen&&(q.author===F||!!q.public)}),K=(0,t.useLocalState)(T,"author",F||"Unknown"),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),X=G[0],Q=G[1],ae=(0,t.useLocalState)(T,"title",""),re=ae[0],de=ae[1],pe=(0,t.useLocalState)(T,"body",""),ye=pe[0],Ie=pe[1],he=(0,t.useLocalState)(T,"adminLocked",!1),ne=he[0],ce=he[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!D,width:"100%",value:H,onInput:function(){function q(se,me){return z(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:U.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(se){return Q(se)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:re,onInput:function(){function q(se,me){return de(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ye,onInput:function(){function q(se,me){return Ie(me)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(M?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:re,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"}),ye.split("\n").map(function(q,se){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:H.trim().length===0||X.trim().length===0||re.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,k.modalAnswer)(T,"create_story","",{author:H,channel:X,title:re.substr(0,127),body:ye.substr(0,1023),admin_locked:ne?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,M=E.photo,j=E.wanted,P=!!w.args.is_admin,R=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(j==null?void 0:j.author)||R||"Unknown"),F=D[0],U=D[1],K=(0,t.useLocalState)(T,"name",(j==null?void 0:j.title.substr(8))||""),H=K[0],z=K[1],G=(0,t.useLocalState)(T,"description",(j==null?void 0:j.body)||""),X=G[0],Q=G[1],ae=(0,t.useLocalState)(T,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),re=ae[0],de=ae[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:F,onInput:function(){function pe(ye,Ie){return U(Ie)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:H,maxLength:"128",onInput:function(){function pe(ye,Ie){return z(Ie)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function pe(ye,Ie){return Q(Ie)}return pe}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:M,content:M?"Eject: "+M.name:"Insert Photo",tooltip:!M&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function pe(){return x(M?"eject_photo":"attach_photo")}return pe}()}),!!M&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+M.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"lock":"lock-open",content:re?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function pe(){return de(!re)}return pe}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function pe(){x("clear_wanted_notice"),(0,k.modalClose)(T)}return pe}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||H.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function pe(){(0,k.modalAnswer)(T,w.id,"",{author:F,name:H.substr(0,127),description:X.substr(0,511),admin_locked:re?1:0})}return pe}()})]})};(0,k.modalRegisterBodyOverride)("create_channel",V),(0,k.modalRegisterBodyOverride)("manage_channel",V),(0,k.modalRegisterBodyOverride)("create_story",b),(0,k.modalRegisterBodyOverride)("wanted_notice",B)},46940:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.NuclearBomb=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authdisk,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return N}()},35478:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(68100),m=n(17899),N=n(24674),k=n(45493),S=r.NumberInputModal=function(){function p(i,c){var f=(0,m.useBackend)(c),l=f.act,d=f.data,s=d.init_value,u=d.large_buttons,C=d.message,g=C===void 0?"":C,v=d.timeout,h=d.title,V=(0,m.useLocalState)(c,"input",s),b=V[0],B=V[1],I=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,k.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&l("submit",{entry:b}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,y,{input:b,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),y=function(i,c){var f=(0,m.useBackend)(c),l=f.act,d=f.data,s=d.min_value,u=d.max_value,C=d.init_value,g=d.round_value,v=i.input,h=i.onClick,V=i.onChange,b=Math.round(v!==s?Math.max(v/2,s):u/2),B=v===s&&s>0||v===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===s,icon:"angle-double-left",onClick:function(){function I(){return h(s)}return I}(),tooltip:v===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:s,maxValue:u,onChange:function(){function I(w,T){return V(T)}return I}(),onEnter:function(){function I(w,T){return l("submit",{entry:T})}return I}(),value:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===u,icon:"angle-double-right",onClick:function(){function I(){return h(u)}return I}(),tooltip:v===u?"Max":"Max ("+u+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===C,icon:"redo",onClick:function(){function I(){return h(C)}return I}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},98476:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(45493),m=n(24674),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.hasOccupant,h=g.choice,V;return h?V=(0,e.createComponentVNode)(2,f):V=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return C("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return C("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return l}(),i=function(d,s){var u=(0,t.useBackend)(s),C=u.data,g=C.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),k.map(function(v,h){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:y[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.bloodMax,value:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(d,s){var u=(0,t.useBackend)(s),C=u.act,g=u.data,v=g.verbose,h=g.health,V=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return C(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return C(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return C(I?"critOff":"critOn")}return w}()})})]})}},98702:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(28234);function k(u,C){var g=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(g)return(g=g.call(u)).next.bind(g);if(Array.isArray(u)||(g=S(u))||C&&u&&typeof u.length=="number"){g&&(u=g);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(u,C){if(u){if(typeof u=="string")return y(u,C);var g=Object.prototype.toString.call(u).slice(8,-1);if(g==="Object"&&u.constructor&&(g=u.constructor.name),g==="Map"||g==="Set")return Array.from(u);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return y(u,C)}}function y(u,C){(C==null||C>u.length)&&(C=u.length);for(var g=0,v=new Array(C);g g},f=function(C,g){var v=C.name,h=g.name;if(!v||!h)return 0;var V=v.match(p),b=h.match(p);if(V&&b&&v.replace(p,"")===h.replace(p,"")){var B=parseInt(V[1],10),I=parseInt(b[1],10);return B-I}return c(v,h)},l=function(C,g){var v=C.searchText,h=C.source,V=C.title,b=C.color,B=C.sorted,I=h.filter(i(v));return B&&I.sort(f),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+h.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,d,{thing:w,color:b},w.name)})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.color,b=C.thing;return(0,e.createComponentVNode)(2,o.Button,{color:V,tooltip:b.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,N.classes)(["orbit_job16x16",b.assigned_role_sprite])})," ",b.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return h("orbit",{ref:b.ref})}return B}(),children:[b.name,b.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",b.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function u(C,g){for(var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alive,B=V.antagonists,I=V.highlights,w=V.response_teams,T=V.auto_observe,A=V.dead,x=V.ghosts,E=V.misc,M=V.npcs,j=(0,t.useLocalState)(g,"searchText",""),P=j[0],R=j[1],D={},F=k(B),U;!(U=F()).done;){var K=U.value;D[K.antag]===void 0&&(D[K.antag]=[]),D[K.antag].push(K)}var H=Object.entries(D);H.sort(function(G,X){return c(G[0],X[0])});var z=function(){function G(X){for(var Q=0,ae=[H.map(function(pe){var ye=pe[0],Ie=pe[1];return Ie}),I,b,x,A,M,E];Q 0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:H.map(function(G){var X=G[0],Q=G[1];return(0,e.createComponentVNode)(2,o.Section,{title:X+" - ("+Q.length+")",level:2,children:Q.filter(i(P)).sort(f).map(function(ae){return(0,e.createComponentVNode)(2,d,{color:"bad",thing:ae},ae.name)})},X)})}),I.length>0&&(0,e.createComponentVNode)(2,l,{title:"Highlights",source:I,searchText:P,color:"teal"}),(0,e.createComponentVNode)(2,l,{title:"Response Teams",source:w,searchText:P,color:"purple"}),(0,e.createComponentVNode)(2,l,{title:"Alive",source:b,searchText:P,color:"good"}),(0,e.createComponentVNode)(2,l,{title:"Ghosts",source:x,searchText:P,color:"grey"}),(0,e.createComponentVNode)(2,l,{title:"Dead",source:A,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"NPCs",source:M,searchText:P,sorted:!1}),(0,e.createComponentVNode)(2,l,{title:"Misc",source:E,searchText:P,sorted:!1})]})})}return u}()},74015:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=n(81856);function k(u){if(u==null)throw new TypeError("Cannot destructure "+u)}var S=(0,N.createLogger)("OreRedemption"),y=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function u(C,g){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})})})}return u}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.id,B=V.points,I=V.disk,w=Object.assign({},(k(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:y(B)})}),(0,e.createComponentVNode)(2,o.Divider),I?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.sheets,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,d,{ore:I},I.id)})]})))})},f=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alloys,B=Object.assign({},(k(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},l=function(C,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})},s=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})}},48824:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),N=n(70752),k=function(p){var i;try{i=N("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw f}var c=i[p];return c||(0,m.routingError)("missingExport",p)},S=r.PAI=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.app_template,s=l.app_icon,u=l.app_title,C=k(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),u,d!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return f("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return f("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return y}()},41565:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(91807),N=n(59395),k=function(c){var f;try{f=N("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw d}var l=f[c];return l||(0,m.routingError)("missingExport",c)},S=r.PDA=function(){function i(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.app,C=s.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=k(u.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u.icon,mr:1}),u.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),y=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.idInserted,C=s.idLink,g=s.stationTime,v=s.cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function h(){return d("Authenticate")}return h}(),content:u?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return d("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,f){var l=(0,a.useBackend)(f),d=l.act,s=l.data,u=s.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!u.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:u.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},78704:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(92986),N=r.Pacman=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.active,l=c.anchored,d=c.broken,s=c.emagged,u=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,V=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=V/b,M=T*w,j=Math.round(g/C),P=Math.round(j/60),R=j>120?P+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(d||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!d&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!d&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!d&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:f,onClick:function(){function D(){return i("toggle_power")}return D}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(F,U){return i("change_power",{change_power:U})}return D}()}),"(",(0,m.formatPower)(M),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:f||h||!A,onClick:function(){function D(){return i("eject_fuel")}return D}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[C/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!A&&(C?R:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return k}()},78643:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ParticleAccelerator=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.assembled,f=i.power,l=i.strength,d=i.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return p("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,disabled:!c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||l===0,onClick:function(){function s(){return p("remove_strength")}return s}(),mr:"4px"}),l,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||l===d,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return N}()},34026:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PdaPainter=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,N)})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function l(){return f("insert_pda")}return l}()})]})})})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,S)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(d).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function u(){return f("choose_pda",{selectedPda:s})}return u}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.current_appearance,s=l.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function u(){return f("eject_pda")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function u(){return f("paint_pda")}return u}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},81378:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.PersonalCrafting=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.busy,d=f.category,s=f.display_craftable_only,u=f.display_compact,C=f.prev_cat,g=f.next_cat,v=f.subcategory,h=f.prev_subcat,V=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),u?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,k)]})]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.display_craftable_only,d=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)}),!l&&s.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.display_craftable_only,d=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)}),!l&&s.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)})]})}},58792:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Photocopier=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:f.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function l(){return c("minus")}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function l(){return c("add")}return l}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:f.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.copyitem&&!f.mob,content:f.copyitem?f.copyitem:f.mob?f.mob+"'s ass!":"document",onClick:function(){function l(){return c("removedocument")}return l}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.folder,content:f.folder?f.folder:"folder",onClick:function(){function l(){return c("removefolder")}return l}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,k)]})})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function d(){return c("copy")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function d(){return c("scandocument")}return d}()}),!!l&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function d(){return c("ai_text")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function d(){return c("ai_pic")}return d}()})],4)],0)},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:f.files.map(function(l){return(0,e.createComponentVNode)(2,t.Section,{title:l.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:f.toner<=0,onClick:function(){function d(){return c("filecopy",{uid:l.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function d(){return c("deletefile",{uid:l.uid})}return d}()})]})},l.name)})})}},27902:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=["tempKey"];function N(p,i){if(p==null)return{};var c={},f=Object.keys(p),l,d;for(d=0;d =0)&&(c[l]=p[l]);return c}var k={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(i,c){var f=i.tempKey,l=N(i,m),d=k[f];if(!d)return null;var s=(0,a.useBackend)(c),u=s.data,C=s.act,g=u.currentTemp,v=d.label,h=d.icon,V=f===g,b=function(){C("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:b},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},y=r.PoolController=function(){function p(i,c){for(var f=(0,a.useBackend)(c),l=f.data,d=l.emagged,s=l.currentTemp,u=k[s]||k.normal,C=u.label,g=u.color,v=[],h=0,V=Object.entries(k);h 50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=m.pureComponentHooks;var s=function(C){var g,v,h=C.status;switch(h){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var V=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:V})};s.defaultHooks=m.pureComponentHooks},27262:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(91097),m=n(99665),N=n(68159),k=n(27527),S=n(45493),y=r.PrisonerImplantManager=function(){function p(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.loginState,u=d.prisonerInfo,C=d.chemicalInfo,g=d.trackingInfo,v;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.name?"eject":"id-card",selected:u.name,content:u.name?u.name:"-----",tooltip:u.name?"Eject ID":"Insert ID",onClick:function(){function V(){return l("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[u.points!==null?u.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:u.points===null,content:"Reset",onClick:function(){function V(){return l("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[u.goal!==null?u.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:u.goal===null,content:"Edit",onClick:function(){function V(){return(0,m.modalOpen)(c,"set_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:u.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:g.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function b(){return(0,m.modalOpen)(c,"warn",{uid:V.uid})}return b}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(V){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",V.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:V.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volumef;return(0,e.createComponentVNode)(2,o.Stack,{className:"PrizeCounter__Item",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{lineHeight:"0",align:"center",children:(0,e.createVNode)(1,"div",(0,a.classes)(["prize_counter64x64",v.imageID]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,mt:1,children:v.name}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{mb:1,children:v.desc})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:(0,a.classes)(["PrizeCounter__BuyButton",h&&"PrizeCounter__BuyButton--disabled"]),icon:"ticket",content:v.cost,tooltip:h?"Not enough tickets.":null,tooltipPosition:"top-end",onClick:function(){function V(){return!h&&i("purchase",{purchase:v.itemID})}return V}()})})]},v.name)})})})})})})}return k}()},87963:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(99665),N=n(57842),k=r.RCD=function(){function l(d,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})]})}return l}(),S=function(d,s){var u=(0,a.useBackend)(s),C=u.data,g=C.matter,v=C.max_matter,h=v*.7,V=v*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[V,h],bad:[-1/0,V]},value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+v+" units"})})})})},y=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=d.mode_type,h=g.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:h===v?1:0,onClick:function(){function V(){return C("mode",{mode:v})}return V}()})})},i=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.door_name,h=g.electrochromic,V=g.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function b(){return(0,m.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:V===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return C("electrochromic")}return b}()})})]})})})},c=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.tab,h=g.locked,V=g.one_access,b=g.selected_accesses,B=g.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function I(){return C("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function I(){return C("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:1})})]})}):v===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return C("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,N.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return C("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:V,content:"One",onClick:function(){function I(){return C("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V,width:4,content:"All",onClick:function(){function I(){return C("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(w){return C("set",{access:w})}return I}(),grantAll:function(){function I(){return C("grant_all")}return I}(),denyAll:function(){function I(){return C("clear_all")}return I}(),grantDep:function(){function I(w){return C("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return C("deny_region",{region:w})}return I}()})})],4)},f=function(d,s){for(var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.door_types_ui_list,h=g.door_type,V=d.check_number,b=[],B=0;B 0?"envelope-open-text":"envelope",onClick:function(){function B(){return C("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return C("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return C("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return C("setScreen",{setScreen:3})}return B}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return C("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return C("setScreen",{setScreen:8})}return B}()})})]})})},k=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.department,h=[],V;switch(d.purpose){case"ASSISTANCE":h=g.assist_dept,V="Request assistance from another department";break;case"SUPPLIES":h=g.supply_dept,V="Request supplies from another department";break;case"INFO":h=g.info_dept,V="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return C("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(b){return b!==v}).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return C("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return C("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return C("setScreen",{setScreen:0})}return h}()})})},y=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v,h;switch(d.type){case"MESSAGES":v=g.message_log,h="Message Log";break;case"SHIPPING":v=g.shipping_log,h="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()}),children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[V.map(function(b,B){return(0,e.createVNode)(1,"div",null,b,0,null,B)}),(0,e.createVNode)(1,"hr")]},V)})})})},p=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.recipient,h=g.message,V=g.msgVerified,b=g.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return C("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:b})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function B(){return C("department",{department:v})}return B}()})})})],4)},i=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.message,h=g.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function V(){return C("writeAnnouncement")}return V}()})],4),children:v})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&v),onClick:function(){function V(){return C("sendAnnouncement")}return V}()})]})})],4)},c=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.shipDest,h=g.msgVerified,V=g.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return C("setScreen",{setScreen:0})}return b}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&h),onClick:function(){function b(){return C("printLabel")}return b}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:v===b?"Selected":"Select",selected:v===b,onClick:function(){function B(){return C("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},f=function(d,s){var u=(0,a.useBackend)(s),C=u.act,g=u.data,v=g.secondaryGoalAuth,h=g.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(v&&h),onClick:function(){function V(){return C("requestSecondaryGoal")}return V}()})]})})],4)}},89641:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(96524),a=n(17899),t=n(45493),o=n(24674),m=n(3422),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},k=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,m.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function d(s){return s===N.LATHE||s===N.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return d}()}),l?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:l})})}):null]})})})}return y}()},19348:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.CurrentLevels=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var f=i.name,l=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},f)})]})}return m}()},338:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N="design",k="tech",S=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function V(){return v("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return v("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,i)]})]}):null},y=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_data;if(!h)return null;var V=h.name,b=h.lathe_types,B=h.materials,I=b.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:V}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===k?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var b=h===k?"eject_tech":"eject_design";v(b)}return V}()}):null},c=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=g.disk_data,h=g.disk_type,V=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case N:return(0,e.createComponentVNode)(2,y);case k:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},f=function(s,u){var C=(0,a.useBackend)(u),g=C.data,v=C.act,h=g.disk_type,V=g.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,I=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===k?v("copy_tech",{id:I}):v("copy_design",{id:I})}return w}()})},I)})})})})},l=r.DataDiskMenu=function(){function d(s,u){var C=(0,a.useBackend)(u),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,f)}return h}()})],4):null}return d}()},90785:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.DeconstructionMenu=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_item,c=y.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function f(){p("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){p("eject_item")}return f}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},34492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheCategory=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.category,f=p.matching_designs,l=p.menu,d=l===4,s=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(u){var C=u.id,g=u.name,v=u.can_build,h=u.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:g,disabled:v<1,onClick:function(){function V(){return i(s,{id:C,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return i(s,{id:C,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return i(s,{id:C,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},C)})})]})}return N}()},84275:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheChemicalStorage=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_chemicals,c=y.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function f(){var l=c?"disposeallP":"disposeallI";p(l)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(f){var l=f.volume,d=f.name,s=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function u(){var C=c?"disposeP":"disposeI";p(C,{id:s})}return u}()})},s)})})]})}return m}()},12638:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=r.LatheMainMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.data,i=y.act,c=p.menu,f=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function s(){i("setCategory",{category:d})}return s}()})},d)})})]})}return N}()},89004:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterialStorage=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=S.act,i=y.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var f=c.id,l=c.amount,d=c.name,s=function(){function v(h){var V=y.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(V,{id:f,amount:h})}return v}(),u=Math.floor(l/2e3),C=l<1,g=u===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",u," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return s(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return s("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return s(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return s(50)}return v}()})],0):null})]},f)})})})}return m}()},73856:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheMaterials=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data,p=y.total_materials,i=y.max_materials,c=y.max_chemicals,f=y.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},75955:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(96524),a=n(17899),t=n(78345),o=n(3422),m=n(24674),N=n(89641),k=r.LatheMenu=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,f=c.menu,l=c.linked_lathe,d=c.linked_imprinter;return f===4&&!l?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!d?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},72880:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LatheSearch=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return y("search",{to_search:c})}return p}()})})}return m}()},62306:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N=r.MainMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.disk_type,f=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter,s=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(u){var C=u.name,g=u.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return k}()},99941:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.RndNavButton=function(){function m(N,k){var S=N.icon,y=N.children,p=N.disabled,i=N.content,c=(0,a.useBackend)(k),f=c.data,l=c.act,d=f.menu,s=f.submenu,u=d,C=s;return N.menu!==null&&N.menu!==void 0&&(u=N.menu),N.submenu!==null&&N.submenu!==void 0&&(C=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:S,disabled:p,onClick:function(){function g(){l("nav",{menu:u,submenu:C})}return g}(),children:y})}return m}()},24448:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(96524),a=n(3422),t=n(24674),o=n(89641),m=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S!==o.MENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function k(S){return S!==o.SUBMENU.MAIN}return k}(),render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function k(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return k}(),submenu:o.SUBMENU.MAIN,render:function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return k}()})]})}return N}()},78345:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(17899),a=r.RndRoute=function(){function t(o,m){var N=o.render,k=(0,e.useBackend)(m),S=k.data,y=S.menu,p=S.submenu,i=function(){function f(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return f}(),c=i(o.menu,y)&&i(o.submenu,p);return c?N():null}return t}()},56454:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(3422),m=n(89641),N=r.SettingsMenu=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=p.act,f=i.sync,l=i.admin,d=i.linked_destroy,s=i.linked_lathe,u=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!f,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return k}()},3422:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(19348);r.CurrentLevels=e.CurrentLevels;var a=n(338);r.DataDiskMenu=a.DataDiskMenu;var t=n(90785);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(34492);r.LatheCategory=o.LatheCategory;var m=n(84275);r.LatheChemicalStorage=m.LatheChemicalStorage;var N=n(12638);r.LatheMainMenu=N.LatheMainMenu;var k=n(73856);r.LatheMaterials=k.LatheMaterials;var S=n(89004);r.LatheMaterialStorage=S.LatheMaterialStorage;var y=n(75955);r.LatheMenu=y.LatheMenu;var p=n(72880);r.LatheSearch=p.LatheSearch;var i=n(62306);r.MainMenu=i.MainMenu;var c=n(24448);r.RndNavbar=c.RndNavbar;var f=n(99941);r.RndNavButton=f.RndNavButton;var l=n(78345);r.RndRoute=l.RndRoute;var d=n(56454);r.SettingsMenu=d.SettingsMenu},71123:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(78234),N=function(y,p){var i=y/p;return i<=.2?"good":i<=.5?"average":"bad"},k=r.RobotSelfDiagnosis=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.data,f=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:N(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return S}()},98951:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.RoboticsControlConsole=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.can_hack,l=c.safety,d=c.show_lock_all,s=c.cyborgs,u=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function C(){return i("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:l,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return i("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:u,can_hack:f})]})})}return k}(),N=function(S,y){var p=S.cyborgs,i=S.can_hack,c=(0,a.useBackend)(y),f=c.act,l=c.data,d="Detonate";return l.detonate_cooldown>0&&(d+=" ("+l.detonate_cooldown+"s)"),p.length?p.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,buttons:(0,e.createFragment)([!!s.hackable&&!s.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function u(){return f("hackbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:s.locked_down?"unlock":"lock",color:s.locked_down?"good":"default",content:s.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function u(){return f("stopbot",{uid:s.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:d,disabled:!l.auth||l.detonate_cooldown>0,color:"bad",onClick:function(){function u(){return f("killbot",{uid:s.uid})}return u}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s.status?"bad":s.locked_down?"average":"good",children:s.status?"Not Responding":s.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:s.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.health>50?"good":"bad",value:s.health/100})}),typeof s.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s.charge>30?"good":"bad",value:s.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:s.cell_capacity<3e4?"average":"good",children:s.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!s.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:s.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:s.synchronization?"default":"average",children:s.synchronization||"None"})})]})},s.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},2289:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Safe=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.dial,s=l.open,u=l.locked,C=l.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*d+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.dial,s=l.open,u=l.locked,C=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!u,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function V(){return f(h?"turnleft":"turnright",{num:v})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:u,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return f("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:d})]})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:d.map(function(s,u){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return f("retrieve",{index:u+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,i){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},49334:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SatelliteControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.satellites,f=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,s=i.meteor_shield_coverage_max,u=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u>=100?"good":"average",value:d,maxValue:s,children:[u," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return N}()},54892:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(96524),a=n(28234),t=n(17899),o=n(24674),m=n(45493),N=n(5126),k=n(68100),S=r.SecureStorage=function(){function c(f,l){return(0,e.createComponentVNode)(2,m.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),y=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=window.event?f.which:f.keyCode;if(u===k.KEY_ENTER){f.preventDefault(),s("keypad",{digit:"E"});return}if(u===k.KEY_ESCAPE){f.preventDefault(),s("keypad",{digit:"C"});return}if(u===k.KEY_BACKSPACE){f.preventDefault(),s("backspace");return}if(u>=k.KEY_0&&u<=k.KEY_9){f.preventDefault(),s("keypad",{digit:u-k.KEY_0});return}if(u>=k.KEY_NUMPAD_0&&u<=k.KEY_NUMPAD_9){f.preventDefault(),s("keypad",{digit:u-k.KEY_NUMPAD_0});return}},p=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.locked,g=u.no_passcode,v=u.emagged,h=u.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return y(I,l)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,i,{number:I})},I)})},B[0])})})]})},i=function(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=f.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return s("keypad",{digit:C})}return g}()})}},56798:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(99665),k=n(68159),S=n(27527),y=n(84537),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(h,V){(0,N.modalOpen)(h,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function v(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,l):T===2&&(A=(0,e.createComponentVNode)(2,u));else return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,y.TemporaryNotice),(0,e.createComponentVNode)(2,f),A]})})]})}return v}(),f=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.currentPage,T=I.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},l=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),M=E[0],j=E[1],P=(0,t.useLocalState)(V,"sortOrder",!0),R=P[0],D=P[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var K=R?1:-1;return F[M].localeCompare(U[M])*K}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},d=function(h,V){var b=(0,t.useLocalState)(V,"sortId","name"),B=b[0],I=b[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==x&&"transparent",fluid:!0,onClick:function(){function M(){B===x?A(!T):(I(x),A(!0))}return M}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function E(){return B("new_general")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Cell Log",onClick:function(){function E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function E(M,j){return x(j)}return E}()})})]})},u=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:w,icon:w?"spinner":"print",iconSpin:!!w,content:"Print Record",onClick:function(){function x(){return B("print_record")}return x}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!A||!A.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function x(){return B("new_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function M(){return i(V,x)}return M}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(h,V){var b=(0,t.useBackend)(V),B=b.data,I=B.general;return!I||!I.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(""+w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function A(){return i(V,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:w,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},59981:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=n(45493),N=n(99665);function k(d,s){var u=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(u)return(u=u.call(d)).next.bind(u);if(Array.isArray(d)||(u=S(d))||s&&d&&typeof d.length=="number"){u&&(d=u);var C=0;return function(){return C>=d.length?{done:!0}:{done:!1,value:d[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(d,s){if(d){if(typeof d=="string")return y(d,s);var u=Object.prototype.toString.call(d).slice(8,-1);if(u==="Object"&&d.constructor&&(u=d.constructor.name),u==="Map"||u==="Set")return Array.from(d);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return y(d,s)}}function y(d,s){(s==null||s>d.length)&&(s=d.length);for(var u=0,C=new Array(s);u =A},g=function(T,A){return T<=A},v=s.split(" "),h=[],V=function(){var T=I.value,A=T.split(":");if(A.length===0)return 0;if(A.length===1)return h.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(A[0].toLocaleLowerCase())}),0;if(A.length>2)return{v:function(){function M(j){return!1}return M}()};var x,E=u;if(A[1][A[1].length-1]==="-"?(E=g,x=Number(A[1].substring(0,A[1].length-1))):A[1][A[1].length-1]==="+"?(E=C,x=Number(A[1].substring(0,A[1].length-1))):x=Number(A[1]),isNaN(x))return{v:function(){function M(j){return!1}return M}()};switch(A[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":h.push(function(M){return E(M.lifespan,x)});break;case"e":case"end":case"endurance":h.push(function(M){return E(M.endurance,x)});break;case"m":case"mat":case"maturation":h.push(function(M){return E(M.maturation,x)});break;case"pr":case"prod":case"production":h.push(function(M){return E(M.production,x)});break;case"y":case"yield":h.push(function(M){return E(M.yield,x)});break;case"po":case"pot":case"potency":h.push(function(M){return E(M.potency,x)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":h.push(function(M){return E(M.amount,x)});break;default:return{v:function(){function M(j){return!1}return M}()}}},b,B=k(v),I;!(I=B()).done;)if(b=V(),b!==0&&b)return b.v;return function(w){for(var T=0,A=h;T=1?Number(E):1)}return A}()})]})]})}},33454:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleConsole=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i.status?i.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!i.shuttle&&(!!i.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:i.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function f(){return p("move",{move:c.id})}return f}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!i.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!i.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return N}()},50451:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.ShuttleManipulator=function(){function y(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),f=c[0],l=c[1],d=function(){function s(u){switch(u){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===0,onClick:function(){function s(){return l(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function s(){return l(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function s(){return l(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),d(f)]})})})}return y}(),N=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return f("jump_to",{type:"mobile",id:s.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function u(){return f("fast_travel",{id:s.id})}return u}()})]})]})},s.name)})})},k=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.templates_tabs,s=l.existing_shuttle,u=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===s.id,icon:"file",onClick:function(){function g(){return f("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!s&&u[s.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return f("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.existing_shuttle,s=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return f("jump_to",{type:"mobile",id:d.id})}return u}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function u(){return f("preview",{shuttle_id:s.shuttle_id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function u(){return f("load",{shuttle_id:s.shuttle_id})}return u}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},99050:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},y=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function u(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=b?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return u}(),i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4)},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[b.stat][0],children:N[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:y[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},f=function(C,g){var v=(0,t.useBackend)(g),h=v.data,V=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:k.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[b[1]]/100,ranges:S,children:(0,a.round)(V[b[1]],0)},B)},B)})})})},l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=V.isBeakerLoaded,I=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.chemicals,I=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="average",E=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:E,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(M,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+M>I||b.stat===2,icon:"syringe",content:"Inject "+M+"u",title:"Inject "+M+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return h("chemical",{chemid:T.id,amount:M})}return P}()},j)})]})})},A)})})},s=function(C,g){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},37763:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SlotMachine=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function f(){return p("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return N}()},26654:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Smartfridge=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.secure,f=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"Drying rack":"Contents",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function s(){return p("drying")}return s}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(s,u){return s.display_name.localeCompare(u.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function u(){return p("vend",{index:s.vend,amount:1})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function u(C,g){return p("vend",{index:s.vend,amount:g})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function u(){return p("vend",{index:s.vend,amount:s.quantity})}return u}()})]})]},s)})]})]})})})}return N}()},71124:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(92986),m=n(45493),N=1e3,k=r.Smes=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.capacityPercent,d=f.capacity,s=f.charge,u=f.inputAttempt,C=f.inputting,g=f.inputLevel,v=f.inputLevelMax,h=f.inputAvailable,V=f.outputPowernet,b=f.outputAttempt,B=f.outputting,I=f.outputLevel,w=f.outputLevelMax,T=f.outputUsed,A=l>=100&&"good"||C&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sync-alt":"times",selected:u,onClick:function(){function E(){return c("tryinput")}return E}(),children:u?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===0,onClick:function(){function E(){return c("input",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:g/N,fillValue:h/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*N,1)}return E}(),onChange:function(){function E(M,j){return c("input",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,onClick:function(){function E(){return c("input",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":s>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:I/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(M){return(0,o.formatPower)(M*N,1)}return E}(),onChange:function(){function E(M,j){return c("output",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},21786:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SolarControl=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=0,f=1,l=2,d=i.generated,s=i.generated_ratio,u=i.tracking_state,C=i.tracking_rate,g=i.connected_panels,v=i.connected_tracker,h=i.cdir,V=i.direction,b=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:s,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),u===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",b,")"," "]}),u===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[u!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:u===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:u===f,onClick:function(){function B(){return p("track",{track:f})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:u===l,disabled:!v,onClick:function(){function B(){return p("track",{track:l})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),u===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},31202:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpawnersMenu=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return p("jump",{ID:f.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("spawn",{ID:f.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return N}()},84800:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SpecMenu=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})})}return p}(),N=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("hemomancer")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on blood magic and the manipulation of blood around you.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Vampiric claws",16),(0,e.createTextVNode)(": Unlocked at 150 blood, allows you to summon a robust pair of claws that attack rapidly, drain a targets blood, and heal you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood Barrier",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to select two turfs and create a wall between them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood tendrils",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to slow everyone in a targeted 3x3 area after a short delay.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Sanguine pool",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to travel at high speeds for a short duration. Doing this leaves behind blood splatters. You can move through anything but walls and space when doing this.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Predator senses",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to sniff out anyone within the same sector as you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood eruption",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to manipulate all nearby blood splatters, in 4 tiles around you, into spikes that impale anyone stood ontop of them.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"The blood bringers rite",16),(0,e.createTextVNode)(": When toggled you will rapidly drain the blood of everyone who is nearby and use it to heal yourself slightly and remove any incapacitating effects rapidly.")],4)]})})},k=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("umbrae")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on darkness, stealth ambushing and mobility.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Cloak of darkness",16),(0,e.createTextVNode)(": Unlocked at 150 blood, when toggled, allows you to become nearly invisible and move rapidly when in dark regions. While active, burn damage is more effective against you.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow anchor",16),(0,e.createTextVNode)(": Unlocked at 250 blood, casting it will create an anchor at the cast location after a short delay. If you then cast the ability again, you are teleported back to the anchor. If you do not cast again within 2 minutes, you will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. It will not teleport you between Z levels.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Shadow snare",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to summon a trap that when crossed blinds and ensnares the victim. This trap is hard to see, but withers in the light.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Dark passage",16),(0,e.createTextVNode)(": Unlocked at 400 blood, allows you to target a turf on screen, you will then teleport to that turf.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Extinguish",16),(0,e.createTextVNode)(": Unlocked at 600 blood, allows you to snuff out nearby electronic light sources and glowshrooms.")],4),(0,e.createVNode)(1,"b",null,"Shadow boxing",16),": Unlocked at 800 blood, sends out shadow clones towards a target, damaging them while you remain in range.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Eternal darkness",16),(0,e.createTextVNode)(": When toggled, you consume yourself in unholy darkness, only the strongest of lights will be able to see through it. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("gargantua")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on tenacity and melee damage.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rejuvenate",16),(0,e.createTextVNode)(": Will heal you at an increased rate based on how much damage you have taken.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell",16),(0,e.createTextVNode)(": Unlocked at 150 blood, increases your resistance to physical damage, stuns and stamina for 30 seconds. While it is active you cannot fire guns.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Seismic stomp",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to stomp the ground to send out a shockwave, knocking people back.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood rush",16),(0,e.createTextVNode)(": Unlocked at 250 blood, gives you a short speed boost when cast.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood swell II",16),(0,e.createTextVNode)(": Unlocked at 400 blood, increases all melee damage by 10.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Overwhelming force",16),(0,e.createTextVNode)(": Unlocked at 600 blood, when toggled, if you bump into a door that you do not have access to, it will force it open. In addition, you cannot be pushed or pulled while it is active.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Demonic grasp",16),(0,e.createTextVNode)(": Unlocked at 800 blood, allows you to send out a demonic hand to snare someone. If you are on disarm/grab intent you will push/pull the target, respectively.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function u(){return l("dantalion")}return u}()}),children:[(0,e.createVNode)(1,"h3",null,"Focuses on thralling and illusions.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Enthrall",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Thralls your target to your will, requires you to stand still. Does not work on mindshielded or already enthralled/mindslaved people.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall cap",16),(0,e.createTextVNode)(": You can only thrall a max of 1 person at a time. This can be increased at 400 blood, 600 blood and at full power to a max of 4 thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thrall commune",16),(0,e.createTextVNode)(": Unlocked at 150 blood, Allows you to talk to your thralls, your thralls can talk back in the same way.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Subspace swap",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to swap positions with a target.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Pacify",16),(0,e.createTextVNode)(": Unlocked at 250 blood, allows you to pacify a target, preventing them from causing harm for 40 seconds.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Decoy",16),(0,e.createTextVNode)(": Unlocked at 400 blood, briefly turn invisible and send out an illusion to fool everyone nearby.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Rally thralls",16),(0,e.createTextVNode)(": Unlocked at 600 blood, removes all incapacitating effects from nearby thralls.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Blood bond",16),(0,e.createTextVNode)(": Unlocked at 800 blood, when cast, all nearby thralls become linked to you. If anyone in the network takes damage, it is shared equally between everyone in the network. If a thrall goes out of range, they will be removed from the network.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Full Power",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"Mass Hysteria",16),(0,e.createTextVNode)(": Casts a powerful illusion that blinds and then makes everyone nearby perceive others as random animals.")],4)]})})}},46501:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.StationAlertConsole=function(){function k(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return k}(),N=r.StationAlertConsoleContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.data,c=i.alarms||[],f=c.Fire||[],l=c.Atmosphere||[],d=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[f.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),f.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[l.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),l.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[d.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),d.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return k}()},18565:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(96524),a=n(50640),t=n(67765),o=n(17899),m=n(24674),N=n(45493),k=function(i){return i[i.SetupFutureStationTraits=0]="SetupFutureStationTraits",i[i.ViewStationTraits=1]="ViewStationTraits",i}(k||{}),S=function(c,f){var l=(0,o.useBackend)(f),d=l.act,s=l.data,u=s.future_station_traits,C=(0,o.useLocalState)(f,"selectedFutureTrait",null),g=C[0],v=C[1],h=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),V=Object.keys(h);return V.sort(),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:V,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],I=[B];if(u){var w,T=u.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}d("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,m.Divider),Array.isArray(u)?u.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:u.map(function(b){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"times",onClick:function(){function B(){d("setup_future_traits",{station_traits:(0,a.filterMap)(u,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return d("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return d("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},y=function(c,f){var l=(0,o.useBackend)(f),d=l.act,s=l.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(u){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:u.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!u.can_revert,tooltip:!u.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return d("revert",{ref:u.ref})}return C}()})})]})},u.ref)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function i(c,f){var l=(0,o.useLocalState)(f,"station_traits_tab",k.ViewStationTraits),d=l[0],s=l[1],u;switch(d){case k.SetupFutureStationTraits:u=(0,e.createComponentVNode)(2,S);break;case k.ViewStationTraits:u=(0,e.createComponentVNode)(2,y);break;default:(0,t.exhaustiveCheck)(d)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"eye",selected:d===k.ViewStationTraits,onClick:function(){function C(){return s(k.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"edit",selected:d===k.SetupFutureStationTraits,onClick:function(){function C(){return s(k.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,m.Divider),u]})]})})})}return i}()},95147:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(96524),a=n(50640),t=n(17442),o=n(17899),m=n(24674),N=n(45493),k=5,S=5,y="64px",p=function(u){return u[0]+"/"+u[1]},i=function(u){var C=u.align,g=u.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:g})},c={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},f={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,i,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},l=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(l||{}),d=r.StripMenu=function(){function s(u,C){for(var g=(0,o.useBackend)(C),v=g.act,h=g.data,V=new Map,b=0,B=Object.keys(h.items);b =.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(b),minValue:0,maxValue:i(1e4),ranges:{teal:[-1/0,i(80)],good:[i(80),i(373)],average:[i(373),i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:i(B),minValue:0,maxValue:i(5e4),ranges:{good:[i(1),i(300)],average:[-1/0,i(1e3)],bad:[i(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,k.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,k.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},30047:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.SyndicateComputerSimple=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function f(){return p(c.buttonact)}return f}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(f){return(0,e.createComponentVNode)(2,t.Box,{children:f},f)})})]},c.title)})})})}return N}()},28830:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data;return c.error?(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function f(){return i("check")}return f}()})]})})}):(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[m(c.cold_inlet_temp)," K,"," ",m(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[m(c.cold_outlet_temp)," K,"," ",m(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[m(c.hot_inlet_temp)," K,"," ",m(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[m(c.hot_outlet_temp)," K,"," ",m(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[m(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return k}()},39903:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TachyonArray=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.records,l=f===void 0?[]:f,d=c.explosion_target,s=c.toxins_tech,u=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||u,align:"center",onClick:function(){function C(){return i("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function C(){return i("delete_logs")}return C}()})]})]})}),l.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return k}(),N=r.TachyonArrayContent=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.records,l=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function s(){return i("delete_record",{index:d.index})}return s}()})})]},d.index)})]})})})})}return k}()},17068:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Tank=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function f(){return p("internals")}return f}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:325,height:135,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return p("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function f(l,d){return p("pressure",{pressure:d})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return p("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return p("pressure",{pressure:"reset"})}return f}()})]}),c]})})})})}return N}()},69161:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TankDispenser=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.o_tanks,f=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("plasma")}return l}()})})]})})})}return N}()},87394:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsCore=function(){function p(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.ion,u=(0,a.useLocalState)(c,"tabIndex",0),C=u[0],g=u[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return p}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},k=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.active,u=d.sectors_available,C=d.nttc_toggle_jobs,g=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,V=d.nttc_job_indicator_type,b=d.nttc_setting_language,B=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return l("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:u})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function I(){return l("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return l("nttc_toggle_name_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function I(){return l("nttc_toggle_command_bold")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function I(){return l("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function I(){return l("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return l("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return l("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return l("export")}return I}()})]})],4)},S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.link_password,u=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"lock",onClick:function(){function C(){return l("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return l("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=f.data,s=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function u(){return l("add_filter")}return u}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),s.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return l("remove_filter",{user:u})}return C}()})})]},u)})]})})}},55684:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TcommsRelay=function(){function S(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.linked,d=f.active,s=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function u(){return c("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function u(){return c("network_id")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,k)]})})}return S}(),N=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.linked_core_id,d=f.linked_core_addr,s=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function u(){return c("toggle_hidden_link")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function u(){return c("unlink")}return u}()})})]})})},k=function(y,p){var i=(0,a.useBackend)(p),c=i.act,f=i.data,l=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:d.addr})}return s}()})})]},d.addr)})]})})}},81088:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Teleporter=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.targetsTeleport?i.targetsTeleport:{},f=0,l=1,d=2,s=i.calibrated,u=i.calibrating,C=i.powerstation,g=i.regime,v=i.teleporterhub,h=i.target,V=i.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===f&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===d&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===l?"good":null,onClick:function(){function b(){return p("setregime",{regime:l})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===f?"good":null,onClick:function(){function b(){return p("setregime",{regime:f})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===d?"good":null,disabled:!V,onClick:function(){function b(){return p("setregime",{regime:d})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:u&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||u),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&C&&v&&g===d)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function b(){return p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return N}()},96150:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.TempGun=function(){function p(i,c){var f=(0,t.useBackend)(c),l=f.act,d=f.data,s=d.target_temperature,u=d.temperature,C=d.max_temp,g=d.min_temp;return(0,e.createComponentVNode)(2,m.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:C,value:s,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,V){return l("target_temperature",{target_temperature:V})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:k(u),bold:u>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(u,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),children:S(u)})})]})})})})}return p}(),k=function(i){return i<=-100?"blue":i<=0?"teal":i<=100?"green":i<=200?"orange":"red"},S=function(i){return i<=100-273.15?"High":i<=250-273.15?"Medium":i<=300-273.15?"Low":i<=400-273.15?"Medium":"High"},y=function(i){return i<=100-273.15?"red":i<=250-273.15?"orange":i<=300-273.15?"green":i<=400-273.15?"orange":"red"}},95484:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(96524),a=n(14299),t=n(15113),o=n(17899),m=n(68100),N=n(24674),k=n(45493),S=r.sanitizeMultiline=function(){function c(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),y=r.removeAllSkiplines=function(){function c(f){return f.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(f,l){var d=(0,o.useBackend)(l),s=d.act,u=d.data,C=u.max_length,g=u.message,v=g===void 0?"":g,h=u.multiline,V=u.placeholder,b=u.timeout,B=u.title,I=(0,o.useLocalState)(l,"input",V||""),w=I[0],T=I[1],A=function(){function M(j){if(j!==w){var P=h?S(j):y(j);T(P)}}return M}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,k.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,k.Window.Content,{onKeyDown:function(){function M(j){var P=window.event?j.which:j.keyCode;P===m.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:w}),P===m.KEY_ESCAPE&&s("cancel")}return M}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),i=function(f,l){var d=(0,o.useBackend)(l),s=d.act,u=d.data,C=u.max_length,g=u.multiline,v=f.input,h=f.onType,V=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function b(){return s("cancel")}return b}(),onEnter:function(){function b(B){V&&B.shiftKey||(B.preventDefault(),s("submit",{entry:v}))}return b}(),onInput:function(){function b(B,I){return h(I)}return b}(),placeholder:"Type something...",value:v})}},378:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=n(45493),N=r.ThermoMachine=function(){function k(S,y){var p=(0,t.useBackend)(y),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function f(l){return(0,a.toFixed)(l,2)}return f}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function f(l){return(0,a.toFixed)(l,2)}return f}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function f(){return i("power")}return f}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function f(){return i("cooling")}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function f(){return i("target",{target:c.min})}return f}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function f(l,d){return i("target",{target:d})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function f(){return i("target",{target:c.max})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function f(){return i("target",{target:c.initial})}return f}()})]})]})})]})})}return k}()},3365:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.TransferValve=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.tank_one,f=i.tank_two,l=i.attached_device,d=i.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",content:d?"Open":"Closed",disabled:!c||!f,onClick:function(){function s(){return p("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){function s(){return p("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:l?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:l,disabled:!l,onClick:function(){function s(){return p("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return p("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:f?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:f,disabled:!f,onClick:function(){function s(){return p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},13860:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=n(36121),N=r.TurbineComputer=function(){function y(p,i){var c=(0,a.useBackend)(i),f=c.act,l=c.data,d=l.compressor,s=l.compressor_broken,u=l.turbine,C=l.turbine_broken,g=l.online,v=!!(d&&!s&&u&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function h(){return f("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return f("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,k)})})})}return y}(),k=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.compressor,d=f.compressor_broken,s=f.turbine,u=f.turbine_broken,C=f.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!l||d?"bad":"good",children:d?l?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||u?"bad":"good",children:u?s?"Offline":"Missing":"Online"})]})},S=function(p,i){var c=(0,a.useBackend)(i),f=c.data,l=f.rpm,d=f.temperature,s=f.power,u=f.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[l," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[d," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,m.toFixed)(u)+"%"})})]})}},22169:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(96524),a=n(50640),t=n(74041),o=n(78234),m=n(17899),N=n(24674),k=n(45493),S=n(99665),y=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,u);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function C(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=(0,m.useLocalState)(v,"tabIndex",0),w=I[0],T=I[1],A=(0,m.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,k.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function M(){T(0),E("")}return M}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function M(){T(1),E("")}return M}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function M(){T(2),E("")}return M}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function M(){return V("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:y(w)})]})})]})}return C}(),i=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.crystals,I=b.cats,w=(0,m.useLocalState)(v,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,m.useLocalState)(v,"searchText",""),E=x[0],M=x[1],j=function(K,H){H===void 0&&(H="");var z=(0,o.createSearch)(H,function(G){var X=G.hijack_only===1?"|hijack":"";return G.name+"|"+G.desc+"|"+G.cost+"tc"+X});return(0,t.flow)([(0,a.filter)(function(G){return G==null?void 0:G.name}),H&&(0,a.filter)(z),(0,a.sortBy)(function(G){return G==null?void 0:G.name})])(K)},P=function(K){if(M(K),K==="")return A(I[0].items);A(j(I.map(function(H){return H.items}).flat(),K))},R=(0,m.useLocalState)(v,"showDesc",1),D=R[0],F=R[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function U(){return F(!D)}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return V("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return V("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(K,H){P(H)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function K(){A(U.items),M("")}return K}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:U,showDecription:D},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=b.crystals,w=b.cart_price,T=(0,m.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,l,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,f)]})},f=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cats,I=b.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,l,{grow:!0,i:w})},T)})})})})},l=function(g,v){var h=g.i,V=g.showDecription,b=V===void 0?1:V,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,d,{i:h}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},d=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,N.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function w(){return V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},u=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.exploitable,I=(0,m.useLocalState)(v,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,m.useLocalState)(v,"searchText",""),x=A[0],E=A[1],M=function(R,D){D===void 0&&(D="");var F=(0,o.createSearch)(D,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),D&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(R)},j=M(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function P(R,D){return E(D)}return P}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:j.map(function(P){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:P===w,onClick:function(){function R(){return T(P)}return R}(),children:P.name},P)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},70547:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=S.product,l=S.productStock,d=S.productImage,s=c.chargesMoney,u=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,V=!s||f.price===0,b="ERROR!",B="";V?(b="FREE",B="arrow-circle-down"):(b=f.price,B="shopping-cart");var I=!v||l===0||!V&&f.price>C&&f.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:l<=0&&"bad"||l<=f.max_amount/2&&"average"||"good",children:[l," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return i("vend",{inum:f.inum})}return w}()})})]})},N=r.Vending=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.user,l=c.usermoney,d=c.inserted_cash,s=c.chargesMoney,u=c.product_records,C=u===void 0?[]:u,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,V=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return i("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!d,icon:"money-bill-wave-alt",content:d?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,d,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:d?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return i("change")}return A}()})})]}),children:f&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),","," ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[l,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return i("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,m,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return k}()},33045:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VolumeMixer=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(f,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:f.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:f.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function d(s,u){return p("volume",{channel:f.num,volume:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:f.num,volume:100})}return d}()})})})]})})],4,f.num)})})})})}return N}()},53792:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.VotePanel=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.remaining,f=i.question,l=i.choices,d=i.user_vote,s=i.counts,u=i.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(u?" ("+(s[C]||0)+")":""),onClick:function(){function g(){return p("vote",{target:C})}return g}(),selected:C===d})},C)})]})})})}return N}()},64860:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.Wires=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.wires||[],f=i.status||[],l=56+c.length*23+(status?0:15+f.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:d.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:d.color})}return s}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return N}()},78262:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(45493),m=r.WizardApprenticeContract=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("fire")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("translocation")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("restoration")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("stealth")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("honk")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},57842:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674);function m(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=N(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var f=0;return function(){return f>=p.length?{done:!0}:{done:!1,value:p[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(p,i){if(p){if(typeof p=="string")return k(p,i);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return k(p,i)}}function k(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,f=new Array(i);c0&&!b.includes(D.ref)&&!h.includes(D.ref),checked:h.includes(D.ref),onClick:function(){function F(){return B(D.ref)}return F}()},D.desc)})]})]})})}return p}()},79449:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=function(S,y,p,i,c){return S i?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function k(S,y){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:m(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return k}()},1496:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(96524),a=n(24674),t=n(56099),o=function(k){return k+" unit"+(k===1?"":"s")},m=r.BeakerContents=function(){function N(k){var S=k.beakerLoaded,y=k.beakerContents,p=y===void 0?[]:y,i=k.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,f)})]},c.name)})]})}return N}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},69521:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.BotStatus=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.locked,c=p.noaccess,f=p.maintpanel,l=p.on,d=p.autopatrol,s=p.canhack,u=p.emagged,C=p.remote_disabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe an ID card to ",i?"unlock":"lock"," this interface."]}),(0,e.createComponentVNode)(2,t.Section,{title:"General Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:l?"power-off":"times",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){function g(){return y("power")}return g}()})}),d!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return y("autopatrol")}return g}()})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Maintenance Panel",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Panel Open!"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety System",children:(0,e.createComponentVNode)(2,t.Box,{color:u?"bad":"good",children:u?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:u?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return y("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return y("disableremote")}return g}()})})]})})],4)}return m}()},99665:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(96524),a=n(17899),t=n(24674),o={},m=r.modalOpen=function(){function p(i,c,f){var l=(0,a.useBackend)(i),d=l.act,s=l.data,u=Object.assign(s.modal?s.modal.args:{},f||{});d("modal_open",{id:c,arguments:JSON.stringify(u)})}return p}(),N=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),k=r.modalAnswer=function(){function p(i,c,f,l){var d=(0,a.useBackend)(i),s=d.act,u=d.data;if(u.modal){var C=Object.assign(u.modal.args||{},l||{});s("modal_answer",{id:c,answer:f,arguments:JSON.stringify(C)})}}return p}(),S=r.modalClose=function(){function p(i,c){var f=(0,a.useBackend)(i),l=f.act;l("modal_close",{id:c})}return p}(),y=r.ComplexModal=function(){function p(i,c){var f=(0,a.useBackend)(c),l=f.data;if(l.modal){var d=l.modal,s=d.id,u=d.text,C=d.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,V,b="auto";if(o[s])h=o[s](l.modal,c);else if(C==="input"){var B=l.modal.value;g=function(){function w(T){return k(c,s,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var I=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return k(c,s,T)}return w}()}),b="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return k(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return k(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return k(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[u&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u}),o[s]&&v,h,V]})}}return p}()},98444:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(78234),m=n(38424),N=m.COLORS.department,k=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return k.indexOf(f)!==-1?"green":"orange"},y=function(f){if(k.indexOf(f)!==-1)return!0},p=function(f){return f.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),f.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.rank),bold:y(l.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(f,l){var d=(0,a.useBackend)(l),s=d.act,u;if(f.data)u=f.data;else{var C=(0,a.useBackend)(l),g=C.data;u=g}var v=u,h=v.manifest,V=h.heads,b=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(x)})]})}return c}()},15113:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(96524),a=n(24674),t=n(17899),o=r.InputButtons=function(){function m(N,k){var S=(0,t.useBackend)(k),y=S.act,p=S.data,i=p.large_buttons,c=p.swapped_buttons,f=N.input,l=N.message,d=N.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("submit",{entry:f})}return C}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),u=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function C(){return y("cancel")}return C}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return m}()},26893:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.InterfaceLockNoticeBox=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=N.siliconUser,c=i===void 0?p.siliconUser:i,f=N.locked,l=f===void 0?p.locked:f,d=N.normallyLocked,s=d===void 0?p.normallyLocked:d,u=N.onLockStatusChange,C=u===void 0?function(){return y("lock")}:u,g=N.accessText,v=g===void 0?"an ID card":g;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return m}()},14299:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(96524),a=n(36121),t=n(24674),o=r.Loader=function(){function m(N){var k=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(k)*100+"%"}}),2)}return m}()},68159:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginInfo=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return y("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return y("login_logout")}return c}()})]})]})})}return m}()},27527:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.LoginScreen=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.loginState,c=p.isAI,f=p.isRobot,l=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return y("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return y("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return y("login_login",{login_type:2})}return d}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return y("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return y("login_login",{login_type:4})}return d}()})]})})})}return m}()},75201:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(96524),a=n(24674),t=n(56099),o=r.Operating=function(){function m(N){var k=N.operating,S=N.name;if(k)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},65435:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.Signaler=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=k.data,c=i.code,f=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:f/10,format:function(){function s(u){return(0,a.toFixed)(u,1)}return s}(),width:"80px",onDrag:function(){function s(u,C){return p("freq",{freq:C})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function s(u,C){return p("code",{code:C})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return N}()},77534:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(96524),a=n(17899),t=n(78234),o=n(74041),m=n(50640),N=n(24674),k=r.SimpleRecords=function(){function p(i,c){var f=i.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:f?(0,e.createComponentVNode)(2,y,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,S,{data:i.data})})}return p}(),S=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=i.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),u=s[0],C=s[1],g=function(V,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,m.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,m.filter)(B),(0,m.sortBy)(function(I){return I.Name})])(d)},v=g(d,u);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(V,b){return C(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function V(){return l("Records",{target:h.uid})}return V}()})},h)})]})},y=function(i,c){var f=(0,a.useBackend)(c),l=f.act,d=i.data.records,s=d.general,u=d.medical,C=d.security,g;switch(i.recordType){case"MED":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:u?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:u.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:u.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:u.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},84537:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.TemporaryNotice=function(){function m(N,k){var S,y=(0,a.useBackend)(k),p=y.act,i=y.data,c=i.temp;if(c){var f=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function l(){return p("cleartemp")}return l}()})})]})})))}}return m}()},24704:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pai_atmosphere=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},4209:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_bioscan=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.holder,f=i.dead,l=i.health,d=i.brute,s=i.oxy,u=i.tox,C=i.burn,g=i.temp;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},44430:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_directives=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.master,f=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+f+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function s(){return y("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},3367:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_doorjack=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.cable,f=i.machine,l=i.inprogress,d=i.progress,s=i.aborted,u;f?u=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):u=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return y("cable")}return g}()});var C;return f&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:d,maxValue:100}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return y("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return y("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:u}),C]})}return m}()},73395:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pai_main_menu=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data,c=i.available_software,f=i.installed_software,l=i.installed_toggles,d=i.available_ram,s=i.emotions,u=i.current_emotion,C=i.speech_verbs,g=i.current_speech_verb,v=i.available_chassises,h=i.current_chassis,V=[];return f.map(function(b){return V[b.key]=b.name}),l.map(function(b){return V[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!V[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function B(){return y("purchaseSoftware",{key:b.key})}return B}()},b.key)}),c.filter(function(b){return!V[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function B(){return y("startSoftware",{software_key:b.key})}return B}()},b.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return y("setToggle",{toggle_key:b.key})}return B}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===u,onClick:function(){function B(){return y("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return y("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return y("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return m}()},37645:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pai_manifest=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},15836:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_medrecords=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"MED"})}return m}()},91737:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(96524),a=n(17899),t=n(30709),o=r.pai_messenger=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},94077:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(96524),a=n(17899),t=n(36121),o=n(24674),m=r.pai_radio=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.app_data,f=c.minFrequency,l=c.maxFrequency,d=c.frequency,s=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:l/10,value:d/10,format:function(){function u(C){return(0,t.toFixed)(C,1)}return u}(),onChange:function(){function u(C,g){return p("freq",{freq:g})}return u}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function u(){return p("freq",{freq:"145.9"})}return u}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return p("toggleBroadcast")}return u}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return N}()},72621:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pai_secrecords=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y.app_data,recordType:"SEC"})}return m}()},53483:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(96524),a=n(17899),t=n(65435),o=r.pai_signaler=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},21606:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(96524),a=n(17899),t=n(79449),o=r.pda_atmos_scan=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:y})}return m}()},12339:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_janitor=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data,i=p.janitor,c=i.user_loc,f=i.mops,l=i.buckets,d=i.cleanbots,s=i.carts,u=i.janicarts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return m}()},36615:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(96524),a=n(36121),t=n(17899),o=n(24674),m=r.pda_main_menu=function(){function N(k,S){var y=(0,t.useBackend)(S),p=y.act,i=y.data,c=i.owner,f=i.ownjob,l=i.idInserted,d=i.categories,s=i.pai,u=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var g=i.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in u?v.notify_icon:v.icon,iconSpin:v.uid in u,color:v.uid in u?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return N}()},99737:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(96524),a=n(17899),t=n(98444),o=r.pda_manifest=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},61597:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(96524),a=n(17899),t=n(77534),o=r.pda_medical=function(){function m(N,k){var S=(0,a.useBackend)(k),y=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:y,recordType:"MED"})}return m}()},30709:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(96524),a=n(50640),t=n(17899),o=n(24674),m=r.pda_messenger=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,N,{data:l}):(0,e.createComponentVNode)(2,k,{data:l})}return y}(),N=r.ActiveConversation=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=p.data,d=l.convo_name,s=l.convo_job,u=l.messages,C=l.active_convo,g=(0,t.useLocalState)(i,"clipboardMode",!1),v=g[0],h=g[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(u).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(u).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function b(){return f("Clear",{option:"Convo"})}return b}()})})})}),V]})}return y}(),k=r.MessengerList=function(){function y(p,i){var c=(0,t.useBackend)(i),f=c.act,l=p.data,d=l.convopdas,s=l.pdas,u=l.charges,C=l.silent,g=l.toff,v=l.ringtone_list,h=l.ringtone,V=(0,t.useLocalState)(i,"searchTerm",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function I(){return f("Toggle Ringer")}return I}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return f("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return f("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return f("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function I(w){return f("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!u&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!d.length&&!s.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:b,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:l,searchTerm:b})]})}return y}(),S=function(p,i){var c=(0,t.useBackend)(i),f=c.act,l=p.data,d=p.pdas,s=p.title,u=p.msgAct,C=p.searchTerm,g=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function V(){return f(u,{target:h.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function b(){return f("Messenger Plugin",{plugin:V.uid,target:h.uid})}return b}()},V.uid)})})]},h.uid)})})}},71654:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(96524),a=n(17899),t=n(24674),o=n(17442),m=r.pda_mob_hunt=function(){function N(k,S){var y=(0,a.useBackend)(S),p=y.act,i=y.data,c=i.connected,f=i.wild_captures,l=i.no_collection,d=i.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function s(){return p("Disconnect")}return s}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function s(){return p("Reconnect")}return s}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:f})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!l&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function s(){return p("Prev")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function s(){return p("Next")}return s}()})]})}),children:l?"Your collection is empty! Go capture some Nano-Mobs!":d?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(d.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:d.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:d.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:d.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:d.type1}),d.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:d.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function s(){return p("Transfer")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function s(){return p("Release")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function s(){return p("Rename")}return s}()}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function s(){return p("Set_Trap")}return s}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},68053:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(96524),a=n(17899),t=n(24674),o=r.pda_mule=function(){function k(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.mulebot,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,m)})}return k}(),m=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.mulebot,l=f.bots;return l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function s(){return i("control",{bot:d.uid})}return s}()})},d.Name)})},N=function(S,y){var p=(0,a.useBackend)(y),i=p.act,c=p.data,f=c.mulebot,l=f.botstatus,d=f.active,s=l.mode,u=l.loca,C=l.load,g=l.powr,v=l.dest,h=l.home,V=l.retn,b=l.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[s===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function I(){return i("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function I(){return i("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function I(){return i("set_pickup_type",{autopick:b?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return i("set_auto_return",{autoret:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return i("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return i("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return i("home")}return I}()})]})]})]})}},31728:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(96524),a=n(78234),t=n(17899),o=n(24674),m=r.pda_nanobank=function(){function c(f,l){var d=(0,t.useBackend)(l),s=d.act,u=d.data,C=u.logged_in,g=u.owner_name,v=u.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,k)]})],4):(0,e.createComponentVNode)(2,i)}return c}(),N=function(f,l){var d=(0,t.useBackend)(l),s=d.data,u=(0,t.useLocalState)(l,"tabIndex",1),C=u[0],g=u[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},k=function(f,l){var d=(0,t.useLocalState)(l,"tabIndex",1),s=d[0],u=(0,t.useBackend)(l),C=u.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,y);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(f,l){var d,s=(0,t.useBackend)(l),u=s.act,C=s.data,g=C.requests,v=C.available_accounts,h=C.money,V=(0,t.useLocalState)(l,"selectedAccount"),b=V[0],B=V[1],I=(0,t.useLocalState)(l,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(l,"searchText",""),x=A[0],E=A[1],M=[];return v.map(function(j){return M[j.name]=j.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function j(P,R){return E(R)}return j}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(j){return j.name})).map(function(j){return j.name}),selected:(d=v.filter(function(j){return j.UID===b})[0])==null?void 0:d.name,onSelected:function(){function j(P){return B(M[P])}return j}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function j(P,R){return T(R)}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h 0&&u.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return m}()},61255:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(96524),a=n(28234),t=n(3051),o=n(92700),m=["className","theme","children"],N=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -322,7 +322,7 @@ * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},21965:function(){},28169:function(){},36487:function(){},35739:function(){},33631:function(){},74785:function(){},6895:function(){},3251:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(L,r,n){var e={"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=70752},59395:function(L,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mob_hunt.js":71654,"./pda_mule.js":68053,"./pda_nanobank.js":31728,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=59395},32054:function(L,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./AtmosTankControl":31335,"./AtmosTankControl.js":31335,"./Autolathe":85909,"./Autolathe.js":85909,"./BioChipPad":81617,"./BioChipPad.js":81617,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotClean":43506,"./BotClean.js":43506,"./BotFloor":89593,"./BotFloor.js":89593,"./BotHonk":89513,"./BotHonk.js":89513,"./BotMed":19297,"./BotMed.js":19297,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./ChangelogView":89917,"./ChangelogView.js":89917,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":33611,"./ChemMaster.js":33611,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./ColourMatrixTester":11866,"./ColourMatrixTester.js":11866,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./CompostBin":46868,"./CompostBin.js":46868,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":99127,"./DestinationTagger.js":99127,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./DroneConsole":30747,"./DroneConsole.js":30747,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./EconomyManager":24503,"./EconomyManager.js":24503,"./Electropack":15543,"./Electropack.js":15543,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExperimentConsole":9466,"./ExperimentConsole.js":9466,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FilingCabinet":24777,"./FilingCabinet.js":24777,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./GravityGen":33004,"./GravityGen.js":33004,"./GuestPass":39775,"./GuestPass.js":39775,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./HealthSensor":22616,"./HealthSensor.js":22616,"./Holodeck":76861,"./Holodeck.js":76861,"./Instrument":96729,"./Instrument.js":96729,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./KitchenMachine":58553,"./KitchenMachine.js":58553,"./LawManager":14047,"./LawManager.js":14047,"./LibraryComputer":5872,"./LibraryComputer.js":5872,"./LibraryManager":37782,"./LibraryManager.js":37782,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MODsuit":71963,"./MODsuit.js":71963,"./MagnetController":84274,"./MagnetController.js":84274,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MerchVendor":68211,"./MerchVendor.js":68211,"./MiningVendor":14162,"./MiningVendor.js":14162,"./NTRecruiter":68977,"./NTRecruiter.js":68977,"./Newscaster":17067,"./Newscaster.js":17067,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./Pacman":78704,"./Pacman.js":78704,"./ParticleAccelerator":78643,"./ParticleAccelerator.js":78643,"./PdaPainter":34026,"./PdaPainter.js":34026,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./PrisonerShuttleConsole":22046,"./PrisonerShuttleConsole.js":22046,"./PrizeCounter":92014,"./PrizeCounter.tsx":92014,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./ReagentGrinder":40483,"./ReagentGrinder.js":40483,"./RemoteSignaler":94049,"./RemoteSignaler.js":94049,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpecMenu":84800,"./SpecMenu.js":84800,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StationTraitsPanel":18565,"./StationTraitsPanel.tsx":18565,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./TEG":28830,"./TEG.js":28830,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TempGun":96150,"./TempGun.js":96150,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThermoMachine":378,"./ThermoMachine.js":378,"./TransferValve":3365,"./TransferValve.js":3365,"./TurbineComputer":13860,"./TurbineComputer.js":13860,"./Uplink":22169,"./Uplink.js":22169,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./WizardApprenticeContract":78262,"./WizardApprenticeContract.js":78262,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/BotStatus":69521,"./common/BotStatus.js":69521,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mob_hunt":71654,"./pda/pda_mob_hunt.js":71654,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_nanobank":31728,"./pda/pda_nanobank.js":31728,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=32054},4085:function(L,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=4085},97361:function(L,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(L,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(L,r,n){"use strict";var e=n(41224),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(L,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),L.exports=function(N){m[o][N]=!0}},62970:function(L,r,n){"use strict";var e=n(56852).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(L,r,n){"use strict";var e=n(33314),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(L,r,n){"use strict";var e=n(56831),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(L,r,n){"use strict";var e=n(41746);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(L,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),m=n(56831),N=n(89458),k=n(27806),S=n(62518),y=n(16216),p=n(59173),i=n(10069),c=n(33314),f=n(31658),l=n(42878),d=n(66266),s=n(33345),u=n(35086),C=u.enforce,g=u.get,v=t.Int8Array,h=v&&v.prototype,V=t.Uint8ClampedArray,b=V&&V.prototype,B=v&&f(v),I=h&&f(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!l&&k(t.opera)!=="Opera",j=!1,P,R,D,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},K=function(){function re(de){if(!m(de))return!1;var pe=k(de);return pe==="DataView"||N(F,pe)||N(U,pe)}return re}(),H=function re(de){var pe=f(de);if(m(pe)){var ye=g(pe);return ye&&N(ye,E)?ye[E]:re(pe)}},z=function(de){if(!m(de))return!1;var pe=k(de);return N(F,pe)||N(U,pe)},G=function(de){if(z(de))return de;throw new T("Target is not a typed array")},X=function(de){if(o(de)&&(!l||c(B,de)))return de;throw new T(S(de)+" is not a typed array constructor")},Q=function(de,pe,ye,Ie){if(a){if(ye)for(var he in F){var ne=t[he];if(ne&&N(ne.prototype,de))try{delete ne.prototype[de]}catch(ce){try{ne.prototype[de]=pe}catch(q){}}}(!I[de]||ye)&&p(I,de,ye?pe:M&&h[de]||pe,Ie)}},ae=function(de,pe,ye){var Ie,he;if(a){if(l){if(ye){for(Ie in F)if(he=t[Ie],he&&N(he,de))try{delete he[de]}catch(ne){}}if(!B[de]||ye)try{return p(B,de,ye?pe:M&&B[de]||pe)}catch(ne){}else return}for(Ie in F)he=t[Ie],he&&(!he[de]||ye)&&p(he,de,pe)}};for(P in F)R=t[P],D=R&&R.prototype,D?C(D)[E]=R:M=!1;for(P in U)R=t[P],D=R&&R.prototype,D&&(C(D)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function re(){throw new T("Incorrect invocation")}return re}(),M))for(P in F)t[P]&&l(t[P],B);if((!M||!I||I===w)&&(I=B.prototype,M))for(P in F)t[P]&&l(t[P].prototype,I);if(M&&f(b)!==I&&l(b,I),a&&!N(I,A)){j=!0,i(I,A,{configurable:!0,get:function(){function re(){return m(this)?this[x]:void 0}return re}()});for(P in F)t[P]&&y(t[P],x,P)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:j&&x,aTypedArray:G,aTypedArrayConstructor:X,exportTypedArrayMethod:Q,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:H,isView:K,isTypedArray:z,TypedArray:B,TypedArrayPrototype:I}},46185:function(L,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),m=n(26463),N=n(16216),k=n(10069),S=n(13648),y=n(41746),p=n(19870),i=n(74952),c=n(10475),f=n(90835),l=n(75988),d=n(62263),s=n(31658),u=n(42878),C=n(59942),g=n(77713),v=n(2566),h=n(70113),V=n(94234),b=n(35086),B=m.PROPER,I=m.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(w),j=b.getterFor(T),P=b.set,R=e[w],D=R,F=D&&D[A],U=e[T],K=U&&U[A],H=Object.prototype,z=e.Array,G=e.RangeError,X=a(C),Q=a([].reverse),ae=d.pack,re=d.unpack,de=function(ge){return[ge&255]},pe=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Ie=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},he=function(ge){return ae(l(ge),23,4)},ne=function(ge){return ae(ge,52,8)},ce=function(ge,ke,Ce){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return Ce(this)[ke]}return Se}()})},q=function(ge,ke,Ce,Se){var we=j(ge),xe=f(Ce),Oe=!!Se;if(xe+ke>we.byteLength)throw new G(E);var We=we.bytes,Ve=xe+we.byteOffset,oe=g(We,Ve,Ve+ke);return Oe?oe:Q(oe)},se=function(ge,ke,Ce,Se,we,xe){var Oe=j(ge),We=f(Ce),Ve=Se(+we),oe=!!xe;if(We+ke>Oe.byteLength)throw new G(E);for(var le=Oe.bytes,ve=We+Oe.byteOffset,ue=0;ue we)throw new G("Wrong offset");if(Ce=Ce===void 0?we-xe:c(Ce),xe+Ce>we)throw new G(x);P(this,{type:T,buffer:ge,byteLength:Ce,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=Ce,this.byteOffset=xe)}return fe}(),K=U[A],t&&(ce(D,"byteLength",M),ce(U,"buffer",j),ce(U,"byteLength",j),ce(U,"byteOffset",j)),S(K,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return re(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return re(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setUint8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setInt16:function(){function fe(ge,ke){se(this,2,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){se(this,2,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){se(this,4,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){se(this,8,ge,ne,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&R.name!==w;!y(function(){R(1)})||!y(function(){new R(-1)})||y(function(){return new R,new R(1.5),new R(NaN),R.length!==1||me&&!I})?(D=function(){function fe(ge){return p(this,F),v(new R(f(ge)),this,D)}return fe}(),D[A]=F,F.constructor=D,h(D,R)):me&&I&&N(R,"name",w),u&&s(K)!==H&&u(K,H);var te=new U(new D(2)),be=a(K.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(K,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}V(D,w),V(U,T),L.exports={ArrayBuffer:D,DataView:U}},42320:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),m=Math.min;L.exports=[].copyWithin||function(){function N(k,S){var y=e(this),p=t(y),i=a(k,p),c=a(S,p),f=arguments.length>2?arguments[2]:void 0,l=m((f===void 0?p:a(f,p))-c,p-i),d=1;for(c0;)c in y?y[i]=y[c]:o(y,i),i+=d,c+=d;return y}return N}()},59942:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);L.exports=function(){function o(m){for(var N=e(this),k=t(N),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,i=p===void 0?k:a(p,k);i>y;)N[y++]=m;return N}return o}()},75420:function(L,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");L.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(L,r,n){"use strict";var e=n(8333);L.exports=function(a,t,o){for(var m=0,N=arguments.length>2?o:e(t),k=new a(N);N>m;)k[m]=t[m++];return k}},80363:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),m=n(58482),N=n(60354),k=n(8333),S=n(12913),y=n(3438),p=n(76274),i=Array;L.exports=function(){function c(f){var l=t(f),d=N(this),s=arguments.length,u=s>1?arguments[1]:void 0,C=u!==void 0;C&&(u=e(u,s>2?arguments[2]:void 0));var g=p(l),v=0,h,V,b,B,I,w;if(g&&!(this===i&&m(g)))for(V=d?new this:[],B=y(l,g),I=B.next;!(b=a(I,B)).done;v++)w=C?o(B,u,[b.value,v],!0):b.value,S(V,v,w);else for(h=k(l),V=d?new this(h):i(h);h>v;v++)w=C?u(l[v],v):l[v],S(V,v,w);return V.length=v,V}return c}()},64210:function(L,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(N){return function(k,S,y){var p=e(k),i=t(p);if(i===0)return!N&&-1;var c=a(y,i),f;if(N&&S!==S){for(;i>c;)if(f=p[c++],f!==f)return!0}else for(;i>c;c++)if((N||c in p)&&p[c]===S)return N||c||0;return!N&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},67480:function(L,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),m=n(8333),N=n(32878),k=a([].push),S=function(p){var i=p===1,c=p===2,f=p===3,l=p===4,d=p===6,s=p===7,u=p===5||d;return function(C,g,v,h){for(var V=o(C),b=t(V),B=m(b),I=e(g,v),w=0,T=h||N,A=i?T(C,B):c||s?T(C,0):void 0,x,E;B>w;w++)if((u||w in b)&&(x=b[w],E=I(x,w,V),p))if(i)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:f||l?l:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(L,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),m=n(42309),N=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=m("lastIndexOf"),p=S||!y;L.exports=p?function(){function i(c){if(S)return e(k,this,arguments)||0;var f=a(this),l=o(f);if(l===0)return-1;var d=l-1;for(arguments.length>1&&(d=N(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in f&&f[d]===c)return d||0;return-1}return i}():k},55114:function(L,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");L.exports=function(m){return t>=51||!e(function(){var N=[],k=N.constructor={};return k[o]=function(){return{foo:1}},N[m](Boolean).foo!==1})}},42309:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(L,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),m=TypeError,N="Reduce of empty array with no initial value",k=function(y){return function(p,i,c,f){var l=a(p),d=t(l),s=o(l);if(e(i),s===0&&c<2)throw new m(N);var u=y?s-1:0,C=y?-1:1;if(c<2)for(;;){if(u in d){f=d[u],u+=C;break}if(u+=C,y?u<0:s<=u)throw new m(N)}for(;y?u>=0:s>u;u+=C)u in d&&(f=i(f,d[u],u,l));return f}};L.exports={left:k(!1),right:k(!0)}},72720:function(L,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();L.exports=m?function(N,k){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=k}:function(N,k){return N.length=k}},77713:function(L,r,n){"use strict";var e=n(18161);L.exports=e([].slice)},44815:function(L,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(m,N){var k=m.length;if(k<8)for(var S=1,y,p;S 0;)m[p]=m[--p];p!==S++&&(m[p]=y)}else for(var i=a(k/2),c=o(e(m,0,i),N),f=o(e(m,i),N),l=c.length,d=f.length,s=0,u=0;s 1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(V,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),i&&a(V,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return s}(),setStrong:function(){function s(u,C,g){var v=C+" Iterator",h=d(C),V=d(v);S(u,C,function(b,B){l(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=V(this),B=b.kind,I=b.last;I&&I.removed;)I=I.previous;return!b.target||!(b.last=I=I?I.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),p(C)}return s}()}},32920:function(L,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),m=n(39482),N=n(1022),k=n(56831),S=n(281),y=n(67480),p=n(89458),i=n(35086),c=i.set,f=i.getterFor,l=y.find,d=y.findIndex,s=e([].splice),u=0,C=function(V){return V.frozen||(V.frozen=new g)},g=function(){this.entries=[]},v=function(V,b){return l(V.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(V){var b=v(this,V);if(b)return b[1]}return h}(),has:function(){function h(V){return!!v(this,V)}return h}(),set:function(){function h(V,b){var B=v(this,V);B?B[1]=b:this.entries.push([V,b])}return h}(),delete:function(){function h(V){var b=d(this.entries,function(B){return B[0]===V});return~b&&s(this.entries,b,1),!!~b}return h}()},L.exports={getConstructor:function(){function h(V,b,B,I){var w=V(function(E,M){o(E,T),c(E,{type:b,id:u++,frozen:void 0}),N(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=f(b),x=function(){function E(M,j,P){var R=A(M),D=t(m(j),!0);return D===!0?C(R).set(j,P):D[R.id]=P,M}return E}();return a(T,{delete:function(){function E(M){var j=A(this);if(!k(M))return!1;var P=t(M);return P===!0?C(j).delete(M):P&&p(P,j.id)&&delete P[j.id]}return E}(),has:function(){function E(M){var j=A(this);if(!k(M))return!1;var P=t(M);return P===!0?C(j).has(M):P&&p(P,j.id)}return E}()}),a(T,B?{get:function(){function E(M){var j=A(this);if(k(M)){var P=t(M);return P===!0?C(j).get(M):P?P[j.id]:void 0}}return E}(),set:function(){function E(M,j){return x(this,M,j)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},93439:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),m=n(59173),N=n(29126),k=n(281),S=n(19870),y=n(7532),p=n(1022),i=n(56831),c=n(41746),f=n(52019),l=n(94234),d=n(2566);L.exports=function(s,u,C){var g=s.indexOf("Map")!==-1,v=s.indexOf("Weak")!==-1,h=g?"set":"add",V=a[s],b=V&&V.prototype,B=V,I={},w=function(R){var D=t(b[R]);m(b,R,R==="add"?function(){function F(U){return D(this,U===0?0:U),this}return F}():R==="delete"?function(F){return v&&!i(F)?!1:D(this,F===0?0:F)}:R==="get"?function(){function F(U){return v&&!i(U)?void 0:D(this,U===0?0:U)}return F}():R==="has"?function(){function F(U){return v&&!i(U)?!1:D(this,U===0?0:U)}return F}():function(){function F(U,K){return D(this,U===0?0:U,K),this}return F}())},T=o(s,!y(V)||!(v||b.forEach&&!c(function(){new V().entries().next()})));if(T)B=C.getConstructor(u,s,g,h),N.enable();else if(o(s,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=f(function(P){new V(P)}),j=!v&&c(function(){for(var P=new V,R=5;R--;)P[h](R,R);return!P.has(-0)});M||(B=u(function(P,R){S(P,b);var D=d(new V,P,B);return p(R)||k(R,D[h],{that:D,AS_ENTRIES:g}),D}),B.prototype=b,b.constructor=B),(E||j)&&(w("delete"),w("has"),g&&w("get")),(j||x)&&w(h),v&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==V},I),l(B,s),v||C.setStrong(B,s,g),B}},70113:function(L,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);L.exports=function(m,N,k){for(var S=a(N),y=o.f,p=t.f,i=0;i "+p+""+k+">"}},77056:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},16216:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=e?function(o,m,N){return a.f(o,m,t(1,N))}:function(o,m,N){return o[m]=N,o}},7539:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=function(o,m,N){e?a.f(o,m,t(0,N)):o[m]=N}},74003:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,m=isFinite,N=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),i=e(k.getUTCFullYear),c=e(k.getUTCHours),f=e(k.getUTCMilliseconds),l=e(k.getUTCMinutes),d=e(k.getUTCMonth),s=e(k.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function u(){if(!m(y(this)))throw new o("Invalid time value");var C=this,g=i(C),v=f(C),h=g<0?"-":g>9999?"+":"";return h+t(N(g),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(l(C),2,0)+":"+t(s(C),2,0)+"."+t(v,3,0)+"Z"}return u}():S},95865:function(L,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},10069:function(L,r,n){"use strict";var e=n(76130),a=n(56018);L.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},59173:function(L,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);L.exports=function(m,N,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:N;if(e(k)&&t(k,p,S),S.global)y?m[N]=k:o(N,k);else{try{S.unsafe?m[N]&&(y=!0):delete m[N]}catch(i){}y?m[N]=k:a.f(m,N,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return m}},13648:function(L,r,n){"use strict";var e=n(59173);L.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},93422:function(L,r,n){"use strict";var e=n(40224),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},58937:function(L,r,n){"use strict";var e=n(62518),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(L,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(m){return o?t.createElement(m):{}}},72434:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(L,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},27955:function(L,r,n){"use strict";var e=n(2971),a=n(95823);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(L,r,n){"use strict";var e=n(15837);L.exports=/MSIE|Trident/.test(e)},6647:function(L,r,n){"use strict";var e=n(15837);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(L,r,n){"use strict";var e=n(15837);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(L,r,n){"use strict";var e=n(40224),a=n(38817);L.exports=a(e.process)==="process"},25062:function(L,r,n){"use strict";var e=n(15837);L.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(L,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,N=m&&m.v8,k,S;N&&(k=N.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),L.exports=S},53125:function(L,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},90298:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(L,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),m=n(93422),N=n(70113),k=n(95945);L.exports=function(S,y){var p=S.target,i=S.global,c=S.stat,f,l,d,s,u,C;if(i?l=e:c?l=e[p]||m(p,{}):l=e[p]&&e[p].prototype,l)for(d in y){if(u=y[d],S.dontCallGetSet?(C=a(l,d),s=C&&C.value):s=l[d],f=k(i?d:p+(c?".":"#")+d,S.forced),!f&&s!==void 0){if(typeof u==typeof s)continue;N(u,s)}(S.sham||s&&s.sham)&&t(u,"sham",!0),o(l,d,u,S)}}},41746:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(L,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),m=n(66266),N=n(16216),k=m("species"),S=RegExp.prototype;L.exports=function(y,p,i,c){var f=m(y),l=!o(function(){var C={};return C[f]=function(){return 7},""[y](C)!==7}),d=l&&!o(function(){var C=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[f]=/./[f]),g.exec=function(){return C=!0,null},g[f](""),!C});if(!l||!d||i){var s=/./[f],u=p(f,""[y],function(C,g,v,h,V){var b=g.exec;return b===t||b===S.exec?l&&!V?{done:!0,value:e(s,g,v,h)}:{done:!0,value:e(C,v,g,h)}:{done:!1}});a(String.prototype,y,u[0]),a(S,f,u[1])}c&&N(S[f],"sham",!0)}},68864:function(L,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),m=function N(k,S,y,p,i,c,f,l){for(var d=i,s=0,u=f?o(f,l):!1,C,g;s 0&&e(C)?(g=a(C),d=N(k,S,C,g,d,c-1)-1):(t(d+1),k[d]=C),d++),s++;return d};L.exports=m},56255:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(L,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(L,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);L.exports=function(m,N){return a(m),N===void 0?m:t?o(m,N):function(){return m.apply(N,arguments)}}},76799:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(L,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),m=n(77713),N=n(76799),k=Function,S=e([].concat),y=e([].join),p={},i=function(f,l,d){if(!o(p,l)){for(var s=[],u=0;u
]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(y,p,i,c,f,l){var d=i+y.length,s=c.length,u=S;return f!==void 0&&(f=a(f),u=k),m(l,u,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return N(p,0,i);case"'":return N(p,d);case"<":v=f[N(g,1,-1)];break;default:var h=+g;if(h===0)return C;if(h>s){var V=t(h/10);return V===0?C:V<=s?c[V-1]===void 0?o(g,1):c[V-1]+o(g,1):C}v=c[h-1]}return v===void 0?"":v})}},40224:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},89458:function(L,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(m,N){return t(a(m),N)}return o}()},21124:function(L){"use strict";L.exports={}},46122:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(L,r,n){"use strict";var e=n(40164);L.exports=e("document","documentElement")},1606:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(S,y,p){var i=r(p),c=p*8-y-1,f=(1< >1,d=y===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,u=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=f):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+l>=1?S+=d/v:S+=d*e(2,1-l),S*v>=2&&(C++,v/=2),C+l>=f?(g=0,C=f):C+l>=1?(g=(S*v-1)*e(2,y),C+=l):(g=S*e(2,l-1)*e(2,y),C=0));y>=8;)i[u++]=g&255,g/=256,y-=8;for(C=C< 0;)i[u++]=C&255,C/=256,c-=8;return i[--u]|=s*128,i},N=function(S,y){var p=S.length,i=p*8-y-1,c=(1<>1,l=i-7,d=p-1,s=S[d--],u=s&127,C;for(s>>=7;l>0;)u=u*256+S[d--],l-=8;for(C=u&(1<<-l)-1,u>>=-l,l+=y;l>0;)C=C*256+S[d--],l-=8;if(u===0)u=1-f;else{if(u===c)return C?NaN:s?-1/0:1/0;C+=e(2,y),u-=f}return(s?-1:1)*C*e(2,u-y)};L.exports={pack:m,unpack:N}},26736:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,m=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?m(N,""):o(N)}:o},2566:function(L,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);L.exports=function(o,m,N){var k,S;return t&&e(k=m.constructor)&&k!==N&&a(S=k.prototype)&&S!==N.prototype&&t(o,S),o}},43589:function(L,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),L.exports=t.inspectSource},29126:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),m=n(89458),N=n(56018).f,k=n(34813),S=n(63797),y=n(57975),p=n(33345),i=n(56255),c=!1,f=p("meta"),l=0,d=function(V){N(V,f,{value:{objectID:"O"+l++,weakData:{}}})},s=function(V,b){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!m(V,f)){if(!y(V))return"F";if(!b)return"E";d(V)}return V[f].objectID},u=function(V,b){if(!m(V,f)){if(!y(V))return!0;if(!b)return!1;d(V)}return V[f].weakData},C=function(V){return i&&c&&y(V)&&!m(V,f)&&d(V),V},g=function(){v.enable=function(){},c=!0;var V=k.f,b=a([].splice),B={};B[f]=1,V(B).length&&(k.f=function(I){for(var w=V(I),T=0,A=w.length;TI;I++)if(T=M(l[I]),T&&k(f,T))return T;return new c(!1)}b=S(l,B)}for(A=g?l.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(j){p(b,"throw",j)}if(typeof T=="object"&&T&&k(f,T))return T}return new c(!1)}},14868:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);L.exports=function(o,m,N){var k,S;a(o);try{if(k=t(o,"return"),!k){if(m==="throw")throw N;return N}k=e(k,o)}catch(y){S=!0,k=y}if(m==="throw")throw N;if(S)throw k;return a(k),N}},42599:function(L,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),m=n(90604),N=function(){return this};L.exports=function(k,S,y,p){var i=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,i,!1,!0),m[i]=N,k}},2449:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),m=n(7532),N=n(42599),k=n(31658),S=n(42878),y=n(94234),p=n(16216),i=n(59173),c=n(66266),f=n(90604),l=n(85106),d=o.PROPER,s=o.CONFIGURABLE,u=l.IteratorPrototype,C=l.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",V="entries",b=function(){return this};L.exports=function(B,I,w,T,A,x,E){N(w,I,T);var M=function(X){if(X===A&&F)return F;if(!C&&X&&X in R)return R[X];switch(X){case v:return function(){function Q(){return new w(this,X)}return Q}();case h:return function(){function Q(){return new w(this,X)}return Q}();case V:return function(){function Q(){return new w(this,X)}return Q}()}return function(){return new w(this)}},j=I+" Iterator",P=!1,R=B.prototype,D=R[g]||R["@@iterator"]||A&&R[A],F=!C&&D||M(A),U=I==="Array"&&R.entries||D,K,H,z;if(U&&(K=k(U.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==u&&(S?S(K,u):m(K[g])||i(K,g,b)),y(K,j,!0,!0),t&&(f[j]=b))),d&&A===h&&D&&D.name!==h&&(!t&&s?p(R,"name",h):(P=!0,F=function(){function G(){return a(D,this)}return G}())),A)if(H={values:M(h),keys:x?F:M(v),entries:M(V)},E)for(z in H)(C||P||!(z in R))&&i(R,z,H[z]);else e({target:I,proto:!0,forced:C||P},H);return(!t||E)&&R[g]!==F&&i(R,g,F,{name:A}),f[I]=F,H}},85106:function(L,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),m=n(31658),N=n(59173),k=n(66266),S=n(11478),y=k("iterator"),p=!1,i,c,f;[].keys&&(f=[].keys(),"next"in f?(c=m(m(f)),c!==Object.prototype&&(i=c)):p=!0);var l=!t(i)||e(function(){var d={};return i[y].call(d)!==d});l?i={}:S&&(i=o(i)),a(i[y])||N(i,y,function(){return this}),L.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},90604:function(L){"use strict";L.exports={}},8333:function(L,r,n){"use strict";var e=n(10475);L.exports=function(a){return e(a.length)}},76130:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),m=n(14141),N=n(26463).CONFIGURABLE,k=n(43589),S=n(35086),y=S.enforce,p=S.get,i=String,c=Object.defineProperty,f=e("".slice),l=e("".replace),d=e([].join),s=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),C=L.exports=function(g,v,h){f(i(v),0,7)==="Symbol("&&(v="["+l(i(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(m?c(g,"name",{value:v,configurable:!0}):g.name=v),s&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?m&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var V=y(g);return o(V,"source")||(V.source=d(u,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},32813:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},23207:function(L,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(k){return k+o-o};L.exports=function(N,k,S,y){var p=+N,i=a(p),c=e(p);if(i S||l!==l?c*(1/0):c*l}},75988:function(L,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function m(N){return e(N,a,t,o)}return m}()},53271:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},54307:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(L,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,m=n(23496),N=n(52426),k=n(6647),S=n(25062),y=n(95823),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,f=e.Promise,l=a("queueMicrotask"),d,s,u,C,g;if(!l){var v=new m,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(I){throw v.head&&d(),I}b&&b.enter()};!N&&!y&&!S&&p&&i?(s=!0,u=i.createTextNode(""),new p(h).observe(u,{characterData:!0}),d=function(){u.data=s=!s}):!k&&f&&f.resolve?(C=f.resolve(void 0),C.constructor=f,g=t(C.then,C),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),l=function(b){v.head||d(),v.add(b)}}L.exports=l},48532:function(L,r,n){"use strict";var e=n(97361),a=TypeError,t=function(m){var N,k;this.promise=new m(function(S,y){if(N!==void 0||k!==void 0)throw new a("Bad Promise constructor");N=S,k=y}),this.resolve=e(N),this.reject=e(k)};L.exports.f=function(o){return new t(o)}},89140:function(L,r,n){"use strict";var e=n(80969),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(L,r,n){"use strict";var e=n(40224),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,N=n(137),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,i=1/S(N+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=i?function(){function c(f){var l=m(o(f)),d=S(l);return d===0&&k(l,0)==="-"?-0:d}return c}():S},11540:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,N=n(137),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=k(N+"08")!==8||k(N+"0x16")!==22||y&&!a(function(){k(Object(y))});L.exports=c?function(){function f(l,d){var s=m(o(l));return k(s,d>>>0||(i(p,s)?16:10))}return f}():k},12752:function(L,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),m=n(84913),N=n(34220),k=n(9776),S=n(40076),y=n(26736),p=Object.assign,i=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function u(){i(this,"b",{value:3,enumerable:!1})}return u}()}),{b:2})).b!==1)return!0;var f={},l={},d=Symbol("assign detection"),s="abcdefghijklmnopqrst";return f[d]=7,s.split("").forEach(function(u){l[u]=u}),p({},f)[d]!==7||m(p({},l)).join("")!==s})?function(){function f(l,d){for(var s=S(l),u=arguments.length,C=1,g=N.f,v=k.f;u>C;)for(var h=y(arguments[C++]),V=g?c(m(h),g(h)):m(h),b=V.length,B=0,I;b>B;)I=V[B++],(!e||t(v,h,I))&&(s[I]=h[I]);return s}return f}():p},28969:function(L,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),m=n(54562),N=n(85158),k=n(5160),S=">",y="<",p="prototype",i="script",c=k("IE_PROTO"),f=function(){},l=function(v){return y+i+S+v+y+"/"+i+S},d=function(v){v.write(l("")),v.close();var h=v.parentWindow.Object;return v=null,h},s=function(){var v=N("iframe"),h="java"+i+":",V;return v.style.display="none",m.appendChild(v),v.src=String(h),V=v.contentWindow.document,V.open(),V.write(l("document.F=Object")),V.close(),V.F},u,C=function(){try{u=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&u?d(u):s():d(u);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,L.exports=Object.create||function(){function g(v,h){var V;return v!==null?(f[p]=e(v),V=new f,f[p]=null,V[c]=v):V=C(),h===void 0?V:a.f(V,h)}return g}()},65854:function(L,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),m=n(96812),N=n(84913);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=m(y),i=N(y),c=i.length,f=0,l;c>f;)t.f(S,l=i[f++],p[l]);return S}return k}()},56018:function(L,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),m=n(57640),N=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(f,l,d){if(o(f),l=m(l),o(d),typeof f=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var s=S(f,l);s&&s[i]&&(f[l]=d.value,d={configurable:p in d?d[p]:s[p],enumerable:y in d?d[y]:s[y],writable:!1})}return k(f,l,d)}return c}():k:function(){function c(f,l,d){if(o(f),l=m(l),o(d),a)try{return k(f,l,d)}catch(s){}if("get"in d||"set"in d)throw new N("Accessors not supported");return"value"in d&&(f[l]=d.value),f}return c}()},54168:function(L,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),m=n(96812),N=n(57640),k=n(89458),S=n(1606),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(i,c){if(i=m(i),c=N(c),S)try{return y(i,c)}catch(f){}if(k(i,c))return o(!a(t.f,i,c),i[c])}return p}()},63797:function(L,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(y){return o(m)}};L.exports.f=function(){function k(S){return m&&e(S)==="Window"?N(S):t(a(S))}return k}()},34813:function(L,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},34220:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(L,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),m=n(58776),N=o("IE_PROTO"),k=Object,S=k.prototype;L.exports=m?k.getPrototypeOf:function(y){var p=t(y);if(e(p,N))return p[N];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof k?S:null}},57975:function(L,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),m=Object.isExtensible,N=e(function(){m(1)});L.exports=N||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:m?m(S):!0}return k}():m},33314:function(L,r,n){"use strict";var e=n(18161);L.exports=e({}.isPrototypeOf)},62995:function(L,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,m=n(21124),N=e([].push);L.exports=function(k,S){var y=t(k),p=0,i=[],c;for(c in y)!a(m,c)&&a(y,c)&&N(i,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(i,c)||N(i,c));return i}},84913:function(L,r,n){"use strict";var e=n(62995),a=n(90298);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},33030:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);L.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},42878:function(L,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,N={},k;try{k=e(Object.prototype,"__proto__","set"),k(N,[]),m=N instanceof Array}catch(S){}return function(){function S(y,p){return t(y),o(p),a(y)&&(m?k(y,p):y.__proto__=p),y}return S}()}():void 0)},97452:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),m=n(84913),N=n(96812),k=n(9776).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),i=function(f){return function(l){for(var d=N(l),s=m(d),u=p&&o(d)===null,C=s.length,g=0,v=[],h;C>g;)h=s[g++],(!e||(u?h in d:S(d,h)))&&y(v,f?[h,d[h]]:d[h]);return v}};L.exports={entries:i(!0),values:i(!1)}},66628:function(L,r,n){"use strict";var e=n(82161),a=n(27806);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(L,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;L.exports=function(m,N){var k,S;if(N==="string"&&a(k=m.toString)&&!t(S=e(k,m))||a(k=m.valueOf)&&!t(S=e(k,m))||N!=="string"&&a(k=m.toString)&&!t(S=e(k,m)))return S;throw new o("Can't convert object to primitive value")}},93616:function(L,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),m=n(39482),N=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(m(S)),p=o.f;return p?N(y,p(S)):y}return k}()},5376:function(L,r,n){"use strict";var e=n(40224);L.exports=e},91114:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(L,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),m=n(43589),N=n(66266),k=n(27955),S=n(2971),y=n(11478),p=n(82709),i=a&&a.prototype,c=N("species"),f=!1,l=t(e.PromiseRejectionEvent),d=o("Promise",function(){var s=m(a),u=s!==String(a);if(!u&&p===66||y&&!(i.catch&&i.finally))return!0;if(!p||p<51||!/native code/.test(s)){var C=new a(function(h){h(1)}),g=function(V){V(function(){},function(){})},v=C.constructor={};if(v[c]=g,f=C.then(function(){})instanceof g,!f)return!0}return!u&&(k||S)&&!l});L.exports={CONSTRUCTOR:d,REJECTION_EVENT:l,SUBCLASSING:f}},35973:function(L,r,n){"use strict";var e=n(40224);L.exports=e.Promise},43827:function(L,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);L.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var N=t.f(o),k=N.resolve;return k(m),N.promise}},95044:function(L,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(L,r,n){"use strict";var e=n(56018).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(N){t[o]=N}return m}()})}},23496:function(L){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},L.exports=r},35553:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),m=n(72894),N=TypeError;L.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(m,k,S);throw new N("RegExp#exec called on incompatible receiver")}},72894:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),m=n(1064),N=n(75130),k=n(28969),S=n(35086).get,y=n(89604),p=n(5489),i=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,f=c,l=a("".charAt),d=a("".indexOf),s=a("".replace),u=a("".slice),C=function(){var V=/a/,b=/b*/g;return e(c,V,"a"),e(c,b,"a"),V.lastIndex!==0||b.lastIndex!==0}(),g=m.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||g||y||p;h&&(f=function(){function V(b){var B=this,I=S(B),w=t(b),T=I.raw,A,x,E,M,j,P,R;if(T)return T.lastIndex=B.lastIndex,A=e(f,T,w),B.lastIndex=T.lastIndex,A;var D=I.groups,F=g&&B.sticky,U=e(o,B),K=B.source,H=0,z=w;if(F&&(U=s(U,"y",""),d(U,"g")===-1&&(U+="g"),z=u(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&l(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",z=" "+z,H++),x=new RegExp("^(?:"+K+")",U)),v&&(x=new RegExp("^"+K+"$(?!\\s)",U)),C&&(E=B.lastIndex),M=e(c,F?x:B,z),F?M?(M.input=u(M.input,H),M[0]=u(M[0],H),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:C&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),v&&M&&M.length>1&&e(i,M[0],x,function(){for(j=1;j b)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},91029:function(L,r,n){"use strict";var e=n(1022),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},1156:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},37309:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},83827:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(7532),o=n(2178),m=n(15837),N=n(77713),k=n(22789),S=e.Function,y=/MSIE .\./.test(m)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,i){var c=i?2:1;return y?function(f,l){var d=k(arguments.length,1)>c,s=t(f)?f:S(f),u=d?N(arguments,c):[],C=d?function(){a(s,this,u)}:s;return i?p(C,l):p(C)}:p}},67420:function(L,r,n){"use strict";var e=n(40164),a=n(10069),t=n(66266),o=n(14141),m=t("species");L.exports=function(N){var k=e(N);o&&k&&!k[m]&&a(k,m,{configurable:!0,get:function(){function S(){return this}return S}()})}},94234:function(L,r,n){"use strict";var e=n(56018).f,a=n(89458),t=n(66266),o=t("toStringTag");L.exports=function(m,N,k){m&&!k&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:N})}},5160:function(L,r,n){"use strict";var e=n(75130),a=n(33345),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},95046:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(93422),o="__core-js_shared__",m=L.exports=a[o]||t(o,{});(m.versions||(m.versions=[])).push({version:"3.36.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},75130:function(L,r,n){"use strict";var e=n(95046);L.exports=function(a,t){return e[a]||(e[a]=t||{})}},78412:function(L,r,n){"use strict";var e=n(39482),a=n(76833),t=n(1022),o=n(66266),m=o("species");L.exports=function(N,k){var S=e(N).constructor,y;return S===void 0||t(y=e(S)[m])?k:a(y)}},32086:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},56852:function(L,r,n){"use strict";var e=n(18161),a=n(74952),t=n(26602),o=n(91029),m=e("".charAt),N=e("".charCodeAt),k=e("".slice),S=function(p){return function(i,c){var f=t(o(i)),l=a(c),d=f.length,s,u;return l<0||l>=d?p?"":void 0:(s=N(f,l),s<55296||s>56319||l+1===d||(u=N(f,l+1))<56320||u>57343?p?m(f,l):s:p?k(f,l,l+2):(s-55296<<10)+(u-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},33038:function(L,r,n){"use strict";var e=n(15837);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},34086:function(L,r,n){"use strict";var e=n(18161),a=n(10475),t=n(26602),o=n(84948),m=n(91029),N=e(o),k=e("".slice),S=Math.ceil,y=function(i){return function(c,f,l){var d=t(m(c)),s=a(f),u=d.length,C=l===void 0?" ":t(l),g,v;return s<=u||C===""?d:(g=s-u,v=N(C,S(g/C.length)),v.length>g&&(v=k(v,0,g)),i?d+v:v+d)}};L.exports={start:y(!1),end:y(!0)}},84948:function(L,r,n){"use strict";var e=n(74952),a=n(26602),t=n(91029),o=RangeError;L.exports=function(){function m(N){var k=a(t(this)),S="",y=e(N);if(y<0||y===1/0)throw new o("Wrong number of repetitions");for(;y>0;(y>>>=1)&&(k+=k))y&1&&(S+=k);return S}return m}()},11775:function(L,r,n){"use strict";var e=n(35171).end,a=n(93817);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},93817:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(41746),t=n(137),o="\u200B\x85\u180E";L.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},26402:function(L,r,n){"use strict";var e=n(35171).start,a=n(93817);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},35171:function(L,r,n){"use strict";var e=n(18161),a=n(91029),t=n(26602),o=n(137),m=e("".replace),N=RegExp("^["+o+"]+"),k=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(i){var c=t(a(i));return p&1&&(c=m(c,N,"")),p&2&&(c=m(c,k,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},70640:function(L,r,n){"use strict";var e=n(82709),a=n(41746),t=n(40224),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},75429:function(L,r,n){"use strict";var e=n(62696),a=n(40164),t=n(66266),o=n(59173);L.exports=function(){var m=a("Symbol"),N=m&&m.prototype,k=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(y){return e(k,this)},{arity:1})}},80353:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},91314:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(4509),o=n(7532),m=n(89458),N=n(41746),k=n(54562),S=n(77713),y=n(85158),p=n(22789),i=n(52426),c=n(95823),f=e.setImmediate,l=e.clearImmediate,d=e.process,s=e.Dispatch,u=e.Function,C=e.MessageChannel,g=e.String,v=0,h={},V="onreadystatechange",b,B,I,w;N(function(){b=e.location});var T=function(j){if(m(h,j)){var P=h[j];delete h[j],P()}},A=function(j){return function(){T(j)}},x=function(j){T(j.data)},E=function(j){e.postMessage(g(j),b.protocol+"//"+b.host)};(!f||!l)&&(f=function(){function M(j){p(arguments.length,1);var P=o(j)?j:u(j),R=S(arguments,1);return h[++v]=function(){a(P,void 0,R)},B(v),v}return M}(),l=function(){function M(j){delete h[j]}return M}(),c?B=function(j){d.nextTick(A(j))}:s&&s.now?B=function(j){s.now(A(j))}:C&&!i?(I=new C,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):V in y("script")?B=function(j){k.appendChild(y("script"))[V]=function(){k.removeChild(this),T(j)}}:B=function(j){setTimeout(A(j),0)}),L.exports={set:f,clear:l}},37497:function(L,r,n){"use strict";var e=n(18161);L.exports=e(1 .valueOf)},74067:function(L,r,n){"use strict";var e=n(74952),a=Math.max,t=Math.min;L.exports=function(o,m){var N=e(o);return N<0?a(N+m,0):t(N,m)}},757:function(L,r,n){"use strict";var e=n(4370),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},90835:function(L,r,n){"use strict";var e=n(74952),a=n(10475),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var m=e(o),N=a(m);if(m!==N)throw new t("Wrong length or index");return N}},96812:function(L,r,n){"use strict";var e=n(26736),a=n(91029);L.exports=function(t){return e(a(t))}},74952:function(L,r,n){"use strict";var e=n(34606);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10475:function(L,r,n){"use strict";var e=n(74952),a=Math.min;L.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},40076:function(L,r,n){"use strict";var e=n(91029),a=Object;L.exports=function(t){return a(e(t))}},65264:function(L,r,n){"use strict";var e=n(43627),a=RangeError;L.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},43627:function(L,r,n){"use strict";var e=n(74952),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},4370:function(L,r,n){"use strict";var e=n(62696),a=n(56831),t=n(74352),o=n(4817),m=n(14991),N=n(66266),k=TypeError,S=N("toPrimitive");L.exports=function(y,p){if(!a(y)||t(y))return y;var i=o(y,S),c;if(i){if(p===void 0&&(p="default"),c=e(i,y,p),!a(c)||t(c))return c;throw new k("Can't convert object to primitive value")}return p===void 0&&(p="number"),m(y,p)}},57640:function(L,r,n){"use strict";var e=n(4370),a=n(74352);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},82161:function(L,r,n){"use strict";var e=n(66266),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},26602:function(L,r,n){"use strict";var e=n(27806),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},78828:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},62518:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},12218:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(14141),m=n(66220),N=n(72951),k=n(46185),S=n(19870),y=n(7539),p=n(16216),i=n(57696),c=n(10475),f=n(90835),l=n(65264),d=n(78828),s=n(57640),u=n(89458),C=n(27806),g=n(56831),v=n(74352),h=n(28969),V=n(33314),b=n(42878),B=n(34813).f,I=n(7996),w=n(67480).forEach,T=n(67420),A=n(10069),x=n(56018),E=n(54168),M=n(6967),j=n(35086),P=n(2566),R=j.get,D=j.set,F=j.enforce,U=x.f,K=E.f,H=a.RangeError,z=k.ArrayBuffer,G=z.prototype,X=k.DataView,Q=N.NATIVE_ARRAY_BUFFER_VIEWS,ae=N.TYPED_ARRAY_TAG,re=N.TypedArray,de=N.TypedArrayPrototype,pe=N.isTypedArray,ye="BYTES_PER_ELEMENT",Ie="Wrong length",he=function(te,be){A(te,be,{configurable:!0,get:function(){function fe(){return R(this)[be]}return fe}()})},ne=function(te){var be;return V(G,te)||(be=C(te))==="ArrayBuffer"||be==="SharedArrayBuffer"},ce=function(te,be){return pe(te)&&!v(be)&&be in te&&i(+be)&&be>=0},q=function(){function me(te,be){return be=s(be),ce(te,be)?y(2,te[be]):K(te,be)}return me}(),se=function(){function me(te,be,fe){return be=s(be),ce(te,be)&&g(fe)&&u(fe,"value")&&!u(fe,"get")&&!u(fe,"set")&&!fe.configurable&&(!u(fe,"writable")||fe.writable)&&(!u(fe,"enumerable")||fe.enumerable)?(te[be]=fe.value,te):U(te,be,fe)}return me}();o?(Q||(E.f=q,x.f=se,he(de,"buffer"),he(de,"byteOffset"),he(de,"byteLength"),he(de,"length")),e({target:"Object",stat:!0,forced:!Q},{getOwnPropertyDescriptor:q,defineProperty:se}),L.exports=function(me,te,be){var fe=me.match(/\d+/)[0]/8,ge=me+(be?"Clamped":"")+"Array",ke="get"+me,Ce="set"+me,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},We=function(ue,Ne){var Ae=R(ue);return Ae.view[ke](Ne*fe+Ae.byteOffset,!0)},Ve=function(ue,Ne,Ae){var De=R(ue);De.view[Ce](Ne*fe+De.byteOffset,be?d(Ae):Ae,!0)},oe=function(ue,Ne){U(ue,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};Q?m&&(we=te(function(ve,ue,Ne,Ae){return S(ve,xe),P(function(){return g(ue)?ne(ue)?Ae!==void 0?new Se(ue,l(Ne,fe),Ae):Ne!==void 0?new Se(ue,l(Ne,fe)):new Se(ue):pe(ue)?M(we,ue):t(I,we,ue):new Se(f(ue))}(),ve,we)}),b&&b(we,re),w(B(Se),function(ve){ve in we||p(we,ve,Se[ve])}),we.prototype=xe):(we=te(function(ve,ue,Ne,Ae){S(ve,xe);var De=0,je=0,Ke,Ue,_e;if(!g(ue))_e=f(ue),Ue=_e*fe,Ke=new z(Ue);else if(ne(ue)){Ke=ue,je=l(Ne,fe);var Ge=ue.byteLength;if(Ae===void 0){if(Ge%fe)throw new H(Ie);if(Ue=Ge-je,Ue<0)throw new H(Ie)}else if(Ue=c(Ae)*fe,Ue+je>Ge)throw new H(Ie);_e=Ue/fe}else return pe(ue)?M(we,ue):t(I,we,ue);for(D(ve,{buffer:Ke,byteOffset:je,byteLength:Ue,length:_e,view:new X(Ke)});De<_e;)oe(ve,De++)}),b&&b(we,re),xe=we.prototype=h(de)),xe.constructor!==we&&p(xe,"constructor",we),F(xe).TypedArrayConstructor=we,ae&&p(xe,ae,ge);var le=we!==Se;Oe[ge]=we,e({global:!0,constructor:!0,forced:le,sham:!Q},Oe),ye in we||p(we,ye,fe),ye in xe||p(xe,ye,fe),T(ge)}):L.exports=function(){}},66220:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(52019),o=n(72951).NATIVE_ARRAY_BUFFER_VIEWS,m=e.ArrayBuffer,N=e.Int8Array;L.exports=!o||!a(function(){N(1)})||!a(function(){new N(-1)})||!t(function(k){new N,new N(null),new N(1.5),new N(k)},!0)||a(function(){return new N(new m(2),1,void 0).length!==1})},80936:function(L,r,n){"use strict";var e=n(6967),a=n(489);L.exports=function(t,o){return e(a(t),o)}},7996:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(76833),o=n(40076),m=n(8333),N=n(3438),k=n(76274),S=n(58482),y=n(5080),p=n(72951).aTypedArrayConstructor,i=n(757);L.exports=function(){function c(f){var l=t(this),d=o(f),s=arguments.length,u=s>1?arguments[1]:void 0,C=u!==void 0,g=k(d),v,h,V,b,B,I,w,T;if(g&&!S(g))for(w=N(d,g),T=w.next,d=[];!(I=a(T,w)).done;)d.push(I.value);for(C&&s>2&&(u=e(u,arguments[2])),h=m(d),V=new(p(l))(h),b=y(V),v=0;h>v;v++)B=C?u(d[v],v):d[v],V[v]=b?i(B):+B;return V}return c}()},489:function(L,r,n){"use strict";var e=n(72951),a=n(78412),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(m){return t(a(m,o(m)))}},33345:function(L,r,n){"use strict";var e=n(18161),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},81457:function(L,r,n){"use strict";var e=n(70640);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},83411:function(L,r,n){"use strict";var e=n(14141),a=n(41746);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},22789:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n =51||!a(function(){var u=[];return u[f]=!1,u.concat()[0]!==u}),d=function(C){if(!o(C))return!1;var g=C[f];return g!==void 0?!!g:t(C)},s=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function u(C){var g=m(this),v=y(g,0),h=0,V,b,B,I,w;for(V=-1,B=arguments.length;V1?arguments[1]:void 0)}return m}()})},24974:function(L,r,n){"use strict";var e=n(77549),a=n(59942),t=n(91138);e({target:"Array",proto:!0},{fill:a}),t("fill")},6297:function(L,r,n){"use strict";var e=n(77549),a=n(67480).filter,t=n(55114),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return m}()})},35173:function(L,r,n){"use strict";var e=n(77549),a=n(67480).findIndex,t=n(91138),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},5364:function(L,r,n){"use strict";var e=n(77549),a=n(67480).find,t=n(91138),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},88707:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(97361),o=n(40076),m=n(8333),N=n(32878);e({target:"Array",proto:!0},{flatMap:function(){function k(S){var y=o(this),p=m(y),i;return t(S),i=N(y,0),i.length=a(i,y,y,p,0,1,S,arguments.length>1?arguments[1]:void 0),i}return k}()})},16576:function(L,r,n){"use strict";var e=n(77549),a=n(68864),t=n(40076),o=n(8333),m=n(74952),N=n(32878);e({target:"Array",proto:!0},{flat:function(){function k(){var S=arguments.length?arguments[0]:void 0,y=t(this),p=o(y),i=N(y,0);return i.length=a(i,y,y,p,0,S===void 0?1:m(S)),i}return k}()})},21508:function(L,r,n){"use strict";var e=n(77549),a=n(75420);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},86339:function(L,r,n){"use strict";var e=n(77549),a=n(80363),t=n(52019),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},81850:function(L,r,n){"use strict";var e=n(77549),a=n(64210).includes,t=n(41746),o=n(91138),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function N(k){return a(this,k,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},98661:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(64210).indexOf,o=n(42309),m=a([].indexOf),N=!!m&&1/m([1],1,-0)<0,k=N||!o("indexOf");e({target:"Array",proto:!0,forced:k},{indexOf:function(){function S(y){var p=arguments.length>1?arguments[1]:void 0;return N?m(this,y,p)||0:t(this,y,p)}return S}()})},13431:function(L,r,n){"use strict";var e=n(77549),a=n(62367);e({target:"Array",stat:!0},{isArray:a})},65809:function(L,r,n){"use strict";var e=n(96812),a=n(91138),t=n(90604),o=n(35086),m=n(56018).f,N=n(2449),k=n(77056),S=n(11478),y=n(14141),p="Array Iterator",i=o.set,c=o.getterFor(p);L.exports=N(Array,"Array",function(l,d){i(this,{type:p,target:e(l),index:0,kind:d})},function(){var l=c(this),d=l.target,s=l.index++;if(!d||s>=d.length)return l.target=void 0,k(void 0,!0);switch(l.kind){case"keys":return k(s,!1);case"values":return k(d[s],!1)}return k([s,d[s]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&y&&f.name!=="values")try{m(f,"name",{value:"values"})}catch(l){}},8611:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(26736),o=n(96812),m=n(42309),N=a([].join),k=t!==Object,S=k||!m("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function y(p){return N(o(this),p===void 0?",":p)}return y}()})},97246:function(L,r,n){"use strict";var e=n(77549),a=n(16934);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},48741:function(L,r,n){"use strict";var e=n(77549),a=n(67480).map,t=n(55114),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return m}()})},90446:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(60354),o=n(12913),m=Array,N=a(function(){function k(){}return!(m.of.call(k)instanceof k)});e({target:"Array",stat:!0,forced:N},{of:function(){function k(){for(var S=0,y=arguments.length,p=new(t(this)?this:m)(y);y>S;)o(p,S,arguments[S++]);return p.length=y,p}return k}()})},61902:function(L,r,n){"use strict";var e=n(77549),a=n(98405).right,t=n(42309),o=n(82709),m=n(95823),N=!m&&o>79&&o<83,k=N||!t("reduceRight");e({target:"Array",proto:!0,forced:k},{reduceRight:function(){function S(y){return a(this,y,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},509:function(L,r,n){"use strict";var e=n(77549),a=n(98405).left,t=n(42309),o=n(82709),m=n(95823),N=!m&&o>79&&o<83,k=N||!t("reduce");e({target:"Array",proto:!0,forced:k},{reduce:function(){function S(y){var p=arguments.length;return a(this,y,p,p>1?arguments[1]:void 0)}return S}()})},96149:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(62367),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function N(){return t(this)&&(this.length=this.length),o(this)}return N}()})},66617:function(L,r,n){"use strict";var e=n(77549),a=n(62367),t=n(60354),o=n(56831),m=n(74067),N=n(8333),k=n(96812),S=n(12913),y=n(66266),p=n(55114),i=n(77713),c=p("slice"),f=y("species"),l=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(u,C){var g=k(this),v=N(g),h=m(u,v),V=m(C===void 0?v:C,v),b,B,I;if(a(g)&&(b=g.constructor,t(b)&&(b===l||a(b.prototype))?b=void 0:o(b)&&(b=b[f],b===null&&(b=void 0)),b===l||b===void 0))return i(g,h,V);for(B=new(b===void 0?l:b)(d(V-h,0)),I=0;h 1?arguments[1]:void 0)}return m}()})},56855:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(97361),o=n(40076),m=n(8333),N=n(58937),k=n(26602),S=n(41746),y=n(44815),p=n(42309),i=n(49847),c=n(56605),f=n(82709),l=n(53125),d=[],s=a(d.sort),u=a(d.push),C=S(function(){d.sort(void 0)}),g=S(function(){d.sort(null)}),v=p("sort"),h=!S(function(){if(f)return f<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:w+A,v:T})}for(d.sort(function(x,E){return E.v-x.v}),A=0;A k(T)?1:-1}};e({target:"Array",proto:!0,forced:V},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(h)return I===void 0?s(w):s(w,I);var T=[],A=m(w),x,E;for(E=0;Eg-b+V;I--)p(C,I-1)}else if(V>b)for(I=g-b;I>v;I--)w=I+b-1,T=I+V-1,w in C?C[T]=C[w]:p(C,T);for(I=0;I 9490626562425156e-8?o(p)+N:a(p-1+m(p-1)*m(p+1))}return S}()})},86551:function(L,r,n){"use strict";var e=n(77549),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(k){var S=+k;return!isFinite(S)||S===0?S:S<0?-m(-S):t(S+o(S*S+1))}var N=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:N},{asinh:m})},10940:function(L,r,n){"use strict";var e=n(77549),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(N){var k=+N;return k===0?k:t((1+k)/(1-k))/2}return m}()})},73763:function(L,r,n){"use strict";var e=n(77549),a=n(54307),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(N){var k=+N;return a(k)*o(t(k),.3333333333333333)}return m}()})},3372:function(L,r,n){"use strict";var e=n(77549),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(N){var k=N>>>0;return k?31-a(t(k+.5)*o):32}return m}()})},51629:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.cosh,o=Math.abs,m=Math.E,N=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:N},{cosh:function(){function k(S){var y=a(o(S)-1)+1;return(y+1/(y*m*m))*(m/2)}return k}()})},69727:function(L,r,n){"use strict";var e=n(77549),a=n(32813);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},27482:function(L,r,n){"use strict";var e=n(77549),a=n(75988);e({target:"Math",stat:!0},{fround:a})},7108:function(L,r,n){"use strict";var e=n(77549),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function N(k,S){for(var y=0,p=0,i=arguments.length,c=0,f,l;p0?(l=f/c,y+=l*l):y+=f;return c===1/0?1/0:c*o(y)}return N}()})},4115:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(N,k){var S=65535,y=+N,p=+k,i=S&y,c=S&p;return 0|i*c+((S&y>>>16)*c+i*(S&p>>>16)<<16>>>0)}return m}()})},63953:function(L,r,n){"use strict";var e=n(77549),a=n(53271);e({target:"Math",stat:!0},{log10:a})},71377:function(L,r,n){"use strict";var e=n(77549),a=n(69143);e({target:"Math",stat:!0},{log1p:a})},63956:function(L,r,n){"use strict";var e=n(77549),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},90037:function(L,r,n){"use strict";var e=n(77549),a=n(54307);e({target:"Math",stat:!0},{sign:a})},46818:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(32813),o=Math.abs,m=Math.exp,N=Math.E,k=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:k},{sinh:function(){function S(y){var p=+y;return o(p)<1?(t(p)-t(-p))/2:(m(p-1)-m(-p-1))*(N/2)}return S}()})},26681:function(L,r,n){"use strict";var e=n(77549),a=n(32813),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var N=+m,k=a(N),S=a(-N);return k===1/0?1:S===1/0?-1:(k-S)/(t(N)+t(-N))}return o}()})},83646:function(L,r,n){"use strict";var e=n(94234);e(Math,"Math",!0)},28876:function(L,r,n){"use strict";var e=n(77549),a=n(34606);e({target:"Math",stat:!0},{trunc:a})},36385:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(14141),o=n(40224),m=n(5376),N=n(18161),k=n(95945),S=n(89458),y=n(2566),p=n(33314),i=n(74352),c=n(4370),f=n(41746),l=n(34813).f,d=n(54168).f,s=n(56018).f,u=n(37497),C=n(35171).trim,g="Number",v=o[g],h=m[g],V=v.prototype,b=o.TypeError,B=N("".slice),I=N("".charCodeAt),w=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),D,F,U,K,H,z,G,X;if(i(R))throw new b("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=C(R),D=I(R,0),D===43||D===45){if(F=I(R,2),F===88||F===120)return NaN}else if(D===48){switch(I(R,1)){case 66:case 98:U=2,K=49;break;case 79:case 111:U=8,K=55;break;default:return+R}for(H=B(R,2),z=H.length,G=0;G K)return NaN;return parseInt(H,U)}}return+R},A=k(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(P){return p(V,P)&&f(function(){u(P)})},E=function(){function j(P){var R=arguments.length<1?0:v(w(P));return x(this)?y(Object(R),this,E):R}return j}();E.prototype=V,A&&!a&&(V.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var M=function(P,R){for(var D=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,U;D.length>F;F++)S(R,U=D[F])&&!S(P,U)&&s(P,U,d(R,U))};a&&h&&M(m[g],h),(A||a)&&M(m[g],v)},84295:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59785:function(L,r,n){"use strict";var e=n(77549),a=n(69079);e({target:"Number",stat:!0},{isFinite:a})},8846:function(L,r,n){"use strict";var e=n(77549),a=n(57696);e({target:"Number",stat:!0},{isInteger:a})},50237:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},6436:function(L,r,n){"use strict";var e=n(77549),a=n(57696),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},68286:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},23940:function(L,r,n){"use strict";var e=n(77549);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},82425:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},82118:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},7419:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74952),o=n(37497),m=n(84948),N=n(41746),k=RangeError,S=String,y=Math.floor,p=a(m),i=a("".slice),c=a(1 .toFixed),f=function g(v,h,V){return h===0?V:h%2===1?g(v,h-1,V*v):g(v*v,h/2,V)},l=function(v){for(var h=0,V=v;V>=4096;)h+=12,V/=4096;for(;V>=2;)h+=1,V/=2;return h},d=function(v,h,V){for(var b=-1,B=V;++b<6;)B+=h*v[b],v[b]=B%1e7,B=y(B/1e7)},s=function(v,h){for(var V=6,b=0;--V>=0;)b+=v[V],v[V]=y(b/h),b=b%h*1e7},u=function(v){for(var h=6,V="";--h>=0;)if(V!==""||h===0||v[h]!==0){var b=S(v[h]);V=V===""?b:V+p("0",7-b.length)+b}return V},C=N(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!N(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function g(v){var h=o(this),V=t(v),b=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(V<0||V>20)throw new k("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=l(h*f(2,69,1))-69,T=w<0?h*f(2,-w,1):h/f(2,w,1),T*=4503599627370496,w=52-w,w>0){for(d(b,0,T),A=V;A>=7;)d(b,1e7,0),A-=7;for(d(b,f(10,A,1),0),A=w-1;A>=23;)s(b,8388608),A-=23;s(b,1<0?(x=I.length,I=B+(x<=V?"0."+p("0",V-x)+I:i(I,0,x-V)+"."+i(I,x-V))):I=B+I,I}return g}()})},42409:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(41746),o=n(37497),m=a(1 .toPrecision),N=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:N},{toPrecision:function(){function k(S){return S===void 0?m(o(this)):m(o(this),S)}return k}()})},29002:function(L,r,n){"use strict";var e=n(77549),a=n(12752);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},85795:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(28969);e({target:"Object",stat:!0,sham:!a},{create:t})},74722:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),m=n(40076),N=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function k(S,y){N.f(m(this),S,{get:o(y),enumerable:!0,configurable:!0})}return k}()})},5300:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(65854).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},85684:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(56018).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},36014:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(97361),m=n(40076),N=n(56018);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function k(S,y){N.f(m(this),S,{set:o(y),enumerable:!0,configurable:!0})}return k}()})},98551:function(L,r,n){"use strict";var e=n(77549),a=n(97452).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},66288:function(L,r,n){"use strict";var e=n(77549),a=n(56255),t=n(41746),o=n(56831),m=n(29126).onFreeze,N=Object.freeze,k=t(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!a},{freeze:function(){function S(y){return N&&o(y)?N(m(y)):y}return S}()})},26862:function(L,r,n){"use strict";var e=n(77549),a=n(281),t=n(12913);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var N={};return a(m,function(k,S){t(N,k,S)},{AS_ENTRIES:!0}),N}return o}()})},78686:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(96812),o=n(54168).f,m=n(14141),N=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!m},{getOwnPropertyDescriptor:function(){function k(S,y){return o(t(S),y)}return k}()})},36789:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(93616),o=n(96812),m=n(54168),N=n(12913);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function k(S){for(var y=o(S),p=m.f,i=t(y),c={},f=0,l,d;i.length>f;)d=p(y,l=i[f++]),d!==void 0&&N(c,l,d);return c}return k}()})},82707:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(63797).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},93146:function(L,r,n){"use strict";var e=n(77549),a=n(70640),t=n(41746),o=n(34220),m=n(40076),N=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:N},{getOwnPropertySymbols:function(){function k(S){var y=o.f;return y?y(m(S)):[]}return k}()})},69740:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(40076),o=n(31658),m=n(58776),N=a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!m},{getPrototypeOf:function(){function k(S){return o(t(S))}return k}()})},54789:function(L,r,n){"use strict";var e=n(77549),a=n(57975);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},49626:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),m=n(65693),N=Object.isFrozen,k=m||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isFrozen:function(){function S(y){return!t(y)||m&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},67660:function(L,r,n){"use strict";var e=n(77549),a=n(41746),t=n(56831),o=n(38817),m=n(65693),N=Object.isSealed,k=m||a(function(){N(1)});e({target:"Object",stat:!0,forced:k},{isSealed:function(){function S(y){return!t(y)||m&&o(y)==="ArrayBuffer"?!0:N?N(y):!1}return S}()})},87847:function(L,r,n){"use strict";var e=n(77549),a=n(37309);e({target:"Object",stat:!0},{is:a})},43619:function(L,r,n){"use strict";var e=n(77549),a=n(40076),t=n(84913),o=n(41746),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function N(k){return t(a(k))}return N}()})},42777:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),m=n(57640),N=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(y){var p=o(this),i=m(y),c;do if(c=k(p,i))return c.get;while(p=N(p))}return S}()})},13045:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(33030),o=n(40076),m=n(57640),N=n(31658),k=n(54168).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(y){var p=o(this),i=m(y),c;do if(c=k(p,i))return c.set;while(p=N(p))}return S}()})},38664:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),m=n(41746),N=Object.preventExtensions,k=m(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{preventExtensions:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},29650:function(L,r,n){"use strict";var e=n(77549),a=n(56831),t=n(29126).onFreeze,o=n(56255),m=n(41746),N=Object.seal,k=m(function(){N(1)});e({target:"Object",stat:!0,forced:k,sham:!o},{seal:function(){function S(y){return N&&a(y)?N(t(y)):y}return S}()})},58176:function(L,r,n){"use strict";var e=n(77549),a=n(42878);e({target:"Object",stat:!0},{setPrototypeOf:a})},35286:function(L,r,n){"use strict";var e=n(82161),a=n(59173),t=n(66628);e||a(Object.prototype,"toString",t,{unsafe:!0})},13313:function(L,r,n){"use strict";var e=n(77549),a=n(97452).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},26528:function(L,r,n){"use strict";var e=n(77549),a=n(43283);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},54959:function(L,r,n){"use strict";var e=n(77549),a=n(11540);e({global:!0,forced:parseInt!==a},{parseInt:a})},34344:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),m=n(91114),N=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{all:function(){function S(y){var p=this,i=o.f(p),c=i.resolve,f=i.reject,l=m(function(){var d=t(p.resolve),s=[],u=0,C=1;N(y,function(g){var v=u++,h=!1;C++,a(d,p,g).then(function(V){h||(h=!0,s[v]=V,--C||c(s))},f)}),--C||c(s)});return l.error&&f(l.value),i.promise}return S}()})},60:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(49669).CONSTRUCTOR,o=n(35973),m=n(40164),N=n(7532),k=n(59173),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&N(o)){var y=m("Promise").prototype.catch;S.catch!==y&&k(S,"catch",y,{unsafe:!0})}},7803:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(95823),o=n(40224),m=n(62696),N=n(59173),k=n(42878),S=n(94234),y=n(67420),p=n(97361),i=n(7532),c=n(56831),f=n(19870),l=n(78412),d=n(91314).set,s=n(27150),u=n(46122),C=n(91114),g=n(23496),v=n(35086),h=n(35973),V=n(49669),b=n(48532),B="Promise",I=V.CONSTRUCTOR,w=V.REJECTION_EVENT,T=V.SUBCLASSING,A=v.getterFor(B),x=v.set,E=h&&h.prototype,M=h,j=E,P=o.TypeError,R=o.document,D=o.process,F=b.f,U=F,K=!!(R&&R.createEvent&&o.dispatchEvent),H="unhandledrejection",z="rejectionhandled",G=0,X=1,Q=2,ae=1,re=2,de,pe,ye,Ie,he=function(Ce){var Se;return c(Ce)&&i(Se=Ce.then)?Se:!1},ne=function(Ce,Se){var we=Se.value,xe=Se.state===X,Oe=xe?Ce.ok:Ce.fail,We=Ce.resolve,Ve=Ce.reject,oe=Ce.domain,le,ve,ue;try{Oe?(xe||(Se.rejection===re&&te(Se),Se.rejection=ae),Oe===!0?le=we:(oe&&oe.enter(),le=Oe(we),oe&&(oe.exit(),ue=!0)),le===Ce.promise?Ve(new P("Promise-chain cycle")):(ve=he(le))?m(ve,le,We,Ve):We(le)):Ve(we)}catch(Ne){oe&&!ue&&oe.exit(),Ve(Ne)}},ce=function(Ce,Se){Ce.notified||(Ce.notified=!0,s(function(){for(var we=Ce.reactions,xe;xe=we.get();)ne(xe,Ce);Ce.notified=!1,Se&&!Ce.rejection&&se(Ce)}))},q=function(Ce,Se,we){var xe,Oe;K?(xe=R.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(Ce,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+Ce])?Oe(xe):Ce===H&&u("Unhandled promise rejection",we)},se=function(Ce){m(d,o,function(){var Se=Ce.facade,we=Ce.value,xe=me(Ce),Oe;if(xe&&(Oe=C(function(){t?D.emit("unhandledRejection",we,Se):q(H,Se,we)}),Ce.rejection=t||me(Ce)?re:ae,Oe.error))throw Oe.value})},me=function(Ce){return Ce.rejection!==ae&&!Ce.parent},te=function(Ce){m(d,o,function(){var Se=Ce.facade;t?D.emit("rejectionHandled",Se):q(z,Se,Ce.value)})},be=function(Ce,Se,we){return function(xe){Ce(Se,xe,we)}},fe=function(Ce,Se,we){Ce.done||(Ce.done=!0,we&&(Ce=we),Ce.value=Se,Ce.state=Q,ce(Ce,!0))},ge=function ke(Ce,Se,we){if(!Ce.done){Ce.done=!0,we&&(Ce=we);try{if(Ce.facade===Se)throw new P("Promise can't be resolved itself");var xe=he(Se);xe?s(function(){var Oe={done:!1};try{m(xe,Se,be(ke,Oe,Ce),be(fe,Oe,Ce))}catch(We){fe(Oe,We,Ce)}}):(Ce.value=Se,Ce.state=X,ce(Ce,!1))}catch(Oe){fe({done:!1},Oe,Ce)}}};if(I&&(M=function(){function ke(Ce){f(this,j),p(Ce),m(de,this);var Se=A(this);try{Ce(be(ge,Se),be(fe,Se))}catch(we){fe(Se,we)}}return ke}(),j=M.prototype,de=function(){function ke(Ce){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:G,value:void 0})}return ke}(),de.prototype=N(j,"then",function(){function ke(Ce,Se){var we=A(this),xe=F(l(this,M));return we.parent=!0,xe.ok=i(Ce)?Ce:!0,xe.fail=i(Se)&&Se,xe.domain=t?D.domain:void 0,we.state===G?we.reactions.add(xe):s(function(){ne(xe,we)}),xe.promise}return ke}()),pe=function(){var Ce=new de,Se=A(Ce);this.promise=Ce,this.resolve=be(ge,Se),this.reject=be(fe,Se)},b.f=F=function(Ce){return Ce===M||Ce===ye?new pe(Ce):U(Ce)},!a&&i(h)&&E!==Object.prototype)){Ie=E.then,T||N(E,"then",function(){function ke(Ce,Se){var we=this;return new M(function(xe,Oe){m(Ie,we,xe,Oe)}).then(Ce,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}k&&k(E,j)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:M}),S(M,B,!1,!0),y(B)},54412:function(L,r,n){"use strict";var e=n(77549),a=n(11478),t=n(35973),o=n(41746),m=n(40164),N=n(7532),k=n(78412),S=n(43827),y=n(59173),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function f(l){var d=k(this,m("Promise")),s=N(l);return this.then(s?function(u){return S(d,l()).then(function(){return u})}:l,s?function(u){return S(d,l()).then(function(){throw u})}:l)}return f}()}),!a&&N(t)){var c=m("Promise").prototype.finally;p.finally!==c&&y(p,"finally",c,{unsafe:!0})}},78129:function(L,r,n){"use strict";n(7803),n(34344),n(60),n(61270),n(82248),n(30347)},61270:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(97361),o=n(48532),m=n(91114),N=n(281),k=n(95044);e({target:"Promise",stat:!0,forced:k},{race:function(){function S(y){var p=this,i=o.f(p),c=i.reject,f=m(function(){var l=t(p.resolve);N(y,function(d){a(l,p,d).then(i.resolve,c)})});return f.error&&c(f.value),i.promise}return S}()})},82248:function(L,r,n){"use strict";var e=n(77549),a=n(48532),t=n(49669).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var N=a.f(this),k=N.reject;return k(m),N.promise}return o}()})},30347:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(11478),o=n(35973),m=n(49669).CONSTRUCTOR,N=n(43827),k=a("Promise"),S=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function y(p){return N(S&&this===k?o:this,p)}return y}()})},82427:function(L,r,n){"use strict";var e=n(77549),a=n(70918),t=n(97361),o=n(39482),m=n(41746),N=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:N},{apply:function(){function k(S,y,p){return a(t(S),y,o(p))}return k}()})},8390:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(70918),o=n(9379),m=n(76833),N=n(39482),k=n(56831),S=n(28969),y=n(41746),p=a("Reflect","construct"),i=Object.prototype,c=[].push,f=y(function(){function s(){}return!(p(function(){},[],s)instanceof s)}),l=!y(function(){p(function(){})}),d=f||l;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function s(u,C){m(u),N(C);var g=arguments.length<3?u:m(arguments[2]);if(l&&!f)return p(u,C,g);if(u===g){switch(C.length){case 0:return new u;case 1:return new u(C[0]);case 2:return new u(C[0],C[1]);case 3:return new u(C[0],C[1],C[2]);case 4:return new u(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,u,v))}var h=g.prototype,V=S(k(h)?h:i),b=t(u,V,C);return k(b)?b:V}return s}()})},68260:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(57640),m=n(56018),N=n(41746),k=N(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:k,sham:!a},{defineProperty:function(){function S(y,p,i){t(y);var c=o(p);t(i);try{return m.f(y,c,i),!0}catch(f){return!1}}return S}()})},86508:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(54168).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,N){var k=t(a(m),N);return k&&!k.configurable?!1:delete m[N]}return o}()})},17134:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(39482),o=n(54168);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(N,k){return o.f(t(N),k)}return m}()})},18972:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(31658),o=n(58776);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(N){return t(a(N))}return m}()})},65971:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(56831),o=n(39482),m=n(35892),N=n(54168),k=n(31658);function S(y,p){var i=arguments.length<3?y:arguments[2],c,f;if(o(y)===i)return y[p];if(c=N.f(y,p),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(f=k(y)))return S(f,p,i)}e({target:"Reflect",stat:!0},{get:S})},78623:function(L,r,n){"use strict";var e=n(77549);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},60149:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(57975);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},56380:function(L,r,n){"use strict";var e=n(77549),a=n(93616);e({target:"Reflect",stat:!0},{ownKeys:a})},72792:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(39482),o=n(56255);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(N){t(N);try{var k=a("Object","preventExtensions");return k&&k(N),!0}catch(S){return!1}}return m}()})},25168:function(L,r,n){"use strict";var e=n(77549),a=n(39482),t=n(51689),o=n(42878);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(N,k){a(N),t(k);try{return o(N,k),!0}catch(S){return!1}}return m}()})},60631:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(39482),o=n(56831),m=n(35892),N=n(41746),k=n(56018),S=n(54168),y=n(31658),p=n(7539);function i(f,l,d){var s=arguments.length<4?f:arguments[3],u=S.f(t(f),l),C,g,v;if(!u){if(o(g=y(f)))return i(g,l,d,s);u=p(0)}if(m(u)){if(u.writable===!1||!o(s))return!1;if(C=S.f(s,l)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,k.f(s,l,C)}else k.f(s,l,p(0,d))}else{if(v=u.set,v===void 0)return!1;a(v,s,d)}return!0}var c=N(function(){var f=function(){},l=k.f(new f,"a",{configurable:!0});return Reflect.set(f.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},85177:function(L,r,n){"use strict";var e=n(14141),a=n(40224),t=n(18161),o=n(95945),m=n(2566),N=n(16216),k=n(28969),S=n(34813).f,y=n(33314),p=n(80969),i=n(26602),c=n(60425),f=n(1064),l=n(77495),d=n(59173),s=n(41746),u=n(89458),C=n(35086).enforce,g=n(67420),v=n(66266),h=n(89604),V=n(5489),b=v("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),M=t("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,D=new B(P)!==P,F=f.MISSED_STICKY,U=f.UNSUPPORTED_Y,K=e&&(!D||F||h||V||s(function(){return R[b]=!1,B(P)!==P||B(R)===R||String(B(P,"i"))!=="/a/i"})),H=function(re){for(var de=re.length,pe=0,ye="",Ie=!1,he;pe<=de;pe++){if(he=A(re,pe),he==="\\"){ye+=he+A(re,++pe);continue}!Ie&&he==="."?ye+="[\\s\\S]":(he==="["?Ie=!0:he==="]"&&(Ie=!1),ye+=he)}return ye},z=function(re){for(var de=re.length,pe=0,ye="",Ie=[],he=k(null),ne=!1,ce=!1,q=0,se="",me;pe<=de;pe++){if(me=A(re,pe),me==="\\")me+=A(re,++pe);else if(me==="]")ne=!1;else if(!ne)switch(!0){case me==="[":ne=!0;break;case me==="(":T(j,M(re,pe+1))&&(pe+=2,ce=!0),ye+=me,q++;continue;case(me===">"&&ce):if(se===""||u(he,se))throw new w("Invalid capture group name");he[se]=!0,Ie[Ie.length]=[se,q],ce=!1,se="";continue}ce?se+=me:ye+=me}return[ye,Ie]};if(o("RegExp",K)){for(var G=function(){function ae(re,de){var pe=y(I,this),ye=p(re),Ie=de===void 0,he=[],ne=re,ce,q,se,me,te,be;if(!pe&&ye&&Ie&&re.constructor===G)return re;if((ye||y(I,re))&&(re=re.source,Ie&&(de=c(ne))),re=re===void 0?"":i(re),de=de===void 0?"":i(de),ne=re,h&&"dotAll"in P&&(q=!!de&&E(de,"s")>-1,q&&(de=x(de,/s/g,""))),ce=de,F&&"sticky"in P&&(se=!!de&&E(de,"y")>-1,se&&U&&(de=x(de,/y/g,""))),V&&(me=z(re),re=me[0],he=me[1]),te=m(B(re,de),pe?this:I,G),(q||se||he.length)&&(be=C(te),q&&(be.dotAll=!0,be.raw=G(H(re),ce)),se&&(be.sticky=!0),he.length&&(be.groups=he)),re!==ne)try{N(te,"source",ne===""?"(?:)":ne)}catch(fe){}return te}return ae}(),X=S(B),Q=0;X.length>Q;)l(G,B,X[Q++]);I.constructor=G,G.prototype=I,d(a,"RegExp",G,{constructor:!0})}g("RegExp")},95880:function(L,r,n){"use strict";var e=n(77549),a=n(72894);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},59978:function(L,r,n){"use strict";var e=n(40224),a=n(14141),t=n(10069),o=n(65844),m=n(41746),N=e.RegExp,k=N.prototype,S=a&&m(function(){var y=!0;try{N(".","d")}catch(u){y=!1}var p={},i="",c=y?"dgimsy":"gimsy",f=function(C,g){Object.defineProperty(p,C,{get:function(){function v(){return i+=g,!0}return v}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(l.hasIndices="d");for(var d in l)f(d,l[d]);var s=Object.getOwnPropertyDescriptor(k,"flags").get.call(p);return s!==c||i!==c});S&&t(k,"flags",{configurable:!0,get:o})},96360:function(L,r,n){"use strict";var e=n(26463).PROPER,a=n(59173),t=n(39482),o=n(26602),m=n(41746),N=n(60425),k="toString",S=RegExp.prototype,y=S[k],p=m(function(){return y.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&y.name!==k;(p||i)&&a(S,k,function(){function c(){var f=t(this),l=o(f.source),d=o(N(f));return"/"+l+"/"+d}return c}(),{unsafe:!0})},47338:function(L,r,n){"use strict";var e=n(93439),a=n(10623);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},43108:function(L,r,n){"use strict";n(47338)},36:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},30519:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},33547:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},53426:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},37801:function(L,r,n){"use strict";var e=n(77549),a=n(56852).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},3044:function(L,r,n){"use strict";var e=n(77549),a=n(85067),t=n(54168).f,o=n(10475),m=n(26602),N=n(89140),k=n(91029),S=n(93321),y=n(11478),p=a("".slice),i=Math.min,c=S("endsWith"),f=!y&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!f&&!c},{endsWith:function(){function l(d){var s=m(k(this));N(d);var u=arguments.length>1?arguments[1]:void 0,C=s.length,g=u===void 0?C:i(o(u),C),v=m(d);return p(s,g-v.length,g)===v}return l}()})},32031:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},13153:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},21953:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},48432:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(74067),o=RangeError,m=String.fromCharCode,N=String.fromCodePoint,k=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function y(p){for(var i=[],c=arguments.length,f=0,l;c>f;){if(l=+arguments[f++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[f]=l<65536?m(l):m(((l-=65536)>>10)+55296,l%1024+56320)}return k(i,"")}return y}()})},54564:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(89140),o=n(91029),m=n(26602),N=n(93321),k=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(y){return!!~k(m(o(this)),m(t(y)),arguments.length>1?arguments[1]:void 0)}return S}()})},83560:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},58179:function(L,r,n){"use strict";var e=n(56852).charAt,a=n(26602),t=n(35086),o=n(2449),m=n(77056),N="String Iterator",k=t.set,S=t.getterFor(N);o(String,"String",function(y){k(this,{type:N,string:a(y),index:0})},function(){function y(){var p=S(this),i=p.string,c=p.index,f;return c>=i.length?m(void 0,!0):(f=e(i,c),p.index+=f.length,m(f,!1))}return y}())},63465:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},68164:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),m=n(10475),N=n(26602),k=n(91029),S=n(4817),y=n(62970),p=n(35553);a("match",function(i,c,f){return[function(){function l(d){var s=k(this),u=o(d)?void 0:S(d,i);return u?e(u,d,s):new RegExp(d)[i](N(s))}return l}(),function(l){var d=t(this),s=N(l),u=f(c,d,s);if(u.done)return u.value;if(!d.global)return p(d,s);var C=d.unicode;d.lastIndex=0;for(var g=[],v=0,h;(h=p(d,s))!==null;){var V=N(h[0]);g[v]=V,V===""&&(d.lastIndex=y(s,m(d.lastIndex),C)),v++}return v===0?null:g}]})},58880:function(L,r,n){"use strict";var e=n(77549),a=n(34086).end,t=n(33038);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},54465:function(L,r,n){"use strict";var e=n(77549),a=n(34086).start,t=n(33038);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},97327:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(96812),o=n(40076),m=n(26602),N=n(8333),k=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function y(p){var i=t(o(p).raw),c=N(i);if(!c)return"";for(var f=arguments.length,l=[],d=0;;){if(k(l,m(i[d++])),d===c)return S(l,"");d ")!=="7"});o("replace",function(x,E,M){var j=T?"$":"$0";return[function(){function P(R,D){var F=c(this),U=S(R)?void 0:l(R,C);return U?a(U,R,F,D):a(E,i(F),R,D)}return P}(),function(P,R){var D=N(this),F=i(P);if(typeof R=="string"&&b(R,j)===-1&&b(R,"$<")===-1){var U=M(E,D,F,R);if(U.done)return U.value}var K=k(R);K||(R=i(R));var H=D.global,z;H&&(z=D.unicode,D.lastIndex=0);for(var G=[],X;X=s(D,F),!(X===null||(V(G,X),!H));){var Q=i(X[0]);Q===""&&(D.lastIndex=f(F,p(D.lastIndex),z))}for(var ae="",re=0,de=0;de =re&&(ae+=B(F,re,ye)+he,re=ye+pe.length)}return ae+B(F,re)}]},!A||!w||T)},17337:function(L,r,n){"use strict";var e=n(62696),a=n(85427),t=n(39482),o=n(1022),m=n(91029),N=n(37309),k=n(26602),S=n(4817),y=n(35553);a("search",function(p,i,c){return[function(){function f(l){var d=m(this),s=o(l)?void 0:S(l,p);return s?e(s,l,d):new RegExp(l)[p](k(d))}return f}(),function(f){var l=t(this),d=k(f),s=c(i,l,d);if(s.done)return s.value;var u=l.lastIndex;N(u,0)||(l.lastIndex=0);var C=y(l,d);return N(l.lastIndex,u)||(l.lastIndex=u),C===null?-1:C.index}]})},98998:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},53713:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(85427),o=n(39482),m=n(1022),N=n(91029),k=n(78412),S=n(62970),y=n(10475),p=n(26602),i=n(4817),c=n(35553),f=n(1064),l=n(41746),d=f.UNSUPPORTED_Y,s=4294967295,u=Math.min,C=a([].push),g=a("".slice),v=!l(function(){var V=/(?:)/,b=V.exec;V.exec=function(){return b.apply(this,arguments)};var B="ab".split(V);return B.length!==2||B[0]!=="a"||B[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(V,b,B){var I="0".split(void 0,0).length?function(w,T){return w===void 0&&T===0?[]:e(b,this,w,T)}:b;return[function(){function w(T,A){var x=N(this),E=m(T)?void 0:i(T,V);return E?e(E,T,x,A):e(I,p(x),T,A)}return w}(),function(w,T){var A=o(this),x=p(w);if(!h){var E=B(I,A,x,T,I!==b);if(E.done)return E.value}var M=k(A,RegExp),j=A.unicode,P=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(d?"g":"y"),R=new M(d?"^(?:"+A.source+")":A,P),D=T===void 0?s:T>>>0;if(D===0)return[];if(x.length===0)return c(R,x)===null?[x]:[];for(var F=0,U=0,K=[];U 1?arguments[1]:void 0,s.length)),C=m(d);return p(s,u,u+C.length)===C}return l}()})},96227:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15483:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},86829:function(L,r,n){"use strict";var e=n(77549),a=n(93677),t=n(32086);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},93073:function(L,r,n){"use strict";n(17434);var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},69107:function(L,r,n){"use strict";var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},17434:function(L,r,n){"use strict";var e=n(77549),a=n(11775);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},50800:function(L,r,n){"use strict";n(69107);var e=n(77549),a=n(26402);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},11121:function(L,r,n){"use strict";var e=n(77549),a=n(35171).trim,t=n(93817);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},46951:function(L,r,n){"use strict";var e=n(15388);e("asyncIterator")},9056:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(62696),o=n(18161),m=n(11478),N=n(14141),k=n(70640),S=n(41746),y=n(89458),p=n(33314),i=n(39482),c=n(96812),f=n(57640),l=n(26602),d=n(7539),s=n(28969),u=n(84913),C=n(34813),g=n(63797),v=n(34220),h=n(54168),V=n(56018),b=n(65854),B=n(9776),I=n(59173),w=n(10069),T=n(75130),A=n(5160),x=n(21124),E=n(33345),M=n(66266),j=n(32938),P=n(15388),R=n(75429),D=n(94234),F=n(35086),U=n(67480).forEach,K=A("hidden"),H="Symbol",z="prototype",G=F.set,X=F.getterFor(H),Q=Object[z],ae=a.Symbol,re=ae&&ae[z],de=a.RangeError,pe=a.TypeError,ye=a.QObject,Ie=h.f,he=V.f,ne=g.f,ce=B.f,q=o([].push),se=T("symbols"),me=T("op-symbols"),te=T("wks"),be=!ye||!ye[z]||!ye[z].findChild,fe=function(le,ve,ue){var Ne=Ie(Q,ve);Ne&&delete Q[ve],he(le,ve,ue),Ne&&le!==Q&&he(Q,ve,Ne)},ge=N&&S(function(){return s(he({},"a",{get:function(){function oe(){return he(this,"a",{value:7}).a}return oe}()})).a!==7})?fe:he,ke=function(le,ve){var ue=se[le]=s(re);return G(ue,{type:H,tag:le,description:ve}),N||(ue.description=ve),ue},Ce=function(){function oe(le,ve,ue){le===Q&&Ce(me,ve,ue),i(le);var Ne=f(ve);return i(ue),y(se,Ne)?(ue.enumerable?(y(le,K)&&le[K][Ne]&&(le[K][Ne]=!1),ue=s(ue,{enumerable:d(0,!1)})):(y(le,K)||he(le,K,d(1,s(null))),le[K][Ne]=!0),ge(le,Ne,ue)):he(le,Ne,ue)}return oe}(),Se=function(){function oe(le,ve){i(le);var ue=c(ve),Ne=u(ue).concat(Ve(ue));return U(Ne,function(Ae){(!N||t(xe,ue,Ae))&&Ce(le,Ae,ue[Ae])}),le}return oe}(),we=function(){function oe(le,ve){return ve===void 0?s(le):Se(s(le),ve)}return oe}(),xe=function(){function oe(le){var ve=f(le),ue=t(ce,this,ve);return this===Q&&y(se,ve)&&!y(me,ve)?!1:ue||!y(this,ve)||!y(se,ve)||y(this,K)&&this[K][ve]?ue:!0}return oe}(),Oe=function(){function oe(le,ve){var ue=c(le),Ne=f(ve);if(!(ue===Q&&y(se,Ne)&&!y(me,Ne))){var Ae=Ie(ue,Ne);return Ae&&y(se,Ne)&&!(y(ue,K)&&ue[K][Ne])&&(Ae.enumerable=!0),Ae}}return oe}(),We=function(){function oe(le){var ve=ne(c(le)),ue=[];return U(ve,function(Ne){!y(se,Ne)&&!y(x,Ne)&&q(ue,Ne)}),ue}return oe}(),Ve=function(le){var ve=le===Q,ue=ne(ve?me:c(le)),Ne=[];return U(ue,function(Ae){y(se,Ae)&&(!ve||y(Q,Ae))&&q(Ne,se[Ae])}),Ne};k||(ae=function(){function oe(){if(p(re,this))throw new pe("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),ve=E(le),ue=function(){function Ne(Ae){var De=this===void 0?a:this;De===Q&&t(Ne,me,Ae),y(De,K)&&y(De[K],ve)&&(De[K][ve]=!1);var je=d(1,Ae);try{ge(De,ve,je)}catch(Ke){if(!(Ke instanceof de))throw Ke;fe(De,ve,je)}}return Ne}();return N&&be&&ge(Q,ve,{configurable:!0,set:ue}),ke(ve,le)}return oe}(),re=ae[z],I(re,"toString",function(){function oe(){return X(this).tag}return oe}()),I(ae,"withoutSetter",function(oe){return ke(E(oe),oe)}),B.f=xe,V.f=Ce,b.f=Se,h.f=Oe,C.f=g.f=We,v.f=Ve,j.f=function(oe){return ke(M(oe),oe)},N&&(w(re,"description",{configurable:!0,get:function(){function oe(){return X(this).description}return oe}()}),m||I(Q,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!k,sham:!k},{Symbol:ae}),U(u(te),function(oe){P(oe)}),e({target:H,stat:!0,forced:!k},{useSetter:function(){function oe(){be=!0}return oe}(),useSimple:function(){function oe(){be=!1}return oe}()}),e({target:"Object",stat:!0,forced:!k,sham:!N},{create:we,defineProperty:Ce,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!k},{getOwnPropertyNames:We}),R(),D(ae,H),x[K]=!0},27718:function(L,r,n){"use strict";var e=n(77549),a=n(14141),t=n(40224),o=n(18161),m=n(89458),N=n(7532),k=n(33314),S=n(26602),y=n(10069),p=n(70113),i=t.Symbol,c=i&&i.prototype;if(a&&N(i)&&(!("description"in c)||i().description!==void 0)){var f={},l=function(){function h(){var V=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=k(c,this)?new i(V):V===void 0?i():i(V);return V===""&&(f[b]=!0),b}return h}();p(l,i),l.prototype=c,c.constructor=l;var d=String(i("description detection"))==="Symbol(description detection)",s=o(c.valueOf),u=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);y(c,"description",{configurable:!0,get:function(){function h(){var V=s(this);if(m(f,V))return"";var b=u(V),B=d?v(b,7,-1):g(b,C,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},18611:function(L,r,n){"use strict";var e=n(77549),a=n(40164),t=n(89458),o=n(26602),m=n(75130),N=n(80353),k=m("string-to-symbol-registry"),S=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function y(p){var i=o(p);if(t(k,i))return k[i];var c=a("Symbol")(i);return k[i]=c,S[c]=i,c}return y}()})},86042:function(L,r,n){"use strict";var e=n(15388);e("hasInstance")},93267:function(L,r,n){"use strict";var e=n(15388);e("isConcatSpreadable")},41664:function(L,r,n){"use strict";var e=n(15388);e("iterator")},99414:function(L,r,n){"use strict";n(9056),n(18611),n(30661),n(12183),n(93146)},30661:function(L,r,n){"use strict";var e=n(77549),a=n(89458),t=n(74352),o=n(62518),m=n(75130),N=n(80353),k=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{keyFor:function(){function S(y){if(!t(y))throw new TypeError(o(y)+" is not a symbol");if(a(k,y))return k[y]}return S}()})},48965:function(L,r,n){"use strict";var e=n(15388);e("match")},44844:function(L,r,n){"use strict";var e=n(15388);e("replace")},25030:function(L,r,n){"use strict";var e=n(15388);e("search")},96454:function(L,r,n){"use strict";var e=n(15388);e("species")},77564:function(L,r,n){"use strict";var e=n(15388);e("split")},44875:function(L,r,n){"use strict";var e=n(15388),a=n(75429);e("toPrimitive"),a()},77904:function(L,r,n){"use strict";var e=n(40164),a=n(15388),t=n(94234);a("toStringTag"),t(e("Symbol"),"Symbol")},35723:function(L,r,n){"use strict";var e=n(15388);e("unscopables")},84805:function(L,r,n){"use strict";var e=n(18161),a=n(72951),t=n(42320),o=e(t),m=a.aTypedArray,N=a.exportTypedArrayMethod;N("copyWithin",function(){function k(S,y){return o(m(this),S,y,arguments.length>2?arguments[2]:void 0)}return k}())},79305:function(L,r,n){"use strict";var e=n(72951),a=n(67480).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},71573:function(L,r,n){"use strict";var e=n(72951),a=n(59942),t=n(757),o=n(27806),m=n(62696),N=n(18161),k=n(41746),S=e.aTypedArray,y=e.exportTypedArrayMethod,p=N("".slice),i=k(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function f(){return c++}return f}()}),c!==1});y("fill",function(){function c(f){var l=arguments.length;S(this);var d=p(o(this),0,3)==="Big"?t(f):+f;return m(a,this,d,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},47910:function(L,r,n){"use strict";var e=n(72951),a=n(67480).filter,t=n(80936),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function N(k){var S=a(o(this),k,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},99662:function(L,r,n){"use strict";var e=n(72951),a=n(67480).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},48447:function(L,r,n){"use strict";var e=n(72951),a=n(67480).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},68265:function(L,r,n){"use strict";var e=n(12218);e("Float32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},36030:function(L,r,n){"use strict";var e=n(12218);e("Float64",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},57371:function(L,r,n){"use strict";var e=n(72951),a=n(67480).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(N){a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},68220:function(L,r,n){"use strict";var e=n(66220),a=n(72951).exportTypedArrayStaticMethod,t=n(7996);a("from",t,e)},15745:function(L,r,n){"use strict";var e=n(72951),a=n(64210).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},43398:function(L,r,n){"use strict";var e=n(72951),a=n(64210).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},25888:function(L,r,n){"use strict";var e=n(12218);e("Int16",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},35718:function(L,r,n){"use strict";var e=n(12218);e("Int32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},32791:function(L,r,n){"use strict";var e=n(12218);e("Int8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},97722:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(72951),m=n(65809),N=n(66266),k=N("iterator"),S=e.Uint8Array,y=t(m.values),p=t(m.keys),i=t(m.entries),c=o.aTypedArray,f=o.exportTypedArrayMethod,l=S&&S.prototype,d=!a(function(){l[k].call([1])}),s=!!l&&l.values&&l[k]===l.values&&l.values.name==="values",u=function(){function C(){return y(c(this))}return C}();f("entries",function(){function C(){return i(c(this))}return C}(),d),f("keys",function(){function C(){return p(c(this))}return C}(),d),f("values",u,d||!s,{name:"values"}),f(k,u,d||!s,{name:"values"})},79088:function(L,r,n){"use strict";var e=n(72951),a=n(18161),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function N(k){return m(t(this),k)}return N}())},6075:function(L,r,n){"use strict";var e=n(72951),a=n(70918),t=n(16934),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function N(k){var S=arguments.length;return a(t,o(this),S>1?[k,arguments[1]]:[k])}return N}())},46896:function(L,r,n){"use strict";var e=n(72951),a=n(67480).map,t=n(489),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function N(k){return a(o(this),k,arguments.length>1?arguments[1]:void 0,function(S,y){return new(t(S))(y)})}return N}())},47145:function(L,r,n){"use strict";var e=n(72951),a=n(66220),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var N=0,k=arguments.length,S=new(t(this))(k);k>N;)S[N]=arguments[N++];return S}return m}(),a)},349:function(L,r,n){"use strict";var e=n(72951),a=n(98405).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(N){var k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return m}())},72606:function(L,r,n){"use strict";var e=n(72951),a=n(98405).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(N){var k=arguments.length;return a(t(this),N,k,k>1?arguments[1]:void 0)}return m}())},28292:function(L,r,n){"use strict";var e=n(72951),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var N=this,k=a(N).length,S=o(k/2),y=0,p;y 1?arguments[1]:void 0,1),g=N(u);if(l)return a(i,this,g,C);var v=this.length,h=o(g),V=0;if(h+C>v)throw new S("Wrong length");for(;Vf;)d[f]=i[f++];return d}return S}(),k)},74188:function(L,r,n){"use strict";var e=n(72951),a=n(67480).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},81976:function(L,r,n){"use strict";var e=n(40224),a=n(85067),t=n(41746),o=n(97361),m=n(44815),N=n(72951),k=n(49847),S=n(56605),y=n(82709),p=n(53125),i=N.aTypedArray,c=N.exportTypedArrayMethod,f=e.Uint16Array,l=f&&a(f.prototype.sort),d=!!l&&!(t(function(){l(new f(2),null)})&&t(function(){l(new f(2),{})})),s=!!l&&!t(function(){if(y)return y<74;if(k)return k<67;if(S)return!0;if(p)return p<602;var C=new f(516),g=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,g[v]=v-2*h+3;for(l(C,function(V,b){return(V/4|0)-(b/4|0)}),v=0;v<516;v++)if(C[v]!==g[v])return!0}),u=function(g){return function(v,h){return g!==void 0?+g(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(g){return g!==void 0&&o(g),s?l(this,g):m(i(this),u(g))}return C}(),!s||d)},78651:function(L,r,n){"use strict";var e=n(72951),a=n(10475),t=n(74067),o=n(489),m=e.aTypedArray,N=e.exportTypedArrayMethod;N("subarray",function(){function k(S,y){var p=m(this),i=p.length,c=t(S,i),f=o(p);return new f(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((y===void 0?i:t(y,i))-c))}return k}())},81664:function(L,r,n){"use strict";var e=n(40224),a=n(70918),t=n(72951),o=n(41746),m=n(77713),N=e.Int8Array,k=t.aTypedArray,S=t.exportTypedArrayMethod,y=[].toLocaleString,p=!!N&&o(function(){y.call(new N(1))}),i=o(function(){return[1,2].toLocaleString()!==new N([1,2]).toLocaleString()})||!o(function(){N.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(y,p?m(k(this)):k(this),m(arguments))}return c}(),i)},35579:function(L,r,n){"use strict";var e=n(72951).exportTypedArrayMethod,a=n(41746),t=n(40224),o=n(18161),m=t.Uint8Array,N=m&&m.prototype||{},k=[].toString,S=o([].join);a(function(){k.call({})})&&(k=function(){function p(){return S(this)}return p}());var y=N.toString!==k;e("toString",k,y)},99683:function(L,r,n){"use strict";var e=n(12218);e("Uint16",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},80941:function(L,r,n){"use strict";var e=n(12218);e("Uint32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},45338:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},40737:function(L,r,n){"use strict";var e=n(12218);e("Uint8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()},!0)},74283:function(L,r,n){"use strict";var e=n(56255),a=n(40224),t=n(18161),o=n(13648),m=n(29126),N=n(93439),k=n(32920),S=n(56831),y=n(35086).enforce,p=n(41746),i=n(90777),c=Object,f=Array.isArray,l=c.isExtensible,d=c.isFrozen,s=c.isSealed,u=c.freeze,C=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(E){return function(){function M(){return E(this,arguments.length?arguments[0]:void 0)}return M}()},V=N("WeakMap",h,k),b=V.prototype,B=t(b.set),I=function(){return e&&p(function(){var E=u([]);return B(new V,E,1),!d(E)})};if(i)if(g){v=k.getConstructor(h,"WeakMap",!0),m.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new v),w(this,E)||M.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new v),T(this,E)||M.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!l(E)){var M=y(this);return M.frozen||(M.frozen=new v),T(this,E)?A(this,E):M.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,M){if(S(E)&&!l(E)){var j=y(this);j.frozen||(j.frozen=new v),T(this,E)?B(this,E,M):j.frozen.set(E,M)}else B(this,E,M);return this}return x}()})}else I()&&o(b,{set:function(){function x(E,M){var j;return f(E)&&(d(E)?j=u:s(E)&&(j=C)),B(this,E,M),j&&j(E),this}return x}()})},84033:function(L,r,n){"use strict";n(74283)},82389:function(L,r,n){"use strict";var e=n(93439),a=n(32920);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},71863:function(L,r,n){"use strict";n(82389)},73993:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},55457:function(L,r,n){"use strict";n(73993),n(72532)},57399:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(27150),o=n(97361),m=n(22789),N=n(41746),k=n(14141),S=N(function(){return k&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:S},{queueMicrotask:function(){function y(p){m(arguments.length,1),t(o(p))}return y}()})},72532:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(91314).set,o=n(83827),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},48112:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},82274:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(83827),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},65836:function(L,r,n){"use strict";n(48112),n(82274)},50719:function(L){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},21965:function(){},28169:function(){},36487:function(){},35739:function(){},33631:function(){},74785:function(){},6895:function(){},3251:function(){},7455:function(){},58823:function(){},49265:function(){},55350:function(){},45503:function(){},36557:function(){},70555:function(){},70752:function(L,r,n){var e={"./pai_atmosphere.js":24704,"./pai_bioscan.js":4209,"./pai_directives.js":44430,"./pai_doorjack.js":3367,"./pai_main_menu.js":73395,"./pai_manifest.js":37645,"./pai_medrecords.js":15836,"./pai_messenger.js":91737,"./pai_radio.js":94077,"./pai_secrecords.js":72621,"./pai_signaler.js":53483};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=70752},59395:function(L,r,n){var e={"./pda_atmos_scan.js":21606,"./pda_janitor.js":12339,"./pda_main_menu.js":36615,"./pda_manifest.js":99737,"./pda_medical.js":61597,"./pda_messenger.js":30709,"./pda_mob_hunt.js":71654,"./pda_mule.js":68053,"./pda_nanobank.js":31728,"./pda_notes.js":29415,"./pda_power.js":52363,"./pda_secbot.js":23914,"./pda_security.js":68878,"./pda_signaler.js":95135,"./pda_status_display.js":20835,"./pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=59395},32054:function(L,r,n){var e={"./AICard":29732,"./AICard.js":29732,"./AIFixer":78468,"./AIFixer.js":78468,"./APC":73544,"./APC.js":73544,"./ATM":79098,"./ATM.js":79098,"./AccountsUplinkTerminal":64613,"./AccountsUplinkTerminal.js":64613,"./AiAirlock":56839,"./AiAirlock.js":56839,"./AirAlarm":5565,"./AirAlarm.js":5565,"./AirlockAccessController":82915,"./AirlockAccessController.js":82915,"./AirlockElectronics":14962,"./AirlockElectronics.js":14962,"./AlertModal":99327,"./AlertModal.tsx":99327,"./AppearanceChanger":88642,"./AppearanceChanger.js":88642,"./AtmosAlertConsole":51731,"./AtmosAlertConsole.js":51731,"./AtmosControl":57467,"./AtmosControl.js":57467,"./AtmosFilter":41550,"./AtmosFilter.js":41550,"./AtmosMixer":70151,"./AtmosMixer.js":70151,"./AtmosPump":54090,"./AtmosPump.js":54090,"./AtmosTankControl":31335,"./AtmosTankControl.js":31335,"./Autolathe":85909,"./Autolathe.js":85909,"./BioChipPad":81617,"./BioChipPad.js":81617,"./Biogenerator":26215,"./Biogenerator.js":26215,"./BlueSpaceArtilleryControl":65483,"./BlueSpaceArtilleryControl.js":65483,"./BluespaceTap":69099,"./BluespaceTap.js":69099,"./BodyScanner":71736,"./BodyScanner.js":71736,"./BookBinder":99449,"./BookBinder.js":99449,"./BotClean":43506,"./BotClean.js":43506,"./BotFloor":89593,"./BotFloor.js":89593,"./BotHonk":89513,"./BotHonk.js":89513,"./BotMed":19297,"./BotMed.js":19297,"./BotSecurity":4249,"./BotSecurity.js":4249,"./BrigCells":27267,"./BrigCells.js":27267,"./BrigTimer":26623,"./BrigTimer.js":26623,"./CameraConsole":43542,"./CameraConsole.js":43542,"./Canister":95513,"./Canister.js":95513,"./CardComputer":60463,"./CardComputer.js":60463,"./CargoConsole":16377,"./CargoConsole.js":16377,"./ChangelogView":89917,"./ChangelogView.js":89917,"./ChemDispenser":71254,"./ChemDispenser.js":71254,"./ChemHeater":27004,"./ChemHeater.js":27004,"./ChemMaster":33611,"./ChemMaster.js":33611,"./CloningConsole":51327,"./CloningConsole.js":51327,"./CloningPod":66373,"./CloningPod.js":66373,"./ColourMatrixTester":11866,"./ColourMatrixTester.js":11866,"./CommunicationsComputer":22420,"./CommunicationsComputer.js":22420,"./CompostBin":46868,"./CompostBin.js":46868,"./Contractor":64707,"./Contractor.js":64707,"./ConveyorSwitch":52141,"./ConveyorSwitch.js":52141,"./CrewMonitor":94187,"./CrewMonitor.js":94187,"./Cryo":60561,"./Cryo.js":60561,"./CryopodConsole":27889,"./CryopodConsole.js":27889,"./DNAModifier":81434,"./DNAModifier.js":81434,"./DestinationTagger":99127,"./DestinationTagger.js":99127,"./DisposalBin":93430,"./DisposalBin.js":93430,"./DnaVault":31491,"./DnaVault.js":31491,"./DroneConsole":30747,"./DroneConsole.js":30747,"./EFTPOS":74781,"./EFTPOS.js":74781,"./ERTManager":30672,"./ERTManager.js":30672,"./EconomyManager":24503,"./EconomyManager.js":24503,"./Electropack":15543,"./Electropack.js":15543,"./Emojipedia":57013,"./Emojipedia.tsx":57013,"./EvolutionMenu":99012,"./EvolutionMenu.js":99012,"./ExosuitFabricator":37504,"./ExosuitFabricator.js":37504,"./ExperimentConsole":9466,"./ExperimentConsole.js":9466,"./ExternalAirlockController":77284,"./ExternalAirlockController.js":77284,"./FaxMachine":52516,"./FaxMachine.js":52516,"./FilingCabinet":24777,"./FilingCabinet.js":24777,"./FloorPainter":88361,"./FloorPainter.js":88361,"./GPS":70078,"./GPS.js":70078,"./GeneModder":92246,"./GeneModder.js":92246,"./GenericCrewManifest":27163,"./GenericCrewManifest.js":27163,"./GhostHudPanel":53808,"./GhostHudPanel.js":53808,"./GlandDispenser":32035,"./GlandDispenser.js":32035,"./GravityGen":33004,"./GravityGen.js":33004,"./GuestPass":39775,"./GuestPass.js":39775,"./HandheldChemDispenser":22480,"./HandheldChemDispenser.js":22480,"./HealthSensor":22616,"./HealthSensor.js":22616,"./Holodeck":76861,"./Holodeck.js":76861,"./Instrument":96729,"./Instrument.js":96729,"./KeycardAuth":53385,"./KeycardAuth.js":53385,"./KitchenMachine":58553,"./KitchenMachine.js":58553,"./LawManager":14047,"./LawManager.js":14047,"./LibraryComputer":5872,"./LibraryComputer.js":5872,"./LibraryManager":37782,"./LibraryManager.js":37782,"./ListInputModal":26133,"./ListInputModal.tsx":26133,"./MODsuit":71963,"./MODsuit.js":71963,"./MagnetController":84274,"./MagnetController.js":84274,"./MechBayConsole":95752,"./MechBayConsole.js":95752,"./MechaControlConsole":53668,"./MechaControlConsole.js":53668,"./MedicalRecords":96467,"./MedicalRecords.js":96467,"./MerchVendor":68211,"./MerchVendor.js":68211,"./MiningVendor":14162,"./MiningVendor.js":14162,"./NTRecruiter":68977,"./NTRecruiter.js":68977,"./Newscaster":17067,"./Newscaster.js":17067,"./NuclearBomb":46940,"./NuclearBomb.js":46940,"./NumberInputModal":35478,"./NumberInputModal.tsx":35478,"./OperatingComputer":98476,"./OperatingComputer.js":98476,"./Orbit":98702,"./Orbit.js":98702,"./OreRedemption":74015,"./OreRedemption.js":74015,"./PAI":48824,"./PAI.js":48824,"./PDA":41565,"./PDA.js":41565,"./Pacman":78704,"./Pacman.js":78704,"./ParticleAccelerator":78643,"./ParticleAccelerator.js":78643,"./PdaPainter":34026,"./PdaPainter.js":34026,"./PersonalCrafting":81378,"./PersonalCrafting.js":81378,"./Photocopier":58792,"./Photocopier.js":58792,"./PoolController":27902,"./PoolController.js":27902,"./PortablePump":52025,"./PortablePump.js":52025,"./PortableScrubber":57827,"./PortableScrubber.js":57827,"./PortableTurret":63825,"./PortableTurret.js":63825,"./PowerMonitor":70373,"./PowerMonitor.js":70373,"./PrisonerImplantManager":27262,"./PrisonerImplantManager.js":27262,"./PrisonerShuttleConsole":22046,"./PrisonerShuttleConsole.js":22046,"./PrizeCounter":92014,"./PrizeCounter.tsx":92014,"./RCD":87963,"./RCD.js":87963,"./RPD":84364,"./RPD.js":84364,"./Radio":14641,"./Radio.js":14641,"./ReagentGrinder":40483,"./ReagentGrinder.js":40483,"./RemoteSignaler":94049,"./RemoteSignaler.js":94049,"./RequestConsole":12326,"./RequestConsole.js":12326,"./RndConsole":89641,"./RndConsole.js":89641,"./RndConsoleComponents":3422,"./RndConsoleComponents/":3422,"./RndConsoleComponents/CurrentLevels":19348,"./RndConsoleComponents/CurrentLevels.js":19348,"./RndConsoleComponents/DataDiskMenu":338,"./RndConsoleComponents/DataDiskMenu.js":338,"./RndConsoleComponents/DeconstructionMenu":90785,"./RndConsoleComponents/DeconstructionMenu.js":90785,"./RndConsoleComponents/LatheCategory":34492,"./RndConsoleComponents/LatheCategory.js":34492,"./RndConsoleComponents/LatheChemicalStorage":84275,"./RndConsoleComponents/LatheChemicalStorage.js":84275,"./RndConsoleComponents/LatheMainMenu":12638,"./RndConsoleComponents/LatheMainMenu.js":12638,"./RndConsoleComponents/LatheMaterialStorage":89004,"./RndConsoleComponents/LatheMaterialStorage.js":89004,"./RndConsoleComponents/LatheMaterials":73856,"./RndConsoleComponents/LatheMaterials.js":73856,"./RndConsoleComponents/LatheMenu":75955,"./RndConsoleComponents/LatheMenu.js":75955,"./RndConsoleComponents/LatheSearch":72880,"./RndConsoleComponents/LatheSearch.js":72880,"./RndConsoleComponents/MainMenu":62306,"./RndConsoleComponents/MainMenu.js":62306,"./RndConsoleComponents/RndNavButton":99941,"./RndConsoleComponents/RndNavButton.js":99941,"./RndConsoleComponents/RndNavbar":24448,"./RndConsoleComponents/RndNavbar.js":24448,"./RndConsoleComponents/RndRoute":78345,"./RndConsoleComponents/RndRoute.js":78345,"./RndConsoleComponents/SettingsMenu":56454,"./RndConsoleComponents/SettingsMenu.js":56454,"./RndConsoleComponents/index":3422,"./RndConsoleComponents/index.js":3422,"./RobotSelfDiagnosis":71123,"./RobotSelfDiagnosis.js":71123,"./RoboticsControlConsole":98951,"./RoboticsControlConsole.js":98951,"./Safe":2289,"./Safe.js":2289,"./SatelliteControl":49334,"./SatelliteControl.js":49334,"./SecureStorage":54892,"./SecureStorage.js":54892,"./SecurityRecords":56798,"./SecurityRecords.js":56798,"./SeedExtractor":59981,"./SeedExtractor.js":59981,"./ShuttleConsole":33454,"./ShuttleConsole.js":33454,"./ShuttleManipulator":50451,"./ShuttleManipulator.js":50451,"./Sleeper":99050,"./Sleeper.js":99050,"./SlotMachine":37763,"./SlotMachine.js":37763,"./Smartfridge":26654,"./Smartfridge.js":26654,"./Smes":71124,"./Smes.js":71124,"./SolarControl":21786,"./SolarControl.js":21786,"./SpawnersMenu":31202,"./SpawnersMenu.js":31202,"./SpecMenu":84800,"./SpecMenu.js":84800,"./StationAlertConsole":46501,"./StationAlertConsole.js":46501,"./StationTraitsPanel":18565,"./StationTraitsPanel.tsx":18565,"./StripMenu":95147,"./StripMenu.tsx":95147,"./SuitStorage":61284,"./SuitStorage.js":61284,"./SupermatterMonitor":19796,"./SupermatterMonitor.js":19796,"./SyndicateComputerSimple":30047,"./SyndicateComputerSimple.js":30047,"./TEG":28830,"./TEG.js":28830,"./TachyonArray":39903,"./TachyonArray.js":39903,"./Tank":17068,"./Tank.js":17068,"./TankDispenser":69161,"./TankDispenser.js":69161,"./TcommsCore":87394,"./TcommsCore.js":87394,"./TcommsRelay":55684,"./TcommsRelay.js":55684,"./Teleporter":81088,"./Teleporter.js":81088,"./TempGun":96150,"./TempGun.js":96150,"./TextInputModal":95484,"./TextInputModal.tsx":95484,"./ThermoMachine":378,"./ThermoMachine.js":378,"./TransferValve":3365,"./TransferValve.js":3365,"./TurbineComputer":13860,"./TurbineComputer.js":13860,"./Uplink":22169,"./Uplink.js":22169,"./Vending":70547,"./Vending.js":70547,"./VolumeMixer":33045,"./VolumeMixer.js":33045,"./VotePanel":53792,"./VotePanel.js":53792,"./Wires":64860,"./Wires.js":64860,"./WizardApprenticeContract":78262,"./WizardApprenticeContract.js":78262,"./common/AccessList":57842,"./common/AccessList.js":57842,"./common/AtmosScan":79449,"./common/AtmosScan.js":79449,"./common/BeakerContents":1496,"./common/BeakerContents.js":1496,"./common/BotStatus":69521,"./common/BotStatus.js":69521,"./common/ComplexModal":99665,"./common/ComplexModal.js":99665,"./common/CrewManifest":98444,"./common/CrewManifest.js":98444,"./common/InputButtons":15113,"./common/InputButtons.tsx":15113,"./common/InterfaceLockNoticeBox":26893,"./common/InterfaceLockNoticeBox.js":26893,"./common/Loader":14299,"./common/Loader.tsx":14299,"./common/LoginInfo":68159,"./common/LoginInfo.js":68159,"./common/LoginScreen":27527,"./common/LoginScreen.js":27527,"./common/Operating":75201,"./common/Operating.js":75201,"./common/Signaler":65435,"./common/Signaler.js":65435,"./common/SimpleRecords":77534,"./common/SimpleRecords.js":77534,"./common/TemporaryNotice":84537,"./common/TemporaryNotice.js":84537,"./pai/pai_atmosphere":24704,"./pai/pai_atmosphere.js":24704,"./pai/pai_bioscan":4209,"./pai/pai_bioscan.js":4209,"./pai/pai_directives":44430,"./pai/pai_directives.js":44430,"./pai/pai_doorjack":3367,"./pai/pai_doorjack.js":3367,"./pai/pai_main_menu":73395,"./pai/pai_main_menu.js":73395,"./pai/pai_manifest":37645,"./pai/pai_manifest.js":37645,"./pai/pai_medrecords":15836,"./pai/pai_medrecords.js":15836,"./pai/pai_messenger":91737,"./pai/pai_messenger.js":91737,"./pai/pai_radio":94077,"./pai/pai_radio.js":94077,"./pai/pai_secrecords":72621,"./pai/pai_secrecords.js":72621,"./pai/pai_signaler":53483,"./pai/pai_signaler.js":53483,"./pda/pda_atmos_scan":21606,"./pda/pda_atmos_scan.js":21606,"./pda/pda_janitor":12339,"./pda/pda_janitor.js":12339,"./pda/pda_main_menu":36615,"./pda/pda_main_menu.js":36615,"./pda/pda_manifest":99737,"./pda/pda_manifest.js":99737,"./pda/pda_medical":61597,"./pda/pda_medical.js":61597,"./pda/pda_messenger":30709,"./pda/pda_messenger.js":30709,"./pda/pda_mob_hunt":71654,"./pda/pda_mob_hunt.js":71654,"./pda/pda_mule":68053,"./pda/pda_mule.js":68053,"./pda/pda_nanobank":31728,"./pda/pda_nanobank.js":31728,"./pda/pda_notes":29415,"./pda/pda_notes.js":29415,"./pda/pda_power":52363,"./pda/pda_power.js":52363,"./pda/pda_secbot":23914,"./pda/pda_secbot.js":23914,"./pda/pda_security":68878,"./pda/pda_security.js":68878,"./pda/pda_signaler":95135,"./pda/pda_signaler.js":95135,"./pda/pda_status_display":20835,"./pda/pda_status_display.js":20835,"./pda/pda_supplyrecords":11741,"./pda/pda_supplyrecords.js":11741};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=32054},4085:function(L,r,n){var e={"./Blink.stories.js":61498,"./BlockQuote.stories.js":27431,"./Box.stories.js":6517,"./Button.stories.js":20648,"./ByondUi.stories.js":14906,"./Collapsible.stories.js":59948,"./Flex.stories.js":37227,"./Input.stories.js":32304,"./Popper.stories.js":50394,"./ProgressBar.stories.js":75096,"./Stack.stories.js":30268,"./Storage.stories.js":22645,"./Tabs.stories.js":42120,"./Themes.stories.js":80254,"./Tooltip.stories.js":90823};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=4085},97361:function(L,r,n){"use strict";var e=n(7532),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},76833:function(L,r,n){"use strict";var e=n(60354),a=n(62518),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},51689:function(L,r,n){"use strict";var e=n(41224),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},91138:function(L,r,n){"use strict";var e=n(66266),a=n(28969),t=n(56018).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),L.exports=function(N){m[o][N]=!0}},62970:function(L,r,n){"use strict";var e=n(56852).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},19870:function(L,r,n){"use strict";var e=n(33314),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},39482:function(L,r,n){"use strict";var e=n(56831),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},67404:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},65693:function(L,r,n){"use strict";var e=n(41746);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},72951:function(L,r,n){"use strict";var e=n(67404),a=n(14141),t=n(40224),o=n(7532),m=n(56831),N=n(89458),k=n(27806),S=n(62518),y=n(16216),p=n(59173),i=n(10069),c=n(33314),f=n(31658),l=n(42878),d=n(66266),s=n(33345),u=n(35086),C=u.enforce,g=u.get,v=t.Int8Array,h=v&&v.prototype,V=t.Uint8ClampedArray,b=V&&V.prototype,B=v&&f(v),I=h&&f(h),w=Object.prototype,T=t.TypeError,A=d("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",M=e&&!!l&&k(t.opera)!=="Opera",j=!1,P,R,D,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},K=function(){function re(de){if(!m(de))return!1;var pe=k(de);return pe==="DataView"||N(F,pe)||N(U,pe)}return re}(),H=function re(de){var pe=f(de);if(m(pe)){var ye=g(pe);return ye&&N(ye,E)?ye[E]:re(pe)}},z=function(de){if(!m(de))return!1;var pe=k(de);return N(F,pe)||N(U,pe)},G=function(de){if(z(de))return de;throw new T("Target is not a typed array")},X=function(de){if(o(de)&&(!l||c(B,de)))return de;throw new T(S(de)+" is not a typed array constructor")},Q=function(de,pe,ye,Ie){if(a){if(ye)for(var he in F){var ne=t[he];if(ne&&N(ne.prototype,de))try{delete ne.prototype[de]}catch(ce){try{ne.prototype[de]=pe}catch(q){}}}(!I[de]||ye)&&p(I,de,ye?pe:M&&h[de]||pe,Ie)}},ae=function(de,pe,ye){var Ie,he;if(a){if(l){if(ye){for(Ie in F)if(he=t[Ie],he&&N(he,de))try{delete he[de]}catch(ne){}}if(!B[de]||ye)try{return p(B,de,ye?pe:M&&B[de]||pe)}catch(ne){}else return}for(Ie in F)he=t[Ie],he&&(!he[de]||ye)&&p(he,de,pe)}};for(P in F)R=t[P],D=R&&R.prototype,D?C(D)[E]=R:M=!1;for(P in U)R=t[P],D=R&&R.prototype,D&&(C(D)[E]=R);if((!M||!o(B)||B===Function.prototype)&&(B=function(){function re(){throw new T("Incorrect invocation")}return re}(),M))for(P in F)t[P]&&l(t[P],B);if((!M||!I||I===w)&&(I=B.prototype,M))for(P in F)t[P]&&l(t[P].prototype,I);if(M&&f(b)!==I&&l(b,I),a&&!N(I,A)){j=!0,i(I,A,{configurable:!0,get:function(){function re(){return m(this)?this[x]:void 0}return re}()});for(P in F)t[P]&&y(t[P],x,P)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:j&&x,aTypedArray:G,aTypedArrayConstructor:X,exportTypedArrayMethod:Q,exportTypedArrayStaticMethod:ae,getTypedArrayConstructor:H,isView:K,isTypedArray:z,TypedArray:B,TypedArrayPrototype:I}},46185:function(L,r,n){"use strict";var e=n(40224),a=n(18161),t=n(14141),o=n(67404),m=n(26463),N=n(16216),k=n(10069),S=n(13648),y=n(41746),p=n(19870),i=n(74952),c=n(10475),f=n(90835),l=n(75988),d=n(62263),s=n(31658),u=n(42878),C=n(59942),g=n(77713),v=n(2566),h=n(70113),V=n(94234),b=n(35086),B=m.PROPER,I=m.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",M=b.getterFor(w),j=b.getterFor(T),P=b.set,R=e[w],D=R,F=D&&D[A],U=e[T],K=U&&U[A],H=Object.prototype,z=e.Array,G=e.RangeError,X=a(C),Q=a([].reverse),ae=d.pack,re=d.unpack,de=function(ge){return[ge&255]},pe=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Ie=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},he=function(ge){return ae(l(ge),23,4)},ne=function(ge){return ae(ge,52,8)},ce=function(ge,ke,Ce){k(ge[A],ke,{configurable:!0,get:function(){function Se(){return Ce(this)[ke]}return Se}()})},q=function(ge,ke,Ce,Se){var we=j(ge),xe=f(Ce),Oe=!!Se;if(xe+ke>we.byteLength)throw new G(E);var We=we.bytes,Ve=xe+we.byteOffset,oe=g(We,Ve,Ve+ke);return Oe?oe:Q(oe)},se=function(ge,ke,Ce,Se,we,xe){var Oe=j(ge),We=f(Ce),Ve=Se(+we),oe=!!xe;if(We+ke>Oe.byteLength)throw new G(E);for(var le=Oe.bytes,ve=We+Oe.byteOffset,ue=0;ue we)throw new G("Wrong offset");if(Ce=Ce===void 0?we-xe:c(Ce),xe+Ce>we)throw new G(x);P(this,{type:T,buffer:ge,byteLength:Ce,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=Ce,this.byteOffset=xe)}return fe}(),K=U[A],t&&(ce(D,"byteLength",M),ce(U,"buffer",j),ce(U,"byteLength",j),ce(U,"byteOffset",j)),S(K,{getInt8:function(){function fe(ge){return q(this,1,ge)[0]<<24>>24}return fe}(),getUint8:function(){function fe(ge){return q(this,1,ge)[0]}return fe}(),getInt16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return fe}(),getUint16:function(){function fe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return fe}(),getInt32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return fe}(),getUint32:function(){function fe(ge){return Ie(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return fe}(),getFloat32:function(){function fe(ge){return re(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return fe}(),getFloat64:function(){function fe(ge){return re(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return fe}(),setInt8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setUint8:function(){function fe(ge,ke){se(this,1,ge,de,ke)}return fe}(),setInt16:function(){function fe(ge,ke){se(this,2,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint16:function(){function fe(ge,ke){se(this,2,ge,pe,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setInt32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setUint32:function(){function fe(ge,ke){se(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat32:function(){function fe(ge,ke){se(this,4,ge,he,ke,arguments.length>2?arguments[2]:!1)}return fe}(),setFloat64:function(){function fe(ge,ke){se(this,8,ge,ne,ke,arguments.length>2?arguments[2]:!1)}return fe}()});else{var me=B&&R.name!==w;!y(function(){R(1)})||!y(function(){new R(-1)})||y(function(){return new R,new R(1.5),new R(NaN),R.length!==1||me&&!I})?(D=function(){function fe(ge){return p(this,F),v(new R(f(ge)),this,D)}return fe}(),D[A]=F,F.constructor=D,h(D,R)):me&&I&&N(R,"name",w),u&&s(K)!==H&&u(K,H);var te=new U(new D(2)),be=a(K.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),(te.getInt8(0)||!te.getInt8(1))&&S(K,{setInt8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}(),setUint8:function(){function fe(ge,ke){be(this,ge,ke<<24>>24)}return fe}()},{unsafe:!0})}V(D,w),V(U,T),L.exports={ArrayBuffer:D,DataView:U}},42320:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333),o=n(58937),m=Math.min;L.exports=[].copyWithin||function(){function N(k,S){var y=e(this),p=t(y),i=a(k,p),c=a(S,p),f=arguments.length>2?arguments[2]:void 0,l=m((f===void 0?p:a(f,p))-c,p-i),d=1;for(c0;)c in y?y[i]=y[c]:o(y,i),i+=d,c+=d;return y}return N}()},59942:function(L,r,n){"use strict";var e=n(40076),a=n(74067),t=n(8333);L.exports=function(){function o(m){for(var N=e(this),k=t(N),S=arguments.length,y=a(S>1?arguments[1]:void 0,k),p=S>2?arguments[2]:void 0,i=p===void 0?k:a(p,k);i>y;)N[y++]=m;return N}return o}()},75420:function(L,r,n){"use strict";var e=n(67480).forEach,a=n(42309),t=a("forEach");L.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},6967:function(L,r,n){"use strict";var e=n(8333);L.exports=function(a,t,o){for(var m=0,N=arguments.length>2?o:e(t),k=new a(N);N>m;)k[m]=t[m++];return k}},80363:function(L,r,n){"use strict";var e=n(4509),a=n(62696),t=n(40076),o=n(17100),m=n(58482),N=n(60354),k=n(8333),S=n(12913),y=n(3438),p=n(76274),i=Array;L.exports=function(){function c(f){var l=t(f),d=N(this),s=arguments.length,u=s>1?arguments[1]:void 0,C=u!==void 0;C&&(u=e(u,s>2?arguments[2]:void 0));var g=p(l),v=0,h,V,b,B,I,w;if(g&&!(this===i&&m(g)))for(V=d?new this:[],B=y(l,g),I=B.next;!(b=a(I,B)).done;v++)w=C?o(B,u,[b.value,v],!0):b.value,S(V,v,w);else for(h=k(l),V=d?new this(h):i(h);h>v;v++)w=C?u(l[v],v):l[v],S(V,v,w);return V.length=v,V}return c}()},64210:function(L,r,n){"use strict";var e=n(96812),a=n(74067),t=n(8333),o=function(N){return function(k,S,y){var p=e(k),i=t(p);if(i===0)return!N&&-1;var c=a(y,i),f;if(N&&S!==S){for(;i>c;)if(f=p[c++],f!==f)return!0}else for(;i>c;c++)if((N||c in p)&&p[c]===S)return N||c||0;return!N&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},67480:function(L,r,n){"use strict";var e=n(4509),a=n(18161),t=n(26736),o=n(40076),m=n(8333),N=n(32878),k=a([].push),S=function(p){var i=p===1,c=p===2,f=p===3,l=p===4,d=p===6,s=p===7,u=p===5||d;return function(C,g,v,h){for(var V=o(C),b=t(V),B=m(b),I=e(g,v),w=0,T=h||N,A=i?T(C,B):c||s?T(C,0):void 0,x,E;B>w;w++)if((u||w in b)&&(x=b[w],E=I(x,w,V),p))if(i)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:k(A,x)}else switch(p){case 4:return!1;case 7:k(A,x)}return d?-1:f||l?l:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16934:function(L,r,n){"use strict";var e=n(70918),a=n(96812),t=n(74952),o=n(8333),m=n(42309),N=Math.min,k=[].lastIndexOf,S=!!k&&1/[1].lastIndexOf(1,-0)<0,y=m("lastIndexOf"),p=S||!y;L.exports=p?function(){function i(c){if(S)return e(k,this,arguments)||0;var f=a(this),l=o(f);if(l===0)return-1;var d=l-1;for(arguments.length>1&&(d=N(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in f&&f[d]===c)return d||0;return-1}return i}():k},55114:function(L,r,n){"use strict";var e=n(41746),a=n(66266),t=n(82709),o=a("species");L.exports=function(m){return t>=51||!e(function(){var N=[],k=N.constructor={};return k[o]=function(){return{foo:1}},N[m](Boolean).foo!==1})}},42309:function(L,r,n){"use strict";var e=n(41746);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},98405:function(L,r,n){"use strict";var e=n(97361),a=n(40076),t=n(26736),o=n(8333),m=TypeError,N="Reduce of empty array with no initial value",k=function(y){return function(p,i,c,f){var l=a(p),d=t(l),s=o(l);if(e(i),s===0&&c<2)throw new m(N);var u=y?s-1:0,C=y?-1:1;if(c<2)for(;;){if(u in d){f=d[u],u+=C;break}if(u+=C,y?u<0:s<=u)throw new m(N)}for(;y?u>=0:s>u;u+=C)u in d&&(f=i(f,d[u],u,l));return f}};L.exports={left:k(!1),right:k(!0)}},72720:function(L,r,n){"use strict";var e=n(14141),a=n(62367),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();L.exports=m?function(N,k){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=k}:function(N,k){return N.length=k}},77713:function(L,r,n){"use strict";var e=n(18161);L.exports=e([].slice)},44815:function(L,r,n){"use strict";var e=n(77713),a=Math.floor,t=function o(m,N){var k=m.length;if(k<8)for(var S=1,y,p;S 0;)m[p]=m[--p];p!==S++&&(m[p]=y)}else for(var i=a(k/2),c=o(e(m,0,i),N),f=o(e(m,i),N),l=c.length,d=f.length,s=0,u=0;s 1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(V,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),i&&a(V,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return s}(),setStrong:function(){function s(u,C,g){var v=C+" Iterator",h=d(C),V=d(v);S(u,C,function(b,B){l(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=V(this),B=b.kind,I=b.last;I&&I.removed;)I=I.previous;return!b.target||!(b.last=I=I?I.next:b.state.first)?(b.target=void 0,y(void 0,!0)):y(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),p(C)}return s}()}},32920:function(L,r,n){"use strict";var e=n(18161),a=n(13648),t=n(29126).getWeakData,o=n(19870),m=n(39482),N=n(1022),k=n(56831),S=n(281),y=n(67480),p=n(89458),i=n(35086),c=i.set,f=i.getterFor,l=y.find,d=y.findIndex,s=e([].splice),u=0,C=function(V){return V.frozen||(V.frozen=new g)},g=function(){this.entries=[]},v=function(V,b){return l(V.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(V){var b=v(this,V);if(b)return b[1]}return h}(),has:function(){function h(V){return!!v(this,V)}return h}(),set:function(){function h(V,b){var B=v(this,V);B?B[1]=b:this.entries.push([V,b])}return h}(),delete:function(){function h(V){var b=d(this.entries,function(B){return B[0]===V});return~b&&s(this.entries,b,1),!!~b}return h}()},L.exports={getConstructor:function(){function h(V,b,B,I){var w=V(function(E,M){o(E,T),c(E,{type:b,id:u++,frozen:void 0}),N(M)||S(M,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=f(b),x=function(){function E(M,j,P){var R=A(M),D=t(m(j),!0);return D===!0?C(R).set(j,P):D[R.id]=P,M}return E}();return a(T,{delete:function(){function E(M){var j=A(this);if(!k(M))return!1;var P=t(M);return P===!0?C(j).delete(M):P&&p(P,j.id)&&delete P[j.id]}return E}(),has:function(){function E(M){var j=A(this);if(!k(M))return!1;var P=t(M);return P===!0?C(j).has(M):P&&p(P,j.id)}return E}()}),a(T,B?{get:function(){function E(M){var j=A(this);if(k(M)){var P=t(M);return P===!0?C(j).get(M):P?P[j.id]:void 0}}return E}(),set:function(){function E(M,j){return x(this,M,j)}return E}()}:{add:function(){function E(M){return x(this,M,!0)}return E}()}),w}return h}()}},93439:function(L,r,n){"use strict";var e=n(77549),a=n(40224),t=n(18161),o=n(95945),m=n(59173),N=n(29126),k=n(281),S=n(19870),y=n(7532),p=n(1022),i=n(56831),c=n(41746),f=n(52019),l=n(94234),d=n(2566);L.exports=function(s,u,C){var g=s.indexOf("Map")!==-1,v=s.indexOf("Weak")!==-1,h=g?"set":"add",V=a[s],b=V&&V.prototype,B=V,I={},w=function(R){var D=t(b[R]);m(b,R,R==="add"?function(){function F(U){return D(this,U===0?0:U),this}return F}():R==="delete"?function(F){return v&&!i(F)?!1:D(this,F===0?0:F)}:R==="get"?function(){function F(U){return v&&!i(U)?void 0:D(this,U===0?0:U)}return F}():R==="has"?function(){function F(U){return v&&!i(U)?!1:D(this,U===0?0:U)}return F}():function(){function F(U,K){return D(this,U===0?0:U,K),this}return F}())},T=o(s,!y(V)||!(v||b.forEach&&!c(function(){new V().entries().next()})));if(T)B=C.getConstructor(u,s,g,h),N.enable();else if(o(s,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),M=f(function(P){new V(P)}),j=!v&&c(function(){for(var P=new V,R=5;R--;)P[h](R,R);return!P.has(-0)});M||(B=u(function(P,R){S(P,b);var D=d(new V,P,B);return p(R)||k(R,D[h],{that:D,AS_ENTRIES:g}),D}),B.prototype=b,b.constructor=B),(E||j)&&(w("delete"),w("has"),g&&w("get")),(j||x)&&w(h),v&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==V},I),l(B,s),v||C.setStrong(B,s,g),B}},70113:function(L,r,n){"use strict";var e=n(89458),a=n(93616),t=n(54168),o=n(56018);L.exports=function(m,N,k){for(var S=a(N),y=o.f,p=t.f,i=0;i "+p+""+k+">"}},77056:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},16216:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=e?function(o,m,N){return a.f(o,m,t(1,N))}:function(o,m,N){return o[m]=N,o}},7539:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},12913:function(L,r,n){"use strict";var e=n(14141),a=n(56018),t=n(7539);L.exports=function(o,m,N){e?a.f(o,m,t(0,N)):o[m]=N}},74003:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(34086).start,o=RangeError,m=isFinite,N=Math.abs,k=Date.prototype,S=k.toISOString,y=e(k.getTime),p=e(k.getUTCDate),i=e(k.getUTCFullYear),c=e(k.getUTCHours),f=e(k.getUTCMilliseconds),l=e(k.getUTCMinutes),d=e(k.getUTCMonth),s=e(k.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function u(){if(!m(y(this)))throw new o("Invalid time value");var C=this,g=i(C),v=f(C),h=g<0?"-":g>9999?"+":"";return h+t(N(g),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(l(C),2,0)+":"+t(s(C),2,0)+"."+t(v,3,0)+"Z"}return u}():S},95865:function(L,r,n){"use strict";var e=n(39482),a=n(14991),t=TypeError;L.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},10069:function(L,r,n){"use strict";var e=n(76130),a=n(56018);L.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},59173:function(L,r,n){"use strict";var e=n(7532),a=n(56018),t=n(76130),o=n(93422);L.exports=function(m,N,k,S){S||(S={});var y=S.enumerable,p=S.name!==void 0?S.name:N;if(e(k)&&t(k,p,S),S.global)y?m[N]=k:o(N,k);else{try{S.unsafe?m[N]&&(y=!0):delete m[N]}catch(i){}y?m[N]=k:a.f(m,N,{value:k,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return m}},13648:function(L,r,n){"use strict";var e=n(59173);L.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},93422:function(L,r,n){"use strict";var e=n(40224),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},58937:function(L,r,n){"use strict";var e=n(62518),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},14141:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},85158:function(L,r,n){"use strict";var e=n(40224),a=n(56831),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(m){return o?t.createElement(m):{}}},72434:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},49847:function(L,r,n){"use strict";var e=n(15837),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},27955:function(L,r,n){"use strict";var e=n(2971),a=n(95823);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},2178:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},2971:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},56605:function(L,r,n){"use strict";var e=n(15837);L.exports=/MSIE|Trident/.test(e)},6647:function(L,r,n){"use strict";var e=n(15837);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},52426:function(L,r,n){"use strict";var e=n(15837);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},95823:function(L,r,n){"use strict";var e=n(40224),a=n(38817);L.exports=a(e.process)==="process"},25062:function(L,r,n){"use strict";var e=n(15837);L.exports=/web0s(?!.*chrome)/i.test(e)},15837:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},82709:function(L,r,n){"use strict";var e=n(40224),a=n(15837),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,N=m&&m.v8,k,S;N&&(k=N.split("."),S=k[0]>0&&k[0]<4?1:+(k[0]+k[1])),!S&&a&&(k=a.match(/Edge\/(\d+)/),(!k||k[1]>=74)&&(k=a.match(/Chrome\/(\d+)/),k&&(S=+k[1]))),L.exports=S},53125:function(L,r,n){"use strict";var e=n(15837),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},90298:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},77549:function(L,r,n){"use strict";var e=n(40224),a=n(54168).f,t=n(16216),o=n(59173),m=n(93422),N=n(70113),k=n(95945);L.exports=function(S,y){var p=S.target,i=S.global,c=S.stat,f,l,d,s,u,C;if(i?l=e:c?l=e[p]||m(p,{}):l=e[p]&&e[p].prototype,l)for(d in y){if(u=y[d],S.dontCallGetSet?(C=a(l,d),s=C&&C.value):s=l[d],f=k(i?d:p+(c?".":"#")+d,S.forced),!f&&s!==void 0){if(typeof u==typeof s)continue;N(u,s)}(S.sham||s&&s.sham)&&t(u,"sham",!0),o(l,d,u,S)}}},41746:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},85427:function(L,r,n){"use strict";n(95880);var e=n(62696),a=n(59173),t=n(72894),o=n(41746),m=n(66266),N=n(16216),k=m("species"),S=RegExp.prototype;L.exports=function(y,p,i,c){var f=m(y),l=!o(function(){var C={};return C[f]=function(){return 7},""[y](C)!==7}),d=l&&!o(function(){var C=!1,g=/a/;return y==="split"&&(g={},g.constructor={},g.constructor[k]=function(){return g},g.flags="",g[f]=/./[f]),g.exec=function(){return C=!0,null},g[f](""),!C});if(!l||!d||i){var s=/./[f],u=p(f,""[y],function(C,g,v,h,V){var b=g.exec;return b===t||b===S.exec?l&&!V?{done:!0,value:e(s,g,v,h)}:{done:!0,value:e(C,v,g,h)}:{done:!1}});a(String.prototype,y,u[0]),a(S,f,u[1])}c&&N(S[f],"sham",!0)}},68864:function(L,r,n){"use strict";var e=n(62367),a=n(8333),t=n(72434),o=n(4509),m=function N(k,S,y,p,i,c,f,l){for(var d=i,s=0,u=f?o(f,l):!1,C,g;s 0&&e(C)?(g=a(C),d=N(k,S,C,g,d,c-1)-1):(t(d+1),k[d]=C),d++),s++;return d};L.exports=m},56255:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},70918:function(L,r,n){"use strict";var e=n(76799),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},4509:function(L,r,n){"use strict";var e=n(85067),a=n(97361),t=n(76799),o=e(e.bind);L.exports=function(m,N){return a(m),N===void 0?m:t?o(m,N):function(){return m.apply(N,arguments)}}},76799:function(L,r,n){"use strict";var e=n(41746);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},9379:function(L,r,n){"use strict";var e=n(18161),a=n(97361),t=n(56831),o=n(89458),m=n(77713),N=n(76799),k=Function,S=e([].concat),y=e([].join),p={},i=function(f,l,d){if(!o(p,l)){for(var s=[],u=0;u
]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(y,p,i,c,f,l){var d=i+y.length,s=c.length,u=S;return f!==void 0&&(f=a(f),u=k),m(l,u,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return y;case"`":return N(p,0,i);case"'":return N(p,d);case"<":v=f[N(g,1,-1)];break;default:var h=+g;if(h===0)return C;if(h>s){var V=t(h/10);return V===0?C:V<=s?c[V-1]===void 0?o(g,1):c[V-1]+o(g,1):C}v=c[h-1]}return v===void 0?"":v})}},40224:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},89458:function(L,r,n){"use strict";var e=n(18161),a=n(40076),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(m,N){return t(a(m),N)}return o}()},21124:function(L){"use strict";L.exports={}},46122:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},54562:function(L,r,n){"use strict";var e=n(40164);L.exports=e("document","documentElement")},1606:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(85158);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},62263:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(S,y,p){var i=r(p),c=p*8-y-1,f=(1< >1,d=y===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,u=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=f):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+l>=1?S+=d/v:S+=d*e(2,1-l),S*v>=2&&(C++,v/=2),C+l>=f?(g=0,C=f):C+l>=1?(g=(S*v-1)*e(2,y),C+=l):(g=S*e(2,l-1)*e(2,y),C=0));y>=8;)i[u++]=g&255,g/=256,y-=8;for(C=C< 0;)i[u++]=C&255,C/=256,c-=8;return i[--u]|=s*128,i},N=function(S,y){var p=S.length,i=p*8-y-1,c=(1<>1,l=i-7,d=p-1,s=S[d--],u=s&127,C;for(s>>=7;l>0;)u=u*256+S[d--],l-=8;for(C=u&(1<<-l)-1,u>>=-l,l+=y;l>0;)C=C*256+S[d--],l-=8;if(u===0)u=1-f;else{if(u===c)return C?NaN:s?-1/0:1/0;C+=e(2,y),u-=f}return(s?-1:1)*C*e(2,u-y)};L.exports={pack:m,unpack:N}},26736:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(38817),o=Object,m=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?m(N,""):o(N)}:o},2566:function(L,r,n){"use strict";var e=n(7532),a=n(56831),t=n(42878);L.exports=function(o,m,N){var k,S;return t&&e(k=m.constructor)&&k!==N&&a(S=k.prototype)&&S!==N.prototype&&t(o,S),o}},43589:function(L,r,n){"use strict";var e=n(18161),a=n(7532),t=n(95046),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),L.exports=t.inspectSource},29126:function(L,r,n){"use strict";var e=n(77549),a=n(18161),t=n(21124),o=n(56831),m=n(89458),N=n(56018).f,k=n(34813),S=n(63797),y=n(57975),p=n(33345),i=n(56255),c=!1,f=p("meta"),l=0,d=function(V){N(V,f,{value:{objectID:"O"+l++,weakData:{}}})},s=function(V,b){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!m(V,f)){if(!y(V))return"F";if(!b)return"E";d(V)}return V[f].objectID},u=function(V,b){if(!m(V,f)){if(!y(V))return!0;if(!b)return!1;d(V)}return V[f].weakData},C=function(V){return i&&c&&y(V)&&!m(V,f)&&d(V),V},g=function(){v.enable=function(){},c=!0;var V=k.f,b=a([].splice),B={};B[f]=1,V(B).length&&(k.f=function(I){for(var w=V(I),T=0,A=w.length;TI;I++)if(T=M(l[I]),T&&k(f,T))return T;return new c(!1)}b=S(l,B)}for(A=g?l.next:b.next;!(x=a(A,b)).done;){try{T=M(x.value)}catch(j){p(b,"throw",j)}if(typeof T=="object"&&T&&k(f,T))return T}return new c(!1)}},14868:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(4817);L.exports=function(o,m,N){var k,S;a(o);try{if(k=t(o,"return"),!k){if(m==="throw")throw N;return N}k=e(k,o)}catch(y){S=!0,k=y}if(m==="throw")throw N;if(S)throw k;return a(k),N}},42599:function(L,r,n){"use strict";var e=n(85106).IteratorPrototype,a=n(28969),t=n(7539),o=n(94234),m=n(90604),N=function(){return this};L.exports=function(k,S,y,p){var i=S+" Iterator";return k.prototype=a(e,{next:t(+!p,y)}),o(k,i,!1,!0),m[i]=N,k}},2449:function(L,r,n){"use strict";var e=n(77549),a=n(62696),t=n(11478),o=n(26463),m=n(7532),N=n(42599),k=n(31658),S=n(42878),y=n(94234),p=n(16216),i=n(59173),c=n(66266),f=n(90604),l=n(85106),d=o.PROPER,s=o.CONFIGURABLE,u=l.IteratorPrototype,C=l.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",V="entries",b=function(){return this};L.exports=function(B,I,w,T,A,x,E){N(w,I,T);var M=function(X){if(X===A&&F)return F;if(!C&&X&&X in R)return R[X];switch(X){case v:return function(){function Q(){return new w(this,X)}return Q}();case h:return function(){function Q(){return new w(this,X)}return Q}();case V:return function(){function Q(){return new w(this,X)}return Q}()}return function(){return new w(this)}},j=I+" Iterator",P=!1,R=B.prototype,D=R[g]||R["@@iterator"]||A&&R[A],F=!C&&D||M(A),U=I==="Array"&&R.entries||D,K,H,z;if(U&&(K=k(U.call(new B)),K!==Object.prototype&&K.next&&(!t&&k(K)!==u&&(S?S(K,u):m(K[g])||i(K,g,b)),y(K,j,!0,!0),t&&(f[j]=b))),d&&A===h&&D&&D.name!==h&&(!t&&s?p(R,"name",h):(P=!0,F=function(){function G(){return a(D,this)}return G}())),A)if(H={values:M(h),keys:x?F:M(v),entries:M(V)},E)for(z in H)(C||P||!(z in R))&&i(R,z,H[z]);else e({target:I,proto:!0,forced:C||P},H);return(!t||E)&&R[g]!==F&&i(R,g,F,{name:A}),f[I]=F,H}},85106:function(L,r,n){"use strict";var e=n(41746),a=n(7532),t=n(56831),o=n(28969),m=n(31658),N=n(59173),k=n(66266),S=n(11478),y=k("iterator"),p=!1,i,c,f;[].keys&&(f=[].keys(),"next"in f?(c=m(m(f)),c!==Object.prototype&&(i=c)):p=!0);var l=!t(i)||e(function(){var d={};return i[y].call(d)!==d});l?i={}:S&&(i=o(i)),a(i[y])||N(i,y,function(){return this}),L.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},90604:function(L){"use strict";L.exports={}},8333:function(L,r,n){"use strict";var e=n(10475);L.exports=function(a){return e(a.length)}},76130:function(L,r,n){"use strict";var e=n(18161),a=n(41746),t=n(7532),o=n(89458),m=n(14141),N=n(26463).CONFIGURABLE,k=n(43589),S=n(35086),y=S.enforce,p=S.get,i=String,c=Object.defineProperty,f=e("".slice),l=e("".replace),d=e([].join),s=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),C=L.exports=function(g,v,h){f(i(v),0,7)==="Symbol("&&(v="["+l(i(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(m?c(g,"name",{value:v,configurable:!0}):g.name=v),s&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?m&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var V=y(g);return o(V,"source")||(V.source=d(u,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&p(this).source||k(this)}return g}(),"toString")},32813:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},23207:function(L,r,n){"use strict";var e=n(54307),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(k){return k+o-o};L.exports=function(N,k,S,y){var p=+N,i=a(p),c=e(p);if(i S||l!==l?c*(1/0):c*l}},75988:function(L,r,n){"use strict";var e=n(23207),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function m(N){return e(N,a,t,o)}return m}()},53271:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},69143:function(L){"use strict";var r=Math.log;L.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},54307:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},34606:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},27150:function(L,r,n){"use strict";var e=n(40224),a=n(1156),t=n(4509),o=n(91314).set,m=n(23496),N=n(52426),k=n(6647),S=n(25062),y=n(95823),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,f=e.Promise,l=a("queueMicrotask"),d,s,u,C,g;if(!l){var v=new m,h=function(){var b,B;for(y&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(I){throw v.head&&d(),I}b&&b.enter()};!N&&!y&&!S&&p&&i?(s=!0,u=i.createTextNode(""),new p(h).observe(u,{characterData:!0}),d=function(){u.data=s=!s}):!k&&f&&f.resolve?(C=f.resolve(void 0),C.constructor=f,g=t(C.then,C),d=function(){g(h)}):y?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),l=function(b){v.head||d(),v.add(b)}}L.exports=l},48532:function(L,r,n){"use strict";var e=n(97361),a=TypeError,t=function(m){var N,k;this.promise=new m(function(S,y){if(N!==void 0||k!==void 0)throw new a("Bad Promise constructor");N=S,k=y}),this.resolve=e(N),this.reject=e(k)};L.exports.f=function(o){return new t(o)}},89140:function(L,r,n){"use strict";var e=n(80969),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},69079:function(L,r,n){"use strict";var e=n(40224),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},43283:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,N=n(137),k=t("".charAt),S=e.parseFloat,y=e.Symbol,p=y&&y.iterator,i=1/S(N+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=i?function(){function c(f){var l=m(o(f)),d=S(l);return d===0&&k(l,0)==="-"?-0:d}return c}():S},11540:function(L,r,n){"use strict";var e=n(40224),a=n(41746),t=n(18161),o=n(26602),m=n(35171).trim,N=n(137),k=e.parseInt,S=e.Symbol,y=S&&S.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=k(N+"08")!==8||k(N+"0x16")!==22||y&&!a(function(){k(Object(y))});L.exports=c?function(){function f(l,d){var s=m(o(l));return k(s,d>>>0||(i(p,s)?16:10))}return f}():k},12752:function(L,r,n){"use strict";var e=n(14141),a=n(18161),t=n(62696),o=n(41746),m=n(84913),N=n(34220),k=n(9776),S=n(40076),y=n(26736),p=Object.assign,i=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function u(){i(this,"b",{value:3,enumerable:!1})}return u}()}),{b:2})).b!==1)return!0;var f={},l={},d=Symbol("assign detection"),s="abcdefghijklmnopqrst";return f[d]=7,s.split("").forEach(function(u){l[u]=u}),p({},f)[d]!==7||m(p({},l)).join("")!==s})?function(){function f(l,d){for(var s=S(l),u=arguments.length,C=1,g=N.f,v=k.f;u>C;)for(var h=y(arguments[C++]),V=g?c(m(h),g(h)):m(h),b=V.length,B=0,I;b>B;)I=V[B++],(!e||t(v,h,I))&&(s[I]=h[I]);return s}return f}():p},28969:function(L,r,n){"use strict";var e=n(39482),a=n(65854),t=n(90298),o=n(21124),m=n(54562),N=n(85158),k=n(5160),S=">",y="<",p="prototype",i="script",c=k("IE_PROTO"),f=function(){},l=function(v){return y+i+S+v+y+"/"+i+S},d=function(v){v.write(l("")),v.close();var h=v.parentWindow.Object;return v=null,h},s=function(){var v=N("iframe"),h="java"+i+":",V;return v.style.display="none",m.appendChild(v),v.src=String(h),V=v.contentWindow.document,V.open(),V.write(l("document.F=Object")),V.close(),V.F},u,C=function(){try{u=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&u?d(u):s():d(u);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,L.exports=Object.create||function(){function g(v,h){var V;return v!==null?(f[p]=e(v),V=new f,f[p]=null,V[c]=v):V=C(),h===void 0?V:a.f(V,h)}return g}()},65854:function(L,r,n){"use strict";var e=n(14141),a=n(83411),t=n(56018),o=n(39482),m=n(96812),N=n(84913);r.f=e&&!a?Object.defineProperties:function(){function k(S,y){o(S);for(var p=m(y),i=N(y),c=i.length,f=0,l;c>f;)t.f(S,l=i[f++],p[l]);return S}return k}()},56018:function(L,r,n){"use strict";var e=n(14141),a=n(1606),t=n(83411),o=n(39482),m=n(57640),N=TypeError,k=Object.defineProperty,S=Object.getOwnPropertyDescriptor,y="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(f,l,d){if(o(f),l=m(l),o(d),typeof f=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var s=S(f,l);s&&s[i]&&(f[l]=d.value,d={configurable:p in d?d[p]:s[p],enumerable:y in d?d[y]:s[y],writable:!1})}return k(f,l,d)}return c}():k:function(){function c(f,l,d){if(o(f),l=m(l),o(d),a)try{return k(f,l,d)}catch(s){}if("get"in d||"set"in d)throw new N("Accessors not supported");return"value"in d&&(f[l]=d.value),f}return c}()},54168:function(L,r,n){"use strict";var e=n(14141),a=n(62696),t=n(9776),o=n(7539),m=n(96812),N=n(57640),k=n(89458),S=n(1606),y=Object.getOwnPropertyDescriptor;r.f=e?y:function(){function p(i,c){if(i=m(i),c=N(c),S)try{return y(i,c)}catch(f){}if(k(i,c))return o(!a(t.f,i,c),i[c])}return p}()},63797:function(L,r,n){"use strict";var e=n(38817),a=n(96812),t=n(34813).f,o=n(77713),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(y){return o(m)}};L.exports.f=function(){function k(S){return m&&e(S)==="Window"?N(S):t(a(S))}return k}()},34813:function(L,r,n){"use strict";var e=n(62995),a=n(90298),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},34220:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},31658:function(L,r,n){"use strict";var e=n(89458),a=n(7532),t=n(40076),o=n(5160),m=n(58776),N=o("IE_PROTO"),k=Object,S=k.prototype;L.exports=m?k.getPrototypeOf:function(y){var p=t(y);if(e(p,N))return p[N];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof k?S:null}},57975:function(L,r,n){"use strict";var e=n(41746),a=n(56831),t=n(38817),o=n(65693),m=Object.isExtensible,N=e(function(){m(1)});L.exports=N||o?function(){function k(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:m?m(S):!0}return k}():m},33314:function(L,r,n){"use strict";var e=n(18161);L.exports=e({}.isPrototypeOf)},62995:function(L,r,n){"use strict";var e=n(18161),a=n(89458),t=n(96812),o=n(64210).indexOf,m=n(21124),N=e([].push);L.exports=function(k,S){var y=t(k),p=0,i=[],c;for(c in y)!a(m,c)&&a(y,c)&&N(i,c);for(;S.length>p;)a(y,c=S[p++])&&(~o(i,c)||N(i,c));return i}},84913:function(L,r,n){"use strict";var e=n(62995),a=n(90298);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},9776:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},33030:function(L,r,n){"use strict";var e=n(11478),a=n(40224),t=n(41746),o=n(53125);L.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},42878:function(L,r,n){"use strict";var e=n(9553),a=n(56831),t=n(91029),o=n(51689);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,N={},k;try{k=e(Object.prototype,"__proto__","set"),k(N,[]),m=N instanceof Array}catch(S){}return function(){function S(y,p){return t(y),o(p),a(y)&&(m?k(y,p):y.__proto__=p),y}return S}()}():void 0)},97452:function(L,r,n){"use strict";var e=n(14141),a=n(41746),t=n(18161),o=n(31658),m=n(84913),N=n(96812),k=n(9776).f,S=t(k),y=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),i=function(f){return function(l){for(var d=N(l),s=m(d),u=p&&o(d)===null,C=s.length,g=0,v=[],h;C>g;)h=s[g++],(!e||(u?h in d:S(d,h)))&&y(v,f?[h,d[h]]:d[h]);return v}};L.exports={entries:i(!0),values:i(!1)}},66628:function(L,r,n){"use strict";var e=n(82161),a=n(27806);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},14991:function(L,r,n){"use strict";var e=n(62696),a=n(7532),t=n(56831),o=TypeError;L.exports=function(m,N){var k,S;if(N==="string"&&a(k=m.toString)&&!t(S=e(k,m))||a(k=m.valueOf)&&!t(S=e(k,m))||N!=="string"&&a(k=m.toString)&&!t(S=e(k,m)))return S;throw new o("Can't convert object to primitive value")}},93616:function(L,r,n){"use strict";var e=n(40164),a=n(18161),t=n(34813),o=n(34220),m=n(39482),N=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function k(S){var y=t.f(m(S)),p=o.f;return p?N(y,p(S)):y}return k}()},5376:function(L,r,n){"use strict";var e=n(40224);L.exports=e},91114:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},49669:function(L,r,n){"use strict";var e=n(40224),a=n(35973),t=n(7532),o=n(95945),m=n(43589),N=n(66266),k=n(27955),S=n(2971),y=n(11478),p=n(82709),i=a&&a.prototype,c=N("species"),f=!1,l=t(e.PromiseRejectionEvent),d=o("Promise",function(){var s=m(a),u=s!==String(a);if(!u&&p===66||y&&!(i.catch&&i.finally))return!0;if(!p||p<51||!/native code/.test(s)){var C=new a(function(h){h(1)}),g=function(V){V(function(){},function(){})},v=C.constructor={};if(v[c]=g,f=C.then(function(){})instanceof g,!f)return!0}return!u&&(k||S)&&!l});L.exports={CONSTRUCTOR:d,REJECTION_EVENT:l,SUBCLASSING:f}},35973:function(L,r,n){"use strict";var e=n(40224);L.exports=e.Promise},43827:function(L,r,n){"use strict";var e=n(39482),a=n(56831),t=n(48532);L.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var N=t.f(o),k=N.resolve;return k(m),N.promise}},95044:function(L,r,n){"use strict";var e=n(35973),a=n(52019),t=n(49669).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},77495:function(L,r,n){"use strict";var e=n(56018).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(N){t[o]=N}return m}()})}},23496:function(L){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},L.exports=r},35553:function(L,r,n){"use strict";var e=n(62696),a=n(39482),t=n(7532),o=n(38817),m=n(72894),N=TypeError;L.exports=function(k,S){var y=k.exec;if(t(y)){var p=e(y,k,S);return p!==null&&a(p),p}if(o(k)==="RegExp")return e(m,k,S);throw new N("RegExp#exec called on incompatible receiver")}},72894:function(L,r,n){"use strict";var e=n(62696),a=n(18161),t=n(26602),o=n(65844),m=n(1064),N=n(75130),k=n(28969),S=n(35086).get,y=n(89604),p=n(5489),i=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,f=c,l=a("".charAt),d=a("".indexOf),s=a("".replace),u=a("".slice),C=function(){var V=/a/,b=/b*/g;return e(c,V,"a"),e(c,b,"a"),V.lastIndex!==0||b.lastIndex!==0}(),g=m.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||g||y||p;h&&(f=function(){function V(b){var B=this,I=S(B),w=t(b),T=I.raw,A,x,E,M,j,P,R;if(T)return T.lastIndex=B.lastIndex,A=e(f,T,w),B.lastIndex=T.lastIndex,A;var D=I.groups,F=g&&B.sticky,U=e(o,B),K=B.source,H=0,z=w;if(F&&(U=s(U,"y",""),d(U,"g")===-1&&(U+="g"),z=u(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&l(w,B.lastIndex-1)!=="\n")&&(K="(?: "+K+")",z=" "+z,H++),x=new RegExp("^(?:"+K+")",U)),v&&(x=new RegExp("^"+K+"$(?!\\s)",U)),C&&(E=B.lastIndex),M=e(c,F?x:B,z),F?M?(M.input=u(M.input,H),M[0]=u(M[0],H),M.index=B.lastIndex,B.lastIndex+=M[0].length):B.lastIndex=0:C&&M&&(B.lastIndex=B.global?M.index+M[0].length:E),v&&M&&M.length>1&&e(i,M[0],x,function(){for(j=1;j