=0)&&(L[B]=P[B]);return L}var K=/-o$/,W=function(P){var b=P.name,L=P.size,U=P.spin,B=P.className,w=P.rotation,X=A(P,["name","size","spin","className","rotation"]),oe=X.style||{};L&&(oe.fontSize=L*100+"%"),w&&(oe.transform="rotate("+w+"deg)"),X.style=oe;var ie=(0,O.Fl)(X),re="";if(b.startsWith("tg-"))re=b;else{var ae=K.test(b),me=b.replace(K,""),Ce=!me.startsWith("fa-");re=ae?"far ":"fas ",Ce&&(re+="fa-"),re+=me,U&&(re+=" fa-spin")}return(0,e.jsx)("i",T({className:(0,j.Ly)(["Icon",re,B,(0,O.WP)(X)])},ie))},$=function(P){var b=P.className,L=P.children,U=A(P,["className","children"]);return(0,e.jsx)("span",T({className:(0,j.Ly)(["IconStack",b,(0,O.WP)(U)])},(0,O.Fl)(U),{children:L}))};W.Stack=$;function k(P){if(P==null)return window;if(P.toString()!=="[object Window]"){var b=P.ownerDocument;return b&&b.defaultView||window}return P}function z(P,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](P):P instanceof b}function H(P){var b=k(P).Element;return z(P,b)||z(P,Element)}function G(P){var b=k(P).HTMLElement;return z(P,b)||z(P,HTMLElement)}function Y(P){if(typeof ShadowRoot=="undefined")return!1;var b=k(P).ShadowRoot;return z(P,b)||z(P,ShadowRoot)}var ee=Math.max,le=Math.min,ne=Math.round;function Q(){var P=navigator.userAgentData;return P!=null&&P.brands&&Array.isArray(P.brands)?P.brands.map(function(b){return b.brand+"/"+b.version}).join(" "):navigator.userAgent}function Z(){return!/^((?!chrome|android).)*safari/i.test(Q())}function V(P,b,L){b===void 0&&(b=!1),L===void 0&&(L=!1);var U=P.getBoundingClientRect(),B=1,w=1;b&&G(P)&&(B=P.offsetWidth>0&&ne(U.width)/P.offsetWidth||1,w=P.offsetHeight>0&&ne(U.height)/P.offsetHeight||1);var X=H(P)?k(P):window,oe=X.visualViewport,ie=!Z()&&L,re=(U.left+(ie&&oe?oe.offsetLeft:0))/B,ae=(U.top+(ie&&oe?oe.offsetTop:0))/w,me=U.width/B,Ce=U.height/w;return{width:me,height:Ce,top:ae,right:re+me,bottom:ae+Ce,left:re,x:re,y:ae}}function q(P){var b=k(P),L=b.pageXOffset,U=b.pageYOffset;return{scrollLeft:L,scrollTop:U}}function ce(P){return{scrollLeft:P.scrollLeft,scrollTop:P.scrollTop}}function se(P){return P===k(P)||!G(P)?q(P):ce(P)}function fe(P){return P?(P.nodeName||"").toLowerCase():null}function ge(P){return((H(P)?P.ownerDocument:P.document)||window.document).documentElement}function Ie(P){return V(ge(P)).left+q(P).scrollLeft}function je(P){return k(P).getComputedStyle(P)}function Ee(P){var b=je(P),L=b.overflow,U=b.overflowX,B=b.overflowY;return/auto|scroll|overlay|hidden/.test(L+B+U)}function Ne(P){var b=P.getBoundingClientRect(),L=ne(b.width)/P.offsetWidth||1,U=ne(b.height)/P.offsetHeight||1;return L!==1||U!==1}function on(P,b,L){L===void 0&&(L=!1);var U=G(b),B=G(b)&&Ne(b),w=ge(b),X=V(P,B,L),oe={scrollLeft:0,scrollTop:0},ie={x:0,y:0};return(U||!U&&!L)&&((fe(b)!=="body"||Ee(w))&&(oe=se(b)),G(b)?(ie=V(b,!0),ie.x+=b.clientLeft,ie.y+=b.clientTop):w&&(ie.x=Ie(w))),{x:X.left+oe.scrollLeft-ie.x,y:X.top+oe.scrollTop-ie.y,width:X.width,height:X.height}}function He(P){var b=V(P),L=P.offsetWidth,U=P.offsetHeight;return Math.abs(b.width-L)<=1&&(L=b.width),Math.abs(b.height-U)<=1&&(U=b.height),{x:P.offsetLeft,y:P.offsetTop,width:L,height:U}}function Pe(P){return fe(P)==="html"?P:P.assignedSlot||P.parentNode||(Y(P)?P.host:null)||ge(P)}function qe(P){return["html","body","#document"].indexOf(fe(P))>=0?P.ownerDocument.body:G(P)&&Ee(P)?P:qe(Pe(P))}function En(P,b){var L;b===void 0&&(b=[]);var U=qe(P),B=U===((L=P.ownerDocument)==null?void 0:L.body),w=k(U),X=B?[w].concat(w.visualViewport||[],Ee(U)?U:[]):U,oe=b.concat(X);return B?oe:oe.concat(En(Pe(X)))}function jn(P){return["table","td","th"].indexOf(fe(P))>=0}function hn(P){return!G(P)||je(P).position==="fixed"?null:P.offsetParent}function Cn(P){var b=/firefox/i.test(Q()),L=/Trident/i.test(Q());if(L&&G(P)){var U=je(P);if(U.position==="fixed")return null}var B=Pe(P);for(Y(B)&&(B=B.host);G(B)&&["html","body"].indexOf(fe(B))<0;){var w=je(B);if(w.transform!=="none"||w.perspective!=="none"||w.contain==="paint"||["transform","perspective"].indexOf(w.willChange)!==-1||b&&w.willChange==="filter"||b&&w.filter&&w.filter!=="none")return B;B=B.parentNode}return null}function fn(P){for(var b=k(P),L=hn(P);L&&jn(L)&&je(L).position==="static";)L=hn(L);return L&&(fe(L)==="html"||fe(L)==="body"&&je(L).position==="static")?b:L||Cn(P)||b}var tn="top",be="bottom",Le="right",Oe="left",ke="auto",Qe=[tn,be,Le,Oe],we="start",Xe="end",Kn="clippingParents",Un="viewport",In="popper",xn="reference",rn=Qe.reduce(function(P,b){return P.concat([b+"-"+we,b+"-"+Xe])},[]),$e=[].concat(Qe,[ke]).reduce(function(P,b){return P.concat([b,b+"-"+we,b+"-"+Xe])},[]),Fe="beforeRead",mn="read",_n="afterRead",Dt="beforeMain",rt="main",pt="afterMain",Jn="beforeWrite",dt="write",Nt="afterWrite",Qt=[Fe,mn,_n,Dt,rt,pt,Jn,dt,Nt];function ur(P){var b=new Map,L=new Set,U=[];P.forEach(function(w){b.set(w.name,w)});function B(w){L.add(w.name);var X=[].concat(w.requires||[],w.requiresIfExists||[]);X.forEach(function(oe){if(!L.has(oe)){var ie=b.get(oe);ie&&B(ie)}}),U.push(w)}return P.forEach(function(w){L.has(w.name)||B(w)}),U}function ta(P){var b=ur(P);return Qt.reduce(function(L,U){return L.concat(b.filter(function(B){return B.phase===U}))},[])}function ra(P){var b;return function(){return b||(b=new Promise(function(L){Promise.resolve().then(function(){b=void 0,L(P())})})),b}}function oa(P){var b=P.reduce(function(L,U){var B=L[U.name];return L[U.name]=B?Object.assign({},B,U,{options:Object.assign({},B.options,U.options),data:Object.assign({},B.data,U.data)}):U,L},{});return Object.keys(b).map(function(L){return b[L]})}var vo={placement:"bottom",modifiers:[],strategy:"absolute"};function xo(){for(var P=arguments.length,b=new Array(P),L=0;L=0?"x":"y"}function Ir(P){var b=P.reference,L=P.element,U=P.placement,B=U?Et(U):null,w=U?jt(U):null,X=b.x+b.width/2-L.width/2,oe=b.y+b.height/2-L.height/2,ie;switch(B){case tn:ie={x:X,y:b.y-L.height};break;case be:ie={x:X,y:b.y+b.height};break;case Le:ie={x:b.x+b.width,y:oe};break;case Oe:ie={x:b.x-L.width,y:oe};break;default:ie={x:b.x,y:b.y}}var re=B?dr(B):null;if(re!=null){var ae=re==="y"?"height":"width";switch(w){case we:ie[re]=ie[re]-(b[ae]/2-L[ae]/2);break;case Xe:ie[re]=ie[re]+(b[ae]/2-L[ae]/2);break;default:}}return ie}function Eo(P){var b=P.state,L=P.name;b.modifiersData[L]=Ir({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var J={name:"popperOffsets",enabled:!0,phase:"read",fn:Eo,data:{}},Te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qs(P,b){var L=P.x,U=P.y,B=b.devicePixelRatio||1;return{x:ne(L*B)/B||0,y:ne(U*B)/B||0}}function fr(P){var b,L=P.popper,U=P.popperRect,B=P.placement,w=P.variation,X=P.offsets,oe=P.position,ie=P.gpuAcceleration,re=P.adaptive,ae=P.roundOffsets,me=P.isFixed,Ce=X.x,ve=Ce===void 0?0:Ce,Me=X.y,Se=Me===void 0?0:Me,Ke=typeof ae=="function"?ae({x:ve,y:Se}):{x:ve,y:Se};ve=Ke.x,Se=Ke.y;var Be=X.hasOwnProperty("x"),ze=X.hasOwnProperty("y"),en=Oe,_e=tn,We=window;if(re){var Ge=fn(L),gn="clientHeight",an="clientWidth";if(Ge===k(L)&&(Ge=ge(L),je(Ge).position!=="static"&&oe==="absolute"&&(gn="scrollHeight",an="scrollWidth")),Ge=Ge,B===tn||(B===Oe||B===Le)&&w===Xe){_e=be;var cn=me&&Ge===We&&We.visualViewport?We.visualViewport.height:Ge[gn];Se-=cn-U.height,Se*=ie?1:-1}if(B===Oe||(B===tn||B===be)&&w===Xe){en=Le;var Re=me&&Ge===We&&We.visualViewport?We.visualViewport.width:Ge[an];ve-=Re-U.width,ve*=ie?1:-1}}var sn=Object.assign({position:oe},re&&Te),ln=ae===!0?Qs({x:ve,y:Se},k(L)):{x:ve,y:Se};if(ve=ln.x,Se=ln.y,ie){var pn;return Object.assign({},sn,(pn={},pn[_e]=ze?"0":"",pn[en]=Be?"0":"",pn.transform=(We.devicePixelRatio||1)<=1?"translate("+ve+"px, "+Se+"px)":"translate3d("+ve+"px, "+Se+"px, 0)",pn))}return Object.assign({},sn,(b={},b[_e]=ze?Se+"px":"",b[en]=Be?ve+"px":"",b.transform="",b))}function Li(P){var b=P.state,L=P.options,U=L.gpuAcceleration,B=U===void 0?!0:U,w=L.adaptive,X=w===void 0?!0:w,oe=L.roundOffsets,ie=oe===void 0?!0:oe,re={placement:Et(b.placement),variation:jt(b.placement),popper:b.elements.popper,popperRect:b.rects.popper,gpuAcceleration:B,isFixed:b.options.strategy==="fixed"};b.modifiersData.popperOffsets!=null&&(b.styles.popper=Object.assign({},b.styles.popper,fr(Object.assign({},re,{offsets:b.modifiersData.popperOffsets,position:b.options.strategy,adaptive:X,roundOffsets:ie})))),b.modifiersData.arrow!=null&&(b.styles.arrow=Object.assign({},b.styles.arrow,fr(Object.assign({},re,{offsets:b.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ie})))),b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-placement":b.placement})}var Ui={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Li,data:{}};function Zs(P){var b=P.state;Object.keys(b.elements).forEach(function(L){var U=b.styles[L]||{},B=b.attributes[L]||{},w=b.elements[L];!G(w)||!fe(w)||(Object.assign(w.style,U),Object.keys(B).forEach(function(X){var oe=B[X];oe===!1?w.removeAttribute(X):w.setAttribute(X,oe===!0?"":oe)}))})}function Ni(P){var b=P.state,L={popper:{position:b.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(b.elements.popper.style,L.popper),b.styles=L,b.elements.arrow&&Object.assign(b.elements.arrow.style,L.arrow),function(){Object.keys(b.elements).forEach(function(U){var B=b.elements[U],w=b.attributes[U]||{},X=Object.keys(b.styles.hasOwnProperty(U)?b.styles[U]:L[U]),oe=X.reduce(function(ie,re){return ie[re]="",ie},{});!G(B)||!fe(B)||(Object.assign(B.style,oe),Object.keys(w).forEach(function(ie){B.removeAttribute(ie)}))})}}var Wi={name:"applyStyles",enabled:!0,phase:"write",fn:Zs,effect:Ni,requires:["computeStyles"]};function wi(P,b,L){var U=Et(P),B=[Oe,tn].indexOf(U)>=0?-1:1,w=typeof L=="function"?L(Object.assign({},b,{placement:P})):L,X=w[0],oe=w[1];return X=X||0,oe=(oe||0)*B,[Oe,Le].indexOf(U)>=0?{x:oe,y:X}:{x:X,y:oe}}function zi(P){var b=P.state,L=P.options,U=P.name,B=L.offset,w=B===void 0?[0,0]:B,X=$e.reduce(function(ae,me){return ae[me]=wi(me,b.rects,w),ae},{}),oe=X[b.placement],ie=oe.x,re=oe.y;b.modifiersData.popperOffsets!=null&&(b.modifiersData.popperOffsets.x+=ie,b.modifiersData.popperOffsets.y+=re),b.modifiersData[U]=X}var Js={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zi},qs={left:"right",right:"left",bottom:"top",top:"bottom"};function Ln(P){return P.replace(/left|right|bottom|top/g,function(b){return qs[b]})}var el={start:"end",end:"start"};function aa(P){return P.replace(/start|end/g,function(b){return el[b]})}function $i(P,b){var L=k(P),U=ge(P),B=L.visualViewport,w=U.clientWidth,X=U.clientHeight,oe=0,ie=0;if(B){w=B.width,X=B.height;var re=Z();(re||!re&&b==="fixed")&&(oe=B.offsetLeft,ie=B.offsetTop)}return{width:w,height:X,x:oe+Ie(P),y:ie}}function ia(P){var b,L=ge(P),U=q(P),B=(b=P.ownerDocument)==null?void 0:b.body,w=ee(L.scrollWidth,L.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),X=ee(L.scrollHeight,L.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),oe=-U.scrollLeft+Ie(P),ie=-U.scrollTop;return je(B||L).direction==="rtl"&&(oe+=ee(L.clientWidth,B?B.clientWidth:0)-w),{width:w,height:X,x:oe,y:ie}}function ki(P,b){var L=b.getRootNode&&b.getRootNode();if(P.contains(b))return!0;if(L&&Y(L)){var U=b;do{if(U&&P.isSameNode(U))return!0;U=U.parentNode||U.host}while(U)}return!1}function sa(P){return Object.assign({},P,{left:P.x,top:P.y,right:P.x+P.width,bottom:P.y+P.height})}function la(P,b){var L=V(P,!1,b==="fixed");return L.top=L.top+P.clientTop,L.left=L.left+P.clientLeft,L.bottom=L.top+P.clientHeight,L.right=L.left+P.clientWidth,L.width=P.clientWidth,L.height=P.clientHeight,L.x=L.left,L.y=L.top,L}function St(P,b,L){return b===Un?sa($i(P,L)):H(b)?la(b,L):sa(ia(ge(P)))}function nl(P){var b=En(Pe(P)),L=["absolute","fixed"].indexOf(je(P).position)>=0,U=L&&G(P)?fn(P):P;return H(U)?b.filter(function(B){return H(B)&&ki(B,U)&&fe(B)!=="body"}):[]}function bt(P,b,L,U){var B=b==="clippingParents"?nl(P):[].concat(b),w=[].concat(B,[L]),X=w[0],oe=w.reduce(function(ie,re){var ae=St(P,re,U);return ie.top=ee(ae.top,ie.top),ie.right=le(ae.right,ie.right),ie.bottom=le(ae.bottom,ie.bottom),ie.left=ee(ae.left,ie.left),ie},St(P,X,U));return oe.width=oe.right-oe.left,oe.height=oe.bottom-oe.top,oe.x=oe.left,oe.y=oe.top,oe}function Fi(){return{top:0,right:0,bottom:0,left:0}}function Vi(P){return Object.assign({},Fi(),P)}function Gi(P,b){return b.reduce(function(L,U){return L[U]=P,L},{})}function hr(P,b){b===void 0&&(b={});var L=b,U=L.placement,B=U===void 0?P.placement:U,w=L.strategy,X=w===void 0?P.strategy:w,oe=L.boundary,ie=oe===void 0?Kn:oe,re=L.rootBoundary,ae=re===void 0?Un:re,me=L.elementContext,Ce=me===void 0?In:me,ve=L.altBoundary,Me=ve===void 0?!1:ve,Se=L.padding,Ke=Se===void 0?0:Se,Be=Vi(typeof Ke!="number"?Ke:Gi(Ke,Qe)),ze=Ce===In?xn:In,en=P.rects.popper,_e=P.elements[Me?ze:Ce],We=bt(H(_e)?_e:_e.contextElement||ge(P.elements.popper),ie,ae,X),Ge=V(P.elements.reference),gn=Ir({reference:Ge,element:en,strategy:"absolute",placement:B}),an=sa(Object.assign({},en,gn)),cn=Ce===In?an:Ge,Re={top:We.top-cn.top+Be.top,bottom:cn.bottom-We.bottom+Be.bottom,left:We.left-cn.left+Be.left,right:cn.right-We.right+Be.right},sn=P.modifiersData.offset;if(Ce===In&&sn){var ln=sn[B];Object.keys(Re).forEach(function(pn){var Tn=[Le,be].indexOf(pn)>=0?1:-1,et=[tn,be].indexOf(pn)>=0?"y":"x";Re[pn]+=ln[et]*Tn})}return Re}function ca(P,b){b===void 0&&(b={});var L=b,U=L.placement,B=L.boundary,w=L.rootBoundary,X=L.padding,oe=L.flipVariations,ie=L.allowedAutoPlacements,re=ie===void 0?$e:ie,ae=jt(U),me=ae?oe?rn:rn.filter(function(Me){return jt(Me)===ae}):Qe,Ce=me.filter(function(Me){return re.indexOf(Me)>=0});Ce.length===0&&(Ce=me);var ve=Ce.reduce(function(Me,Se){return Me[Se]=hr(P,{placement:Se,boundary:B,rootBoundary:w,padding:X})[Et(Se)],Me},{});return Object.keys(ve).sort(function(Me,Se){return ve[Me]-ve[Se]})}function jo(P){if(Et(P)===ke)return[];var b=Ln(P);return[aa(P),b,aa(b)]}function ua(P){var b=P.state,L=P.options,U=P.name;if(!b.modifiersData[U]._skip){for(var B=L.mainAxis,w=B===void 0?!0:B,X=L.altAxis,oe=X===void 0?!0:X,ie=L.fallbackPlacements,re=L.padding,ae=L.boundary,me=L.rootBoundary,Ce=L.altBoundary,ve=L.flipVariations,Me=ve===void 0?!0:ve,Se=L.allowedAutoPlacements,Ke=b.options.placement,Be=Et(Ke),ze=Be===Ke,en=ie||(ze||!Me?[Ln(Ke)]:jo(Ke)),_e=[Ke].concat(en).reduce(function(Mr,mt){return Mr.concat(Et(mt)===ke?ca(b,{placement:mt,boundary:ae,rootBoundary:me,padding:re,flipVariations:Me,allowedAutoPlacements:Se}):mt)},[]),We=b.rects.reference,Ge=b.rects.popper,gn=new Map,an=!0,cn=_e[0],Re=0;Re<_e.length;Re++){var sn=_e[Re],ln=Et(sn),pn=jt(sn)===we,Tn=[tn,be].indexOf(ln)>=0,et=Tn?"width":"height",Bn=hr(b,{placement:sn,boundary:ae,rootBoundary:me,altBoundary:Ce,padding:re}),kn=Tn?pn?Le:Oe:pn?be:tn;We[et]>Ge[et]&&(kn=Ln(kn));var Gt=Ln(kn),yn=[];if(w&&yn.push(Bn[ln]<=0),oe&&yn.push(Bn[kn]<=0,Bn[Gt]<=0),yn.every(function(Mr){return Mr})){cn=sn,an=!1;break}gn.set(sn,yn)}if(an)for(var wn=Me?3:1,Gn=function(mt){var ro=_e.find(function(oo){var Sn=gn.get(oo);if(Sn)return Sn.slice(0,mt).every(function(ao){return ao})});if(ro)return cn=ro,"break"},Hn=wn;Hn>0;Hn--){var Ht=Gn(Hn);if(Ht==="break")break}b.placement!==cn&&(b.modifiersData[U]._skip=!0,b.placement=cn,b.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:ua,requiresIfExists:["offset"],data:{_skip:!1}};function rl(P){return P==="x"?"y":"x"}function Dr(P,b,L){return ee(P,le(b,L))}function Hi(P,b,L){var U=Dr(P,b,L);return U>L?L:U}function ka(P){var b=P.state,L=P.options,U=P.name,B=L.mainAxis,w=B===void 0?!0:B,X=L.altAxis,oe=X===void 0?!1:X,ie=L.boundary,re=L.rootBoundary,ae=L.altBoundary,me=L.padding,Ce=L.tether,ve=Ce===void 0?!0:Ce,Me=L.tetherOffset,Se=Me===void 0?0:Me,Ke=hr(b,{boundary:ie,rootBoundary:re,padding:me,altBoundary:ae}),Be=Et(b.placement),ze=jt(b.placement),en=!ze,_e=dr(Be),We=rl(_e),Ge=b.modifiersData.popperOffsets,gn=b.rects.reference,an=b.rects.popper,cn=typeof Se=="function"?Se(Object.assign({},b.rects,{placement:b.placement})):Se,Re=typeof cn=="number"?{mainAxis:cn,altAxis:cn}:Object.assign({mainAxis:0,altAxis:0},cn),sn=b.modifiersData.offset?b.modifiersData.offset[b.placement]:null,ln={x:0,y:0};if(Ge){if(w){var pn,Tn=_e==="y"?tn:Oe,et=_e==="y"?be:Le,Bn=_e==="y"?"height":"width",kn=Ge[_e],Gt=kn+Ke[Tn],yn=kn-Ke[et],wn=ve?-an[Bn]/2:0,Gn=ze===we?gn[Bn]:an[Bn],Hn=ze===we?-an[Bn]:-gn[Bn],Ht=b.elements.arrow,Mr=ve&&Ht?He(Ht):{width:0,height:0},mt=b.modifiersData["arrow#persistent"]?b.modifiersData["arrow#persistent"].padding:Fi(),ro=mt[Tn],oo=mt[et],Sn=Dr(0,gn[Bn],Mr[Bn]),ao=en?gn[Bn]/2-wn-Sn-ro-Re.mainAxis:Gn-Sn-ro-Re.mainAxis,Di=en?-gn[Bn]/2+wn+Sn+oo+Re.mainAxis:Hn+Sn+oo+Re.mainAxis,Xo=b.elements.arrow&&fn(b.elements.arrow),Aa=Xo?_e==="y"?Xo.clientTop||0:Xo.clientLeft||0:0,Ta=(pn=sn==null?void 0:sn[_e])!=null?pn:0,Nr=kn+ao-Ta-Aa,Wn=kn+Di-Ta,zn=Dr(ve?le(Gt,Nr):Gt,kn,ve?ee(yn,Wn):yn);Ge[_e]=zn,ln[_e]=zn-kn}if(oe){var Fn,Ra=_e==="x"?tn:Oe,Yo=_e==="x"?be:Le,Kt=Ge[We],Ba=We==="y"?"height":"width",Qn=Kt+Ke[Ra],Ka=Kt-Ke[Yo],Qo=[tn,Oe].indexOf(Be)!==-1,La=(Fn=sn==null?void 0:sn[We])!=null?Fn:0,Lt=Qo?Qn:Kt-gn[Ba]-an[Ba]-La+Re.altAxis,vt=Qo?Kt+gn[Ba]+an[Ba]-La-Re.altAxis:Ka,io=ve&&Qo?Hi(Lt,Kt,vt):Dr(ve?Lt:Qn,Kt,ve?vt:Ka);Ge[We]=io,ln[We]=io-Kt}b.modifiersData[U]=ln}}var Co={name:"preventOverflow",enabled:!0,phase:"main",fn:ka,requiresIfExists:["offset"]},ol=function(b,L){return b=typeof b=="function"?b(Object.assign({},L.rects,{placement:L.placement})):b,Vi(typeof b!="number"?b:Gi(b,Qe))};function Fa(P){var b,L=P.state,U=P.name,B=P.options,w=L.elements.arrow,X=L.modifiersData.popperOffsets,oe=Et(L.placement),ie=dr(oe),re=[Oe,Le].indexOf(oe)>=0,ae=re?"height":"width";if(!(!w||!X)){var me=ol(B.padding,L),Ce=He(w),ve=ie==="y"?tn:Oe,Me=ie==="y"?be:Le,Se=L.rects.reference[ae]+L.rects.reference[ie]-X[ie]-L.rects.popper[ae],Ke=X[ie]-L.rects.reference[ie],Be=fn(w),ze=Be?ie==="y"?Be.clientHeight||0:Be.clientWidth||0:0,en=Se/2-Ke/2,_e=me[ve],We=ze-Ce[ae]-me[Me],Ge=ze/2-Ce[ae]/2+en,gn=Dr(_e,Ge,We),an=ie;L.modifiersData[U]=(b={},b[an]=gn,b.centerOffset=gn-Ge,b)}}function Dn(P){var b=P.state,L=P.options,U=L.element,B=U===void 0?"[data-popper-arrow]":U;B!=null&&(typeof B=="string"&&(B=b.elements.popper.querySelector(B),!B)||ki(b.elements.popper,B)&&(b.elements.arrow=B))}var Xi={name:"arrow",enabled:!0,phase:"main",fn:Fa,effect:Dn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Va(P,b,L){return L===void 0&&(L={x:0,y:0}),{top:P.top-b.height-L.y,right:P.right-b.width+L.x,bottom:P.bottom-b.height+L.y,left:P.left-b.width-L.x}}function da(P){return[tn,Le,be,Oe].some(function(b){return P[b]>=0})}function Yi(P){var b=P.state,L=P.name,U=b.rects.reference,B=b.rects.popper,w=b.modifiersData.preventOverflow,X=hr(b,{elementContext:"reference"}),oe=hr(b,{altBoundary:!0}),ie=Va(X,U),re=Va(oe,B,w),ae=da(ie),me=da(re);b.modifiersData[L]={referenceClippingOffsets:ie,popperEscapeOffsets:re,isReferenceHidden:ae,hasPopperEscaped:me},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":ae,"data-popper-escaped":me})}var Qi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yi},Zi=[Pr,J,Ui,Wi,Js,tl,Co,Xi,Qi],fa=go({defaultModifiers:Zi}),zr=n(32394);function At(){return At=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var K=/-o$/,W=function(P){var b=P.name,L=P.size,U=P.spin,B=P.className,w=P.rotation,X=A(P,["name","size","spin","className","rotation"]),oe=X.style||{};L&&(oe.fontSize=L*100+"%"),w&&(oe.transform="rotate("+w+"deg)"),X.style=oe;var ae=(0,O.Fl)(X),re="";if(b.startsWith("tg-"))re=b;else{var ie=K.test(b),me=b.replace(K,""),Ce=!me.startsWith("fa-");re=ie?"far ":"fas ",Ce&&(re+="fa-"),re+=me,U&&(re+=" fa-spin")}return(0,e.jsx)("i",T({className:(0,j.Ly)(["Icon",re,B,(0,O.WP)(X)])},ae))},$=function(P){var b=P.className,L=P.children,U=A(P,["className","children"]);return(0,e.jsx)("span",T({className:(0,j.Ly)(["IconStack",b,(0,O.WP)(U)])},(0,O.Fl)(U),{children:L}))};W.Stack=$;function k(P){if(P==null)return window;if(P.toString()!=="[object Window]"){var b=P.ownerDocument;return b&&b.defaultView||window}return P}function z(P,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](P):P instanceof b}function H(P){var b=k(P).Element;return z(P,b)||z(P,Element)}function G(P){var b=k(P).HTMLElement;return z(P,b)||z(P,HTMLElement)}function Y(P){if(typeof ShadowRoot=="undefined")return!1;var b=k(P).ShadowRoot;return z(P,b)||z(P,ShadowRoot)}var ee=Math.max,le=Math.min,ne=Math.round;function Q(){var P=navigator.userAgentData;return P!=null&&P.brands&&Array.isArray(P.brands)?P.brands.map(function(b){return b.brand+"/"+b.version}).join(" "):navigator.userAgent}function Z(){return!/^((?!chrome|android).)*safari/i.test(Q())}function V(P,b,L){b===void 0&&(b=!1),L===void 0&&(L=!1);var U=P.getBoundingClientRect(),B=1,w=1;b&&G(P)&&(B=P.offsetWidth>0&&ne(U.width)/P.offsetWidth||1,w=P.offsetHeight>0&&ne(U.height)/P.offsetHeight||1);var X=H(P)?k(P):window,oe=X.visualViewport,ae=!Z()&&L,re=(U.left+(ae&&oe?oe.offsetLeft:0))/B,ie=(U.top+(ae&&oe?oe.offsetTop:0))/w,me=U.width/B,Ce=U.height/w;return{width:me,height:Ce,top:ie,right:re+me,bottom:ie+Ce,left:re,x:re,y:ie}}function q(P){var b=k(P),L=b.pageXOffset,U=b.pageYOffset;return{scrollLeft:L,scrollTop:U}}function ce(P){return{scrollLeft:P.scrollLeft,scrollTop:P.scrollTop}}function se(P){return P===k(P)||!G(P)?q(P):ce(P)}function fe(P){return P?(P.nodeName||"").toLowerCase():null}function ge(P){return((H(P)?P.ownerDocument:P.document)||window.document).documentElement}function Ie(P){return V(ge(P)).left+q(P).scrollLeft}function je(P){return k(P).getComputedStyle(P)}function Ee(P){var b=je(P),L=b.overflow,U=b.overflowX,B=b.overflowY;return/auto|scroll|overlay|hidden/.test(L+B+U)}function Ne(P){var b=P.getBoundingClientRect(),L=ne(b.width)/P.offsetWidth||1,U=ne(b.height)/P.offsetHeight||1;return L!==1||U!==1}function on(P,b,L){L===void 0&&(L=!1);var U=G(b),B=G(b)&&Ne(b),w=ge(b),X=V(P,B,L),oe={scrollLeft:0,scrollTop:0},ae={x:0,y:0};return(U||!U&&!L)&&((fe(b)!=="body"||Ee(w))&&(oe=se(b)),G(b)?(ae=V(b,!0),ae.x+=b.clientLeft,ae.y+=b.clientTop):w&&(ae.x=Ie(w))),{x:X.left+oe.scrollLeft-ae.x,y:X.top+oe.scrollTop-ae.y,width:X.width,height:X.height}}function He(P){var b=V(P),L=P.offsetWidth,U=P.offsetHeight;return Math.abs(b.width-L)<=1&&(L=b.width),Math.abs(b.height-U)<=1&&(U=b.height),{x:P.offsetLeft,y:P.offsetTop,width:L,height:U}}function Pe(P){return fe(P)==="html"?P:P.assignedSlot||P.parentNode||(Y(P)?P.host:null)||ge(P)}function qe(P){return["html","body","#document"].indexOf(fe(P))>=0?P.ownerDocument.body:G(P)&&Ee(P)?P:qe(Pe(P))}function En(P,b){var L;b===void 0&&(b=[]);var U=qe(P),B=U===((L=P.ownerDocument)==null?void 0:L.body),w=k(U),X=B?[w].concat(w.visualViewport||[],Ee(U)?U:[]):U,oe=b.concat(X);return B?oe:oe.concat(En(Pe(X)))}function jn(P){return["table","td","th"].indexOf(fe(P))>=0}function hn(P){return!G(P)||je(P).position==="fixed"?null:P.offsetParent}function Cn(P){var b=/firefox/i.test(Q()),L=/Trident/i.test(Q());if(L&&G(P)){var U=je(P);if(U.position==="fixed")return null}var B=Pe(P);for(Y(B)&&(B=B.host);G(B)&&["html","body"].indexOf(fe(B))<0;){var w=je(B);if(w.transform!=="none"||w.perspective!=="none"||w.contain==="paint"||["transform","perspective"].indexOf(w.willChange)!==-1||b&&w.willChange==="filter"||b&&w.filter&&w.filter!=="none")return B;B=B.parentNode}return null}function fn(P){for(var b=k(P),L=hn(P);L&&jn(L)&&je(L).position==="static";)L=hn(L);return L&&(fe(L)==="html"||fe(L)==="body"&&je(L).position==="static")?b:L||Cn(P)||b}var tn="top",be="bottom",Le="right",Oe="left",ke="auto",Qe=[tn,be,Le,Oe],we="start",Xe="end",Kn="clippingParents",Un="viewport",In="popper",xn="reference",rn=Qe.reduce(function(P,b){return P.concat([b+"-"+we,b+"-"+Xe])},[]),$e=[].concat(Qe,[ke]).reduce(function(P,b){return P.concat([b,b+"-"+we,b+"-"+Xe])},[]),Fe="beforeRead",mn="read",_n="afterRead",Dt="beforeMain",rt="main",pt="afterMain",Jn="beforeWrite",dt="write",Nt="afterWrite",Qt=[Fe,mn,_n,Dt,rt,pt,Jn,dt,Nt];function ur(P){var b=new Map,L=new Set,U=[];P.forEach(function(w){b.set(w.name,w)});function B(w){L.add(w.name);var X=[].concat(w.requires||[],w.requiresIfExists||[]);X.forEach(function(oe){if(!L.has(oe)){var ae=b.get(oe);ae&&B(ae)}}),U.push(w)}return P.forEach(function(w){L.has(w.name)||B(w)}),U}function ti(P){var b=ur(P);return Qt.reduce(function(L,U){return L.concat(b.filter(function(B){return B.phase===U}))},[])}function ri(P){var b;return function(){return b||(b=new Promise(function(L){Promise.resolve().then(function(){b=void 0,L(P())})})),b}}function oi(P){var b=P.reduce(function(L,U){var B=L[U.name];return L[U.name]=B?Object.assign({},B,U,{options:Object.assign({},B.options,U.options),data:Object.assign({},B.data,U.data)}):U,L},{});return Object.keys(b).map(function(L){return b[L]})}var vo={placement:"bottom",modifiers:[],strategy:"absolute"};function xo(){for(var P=arguments.length,b=new Array(P),L=0;L=0?"x":"y"}function Ir(P){var b=P.reference,L=P.element,U=P.placement,B=U?Et(U):null,w=U?jt(U):null,X=b.x+b.width/2-L.width/2,oe=b.y+b.height/2-L.height/2,ae;switch(B){case tn:ae={x:X,y:b.y-L.height};break;case be:ae={x:X,y:b.y+b.height};break;case Le:ae={x:b.x+b.width,y:oe};break;case Oe:ae={x:b.x-L.width,y:oe};break;default:ae={x:b.x,y:b.y}}var re=B?dr(B):null;if(re!=null){var ie=re==="y"?"height":"width";switch(w){case we:ae[re]=ae[re]-(b[ie]/2-L[ie]/2);break;case Xe:ae[re]=ae[re]+(b[ie]/2-L[ie]/2);break;default:}}return ae}function Eo(P){var b=P.state,L=P.name;b.modifiersData[L]=Ir({reference:b.rects.reference,element:b.rects.popper,strategy:"absolute",placement:b.placement})}var J={name:"popperOffsets",enabled:!0,phase:"read",fn:Eo,data:{}},Te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qs(P,b){var L=P.x,U=P.y,B=b.devicePixelRatio||1;return{x:ne(L*B)/B||0,y:ne(U*B)/B||0}}function fr(P){var b,L=P.popper,U=P.popperRect,B=P.placement,w=P.variation,X=P.offsets,oe=P.position,ae=P.gpuAcceleration,re=P.adaptive,ie=P.roundOffsets,me=P.isFixed,Ce=X.x,ve=Ce===void 0?0:Ce,Me=X.y,Se=Me===void 0?0:Me,Ke=typeof ie=="function"?ie({x:ve,y:Se}):{x:ve,y:Se};ve=Ke.x,Se=Ke.y;var Be=X.hasOwnProperty("x"),ze=X.hasOwnProperty("y"),en=Oe,_e=tn,We=window;if(re){var Ge=fn(L),gn="clientHeight",an="clientWidth";if(Ge===k(L)&&(Ge=ge(L),je(Ge).position!=="static"&&oe==="absolute"&&(gn="scrollHeight",an="scrollWidth")),Ge=Ge,B===tn||(B===Oe||B===Le)&&w===Xe){_e=be;var cn=me&&Ge===We&&We.visualViewport?We.visualViewport.height:Ge[gn];Se-=cn-U.height,Se*=ae?1:-1}if(B===Oe||(B===tn||B===be)&&w===Xe){en=Le;var Re=me&&Ge===We&&We.visualViewport?We.visualViewport.width:Ge[an];ve-=Re-U.width,ve*=ae?1:-1}}var sn=Object.assign({position:oe},re&&Te),ln=ie===!0?Qs({x:ve,y:Se},k(L)):{x:ve,y:Se};if(ve=ln.x,Se=ln.y,ae){var pn;return Object.assign({},sn,(pn={},pn[_e]=ze?"0":"",pn[en]=Be?"0":"",pn.transform=(We.devicePixelRatio||1)<=1?"translate("+ve+"px, "+Se+"px)":"translate3d("+ve+"px, "+Se+"px, 0)",pn))}return Object.assign({},sn,(b={},b[_e]=ze?Se+"px":"",b[en]=Be?ve+"px":"",b.transform="",b))}function La(P){var b=P.state,L=P.options,U=L.gpuAcceleration,B=U===void 0?!0:U,w=L.adaptive,X=w===void 0?!0:w,oe=L.roundOffsets,ae=oe===void 0?!0:oe,re={placement:Et(b.placement),variation:jt(b.placement),popper:b.elements.popper,popperRect:b.rects.popper,gpuAcceleration:B,isFixed:b.options.strategy==="fixed"};b.modifiersData.popperOffsets!=null&&(b.styles.popper=Object.assign({},b.styles.popper,fr(Object.assign({},re,{offsets:b.modifiersData.popperOffsets,position:b.options.strategy,adaptive:X,roundOffsets:ae})))),b.modifiersData.arrow!=null&&(b.styles.arrow=Object.assign({},b.styles.arrow,fr(Object.assign({},re,{offsets:b.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ae})))),b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-placement":b.placement})}var Ua={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:La,data:{}};function Zs(P){var b=P.state;Object.keys(b.elements).forEach(function(L){var U=b.styles[L]||{},B=b.attributes[L]||{},w=b.elements[L];!G(w)||!fe(w)||(Object.assign(w.style,U),Object.keys(B).forEach(function(X){var oe=B[X];oe===!1?w.removeAttribute(X):w.setAttribute(X,oe===!0?"":oe)}))})}function Na(P){var b=P.state,L={popper:{position:b.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(b.elements.popper.style,L.popper),b.styles=L,b.elements.arrow&&Object.assign(b.elements.arrow.style,L.arrow),function(){Object.keys(b.elements).forEach(function(U){var B=b.elements[U],w=b.attributes[U]||{},X=Object.keys(b.styles.hasOwnProperty(U)?b.styles[U]:L[U]),oe=X.reduce(function(ae,re){return ae[re]="",ae},{});!G(B)||!fe(B)||(Object.assign(B.style,oe),Object.keys(w).forEach(function(ae){B.removeAttribute(ae)}))})}}var Wa={name:"applyStyles",enabled:!0,phase:"write",fn:Zs,effect:Na,requires:["computeStyles"]};function wa(P,b,L){var U=Et(P),B=[Oe,tn].indexOf(U)>=0?-1:1,w=typeof L=="function"?L(Object.assign({},b,{placement:P})):L,X=w[0],oe=w[1];return X=X||0,oe=(oe||0)*B,[Oe,Le].indexOf(U)>=0?{x:oe,y:X}:{x:X,y:oe}}function za(P){var b=P.state,L=P.options,U=P.name,B=L.offset,w=B===void 0?[0,0]:B,X=$e.reduce(function(ie,me){return ie[me]=wa(me,b.rects,w),ie},{}),oe=X[b.placement],ae=oe.x,re=oe.y;b.modifiersData.popperOffsets!=null&&(b.modifiersData.popperOffsets.x+=ae,b.modifiersData.popperOffsets.y+=re),b.modifiersData[U]=X}var Js={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:za},qs={left:"right",right:"left",bottom:"top",top:"bottom"};function Ln(P){return P.replace(/left|right|bottom|top/g,function(b){return qs[b]})}var el={start:"end",end:"start"};function ii(P){return P.replace(/start|end/g,function(b){return el[b]})}function $a(P,b){var L=k(P),U=ge(P),B=L.visualViewport,w=U.clientWidth,X=U.clientHeight,oe=0,ae=0;if(B){w=B.width,X=B.height;var re=Z();(re||!re&&b==="fixed")&&(oe=B.offsetLeft,ae=B.offsetTop)}return{width:w,height:X,x:oe+Ie(P),y:ae}}function ai(P){var b,L=ge(P),U=q(P),B=(b=P.ownerDocument)==null?void 0:b.body,w=ee(L.scrollWidth,L.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),X=ee(L.scrollHeight,L.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),oe=-U.scrollLeft+Ie(P),ae=-U.scrollTop;return je(B||L).direction==="rtl"&&(oe+=ee(L.clientWidth,B?B.clientWidth:0)-w),{width:w,height:X,x:oe,y:ae}}function ka(P,b){var L=b.getRootNode&&b.getRootNode();if(P.contains(b))return!0;if(L&&Y(L)){var U=b;do{if(U&&P.isSameNode(U))return!0;U=U.parentNode||U.host}while(U)}return!1}function si(P){return Object.assign({},P,{left:P.x,top:P.y,right:P.x+P.width,bottom:P.y+P.height})}function li(P,b){var L=V(P,!1,b==="fixed");return L.top=L.top+P.clientTop,L.left=L.left+P.clientLeft,L.bottom=L.top+P.clientHeight,L.right=L.left+P.clientWidth,L.width=P.clientWidth,L.height=P.clientHeight,L.x=L.left,L.y=L.top,L}function St(P,b,L){return b===Un?si($a(P,L)):H(b)?li(b,L):si(ai(ge(P)))}function nl(P){var b=En(Pe(P)),L=["absolute","fixed"].indexOf(je(P).position)>=0,U=L&&G(P)?fn(P):P;return H(U)?b.filter(function(B){return H(B)&&ka(B,U)&&fe(B)!=="body"}):[]}function bt(P,b,L,U){var B=b==="clippingParents"?nl(P):[].concat(b),w=[].concat(B,[L]),X=w[0],oe=w.reduce(function(ae,re){var ie=St(P,re,U);return ae.top=ee(ie.top,ae.top),ae.right=le(ie.right,ae.right),ae.bottom=le(ie.bottom,ae.bottom),ae.left=ee(ie.left,ae.left),ae},St(P,X,U));return oe.width=oe.right-oe.left,oe.height=oe.bottom-oe.top,oe.x=oe.left,oe.y=oe.top,oe}function Fa(){return{top:0,right:0,bottom:0,left:0}}function Va(P){return Object.assign({},Fa(),P)}function Ga(P,b){return b.reduce(function(L,U){return L[U]=P,L},{})}function hr(P,b){b===void 0&&(b={});var L=b,U=L.placement,B=U===void 0?P.placement:U,w=L.strategy,X=w===void 0?P.strategy:w,oe=L.boundary,ae=oe===void 0?Kn:oe,re=L.rootBoundary,ie=re===void 0?Un:re,me=L.elementContext,Ce=me===void 0?In:me,ve=L.altBoundary,Me=ve===void 0?!1:ve,Se=L.padding,Ke=Se===void 0?0:Se,Be=Va(typeof Ke!="number"?Ke:Ga(Ke,Qe)),ze=Ce===In?xn:In,en=P.rects.popper,_e=P.elements[Me?ze:Ce],We=bt(H(_e)?_e:_e.contextElement||ge(P.elements.popper),ae,ie,X),Ge=V(P.elements.reference),gn=Ir({reference:Ge,element:en,strategy:"absolute",placement:B}),an=si(Object.assign({},en,gn)),cn=Ce===In?an:Ge,Re={top:We.top-cn.top+Be.top,bottom:cn.bottom-We.bottom+Be.bottom,left:We.left-cn.left+Be.left,right:cn.right-We.right+Be.right},sn=P.modifiersData.offset;if(Ce===In&&sn){var ln=sn[B];Object.keys(Re).forEach(function(pn){var Tn=[Le,be].indexOf(pn)>=0?1:-1,et=[tn,be].indexOf(pn)>=0?"y":"x";Re[pn]+=ln[et]*Tn})}return Re}function ci(P,b){b===void 0&&(b={});var L=b,U=L.placement,B=L.boundary,w=L.rootBoundary,X=L.padding,oe=L.flipVariations,ae=L.allowedAutoPlacements,re=ae===void 0?$e:ae,ie=jt(U),me=ie?oe?rn:rn.filter(function(Me){return jt(Me)===ie}):Qe,Ce=me.filter(function(Me){return re.indexOf(Me)>=0});Ce.length===0&&(Ce=me);var ve=Ce.reduce(function(Me,Se){return Me[Se]=hr(P,{placement:Se,boundary:B,rootBoundary:w,padding:X})[Et(Se)],Me},{});return Object.keys(ve).sort(function(Me,Se){return ve[Me]-ve[Se]})}function jo(P){if(Et(P)===ke)return[];var b=Ln(P);return[ii(P),b,ii(b)]}function ui(P){var b=P.state,L=P.options,U=P.name;if(!b.modifiersData[U]._skip){for(var B=L.mainAxis,w=B===void 0?!0:B,X=L.altAxis,oe=X===void 0?!0:X,ae=L.fallbackPlacements,re=L.padding,ie=L.boundary,me=L.rootBoundary,Ce=L.altBoundary,ve=L.flipVariations,Me=ve===void 0?!0:ve,Se=L.allowedAutoPlacements,Ke=b.options.placement,Be=Et(Ke),ze=Be===Ke,en=ae||(ze||!Me?[Ln(Ke)]:jo(Ke)),_e=[Ke].concat(en).reduce(function(Mr,mt){return Mr.concat(Et(mt)===ke?ci(b,{placement:mt,boundary:ie,rootBoundary:me,padding:re,flipVariations:Me,allowedAutoPlacements:Se}):mt)},[]),We=b.rects.reference,Ge=b.rects.popper,gn=new Map,an=!0,cn=_e[0],Re=0;Re<_e.length;Re++){var sn=_e[Re],ln=Et(sn),pn=jt(sn)===we,Tn=[tn,be].indexOf(ln)>=0,et=Tn?"width":"height",Bn=hr(b,{placement:sn,boundary:ie,rootBoundary:me,altBoundary:Ce,padding:re}),kn=Tn?pn?Le:Oe:pn?be:tn;We[et]>Ge[et]&&(kn=Ln(kn));var Gt=Ln(kn),yn=[];if(w&&yn.push(Bn[ln]<=0),oe&&yn.push(Bn[kn]<=0,Bn[Gt]<=0),yn.every(function(Mr){return Mr})){cn=sn,an=!1;break}gn.set(sn,yn)}if(an)for(var wn=Me?3:1,Gn=function(mt){var ro=_e.find(function(oo){var Sn=gn.get(oo);if(Sn)return Sn.slice(0,mt).every(function(io){return io})});if(ro)return cn=ro,"break"},Hn=wn;Hn>0;Hn--){var Ht=Gn(Hn);if(Ht==="break")break}b.placement!==cn&&(b.modifiersData[U]._skip=!0,b.placement=cn,b.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:ui,requiresIfExists:["offset"],data:{_skip:!1}};function rl(P){return P==="x"?"y":"x"}function Dr(P,b,L){return ee(P,le(b,L))}function Ha(P,b,L){var U=Dr(P,b,L);return U>L?L:U}function ki(P){var b=P.state,L=P.options,U=P.name,B=L.mainAxis,w=B===void 0?!0:B,X=L.altAxis,oe=X===void 0?!1:X,ae=L.boundary,re=L.rootBoundary,ie=L.altBoundary,me=L.padding,Ce=L.tether,ve=Ce===void 0?!0:Ce,Me=L.tetherOffset,Se=Me===void 0?0:Me,Ke=hr(b,{boundary:ae,rootBoundary:re,padding:me,altBoundary:ie}),Be=Et(b.placement),ze=jt(b.placement),en=!ze,_e=dr(Be),We=rl(_e),Ge=b.modifiersData.popperOffsets,gn=b.rects.reference,an=b.rects.popper,cn=typeof Se=="function"?Se(Object.assign({},b.rects,{placement:b.placement})):Se,Re=typeof cn=="number"?{mainAxis:cn,altAxis:cn}:Object.assign({mainAxis:0,altAxis:0},cn),sn=b.modifiersData.offset?b.modifiersData.offset[b.placement]:null,ln={x:0,y:0};if(Ge){if(w){var pn,Tn=_e==="y"?tn:Oe,et=_e==="y"?be:Le,Bn=_e==="y"?"height":"width",kn=Ge[_e],Gt=kn+Ke[Tn],yn=kn-Ke[et],wn=ve?-an[Bn]/2:0,Gn=ze===we?gn[Bn]:an[Bn],Hn=ze===we?-an[Bn]:-gn[Bn],Ht=b.elements.arrow,Mr=ve&&Ht?He(Ht):{width:0,height:0},mt=b.modifiersData["arrow#persistent"]?b.modifiersData["arrow#persistent"].padding:Fa(),ro=mt[Tn],oo=mt[et],Sn=Dr(0,gn[Bn],Mr[Bn]),io=en?gn[Bn]/2-wn-Sn-ro-Re.mainAxis:Gn-Sn-ro-Re.mainAxis,Da=en?-gn[Bn]/2+wn+Sn+oo+Re.mainAxis:Hn+Sn+oo+Re.mainAxis,Xo=b.elements.arrow&&fn(b.elements.arrow),Ai=Xo?_e==="y"?Xo.clientTop||0:Xo.clientLeft||0:0,Ti=(pn=sn==null?void 0:sn[_e])!=null?pn:0,Nr=kn+io-Ti-Ai,Wn=kn+Da-Ti,zn=Dr(ve?le(Gt,Nr):Gt,kn,ve?ee(yn,Wn):yn);Ge[_e]=zn,ln[_e]=zn-kn}if(oe){var Fn,Ri=_e==="x"?tn:Oe,Yo=_e==="x"?be:Le,Kt=Ge[We],Bi=We==="y"?"height":"width",Qn=Kt+Ke[Ri],Ki=Kt-Ke[Yo],Qo=[tn,Oe].indexOf(Be)!==-1,Li=(Fn=sn==null?void 0:sn[We])!=null?Fn:0,Lt=Qo?Qn:Kt-gn[Bi]-an[Bi]-Li+Re.altAxis,vt=Qo?Kt+gn[Bi]+an[Bi]-Li-Re.altAxis:Ki,ao=ve&&Qo?Ha(Lt,Kt,vt):Dr(ve?Lt:Qn,Kt,ve?vt:Ki);Ge[We]=ao,ln[We]=ao-Kt}b.modifiersData[U]=ln}}var Co={name:"preventOverflow",enabled:!0,phase:"main",fn:ki,requiresIfExists:["offset"]},ol=function(b,L){return b=typeof b=="function"?b(Object.assign({},L.rects,{placement:L.placement})):b,Va(typeof b!="number"?b:Ga(b,Qe))};function Fi(P){var b,L=P.state,U=P.name,B=P.options,w=L.elements.arrow,X=L.modifiersData.popperOffsets,oe=Et(L.placement),ae=dr(oe),re=[Oe,Le].indexOf(oe)>=0,ie=re?"height":"width";if(!(!w||!X)){var me=ol(B.padding,L),Ce=He(w),ve=ae==="y"?tn:Oe,Me=ae==="y"?be:Le,Se=L.rects.reference[ie]+L.rects.reference[ae]-X[ae]-L.rects.popper[ie],Ke=X[ae]-L.rects.reference[ae],Be=fn(w),ze=Be?ae==="y"?Be.clientHeight||0:Be.clientWidth||0:0,en=Se/2-Ke/2,_e=me[ve],We=ze-Ce[ie]-me[Me],Ge=ze/2-Ce[ie]/2+en,gn=Dr(_e,Ge,We),an=ae;L.modifiersData[U]=(b={},b[an]=gn,b.centerOffset=gn-Ge,b)}}function Dn(P){var b=P.state,L=P.options,U=L.element,B=U===void 0?"[data-popper-arrow]":U;B!=null&&(typeof B=="string"&&(B=b.elements.popper.querySelector(B),!B)||ka(b.elements.popper,B)&&(b.elements.arrow=B))}var Xa={name:"arrow",enabled:!0,phase:"main",fn:Fi,effect:Dn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vi(P,b,L){return L===void 0&&(L={x:0,y:0}),{top:P.top-b.height-L.y,right:P.right-b.width+L.x,bottom:P.bottom-b.height+L.y,left:P.left-b.width-L.x}}function di(P){return[tn,Le,be,Oe].some(function(b){return P[b]>=0})}function Ya(P){var b=P.state,L=P.name,U=b.rects.reference,B=b.rects.popper,w=b.modifiersData.preventOverflow,X=hr(b,{elementContext:"reference"}),oe=hr(b,{altBoundary:!0}),ae=Vi(X,U),re=Vi(oe,B,w),ie=di(ae),me=di(re);b.modifiersData[L]={referenceClippingOffsets:ae,popperEscapeOffsets:re,isReferenceHidden:ie,hasPopperEscaped:me},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":ie,"data-popper-escaped":me})}var Qa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ya},Za=[Pr,J,Ua,Wa,Js,tl,Co,Xa,Qa],fi=go({defaultModifiers:Za}),zr=n(32394);function At(){return At=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Ha(P,b){var L,U,B,w,X={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return w={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function oe(re){return function(ae){return ie([re,ae])}}function ie(re){if(L)throw new TypeError("Generator is already executing.");for(;X;)try{if(L=1,U&&(B=re[0]&2?U.return:re[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,re[1])).done)return B;switch(U=0,B&&(re=[re[0]&2,B.value]),re[0]){case 0:case 1:B=re;break;case 4:return X.label++,{value:re[1],done:!1};case 5:X.label++,U=re[1],re=[0];continue;case 7:re=X.ops.pop(),X.trys.pop();continue;default:if(B=X.trys,!(B=B.length>0&&B[B.length-1])&&(re[0]===6||re[0]===2)){X=0;continue}if(re[0]===3&&(!B||re[1]>B[0]&&re[1]=0)&&(L[B]=P[B]);return L}function Hi(P,b){var L,U,B,w,X={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return w={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function oe(re){return function(ie){return ae([re,ie])}}function ae(re){if(L)throw new TypeError("Generator is already executing.");for(;X;)try{if(L=1,U&&(B=re[0]&2?U.return:re[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,re[1])).done)return B;switch(U=0,B&&(re=[re[0]&2,B.value]),re[0]){case 0:case 1:B=re;break;case 4:return X.label++,{value:re[1],done:!1};case 5:X.label++,U=re[1],re=[0];continue;case 7:re=X.ops.pop(),X.trys.pop();continue;default:if(B=X.trys,!(B=B.length>0&&B[B.length-1])&&(re[0]===6||re[0]===2)){X=0;continue}if(re[0]===3&&(!B||re[1]>B[0]&&re[1]=0)&&(L[B]=P[B]);return L}function kr(P,b){return kr=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},kr(P,b)}var br=(0,vr.h)("ByondUi"),xr=[],gr=function(P){var b=xr.length;xr.push(null);var L=P||"byondui_"+b;return br.log("allocated '"+L+"'"),{render:function(U){br.log("rendering '"+L+"'"),xr[b]=L,Byond.winset(L,U)},unmount:function(){br.log("unmounting '"+L+"'"),xr[b]=null,Byond.winset(L,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var P=0;P=0)&&(L[B]=P[B]);return L}function kr(P,b){return kr=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},kr(P,b)}var br=(0,vr.h)("ByondUi"),xr=[],gr=function(P){var b=xr.length;xr.push(null);var L=P||"byondui_"+b;return br.log("allocated '"+L+"'"),{render:function(U){br.log("rendering '"+L+"'"),xr[b]=L,Byond.winset(L,U)},unmount:function(){br.log("unmounting '"+L+"'"),xr[b]=null,Byond.winset(L,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var P=0;P=0)&&(L[B]=P[B]);return L}function jr(P,b){return jr=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},jr(P,b)}var Ya=function(P,b,L,U){var B,w;if(P.length===0)return[];var X=(0,pr.Tj)(pr.yU.apply(void 0,[].concat(P)),function(re){return(B=Math).min.apply(B,[].concat(re))}),oe=(0,pr.Tj)(pr.yU.apply(void 0,[].concat(P)),function(re){return(w=Math).max.apply(w,[].concat(re))});L!==void 0&&(X[0]=L[0],oe[0]=L[1]),U!==void 0&&(X[1]=U[0],oe[1]=U[1]);var ie=(0,pr.Tj)(P,function(re){return(0,pr.Tj)((0,pr.yU)(re,X,oe,b),function(ae){var me=ae[0],Ce=ae[1],ve=ae[2],Me=ae[3];return(me-Ce)/(ve-Ce)*Me})});return ie},Io=function(P){for(var b="",L=0;L0){var ze=Be[0],en=Be[Be.length-1];Be.push([Ke[0]+Me,en[1]]),Be.push([Ke[0]+Me,-Me]),Be.push([-Me,-Me]),Be.push([-Me,ze[1]])}var _e=Io(Be),We=Er({},Se,{className:"",ref:this.ref});return(0,e.jsx)(O.az,Er({position:"relative"},Se,{children:(0,e.jsx)(O.az,Er({},We,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ke[0]+" "+Ke[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ke[1]+")",fill:ae,stroke:Ce,strokeWidth:Me,points:_e})})}))}))},b}(t.Component),Qa={Line:sl};/**
+ */function vi(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function Er(){return Er=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function jr(P,b){return jr=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},jr(P,b)}var Yi=function(P,b,L,U){var B,w;if(P.length===0)return[];var X=(0,pr.Tj)(pr.yU.apply(void 0,[].concat(P)),function(re){return(B=Math).min.apply(B,[].concat(re))}),oe=(0,pr.Tj)(pr.yU.apply(void 0,[].concat(P)),function(re){return(w=Math).max.apply(w,[].concat(re))});L!==void 0&&(X[0]=L[0],oe[0]=L[1]),U!==void 0&&(X[1]=U[0],oe[1]=U[1]);var ae=(0,pr.Tj)(P,function(re){return(0,pr.Tj)((0,pr.yU)(re,X,oe,b),function(ie){var me=ie[0],Ce=ie[1],ve=ie[2],Me=ie[3];return(me-Ce)/(ve-Ce)*Me})});return ae},Io=function(P){for(var b="",L=0;L0){var ze=Be[0],en=Be[Be.length-1];Be.push([Ke[0]+Me,en[1]]),Be.push([Ke[0]+Me,-Me]),Be.push([-Me,-Me]),Be.push([-Me,ze[1]])}var _e=Io(Be),We=Er({},Se,{className:"",ref:this.ref});return(0,e.jsx)(O.az,Er({position:"relative"},Se,{children:(0,e.jsx)(O.az,Er({},We,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ke[0]+" "+Ke[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ke[1]+")",fill:ie,stroke:Ce,strokeWidth:Me,points:_e})})}))}))},b}(t.Component),Qi={Line:sl};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Do(){return Do=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function xa(P){var b=P.children,L=P.color,U=P.title,B=P.buttons,w=P.icon,X=P.child_mt,oe=X===void 0?1:X,ie=So(P,["children","color","title","buttons","icon","child_mt"]),re=(0,t.useState)(P.open),ae=re[0],me=re[1];return(0,e.jsxs)(O.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Yn,Do({fluid:!0,color:L,icon:w||(ae?"chevron-down":"chevron-right"),onClick:function(){return me(!ae)}},ie,{children:U}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),ae&&(0,e.jsx)(O.az,{mt:oe,children:b})]})}/**
+ */function Do(){return Do=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function xi(P){var b=P.children,L=P.color,U=P.title,B=P.buttons,w=P.icon,X=P.child_mt,oe=X===void 0?1:X,ae=So(P,["children","color","title","buttons","icon","child_mt"]),re=(0,t.useState)(P.open),ie=re[0],me=re[1];return(0,e.jsxs)(O.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(Yn,Do({fluid:!0,color:L,icon:w||(ie?"chevron-down":"chevron-right"),onClick:function(){return me(!ie)}},ae,{children:U}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),ie&&(0,e.jsx)(O.az,{mt:oe,children:b})]})}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function ga(){return ga=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function cl(P){var b=P.content,L=P.children,U=P.className,B=ll(P,["content","children","className"]);return B.color=b?null:"default",B.backgroundColor=P.color||"default",(0,e.jsx)("div",ga({className:(0,j.Ly)(["ColorBox",U,(0,O.WP)(B)])},(0,O.Fl)(B),{children:b||"."}))}/**
+ */function gi(){return gi=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function cl(P){var b=P.content,L=P.children,U=P.className,B=ll(P,["content","children","className"]);return B.color=b?null:"default",B.backgroundColor=P.color||"default",(0,e.jsx)("div",gi({className:(0,j.Ly)(["ColorBox",U,(0,O.WP)(B)])},(0,O.Fl)(B),{children:b||"."}))}/**
* @file
* @copyright 2022 raffclar
* @license MIT
@@ -155,96 +155,96 @@
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Za(){return Za=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function ts(P){var b=P.className,L=P.children,U=ul(P,["className","children"]);return(0,e.jsx)(O.az,Za({className:(0,j.Ly)(["Dimmer",b])},U,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:L})}))}/**
+ */function Zi(){return Zi=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function ts(P){var b=P.className,L=P.children,U=ul(P,["className","children"]);return(0,e.jsx)(O.az,Zi({className:(0,j.Ly)(["Dimmer",b])},U,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:L})}))}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function rs(P){var b=P.hidden,L=P.vertical;return(0,e.jsx)("div",{className:(0,j.Ly)(["Divider",b&&"Divider--hidden",L?"Divider--vertical":"Divider--horizontal"])})}var os=n(31200),dl=n(77829);function as(P,b,L,U,B,w,X){try{var oe=P[w](X),ie=oe.value}catch(re){L(re);return}oe.done?b(ie):Promise.resolve(ie).then(U,B)}function fl(P){return function(){var b=this,L=arguments;return new Promise(function(U,B){var w=P.apply(b,L);function X(ie){as(w,U,B,X,oe,"next",ie)}function oe(ie){as(w,U,B,X,oe,"throw",ie)}X(void 0)})}}function Ja(){return Ja=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function hl(P,b){var L,U,B,w,X={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return w={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function oe(re){return function(ae){return ie([re,ae])}}function ie(re){if(L)throw new TypeError("Generator is already executing.");for(;X;)try{if(L=1,U&&(B=re[0]&2?U.return:re[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,re[1])).done)return B;switch(U=0,B&&(re=[re[0]&2,B.value]),re[0]){case 0:case 1:B=re;break;case 4:return X.label++,{value:re[1],done:!1};case 5:X.label++,U=re[1],re=[0];continue;case 7:re=X.ops.pop(),X.trys.pop();continue;default:if(B=X.trys,!(B=B.length>0&&B[B.length-1])&&(re[0]===6||re[0]===2)){X=0;continue}if(re[0]===3&&(!B||re[1]>B[0]&&re[1]=0)&&(L[B]=P[B]);return L}function hl(P,b){var L,U,B,w,X={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return w={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function oe(re){return function(ie){return ae([re,ie])}}function ae(re){if(L)throw new TypeError("Generator is already executing.");for(;X;)try{if(L=1,U&&(B=re[0]&2?U.return:re[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,re[1])).done)return B;switch(U=0,B&&(re=[re[0]&2,B.value]),re[0]){case 0:case 1:B=re;break;case 4:return X.label++,{value:re[1],done:!1};case 5:X.label++,U=re[1],re=[0];continue;case 7:re=X.ops.pop(),X.trys.pop();continue;default:if(B=X.trys,!(B=B.length>0&&B[B.length-1])&&(re[0]===6||re[0]===2)){X=0;continue}if(re[0]===3&&(!B||re[1]>B[0]&&re[1]0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},w))},B.handleDragStart=function(w){var X=B.props,oe=X.value,ie=X.dragMatrix,re=B.state.editing;re||(document.body.style["pointer-events"]="none",B.ref=w.target,B.setState({dragging:!1,origin:ri(w,ie),value:oe,internalValue:oe}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ae=B.state,me=ae.dragging,Ce=ae.value,ve=B.props.onDrag;me&&ve&&ve(w,Ce)},B.props.updateRate||xl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(w){var X=B.props,oe=X.minValue,ie=X.maxValue,re=X.step,ae=X.stepPixelSize,me=X.dragMatrix;B.setState(function(Ce){var ve=ni({},Ce),Me=ri(w,me)-ve.origin;if(Ce.dragging){var Se=Number.isFinite(oe)?oe%re:0;ve.internalValue=(0,o.qE)(ve.internalValue+Me*re/ae,oe-re,ie+re),ve.value=(0,o.qE)(ve.internalValue-ve.internalValue%re+Se,oe,ie),ve.origin=ri(w,me)}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},B.handleDragEnd=function(w){var X=B.props,oe=X.onChange,ie=X.onDrag,re=B.state,ae=re.dragging,me=re.value,Ce=re.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ae,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ae)B.suppressFlicker(),oe&&oe(w,me),ie&&ie(w,me);else if(B.inputRef){var ve=B.inputRef.current;ve.value=Ce,setTimeout(function(){ve.focus(),ve.select()},100)}},B}var L=b.prototype;return L.render=function(){var B=this,w=this.state,X=w.dragging,oe=w.editing,ie=w.value,re=w.suppressingFlicker,ae=this.props,me=ae.animated,Ce=ae.value,ve=ae.unit,Me=ae.minValue,Se=ae.maxValue,Ke=ae.unclamped,Be=ae.format,ze=ae.onChange,en=ae.onDrag,_e=ae.children,We=ae.height,Ge=ae.lineHeight,gn=ae.fontSize,an=Ce;(X||re)&&(an=ie);var cn=(0,e.jsxs)(e.Fragment,{children:[me&&!X&&!re?(0,e.jsx)(c,{value:an,format:Be}):Be?Be(an):an,ve?" "+ve:""]}),Re=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:oe?void 0:"none",height:We,lineHeight:Ge,fontsize:gn},onBlur:function(sn){if(oe){var ln;if(Ke?ln=parseFloat(sn.target.value):ln=(0,o.qE)(parseFloat(sn.target.value),Me,Se),Number.isNaN(ln)){B.setState({editing:!1});return}B.setState({editing:!1,value:ln}),B.suppressFlicker(),ze&&ze(sn,ln),en&&en(sn,ln)}},onKeyDown:function(sn){if(sn.keyCode===13){var ln;if(Ke?ln=parseFloat(sn.target.value):ln=(0,o.qE)(parseFloat(sn.target.value),Me,Se),Number.isNaN(ln)){B.setState({editing:!1});return}B.setState({editing:!1,value:ln}),B.suppressFlicker(),ze&&ze(sn,ln),en&&en(sn,ln);return}if(sn.keyCode===27){B.setState({editing:!1});return}}});return _e({dragging:X,editing:oe,value:Ce,displayValue:an,displayElement:cn,inputElement:Re,handleDragStart:this.handleDragStart})},b}(t.Component);pa.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var gl=n(20878),oi=n.n(gl),Ea=function(b){return Array.isArray(b)?b[0]:b},pl=function(b){if(typeof b=="function"){for(var L=arguments.length,U=new Array(L>1?L-1:0),B=1;B_e.length-3?_e.length-1:yn-2;var Hn=(wn=et.current)==null?void 0:wn.children[Gn];Hn==null||Hn.scrollIntoView({block:"nearest"})}function Gt(yn){if(!(_e.length<1||re)){var wn=0,Gn=_e.length-1,Hn;Bn<0?Hn=yn==="next"?Gn:wn:yn==="next"?Hn=Bn===Gn?wn:Bn+1:Hn=Bn===wn?Gn:Bn-1,ln&&L&&kn(Hn),ze==null||ze(bo(_e[Hn]))}}return(0,t.useEffect)(function(){var yn;ln&&(L&&Bn!==jl&&kn(Bn),(yn=et.current)==null||yn.focus())},[ln]),(0,e.jsx)(cs,{isOpen:ln,onClickOutside:function(){return pn(!1)},placement:We?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Se},ref:et,children:[_e.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),_e.map(function(yn,wn){var Gn=bo(yn);return(0,e.jsx)("div",{className:(0,j.Ly)(["Dropdown__menuentry",an===Gn&&"selected"]),onClick:function(){pn(!1),ze==null||ze(Gn)},children:typeof yn=="string"?yn:yn.displayText},wn)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,O.zA)(Re)},children:[(0,e.jsxs)("div",{className:(0,j.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+ie,re&&"Button--disabled",B]),onClick:function(yn){re&&!ln||(pn(!ln),Be==null||Be(yn))},children:[me&&(0,e.jsx)(W,{mr:1,name:me,rotation:Ce,spin:ve}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:X?"hidden":"visible"},children:ae||an&&bo(an)||gn}),!Ke&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(W,{name:Tn?"chevron-up":"chevron-down"})})]}),U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Yn,{disabled:re,height:1.8,icon:"chevron-left",onClick:function(){Gt("previous")}}),(0,e.jsx)(Yn,{disabled:re,height:1.8,icon:"chevron-right",onClick:function(){Gt("next")}})]})]})})}function ja(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function Vr(){return Vr=Object.assign||function(P){for(var b=1;b0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},w))},B.handleDragStart=function(w){var X=B.props,oe=X.value,ae=X.dragMatrix,re=B.state.editing;re||(document.body.style["pointer-events"]="none",B.ref=w.target,B.setState({dragging:!1,origin:ra(w,ae),value:oe,internalValue:oe}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ie=B.state,me=ie.dragging,Ce=ie.value,ve=B.props.onDrag;me&&ve&&ve(w,Ce)},B.props.updateRate||xl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(w){var X=B.props,oe=X.minValue,ae=X.maxValue,re=X.step,ie=X.stepPixelSize,me=X.dragMatrix;B.setState(function(Ce){var ve=na({},Ce),Me=ra(w,me)-ve.origin;if(Ce.dragging){var Se=Number.isFinite(oe)?oe%re:0;ve.internalValue=(0,o.qE)(ve.internalValue+Me*re/ie,oe-re,ae+re),ve.value=(0,o.qE)(ve.internalValue-ve.internalValue%re+Se,oe,ae),ve.origin=ra(w,me)}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},B.handleDragEnd=function(w){var X=B.props,oe=X.onChange,ae=X.onDrag,re=B.state,ie=re.dragging,me=re.value,Ce=re.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ie,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ie)B.suppressFlicker(),oe&&oe(w,me),ae&&ae(w,me);else if(B.inputRef){var ve=B.inputRef.current;ve.value=Ce,setTimeout(function(){ve.focus(),ve.select()},100)}},B}var L=b.prototype;return L.render=function(){var B=this,w=this.state,X=w.dragging,oe=w.editing,ae=w.value,re=w.suppressingFlicker,ie=this.props,me=ie.animated,Ce=ie.value,ve=ie.unit,Me=ie.minValue,Se=ie.maxValue,Ke=ie.unclamped,Be=ie.format,ze=ie.onChange,en=ie.onDrag,_e=ie.children,We=ie.height,Ge=ie.lineHeight,gn=ie.fontSize,an=Ce;(X||re)&&(an=ae);var cn=(0,e.jsxs)(e.Fragment,{children:[me&&!X&&!re?(0,e.jsx)(c,{value:an,format:Be}):Be?Be(an):an,ve?" "+ve:""]}),Re=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:oe?void 0:"none",height:We,lineHeight:Ge,fontsize:gn},onBlur:function(sn){if(oe){var ln;if(Ke?ln=parseFloat(sn.target.value):ln=(0,o.qE)(parseFloat(sn.target.value),Me,Se),Number.isNaN(ln)){B.setState({editing:!1});return}B.setState({editing:!1,value:ln}),B.suppressFlicker(),ze&&ze(sn,ln),en&&en(sn,ln)}},onKeyDown:function(sn){if(sn.keyCode===13){var ln;if(Ke?ln=parseFloat(sn.target.value):ln=(0,o.qE)(parseFloat(sn.target.value),Me,Se),Number.isNaN(ln)){B.setState({editing:!1});return}B.setState({editing:!1,value:ln}),B.suppressFlicker(),ze&&ze(sn,ln),en&&en(sn,ln);return}if(sn.keyCode===27){B.setState({editing:!1});return}}});return _e({dragging:X,editing:oe,value:Ce,displayValue:an,displayElement:cn,inputElement:Re,handleDragStart:this.handleDragStart})},b}(t.Component);pi.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var gl=n(20878),oa=n.n(gl),Ei=function(b){return Array.isArray(b)?b[0]:b},pl=function(b){if(typeof b=="function"){for(var L=arguments.length,U=new Array(L>1?L-1:0),B=1;B_e.length-3?_e.length-1:yn-2;var Hn=(wn=et.current)==null?void 0:wn.children[Gn];Hn==null||Hn.scrollIntoView({block:"nearest"})}function Gt(yn){if(!(_e.length<1||re)){var wn=0,Gn=_e.length-1,Hn;Bn<0?Hn=yn==="next"?Gn:wn:yn==="next"?Hn=Bn===Gn?wn:Bn+1:Hn=Bn===wn?Gn:Bn-1,ln&&L&&kn(Hn),ze==null||ze(bo(_e[Hn]))}}return(0,t.useEffect)(function(){var yn;ln&&(L&&Bn!==jl&&kn(Bn),(yn=et.current)==null||yn.focus())},[ln]),(0,e.jsx)(cs,{isOpen:ln,onClickOutside:function(){return pn(!1)},placement:We?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Se},ref:et,children:[_e.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),_e.map(function(yn,wn){var Gn=bo(yn);return(0,e.jsx)("div",{className:(0,j.Ly)(["Dropdown__menuentry",an===Gn&&"selected"]),onClick:function(){pn(!1),ze==null||ze(Gn)},children:typeof yn=="string"?yn:yn.displayText},wn)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,O.zA)(Re)},children:[(0,e.jsxs)("div",{className:(0,j.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+ae,re&&"Button--disabled",B]),onClick:function(yn){re&&!ln||(pn(!ln),Be==null||Be(yn))},children:[me&&(0,e.jsx)(W,{mr:1,name:me,rotation:Ce,spin:ve}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:X?"hidden":"visible"},children:ie||an&&bo(an)||gn}),!Ke&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(W,{name:Tn?"chevron-up":"chevron-down"})})]}),U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Yn,{disabled:re,height:1.8,icon:"chevron-left",onClick:function(){Gt("previous")}}),(0,e.jsx)(Yn,{disabled:re,height:1.8,icon:"chevron-right",onClick:function(){Gt("next")}})]})]})})}function ji(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function Vr(){return Vr=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var si=function(P){return(0,j.Ly)(["Flex",P.inline&&"Flex--inline",(0,O.WP)(P)])},li=function(P){var b=P.className,L=P.direction,U=P.wrap,B=P.align,w=P.justify,X=P.inline,oe=Hr(P,["className","direction","wrap","align","justify","inline"]);return(0,O.Fl)(zt({style:zt({},oe.style,{flexDirection:L,flexWrap:U===!0?"wrap":U,alignItems:B,justifyContent:w})},oe))},Jt=function(P){var b=P.className,L=Hr(P,["className"]);return(0,e.jsx)("div",zt({className:(0,j.Ly)([b,si(L)])},li(L)))},ci=function(P){return(0,j.Ly)(["Flex__item",(0,O.WP)(P)])},ui=function(P){var b=P.className,L=P.style,U=P.grow,B=P.order,w=P.shrink,X=P.basis,oe=P.align,ie=Hr(P,["className","style","grow","order","shrink","basis","align"]),re,ae=(re=X!=null?X:P.width)!=null?re:U!==void 0?0:void 0;return(0,O.Fl)(zt({style:zt({},L,{flexGrow:U!==void 0&&Number(U),flexShrink:w!==void 0&&Number(w),flexBasis:(0,O.zA)(ae),order:B,alignSelf:oe})},ie))},Ol=function(P){var b=P.className,L=Hr(P,["className"]);return(0,e.jsx)("div",zt({className:(0,j.Ly)([b,ci(P)])},ui(L)))};Jt.Item=Ol;var Ca=n(19996);/**
+ */function zt(){return zt=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var sa=function(P){return(0,j.Ly)(["Flex",P.inline&&"Flex--inline",(0,O.WP)(P)])},la=function(P){var b=P.className,L=P.direction,U=P.wrap,B=P.align,w=P.justify,X=P.inline,oe=Hr(P,["className","direction","wrap","align","justify","inline"]);return(0,O.Fl)(zt({style:zt({},oe.style,{flexDirection:L,flexWrap:U===!0?"wrap":U,alignItems:B,justifyContent:w})},oe))},Jt=function(P){var b=P.className,L=Hr(P,["className"]);return(0,e.jsx)("div",zt({className:(0,j.Ly)([b,sa(L)])},la(L)))},ca=function(P){return(0,j.Ly)(["Flex__item",(0,O.WP)(P)])},ua=function(P){var b=P.className,L=P.style,U=P.grow,B=P.order,w=P.shrink,X=P.basis,oe=P.align,ae=Hr(P,["className","style","grow","order","shrink","basis","align"]),re,ie=(re=X!=null?X:P.width)!=null?re:U!==void 0?0:void 0;return(0,O.Fl)(zt({style:zt({},L,{flexGrow:U!==void 0&&Number(U),flexShrink:w!==void 0&&Number(w),flexBasis:(0,O.zA)(ie),order:B,alignSelf:oe})},ae))},Ol=function(P){var b=P.className,L=Hr(P,["className"]);return(0,e.jsx)("div",zt({className:(0,j.Ly)([b,ca(P)])},ua(L)))};Jt.Item=Ol;var Ci=n(19996);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Ao(){return Ao=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function To(P){var b=P.children,L=Ct(P,["children"]);return vr.v.error("Grid component is deprecated. Use a Stack instead."),(0,e.jsx)(Ca.XI,Ao({},L,{children:(0,e.jsx)(Ca.XI.Row,{children:b})}))}function fs(P){var b=P.size,L=b===void 0?1:b,U=P.style,B=Ct(P,["size","style"]);return(0,e.jsx)(Ca.XI.Cell,Ao({style:Ao({width:L+"%"},U)},B))}To.Column=fs;var hs=n(79500);/**
+ */function Ao(){return Ao=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function To(P){var b=P.children,L=Ct(P,["children"]);return vr.v.error("Grid component is deprecated. Use a Stack instead."),(0,e.jsx)(Ci.XI,Ao({},L,{children:(0,e.jsx)(Ci.XI.Row,{children:b})}))}function fs(P){var b=P.size,L=b===void 0?1:b,U=P.style,B=Ct(P,["size","style"]);return(0,e.jsx)(Ci.XI.Cell,Ao({style:Ao({width:L+"%"},U)},B))}To.Column=fs;var hs=n(79500);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Ro(){return Ro=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var di=function(P){var b=P.className,L=P.value,U=P.minValue,B=U===void 0?0:U,w=P.maxValue,X=w===void 0?1:w,oe=P.color,ie=P.ranges,re=ie===void 0?{}:ie,ae=P.children,me=ms(P,["className","value","minValue","maxValue","color","ranges","children"]),Ce=(0,o.hs)(L,B,X),ve=ae!==void 0,Me=oe||(0,o.TG)(L,re)||"default",Se=(0,O.Fl)(me),Ke=["ProgressBar",b,(0,O.WP)(me)],Be={width:(0,o.J$)(Ce)*100+"%"};return hs.NE.includes(Me)||Me==="default"?Ke.push("ProgressBar--color--"+Me):(Se.style=Ro({},Se.style,{borderColor:Me}),Be.backgroundColor=Me),(0,e.jsxs)("div",Ro({className:(0,j.Ly)(Ke)},Se,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Be}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ve?ae:(0,o.Mg)(Ce*100)+"%"})]}))};/**
+ */function Ro(){return Ro=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var da=function(P){var b=P.className,L=P.value,U=P.minValue,B=U===void 0?0:U,w=P.maxValue,X=w===void 0?1:w,oe=P.color,ae=P.ranges,re=ae===void 0?{}:ae,ie=P.children,me=ms(P,["className","value","minValue","maxValue","color","ranges","children"]),Ce=(0,o.hs)(L,B,X),ve=ie!==void 0,Me=oe||(0,o.TG)(L,re)||"default",Se=(0,O.Fl)(me),Ke=["ProgressBar",b,(0,O.WP)(me)],Be={width:(0,o.J$)(Ce)*100+"%"};return hs.NE.includes(Me)||Me==="default"?Ke.push("ProgressBar--color--"+Me):(Se.style=Ro({},Se.style,{borderColor:Me}),Be.backgroundColor=Me),(0,e.jsxs)("div",Ro({className:(0,j.Ly)(Ke)},Se,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Be}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ve?ie:(0,o.Mg)(Ce*100)+"%"})]}))};/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
- */function Xr(){return Xr=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var Cr=function(P){var b=P.className,L=P.vertical,U=P.fill,B=P.zebra,w=fi(P,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Xr({className:(0,j.Ly)(["Stack",U&&"Stack--fill",L?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",b,si(P)])},li(Xr({direction:L?"column":"row"},w))))},hi=function(P){var b=P.className,L=P.innerRef,U=fi(P,["className","innerRef"]);return(0,e.jsx)("div",Xr({className:(0,j.Ly)(["Stack__item",b,ci(U)]),ref:L},ui(U)))};Cr.Item=hi;var Bo=function(P){var b=P.className,L=P.hidden,U=fi(P,["className","hidden"]);return(0,e.jsx)("div",Xr({className:(0,j.Ly)(["Stack__item","Stack__divider",L&&"Stack__divider--hidden",b,ci(U)])},ui(U)))};Cr.Divider=Bo;function vs(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function mi(){return mi=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Lo(P,b){return Lo=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Lo(P,b)}var yl=.5,xi=1.5,Ml=.1,_l=null;/**
+ */function Xr(){return Xr=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var Cr=function(P){var b=P.className,L=P.vertical,U=P.fill,B=P.zebra,w=fa(P,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Xr({className:(0,j.Ly)(["Stack",U&&"Stack--fill",L?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",b,sa(P)])},la(Xr({direction:L?"column":"row"},w))))},ha=function(P){var b=P.className,L=P.innerRef,U=fa(P,["className","innerRef"]);return(0,e.jsx)("div",Xr({className:(0,j.Ly)(["Stack__item",b,ca(U)]),ref:L},ua(U)))};Cr.Item=ha;var Bo=function(P){var b=P.className,L=P.hidden,U=fa(P,["className","hidden"]);return(0,e.jsx)("div",Xr({className:(0,j.Ly)(["Stack__item","Stack__divider",L&&"Stack__divider--hidden",b,ca(U)])},ua(U)))};Cr.Divider=Bo;function vs(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function ma(){return ma=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Lo(P,b){return Lo=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Lo(P,b)}var yl=.5,xa=1.5,Ml=.1,_l=null;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Oa(){return Oa=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Yr(P){return typeof P!="number"&&typeof P!="string"?"":String(P)}var gs=(0,Sr.sg)(function(P){return P()},250);function Or(P){var b=P.autoFocus,L=P.autoSelect,U=P.className,B=P.disabled,w=P.expensive,X=P.fluid,oe=P.maxLength,ie=P.monospace,re=P.onChange,ae=P.onEnter,me=P.onEscape,Ce=P.onInput,ve=P.placeholder,Me=P.selfClear,Se=P.value,Ke=xs(P,["autoFocus","autoSelect","className","disabled","expensive","fluid","maxLength","monospace","onChange","onEnter","onEscape","onInput","placeholder","selfClear","value"]),Be=(0,t.useRef)(null);function ze(_e){var We;if(Ce){var Ge=(We=_e.currentTarget)==null?void 0:We.value;w?gs(function(){return Ce(_e,Ge)}):Ce(_e,Ge)}}function en(_e){if(_e.key===S._.Enter){ae==null||ae(_e,_e.currentTarget.value),Me?_e.currentTarget.value="":(_e.currentTarget.blur(),re==null||re(_e,_e.currentTarget.value));return}(0,S.K)(_e.key)&&(me==null||me(_e),_e.currentTarget.value=Yr(Se),_e.currentTarget.blur())}return(0,t.useEffect)(function(){var _e=Be.current;if(_e){var We=Yr(Se);_e.value!==We&&(_e.value=We),!(!b&&!L)&&setTimeout(function(){_e.focus(),L&&_e.select()},1)}},[]),(0,t.useEffect)(function(){var _e=Be.current;if(_e&&document.activeElement!==_e){var We=Yr(Se);_e.value!==We&&(_e.value=We)}}),(0,e.jsxs)(O.az,Oa({className:(0,j.Ly)(["Input",X&&"Input--fluid",ie&&"Input--monospace",U])},Ke,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",disabled:B,maxLength:oe,onBlur:function(_e){return re==null?void 0:re(_e,_e.target.value)},onChange:ze,onKeyDown:en,placeholder:ve,ref:Be})]}))}var ps=n(52130);function Es(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),b&&gi(P,b)}function gi(P,b){return gi=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},gi(P,b)}var Cc=null;/**
+ */function Oi(){return Oi=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Yr(P){return typeof P!="number"&&typeof P!="string"?"":String(P)}var gs=(0,Sr.sg)(function(P){return P()},250);function Or(P){var b=P.autoFocus,L=P.autoSelect,U=P.className,B=P.disabled,w=P.expensive,X=P.fluid,oe=P.maxLength,ae=P.monospace,re=P.onChange,ie=P.onEnter,me=P.onEscape,Ce=P.onInput,ve=P.placeholder,Me=P.selfClear,Se=P.value,Ke=xs(P,["autoFocus","autoSelect","className","disabled","expensive","fluid","maxLength","monospace","onChange","onEnter","onEscape","onInput","placeholder","selfClear","value"]),Be=(0,t.useRef)(null);function ze(_e){var We;if(Ce){var Ge=(We=_e.currentTarget)==null?void 0:We.value;w?gs(function(){return Ce(_e,Ge)}):Ce(_e,Ge)}}function en(_e){if(_e.key===S._.Enter){ie==null||ie(_e,_e.currentTarget.value),Me?_e.currentTarget.value="":(_e.currentTarget.blur(),re==null||re(_e,_e.currentTarget.value));return}(0,S.K)(_e.key)&&(me==null||me(_e),_e.currentTarget.value=Yr(Se),_e.currentTarget.blur())}return(0,t.useEffect)(function(){var _e=Be.current;if(_e){var We=Yr(Se);_e.value!==We&&(_e.value=We),!(!b&&!L)&&setTimeout(function(){_e.focus(),L&&_e.select()},1)}},[]),(0,t.useEffect)(function(){var _e=Be.current;if(_e&&document.activeElement!==_e){var We=Yr(Se);_e.value!==We&&(_e.value=We)}}),(0,e.jsxs)(O.az,Oi({className:(0,j.Ly)(["Input",X&&"Input--fluid",ae&&"Input--monospace",U])},Ke,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",disabled:B,maxLength:oe,onBlur:function(_e){return re==null?void 0:re(_e,_e.target.value)},onChange:ze,onKeyDown:en,placeholder:ve,ref:Be})]}))}var ps=n(52130);function Es(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),b&&ga(P,b)}function ga(P,b){return ga=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},ga(P,b)}var Cc=null;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function qt(){return qt=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function js(P){var b=P.animated,L=P.format,U=P.maxValue,B=P.minValue,w=P.onChange,X=P.onDrag,oe=P.step,ie=P.stepPixelSize,re=P.suppressFlicker,ae=P.unclamped,me=P.unit,Ce=P.value,ve=P.bipolar,Me=P.children,Se=P.className,Ke=P.color,Be=P.fillValue,ze=P.ranges,en=ze===void 0?{}:ze,_e=P.size,We=_e===void 0?1:_e,Ge=P.style,gn=Pl(P,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unclamped","unit","value","bipolar","children","className","color","fillValue","ranges","size","style"]);return(0,e.jsx)(pa,{dragMatrix:[0,-1],animated:b,format:L,maxValue:U,minValue:B,onChange:w,onDrag:X,step:oe,stepPixelSize:ie,suppressFlicker:re,unclamped:ae,unit:me,value:Ce,children:function(an){var cn=an.displayElement,Re=an.displayValue,sn=an.dragging,ln=an.handleDragStart,pn=an.inputElement,Tn=an.value,et=(0,o.hs)(Be!=null?Be:Re,B,U),Bn=(0,o.hs)(Re,B,U),kn=Ke||(0,o.TG)(Be!=null?Be:Tn,en)||"default",Gt=Math.min((Bn-.5)*270,225);return(0,e.jsxs)("div",qt({className:(0,j.Ly)(["Knob","Knob--color--"+kn,ve&&"Knob--bipolar",Se,(0,O.WP)(gn)])},(0,O.Fl)(qt({style:qt({fontSize:We+"em"},Ge)},gn)),{onMouseDown:ln,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Gt+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),sn&&(0,e.jsx)("div",{className:"Knob__popupValue",children:cn}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((ve?2.75:2)-et*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),pn]}))}})}/**
+ */function qt(){return qt=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function js(P){var b=P.animated,L=P.format,U=P.maxValue,B=P.minValue,w=P.onChange,X=P.onDrag,oe=P.step,ae=P.stepPixelSize,re=P.suppressFlicker,ie=P.unclamped,me=P.unit,Ce=P.value,ve=P.bipolar,Me=P.children,Se=P.className,Ke=P.color,Be=P.fillValue,ze=P.ranges,en=ze===void 0?{}:ze,_e=P.size,We=_e===void 0?1:_e,Ge=P.style,gn=Pl(P,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unclamped","unit","value","bipolar","children","className","color","fillValue","ranges","size","style"]);return(0,e.jsx)(pi,{dragMatrix:[0,-1],animated:b,format:L,maxValue:U,minValue:B,onChange:w,onDrag:X,step:oe,stepPixelSize:ae,suppressFlicker:re,unclamped:ie,unit:me,value:Ce,children:function(an){var cn=an.displayElement,Re=an.displayValue,sn=an.dragging,ln=an.handleDragStart,pn=an.inputElement,Tn=an.value,et=(0,o.hs)(Be!=null?Be:Re,B,U),Bn=(0,o.hs)(Re,B,U),kn=Ke||(0,o.TG)(Be!=null?Be:Tn,en)||"default",Gt=Math.min((Bn-.5)*270,225);return(0,e.jsxs)("div",qt({className:(0,j.Ly)(["Knob","Knob--color--"+kn,ve&&"Knob--bipolar",Se,(0,O.WP)(gn)])},(0,O.Fl)(qt({style:qt({fontSize:We+"em"},Ge)},gn)),{onMouseDown:ln,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Gt+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),sn&&(0,e.jsx)("div",{className:"Knob__popupValue",children:cn}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((ve?2.75:2)-et*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),pn]}))}})}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Uo(){return Uo=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function ya(P){var b=P.children,L=P.wrap,U=Rn(P,["children","wrap"]);return(0,e.jsx)(Jt,Uo({mx:-.5,wrap:L,align:"stretch",justify:"space-between"},U,{children:b}))}function Ma(P){var b=P.label,L=P.children,U=P.mx,B=U===void 0?1:U,w=Rn(P,["label","children","mx"]);return(0,e.jsx)(Jt.Item,{mx:B,children:(0,e.jsxs)(Jt,Uo({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},w,{children:[(0,e.jsx)(Jt.Item,{}),(0,e.jsx)(Jt.Item,{children:L}),(0,e.jsx)(Jt.Item,{color:"label",children:b})]}))})}ya.Item=Ma;/**
+ */function Uo(){return Uo=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function yi(P){var b=P.children,L=P.wrap,U=Rn(P,["children","wrap"]);return(0,e.jsx)(Jt,Uo({mx:-.5,wrap:L,align:"stretch",justify:"space-between"},U,{children:b}))}function Mi(P){var b=P.label,L=P.children,U=P.mx,B=U===void 0?1:U,w=Rn(P,["label","children","mx"]);return(0,e.jsx)(Jt.Item,{mx:B,children:(0,e.jsxs)(Jt,Uo({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},w,{children:[(0,e.jsx)(Jt.Item,{}),(0,e.jsx)(Jt.Item,{children:L}),(0,e.jsx)(Jt.Item,{color:"label",children:b})]}))})}yi.Item=Mi;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */var $t=function(P){var b=P.children;return(0,e.jsx)("table",{className:"LabeledList",children:b})},Cs=function(P){var b=P.className,L=P.label,U=P.labelColor,B=U===void 0?"label":U,w=P.labelWrap,X=P.color,oe=P.textAlign,ie=P.buttons,re=P.content,ae=P.children,me=P.verticalAlign,Ce=me===void 0?"baseline":me,ve=P.tooltip,Me;L&&(Me=L,typeof L=="string"&&(Me+=":")),ve!==void 0&&(Me=(0,e.jsx)(st,{content:ve,children:(0,e.jsx)(O.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Me})}));var Se=(0,e.jsx)(O.az,{as:"td",color:B,className:(0,j.Ly)(["LabeledList__cell",!w&&"LabeledList__label--nowrap"]),verticalAlign:Ce,children:Me});return(0,e.jsxs)("tr",{className:(0,j.Ly)(["LabeledList__row",b]),children:[Se,(0,e.jsxs)(O.az,{as:"td",color:X,textAlign:oe,className:(0,j.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:ie?void 0:2,verticalAlign:Ce,children:[re,ae]}),ie&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:ie})]})},pi=function(P){var b=P.size?(0,O.zA)(Math.max(0,P.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:b,paddingBottom:b},children:(0,e.jsx)(rs,{})})})};$t.Item=Cs,$t.Divider=pi;/**
+ */var $t=function(P){var b=P.children;return(0,e.jsx)("table",{className:"LabeledList",children:b})},Cs=function(P){var b=P.className,L=P.label,U=P.labelColor,B=U===void 0?"label":U,w=P.labelWrap,X=P.color,oe=P.textAlign,ae=P.buttons,re=P.content,ie=P.children,me=P.verticalAlign,Ce=me===void 0?"baseline":me,ve=P.tooltip,Me;L&&(Me=L,typeof L=="string"&&(Me+=":")),ve!==void 0&&(Me=(0,e.jsx)(st,{content:ve,children:(0,e.jsx)(O.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Me})}));var Se=(0,e.jsx)(O.az,{as:"td",color:B,className:(0,j.Ly)(["LabeledList__cell",!w&&"LabeledList__label--nowrap"]),verticalAlign:Ce,children:Me});return(0,e.jsxs)("tr",{className:(0,j.Ly)(["LabeledList__row",b]),children:[Se,(0,e.jsxs)(O.az,{as:"td",color:X,textAlign:oe,className:(0,j.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:ae?void 0:2,verticalAlign:Ce,children:[re,ie]}),ae&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:ae})]})},pa=function(P){var b=P.size?(0,O.zA)(Math.max(0,P.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:b,paddingBottom:b},children:(0,e.jsx)(rs,{})})})};$t.Item=Cs,$t.Divider=pa;/**
* @file
* @copyright 2022 Aleksej Komarov
* @license MIT
- */function Ar(){return Ar=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function _a(P,b){return _a=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},_a(P,b)}var Il=function(P){"use strict";No(b,P);function b(U){var B;return B=P.call(this,U)||this,B.handleClick=function(w){if(!B.props.menuRef.current){vr.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(w.target)?vr.v.log("Menu.handleClick(): Inside"):(vr.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var L=b.prototype;return L.componentWillMount=function(){window.addEventListener("click",this.handleClick)},L.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},L.render=function(){var B=this.props,w=B.width,X=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:w},children:X})},b}(t.Component),Dl=function(P){"use strict";No(b,P);function b(U){var B;return B=P.call(this,U)||this,B.menuRef=(0,t.createRef)(),B}var L=b.prototype;return L.render=function(){var B=this.props,w=B.open,X=B.openWidth,oe=B.children,ie=B.disabled,re=B.display,ae=B.onMouseOver,me=B.onClick,Ce=B.onOutsideClick,ve=Tr(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Me=ve.className,Se=Tr(ve,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(O.az,Ar({className:(0,j.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Me])},Se,{onClick:ie?function(){return null}:me,onMouseOver:ae,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:re})})),w&&(0,e.jsx)(Il,{width:X,menuRef:this.menuRef,onOutsideClick:Ce,children:oe})]})},b}(t.Component),Wo=function(P){var b=P.entry,L=P.children,U=P.openWidth,B=P.display,w=P.setOpenMenuBar,X=P.openMenuBar,oe=P.setOpenOnHover,ie=P.openOnHover,re=P.disabled,ae=P.className;return(0,e.jsx)(Dl,{openWidth:U,display:B,disabled:re,open:X===b,className:ae,onClick:function(){var me=X===b?null:b;w(me),oe(!ie)},onOutsideClick:function(){w(null),oe(!1)},onMouseOver:function(){ie&&w(b)},children:L})},Pa=function(P){var b=P.value,L=P.displayText,U=P.onClick,B=P.checked;return(0,e.jsxs)(O.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return U(b)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(W,{size:1.3,name:"check"})}),L]})};Wo.MenuItemToggle=Pa;var Ia=function(P){var b=P.value,L=P.displayText,U=P.onClick;return(0,e.jsx)(O.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return U(b)},children:L})};Wo.MenuItem=Ia;var Ei=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Wo.Separator=Ei;var ji=function(P){var b=P.children;return(0,e.jsx)(O.az,{className:"MenuBar",children:b})};ji.Dropdown=Wo;/**
+ */function Ar(){return Ar=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function _i(P,b){return _i=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},_i(P,b)}var Il=function(P){"use strict";No(b,P);function b(U){var B;return B=P.call(this,U)||this,B.handleClick=function(w){if(!B.props.menuRef.current){vr.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(w.target)?vr.v.log("Menu.handleClick(): Inside"):(vr.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var L=b.prototype;return L.componentWillMount=function(){window.addEventListener("click",this.handleClick)},L.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},L.render=function(){var B=this.props,w=B.width,X=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:w},children:X})},b}(t.Component),Dl=function(P){"use strict";No(b,P);function b(U){var B;return B=P.call(this,U)||this,B.menuRef=(0,t.createRef)(),B}var L=b.prototype;return L.render=function(){var B=this.props,w=B.open,X=B.openWidth,oe=B.children,ae=B.disabled,re=B.display,ie=B.onMouseOver,me=B.onClick,Ce=B.onOutsideClick,ve=Tr(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Me=ve.className,Se=Tr(ve,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(O.az,Ar({className:(0,j.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Me])},Se,{onClick:ae?function(){return null}:me,onMouseOver:ie,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:re})})),w&&(0,e.jsx)(Il,{width:X,menuRef:this.menuRef,onOutsideClick:Ce,children:oe})]})},b}(t.Component),Wo=function(P){var b=P.entry,L=P.children,U=P.openWidth,B=P.display,w=P.setOpenMenuBar,X=P.openMenuBar,oe=P.setOpenOnHover,ae=P.openOnHover,re=P.disabled,ie=P.className;return(0,e.jsx)(Dl,{openWidth:U,display:B,disabled:re,open:X===b,className:ie,onClick:function(){var me=X===b?null:b;w(me),oe(!ae)},onOutsideClick:function(){w(null),oe(!1)},onMouseOver:function(){ae&&w(b)},children:L})},Pi=function(P){var b=P.value,L=P.displayText,U=P.onClick,B=P.checked;return(0,e.jsxs)(O.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return U(b)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(W,{size:1.3,name:"check"})}),L]})};Wo.MenuItemToggle=Pi;var Ii=function(P){var b=P.value,L=P.displayText,U=P.onClick;return(0,e.jsx)(O.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return U(b)},children:L})};Wo.MenuItem=Ii;var Ea=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Wo.Separator=Ea;var ja=function(P){var b=P.children;return(0,e.jsx)(O.az,{className:"MenuBar",children:b})};ja.Dropdown=Wo;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function wo(){return wo=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Sl(P){var b=P.className,L=P.children,U=P.onEnter,B=Ci(P,["className","children","onEnter"]),w;return U&&(w=function(X){X.key===S._.Enter&&U(X)}),(0,e.jsx)(ts,{onKeyDown:w,children:(0,e.jsx)("div",wo({className:(0,j.Ly)(["Modal",b,(0,O.WP)(B)])},(0,O.Fl)(B),{children:L}))})}var Oi=n(7081);function yi(){return yi=Object.assign||function(P){for(var b=1;b500&&(Ce=500);var ve=re.offsetY-256*me;return ve<-200&&(ve=-200),ve>200&&(ve=200),re.offsetX=Ce,re.offsetY=ve,U.onZoom&&U.onZoom(re.zoom),re})},B}var L=b.prototype;return L.render=function(){var B=(0,Oi.Oc)().config,w=this.state,X=w.dragging,oe=w.offsetX,ie=w.offsetY,re=w.zoom,ae=re===void 0?1:re,me=this.props.children,Ce=(0,os.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),ve=this.props.zoomScale*ae+"px",Me={width:ve,height:ve,"margin-top":ie+"px","margin-left":oe+"px",overflow:"hidden",position:"relative","background-image":"url("+Ce+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:X?"move":"auto"};return(0,e.jsxs)(O.az,{className:"NanoMap__container",children:[(0,e.jsx)(O.az,{style:Me,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(O.az,{children:me})}),(0,e.jsx)(Bt,{zoom:ae,onZoom:this.handleZoom})]})},b}(t.Component),Qr=function(P){var b=P.x,L=P.y,U=P.zoom,B=U===void 0?1:U,w=P.icon,X=P.tooltip,oe=P.color,ie=P.onClick,re=function(Ce){Rt(Ce),ie&&ie(Ce)},ae=b*2*B-B-3,me=L*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(O.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:me+"px",left:ae+"px",onMouseDown:re,children:[(0,e.jsx)(W,{name:w,color:oe,fontSize:"6px"}),(0,e.jsx)(st,{content:X})]})})};Da.Marker=Qr;var Bt=function(P){var b=(0,Oi.Oc)(),L=b.act,U=b.config,B=b.data;return(0,e.jsx)(O.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)($t,{children:[(0,e.jsx)($t.Item,{label:"Zoom",children:(0,e.jsx)(Lr,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(w){return w+"x"},value:P.zoom,onDrag:function(w,X){return P.onZoom(w,X)}})}),(0,e.jsx)($t.Item,{label:"Z-Level",children:B.map_levels.sort(function(w,X){return Number(w)-Number(X)}).map(function(w){return(0,e.jsx)(Yn,{selected:~~w===~~U.mapZLevel,onClick:function(){L("setZLevel",{mapZLevel:w})},children:w},w)})})]})})};Da.Zoomer=Bt;/**
+ */function wo(){return wo=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Sl(P){var b=P.className,L=P.children,U=P.onEnter,B=Ca(P,["className","children","onEnter"]),w;return U&&(w=function(X){X.key===S._.Enter&&U(X)}),(0,e.jsx)(ts,{onKeyDown:w,children:(0,e.jsx)("div",wo({className:(0,j.Ly)(["Modal",b,(0,O.WP)(B)])},(0,O.Fl)(B),{children:L}))})}var Oa=n(7081);function ya(){return ya=Object.assign||function(P){for(var b=1;b500&&(Ce=500);var ve=re.offsetY-256*me;return ve<-200&&(ve=-200),ve>200&&(ve=200),re.offsetX=Ce,re.offsetY=ve,U.onZoom&&U.onZoom(re.zoom),re})},B}var L=b.prototype;return L.render=function(){var B=(0,Oa.Oc)().config,w=this.state,X=w.dragging,oe=w.offsetX,ae=w.offsetY,re=w.zoom,ie=re===void 0?1:re,me=this.props.children,Ce=(0,os.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),ve=this.props.zoomScale*ie+"px",Me={width:ve,height:ve,"margin-top":ae+"px","margin-left":oe+"px",overflow:"hidden",position:"relative","background-image":"url("+Ce+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:X?"move":"auto"};return(0,e.jsxs)(O.az,{className:"NanoMap__container",children:[(0,e.jsx)(O.az,{style:Me,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(O.az,{children:me})}),(0,e.jsx)(Bt,{zoom:ie,onZoom:this.handleZoom})]})},b}(t.Component),Qr=function(P){var b=P.x,L=P.y,U=P.zoom,B=U===void 0?1:U,w=P.icon,X=P.tooltip,oe=P.color,ae=P.onClick,re=function(Ce){Rt(Ce),ae&&ae(Ce)},ie=b*2*B-B-3,me=L*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(O.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:me+"px",left:ie+"px",onMouseDown:re,children:[(0,e.jsx)(W,{name:w,color:oe,fontSize:"6px"}),(0,e.jsx)(st,{content:X})]})})};Di.Marker=Qr;var Bt=function(P){var b=(0,Oa.Oc)(),L=b.act,U=b.config,B=b.data;return(0,e.jsx)(O.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)($t,{children:[(0,e.jsx)($t.Item,{label:"Zoom",children:(0,e.jsx)(Lr,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(w){return w+"x"},value:P.zoom,onDrag:function(w,X){return P.onZoom(w,X)}})}),(0,e.jsx)($t.Item,{label:"Z-Level",children:B.map_levels.sort(function(w,X){return Number(w)-Number(X)}).map(function(w){return(0,e.jsx)(Yn,{selected:~~w===~~U.mapZLevel,onClick:function(){L("setZLevel",{mapZLevel:w})},children:w},w)})})]})})};Di.Zoomer=Bt;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Rr(){return Rr=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Mi(P){var b=P.className,L=P.color,U=P.info,B=P.success,w=P.danger,X=P.warning,oe=er(P,["className","color","info","success","danger","warning"]);return(0,e.jsx)(O.az,Rr({className:(0,j.Ly)(["NoticeBox",L&&"NoticeBox--color--"+L,U&&"NoticeBox--type--info",B&&"NoticeBox--type--success",X&&"NoticeBox--type--warning ",w&&"NoticeBox--type--danger",b])},oe))}/**
+ */function Rr(){return Rr=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Ma(P){var b=P.className,L=P.color,U=P.info,B=P.success,w=P.danger,X=P.warning,oe=er(P,["className","color","info","success","danger","warning"]);return(0,e.jsx)(O.az,Rr({className:(0,j.Ly)(["NoticeBox",L&&"NoticeBox--color--"+L,U&&"NoticeBox--type--info",B&&"NoticeBox--type--success",X&&"NoticeBox--type--warning ",w&&"NoticeBox--type--danger",b])},oe))}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function _i(){return _i=Object.assign||function(P){for(var b=1;b0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},ie))},B.handleDragStart=function(X){var oe=B.props,ie=oe.value,re=oe.disabled,ae=B.state.editing;re||ae||(document.body.style["pointer-events"]="none",B.ref=X.target,B.setState({dragging:!1,origin:X.screenY,value:ie,internalValue:ie}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var me=B.state,Ce=me.dragging,ve=me.value,Me=B.props.onDrag;Ce&&Me&&Me(+ve)},B.props.updateRate||$o),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(X){var oe=B.props,ie=oe.minValue,re=oe.maxValue,ae=oe.step,me=oe.stepPixelSize;B.setState(function(Ce){var ve=_i({},Ce),Me=ve.origin-X.screenY;if(Ce.dragging){var Se=Number.isFinite(ie)?ie%ae:0;ve.internalValue=(0,o.qE)(Number(ve.internalValue)+Me*ae/(me||1),ie-ae,re+ae),ve.value=(0,o.qE)(Number(ve.internalValue)-Number(ve.internalValue)%ae+Se,ie,re),ve.origin=X.screenY}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},B.handleDragEnd=function(X){var oe=B.props,ie=oe.onChange,re=oe.onDrag,ae=B.state,me=ae.dragging,Ce=ae.value,ve=ae.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!me,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),me)B.suppressFlicker(),ie&&ie(+Ce),re&&re(+Ce);else if(B.inputRef){var Me=B.inputRef.current;Me.value=String(ve),setTimeout(function(){Me.focus(),Me.select()},100)}},B}var L=b.prototype;return L.render=function(){var B=this,w=this.state,X=w.dragging,oe=w.editing,ie=w.value,re=w.suppressingFlicker,ae=this.props,me=ae.className,Ce=ae.fluid,ve=ae.animated,Me=ae.value,Se=ae.unit,Ke=ae.minValue,Be=ae.maxValue,ze=ae.height,en=ae.width,_e=ae.lineHeight,We=ae.fontSize,Ge=ae.disabled,gn=ae.format,an=ae.onChange,cn=ae.onDrag,Re=Me;(X||re)&&(Re=ie);var sn=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ve&&!X&&!re?(0,e.jsx)(c,{value:+Re,format:gn}):gn?gn(+Re):Re,Se?" "+Se:""]});return(0,e.jsxs)(O.az,{className:(0,j.Ly)(["NumberInput",Ce&&"NumberInput--fluid",me]),minWidth:en,minHeight:ze,lineHeight:_e,fontSize:We,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,o.qE)((+Re-Ke)/(Be-Ke)*100,0,100)+"%"}})}),sn,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:oe?void 0:"none",height:ze,lineHeight:_e,fontSize:We},onBlur:function(ln){if(oe){var pn=(0,o.qE)(parseFloat(ln.target.value),Ke,Be);if(Number.isNaN(pn)){B.setState({editing:!1});return}B.setState({editing:!1,value:pn}),B.suppressFlicker(),an&&an(pn),cn&&cn(pn)}},onKeyDown:function(ln){if(!Ge){if(ln.key===S._.Enter){var pn=ln.target,Tn=(0,o.qE)(parseFloat(pn.value),Ke,Be);if(Number.isNaN(Tn)){B.setState({editing:!1});return}B.setState({editing:!1,value:Tn}),B.suppressFlicker(),an&&an(Tn),cn&&cn(Tn);return}if((0,S.K)(ln.key)){B.setState({editing:!1});return}}}})]})},b}(t.Component),ko=n(6544);function Fo(){return Fo=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function bn(P,b){return bn=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},bn(P,b)}var An=0,rr=1e4,qn=function(P,b,L,U){var B=b||An,w=L||L===0?L:rr,X=U?P.replace(/[^\-\d.]/g,""):P.replace(/[^\-\d]/g,"");return U&&(X=qr(X,B),X=ot(".",X)),b<0?(X=Br(X),X=ot("-",X)):X=X.replaceAll("-",""),B<=1&&w>=0?lt(X,B,w,U):X},lt=function(P,b,L,U){var B=U?parseFloat(P):parseInt(P,10);if(!isNaN(B)&&(P.slice(-1)!=="."||B0?(P=P.replace("-",""),b="-".concat(P)):L===0&&P.indexOf("-",L+1)>0&&(b=P.replaceAll("-","")),b},qr=function(P,b){var L=P,U=Math.sign(b)*Math.floor(Math.abs(b));return P.indexOf(".")===0?L=String(U).concat(P):P.indexOf("-")===0&&P.indexOf(".")===1&&(L=U+".".concat(P.slice(2))),L},ot=function(P,b){var L=b.indexOf(P),U=b.length,B=b;if(L!==-1&&L0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},ae))},B.handleDragStart=function(X){var oe=B.props,ae=oe.value,re=oe.disabled,ie=B.state.editing;re||ie||(document.body.style["pointer-events"]="none",B.ref=X.target,B.setState({dragging:!1,origin:X.screenY,value:ae,internalValue:ae}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var me=B.state,Ce=me.dragging,ve=me.value,Me=B.props.onDrag;Ce&&Me&&Me(+ve)},B.props.updateRate||$o),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(X){var oe=B.props,ae=oe.minValue,re=oe.maxValue,ie=oe.step,me=oe.stepPixelSize;B.setState(function(Ce){var ve=_a({},Ce),Me=ve.origin-X.screenY;if(Ce.dragging){var Se=Number.isFinite(ae)?ae%ie:0;ve.internalValue=(0,o.qE)(Number(ve.internalValue)+Me*ie/(me||1),ae-ie,re+ie),ve.value=(0,o.qE)(Number(ve.internalValue)-Number(ve.internalValue)%ie+Se,ae,re),ve.origin=X.screenY}else Math.abs(Me)>4&&(ve.dragging=!0);return ve})},B.handleDragEnd=function(X){var oe=B.props,ae=oe.onChange,re=oe.onDrag,ie=B.state,me=ie.dragging,Ce=ie.value,ve=ie.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!me,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),me)B.suppressFlicker(),ae&&ae(+Ce),re&&re(+Ce);else if(B.inputRef){var Me=B.inputRef.current;Me.value=String(ve),setTimeout(function(){Me.focus(),Me.select()},100)}},B}var L=b.prototype;return L.render=function(){var B=this,w=this.state,X=w.dragging,oe=w.editing,ae=w.value,re=w.suppressingFlicker,ie=this.props,me=ie.className,Ce=ie.fluid,ve=ie.animated,Me=ie.value,Se=ie.unit,Ke=ie.minValue,Be=ie.maxValue,ze=ie.height,en=ie.width,_e=ie.lineHeight,We=ie.fontSize,Ge=ie.disabled,gn=ie.format,an=ie.onChange,cn=ie.onDrag,Re=Me;(X||re)&&(Re=ae);var sn=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ve&&!X&&!re?(0,e.jsx)(c,{value:+Re,format:gn}):gn?gn(+Re):Re,Se?" "+Se:""]});return(0,e.jsxs)(O.az,{className:(0,j.Ly)(["NumberInput",Ce&&"NumberInput--fluid",me]),minWidth:en,minHeight:ze,lineHeight:_e,fontSize:We,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,o.qE)((+Re-Ke)/(Be-Ke)*100,0,100)+"%"}})}),sn,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:oe?void 0:"none",height:ze,lineHeight:_e,fontSize:We},onBlur:function(ln){if(oe){var pn=(0,o.qE)(parseFloat(ln.target.value),Ke,Be);if(Number.isNaN(pn)){B.setState({editing:!1});return}B.setState({editing:!1,value:pn}),B.suppressFlicker(),an&&an(pn),cn&&cn(pn)}},onKeyDown:function(ln){if(!Ge){if(ln.key===S._.Enter){var pn=ln.target,Tn=(0,o.qE)(parseFloat(pn.value),Ke,Be);if(Number.isNaN(Tn)){B.setState({editing:!1});return}B.setState({editing:!1,value:Tn}),B.suppressFlicker(),an&&an(Tn),cn&&cn(Tn);return}if((0,S.K)(ln.key)){B.setState({editing:!1});return}}}})]})},b}(t.Component),ko=n(6544);function Fo(){return Fo=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function bn(P,b){return bn=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},bn(P,b)}var An=0,rr=1e4,qn=function(P,b,L,U){var B=b||An,w=L||L===0?L:rr,X=U?P.replace(/[^\-\d.]/g,""):P.replace(/[^\-\d]/g,"");return U&&(X=qr(X,B),X=ot(".",X)),b<0?(X=Br(X),X=ot("-",X)):X=X.replaceAll("-",""),B<=1&&w>=0?lt(X,B,w,U):X},lt=function(P,b,L,U){var B=U?parseFloat(P):parseInt(P,10);if(!isNaN(B)&&(P.slice(-1)!=="."||B0?(P=P.replace("-",""),b="-".concat(P)):L===0&&P.indexOf("-",L+1)>0&&(b=P.replaceAll("-","")),b},qr=function(P,b){var L=P,U=Math.sign(b)*Math.floor(Math.abs(b));return P.indexOf(".")===0?L=String(U).concat(P):P.indexOf("-")===0&&P.indexOf(".")===1&&(L=U+".".concat(P.slice(2))),L},ot=function(P,b){var L=b.indexOf(P),U=b.length,B=b;if(L!==-1&&L=0)&&(L[B]=P[B]);return L}var Tl=function(P){var b=P.value,L=P.minValue,U=L===void 0?1:L,B=P.maxValue,w=B===void 0?1:B,X=P.ranges,oe=P.alertAfter,ie=P.alertBefore,re=P.format,ae=P.size,me=ae===void 0?1:ae,Ce=P.className,ve=P.style,Me=Sa(P,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Se=scale(b,U,w),Ke=clamp01(Se),Be=X?{}:{primary:[0,1]};X&&Object.keys(X).forEach(function(_e){var We=X[_e];Be[_e]=[scale(We[0],U,w),scale(We[1],U,w)]});var ze=function(){if(oe&&ie&&oeb)return!0}else if(oeb)return!0;return!1},en=ze()&&keyOfMatchingRange(Ke,Be);return _jsxs(Box,{inline:!0,children:[_jsx("div",eo({className:classes(["RoundGauge",Ce,computeBoxClassName(Me)])},computeBoxProps(eo({style:eo({fontSize:me+"em"},ve)},Me)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(oe||ie)&&_jsx("g",{className:classes(["RoundGauge__alert",en?"active RoundGauge__alert--"+en:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(Be).map(function(_e,We){var Ge=Be[_e];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+_e,style:{strokeDashoffset:Math.max((2-(Ge[1]-Ge[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*Ge[0])+" 50 50)",cx:"50",cy:"50",r:"45"},We)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(Ke*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:b,format:re,size:me})]})},kt=n(37912);/**
+ */function eo(){return eo=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var Tl=function(P){var b=P.value,L=P.minValue,U=L===void 0?1:L,B=P.maxValue,w=B===void 0?1:B,X=P.ranges,oe=P.alertAfter,ae=P.alertBefore,re=P.format,ie=P.size,me=ie===void 0?1:ie,Ce=P.className,ve=P.style,Me=Si(P,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Se=scale(b,U,w),Ke=clamp01(Se),Be=X?{}:{primary:[0,1]};X&&Object.keys(X).forEach(function(_e){var We=X[_e];Be[_e]=[scale(We[0],U,w),scale(We[1],U,w)]});var ze=function(){if(oe&&ae&&oeb)return!0}else if(oeb)return!0;return!1},en=ze()&&keyOfMatchingRange(Ke,Be);return _jsxs(Box,{inline:!0,children:[_jsx("div",eo({className:classes(["RoundGauge",Ce,computeBoxClassName(Me)])},computeBoxProps(eo({style:eo({fontSize:me+"em"},ve)},Me)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(oe||ae)&&_jsx("g",{className:classes(["RoundGauge__alert",en?"active RoundGauge__alert--"+en:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(Be).map(function(_e,We){var Ge=Be[_e];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+_e,style:{strokeDashoffset:Math.max((2-(Ge[1]-Ge[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*Ge[0])+" 50 50)",cx:"50",cy:"50",r:"45"},We)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(Ke*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:b,format:re,size:me})]})},kt=n(37912);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function no(){return no=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var ys=function(P){var b=P.buttons,L=P.children,U=P.className,B=P.fill,w=P.fitted,X=P.onScroll,oe=P.scrollable,ie=P.scrollableHorizontal,re=P.title,ae=P.container_id,me=P.flexGrow,Ce=P.noTopPadding,ve=P.stretchContents,Me=Pi(P,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Se=(0,t.useRef)(null),Ke=(0,j.b5)(re)||(0,j.b5)(b);return(0,t.useEffect)(function(){if(Se!=null&&Se.current&&!(!oe&&!ie)){var Be=Se.current;return(0,kt.tk)(Be),function(){Be&&(0,kt.WK)(Be)}}},[]),(0,e.jsxs)("div",no({id:ae||"",className:(0,j.Ly)(["Section",B&&"Section--fill",w&&"Section--fitted",oe&&"Section--scrollable",ie&&"Section--scrollableHorizontal",me&&"Section--flex",U,(0,O.WP)(Me)])},(0,O.Fl)(Me),{children:[Ke&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:re}),(0,e.jsx)("div",{className:"Section__buttons",children:b})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,j.Ly)(["Section__content",!!ve&&"Section__content--stretchContents",!!Ce&&"Section__content--noTopPadding"]),onScroll:X,ref:Se,children:L})})]}))};/**
+ */function no(){return no=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var ys=function(P){var b=P.buttons,L=P.children,U=P.className,B=P.fill,w=P.fitted,X=P.onScroll,oe=P.scrollable,ae=P.scrollableHorizontal,re=P.title,ie=P.container_id,me=P.flexGrow,Ce=P.noTopPadding,ve=P.stretchContents,Me=Pa(P,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Se=(0,t.useRef)(null),Ke=(0,j.b5)(re)||(0,j.b5)(b);return(0,t.useEffect)(function(){if(Se!=null&&Se.current&&!(!oe&&!ae)){var Be=Se.current;return(0,kt.tk)(Be),function(){Be&&(0,kt.WK)(Be)}}},[]),(0,e.jsxs)("div",no({id:ie||"",className:(0,j.Ly)(["Section",B&&"Section--fill",w&&"Section--fitted",oe&&"Section--scrollable",ae&&"Section--scrollableHorizontal",me&&"Section--flex",U,(0,O.WP)(Me)])},(0,O.Fl)(Me),{children:[Ke&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:re}),(0,e.jsx)("div",{className:"Section__buttons",children:b})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,j.Ly)(["Section__content",!!ve&&"Section__content--stretchContents",!!Ce&&"Section__content--noTopPadding"]),onScroll:X,ref:Se,children:L})})]}))};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Ii(){return Ii=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Lr(P){var b=P.animated,L=P.format,U=P.maxValue,B=P.minValue,w=P.onChange,X=P.onDrag,oe=P.step,ie=P.stepPixelSize,re=P.suppressFlicker,ae=P.unit,me=P.value,Ce=P.className,ve=P.fillValue,Me=P.color,Se=P.ranges,Ke=Se===void 0?{}:Se,Be=P.children,ze=yr(P,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),en=Be!==void 0;return(0,e.jsx)(pa,{dragMatrix:[1,0],animated:b,format:L,maxValue:U,minValue:B,onChange:w,onDrag:X,step:oe,stepPixelSize:ie,suppressFlicker:re,unit:ae,value:me,children:function(_e){var We=_e.displayElement,Ge=_e.displayValue,gn=_e.dragging,an=_e.handleDragStart,cn=_e.inputElement,Re=_e.value,sn=ve!=null,ln=(0,o.hs)(ve!=null?ve:Ge,B,U),pn=(0,o.hs)(Ge,B,U),Tn=Me||(0,o.TG)(ve!=null?ve:Re,Ke)||"default";return(0,e.jsxs)("div",Ii({className:(0,j.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Tn,Ce,(0,O.WP)(ze)])},(0,O.Fl)(ze),{onMouseDown:an,children:[(0,e.jsx)("div",{className:(0,j.Ly)(["ProgressBar__fill",sn&&"ProgressBar__fill--animated"]),style:{width:(0,o.J$)(ln)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,o.J$)(Math.min(ln,pn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,o.J$)(pn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),gn&&(0,e.jsx)("div",{className:"Slider__popupValue",children:We})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:en?Be:We}),cn]}))}})}var Vo=function(P){return _jsxs(Box,{style:P.style,children:[_jsxs(Box,{className:"Section__title",style:P.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:P.textStyle,children:P.title}),_jsx("div",{className:"Section__buttons",children:P.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:P.children})})]})};/**
+ */function Ia(){return Ia=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}function Lr(P){var b=P.animated,L=P.format,U=P.maxValue,B=P.minValue,w=P.onChange,X=P.onDrag,oe=P.step,ae=P.stepPixelSize,re=P.suppressFlicker,ie=P.unit,me=P.value,Ce=P.className,ve=P.fillValue,Me=P.color,Se=P.ranges,Ke=Se===void 0?{}:Se,Be=P.children,ze=yr(P,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),en=Be!==void 0;return(0,e.jsx)(pi,{dragMatrix:[1,0],animated:b,format:L,maxValue:U,minValue:B,onChange:w,onDrag:X,step:oe,stepPixelSize:ae,suppressFlicker:re,unit:ie,value:me,children:function(_e){var We=_e.displayElement,Ge=_e.displayValue,gn=_e.dragging,an=_e.handleDragStart,cn=_e.inputElement,Re=_e.value,sn=ve!=null,ln=(0,o.hs)(ve!=null?ve:Ge,B,U),pn=(0,o.hs)(Ge,B,U),Tn=Me||(0,o.TG)(ve!=null?ve:Re,Ke)||"default";return(0,e.jsxs)("div",Ia({className:(0,j.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Tn,Ce,(0,O.WP)(ze)])},(0,O.Fl)(ze),{onMouseDown:an,children:[(0,e.jsx)("div",{className:(0,j.Ly)(["ProgressBar__fill",sn&&"ProgressBar__fill--animated"]),style:{width:(0,o.J$)(ln)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,o.J$)(Math.min(ln,pn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,o.J$)(pn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),gn&&(0,e.jsx)("div",{className:"Slider__popupValue",children:We})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:en?Be:We}),cn]}))}})}var Vo=function(P){return _jsxs(Box,{style:P.style,children:[_jsxs(Box,{className:"Section__title",style:P.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:P.textStyle,children:P.title}),_jsx("div",{className:"Section__buttons",children:P.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:P.children})})]})};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function Ur(){return Ur=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var ht=function(P){var b=P.className,L=P.vertical,U=P.fill,B=P.fluid,w=P.children,X=Go(P,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Ur({className:(0,j.Ly)(["Tabs",L?"Tabs--vertical":"Tabs--horizontal",U&&"Tabs--fill",B&&"Tabs--fluid",b,(0,O.WP)(X)])},(0,O.Fl)(X),{children:w}))},Ot=function(P){var b=P.className,L=P.selected,U=P.color,B=P.icon,w=P.iconSpin,X=P.leftSlot,oe=P.rightSlot,ie=P.children,re=P.onClick,ae=Go(P,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),me=function(Ce){re&&(re(Ce),Ce.target.blur())};return(0,e.jsxs)("div",Ur({className:(0,j.Ly)(["Tab","Tabs__Tab","Tab--color--"+U,L&&"Tab--selected",b,(0,O.WP)(ae)]),onClick:me},(0,O.Fl)(ae),{children:[(0,j.b5)(X)&&(0,e.jsx)("div",{className:"Tab__left",children:X})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(W,{name:B,spin:w})}),(0,e.jsx)("div",{className:"Tab__text",children:ie}),(0,j.b5)(oe)&&(0,e.jsx)("div",{className:"Tab__right",children:oe})]}))};ht.Tab=Ot;/**
+ */function Ur(){return Ur=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var ht=function(P){var b=P.className,L=P.vertical,U=P.fill,B=P.fluid,w=P.children,X=Go(P,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Ur({className:(0,j.Ly)(["Tabs",L?"Tabs--vertical":"Tabs--horizontal",U&&"Tabs--fill",B&&"Tabs--fluid",b,(0,O.WP)(X)])},(0,O.Fl)(X),{children:w}))},Ot=function(P){var b=P.className,L=P.selected,U=P.color,B=P.icon,w=P.iconSpin,X=P.leftSlot,oe=P.rightSlot,ae=P.children,re=P.onClick,ie=Go(P,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),me=function(Ce){re&&(re(Ce),Ce.target.blur())};return(0,e.jsxs)("div",Ur({className:(0,j.Ly)(["Tab","Tabs__Tab","Tab--color--"+U,L&&"Tab--selected",b,(0,O.WP)(ie)]),onClick:me},(0,O.Fl)(ie),{children:[(0,j.b5)(X)&&(0,e.jsx)("div",{className:"Tab__left",children:X})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(W,{name:B,spin:w})}),(0,e.jsx)("div",{className:"Tab__text",children:ae}),(0,j.b5)(oe)&&(0,e.jsx)("div",{className:"Tab__right",children:oe})]}))};ht.Tab=Ot;/**
* @file
* @copyright 2020 Aleksej Komarov
* @author Warlockd
* @license MIT
- */function or(){return or=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var ar=(0,t.forwardRef)(function(P,b){var L=P.autoFocus,U=P.autoSelect,B=P.displayedValue,w=P.dontUseTabForIndent,X=P.maxLength,oe=P.noborder,ie=P.onChange,re=P.onEnter,ae=P.onEscape,me=P.onInput,Ce=P.placeholder,ve=P.scrollbar,Me=P.selfClear,Se=P.value,Ke=Ft(P,["autoFocus","autoSelect","displayedValue","dontUseTabForIndent","maxLength","noborder","onChange","onEnter","onEscape","onInput","placeholder","scrollbar","selfClear","value"]),Be=Ke.className,ze=Ke.fluid,en=Ke.nowrap,_e=Ft(Ke,["className","fluid","nowrap"]),We=(0,t.useRef)(null),Ge=(0,t.useState)(0),gn=Ge[0],an=Ge[1],cn=function(Re){if(Re.key===S._.Enter){if(Re.shiftKey){Re.currentTarget.focus();return}re==null||re(Re,Re.currentTarget.value),Me&&(Re.currentTarget.value=""),Re.currentTarget.blur();return}if((0,S.K)(Re.key)){ae==null||ae(Re),Me?Re.currentTarget.value="":(Re.currentTarget.value=Yr(Se),Re.currentTarget.blur());return}if(!w&&Re.key===S._.Tab){Re.preventDefault();var sn=Re.currentTarget,ln=sn.value,pn=sn.selectionStart,Tn=sn.selectionEnd;Re.currentTarget.value=ln.substring(0,pn)+" "+ln.substring(Tn),Re.currentTarget.selectionEnd=pn+1}};return(0,t.useImperativeHandle)(b,function(){return We.current}),(0,t.useEffect)(function(){if(!(!L&&!U)){var Re=We.current;Re&&(L||U)&&setTimeout(function(){Re.focus(),U&&Re.select()},1)}},[]),(0,t.useEffect)(function(){var Re=We.current;if(Re){var sn=Yr(Se);Re.value!==sn&&(Re.value=sn)}},[Se]),(0,e.jsxs)(O.az,or({className:(0,j.Ly)(["TextArea",ze&&"TextArea--fluid",oe&&"TextArea--noborder",Be])},_e,{children:[!!B&&(0,e.jsx)("div",{style:{height:"100%",overflow:"hidden",position:"absolute",width:"100%"},children:(0,e.jsx)("div",{className:(0,j.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+gn+"px)"},children:B})}),(0,e.jsx)("textarea",{className:(0,j.Ly)(["TextArea__textarea",ve&&"TextArea__textarea--scrollable",en&&"TextArea__nowrap"]),maxLength:X,onBlur:function(Re){return ie==null?void 0:ie(Re,Re.target.value)},onChange:function(Re){return me==null?void 0:me(Re,Re.target.value)},onKeyDown:cn,onScroll:function(){B&&We.current&&an(We.current.scrollTop)},placeholder:Ce,ref:We,style:{color:B?"rgba(0, 0, 0, 0)":"inherit"}})]}))}),to=n(41242);function Rl(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),b&&Ho(P,b)}function Ho(P,b){return Ho=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Ho(P,b)}var Ms=function(P){return typeof P=="number"&&Number.isFinite(P)&&!Number.isNaN(P)},yt=null;function Mt(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function Nn(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),b&&ba(P,b)}function Vt(P,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](P):P instanceof b}function ba(P,b){return ba=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},ba(P,b)}var Bl=null,_s=function(P){var b=P.children,L=useRef(null),U=useState(1),B=U[0],w=U[1],X=useState(0),oe=X[0],ie=X[1],re=useCallback(function(){var ae=L.current;if(!(!b||!Array.isArray(b)||!ae||B>=b.length)){var me=document.body.offsetHeight-ae.getBoundingClientRect().bottom,Ce=Math.ceil(ae.offsetHeight/B);if(me>0){var ve=Math.min(b.length,B+Math.max(1,Math.ceil(me/Ce)));w(ve),ie((b.length-ve)*Ce)}}},[L,B,b]);return useEffect(function(){re();var ae=setInterval(re,100);return function(){return clearInterval(ae)}},[re]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:L,children:Array.isArray(b)?b.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+oe+"px"}})]})};/**
+ */function or(){return or=Object.assign||function(P){for(var b=1;b=0)&&(L[B]=P[B]);return L}var ir=(0,t.forwardRef)(function(P,b){var L=P.autoFocus,U=P.autoSelect,B=P.displayedValue,w=P.dontUseTabForIndent,X=P.maxLength,oe=P.noborder,ae=P.onChange,re=P.onEnter,ie=P.onEscape,me=P.onInput,Ce=P.placeholder,ve=P.scrollbar,Me=P.selfClear,Se=P.value,Ke=Ft(P,["autoFocus","autoSelect","displayedValue","dontUseTabForIndent","maxLength","noborder","onChange","onEnter","onEscape","onInput","placeholder","scrollbar","selfClear","value"]),Be=Ke.className,ze=Ke.fluid,en=Ke.nowrap,_e=Ft(Ke,["className","fluid","nowrap"]),We=(0,t.useRef)(null),Ge=(0,t.useState)(0),gn=Ge[0],an=Ge[1],cn=function(Re){if(Re.key===S._.Enter){if(Re.shiftKey){Re.currentTarget.focus();return}re==null||re(Re,Re.currentTarget.value),Me&&(Re.currentTarget.value=""),Re.currentTarget.blur();return}if((0,S.K)(Re.key)){ie==null||ie(Re),Me?Re.currentTarget.value="":(Re.currentTarget.value=Yr(Se),Re.currentTarget.blur());return}if(!w&&Re.key===S._.Tab){Re.preventDefault();var sn=Re.currentTarget,ln=sn.value,pn=sn.selectionStart,Tn=sn.selectionEnd;Re.currentTarget.value=ln.substring(0,pn)+" "+ln.substring(Tn),Re.currentTarget.selectionEnd=pn+1}};return(0,t.useImperativeHandle)(b,function(){return We.current}),(0,t.useEffect)(function(){if(!(!L&&!U)){var Re=We.current;Re&&(L||U)&&setTimeout(function(){Re.focus(),U&&Re.select()},1)}},[]),(0,t.useEffect)(function(){var Re=We.current;if(Re){var sn=Yr(Se);Re.value!==sn&&(Re.value=sn)}},[Se]),(0,e.jsxs)(O.az,or({className:(0,j.Ly)(["TextArea",ze&&"TextArea--fluid",oe&&"TextArea--noborder",Be])},_e,{children:[!!B&&(0,e.jsx)("div",{style:{height:"100%",overflow:"hidden",position:"absolute",width:"100%"},children:(0,e.jsx)("div",{className:(0,j.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+gn+"px)"},children:B})}),(0,e.jsx)("textarea",{className:(0,j.Ly)(["TextArea__textarea",ve&&"TextArea__textarea--scrollable",en&&"TextArea__nowrap"]),maxLength:X,onBlur:function(Re){return ae==null?void 0:ae(Re,Re.target.value)},onChange:function(Re){return me==null?void 0:me(Re,Re.target.value)},onKeyDown:cn,onScroll:function(){B&&We.current&&an(We.current.scrollTop)},placeholder:Ce,ref:We,style:{color:B?"rgba(0, 0, 0, 0)":"inherit"}})]}))}),to=n(41242);function Rl(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),b&&Ho(P,b)}function Ho(P,b){return Ho=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Ho(P,b)}var Ms=function(P){return typeof P=="number"&&Number.isFinite(P)&&!Number.isNaN(P)},yt=null;function Mt(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function Nn(P,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(b&&b.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),b&&bi(P,b)}function Vt(P,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](P):P instanceof b}function bi(P,b){return bi=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},bi(P,b)}var Bl=null,_s=function(P){var b=P.children,L=useRef(null),U=useState(1),B=U[0],w=U[1],X=useState(0),oe=X[0],ae=X[1],re=useCallback(function(){var ie=L.current;if(!(!b||!Array.isArray(b)||!ie||B>=b.length)){var me=document.body.offsetHeight-ie.getBoundingClientRect().bottom,Ce=Math.ceil(ie.offsetHeight/B);if(me>0){var ve=Math.min(b.length,B+Math.max(1,Math.ceil(me/Ce)));w(ve),ae((b.length-ve)*Ce)}}},[L,B,b]);return useEffect(function(){re();var ie=setInterval(re,100);return function(){return clearInterval(ie)}},[re]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:L,children:Array.isArray(b)?b.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+oe+"px"}})]})};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */},79500:function(y,u,n){"use strict";n.d(u,{Ai:function(){return e},Fo:function(){return d},KA:function(){return o},KS:function(){return r},NE:function(){return x},b_:function(){return i},bz:function(){return t},lm:function(){return g},wM:function(){return c}});/**
+ */},79500:function(y,u,n){"use strict";n.d(u,{Ai:function(){return e},Fo:function(){return d},KA:function(){return o},KS:function(){return r},NE:function(){return x},b_:function(){return a},bz:function(){return t},lm:function(){return g},wM:function(){return c}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */var e=273.15,o=2,t=1,r=0,s=null,g={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},x=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],d=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],a=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],c=function(f,m){if(!f)return m||"None";for(var v=f.toLowerCase(),E=f.replace(/(^\w{1})|(\s+\w{1})/g,function(O){return O.toUpperCase()}),j=0;j0&&se[se.length-1])&&(Ee[0]===6||Ee[0]===2)){ge=0;continue}if(Ee[0]===3&&(!se||Ee[1]>se[0]&&Ee[1]je&&(se[ge]=je-V[ge],fe=!0)}return[fe,se]},G=function(Z){var V;x.log("drag start"),i=!0,v=(0,o.Z4)([Z.screenX,Z.screenY],_()),(V=Z.target)==null||V.focus(),document.addEventListener("mousemove",ee),document.addEventListener("mouseup",Y),ee(Z)},Y=function(Z){x.log("drag end"),ee(Z),document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",Y),i=!1,$()},ee=function(Z){i&&(Z.preventDefault(),S((0,o.Z4)([Z.screenX,Z.screenY],v)))},le=function(Z,V){return function(q){var ce;E=[Z,V],x.log("resize start",E),l=!0,v=(0,o.Z4)([q.screenX,q.screenY],_()),j=I(),(ce=q.target)==null||ce.focus(),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne),Q(q)}},ne=function(Z){x.log("resize end",O),Q(Z),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne),l=!1,$()},Q=function(Z){if(l){Z.preventDefault();var V=(0,o.Z4)([Z.screenX,Z.screenY],_()),q=(0,o.Z4)(V,v);O=(0,o.CO)(j,(0,o.tk)(E,q),[1,1]),O[0]=Math.max(O[0],150*a),O[1]=Math.max(O[1],50*a),T(O)}}},37912:function(y,u,n){"use strict";n.d(u,{Nh:function(){return t},WK:function(){return j},tk:function(){return E},y4:function(){return s}});var e=n(47454),o=n(6544);/**
+ */function r(Z,V,q,ce,se,fe,ge){try{var Ie=Z[fe](ge),je=Ie.value}catch(Ee){q(Ee);return}Ie.done?V(je):Promise.resolve(je).then(ce,se)}function s(Z){return function(){var V=this,q=arguments;return new Promise(function(ce,se){var fe=Z.apply(V,q);function ge(je){r(fe,ce,se,ge,Ie,"next",je)}function Ie(je){r(fe,ce,se,ge,Ie,"throw",je)}ge(void 0)})}}function g(Z,V){var q,ce,se,fe,ge={label:0,sent:function(){if(se[0]&1)throw se[1];return se[1]},trys:[],ops:[]};return fe={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Ie(Ee){return function(Ne){return je([Ee,Ne])}}function je(Ee){if(q)throw new TypeError("Generator is already executing.");for(;ge;)try{if(q=1,ce&&(se=Ee[0]&2?ce.return:Ee[0]?ce.throw||((se=ce.return)&&se.call(ce),0):ce.next)&&!(se=se.call(ce,Ee[1])).done)return se;switch(ce=0,se&&(Ee=[Ee[0]&2,se.value]),Ee[0]){case 0:case 1:se=Ee;break;case 4:return ge.label++,{value:Ee[1],done:!1};case 5:ge.label++,ce=Ee[1],Ee=[0];continue;case 7:Ee=ge.ops.pop(),ge.trys.pop();continue;default:if(se=ge.trys,!(se=se.length>0&&se[se.length-1])&&(Ee[0]===6||Ee[0]===2)){ge=0;continue}if(Ee[0]===3&&(!se||Ee[1]>se[0]&&Ee[1]je&&(se[ge]=je-V[ge],fe=!0)}return[fe,se]},G=function(Z){var V;x.log("drag start"),a=!0,v=(0,o.Z4)([Z.screenX,Z.screenY],_()),(V=Z.target)==null||V.focus(),document.addEventListener("mousemove",ee),document.addEventListener("mouseup",Y),ee(Z)},Y=function(Z){x.log("drag end"),ee(Z),document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",Y),a=!1,$()},ee=function(Z){a&&(Z.preventDefault(),S((0,o.Z4)([Z.screenX,Z.screenY],v)))},le=function(Z,V){return function(q){var ce;E=[Z,V],x.log("resize start",E),l=!0,v=(0,o.Z4)([q.screenX,q.screenY],_()),j=I(),(ce=q.target)==null||ce.focus(),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",ne),Q(q)}},ne=function(Z){x.log("resize end",O),Q(Z),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",ne),l=!1,$()},Q=function(Z){if(l){Z.preventDefault();var V=(0,o.Z4)([Z.screenX,Z.screenY],_()),q=(0,o.Z4)(V,v);O=(0,o.CO)(j,(0,o.tk)(E,q),[1,1]),O[0]=Math.max(O[0],150*i),O[1]=Math.max(O[1],50*i),T(O)}}},37912:function(y,u,n){"use strict";n.d(u,{Nh:function(){return t},WK:function(){return j},tk:function(){return E},y4:function(){return s}});var e=n(47454),o=n(6544);/**
* Normalized browser focus events and BYOND-specific focus helpers.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */var t=new e.b,r=!1,s=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},g,x=!0,d=function(I,S){if(r){x=!0;return}if(g&&(clearTimeout(g),g=null),S){g=setTimeout(function(){return d(I)});return}x!==I&&(x=I,t.emit(I?"window-focus":"window-blur"),t.emit("window-focus-change",I))},a=null,c=function(I){var S=String(I.tagName).toLowerCase();return S==="input"||S==="textarea"},i=function(I){l(),a=I,a.addEventListener("blur",l)},l=function(){a&&(a.removeEventListener("blur",l),a=null)},f=null,m=null,v=[],E=function(I){v.push(I)},j=function(I){var S=v.indexOf(I);S>=0&&v.splice(S,1)},O=function(I){if(!(a||!x))for(var S=document.body;I&&I!==S;){if(v.includes(I)){if(I.contains(f))return;f=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var S=I.target;S!==m&&v.length<2&&(m=S,O(S))}),window.addEventListener("click",function(I){var S=I.target;S!==m&&(m=S,O(S))}),window.addEventListener("focusin",function(I){m=null,f=I.target,d(!0),c(I.target)&&i(I.target)}),window.addEventListener("focusout",function(I){m=null,d(!1,!0)}),window.addEventListener("blur",function(I){m=null,d(!1,!0)}),window.addEventListener("beforeunload",function(I){d(!1)});var M={},_=function(){"use strict";function I(T,A,K){this.event=T,this.type=A,this.code=T.keyCode,this.ctrl=T.ctrlKey,this.shift=T.shiftKey,this.alt=T.altKey,this.repeat=!!K}var S=I.prototype;return S.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},S.isModifierKey=function(){return this.code===o.Ss||this.code===o.re||this.code===o.cH},S.isDown=function(){return this.type==="keydown"},S.isUp=function(){return this.type==="keyup"},S.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=o.sV&&this.code<=o.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!c(I.target)){var S=I.keyCode,T=new _(I,"keydown",M[S]);t.emit("keydown",T),t.emit("key",T),M[S]=!0}}),document.addEventListener("keyup",function(I){if(!c(I.target)){var S=I.keyCode,T=new _(I,"keyup");t.emit("keyup",T),t.emit("key",T),M[S]=!1}})},49945:function(y,u,n){"use strict";n.d(u,{$:function(){return e}});/**
+ */var t=new e.b,r=!1,s=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},g,x=!0,d=function(I,S){if(r){x=!0;return}if(g&&(clearTimeout(g),g=null),S){g=setTimeout(function(){return d(I)});return}x!==I&&(x=I,t.emit(I?"window-focus":"window-blur"),t.emit("window-focus-change",I))},i=null,c=function(I){var S=String(I.tagName).toLowerCase();return S==="input"||S==="textarea"},a=function(I){l(),i=I,i.addEventListener("blur",l)},l=function(){i&&(i.removeEventListener("blur",l),i=null)},f=null,m=null,v=[],E=function(I){v.push(I)},j=function(I){var S=v.indexOf(I);S>=0&&v.splice(S,1)},O=function(I){if(!(i||!x))for(var S=document.body;I&&I!==S;){if(v.includes(I)){if(I.contains(f))return;f=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var S=I.target;S!==m&&v.length<2&&(m=S,O(S))}),window.addEventListener("click",function(I){var S=I.target;S!==m&&(m=S,O(S))}),window.addEventListener("focusin",function(I){m=null,f=I.target,d(!0),c(I.target)&&a(I.target)}),window.addEventListener("focusout",function(I){m=null,d(!1,!0)}),window.addEventListener("blur",function(I){m=null,d(!1,!0)}),window.addEventListener("beforeunload",function(I){d(!1)});var M={},_=function(){"use strict";function I(T,A,K){this.event=T,this.type=A,this.code=T.keyCode,this.ctrl=T.ctrlKey,this.shift=T.shiftKey,this.alt=T.altKey,this.repeat=!!K}var S=I.prototype;return S.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},S.isModifierKey=function(){return this.code===o.Ss||this.code===o.re||this.code===o.cH},S.isDown=function(){return this.type==="keydown"},S.isUp=function(){return this.type==="keyup"},S.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=o.sV&&this.code<=o.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!c(I.target)){var S=I.keyCode,T=new _(I,"keydown",M[S]);t.emit("keydown",T),t.emit("key",T),M[S]=!0}}),document.addEventListener("keyup",function(I){if(!c(I.target)){var S=I.keyCode,T=new _(I,"keyup");t.emit("keyup",T),t.emit("key",T),M[S]=!1}})},49945:function(y,u,n){"use strict";n.d(u,{$:function(){return e}});/**
* Various focus helpers.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},o=function(){Byond.winset(Byond.windowId,{focus:!0})}},41242:function(y,u,n){"use strict";n.d(u,{QL:function(){return t},d5:function(){return r},fU:function(){return a},qQ:function(){return c},up:function(){return s}});/**
+ */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},o=function(){Byond.winset(Byond.windowId,{focus:!0})}},41242:function(y,u,n){"use strict";n.d(u,{QL:function(){return t},d5:function(){return r},fU:function(){return i},qQ:function(){return c},up:function(){return s}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],o=e.indexOf(" "),t=function(i,l,f){if(l===void 0&&(l=-o),f===void 0&&(f=""),!isFinite(i))return i.toString();var m=Math.floor(Math.log10(Math.abs(i))),v=Math.max(l*3,m),E=Math.floor(v/3),j=e[Math.min(E+o,e.length-1)],O=i/Math.pow(1e3,E),M=O.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+j.trim()+f).trim()},r=function(i,l){return l===void 0&&(l=0),t(i,l,"W")},s=function(i,l){if(l===void 0&&(l=0),!Number.isFinite(i))return String(i);var f=Number(i.toFixed(l)),m=f<0,v=Math.abs(f),E=v.toString().split(".");E[0]=E[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var j=E.join(".");return m?"-"+j:j},g=function(i){var l=20*Math.log10(i),f=l>=0?"+":"-",m=Math.abs(l);return m===1/0?m="Inf":m=m.toFixed(2),""+f+m+" dB"},x=null,d=function(i,l,f){if(l===void 0&&(l=0),f===void 0&&(f=""),!isFinite(i))return"NaN";var m=Math.floor(Math.log10(i)),v=Math.max(l*3,m),E=Math.floor(v/3),j=x[E],O=i/Math.pow(1e3,E),M=Math.max(0,2-v%3),_=O.toFixed(M);return(_+" "+j+" "+f).trim()},a=function(i,l){l===void 0&&(l="default");var f=Math.floor(i/10),m=Math.floor(f/3600),v=Math.floor(f%3600/60),E=f%60;if(l==="short"){var j=m>0?""+m+"h":"",O=v>0?""+v+"m":"",M=E>0?""+E+"s":"";return""+j+O+M}var _=String(m).padStart(2,"0"),I=String(v).padStart(2,"0"),S=String(E).padStart(2,"0");return _+":"+I+":"+S},c=function(i){if(!Number.isFinite(i))return i;var l=i.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}},52130:function(y,u,n){"use strict";n.d(u,{Bm:function(){return j}});var e=n(6544),o=n(37912),t=n(92736);/**
+ */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],o=e.indexOf(" "),t=function(a,l,f){if(l===void 0&&(l=-o),f===void 0&&(f=""),!isFinite(a))return a.toString();var m=Math.floor(Math.log10(Math.abs(a))),v=Math.max(l*3,m),E=Math.floor(v/3),j=e[Math.min(E+o,e.length-1)],O=a/Math.pow(1e3,E),M=O.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+j.trim()+f).trim()},r=function(a,l){return l===void 0&&(l=0),t(a,l,"W")},s=function(a,l){if(l===void 0&&(l=0),!Number.isFinite(a))return String(a);var f=Number(a.toFixed(l)),m=f<0,v=Math.abs(f),E=v.toString().split(".");E[0]=E[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var j=E.join(".");return m?"-"+j:j},g=function(a){var l=20*Math.log10(a),f=l>=0?"+":"-",m=Math.abs(l);return m===1/0?m="Inf":m=m.toFixed(2),""+f+m+" dB"},x=null,d=function(a,l,f){if(l===void 0&&(l=0),f===void 0&&(f=""),!isFinite(a))return"NaN";var m=Math.floor(Math.log10(a)),v=Math.max(l*3,m),E=Math.floor(v/3),j=x[E],O=a/Math.pow(1e3,E),M=Math.max(0,2-v%3),_=O.toFixed(M);return(_+" "+j+" "+f).trim()},i=function(a,l){l===void 0&&(l="default");var f=Math.floor(a/10),m=Math.floor(f/3600),v=Math.floor(f%3600/60),E=f%60;if(l==="short"){var j=m>0?""+m+"h":"",O=v>0?""+v+"m":"",M=E>0?""+E+"s":"";return""+j+O+M}var _=String(m).padStart(2,"0"),I=String(v).padStart(2,"0"),S=String(E).padStart(2,"0");return _+":"+I+":"+S},c=function(a){if(!Number.isFinite(a))return a;var l=a.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}},52130:function(y,u,n){"use strict";n.d(u,{Bm:function(){return j}});var e=n(6544),o=n(37912),t=n(92736);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
- */function r(M,_){(_==null||_>M.length)&&(_=M.length);for(var I=0,S=new Array(_);I<_;I++)S[I]=M[I];return S}function s(M,_){if(M){if(typeof M=="string")return r(M,_);var I=Object.prototype.toString.call(M).slice(8,-1);if(I==="Object"&&M.constructor&&(I=M.constructor.name),I==="Map"||I==="Set")return Array.from(I);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return r(M,_)}}function g(M,_){var I=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(I)return(I=I.call(M)).next.bind(I);if(Array.isArray(M)||(I=s(M))||_&&M&&typeof M.length=="number"){I&&(M=I);var S=0;return function(){return S>=M.length?{done:!0}:{done:!1,value:M[S++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=(0,t.h)("hotkeys"),d={},a=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],c={},i=[],l=function(M){if(M===16)return"Shift";if(M===17)return"Ctrl";if(M===18)return"Alt";if(M===33)return"Northeast";if(M===34)return"Southeast";if(M===35)return"Southwest";if(M===36)return"Northwest";if(M===37)return"West";if(M===38)return"North";if(M===39)return"East";if(M===40)return"South";if(M===45)return"Insert";if(M===46)return"Delete";if(M>=48&&M<=57||M>=65&&M<=90)return String.fromCharCode(M);if(M>=96&&M<=105)return"Numpad"+(M-96);if(M>=112&&M<=123)return"F"+(M-111);if(M===188)return",";if(M===189)return"-";if(M===190)return"."},f=function(M){var _=String(M);if(_==="Ctrl+F5"||_==="Ctrl+R"){location.reload();return}if(_!=="Ctrl+F"&&!(M.event.defaultPrevented||M.isModifierKey()||a.includes(M.code))){var I=l(M.code);if(I){var S=d[I];if(S)return x.debug("macro",S),Byond.command(S);if(M.isDown()&&!c[I]){c[I]=!0;var T='TguiKeyDown "'+I+'"';return x.debug(T),Byond.command(T)}if(M.isUp()&&c[I]){c[I]=!1;var A='TguiKeyUp "'+I+'"';return x.debug(A),Byond.command(A)}}}},m=function(M){a.push(M)},v=function(M){var _=a.indexOf(M);_>=0&&a.splice(_,1)},E=function(){for(var M=g(Object.keys(c)),_;!(_=M()).done;){var I=_.value;c[I]&&(c[I]=!1,x.log('releasing key "'+I+'"'),Byond.command('TguiKeyUp "'+I+'"'))}},j=function(){Byond.winget("default.*").then(function(M){for(var _={},I=g(Object.keys(M)),S;!(S=I()).done;){var T=S.value,A=T.split("."),K=A[1],W=A[2];K&&W&&(_[K]||(_[K]={}),_[K][W]=M[T])}for(var $=/\\"/g,k=function(le){return le.substring(1,le.length-1).replace($,'"')},z=g(Object.keys(_)),H;!(H=z()).done;){var G=H.value,Y=_[G],ee=k(Y.name);d[ee]=k(Y.command)}x.debug("loaded macros",d)}),o.Nh.on("window-blur",function(){E()}),o.Nh.on("key",function(M){for(var _=g(i),I;!(I=_()).done;){var S=I.value;S(M)}f(M)})},O=function(M){i.push(M);var _=!1;return function(){_||(_=!0,i.splice(i.indexOf(M),1))}}},30705:function(y,u,n){"use strict";n.d(u,{b:function(){return e}});var e=function(o,t,r){return r===void 0&&(r=1e3),fetch(o,t).catch(function(){return new Promise(function(s){setTimeout(function(){e(o,t,r).then(s)},r)})})}},20544:function(y,u,n){"use strict";n.r(u),n.d(u,{AICard:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.name,i=a.has_ai,l=a.integrity,f=a.backup_capacitor,m=a.flushing,v=a.has_laws,E=a.laws,j=a.wireless,O=a.radio;if(i){var M;l>=75?M="green":l>=25?M="yellow":M="red";var _;return f>=75&&(_="green"),f>=25?_="yellow":_="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Stored AI",children:[(0,e.jsx)(t.az,{bold:!0,inline:!0,children:(0,e.jsx)("h3",{children:c})}),(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:M,value:l/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:_,value:f/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:m===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!v&&(0,e.jsx)(t.az,{children:E.map(function(I,S){return(0,e.jsx)(t.az,{inline:!0,children:I},S)})})||(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(t.wn,{title:"Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(t.$n,{icon:j?"check":"times",color:j?"green":"red",onClick:function(){return d("wireless")},children:j?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(t.$n,{icon:O?"check":"times",color:O?"green":"red",onClick:function(){return d("radio")},children:O?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:m||l===0,confirmColor:"red",onClick:function(){return d("wipe")},children:"Shutdown"})})]})})]})})}else return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Stored AI",children:(0,e.jsx)(t.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})})}},43252:function(y,u,n){"use strict";n.r(u),n.d(u,{APC:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(72859),g=n(98071),x=function(f){var m=(0,o.Oc)(),v=m.act,E=m.data,j=E.gridCheck,O=E.failTime,M=(0,e.jsx)(c,{});return j?M=(0,e.jsx)(i,{}):O&&(M=(0,e.jsx)(l,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:M})})},d={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"}},a={1:{icon:"terminal",content:"Override Programming",action:"hack"}},c=function(f){var m=(0,o.Oc)(),v=m.act,E=m.data,j=E.locked,O=E.siliconUser,M=E.externalPower,_=E.chargingStatus,I=E.powerChannels,S=E.powerCellStatus,T=E.emagged,A=E.isOperating,K=E.chargeMode,W=E.totalCharging,$=E.totalLoad,k=E.coverLocked,z=E.nightshiftSetting,H=E.emergencyLights,G=j&&!O,Y=d[M]||d[0],ee=d[_]||d[0],le=I||[],ne=S/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.InterfaceLockNoticeBox,{deny:T,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(t.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main Breaker",color:Y.color,buttons:(0,e.jsx)(t.$n,{icon:A?"power-off":"times",selected:A&&!G,color:A?"":"bad",disabled:G,onClick:function(){return v("breaker")},children:A?"On":"Off"}),children:["[ ",Y.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:ne})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:ee.color,buttons:(0,e.jsx)(t.$n,{icon:K?"sync":"times",selected:K,disabled:G,onClick:function(){return v("charge")},children:K?"Auto":"Off"}),children:["[ ",ee.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[le.map(function(Q){var Z=Q.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:Q.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:Q.status>=2?"good":"bad",children:Q.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!G&&(Q.status===1||Q.status===3),disabled:G,onClick:function(){return v("channel",Z.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!G&&Q.status===2,disabled:G,onClick:function(){return v("channel",Z.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!G&&Q.status===0,disabled:G,onClick:function(){return v("channel",Z.off)},children:"Off"})]}),children:[Q.powerLoad," W"]},Q.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:W?(0,e.jsxs)("b",{children:[$," W (+ ",W," W charging)"]}):(0,e.jsxs)("b",{children:[$," W"]})})]})}),(0,e.jsx)(t.wn,{title:"Misc",buttons:!!E.siliconUser&&(0,e.jsx)(t.$n,{icon:"lightbulb-o",onClick:function(){return v("overload")},children:"Overload"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(t.$n,{icon:k?"lock":"unlock",selected:k,disabled:G,onClick:function(){return v("cover")},children:k?"Engaged":"Disengaged"})}),(0,e.jsx)(t.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:z===2,onClick:function(){return v("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:z===1,onClick:function(){return v("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:z===3,onClick:function(){return v("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:H,onClick:function(){return v("emergency_lighting")},children:H?"Enabled":"Disabled"})})]})})]})},i=function(f){return(0,e.jsxs)(s.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(t.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},l=function(f){var m=(0,o.Oc)(),v=m.data,E=m.act,j=v.locked,O=v.siliconUser,M=v.failTime,_=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return E("reboot")},children:"Restart Now"});return j&&!O&&(_=(0,e.jsx)(t.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(t.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(t.az,{color:"good",children:["Automatic reboot in ",M," seconds..."]}),(0,e.jsx)(t.az,{mt:4,children:_})]})}},77056:function(y,u,n){"use strict";n.r(u),n.d(u,{AccountsTerminal:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(c){var i=(0,o.Oc)(),l=i.act,f=i.data,m=f.id_inserted,v=f.id_card,E=f.access_level,j=f.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Machine",color:"average",children:j}),(0,e.jsx)(t.Ki.Item,{label:"ID",children:(0,e.jsx)(t.$n,{icon:m?"eject":"sign-in-alt",fluid:!0,onClick:function(){return l("insert_card")},children:v})})]})}),E>0&&(0,e.jsx)(g,{})]})})},g=function(c){var i=(0,o.Oc)(),l=i.act,f=i.data,m=f.creating_new_account,v=f.detailed_account_view;return(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!m&&!v,icon:"home",onClick:function(){return l("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:!!m,icon:"cog",onClick:function(){return l("create_account")},children:"New Account"}),m?"":(0,e.jsx)(t.tU.Tab,{icon:"print",onClick:function(){return l("print")},children:"Print"})]}),m&&(0,e.jsx)(x,{})||v&&(0,e.jsx)(d,{})||(0,e.jsx)(a,{})]})},x=function(c){var i=(0,o.Oc)().act,l=(0,o.QY)("holder",""),f=l[0],m=l[1],v=(0,o.QY)("money",""),E=v[0],j=v[1];return(0,e.jsxs)(t.wn,{title:"Create Account",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(t.pd,{value:f,fluid:!0,onInput:function(O,M){return m(M)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:E,fluid:!0,onInput:function(O,M){return j(M)}})})]}),(0,e.jsx)(t.$n,{disabled:!f||!E,mt:1,fluid:!0,icon:"plus",onClick:function(){return i("finalise_create_account",{holder_name:f,starting_funds:E})},children:"Create"})]})},d=function(c){var i=(0,o.Oc)(),l=i.act,f=i.data,m=f.access_level,v=f.station_account_number,E=f.account_number,j=f.owner_name,O=f.money,M=f.suspended,_=f.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:M,onClick:function(){return l("toggle_suspension")},children:"Suspend"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Account Number",children:["#",E]}),(0,e.jsx)(t.Ki.Item,{label:"Holder",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Balance",children:[O,"\u20AE"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:M?"bad":"good",children:M?"SUSPENDED":"Active"})]}),(0,e.jsx)(t.wn,{title:"CentCom Administrator",mt:1,children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payroll",children:(0,e.jsx)(t.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",confirmContent:"This cannot be undone.",disabled:E===v,onClick:function(){return l("revoke_payroll")},children:"Revoke"})})})}),m>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return l("remove_funds")},children:"Remove Funds"})]}),(0,e.jsx)(t.wn,{title:"Transactions",mt:1,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(t.XI.Cell,{children:"Target"}),(0,e.jsx)(t.XI.Cell,{children:"Reason"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Terminal"})]}),_.map(function(I,S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(t.XI.Cell,{children:I.target_name}),(0,e.jsx)(t.XI.Cell,{children:I.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:I.source_terminal})]},S)})]})})]})},a=function(c){var i=(0,o.Oc)(),l=i.act,f=i.data,m=f.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",children:m.length&&(0,e.jsx)(t.Ki,{children:m.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.owner_name+v.suspended,color:v.suspended?"bad":void 0,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return l("view_account_detail",{account_index:v.account_index})},children:"#"+v.account_number})},v.account_index)})})||(0,e.jsx)(t.az,{color:"bad",children:"There are no accounts available."})})}},16980:function(y,u,n){"use strict";n.r(u),n.d(u,{AdminShuttleController:function(){return g},ShuttleList:function(){return x}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),g=function(){return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.shuttles,m=l.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(f,function(v){return v.name}).map(function(v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return i("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return i("classicmove",{ref:v.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:v.name}),(0,e.jsx)(r.XI.Cell,{children:v.current_location}),(0,e.jsx)(r.XI.Cell,{children:d(v.status)})]},v.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(m,function(v){var E;return((E=v.name)==null?void 0:E.toLowerCase())||v.name||v.ref}).map(function(v){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return i("adminobserve",{ref:v.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return i("overmap_control",{ref:v.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:v.name})]},v.ref)})})})]})},d=function(a){switch(a){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},15301:function(y,u,n){"use strict";n.r(u),n.d(u,{AdminTicketPanel:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.id,f=i.title,m=i.name,v=i.state,E=i.opened_at,j=i.closed_at,O=i.opened_at_date,M=i.closed_at_date,_=i.actions,I=i.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("retitle")},children:"Rename Ticket"}),(0,e.jsx)(r.$n,{onClick:function(){return c("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Admin Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:g[v]}),g[v]===g.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:O+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[M+" ("+(0,o.Mg)((0,o.LI)(j/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return c("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(I).map(function(S,T){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I[S]}},T)})})]})})})})}},14415:function(y,u,n){"use strict";n.r(u),n.d(u,{AgentCard:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.entries,i=a.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Info",children:(0,e.jsx)(t.XI,{children:c.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return d(l.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsx)(t.XI.Cell,{children:l.value})]},l.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:i,onClick:function(){return d("electronic_warfare")},children:i?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled."})})]})})}},40645:function(y,u,n){"use strict";n.r(u),n.d(u,{AiAirlock:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.power,l=c.wires,f=c.shock,m=c.shock_timeleft,v=c.id_scanner,E=c.lights,j=c.locked,O=c.safe,M=c.speed,_=c.opened,I=c.welded,S=s[i.main]||s[0],T=s[i.backup]||s[0],A=s[f]||s[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Power Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Main",color:S.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!i.main,onClick:function(){return a("disrupt-main")},children:"Disrupt"}),children:[i.main?"Online":"Offline"," ",(!l.main_1||!l.main_2)&&"[Wires have been cut!]"||i.main_timeleft>0&&"["+i.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:T.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!i.backup,onClick:function(){return a("disrupt-backup")},children:"Disrupt"}),children:[i.backup?"Online":"Offline"," ",(!l.backup_1||!l.backup_2)&&"[Wires have been cut!]"||i.backup_timeleft>0&&"["+i.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:A.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(l.shock&&f===0),onClick:function(){return a("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return a("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!l.shock,onClick:function(){return a("shock-perm")},children:"Permanent"})]}),children:[f===2?"Safe":"Electrified"," ",!l.shock&&"[Wires have been cut!]"||m>0&&"["+m+"s]"||m===-1&&"[Permanent]"]})]})}),(0,e.jsx)(t.wn,{title:"Access and Door Control",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,disabled:!l.id_scanner,onClick:function(){return a("idscan-toggle")},children:v?"Enabled":"Disabled"}),children:!l.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:j?"lock":"unlock",selected:j,disabled:!l.bolts,onClick:function(){return a("bolt-toggle")},children:j?"Lowered":"Raised"}),children:!l.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:E?"power-off":"times",selected:E,disabled:!l.lights,onClick:function(){return a("light-toggle")},children:E?"Enabled":"Disabled"}),children:!l.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:O?"power-off":"times",selected:O,disabled:!l.safe,onClick:function(){return a("safe-toggle")},children:O?"Enabled":"Disabled"}),children:!l.safe&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:M?"power-off":"times",selected:M,disabled:!l.timing,onClick:function(){return a("speed-toggle")},children:M?"Enabled":"Disabled"}),children:!l.timing&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:_?"sign-out-alt":"sign-in-alt",selected:_,disabled:j||I,onClick:function(){return a("open-close")},children:_?"Open":"Closed"}),children:!!(j||I)&&(0,e.jsxs)("span",{children:["[Door is ",j?"bolted":"",j&&I?" and ":"",I?"welded":"","!]"]})})]})})]})})}},89570:function(y,u,n){"use strict";n.r(u),n.d(u,{AiRestorer:function(){return s},AiRestorerContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.AI_present,l=c.error,f=c.name,m=c.laws,v=c.isDead,E=c.restoring,j=c.health,O=c.ejectable;return(0,e.jsxs)(e.Fragment,{children:[l&&(0,e.jsx)(t.IC,{textAlign:"center",children:l}),!!O&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!i,onClick:function(){return a("PRG_eject")},children:i?f:"----------"}),!!i&&(0,e.jsxs)(t.wn,{title:O?"System Status":f,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:v?"bad":"good",children:v?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{value:j,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!E&&(0,e.jsx)(t.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",disabled:E,mt:1,onClick:function(){return a("PRG_beginReconstruction")},children:"Begin Reconstruction"}),(0,e.jsx)(t.wn,{title:"Laws",children:m.map(function(M){return(0,e.jsx)(t.az,{className:"candystripe",children:M},M)})})]})]})}},69622:function(y,u,n){"use strict";n.r(u),n.d(u,{AiSupermatter:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(72859),g=function(a){var c=(0,o.Oc)().data,i=c.detonating,l=(0,e.jsx)(d,{});return i&&(l=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:l})})},x=function(a){return(0,e.jsx)(s.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(t.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(t.az,{color:"bad",children:"Evacuate area immediately"})]})})},d=function(a){var c=(0,o.Oc)().data,i=c.integrity_percentage,l=c.ambient_temp,f=c.ambient_pressure;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(t.z2,{value:i,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(t.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(t.z2,{value:l,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[l," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[f," kPa"]})]})})}},15991:function(y,u,n){"use strict";n.r(u),n.d(u,{AirAlarm:function(){return c}});var e=n(20462),o=n(4089),t=n(61358),r=n(7081),s=n(88569),g=n(79500),x=n(15581),d=n(26634),a=n(98071),c=function(_){var I=function(ee){H(ee)},S=(0,r.Oc)(),T=S.act,A=S.data,K=A.locked,W=A.siliconUser,$=A.remoteUser,k=(0,t.useState)(""),z=k[0],H=k[1],G=K&&!W&&!$;return(0,e.jsx)(x.p8,{width:440,height:650,children:(0,e.jsxs)(x.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{}),(0,e.jsx)(i,{}),(0,e.jsx)(l,{}),!G&&(0,e.jsx)(m,{screen:z,onScreen:I})]})})},i=function(_){var I=(0,r.Oc)().data,S=I.environment_data,T=I.atmos_alarm,A=I.fire_alarm,K=I.emagged,W=(S||[]).filter(function(z){return z.value>=.01}),$={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},k=$[I.danger_level]||$[0];return(0,e.jsx)(s.wn,{title:"Air Status",children:(0,e.jsxs)(s.Ki,{children:[W.length>0&&(0,e.jsxs)(e.Fragment,{children:[W.map(function(z){var H=$[z.danger_level]||$[0];return(0,e.jsxs)(s.Ki.Item,{label:(0,g.wM)(z.name),color:H.color,children:[(0,o.Mg)(z.value,2),z.unit]},z.name)}),(0,e.jsx)(s.Ki.Item,{label:"Local status",color:k.color,children:k.localStatusText}),(0,e.jsx)(s.Ki.Item,{label:"Area status",color:T||A?"bad":"good",children:T&&"Atmosphere Alarm"||A&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!K&&(0,e.jsx)(s.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},l=function(_){var I=(0,r.Oc)(),S=I.act,T=I.data,A=T.target_temperature,K=T.rcon;return(0,e.jsx)(s.wn,{title:"Comfort Settings",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(s.$n,{selected:K===1,onClick:function(){return S("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(s.$n,{selected:K===2,onClick:function(){return S("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(s.$n,{selected:K===3,onClick:function(){return S("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(s.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(s.$n,{onClick:function(){return S("temperature")},children:A})})]})})},f={home:{title:"Air Controls",component:function(){return v}},vents:{title:"Vent Controls",component:function(){return E}},scrubbers:{title:"Scrubber Controls",component:function(){return j}},modes:{title:"Operating Mode",component:function(){return O}},thresholds:{title:"Alarm Thresholds",component:function(){return M}}},m=function(_){var I=f[_.screen]||f.home,S=I.component();return(0,e.jsx)(s.wn,{title:I.title,buttons:_.screen&&(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return _.onScreen()},children:"Back"}),children:(0,e.jsx)(S,{onScreen:_.onScreen})})},v=function(_){var I=(0,r.Oc)(),S=I.act,T=I.data,A=T.mode,K=T.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.$n,{icon:K?"exclamation-triangle":"exclamation",color:K&&"caution",onClick:function(){return S(K?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:A===3?"exclamation-triangle":"exclamation",color:A===3&&"danger",onClick:function(){return S("mode",{mode:A===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(s.az,{mt:2}),(0,e.jsx)(s.$n,{icon:"sign-out-alt",onClick:function(){return _.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"filter",onClick:function(){return _.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"cog",onClick:function(){return _.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(s.az,{mt:1}),(0,e.jsx)(s.$n,{icon:"chart-bar",onClick:function(){return _.onScreen("thresholds")},children:"Alarm Thresholds"})]})},E=function(_){var I=(0,r.Oc)().data,S=I.vents;return!S||S.length===0?"Nothing to show":S.map(function(T){return(0,e.jsx)(d.Vent,{vent:T},T.id_tag)})},j=function(_){var I=(0,r.Oc)().data,S=I.scrubbers;return!S||S.length===0?"Nothing to show":S.map(function(T){return(0,e.jsx)(d.Scrubber,{scrubber:T},T.id_tag)})},O=function(_){var I=(0,r.Oc)(),S=I.act,T=I.data,A=T.modes;return!A||A.length===0?"Nothing to show":A.map(function(K){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(s.$n,{icon:K.selected?"check-square-o":"square-o",selected:K.selected,color:K.selected&&K.danger&&"danger",onClick:function(){return S("mode",{mode:K.mode})},children:K.name}),(0,e.jsx)(s.az,{mt:1})]},K.mode)})},M=function(_){var I=(0,r.Oc)(),S=I.act,T=I.data,A=T.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:A.map(function(K){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,g.b_)(K.name),children:(0,g.wM)(K.name)})}),K.settings.map(function(W){return(0,e.jsx)("td",{children:(0,e.jsx)(s.$n,{onClick:function(){return S("threshold",{env:W.env,var:W.val})},children:(0,o.Mg)(W.selected,2)})},W.val)})]},K.name)})})]})}},51225:function(y,u,n){"use strict";n.r(u),n.d(u,{AlertModal:function(){return c}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),s=n(88569),g=n(15581),x=n(44149),d=-1,a=1,c=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.autofocus,O=E.buttons,M=O===void 0?[]:O,_=E.large_buttons,I=E.message,S=I===void 0?"":I,T=E.timeout,A=E.title,K=(0,o.useState)(0),W=K[0],$=K[1],k=115+(S.length>30?Math.ceil(S.length/4):0)+(S.length&&_?5:0),z=325+(M.length>2?55:0),H=function(G){W===0&&G===d?$(M.length-1):W===M.length-1&&G===a?$(0):$(W+G)};return(0,e.jsxs)(g.p8,{height:k,title:A,width:z,children:[!!T&&(0,e.jsx)(x.Loader,{value:T}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(G){var Y=window.event?G.which:G.keyCode;Y===t.iy||Y===t.Ri?v("choose",{choice:M[W]}):Y===t.s6?v("cancel"):Y===t.iU?(G.preventDefault(),H(d)):(Y===t.aW||Y===t.zh)&&(G.preventDefault(),H(a))},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(s.az,{color:"label",overflow:"hidden",children:S})}),(0,e.jsxs)(s.BJ.Item,{children:[!!j&&(0,e.jsx)(s.y5,{}),(0,e.jsx)(i,{selected:W})]})]})})})]})},i=function(f){var m=(0,r.Oc)().data,v=m.buttons,E=v===void 0?[]:v,j=m.large_buttons,O=m.swapped_buttons,M=f.selected;return(0,e.jsx)(s.so,{align:"center",direction:O?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:E==null?void 0:E.map(function(_,I){return j&&E.length<3?(0,e.jsx)(s.so.Item,{grow:!0,children:(0,e.jsx)(l,{button:_,id:I.toString(),selected:M===I})},I):(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(l,{button:_,id:I.toString(),selected:M===I})},I)})})},l=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.large_buttons,O=f.button,M=f.selected,_=O.length>7?O.length:7;return(0,e.jsx)(s.$n,{fluid:!!j,height:!!j&&2,onClick:function(){return v("choose",{choice:O})},m:.5,pl:2,pr:2,pt:j?.33:0,selected:M,textAlign:"center",width:!j&&_,children:j?O.toUpperCase():O})}},20730:function(y,u,n){"use strict";n.r(u),n.d(u,{AlgaeFarm:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.usePower,l=c.materials,f=c.last_flow_rate,m=c.last_power_draw,v=c.inputDir,E=c.outputDir,j=c.input,O=c.output,M=c.errorText;return(0,e.jsx)(s.p8,{width:500,height:300,children:(0,e.jsxs)(s.p8.Content,{children:[M&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:M})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:i===2,onClick:function(){return a("toggle")},children:"Processing"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[f," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[m," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),l.map(function(_){return(0,e.jsxs)(r.Ki.Item,{label:(0,o.ZH)(_.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:_.qty,maxValue:_.max,children:[_.qty,"/",_.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return a("ejectMaterial",{mat:_.name})},children:"Eject"})]},_.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+v+")",children:j?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[j.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:j.name,children:[j.percent,"% (",j.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+E+")",children:O?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[O.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:O.name,children:[O.percent,"% (",O.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},31607:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerEars:function(){return x},AppearanceChangerGender:function(){return g},AppearanceChangerSpecies:function(){return s},AppearanceChangerTails:function(){return d},AppearanceChangerWings:function(){return a}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.species,v=f.specimen,E=(0,o.Ul)(m||[],function(j){return j.specimen});return(0,e.jsx)(r.wn,{title:"Species",fill:!0,scrollable:!0,children:E.map(function(j){return(0,e.jsx)(r.$n,{selected:v===j.specimen,onClick:function(){return l("race",{race:j.specimen})},children:j.specimen},j.specimen)})})},g=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.gender,v=f.gender_id,E=f.genders,j=f.id_genders;return(0,e.jsx)(r.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Biological Sex",children:E.map(function(O){return(0,e.jsx)(r.$n,{selected:O.gender_key===m,onClick:function(){return l("gender",{gender:O.gender_key})},children:O.gender_name},O.gender_key)})}),(0,e.jsx)(r.Ki.Item,{label:"Gender Identity",children:j.map(function(O){return(0,e.jsx)(r.$n,{selected:O.gender_key===v,onClick:function(){return l("gender_id",{gender_id:O.gender_key})},children:O.gender_name},O.gender_key)})})]})})},x=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.ear_style,v=f.ear_styles;return(0,e.jsxs)(r.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,o.Ul)(v,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return l("ear",{ref:E.instance})},selected:E.name===m,children:E.name},E.instance)})]})},d=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.tail_style,v=f.tail_styles;return(0,e.jsxs)(r.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,o.Ul)(v,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return l("tail",{ref:E.instance})},selected:E.name===m,children:E.name},E.instance)})]})},a=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.wing_style,v=f.wing_styles;return(0,e.jsxs)(r.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{clear:!0})},selected:m===null,children:"-- Not Set --"}),(0,o.Ul)(v,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return l("wing",{ref:E.instance})},selected:E.name===m,children:E.name},E.instance)})]})}},47565:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerColors:function(){return r},AppearanceChangerMarkings:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.change_eye_color,i=a.change_skin_tone,l=a.change_skin_color,f=a.change_hair_color,m=a.change_facial_hair_color,v=a.eye_color,E=a.skin_color,j=a.hair_color,O=a.facial_hair_color,M=a.ears_color,_=a.ears2_color,I=a.tail_color,S=a.tail2_color,T=a.wing_color,A=a.wing2_color;return(0,e.jsxs)(t.wn,{title:"Colors",fill:!0,scrollable:!0,children:[c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:v,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("eye_color")},children:"Change Eye Color"})]}):"",i?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("skin_tone")},children:"Change Skin Tone"})}):"",l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:E,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("skin_color")},children:"Change Skin Color"})]}):"",f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:j,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("hair_color")},children:"Change Hair Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:M,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears_color")},children:"Change Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:_,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("ears2_color")},children:"Change Secondary Ears Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:I,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail_color")},children:"Change Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:S,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("tail2_color")},children:"Change Secondary Tail Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:T,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing_color")},children:"Change Wing Color"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:A,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,m?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:O,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.markings;return(0,e.jsxs)(t.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:1,name:"na"})},children:"Add Marking"})}),(0,e.jsx)(t.Ki,{children:c.map(function(i){return(0,e.jsxs)(t.Ki.Item,{label:i.marking_name,children:[(0,e.jsx)(t.BK,{color:i.marking_color,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:4,name:i.marking_name})},children:"Change Color"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:0,name:i.marking_name})},children:"-"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:3,name:i.marking_name})},children:"Move down"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:2,name:i.marking_name})},children:"Move up"})]},i.marking_name)})})]})}},70972:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerFacialHair:function(){return s},AppearanceChangerHair:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.hair_style,i=a.hair_styles;return(0,e.jsx)(t.wn,{title:"Hair",fill:!0,scrollable:!0,children:i.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return d("hair",{hair:l.hairstyle})},selected:l.hairstyle===c,children:l.hairstyle},l.hairstyle)})})},s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.facial_hair_style,i=a.facial_hair_styles;return(0,e.jsx)(t.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:i.map(function(l){return(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair",{facial_hair:l.facialhairstyle})},selected:l.facialhairstyle===c,children:l.facialhairstyle},l.facialhairstyle)})})}},66779:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChanger:function(){return c},AppearanceChangerDefaultError:function(){return i}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),g=n(15581),x=n(31607),d=n(47565),a=n(70972),c=function(l){var f=(0,r.Oc)(),m=f.act,v=f.config,E=f.data,j=E.name,O=E.specimen,M=E.gender,_=E.gender_id,I=E.hair_style,S=E.facial_hair_style,T=E.ear_style,A=E.tail_style,K=E.wing_style,W=E.change_race,$=E.change_gender,k=E.change_eye_color,z=E.change_skin_tone,H=E.change_skin_color,G=E.change_hair_color,Y=E.change_facial_hair_color,ee=E.change_hair,le=E.change_facial_hair,ne=E.mapRef,Q=v.title,Z=[],V=k||z||H||G||Y,q=(0,e.jsx)(s.az,{});Z[-1]=(0,e.jsx)(i,{}),Z[0]=W?(0,e.jsx)(x.AppearanceChangerSpecies,{}):(0,e.jsx)(i,{}),Z[1]=$?(0,e.jsx)(x.AppearanceChangerGender,{}):(0,e.jsx)(i,{}),Z[2]=V?(0,e.jsx)(d.AppearanceChangerColors,{}):(0,e.jsx)(i,{}),Z[3]=ee?(0,e.jsx)(a.AppearanceChangerHair,{}):(0,e.jsx)(i,{}),Z[4]=le?(0,e.jsx)(a.AppearanceChangerFacialHair,{}):(0,e.jsx)(i,{}),Z[5]=ee?(0,e.jsx)(x.AppearanceChangerEars,{}):(0,e.jsx)(i,{}),Z[6]=ee?(0,e.jsx)(x.AppearanceChangerTails,{}):(0,e.jsx)(i,{}),Z[7]=ee?(0,e.jsx)(x.AppearanceChangerWings,{}):(0,e.jsx)(i,{}),Z[8]=ee?(0,e.jsx)(d.AppearanceChangerMarkings,{}):(0,e.jsx)(i,{});var ce=-1;W?ce=0:$?ce=1:V?ce=2:ee?ce=4:le&&(ce=5);var se=(0,t.useState)(ce),fe=se[0],ge=se[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,o.jT)(Q),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(s.wn,{title:"Reflection",children:(0,e.jsxs)(s.so,{children:[(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Name",children:j}),(0,e.jsx)(s.Ki.Item,{label:"Species",color:W?void 0:"grey",children:O}),(0,e.jsx)(s.Ki.Item,{label:"Biological Sex",color:$?void 0:"grey",children:M?(0,o.ZH)(M):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Gender Identity",color:V?void 0:"grey",children:_?(0,o.ZH)(_):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Hair Style",color:ee?void 0:"grey",children:I?(0,o.ZH)(I):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Facial Hair Style",color:le?void 0:"grey",children:S?(0,o.ZH)(S):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Ear Style",color:ee?void 0:"grey",children:T?(0,o.ZH)(T):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Tail Style",color:ee?void 0:"grey",children:A?(0,o.ZH)(A):"Not Set"}),(0,e.jsx)(s.Ki.Item,{label:"Wing Style",color:ee?void 0:"grey",children:K?(0,o.ZH)(K):"Not Set"})]})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.D1,{style:{width:"256px",height:"256px"},params:{id:ne,type:"map"}})})]})}),(0,e.jsxs)(s.tU,{children:[W?(0,e.jsx)(s.tU.Tab,{selected:fe===0,onClick:function(){return ge(0)},children:"Race"}):null,$?(0,e.jsx)(s.tU.Tab,{selected:fe===1,onClick:function(){return ge(1)},children:"Gender & Sex"}):null,V?(0,e.jsx)(s.tU.Tab,{selected:fe===2,onClick:function(){return ge(2)},children:"Colors"}):null,ee?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.tU.Tab,{selected:fe===3,onClick:function(){return ge(3)},children:"Hair"}),(0,e.jsx)(s.tU.Tab,{selected:fe===5,onClick:function(){return ge(5)},children:"Ear"}),(0,e.jsx)(s.tU.Tab,{selected:fe===6,onClick:function(){return ge(6)},children:"Tail"}),(0,e.jsx)(s.tU.Tab,{selected:fe===7,onClick:function(){return ge(7)},children:"Wing"}),(0,e.jsx)(s.tU.Tab,{selected:fe===8,onClick:function(){return ge(8)},children:"Markings"})]}):null,le?(0,e.jsx)(s.tU.Tab,{selected:fe===4,onClick:function(){return ge(4)},children:"Facial Hair"}):null]}),(0,e.jsx)(s.az,{height:"43%",children:Z[fe]})]})})},i=function(l){return(0,e.jsx)(s.az,{textColor:"red",children:"Disabled"})}},44212:function(y,u,n){"use strict";n.r(u)},8910:function(y,u,n){"use strict";n.r(u),n.d(u,{ArcadeBattle:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.temp,i=a.enemyAction,l=a.enemyName,f=a.playerHP,m=a.playerMP,v=a.enemyHP,E=a.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:l,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:c}),(0,e.jsx)(t.az,{children:!E&&i})]}),(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(t.z2,{value:f,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[f,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:m,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m,"MP"]})})]})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(t.z2,{value:v,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[v,"HP"]})})})})]}),E&&(0,e.jsx)(t.$n,{fluid:!0,mt:1,color:"green",onClick:function(){return d("newgame")},children:"New Game"})||(0,e.jsxs)(t.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return d("attack")},children:"Attack!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return d("heal")},children:"Heal!"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return d("charge")},children:"Recharge!"})})]})]})})})}},61968:function(y,u,n){"use strict";n.r(u),n.d(u,{AreaScrubberControl:function(){return x}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),g=n(15581),x=function(a){var c=(0,r.Oc)(),i=c.act,l=c.data,f=(0,t.useState)(!1),m=f[0],v=f[1],E=l.scrubbers;return E?(0,e.jsx)(g.p8,{width:600,height:400,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsxs)(s.wn,{children:[(0,e.jsxs)(s.so,{wrap:"wrap",children:[(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return i("scan")},children:"Scan"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:m,onClick:function(){return v(!m)},children:"Show Areas"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return i("allon")},children:"All On"})}),(0,e.jsx)(s.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(s.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return i("alloff")},children:"All Off"})})]}),(0,e.jsx)(s.so,{wrap:"wrap",children:E.map(function(j){return(0,e.jsx)(s.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(d,{scrubber:j,showArea:m})},j.id)})})]})})}):(0,e.jsxs)(s.wn,{title:"Error",children:[(0,e.jsx)(s.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(s.$n,{fluid:!0,icon:"search",onClick:function(){return i("scan")},children:"Scan"})]})},d=function(a){var c=(0,r.Oc)().act,i=a.scrubber,l=a.showArea;return(0,e.jsxs)(s.wn,{title:i.name,children:[(0,e.jsx)(s.$n,{fluid:!0,icon:"power-off",selected:i.on,onClick:function(){return c("toggle",{id:i.id})},children:i.on?"Enabled":"Disabled"}),(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Pressure",children:[i.pressure," kPa"]}),(0,e.jsxs)(s.Ki.Item,{label:"Flow Rate",children:[i.flow_rate," L/s"]}),(0,e.jsxs)(s.Ki.Item,{label:"Load",children:[i.load," W"]}),l&&(0,e.jsx)(s.Ki.Item,{label:"Area",children:(0,o.Sn)(i.area)})]})]})}},29615:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyInfrared:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Infrared Unit",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Laser",children:(0,e.jsx)(t.$n,{icon:"power-off",fluid:!0,selected:c,onClick:function(){return d("state")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:i,onClick:function(){return d("visible")},children:i?"Able to be seen":"Invisible"})})]})})})})}},95027:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyProx:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.timing,f=i.time,m=i.range,v=i.maxRange,E=i.scanning;return(0,e.jsx)(g.p8,{children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:l,onClick:function(){return c("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:f,minValue:0,maxValue:600,format:function(j){return(0,s.fU)((0,o.LI)(j*10,0))},onDrag:function(j){return c("set_time",{time:j})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{step:1,minValue:1,value:m,maxValue:v,onDrag:function(j){return c("range",{range:j})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:E?"lock":"lock-open",selected:E,onClick:function(){return c("scanning")},children:E?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},18721:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyTimer:function(){return d}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=n(46836),d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.timing,m=l.time;return(0,e.jsx)(g.p8,{children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:f,onClick:function(){return i("timing")},children:f?"Counting Down":"Disabled"}),children:(0,e.jsx)(x.NumberInputModal,{animated:!0,fluid:!0,step:1,value:m,minValue:0,maxValue:600,format:function(v){return(0,s.fU)((0,o.LI)(v*10,0))},onDrag:function(v){return i("set_time",{time:v})}})})})})})})}},16561:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosAlertConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.priority_alarms,i=c===void 0?[]:c,l=a.minor_alarms,f=l===void 0?[]:l;return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[i.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),i.map(function(m){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return d("clear",{ref:m.ref})},children:m.name})},m.name)}),f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),f.map(function(m){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return d("clear",{ref:m.ref})},children:m.name})},m.name)})]})})})})}},74737:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosControl:function(){return x},AtmosControlContent:function(){return d}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),s=n(88569),g=n(15581),x=function(a){return(0,e.jsx)(g.p8,{width:600,height:440,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var c=(0,r.Oc)(),i=c.act,l=c.data,f=c.config,m=(0,o.Ul)(l.alarms||[],function(S){return S.name}),v=(0,t.useState)(0),E=v[0],j=v[1],O=(0,t.useState)(1),M=O[0],_=O[1],I;return E===0?I=(0,e.jsx)(s.wn,{title:"Alarms",children:m.map(function(S){return(0,e.jsx)(s.$n,{color:S.danger===2?"bad":S.danger===1?"average":"",onClick:function(){return i("alarm",{alarm:S.ref})},children:S.name},S.name)})}):E===1&&(I=(0,e.jsx)(s.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(s.tx,{zoomScale:l.zoomScale,onZoom:function(S){return _(S)},children:m.filter(function(S){return~~S.z===~~f.mapZLevel}).map(function(S){return(0,e.jsx)(s.tx.Marker,{x:S.x,y:S.y,zoom:M,icon:"bell",tooltip:S.name,color:S.danger?"red":"green",onClick:function(){return i("alarm",{alarm:S.ref})}},S.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.tU,{children:[(0,e.jsxs)(s.tU.Tab,{selected:E===0,onClick:function(){return j(0)},children:[(0,e.jsx)(s.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(s.tU.Tab,{selected:E===1,onClick:function(){return j(1)},children:[(0,e.jsx)(s.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(s.az,{m:2,children:I})]})}},13238:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosFilter:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.rate,l=a.max_rate,f=a.last_flow_rate,m=a.filter_types,v=m===void 0?[]:m;return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return d("power")},children:c?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(t.az,{inline:!0,mr:1,children:(0,e.jsx)(t.zv,{value:f,format:function(E){return E+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:i,width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(E){return d("rate",{rate:E})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:i===l,onClick:function(){return d("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:v.map(function(E){return(0,e.jsx)(t.$n,{selected:E.selected,onClick:function(){return d("filter",{filterset:E.f_type})},children:E.name},E.name)})})]})})})})}},68541:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosMixer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.set_pressure,l=a.max_pressure,f=a.node1_concentration,m=a.node2_concentration,v=a.node1_dir,E=a.node2_dir;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.$n,{icon:c?"power-off":"times",selected:c,onClick:function(){return d("power")},children:c?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:i,unit:"kPa",width:"75px",minValue:0,maxValue:l,step:10,onChange:function(j){return d("pressure",{pressure:j})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:i===l,onClick:function(){return d("pressure",{pressure:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Divider,{size:1}),(0,e.jsx)(t.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(t.Ki.Item,{label:"Node 1 ("+v+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:f,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(j){return d("node1",{concentration:j})}})}),(0,e.jsx)(t.Ki.Item,{label:"Node 2 ("+E+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:m,unit:"%",width:"60px",step:1,minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(j){return d("node2",{concentration:j})}})})]})})})})}},43855:function(y,u,n){"use strict";n.r(u),n.d(u,{Autolathe:function(){return m}});var e=n(20462),o=n(7402),t=n(15813),r=n(61282),s=n(7081),g=n(88569),x=n(15581),d=n(2858);function a(v,E){(E==null||E>v.length)&&(E=v.length);for(var j=0,O=new Array(E);j=v.length?{done:!0}:{done:!1,value:v[O++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f=function(v,E,j){var O=function(){var T=I.value,A=E.find(function(K){return K.name===T});if(!A)return"continue";if(A.amount=0)&&(j[M]=v[M]);return j}var a={Alphabetical:function(v,E){return v.name>E.name},"By availability":function(v,E){return-(v.affordable-E.affordable)},"By price":function(v,E){return v.price-E.price}},c=function(v){var E=function(ne){$(ne)},j=function(ne){H(ne)},O=function(ne){ee(ne)},M=(0,r.Oc)(),_=M.act,I=M.data,S=I.processing,T=I.points,A=I.beaker,K=(0,t.useState)(""),W=K[0],$=K[1],k=(0,t.useState)("Alphabetical"),z=k[0],H=k[1],G=(0,t.useState)(!1),Y=G[0],ee=G[1];return(0,e.jsx)(g.p8,{width:400,height:450,children:(0,e.jsx)(g.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:S&&(0,e.jsx)(s.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(s.wn,{children:[T," points available.",(0,e.jsx)(s.$n,{ml:1,icon:"blender",onClick:function(){return _("activate")},children:"Activate"}),(0,e.jsx)(s.$n,{ml:1,icon:"eject",disabled:!A,onClick:function(){return _("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(l,{searchText:W,sortOrder:z,descending:Y,onSearchText:E,onSortOrder:j,onDescending:O}),(0,e.jsx)(i,{searchText:W,sortOrder:z,descending:Y})]})})})},i=function(v){var E=(0,r.Oc)(),j=E.act,O=E.data,M=O.points,_=O.items,I=_===void 0?[]:_,S=O.build_eff,T=O.beaker,A=(0,o.XZ)(v.searchText,function($){return $[0]}),K=!1,W=Object.entries(I).map(function($){var k=Object.entries($[1]).filter(A).map(function(z){return z[1].affordable=+(M>=z[1].price/S),z[1]}).sort(a[v.sortOrder]);if(k.length!==0)return v.descending&&(k=k.reverse()),K=!0,(0,e.jsx)(m,{title:$[0],items:k,build_eff:S,beaker:T},$[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:K?W:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(E,j){return v.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(E){return v.onSortOrder(E)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},f=function(v,E){return!(!v.affordable||v.reagent&&!E)},m=function(v){var E=(0,r.Oc)(),j=E.act,O=E.data,M=v.title,_=v.items,I=v.build_eff,S=v.beaker,T=d(v,["title","items","build_eff","beaker"]);return(0,e.jsx)(s.Nt,x({open:!0,title:M},T,{children:_.map(function(A){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:A.name}),(0,e.jsx)(s.$n,{disabled:!f(A,S),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return j("purchase",{cat:M,name:A.name})},children:(A.price/I).toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},A.name)})}))}},13469:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerBodyRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act,x=s.bodyrecords;return(0,e.jsx)(t.wn,{title:"Body Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return g("menu",{menu:"Main"})},children:"Back"}),children:x?x.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("view_brec",{view_brec:d.recref})},children:d.name},d.name)}):""})}},17796:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerMain:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Database Functions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("menu",{menu:"Stock Records"})},children:"View Stock Body Records"})]})}},24983:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerOOCNotes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act,x=s.activeBodyRecord;return(0,e.jsx)(t.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return g("menu",{menu:"Specific Record"})},children:"Back"}),style:{wordBreak:"break-all"},children:x&&x.booc||"ERROR: Body record not found!"})}},31687:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerSpecificRecord:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(g){var x=(0,t.Oc)().act,d=g.activeBodyRecord,a=g.mapRef;return d?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return x("menu",{menu:"Main"})},children:"Back"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:d.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:d.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"bio_gender",target_value:1})},children:(0,o.ZH)(d.gender)})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:d.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[d.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",disabled:!d.booc,onClick:function(){return x("boocnotes")},children:"View OOC Notes"})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:a,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"size_multiplier",target_value:1})},children:d.scale})}),Object.keys(d.styles).map(function(c){var i=d.styles[c];return(0,e.jsxs)(r.Ki.Item,{label:c,children:[i.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:i.styleHref,target_value:1})},children:i.style}):"",i.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:i.colorHref,target_value:1})},children:i.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:i.color,style:{border:"1px solid #fff"}})]}):"",i.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:i.colorHref2,target_value:1})},children:i.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:i.color2,style:{border:"1px solid #fff"}})]}):""]},c)}),(0,e.jsx)(r.Ki.Item,{label:"Digitigrade",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return x("href_conversion",{target_href:"digitigrade",target_value:1})},children:d.digitigrade?"Yes":"No"})}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return x("href_conversion",{target_href:"marking_style",target_value:1})},children:"Add Marking"}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(d.markings).map(function(c){var i=d.markings[c];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return x("href_conversion",{target_href:"marking_remove",target_value:c})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:i,onClick:function(){return x("href_conversion",{target_href:"marking_color",target_value:c})},children:c})})]})},c)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})}},99123:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerStockRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act,x=s.stock_bodyrecords;return(0,e.jsx)(t.wn,{title:"Stock Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return g("menu",{menu:"Main"})},children:"Back"}),children:x.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return g("view_stock_brec",{view_stock_brec:d})},children:d},d)})})}},87706:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesigner:function(){return c}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(13469),g=n(17796),x=n(24983),d=n(31687),a=n(99123),c=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.menu,E=m.disk,j=m.diskStored,O=m.activeBodyRecord,M=m.stock_bodyrecords,_=m.bodyrecords,I=m.mapRef,S={Main:(0,e.jsx)(g.BodyDesignerMain,{}),"Body Records":(0,e.jsx)(s.BodyDesignerBodyRecords,{bodyrecords:_}),"Stock Records":(0,e.jsx)(a.BodyDesignerStockRecords,{stock_bodyrecords:M}),"Specific Record":(0,e.jsx)(d.BodyDesignerSpecificRecord,{activeBodyRecord:O,mapRef:I}),"OOC Notes":(0,e.jsx)(x.BodyDesignerOOCNotes,{activeBodyRecord:O})},T=S[v];return(0,e.jsx)(r.p8,{width:400,height:650,children:(0,e.jsxs)(r.p8.Content,{children:[E?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("savetodisk")},disabled:!O,children:"Save To Disk"}),(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return f("loadfromdisk")},disabled:!j,children:"Load From Disk"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return f("ejectdisk")},children:"Eject"})]}):"",T]})})}},25375:function(y,u,n){"use strict";n.r(u)},85168:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerEmpty:function(){return t}});var e=n(20462),o=n(88569),t=function(){return(0,e.jsx)(o.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(o.so,{height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},43780:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMain:function(){return a}});var e=n(20462),o=n(88569),t=n(49354),r=n(53187),s=n(81417),g=n(32915),x=n(73457),d=n(70765),a=function(c){var i=c.occupant;return(0,e.jsxs)(o.az,{children:[(0,e.jsx)(s.BodyScannerMainOccupant,{occupant:i}),(0,e.jsx)(d.BodyScannerMainReagents,{occupant:i}),(0,e.jsx)(t.BodyScannerMainAbnormalities,{occupant:i}),(0,e.jsx)(r.BodyScannerMainDamage,{occupant:i}),(0,e.jsx)(g.BodyScannerMainOrgansExternal,{organs:i.extOrgan}),(0,e.jsx)(x.BodyScannerMainOrgansInternal,{organs:i.intOrgan})]})}},49354:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainAbnormalities:function(){return r}});var e=n(20462),o=n(88569),t=n(47710),r=function(s){var g=s.occupant,x=g.hasBorer||g.blind||g.colourblind||g.nearsighted||g.hasVirus||g.husked;return x=x||g.humanPrey||g.livingPrey||g.objectPrey,x?(0,e.jsx)(o.wn,{title:"Abnormalities",children:t.abnormalities.map(function(d,a){if(g[d[0]])return(0,e.jsx)(o.az,{color:d[1],bold:d[1]==="bad",children:d[2](g)},a)})}):(0,e.jsx)(o.wn,{title:"Abnormalities",children:(0,e.jsx)(o.az,{color:"label",children:"No abnormalities found."})})}},53187:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainDamage:function(){return g}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),s=n(65518),g=function(d){var a=d.occupant;return(0,e.jsx)(t.wn,{title:"Damage",children:(0,e.jsx)(t.XI,{children:(0,s.mapTwoByTwo)(r.damages,function(c,i,l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI.Row,{color:"label",children:[(0,e.jsxs)(t.XI.Cell,{children:[c[0],":"]}),(0,e.jsx)(t.XI.Cell,{children:!!i&&i[0]+":"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(x,{value:a[c[1]],marginBottom:l0&&"0.5rem",value:a.totalLoss/100,ranges:r.damageRange,children:[(0,e.jsxs)(t.az,{style:{float:"left"},inline:!0,children:[!!a.bruteLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"bone"}),(0,o.Mg)(a.bruteLoss),"\xA0",(0,e.jsx)(t.m_,{position:"top",content:"Brute damage"})]}),!!a.fireLoss&&(0,e.jsxs)(t.az,{inline:!0,position:"relative",children:[(0,e.jsx)(t.In,{name:"fire"}),(0,o.Mg)(a.fireLoss),(0,e.jsx)(t.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(t.az,{inline:!0,children:(0,o.Mg)(a.totalLoss)})]})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([a.internalBleeding&&"Internal bleeding",!!a.status.bleeding&&"External bleeding",a.lungRuptured&&"Ruptured lung",a.status.destroyed&&"Destroyed",!!a.status.broken&&a.status.broken,(0,s.germStatus)(a.germ_level),!!a.open&&"Open incision"])}),(0,e.jsxs)(t.az,{inline:!0,children:[(0,s.reduceOrganStatus)([!!a.status.splinted&&"Splinted",!!a.status.robotic&&"Robotic",!!a.status.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})]),(0,s.reduceOrganStatus)(a.implants.map(function(i){return i.known?i.name:"Unknown object"}))]})]})]},c)})]})})}},73457:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainOrgansInternal:function(){return g}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),s=n(65518),g=function(x){var d=x.organs;return d.length===0?(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsx)(t.az,{color:"label",children:"N/A"})}):(0,e.jsx)(t.wn,{title:"Internal Organs",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(t.XI.Cell,{textAlign:"right",children:"Injuries"})]}),d.map(function(a,c){return(0,e.jsxs)(t.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(t.XI.Cell,{width:"33%",children:a.name}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:a.maxHealth/100,value:a.damage/100,mt:c>0&&"0.5rem",ranges:r.damageRange,children:(0,o.Mg)(a.damage)})}),(0,e.jsxs)(t.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(t.az,{color:"average",inline:!0,children:(0,s.reduceOrganStatus)([(0,s.germStatus)(a.germ_level),!!a.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(t.az,{inline:!0,children:(0,s.reduceOrganStatus)([a.robotic===1&&"Robotic",a.robotic===2&&"Assisted",!!a.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})])})]})]},c)})]})})}},70765:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainReagents:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Blood Reagents",children:s.reagents?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.reagents.map(function(g){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:g.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[g.amount," Units"," ",g.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},g.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(o.wn,{title:"Stomach Reagents",children:s.ingested?(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Reagent"}),(0,e.jsx)(o.XI.Cell,{textAlign:"right",children:"Amount"})]}),s.ingested.map(function(g){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:g.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[g.amount," Units"," ",g.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},g.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Stomach Reagents Detected"})})]})}},47710:function(y,u,n){"use strict";n.r(u),n.d(u,{abnormalities:function(){return o},damageRange:function(){return r},damages:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["hasBorer","bad",function(s){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(s){return"Viral pathogen detected in blood stream."}],["blind","average",function(s){return"Cataracts detected."}],["colourblind","average",function(s){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(s){return"Retinal misalignment detected."}],["humanPrey","average",function(s){return"Foreign Humanoid(s) detected: "+s.humanPrey}],["livingPrey","average",function(s){return"Foreign Creature(s) detected: "+s.livingPrey}],["objectPrey","average",function(s){return"Foreign Object(s) detected: "+s.objectPrey}],["husked","bad",function(s){return"Anatomical structure lost, resuscitation not possible!"}]],t=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],r={average:[.25,.5],bad:[.5,1/0]}},65518:function(y,u,n){"use strict";n.r(u),n.d(u,{germStatus:function(){return s},mapTwoByTwo:function(){return t},reduceOrganStatus:function(){return r}});var e=n(20462),o=n(88569);function t(g,x){for(var d=[],a=0;a0?g.reduce(function(x,d){return x===null?d:(0,e.jsxs)(e.Fragment,{children:[x,!!d&&(0,e.jsx)(o.az,{children:d})]})}):null}function s(g){if(g>100){if(g<300)return"mild infection";if(g<400)return"mild infection+";if(g<500)return"mild infection++";if(g<700)return"acute infection";if(g<800)return"acute infection+";if(g<900)return"acute infection++";if(g>=900)return"septic"}return""}},9665:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScanner:function(){return g}});var e=n(20462),o=n(7081),t=n(15581),r=n(85168),s=n(43780),g=function(x){var d=(0,o.Oc)().data,a=d.occupied,c=d.occupant,i=c===void 0?{}:c,l=a?(0,e.jsx)(s.BodyScannerMain,{occupant:i}):(0,e.jsx)(r.BodyScannerEmpty,{});return(0,e.jsx)(t.p8,{width:690,height:600,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:l})})}},78006:function(y,u,n){"use strict";n.r(u)},11265:function(y,u,n){"use strict";n.r(u),n.d(u,{BombTester:function(){return a}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581);function g(){return g=Object.assign||function(i){for(var l=1;l.5,_=Math.random()>.5;return v.state={x:M?E:0,y:_?j:0,reverseX:!1,reverseY:!1},v.process=setInterval(function(){v.setState(function(I){var S=g({},I);return S.reverseX?S.x-O<-5?(S.reverseX=!1,S.x+=O):S.x-=O:S.x+O>E?(S.reverseX=!0,S.x-=O):S.x+=O,S.reverseY?S.y-O<-20?(S.reverseY=!1,S.y+=O):S.y-=O:S.y+O>j?(S.reverseY=!0,S.y-=O):S.y+=O,S})},1),v}var f=l.prototype;return f.componentWillUnmount=function(){clearInterval(this.process)},f.render=function(){var v=this.state,E=v.x,j=v.y,O={position:"relative",left:E+"px",top:j+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:O,name:"bomb",size:10,color:"red"})})})},l}(o.Component)},5536:function(y,u,n){"use strict";n.r(u),n.d(u,{BotanyEditor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.activity,i=a.degradation,l=a.disk,f=a.sourceName,m=a.locus,v=a.loaded;return c?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:l&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:f}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[i,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:m})]}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:v})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(t.$n,{mt:1,icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},68734:function(y,u,n){"use strict";n.r(u),n.d(u,{BotanyIsolator:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.geneMasks,i=a.activity,l=a.degradation,f=a.disk,m=a.loaded,v=a.hasGenetics,E=a.sourceName;return i?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Buffered Genetic Data",children:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Gene decay",children:[l,"%"]}),f&&c.length&&c.map(function(j){return(0,e.jsx)(t.Ki.Item,{label:j.mask,children:(0,e.jsx)(t.$n,{mb:-1,icon:"download",onClick:function(){return d("get_gene",{get_gene:j.tag})},children:"Extract"})},j.mask)})||null]}),f&&(0,e.jsxs)(t.az,{mt:1,children:[(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.IC,{warning:!0,children:"No Data Buffered."}),f&&(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(t.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(t.wn,{title:"Loaded Material",children:m&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:m})}),(0,e.jsx)(t.$n,{mt:1,icon:"cog",onClick:function(){return d("scan_genome")},children:"Process Genome"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(t.IC,{warning:!0,children:"No packet loaded."})})]})})}},46141:function(y,u,n){"use strict";n.r(u),n.d(u,{BrigTimer:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.time_left,f=i.max_time_left,m=i.timing,v=i.flash_found,E=i.flash_charging,j=i.preset_short,O=i.preset_medium,M=i.preset_long;return(0,e.jsx)(g.p8,{width:400,height:138,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",selected:m,onClick:function(){return c(m?"stop":"start")},children:m?"Stop":"Start"}),v&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:E,onClick:function(){return c("flash")},children:E?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:l/10,minValue:0,maxValue:f/10,format:function(_){return(0,s.fU)((0,o.LI)(_*10,0))},onDrag:function(_){return c("time",{time:_})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"short"})},children:"Add "+(0,s.fU)(j)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"medium"})},children:"Add "+(0,s.fU)(O)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return c("preset",{preset:"long"})},children:"Add "+(0,s.fU)(M)})})]})]})})})}},18490:function(y,u,n){"use strict";n.r(u),n.d(u,{CameraConsole:function(){return f},CameraConsoleContent:function(){return m},prevNextCamera:function(){return c},selectCameras:function(){return l}});var e=n(20462),o=n(7402),t=n(15813),r=n(65380),s=n(61282),g=n(61358),x=n(7081),d=n(88569),a=n(15581),c=function(v,E){var j,O;if(!E)return[];var M=v.findIndex(function(_){return _.name===E.name});return[(j=v[M-1])==null?void 0:j.name,(O=v[M+1])==null?void 0:O.name]};function i(v){return v!=null}var l=function(v,E,j){E===void 0&&(E=""),j===void 0&&(j="");var O=(0,s.XZ)(E,function(M){return M.name});return(0,t.L)([function(M){return(0,o.pb)(M,function(_){return i(_==null?void 0:_.name)})},function(M){return E?(0,o.pb)(M,O):M},function(M){return j?(0,o.pb)(M,function(_){return _.networks.includes(j)}):M},function(M){return(0,o.Ul)(M,function(_){return _.name})}])(v)},f=function(v){var E=(0,x.Oc)(),j=E.act,O=E.data,M=O.mapRef,_=O.activeCamera,I=O.cameras,S=l(I),T=c(S,_),A=T[0],K=T[1];return(0,e.jsxs)(a.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),_&&_.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(d.$n,{icon:"chevron-left",disabled:!A,onClick:function(){return j("switch_camera",{name:A})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",disabled:!K,onClick:function(){return j("switch_camera",{name:K})}}),"| PAN:",(0,e.jsx)(d.$n,{icon:"chevron-left",onClick:function(){return j("pan",{dir:8})}}),(0,e.jsx)(d.$n,{icon:"chevron-up",onClick:function(){return j("pan",{dir:1})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",onClick:function(){return j("pan",{dir:4})}}),(0,e.jsx)(d.$n,{icon:"chevron-down",onClick:function(){return j("pan",{dir:2})}})]}),(0,e.jsx)(d.D1,{className:"CameraConsole__map",params:{id:M,type:"map"}})]})]})},m=function(v){var E=(0,x.Oc)(),j=E.act,O=E.data,M=(0,g.useState)(""),_=M[0],I=M[1],S=(0,g.useState)(""),T=S[0],A=S[1],K=O.activeCamera,W=O.allNetworks,$=O.cameras;W.sort();var k=l($,_,T);return(0,e.jsxs)(d.so,{direction:"column",height:"100%",children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(z,H){return I(H)}})}),(0,e.jsx)(d.so.Item,{children:(0,e.jsxs)(d.so,{children:[(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.ms,{autoScroll:!1,mb:1,width:T?"155px":"177px",selected:T,displayText:T||"No Filter",options:W,onSelected:function(z){return A(z)}})}),T?(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){A("")}})}):""]})}),(0,e.jsx)(d.so.Item,{height:"100%",children:(0,e.jsx)(d.wn,{fill:!0,scrollable:!0,children:k.map(function(z){return(0,e.jsx)("div",{title:z.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",K&&z.name===K.name&&"Button--selected"]),onClick:function(){return j("switch_camera",{name:z.name})},children:z.name},z.name)})})})]})}},82195:function(y,u,n){"use strict";n.r(u),n.d(u,{Canister:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.connected,f=i.can_relabel,m=i.pressure,v=i.releasePressure,E=i.defaultReleasePressure,j=i.minReleasePressure,O=i.maxReleasePressure,M=i.valveOpen,_=i.holding;return(0,e.jsx)(g.p8,{width:360,height:242,children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!f,onClick:function(){return c("relabel")},children:"Relabel"}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:m,format:function(I){return I<1e4?(0,o.Mg)(I)+" kPa":(0,s.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{width:"60px",size:1.25,color:!!M&&"yellow",value:v,unit:"kPa",minValue:j,maxValue:O,stepPixelSize:1,onDrag:function(I,S){return c("pressure",{pressure:S})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return c("pressure",{pressure:O})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return c("pressure",{pressure:E})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:M?_?"caution":"danger":null,onClick:function(){return c("valve")},children:M?"Open":"Closed"})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:l?"plug":"times",color:l?"good":"bad"}),(0,e.jsx)(r.m_,{content:l?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!_&&(0,e.jsx)(r.$n,{icon:"eject",color:M&&"danger",onClick:function(){return c("eject")},children:"Eject"}),children:[!!_&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:_.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:_.pressure})," kPa"]})]}),!_&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},64808:function(y,u,n){"use strict";n.r(u),n.d(u,{Canvas:function(){return f}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581);function g(){return g=Object.assign||function(m){for(var v=1;v=0)&&(E[O]=m[O]);return E}function a(m,v){return a=Object.setPrototypeOf||function(j,O){return j.__proto__=O,j},a(m,v)}var c=24,i=function(m){"use strict";x(v,m);function v(j){var O;return O=m.call(this,j)||this,O.canvasRef=(0,o.createRef)(),O.onCVClick=j.onCanvasClick,O}var E=v.prototype;return E.componentDidMount=function(){this.drawCanvas(this.props)},E.componentDidUpdate=function(){this.drawCanvas(this.props)},E.drawCanvas=function(O){var M=this.canvasRef.current,_=M.getContext("2d"),I=O.value;if(I){var S=I.length;if(S){var T=I[0].length,A=Math.round(M.width/S),K=Math.round(M.height/T);_.save(),_.scale(A,K);for(var W=0;W=0)&&(E[O]=m[O]);return E}var a={Alphabetical:function(m,v){return m.name>v.name},"By price":function(m,v){return m.price-v.price}},c=function(){var m=function($){M($)},v=function($){S($)},E=function($){K($)},j=(0,t.useState)(""),O=j[0],M=j[1],_=(0,t.useState)("Alphabetical"),I=_[0],S=_[1],T=(0,t.useState)(!1),A=T[0],K=T[1];return(0,e.jsx)(g.p8,{width:400,height:450,children:(0,e.jsx)(g.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i,{sortOrder:I,descending:A,onSearchText:m,onSortOrder:v,onDescending:E}),(0,e.jsx)(l,{searchText:O,sortOrder:I,descending:A})]})})})},i=function(m){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(v,E){return m.onSearchText(E)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:m.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(v){return m.onSortOrder(v)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:m.descending?"arrow-down":"arrow-up",height:"19px",tooltip:m.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return m.onDescending(!m.descending)}})})]})})},l=function(m){var v=(0,r.Oc)(),E=v.act,j=v.data,O=j.items,M=(0,o.XZ)(m.searchText,function(S){return S[0]}),_=!1,I=Object.entries(O).map(function(S){var T=Object.entries(S[1]).filter(M).map(function(A){return A[1]}).sort(a[m.sortOrder]);if(T.length!==0)return m.descending&&(T=T.reverse()),_=!0,(0,e.jsx)(f,{title:S[0],items:T},S[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:_?I:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(m){var v=(0,r.Oc)().act,E=m.title,j=m.items,O=d(m,["title","items"]);return(0,e.jsx)(s.Nt,x({open:!0,title:E},O,{children:j.map(function(M){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:M.name}),(0,e.jsx)(s.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return v("purchase",{cat:E,name:M.name,price:M.price,restriction:M.restriction})},children:M.price.toLocaleString("en-US")}),(0,e.jsx)(s.az,{style:{clear:"both"}})]},M.name)})}))}},43966:function(y,u,n){"use strict";n.r(u),n.d(u,{CharacterDirectory:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=function(i){switch(i){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},x=function(i){var l=function(W){I(W)},f=(0,t.Oc)(),m=f.act,v=f.data,E=v.personalVisibility,j=v.personalTag,O=v.personalErpTag,M=(0,o.useState)(null),_=M[0],I=M[1],S=(0,o.useState)(!1),T=S[0],A=S[1];return(0,e.jsx)(s.p8,{width:640,height:480,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:_&&(0,e.jsx)(d,{overlay:_,onOverlay:l})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return A(!T)},children:T?"On":"Off"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setVisible",{overwrite_prefs:T})},children:E?"Shown":"Not Shown"})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setTag",{overwrite_prefs:T})},children:j})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("setErpTag",{overwrite_prefs:T})},children:O})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return m("editAd",{overwrite_prefs:T})},children:"Edit Ad"})})]})}),(0,e.jsx)(a,{onOverlay:l})]})})})},d=function(i){return(0,e.jsxs)(r.wn,{title:i.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return i.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{title:"Species",children:(0,e.jsx)(r.az,{children:i.overlay.species})}),(0,e.jsx)(r.wn,{title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:g(i.overlay.tag),children:i.overlay.tag})}),(0,e.jsx)(r.wn,{title:"ERP Tag",children:(0,e.jsx)(r.az,{children:i.overlay.erptag})}),(0,e.jsx)(r.wn,{title:"Character Ad",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:i.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:i.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:i.overlay.flavor_text||"Unset."})})]})},a=function(i){var l=function(K){_(K)},f=function(K){T(K)},m=(0,t.Oc)(),v=m.act,E=m.data,j=E.directory,O=(0,o.useState)("name"),M=O[0],_=O[1],I=(0,o.useState)("name"),S=I[0],T=I[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return v("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(c,{id:"name",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"Name"}),(0,e.jsx)(c,{id:"species",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"Species"}),(0,e.jsx)(c,{id:"tag",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"Vore Tag"}),(0,e.jsx)(c,{id:"erptag",sortId:M,sortOrder:S,onSortId:l,onSortOrder:f,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),j.sort(function(A,K){var W=S?1:-1;return A[M].localeCompare(K[M])*W}).map(function(A,K){return(0,e.jsxs)(r.XI.Row,{backgroundColor:g(A.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:A.name}),(0,e.jsx)(r.XI.Cell,{children:A.species}),(0,e.jsx)(r.XI.Cell,{children:A.tag}),(0,e.jsx)(r.XI.Cell,{children:A.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return i.onOverlay(A)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},K)})]})})},c=function(i){var l=i.id,f=i.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:i.sortId!==l&&"transparent",onClick:function(){i.sortId===l?i.onSortOrder(!i.sortOrder):(i.onSortId(l),i.onSortOrder(!0))},children:[f,i.sortId===l&&(0,e.jsx)(r.In,{name:i.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(y,u,n){"use strict";n.r(u),n.d(u,{CheckboxInput:function(){return c}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),g=n(19996),x=n(15581),d=n(5335),a=n(44149),c=function(i){var l=(0,r.Oc)().data,f=l.items,m=f===void 0?[]:f,v=l.min_checked,E=l.max_checked,j=l.message,O=l.timeout,M=l.title,_=(0,t.useState)([]),I=_[0],S=_[1],T=(0,t.useState)(""),A=T[0],K=T[1],W=(0,o.XZ)(A,function(z){return z}),$=m.filter(W),k=function(z){var H=I.includes(z)?I.filter(function(G){return G!==z}):[].concat(I,[z]);S(H)};return(0,e.jsxs)(x.p8,{title:M,width:425,height:300,children:[!!O&&(0,e.jsx)(a.Loader,{value:O}),(0,e.jsx)(x.p8.Content,{children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsxs)(s.IC,{info:!0,textAlign:"center",children:[(0,o.jT)(j)," ",v>0&&" (Min: "+v+")",E<50&&" (Max: "+E+")"]})}),(0,e.jsx)(s.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(s.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(s.XI,{children:$.map(function(z,H){return(0,e.jsx)(g.Hj,{className:"candystripe",children:(0,e.jsx)(g.nA,{children:(0,e.jsx)(s.$n.Checkbox,{checked:I.includes(z),disabled:I.length>=E&&!I.includes(z),fluid:!0,onClick:function(){return k(z)},children:z})})},H)})})})}),(0,e.jsxs)(s.BJ,{m:1,mb:0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(s.In,{name:"search",mt:.5})})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.pd,{fluid:!0,value:A,onInput:function(z,H){return K(H)}})})]}),(0,e.jsx)(s.BJ.Item,{mt:.7,children:(0,e.jsx)(s.wn,{children:(0,e.jsx)(d.InputButtons,{input:I})})})]})})]})}},29361:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserBeaker:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),s=n(58820),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.isBeakerLoaded,l=c.beakerCurrentVolume,f=c.beakerMaxVolume,m=c.beakerContents,v=m===void 0?[]:m,E=c.recipes,j=c.recordingRecipe,O=!!j,M=O&&j.map(function(_){return{id:_.id,name:_.id.replace(/_/," "),volume:_.amount}});return(0,e.jsx)(t.wn,{title:O?"Virtual Beaker":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(t.az,{children:[!!i&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[l," / ",f," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!i,onClick:function(){return a("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:M||i,beakerContents:M||v,buttons:function(_){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",disabled:O,onClick:function(){return a("remove",{reagent:_.id,amount:-1})},children:"Isolate"}),s.removeAmounts.map(function(I,S){return(0,e.jsx)(t.$n,{disabled:O,onClick:function(){return a("remove",{reagent:_.id,amount:I})},children:I},S)}),(0,e.jsx)(t.$n,{disabled:O,onClick:function(){return a("remove",{reagent:_.id,amount:_.volume})},children:"ALL"})]})}})})}},64776:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserChemicals:function(){return s}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=function(x){for(var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.chemicals,l=i===void 0?[]:i,f=[],m=0;m<(l.length+1)%3;m++)f.push(!0);return(0,e.jsx)(r.wn,{title:c.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:!0,buttons:(0,e.jsx)(g,{}),children:(0,e.jsxs)(r.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[l.map(function(v,E){return(0,e.jsx)(r.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(r.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",onClick:function(){return a("dispense",{reagent:v.id})},children:v.name+" ("+v.volume+")"})},E)}),f.map(function(v,E){return(0,e.jsx)(r.so.Item,{grow:"1",basis:"25%",height:"20px"},E)})]})})},g=function(x){var d=(0,t.Oc)().data,a=!!d.recordingRecipe,c=(0,o.useState)(!1),i=c[0],l=c[1];return(0,o.useEffect)(function(){if(a){var f=setInterval(function(){l(function(m){return!m})},1e3);return function(){return clearInterval(f)}}},[a]),a?(0,e.jsx)(r.m_,{content:"Recording in progress",children:(0,e.jsx)(r.In,{mt:.7,color:"bad",name:i?"circle-o":"circle"})}):null}},92090:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserRecipes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.recipes,c=d.recordingRecipe,i=!!c,l=Object.keys(a).sort();return(0,e.jsxs)(t.wn,{title:"Recipes",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[!i&&(0,e.jsx)(t.$n,{icon:"circle",onClick:function(){return x("record_recipe")},children:"Record"}),i&&(0,e.jsx)(t.$n,{icon:"ban",color:"bad",onClick:function(){return x("cancel_recording")},children:"Discard"}),i&&(0,e.jsx)(t.$n,{icon:"save",color:"green",onClick:function(){return x("save_recording")},children:"Save"}),!i&&(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"bad",onClick:function(){return x("clear_recipes")},children:"Clear All"})]}),children:[i&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"green",fontSize:1.2,bold:!0,children:"Recording In Progress..."}),(0,e.jsxs)(t.az,{color:"label",children:["Press dispenser buttons in the order you wish for them to be repeated, then click"," ",(0,e.jsx)(t.az,{color:"good",inline:!0,children:"Save"}),"."]}),(0,e.jsxs)(t.az,{color:"average",mb:1,children:["Alternatively, if you mess up the recipe and want to discard this recording, click"," ",(0,e.jsx)(t.az,{color:"bad",inline:!0,children:"Discard"}),"."]})]}),l.length?l.map(function(f){return(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"flask",onClick:function(){return x("dispense_recipe",{recipe:f})},children:f})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"triangle-exclamation",confirmContent:"",color:"bad",onClick:function(){return x("remove_recipe",{recipe:f})}})})]},f)}):"No Recipes."]})}},38908:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserSettings:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(58820),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.amount;return(0,e.jsx)(t.wn,{title:"Settings",fill:!0,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:r.dispenseAmounts.map(function(i,l){return(0,e.jsx)(t.$n,{textAlign:"center",selected:c===i,m:"0",onClick:function(){return d("amount",{amount:i})},children:i+"u"},l)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:c,minValue:1,maxValue:120,onDrag:function(i,l){return d("amount",{amount:l})}})})]})})}},58820:function(y,u,n){"use strict";n.r(u),n.d(u,{dispenseAmounts:function(){return e},removeAmounts:function(){return o}});var e=[5,10,20,30,40,60],o=[1,5,10]},66119:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenser:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(29361),g=n(64776),x=n(92090),d=n(38908),a=function(c){var i=(0,o.Oc)().data;return(0,e.jsx)(r.p8,{width:680,height:540,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsxs)(t.BJ,{vertical:!0,fill:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(d.ChemDispenserSettings,{})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(x.ChemDispenserRecipes,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(g.ChemDispenserChemicals,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(s.ChemDispenserBeaker,{})})]})})})}},9136:function(y,u,n){"use strict";n.r(u)},16028:function(y,u,n){"use strict";n.r(u),n.d(u,{analyzeModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=s.args.analysis;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:d.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(t.Ki.Item,{label:"Description",children:(a.desc||"").length>0?a.desc:"N/A"}),a.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood type",children:a.blood_type}),(0,e.jsx)(t.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:a.blood_dna})]}),!d.condi&&(0,e.jsx)(t.$n,{icon:d.printing?"spinner":"print",disabled:d.printing,iconSpin:!!d.printing,ml:"0.5rem",onClick:function(){return x("print",{idx:a.idx,beaker:s.args.beaker})},children:"Print"})]})})})}},88737:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemMasterBeaker:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),s=n(86471),g=n(16793),x=function(d){var a=(0,o.Oc)().act,c=d.beaker,i=d.beakerReagents,l=d.bufferNonEmpty,f=l?(0,e.jsx)(t.$n.Confirm,{icon:"eject",disabled:!c,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(t.wn,{title:"Beaker",buttons:f,children:c?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:i,buttons:function(m,v){return(0,e.jsxs)(t.az,{mb:v0?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:l,buttons:function(f,m){return(0,e.jsxs)(t.az,{mb:m0}),(0,e.jsx)(x.ChemMasterBuffer,{mode:O,bufferReagents:j}),(0,e.jsx)(d.ChemMasterProduction,{isCondiment:l,bufferNonEmpty:j.length>0,loaded_pill_bottle:M,loaded_pill_bottle_name:_||"",loaded_pill_bottle_contents_len:I||0,loaded_pill_bottle_storage_slots:S||0,pillsprite:T,bottlesprite:A})]})]})};(0,r.modalRegisterBodyOverride)("analyze",s.analyzeModalBodyOverride)},25453:function(y,u,n){"use strict";n.r(u)},42918:function(y,u,n){"use strict";n.r(u),n.d(u,{ClawMachine:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.wintick,i=a.instructions,l=a.gameStatus,f=a.winscreen,m;return l==="CLAWMACHINE_NEW"?m=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),i,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("newgame")},children:"Start"})]}):l==="CLAWMACHINE_END"?m=(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),f,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("return")},children:"Close"})]}):l==="CLAWMACHINE_ON"&&(m=(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:c,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),i,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Up"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Left"}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Right"}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("pointless")},children:"Down"})]})]})),(0,e.jsx)(r.p8,{children:(0,e.jsx)("center",{children:m})})}},76914:function(y,u,n){"use strict";n.r(u),n.d(u,{Cleanbot:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.open,l=a.locked,f=a.version,m=a.blood,v=a.vocal,E=a.wet_floors,j=a.spray_blood,O=a.rgbpanel,M=a.red_switch,_=a.green_switch,I=a.blue_switch;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Station Cleaner "+f,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("start")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:i?"bad":"good",children:i?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood",children:(0,e.jsx)(t.$n,{fluid:!0,icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return d("blood")},children:m?"Clean":"Ignore"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("vocal")},children:v?"On":"Off"})})]})})||null,!l&&i&&(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:O&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{fontSize:5.39,icon:M?"toggle-on":"toggle-off",backgroundColor:M?"red":"maroon",onClick:function(){return d("red_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:_?"toggle-on":"toggle-off",backgroundColor:_?"green":"darkgreen",onClick:function(){return d("green_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:I?"toggle-on":"toggle-off",backgroundColor:I?"blue":"darkblue",onClick:function(){return d("blue_switch")}})]})||(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(t.$n,{fluid:!0,selected:E,onClick:function(){return d("wet_floors")},icon:"screwdriver",children:E?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(t.$n,{fluid:!0,color:"brown",selected:j,onClick:function(){return d("spray_blood")},icon:"screwdriver",children:j?"Yes":"No"})})]})})})||null]})})}},90307:function(y,u,n){"use strict";n.r(u),n.d(u,{viewRecordModalBodyOverride:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(79500),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.disk,i=a.podready,l=g.args,f=l.activerecord,m=l.realname,v=l.health,E=l.unidentity,j=l.strucenzymes,O=v.split(" - ");return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Records of "+m,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:m}),(0,e.jsx)(t.Ki.Item,{label:"Damage",children:O.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:r.lm.damageType.oxy,inline:!0,children:O[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.toxin,inline:!0,children:O[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.brute,inline:!0,children:O[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.burn,inline:!0,children:O[1]})]}):(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(t.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:E}),(0,e.jsx)(t.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:j}),(0,e.jsxs)(t.Ki.Item,{label:"Disk",children:[(0,e.jsx)(t.$n.Confirm,{disabled:!c,icon:"arrow-circle-down",onClick:function(){return d("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(t.$n,{disabled:!c,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"se"})},children:"Export SE"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!i,icon:"user-plus",onClick:function(){return d("clone",{ref:f})},children:"Clone"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return d("del_rec")},children:"Delete"})]})]})})}},57981:function(y,u,n){"use strict";n.r(u),n.d(u,{CloningConsoleNavigation:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.menu;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:a===1,icon:"home",onClick:function(){return x("menu",{num:1})},children:"Main"}),(0,e.jsx)(t.tU.Tab,{selected:a===2,icon:"folder",onClick:function(){return x("menu",{num:2})},children:"Records"})]})}},16981:function(y,u,n){"use strict";n.r(u),n.d(u,{CloningConsoleStatus:function(){return g},CloningConsoleTemp:function(){return s}});var e=n(20462),o=n(7081),t=n(88569);function r(){return r=Object.assign||function(x){for(var d=1;d=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:S.biomass>=150?"circle":"circle-o"}),"\xA0",S.biomass]}),A]},T)}):(0,e.jsx)(s.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},x=function(d){var a=(0,r.Oc)(),c=a.act,i=a.data,l=i.records;return l.length?(0,e.jsx)(s.az,{mt:"0.5rem",children:l.map(function(f,m){return(0,e.jsx)(s.$n,{icon:"user",mb:"0.5rem",onClick:function(){return c("view_rec",{ref:f.record})},children:f.realname},m)})}):(0,e.jsx)(s.so,{height:"100%",children:(0,e.jsxs)(s.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(s.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},57508:function(y,u,n){"use strict";n.r(u),n.d(u,{CloningConsole:function(){return c}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),g=n(90307),x=n(57981),d=n(16981),a=n(37651),c=function(i){var l=(0,o.Oc)().data,f=l.menu,m=[];return m[1]=(0,e.jsx)(a.CloningConsoleMain,{}),m[2]=(0,e.jsx)(a.CloningConsoleRecords,{}),(0,r.modalRegisterBodyOverride)("view_rec",g.viewRecordModalBodyOverride),(0,e.jsxs)(s.p8,{children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d.CloningConsoleTemp,{}),(0,e.jsx)(d.CloningConsoleStatus,{}),(0,e.jsx)(x.CloningConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:m[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]})}},25829:function(y,u,n){"use strict";n.r(u)},61942:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMateHSV:function(){return g},ColorMateTint:function(){return s}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=function(x){var d=(0,t.Oc)().act;return(0,e.jsx)(r.$n,{fluid:!0,icon:"paint-brush",onClick:function(){return d("choose_color")},children:"Select new color"})},g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.buildhue,l=c.buildsat,f=c.buildval;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(r.XI.Cell,{width:"85%",children:(0,e.jsx)(r.Ap,{minValue:0,maxValue:360,step:1,value:i,format:function(m){return(0,o.Mg)(m)},onDrag:function(m,v){return a("set_hue",{buildhue:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:l,format:function(m){return(0,o.Mg)(m,2)},onDrag:function(m,v){return a("set_sat",{buildsat:v})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:f,format:function(m){return(0,o.Mg)(m,2)},onDrag:function(m,v){return a("set_val",{buildval:v})}})})]})]})}},17852:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMateMatrix:function(){return s}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=function(g){var x=(0,t.Oc)(),d=x.act,a=x.data,c=a.matrixcolors;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:1,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:4,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:7,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:2,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:5,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:8,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:3,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:6,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:9,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["CR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:10,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:11,value:i})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,format:function(i){return(0,o.Mg)(i,2)},onChange:function(i){return d("set_matrix_color",{color:12,value:i})}})]})]}),(0,e.jsxs)(r.XI.Cell,{width:"40%",children:[(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Config",children:(0,e.jsx)(r.pd,{fluid:!0,value:Object.values(c).toString(),onChange:function(i,l){return d("set_matrix_string",{value:l})}})})})})]})}},11145:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMate:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(61942),g=n(17852),x=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.activemode,f=i.temp,m=i.item,v=[];return v[1]=(0,e.jsx)(s.ColorMateTint,{}),v[2]=(0,e.jsx)(s.ColorMateHSV,{}),v[3]=(0,e.jsx)(g.ColorMateMatrix,{}),(0,e.jsx)(r.p8,{width:980,height:720,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(t.wn,{children:[f?(0,e.jsx)(t.IC,{children:f}):null,m&&Object.keys(m).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsx)(t.XI.Cell,{width:"50%",children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+m.sprite,style:{width:"100%",height:"100%"}})]})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)(t._V,{src:"data:image/jpeg;base64, "+m.preview,style:{width:"100%",height:"100%"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:l===1,onClick:function(){return c("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:l===2,onClick:function(){return c("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:l===3,onClick:function(){return c("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",m.name]}),(0,e.jsxs)(t.XI,{mt:1,children:[(0,e.jsxs)(t.XI.Cell,{width:"33%",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"fill",onClick:function(){return c("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return c("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return c("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:v[l]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})}},99390:function(y,u,n){"use strict";n.r(u)},57925:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleAuth:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.authenticated,c=d.is_ai,i=d.esc_status,l=d.esc_callable,f=d.esc_recallable,m;return a?c?m="AI":a===1?m="Command":a===2?m="Site Director":m="ERROR: Report This Bug!":m="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:c&&(0,e.jsx)(t.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:a?"sign-out-alt":"id-card",selected:a,onClick:function(){return x("auth")},children:a?"Log Out ("+m+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!i&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:i}),!!l&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!a,onClick:function(){return x("callshuttle")},children:"Call Shuttle"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!a||c,onClick:function(){return x("cancelshuttle")},children:"Recall Shuttle"})})]})})]})}},34116:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleContent:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(57925),s=n(73612),g=n(72298),x=n(19467),d=function(c){var i=(0,o.Oc)().data,l=i.menu_state,f=[];return f[1]=(0,e.jsx)(s.CommunicationsConsoleMain,{}),f[2]=(0,e.jsx)(x.CommunicationsConsoleStatusDisplay,{}),f[3]=(0,e.jsx)(g.CommunicationsConsoleMessage,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.CommunicationsConsoleAuth,{}),f[l]||(0,e.jsx)(a,{menu_state:l})]})},a=function(c){var i=c.menu_state;return(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",i,"Please report this to NT Technical Support."]})}},73612:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleMain:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.messages,c=d.msg_cooldown,i=d.emagged,l=d.cc_cooldown,f=d.str_security_level,m=d.levels,v=d.authmax,E=d.security_level,j=d.security_level_color,O=d.authenticated,M=d.atcsquelch,_=d.boss_short,I="View ("+a.length+")",S="Make Priority Announcement";c>0&&(S+=" ("+c+"s)");var T=i?"Message [UNKNOWN]":"Message "+_;l>0&&(T+=" ("+l+"s)");var A=f,K=m.map(function(W){return(0,e.jsx)(t.$n,{icon:W.icon,disabled:!O,selected:W.id===E,onClick:function(){return x("newalertlevel",{level:W.id})},children:W.name},W.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Announcement",children:(0,e.jsx)(t.$n,{icon:"bullhorn",disabled:!v||c>0,onClick:function(){return x("announce")},children:S})}),!!i&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!v||l>0,onClick:function(){return x("MessageSyndicate")},children:T}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!v,onClick:function(){return x("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!v||l>0,onClick:function(){return x("MessageCentCom")},children:T})})]})}),(0,e.jsx)(t.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Alert",color:j,children:A}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:K}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!O,onClick:function(){return x("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!O,onClick:function(){return x("messagelist")},children:I})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!O,selected:M,onClick:function(){return x("toggleatc")},children:M?"ATC Relay Disabled":"ATC Relay Enabled"})})]})})]})}},72298:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleMessage:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.message_current,c=d.message_deletion_allowed,i=d.authenticated,l=d.messages;if(a)return(0,e.jsx)(t.wn,{title:a.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!i,onClick:function(){return x("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:a.contents})});var f=l.map(function(m){return(0,e.jsxs)(t.Ki.Item,{label:m.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!i,onClick:function(){return x("messagelist",{msgid:m.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!i||!c,onClick:function(){return x("delmessage",{msgid:m.id})},children:"Delete"})]},m.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:l.length&&f||(0,e.jsx)(t.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})}},19467:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsoleStatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.stat_display,c=d.authenticated,i=a.presets.map(function(l){return(0,e.jsx)(t.$n,{selected:l.name===a.type,disabled:!c,onClick:function(){return x("setstat",{statdisp:l.name})},children:l.label},l.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return x("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:i}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!c,onClick:function(){return x("setmsg1")},children:a.line_1})}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!c,onClick:function(){return x("setmsg2")},children:a.line_2})})]})})}},59421:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicationsConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(34116),r=function(s){return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},52994:function(y,u,n){"use strict";n.r(u)},59546:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorContactTab:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.knownDevices;return(0,e.jsx)(r.wn,{title:"Known Devices",children:i.length&&(0,e.jsx)(r.XI,{children:i.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,o.jT)(l.name)}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){a("copy",{copy:l.address}),a("switch_tab",{switch_tab:s.PHONTAB})},children:"Copy"}),(0,e.jsx)(r.$n,{icon:"phone",onClick:function(){a("dial",{dial:l.address}),a("copy",{copy:l.address}),a("switch_tab",{switch_tab:s.PHONTAB})},children:"Call"}),(0,e.jsx)(r.$n,{icon:"comment-alt",onClick:function(){a("copy",{copy:l.address}),a("copy_name",{copy_name:l.name}),a("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"Msg"})]})]})]},l.address)})})||(0,e.jsx)(r.az,{children:"No devices detected on your local NTNet region."})})}},28215:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorFooter:function(){return d},CommunicatorHeader:function(){return x},TemplateError:function(){return g},VideoComm:function(){return a}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),g=function(c){return(0,e.jsxs)(r.wn,{title:"Error!",children:["You tried to access tab #",c.currentTab,", but there was no template defined!"]})},x=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.time,v=f.connectionStatus,E=f.owner,j=f.occupation;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{color:"average",children:m}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.In,{color:v===1?"good":"bad",name:v===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(E)}),(0,e.jsx)(r.so.Item,{color:"average",children:(0,o.jT)(j)})]})})},d=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.flashlight,v=c.videoSetting,E=c.setVideoSetting;return(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:v===2?"60%":"80%",children:(0,e.jsx)(r.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return l("switch_tab",{switch_tab:s.HOMETAB})}})}),(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:m,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return l("Light")}})}),v===2&&(0,e.jsx)(r.so.Item,{basis:"20%",children:(0,e.jsx)(r.$n,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return E(1)}})})]})},a=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.mapRef,v=c.videoSetting,E=c.setVideoSetting;return v===0?(0,e.jsxs)(r.az,{width:"100%",height:"100%",children:[(0,e.jsx)(r.D1,{width:"100%",height:"95%",params:{id:m,type:"map"}}),(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return E(1)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})]}):v===1?(0,e.jsxs)(r.az,{style:{position:"absolute",right:"5px",bottom:"50px",zIndex:"1"},children:[(0,e.jsx)(r.wn,{p:0,m:0,children:(0,e.jsxs)(r.so,{justify:"space-between",spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return E(2)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return E(0)}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return l("endvideo")}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return l("hang_up")}})})]})}),(0,e.jsx)(r.D1,{width:"200px",height:"200px",params:{id:m,type:"map"}})]}):null}},46873:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorHomeTab:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.homeScreen;return(0,e.jsx)(t.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:c.map(function(i){return(0,e.jsxs)(t.so.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(t.$n,{style:{borderRadius:"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return d("switch_tab",{switch_tab:i.number})},children:(0,e.jsx)(t.In,{spin:s(i.module),color:s(i.module)?"bad":null,name:i.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(t.az,{children:i.module})]},i.number)})})},s=function(g){var x=(0,o.Oc)().data,d=x.voice_mobs,a=x.communicating,c=x.requestsReceived,i=x.invitesSent,l=x.video_comm;return!!(g==="Phone"&&(d.length||a.length||c.length||i.length||l))}},51445:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageSubTab:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=a.clipboardMode,m=a.onClipboardMode,v=l.targetAddress,E=l.targetAddressName,j=l.imList;return f?(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:x("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return m(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(O,M){return(O.to_address===v||O.address===v)&&(0,e.jsxs)(r.az,{className:g(O,v)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[g(O,v)?"You":"Them",": ",O.im]},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return i("message",{message:v})},children:"Message"})]}):(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:x("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:f,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return m(!f)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(O,M,_){return(O.to_address===v||O.address===v)&&(0,e.jsx)(r.az,{textAlign:g(O,v)?"right":"left",mb:1,children:(0,e.jsx)(r.az,{maxWidth:"75%",className:d(O,v,M-1,_),inline:!0,children:(0,o.jT)(O.im)})},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return i("message",{message:v})},children:"Message"})]})},g=function(a,c){return a.address!==c},x=function(a,c,i){return(a+c).length>i?c.length>i?c.slice(0,i)+"...":c:a+c},d=function(a,c,i,l){if(i<0||i>l.length)return g(a,c)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var f=g(a,c),m=g(l[i],c);return f&&m?"TinderMessage_Subsequent_Sent":!f&&!m?"TinderMessage_Subsequent_Received":f?"TinderMessage_First_Sent":"TinderMessage_First_Received"}},26217:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageTab:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.imContacts;return(0,e.jsx)(r.wn,{title:"Messaging",children:i.length&&(0,e.jsx)(r.XI,{children:i.map(function(l){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,o.jT)(l.name),":"]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:l.address}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){a("copy",{copy:l.address}),a("copy_name",{copy_name:l.name}),a("switch_tab",{switch_tab:s.MESSSUBTAB})},children:"View Conversation"})})]})]},l.address)})})||(0,e.jsxs)(r.az,{children:["You haven't sent any messages yet.",(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return a("switch_tab",{switch_tab:s.CONTTAB})},children:"Contacts"})]})})}},28953:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorNewsTab:function(){return s}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(g){var x=(0,t.Oc)(),d=x.act,a=x.data,c=a.feeds,i=a.target_feed,l=a.latest_news;return(0,e.jsx)(r.wn,{title:"News",stretchContents:!0,height:"100%",children:!c.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||i&&(0,e.jsx)(r.wn,{title:(0,o.jT)(i.name)+" by "+(0,o.jT)(i.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:null})},children:"Back"}),children:i.messages.map(function(f){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+f.img}),(0,o.jT)(f.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",f.message_type," by"," ",(0,o.jT)(f.author)," - ",f.time_stamp,"]"]})]},f.ref)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:(0,e.jsx)(r.wn,{children:l.map(function(f){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(f.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:"Go to"})]}),"- ",(0,o.jT)(f.body),!!f.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",f.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",f.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:f.author})," ","- ",f.time_stamp,"]"]})]},f.index)})})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:c.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:f.index})},children:f.name},f.index)})})]})})}},47106:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorNoteTab:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.note;return(0,e.jsx)(t.wn,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("edit")},children:"Edit Notes"}),children:(0,e.jsx)(t.wn,{color:"average",width:"100%",height:"100%",style:{wordBreak:"break-all",overflowY:"auto"},children:a})})}},10674:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorPhoneTab:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(74293),g=function(i){for(var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.selfie_mode,E=m.targetAddress,j=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],O=j.map(function(I){return(0,e.jsx)(r.$n,{fontSize:2,fluid:!0,onClick:function(){return f("add_hex",{add_hex:I})},children:I},I)}),M=[],_=0;_i?"average":d>l?"bad":"good"}},74293:function(y,u,n){"use strict";n.r(u),n.d(u,{CONTTAB:function(){return t},HOMETAB:function(){return e},MANITAB:function(){return a},MESSSUBTAB:function(){return s},MESSTAB:function(){return r},NEWSTAB:function(){return g},NOTETAB:function(){return x},PHONTAB:function(){return o},SETTTAB:function(){return c},WTHRTAB:function(){return d},notFound:function(){return l},tabs:function(){return i}});var e=1,o=2,t=3,r=4,s=40,g=5,x=6,d=7,a=8,c=9,i=[e,o,t,r,s,g,x,d,a,c];function l(f){return i.includes(f)}},42320:function(y,u,n){"use strict";n.r(u),n.d(u,{Communicator:function(){return O}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=n(58044),x=n(59546),d=n(28215),a=n(46873),c=n(51445),i=n(26217),l=n(28953),f=n(47106),m=n(10674),v=n(4435),E=n(81450),j=n(74293),O=function(){var M=function(ee){G(ee)},_=(0,t.Oc)(),I=_.act,S=_.data,T=S.currentTab,A=S.video_comm,K=[],W=(0,o.useState)(0),$=W[0],k=W[1],z=(0,o.useState)(!1),H=z[0],G=z[1];return K[j.tabs[0]]=(0,e.jsx)(a.CommunicatorHomeTab,{}),K[j.tabs[1]]=(0,e.jsx)(m.CommunicatorPhoneTab,{}),K[j.tabs[2]]=(0,e.jsx)(x.CommunicatorContactTab,{}),K[j.tabs[3]]=(0,e.jsx)(i.CommunicatorMessageTab,{}),K[j.tabs[4]]=(0,e.jsx)(c.CommunicatorMessageSubTab,{clipboardMode:H,onClipboardMode:M}),K[j.tabs[5]]=(0,e.jsx)(l.CommunicatorNewsTab,{}),K[j.tabs[6]]=(0,e.jsx)(f.CommunicatorNoteTab,{}),K[j.tabs[7]]=(0,e.jsx)(E.CommunicatorWeatherTab,{}),K[j.tabs[8]]=(0,e.jsx)(g.CrewManifestContent,{}),K[j.tabs[9]]=(0,e.jsx)(v.CommunicatorSettingsTab,{}),(0,e.jsx)(s.p8,{width:475,height:700,children:(0,e.jsxs)(s.p8.Content,{children:[A&&(0,e.jsx)(d.VideoComm,{videoSetting:$,setVideoSetting:k}),(!A||$!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d.CommunicatorHeader,{}),(0,e.jsx)(r.az,{height:"88%",mb:1,style:{overflowY:"auto"},children:K[T]||(0,j.notFound)(T)&&(0,e.jsx)(d.TemplateError,{currentTab:T})}),(0,e.jsx)(d.CommunicatorFooter,{videoSetting:$,setVideoSetting:k})]})]})})}},96273:function(y,u,n){"use strict";n.r(u)},62311:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep1:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(t.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(t.az,{mt:3,children:(0,e.jsx)(t.XI,{width:"100%",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return g("pick_device",{pick:"1"})},children:"Laptop"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"tablet-alt",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return g("pick_device",{pick:"2"})},children:"Tablet"})})]})})})]})}},78820:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep2:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.totalprice,c=d.hw_battery,i=d.hw_disk,l=d.hw_netcard,f=d.hw_nanoprint,m=d.hw_card,v=d.devtype,E=d.hw_cpu,j=d.hw_tesla;return(0,e.jsxs)(t.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(t.az,{bold:!0,color:"good",children:[a,"\u20AE"]}),children:[(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(t.m_,{content:"\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===1,onClick:function(){return x("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===2,onClick:function(){return x("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===3,onClick:function(){return x("hw_battery",{battery:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(t.m_,{content:"\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===1,onClick:function(){return x("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===2,onClick:function(){return x("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:i===3,onClick:function(){return x("hw_disk",{disk:"3"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(t.m_,{content:"\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===0,onClick:function(){return x("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===1,onClick:function(){return x("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===2,onClick:function(){return x("hw_netcard",{netcard:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(t.m_,{content:"\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===0,onClick:function(){return x("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:f===1,onClick:function(){return x("hw_nanoprint",{print:"1"})},children:"Standard"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(t.m_,{content:"\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===0,onClick:function(){return x("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:m===1,onClick:function(){return x("hw_card",{card:"1"})},children:"Standard"})})]}),v!==2&&(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(t.m_,{content:"\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===1,onClick:function(){return x("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===2,onClick:function(){return x("hw_cpu",{cpu:"2"})},children:"Advanced"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(t.m_,{content:"\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n ",position:"right"})]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===0,onClick:function(){return x("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===1,onClick:function(){return x("hw_tesla",{tesla:"1"})},children:"Standard"})})]})]}),(0,e.jsx)(t.$n,{fluid:!0,mt:3,color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return x("confirm_order")},children:"Confirm Order"})]})}},3777:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep3:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.totalprice;return(0,e.jsxs)(o.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(o.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(o.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(o.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(o.az,{inline:!0,color:"good",children:[s,"\u20AE"]})]})]})}},44430:function(y,u,n){"use strict";n.r(u),n.d(u,{CfStep4:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsxs)(o.wn,{minHeight:"282px",children:[(0,e.jsx)(o.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(o.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},36229:function(y,u,n){"use strict";n.r(u),n.d(u,{ComputerFabricator:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(62311),g=n(78820),x=n(3777),d=n(44430),a=function(c){var i=(0,o.Oc)(),l=i.act,f=i.data,m=f.state,v=f.totalprice,E=[];return E[0]=(0,e.jsx)(s.CfStep1,{}),E[1]=(0,e.jsx)(g.CfStep2,{}),E[2]=(0,e.jsx)(x.CfStep3,{totalprice:v}),E[3]=(0,e.jsx)(d.CfStep4,{}),(0,e.jsx)(r.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),m!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return l("clean_order")},children:"Clear Order"}),E[m]]})})}},75050:function(y,u,n){"use strict";n.r(u)},31681:function(y,u,n){"use strict";n.r(u),n.d(u,{CookingAppliance:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.temperature,i=a.optimalTemp,l=a.temperatureEnough,f=a.efficiency,m=a.containersRemovable,v=a.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{color:l?"good":"blue",value:c,maxValue:i,children:[(0,e.jsx)(t.zv,{value:c}),"\xB0C / ",i,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:f}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:v.map(function(E,j){return E.empty?(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),children:(0,e.jsx)(t.$n,{onClick:function(){return d("slot",{slot:j+1})},children:"Empty"})},j):(0,e.jsx)(t.Ki.Item,{label:"Slot #"+(j+1),verticalAlign:"middle",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{disabled:!m,onClick:function(){return d("slot",{slot:j+1})},children:E.container||"No Container"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.z2,{color:E.progressText[0],value:E.progress,maxValue:1,children:E.progressText[1]})})]})},j)})})})]})})}},58044:function(y,u,n){"use strict";n.r(u),n.d(u,{CrewManifest:function(){return x},CrewManifestContent:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(79500),g=n(15581),x=function(){return(0,e.jsx)(g.p8,{width:400,height:600,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:f.map(function(m){return!!m.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:s.lm.manifest[m.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:m.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),m.elems.map(function(v){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,o.jT)(v.name)}),(0,e.jsx)(r.XI.Cell,{children:v.rank}),(0,e.jsx)(r.XI.Cell,{children:v.active})]},v.name+v.rank)})]})},m.cat)})})}},70117:function(y,u,n){"use strict";n.r(u),n.d(u,{CrewMonitor:function(){return c},CrewMonitorContent:function(){return i}});var e=n(20462),o=n(7402),t=n(15813),r=n(61358),s=n(7081),g=n(88569),x=n(15581),d=function(m){return m.dead?"Deceased":m.stat===1?"Unconscious":"Living"},a=function(m){return m.dead?"red":m.stat===1?"orange":"green"},c=function(){var m=function(T){O(T)},v=function(T){I(T)},E=(0,r.useState)(0),j=E[0],O=E[1],M=(0,r.useState)(1),_=M[0],I=M[1];return(0,e.jsx)(x.p8,{width:800,height:600,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(i,{tabIndex:j,zoom:_,onTabIndex:m,onZoom:v})})})},i=function(m){var v=(0,s.Oc)().data,E=v.crewmembers,j=E===void 0?[]:E,O=(0,t.L)([function(_){return(0,o.Ul)(_,function(I){return I.name})},function(_){return(0,o.Ul)(_,function(I){return I==null?void 0:I.x})},function(_){return(0,o.Ul)(_,function(I){return I==null?void 0:I.y})},function(_){return(0,o.Ul)(_,function(I){return I==null?void 0:I.realZ})}])(j),M=[];return M[0]=(0,e.jsx)(l,{crew:O}),M[1]=(0,e.jsx)(f,{zoom:m.zoom,onZoom:m.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(g.tU,{children:[(0,e.jsxs)(g.tU.Tab,{selected:m.tabIndex===0,onClick:function(){return m.onTabIndex(0)},children:[(0,e.jsx)(g.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(g.tU.Tab,{selected:m.tabIndex===1,onClick:function(){return m.onTabIndex(1)},children:[(0,e.jsx)(g.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(g.az,{m:2,children:M[m.tabIndex]||(0,e.jsx)(g.az,{textColor:"red",children:"ERROR"})})]})},l=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,O=m.crew,M=j.isAI;return(0,e.jsxs)(g.XI,{children:[(0,e.jsxs)(g.XI.Row,{header:!0,children:[(0,e.jsx)(g.XI.Cell,{children:"Name"}),(0,e.jsx)(g.XI.Cell,{children:"Status"}),(0,e.jsx)(g.XI.Cell,{children:"Location"})]}),O.map(function(_){return(0,e.jsxs)(g.XI.Row,{children:[(0,e.jsxs)(g.XI.Cell,{children:[_.name," (",_.assignment,")"]}),(0,e.jsxs)(g.XI.Cell,{children:[(0,e.jsx)(g.az,{inline:!0,color:a(_),children:d(_)}),_.sensor_type>=2?(0,e.jsxs)(g.az,{inline:!0,children:["(",(0,e.jsx)(g.az,{inline:!0,color:"red",children:_.brute}),"|",(0,e.jsx)(g.az,{inline:!0,color:"orange",children:_.fire}),"|",(0,e.jsx)(g.az,{inline:!0,color:"green",children:_.tox}),"|",(0,e.jsx)(g.az,{inline:!0,color:"blue",children:_.oxy}),")"]}):null]}),(0,e.jsx)(g.XI.Cell,{children:_.sensor_type===3?M?(0,e.jsx)(g.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return E("track",{track:_.ref})},children:_.area+" ("+_.x+", "+_.y+")"}):_.area+" ("+_.x+", "+_.y+", "+_.z+")":"Not Available"})]},_.ref)})]})},f=function(m){var v=(0,s.Oc)(),E=v.config,j=v.data,O=j.zoomScale,M=j.crewmembers;return(0,e.jsx)(g.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(g.tx,{zoomScale:O,onZoom:function(_){return m.onZoom(_)},children:M.filter(function(_){return _.sensor_type===3&&~~_.realZ===~~E.mapZLevel}).map(function(_){return(0,e.jsx)(g.tx.Marker,{x:_.x,y:_.y,zoom:m.zoom,icon:"circle",tooltip:_.name+" ("+_.assignment+")",color:a(_)},_.ref)})})})}},67268:function(y,u,n){"use strict";n.r(u),n.d(u,{CryoStorage:function(){return g},CryoStorageCrew:function(){return x},CryoStorageDefaultError:function(){return a},CryoStorageItems:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=function(c){var i=(0,t.Oc)().data,l=i.real_name,f=i.allow_items,m=(0,o.useState)(0),v=m[0],E=m[1],j=[];return j[0]=(0,e.jsx)(x,{}),j[1]=f?(0,e.jsx)(d,{}):(0,e.jsx)(a,{}),(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return E(0)},children:"Crew"}),!!f&&(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return E(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",l,"."]}),j[v]]})})},x=function(c){var i=(0,t.Oc)().data,l=i.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:l.length&&l.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},d=function(c){var i=(0,t.Oc)().data,l=i.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:l.length&&l.map(function(f){return(0,e.jsx)(r.az,{color:"label",children:f},f)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},a=function(c){return(0,e.jsx)(r.az,{textColor:"red",children:"Disabled"})}},41628:function(y,u,n){"use strict";n.r(u),n.d(u,{CryoContent:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(17639),g=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.isOperating,f=i.hasOccupant,m=i.occupant,v=i.cellTemperature,E=i.cellTemperatureStatus,j=i.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Occupant",flexGrow:!0,buttons:(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return c("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:m.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:m.health/m.maxHealth,color:m.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:m.health,format:function(O){return(0,o.Mg)(O)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.statNames[m.stat][0],children:s.statNames[m.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:m.bodyTemperature,format:function(O){return(0,o.Mg)(O)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),s.damageTypes.map(function(O,M){return(0,e.jsx)(r.Ki.Item,{label:O.label,children:(0,e.jsx)(r.z2,{value:m[O.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:m[O.type],format:function(_){return(0,o.Mg)(_)}})})},M)})]}):(0,e.jsx)(r.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(r.wn,{title:"Cell",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return c("ejectBeaker")},disabled:!j,children:"Eject Beaker"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power",children:(0,e.jsx)(r.$n,{icon:"power-off",onClick:function(){return c(l?"switchOff":"switchOn")},selected:l,children:l?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:E,children:[(0,e.jsx)(r.zv,{value:v})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(x,{})})]})})]})},x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.isBeakerLoaded,f=i.beakerLabel,m=i.beakerVolume;return l?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!m&&"bad",children:m?(0,e.jsx)(r.zv,{value:m,format:function(v){return(0,o.Mg)(v)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(r.az,{color:"average",children:"No beaker loaded"})}},17639:function(y,u,n){"use strict";n.r(u),n.d(u,{damageTypes:function(){return e},statNames:function(){return o}});var e=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],o=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]]},85970:function(y,u,n){"use strict";n.r(u),n.d(u,{Cryo:function(){return r}});var e=n(20462),o=n(15581),t=n(41628),r=function(s){return(0,e.jsx)(o.p8,{width:520,height:470,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(t.CryoContent,{})})})}},40599:function(y,u,n){"use strict";n.r(u)},39699:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAForensics:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.scan_progress,i=a.scanning,l=a.bloodsamp,f=a.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:i,disabled:!l,icon:"power-off",onClick:function(){return d("scanItem")},children:i?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return d("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(t.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:c,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:l&&(0,e.jsxs)(t.az,{children:[l,(0,e.jsx)(t.az,{color:"label",children:f})]})||(0,e.jsx)(t.az,{color:"bad",children:"No blood sample inserted."})})]})})}},63501:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifierBlocks:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){for(var g=function(E){for(var j=function(I){var S=I+1;M.push((0,e.jsx)(t.$n,{selected:a===O&&c===S,mb:"0",onClick:function(){return x(l,{block:O,subblock:S})},children:f[E+I]}))},O=E/i+1,M=[],_=0;_j,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:M})},children:M},_)}),(0,e.jsx)(t.$n,{disabled:j<=0,icon:"syringe",onClick:function(){return m("injectRejuvenators",{amount:j})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:O||"No label"}),j?(0,e.jsxs)(t.az,{color:"good",children:[j," unit",j===1?"":"s"," remaining"]}):(0,e.jsx)(t.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",size:4}),(0,e.jsx)("br",{}),"No beaker loaded."]})})}},25475:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifierMainBuffers:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(x){var d=(0,o.Oc)().data,a=d.buffers,c=a.map(function(i,l){return(0,e.jsx)(s,{id:l+1,name:"Buffer "+(l+1),buffer:i},l)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:c}),(0,e.jsx)(g,{})]})},s=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=x.id,l=x.name,f=x.buffer,m=c.isInjectorReady,v=l+(f.data?" - "+f.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:v,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!f.data,icon:"trash",onClick:function(){return a("bufferOption",{option:"clear",id:i})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!f.data,icon:"pen",onClick:function(){return a("bufferOption",{option:"changeLabel",id:i})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!f.data||!c.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:i})},children:"Export"})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Write",children:[(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUI",id:i})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:i})},children:"Subject U.I and U.E."}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveSE",id:i})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!c.hasDisk||!c.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:i})},children:"From Disk"})]}),!!f.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:f.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[f.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!f.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:i})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!m,icon:m?"syringe":"spinner",iconSpin:!m,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:i,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:i})},children:"Subject"})]})]})]}),!f.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.hasDisk,l=c.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!i||!l.data,icon:"trash",onClick:function(){return a("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!i,icon:"eject",onClick:function(){return a("ejectDisk")},children:"Eject"})]}),children:i?l.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:l.label?l.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:l.owner?l.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[l.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!l.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(t.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(t.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(t.In,{name:"save-o",size:4}),(0,e.jsx)("br",{}),"No disk inserted."]})})}},76282:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifierOccupant:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(22724),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.locked,i=a.hasOccupant,l=a.occupant;return(0,e.jsx)(t.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(t.$n,{disabled:!i,selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return d("toggleLock")},children:c?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!i||c,icon:"user-slash",onClick:function(){return d("ejectOccupant")},children:"Eject"})]}),children:i?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:l.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:l.health/l.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[l.stat][0],children:r.stats[l.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),g.isDNAInvalid?(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Radiation",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:l.radiationLevel/100,color:"average"})}),(0,e.jsx)(t.Ki.Item,{label:"Unique Enzymes",children:a.occupant.uniqueEnzymes?a.occupant.uniqueEnzymes:(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(t.az,{color:"label",children:"Cell unoccupied."})})}},22724:function(y,u,n){"use strict";n.r(u),n.d(u,{operations:function(){return o},rejuvenatorsDoses:function(){return t},stats:function(){return e}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],t=[5,10,20,30,50]},62343:function(y,u,n){"use strict";n.r(u),n.d(u,{DNAModifier:function(){return d}});var e=n(20462),o=n(7081),t=n(15581),r=n(86471),s=n(11619),g=n(89100),x=n(76282),d=function(a){var c=(0,o.Oc)().data,i=c.irradiating,l=c.occupant,f=!l.isViableSubject||!l.uniqueIdentity||!l.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),i&&(0,e.jsx)(s.DNAModifierIrradiating,{duration:i}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(x.DNAModifierOccupant,{isDNAInvalid:f}),(0,e.jsx)(g.DNAModifierMain,{isDNAInvalid:f})]})]})}},14512:function(y,u,n){"use strict";n.r(u)},80603:function(y,u,n){"use strict";n.r(u),n.d(u,{DestinationTagger:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.currTag,i=a.taggerLevels,l=i===void 0?[]:i,f=a.taggerLocs,m=l.filter(function(v,E){return E===l.findIndex(function(j){return v.location===j.location})});return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Tagger Locations",children:m.map(function(v){return(0,e.jsx)(t.wn,{title:v.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:f.map(function(E){return v.z===E.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:c===E.tag?"check-square-o":"square-o",selected:c===E.tag,onClick:function(){return d("set_tag",{tag:E.tag})},children:E.tag})},E.tag)})})},v.location)})})})})}},17956:function(y,u,n){"use strict";n.r(u),n.d(u,{DiseaseSplicer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(t.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})})})},g=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.dish_inserted,f=i.effects,m=f===void 0?[]:f,v=i.info,E=i.growth,j=i.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return c("eject")},children:"Eject Dish"}),children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:E})})}),v?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:v})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:m.length>0?m.map(function(O){return(0,e.jsxs)(t.az,{color:"label",children:["(",O.stage,") ",O.name," ",O.badness>1?"Dangerous!":null]},O.stage)}):(0,e.jsx)(t.az,{children:"No virus sample loaded."})}),(0,e.jsx)(t.wn,{title:"Affected Species",color:"label",children:!j||!j.length?"None":j.sort().join(", ")}),(0,e.jsxs)(t.wn,{title:"Reverse Engineering",children:[(0,e.jsx)(t.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),!!m.length&&m.map(function(O){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return c("grab",{grab:O.reference})},children:O.stage},O.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return c("affected_species")},children:"Species"})]})]})]})},x=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.buffer,f=i.species_buffer,m=i.info;return(0,e.jsxs)(t.wn,{title:"Storage",children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Memory Buffer",children:l?(0,e.jsxs)(t.az,{children:[l.name," (",l.stage,")"]}):f?(0,e.jsx)(t.az,{children:f}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!l&&!f,onClick:function(){return c("disk")},children:"Save To Disk"}),l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>1,onClick:function(){return c("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>2,onClick:function(){return c("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>3,onClick:function(){return c("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:l.stage>4,onClick:function(){return c("splice",{splice:4})},children:"Splice #4"})]}):f?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!f||!!m,onClick:function(){return c("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(y,u,n){"use strict";n.r(u),n.d(u,{DishIncubator:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(15581),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.on,l=c.system_in_use,f=c.food_supply,m=c.radiation,v=c.growth,E=c.toxins,j=c.chemicals_inserted,O=c.can_breed_virus,M=c.chemical_volume,_=c.max_chemical_volume,I=c.dish_inserted,S=c.blood_already_infected,T=c.virus,A=c.analysed,K=c.infection_rate;return(0,e.jsx)(s.p8,{width:400,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return a("power")},children:i?"On":"Off"}),children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"radiation",onClick:function(){return a("rad")},children:"Add Radiation"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",disabled:!l,onClick:function(){return a("flush")},children:"Flush System"})})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:f})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:m>=50?"bad":v>=25?"average":"good",value:m,children:[(0,r.qQ)(m*1e4)," \xB5Sv"]})}),(0,e.jsx)(t.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:E})})]})]}),(0,e.jsx)(t.wn,{title:O?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eject",disabled:!j,onClick:function(){return a("ejectchem")},children:"Eject "+(O?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!O,onClick:function(){return a("virus")},children:"Breed Virus"})]}),children:j&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Volume",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:_,value:M,children:[M,"/",_]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:O?"good":"average",children:[I?O?"Suitable":"No hemolytic samples detected":"N/A",S?(0,e.jsx)(t.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(t.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!I,onClick:function(){return a("ejectdish")},children:"Eject Dish"}),children:I?T?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:v})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:A?K:"Unknown."})]}):(0,e.jsx)(t.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(t.az,{color:"average",children:"No dish loaded."})})]})})}},43978:function(y,u,n){"use strict";n.r(u),n.d(u,{DisposalBin:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.mode,i=a.pressure,l=a.isAI,f=a.panel_open,m=a.flushing,v,E;return c===2?(v="good",E="Ready"):c<=0?(v="bad",E="N/A"):c===1?(v="average",E="Pressurizing"):(v="average",E="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"State",color:v,children:E}),(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:i,minValue:0,maxValue:100})})]}),(0,e.jsx)(t.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Handle",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:l||f,selected:m?null:!0,onClick:function(){return d("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l||f,selected:m?!0:null,onClick:function(){return d("engageHandle")},children:"Engaged"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Power",children:[(0,e.jsx)(t.$n,{icon:"toggle-off",disabled:c===-1,selected:c?null:!0,onClick:function(){return d("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:c===-1,selected:c?!0:null,onClick:function(){return d("pumpOn")},children:"On"})]}),(0,e.jsx)(t.Ki.Item,{label:"Eject",children:(0,e.jsx)(t.$n,{icon:"sign-out-alt",disabled:l,onClick:function(){return d("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(y,u,n){"use strict";n.r(u),n.d(u,{DroneConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.drones,i=a.areas,l=a.selected_area,f=a.fabricator,m=a.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(t.$n,{disabled:!f,selected:m,icon:"power-off",onClick:function(){return d("toggle_fab")},children:m?"Enabled":"Disabled"}),children:f?(0,e.jsx)(t.az,{color:"good",children:"Linked."}):(0,e.jsxs)(t.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("search_fab")},children:"Search for Fabricator"})]})}),(0,e.jsxs)(t.wn,{title:"Request Drone",children:[(0,e.jsx)(t.ms,{autoScroll:!1,options:i?i.sort():[],selected:l,width:"100%",onSelected:function(v){return d("set_dcall_area",{area:v})}}),(0,e.jsx)(t.$n,{icon:"share-square",onClick:function(){return d("ping")},children:"Send Ping"})]}),(0,e.jsx)(t.wn,{title:"Maintenance Units",children:c&&c.length?(0,e.jsx)(t.Ki,{children:c.map(function(v){return(0,e.jsx)(t.Ki.Item,{label:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("resync",{ref:v.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return d("shutdown",{ref:v.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:v.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[v.charge," / ",v.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:v.active?"Yes":"No"})]})},v.name)})}):(0,e.jsx)(t.az,{color:"bad",children:"No drones detected."})})]})})}},27133:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleAdvanced:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=function(O){return O<80||O>120?"bad":O<95||O>110?"average":"good"},d=(0,o.Oc)(),a=d.act,c=d.data,i=c.external_pressure,l=c.chamber_pressure,f=c.internal_pressure,m=c.processing,v={external_pressure:i,internal_pressure:f,chamber_pressure:l},E=[{minValue:0,maxValue:202,value:i,label:"External Pressure",textValue:i+" kPa",color:x},{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:x},{minValue:0,maxValue:202,value:f,label:"Internal Pressure",textValue:f+" kPa",color:x}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{pressure_range:v}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("purge")},children:"Purge"}),(0,e.jsx)(t.$n,{icon:"lock-open",onClick:function(){return a("secure")},children:"Secure"})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return a("abort")},children:"Abort"})})]})]})}},34012:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleDocking:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.interior_status,i=a.exterior_status,l=a.chamber_pressure,f=a.airlock_disabled,m=a.override_enabled,v=a.docking_status,E=a.processing,j={interior_status:c,exterior_status:i},O=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(M){return M<80||M>120?"bad":M<95||M>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Dock",buttons:f||m?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:m?"red":"",onClick:function(){return d("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:v,override_enabled:m})}),(0,e.jsx)(r.StatusDisplay,{bars:O}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:j}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!E,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},29935:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsolePhoron:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.chamber_pressure,i=a.chamber_phoron,l=a.interior_status,f=a.exterior_status,m=a.processing,v={interior_status:l,exterior_status:f},E=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}},{minValue:0,maxValue:100,value:i,label:"Chamber Phoron",textValue:i+" mol",color:function(j){return j>5?"bad":j>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:E}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:v}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!m,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},32965:function(y,u,n){"use strict";n.r(u),n.d(u,{AirlockConsoleSimple:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.exterior_status,i=a.chamber_pressure,l=a.processing,f=a.interior_status,m={interior_status:f,exterior_status:c},v=[{minValue:0,maxValue:202,value:i,label:"Chamber Pressure",textValue:i+" kPa",color:function(E){return E<80||E>120?"bad":E<95||E>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.StatusDisplay,{bars:v}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.StandardControls,{status_range:m}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!l,icon:"ban",color:"bad",onClick:function(){return d("abort")},children:"Abort"})})]})]})}},74390:function(y,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleMulti:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=(0,o.Oc)().data,d=x.docking_status;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Docking Status",children:(0,e.jsx)(r.DockStatus,{docking_status:d,override_enabled:!1})}),(0,e.jsx)(t.wn,{title:"Airlocks",children:x.airlocks.length?(0,e.jsx)(t.Ki,{children:x.airlocks.map(function(a){return(0,e.jsx)(t.Ki.Item,{color:a.override_enabled?"bad":"good",label:a.name,children:a.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},a.name)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(t.In,{name:"door-closed",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})}},75355:function(y,u,n){"use strict";n.r(u),n.d(u,{DockingConsoleSimple:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.exterior_status,i=a.override_enabled,l=a.docking_status;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!i,onClick:function(){return d("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:i?"red":"",onClick:function(){return d("toggle_override")},children:"Override"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(r.DockStatus,{docking_status:l,override_enabled:i})}),(0,e.jsx)(r.DockingStatus,{state:c.state})]})})}},77506:function(y,u,n){"use strict";n.r(u),n.d(u,{DoorAccessConsole:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.interior_status,c=d.exterior_status,i=a.state==="open"||c.state==="closed",l=c.state==="open"||a.state==="closed";return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:i?"arrow-left":"exclamation-triangle",onClick:function(){x(i?"cycle_ext_door":"force_ext")},children:i?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:l?"arrow-right":"exclamation-triangle",onClick:function(){x(l?"cycle_int_door":"force_int")},children:l?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:c.state==="closed"?"Locked":"Open"}),(0,e.jsx)(t.Ki.Item,{label:"Interior Door Status",children:a.state==="closed"?"Locked":"Open"})]})})}},64894:function(y,u,n){"use strict";n.r(u),n.d(u,{DockStatus:function(){return c},DockingStatus:function(){return x},EscapePodControls:function(){return a},EscapePodStatus:function(){return g},StandardControls:function(){return s},StatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var l=i.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:l.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.label,children:(0,e.jsx)(t.z2,{color:f.color(f.value),minValue:f.minValue,maxValue:f.maxValue,value:f.value,children:f.textValue})},f.label)})})})},s=function(i){var l=(0,o.Oc)().act,f=i.status_range,m=i.pressure_range,v=i.airlock_disabled,E=f||{},j=E.interior_status,O=E.exterior_status,M=m||{},_=M.external_pressure,I=M.internal_pressure,S=M.chamber_pressure,T=!0;j&&j.state==="open"?T=!1:_&&S&&(T=!(Math.abs(_-S)>5));var A=!0;return O&&O.state==="open"?A=!1:I&&S&&(A=!(Math.abs(I-S)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-left",onClick:function(){return l("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:v,icon:"arrow-right",onClick:function(){return l("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:v,color:T?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:v,color:A?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return l("force_int")},children:"Force Interior Door"})]})]})},g=function(i){var l=i.exterior_status,f=i.docking_status,m=i.armed,v={docked:(0,e.jsx)(d,{armed:m}),undocking:(0,e.jsx)(t.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(t.az,{color:"good",children:"INITIALIZING..."})};return(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Escape Pod Status",children:v[f]}),(0,e.jsx)(x,{state:l.state})]})})},x=function(i){var l=i.state,f=[];return f.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),f.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),f.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:f[l]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},d=function(i){var l=i.armed;return l?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},a=function(i){var l=(0,o.Oc)().act,f=i.docking_status,m=i.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!m,icon:"exclamation-triangle",color:f!=="docked"?"bad":"",onClick:function(){return l("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:m,color:f!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return l("toggle_override")},children:"Override"})]})},c=function(i){var l=i.docking_status,f=i.override_enabled,m={docked:(0,e.jsx)(t.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(t.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(t.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(t.az,{color:"grey",children:"NOT IN USE"})},v=m[l];return f&&(v=(0,e.jsxs)(t.az,{color:"bad",children:[l.toUpperCase(),"-OVERRIDE ENABLED"]})),v}},83783:function(y,u,n){"use strict";n.r(u),n.d(u,{EscapePodBerthConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=(0,o.Oc)().data,d=x.exterior_status,a=x.docking_status,c=x.armed,i=x.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:d,docking_status:a,armed:c}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:i})})]})}},13802:function(y,u,n){"use strict";n.r(u),n.d(u,{EscapePodConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.exterior_status,i=a.docking_status,l=a.override_enabled,f=a.armed,m=a.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:c,docking_status:i,armed:f}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:i,override_enabled:l}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:f,color:f?"bad":"average",onClick:function(){return d("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!m,color:"bad",onClick:function(){return d("force_launch")},children:"MANUAL EJECT"})]})]})]})}},84323:function(y,u,n){"use strict";n.r(u),n.d(u,{EmbeddedController:function(){return f}});var e=n(20462),o=n(7081),t=n(15581),r=n(27133),s=n(34012),g=n(29935),x=n(32965),d=n(74390),a=n(75355),c=n(77506),i=n(83783),l=n(13802),f=function(m){var v=(0,o.Oc)().data,E=v.internalTemplateName,j={};j.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),j.AirlockConsoleSimple=(0,e.jsx)(x.AirlockConsoleSimple,{}),j.AirlockConsolePhoron=(0,e.jsx)(g.AirlockConsolePhoron,{}),j.AirlockConsoleDocking=(0,e.jsx)(s.AirlockConsoleDocking,{}),j.DockingConsoleSimple=(0,e.jsx)(a.DockingConsoleSimple,{}),j.DockingConsoleMulti=(0,e.jsx)(d.DockingConsoleMulti,{}),j.DoorAccessConsole=(0,e.jsx)(c.DoorAccessConsole,{}),j.EscapePodConsole=(0,e.jsx)(l.EscapePodConsole,{}),j.EscapePodBerthConsole=(0,e.jsx)(i.EscapePodBerthConsole,{});var O=j[E];if(!O)throw Error("Unable to find Component for template name: "+E);return(0,e.jsx)(t.p8,{width:450,height:340,children:(0,e.jsx)(t.p8.Content,{children:O})})}},2076:function(y,u,n){"use strict";n.r(u)},26356:function(y,u,n){"use strict";n.r(u),n.d(u,{DisplayDetails:function(){return d},EntityNarrate:function(){return g},EntitySelection:function(){return x},ModeSelector:function(){return a},NarrationInput:function(){return c}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data;return(0,e.jsx)(s.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(a,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(c,{})})]})})})]})})})})},x=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.selection_mode,E=m.multi_id_selection,j=m.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:v,onClick:function(){return f("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:j.map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:E.includes(O),onClick:function(){return f("select_entity",{id_selected:O})},children:(0,e.jsx)(r.az,{inline:!0,children:O})},O)})})})})})},d=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.selection_mode,E=m.number_mob_selected,j=m.selected_id,O=m.selected_name,M=m.selected_type;return v?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",E]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",O," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",M," ",(0,e.jsx)("br",{})]})},a=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.privacy_select,E=m.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_privacy")},selected:v,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(v?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:v?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return f("change_mode_narration")},selected:E,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(E?"Click here to emote visibly.":"Click here to talk audiably."),children:E?"Currently: Emoting":"Currently: Talking"})})]})},c=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=(0,o.useState)(""),E=v[0],j=v[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return f("narrate",{message:E})},children:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(O,M){return j(M)},value:E||""})})})})}},63183:function(y,u,n){"use strict";n.r(u),n.d(u,{ExonetNode:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.allowPDAs,l=a.allowCommunicators,f=a.allowNewscasters,m=a.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("toggle_power")},children:"Power "+(c?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return d("toggle_PDA_port")},children:i?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("toggle_communicator_port")},children:l?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return d("toggle_newscaster_port")},children:f?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[m.map(function(v,E){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:E%2,children:v},E)}),!m||m.length===0?(0,e.jsx)(t.az,{color:"average",children:"No logs found."}):null]})})]})})}},2858:function(y,u,n){"use strict";n.r(u),n.d(u,{MaterialAmount:function(){return i},Materials:function(){return c}});var e=n(20462),o=n(4089),t=n(65380),r=n(61282),s=n(7081),g=n(88569),x=n(41242),d=n(51890),a=function(l){var f=(0,s.Oc)().act,m=l.material,v=m.name,E=m.removable,j=m.sheets,O=(0,s.QY)("remove_mats_"+v,1),M=O[0],_=O[1];return M>1&&j0});return M.length===0?(0,e.jsxs)(g.az,{textAlign:"center",children:[(0,e.jsx)(g.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(g.so,{wrap:"wrap",children:M.map(function(_){return(0,e.jsxs)(g.so.Item,{width:"80px",children:[(0,e.jsx)(i,{name:_.name,amount:_.amount,formatsi:!0}),!E&&(0,e.jsx)(g.az,{mt:1,style:{textAlign:"center"},children:(0,e.jsx)(a,{material:_})})]},_.name)||""})})},i=function(l){var f=l.name,m=l.amount,v=l.formatsi,E=l.formatmoney,j=l.color,O=l.style,M="0";return m<1&&m>0?M=(0,o.Mg)(m,2):v?M=(0,x.QL)(m,0):E?M=(0,x.up)(m):M=m.toString(),(0,e.jsxs)(g.so,{direction:"column",align:"center",children:[(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.m_,{position:"bottom",content:(0,r.Sn)(f),children:(0,e.jsx)(g.az,{className:(0,t.Ly)(["sheetmaterials32x32",d.MATERIAL_KEYS[f]]),position:"relative",style:O})})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.az,{textColor:j,style:{textAlign:"center"},children:M})})]})}},61763:function(y,u,n){"use strict";n.r(u),n.d(u,{PartLists:function(){return a},PartSets:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(51890),g=n(42878),x=n(2858),d=function(i){var l=(0,t.Oc)().data,f=l.partSets,m=f===void 0?[]:f,v=l.buildableParts,E=v===void 0?[]:v,j=(0,t.QY)("part_tab",m.length?E[0]:""),O=j[0],M=j[1];return(0,e.jsx)(r.tU,{vertical:!0,children:m.map(function(_){return!!E[_]&&(0,e.jsx)(r.tU.Tab,{selected:_===O,onClick:function(){return M(_)},children:_},_)})})},a=function(i){var l=(0,t.Oc)().data,f=l.partSets,m=f===void 0?[]:f,v=l.buildableParts,E=v===void 0?[]:v,j=i.queueMaterials,O=i.materials,M=(0,t.QY)("part_tab",(0,g.getFirstValidPartSet)(m,E)),_=M[0],I=M[1],S=(0,t.QY)("search_text",""),T=S[0],A=S[1];if(!_||!E[_]){var K=(0,g.getFirstValidPartSet)(m,E);if(K)I(K);else return}var W={Parts:[]},$=[];return T?(0,g.searchFilter)(T,E).forEach(function(k){k.format=(0,g.partCondFormat)(O,j,k),$.push(k)}):(W={Parts:[]},E[_].forEach(function(k){if(k.format=(0,g.partCondFormat)(O,j,k),!k.subCategory){W.Parts.push(k);return}k.subCategory in W||(W[k.subCategory]=[]),W[k.subCategory].push(k)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{mr:1,children:(0,e.jsx)(r.In,{name:"search"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:T,onInput:function(k,z){return A(z)}})})]})}),!!T&&(0,e.jsx)(c,{name:"Search Results",parts:$,forceShow:!0,placeholder:"No matching results..."})||Object.keys(W).map(function(k){return(0,e.jsx)(c,{name:k,parts:W[k]},k)})]})},c=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.buildingPart,E=i.parts,j=i.name,O=i.forceShow,M=i.placeholder,_=(0,t.QY)("display_mats",!1),I=_[0];return(!!E.length||O)&&(0,e.jsxs)(r.wn,{title:j,buttons:(0,e.jsx)(r.$n,{disabled:!E.length,color:"good",icon:"plus-circle",onClick:function(){return f("add_queue_set",{part_list:E.map(function(S){return S.id})})},children:"Queue All"}),children:[!E.length&&M,E.map(function(S){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{disabled:!!v||S.format.textColor===s.COLOR_BAD,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return f("build_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return f("add_queue_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{inline:!0,textColor:s.COLOR_KEYS[S.format.textColor],children:S.name})}),(0,e.jsx)(r.so.Item,{grow:1}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"question-circle",color:"transparent",height:"20px",tooltip:"Build Time: "+S.printTime+"s. "+(S.desc||""),tooltipPosition:"left"})})]}),I&&(0,e.jsx)(r.so,{mb:2,children:Object.keys(S.cost).map(function(T){return(0,e.jsx)(r.so.Item,{width:"50px",color:s.COLOR_KEYS[S.format[T].color],children:(0,e.jsx)(x.MaterialAmount,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:T,amount:S.cost[T]})},T)})})]},S.name)})]})}},46372:function(y,u,n){"use strict";n.r(u),n.d(u,{Queue:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(51890),g=n(2858),x=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.isProcessingQueue,E=m.queue,j=E===void 0?[]:E,O=i.queueMaterials,M=i.missingMaterials,_=i.textColors,I=!j||!j.length;return(0,e.jsxs)(t.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(t.so.Item,{height:0,grow:1,children:(0,e.jsx)(t.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:I,color:"bad",icon:"minus-circle",onClick:function(){return f("clear_queue")},children:"Clear Queue"}),!!v&&(0,e.jsx)(t.$n,{disabled:I,icon:"stop",onClick:function(){return f("stop_queue")},children:"Stop"})||(0,e.jsx)(t.$n,{disabled:I,icon:"play",onClick:function(){return f("build_queue")},children:"Build Queue"})]}),children:(0,e.jsxs)(t.so,{direction:"column",height:"100%",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(c,{})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a,{textColors:_})})]})})}),!I&&(0,e.jsx)(t.so.Item,{mt:1,children:(0,e.jsx)(t.wn,{title:"Material Cost",children:(0,e.jsx)(d,{queueMaterials:O,missingMaterials:M})})})]})},d=function(i){var l=i.queueMaterials,f=i.missingMaterials;return(0,e.jsx)(t.so,{wrap:"wrap",children:Object.keys(l).map(function(m){return(0,e.jsxs)(t.so.Item,{width:"12%",children:[(0,e.jsx)(g.MaterialAmount,{formatmoney:!0,name:m,amount:l[m]}),!!f[m]&&(0,e.jsx)(t.az,{textColor:"bad",style:{textAlign:"center"},children:(0,r.up)(f[m])})]},m)})})},a=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=i.textColors,E=m.queue,j=E===void 0?[]:E;return!j||!j.length?(0,e.jsx)(e.Fragment,{children:"No parts in queue."}):j.map(function(O,M){return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(t.so.Item,{basis:"content",children:(0,e.jsx)(t.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return f("del_queue_part",{index:M+1})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{inline:!0,textColor:s.COLOR_KEYS[v[M]],children:O.name})})]})},O.name)})},c=function(i){var l=(0,o.Oc)().data,f=l.buildingPart,m=l.storedPart;if(m)return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:m}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:"Fabricator outlet obstructed..."})]})})});if(f){var v=f.name,E=f.duration,j=f.printTime,O=Math.ceil(E/10);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.z2,{minValue:0,maxValue:j,value:E,children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:v}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:O>=0&&O+"s"||"Dispensing..."})]})})})}}},51890:function(y,u,n){"use strict";n.r(u),n.d(u,{COLOR_AVERAGE:function(){return t},COLOR_BAD:function(){return r},COLOR_KEYS:function(){return g},COLOR_NONE:function(){return o},MATERIAL_KEYS:function(){return e}});var e={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},o=0,t=1,r=2,s,g=(s={},s[o]=void 0,s[t]="average",s[r]="bad",s)},42878:function(y,u,n){"use strict";n.r(u),n.d(u,{getFirstValidPartSet:function(){return l},materialArrayToObj:function(){return x},partBuildColor:function(){return d},partCondFormat:function(){return a},queueCondFormat:function(){return c},searchFilter:function(){return i}});var e=n(7402),o=n(61282),t=n(51890);function r(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,E=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[E++]}}}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 x(f){var m={};return f.forEach(function(v){m[v.name]=v.amount}),m}function d(f,m,v){return f>v?{color:t.COLOR_BAD,deficit:f-v}:m>v?{color:t.COLOR_AVERAGE,deficit:f}:f+m>v?{color:t.COLOR_AVERAGE,deficit:f+m-v}:{color:t.COLOR_NONE,deficit:0}}function a(f,m,v){var E={textColor:t.COLOR_NONE};return Object.keys(v.cost).forEach(function(j){E[j]=d(v.cost[j],m[j],f[j]),E[j].color>E.textColor&&(E.textColor=E[j].color)}),E}function c(f,m){var v={},E={},j={},O={};return m&&m.forEach(function(M,_){O[_]=t.COLOR_NONE,Object.keys(M.cost).forEach(function(I){v[I]=v[I]||0,j[I]=j[I]||0,E[I]=d(M.cost[I],v[I],f[I]),E[I].color!==t.COLOR_NONE?O[_]=100?l="Running":!c&&i>0&&(l="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",confirmContent:c?"This will disable gravity!":"This will enable gravity!",onClick:function(){return d("gentoggle")},children:"Toggle Breaker"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Breaker Setting",children:c?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",l]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[i,"%"]})]})})})})}},88941:function(y,u,n){"use strict";n.r(u),n.d(u,{GuestPass:function(){return g}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.area,l=c.giver,f=c.giveName,m=c.reason,v=c.duration,E=c.mode,j=c.log,O=c.uid;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:E===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",selected:!0,onClick:function(){return a("mode",{mode:0})},children:"Activity Log"}),children:[(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return a("print")},fluid:!0,mb:1,children:"Print"}),(0,e.jsx)(r.wn,{title:"Logs",children:j.length&&j.map(function(M){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}},M)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+O,buttons:(0,e.jsx)(r.$n,{icon:"scroll",onClick:function(){return a("mode",{mode:1})},children:"Activity Log"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{onClick:function(){return a("id")},children:l||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return a("giv_name")},children:f})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return a("reason")},children:m})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return a("duration")},children:v})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,onClick:function(){return a("issue")},children:"Issue Pass"}),(0,e.jsx)(r.wn,{title:"Access",children:(0,o.Ul)(i,function(M){return M.area_name}).map(function(M){return(0,e.jsx)(r.$n.Checkbox,{checked:M.on,onClick:function(){return a("access",{access:M.area})},children:M.area_name},M.area)})})]})})})}},52149:function(y,u,n){"use strict";n.r(u),n.d(u,{GyrotronControl:function(){return s},GyrotronControlContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.gyros;return(0,e.jsx)(t.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(t.XI.Cell,{children:"Strength"})]}),i.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return a("toggle_active",{gyro:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!l.active&&"yellow",value:l.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(f,m){return a("set_rate",{gyro:l.ref,rate:m})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!l.active&&"yellow",value:l.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(f,m){return a("set_str",{gyro:l.ref,str:m})}})})]},l.name)})]})})}},44791:function(y,u,n){"use strict";n.r(u),n.d(u,{Holodeck:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.supportedPrograms,i=a.restrictedPrograms,l=a.currentProgram,f=a.isSilicon,m=a.safetyDisabled,v=a.emagged,E=a.gravity,j=c;return m&&(j=j.concat(i)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:j.map(function(O){return(0,e.jsx)(t.$n,{color:i.indexOf(O)!==-1?"bad":null,icon:"eye",selected:l===O,fluid:!0,onClick:function(){return d("program",{program:O})},children:O},O)})}),!!f&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:v,color:m?"good":"bad",onClick:function(){return d("AIoverride")},children:[!!v&&"Error, unable to control. ",m?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:m?(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(t.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{icon:"user-astronaut",selected:E,onClick:function(){return d("gravity")},children:E?"Enabled":"Disabled"})})]})})]})})}},83860:function(y,u,n){"use strict";n.r(u),n.d(u,{ICAssembly:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=function(a){var c=(0,t.Oc)().data,i=c.total_parts,l=c.max_components,f=c.total_complexity,m=c.max_complexity,v=c.battery_charge,E=c.battery_max,j=c.net_power,O=c.unremovable_circuits,M=c.removable_circuits;return(0,e.jsx)(g.p8,{width:600,height:380,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:i/l,maxValue:1,children:i+" / "+l+" ("+(0,o.Mg)(i/l*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsx)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/m,maxValue:1,children:f+" / "+m+" ("+(0,o.Mg)(f/m*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:v/E,maxValue:1,children:v+" / "+E+" ("+(0,o.Mg)(v/E*100,1)+"%)"})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:j===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:j,format:function(_){return"-"+(0,s.d5)(Math.abs(_))+"/s"}})})]})}),O.length&&(0,e.jsx)(d,{title:"Built-in Components",circuits:O})||null,M.length&&(0,e.jsx)(d,{title:"Removable Components",circuits:M})||null]})})},d=function(a){var c=(0,t.Oc)().act,i=a.title,l=a.circuits;return(0,e.jsx)(r.wn,{title:i,children:(0,e.jsx)(r.Ki,{children:l.map(function(f){return(0,e.jsxs)(r.Ki.Item,{label:f.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("open_circuit",{ref:f.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("rename_circuit",{ref:f.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("scan_circuit",{ref:f.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("remove_circuit",{ref:f.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return c("bottom_circuit",{ref:f.ref})},children:"Move to Bottom"})]},f.ref)})})})}},23343:function(y,u,n){"use strict";n.r(u),n.d(u,{ICCircuit:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.desc,v=f.displayed_name,E=f.complexity,j=f.power_draw_idle,O=f.power_draw_per_use,M=f.extended_desc,_=f.inputs,I=f.outputs,S=f.activators;return(0,e.jsx)(g.p8,{width:600,height:400,title:v,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return l("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return l("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return l("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:E}),j&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,s.d5)(j)})||null,O&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,s.d5)(O)})||null]}),M]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(d,{list:_})})})||null,(0,e.jsx)(r.so.Item,{basis:_.length&&I.length?"33%":_.length||I.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:v,mb:1,children:(0,e.jsx)(r.az,{children:m})})}),I.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(d,{list:I})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:S.map(function(T){return(0,e.jsxs)(r.Ki.Item,{label:T.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("pin_name",{pin:T.ref})},children:T.pulse_out?"":""}),(0,e.jsx)(a,{pin:T})]},T.name)})})]})]})})},d=function(c){var i=(0,t.Oc)().act,l=c.list;return l.map(function(f){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return i("pin_name",{pin:f.ref})},children:[(0,o.jT)(f.type),": ",f.name]}),(0,e.jsx)(r.$n,{onClick:function(){return i("pin_data",{pin:f.ref})},children:f.data}),(0,e.jsx)(a,{pin:f})]},f.ref)})},a=function(c){var i=(0,t.Oc)().act,l=c.pin;return l.linked.map(function(f){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return i("pin_unwire",{pin:l.ref,link:f.ref})},children:f.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return i("examine",{ref:f.holder_ref})},children:f.holder_name})]},f.ref)})}},87134:function(y,u,n){"use strict";n.r(u),n.d(u,{ICDetailer:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.detail_color,l=c.color_list;return(0,e.jsx)(s.p8,{width:420,height:254,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(l).map(function(f,m){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,o.Sn)(f),tooltipPosition:m%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return a("change_color",{color:f})},style:l[f]===i?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:l[f]},f)})})})})}},92306:function(y,u,n){"use strict";n.r(u),n.d(u,{ICPrinter:function(){return g}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),g=function(a){var c=(0,t.Oc)().data,i=c.metal,l=c.max_metal,f=c.metal_per_sheet,m=c.upgraded,v=c.can_clone;return(0,e.jsx)(s.p8,{width:600,height:630,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:i,maxValue:l,children:[i/f," / ",l/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:m?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:v?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(d,{})]})})};function x(a,c){return!(!a.can_build||a.cost>c.metal)}var d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.categories,m=(0,t.QY)("categoryTarget",""),v=m[0],E=m[1],j=(0,o.pb)(f,function(O){return O.name===v})[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,o.Ul)(f,function(O){return O.name}).map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:v===O.name,onClick:function(){return E(O.name)},children:O.name},O.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j?(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,o.Ul)(j.items,function(O){return O.name}).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:O.name,labelColor:O.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!x(O,l),icon:"print",onClick:function(){return i("build",{build:O.path})},children:"Print"}),children:O.desc},O.name)})})}):(0,e.jsx)(r.az,{children:"No category selected."})})]})})}},98309:function(y,u,n){"use strict";n.r(u),n.d(u,{IDCard:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(10921),g=function(x){var d=(0,o.Oc)().data,a=d.registered_name,c=d.sex,i=d.species,l=d.age,f=d.assignment,m=d.fingerprint_hash,v=d.blood_type,E=d.dna_hash,j=d.photo_front,O=[{name:"Sex",val:c},{name:"Species",val:i},{name:"Age",val:l},{name:"Blood Type",val:v},{name:"Fingerprint",val:m},{name:"DNA Hash",val:E}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(t.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:j&&(0,e.jsx)(t._V,{src:j.substring(1,j.length-1),style:{width:"300px",marginLeft:"-94px"}})||(0,e.jsx)(t.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(t.so.Item,{basis:0,grow:1,children:(0,e.jsx)(t.Ki,{children:O.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:M.val},M.name)})})})]}),(0,e.jsxs)(t.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:a})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(s.RankIcon,{color:"",rank:f})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:f})})]})]})})})}},39841:function(y,u,n){"use strict";n.r(u),n.d(u,{IdentificationComputer:function(){return a},IdentificationComputerAccessModification:function(){return l},IdentificationComputerContent:function(){return c},IdentificationComputerPrinting:function(){return i},IdentificationComputerRegions:function(){return f}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),s=n(7081),g=n(88569),x=n(15581),d=n(58044),a=function(){return(0,e.jsx)(x.p8,{width:600,height:700,children:(0,e.jsx)(x.p8.Content,{children:(0,e.jsx)(c,{})})})},c=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,O=m.ntos,M=j.mode,_=j.has_modify,I=j.printing,S=j.have_id_slot,T=j.have_printer,A=(0,e.jsx)(l,{ntos:O});return O&&!S?A=(0,e.jsx)(d.CrewManifestContent,{}):I?A=(0,e.jsx)(i,{}):M===1&&(A=(0,e.jsx)(d.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(g.tU,{children:[(!O||!!S)&&(0,e.jsx)(g.tU.Tab,{icon:"home",selected:M===0,onClick:function(){return E("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(g.tU.Tab,{icon:"home",selected:M===1,onClick:function(){return E("mode",{mode_target:1})},children:"Crew Manifest"}),!O||!!T&&(0,e.jsx)(g.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(M||_)&&E("print")},color:!M&&!_?"transparent":"",children:"Print"})]}),A]})},i=function(m){return(0,e.jsx)(g.wn,{title:"Printing",children:"Please wait..."})},l=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,O=m.ntos,M=j.station_name,_=j.target_name,I=j.target_owner,S=I===void 0?"":I,T=j.scan_name,A=j.authenticated,K=j.has_modify,W=j.account_number,$=W===void 0?"":W,k=j.centcom_access,z=j.all_centcom_access,H=j.id_rank,G=j.departments;return(0,e.jsxs)(g.wn,{title:"Access Modification",children:[!A&&(0,e.jsx)(g.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(g.$n,{icon:"eject",fluid:!0,onClick:function(){return E("modify")},children:_})}),!O&&(0,e.jsx)(g.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(g.$n,{icon:"eject",fluid:!0,onClick:function(){return E("scan")},children:T})})]}),!!A&&!!K&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.wn,{title:"Details",children:(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(g.pd,{value:S,fluid:!0,onInput:function(Y,ee){return E("reg",{reg:ee})}})}),(0,e.jsx)(g.Ki.Item,{label:"Account Number",children:(0,e.jsx)(g.pd,{value:$,fluid:!0,onInput:function(Y,ee){return E("account",{account:ee})}})}),(0,e.jsx)(g.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(g.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,confirmContent:"You are dismissing "+S+", confirm?",onClick:function(){return E("terminate")},children:"Dismiss "+S})})]})}),(0,e.jsx)(g.wn,{title:"Assignment",children:(0,e.jsxs)(g.XI,{children:[G.map(function(Y){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(g.XI.Row,{children:[(0,e.jsx)(g.XI.Cell,{header:!0,verticalAlign:"middle",children:Y.department_name}),(0,e.jsx)(g.XI.Cell,{children:Y.jobs.map(function(ee){return(0,e.jsx)(g.$n,{selected:ee.job===H,onClick:function(){return E("assign",{assign_target:ee.job})},children:(0,t.jT)(ee.display_name)},ee.job)})})]}),(0,e.jsx)(g.az,{mt:-1,children:"\xA0"})," "]},Y.department_name)}),(0,e.jsxs)(g.XI.Row,{children:[(0,e.jsx)(g.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(g.XI.Cell,{children:(0,e.jsx)(g.$n,{onClick:function(){return E("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!k&&(0,e.jsx)(g.wn,{title:"Central Command",children:z.map(function(Y){return(0,e.jsx)(g.az,{children:(0,e.jsx)(g.$n,{fluid:!0,selected:Y.allowed,onClick:function(){return E("access",{access_target:Y.ref,allowed:Y.allowed})},children:(0,t.jT)(Y.desc)})},Y.ref)})})||(0,e.jsx)(g.wn,{title:M,children:(0,e.jsx)(f,{actName:"access"})})]})]})},f=function(m){var v=(0,s.Oc)(),E=v.act,j=v.data,O=m.actName,M=j.regions;return(0,e.jsx)(g.so,{wrap:"wrap",spacing:1,children:M&&(0,o.Ul)(M,function(_){return _.name}).map(function(_){return(0,e.jsx)(g.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(g.wn,{title:_.name,height:"100%",children:(0,o.Ul)(_.accesses,function(I){return I.desc}).map(function(I){return(0,e.jsx)(g.az,{children:(0,e.jsx)(g.$n,{fluid:!0,selected:I.allowed,onClick:function(){return E(O,{access_target:I.ref,allowed:I.allowed})},children:(0,t.jT)(I.desc)})},I.ref)})})},_.name)})})}},15450:function(y,u,n){"use strict";n.r(u),n.d(u,{InventoryPanel:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.slots,i=a.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:c&&c.length&&c.map(function(l){return(0,e.jsx)(t.Ki.Item,{label:l.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:l.item?"hand-paper":"gift",onClick:function(){return d(l.act)},children:l.item||"Nothing"})},l.name)})})}),i&&(0,e.jsx)(t.wn,{title:"Actions",children:i&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("internals")},children:"Set Internals"})||null})||null]})})}},66855:function(y,u,n){"use strict";n.r(u),n.d(u,{InventoryPanelHuman:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.slots,i=a.specialSlots,l=a.internalsValid,f=a.sensors,m=a.handcuffed,v=a.handcuffedParams,E=a.legcuffed,j=a.legcuffedParams,O=a.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[c&&c.length&&c.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return d(M.act,M.params)},children:M.item||"Nothing"})},M.name)}),(0,e.jsx)(t.Ki.Divider,{}),i&&i.length&&i.map(function(M){return(0,e.jsx)(t.Ki.Item,{label:M.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:M.item?"hand-paper":"gift",onClick:function(){return d(M.act,M.params)},children:M.item||"Nothing"})},M.name)})]})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"running",onClick:function(){return d("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return d("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"socks",onClick:function(){return d("targetSlot",{slot:"underwear"})},children:"Remove or Replace Underwear"}),l&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,f&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return d("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,m&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",v)},children:"Handcuffed"})||null,E&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",j)},children:"Legcuffed"})||null,O&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},42592:function(y,u,n){"use strict";n.r(u),n.d(u,{IsolationCentrifuge:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.busy,i=a.antibodies,l=a.pathogens,f=a.is_antibody_sample,m=a.sample_inserted,v=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return m&&(!i&&!l?v=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):v=(0,e.jsxs)(e.Fragment,{children:[i?(0,e.jsx)(t.wn,{title:"Antibodies",children:i}):"",l.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:l.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.name,children:E.spread_type},E.name)})})}):""]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c?(0,e.jsx)(t.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(t.az,{color:"bad",children:c})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:f?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(t.so,{spacing:1,mb:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"print",disabled:!i&&!l.length,onClick:function(){return d("print")},children:"Print"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!m,onClick:function(){return d("sample")},children:"Eject Vial"})})]}),v]}),i&&!f||l.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[i&&!f?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("antibody")},children:i})}):"",l.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:l.map(function(E){return(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("isolate",{isolate:E.reference})},children:E.name},E.name)})}):""]})}):""]})})})}},40939:function(y,u,n){"use strict";n.r(u),n.d(u,{JanitorCart:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.mybag,f=i.mybucket,m=i.mymop,v=i.myspray,E=i.myreplacer,j=i.signs;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:l||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:l?"grey":"transparent",style:{border:l?void 0:"2px solid grey"},onClick:function(){return c("bag")},children:(0,e.jsx)(x,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Bucket Slot",tooltipPosition:"bottom",color:f?"grey":"transparent",style:{border:f?void 0:"2px solid grey"},onClick:function(){return c("bucket")},children:(0,e.jsx)(x,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:m||"Mop Slot",tooltipPosition:"bottom-end",color:m?"grey":"transparent",style:{border:m?void 0:"2px solid grey"},onClick:function(){return c("mop")},children:(0,e.jsx)(x,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Spray Slot",tooltipPosition:"top-end",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return c("spray")},children:(0,e.jsx)(x,{iconkey:"myspray"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:E||"Light Replacer Slot",tooltipPosition:"top",color:E?"grey":"transparent",style:{border:E?void 0:"2px solid grey"},onClick:function(){return c("replacer")},children:(0,e.jsx)(x,{iconkey:"myreplacer"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Signs Slot",tooltipPosition:"top-start",color:j?"grey":"transparent",style:{border:j?void 0:"2px solid grey"},onClick:function(){return c("sign")},children:(0,e.jsx)(x,{iconkey:"signs"})})]})})},g={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},x=function(d){var a=(0,o.Oc)().data,c=d.iconkey,i=a.icons;return c in i?(0,e.jsx)(t._V,{src:i[c].substr(1,i[c].length-1),style:{position:"absolute",left:"0",right:"0",top:"0",bottom:"0",width:"64px",height:"64px"}}):(0,e.jsx)(t.In,{style:{position:"absolute",left:"4px",right:"0",top:"20px",bottom:"0",width:"64px",height:"64px"},fontSize:2,name:g[c]})}},25244:function(y,u,n){"use strict";n.r(u),n.d(u,{Jukebox:function(){return a}});var e=n(20462),o=n(4089),t=n(61282),r=n(61358),s=n(7081),g=n(88569),x=n(41242),d=n(15581),a=function(c){var i=function(){on&&ce("Admin"),He(!on)},l=(0,s.Oc)(),f=l.act,m=l.data,v=m.playing,E=m.loop_mode,j=m.volume,O=m.current_track_ref,M=m.current_track,_=m.current_genre,I=m.percent,S=m.tracks,T=m.admin,A=S.length&&S.reduce(function(Pe,qe){var En=qe.genre||"Uncategorized";return Pe[En]||(Pe[En]=[]),Pe[En].push(qe),Pe},{}),K=v&&(_||"Uncategorized"),W=(0,r.useState)("Unknown"),$=W[0],k=W[1],z=(0,r.useState)(""),H=z[0],G=z[1],Y=(0,r.useState)(0),ee=Y[0],le=Y[1],ne=(0,r.useState)("Unknown"),Q=ne[0],Z=ne[1],V=(0,r.useState)("Admin"),q=V[0],ce=V[1],se=(0,r.useState)(!1),fe=se[0],ge=se[1],Ie=(0,r.useState)(!1),je=Ie[0],Ee=Ie[1],Ne=(0,r.useState)(!1),on=Ne[0],He=Ne[1];return(0,e.jsx)(d.p8,{width:450,height:600,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[(0,e.jsx)(g.wn,{title:"Currently Playing",children:(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Title",children:v&&M&&(0,e.jsxs)(g.az,{children:[M.title," by ",M.artist||"Unkown"]})||(0,e.jsx)(g.az,{children:"Stopped"})}),(0,e.jsxs)(g.Ki.Item,{label:"Controls",children:[(0,e.jsx)(g.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(g.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(g.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(g.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:E===1,children:"Next"}),(0,e.jsx)(g.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:E===2,children:"Shuffle"}),(0,e.jsx)(g.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:E===3,children:"Repeat"}),(0,e.jsx)(g.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:E===4,children:"Once"})]}),(0,e.jsx)(g.Ki.Item,{label:"Progress",children:(0,e.jsx)(g.z2,{value:I,maxValue:1,color:"good"})}),(0,e.jsx)(g.Ki.Item,{label:"Volume",children:(0,e.jsx)(g.Ap,{minValue:0,step:1,value:j*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(Pe){return(0,o.Mg)(Pe,1)+"%"},onChange:function(Pe,qe){return f("volume",{val:(0,o.LI)(qe/100,2)})}})})]})}),(0,e.jsx)(g.wn,{title:"Available Tracks",children:S.length&&Object.keys(A).sort().map(function(Pe){return(0,t.ZH)(Pe)!=="Admin"&&(0,e.jsx)(g.Nt,{title:Pe,color:K===Pe?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:A[Pe].map(function(qe){return(0,e.jsx)(g.$n,{fluid:!0,icon:"play",selected:O===qe.ref,onClick:function(){return f("change_track",{change_track:qe.ref})},children:qe.title},qe.ref)})})},Pe)})||(0,e.jsx)(g.az,{color:"bad",children:"Error: No songs loaded."})}),T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.wn,{title:"Admin Tracks",children:S.length&&Object.keys(A).sort().map(function(Pe){return(0,t.ZH)(Pe)==="Admin"&&(0,e.jsx)(g.Nt,{title:Pe,color:K===Pe?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:A[Pe].map(function(qe){return(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{grow:1,children:(0,e.jsx)(g.$n,{fluid:!0,icon:"play",selected:O===qe.ref,onClick:function(){return f("change_track",{change_track:qe.ref})},children:qe.title},qe.ref)}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.$n.Confirm,{icon:"trash",onClick:function(){return f("remove_new_track",{ref:qe.ref})}})})]},qe.ref)})})},Pe)})||(0,e.jsx)(g.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(g.wn,{title:"Admin Options",children:(0,e.jsxs)(g.Nt,{title:"Add Track",children:[(0,e.jsxs)(g.Ki,{children:[(0,e.jsx)(g.Ki.Item,{label:"Title",children:(0,e.jsx)(g.pd,{width:"100%",value:$,onChange:function(Pe,qe){return k(qe)}})}),(0,e.jsx)(g.Ki.Item,{label:"URL",children:(0,e.jsx)(g.pd,{width:"100%",value:H,onChange:function(Pe,qe){return G(qe)}})}),(0,e.jsx)(g.Ki.Item,{label:"Playtime",children:(0,e.jsx)(g.Q7,{step:1,value:ee,minValue:0,maxValue:3600,onChange:function(Pe){return le(Pe)},format:function(Pe){return(0,x.fU)((0,o.LI)(Pe*10,0))}})}),(0,e.jsx)(g.Ki.Item,{label:"Artist",children:(0,e.jsx)(g.pd,{width:"100%",value:Q,onChange:function(Pe,qe){return Z(qe)}})}),(0,e.jsx)(g.Ki.Item,{label:"Genre",children:(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{grow:1,children:on?(0,e.jsx)(g.pd,{width:"100%",value:q,onChange:function(Pe,qe){return ce(qe)}}):(0,e.jsx)(g.az,{children:q})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.$n.Checkbox,{icon:on?"lock-open":"lock",color:on?"good":"bad",onClick:function(){return i()}})})]})}),(0,e.jsx)(g.Ki.Item,{label:"Secret",children:(0,e.jsx)(g.$n.Checkbox,{checked:fe,onClick:function(){return ge(!fe)}})}),(0,e.jsx)(g.Ki.Item,{label:"Lobby",children:(0,e.jsx)(g.$n.Checkbox,{checked:je,onClick:function(){return Ee(!je)}})})]}),(0,e.jsx)(g.cG,{}),(0,e.jsx)(g.$n,{disabled:!($&&H&&ee&&Q&&q),onClick:function(){return f("add_new_track",{title:$,url:H,duration:ee,artist:Q,genre:q,secret:fe,lobby:je})},children:"Add new Track"})]})})]})]})})}},7881:function(y,u,n){"use strict";n.r(u),n.d(u,{LawManager:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581);function s(){return s=Object.assign||function(l){for(var f=1;f=0)&&(m[E]=l[E]);return m}var x=function(l){var f=(0,o.Oc)().data,m=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[m?(0,e.jsxs)(t.IC,{info:!0,children:["Law-synced to ",m]}):"",(0,e.jsx)(d,{})]})})},d=function(l){var f=(0,o.QY)("lawsTabIndex",0),m=f[0],v=f[1],E=[];return E[0]=(0,e.jsx)(a,{}),E[1]=(0,e.jsx)(i,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:m===0,onClick:function(){return v(0)},children:"Law Management"}),(0,e.jsx)(t.tU.Tab,{selected:m===1,onClick:function(){return v(1)},children:"Law Sets"})]}),E[m]]})},a=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.ion_law_nr,j=v.ion_law,O=v.zeroth_law,M=v.inherent_law,_=v.supplied_law,I=v.supplied_law_position,S=v.zeroth_laws,T=v.has_zeroth_laws,A=v.ion_laws,K=v.has_ion_laws,W=v.inherent_laws,$=v.has_inherent_laws,k=v.supplied_laws,z=v.has_supplied_laws,H=v.isAI,G=v.isMalf,Y=v.isAdmin,ee=v.channel,le=v.channels,ne=S.map(function(Q){return Q.zero=!0,Q}).concat(W);return(0,e.jsxs)(t.wn,{children:[K?(0,e.jsx)(c,{laws:A,title:E+" Laws:",mt:-2}):"",T||$?(0,e.jsx)(c,{laws:ne,title:"Inherent Laws",mt:-2}):"",z?(0,e.jsx)(c,{laws:k,title:"Supplied Laws",mt:-2}):"",(0,e.jsx)(t.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Statement Channel",children:le.map(function(Q){return(0,e.jsx)(t.$n,{selected:ee===Q.channel,onClick:function(){return m("law_channel",{law_channel:Q.channel})},children:Q.channel},Q.channel)})}),(0,e.jsx)(t.Ki.Item,{label:"State Laws",children:(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_laws")},children:"State Laws"})}),H?(0,e.jsx)(t.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(t.$n,{icon:"exclamation",onClick:function(){return m("notify_laws")},children:"Notify"})}):""]})}),G?(0,e.jsx)(t.wn,{title:"Add Laws",mt:-2,children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Add"})]}),Y&&!T?(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:O,fluid:!0,onChange:function(Q,Z){return m("change_zeroth_law",{val:Z})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_zeroth_law")},children:"Add"})})]}):"",(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:j,fluid:!0,onChange:function(Q,Z){return m("change_ion_law",{val:Z})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Inherent"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:M,fluid:!0,onChange:function(Q,Z){return m("change_inherent_law",{val:Z})}})}),(0,e.jsx)(t.XI.Cell,{children:"N/A"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:"Supplied"}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.pd,{value:_,fluid:!0,onChange:function(Q,Z){return m("change_supplied_law",{val:Z})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("change_supplied_law_position")},children:I})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return m("add_supplied_law")},children:"Add"})})]})]})}):""]})},c=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.isMalf,j=v.isAdmin,O=l.laws,M=l.title,_=l.noButtons,I=g(l,["laws","title","noButtons"]);return(0,e.jsx)(t.wn,s({title:M},I,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(t.XI.Cell,{children:"Law"}),_?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"State"}),E&&!_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Delete"})]}):""]}),O.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[S.index,"."]}),(0,e.jsx)(t.XI.Cell,{color:S.zero?"bad":void 0,children:S.law}),_?"":(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"volume-up",selected:S.state,onClick:function(){return m("state_law",{ref:S.ref,state_law:!S.state})},children:S.state?"Yes":"No"})}),E&&!_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!j,icon:"pen",onClick:function(){return m("edit_law",{edit_law:S.ref})},children:"Edit"})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{disabled:S.zero&&!j,color:"bad",icon:"trash",onClick:function(){return m("delete_law",{delete_law:S.ref})},children:"Delete"})})]}):""]},S.index)})]})}))},i=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.isMalf,j=v.law_sets,O=v.ion_law_nr;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),j.length?j.map(function(M){return(0,e.jsxs)(t.wn,{title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!E,icon:"sync",onClick:function(){return m("transfer_laws",{transfer_laws:M.ref})},children:"Load Laws"}),(0,e.jsx)(t.$n,{icon:"volume-up",onClick:function(){return m("state_law_set",{state_law_set:M.ref})},children:"State Laws"})]}),children:[M.laws.has_ion_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.ion_laws,title:O+" Laws:"}):"",M.laws.has_zeroth_laws||M.laws.has_inherent_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.zeroth_laws.concat(M.laws.inherent_laws),title:M.header}):"",M.laws.has_supplied_laws?(0,e.jsx)(c,{noButtons:!0,laws:M.laws.supplied_laws,title:"Supplied Laws"}):""]},M.name)}):""]})}},94979:function(y,u,n){"use strict";n.r(u),n.d(u,{ListInputModal:function(){return a}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),s=n(88569),g=n(15581),x=n(5335),d=n(44149),a=function(l){var f=(0,r.Oc)(),m=f.act,v=f.data,E=v.items,j=E===void 0?[]:E,O=v.message,M=O===void 0?"":O,_=v.init_value,I=v.large_buttons,S=v.timeout,T=v.title,A=(0,o.useState)(j.indexOf(_)),K=A[0],W=A[1],$=(0,o.useState)(j.length>9),k=$[0],z=$[1],H=(0,o.useState)(""),G=H[0],Y=H[1],ee=function(se){var fe=q.length-1;if(se===t.R)if(K===null||K===fe){var ge;W(0),(ge=document.getElementById("0"))==null||ge.scrollIntoView()}else{var Ie;W(K+1),(Ie=document.getElementById((K+1).toString()))==null||Ie.scrollIntoView()}else if(se===t.gf)if(K===null||K===0){var je;W(fe),(je=document.getElementById(fe.toString()))==null||je.scrollIntoView()}else{var Ee;W(K-1),(Ee=document.getElementById((K-1).toString()))==null||Ee.scrollIntoView()}},le=function(se){se!==K&&W(se)},ne=function(){z(!1),z(!0)},Q=function(se){var fe=String.fromCharCode(se),ge=j.find(function(Ee){return Ee==null?void 0:Ee.toLowerCase().startsWith(fe==null?void 0:fe.toLowerCase())});if(ge){var Ie,je=j.indexOf(ge);W(je),(Ie=document.getElementById(je.toString()))==null||Ie.scrollIntoView()}},Z=function(se){var fe;se!==G&&(Y(se),W(0),(fe=document.getElementById("0"))==null||fe.scrollIntoView())},V=function(){z(!k),Y("")},q=j.filter(function(se){return se==null?void 0:se.toLowerCase().includes(G.toLowerCase())}),ce=325+Math.ceil(M.length/3)+(I?5:0);return k||setTimeout(function(){var se;return(se=document.getElementById(K.toString()))==null?void 0:se.focus()},1),(0,e.jsxs)(g.p8,{title:T,width:325,height:ce,children:[S&&(0,e.jsx)(d.Loader,{value:S}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(se){var fe=window.event?se.which:se.keyCode;(fe===t.R||fe===t.gf)&&(se.preventDefault(),ee(fe)),fe===t.Ri&&(se.preventDefault(),m("submit",{entry:q[K]})),!k&&fe>=t.W8&&fe<=t.bh&&(se.preventDefault(),Q(fe)),fe===t.s6&&(se.preventDefault(),m("cancel"))},children:(0,e.jsx)(s.wn,{buttons:(0,e.jsx)(s.$n,{compact:!0,icon:k?"search":"font",selected:!0,tooltip:k?"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(){return V()}}),className:"ListInput__Section",fill:!0,title:M,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(c,{filteredItems:q,onClick:le,onFocusSearch:ne,searchBarVisible:k,selected:K})}),k&&(0,e.jsx)(i,{filteredItems:q,onSearch:Z,searchQuery:G,selected:K}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:q[K]})})]})})})]})},c=function(l){var f=(0,r.Oc)().act,m=l.filteredItems,v=l.onClick,E=l.onFocusSearch,j=l.searchBarVisible,O=l.selected;return(0,e.jsxs)(s.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(s.y5,{}),m.map(function(M,_){return(0,e.jsx)(s.$n,{color:"transparent",fluid:!0,onClick:function(){return v(_)},onDoubleClick:function(I){I.preventDefault(),f("submit",{entry:m[O]})},onKeyDown:function(I){var S=window.event?I.which:I.keyCode;j&&S>=t.W8&&S<=t.bh&&(I.preventDefault(),E())},selected:_===O,style:{animation:"none",transition:"none"},children:M.replace(/^\w/,function(I){return I.toUpperCase()})},_)})]})},i=function(l){var f=(0,r.Oc)().act,m=l.filteredItems,v=l.onSearch,E=l.searchQuery,j=l.selected;return(0,e.jsx)(s.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(O){O.preventDefault(),f("submit",{entry:m[j]})},onInput:function(O,M){return v(M)},placeholder:"Search...",value:E})}},30373:function(y,u,n){"use strict";n.r(u),n.d(u,{LookingGlass:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.supportedPrograms,i=a.currentProgram,l=a.immersion,f=a.gravity,m=Math.min(180+c.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:m,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:c.map(function(v){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:v===i,onClick:function(){return d("program",{program:v})},children:v},v)})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Gravity",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"user-astronaut",selected:f,onClick:function(){return d("gravity")},children:f?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:l,onClick:function(){return d("immersion")},children:l?"Enabled":"Disabled"})})]})})]})})}},88504:function(y,u,n){"use strict";n.r(u),n.d(u,{MechaControlConsole:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.beacons,l=i===void 0?[]:i,f=c.stored_data,m=f===void 0?[]:f;return(0,e.jsx)(s.p8,{width:600,height:600,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[m.length?(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{overflowY:"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return a("clear_log")}}),children:m.map(function(v){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",v.time,") (",v.year,")"]}),(0,e.jsx)(r.az,{children:(0,o.jT)(v.message)})]},v.time)})})}):"",l.length&&l.map(function(v){return(0,e.jsx)(r.wn,{title:v.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("send_message",{mt:v.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("get_log",{mt:v.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return a("shock",{mt:v.ref})},children:"EMP"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[v.maxHealth*.75,1/0],average:[v.maxHealth*.5,v.maxHealth*.75],bad:[-1/0,v.maxHealth*.5]},value:v.health,maxValue:v.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:v.cell&&(0,e.jsx)(r.z2,{ranges:{good:[v.cellMaxCharge*.75,1/0],average:[v.cellMaxCharge*.5,v.cellMaxCharge*.75],bad:[-1/0,v.cellMaxCharge*.5]},value:v.cellCharge,maxValue:v.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[v.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:v.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,o.Sn)(v.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:v.active||"None"}),v.cargoMax?(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[v.cargoMax*.75,1/0],average:[v.cargoMax*.5,v.cargoMax*.75],good:[-1/0,v.cargoMax*.5]},value:v.cargoUsed,maxValue:v.cargoMax})}):""]})},v.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},94921:function(y,u,n){"use strict";n.r(u),n.d(u,{Medbot:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.open,l=a.beaker,f=a.beaker_total,m=a.beaker_max,v=a.locked,E=a.heal_threshold,j=a.heal_threshold_max,O=a.injection_amount_min,M=a.injection_amount,_=a.injection_amount_max,I=a.use_beaker,S=a.declare_treatment,T=a.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("power")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:i?"bad":"good",children:i?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return d("eject")},children:"Eject"}),children:l&&(0,e.jsxs)(t.z2,{value:f,maxValue:m,children:[f," / ",m]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsx)(t.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:0,maxValue:j,value:E,onDrag:function(A){return d("adj_threshold",{val:A})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:O,maxValue:_,value:M,onDrag:function(A){return d("adj_inject",{val:A})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return d("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(t.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(t.$n,{fluid:!0,icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){return d("declaretreatment")},children:S?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:T?"toggle-on":"toggle-off",selected:T,onClick:function(){return d("togglevoice")},children:T?"On":"Off"})})]})})||null]})})}},47407:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(c,i){return x("search",{t1:i})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:a.map(function(c,i){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return x("d_rec",{d_rec:c.ref})},children:c.id+": "+c.name},i)})})]})}},43131:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMedbots:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().data,x=g.medbots;return!x||x.length===0?(0,e.jsx)(t.az,{color:"label",children:"There are no Medbots."}):x.map(function(d,a){return(0,e.jsx)(t.Nt,{open:!0,title:d.name,children:(0,e.jsx)(t.az,{px:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Location",children:[d.area||"Unknown"," (",d.x,", ",d.y,")"]}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:d.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:"good",children:"Online"}),(0,e.jsx)(t.az,{mt:"0.5rem",children:d.use_beaker?"Reservoir: "+d.total_volume+"/"+d.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(t.az,{color:"average",children:"Offline"})})]})})},a)})}},70734:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsMaintenance:function(){return g},MedicalRecordsNavigation:function(){return d},MedicalRecordsView:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(72886),s=n(8615),g=function(a){var c=(0,o.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return c("del_all")},children:"Delete All Medical Records"})]})},x=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.medical,m=l.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.MedicalRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:(0,e.jsx)(s.MedicalRecordsViewMedical,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return i("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(t.$n,{icon:m?"spinner":"print",disabled:m,iconSpin:!!m,ml:"0.5rem",onClick:function(){return i("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return i("screen",{screen:2})},children:"Back"})]})]})},d=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:f===2,onClick:function(){return i("screen",{screen:2})},children:[(0,e.jsx)(t.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===5,onClick:function(){return i("screen",{screen:5})},children:[(0,e.jsx)(t.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===6,onClick:function(){return i("screen",{screen:6})},children:[(0,e.jsx)(t.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(t.tU.Tab,{selected:f===3,onClick:function(){return i("screen",{screen:3})},children:[(0,e.jsx)(t.In,{name:"wrench"}),"Record Maintenance"]})]})}},72886:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewGeneral:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(80724),s=function(g){var x=(0,o.Oc)().data,d=x.general;return!d||!d.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{width:"50%",style:{float:"left"},children:(0,e.jsx)(t.Ki,{children:d.fields.map(function(a,c){return(0,e.jsx)(t.Ki.Item,{label:a.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[a.value,!!a.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(a)}})]})},c)})})}),(0,e.jsx)(t.az,{width:"50%",style:{float:"right"},textAlign:"right",children:!!d.has_photos&&d.photos.map(function(a,c){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:a.substring(1,a.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",c+1]},c)})})]})}},8615:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewMedical:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(80724),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.medical;return!i||!i.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return a("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:i.fields.map(function(l,f){return(0,e.jsx)(t.Ki.Item,{label:l.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[l.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,s.doEdit)(l)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[i.comments&&i.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):i.comments&&i.comments.map(function(l,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:l.header}),(0,e.jsx)("br",{}),l.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return a("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment-medical",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},3748:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViruses:function(){return s}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=function(g){var x=(0,t.Oc)(),d=x.act,a=x.data,c=a.virus;return c&&c.sort(function(i,l){return i.name>l.name?1:-1}),c&&c.map(function(i,l){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return d("vir",{vir:i.D})},children:i.name}),(0,e.jsx)("br",{})]},l)})}},46069:function(y,u,n){"use strict";n.r(u),n.d(u,{severities:function(){return e}});var e={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"}},65456:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecords:function(){return m}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),g=n(35069),x=n(97049),d=n(3751),a=n(47407),c=n(43131),i=n(70734),l=n(3748),f=n(4492),m=function(v){var E=(0,o.Oc)().data,j=E.authenticated,O=E.screen;if(!j)return(0,e.jsx)(s.p8,{width:800,height:380,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var M=[];return M[2]=(0,e.jsx)(a.MedicalRecordsList,{}),M[3]=(0,e.jsx)(i.MedicalRecordsMaintenance,{}),M[4]=(0,e.jsx)(i.MedicalRecordsView,{}),M[5]=(0,e.jsx)(l.MedicalRecordsViruses,{}),M[6]=(0,e.jsx)(c.MedicalRecordsMedbots,{}),(0,e.jsxs)(s.p8,{width:800,height:380,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(s.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(i.MedicalRecordsNavigation,{}),(0,e.jsx)(t.wn,{height:"calc(100% - 5rem)",flexGrow:!0,children:O&&M[O]||""})]})]})};(0,r.modalRegisterBodyOverride)("virus",f.virusModalBodyOverride)},86097:function(y,u,n){"use strict";n.r(u)},4492:function(y,u,n){"use strict";n.r(u),n.d(u,{virusModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act,x=s.args;return(0,e.jsx)(t.wn,{m:"-1rem",title:x.name||"Virus",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return g("modal_close")}}),children:(0,e.jsx)(t.az,{mx:"0.5rem",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Spread",children:[x.spreadtype," Transmission"]}),(0,e.jsx)(t.Ki.Item,{label:"Possible cure",children:x.antigen}),(0,e.jsx)(t.Ki.Item,{label:"Rate of Progression",children:x.rate}),(0,e.jsxs)(t.Ki.Item,{label:"Antibiotic Resistance",children:[x.resistance,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Species Affected",children:x.species}),(0,e.jsx)(t.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(t.Ki,{children:x.symptoms.map(function(d){return(0,e.jsxs)(t.Ki.Item,{label:d.stage+". "+d.name,children:[(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Strength:"})," ",d.strength,"\xA0",(0,e.jsx)(t.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",d.aggressiveness]},d.stage)})})})]})})})}},4477:function(y,u,n){"use strict";n.r(u),n.d(u,{MentorTicketPanel:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g={open:"Open",resolved:"Resolved",unknown:"Unknown"},x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.id,f=i.name,m=i.state,v=i.opened_at,E=i.closed_at,j=i.opened_at_date,O=i.closed_at_date,M=i.actions,_=i.log;return(0,e.jsx)(s.p8,{width:900,height:600,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+l,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return c("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return c("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",l,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:g[m]}),g[m]===g.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:j+" ("+(0,o.Mg)((0,o.LI)(v/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[O+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return c("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(_).map(function(I,S){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_[I]}},S)})})]})})})})}},26948:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorContent:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(5871),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.linkedServer,l=(0,o.useState)(0),f=l[0],m=l[1],v=[];return v[0]=(0,e.jsx)(s.MessageMonitorMain,{}),v[1]=(0,e.jsx)(s.MessageMonitorLogs,{logs:i.pda_msgs,pda:!0}),v[2]=(0,e.jsx)(s.MessageMonitorLogs,{logs:i.rc_msgs,rc:!0}),v[3]=(0,e.jsx)(s.MessageMonitorAdmin,{}),v[4]=(0,e.jsx)(s.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:f===0,onClick:function(){return m(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:f===1,onClick:function(){return m(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===2,onClick:function(){return m(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:f===3,onClick:function(){return m(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:f===4,onClick:function(){return m(4)},children:[(0,e.jsx)(r.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(r.tU.Tab,{color:"red",onClick:function(){return a("deauth")},children:[(0,e.jsx)(r.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(r.az,{m:2,children:v[f]})]})}},9760:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorHack:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),s=function(g){var x=(0,o.Oc)().data,d=x.isMalfAI;return(0,e.jsx)(r.FullscreenNotice,{title:"ERROR",children:d?(0,e.jsx)(t.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(t.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})}},38860:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorLogin:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.isMalfAI;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(t.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(t.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(i,l){return d("auth",{key:l})}})]}),!!c&&(0,e.jsx)(t.$n,{icon:"terminal",onClick:function(){return d("hack")},children:"Hack"}),(0,e.jsx)(t.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})}},5871:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorAdmin:function(){return x},MessageMonitorLogs:function(){return g},MessageMonitorMain:function(){return s},MessageMonitorSpamFilter:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"link",onClick:function(){return i("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:f.active,onClick:function(){return i("active")},children:"Server "+(f.active?"Enabled":"Disabled")})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Server Status",children:(0,e.jsx)(r.az,{color:"good",children:"Good"})})}),(0,e.jsx)(r.$n,{mt:1,icon:"key",onClick:function(){return i("pass")},children:"Set Custom Key"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Message Logs"}),(0,e.jsx)(r.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",children:"Clear Request Logs"})]})},g=function(a){var c=(0,t.Oc)().act,i=a.logs,l=a.pda,f=a.rc;return(0,e.jsx)(r.wn,{title:l?"PDA Logs":f?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return c(l?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:i.map(function(m,v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v%2,children:(0,e.jsx)(r.wn,{title:m.sender+" -> "+m.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return c("delete",{id:m.ref,type:f?"rc":"pda"})}}),children:f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:m.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:m.id_auth==="Unauthenticated"?"bad":"good",children:!!m.id_auth&&(0,o.jT)(m.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:m.stamp})]}):m.message})},m.ref)})})})},x=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.possibleRecipients,m=l.customsender,v=l.customrecepient,E=l.customjob,j=l.custommessage,O=Object.keys(f);return(0,e.jsxs)(r.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Sender",children:(0,e.jsx)(r.pd,{fluid:!0,value:m,onChange:function(M,_){return i("set_sender",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:E,onChange:function(M,_){return i("set_sender_job",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{autoScroll:!1,selected:v,options:O,width:"100%",mb:-.7,onSelected:function(M){return i("set_recipient",{val:f[M]})}})}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.pd,{fluid:!0,mb:.5,value:j,onChange:function(M,_){return i("set_message",{val:_})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return i("send_message")},children:"Send Message"})]})},d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:f.spamFilter.map(function(m){return(0,e.jsx)(r.Ki.Item,{label:m.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return i("deltoken",{deltoken:m.index})},children:"Delete"}),children:m.token},m.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return i("addtoken")},children:"Add New Entry"})]})}},34692:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitor:function(){return a}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),g=n(26948),x=n(9760),d=n(38860),a=function(c){var i=(0,o.Oc)().data,l=i.auth,f=i.linkedServer,m=i.hacking,v=i.emag,E;return m||v?E=(0,e.jsx)(x.MessageMonitorHack,{}):l?f?E=(0,e.jsx)(g.MessageMonitorContent,{}):E=(0,e.jsx)(t.az,{color:"bad",children:"ERROR"}):E=(0,e.jsx)(d.MessageMonitorLogin,{}),(0,e.jsx)(r.p8,{width:670,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),E]})})}},25029:function(y,u,n){"use strict";n.r(u)},41785:function(y,u,n){"use strict";n.r(u),n.d(u,{Microwave:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.config,c=x.data,i=c.broken,l=c.operating,f=c.dirty,m=c.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:i&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||l&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||f&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||m.length&&(0,e.jsx)(t.wn,{title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"radiation",onClick:function(){return d("cook")},children:"Microwave"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return d("dispose")},children:"Eject"})]}),children:(0,e.jsx)(t.Ki,{children:m.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.name,children:[v.amt," ",v.extra]},v.name)})})})||(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"bad",children:[a.title," is empty."]})})})})}},10844:function(y,u,n){"use strict";n.r(u),n.d(u,{MiningOreProcessingConsole:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),g=n(22588),x=function(l){var f=(0,t.Oc)(),m=f.act,v=f.data,E=v.unclaimedPoints,j=v.power,O=v.speed;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(g.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return m("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:O,onClick:function(){return m("speed_toggle")},children:O?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:j,onClick:function(){return m("power")},children:j?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:E<1,icon:"download",onClick:function(){return m("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:E})})})}),(0,e.jsx)(i,{})]})})},d=["Not Processing","Smelting","Compressing","Alloying"],a=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],c=function(l,f){return a.indexOf(l.ore)===-1||a.indexOf(f.ore)===-1?l.ore-f.ore:a.indexOf(f.ore)-a.indexOf(l.ore)},i=function(l){var f=(0,t.Oc)(),m=f.act,v=f.data,E=v.ores,j=v.showAllOres;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return m("showAllOres")},children:j?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:E.length&&E.sort(c).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(O.name),buttons:(0,e.jsx)(r.ms,{autoScroll:!1,width:"120px",color:O.processing===0&&"red"||O.processing===1&&"green"||O.processing===2&&"blue"||O.processing===3&&"yellow"||void 0,options:d,selected:d[O.processing],onSelected:function(M){return m("toggleSmelting",{ore:O.ore,set:d.indexOf(M)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:O.amount})})},O.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},71297:function(y,u,n){"use strict";n.r(u),n.d(u,{MiningStackingConsole:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.stacktypes,l=c.stackingAmt;return(0,e.jsx)(s.p8,{width:400,height:500,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,step:1,value:l,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(f){return a("change_stack",{amt:f})}})}),(0,e.jsx)(r.Ki.Divider,{}),i.length&&i.sort().map(function(f){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(f.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return a("release_stack",{stack:f.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:f.amt})},f.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},602:function(y,u,n){"use strict";n.r(u),n.d(u,{MiningVendor:function(){return i}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),g=n(15581),x=n(22588);function d(){return d=Object.assign||function(v){for(var E=1;E=0)&&(j[M]=v[M]);return j}var c={Alphabetical:function(v,E){return v.name>E.name},"By availability":function(v,E){return-(v.affordable-E.affordable)},"By price":function(v,E){return v.price-E.price}},i=function(v){var E=function(z){I(z)},j=function(z){A(z)},O=function(z){$(z)},M=(0,t.useState)(""),_=M[0],I=M[1],S=(0,t.useState)("Alphabetical"),T=S[0],A=S[1],K=(0,t.useState)(!1),W=K[0],$=K[1];return(0,e.jsx)(g.p8,{width:400,height:450,children:(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(x.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(f,{searchText:_,sortOrder:T,descending:W,onSearchText:E,onSortOrder:j,onDescending:O}),(0,e.jsx)(l,{searchText:_,sortOrder:T,descending:W})]})})},l=function(v){var E=(0,r.Oc)(),j=E.act,O=E.data,M=O.has_id,_=O.id,I=O.items,S=(0,o.XZ)(v.searchText,function(K){return K[0]}),T=!1,A=Object.entries(I).map(function(K,W){var $=Object.entries(K[1]).filter(S).map(function(k){return k[1].affordable=+(M&&_.points>=k[1].price),k[1]}).sort(c[v.sortOrder]);if($.length!==0)return v.descending&&($=$.reverse()),T=!0,(0,e.jsx)(m,{title:K[0],items:$},K[0])});return(0,e.jsx)(s.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(s.wn,{children:T?A:(0,e.jsx)(s.az,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(v){return(0,e.jsx)(s.az,{mb:"0.5rem",children:(0,e.jsxs)(s.so,{width:"100%",children:[(0,e.jsx)(s.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(s.pd,{placeholder:"Search by item name..",value:v.searchText,width:"100%",onInput:function(E,j){return v.onSearchText(j)}})}),(0,e.jsx)(s.so.Item,{basis:"30%",children:(0,e.jsx)(s.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(c),width:"100%",lineHeight:"19px",onSelected:function(E){return v.onSortOrder(E)}})}),(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.$n,{icon:v.descending?"arrow-down":"arrow-up",height:"19px",tooltip:v.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return v.onDescending(!v.descending)}})})]})})},m=function(v){var E=(0,r.Oc)(),j=E.act,O=E.data,M=O.has_id,_=O.id,I=v.title,S=v.items,T=a(v,["title","items"]);return(0,e.jsx)(s.Nt,d({open:!0,title:I},T,{children:S.map(function(A){return(0,e.jsxs)(s.az,{children:[(0,e.jsx)(s.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:A.name}),(0,e.jsx)(s.$n,{disabled:!M||_.points=450?"Overcharged":r>=250?"Good Charge":"Low Charge":r>=250?"NIF Power Requirement met.":r>=150?"Fluctuations in available power.":"Power failure imminent."}},63300:function(y,u,n){"use strict";n.r(u),n.d(u,{NIF:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=n(7428),x=n(84772),d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.config,f=c.data,m=f.theme,v=f.last_notification,E=(0,o.useState)(!1),j=E[0],O=E[1],M=(0,o.useState)(null),_=M[0],I=M[1];return(0,e.jsx)(s.p8,{theme:m,width:500,height:400,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!v&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:v}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return i("dismissNotification")}})})]})})}),!!_&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:_.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",confirmIcon:"ban",confirmContent:"Uninstall "+_.name+"?",onClick:function(){i("uninstall",{module:_.ref}),I(null)},children:"Uninstall"}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return I(null)}})]}),children:[(0,e.jsx)(r.az,{children:_.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:_.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:_.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:_.illegal?"bad":"good",children:["It is ",_.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[_.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",_.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+l.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:j,onClick:function(){return O(!j)}}),children:j&&(0,e.jsx)(x.NIFSettings,{})||(0,e.jsx)(g.NIFMain,{setViewing:I})})]})})}},11045:function(y,u,n){"use strict";n.r(u)},14910:function(y,u,n){"use strict";n.r(u),n.d(u,{NTNetRelay:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(72859),g=function(a){var c=(0,o.Oc)().data,i=c.dos_crashed,l=(0,e.jsx)(x,{});return i&&(l=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:i?700:500,height:i?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l})})},x=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.enabled,m=l.dos_overload,v=l.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return i("toggle")},children:"Relay "+(f?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[m," / ",v," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return i("purge")},children:"Purge network blacklist"})})]})})},d=function(a){var c=(0,o.Oc)().act;return(0,e.jsxs)(s.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(t.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return c("restart")},children:"Purge buffered traffic"})})]})}},3949:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterMainMenu:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(g){var x=(0,o.Oc)().data,d=x.securityCaster,a=x.wanted_issue,c=g.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Main Menu",children:[a&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c(r.NEWSCASTER_SCREEN_VIEWWANTED)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c(r.NEWSCASTER_SCREEN_VIEWLIST)},children:"View Feed Channels"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWCHANNEL)},children:"Create Feed Channel"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWSTORY)},children:"Create Feed Message"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"print",onClick:function(){return c(r.NEWSCASTER_SCREEN_PRINT)},children:"Print Newspaper"})]}),!!d&&(0,e.jsx)(t.wn,{title:"Feed Security Functions",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return c(r.NEWSCASTER_SCREEN_NEWWANTED)},children:'Manage "Wanted" Issue'})})]})}},71588:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewChannel:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.channel_name,l=c.c_locked,f=c.user,m=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(i),onInput:function(v,E){return a("set_channel_name",{val:E})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:f}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:l?"lock":"lock-open",selected:!l,onClick:function(){return a("set_channel_lock")},children:l?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},85578:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewStory:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.channel_name,i=a.user,l=a.title,f=a.msg,m=a.photo_data,v=g.setScreen;return(0,e.jsxs)(t.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return d("set_channel_receiving")},children:c||"Unset"})}),(0,e.jsx)(t.Ki.Item,{label:"Message Author",color:"good",children:i}),(0,e.jsx)(t.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:l||"(no title yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.wn,{width:"99%",inline:!0,children:f||"(no message yet)"})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{verticalAlign:"top",onClick:function(){return d("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(t.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"image",onClick:function(){return d("set_attachment")},children:m?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return d("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},92432:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewWanted:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.channel_name,l=c.msg,f=c.photo_data,m=c.user,v=c.wanted_issue,E=x.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return E(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!v&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(i),onInput:function(j,O){return a("set_channel_name",{val:O})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(l),onInput:function(j,O){return a("set_wanted_desc",{val:O})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return a("set_attachment")},children:f?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:m})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_wanted")},children:"Submit Wanted Issue"}),!!v&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return a("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return E(s.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},7662:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterPrint:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.total_num,i=a.active_num,l=a.message_num,f=a.paper_remaining,m=g.setScreen;return(0,e.jsxs)(t.wn,{title:"Printing",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",c," Feed channels,"," ",i," of which are active, and a total of ",l," Feed stories."]}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Liquid Paper remaining",children:[f*100," cm\xB3"]})}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return d("print_paper")},children:"Print Paper"}),(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return m(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},12512:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewList:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.channels,l=x.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:i.map(function(f){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:f.admin?"good":f.censored?"bad":"",onClick:function(){a("show_channel",{show_channel:f.ref}),l(s.NEWSCASTER_SCREEN_SELECTEDCHANNEL)},children:(0,o.jT)(f.name)},f.name)})})}},96935:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewSelected:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.viewing_channel,l=c.securityCaster,f=c.company,m=x.setScreen;return i?(0,e.jsxs)(r.wn,{title:(0,o.jT)(i.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!l&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return a("toggle_d_notice",{ref:i.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:l&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return a("censor_channel_author",{ref:i.ref})},children:(0,o.jT)(i.author)})||(0,e.jsx)(r.az,{children:(0,o.jT)(i.author)})})}),!!i.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",f," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!i.messages.length&&i.messages.map(function(v){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(v.body),!!v.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+v.img}),!!v.caption&&(0,o.jT)(v.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,o.jT)(v.author)," -"," ",v.timestamp,"]"]}),!!l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_body",{ref:v.ref})},children:"Censor Story"}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",onClick:function(){return a("censor_channel_story_author",{ref:v.ref})},children:"Censor Author"})]})]},v.ref)})||!i.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return m(s.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"}),children:"The channel you were looking for no longer exists."})}},28189:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewWanted:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(42501),g=function(x){var d=(0,t.Oc)().data,a=d.wanted_issue,c=x.setScreen;return a?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,o.jT)(a.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,o.jT)(a.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,o.jT)(a.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:a.img&&(0,e.jsx)(r._V,{src:a.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(s.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:"There are no wanted issues currently outstanding."})}},42501:function(y,u,n){"use strict";n.r(u),n.d(u,{NEWSCASTER_SCREEN_MAIN:function(){return e},NEWSCASTER_SCREEN_NEWCHANNEL:function(){return o},NEWSCASTER_SCREEN_NEWSTORY:function(){return r},NEWSCASTER_SCREEN_NEWWANTED:function(){return g},NEWSCASTER_SCREEN_PRINT:function(){return s},NEWSCASTER_SCREEN_SELECTEDCHANNEL:function(){return d},NEWSCASTER_SCREEN_VIEWLIST:function(){return t},NEWSCASTER_SCREEN_VIEWWANTED:function(){return x}});var e="Main Menu",o="New Channel",t="View List",r="New Story",s="Print",g="New Wanted",x="View Wanted",d="View Selected Channel"},93856:function(y,u,n){"use strict";n.r(u),n.d(u,{Newscaster:function(){return v}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),g=n(42501),x=n(3949),d=n(71588),a=n(85578),c=n(92432),i=n(7662),l=n(12512),f=n(96935),m=n(28189),v=function(j){return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{decode:!0}),(0,e.jsx)(E,{})]})})},E=function(j){var O=(0,o.QY)("screen",g.NEWSCASTER_SCREEN_MAIN),M=O[0],_=O[1],I=[];return I[g.NEWSCASTER_SCREEN_MAIN]=(0,e.jsx)(x.NewscasterMainMenu,{setScreen:_}),I[g.NEWSCASTER_SCREEN_NEWCHANNEL]=(0,e.jsx)(d.NewscasterNewChannel,{setScreen:_}),I[g.NEWSCASTER_SCREEN_VIEWLIST]=(0,e.jsx)(l.NewscasterViewList,{setScreen:_}),I[g.NEWSCASTER_SCREEN_NEWSTORY]=(0,e.jsx)(a.NewscasterNewStory,{setScreen:_}),I[g.NEWSCASTER_SCREEN_PRINT]=(0,e.jsx)(i.NewscasterPrint,{setScreen:_}),I[g.NEWSCASTER_SCREEN_NEWWANTED]=(0,e.jsx)(c.NewscasterNewWanted,{setScreen:_}),I[g.NEWSCASTER_SCREEN_VIEWWANTED]=(0,e.jsx)(m.NewscasterViewWanted,{setScreen:_}),I[g.NEWSCASTER_SCREEN_SELECTEDCHANNEL]=(0,e.jsx)(f.NewscasterViewSelected,{setScreen:_}),(0,e.jsx)(t.az,{children:I[M]})}},5537:function(y,u,n){"use strict";n.r(u)},4418:function(y,u,n){"use strict";n.r(u),n.d(u,{NoticeBoard:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:c.length?(0,e.jsx)(t.Ki,{children:c.map(function(i,l){return(0,e.jsxs)(t.Ki.Item,{label:i.name,children:[i.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return d("look",{ref:i.ref})},children:"Look"})||i.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return d("read",{ref:i.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("write",{ref:i.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return d("remove",{ref:i.ref})},children:"Remove"})]},l)})}):(0,e.jsx)(t.az,{color:"average",children:"No notices posted here."})})})})}},78610:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosAccessDecrypter:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(39841),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.message,l=c.running,f=c.rate,m=c.factor,v=c.regions,E=function(O){for(var M="";M.lengthm?M+="0":M+="1";return M},j=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:i&&(0,e.jsx)(t.IC,{children:i})||l&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",f," PHash/s",(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.az,{children:E(j)}),(0,e.jsx)(t.$n,{fluid:!0,icon:"ban",onClick:function(){return a("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(t.wn,{title:"Pick access code to decrypt",children:v.length&&(0,e.jsx)(s.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(t.az,{children:"Please insert ID card."})})})})}},25316:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosArcade:function(){return g}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.PlayerHitpoints,l=c.PlayerMP,f=c.PauseState,m=c.Status,v=c.Hitpoints,E=c.BossID,j=c.GameActive,O=c.TicketCount;return(0,e.jsx)(s.Zm,{width:450,height:350,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:i,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[i,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:l,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[l,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:f===1?"#1b3622":"#471915",children:m})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:v,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:v}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)(r._V,{src:(0,o.l)(E)})})]})]})}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:j===0||f===1,onClick:function(){return a("Recharge_Power")},children:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Start_Game")},children:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:j===1,onClick:function(){return a("Dispense_Tickets")},children:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:O>=1?"good":"normal",children:["Earned Tickets: ",O]})]})})})}},98669:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosAtmosControl:function(){return r}});var e=n(20462),o=n(15581),t=n(74737),r=function(){return(0,e.jsx)(o.Zm,{width:870,height:708,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.AtmosControlContent,{})})})}},34470:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCameraConsole:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(18490),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.mapRef,l=c.activeCamera,f=c.cameras,m=(0,s.selectCameras)(f),v=(0,s.prevNextCamera)(m,l),E=v[0],j=v[1];return(0,e.jsx)(r.Zm,{width:870,height:708,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(s.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),l&&l.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(t.$n,{icon:"chevron-left",disabled:!E,onClick:function(){return a("switch_camera",{name:E})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",disabled:!j,onClick:function(){return a("switch_camera",{name:j})}}),"| PAN:",(0,e.jsx)(t.$n,{icon:"chevron-left",onClick:function(){return a("pan",{dir:8})}}),(0,e.jsx)(t.$n,{icon:"chevron-up",onClick:function(){return a("pan",{dir:1})}}),(0,e.jsx)(t.$n,{icon:"chevron-right",onClick:function(){return a("pan",{dir:4})}}),(0,e.jsx)(t.$n,{icon:"chevron-down",onClick:function(){return a("pan",{dir:2})}})]}),(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:i,type:"map"}})]})]})})}},77580:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCommunicationsConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(34116),r=function(){return(0,e.jsx)(o.Zm,{width:400,height:600,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.CommunicationsConsoleContent,{})})})}},35300:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosConfiguration:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.PC_device_theme,i=a.power_usage,l=a.battery_exists,f=a.battery,m=f===void 0?{}:f,v=a.disk_size,E=a.disk_used,j=a.hardware,O=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{theme:c,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Power Supply",buttons:(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",i,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!l&&"average"||void 0,children:l?(0,e.jsxs)(t.z2,{value:m.charge,minValue:0,maxValue:m.max,ranges:{good:[m.max/2,1/0],average:[m.max/4,m.max/2],bad:[-1/0,m.max/4]},children:[m.charge," / ",m.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:E,minValue:0,maxValue:v,color:"good",children:[E," GQ / ",v," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:O.map(function(M){return(0,e.jsx)(t.wn,{title:M.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!M.critical&&(0,e.jsx)(t.$n.Checkbox,{checked:M.enabled,mr:1,onClick:function(){return d("PC_toggle_component",{name:M.name})},children:"Enabled"}),(0,e.jsxs)(t.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",M.powerusage,"W"]})]}),children:M.desc},M.name)})})]})})}},23984:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCrewManifest:function(){return r}});var e=n(20462),o=n(15581),t=n(58044),r=function(){return(0,e.jsx)(o.Zm,{width:800,height:600,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.CrewManifestContent,{})})})}},69233:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosCrewMonitor:function(){return s}});var e=n(20462),o=n(61358),t=n(15581),r=n(70117),s=function(){var g=function(v){c(v)},x=function(v){f(v)},d=(0,o.useState)(0),a=d[0],c=d[1],i=(0,o.useState)(1),l=i[0],f=i[1];return(0,e.jsx)(t.Zm,{width:800,height:600,children:(0,e.jsx)(t.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:a,zoom:l,onTabIndex:g,onZoom:x})})})}},6303:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosDigitalWarrant:function(){return g}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),g=function(c){var i=(0,t.Oc)().data,l=i.warrantauth,f=(0,e.jsx)(x,{});return l&&(f=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:500,height:350,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:f})})},x=function(c){var i=(0,t.Oc)().act;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return i("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{title:"Arrest Warrants",children:(0,e.jsx)(d,{type:"arrest"})}),(0,e.jsx)(r.wn,{title:"Search Warrants",children:(0,e.jsx)(d,{type:"search"})})]})},d=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=c.type,v=f.allwarrants,E=v===void 0?[]:v,j=(0,o.pb)(E,function(O){return O.arrestsearch===m});return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:m==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),j.length&&j.map(function(O){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:O.warrantname}),(0,e.jsx)(r.XI.Cell,{children:O.charges}),(0,e.jsx)(r.XI.Cell,{children:O.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrant",{id:O.id})}})})]},O.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",m," warrants found."]})})]})},a=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.warrantname,v=f.warrantcharges,E=f.warrantauth,j=f.type,O=j==="arrest",M=j==="arrest"?"Name":"Location",_=j==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:O?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return l("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:M,buttons:O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return l("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}}),children:m}),(0,e.jsx)(r.Ki.Item,{label:_,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantcharges")}}),children:v}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return l("editwarrantauth")}}),children:E})]})})}},27896:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosEmailAdministration:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(94151),g=function(i){var l=(0,o.Oc)().data,f=l.error,m=l.cur_title,v=l.current_account,E=l.accounts,j=(0,e.jsx)(x,{accounts:E});return f?j=(0,e.jsx)(d,{error:f}):m?j=(0,e.jsx)(a,{}):v&&(j=(0,e.jsx)(c,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},x=function(i){var l=(0,o.Oc)().act,f=i.accounts;return(0,e.jsxs)(t.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(t.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(m){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l("viewaccount",{viewaccount:m.uid})},children:m.login},m.uid)})]})},d=function(i){var l=(0,o.Oc)().act,f=i.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"}),children:f})},a=function(i){return(0,e.jsx)(t.wn,{children:(0,e.jsx)(s.NtosEmailClientViewMessage,{administrator:!0})})},c=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.current_account,E=m.cur_suspended,j=m.messages,O=j===void 0?[]:j;return(0,e.jsxs)(t.wn,{title:"Viewing "+v+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("back")},children:"Back"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Account Status",children:(0,e.jsx)(t.$n,{color:E?"bad":"",icon:"ban",tooltip:(E?"Uns":"S")+"uspend Account?",onClick:function(){return f("ban")},children:E?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return f("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{title:"Messages",children:O.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Source"}),(0,e.jsx)(t.XI.Cell,{children:"Title"}),(0,e.jsx)(t.XI.Cell,{children:"Received at"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),O.map(function(M){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:M.source}),(0,e.jsx)(t.XI.Cell,{children:M.title}),(0,e.jsx)(t.XI.Cell,{children:M.timestamp}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("viewmail",{viewmail:M.uid})},children:"View"})})]},M.uid)})]})||(0,e.jsx)(t.az,{color:"average",children:"No messages found in selected account."})})]})}},94151:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosEmailClient:function(){return g},NtosEmailClientViewMessage:function(){return c}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g=function(v){var E=(0,t.Oc)().data,j=E.PC_device_theme,O=E.error,M=E.downloading,_=E.current_account,I=(0,e.jsx)(m,{});return O?I=(0,e.jsx)(f,{error:O}):M?I=(0,e.jsx)(x,{}):_&&(I=(0,e.jsx)(d,{})),(0,e.jsx)(s.Zm,{resizable:!0,theme:j,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:I})})},x=function(v){var E=(0,t.Oc)().data,j=E.down_filename,O=E.down_progress,M=E.down_size,_=E.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[j," (",M," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:_})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:O,maxValue:M,children:O+"/"+M+" ("+(0,o.Mg)(O/M*100,1)+"%)"})})]})})},d=function(v){var E=(0,t.Oc)(),j=E.act,O=E.data,M=O.current_account,_=O.addressbook,I=O.new_message,S=O.cur_title,T=O.accounts,A=(0,e.jsx)(a,{});return _?A=(0,e.jsx)(i,{accounts:T}):I?A=(0,e.jsx)(l,{}):S&&(A=(0,e.jsx)(c,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+M,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return j("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return j("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return j("logout")}})]}),children:A})},a=function(v){var E=(0,t.Oc)(),j=E.act,O=E.data,M=O.folder,_=O.messagecount,I=O.messages;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:M==="Inbox",onClick:function(){return j("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Spam",onClick:function(){return j("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:M==="Deleted",onClick:function(){return j("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),_&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),I.map(function(S){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:S.source}),(0,e.jsx)(r.XI.Cell,{children:S.title}),(0,e.jsx)(r.XI.Cell,{children:S.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return j("view",{view:S.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("reply",{reply:S.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return j("delete",{delete:S.uid})},tooltip:"Delete"})]})]},S.timestamp+S.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",M,"."]})]})},c=function(v){var E=(0,t.Oc)(),j=E.act,O=E.data,M=v.administrator,_=O.cur_title,I=O.cur_source,S=O.cur_timestamp,T=O.cur_body,A=O.cur_hasattachment,K=O.cur_attachment_filename,W=O.cur_attachment_size,$=O.cur_uid;return(0,e.jsx)(r.wn,{title:_,buttons:M?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return j("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return j("reply",{reply:$})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return j("delete",{delete:$})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return j("save",{save:$})}}),A&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return j("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return j("cancel",{cancel:$})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:I}),(0,e.jsx)(r.Ki.Item,{label:"At",children:S}),A&&!M&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[K," (",W,"GQ)"]})||"",(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})})]})})},i=function(v){var E=(0,t.Oc)().act,j=v.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return E("set_recipient",{set_recipient:null})}}),children:j.map(function(O){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return E("set_recipient",{set_recipient:O.login})},children:O.login},O.login)})})},l=function(v){var E=(0,t.Oc)(),j=E.act,O=E.data,M=O.msg_title,_=M===void 0?"":M,I=O.msg_recipient,S=I===void 0?"":I,T=O.msg_body,A=O.msg_hasattachment,K=O.msg_attachment_filename,W=O.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:_,onInput:function($,k){return j("edit_title",{val:k})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function($,k){return j("edit_recipient",{val:k})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return j("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:A&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return j("addattachment")},children:"Add Attachment"}),children:A&&(0,e.jsxs)(r.az,{inline:!0,children:[K," (",W,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:T}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return j("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},f=function(v){var E=(0,t.Oc)().act,j=v.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return E("reset")},children:"Return"}),children:(0,e.jsx)(r.az,{color:"bad",children:j})})},m=function(v){var E=(0,t.Oc)(),j=E.act,O=E.data,M=O.stored_login,_=M===void 0?"":M,I=O.stored_password,S=I===void 0?"":I;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:_,onInput:function(T,A){return j("edit_login",{val:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(T,A){return j("edit_password",{val:A})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return j("login")},children:"Log In"})]})}},12813:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosFileManager:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.PC_device_theme,l=c.usbconnected,f=c.filename,m=c.filedata,v=c.error,E=c.files,j=E===void 0?[]:E,O=c.usbfiles,M=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{resizable:!0,theme:i,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[f&&(0,e.jsx)(t.wn,{title:"Viewing File "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("PRG_edit")},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("PRG_printfile")},children:"Print"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return a("PRG_closefile")},children:"Close"})]}),children:m&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:m}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(g,{files:j,usbconnected:l,onUpload:function(_){return a("PRG_copytousb",{uid:_})},onDelete:function(_){return a("PRG_deletefile",{uid:_})},onOpen:function(_){return a("PRG_openfile",{uid:_})},onRename:function(_,I){return a("PRG_rename",{uid:_,new_name:I})},onDuplicate:function(_){return a("PRG_clone",{uid:_})}})}),l&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(g,{usbmode:!0,files:M,usbconnected:l,onUpload:function(_){return a("PRG_copyfromusb",{uid:_})},onDelete:function(_){return a("PRG_deletefile",{uid:_})},onOpen:function(_){return a("PRG_openfile",{uid:_})},onRename:function(_,I){return a("PRG_rename",{uid:_,new_name:I})},onDuplicate:function(_){return a("PRG_clone",{uid:_})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return a("PRG_newtextfile")},children:"New Text File"})})]}),v&&(0,e.jsxs)(t.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return a("PRG_clearerror")}})})}),(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.so.Item,{grow:!0,children:v})})]})]})})},g=function(x){var d=x.files,a=d===void 0?[]:d,c=x.usbconnected,i=x.usbmode,l=x.onUpload,f=x.onDelete,m=x.onRename,v=x.onOpen,E=x.onDuplicate;return(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"File"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:"Size"})]}),a.map(function(j){return(0,e.jsxs)(t.XI.Row,{className:"candystripe",children:[(0,e.jsx)(t.XI.Cell,{children:j.undeletable?j.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{width:"80%",currentValue:j.name,tooltip:"Rename",onCommit:function(O,M){return m(j.uid,M)},children:j.name}),(0,e.jsx)(t.$n,{onClick:function(){return v(j.uid)},children:"Open"})]})}),(0,e.jsx)(t.XI.Cell,{children:j.type}),(0,e.jsx)(t.XI.Cell,{children:j.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:!j.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return f(j.uid)}}),!!c&&(i?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return l(j.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return l(j.uid)}}))]})})]},j.name)})]})}},39925:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosIdentificationComputer:function(){return r}});var e=n(20462),o=n(15581),t=n(39841),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.IdentificationComputerContent,{ntos:!0})})})}},45319:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosMain:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.device_theme,l=c.programs,f=l===void 0?[]:l,m=c.has_light,v=c.light_on,E=c.comp_light_color,j=c.removable_media,O=j===void 0?[]:j,M=c.login,_=M===void 0?{}:M;return(0,e.jsx)(r.Zm,{title:i==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:i,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!m&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:v,onClick:function(){return a("PC_toggle_light")},children:["Flashlight: ",v?"ON":"OFF"]}),(0,e.jsxs)(t.$n,{ml:1,onClick:function(){return a("PC_light_color")},children:["Color:",(0,e.jsx)(t.BK,{ml:1,color:E})]})]}),(0,e.jsx)(t.wn,{title:"User Login",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!_.IDName,onClick:function(){return a("PC_Eject_Disk",{name:"ID"})},children:"Eject ID"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:["ID Name: ",_.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",_.IDJob]})]})}),!!O.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:O.map(function(I){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"eject",onClick:function(){return a("PC_Eject_Disk",{name:I})},children:I})})},I)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:f.map(function(I){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:s[I.name]||"window-maximize-o",onClick:function(){return a("PC_runprogram",{name:I.name})},children:I.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return a("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(t.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return a("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},9785:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetChat:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.can_admin,i=a.adminmode,l=a.authed,f=a.username,m=a.active_channel,v=a.is_operator,E=a.all_channels,j=E===void 0?[]:E,O=a.clients,M=O===void 0?[]:O,_=a.messages,I=_===void 0?[]:_,S=m!==null,T=l||i;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(t.wn,{height:"600px",children:(0,e.jsx)(t.XI,{height:"580px",children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(t.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(A,K){return d("PRG_newchannel",{new_channel_name:K})},children:"New Channel..."}),j.map(function(A){return(0,e.jsx)(t.$n,{fluid:!0,selected:A.id===m,color:"transparent",onClick:function(){return d("PRG_joinchannel",{id:A.id})},children:A.chan},A.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:f,onCommit:function(A,K){return d("PRG_changename",{new_name:K})},children:f+"..."}),!!c&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:i?"bad":"good",onClick:function(){return d("PRG_toggleadmin")},children:"ADMIN MODE: "+(i?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:S&&(T?I.map(function(A){return(0,e.jsx)(t.az,{children:A.msg},A.msg)}):(0,e.jsxs)(t.az,{textAlign:"center",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(t.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(t.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(t.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(A,K){return d("PRG_speak",{message:K})}})]}),(0,e.jsxs)(t.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(t.az,{height:"465px",overflowY:"scroll",children:M.map(function(A){return(0,e.jsx)(t.az,{children:A.name},A.name)})}),S&&T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(A,K){return d("PRG_savelog",{log_name:K})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_leavechannel")},children:"Leave Channel"})]}),!!v&&l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_deletechannel")},children:"Delete Channel"}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(A,K){return d("PRG_renamechannel",{new_name:K})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(A,K){return d("PRG_setpassword",{new_password:K})},children:"Set Password..."})]})]})]})})})})})}},82193:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetDos:function(){return s},NtosNetDosContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.relays,l=i===void 0?[]:i,f=c.focus,m=c.target,v=c.speed,E=c.overload,j=c.capacity,O=c.error;if(O)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:O}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return a("PRG_reset")},children:"Reset"})]});var M=function(I){for(var S="",T=E/j;S.lengthT?S+="0":S+="1";return S},_=45;return m?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",v," GQ/s"]}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)}),(0,e.jsx)(t.az,{children:M(_)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:l.map(function(I){return(0,e.jsx)(t.$n,{selected:f===I.id,onClick:function(){return a("PRG_target_relay",{targid:I.id})},children:I.id},I.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!f,mt:1,onClick:function(){return a("PRG_execute")},children:"EXECUTE"})]})}},43726:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetDownloader:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.PC_device_theme,f=i.disk_size,m=i.disk_used,v=i.downloadable_programs,E=v===void 0?[]:v,j=i.error,O=i.hacked_programs,M=O===void 0?[]:O,_=i.hackedavailable;return(0,e.jsx)(s.Zm,{theme:l,width:480,height:735,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:j}),(0,e.jsx)(r.$n,{onClick:function(){return c("PRG_reseterror")},children:"Reset"})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:m,minValue:0,maxValue:f,children:m+" GQ / "+f+" GQ"})})})}),(0,e.jsx)(r.wn,{children:E.map(function(I){return(0,e.jsx)(x,{program:I},I.filename)})}),!!_&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),M.map(function(I){return(0,e.jsx)(x,{program:I},I.filename)})]})]})})},x=function(d){var a=d.program,c=(0,t.Oc)(),i=c.act,l=c.data,f=l.disk_size,m=l.disk_used,v=l.downloadcompletion,E=l.downloadname,j=l.downloadsize,O=l.downloadspeed,M=l.downloads_queue,_=f-m;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:a.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[a.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:a.filename===E&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:v,children:[(0,o.Mg)(v/j*100,1),"%\xA0","("+O+"GQ/s)"]})||M.indexOf(a.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return i("PRG_removequeued",{filename:a.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:a.size>_,onClick:function(){return i("PRG_downloadfile",{filename:a.filename})},children:"Download"})})]}),a.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),a.size>_&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:a.fileinfo})]})}},30817:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetMonitor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.ntnetrelays,i=a.ntnetstatus,l=a.config_softwaredownload,f=a.config_peertopeer,m=a.config_communication,v=a.config_systemcontrol,E=a.idsalarm,j=a.idsstatus,O=a.ntnetmaxlogs,M=a.maxlogs,_=a.minlogs,I=a.banned_nids,S=a.ntnetlogs,T=S===void 0?[]:S;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(t.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(t.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(t.$n.Confirm,{icon:i?"power-off":"times",selected:i,onClick:function(){return d("toggleWireless")},children:i?"ENABLED":"DISABLED"}),children:c?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:c})}):"No Relays Connected"}),(0,e.jsx)(t.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(t.$n,{icon:l?"power-off":"times",selected:l,onClick:function(){return d("toggle_function",{id:"1"})},children:l?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:f?"power-off":"times",selected:f,onClick:function(){return d("toggle_function",{id:"2"})},children:f?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:m?"power-off":"times",selected:m,onClick:function(){return d("toggle_function",{id:"3"})},children:m?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return d("toggle_function",{id:"4"})},children:v?"ENABLED":"DISABLED"})})]})}),(0,e.jsxs)(t.wn,{title:"Security Systems",children:[!!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(t.az,{italic:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return d("ban_nid")},children:"Ban NID"}),(0,e.jsx)(t.$n,{icon:"balance-scale",onClick:function(){return d("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(t.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:j?"power-off":"times",selected:j,onClick:function(){return d("toggleIDS")},children:j?"ENABLED":"DISABLED"}),(0,e.jsx)(t.$n,{icon:"sync",color:"bad",onClick:function(){return d("resetIDS")},children:"Reset"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(t.Q7,{step:1,value:O,minValue:_,maxValue:M,width:"39px",onChange:function(A){return d("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(t.wn,{title:"System Log",buttons:(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return d("purgelogs")},children:"Clear Logs"}),children:T.map(function(A){return(0,e.jsx)(t.az,{className:"candystripe",children:A.entry},A.entry)})})]})]})})}},49106:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetTransfer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(i){var l=(0,o.Oc)().data,f=l.error,m=l.downloading,v=l.uploading,E=l.upload_filelist,j=(0,e.jsx)(c,{});return f?j=(0,e.jsx)(g,{}):m?j=(0,e.jsx)(x,{}):v?j=(0,e.jsx)(d,{}):E.length&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.error;return(0,e.jsxs)(t.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Reset"}),children:["Additional Information: ",v]})},x=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.download_name,E=m.download_progress,j=m.download_size,O=m.download_netspeed;return(0,e.jsx)(t.wn,{title:"Download in progress",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Downloaded File",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Progress",children:(0,e.jsxs)(t.z2,{value:E,maxValue:j,children:[E," / ",j," GQ"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer Speed",children:[O," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Download"})})]})})},d=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.upload_clients,E=m.upload_filename,j=m.upload_haspassword;return(0,e.jsx)(t.wn,{title:"Server enabled",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Clients Connected",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Provided file",children:E}),(0,e.jsx)(t.Ki.Item,{label:"Server Password",children:j?"Enabled":"Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Commands",children:[(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return f("PRG_reset")},children:"Cancel Upload"})]})]})})},a=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return f("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return f("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",children:v.map(function(E){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return f("PRG_uploadfile",{uid:E.uid})},children:[E.filename," (",E.size,"GQ)"]},E.uid)})})]})},c=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return f("PRG_uploadmenu")},children:"Send File"}),children:v.length&&(0,e.jsx)(t.Ki,{children:v.map(function(E){return(0,e.jsxs)(t.Ki.Item,{label:E.uid,children:[!!E.haspassword&&(0,e.jsx)(t.In,{name:"lock",mr:1}),E.filename,"\xA0 (",E.size,"GQ)\xA0",(0,e.jsx)(t.$n,{icon:"download",onClick:function(){return f("PRG_downloadfile",{uid:E.uid})},children:"Download"})]},E.uid)})})||(0,e.jsx)(t.az,{children:"No upload servers found."})})}},50653:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNewsBrowser:function(){return g}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=n(15581),g=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.article,v=f.download,E=f.message,j=(0,e.jsx)(d,{});return m?j=(0,e.jsx)(x,{}):v&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(s.Zm,{width:575,height:750,children:(0,e.jsxs)(s.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[E," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_clearmessage")}})]}),j]})})},x=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.article;if(!m)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var v=m.title,E=m.cover,j=m.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+v,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_reset")},children:"Close"})]}),children:[!!E&&(0,e.jsx)(r._V,{src:(0,o.l)(E)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:j}})]})},d=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.showing_archived,v=f.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return l("PRG_toggle_archived")},checked:m,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:v.length&&v.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return l("PRG_openarticle",{uid:E.uid})}}),children:[E.size," GQ"]},E.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},a=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.download,v=m.download_progress,E=m.download_maxprogress,j=m.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:v,maxValue:E,children:[v," / ",E," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[j," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return l("PRG_reset")},children:"Abort Download"})})]})})}},95436:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosOvermapNavigation:function(){return r}});var e=n(20462),o=n(15581),t=n(65912),r=function(){return(0,e.jsx)(o.Zm,{width:380,height:530,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.OvermapNavigationContent,{})})})}},75655:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosPowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.Zm,{width:550,height:700,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},81986:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosRCON:function(){return r}});var e=n(20462),o=n(15581),t=n(72778),r=function(){return(0,e.jsx)(o.Zm,{width:630,height:440,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.RCONContent,{})})})}},35399:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosRevelation:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(i,l){return d("PRG_obfuscate",{new_name:l})},mb:1,children:"Obfuscate Name..."}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(t.$n,{color:c?"bad":"average",onClick:function(){return d("PRG_arm")},children:c?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!c,children:"ACTIVATE"})]})})})}},79389:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosShutoffMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(67889),r=function(){return(0,e.jsx)(o.Zm,{width:627,height:700,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsx)(t.ShutoffMonitorContent,{})})})}},98011:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosStationAlertConsole:function(){return r}});var e=n(20462),o=n(15581),t=n(68679),r=function(){return(0,e.jsx)(o.Zm,{width:315,height:500,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.StationAlertConsoleContent,{})})})}},57488:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosSupermatterMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(50028),r=function(){return(0,e.jsx)(o.Zm,{width:600,height:400,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:(0,e.jsx)(t.SupermatterMonitorContent,{})})})}},10774:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosUAV:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.current_uav,i=a.signal_strength,l=a.in_use,f=a.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(t.wn,{title:"Selected UAV",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"UAV",children:c&&c.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:c&&i||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:c&&(0,e.jsx)(t.$n,{icon:"power-off",selected:c.power,onClick:function(){return d("power_uav")},children:c.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:c&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:!c.power,onClick:function(){return d("view_uav")},children:c.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:f.length&&f.map(function(m){return(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{fluid:!0,icon:"quidditch",onClick:function(){return d("switch_uav",{switch_uav:m.uavref})},children:m.name})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{color:"bad",icon:"times",onClick:function(){return d("del_uav",{del_uav:m.uavref})}})})]},m.uavref)})||(0,e.jsx)(t.az,{color:"average",children:"No UAVs Paired."})})]})})}},69062:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosWordProcessor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.PC_device_theme,i=a.error,l=a.browsing,f=a.files,m=a.filename,v=a.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:c,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:i&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",i,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_backtomenu")},children:"Back to menu"})]})||l&&(0,e.jsx)(t.wn,{title:"File Browser",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return d("PRG_closebrowser")},children:"Back to editor"}),children:(0,e.jsx)(t.wn,{title:"Available documents (local)",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(t.XI.Cell,{collapsing:!0})]}),f.map(function(E,j){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:E.name}),(0,e.jsx)(t.XI.Cell,{children:E.size}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return d("PRG_openfile",{PRG_openfile:E.name})},children:"Open"})})]},j)})]})})})||(0,e.jsxs)(t.wn,{title:"Document: "+m,children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_newfile")},children:"New"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_savefile")},children:"Save"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_editfile")},children:"Edit"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(t.$n,{onClick:function(){return d("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(t.$n,{disabled:!v,onClick:function(){return d("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})})]})})})}},46836:function(y,u,n){"use strict";n.r(u),n.d(u,{NumberInputModal:function(){return a}});var e=n(20462),o=n(87239),t=n(61358),r=n(7081),s=n(88569),g=n(15581),x=n(5335),d=n(44149),a=function(i){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.init_value,E=m.large_buttons,j=m.message,O=j===void 0?"":j,M=m.timeout,_=m.title,I=(0,t.useState)(v),S=I[0],T=I[1],A=function(W){W!==S&&T(W)},K=140+(O.length>30?Math.ceil(O.length/3):0)+(O.length&&E?5:0);return(0,e.jsxs)(g.p8,{title:_,width:270,height:K,children:[M&&(0,e.jsx)(d.Loader,{value:M}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(W){W.key===o._.Enter&&f("submit",{entry:S}),(0,o.K)(W.key)&&f("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.az,{color:"label",children:O})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(c,{input:S,onClick:A,onChange:A,onBlur:A})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:S})})]})})})]})},c=function(i){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.min_value,E=m.max_value,j=m.init_value,O=m.round_value,M=i.input,_=i.onClick,I=i.onChange,S=i.onBlur;return(0,e.jsxs)(s.BJ,{fill:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===v,icon:"angle-double-left",onClick:function(){return _(v)},tooltip:v?"Min ("+v+")":"Min"})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(s.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!O,minValue:v,maxValue:E,onChange:function(T,A){return I(A)},onBlur:function(T,A){return S(A)},onEnter:function(T,A){return f("submit",{entry:A})},value:M})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===E,icon:"angle-double-right",onClick:function(){return _(E)},tooltip:E?"Max ("+E+")":"Max"})}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.$n,{disabled:M===j,icon:"redo",onClick:function(){return _(j)},tooltip:j?"Reset ("+j+")":"Reset"})})]})}},12333:function(y,u,n){"use strict";n.r(u),n.d(u,{OmniFilter:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.power,l=c.config,f=c.ports,m=c.set_flow_rate,v=c.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:l?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:i,disabled:l,onClick:function(){return a("power")},children:i?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:l,onClick:function(){return a("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:f?f.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.dir+" Port",children:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{selected:E.input,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:"in",dir:E.dir})},children:"IN"}),(0,e.jsx)(t.$n,{selected:E.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:E.dir})},children:"OUT"}),(0,e.jsx)(t.$n,{icon:"wrench",disabled:E.input||E.output,onClick:function(){return a("switch_filter",{mode:E.f_type,dir:E.dir})},children:E.f_type||"None"})]}):s(E)},E.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[v," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:l?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return a("set_flow_rate")},children:m+" L/s"}):m+" L/s"})]})})]})})}},60780:function(y,u,n){"use strict";n.r(u),n.d(u,{OmniMixer:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){return d.input?"Input":d.output?"Output":d.f_type?d.f_type:"Disabled"},g=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.power,f=i.config,m=i.ports,v=i.set_flow_rate,E=i.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:f?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l,disabled:f,onClick:function(){return c("power")},children:l?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:f,onClick:function(){return c("configure")}})]}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Port"}),f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Concentration"}),f?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),m?m.map(function(j){return(0,e.jsx)(x,{port:j,config:f},j.dir)}):(0,e.jsx)(t.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(t.wn,{title:"Flow Rate",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Current Flow Rate",children:[E," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:f?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return c("set_flow_rate")},children:v+" L/s"}):v+" L/s"})]})})]})})},x=function(d){var a=(0,o.Oc)().act,c=d.port,i=d.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:c.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:i?(0,e.jsx)(t.$n,{selected:c.input,disabled:c.output,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:c.input?"none":"in",dir:c.dir})},children:"IN"}):s(c)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:i?(0,e.jsx)(t.$n,{selected:c.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:c.dir})},children:"OUT"}):c.concentration*100+"%"}),i?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(t.$n,{width:"100%",icon:"wrench",disabled:!c.input,onClick:function(){return a("switch_con",{dir:c.dir})},children:c.input?c.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:c.con_lock?"lock":"lock-open",disabled:!c.input,selected:c.con_lock,onClick:function(){return a("switch_conlock",{dir:c.dir})},children:c.f_type||"None"})})]}):null]})}},43213:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerOptions:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.verbose,c=d.health,i=d.healthAlarm,l=d.oxy,f=d.oxyAlarm,m=d.crit;return(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(t.$n,{selected:a,icon:a?"toggle-on":"toggle-off",onClick:function(){return x(a?"verboseOff":"verboseOn")},children:a?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(t.$n,{selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return x(c?"healthOff":"healthOn")},children:c?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:i,stepPixelSize:5,ml:"0",format:function(v){return v+"%"},onChange:function(v,E){return x("health_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(t.$n,{selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return x(l?"oxyOff":"oxyOn")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(t.N6,{bipolar:!0,minValue:-100,maxValue:100,value:f,stepPixelSize:5,ml:"0",onChange:function(v,E){return x("oxy_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(t.$n,{selected:m,icon:m?"toggle-on":"toggle-off",onClick:function(){return x(m?"critOff":"critOn")},children:m?"On":"Off"})})]})}},88424:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerPatient:function(){return s}});var e=n(20462),o=n(4089),t=n(88569),r=n(6050),s=function(g){var x=g.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Patient",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:x.name}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[x.stat][0],children:r.stats[x.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),r.damages.map(function(d,a){return(0,e.jsx)(t.Ki.Item,{label:d[0]+" Damage",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:x[d[1]]/100,ranges:r.damageRange,children:(0,o.Mg)(x[d[1]])},a)},a)}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bodyTemperature/x.maxTemp,color:r.tempColors[x.temperatureSuitability+3],children:[(0,o.Mg)(x.btCelsius),"\xB0C, ",(0,o.Mg)(x.btFaren),"\xB0F"]})}),!!x.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:x.bloodLevel/x.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[x.bloodPercent,"%, ",x.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Pulse",children:[x.pulse," BPM"]})]})]})}),(0,e.jsx)(t.wn,{title:"Current Procedure",children:x.surgery&&x.surgery.length?(0,e.jsx)(t.Ki,{children:x.surgery.map(function(d){return(0,e.jsx)(t.Ki.Item,{label:d.name,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current State",children:d.currentStage}),(0,e.jsx)(t.Ki.Item,{label:"Possible Next Steps",children:d.nextSteps.map(function(a){return(0,e.jsx)("div",{children:a},a)})})]})},d.name)})}):(0,e.jsx)(t.az,{color:"label",children:"No procedure ongoing."})})]})}},13846:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerUnoccupied:function(){return t}});var e=n(20462),o=n(88569),t=function(r){return(0,e.jsx)(o.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(o.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(o.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No patient detected."]})})}},6050:function(y,u,n){"use strict";n.r(u),n.d(u,{damageRange:function(){return t},damages:function(){return o},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],o=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},70509:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputer:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(43213),g=n(88424),x=n(13846),d=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.hasOccupant,m=l.choice,v=l.occupant,E;return m?E=(0,e.jsx)(s.OperatingComputerOptions,{}):E=f?(0,e.jsx)(g.OperatingComputerPatient,{occupant:v}):(0,e.jsx)(x.OperatingComputerUnoccupied,{}),(0,e.jsx)(r.p8,{width:650,height:455,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:!m,icon:"user",onClick:function(){return i("choiceOff")},children:"Patient"}),(0,e.jsx)(t.tU.Tab,{selected:!!m,icon:"cog",onClick:function(){return i("choiceOn")},children:"Options"})]}),(0,e.jsx)(t.wn,{flexGrow:!0,children:E})]})})}},36882:function(y,u,n){"use strict";n.r(u)},81105:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapDisperser:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),g=function(d){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.faillink,f=i.calibration,m=i.overmapdir,v=i.cal_accuracy,E=i.strength,j=i.range,O=i.next_shot,M=i.nopower,_=i.chargeload;return l?(0,e.jsx)(t.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(t.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"22%",children:(0,e.jsx)(t.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(s.OvermapPanControls,{actToDo:"choose",selected:function(I){return I===m}})})}),(0,e.jsx)(t.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(t.wn,{title:"Charge",children:(0,e.jsxs)(t.Ki,{children:[M&&(0,e.jsx)(t.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||"",(0,e.jsx)(t.Ki.Item,{label:"Charge Load Type",children:_}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:O===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||O>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:O})," Seconds",(0,e.jsx)(t.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||""})]})})}),(0,e.jsx)(t.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(t.wn,{title:"Calibration",children:[(0,e.jsx)(t.zv,{value:v}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return c("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:f.map(function(I,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return c("calibration",{calibration:S})},children:I.toString()})]},S)})})]})}),(0,e.jsx)(t.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(t.wn,{title:"Setup",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Strength",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return c("strength")},children:E})}),(0,e.jsx)(t.Ki.Item,{label:"Radius",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return c("range")},children:j})})]})})}),(0,e.jsx)(t.so.Item,{grow:1,mt:1,children:(0,e.jsx)(t.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return c("fire")},children:"Fire ORB"})})]})}},22813:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapEngines:function(){return s},OvermapEnginesContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.global_state,l=c.global_limit,f=c.engines_info,m=c.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Engines",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:i,onClick:function(){return a("global_toggle")},children:i?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_global_limit")},children:[l,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(t.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(t.zv,{value:m})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{overflowY:"auto"},children:f.map(function(v,E){return(0,e.jsxs)(t.so,{spacing:1,mt:E!==0&&-1,children:[(0,e.jsx)(t.so.Item,{basis:"80%",children:(0,e.jsx)(t.Nt,{title:(0,e.jsxs)(t.az,{inline:!0,children:["Engine #",E+1," | Thrust:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:v.eng_thrust_limiter,format:function(j){return j+"%"}})]}),children:(0,e.jsx)(t.wn,{width:"127%",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Type",children:v.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:v.eng_on?v.eng_on===1?"good":"average":"bad",children:v.eng_on?v.eng_on===1?"Online":"Booting":"Offline"}),v.eng_status.map(function(j,O){return Array.isArray(j)?(0,e.jsx)(t.az,{color:j[1],children:j[0]},O):(0,e.jsx)(t.az,{children:j},O)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:v.eng_thrust}),(0,e.jsxs)(t.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:-.1,engine:v.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_limit",{engine:v.eng_reference})},children:[v.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:.1,engine:v.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:v.eng_on===-1,color:v.eng_on===-1?"purple":void 0,selected:v.eng_on===1,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:v.eng_reference})},children:v.eng_on?v.eng_on===1?"Shutoff":"Booting":"Startup"})})]},E)})})]})}},61321:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapFull:function(){return d}});var e=n(20462),o=n(61358),t=n(88569),r=n(15581),s=n(22813),g=n(7558),x=n(97275),d=function(a){var c=(0,o.useState)(0),i=c[0],l=c[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:i===0,onClick:function(){return l(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:i===1,onClick:function(){return l(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:i===2,onClick:function(){return l(2)},children:"Sensors"})]}),i===0&&(0,e.jsx)(s.OvermapEnginesContent,{}),i===1&&(0,e.jsx)(g.OvermapHelmContent,{}),i===2&&(0,e.jsx)(x.OvermapShipSensorsContent,{})]})})}},7558:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapFlightDataWrap:function(){return d},OvermapHelm:function(){return g},OvermapHelmContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),g=function(l){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(d,{})}),(0,e.jsx)(t.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(a,{})}),(0,e.jsx)(t.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(c,{})})]}),(0,e.jsx)(i,{})]})},d=function(l){return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(s.OvermapFlightData,{})]})},a=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.canburn,j=v.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(t.so,{align:"center",justify:"center",children:(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s.OvermapPanControls,{disabled:!E,actToDo:"move"})})}),(0,e.jsxs)(t.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(t.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(t.$n,{selected:j,onClick:function(){return m("manual")},icon:"compass",children:j?"Enabled":"Disabled"})]})]})},c=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.dest,j=v.d_x,O=v.d_y,M=v.speedlimit,_=v.autopilot,I=v.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(t.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(t.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(t.az,{textAlign:"center",children:(0,e.jsx)(t.$n.Confirm,{mt:1,color:"bad",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Unlock Autopilot"})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{setx:!0})},children:j}),(0,e.jsx)(t.$n,{onClick:function(){return m("setcoord",{sety:!0})},children:O})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return m("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(t.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(t.$n,{icon:"tachometer-alt",onClick:function(){return m("speedlimit")},children:[M," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:_,disabled:!E,icon:"robot",onClick:function(){return m("apilot")},children:_?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return m("apilot_lock")},children:"Lock Autopilot"})]})},i=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.sector,j=v.s_x,O=v.s_y,M=v.sector_info,_=v.landed,I=v.locations;return(0,e.jsxs)(t.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:E}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[j," : ",O]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:M}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:_})]}),(0,e.jsxs)(t.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"save",onClick:function(){return m("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(t.so.Item,{basis:"50%",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return m("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(t.wn,{mt:1,scrollable:!0,fill:!0,height:"130px",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),I.map(function(S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:S.name}),(0,e.jsxs)(t.XI.Cell,{children:[S.x," : ",S.y]}),(0,e.jsxs)(t.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return m("setds",{x:S.x,y:S.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return m("remove",{remove:S.reference})},children:"Remove"})]})]},S.name)})]})})]})}},65912:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapNavigation:function(){return g},OvermapNavigationContent:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(91198),g=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.sector,f=i.s_x,m=i.s_y,v=i.sector_info,E=i.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Current Location",buttons:(0,e.jsx)(t.$n,{icon:"eye",selected:E,onClick:function(){return c("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:l}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[f," : ",m]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:v})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(s.OvermapFlightData,{disableLimiterControls:!0})})]})}},30766:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapShieldGenerator:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(a){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.modes,m=l.offline_for;return m?(0,e.jsxs)(t.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",m," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:f.map(function(v){return(0,e.jsxs)(t.wn,{title:v.name,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:v.status,onClick:function(){return i("toggle_mode",{toggle_mode:v.flag})},children:v.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:v.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",v.multiplier]})]},v.name)})})]})},x=function(a){var c=(0,o.Oc)().data,i=c.running,l=c.overloaded,f=c.mitigation_max,m=c.mitigation_physical,v=c.mitigation_em,E=c.mitigation_heat,j=c.field_integrity,O=c.max_energy,M=c.current_energy,_=c.percentage_energy,I=c.total_segments,S=c.functional_segments,T=c.field_radius,A=c.target_radius,K=c.input_cap_kw,W=c.upkeep_power_usage,$=c.power_usage,k=c.spinup_counter,z=[];return z[1]=(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"}),z[2]=(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"}),z[3]=(0,e.jsx)(t.az,{color:"average",children:"Inactive"}),z[4]=(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",A!==T&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[k*2,"s"]})]}),(0,e.jsx)(t.wn,{title:"System Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Generator is",children:z[i]||(0,e.jsx)(t.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(t.z2,{value:M,maxValue:O,children:[M," / ",O," MJ (",_,"%)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(t.zv,{value:j}),"%"]}),(0,e.jsxs)(t.Ki.Item,{label:"Mitigation",children:[v,"% EM / ",m,"% PH / ",E,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:W})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:$,maxValue:K,children:[$," / ",K," kW"]})})||(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.zv,{value:$})," kW (No Limit)"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(t.zv,{value:S}),"\xA0/\xA0",(0,e.jsx)(t.zv,{value:I})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:T}),", target"," ",(0,e.jsx)(t.zv,{value:A}),")"]})]})})},d=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.running,m=l.hacked,v=l.idle_multiplier,E=l.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[f>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("begin_shutdown")},selected:!0,children:"Turn off"}),f===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return i("start_generator")},children:"Turn on"}),f&&m&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return i("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||""]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return i("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return i("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Set inactive power use intensity",children:E.map(function(j){return(0,e.jsx)(t.$n,{selected:j===v,disabled:f===4,onClick:function(){return i("switch_idle",{switch_idle:j})},children:j},j)})})})]})}},97275:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapShipSensors:function(){return s},OvermapShipSensorsContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.viewing,l=c.on,f=c.range,m=c.health,v=c.max_health,E=c.heat,j=c.critical_heat,O=c.status,M=c.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"eye",selected:i,onClick:function(){return a("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return a("toggle_sensor")},children:l?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:O}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return a("range")},children:f})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[v*.75,1/0],average:[v*.25,v*.75],bad:[-1/0,v*.25]},value:m,maxValue:v,children:[m," / ",v]})}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsx)(t.z2,{ranges:{bad:[j*.75,1/0],average:[j*.5,j*.75],good:[-1/0,j*.5]},value:E,maxValue:j,children:E0||!v)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return c("cancel",{cancel:_+1})},children:"Cancel"})||""]},M)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:O.length&&O.map(function(M){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return c("queue",{queue:M.type})},children:(0,o.Sn)(M.name)})},M.name)})})]})})}},71675:function(y,u,n){"use strict";n.r(u),n.d(u,{PathogenicIsolator:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=n(86471),x=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.can_print,E=i.args;return(0,e.jsx)(r.wn,{m:"-1rem",title:E.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!v,icon:"print",onClick:function(){return f("print",{type:"virus_record",vir:E.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return f("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[E.spreadtype," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:E.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:E.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[E.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:E.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:E.symptoms.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.stage+". "+j.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",j.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",j.aggressiveness]})]},j.stage)})})})]})})})},d=function(i){var l=(0,t.Oc)().data,f=l.isolating,m=(0,o.useState)(0),v=m[0],E=m[1],j=[];return j[0]=(0,e.jsx)(a,{}),j[1]=(0,e.jsx)(c,{}),(0,g.modalRegisterBodyOverride)("virus",x),(0,e.jsxs)(s.p8,{height:500,width:520,children:[(0,e.jsx)(g.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||"",(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:v===0,onClick:function(){return E(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:v===1,onClick:function(){return E(1)},children:"Database"})]}),j[v]||""]})]})},a=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.syringe_inserted,E=m.pathogen_pool,j=m.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",disabled:!j,onClick:function(){return f("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return f("eject")},children:"Eject Syringe"})]}),children:E.length&&E.map(function(O){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",O.unique_id]}),O.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return f("isolate",{isolate:O.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!O.is_in_database,onClick:function(){return f("view_entry",{vir:O.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:O.name}),O.dna]})]},O.unique_id)})||(v?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},c=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.database,E=m.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!E,onClick:function(){return f("print",{type:"virus_list"})},children:"Print"}),children:v.length&&v.map(function(j){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return f("view_entry",{vir:j.record})},children:j.name},j.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},6787:function(y,u,n){"use strict";n.r(u),n.d(u,{Pda:function(){return a}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=n(15857),x=n(37865);function d(f){var m;try{m=x("./"+f+".tsx")}catch(E){if(E.code==="MODULE_NOT_FOUND")return(0,g.z)("notFound",f);throw E}var v=m[f];return v||(0,g.z)("missingExport",f)}var a=function(f){var m=function(A){S(A)},v=(0,t.Oc)().data,E=v.app,j=v.owner,O=v.useRetro;if(!j)return(0,e.jsx)(s.p8,{children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var M=d(E.template),_=(0,o.useState)(!1),I=_[0],S=_[1];return(0,e.jsx)(s.p8,{width:580,height:670,theme:O?"pda-retro":void 0,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(c,{settingsMode:I,onSettingsMode:m}),I&&(0,e.jsx)(i,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:E.icon,mr:1}),E.name]}),p:1,children:(0,e.jsx)(M,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(l,{onSettingsMode:m})]})})},c=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.idInserted,O=E.idLink,M=E.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!j&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return v("Authenticate")},children:O})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:M}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:f.settingsMode,onClick:function(){return f.onSettingsMode(!f.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return v("Retro")},icon:"adjust"})]})]})})},i=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.idInserted,O=E.idLink,M=E.cartridge_name,_=E.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",onClick:function(){return v("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!_,onClick:function(){return v("TouchSounds")},children:_?"Disabled":"Enabled"})}),!!M&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Eject")},children:M})}),!!j&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return v("Authenticate")},children:O})})]})})},l=function(f){var m=(0,t.Oc)(),v=m.act,E=m.data,j=E.app,O=E.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:O?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return v("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:j.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){f.onSettingsMode(!1),v("Home")}})})]})})}},75418:function(y,u,n){"use strict";n.r(u),n.d(u,{PersonalCrafting:function(){return c}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581);function g(l,f){(f==null||f>l.length)&&(f=l.length);for(var m=0,v=new Array(f);m=l.length?{done:!0}:{done:!1,value:l[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.")}var c=function(l){for(var f,m=(0,t.Oc)(),v=m.act,E=m.data,j=E.busy,O=E.display_craftable_only,M=E.display_compact,_=E.crafting_recipes||{},I=[],S=[],T=a(Object.keys(_)),A;!(A=T()).done;){var K=A.value,W=_[K];if("has_subcats"in W){for(var $=a(Object.keys(W)),k;!(k=$()).done;){var z=k.value;if(z!=="has_subcats"){I.push({name:z,category:K,subcategory:z});for(var H=W[z],G=a(H),Y;!(Y=G()).done;){var ee=Y.value;S.push(x({},ee,{category:z}))}}}continue}I.push({name:K,category:K});for(var le=_[K],ne=a(le),Q;!(Q=ne()).done;){var Z=Q.value;S.push(x({},Z,{category:K}))}}var V=(0,o.useState)((f=I[0])==null?void 0:f.name),q=V[0],ce=V[1],se=S.filter(function(fe){return fe.category===q});return(0,e.jsx)(s.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{checked:M,onClick:function(){return v("toggle_compact")},children:"Compact"}),(0,e.jsx)(r.$n.Checkbox,{checked:O,onClick:function(){return v("toggle_recipes")},children:"Craftable Only"})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:I.map(function(fe){return(0,e.jsx)(r.tU.Tab,{selected:fe.name===q,onClick:function(){ce(fe.name),v("set_category",{category:fe.category,subcategory:fe.subcategory})},children:fe.name},fe.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(i,{craftables:se})})]})})]})})},i=function(l){var f=l.craftables,m=f===void 0?[]:f,v=(0,t.Oc)(),E=v.act,j=v.data,O=j.craftability,M=O===void 0?{}:O,_=j.display_compact,I=j.display_craftable_only;return m.map(function(S){return I&&!M[S.ref]?null:_?(0,e.jsx)(r.Ki.Item,{label:S.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[S.ref],tooltip:S.tool_text&&"Tools needed: "+S.tool_text,tooltipPosition:"left",onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:S.req_text},S.name):(0,e.jsx)(r.wn,{title:S.name,buttons:(0,e.jsx)(r.$n,{icon:"cog",disabled:!M[S.ref],onClick:function(){return E("make",{recipe:S.ref})},children:"Craft"}),children:(0,e.jsxs)(r.Ki,{children:[!!S.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:S.req_text}),!!S.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:S.catalyst_text}),!!S.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:S.tool_text})]})},S.name)})}},6924:function(y,u,n){"use strict";n.r(u),n.d(u,{Photocopier:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(a){var c=(0,o.Oc)().data,i=c.isAI,l=c.has_toner,f=c.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:i?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[l?(0,e.jsx)(g,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),f?(0,e.jsx)(x,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!i&&(0,e.jsx)(d,{})]})})},g=function(a){var c=(0,o.Oc)().data,i=c.max_toner,l=c.current_toner,f=i*.66,m=i*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[f,i],average:[m,f],bad:[0,m]},value:l,minValue:0,maxValue:i})})},x=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.num_copies;return(0,e.jsxs)(t.wn,{title:"Options",children:[(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Q7,{animated:!0,width:"2.6",height:"1.65",step:1,stepPixelSize:8,minValue:1,maxValue:10,value:f,onDrag:function(m){return i("set_copies",{num_copies:m})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return i("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return i("remove")},children:"Remove item"})]})},d=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.can_AI_print;return(0,e.jsx)(t.wn,{title:"AI Options",children:(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!f,onClick:function(){return i("ai_photo")},children:"Print photo from database"})})})}},11727:function(y,u,n){"use strict";n.r(u),n.d(u,{PipeDispenser:function(){return x}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=n(66947),x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.disposals,f=i.p_layer,m=i.pipe_layers,v=i.categories,E=v===void 0?[]:v,j=(0,o.useState)("categoryName"),O=j[0],M=j[1],_=E.find(function(I){return I.cat_name===O})||E[0];return(0,e.jsx)(s.p8,{width:425,height:515,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!l&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(m).map(function(I){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:m[I]===f,onClick:function(){return c("p_layer",{p_layer:m[I]})},children:I},I)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:E.map(function(I){return(0,e.jsx)(r.tU.Tab,{icon:g.ICON_BY_CATEGORY_NAME[I.cat_name],selected:I.cat_name===_.cat_name,onClick:function(){return M(I.cat_name)},children:I.cat_name},I.cat_name)})}),_==null?void 0:_.recipes.map(function(I){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return c("dispense_pipe",{ref:I.ref,bent:I.bent,category:_.cat_name})},children:I.pipe_name},I.pipe_name)})]})]})})}},28291:function(y,u,n){"use strict";n.r(u),n.d(u,{PlantAnalyzer:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var d=(0,o.Oc)().data,a=d.seed,c=d.reagents,i=250;return a&&(i+=18*a.trait_info.length),c&&c.length&&(i+=55,i+=20*c.length),(0,e.jsx)(r.p8,{width:400,height:i,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.no_seed,l=c.seed,f=c.reagents;return i?(0,e.jsx)(t.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(t.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"print",onClick:function(){return a("print")},children:"Print Report"}),(0,e.jsx)(t.$n,{icon:"window-close",color:"red",onClick:function(){return a("close")}})]}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Plant Name",children:[l.name,"#",l.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:l.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:l.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:l.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:l.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:l.potency})]}),f.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:f.map(function(m){return(0,e.jsxs)(t.Ki.Item,{label:m.name,children:[m.volume," unit(s)."]},m.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:l.trait_info.map(function(m){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:m},m)})})]})}},12588:function(y,u,n){"use strict";n.r(u),n.d(u,{PlayerNotes:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.device_theme,i=a.filter,l=a.pages,f=a.ckeys,m=function(v){return v()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:c,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(t.wn,{title:"Player notes",children:[(0,e.jsx)(t.$n,{icon:"filter",onClick:function(){return d("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(t.$n,{icon:"sidebar",onClick:function(){return d("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.$n.Input,{onCommit:function(v,E){return d("show_player_info",{name:E})},children:"CKEY to Open"}),(0,e.jsx)(t.cG,{vertical:!0}),(0,e.jsx)(t.$n,{color:"green",onClick:function(){return d("clear_player_info_filter")},children:i}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:f.map(function(v){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,color:"transparent",icon:"user",onClick:function(){return d("show_player_info",{name:v.name})},children:v.name})})},v.name)})}),(0,e.jsx)(t.cG,{}),m(function(){for(var v=function(O){E.push((0,e.jsx)(t.$n,{onClick:function(){return d("set_page",{index:O})},children:O},O))},E=[],j=1;j=.5&&"good"||W>.15&&"average"||"bad";return(0,e.jsx)(s.p8,{width:450,height:340,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[!f&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:m?"power-off":"times",onClick:function(){return a("toggle_power")},selected:m,disabled:!v,children:m?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:i>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:m,onClick:function(){return a("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:$,children:[i,"cm\xB3 ",E]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:i/l,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[i,"cm\xB3 / ",l,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[j," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:O,maxValue:M+30,color:_?"bad":"good",children:[(0,o.Mg)(O),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:I?"bad":void 0,children:S}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return a("lower_power")},children:T}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return a("higher_power")},children:T})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!A&&"bad",children:A?K:"Unconnected"})})]})})]})})}},31991:function(y,u,n){"use strict";n.r(u),n.d(u,{PortablePump:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(95823),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.direction,l=c.target_pressure,f=c.default_pressure,m=c.min_pressure,v=c.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:i?"sign-in-alt":"sign-out-alt",selected:i,onClick:function(){return a("direction")},children:i?"In":"Out"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Output",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:m,maxValue:v,value:l,unit:"kPa",stepPixelSize:.3,onChange:function(E,j){return a("pressure",{pressure:j})}})}),(0,e.jsxs)(t.Ki.Item,{label:"Presets",children:[(0,e.jsx)(t.$n,{icon:"minus",disabled:l===m,onClick:function(){return a("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:l===f,onClick:function(){return a("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:l===v,onClick:function(){return a("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(y,u,n){"use strict";n.r(u),n.d(u,{PortableScrubber:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(95823),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.rate,l=c.minrate,f=c.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(s.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Power Regulator",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(t.Ap,{mt:"0.4em",animated:!0,minValue:l,maxValue:f,value:i,unit:"L/s",onChange:function(m,v){return a("volume_adj",{vol:v})}})})})})]})})}},96527:function(y,u,n){"use strict";n.r(u),n.d(u,{PortableTurret:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.locked,i=a.on,l=a.lethal,f=a.lethal_is_configurable,m=a.targetting_is_configurable,v=a.check_weapons,E=a.neutralize_noaccess,j=a.neutralize_norecord,O=a.neutralize_criminals,M=a.neutralize_all,_=a.neutralize_nonsynth,I=a.neutralize_unidentified,S=a.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.IC,{children:["Swipe an ID card to ",c?"unlock":"lock"," this interface."]}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.$n,{icon:i?"power-off":"times",selected:i,disabled:c,onClick:function(){return d("power")},children:i?"On":"Off"})}),!!f&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:l?"exclamation-triangle":"times",color:l?"bad":"",disabled:c,onClick:function(){return d("lethal")},children:l?"On":"Off"})})]})}),!!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:O,disabled:c,onClick:function(){return d("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:c,onClick:function(){return d("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:v,disabled:c,onClick:function(){return d("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:c,onClick:function(){return d("authaccess")},children:"Unauthorized Access"})]}),(0,e.jsxs)(t.wn,{title:"Other Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:I,disabled:c,onClick:function(){return d("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:_,disabled:c,onClick:function(){return d("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:S,disabled:c,onClick:function(){return d("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:M,disabled:c,onClick:function(){return d("authall")},children:"All Entities"})]})]})]})})}},91276:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorContent:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(27971),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.all_sensors,i=a.focus;if(i)return(0,e.jsx)(r.PowerMonitorFocus,{focus:i});var l=(0,e.jsx)(t.az,{color:"bad",children:"No sensors detected"});return c&&(l=(0,e.jsx)(t.XI,{children:c.map(function(f){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:f.alarm?"bell":"sign-in-alt",onClick:function(){return d("setsensor",{id:f.name})},children:f.name})})},f.name)})})),(0,e.jsx)(t.wn,{title:"No active sensor. Listing all.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return d("refresh")},children:"Scan For Sensors"}),children:l})}},27971:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorFocus:function(){return l}});var e=n(20462),o=n(7402),t=n(15813),r=n(4089),s=n(61358),g=n(7081),x=n(88569),d=n(92595),a=n(69788),c=n(88040);function i(){return i=Object.assign||function(f){for(var m=1;m50?"battery-half":"battery-quarter")||x===1&&"bolt"||x===2&&"battery-full"||"",color:x===0&&(d>50?"yellow":"red")||x===1&&"yellow"||x===2&&"green"}),(0,e.jsx)(t.az,{inline:!0,width:"36px",textAlign:"right",children:(0,o.Mg)(d)+"%"})]})},s=function(g){var x=g.status,d=!!(x&2),a=!!(x&1),c=(d?"On":"Off")+(" ["+(a?"auto":"manual")+"]");return(0,e.jsx)(t.m_,{content:c,children:(0,e.jsx)(t.BK,{color:d?"good":"bad",content:a?void 0:"M"})})}},92595:function(y,u,n){"use strict";n.r(u),n.d(u,{PEAK_DRAW:function(){return e}});var e=5e5},69788:function(y,u,n){"use strict";n.r(u),n.d(u,{powerRank:function(){return e}});function e(o){var t=String(o.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(t)}},53414:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitor:function(){return r}});var e=n(20462),o=n(15581),t=n(91276),r=function(){return(0,e.jsx)(o.p8,{width:550,height:700,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.PowerMonitorContent,{})})})}},77243:function(y,u,n){"use strict";n.r(u)},14827:function(y,u,n){"use strict";n.r(u),n.d(u,{GamePreferenceWindow:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=n(19870),x=n(69901),d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f,m=(0,o.useState)((f=a.startingPage)!=null?f:g.GamePreferencesSelectedPage.Settings),v=m[0],E=m[1],j;switch(v){case g.GamePreferencesSelectedPage.Settings:j=(0,e.jsx)(x.GamePreferencesPage,{});break}return(0,e.jsx)(s.p8,{title:"Game Preferences",width:920,height:770,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(r.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(r.BJ.Item,{grow:!0,shrink:!0,basis:"1px",children:j})})})})}},69901:function(y,u,n){"use strict";n.r(u),n.d(u,{GamePreferencesPage:function(){return m}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),s=n(88569),g=n(16945),x=n(72736),d=n(49049);function a(v,E){(E==null||E>v.length)&&(E=v.length);for(var j=0,O=new Array(E);j=v.length?{done:!0}:{done:!1,value:v[O++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=function(v,E){return(0,o.V0)(v,E,function(j){return j.name})},f=function(v){return(0,o.Ul)(v,function(E){var j=E[0];return j})},m=function(v){for(var E=(0,r.Oc)(),j=E.act,O=E.data,M={},_=i(Object.entries(O.character_preferences.game_preferences)),I;!(I=_()).done;){var S=I.value,T=S[0],A=S[1],K=g.default[T],W=(K==null?void 0:K.name)||T;K!=null&&K.description&&(W=(0,e.jsx)(s.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:W}));var $=(0,e.jsx)(s.so.Item,{grow:1,pr:2,basis:0,ml:2,children:W});K!=null&&K.description&&($=(0,e.jsx)(s.m_,{content:K.description,position:"bottom-start",children:$}));var k=(0,e.jsxs)(s.so,{align:"center",pb:2,children:[$,(0,e.jsx)(s.so.Item,{grow:1,basis:0,children:K&&(0,e.jsx)(x.FeatureValueInput,{feature:K,featureId:T,value:A,act:j})||(0,e.jsx)(s.az,{as:"b",color:"red",children:"...is not filled out properly!!!"})})]},T),z={name:(K==null?void 0:K.name)||T,children:k},H=(K==null?void 0:K.category)||"ERROR";M[H]=l(M[H]||[],z)}var G=(0,t.useState)(""),Y=G[0],ee=G[1],le=(0,t.useState)(!1),ne=le[0],Q=le[1],Z=f(Object.entries(M)).map(function(V){var q=V[0],ce=V[1];return[q,ce.filter(function(se){return!Y||se.name.toLowerCase().includes(Y.toLowerCase())}).map(function(se){return se.children})]}).filter(function(V){var q=V[0],ce=V[1];return ce.length!==0});return(0,e.jsxs)(e.Fragment,{children:[!Z.length&&(0,e.jsx)(s.wn,{title:"No Results",children:"No results found."}),(0,e.jsxs)(s.az,{position:"absolute",right:4,top:4,style:{zIndex:"100"},children:[ne&&(0,e.jsx)(s.pd,{width:16,value:Y,onInput:function(V,q){return ee(q)},onChange:function(V,q){return ee(q)}}),(0,e.jsx)(s.$n,{selected:ne,icon:"magnifying-glass",tooltip:"Search",tooltipPosition:"bottom",onClick:function(){Q(!ne),ee("")}})]}),(0,e.jsx)(d.TabbedMenu,{categoryEntries:Z,contentProps:{fontSize:1.5}})]})}},95387:function(y,u,n){"use strict";n.r(u),n.d(u,{PageButton:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var s=r.currentPage===r.page||r.otherActivePages&&r.otherActivePages.indexOf(r.currentPage)!==-1;return(0,e.jsx)(o.$n,{align:"center",fontSize:"1.2em",fluid:!0,selected:s,onClick:function(){return r.setPage(r.page)},children:r.children})}},97364:function(y,u,n){"use strict";n.r(u),n.d(u,{ServerPreferencesFetcher:function(){return c}});var e=n(61358),o=n(31200),t=n(30705);function r(i,l,f,m,v,E,j){try{var O=i[E](j),M=O.value}catch(_){f(_);return}O.done?l(M):Promise.resolve(M).then(m,v)}function s(i){return function(){var l=this,f=arguments;return new Promise(function(m,v){var E=i.apply(l,f);function j(M){r(E,m,v,j,O,"next",M)}function O(M){r(E,m,v,j,O,"throw",M)}j(void 0)})}}function g(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(l&&l.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),l&&x(i,l)}function x(i,l){return x=Object.setPrototypeOf||function(m,v){return m.__proto__=v,m},x(i,l)}function d(i,l){var f,m,v,E,j={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]};return E={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function O(_){return function(I){return M([_,I])}}function M(_){if(f)throw new TypeError("Generator is already executing.");for(;j;)try{if(f=1,m&&(v=_[0]&2?m.return:_[0]?m.throw||((v=m.return)&&v.call(m),0):m.next)&&!(v=v.call(m,_[1])).done)return v;switch(m=0,v&&(_=[_[0]&2,v.value]),_[0]){case 0:case 1:v=_;break;case 4:return j.label++,{value:_[1],done:!1};case 5:j.label++,m=_[1],_=[0];continue;case 7:_=j.ops.pop(),j.trys.pop();continue;default:if(v=j.trys,!(v=v.length>0&&v[v.length-1])&&(_[0]===6||_[0]===2)){j=0;continue}if(_[0]===3&&(!v||_[1]>v[0]&&_[1]m.length)&&(v=m.length);for(var E=0,j=new Array(v);E=m.length?{done:!0}:{done:!1,value:m[j++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}for(var r={},s=n(78997),g=t(s.keys()),x;!(x=g()).done;){var d=x.value;if(!(d==="index"||d==="base"))for(var a=t(Object.entries(s(d))),c;!(c=a()).done;){var i=c.value,l=i[0],f=i[1];r[l]=f}}u.default=r},12624:function(y,u,n){"use strict";n.r(u),n.d(u,{GENDERS:function(){return t},Gender:function(){return e}});var e;(function(r){r.Male="male",r.Female="female",r.Other="plural",r.Other2="neuter"})(e||(e={}));var o,t=(o={},o.male={icon:"mars",text:"He/Him"},o.female={icon:"venus",text:"She/Her"},o.plural={icon:"transgender",text:"They/Them"},o.neuter={icon:"neuter",text:"It/Its"},o)},96824:function(y,u,n){"use strict";n.r(u),n.d(u,{PressureRegulator:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.pressure_set,l=a.max_pressure,f=a.input_pressure,m=a.output_pressure,v=a.regulate_mode,E=a.set_flow_rate,j=a.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(t.zv,{value:f/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.zv,{value:m/100})," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(t.zv,{value:j/10})," L/s"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("toggle_valve")},children:c?"Unlocked":"Closed"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:v===0,onClick:function(){return d("regulate_mode",{mode:"off"})},children:"Off"}),(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",selected:v===1,onClick:function(){return d("regulate_mode",{mode:"input"})},children:"Input"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",selected:v===2,onClick:function(){return d("regulate_mode",{mode:"output"})},children:"Output"})]})}),(0,e.jsxs)(t.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return d("set_press",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return d("set_press",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return d("set_press",{press:"set"})},children:"SET"})]}),children:[i/100," kPa"]}),(0,e.jsxs)(t.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",onClick:function(){return d("set_flow_rate",{press:"min"})},children:"MIN"}),(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return d("set_flow_rate",{press:"max"})},children:"MAX"}),(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return d("set_flow_rate",{press:"set"})},children:"SET"})]}),children:[E/10," L/s"]})]})})]})})}},56257:function(y,u,n){"use strict";n.r(u),n.d(u,{PrisonerManagement:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.locked,i=a.chemImplants,l=a.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c&&(0,e.jsxs)(t.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"unlock",onClick:function(){return d("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Interface Lock",buttons:(0,e.jsx)(t.$n,{icon:"lock",onClick:function(){return d("lock")},children:"Lock Interface"})}),(0,e.jsx)(t.wn,{title:"Chemical Implants",children:i.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Inject"})]}),i.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.host}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.units,"u remaining"]}),(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:1})},children:"(1)"}),(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:5})},children:"(5)"}),(0,e.jsx)(t.$n,{onClick:function(){return d("inject",{imp:f.ref,val:10})},children:"(10)"})]})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(t.wn,{title:"Tracking Implants",children:l.length&&(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Message"})]}),l.map(function(f){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{textAlign:"center",children:[f.host," (",f.id,")"]}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:f.loc}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{onClick:function(){return d("warn",{imp:f.ref})},children:"Message"})})]},f.ref)})]})||(0,e.jsx)(t.az,{color:"average",children:"No chemical implants found."})})]})})})}},13353:function(y,u,n){"use strict";n.r(u),n.d(u,{RCONBreakerList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.breaker_info;return(0,e.jsx)(t.wn,{title:"Breakers",children:(0,e.jsx)(t.Ki,{children:a?a.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.RCON_tag,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.enabled,color:c.enabled?null:"bad",onClick:function(){return x("toggle_breaker",{breaker:c.RCON_tag})},children:c.enabled?"Enabled":"Disabled"})},c.RCON_tag)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No breakers detected."})})})}},72778:function(y,u,n){"use strict";n.r(u),n.d(u,{RCONContent:function(){return g}});var e=n(20462),o=n(61358),t=n(88569),r=n(13353),s=n(14313),g=function(x){var d=(0,o.useState)(0),a=d[0],c=d[1],i=[];return i[0]=(0,e.jsx)(s.RCONSmesList,{}),i[1]=(0,e.jsx)(r.RCONBreakerList,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:a===0,onClick:function(){return c(0)},children:[(0,e.jsx)(t.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(t.tU.Tab,{selected:a===1,onClick:function(){return c(1)},children:[(0,e.jsx)(t.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(t.az,{m:2,children:i[a]||""})]})}},54323:function(y,u,n){"use strict";n.r(u),n.d(u,{SMESControls:function(){return x}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(41242),g=n(78784),x=function(d){var a=(0,t.Oc)().act,c=d.way,i=d.smes,l=i.inputAttempt,f=i.inputting,m=i.inputLevel,v=i.inputLevelMax,E=i.inputAvailable,j=i.outputAttempt,O=i.outputting,M=i.outputLevel,_=i.outputLevelMax,I=i.outputUsed,S=i.RCON_tag,T=0,A=0,K=0,W,$,k,z,H,G="";switch(c){case"input":T=m,A=v,K=E,W="IN",$="smes_in_toggle",k="smes_in_set",z=l,H=l?f?"green":"yellow":void 0,G=l?f?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":T=M,A=_,K=I,W="OUT",$="smes_out_toggle",k="smes_out_set",z=j,H=j?O?"green":"yellow":void 0,G=j?O?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off.";break}return(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{basis:"20%",children:(0,o.ZH)(c)}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsxs)(r.BJ,{children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"power-off",color:H,tooltip:G,onClick:function(){return a($,{smes:S})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:T===0,onClick:function(){return a(k,{target:"min",smes:S})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:T===0,onClick:function(){return a(k,{adjust:-1e4,smes:S})}})]}),(0,e.jsx)(r.BJ.Item,{grow:1,children:(0,e.jsx)(r.Ap,{value:T/g.POWER_MUL,fillValue:K/g.POWER_MUL,minValue:0,maxValue:A/g.POWER_MUL,step:5,stepPixelSize:4,format:function(Y){return(0,s.d5)(K,1)+"/"+(0,s.d5)(Y*g.POWER_MUL,1)},onDrag:function(Y,ee){return a(k,{target:ee*g.POWER_MUL,smes:S})}})}),(0,e.jsxs)(r.BJ.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:T===A,onClick:function(){return a(k,{adjust:1e4,smes:S})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:T===A,onClick:function(){return a(k,{target:"max",smes:S})}})]})]})})]})}},46380:function(y,u,n){"use strict";n.r(u),n.d(u,{SMESItem:function(){return s}});var e=n(20462),o=n(4089),t=n(88569),r=n(54323),s=function(g){var x=g.smes,d=x.capacityPercent,a=x.capacity,c=x.charge,i=x.RCON_tag;return(0,e.jsxs)(t.BJ,{vertical:!0,children:[(0,e.jsx)(t.BJ.Item,{children:(0,e.jsxs)(t.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(t.BJ.Item,{flexBasis:"40%",fontSize:1.2,children:i}),(0,e.jsx)(t.BJ.Item,{grow:1,children:(0,e.jsx)(t.z2,{value:d*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,o.Mg)(c/(1e3*60),1)+"kWh / "+(0,o.Mg)(a/(1e3*60))+"kWh ("+d+"%)"})})]})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:g.smes,way:"input"})}),(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESControls,{smes:g.smes,way:"output"})}),(0,e.jsx)(t.BJ.Divider,{})]})}},14313:function(y,u,n){"use strict";n.r(u),n.d(u,{RCONSmesList:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(46380),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.smes_info,i=a.pages,l=a.current_page,f=function(m){return m()};return(0,e.jsxs)(t.wn,{title:"SMESs (Page "+l+")",children:[(0,e.jsx)(t.BJ,{vertical:!0,children:c.map(function(m){return(0,e.jsx)(t.BJ.Item,{children:(0,e.jsx)(r.SMESItem,{smes:m})},m.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),f(function(){for(var m=function(j){v.push((0,e.jsx)(t.$n,{selected:l===j,onClick:function(){return d("set_smes_page",{index:j})},children:j},j))},v=[],E=1;E=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",m.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",m.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",m.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:m.desc})]}),m.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,o.ZH)(m.chargetype)}),m.charges.map(function(E,j){return(0,e.jsx)(r.Ki.Item,{label:(0,o.ZH)(E.caption),children:(0,e.jsx)(r.$n,{selected:m.realchargetype===E.index,icon:"arrow-right",onClick:function(){return d("interact_module",{module:m.index,module_mode:"select_charge_type",charge_type:E.index})}})},E.caption)})]})})}):""]},v)})]})}},72273:function(y,u,n){"use strict";n.r(u),n.d(u,{RIGSuitStatus:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.chargestatus,c=d.charge,i=d.maxcharge,l=d.aioverride,f=d.sealing,m=d.sealed,v=d.cooling,E=d.emagged,j=d.securitycheck,O=d.coverlock,M=(0,e.jsx)(t.$n,{icon:f?"redo":m?"power-off":"lock-open",iconSpin:f,disabled:f,selected:m,onClick:function(){return x("toggle_seals")},children:"Suit "+(f?"seals working...":m?"is Active":"is Inactive")}),_=(0,e.jsx)(t.$n,{icon:"power-off",selected:v,onClick:function(){return x("toggle_cooling")},children:"Suit Cooling "+(v?"is Active":"is Inactive")}),I=(0,e.jsx)(t.$n,{selected:l,icon:"robot",onClick:function(){return x("toggle_ai_control")},children:"AI Control "+(l?"Enabled":"Disabled")});return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[M,I,_]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Power Supply",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:50,value:a,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[c," / ",i]})}),(0,e.jsx)(t.Ki.Item,{label:"Cover Status",children:E||!j?(0,e.jsx)(t.az,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.jsx)(t.$n,{icon:O?"lock":"lock-open",onClick:function(){return x("toggle_suit_lock")},children:O?"Locked":"Unlocked"})})]})})}},62938:function(y,u,n){"use strict";n.r(u),n.d(u,{RIGSuit:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(57483),g=n(24760),x=n(72273),d=function(a){var c=(0,o.Oc)().data,i=c.interfacelock,l=c.malf,f=c.aicontrol,m=c.ai,v=null;return i||l?v=(0,e.jsx)(t.az,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!m&&f&&(v=(0,e.jsx)(t.az,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.jsx)(r.p8,{height:480,width:550,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.RIGSuitStatus,{}),(0,e.jsx)(s.RIGSuitHardware,{}),(0,e.jsx)(g.RIGSuitModules,{})]})})})}},12671:function(y,u,n){"use strict";n.r(u)},36863:function(y,u,n){"use strict";n.r(u),n.d(u,{Radio:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(79500),g=n(15581),x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.rawfreq,f=i.minFrequency,m=i.maxFrequency,v=i.listening,E=i.broadcasting,j=i.subspace,O=i.subspaceSwitchable,M=i.chan_list,_=i.loudspeaker,I=i.mic_cut,S=i.spk_cut,T=i.useSyndMode,A=s.Fo.find(function(W){return W.freq===Number(l)}),K=156;return M&&M.length>0?K+=M.length*28+6:K+=24,O&&(K+=38),(0,e.jsx)(g.p8,{width:310,height:K,theme:T?"syndicate":"",children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:f/10,maxValue:m/10,value:l/10,format:function(W){return(0,o.Mg)(W,1)},onDrag:function(W){return c("setFrequency",{freq:(0,o.LI)(W*10,0)})}}),A&&(0,e.jsxs)(r.az,{inline:!0,color:A.color,ml:2,children:["[",A.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:v?"volume-up":"volume-mute",selected:v,disabled:S,onClick:function(){return c("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:E?"microphone":"microphone-slash",selected:E,disabled:I,onClick:function(){return c("broadcast")}}),!!O&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:j,onClick:function(){return c("subspace")},children:"Subspace Tx "+(j?"ON":"OFF")})}),!!O&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:_?"volume-up":"volume-mute",selected:_,onClick:function(){return c("toggleLoudspeaker")},children:"Loudspeaker"})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!M||M.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:M?M.map(function(W){var $=s.Fo.find(function(z){return z.freq===Number(W.freq)}),k="default";return $&&(k=$.color),(0,e.jsx)(r.Ki.Item,{label:W.display_name,labelColor:k,textAlign:"right",children:W.secure_channel&&j?(0,e.jsx)(r.$n,{icon:W.sec_channel_listen?"square-o":"check-square-o",selected:!W.sec_channel_listen,onClick:function(){return c("channel",{channel:W.chan})},children:W.sec_channel_listen?"Off":"On"}):(0,e.jsx)(r.$n,{selected:W.chan===l,onClick:function(){return c("specFreq",{channel:W.chan})},children:"Switch"})},W.chan)}):null})]})]})})}},49040:function(y,u,n){"use strict";n.r(u),n.d(u,{LayerSection:function(){return s}});var e=n(20462),o=n(65380),t=n(7081),r=n(88569),s=function(g){var x=(0,t.Oc)(),d=x.act,a=x.data,c=a.category,i=a.piping_layer,l=a.pipe_layers,f=a.preview_rows.flatMap(function(m){return m.previews});return(0,e.jsxs)(r.wn,{fill:!0,width:7.5,children:[c===0&&(0,e.jsx)(r.BJ,{vertical:!0,mb:1,children:Object.keys(l).map(function(m){return(0,e.jsx)(r.BJ.Item,{my:0,children:(0,e.jsx)(r.$n.Checkbox,{checked:l[m]===i,onClick:function(){return d("piping_layer",{piping_layer:l[m]})},children:m})},m)})}),(0,e.jsx)(r.az,{width:"120px",children:f.map(function(m){return(0,e.jsx)(r.$n,{ml:0,tooltip:m.dir_name,selected:m.selected,style:{width:"40px",height:"40px",padding:"0"},onClick:function(){return d("setdir",{dir:m.dir,flipped:m.flipped})},children:(0,e.jsx)(r.az,{className:(0,o.Ly)(["pipes32x32",m.dir+"-"+m.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},m.dir)})})]})}},22915:function(y,u,n){"use strict";n.r(u),n.d(u,{PipeTypeSection:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(66947),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.categories,l=i===void 0?[]:i,f=(0,o.useState)("categoryName"),m=f[0],v=f[1],E=l.find(function(j){return j.cat_name===m})||l[0];return(0,e.jsxs)(r.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(r.tU,{fluid:!0,children:l.map(function(j,O){return(0,e.jsx)(r.tU.Tab,{icon:s.ICON_BY_CATEGORY_NAME[j.cat_name],selected:j.cat_name===E.cat_name,onClick:function(){return v(j.cat_name)},children:j.cat_name},j.cat_name)})}),E==null?void 0:E.recipes.map(function(j){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:j.selected,tooltip:j.pipe_name,onClick:function(){return a("pipe_type",{pipe_type:j.pipe_index,category:E.cat_name})},children:j.pipe_name},j.pipe_index)})]})}},59015:function(y,u,n){"use strict";n.r(u),n.d(u,{SelectionSection:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(66947),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.category,l=c.selected_color,f=c.mode,m=c.paint_colors;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Category",children:s.ROOT_CATEGORIES.map(function(v,E){return(0,e.jsx)(r.$n,{selected:i===E,icon:s.ICON_BY_CATEGORY_NAME[v],color:"transparent",onClick:function(){return a("category",{category:E})},children:v},v)})}),(0,e.jsx)(r.Ki.Item,{label:"Modes",children:(0,e.jsx)(r.BJ,{fill:!0,children:s.TOOLS.map(function(v){return(0,e.jsx)(r.BJ.Item,{grow:!0,children:(0,e.jsx)(r.$n.Checkbox,{checked:f&v.bitmask,fluid:!0,onClick:function(){return a("mode",{mode:v.bitmask})},children:v.name})},v.bitmask)})})}),(0,e.jsxs)(r.Ki.Item,{label:"Color",children:[(0,e.jsx)(r.az,{inline:!0,width:"64px",color:m[l],children:(0,o.ZH)(l)}),Object.keys(m).map(function(v){return(0,e.jsx)(r.BK,{ml:1,color:m[v],onClick:function(){return a("color",{paint_color:v})}},v)})]})]})})}},66947:function(y,u,n){"use strict";n.r(u),n.d(u,{ICON_BY_CATEGORY_NAME:function(){return o},ROOT_CATEGORIES:function(){return e},TOOLS:function(){return t}});var e=["Atmospherics","Disposals"],o={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},t=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}]},98838:function(y,u,n){"use strict";n.r(u),n.d(u,{RapidPipeDispenser:function(){return x}});var e=n(20462),o=n(88569),t=n(15581),r=n(49040),s=n(22915),g=n(59015),x=function(d){return(0,e.jsx)(t.p8,{width:550,height:570,children:(0,e.jsx)(t.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(g.SelectionSection,{})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(r.LayerSection,{})})})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(s.PipeTypeSection,{})})]})})]})})})}},1963:function(y,u,n){"use strict";n.r(u)},60195:function(y,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleAssistance:function(){return g},RequestConsoleRelay:function(){return x},RequestConsoleSupplies:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(36219),s=function(d){var a=(0,o.Oc)().data,c=a.department,i=a.supply_dept;return(0,e.jsx)(t.wn,{title:"Supplies",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:i,department:c})})},g=function(d){var a=(0,o.Oc)().data,c=a.department,i=a.assist_dept;return(0,e.jsx)(t.wn,{title:"Request assistance from another department",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:i,department:c})})},x=function(d){var a=(0,o.Oc)().data,c=a.department,i=a.info_dept;return(0,e.jsx)(t.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(r.RequestConsoleSendMenu,{dept_list:i,department:c})})}},4584:function(y,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleAnnounce:function(){return d},RequestConsoleMessageAuth:function(){return x},RequestConsoleViewMessages:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(34416),g=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:f.length&&f.map(function(m,v){return(0,e.jsx)(r.Ki.Item,{label:(0,o.jT)(m[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return i("print",{print:v+1})},children:"Print"}),children:(0,o.jT)(m[1])},v)})||(0,e.jsx)(r.az,{children:"No messages."})})},x=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.message,m=l.recipient,v=l.priority,E=l.msgStamped,j=l.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+m,children:f}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:v===2?"High Priority":v===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:j?"good":"bad",children:(0,o.jT)(j)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:E?"good":"bad",children:(0,o.jT)(E)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return i("department",{department:m})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})},d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.message,m=l.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return i("writeAnnouncement")},children:"Edit"}),children:f||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!f||!m,icon:"share",onClick:function(){return i("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return i("setScreen",{setScreen:s.RCS_MAINMENU})},children:"Back"})]})}},36219:function(y,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleSendFail:function(){return x},RequestConsoleSendMenu:function(){return s},RequestConsoleSendPass:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(34416),s=function(d){var a=(0,o.Oc)().act,c=d.dept_list,i=d.department;return(0,e.jsx)(t.Ki,{children:c.sort().map(function(l){return l!==i&&(0,e.jsx)(t.Ki.Item,{label:l,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"envelope-open-text",onClick:function(){return a("write",{write:l,priority:1})},children:"Message"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return a("write",{write:l,priority:2})},children:"High Priority"})]})})||null})})},g=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return c("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})},x=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"arrow-right",onClick:function(){return c("setScreen",{setScreen:r.RCS_MAINMENU})},children:"Continue"})})]})}},11986:function(y,u,n){"use strict";n.r(u),n.d(u,{RequestConsoleSettings:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.silent;return(0,e.jsx)(t.wn,{title:"Settings",children:(0,e.jsxs)(t.$n,{selected:!a,icon:a?"volume-mute":"volume-up",onClick:function(){return x("toggleSilent")},children:["Speaker ",a?"OFF":"ON"]})})}},34416:function(y,u,n){"use strict";n.r(u),n.d(u,{RCS_ANNOUNCE:function(){return a},RCS_MAINMENU:function(){return e},RCS_MESSAUTH:function(){return d},RCS_RQASSIST:function(){return o},RCS_RQSUPPLY:function(){return t},RCS_SENDINFO:function(){return r},RCS_SENTFAIL:function(){return g},RCS_SENTPASS:function(){return s},RCS_VIEWMSGS:function(){return x}});var e=0,o=1,t=2,r=3,s=4,g=5,x=6,d=7,a=8},7291:function(y,u,n){"use strict";n.r(u),n.d(u,{RequestConsole:function(){return c}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(34416),g=n(4584),x=n(36219),d=n(11986),a=n(60195),c=function(i){var l=(0,o.Oc)(),f=l.act,m=l.data,v=m.screen,E=m.newmessagepriority,j=m.announcementConsole,O=[];return O[s.RCS_MAINMENU]=(0,e.jsx)(d.RequestConsoleSettings,{}),O[s.RCS_RQASSIST]=(0,e.jsx)(a.RequestConsoleAssistance,{}),O[s.RCS_RQSUPPLY]=(0,e.jsx)(a.RequestConsoleSupplies,{}),O[s.RCS_SENDINFO]=(0,e.jsx)(a.RequestConsoleRelay,{}),O[s.RCS_SENTPASS]=(0,e.jsx)(x.RequestConsoleSendPass,{}),O[s.RCS_SENTFAIL]=(0,e.jsx)(x.RequestConsoleSendFail,{}),O[s.RCS_VIEWMSGS]=(0,e.jsx)(g.RequestConsoleViewMessages,{}),O[s.RCS_MESSAUTH]=(0,e.jsx)(g.RequestConsoleMessageAuth,{}),O[s.RCS_ANNOUNCE]=(0,e.jsx)(g.RequestConsoleAnnounce,{}),(0,e.jsx)(r.p8,{width:520,height:410,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_VIEWMSGS,onClick:function(){return f("setScreen",{setScreen:s.RCS_VIEWMSGS})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQASSIST,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQASSIST})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_RQSUPPLY,onClick:function(){return f("setScreen",{setScreen:s.RCS_RQSUPPLY})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_SENDINFO,onClick:function(){return f("setScreen",{setScreen:s.RCS_SENDINFO})},icon:"share-square-o",children:"Report"}),j&&(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_ANNOUNCE,onClick:function(){return f("setScreen",{setScreen:s.RCS_ANNOUNCE})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(t.tU.Tab,{selected:v===s.RCS_MAINMENU,onClick:function(){return f("setScreen",{setScreen:s.RCS_MAINMENU})},icon:"cog"})]}),E&&(0,e.jsx)(t.wn,{title:E>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:E>1?"bad":"average",bold:E>1})||null,O[v]||""]})})}},22292:function(y,u,n){"use strict";n.r(u)},99930:function(y,u,n){"use strict";n.r(u),n.d(u,{PaginationChevrons:function(){return x},ResearchConsoleBuildMenu:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(69358),g=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=d.target,f=d.designs,m=d.buildName,v=d.buildFiveName;return l?(0,e.jsxs)(r.wn,{title:(0,s.paginationTitle)("Designs",i.builder_page),buttons:(0,e.jsx)(x,{target:"builder_page"}),children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search for...",value:i.search,onInput:function(E,j){return c("search",{search:j})},mb:1}),f&&f.length?f.map(function(E){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsxs)(r.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:E.name}),(0,e.jsxs)(r.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(r.$n,{mb:-1,icon:"wrench",onClick:function(){return c(m,{build:E.id,imprint:E.id})},children:"Build"}),v&&(0,e.jsx)(r.$n,{mb:-1,onClick:function(){return c(v,{build:E.id,imprint:E.id})},children:"x5"})]}),(0,e.jsxs)(r.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:E.mat_list.join(" ")}),(0,e.jsx)(r.az,{inline:!0,color:"average",ml:1,children:E.chem_list.join(" ")})]})]}),(0,e.jsx)(r.cG,{})]},E.id)}):(0,e.jsx)(r.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(r.az,{color:"bad",children:"Error"})},x=function(d){var a=(0,t.Oc)().act,c=d.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return a(c,{reset:!0})}}),(0,e.jsx)(r.$n,{icon:"chevron-left",onClick:function(){return a(c,{reverse:-1})}}),(0,e.jsx)(r.$n,{icon:"chevron-right",onClick:function(){return a(c,{reverse:1})}})]})}},23119:function(y,u,n){"use strict";n.r(u),n.d(u,{ResearchConsoleConstructor:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(95411),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=g.name,i=g.matsStates,l=g.onMatsState,f=g.protoTab,m=g.onProtoTab,v=g.linked,E=g.designs;if(!v||!v.present)return(0,e.jsxs)(t.wn,{title:c,children:["No ",c," found."]});var j=v.total_materials,O=v.max_materials,M=v.total_volume,_=v.max_volume,I=v.busy,S=v.mats,T=v.reagents,A=v.queue,K="transparent",W=!1,$="layer-group";I?($="hammer",K="average",W=!0):A&&A.length&&($="sync",K="green",W=!0);var k=[];return k[0]=(0,e.jsx)(r.ResearchConsoleConstructorMenue,{name:c,linked:v,designs:E}),k[1]=(0,e.jsx)(r.ResearchConsoleConstructorQueue,{name:c,busy:I,queue:A}),k[2]=(0,e.jsx)(r.ResearchConsoleConstructorMats,{name:c,mats:S,matsStates:i,onMatsState:l}),k[3]=(0,e.jsx)(r.ResearchConsoleConstructorChems,{name:c,reagents:T}),(0,e.jsxs)(t.wn,{title:c,buttons:I&&(0,e.jsx)(t.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Materials",children:(0,e.jsxs)(t.z2,{value:j,maxValue:O,children:[j," cm\xB3 / ",O," cm\xB3"]})}),(0,e.jsx)(t.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(t.z2,{value:M,maxValue:_,children:[M,"u / ",_,"u"]})})]}),(0,e.jsxs)(t.tU,{mt:1,children:[(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===0,onClick:function(){return m(0)},children:"Build"}),(0,e.jsx)(t.tU.Tab,{icon:$,iconSpin:W,color:K,selected:f===1,onClick:function(){return m(1)},children:"Queue"}),(0,e.jsx)(t.tU.Tab,{icon:"cookie-bite",selected:f===2,onClick:function(){return m(2)},children:"Mat Storage"}),(0,e.jsx)(t.tU.Tab,{icon:"flask",selected:f===3,onClick:function(){return m(3)},children:"Chem Storage"})]}),k[f]||(0,e.jsx)(t.az,{textColor:"red",children:"Error"})]})}},95411:function(y,u,n){"use strict";n.r(u),n.d(u,{ResearchConsoleConstructorChems:function(){return c},ResearchConsoleConstructorMats:function(){return a},ResearchConsoleConstructorMenue:function(){return x},ResearchConsoleConstructorQueue:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(99930);function g(){return g=Object.assign||function(i){for(var l=1;l=150?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:m.biomass>=150?"circle":"circle-o"}),"\xA0",m.biomass]}),E]},v)}):""}},88315:function(y,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsolePodSleevers:function(){return s}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),s=function(g){var x=(0,t.Oc)(),d=x.act,a=x.data,c=a.sleevers,i=a.spods,l=a.selected_sleever;return c&&c.length?c.map(function(f,m){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(r._V,{src:(0,o.l)("sleeve_"+(f.occupied?"occupied":"empty")+".gif"),style:{width:"100%"}}),(0,e.jsx)(r.az,{color:f.occupied?"label":"bad",children:f.name}),(0,e.jsx)(r.$n,{selected:l===f.sleever,icon:l===f.sleever&&"check",mt:i&&i.length?"3rem":"1.5rem",onClick:function(){return d("selectsleever",{ref:f.sleever})},children:"Select"})]},m)}):""}},50123:function(y,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsolePodSpods:function(){return g}});var e=n(20462),o=n(4089),t=n(31200),r=n(7081),s=n(88569),g=function(x){var d=(0,r.Oc)(),a=d.act,c=d.data,i=c.spods,l=c.selected_printer;return i&&i.length?i.map(function(f,m){var v;return f.status==="cloning"?v=(0,e.jsx)(s.z2,{minValue:0,maxValue:1,value:f.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(s.az,{textAlign:"center",children:(0,o.Mg)(f.progress)+"%"})}):f.status==="mess"?v=(0,e.jsx)(s.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):v=(0,e.jsx)(s.$n,{selected:l===f.spod,icon:l===f.spod&&"check",mt:"0.5rem",onClick:function(){return a("selectprinter",{ref:f.spod})},children:"Select"}),(0,e.jsxs)(s.az,{width:"64px",textAlign:"center",inline:!0,mr:"0.5rem",children:[(0,e.jsx)(s._V,{src:(0,t.l)("synthprinter"+(f.busy?"_working":"")+".gif"),style:{width:"100%"}}),(0,e.jsx)(s.az,{color:"label",children:f.name}),(0,e.jsxs)(s.az,{bold:!0,color:f.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.steel>=15e3?"circle":"circle-o"}),"\xA0",f.steel]}),(0,e.jsxs)(s.az,{bold:!0,color:f.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(s.In,{name:f.glass>=15e3?"circle":"circle-o"}),"\xA0",f.glass]}),v]},m)}):""}},27529:function(y,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsoleRecords:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act,x=s.records,d=s.actToDo;return x.length?(0,e.jsx)(t.az,{mt:"0.5rem",children:x.map(function(a,c){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return g(d,{ref:a.recref})},children:a.name},c)})}):(0,e.jsx)(t.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No records found."]})})}},60009:function(y,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsoleStatus:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().data,x=g.pods,d=g.spods,a=g.sleevers;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pods",children:x&&x.length?(0,e.jsxs)(t.az,{color:"good",children:[x.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"SynthFabs",children:d&&d.length?(0,e.jsxs)(t.az,{color:"good",children:[d.length," connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(t.Ki.Item,{label:"Sleevers",children:a&&a.length?(0,e.jsxs)(t.az,{color:"good",children:[a.length," Connected"]}):(0,e.jsx)(t.az,{color:"bad",children:"None connected!"})})]})})}},87999:function(y,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsoleCoreDump:function(){return r},ResleevingConsoleDiskPrep:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=function(g){return(0,e.jsx)(t.Rr,{children:(0,e.jsxs)(t.so,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.In,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.jsx)(t.so.Item,{grow:1,color:"bad",mt:5,children:(0,e.jsx)("h2",{children:"TransCore dump completed. Resleeving offline."})})]})})},s=function(g){var x=(0,o.Oc)().act;return(0,e.jsxs)(t.Rr,{textAlign:"center",children:[(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h1",{children:"TRANSCORE DUMP"})}),(0,e.jsx)(t.az,{color:"bad",children:(0,e.jsx)("h2",{children:"!!WARNING!!"})}),(0,e.jsx)(t.az,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n,{icon:"eject",color:"good",onClick:function(){return x("ejectdisk")},children:"Eject Disk"})}),(0,e.jsx)(t.az,{mt:4,children:(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return x("coredump")},children:"Core Dump"})})]})}},69163:function(y,u,n){"use strict";n.r(u),n.d(u,{MENU_BODY:function(){return o},MENU_MAIN:function(){return e},MENU_MIND:function(){return t}});var e=1,o=2,t=3},86686:function(y,u,n){"use strict";n.r(u),n.d(u,{ResleevingConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),g=n(35216),x=n(60009),d=n(87999),a=n(73509),c=n(769),i=function(l){var f=(0,o.Oc)().data,m=f.coredumped,v=f.emergency,E=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.ResleevingConsoleTemp,{}),(0,e.jsx)(x.ResleevingConsoleStatus,{}),(0,e.jsx)(g.ResleevingConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:(0,e.jsx)(g.ResleevingConsoleBody,{})})]});return m&&(E=(0,e.jsx)(d.ResleevingConsoleCoreDump,{})),v&&(E=(0,e.jsx)(d.ResleevingConsoleDiskPrep,{})),(0,r.modalRegisterBodyOverride)("view_b_rec",a.viewBodyRecordModalBodyOverride),(0,r.modalRegisterBodyOverride)("view_m_rec",c.viewMindRecordModalBodyOverride),(0,e.jsxs)(s.p8,{width:640,height:520,children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsx)(s.p8.Content,{className:"Layout__content--flexColumn",children:E})]})}},43795:function(y,u,n){"use strict";n.r(u)},73509:function(y,u,n){"use strict";n.r(u),n.d(u,{viewBodyRecordModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act,x=s.args,d=x.activerecord,a=x.realname,c=x.species,i=x.sex,l=x.mind_compat,f=x.synthetic,m=x.oocnotes,v=x.can_grow_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Body Record ("+a+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return g("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:c}),(0,e.jsx)(t.Ki.Item,{label:"Bio. Sex",children:i}),(0,e.jsx)(t.Ki.Item,{label:"Mind Compat",children:l}),(0,e.jsx)(t.Ki.Item,{label:"Synthetic",children:f?"Yes":"No"}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:m})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{disabled:!v,icon:"user-plus",onClick:function(){return g("create",{ref:d})},children:f?"Build":"Grow"})})]})})}},769:function(y,u,n){"use strict";n.r(u),n.d(u,{viewMindRecordModalBodyOverride:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)().act,x=s.args,d=x.activerecord,a=x.realname,c=x.obviously_dead,i=x.oocnotes,l=x.can_sleeve_active;return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Mind Record ("+a+")",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return g("modal_close")}}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:c}),(0,e.jsxs)(t.Ki.Item,{label:"Actions",children:[(0,e.jsx)(t.$n,{disabled:!l,icon:"user-plus",onClick:function(){return g("sleeve",{ref:d,mode:1})},children:"Sleeve"}),(0,e.jsx)(t.$n,{icon:"user-plus",onClick:function(){return g("sleeve",{ref:d,mode:2})},children:"Card"})]}),(0,e.jsx)(t.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(t.wn,{style:{wordBreak:"break-all",height:"100px"},scrollable:!0,children:i})})]})})}},18313:function(y,u,n){"use strict";n.r(u),n.d(u,{ResleevingPod:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)().data,d=x.occupied,a=x.name,c=x.health,i=x.maxHealth,l=x.stat,f=x.mindStatus,m=x.mindName,v=x.resleeveSick,E=x.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{title:"Occupant",children:d?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:l===2?(0,e.jsx)(t.az,{color:"bad",children:"DEAD"}):l===1?(0,e.jsx)(t.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(t.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:c/i,children:[c,"%"]})}),(0,e.jsx)(t.Ki.Item,{label:"Mind Status",children:f?"Present":"Missing"}),f?(0,e.jsx)(t.Ki.Item,{label:"Mind Occupying",children:m}):""]}),v?(0,e.jsxs)(t.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",E?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(t.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},68297:function(y,u,n){"use strict";n.r(u),n.d(u,{RoboticsControlConsole:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.can_hack,l=c.safety,f=c.show_detonate_all,m=c.cyborgs,v=m===void 0?[]:m,E=c.auth;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!f&&(0,e.jsxs)(t.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(t.$n,{icon:l?"lock":"unlock",selected:l,children:l?"Disable Safety":"Enable Safety"}),(0,e.jsx)(t.$n,{icon:"bomb",disabled:l,color:"bad",onClick:function(){return a("nuke",{})},children:"Destroy ALL Cyborgs"})]}),(0,e.jsx)(g,{cyborgs:v,can_hack:i,auth:E})]})})},g=function(x){var d=x.cyborgs,a=x.can_hack,c=x.auth,i=(0,o.Oc)().act;return d.length?d.map(function(l){return(0,e.jsx)(t.wn,{title:l.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!l.hackable&&!l.emagged&&(0,e.jsx)(t.$n,{icon:"terminal",color:"bad",onClick:function(){return i("hackbot",{ref:l.ref})},children:"Hack"}),(0,e.jsx)(t.$n.Confirm,{icon:l.locked_down?"unlock":"lock",color:l.locked_down?"good":"default",disabled:!c,onClick:function(){return i("stopbot",{ref:l.ref})},children:l.locked_down?"Release":"Lockdown"}),(0,e.jsx)(t.$n.Confirm,{icon:"bomb",disabled:!c,color:"bad",onClick:function(){return i("killbot",{ref:l.ref})},children:"Detonate"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:(0,e.jsx)(t.az,{color:l.status?"bad":l.locked_down?"average":"good",children:l.status?"Not Responding":l.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(t.Ki.Item,{label:"Location",children:(0,e.jsx)(t.az,{children:l.locstring})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsx)(t.z2,{color:l.health>50?"good":"bad",value:l.health/100})}),typeof l.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(t.z2,{color:l.charge>30?"good":"bad",value:l.charge/100})}),(0,e.jsx)(t.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(t.az,{color:l.cell_capacity<3e4?"average":"good",children:l.cell_capacity})})]})||(0,e.jsx)(t.Ki.Item,{label:"Cell",children:(0,e.jsx)(t.az,{color:"bad",children:"No Power Cell"})}),!!l.is_hacked&&(0,e.jsx)(t.Ki.Item,{label:"Safeties",children:(0,e.jsx)(t.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Module",children:l.module}),(0,e.jsx)(t.Ki.Item,{label:"Master AI",children:(0,e.jsx)(t.az,{color:l.synchronization?"default":"average",children:l.synchronization||"None"})})]})},l.ref)}):(0,e.jsx)(t.IC,{children:"No cyborg units detected within access parameters."})}},2879:function(y,u,n){"use strict";n.r(u),n.d(u,{RogueZones:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.timeout_percent,i=a.diffstep,l=a.difficulty,f=a.occupied,m=a.scanning,v=a.updated,E=a.debug,j=a.shuttle_location,O=a.shuttle_at_station,M=a.scan_ready,_=a.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Current Area",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Mineral Content",children:l}),(0,e.jsx)(t.Ki.Item,{label:"Shuttle Location",buttons:_&&(0,e.jsx)(t.$n,{color:"bad",icon:"rocket",onClick:function(){return d("recall_shuttle")},children:"Recall Shuttle"})||null,children:j}),f&&(0,e.jsxs)(t.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",f," personnel!"]})||(0,e.jsx)(t.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(t.wn,{title:"Scanner",buttons:(0,e.jsx)(t.$n,{disabled:!M,fluid:!0,icon:"search",onClick:function(){return d("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(t.z2,{value:c,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),m&&(0,e.jsx)(t.Ki.Item,{label:"Scanning",children:"In progress."})||null,v&&!m&&(0,e.jsx)(t.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,E&&(0,e.jsxs)(t.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(t.az,{children:["Timeout Percent: ",c]}),(0,e.jsxs)(t.az,{children:["Diffstep: ",i]}),(0,e.jsxs)(t.az,{children:["Difficulty: ",l]}),(0,e.jsxs)(t.az,{children:["Occupied: ",f]}),(0,e.jsxs)(t.az,{children:["Debug: ",E]}),(0,e.jsxs)(t.az,{children:["Shuttle Location: ",j]}),(0,e.jsxs)(t.az,{children:["Shuttle at station: ",O]}),(0,e.jsxs)(t.az,{children:["Scan Ready: ",M]})]})||null]})})]})})}},1249:function(y,u,n){"use strict";n.r(u),n.d(u,{RustCoreMonitor:function(){return s},RustCoreMonitorContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.cores;return(0,e.jsx)(t.wn,{title:"Cores",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Field Status"}),(0,e.jsx)(t.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(t.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(t.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(t.XI.Cell,{children:"Plasma Content"})]}),i.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return a("toggle_active",{core:l.ref})},children:l.has_field?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return a("toggle_reactantdump",{core:l.ref})},children:l.reactant_dump?"Dump":"Maintain"})}),(0,e.jsx)(t.XI.Cell,{children:l.field_instability}),(0,e.jsx)(t.XI.Cell,{children:l.field_temperature}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!l.has_field&&"yellow",value:l.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(f,m){return a("set_fieldstr",{core:l.ref,fieldstr:m})}})}),(0,e.jsx)(t.XI.Cell,{})]},l.name)})]})})}},27095:function(y,u,n){"use strict";n.r(u),n.d(u,{RustFuelContent:function(){return g},RustFuelControl:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.fuels;return(0,e.jsx)(t.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(t.$n,{icon:"pencil-alt",onClick:function(){return a("set_tag")},children:"Set Tag"}),children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Status"}),(0,e.jsx)(t.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(t.XI.Cell,{children:"Fuel Rod Composition"})]}),i.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:l.active,disabled:!l.deployed,onClick:function(){return a("toggle_active",{fuel:l.ref})},children:l.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_amt}),(0,e.jsx)(t.XI.Cell,{children:l.fuel_type})]},l.name)})]})})}},90406:function(y,u,n){"use strict";n.r(u),n.d(u,{Secbot:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.on,i=a.open,l=a.locked,f=a.idcheck,m=a.check_records,v=a.check_arrest,E=a.arrest_type,j=a.declare_arrests,O=a.bot_patrolling,M=a.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("power")},children:c?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:i?"bad":"good",children:i?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(t.wn,{title:"Behavior Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(t.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return d("idcheck")},children:f?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(t.$n,{icon:m?"toggle-on":"toggle-off",selected:m,onClick:function(){return d("ignorerec")},children:m?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(t.$n,{icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("ignorearr")},children:v?"Yes":"No"})}),(0,e.jsx)(t.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(t.$n,{icon:E?"toggle-on":"toggle-off",selected:E,onClick:function(){return d("switchmode")},children:E?"Detain":"Arrest"})}),(0,e.jsx)(t.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(t.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return d("declarearrests")},children:j?"Yes":"No"})}),!!O&&(0,e.jsx)(t.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(t.$n,{icon:M?"toggle-on":"toggle-off",selected:M,onClick:function(){return d("patrol")},children:M?"Yes":"No"})})]})})||null]})})}},38575:function(y,u,n){"use strict";n.r(u),n.d(u,{SecureSafe:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],l=c.locked,f=c.l_setshort,m=c.code,v=c.emagged;return(0,e.jsx)(t.az,{width:"185px",children:(0,e.jsx)(t.XI,{width:"1px",children:i.map(function(E){return(0,e.jsx)(t.XI.Cell,{children:E.map(function(j){return(0,e.jsx)(t.$n,{fluid:!0,bold:!0,mb:"6px",textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!v||!!f&&1||j!=="R"&&!l||m==="ERROR"&&j!=="R"&&1,onClick:function(){return a("type",{digit:j})},children:j},j)})},E[0])})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.code,l=c.l_setshort,f=c.l_set,m=c.emagged,v=c.locked,E=!(f||l);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.az,{m:"6px",children:[E&&(0,e.jsx)(t.IC,{textAlign:"center",info:!0,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!m&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,children:"LOCKING SYSTEM ERROR - 1701"}),!!l&&(0,e.jsx)(t.IC,{textAlign:"center",danger:!0,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(t.wn,{height:"60px",children:(0,e.jsx)(t.az,{textAlign:"center",position:"center",fontSize:"35px",children:i&&i||(0,e.jsx)(t.az,{textColor:v?"red":"green",children:v?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(t.so,{ml:"3px",children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(s,{})}),(0,e.jsx)(t.so.Item,{ml:"6px",width:"129px"})]})]})})})}},26487:function(y,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(c,i){return x("search",{t1:i})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:a.map(function(c,i){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",color:c.color,onClick:function(){return x("d_rec",{d_rec:c.ref})},children:c.id+": "+c.name+" (Criminal Status: "+c.criminal+")"},i)})})]})}},12473:function(y,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsMaintenance:function(){return g},SecurityRecordsNavigation:function(){return d},SecurityRecordsView:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(64254),s=n(72462),g=function(a){var c=(0,o.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"download",disabled:!0,children:"Backup to Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"upload",my:"0.5rem",disabled:!0,children:"Upload from Disk"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",onClick:function(){return c("del_all")},children:"Delete All Security Records"})]})},x=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.security,m=l.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(r.SecurityRecordsViewGeneral,{})}),(0,e.jsx)(t.wn,{title:"Security Data",children:(0,e.jsx)(s.SecurityRecordsViewSecurity,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return i("del_r")},children:"Delete Security Record"}),(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!f.empty,color:"bad",onClick:function(){return i("del_r_2")},children:"Delete Record (All)"}),(0,e.jsx)(t.$n,{icon:m?"spinner":"print",disabled:m,iconSpin:!!m,ml:"0.5rem",onClick:function(){return i("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return i("screen",{screen:2})},children:"Back"})]})]})},d=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{selected:f===2,icon:"list",onClick:function(){return i("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(t.tU.Tab,{icon:"wrench",selected:f===3,onClick:function(){return i("screen",{screen:3})},children:"Record Maintenance"})]})}},64254:function(y,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsViewGeneral:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(80724),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.general;return!c||!c.fields?(0,e.jsx)(t.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.Ki,{children:c.fields.map(function(i,l){return(0,e.jsx)(t.Ki.Item,{label:i.field,children:(0,e.jsxs)(t.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:[i.value,!!i.edit&&(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,r.doEdit)(i)}})]})},l)})})}),(0,e.jsxs)(t.so.Item,{textAlign:"right",children:[!!c.has_photos&&c.photos.map(function(i,l){return(0,e.jsxs)(t.az,{inline:!0,textAlign:"center",color:"label",children:[(0,e.jsx)(t._V,{src:i.substring(1,i.length-1),style:{width:"96px",marginBottom:"0.5rem"}}),(0,e.jsx)("br",{}),"Photo #",l+1]},l)}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return d("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(t.$n,{onClick:function(){return d("photo_side")},children:"Update Side Photo"})]})]})]})}},72462:function(y,u,n){"use strict";n.r(u),n.d(u,{SecurityRecordsViewSecurity:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(80724),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.security;return!i||!i.fields?(0,e.jsxs)(t.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return a("new")},children:"New Record"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki,{children:i.fields.map(function(l,f){return(0,e.jsx)(t.Ki.Item,{label:l.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[l.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",mb:"initial",onClick:function(){return(0,s.doEdit)(l)}})]})},f)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[i.comments&&i.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):i.comments&&i.comments.map(function(l,f){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:l.header}),(0,e.jsx)("br",{}),l.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return a("del_c",{del_c:f+1})}})]},f)}),(0,e.jsx)(t.$n,{icon:"comment",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")},children:"Add Entry"})]})]})}},94779:function(y,u,n){"use strict";n.r(u),n.d(u,{SecurityRecords:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),s=n(15581),g=n(35069),x=n(97049),d=n(3751),a=n(26487),c=n(12473),i=function(l){var f=(0,o.Oc)().data,m=f.authenticated,v=f.screen;if(!m)return(0,e.jsx)(s.p8,{width:700,height:680,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var E=[];return E[2]=(0,e.jsx)(a.SecurityRecordsList,{}),E[3]=(0,e.jsx)(c.SecurityRecordsMaintenance,{}),E[4]=(0,e.jsx)(c.SecurityRecordsView,{}),(0,e.jsxs)(s.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(c.SecurityRecordsNavigation,{}),(0,e.jsx)(t.wn,{flexGrow:!0,children:v&&E[v]||""})]})]})}},53588:function(y,u,n){"use strict";n.r(u)},62516:function(y,u,n){"use strict";n.r(u),n.d(u,{SeedStorage:function(){return x}});var e=n(20462),o=n(7402),t=n(61282),r=n(7081),s=n(88569),g=n(15581),x=function(d){var a=(0,r.Oc)(),c=a.act,i=a.data,l=i.seeds,f=(0,o.Ul)(l,function(m){return m.name.toLowerCase()});return(0,e.jsx)(g.p8,{width:600,height:760,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(s.wn,{title:"Seeds",children:f.map(function(m){return(0,e.jsxs)(s.so,{spacing:1,mt:-1,children:[(0,e.jsx)(s.so.Item,{basis:"60%",children:(0,e.jsx)(s.Nt,{title:(0,t.Sn)(m.name)+" #"+m.uid,children:(0,e.jsx)(s.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(s.Ki,{children:Object.keys(m.traits).map(function(v){return(0,e.jsx)(s.Ki.Item,{label:(0,t.Sn)(v),children:m.traits[v]},v)})})})})}),(0,e.jsxs)(s.so.Item,{mt:.4,children:[m.amount," Remaining"]}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"download",onClick:function(){return c("vend",{id:m.id})},children:"Vend"})}),(0,e.jsx)(s.so.Item,{grow:1,children:(0,e.jsx)(s.$n,{fluid:!0,icon:"trash",onClick:function(){return c("purge",{id:m.id})},children:"Purge"})})]},m.name+m.uid)})})})})}},3967:function(y,u,n){"use strict";n.r(u),n.d(u,{ShieldCapacitor:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.active,f=i.time_since_fail,m=i.stored_charge,v=i.max_charge,E=i.charge_rate,j=i.max_charge_rate;return(0,e.jsx)(g.p8,{width:500,height:400,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:l,onClick:function(){return c("toggle")},children:l?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:f>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:m,format:function(O){return(0,s.QL)(O,0,"J")}}),(0,e.jsx)(r.zv,{value:100*(0,o.LI)(m/v,1),format:function(O){return" ("+(0,o.Mg)(O,1)+"%)"}})]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:E,step:100,stepPixelSize:.2,minValue:1e4,maxValue:j,format:function(O){return(0,s.d5)(O)},onDrag:function(O){return c("charge_rate",{rate:O})}})})]})})})})}},7180:function(y,u,n){"use strict";n.r(u),n.d(u,{ShieldGenerator:function(){return d}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=n(72859),d=function(i){var l=(0,t.Oc)().data,f=l.locked;return(0,e.jsx)(g.p8,{width:500,height:400,children:(0,e.jsx)(g.p8.Content,{children:f?(0,e.jsx)(a,{}):(0,e.jsx)(c,{})})})},a=function(i){return(0,e.jsxs)(x.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},c=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.lockedData,E=v.capacitors,j=v.active,O=v.failing,M=v.radius,_=v.max_radius,I=v.z_range,S=v.max_z_range,T=v.average_field_strength,A=v.target_field_strength,K=v.max_field_strength,W=v.shields,$=v.upkeep,k=v.strengthen_rate,z=v.max_strengthen_rate,H=v.gen_power,G=(E||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:O?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsx)(r.Ki.Item,{label:"Overall Field Strength",children:(0,o.Mg)(T,2)+" Renwick ("+(A&&(0,o.Mg)(100*T/A,1)+"%)")||"NA)"}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,s.d5)($)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,s.d5)(H)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[W," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:G?E.map(function(Y,ee){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+ee,children:[Y.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge",children:(0,s.QL)(Y.stored_charge,0,"J")+" ("+(0,o.Mg)(100*(Y.stored_charge/Y.max_charge),2)+"%)"}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:Y.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},ee)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:j,onClick:function(){return f("toggle")},children:j?"Online":"Offline"}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,step:1,minValue:0,maxValue:_,value:M,unit:"m",onDrag:function(Y){return f("change_radius",{val:Y})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,step:1,minValue:0,maxValue:S,value:I,unit:"vertical range",onDrag:function(Y){return f("z_range",{val:Y})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:z,value:k,format:function(Y){return(0,o.Mg)(Y,1)},unit:"Renwick/s",onDrag:function(Y){return f("strengthen_rate",{val:Y})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,step:1,minValue:1,maxValue:K,value:A,unit:"Renwick",onDrag:function(Y){return f("target_field_strength",{val:Y})}})})]})})]})}},67889:function(y,u,n){"use strict";n.r(u),n.d(u,{ShutoffMonitor:function(){return s},ShutoffMonitorContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.valves;return(0,e.jsx)(t.wn,{title:"Valves",children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Position"}),(0,e.jsx)(t.XI.Cell,{children:"Open"}),(0,e.jsx)(t.XI.Cell,{children:"Mode"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),i.map(function(l){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:l.name}),(0,e.jsxs)(t.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(t.XI.Cell,{children:l.open?"Yes":"No"}),(0,e.jsx)(t.XI.Cell,{children:l.enabled?"Auto":"Manual"}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:l.open,disabled:!l.enabled,onClick:function(){return a("toggle_open",{valve:l.ref})},children:l.open?"Opened":"Closed"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:l.enabled,onClick:function(){return a("toggle_enable",{valve:l.ref})},children:l.enabled?"Auto":"Manual"})]})]},l.name)})]})})}},83491:function(y,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlConsoleDefault:function(){return g},ShuttleControlConsoleExploration:function(){return d},ShuttleControlConsoleMulti:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(13553),s=n(50705),g=function(a){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},x=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.can_cloak,m=l.can_pick,v=l.legit,E=l.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{}),(0,e.jsx)(t.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(t.Ki,{children:[f&&(0,e.jsx)(t.Ki.Item,{label:v?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(t.$n,{selected:E,icon:E?"eye":"eye-o",onClick:function(){return i("toggle_cloaked")},children:E?"Enabled":"Disabled"})})||"",(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!m,onClick:function(){return i("pick")},children:a.destination_name})})]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})},d=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.can_pick,m=l.destination_name,v=l.fuel_usage,E=l.fuel_span,j=l.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.ShuttleControlSharedShuttleStatus,{engineName:"Engines"}),(0,e.jsx)(t.wn,{title:"Jump Controls",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(t.$n,{icon:"taxi",disabled:!f,onClick:function(){return i("pick")},children:m})}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Est. Delta-V Budget",color:E,children:[j," m/s"]}),(0,e.jsxs)(t.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[v," m/s"]})]})||""]})}),(0,e.jsx)(r.ShuttleControlSharedShuttleControls,{})]})}},96366:function(y,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlConsoleWeb:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(40420),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.autopilot,l=c.can_rename,f=c.shuttle_state,m=c.is_moving,v=c.skip_docking,E=c.docking_status,j=c.docking_override,O=c.shuttle_location,M=c.can_cloak,_=c.cloaked,I=c.can_autopilot,S=c.routes,T=c.is_in_transit,A=c.travel_progress,K=c.time_left,W=c.doors,$=c.sensors;return(0,e.jsxs)(e.Fragment,{children:[i&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||"",(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:l&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return a("rename_command")},children:"Rename"})||"",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:f==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,o.Sn)(O)}),!v&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:E==="docked",disabled:E!=="undocked"&&E!=="docked",onClick:function(){return a("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:E==="undocked",disabled:E!=="docked"&&E!=="undocked",onClick:function(){return a("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:(0,s.getDockingStatus)(E,j)})})||"",M&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:_,icon:_?"eye":"eye-o",onClick:function(){return a("toggle_cloaked")},children:_?"Enabled":"Disabled"})})||"",I&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:i,icon:i?"eye":"eye-o",onClick:function(){return a("toggle_autopilot")},children:i?"Enabled":"Disabled"})})||""]})||""]}),!m&&(0,e.jsx)(r.wn,{title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:S.length&&S.map(function(k){return(0,e.jsx)(r.Ki.Item,{label:k.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return a("traverse",{traverse:k.index})},children:k.travel_time})},k.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||""]}),T&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:A,children:[K,"s"]})})})})||"",Object.keys(W).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(W).map(function(k){var z=W[k];return(0,e.jsxs)(r.Ki.Item,{label:k,children:[z.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",z.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},k)})})})||"",Object.keys($).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys($).map(function(k,z){var H=$[k];return H.reading?(0,e.jsx)(r.Ki.Item,{label:k,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[H.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[H.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[H.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[H.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[H.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[H.phoron,"%"]}),H.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[H.other,"%"]})||""]})},k):(0,e.jsx)(r.Ki.Item,{label:k,color:"bad",children:"Unable to get sensor air reading."},z)})})})||""]})}},13553:function(y,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlSharedShuttleControls:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.can_launch,c=d.can_cancel,i=d.can_force;return(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.so,{spacing:1,children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("move")},disabled:!a,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("cancel")},disabled:!c,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.$n,{onClick:function(){return x("force")},color:"bad",disabled:!i,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})}},50705:function(y,u,n){"use strict";n.r(u),n.d(u,{ShuttleControlSharedShuttleStatus:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(40420),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=g.engineName,i=c===void 0?"Bluespace Drive":c,l=a.shuttle_status,f=a.shuttle_state,m=a.has_docking,v=a.docking_status,E=a.docking_override,j=a.docking_codes;return(0,e.jsxs)(t.wn,{title:"Shuttle Status",children:[(0,e.jsx)(t.az,{color:"label",mb:1,children:l}),(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:i,children:f==="idle"&&(0,e.jsx)(t.az,{color:"#676767",bold:!0,children:"IDLE"})||f==="warmup"&&(0,e.jsx)(t.az,{color:"#336699",children:"SPINNING UP"})||f==="in_transit"&&(0,e.jsx)(t.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})}),m&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Docking Status",children:(0,r.getDockingStatus)(v,E)}),(0,e.jsx)(t.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("set_codes")},children:j||"Not Set"})})]})||""]})]})}},40420:function(y,u,n){"use strict";n.r(u),n.d(u,{getDockingStatus:function(){return t}});var e=n(20462),o=n(88569);function t(r,s){var g="ERROR",x="bad",d=!1;return r==="docked"?(g="DOCKED",x="good"):r==="docking"?(g="DOCKING",x="average",d=!0):r==="undocking"?(g="UNDOCKING",x="average",d=!0):r==="undocked"&&(g="UNDOCKED",x="#676767"),d&&s&&(g=g+"-MANUAL"),(0,e.jsx)(o.az,{color:x,children:g})}},93147:function(y,u,n){"use strict";n.r(u),n.d(u,{ShuttleControl:function(){return g}});var e=n(20462),o=n(7081),t=n(15581),r=n(83491),s=n(96366),g=function(x){var d=(0,o.Oc)().data,a=d.subtemplate,c=d.destination_name;return(0,e.jsx)(t.p8,{width:470,height:a==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(t.p8.Content,{children:a==="ShuttleControlConsoleDefault"&&(0,e.jsx)(r.ShuttleControlConsoleDefault,{})||a==="ShuttleControlConsoleMulti"&&(0,e.jsx)(r.ShuttleControlConsoleMulti,{destination_name:c})||a==="ShuttleControlConsoleExploration"&&(0,e.jsx)(r.ShuttleControlConsoleExploration,{})||a==="ShuttleControlConsoleWeb"&&(0,e.jsx)(s.ShuttleControlConsoleWeb,{})})})}},41396:function(y,u,n){"use strict";n.r(u)},46321:function(y,u,n){"use strict";n.r(u),n.d(u,{Signaler:function(){return g},SignalerContent:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g=function(){return(0,e.jsx)(s.p8,{width:280,height:132,children:(0,e.jsx)(s.p8.Content,{children:(0,e.jsx)(x,{})})})},x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.code,f=i.frequency,m=i.minFrequency,v=i.maxFrequency;return(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:v/10,value:f/10,format:function(E){return(0,o.Mg)(E,1)},width:"80px",onDrag:function(E){return c("freq",{freq:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return c("reset",{reset:"freq"})},children:"Reset"})})]}),(0,e.jsxs)(r.XI.Row,{mt:.6,children:[(0,e.jsx)(r.XI.Cell,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Q7,{animated:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onDrag:function(E){return c("code",{code:E})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",onClick:function(){return c("reset",{reset:"code"})},children:"Reset"})})]}),(0,e.jsx)(r.XI.Row,{mt:.8,children:(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",textAlign:"center",onClick:function(){return c("signal")},children:"Send Signal"})})})]})})}},63e3:function(y,u,n){"use strict";n.r(u),n.d(u,{SleeperChemicals:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.occupant,c=d.chemicals,i=d.maxchem,l=d.amounts;return(0,e.jsx)(t.wn,{title:"Chemicals",flexGrow:!0,children:c.map(function(f,m){var v="",E;return f.overdosing?(v="bad",E=(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)(t.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):f.od_warning&&(v="average",E=(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(t.wn,{title:f.title,mx:"0",lineHeight:"18px",buttons:E,children:(0,e.jsxs)(t.so,{align:"flex-start",children:[(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:f.occ_amount/i,color:v,mr:"0.5rem",children:[f.pretty_amount,"/",i,"u"]}),l.map(function(j,O){return(0,e.jsx)(t.$n,{disabled:!f.injectable||f.occ_amount+j>i||a.stat===2,icon:"syringe",mb:"0",height:"19px",onClick:function(){return x("chemical",{chemid:f.id,amount:j})},children:j},O)})]})})},m)})})}},57224:function(y,u,n){"use strict";n.r(u),n.d(u,{SleeperDamage:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(40308),g=function(x){var d=(0,t.Oc)().data,a=d.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:s.damages.map(function(c,i){return(0,e.jsx)(r.Ki.Item,{label:c[0],children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:a[c[1]]/100,ranges:s.damageRange,children:(0,o.Mg)(a[c[1]])},i)},i)})})})}},54695:function(y,u,n){"use strict";n.r(u),n.d(u,{SleeperDialysisPump:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=s.active,c=s.actToDo,i=s.title,l=d.isBeakerLoaded,f=d.beakerMaxSpace,m=d.beakerFreeSpace,v=a&&m>0;return(0,e.jsx)(t.wn,{title:i,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{disabled:!l||m<=0,selected:v,icon:v?"toggle-on":"toggle-off",onClick:function(){return x(c)},children:v?"Active":"Inactive"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"eject",onClick:function(){return x("removebeaker")},children:"Eject"})]}),children:l?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:m/f,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[m,"u"]})})}):(0,e.jsx)(t.az,{color:"label",children:"No beaker loaded."})})}},39176:function(y,u,n){"use strict";n.r(u),n.d(u,{SleeperEmpty:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.isBeakerLoaded;return(0,e.jsx)(t.wn,{textAlign:"center",flexGrow:!0,children:(0,e.jsx)(t.so,{height:"100%",children:(0,e.jsxs)(t.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(t.In,{name:"user-slash",mb:"0.5rem",size:5}),(0,e.jsx)("br",{}),"No occupant detected.",a&&(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return x("removebeaker")},children:"Remove Beaker"})})||null]})})})}},44092:function(y,u,n){"use strict";n.r(u),n.d(u,{SleeperMain:function(){return x}});var e=n(20462),o=n(7081),t=n(63e3),r=n(57224),s=n(54695),g=n(86570),x=function(d){var a=(0,o.Oc)().data,c=a.dialysis,i=a.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.SleeperOccupant,{}),(0,e.jsx)(r.SleeperDamage,{}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Dialysis",active:c,actToDo:"togglefilter"}),(0,e.jsx)(s.SleeperDialysisPump,{title:"Stomach Pump",active:i,actToDo:"togglepump"}),(0,e.jsx)(t.SleeperChemicals,{})]})}},86570:function(y,u,n){"use strict";n.r(u),n.d(u,{SleeperOccupant:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(40308),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.occupant,l=c.auto_eject_dead,f=c.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:l?"toggle-on":"toggle-off",selected:l,onClick:function(){return a("auto_eject_dead_"+(l?"off":"on"))},children:l?"On":"Off"}),(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return a("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{onClick:function(){return a("changestasis")},children:f})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:i.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:i.health/i.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,o.Mg)(i.health)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:s.stats[i.stat][0],children:s.stats[i.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:i.bodyTemperature/i.maxTemp,color:s.tempColors[i.temperatureSuitability+3],children:[(0,o.Mg)(i.btCelsius),"\xB0C,",(0,o.Mg)(i.btFaren),"\xB0F"]})}),!!i.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:1,value:i.bloodLevel/i.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[i.bloodPercent,"%, ",i.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[i.pulse," BPM"]})]})]})})}},40308:function(y,u,n){"use strict";n.r(u),n.d(u,{damageRange:function(){return t},damages:function(){return o},stats:function(){return e},tempColors:function(){return r}});var e=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],o=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],t={average:[.25,.5],bad:[.5,1/0]},r=["bad","average","average","good","average","average","bad"]},46039:function(y,u,n){"use strict";n.r(u),n.d(u,{Sleeper:function(){return g}});var e=n(20462),o=n(7081),t=n(15581),r=n(39176),s=n(44092),g=function(x){var d=(0,o.Oc)().data,a=d.hasOccupant,c=a?(0,e.jsx)(s.SleeperMain,{}):(0,e.jsx)(r.SleeperEmpty,{});return(0,e.jsx)(t.p8,{width:550,height:760,children:(0,e.jsx)(t.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:c})})}},34880:function(y,u,n){"use strict";n.r(u)},49752:function(y,u,n){"use strict";n.r(u),n.d(u,{SmartVend:function(){return g}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.config,i=d.data,l=i.secure,f=i.locked,m=i.contents;return(0,e.jsx)(s.p8,{width:500,height:550,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[l&&f===-1&&(0,e.jsx)(r.IC,{danger:!0,children:(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."})})||l&&f!==-1&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||"",m.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",c.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,o.Tj)(m,function(v,E){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:v.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[v.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return a("Release",{index:v.index,amount:1})},children:"1"}),(0,e.jsx)(r.$n,{disabled:v.amount<5,onClick:function(){return a("Release",{index:v.index,amount:5})},children:"5"}),(0,e.jsx)(r.$n,{disabled:v.amount<25,onClick:function(){return a("Release",{index:v.index,amount:25})},children:"25"}),(0,e.jsx)(r.$n,{disabled:v.amount<50,onClick:function(){return a("Release",{index:v.index,amount:50})},children:"50"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return a("Release",{index:v.index})},children:"Custom"}),(0,e.jsx)(r.$n,{disabled:v.amount<1,onClick:function(){return a("Release",{index:v.index,amount:v.amount})},children:"All"})]})]},E)})]})]})})})}},28088:function(y,u,n){"use strict";n.r(u),n.d(u,{Smes:function(){return d}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=1e3,d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.capacityPercent,m=l.capacity,v=l.charge,E=l.inputAttempt,j=l.inputting,O=l.inputLevel,M=l.inputLevelMax,_=l.inputAvailable,I=l.outputAttempt,S=l.outputting,T=l.outputLevel,A=l.outputLevelMax,K=l.outputUsed,W=f>=100&&"good"||j&&"average"||"bad",$=S&&"good"||v>0&&"average"||"bad";return(0,e.jsx)(g.p8,{width:400,height:350,children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsx)(r.z2,{value:f*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:(0,o.Mg)(v/(1e3*60),1)+" kWh / "+(0,o.Mg)(m/(1e3*60))+" kWh ("+f+"%)"})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:E?"sync-alt":"times",selected:E,onClick:function(){return i("tryinput")},children:E?"On":"Off"}),children:(0,e.jsx)(r.az,{color:W,children:f>=100&&"Fully Charged"||j&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:O===0,onClick:function(){return i("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:O===0,onClick:function(){return i("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:O/x,fillValue:_/x,minValue:0,maxValue:M/x,step:5,stepPixelSize:4,format:function(k){return(0,s.d5)(k*x,1)},onDrag:function(k,z){return i("input",{target:z*x})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:O===M,onClick:function(){return i("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:O===M,onClick:function(){return i("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,s.d5)(_)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:I?"power-off":"times",selected:I,onClick:function(){return i("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.az,{color:$,children:S?"Sending":v>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:T===0,onClick:function(){return i("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:T===0,onClick:function(){return i("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:T/x,minValue:0,maxValue:A/x,step:5,stepPixelSize:4,format:function(k){return(0,s.d5)(k*x,1)},onDrag:function(k,z){return i("output",{target:z*x})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:T===A,onClick:function(){return i("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:T===A,onClick:function(){return i("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,s.d5)(K)})]})})]})})}},24854:function(y,u,n){"use strict";n.r(u),n.d(u,{SolarControl:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g=function(x){var d=(0,t.Oc)(),a=d.act,c=d.data,i=c.generated,l=c.generated_ratio,f=c.sun_angle,m=c.array_angle,v=c.rotation_rate,E=c.max_rotation_rate,j=c.tracking_state,O=c.connected_panels,M=c.connected_tracker;return(0,e.jsx)(s.p8,{width:380,height:230,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return a("refresh")},children:"Scan for new hardware"}),children:(0,e.jsx)(r.XI,{children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:M?"good":"bad",children:M?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:O>0?"good":"bad",children:O})]})}),(0,e.jsx)(r.XI.Cell,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:l,children:i+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[f,"\xB0"]})]})})]})})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",selected:j===0,onClick:function(){return a("tracking",{mode:0})},children:"Off"}),(0,e.jsx)(r.$n,{icon:"clock-o",selected:j===1,onClick:function(){return a("tracking",{mode:1})},children:"Timed"}),(0,e.jsx)(r.$n,{icon:"sync",selected:j===2,disabled:!M,onClick:function(){return a("tracking",{mode:2})},children:"Auto"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(j===0||j===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:m,format:function(_){var I=Math.sign(_)>0?" (CW)":" (CCW)";return(0,o.Mg)(Math.abs(_))+I},onDrag:function(_){return a("azimuth",{value:_})}}),j===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-E-.01,maxValue:E+.01,value:v,format:function(_){var I=Math.sign(_)>0?" (CW)":" (CCW)";return(0,o.Mg)(Math.abs(_))+I},onDrag:function(_){return a("azimuth_rate",{value:_})}}),j===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[m+"\xB0"," (auto)"]})]})]})})]})})}},44051:function(y,u,n){"use strict";n.r(u),n.d(u,{SpaceHeater:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(79500),s=n(15581),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.temp,l=c.minTemp,f=c.maxTemp,m=c.cell,v=c.power;return(0,e.jsx)(s.p8,{width:300,height:250,children:(0,e.jsxs)(s.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Target Temperature",children:[i," K (",i-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(t.Ki.Item,{label:"Current Charge",children:[v,"% ",!m&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Wx,{children:[(0,e.jsx)(t.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(t.N6,{animated:!0,value:i-r.Ai,minValue:l-r.Ai,maxValue:f-r.Ai,unit:"C",onChange:function(E,j){return a("temp",{newtemp:j+r.Ai})}})}),(0,e.jsx)(t.Wx.Item,{label:"Cell",children:m?(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return a("cellremove")},children:"Eject Cell"}):(0,e.jsx)(t.$n,{icon:"car-battery",onClick:function(){return a("cellinstall")},children:"Insert Cell"})})]})})]})})}},85586:function(y,u,n){"use strict";n.r(u),n.d(u,{Stack:function(){return d}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581);function s(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,E=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=function(f){var m=(0,o.Oc)().data,v=m.amount,E=m.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Amount: "+v,children:(0,e.jsx)(a,{recipes:E})})})})},a=function(f){var m=f.recipes,v=Object.keys(m).sort();return v.map(function(E,j){var O=m[E];return O.ref===void 0?(0,e.jsx)(t.Nt,{ml:1,mb:-.7,color:"label",title:E,children:(0,e.jsx)(t.az,{ml:1,children:(0,e.jsx)(a,{recipes:O})})},j):(0,e.jsx)(l,{title:E,recipe:O},j)})},c=function(f,m){return f.req_amount>m?0:Math.floor(m/f.req_amount)},i=function(f){for(var m=function(){var K=A.value;_>=K&&S.push((0,e.jsx)(t.$n,{onClick:function(){return E("make",{ref:O.ref,multiplier:K})},children:K*O.res_amount+"x"}))},v=(0,o.Oc)(),E=v.act,j=v.data,O=f.recipe,M=f.maxMultiplier,_=Math.min(M,Math.floor(O.max_res_amount/O.res_amount)),I=[5,10,25],S=[],T=x(I),A;!(A=T()).done;)m();return I.indexOf(_)===-1&&S.push((0,e.jsx)(t.$n,{onClick:function(){return E("make",{ref:O.ref,multiplier:_})},children:_*O.res_amount+"x"})),S},l=function(f){var m=(0,o.Oc)(),v=m.act,E=m.data,j=E.amount,O=f.recipe,M=f.title,_=O.res_amount,I=O.max_res_amount,S=O.req_amount,T=O.ref,A=M;A+=" (",A+=S+" ",A+="sheet"+(S>1?"s":""),A+=")",_>1&&(A=_+"x "+A);var K=c(O,j);return(0,e.jsx)(t.az,{children:(0,e.jsx)(t.XI,{children:(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{fluid:!0,disabled:!K,icon:"wrench",onClick:function(){return v("make",{ref:O.ref,multiplier:1})},children:A})}),I>1&&K>1&&(0,e.jsx)(t.XI.Cell,{collapsing:!0,children:(0,e.jsx)(i,{recipe:O,maxMultiplier:K})})]})})})}},68679:function(y,u,n){"use strict";n.r(u),n.d(u,{StationAlertConsole:function(){return s},StationAlertConsoleContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.categories,l=i===void 0?[]:i;return l.map(function(f){return(0,e.jsx)(t.wn,{title:f.category,children:(0,e.jsxs)("ul",{children:[f.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),f.alarms.map(function(m){var v="";return m.has_cameras?v=(0,e.jsx)(t.wn,{children:m.cameras.map(function(E){return(0,e.jsx)(t.$n,{disabled:E.deact,icon:"video",onClick:function(){return a("switchTo",{camera:E.camera})},children:E.name+(E.deact?" (deactived)":"")},E.name)})}):m.lost_sources&&(v=(0,e.jsxs)(t.az,{color:"bad",children:["Lost Alarm Sources: ",m.lost_sources]})),(0,e.jsxs)("li",{children:[m.name,m.origin_lost?(0,e.jsx)(t.az,{color:"bad",children:"Alarm Origin Lost."}):"",v]},m.name)})]})},f.category)})}},27306:function(y,u,n){"use strict";n.r(u),n.d(u,{StationBlueprints:function(){return s},StationBlueprintsContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(g,{})})},g=function(x){var d=(0,o.Oc)().data,a=d.mapRef;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(t.D1,{className:"CameraConsole__map",params:{id:a,type:"map"}})})]})}},33395:function(y,u,n){"use strict";n.r(u),n.d(u,{StockExchange:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(l){var f=(0,o.Oc)().data,m=f.screen,v=f.stationName,E;return m==="stocks"?E=(0,e.jsx)(g,{}):m==="logs"?E=(0,e.jsx)(a,{}):m==="archive"?E=(0,e.jsx)(c,{}):m==="graph"&&(E=(0,e.jsx)(i,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:""+v+" Stock Exchange",children:E})})})},g=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.balance,j=v.stationName,O=v.viewMode,M=(0,e.jsx)(x,{});return O==="Full"?M=(0,e.jsx)(x,{}):O==="Compressed"&&(M=(0,e.jsx)(d,{})),(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[j," Cargo Department"]})," |"]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",E]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_cycle_view")},children:O}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(t.$n,{icon:"list",onClick:function(){return m("stocks_check")},children:"Check"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(t.wn,{title:"Listed Stocks",children:M})]})},x=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.stocks,j=E===void 0?[]:E;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(t.cG,{}),(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{children:"ID"}),(0,e.jsx)(t.XI.Cell,{children:"Name"}),(0,e.jsx)(t.XI.Cell,{children:"Value"}),(0,e.jsx)(t.XI.Cell,{children:"Owned"}),(0,e.jsx)(t.XI.Cell,{children:"Avail"}),(0,e.jsx)(t.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(t.cG,{}),j.map(function(O){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.ID}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Name}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Value}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Owned}),(0,e.jsx)(t.XI.Cell,{color:"label",children:O.Avail}),(0,e.jsxs)(t.XI.Cell,{color:"label",children:[(0,e.jsx)(t.$n,{icon:"plus",disabled:!1,onClick:function(){return m("stocks_buy",{share:O.REF})}}),(0,e.jsx)(t.$n,{icon:"minus",disabled:!1,onClick:function(){return m("stocks_sell",{share:O.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_archive",{share:O.REF})},children:"A"}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_history",{share:O.REF})},children:"H"}),(0,e.jsx)("br",{})]})]},O.ID)})]})]})},d=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.stocks,j=E===void 0?[]:E;return(0,e.jsx)(t.az,{children:j.map(function(O){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("span",{children:O.Name})," ",(0,e.jsx)("span",{children:O.ID}),O.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",O.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",O.Value," |",(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_history",{share:O.REF})},children:"View history"}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:O.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",O.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),O.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_buy",{share:O.REF})},children:"Buy shares"}),"|",(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_sell",{share:O.REF})},children:"Sell shares"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:O.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_archive",{share:O.REF})},children:"View news archives"}),(0,e.jsx)(t.cG,{})]},O.ID)})})},a=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.logs,j=E===void 0?[]:E;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:j.map(function(O){return(0,e.jsxs)(t.az,{children:[O.type!=="borrow"?(0,e.jsxs)("div",{children:[O.time," | ",(0,e.jsx)("b",{children:O.user_name}),O.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"}),(0,e.jsx)("b",{children:O.stocks})," stocks at ",O.shareprice," a share for",(0,e.jsx)("b",{children:O.money})," total credits",O.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"}),(0,e.jsx)("b",{children:O.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[O.time," | ",(0,e.jsx)("b",{children:O.user_name})," borrowed ",(0,e.jsx)("b",{children:O.stocks}),"stocks with a deposit of ",(0,e.jsx)("b",{children:O.money})," credits in",(0,e.jsx)("b",{children:O.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(t.cG,{})]},O.time)})})]})},c=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.name,j=v.events,O=j===void 0?[]:j,M=v.articles,_=M===void 0?[]:M;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",E]}),(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:O.map(function(I){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(t.cG,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)("div",{children:_.map(function(I){return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(t.cG,{})]},I.headline)})})]})},i=function(l){var f=(0,o.Oc)(),m=f.act,v=f.data,E=v.name,j=v.maxValue,O=v.values,M=O===void 0?[]:O;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{onClick:function(){return m("stocks_backbutton")},children:"Go back"}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.wn,{position:"relative",height:"100%",children:(0,e.jsx)(t.t1.Line,{fillPositionedParent:!0,data:M,rangeX:[0,M.length-1],rangeY:[0,j],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(t.cG,{}),(0,e.jsxs)("p",{children:[E," share value per share"]})]})}},92495:function(y,u,n){"use strict";n.r(u),n.d(u,{SuitCycler:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),s=n(15581),g=function(i){var l=function(k){S(k)},f=function(k){K(k)},m=(0,t.Oc)().data,v=m.active,E=m.locked,j=m.uv_active,O=m.species,M=m.departments,_=(0,o.useState)(!!M&&M[0]||void 0),I=_[0],S=_[1],T=(0,o.useState)(!!O&&O[0]||void 0),A=T[0],K=T[1],W=(0,e.jsx)(x,{selectedDepartment:I,selectedSpecies:A,onSelectedDepartment:l,onSelectedSpecies:f});return j?W=(0,e.jsx)(d,{}):E?W=(0,e.jsx)(a,{}):v&&(W=(0,e.jsx)(c,{})),(0,e.jsx)(s.p8,{width:320,height:400,children:(0,e.jsx)(s.p8.Content,{children:W})})},x=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.safeties,E=m.occupied,j=m.suit,O=m.helmet,M=m.departments,_=m.species,I=m.uv_level,S=m.max_uv_level,T=m.can_repair,A=m.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",onClick:function(){return f("lock")},children:"Lock"}),children:[!!(E&&v)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return f("eject_guy")},children:"Eject Entity"})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:O?"square":"square-o",disabled:!O,onClick:function(){return f("dispense",{item:"helmet"})},children:O||"Empty"})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:j?"square":"square-o",disabled:!j,onClick:function(){return f("dispense",{item:"suit"})},children:j||"Empty"})}),T&&A?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[A,(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return f("repair_suit")},children:"Repair"})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{autoScroll:!1,width:"150px",options:M,selected:i.selectedDepartment,onSelected:function(K){i.onSelectedDepartment(K),f("department",{department:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{autoScroll:!1,width:"150px",maxHeight:"160px",options:_,selected:i.selectedSpecies,onSelected:function(K){i.onSelectedSpecies(K),f("species",{species:K})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,onClick:function(){return f("apply_paintjob")},children:"Customize"})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:I,step:1,minValue:1,maxValue:S,stepPixelSize:30,onChange:function(K){return f("radlevel",{radlevel:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:E&&v,textAlign:"center",onClick:function(){return f("uv")}})})]})})]})},d=function(i){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},a=function(i){var l=(0,t.Oc)(),f=l.act,m=l.data,v=m.model_text,E=m.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",v," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",disabled:!E,onClick:function(){return f("lock")},children:"[Unlock]"})})]})},c=function(i){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},28742:function(y,u,n){"use strict";n.r(u),n.d(u,{SuitStorageUnit:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(c){var i=(0,o.Oc)().data,l=i.panelopen,f=i.uv_active,m=i.broken,v=(0,e.jsx)(g,{});return l?v=(0,e.jsx)(x,{}):f?v=(0,e.jsx)(d,{}):m&&(v=(0,e.jsx)(a,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:v})})},g=function(c){var i=(0,o.Oc)(),l=i.act,f=i.data,m=f.locked,v=f.open,E=f.safeties,j=f.occupied,O=f.suit,M=f.helmet,_=f.mask;return(0,e.jsxs)(t.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!v&&(0,e.jsx)(t.$n,{icon:m?"unlock":"lock",onClick:function(){return l("lock")},children:m?"Unlock":"Lock"}),!m&&(0,e.jsx)(t.$n,{icon:v?"sign-out-alt":"sign-in-alt",onClick:function(){return l("door")},children:v?"Close":"Open"})]}),children:[!!(j&&E)&&(0,e.jsxs)(t.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",color:"red",onClick:function(){return l("eject_guy")},children:"Eject Entity"})]}),m&&(0,e.jsxs)(t.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(t.az,{children:"Unit Locked"}),(0,e.jsx)(t.In,{name:"lock"})]})||v&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Helmet",children:(0,e.jsx)(t.$n,{icon:M?"square":"square-o",disabled:!M,onClick:function(){return l("dispense",{item:"helmet"})},children:M||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Suit",children:(0,e.jsx)(t.$n,{icon:O?"square":"square-o",disabled:!O,onClick:function(){return l("dispense",{item:"suit"})},children:O||"Empty"})}),(0,e.jsx)(t.Ki.Item,{label:"Mask",children:(0,e.jsx)(t.$n,{icon:_?"square":"square-o",disabled:!_,onClick:function(){return l("dispense",{item:"mask"})},children:_||"Empty"})})]})||(0,e.jsx)(t.$n,{fluid:!0,icon:"recycle",disabled:j&&E,textAlign:"center",onClick:function(){return l("uv")},children:"Decontaminate"})]})},x=function(c){var i=(0,o.Oc)(),l=i.act,f=i.data,m=f.safeties,v=f.uv_super;return(0,e.jsxs)(t.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(t.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",v?"15nm":"185nm",".",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.N6,{size:2,inline:!0,value:v,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:v?"red":"green",format:function(E){return E?"15nm":"185nm"},onChange:function(E,j){return l("toggleUV")}})}),(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(t.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",m?(0,e.jsx)(t.az,{textColor:"green",children:"GREEN"}):(0,e.jsx)(t.az,{textColor:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(t.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(t.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(t.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777",borderStyle:"outset"},onClick:function(){return l("togglesafeties")}})}),(0,e.jsxs)(t.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(t.In,{name:"circle",color:m?"black":"red",mr:2}),(0,e.jsx)(t.In,{name:"circle",color:m?"green":"black"})]})]})]})]})},d=function(c){return(0,e.jsx)(t.IC,{children:"Contents are currently being decontaminated. Please wait."})},a=function(c){return(0,e.jsx)(t.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},50028:function(y,u,n){"use strict";n.r(u),n.d(u,{SupermatterMonitor:function(){return x},SupermatterMonitorContent:function(){return d}});var e=n(20462),o=n(4089),t=n(61282),r=n(7081),s=n(88569),g=n(15581),x=function(i){return(0,e.jsx)(g.p8,{width:600,height:400,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(i){var l=(0,r.Oc)().data,f=l.active;return f?(0,e.jsx)(c,{}):(0,e.jsx)(a,{})},a=function(i){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.supermatters;return(0,e.jsx)(s.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(s.$n,{icon:"sync",onClick:function(){return f("refresh")},children:"Refresh"}),children:(0,e.jsx)(s.so,{wrap:"wrap",children:v.map(function(E,j){return(0,e.jsx)(s.so.Item,{basis:"49%",grow:j%2,children:(0,e.jsx)(s.wn,{title:E.area_name+" (#"+E.uid+")",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"Integrity",children:[E.integrity," %"]}),(0,e.jsx)(s.Ki.Item,{label:"Options",children:(0,e.jsx)(s.$n,{icon:"eye",onClick:function(){return f("set",{set:E.uid})},children:"View Details"})})]})})},j)})})})},c=function(i){var l=(0,r.Oc)(),f=l.act,m=l.data,v=m.SM_area,E=m.SM_integrity,j=m.SM_power,O=m.SM_ambienttemp,M=m.SM_ambientpressure,_=m.SM_EPR,I=m.SM_gas_O2,S=m.SM_gas_CO2,T=m.SM_gas_N2,A=m.SM_gas_PH,K=m.SM_gas_N2O;return(0,e.jsx)(s.wn,{title:(0,t.Sn)(v),buttons:(0,e.jsx)(s.$n,{icon:"arrow-left",onClick:function(){return f("clear")},children:"Return to Menu"}),children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsx)(s.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(s.z2,{value:E,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(s.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(s.az,{color:j>300&&"bad"||j>150&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)+" MeV/cm\xB3"},value:j})})}),(0,e.jsx)(s.Ki.Item,{label:"Temperature",children:(0,e.jsx)(s.az,{color:O>5e3&&"bad"||O>4e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)+" K"},value:O})})}),(0,e.jsx)(s.Ki.Item,{label:"Pressure",children:(0,e.jsx)(s.az,{color:M>1e4&&"bad"||M>5e3&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)+" kPa"},value:M})})}),(0,e.jsx)(s.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(s.az,{color:_>4&&"bad"||_>1&&"average"||"good",children:(0,e.jsx)(s.zv,{format:function(W){return(0,o.Mg)(W,2)},value:_})})}),(0,e.jsx)(s.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(s.Ki,{children:[(0,e.jsxs)(s.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(s.zv,{value:I}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(s.zv,{value:S}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(s.zv,{value:T}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"PH",children:[(0,e.jsx)(s.zv,{value:A}),"%"]}),(0,e.jsxs)(s.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(s.zv,{value:K}),"%"]})]})})]})})}},57754:function(y,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenu:function(){return x}});var e=n(20462),o=n(61358),t=n(88569),r=n(10242),s=n(50656),g=n(60164),x=function(d){var a=(0,o.useState)(0),c=a[0],i=a[1],l=[];return l[0]=(0,e.jsx)(s.SupplyConsoleMenuOrder,{}),l[1]=(0,e.jsx)(g.SupplyConsoleMenuOrderList,{mode:"Approved"}),l[2]=(0,e.jsx)(g.SupplyConsoleMenuOrderList,{mode:"Requested"}),l[3]=(0,e.jsx)(g.SupplyConsoleMenuOrderList,{mode:"All"}),l[4]=(0,e.jsx)(r.SupplyConsoleMenuHistoryExport,{}),(0,e.jsxs)(t.wn,{title:"Menu",children:[(0,e.jsxs)(t.tU,{children:[(0,e.jsx)(t.tU.Tab,{icon:"box",selected:c===0,onClick:function(){return i(0)},children:"Request"}),(0,e.jsx)(t.tU.Tab,{icon:"check-circle-o",selected:c===1,onClick:function(){return i(1)},children:"Accepted"}),(0,e.jsx)(t.tU.Tab,{icon:"circle-o",selected:c===2,onClick:function(){return i(2)},children:"Requests"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:c===3,onClick:function(){return i(3)},children:"Order history"}),(0,e.jsx)(t.tU.Tab,{icon:"book",selected:c===4,onClick:function(){return i(4)},children:"Export history"})]}),l[c]||""]})}},10242:function(y,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenuHistoryExport:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.receipts,c=d.order_auth;return a.length?(0,e.jsx)(t.wn,{scrollable:!0,fill:!0,height:"290px",children:a.map(function(i,l){return(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.Ki,{children:[i.title.map(function(f){return(0,e.jsx)(t.Ki.Item,{label:f.field,buttons:c?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("export_edit",{ref:i.ref,edit:f.field,default:f.entry})},children:"Edit"}):"",children:f.entry},f.field)}),i.error?(0,e.jsx)(t.Ki.Item,{labelColor:"red",label:"Error",children:i.error}):i.contents.map(function(f,m){return(0,e.jsxs)(t.Ki.Item,{label:f.object,buttons:c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return x("export_edit_field",{ref:i.ref,index:m+1,edit:"meow",default:f.object})},children:"Edit"}),(0,e.jsx)(t.$n,{icon:"trash",color:"red",onClick:function(){return x("export_delete_field",{ref:i.ref,index:m+1})},children:"Delete"})]}):"",children:[f.quantity,"x -> ",f.value," points"]},m)})]}),c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{mt:1,icon:"plus",onClick:function(){return x("export_add_field",{ref:i.ref})},children:"Add Item To Record"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return x("export_delete",{ref:i.ref})},children:"Delete Record"})]}):""]},l)})}):(0,e.jsx)(t.wn,{children:"No receipts found."})}},50656:function(y,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenuOrder:function(){return x}});var e=n(20462),o=n(7402),t=n(15813),r=n(61358),s=n(7081),g=n(88569),x=function(d){var a=(0,s.Oc)(),c=a.act,i=a.data,l=i.categories,f=i.supply_packs,m=i.contraband,v=i.supply_points,E=(0,r.useState)(null),j=E[0],O=E[1],M=(0,t.L)([function(_){return(0,o.pb)(_,function(I){return I.group===j})},function(_){return(0,o.pb)(_,function(I){return!I.contraband||!!m})},function(_){return(0,o.Ul)(_,function(I){return I.name})},function(_){return(0,o.Ul)(_,function(I){return I.cost>v})}])(f);return(0,e.jsx)(g.wn,{children:(0,e.jsxs)(g.BJ,{children:[(0,e.jsx)(g.BJ.Item,{basis:"25%",children:(0,e.jsx)(g.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:l.map(function(_){return(0,e.jsx)(g.$n,{fluid:!0,selected:_===j,onClick:function(){return O(_)},children:_},_)})})}),(0,e.jsx)(g.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(g.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:M.map(function(_){return(0,e.jsx)(g.az,{children:(0,e.jsxs)(g.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(g.BJ.Item,{basis:"70%",children:(0,e.jsx)(g.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,color:_.cost>v?"red":void 0,onClick:function(){return c("request_crate",{ref:_.ref})},children:_.name})}),(0,e.jsx)(g.BJ.Item,{children:(0,e.jsx)(g.$n,{color:_.cost>v?"red":void 0,onClick:function(){return c("request_crate_multi",{ref:_.ref})},children:"#"})}),(0,e.jsx)(g.BJ.Item,{children:(0,e.jsx)(g.$n,{color:_.cost>v?"red":void 0,onClick:function(){return c("view_crate",{crate:_.ref})},children:"C"})}),(0,e.jsxs)(g.BJ.Item,{grow:1,children:[_.cost," points"]})]})},_.name)})})})]})})}},60164:function(y,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleMenuOrderList:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=s.mode,c=d.orders,i=d.order_auth,l=d.supply_points,f=c.filter(function(m){return m.status===a||a==="All"});return f.length?(0,e.jsxs)(t.wn,{scrollable:!0,fill:!0,height:"290px",children:[a==="Requested"&&i?(0,e.jsx)(t.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",onClick:function(){return x("clear_all_requests")},children:"Clear all requests"}):"",f.map(function(m,v){return(0,e.jsxs)(t.wn,{title:"Order "+(v+1),buttons:a==="All"&&i?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return x("delete_order",{ref:m.ref})},children:"Delete Record"}):"",children:[(0,e.jsxs)(t.Ki,{children:[m.entries.map(function(E,j){return E.entry?(0,e.jsx)(t.Ki.Item,{label:E.field,buttons:i?(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){x("edit_order_value",{ref:m.ref,edit:E.field,default:E.entry})},children:"Edit"}):"",children:E.entry},j):""}),a==="All"?(0,e.jsx)(t.Ki.Item,{label:"Status",children:m.status}):""]}),i&&a==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"check",disabled:m.cost>l,onClick:function(){return x("approve_order",{ref:m.ref})},children:"Approve"}),(0,e.jsx)(t.$n,{icon:"times",onClick:function(){return x("deny_order",{ref:m.ref})},children:"Deny"})]}):""]},v)})]}):(0,e.jsx)(t.wn,{children:"No orders found."})}},95354:function(y,u,n){"use strict";n.r(u),n.d(u,{SupplyConsoleShuttleStatus:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.supply_points,i=a.shuttle,l=a.shuttle_auth,f="",m=!1;return l&&(i.launch===1&&i.mode===0?f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return d("send_shuttle",{mode:"send_away"})},children:"Send Away"}):i.launch===2&&(i.mode===3||i.mode===1)?f=(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return d("send_shuttle",{mode:"cancel_shuttle"})},children:"Cancel Launch"}):i.launch===1&&i.mode===5&&(f=(0,e.jsx)(t.$n,{icon:"rocket",onClick:function(){return d("send_shuttle",{mode:"send_to_station"})},children:"Send Shuttle"})),i.force&&(m=!0)),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(t.zv,{value:c})})}),(0,e.jsx)(t.wn,{title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[f,m?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return d("send_shuttle",{mode:"force_shuttle"})},children:"Force Launch"}):""]}),children:i.location}),(0,e.jsx)(t.Ki.Item,{label:"Engine",children:i.engine}),i.mode===4?(0,e.jsx)(t.Ki.Item,{label:"ETA",children:i.time>1?(0,r.fU)(i.time):"LATE"}):""]})})]})}},28143:function(y,u,n){"use strict";n.r(u),n.d(u,{SupplyConsole:function(){return d}});var e=n(20462),o=n(88569),t=n(86471),r=n(15581),s=n(57754),g=n(95354),x=n(98885),d=function(a){return(0,t.modalRegisterBodyOverride)("view_crate",x.viewCrateContents),(0,e.jsx)(r.p8,{width:700,height:620,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(o.wn,{title:"Supply Records",children:[(0,e.jsx)(g.SupplyConsoleShuttleStatus,{}),(0,e.jsx)(s.SupplyConsoleMenu,{})]})]})})}},91192:function(y,u,n){"use strict";n.r(u)},98885:function(y,u,n){"use strict";n.r(u),n.d(u,{viewCrateContents:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.supply_points,c=s.args,i=c.name,l=c.cost,f=c.manifest,m=c.ref,v=c.random;return(0,e.jsx)(t.wn,{width:"400px",m:"-1rem",pb:"1rem",title:i,buttons:(0,e.jsx)(t.$n,{icon:"shopping-cart",disabled:l>a,onClick:function(){return x("request_crate",{ref:m})},children:"Buy - "+l+" points"}),children:(0,e.jsx)(t.wn,{title:"Contains"+(v?" any "+v+" of:":""),scrollable:!0,height:"200px",children:f.map(function(E){return(0,e.jsx)(t.az,{children:E},E)})})})}},76786:function(y,u,n){"use strict";n.r(u),n.d(u,{TEGenerator:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(41242),g=n(15581),x=function(a){var c=(0,t.Oc)().data,i=c.totalOutput,l=c.maxTotalOutput,f=c.thermalOutput,m=c.primary,v=c.secondary;return(0,e.jsx)(g.p8,{width:550,height:310,children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:i,maxValue:l,children:(0,s.d5)(i)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,s.d5)(f)})]})}),m&&v?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(d,{name:"Primary Circulator",values:m})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(d,{name:"Secondary Circulator",values:v})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},d=function(a){var c=a.name,i=a.values,l=i.dir,f=i.output,m=i.flowCapacity,v=i.inletPressure,E=i.inletTemperature,j=i.outletPressure,O=i.outletTemperature;return(0,e.jsx)(r.wn,{title:c+" ("+l+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,s.d5)(f)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,o.Mg)(m,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,s.QL)(v*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,o.Mg)(E,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,s.QL)(j*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,o.Mg)(O,2)," K"]})]})})}},27136:function(y,u,n){"use strict";n.r(u),n.d(u,{Tank:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.connected,i=a.showToggle,l=i===void 0?!0:i,f=a.maskConnected,m=a.tankPressure,v=a.releasePressure,E=a.defaultReleasePressure,j=a.minReleasePressure,O=a.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{title:"Status",buttons:!!l&&(0,e.jsx)(t.$n,{icon:c?"air-freshener":"lock-open",selected:c,disabled:!f,onClick:function(){return d("toggle")},children:"Mask Release Valve"}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Mask Connected",children:f?"Yes":"No"})})}),(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Pressure",children:(0,e.jsx)(t.z2,{value:m/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:a.tankPressure+" kPa"})}),(0,e.jsxs)(t.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(t.$n,{icon:"fast-backward",disabled:v===j,onClick:function(){return d("pressure",{pressure:"min"})}}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:v,width:"65px",unit:"kPa",minValue:j,maxValue:O,onChange:function(M){return d("pressure",{pressure:M})}}),(0,e.jsx)(t.$n,{icon:"fast-forward",disabled:v===O,onClick:function(){return d("pressure",{pressure:"max"})}}),(0,e.jsx)(t.$n,{icon:"undo",disabled:v===E,onClick:function(){return d("pressure",{pressure:"reset"})}})]})]})})]})})}},10351:function(y,u,n){"use strict";n.r(u),n.d(u,{TankDispenser:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.plasma,i=a.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(t.$n,{icon:c?"square":"square-o",disabled:!c,onClick:function(){return d("plasma")},children:"Dispense"}),children:c}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(t.$n,{icon:i?"square":"square-o",disabled:!i,onClick:function(){return d("oxygen")},children:"Dispense"}),children:i})]})})})})}},66303:function(y,u,n){"use strict";n.r(u),n.d(u,{TelecommsLogBrowser:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g=function(c){var i=(0,t.Oc)(),l=i.act,f=i.data,m=f.universal_translate,v=f.network,E=f.temp,j=f.servers,O=f.selectedServer;return(0,e.jsx)(s.p8,{width:575,height:450,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[E&&E.color==="bad"&&(0,e.jsxs)(r.IC,{danger:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:E.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return l("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||E&&E.color!=="bad"&&(0,e.jsxs)(r.IC,{warning:!0,children:[(0,e.jsx)(r.az,{inline:!0,verticalAlign:"middle",children:E.text}),(0,e.jsx)(r.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return l("cleartemp")}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]})||"",(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return l("scan")},children:"Refresh"}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",disabled:j.length===0,onClick:function(){return l("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("network")},children:v})})})}),O?(0,e.jsx)(d,{network:v,server:O,universal_translate:m}):(0,e.jsx)(x,{network:v,servers:j})]})})},x=function(c){var i=(0,t.Oc)().act,l=c.network,f=c.servers;return!f||!f.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return i("scan")},children:"Scan"})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:f.map(function(m){return(0,e.jsx)(r.Ki.Item,{label:m.name+" ("+m.id+")",children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return i("view",{id:m.id})},children:"View"})},m.id)})})})},d=function(c){var i=(0,t.Oc)().act,l=c.network,f=c.server,m=c.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+f.id+")",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return i("mainmenu")},children:"Return"}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:f.totalTraffic>=1024?(0,o.Mg)(f.totalTraffic/1024)+" Terrabytes":f.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!f.logs||!f.logs.length?"No Logs Detected.":f.logs.map(function(v){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:v.id%2,children:(0,e.jsx)(r.wn,{title:m||v.parameters.uspeech||v.parameters.intelligible||v.input_type==="Execution Error"?v.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return i("delete",{id:v.id})}}),children:v.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:v.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return i("delete",{id:v.id})}})})]}):m||v.parameters.uspeech||v.parameters.intelligible?(0,e.jsx)(a,{log:v}):(0,e.jsx)(a,{error:!0})})},v.id)})})})]})},a=function(c){var i=c.log,l=c.error,f=i&&i.parameters||{none:"none"},m=f.timecode,v=f.name,E=f.race,j=f.job,O=f.message;return l?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:m}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:E}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:m}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[v," (Job: ",j,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:E}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:O})]})}},3684:function(y,u,n){"use strict";n.r(u),n.d(u,{TelecommsMachineBrowser:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.network,l=c.temp,f=c.machinelist,m=c.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[l&&l.color==="bad"&&(0,e.jsxs)(t.IC,{danger:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:l.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return a("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||l&&l.color!=="bad"&&(0,e.jsxs)(t.IC,{warning:!0,children:[(0,e.jsx)(t.az,{inline:!0,verticalAlign:"middle",children:l.text}),(0,e.jsx)(t.$n,{icon:"times-circle",style:{float:"right"},onClick:function(){return a("cleartemp")}}),(0,e.jsx)(t.az,{style:{clear:"both"}})]})||"",(0,e.jsx)(t.wn,{title:"Network Control",children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return a("scan")},children:"Probe Network"}),(0,e.jsx)(t.$n,{color:"bad",icon:"exclamation-triangle",disabled:f.length===0,onClick:function(){return a("release")},children:"Flush Buffer"})]}),children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return a("network")},children:i})})})}),f&&f.length?(0,e.jsx)(g,{title:m?m.name+" ("+m.id+")":"Detected Network Entities",list:m?m.links:f,showBack:m}):(0,e.jsx)(t.wn,{title:"No Devices Found",children:(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return a("scan")},children:"Probe Network"})})]})})},g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=x.list,l=x.title,f=x.showBack;return(0,e.jsxs)(t.wn,{title:l,buttons:f&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return a("mainmenu")},children:"Back to Main Menu"}),children:[(0,e.jsx)(t.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(t.Ki,{children:i.length?i.map(function(m){return(0,e.jsx)(t.Ki.Item,{label:m.name+" ("+m.id+")",children:(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return a("view",{id:m.id})},children:"View"})},m.id)}):(0,e.jsx)(t.Ki.Item,{color:"bad",children:"No links detected."})})]})}},30053:function(y,u,n){"use strict";n.r(u),n.d(u,{TelecommsMultitoolMenu:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=n(3751),g=function(a){var c=(0,o.Oc)().data,i=c.options;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(s.TemporaryNotice,{}),(0,e.jsx)(x,{}),(0,e.jsx)(d,{options:i})]})})},x=function(a){var c=(0,o.Oc)(),i=c.act,l=c.data,f=l.on,m=l.id,v=l.network,E=l.autolinkers,j=l.shadowlink,O=l.linked,M=l.filter,_=l.multitool,I=l.multitool_buffer;return(0,e.jsxs)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:f,onClick:function(){return i("toggle")},children:f?"On":"Off"}),children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Identification String",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return i("id")},children:m})}),(0,e.jsx)(t.Ki.Item,{label:"Network",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return i("network")},children:v})}),(0,e.jsx)(t.Ki.Item,{label:"Prefabrication",children:E?"TRUE":"FALSE"}),j?(0,e.jsx)(t.Ki.Item,{label:"Shadow Link",children:"Active."}):"",_?(0,e.jsxs)(t.Ki.Item,{label:"Multitool Buffer",children:[I?(0,e.jsxs)(e.Fragment,{children:[I.name," (",I.id,")"]}):"",(0,e.jsx)(t.$n,{color:I?"green":void 0,icon:I?"link":"plus",onClick:I?function(){return i("link")}:function(){return i("buffer")},children:I?"Link ("+I.id+")":"Add Machine"}),I?(0,e.jsx)(t.$n,{color:"red",icon:"trash",onClick:function(){return i("flush")},children:"Flush"}):""]}):""]}),(0,e.jsx)(t.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(t.Ki,{children:O.map(function(S){return(0,e.jsx)(t.Ki.Item,{label:S.ref+" "+S.name+" ("+S.id+")",buttons:(0,e.jsx)(t.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return i("unlink",{unlink:S.index})}})},S.ref)})})}),(0,e.jsxs)(t.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return i("freq")},children:"Add Frequency"}),children:[M.map(function(S,T){return(0,e.jsx)(t.$n.Confirm,{confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return i("delete",{delete:S.freq})},children:S.name+" GHz"},T)}),!M||M.length===0?(0,e.jsx)(t.az,{color:"label",children:"No filters."}):""]})]})},d=function(a){var c=(0,o.Oc)().act,i=a.options,l=i.use_listening_level,f=i.use_broadcasting,m=i.use_receiving,v=i.listening_level,E=i.broadcasting,j=i.receiving,O=i.use_change_freq,M=i.change_freq,_=i.use_broadcast_range,I=i.use_receive_range,S=i.range,T=i.minRange,A=i.maxRange;return!l&&!f&&!m&&!O&&!_&&!I?(0,e.jsx)(t.wn,{title:"No Options Found"}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsxs)(t.Ki,{children:[l?(0,e.jsx)(t.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(t.$n,{icon:v?"lock-closed":"lock-open",onClick:function(){return c("change_listening")},children:v?"Yes":"No"})}):"",f?(0,e.jsx)(t.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:E,onClick:function(){return c("broadcast")},children:E?"Yes":"No"})}):"",m?(0,e.jsx)(t.Ki.Item,{label:"Receving",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:j,onClick:function(){return c("receive")},children:j?"Yes":"No"})}):"",O?(0,e.jsx)(t.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(t.$n,{icon:"wave-square",selected:!!M,onClick:function(){return c("change_freq")},children:M?"Yes ("+M+")":"No"})}):"",_||I?(0,e.jsx)(t.Ki.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(t.Q7,{step:1,value:S,minValue:T,maxValue:A,unit:"gigameters",stepPixelSize:4,format:function(K){return(K+1).toString()},onDrag:function(K){return c("range",{range:K})}})}):""]})})}},50624:function(y,u,n){"use strict";n.r(u),n.d(u,{Teleporter:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.locked_name,i=a.station_connected,l=a.hub_connected,f=a.calibrated,m=a.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Target",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"bullseye",onClick:function(){return d("select_target")},children:c})}),(0,e.jsx)(t.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:f,color:f?"good":"bad",onClick:function(){return d("test_fire")},children:f?"Accurate":"Test Fire"})}),(0,e.jsx)(t.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:m,color:m?"good":"bad",onClick:function(){return d("toggle_on")},children:m?"Online":"OFFLINE"})}),(0,e.jsx)(t.Ki.Item,{label:"Station",children:i?"Connected":"Not Connected"}),(0,e.jsx)(t.Ki.Item,{label:"Hub",children:l?"Connected":"Not Connected"})]})})})})}},92546:function(y,u,n){"use strict";n.r(u),n.d(u,{TelesciConsole:function(){return g},TelesciConsoleContent:function(){return d}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),s=n(15581),g=function(a){var c=(0,t.Oc)().data,i=c.noTelepad;return(0,e.jsx)(s.p8,{width:400,height:450,children:(0,e.jsx)(s.p8.Content,{scrollable:!0,children:i&&(0,e.jsx)(x,{})||(0,e.jsx)(d,{})})})},x=function(a){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},d=function(a){var c=(0,t.Oc)(),i=c.act,l=c.data,f=l.insertedGps,m=l.rotation,v=l.currentZ,E=l.cooldown,j=l.crystalCount,O=l.maxCrystals,M=l.maxPossibleDistance,_=l.maxAllowedDistance,I=l.distance,S=l.tempMsg,T=l.sectorOptions,A=l.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!f,onClick:function(){return i("ejectGPS")},children:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:E&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait",(0,e.jsx)(r.zv,{value:E})," seconds."]})||(0,e.jsx)(r.az,{children:S})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:m,format:function(K){return K+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(K){return i("setrotation",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:I,format:function(K){return K+"/"+_+" m"},minValue:0,maxValue:_,step:1,stepPixelSize:4,onDrag:function(K){return i("setdistance",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:T&&(0,o.Ul)(T,function(K){return K}).map(function(K){return(0,e.jsx)(r.$n,{icon:"check-circle",selected:v===Number(K),onClick:function(){return i("setz",{setz:K})},children:K},K)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return i("send")},children:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return i("receive")},children:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return i("recal")},children:"Recalibrate"})]})]}),A&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[A.src_x,", ",A.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[A.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[A.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",j," / ",O]})]})}},95273:function(y,u,n){"use strict";n.r(u),n.d(u,{TextInputModal:function(){return i},removeAllSkiplines:function(){return c},sanitizeMultiline:function(){return a}});var e=n(20462),o=n(87239),t=n(61358),r=n(7081),s=n(88569),g=n(15581),x=n(5335),d=n(44149),a=function(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")},c=function(f){return f.replace(/[\r\n]+/," ")},i=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.large_buttons,O=E.max_length,M=E.message,_=M===void 0?"":M,I=E.multiline,S=E.placeholder,T=S===void 0?"":S,A=E.timeout,K=E.title,W=(0,t.useState)(T||""),$=W[0],k=W[1],z=function(Y){if(Y!==$){var ee=I?a(Y):c(Y);k(ee)}},H=I||$.length>=30,G=135+(_.length>30?Math.ceil(_.length/4):0)+(H?75:0)+(_.length&&j?5:0);return(0,e.jsxs)(g.p8,{title:K,width:325,height:G,children:[A&&(0,e.jsx)(d.Loader,{value:A}),(0,e.jsx)(g.p8.Content,{onKeyDown:function(Y){Y.key===o._.Enter&&(!H||!Y.shiftKey)&&v("submit",{entry:$}),(0,o.K)(Y.key)&&v("cancel")},children:(0,e.jsx)(s.wn,{fill:!0,children:(0,e.jsxs)(s.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(s.az,{color:"label",children:_})}),(0,e.jsx)(s.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{input:$,onType:z},K)}),(0,e.jsx)(s.BJ.Item,{children:(0,e.jsx)(x.InputButtons,{input:$,message:$.length+"/"+O})})]})})})]})},l=function(f){var m=(0,r.Oc)(),v=m.act,E=m.data,j=E.max_length,O=E.multiline,M=f.input,_=f.onType,I=O||M.length>=30;return(0,e.jsx)(s.fs,{autoFocus:!0,autoSelect:!0,height:O||M.length>=30?"100%":"1.8rem",maxLength:j,onEscape:function(){return v("cancel")},onEnter:function(S){I&&S.shiftKey||(S.preventDefault(),v("submit",{entry:M}))},onChange:function(S,T){return _(T)},onInput:function(S,T){return _(T)},placeholder:"Type something...",value:M})}},34113:function(y,u,n){"use strict";n.r(u),n.d(u,{TimeClock:function(){return x}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),s=n(15581),g=n(10921),x=function(d){var a=(0,t.Oc)(),c=a.act,i=a.data,l=i.department_hours,f=i.user_name,m=i.card,v=i.assignment,E=i.job_datum,j=i.allow_change_job,O=i.job_choices;return(0,e.jsx)(s.p8,{width:500,height:520,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{title:"Time Off Balance for "+f,children:(0,e.jsx)(r.Ki,{children:!!l&&Object.keys(l).map(function(M){return(0,e.jsxs)(r.Ki.Item,{label:M,color:l[M]>6?"good":l[M]>1?"average":"bad",children:[(0,o.Mg)(l[M],1)," ",l[M]===1?"hour":"hours"]},M)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return c("id")},children:m||"Insert ID"})}),!!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:E.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(g.RankIcon,{color:"white",rank:E.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:E.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:E.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:E.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:E.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",E.pto_department]})||E.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",E.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(j&&E&&E.timeoff_factor!==0&&v!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:E.timeoff_factor>0&&(!!l&&l[E.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return c("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||!!O&&Object.keys(O).length&&Object.keys(O).map(function(M){var _=O[M];return _.map(function(I){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return c("switch-to-onduty-rank",{"switch-to-onduty-rank":M,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6972:function(y,u,n){"use strict";n.r(u),n.d(u,{TraitDescription:function(){return x},TraitSelection:function(){return g},TraitTutorial:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(t.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(g,{})})})})},g=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=i.names,f=i.selection;return(0,e.jsxs)(t.BJ,{children:[(0,e.jsx)(t.BJ.Item,{shrink:!0,children:(0,e.jsx)(t.wn,{title:"Trait Selection",children:(0,e.jsx)(t.tU,{vertical:!0,children:l.map(function(m){return(0,e.jsx)(t.tU.Tab,{selected:m===f,onClick:function(){return c("select_trait",{name:m})},children:(0,e.jsx)(t.az,{inline:!0,children:m})},m)})})})}),(0,e.jsx)(t.BJ.Item,{grow:8,children:f&&(0,e.jsx)(t.wn,{title:f,children:(0,e.jsx)(x,{name:f})})})]})},x=function(d){var a=(0,o.Oc)(),c=a.act,i=a.data,l=d.name,f=i.descriptions,m=i.categories,v=i.tutorials;return(0,e.jsxs)(t.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",l,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",m[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",f[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v[l]}})]})}},67159:function(y,u,n){"use strict";n.r(u),n.d(u,{TransferValve:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.tank_one,i=a.tank_two,l=a.attached_device,f=a.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(t.$n,{icon:f?"unlock":"lock",disabled:!c||!i,onClick:function(){return d("toggle")},children:f?"Open":"Closed"})})})}),(0,e.jsx)(t.wn,{title:"Assembly",buttons:(0,e.jsx)(t.$n,{textAlign:"center",width:"150px",icon:"cog",disabled:!l,onClick:function(){return d("device")},children:"Configure Assembly"}),children:(0,e.jsx)(t.Ki,{children:l?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return d("remove_device")},children:l})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(t.wn,{title:"Attachment One",children:(0,e.jsx)(t.Ki,{children:c?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return d("tankone")},children:c})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(t.wn,{title:"Attachment Two",children:(0,e.jsx)(t.Ki,{children:i?(0,e.jsx)(t.Ki.Item,{label:"Attachment",children:(0,e.jsx)(t.$n,{icon:"eject",disabled:!i,onClick:function(){return d("tanktwo")},children:i})}):(0,e.jsx)(t.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},76992:function(y,u,n){"use strict";n.r(u),n.d(u,{TurbineControl:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),s=n(15581),g=function(x){var d=(0,o.Oc)(),a=d.act,c=d.data,i=c.compressor_broke,l=c.turbine_broke,f=c.broken,m=c.door_status,v=c.online,E=c.power,j=c.rpm,O=c.temp;return(0,e.jsx)(s.p8,{width:520,height:440,children:(0,e.jsxs)(s.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Turbine Controller",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:f&&(0,e.jsxs)(t.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return a("reconnect")},children:"Reconnect"})]})||(0,e.jsx)(t.az,{color:v?"good":"bad",children:v&&!i&&!l?"Online":"Offline"})}),(0,e.jsx)(t.Ki.Item,{label:"Compressor",children:i&&(0,e.jsx)(t.az,{color:"bad",children:"Compressor is inoperable."})||l&&(0,e.jsx)(t.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n.Checkbox,{checked:v,onClick:function(){return a(v?"power-off":"power-on")},children:"Compressor Power"})})}),(0,e.jsx)(t.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(t.$n.Checkbox,{checked:m,onClick:function(){return a("doors")},children:m?"Closed":"Open"})})]})}),(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Turbine Speed",children:[f?"--":(0,e.jsx)(t.zv,{value:j})," RPM"]}),(0,e.jsxs)(t.Ki.Item,{label:"Internal Temperature",children:[f?"--":(0,e.jsx)(t.zv,{value:O})," K"]}),(0,e.jsx)(t.Ki.Item,{label:"Generated Power",children:f?"--":(0,e.jsx)(t.zv,{format:function(M){return(0,r.d5)(M)},value:Number(E)})})]})})]})})}},13101:function(y,u,n){"use strict";n.r(u),n.d(u,{Turbolift:function(){return s}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),s=function(g){var x=(0,o.Oc)(),d=x.act,a=x.data,c=a.floors,i=a.doors_open,l=a.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:l?285:260,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Floor Selection",className:l?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:i?"door-open":"door-closed",selected:i&&!l,color:l?"red":null,onClick:function(){return d("toggle_doors")},children:i?l?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:"bad",onClick:function(){return d("emergency_stop")},children:"Emergency Stop"})]}),children:[!l||(0,e.jsx)(t.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(t.so,{wrap:"wrap",children:c.map(function(f){return(0,e.jsx)(t.so.Item,{basis:"100%",children:(0,e.jsxs)(t.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(t.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:f.label||"Floor #"+f.id}),(0,e.jsx)(t.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(t.$n,{icon:"circle",color:f.current?"red":f.target?"green":f.queued?"yellow":null,onClick:function(){return d("move_to_floor",{ref:f.ref})}})}),(0,e.jsx)(t.so.Item,{basis:"50%",grow:1,children:f.name})]})},f.id)})})]})})})}},28665:function(y,u,n){"use strict";n.r(u),n.d(u,{ExploitableInformation:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var g=(0,o.Oc)(),x=g.act,d=g.data,a=d.exploit,c=d.locked_records;return(0,e.jsx)(t.wn,{title:"Exploitable Information",buttons:a&&(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return x("view_exploits",{id:0})},children:"Back"}),children:a&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:a.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:a.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:a.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:a.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:a.rank}),(0,e.jsx)(t.Ki.Item,{label:"Home System",children:a.home_system}),(0,e.jsx)(t.Ki.Item,{label:"Birthplace",children:a.birthplace}),(0,e.jsx)(t.Ki.Item,{label:"Citizenship",children:a.citizenship}),(0,e.jsx)(t.Ki.Item,{label:"Faction",children:a.faction}),(0,e.jsx)(t.Ki.Item,{label:"Religion",children:a.religion}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:a.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Other Affiliations",children:a.antagfaction}),(0,e.jsx)(t.Ki.Divider,{}),(0,e.jsx)(t.Ki.Item,{children:"Acquired Information"}),(0,e.jsx)(t.Ki.Item,{label:"Notes",children:a.nanoui_exploit_record.split("
").map(function(i){return(0,e.jsx)(t.az,{children:i},i)})})]})})||c&&c.map(function(i){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return x("view_exploits",{id:i.id})},children:i.name},i.id)})})}},26142:function(y,u,n){"use strict";n.r(u),n.d(u,{GenericUplink:function(){return a}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),s=n(88569),g=n(41242),x=n(32011),d=n(25513),a=function(c){var i,l,f=(0,r.Oc)(),m=f.act,v=f.data,E=c.currencyAmount,j=E===void 0?0:E,O=c.currencySymbol,M=O===void 0?"\u20AE":O,_=v.compactMode,I=v.lockable,S=v.categories,T=S===void 0?[]:S,A=(0,t.useState)(""),K=A[0],W=A[1],$=(0,t.useState)((i=T[0])==null?void 0:i.name),k=$[0],z=$[1],H=(0,o.XZ)(K,function(Y){return Y.name+Y.desc}),G=K.length>0&&T.flatMap(function(Y){return Y.items||[]}).filter(H).filter(function(Y,ee){return ee0?"good":"bad",children:[(0,g.up)(j)," ",M]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(s.pd,{autoFocus:!0,value:K,onInput:function(Y,ee){return W(ee)},mx:1}),(0,e.jsx)(s.$n,{icon:_?"list":"info",onClick:function(){return m("compact_toggle")},children:_?"Compact":"Detailed"}),!!I&&(0,e.jsx)(s.$n,{icon:"lock",onClick:function(){return m("lock")},children:"Lock"})]}),children:(0,e.jsxs)(s.so,{children:[K.length===0&&(0,e.jsx)(s.so.Item,{children:(0,e.jsx)(s.tU,{vertical:!0,children:T.map(function(Y){var ee;return(0,e.jsxs)(s.tU.Tab,{selected:Y.name===k,onClick:function(){return z(Y.name)},children:[Y.name," (",((ee=Y.items)==null?void 0:ee.length)||0,")"]},Y.name)})})}),(0,e.jsxs)(s.so.Item,{grow:1,basis:0,children:[G.length===0&&(0,e.jsx)(s.IC,{children:K.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(d.ItemList,{compactMode:K.length>0||_,currencyAmount:j,currencySymbol:M,items:G})]})]})})}},25513:function(y,u,n){"use strict";n.r(u),n.d(u,{ItemList:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),s=n(41242),g=function(x){var d=(0,t.Oc)().act,a=x.compactMode,c=x.currencyAmount,i=x.currencySymbol,l=x.items;return a?(0,e.jsx)(r.XI,{children:l.map(function(f){return(0,e.jsxs)(r.XI.Row,{className:"candystripe",children:[(0,e.jsx)(r.XI.Cell,{bold:!0,children:(0,o.jT)(f.name)}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{fluid:!0,disabled:c",J+='',J+='
',J+="Addons:
"+(0,o.GetAddons)(f)+"
",J+="
== Descriptions ==",J+="Vore Verb:
"+c+"
",J+="Release Verb:
"+i+"
",J+='Description:
"'+x+'"
',J+='Absorbed Description:
"'+a+'"
',J+="
",J+="
== Messages ==",J+="Show All Interactive Messages: "+(d?'
Yes':'No')+"
",J+='',J+='
',J+='
',J+='
Escape Attempt Messages (Owner)',J+='
Escape Attempt Messages (Prey)',J+='
Escape Message (Owner)',J+='
Escape Message (Prey)',J+='
Escape Message (Outside)',J+='
Escape Item Messages (Owner)',J+='
Escape Item Messages (Prey)',J+='
Escape Item Messages (Outside)',J+='
Escape Fail Messages (Owner)',J+='
Escape Fail Messages (Prey)',J+='
Escape Attempt Absorbed Messages (Owner)',J+='
Escape Attempt Absorbed Messages (Prey)',J+='
Escape Absorbed Messages (Owner)',J+='
Escape Absorbed Messages (Prey)',J+='
Escape Absorbed Messages (Outside)',J+='
Escape Fail Absorbed Messages (Owner)',J+='
Escape Fail Absorbed Messages (Prey)',J+='
Primary Transfer Messages (Owner)',J+='
Primary Transfer Messages (Prey)',J+='
Secondary Transfer Messages (Owner)',J+='
Secondary Transfer Messages (Prey)',J+='
Digest Chance Messages (Owner)',J+='
Digest Chance Messages (Prey)',J+='
Absorb Chance Messages (Owner)',J+='
Absorb Chance Messages (Prey)',J+='
Struggle Messages (Outside)',J+='
Struggle Messages (Inside)',J+='
Absorbed Struggle Messages (Outside)',J+='
Absorbed Struggle Messages (Inside)',J+='
Digest Messages (Owner)',J+='
Digest Messages (Prey)',J+='
Absorb Messages (Owner)',J+='
Absorb Messages (Prey)',J+='
Unabsorb Messages (Owner)',J+='
Unabsorb Messages (Prey)',J+='
Examine Messages',J+='
Examine Messages (Absorbed)',J+="
",J+='
',J+='
',J+='
',Z==null||Z.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',V==null||V.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',q==null||q.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',ce==null||ce.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',se==null||se.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',fe==null||fe.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',ge==null||ge.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Ie==null||Ie.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',je==null||je.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Ee==null||Ee.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Ne==null||Ne.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',on==null||on.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',He==null||He.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Pe==null||Pe.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',qe==null||qe.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',En==null||En.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',jn==null||jn.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',hn==null||hn.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Cn==null||Cn.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',fn==null||fn.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',tn==null||tn.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',be==null||be.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Le==null||Le.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Oe==null||Oe.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',ke==null||ke.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',ee==null||ee.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',le==null||le.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',ne==null||ne.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Q==null||Q.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Qe==null||Qe.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',we==null||we.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Xe==null||Xe.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Kn==null||Kn.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',Un==null||Un.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',In==null||In.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',xn==null||xn.forEach(function(Te){J+=Te+"
"}),J+="
",J+='
',rn==null||rn.forEach(function(Te){J+=Te+"
"}),J+="
",J+="
",J+="
",J+="
",J+="= Idle Messages =
",J+="Idle Messages (Hold):
",Fe==null||Fe.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Hold Absorbed):
",mn==null||mn.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Digest):
",$e==null||$e.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Absorb):
",_n==null||_n.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Unabsorb):
",Qt==null||Qt.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Drain):
",rt==null||rt.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Heal):
",Dt==null||Dt.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Size Steal):
",pt==null||pt.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Shrink):
",dt==null||dt.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Grow):
",Nt==null||Nt.forEach(function(Te){J+=Te+"
"}),J+="
",J+="Idle Messages (Encase In Egg):
",Jn==null||Jn.forEach(function(Te){J+=Te+"
"}),J+="
",J+="
",J+="
",J+='',J+='
',J+='",J+='
',J+='
',J+='
',J+='- Can Taste: '+(_?'Yes':'No')+"
",J+='- Contaminates: '+(I?'Yes':'No')+"
",J+='- Contamination Flavor: '+S+"
",J+='- Contamination Color: '+T+"
",J+='- Nutritional Gain: '+A+"%
",J+='- Required Examine Size: '+K*100+"%
",J+='- Display Absorbed Examines: '+(W?'True':'False')+"
",J+='- Save Digest Mode: '+($?'True':'False')+"
",J+='- Idle Emotes: '+(k?'Active':'Inactive')+"
",J+='- Idle Emote Delay: '+z+" seconds
",J+='- Shrink/Grow Size: '+H*100+"%
",J+='- Egg Type: '+G+"
",J+='- Selective Mode Preference: '+Y+"
",J+="
",J+="
",J+='
',J+='",J+='
',J+='
',J+='
',J+='- Fleshy Belly: '+(ur?'Yes':'No')+"
",J+='- Internal Loop: '+(ta?'Yes':'No')+"
",J+='- Use Fancy Sounds: '+(ra?'Yes':'No')+"
",J+='- Vore Sound: '+oa+"
",J+='- Release Sound: '+vo+"
",J+="
",J+="
",J+='
',J+='",J+='
",J+='
',J+="
Vore FX",J+='
',J+='- Disable Prey HUD: '+(xo?'Yes':'No')+"
",J+="
",J+="
",J+='
',J+='",J+='
',J+='
',J+="
Belly Interactions ("+(go?'Enabled':'Disabled')+")",J+='
',J+='- Escape Chance: '+$a+"%
",J+='- Escape Chance: '+Wt+"%
",J+='- Escape Time: '+po/10+"s
",J+='- Transfer Chance: '+Pr+"%
",J+='- Transfer Location: '+Et+"
",J+='- Secondary Transfer Chance: '+jt+"%
",J+='- Secondary Transfer Location: '+dr+"
",J+='- Absorb Chance: '+Ir+"%
",J+='- Digest Chance: '+Eo+"%
",J+="
",J+="
",J+="
",J}},65881:function(y,u,n){"use strict";n.r(u),n.d(u,{GetAddons:function(){return o}});var e=n(26222),o=function(t){var r=[];return t==null||t.forEach(function(s){r.push(''+s+"")}),r.length===0&&r.push("No Addons Set"),r}},44887:function(y,u,n){"use strict";n.r(u),n.d(u,{downloadPrefs:function(){return r}});var e=n(7081),o=n(18228),t=n(95679),r=function(s){var g=(0,e.Oc)(),x=g.act,d=g.data,a=d.db_version,c=d.db_repo,i=d.mob_name,l=d.bellies,f=(0,t.getCurrentTimestamp)(),m=i+f+s,v;if(s===".html"){var E="";v=new Blob([''+l.length+" Exported Bellies (DB_VER: "+c+"-"+a+')'+E+'Bellies of '+i+'
Generated on: '+f+'
'],{type:"text/html;charset=utf8"}),l.forEach(function(j,O){v=new Blob([v,(0,o.generateBellyString)(j,O)],{type:"text/html;charset=utf8"})}),v=new Blob([v,"
",'