From 5bfec033ee605fab688a6e19d44f0b6ea22e3701 Mon Sep 17 00:00:00 2001 From: Guti Date: Sun, 29 Sep 2024 12:05:36 +0200 Subject: [PATCH] No bundles? --- tgui/public/tgui.bundle.js | 407 ------------------------------------- 1 file changed, 407 deletions(-) delete mode 100644 tgui/public/tgui.bundle.js diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js deleted file mode 100644 index d54beb54633..00000000000 --- a/tgui/public/tgui.bundle.js +++ /dev/null @@ -1,407 +0,0 @@ -(function(){(function(){var Uu={75614:function(y,u,n){"use strict";/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function e(m,p){return p!=null&&typeof Symbol!="undefined"&&p[Symbol.hasInstance]?!!p[Symbol.hasInstance](m):m instanceof p}function o(m){"@swc/helpers - typeof";return m&&typeof Symbol!="undefined"&&m.constructor===Symbol?"symbol":typeof m}var t=n(61358),r=n(20686);function i(m){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+m,O=1;Op}return!1}function C(m,p,O,D,R,W,G){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=D,this.attributeNamespace=R,this.mustUseProperty=O,this.propertyName=m,this.type=p,this.sanitizeURL=W,this.removeEmptyString=G}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){M[m]=new C(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var p=m[0];M[p]=new C(p,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){M[m]=new C(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){M[m]=new C(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){M[m]=new C(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){M[m]=new C(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){M[m]=new C(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){M[m]=new C(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){M[m]=new C(m,5,!1,m.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function _(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var p=m.replace(P,_);M[p]=new C(p,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){M[m]=new C(m,1,!1,m.toLowerCase(),null,!1,!1)}),M.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){M[m]=new C(m,1,!1,m.toLowerCase(),null,!0,!0)});function S(m,p,O,D){var R=M.hasOwnProperty(p)?M[p]:null;(R!==null?R.type!==0:D||!(2re||R[G]!==W[re]){var ue="\n"+R[G].replace(" at new "," at ");return m.displayName&&ue.includes("")&&(ue=ue.replace("",m.displayName)),ue}while(1<=G&&0<=re);break}}}finally{fe=!1,Error.prepareStackTrace=O}return(m=m?m.displayName||m.name:"")?ie(m):""}function be(m){switch(m.tag){case 5:return ie(m.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("SuspenseList");case 0:case 2:case 15:return m=he(m.type,!1),m;case 11:return m=he(m.type.render,!1),m;case 1:return m=he(m.type,!0),m;default:return""}}function je(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case N:return"Fragment";case L:return"Portal";case z:return"Profiler";case $:return"StrictMode";case H:return"Suspense";case Y:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case V:return(m.displayName||"Context")+".Consumer";case w:return(m._context.displayName||"Context")+".Provider";case k:var p=m.render;return m=m.displayName,m||(m=p.displayName||p.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case q:return p=m.displayName||null,p!==null?p:je(m.type)||"Memo";case Z:p=m._payload,m=m._init;try{return je(m(p))}catch(O){}}return null}function Ce(m){var p=m.type;switch(m.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=p.render,m=m.displayName||m.name||"",p.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return je(p);case 8:return p===$?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function Ne(m){switch(typeof m=="undefined"?"undefined":o(m)){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function sn(m){var p=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function en(m){var p=sn(m)?"checked":"value",O=Object.getOwnPropertyDescriptor(m.constructor.prototype,p),D=""+m[p];if(!m.hasOwnProperty(p)&&typeof O!="undefined"&&typeof O.get=="function"&&typeof O.set=="function"){var R=O.get,W=O.set;return Object.defineProperty(m,p,{configurable:!0,get:function(){return R.call(this)},set:function(re){D=""+re,W.call(this,re)}}),Object.defineProperty(m,p,{enumerable:O.enumerable}),{getValue:function(){return D},setValue:function(re){D=""+re},stopTracking:function(){m._valueTracker=null,delete m[p]}}}}function De(m){m._valueTracker||(m._valueTracker=en(m))}function Qe(m){if(!m)return!1;var p=m._valueTracker;if(!p)return!0;var O=p.getValue(),D="";return m&&(D=sn(m)?m.checked?"true":"false":m.value),m=D,m!==O?(p.setValue(m),!0):!1}function Mn(m){if(m=m||(typeof document!="undefined"?document:void 0),typeof m=="undefined")return null;try{return m.activeElement||m.body}catch(p){return m.body}}function Pn(m,p){var O=p.checked;return ee({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:O!=null?O:m._wrapperState.initialChecked})}function gn(m,p){var O=p.defaultValue==null?"":p.defaultValue,D=p.checked!=null?p.checked:p.defaultChecked;O=Ne(p.value!=null?p.value:O),m._wrapperState={initialChecked:D,initialValue:O,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function An(m,p){p=p.checked,p!=null&&S(m,"checked",p,!1)}function xn(m,p){An(m,p);var O=Ne(p.value),D=p.type;if(O!=null)D==="number"?(O===0&&m.value===""||m.value!=O)&&(m.value=""+O):m.value!==""+O&&(m.value=""+O);else if(D==="submit"||D==="reset"){m.removeAttribute("value");return}p.hasOwnProperty("value")?Se(m,p.type,O):p.hasOwnProperty("defaultValue")&&Se(m,p.type,Ne(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(m.defaultChecked=!!p.defaultChecked)}function cn(m,p,O){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var D=p.type;if(!(D!=="submit"&&D!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+m._wrapperState.initialValue,O||p===m.value||(m.value=p),m.defaultValue=p}O=m.name,O!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,O!==""&&(m.name=O)}function Se(m,p,O){(p!=="number"||Mn(m.ownerDocument)!==m)&&(O==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+O&&(m.defaultValue=""+O))}var ze=Array.isArray;function Oe(m,p,O,D){if(m=m.options,p){p={};for(var R=0;R"+p.valueOf().toString()+"",p=Rn.firstChild;m.firstChild;)m.removeChild(m.firstChild);for(;p.firstChild;)m.appendChild(p.firstChild)}});function on(m,p){if(p){var O=m.firstChild;if(O&&O===m.lastChild&&O.nodeType===3){O.nodeValue=p;return}}m.textContent=p}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Re=["Webkit","ms","Moz","O"];Object.keys(Pe).forEach(function(m){Re.forEach(function(p){p=p+m.charAt(0).toUpperCase()+m.substring(1),Pe[p]=Pe[m]})});function ke(m,p,O){return p==null||typeof p=="boolean"||p===""?"":O||typeof p!="number"||p===0||Pe.hasOwnProperty(m)&&Pe[m]?(""+p).trim():p+"px"}function nn(m,p){m=m.style;for(var O in p)if(p.hasOwnProperty(O)){var D=O.indexOf("--")===0,R=ke(O,p[O],D);O==="float"&&(O="cssFloat"),D?m.setProperty(O,R):m[O]=R}}var _n=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function In(m,p){if(p){if(_n[m]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(i(137,m));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(i(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(i(61))}if(p.style!=null&&typeof p.style!="object")throw Error(i(62))}}function Wn(m,p){if(m.indexOf("-")===-1)return typeof p.is=="string";switch(m){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kn=null;function wn(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}var at=null,jt=null,Bt=null;function gr(m){if(m=la(m)){if(typeof at!="function")throw Error(i(280));var p=m.stateNode;p&&(p=ca(p),at(m.stateNode,m.type,p))}}function Tr(m){jt?Bt?Bt.push(m):Bt=[m]:jt=m}function Rr(){if(jt){var m=jt,p=Bt;if(Bt=jt=null,gr(m),p)for(m=0;m>>=0,m===0?32:31-(Yi(m)/Ji|0)|0}var Ur=64,Oa=4194304;function wo(m){switch(m&-m){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return m&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return m}}function Ma(m,p){var O=m.pendingLanes;if(O===0)return 0;var D=0,R=m.suspendedLanes,W=m.pingedLanes,G=O&268435455;if(G!==0){var re=G&~R;re!==0?D=wo(re):(W&=G,W!==0&&(D=wo(W)))}else G=O&~R,G!==0?D=wo(G):W!==0&&(D=wo(W));if(D===0)return 0;if(p!==0&&p!==D&&!(p&R)&&(R=D&-D,W=p&-p,R>=W||R===16&&(W&4194240)!==0))return p;if(D&4&&(D|=O&16),p=m.entangledLanes,p!==0)for(m=m.entanglements,p&=D;0O;O++)p.push(m);return p}function zo(m,p,O){m.pendingLanes|=p,p!==536870912&&(m.suspendedLanes=0,m.pingedLanes=0),m=m.eventTimes,p=31-Qt(p),m[p]=O}function ol(m,p){var O=m.pendingLanes&~p;m.pendingLanes=p,m.suspendedLanes=0,m.pingedLanes=0,m.expiredLanes&=p,m.mutableReadLanes&=p,m.entangledLanes&=p,p=m.entanglements;var D=m.eventTimes;for(m=m.expirationTimes;0=Ra),pi=" ",Ei=!1;function fs(m,p){switch(m){case"keyup":return xl.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hs(m){return m=m.detail,typeof m=="object"&&"data"in m?m.data:null}var Er=!1;function ms(m,p){switch(m){case"compositionend":return hs(p);case"keypress":return p.which!==32?null:(Ei=!0,pi);case"textInput":return m=p.data,m===pi&&Ei?null:m;default:return null}}function vs(m,p){if(Er)return m==="compositionend"||!xi&&fs(m,p)?(m=$r(),Da=si=zr=null,Er=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:O,offset:p-m};m=D}e:{for(;O;){if(O.nextSibling){O=O.nextSibling;break e}O=O.parentNode}O=void 0}O=xs(O)}}function qo(m,p){return m&&p?m===p?!0:m&&m.nodeType===3?!1:p&&p.nodeType===3?qo(m,p.parentNode):"contains"in m?m.contains(p):m.compareDocumentPosition?!!(m.compareDocumentPosition(p)&16):!1:!1}function Es(){for(var m=window,p=Mn();e(p,m.HTMLIFrameElement);){try{var O=typeof p.contentWindow.location.href=="string"}catch(D){O=!1}if(O)m=p.contentWindow;else break;p=Mn(m.document)}return p}function Mi(m){var p=m&&m.nodeName&&m.nodeName.toLowerCase();return p&&(p==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||p==="textarea"||m.contentEditable==="true")}function Eo(m){var p=Es(),O=m.focusedElem,D=m.selectionRange;if(p!==O&&O&&O.ownerDocument&&qo(O.ownerDocument.documentElement,O)){if(D!==null&&Mi(O)){if(p=D.start,m=D.end,m===void 0&&(m=p),"selectionStart"in O)O.selectionStart=p,O.selectionEnd=Math.min(m,O.value.length);else if(m=(p=O.ownerDocument||document)&&p.defaultView||window,m.getSelection){m=m.getSelection();var R=O.textContent.length,W=Math.min(D.start,R);D=D.end===void 0?W:Math.min(D.end,R),!m.extend&&W>D&&(R=D,D=W,W=R),R=ps(O,W);var G=ps(O,D);R&&G&&(m.rangeCount!==1||m.anchorNode!==R.node||m.anchorOffset!==R.offset||m.focusNode!==G.node||m.focusOffset!==G.offset)&&(p=p.createRange(),p.setStart(R.node,R.offset),m.removeAllRanges(),W>D?(m.addRange(p),m.extend(G.node,G.offset)):(p.setEnd(G.node,G.offset),m.addRange(p)))}}for(p=[],m=O;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O=document.documentMode,Vr=null,_i=null,ea=null,js=!1;function Ii(m,p,O){var D=O.window===O?O.document:O.nodeType===9?O:O.ownerDocument;js||Vr==null||Vr!==Mn(D)||(D=Vr,"selectionStart"in D&&Mi(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),ea&&Zo(ea,D)||(ea=D,D=oa(_i,"onSelect"),0Oo||(m.current=ua[Oo],ua[Oo]=null,Oo--)}function Gn(m,p){Oo++,ua[Oo]=m.current,m.current=p}var Pr={},yt=Mr(Pr),At=Mr(!1),oo=Pr;function Mo(m,p){var O=m.type.contextTypes;if(!O)return Pr;var D=m.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===p)return D.__reactInternalMemoizedMaskedChildContext;var R={},W;for(W in O)R[W]=p[W];return D&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=p,m.__reactInternalMemoizedMaskedChildContext=R),R}function _t(m){return m=m.childContextTypes,m!=null}function ao(){Hn(At),Hn(yt)}function Is(m,p,O){if(yt.current!==Pr)throw Error(i(168));Gn(yt,p),Gn(At,O)}function Po(m,p,O){var D=m.stateNode;if(p=p.childContextTypes,typeof D.getChildContext!="function")return O;D=D.getChildContext();for(var R in D)if(!(R in p))throw Error(i(108,Ce(m)||"Unknown",R));return ee({},O,D)}function ka(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||Pr,oo=yt.current,Gn(yt,m),Gn(At,At.current),!0}function Tl(m,p,O){var D=m.stateNode;if(!D)throw Error(i(169));O?(m=Po(m,p,oo),D.__reactInternalMemoizedMergedChildContext=m,Hn(At),Hn(yt),Gn(yt,m)):Hn(At),Gn(At,O)}var cr=null,_o=!1,Wi=!1;function Ds(m){cr===null?cr=[m]:cr.push(m)}function wi(m){_o=!0,Ds(m)}function Gr(){if(!Wi&&cr!==null){Wi=!0;var m=0,p=Fn;try{var O=cr;for(Fn=1;m>=G,R-=G,ur=1<<32-Qt(p)+R|O<bn?(Pt=On,On=null):Pt=On.sibling;var $n=Ke(ve,On,Ee[bn],Ge);if($n===null){On===null&&(On=Pt);break}m&&On&&$n.alternate===null&&p(ve,On),de=W($n,de,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n,On=Pt}if(bn===Ee.length)return O(ve,On),qn&&Io(ve,bn),vn;if(On===null){for(;bnbn?(Pt=On,On=null):Pt=On.sibling;var No=Ke(ve,On,$n.value,Ge);if(No===null){On===null&&(On=Pt);break}m&&On&&No.alternate===null&&p(ve,On),de=W(No,de,bn),yn===null?vn=No:yn.sibling=No,yn=No,On=Pt}if($n.done)return O(ve,On),qn&&Io(ve,bn),vn;if(On===null){for(;!$n.done;bn++,$n=Ee.next())$n=we(ve,$n.value,Ge),$n!==null&&(de=W($n,de,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n);return qn&&Io(ve,bn),vn}for(On=D(ve,On);!$n.done;bn++,$n=Ee.next())$n=rn(On,ve,bn,$n.value,Ge),$n!==null&&(m&&$n.alternate!==null&&On.delete($n.key===null?bn:$n.key),de=W($n,de,bn),yn===null?vn=$n:yn.sibling=$n,yn=$n);return m&&On.forEach(function(vd){return p(ve,vd)}),qn&&Io(ve,bn),vn}function ft(ve,de,Ee,Ge){if(typeof Ee=="object"&&Ee!==null&&Ee.type===N&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case b:e:{for(var vn=Ee.key,yn=de;yn!==null;){if(yn.key===vn){if(vn=Ee.type,vn===N){if(yn.tag===7){O(ve,yn.sibling),de=R(yn,Ee.props.children),de.return=ve,ve=de;break e}}else if(yn.elementType===vn||typeof vn=="object"&&vn!==null&&vn.$$typeof===Z&&oe(vn)===yn.type){O(ve,yn.sibling),de=R(yn,Ee.props),de.ref=ae(ve,yn,Ee),de.return=ve,ve=de;break e}O(ve,yn);break}else p(ve,yn);yn=yn.sibling}Ee.type===N?(de=Ca(Ee.props.children,ve.mode,Ge,Ee.key),de.return=ve,ve=de):(Ge=Gs(Ee.type,Ee.key,Ee.props,null,ve.mode,Ge),Ge.ref=ae(ve,de,Ee),Ge.return=ve,ve=Ge)}return G(ve);case L:e:{for(yn=Ee.key;de!==null;){if(de.key===yn)if(de.tag===4&&de.stateNode.containerInfo===Ee.containerInfo&&de.stateNode.implementation===Ee.implementation){O(ve,de.sibling),de=R(de,Ee.children||[]),de.return=ve,ve=de;break e}else{O(ve,de);break}else p(ve,de);de=de.sibling}de=fc(Ee,ve.mode,Ge),de.return=ve,ve=de}return G(ve);case Z:return yn=Ee._init,ft(ve,de,yn(Ee._payload),Ge)}if(ze(Ee))return dn(ve,de,Ee,Ge);if(X(Ee))return mn(ve,de,Ee,Ge);ce(ve,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"?(Ee=""+Ee,de!==null&&de.tag===6?(O(ve,de.sibling),de=R(de,Ee),de.return=ve,ve=de):(O(ve,de),de=dc(Ee,ve.mode,Ge),de.return=ve,ve=de),G(ve)):O(ve,de)}return ft}var pe=le(!0),Ie=le(!1),ge=Mr(null),Ae=null,Le=null,He=null;function Ve(){He=Le=Ae=null}function tn(m){var p=ge.current;Hn(ge),m._currentValue=p}function fn(m,p,O){for(;m!==null;){var D=m.alternate;if((m.childLanes&p)!==p?(m.childLanes|=p,D!==null&&(D.childLanes|=p)):D!==null&&(D.childLanes&p)!==p&&(D.childLanes|=p),m===O)break;m=m.return}}function Te(m,p){Ae=m,He=Le=null,m=m.dependencies,m!==null&&m.firstContext!==null&&(m.lanes&p&&(Gt=!0),m.firstContext=null)}function Ye(m){var p=m._currentValue;if(He!==m)if(m={context:m,memoizedValue:p,next:null},Le===null){if(Ae===null)throw Error(i(308));Le=m,Ae.dependencies={lanes:0,firstContext:m}}else Le=Le.next=m;return p}var un=null;function Sn(m){un===null?un=[m]:un.push(m)}function jn(m,p,O,D){var R=p.interleaved;return R===null?(O.next=O,Sn(p)):(O.next=R.next,R.next=O),p.interleaved=O,Cn(m,D)}function Cn(m,p){m.lanes|=p;var O=m.alternate;for(O!==null&&(O.lanes|=p),O=m,m=m.return;m!==null;)m.childLanes|=p,O=m.alternate,O!==null&&(O.childLanes|=p),O=m,m=m.return;return O.tag===3?O.stateNode:null}var Fe=!1;function pn(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hn(m,p){m=m.updateQueue,p.updateQueue===m&&(p.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,effects:m.effects})}function Tn(m,p){return{eventTime:m,lane:p,tag:0,payload:null,callback:null,next:null}}function Xn(m,p,O){var D=m.updateQueue;if(D===null)return null;if(D=D.shared,zn&2){var R=D.pending;return R===null?p.next=p:(p.next=R.next,R.next=p),D.pending=p,Cn(m,O)}return R=D.interleaved,R===null?(p.next=p,Sn(D)):(p.next=R.next,R.next=p),D.interleaved=p,Cn(m,O)}function Ot(m,p,O){if(p=p.updateQueue,p!==null&&(p=p.shared,(O&4194240)!==0)){var D=p.lanes;D&=m.pendingLanes,O|=D,p.lanes=O,ri(m,O)}}function Jn(m,p){var O=m.updateQueue,D=m.alternate;if(D!==null&&(D=D.updateQueue,O===D)){var R=null,W=null;if(O=O.firstBaseUpdate,O!==null){do{var G={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};W===null?R=W=G:W=W.next=G,O=O.next}while(O!==null);W===null?R=W=p:W=W.next=p}else R=W=p;O={baseState:D.baseState,firstBaseUpdate:R,lastBaseUpdate:W,shared:D.shared,effects:D.effects},m.updateQueue=O;return}m=O.lastBaseUpdate,m===null?O.firstBaseUpdate=p:m.next=p,O.lastBaseUpdate=p}function ut(m,p,O,D){var R=m.updateQueue;Fe=!1;var W=R.firstBaseUpdate,G=R.lastBaseUpdate,re=R.shared.pending;if(re!==null){R.shared.pending=null;var ue=re,ye=ue.next;ue.next=null,G===null?W=ye:G.next=ye,G=ue;var _e=m.alternate;_e!==null&&(_e=_e.updateQueue,re=_e.lastBaseUpdate,re!==G&&(re===null?_e.firstBaseUpdate=ye:re.next=ye,_e.lastBaseUpdate=ue))}if(W!==null){var we=R.baseState;G=0,_e=ye=ue=null,re=W;do{var Ke=re.lane,rn=re.eventTime;if((D&Ke)===Ke){_e!==null&&(_e=_e.next={eventTime:rn,lane:0,tag:re.tag,payload:re.payload,callback:re.callback,next:null});e:{var dn=m,mn=re;switch(Ke=p,rn=O,mn.tag){case 1:if(dn=mn.payload,typeof dn=="function"){we=dn.call(rn,we,Ke);break e}we=dn;break e;case 3:dn.flags=dn.flags&-65537|128;case 0:if(dn=mn.payload,Ke=typeof dn=="function"?dn.call(rn,we,Ke):dn,Ke==null)break e;we=ee({},we,Ke);break e;case 2:Fe=!0}}re.callback!==null&&re.lane!==0&&(m.flags|=64,Ke=R.effects,Ke===null?R.effects=[re]:Ke.push(re))}else rn={eventTime:rn,lane:Ke,tag:re.tag,payload:re.payload,callback:re.callback,next:null},_e===null?(ye=_e=rn,ue=we):_e=_e.next=rn,G|=Ke;if(re=re.next,re===null){if(re=R.shared.pending,re===null)break;Ke=re,re=Ke.next,Ke.next=null,R.lastBaseUpdate=Ke,R.shared.pending=null}}while(!0);if(_e===null&&(ue=we),R.baseState=ue,R.firstBaseUpdate=ye,R.lastBaseUpdate=_e,p=R.shared.interleaved,p!==null){R=p;do G|=R.lane,R=R.next;while(R!==p)}else W===null&&(R.shared.lanes=0);xa|=G,m.lanes=G,m.memoizedState=we}}function fr(m,p,O){if(m=p.effects,p.effects=null,m!==null)for(p=0;pO?O:4,m(!0);var D=Ha.transition;Ha.transition={};try{m(!1),p()}finally{Fn=O,Ha.transition=D}}function Wc(){return Nt().memoizedState}function Wu(m,p,O){var D=Lo(m);if(O={lane:D,action:O,hasEagerState:!1,eagerState:null,next:null},wc(m))zc(p,O);else if(O=jn(m,p,O,D),O!==null){var R=wt();Ar(O,m,D,R),$c(O,p,D)}}function wu(m,p,O){var D=Lo(m),R={lane:D,action:O,hasEagerState:!1,eagerState:null,next:null};if(wc(m))zc(p,R);else{var W=m.alternate;if(m.lanes===0&&(W===null||W.lanes===0)&&(W=p.lastRenderedReducer,W!==null))try{var G=p.lastRenderedState,re=W(G,O);if(R.hasEagerState=!0,R.eagerState=re,kt(re,G)){var ue=p.interleaved;ue===null?(R.next=R,Sn(p)):(R.next=ue.next,ue.next=R),p.interleaved=R;return}}catch(ye){}finally{}O=jn(m,p,R,D),O!==null&&(R=wt(),Ar(O,m,D,R),$c(O,p,D))}}function wc(m){var p=m.alternate;return m===et||p!==null&&p===et}function zc(m,p){va=Ga=!0;var O=m.pending;O===null?p.next=p:(p.next=O.next,O.next=p),m.pending=p}function $c(m,p,O){if(O&4194240){var D=p.lanes;D&=m.pendingLanes,O|=D,p.lanes=O,ri(m,O)}}var Rs={readContext:Ye,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},zu={readContext:Ye,useCallback:function(p,O){return rr().memoizedState=[p,O===void 0?null:O],p},useContext:Ye,useEffect:Ac,useImperativeHandle:function(p,O,D){return D=D!=null?D.concat([p]):null,As(4194308,4,Bc.bind(null,O,p),D)},useLayoutEffect:function(p,O){return As(4194308,4,p,O)},useInsertionEffect:function(p,O){return As(4,2,p,O)},useMemo:function(p,O){var D=rr();return O=O===void 0?null:O,p=p(),D.memoizedState=[p,O],p},useReducer:function(p,O,D){var R=rr();return O=D!==void 0?D(O):O,R.memoizedState=R.baseState=O,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:O},R.queue=p,p=p.dispatch=Wu.bind(null,et,p),[R.memoizedState,p]},useRef:function(p){var O=rr();return p={current:p},O.memoizedState=p},useState:Sc,useDebugValue:Nl,useDeferredValue:function(p){return rr().memoizedState=p},useTransition:function(){var p=Sc(!1),O=p[0];return p=Nu.bind(null,p[1]),rr().memoizedState=p,[O,p]},useMutableSource:function(){},useSyncExternalStore:function(p,O,D){var R=et,W=rr();if(qn){if(D===void 0)throw Error(i(407));D=D()}else{if(D=O(),Mt===null)throw Error(i(349));lo&30||Mc(R,O,D)}W.memoizedState=D;var G={value:D,getSnapshot:O};return W.queue=G,Ac(_c.bind(null,R,G,p),[p]),R.flags|=2048,$i(9,Pc.bind(null,R,G,D,O),void 0,null),D},useId:function(){var p=rr(),O=Mt.identifierPrefix;if(qn){var D=Ir,R=ur;D=(R&~(1<<32-Qt(R)-1)).toString(32)+D,O=":"+O+"R"+D,D=tr++,0<\/script>",m=m.removeChild(m.firstChild)):typeof D.is=="string"?m=G.createElement(O,{is:D.is}):(m=G.createElement(O),O==="select"&&(G=m,D.multiple?G.multiple=!0:D.size&&(G.size=D.size))):m=G.createElementNS(m,O),m[nr]=p,m[ro]=D,lu(m,p,!1,!1),p.stateNode=m;e:{switch(G=Wn(O,D),O){case"dialog":Yn("cancel",m),Yn("close",m),R=D;break;case"iframe":case"object":case"embed":Yn("load",m),R=D;break;case"video":case"audio":for(R=0;Rei&&(p.flags|=128,D=!0,ki(W,!1),p.lanes=4194304)}else{if(!D)if(m=bo(G),m!==null){if(p.flags|=128,D=!0,O=m.updateQueue,O!==null&&(p.updateQueue=O,p.flags|=4),ki(W,!0),W.tail===null&&W.tailMode==="hidden"&&!G.alternate&&!qn)return Tt(p),null}else 2*Bn()-W.renderingStartTime>ei&&O!==1073741824&&(p.flags|=128,D=!0,ki(W,!1),p.lanes=4194304);W.isBackwards?(G.sibling=p.child,p.child=G):(O=W.last,O!==null?O.sibling=G:p.child=G,W.last=G)}return W.tail!==null?(p=W.tail,W.rendering=p,W.tail=p.sibling,W.renderingStartTime=Bn(),p.sibling=null,O=Vn.current,Gn(Vn,D?O&1|2:O&1),p):(Tt(p),null);case 22:case 23:return lc(),D=p.memoizedState!==null,m!==null&&m.memoizedState!==null!==D&&(p.flags|=8192),D&&p.mode&1?or&1073741824&&(Tt(p),p.subtreeFlags&6&&(p.flags|=8192)):Tt(p),null;case 24:return null;case 25:return null}throw Error(i(156,p.tag))}function Yu(m,p){switch(Ss(p),p.tag){case 1:return _t(p.type)&&ao(),m=p.flags,m&65536?(p.flags=m&-65537|128,p):null;case 3:return Ut(),Hn(At),Hn(yt),ma(),m=p.flags,m&65536&&!(m&128)?(p.flags=m&-65537|128,p):null;case 5:return So(p),null;case 13:if(Hn(Vn),m=p.memoizedState,m!==null&&m.dehydrated!==null){if(p.alternate===null)throw Error(i(340));B()}return m=p.flags,m&65536?(p.flags=m&-65537|128,p):null;case 19:return Hn(Vn),null;case 4:return Ut(),null;case 10:return tn(p.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Us=!1,Rt=!1,Ju=typeof WeakSet=="function"?WeakSet:Set,ln=null;function Za(m,p){var O=m.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(D){lt(m,p,D)}else O.current=null}function Jl(m,p,O){try{O()}catch(D){lt(m,p,D)}}var du=!1;function Qu(m,p){if(Ti=Wr,m=Es(),Mi(m)){if("selectionStart"in m)var O={start:m.selectionStart,end:m.selectionEnd};else e:{O=(O=m.ownerDocument)&&O.defaultView||window;var D=O.getSelection&&O.getSelection();if(D&&D.rangeCount!==0){O=D.anchorNode;var R=D.anchorOffset,W=D.focusNode;D=D.focusOffset;try{O.nodeType,W.nodeType}catch(Ge){O=null;break e}var G=0,re=-1,ue=-1,ye=0,_e=0,we=m,Ke=null;n:for(;;){for(var rn;we!==O||R!==0&&we.nodeType!==3||(re=G+R),we!==W||D!==0&&we.nodeType!==3||(ue=G+D),we.nodeType===3&&(G+=we.nodeValue.length),(rn=we.firstChild)!==null;)Ke=we,we=rn;for(;;){if(we===m)break n;if(Ke===O&&++ye===R&&(re=G),Ke===W&&++_e===D&&(ue=G),(rn=we.nextSibling)!==null)break;we=Ke,Ke=we.parentNode}we=rn}O=re===-1||ue===-1?null:{start:re,end:ue}}else O=null}O=O||{start:0,end:0}}else O=null;for(Ri={focusedElem:m,selectionRange:O},Wr=!1,ln=p;ln!==null;)if(p=ln,m=p.child,(p.subtreeFlags&1028)!==0&&m!==null)m.return=p,ln=m;else for(;ln!==null;){p=ln;try{var dn=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(dn!==null){var mn=dn.memoizedProps,ft=dn.memoizedState,ve=p.stateNode,de=ve.getSnapshotBeforeUpdate(p.elementType===p.type?mn:Dr(p.type,mn),ft);ve.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var Ee=p.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Ge){lt(p,p.return,Ge)}if(m=p.sibling,m!==null){m.return=p.return,ln=m;break}ln=p.return}return dn=du,du=!1,dn}function Fi(m,p,O){var D=p.updateQueue;if(D=D!==null?D.lastEffect:null,D!==null){var R=D=D.next;do{if((R.tag&m)===m){var W=R.destroy;R.destroy=void 0,W!==void 0&&Jl(p,O,W)}R=R.next}while(R!==D)}}function Ns(m,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var O=p=p.next;do{if((O.tag&m)===m){var D=O.create;O.destroy=D()}O=O.next}while(O!==p)}}function Ql(m){var p=m.ref;if(p!==null){var O=m.stateNode;switch(m.tag){case 5:m=O;break;default:m=O}typeof p=="function"?p(m):p.current=m}}function fu(m){var p=m.alternate;p!==null&&(m.alternate=null,fu(p)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(p=m.stateNode,p!==null&&(delete p[nr],delete p[ro],delete p[Ui],delete p[Ni],delete p[Al])),m.stateNode=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function hu(m){return m.tag===5||m.tag===3||m.tag===4}function mu(m){e:for(;;){for(;m.sibling===null;){if(m.return===null||hu(m.return))return null;m=m.return}for(m.sibling.return=m.return,m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.flags&2||m.child===null||m.tag===4)continue e;m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function Zl(m,p,O){var D=m.tag;if(D===5||D===6)m=m.stateNode,p?O.nodeType===8?O.parentNode.insertBefore(m,p):O.insertBefore(m,p):(O.nodeType===8?(p=O.parentNode,p.insertBefore(m,O)):(p=O,p.appendChild(m)),O=O._reactRootContainer,O!=null||p.onclick!==null||(p.onclick=za));else if(D!==4&&(m=m.child,m!==null))for(Zl(m,p,O),m=m.sibling;m!==null;)Zl(m,p,O),m=m.sibling}function ql(m,p,O){var D=m.tag;if(D===5||D===6)m=m.stateNode,p?O.insertBefore(m,p):O.appendChild(m);else if(D!==4&&(m=m.child,m!==null))for(ql(m,p,O),m=m.sibling;m!==null;)ql(m,p,O),m=m.sibling}var It=null,Sr=!1;function To(m,p,O){for(O=O.child;O!==null;)vu(m,p,O),O=O.sibling}function vu(m,p,O){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Kr,O)}catch(re){}switch(O.tag){case 5:Rt||Za(O,p);case 6:var D=It,R=Sr;It=null,To(m,p,O),It=D,Sr=R,It!==null&&(Sr?(m=It,O=O.stateNode,m.nodeType===8?m.parentNode.removeChild(O):m.removeChild(O)):It.removeChild(O.stateNode));break;case 18:It!==null&&(Sr?(m=It,O=O.stateNode,m.nodeType===8?sa(m.parentNode,O):m.nodeType===1&&sa(m,O),Vo(m)):sa(It,O.stateNode));break;case 4:D=It,R=Sr,It=O.stateNode.containerInfo,Sr=!0,To(m,p,O),It=D,Sr=R;break;case 0:case 11:case 14:case 15:if(!Rt&&(D=O.updateQueue,D!==null&&(D=D.lastEffect,D!==null))){R=D=D.next;do{var W=R,G=W.destroy;W=W.tag,G!==void 0&&(W&2||W&4)&&Jl(O,p,G),R=R.next}while(R!==D)}To(m,p,O);break;case 1:if(!Rt&&(Za(O,p),D=O.stateNode,typeof D.componentWillUnmount=="function"))try{D.props=O.memoizedProps,D.state=O.memoizedState,D.componentWillUnmount()}catch(re){lt(O,p,re)}To(m,p,O);break;case 21:To(m,p,O);break;case 22:O.mode&1?(Rt=(D=Rt)||O.memoizedState!==null,To(m,p,O),Rt=D):To(m,p,O);break;default:To(m,p,O)}}function gu(m){var p=m.updateQueue;if(p!==null){m.updateQueue=null;var O=m.stateNode;O===null&&(O=m.stateNode=new Ju),p.forEach(function(D){var R=id.bind(null,m,D);O.has(D)||(O.add(D),D.then(R,R))})}}function br(m,p){var O=p.deletions;if(O!==null)for(var D=0;DR&&(R=G),D&=~W}if(D=R,D=Bn()-D,D=(120>D?120:480>D?480:1080>D?1080:1920>D?1920:3e3>D?3e3:4320>D?4320:1960*qu(D/1960))-D,10m?16:m,Bo===null)var D=!1;else{if(m=Bo,Bo=null,ks=0,zn&6)throw Error(i(331));var R=zn;for(zn|=4,ln=m.current;ln!==null;){var W=ln,G=W.child;if(ln.flags&16){var re=W.deletions;if(re!==null){for(var ue=0;ueBn()-tc?Ea(m,0):nc|=O),Yt(m,p)}function Su(m,p){p===0&&(m.mode&1?(p=Oa,Oa<<=1,!(Oa&130023424)&&(Oa=4194304)):p=1);var O=wt();m=Cn(m,p),m!==null&&(zo(m,p,O),Yt(m,O))}function ad(m){var p=m.memoizedState,O=0;p!==null&&(O=p.retryLane),Su(m,O)}function id(m,p){var O=0;switch(m.tag){case 13:var D=m.stateNode,R=m.memoizedState;R!==null&&(O=R.retryLane);break;case 19:D=m.stateNode;break;default:throw Error(i(314))}D!==null&&D.delete(p),Su(m,O)}var bu;bu=function(p,O,D){if(p!==null)if(p.memoizedProps!==O.pendingProps||At.current)Gt=!0;else{if(!(p.lanes&D)&&!(O.flags&128))return Gt=!1,Gu(p,O,D);Gt=!!(p.flags&131072)}else Gt=!1,qn&&O.flags&1048576&&Rl(O,fa,O.index);switch(O.lanes=0,O.tag){case 2:var R=O.type;Ks(p,O),p=O.pendingProps;var W=Mo(O,yt.current);Te(O,D),W=ga(null,O,R,p,W,D);var G=Ja();return O.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(O.tag=1,O.memoizedState=null,O.updateQueue=null,_t(R)?(G=!0,ka(O)):G=!1,O.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,pn(O),W.updater=Bs,O.stateNode=W,W._reactInternals=O,wl(O,R,p,D),O=Fl(null,O,R,!0,G,D)):(O.tag=0,qn&&G&&ha(O),Wt(null,O,W,D),O=O.child),O;case 16:R=O.elementType;e:{switch(Ks(p,O),p=O.pendingProps,W=R._init,R=W(R._payload),O.type=R,W=O.tag=ld(R),p=Dr(R,p),W){case 0:O=kl(null,O,R,p,D);break e;case 1:O=tu(null,O,R,p,D);break e;case 11:O=Qc(null,O,R,p,D);break e;case 14:O=Zc(null,O,R,Dr(R.type,p),D);break e}throw Error(i(306,R,""))}return O;case 0:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),kl(p,O,R,W,D);case 1:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),tu(p,O,R,W,D);case 3:e:{if(ru(O),p===null)throw Error(i(387));R=O.pendingProps,G=O.memoizedState,W=G.element,hn(p,O),ut(O,R,null,D);var re=O.memoizedState;if(R=re.element,G.isDehydrated)if(G={element:R,isDehydrated:!1,cache:re.cache,pendingSuspenseBoundaries:re.pendingSuspenseBoundaries,transitions:re.transitions},O.updateQueue.baseState=G,O.memoizedState=G,O.flags&256){W=Qa(Error(i(423)),O),O=ou(p,O,R,D,W);break e}else if(R!==W){W=Qa(Error(i(424)),O),O=ou(p,O,R,D,W);break e}else for(Ht=er(O.stateNode.containerInfo.firstChild),Vt=O,qn=!0,dr=null,D=Ie(O,null,R,D),O.child=D;D;)D.flags=D.flags&-3|4096,D=D.sibling;else{if(B(),R===W){O=co(p,O,D);break e}Wt(p,O,R,D)}O=O.child}return O;case 5:return Do(O),p===null&&I(O),R=O.type,W=O.pendingProps,G=p!==null?p.memoizedProps:null,re=W.children,ia(R,W)?re=null:G!==null&&ia(R,G)&&(O.flags|=32),nu(p,O),Wt(p,O,re,D),O.child;case 6:return p===null&&I(O),null;case 13:return au(p,O,D);case 4:return Xr(O,O.stateNode.containerInfo),R=O.pendingProps,p===null?O.child=pe(O,null,R,D):Wt(p,O,R,D),O.child;case 11:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),Qc(p,O,R,W,D);case 7:return Wt(p,O,O.pendingProps,D),O.child;case 8:return Wt(p,O,O.pendingProps.children,D),O.child;case 12:return Wt(p,O,O.pendingProps.children,D),O.child;case 10:e:{if(R=O.type._context,W=O.pendingProps,G=O.memoizedProps,re=W.value,Gn(ge,R._currentValue),R._currentValue=re,G!==null)if(kt(G.value,re)){if(G.children===W.children&&!At.current){O=co(p,O,D);break e}}else for(G=O.child,G!==null&&(G.return=O);G!==null;){var ue=G.dependencies;if(ue!==null){re=G.child;for(var ye=ue.firstContext;ye!==null;){if(ye.context===R){if(G.tag===1){ye=Tn(-1,D&-D),ye.tag=2;var _e=G.updateQueue;if(_e!==null){_e=_e.shared;var we=_e.pending;we===null?ye.next=ye:(ye.next=we.next,we.next=ye),_e.pending=ye}}G.lanes|=D,ye=G.alternate,ye!==null&&(ye.lanes|=D),fn(G.return,D,O),ue.lanes|=D;break}ye=ye.next}}else if(G.tag===10)re=G.type===O.type?null:G.child;else if(G.tag===18){if(re=G.return,re===null)throw Error(i(341));re.lanes|=D,ue=re.alternate,ue!==null&&(ue.lanes|=D),fn(re,D,O),re=G.sibling}else re=G.child;if(re!==null)re.return=G;else for(re=G;re!==null;){if(re===O){re=null;break}if(G=re.sibling,G!==null){G.return=re.return,re=G;break}re=re.return}G=re}Wt(p,O,W.children,D),O=O.child}return O;case 9:return W=O.type,R=O.pendingProps.children,Te(O,D),W=Ye(W),R=R(W),O.flags|=1,Wt(p,O,R,D),O.child;case 14:return R=O.type,W=Dr(R,O.pendingProps),W=Dr(R.type,W),Zc(p,O,R,W,D);case 15:return qc(p,O,O.type,O.pendingProps,D);case 17:return R=O.type,W=O.pendingProps,W=O.elementType===R?W:Dr(R,W),Ks(p,O),O.tag=1,_t(R)?(p=!0,ka(O)):p=!1,Te(O,D),Fc(O,R,W),wl(O,R,W,D),Fl(null,O,R,!0,p,D);case 19:return su(p,O,D);case 22:return eu(p,O,D)}throw Error(i(156,O.tag))};function Au(m,p){return an(m,p)}function sd(m,p,O,D){this.tag=m,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vr(m,p,O,D){return new sd(m,p,O,D)}function uc(m){return m=m.prototype,!(!m||!m.isReactComponent)}function ld(m){if(typeof m=="function")return uc(m)?1:0;if(m!=null){if(m=m.$$typeof,m===k)return 11;if(m===q)return 14}return 2}function Uo(m,p){var O=m.alternate;return O===null?(O=vr(m.tag,p,m.key,m.mode),O.elementType=m.elementType,O.type=m.type,O.stateNode=m.stateNode,O.alternate=m,m.alternate=O):(O.pendingProps=p,O.type=m.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=m.flags&14680064,O.childLanes=m.childLanes,O.lanes=m.lanes,O.child=m.child,O.memoizedProps=m.memoizedProps,O.memoizedState=m.memoizedState,O.updateQueue=m.updateQueue,p=m.dependencies,O.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},O.sibling=m.sibling,O.index=m.index,O.ref=m.ref,O}function Gs(m,p,O,D,R,W){var G=2;if(D=m,typeof m=="function")uc(m)&&(G=1);else if(typeof m=="string")G=5;else e:switch(m){case N:return Ca(O.children,R,W,p);case $:G=8,R|=8;break;case z:return m=vr(12,O,p,R|2),m.elementType=z,m.lanes=W,m;case H:return m=vr(13,O,p,R),m.elementType=H,m.lanes=W,m;case Y:return m=vr(19,O,p,R),m.elementType=Y,m.lanes=W,m;case J:return Xs(O,R,W,p);default:if(typeof m=="object"&&m!==null)switch(m.$$typeof){case w:G=10;break e;case V:G=9;break e;case k:G=11;break e;case q:G=14;break e;case Z:G=16,D=null;break e}throw Error(i(130,m==null?m:typeof m=="undefined"?"undefined":o(m),""))}return p=vr(G,O,p,R),p.elementType=m,p.type=D,p.lanes=W,p}function Ca(m,p,O,D){return m=vr(7,m,D,p),m.lanes=O,m}function Xs(m,p,O,D){return m=vr(22,m,D,p),m.elementType=J,m.lanes=O,m.stateNode={isHidden:!1},m}function dc(m,p,O){return m=vr(6,m,null,p),m.lanes=O,m}function fc(m,p,O){return p=vr(4,m.children!==null?m.children:[],m.key,p),p.lanes=O,p.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},p}function cd(m,p,O,D,R){this.tag=p,this.containerInfo=m,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ti(0),this.expirationTimes=ti(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.identifierPrefix=D,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function hc(m,p,O,D,R,W,G,re,ue){return m=new cd(m,p,O,re,ue),p===1?(p=1,W===!0&&(p|=8)):p=0,W=vr(3,null,null,p),m.current=W,W.stateNode=m,W.memoizedState={element:D,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},pn(W),m}function ud(m,p,O){var D=3=0;--ee){var se=this.tryEntries[ee],ie=se.completion;if(se.tryLoc==="root")return X("end");if(se.tryLoc<=this.prev){var fe=r.call(se,"catchLoc"),he=r.call(se,"finallyLoc");if(fe&&he){if(this.prev=0;--X){var ee=this.tryEntries[X];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--Q){var X=this.tryEntries[Q];if(X.finallyLoc===J)return this.complete(X.completion,X.afterLoc),k(X),C}},catch:function(Z){for(var J=this.tryEntries.length-1;J>=0;--J){var Q=this.tryEntries[J];if(Q.tryLoc===Z){var X=Q.completion;if(X.type==="throw"){var ee=X.arg;k(Q)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(J,Q,X){return this.delegate={iterator:Y(J),resultName:Q,nextLoc:X},this.method==="next"&&(this.arg=f),C}},o}(y.exports);try{regeneratorRuntime=e}catch(o){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},82039:function(y,u){"use strict";/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function n(Y,q){var Z=Y.length;Y.push(q);e:for(;0>>1,Q=Y[J];if(0>>1;Jt(se,Z))iet(fe,se)?(Y[J]=fe,Y[ie]=Z,J=ie):(Y[J]=se,Y[ee]=Z,J=ee);else if(iet(fe,Z))Y[J]=fe,Y[ie]=Z,J=ie;else break e}}return q}function t(Y,q){var Z=Y.sortIndex-q.sortIndex;return Z!==0?Z:Y.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;u.unstable_now=function(){return r.now()}}else{var i=Date,f=i.now();u.unstable_now=function(){return i.now()-f}}var g=[],d=[],a=1,l=null,s=3,c=!1,h=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Y){for(var q=e(d);q!==null;){if(q.callback===null)o(d);else if(q.startTime<=Y)o(d),q.sortIndex=q.expirationTime,n(g,q);else break;q=e(d)}}function M(Y){if(v=!1,C(Y),!h)if(e(g)!==null)h=!0,k(P);else{var q=e(d);q!==null&&H(M,q.startTime-Y)}}function P(Y,q){h=!1,v&&(v=!1,E(T),T=-1),c=!0;var Z=s;try{for(C(q),l=e(g);l!==null&&(!(l.expirationTime>q)||Y&&!N());){var J=l.callback;if(typeof J=="function"){l.callback=null,s=l.priorityLevel;var Q=J(l.expirationTime<=q);q=u.unstable_now(),typeof Q=="function"?l.callback=Q:l===e(g)&&o(g),C(q)}else o(g);l=e(g)}if(l!==null)var X=!0;else{var ee=e(d);ee!==null&&H(M,ee.startTime-q),X=!1}return X}finally{l=null,s=Z,c=!1}}var _=!1,S=null,T=-1,b=5,L=-1;function N(){return!(u.unstable_now()-LY||125J?(Y.sortIndex=Z,n(d,Y),e(g)===null&&Y===e(d)&&(v?(E(T),T=-1):v=!0,H(M,Z-J))):(Y.sortIndex=Q,n(g,Y),h||c||(h=!0,k(P))),Y},u.unstable_shouldYield=N,u.unstable_wrapCallback=function(Y){var q=s;return function(){var Z=s;s=q;try{return Y.apply(this,arguments)}finally{s=Z}}}},20686:function(y,u,n){"use strict";y.exports=n(82039)},73396:function(){self.fetch||(self.fetch=function(y,u){return u=u||{},new Promise(function(n,e){var o=new XMLHttpRequest,t=[],r={},i=function g(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:g,headers:{keys:function(){return t},entries:function(){return t.map(function(a){return[a,o.getResponseHeader(a)]})},get:function(a){return o.getResponseHeader(a)},has:function(a){return o.getResponseHeader(a)!=null}}}};for(var f in o.open(u.method||"get",y,!0),o.onload=function(){o.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,d){r[d]||t.push(r[d]=d)}),n(i())},o.onerror=e,o.withCredentials=u.credentials=="include",u.headers)o.setRequestHeader(f,u.headers[f]);o.send(u.body||null)})})},7402:function(y,u,n){"use strict";n.d(u,{TS:function(){return s},Tj:function(){return f},Ul:function(){return d},V0:function(){return E},hS:function(){return c},pb:function(){return i},yU:function(){return v}});/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function e(P,_){(_==null||_>P.length)&&(_=P.length);for(var S=0,T=new Array(_);S<_;S++)T[S]=P[S];return T}function o(P){"@swc/helpers - typeof";return P&&typeof Symbol!="undefined"&&P.constructor===Symbol?"symbol":typeof P}function t(P,_){if(P){if(typeof P=="string")return e(P,_);var S=Object.prototype.toString.call(P).slice(8,-1);if(S==="Object"&&P.constructor&&(S=P.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return e(P,_)}}function r(P,_){var S=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(S)return(S=S.call(P)).next.bind(S);if(Array.isArray(P)||(S=t(P))||_&&P&&typeof P.length=="number"){S&&(P=S);var T=0;return function(){return T>=P.length?{done:!0}:{done:!1,value:P[T++]}}}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 i=function(P,_){if(P==null)return P;if(Array.isArray(P)){for(var S=[],T=0;T$)return 1}return 0},d=function(P){for(var _=function(w){var V=P[w];N.push({criteria:T.map(function(k){return k(V)}),value:V})},S=arguments.length,T=new Array(S>1?S-1:0),b=1;b>1,$=P(_[z]),$T?z:z+1},E=function(P,_,S){var T=[].concat(P);return T.splice(x(S,P,_),0,_),T},j=function(P,_){for(var S=[],T=[],b=_,L=r(P),N;!(N=L()).done;){var $=N.value;T.push($),b--,b||(b=_,S.push(T),T=[])}return T.length&&S.push(T),S},C=function(P){return typeof P=="object"&&P!==null},M=function(){for(var P=arguments.length,_=new Array(P),S=0;S1?f-1:0),d=1;df.length)&&(g=f.length);for(var d=0,a=new Array(g);d=f.length?{done:!0}:{done:!1,value:f[a++]}}}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 r=void 0,i=function(){for(var f=arguments.length,g=new Array(f),d=0;d1?s-1:0),h=1;hc.length)&&(h=c.length);for(var v=0,x=new Array(h);v=c.length?{done:!0}:{done:!1,value:c[x++]}}}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 r=function(c,h,v){return cv?v:c},i=function(c){return c<0?0:c>1?1:c},f=function(c,h,v){return(c-h)/(v-h)},g=function(c,h){if(!c||isNaN(c))return c;var v,x,E,j;return h|=0,v=Math.pow(10,h),c*=v,j=+(c>0)|-(c<0),E=Math.abs(c%1)>=.4999999999854481,x=Math.floor(c),E&&(c=x+(j>0)),(E?c:Math.round(c))/v},d=function(c,h){return h===void 0&&(h=0),Number(c).toFixed(Math.max(h,0))},a=function(c,h){return h&&c>=h[0]&&c<=h[1]},l=function(c,h){for(var v=t(Object.keys(h)),x;!(x=v()).done;){var E=x.value,j=h[E];if(a(c,j))return E}},s=function(c){return Math.floor(c)!==c&&c.toString().split(".")[1].length||0}},56236:function(y,u,n){"use strict";n.d(u,{k:function(){return l}});/** - * Ghetto performance measurement tools. - * - * Uses NODE_ENV to remove itself from production builds. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */var e,o=60,t=1e3/o,r=!!((e=window.performance)!=null&&e.now),i={},f={};function g(s,c){}function d(s,c){return;var h,v,x}function a(s){var c=s/t;return s.toFixed(s<10?1:0)+"ms ("+c.toFixed(2)+" frames)"}var l={mark:g,measure:d}},65380:function(y,u,n){"use strict";n.d(u,{Ly:function(){return e},a_:function(){return t},b5:function(){return r}});/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */var e=function(i){for(var f="",g=0;ga.length)&&(l=a.length);for(var s=0,c=new Array(l);s=a.length?{done:!0}:{done:!1,value:a[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(a,l){if(l)return l(i)(a);var s,c=[],h=function(){return s},v=function(E){c.push(E)},x=function(E){s=a(s,E);for(var j=0;j1?v-1:0),E=1;E1?S-1:0),b=1;b1?S-1:0),b=1;b0&&b[b.length-1])&&(w[0]===6||w[0]===2)){N=0;continue}if(w[0]===3&&(!b||w[1]>b[0]&&w[1]v.length)&&(x=v.length);for(var E=0,j=new Array(x);E=v.length?{done:!0}:{done:!1,value:v[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.")}function r(v,x){x===void 0&&(x=function(j){return JSON.stringify(j)});var E=v.toLowerCase().trim();return function(j){if(!E)return!0;var C=x(j);return C?C.toLowerCase().includes(E):!1}}function i(v){return v.charAt(0).toUpperCase()+v.slice(1).toLowerCase()}function f(v){return v.replace(/(^\w{1})|(\s+\w{1})/g,function(x){return x.toUpperCase()})}function g(v){return v.replace(/^\w/,function(x){return x.toUpperCase()})}var d=["Id","Tv"],a=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"];function l(v){if(!v)return v;for(var x=v.replace(/([^\W_]+[^\s-]*) */g,function(b){return i(b)}),E=t(a),j;!(j=E()).done;){var C=j.value,M=new RegExp("\\s"+C+"\\s","g");x=x.replace(M,function(b){return b.toLowerCase()})}for(var P=t(d),_;!(_=P()).done;){var S=_.value,T=new RegExp("\\b"+S+"\\b","g");x=x.replace(T,function(b){return b.toLowerCase()})}return x}var s=/&(nbsp|amp|quot|lt|gt|apos);/g,c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:'"'};function h(v){return v&&v.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(s,function(x,E){return c[E]}).replace(/&#?([0-9]+);/gi,function(x,E){var j=parseInt(E,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(x,E){var j=parseInt(E,16);return String.fromCharCode(j)})}},27482:function(y,u,n){"use strict";n.d(u,{sg:function(){return e}});/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */var e=function(r,i,f){f===void 0&&(f=!1);var g;return function(){for(var d=arguments.length,a=new Array(d),l=0;l=i?(r.apply(null,l),f=c):g=setTimeout(function(){return d.apply(void 0,[].concat(l))},i-(c-(f!=null?f:0)))}},t=function(r){return new Promise(function(i){return setTimeout(i,r)})}},87760:function(y,u,n){"use strict";n.d(u,{CO:function(){return f},Jk:function(){return c},Xd:function(){return l},Z4:function(){return g},tk:function(){return d}});var e=n(7402);/** - * N-dimensional vector manipulation functions. - * - * Vectors are plain number arrays, i.e. [x, y, z]. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */var o=function(v,x){return v+x},t=function(v,x){return v-x},r=function(v,x){return v*x},i=function(v,x){return v/x},f=function(){for(var v=arguments.length,x=new Array(v),E=0;Ed.length)&&(a=d.length);for(var l=0,s=new Array(a);l=d.length?{done:!0}:{done:!1,value:d[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 r=[/v4shim/i],i={},f=function(d){return i[d]||d},g=function(d){return function(a){return function(l){var s=l.type,c=l.payload;if(s==="asset/stylesheet"){Byond.loadCss(c);return}if(s==="asset/mappings"){for(var h=function(){var E=x.value;if(r.some(function(M){return M.test(E)}))return"continue";var j=c[E],C=E.split(".").pop();i[E]=j,C==="css"&&Byond.loadCss(j),C==="js"&&Byond.loadJs(j)},v=t(Object.keys(c)),x;!(x=v()).done;)h();return}a(l)}}}},7081:function(y,u,n){"use strict";n.d(u,{H$:function(){return v},J3:function(){return h},JV:function(){return j},Oc:function(){return b},QY:function(){return N},d4:function(){return z},jB:function(){return P},pX:function(){return _}});var e=n(56236),o=n(74429),t=n(21547),r=n(37912),i=n(49945),f=n(92736),g=n(67278);/** - * This file provides a clear separation layer between backend updates - * and what state our React app sees. - * - * Sometimes backend can response without a "data" field, but our final - * state will still contain previous "data" because we are merging - * the response with already existing state. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function d(w,V){(V==null||V>w.length)&&(V=w.length);for(var k=0,H=new Array(V);k=w.length?{done:!0}:{done:!1,value:w[H++]}}}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=(0,f.h)("backend"),h,v=function(w){h=w},x=(0,o.VP)("backend/update"),E=(0,o.VP)("backend/setSharedState"),j=(0,o.VP)("backend/suspendStart"),C=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},M={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},P=function(w,V){w===void 0&&(w=M);var k=V.type,H=V.payload;if(k==="backend/update"){var Y=a({},w.config,H.config),q=a({},w.data,H.static_data,H.data),Z=a({},w.shared);if(H.shared)for(var J=s(Object.keys(H.shared)),Q;!(Q=J()).done;){var X=Q.value,ee=H.shared[X];ee===""?Z[X]=void 0:Z[X]=JSON.parse(ee)}return a({},w,{config:Y,data:q,shared:Z,suspended:!1})}if(k==="backend/setSharedState"){var se=H.key,ie=H.nextState,fe;return a({},w,{shared:a({},w.shared,(fe={},fe[se]=ie,fe))})}if(k==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),k==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),k==="backend/suspendStart")return a({},w,{suspending:!0});if(k==="backend/suspendSuccess"){var he=H.timestamp;return a({},w,{data:{},shared:{},config:a({},w.config,{title:"",status:1}),suspending:!1,suspended:he})}return w},_=function(w){var V,k;return function(H){return function(Y){var q=T(w.getState()).suspended,Z=Y.type,J=Y.payload;if(Z==="update"){w.dispatch(x(J));return}if(Z==="suspend"){w.dispatch(C());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!k){c.log("suspending ("+Byond.windowId+")");var Q=function(){return Byond.sendMessage("suspend")};Q(),k=setInterval(Q,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(k),k=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setTimeout(function(){return(0,i.$)()})),Z==="backend/update"){var X,ee,se=(ee=J.config)==null||(X=ee.window)==null?void 0:X.fancy;V===void 0?V=se:V!==se&&(c.log("changing fancy mode to",se),V=se,Byond.winset(Byond.windowId,{titlebar:!se,"can-resize":!se}))}return Z==="backend/update"&&q&&(c.log("backend/update",J),(0,g.P7)(),(0,t.MN)(),setTimeout(function(){e.k.mark("resume/start");var ie=T(w.getState()).suspended;ie||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),H(Y)}}},S=function(w,V){V===void 0&&(V={});var k=typeof V=="object"&&V!==null&&!Array.isArray(V);if(!k){c.error("Payload for act() must be an object, got this:",V);return}Byond.sendMessage("act/"+w,V)},T=function(w){return w.backend||{}},b=function(){var w,V=h==null||(w=h.getState())==null?void 0:w.backend;return a({},V,{act:S})},L=function(w,V){var k,H=h==null||(k=h.getState())==null?void 0:k.backend,Y,q=(Y=H==null?void 0:H.shared)!=null?Y:{},Z=w in q?q[w]:V;return[Z,function(J){h.dispatch(E({key:w,nextState:typeof J=="function"?J(Z):J}))}]},N=function(w,V){var k,H=h==null||(k=h.getState())==null?void 0:k.backend,Y,q=(Y=H==null?void 0:H.shared)!=null?Y:{},Z=w in q?q[w]:V;return[Z,function(J){Byond.sendMessage({type:"setSharedState",key:w,value:JSON.stringify(typeof J=="function"?J(Z):J)||""})}]},$=function(){return h.dispatch},z=function(w){return w(h==null?void 0:h.getState())}},96781:function(y,u,n){"use strict";n.d(u,{Fl:function(){return _},WP:function(){return S},az:function(){return T},zA:function(){return l}});var e=n(65380),o=n(61358),t=n(79500),r=n(92736);/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function i(b,L){(L==null||L>b.length)&&(L=b.length);for(var N=0,$=new Array(L);N=0)&&(N[z]=b[z]);return N}function d(b,L){if(b){if(typeof b=="string")return i(b,L);var N=Object.prototype.toString.call(b).slice(8,-1);if(N==="Object"&&b.constructor&&(N=b.constructor.name),N==="Map"||N==="Set")return Array.from(N);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return i(b,L)}}function a(b,L){var N=typeof Symbol!="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(N)return(N=N.call(b)).next.bind(N);if(Array.isArray(b)||(N=d(b))||L&&b&&typeof b.length=="number"){N&&(b=N);var $=0;return function(){return $>=b.length?{done:!0}:{done:!1,value:b[$++]}}}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(b){if(typeof b=="string")return b.endsWith("px")?parseFloat(b)/12+"rem":b;if(typeof b=="number")return b+"rem"},s=function(b){if(typeof b=="string")return l(b);if(typeof b=="number")return l(b*.5)},c=function(b){return!h(b)},h=function(b){return typeof b=="string"&&t.NE.includes(b)},v=function(b){return function(L,N){(typeof N=="number"||typeof N=="string")&&(L[b]=N)}},x=function(b,L){return function(N,$){(typeof $=="number"||typeof $=="string")&&(N[b]=L($))}},E=function(b,L){return function(N,$){$&&(N[b]=L)}},j=function(b,L,N){return function($,z){if(typeof z=="number"||typeof z=="string")for(var w=0;w=0)&&(l[c]=d[c]);return l}var f=5;function g(d){var a=d.fixBlur,l=a===void 0?!0:a,s=d.fixErrors,c=s===void 0?!1:s,h=d.objectFit,v=h===void 0?"fill":h,x=d.src,E=i(d,["fixBlur","fixErrors","objectFit","src"]),j=(0,o.useRef)(0),C=(0,t.Fl)(E);return C.style=r({},C.style,{"-ms-interpolation-mode":l?"nearest-neighbor":"auto",objectFit:v}),(0,e.jsx)("img",r({onError:function(M){if(c&&j.current=0)&&(s[h]=a[h]);return s}var f=function(a){var l=a.className,s=a.collapsing,c=a.children,h=i(a,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,o.Ly)(["Table",s&&"Table--collapsing",l,(0,t.WP)(h)])},(0,t.Fl)(h),{children:(0,e.jsx)("tbody",{children:c})}))},g=function(a){var l=a.className,s=a.header,c=i(a,["className","header"]);return(0,e.jsx)("tr",r({className:(0,o.Ly)(["Table__row",s&&"Table__row--header",l,(0,t.WP)(a)])},(0,t.Fl)(c)))},d=function(a){var l=a.className,s=a.collapsing,c=a.header,h=i(a,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,o.Ly)(["Table__cell",s&&"Table__cell--collapsing",c&&"Table__cell--header",l,(0,t.WP)(a)])},(0,t.Fl)(h)))};f.Row=g,f.Cell=d},88569:function(y,u,n){"use strict";n.d(u,{zv:function(){return l},y5:function(){return s},Z8:function(){return E},Y0:function(){return _},az:function(){return C.az},$n:function(){return xt},D1:function(){return Da},t1:function(){return ci},Nt:function(){return ba},BK:function(){return cl},Rr:function(){return ss},cG:function(){return ls},Hx:function(){return Ta},ms:function(){return gs},so:function(){return jr},In:function(){return N},_V:function(){return dl._},pd:function(){return Hr},N6:function(){return Ps},Wx:function(){return Ua},Ki:function(){return lr},aF:function(){return Sl},tx:function(){return $a},IC:function(){return Ui},Q7:function(){return yo},ND:function(){return ms},z2:function(){return Mi},SM:function(){return Is},wn:function(){return Ds},Ap:function(){return io},BJ:function(){return Vr},XI:function(){return La.XI},tU:function(){return Kt},fs:function(){return Ir},m_:function(){return bt}});var e=n(20462),o=n(4089),t=n(61358);/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function r(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),A&&i(I,A)}function i(I,A){return i=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},i(I,A)}var f=function(I){return typeof I=="number"&&Number.isFinite(I)&&!Number.isNaN(I)},g=1e3/60,d=.8333,a=.001,l=function(I){"use strict";r(A,I);function A(U){var B;B=I.call(this,U)||this,B.ref=(0,t.createRef)(),B.currentValue=0;var F=U.initial,ne=U.value;return F!==void 0&&f(F)?B.currentValue=F:f(ne)&&(B.currentValue=ne),B}var K=A.prototype;return K.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},K.componentWillUnmount=function(){this.stopTicking()},K.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},K.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},g))},K.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},K.tick=function(){var B=this.currentValue,F=this.props.value;f(F)?this.currentValue=B*d+F*(1-d):this.stopTicking(),Math.abs(F-this.currentValue)=0)&&(K[B]=I[B]);return K}function _(I){var A=I.className,K=P(I,["className"]);return(0,e.jsx)(C.az,M({className:(0,j.Ly)(["BlockQuote",A])},K))}var S=n(87239);/** - * @file - * @copyright 2020 Aleksej Komarov - * @author Original Aleksej Komarov - * @author Changes ThePotato97 - * @license MIT - */function T(){return T=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var L=/-o$/,N=function(I){var A=I.name,K=I.size,U=I.spin,B=I.className,F=I.rotation,ne=b(I,["name","size","spin","className","rotation"]),ae=ne.style||{};K&&(ae.fontSize=K*100+"%"),F&&(ae.transform="rotate("+F+"deg)"),ne.style=ae;var ce=(0,C.Fl)(ne),oe="";if(A.startsWith("tg-"))oe=A;else{var le=L.test(A),pe=A.replace(L,""),Ie=!pe.startsWith("fa-");oe=le?"far ":"fas ",Ie&&(oe+="fa-"),oe+=pe,U&&(oe+=" fa-spin")}return(0,e.jsx)("i",T({className:(0,j.Ly)(["Icon",oe,B,(0,C.WP)(ne)])},ce))},$=function(I){var A=I.className,K=I.children,U=b(I,["className","children"]);return(0,e.jsx)("span",T({className:(0,j.Ly)(["IconStack",A,(0,C.WP)(U)])},(0,C.Fl)(U),{children:K}))};N.Stack=$;function z(I){if(I==null)return window;if(I.toString()!=="[object Window]"){var A=I.ownerDocument;return A&&A.defaultView||window}return I}function w(I,A){return A!=null&&typeof Symbol!="undefined"&&A[Symbol.hasInstance]?!!A[Symbol.hasInstance](I):I instanceof A}function V(I){var A=z(I).Element;return w(I,A)||w(I,Element)}function k(I){var A=z(I).HTMLElement;return w(I,A)||w(I,HTMLElement)}function H(I){if(typeof ShadowRoot=="undefined")return!1;var A=z(I).ShadowRoot;return w(I,A)||w(I,ShadowRoot)}var Y=Math.max,q=Math.min,Z=Math.round;function J(){var I=navigator.userAgentData;return I!=null&&I.brands&&Array.isArray(I.brands)?I.brands.map(function(A){return A.brand+"/"+A.version}).join(" "):navigator.userAgent}function Q(){return!/^((?!chrome|android).)*safari/i.test(J())}function X(I,A,K){A===void 0&&(A=!1),K===void 0&&(K=!1);var U=I.getBoundingClientRect(),B=1,F=1;A&&k(I)&&(B=I.offsetWidth>0&&Z(U.width)/I.offsetWidth||1,F=I.offsetHeight>0&&Z(U.height)/I.offsetHeight||1);var ne=V(I)?z(I):window,ae=ne.visualViewport,ce=!Q()&&K,oe=(U.left+(ce&&ae?ae.offsetLeft:0))/B,le=(U.top+(ce&&ae?ae.offsetTop:0))/F,pe=U.width/B,Ie=U.height/F;return{width:pe,height:Ie,top:le,right:oe+pe,bottom:le+Ie,left:oe,x:oe,y:le}}function ee(I){var A=z(I),K=A.pageXOffset,U=A.pageYOffset;return{scrollLeft:K,scrollTop:U}}function se(I){return{scrollLeft:I.scrollLeft,scrollTop:I.scrollTop}}function ie(I){return I===z(I)||!k(I)?ee(I):se(I)}function fe(I){return I?(I.nodeName||"").toLowerCase():null}function he(I){return((V(I)?I.ownerDocument:I.document)||window.document).documentElement}function be(I){return X(he(I)).left+ee(I).scrollLeft}function je(I){return z(I).getComputedStyle(I)}function Ce(I){var A=je(I),K=A.overflow,U=A.overflowX,B=A.overflowY;return/auto|scroll|overlay|hidden/.test(K+B+U)}function Ne(I){var A=I.getBoundingClientRect(),K=Z(A.width)/I.offsetWidth||1,U=Z(A.height)/I.offsetHeight||1;return K!==1||U!==1}function sn(I,A,K){K===void 0&&(K=!1);var U=k(A),B=k(A)&&Ne(A),F=he(A),ne=X(I,B,K),ae={scrollLeft:0,scrollTop:0},ce={x:0,y:0};return(U||!U&&!K)&&((fe(A)!=="body"||Ce(F))&&(ae=ie(A)),k(A)?(ce=X(A,!0),ce.x+=A.clientLeft,ce.y+=A.clientTop):F&&(ce.x=be(F))),{x:ne.left+ae.scrollLeft-ce.x,y:ne.top+ae.scrollTop-ce.y,width:ne.width,height:ne.height}}function en(I){var A=X(I),K=I.offsetWidth,U=I.offsetHeight;return Math.abs(A.width-K)<=1&&(K=A.width),Math.abs(A.height-U)<=1&&(U=A.height),{x:I.offsetLeft,y:I.offsetTop,width:K,height:U}}function De(I){return fe(I)==="html"?I:I.assignedSlot||I.parentNode||(H(I)?I.host:null)||he(I)}function Qe(I){return["html","body","#document"].indexOf(fe(I))>=0?I.ownerDocument.body:k(I)&&Ce(I)?I:Qe(De(I))}function Mn(I,A){var K;A===void 0&&(A=[]);var U=Qe(I),B=U===((K=I.ownerDocument)==null?void 0:K.body),F=z(U),ne=B?[F].concat(F.visualViewport||[],Ce(U)?U:[]):U,ae=A.concat(ne);return B?ae:ae.concat(Mn(De(ne)))}function Pn(I){return["table","td","th"].indexOf(fe(I))>=0}function gn(I){return!k(I)||je(I).position==="fixed"?null:I.offsetParent}function An(I){var A=/firefox/i.test(J()),K=/Trident/i.test(J());if(K&&k(I)){var U=je(I);if(U.position==="fixed")return null}var B=De(I);for(H(B)&&(B=B.host);k(B)&&["html","body"].indexOf(fe(B))<0;){var F=je(B);if(F.transform!=="none"||F.perspective!=="none"||F.contain==="paint"||["transform","perspective"].indexOf(F.willChange)!==-1||A&&F.willChange==="filter"||A&&F.filter&&F.filter!=="none")return B;B=B.parentNode}return null}function xn(I){for(var A=z(I),K=gn(I);K&&Pn(K)&&je(K).position==="static";)K=gn(K);return K&&(fe(K)==="html"||fe(K)==="body"&&je(K).position==="static")?A:K||An(I)||A}var cn="top",Se="bottom",ze="right",Oe="left",Je="auto",Ze=[cn,Se,ze,Oe],Xe="start",qe="end",Un="clippingParents",kn="viewport",Rn="popper",En="reference",on=Ze.reduce(function(I,A){return I.concat([A+"-"+Xe,A+"-"+qe])},[]),Pe=[].concat(Ze,[Je]).reduce(function(I,A){return I.concat([A,A+"-"+Xe,A+"-"+qe])},[]),Re="beforeRead",ke="read",nn="afterRead",_n="beforeMain",In="main",Wn="afterMain",Kn="beforeWrite",wn="write",at="afterWrite",jt=[Re,ke,nn,_n,In,Wn,Kn,wn,at];function Bt(I){var A=new Map,K=new Set,U=[];I.forEach(function(F){A.set(F.name,F)});function B(F){K.add(F.name);var ne=[].concat(F.requires||[],F.requiresIfExists||[]);ne.forEach(function(ae){if(!K.has(ae)){var ce=A.get(ae);ce&&B(ce)}}),U.push(F)}return I.forEach(function(F){K.has(F.name)||B(F)}),U}function gr(I){var A=Bt(I);return jt.reduce(function(K,U){return K.concat(A.filter(function(B){return B.phase===U}))},[])}function Tr(I){var A;return function(){return A||(A=new Promise(function(K){Promise.resolve().then(function(){A=void 0,K(I())})})),A}}function Rr(I){var A=I.reduce(function(K,U){var B=K[U.name];return K[U.name]=B?Object.assign({},B,U,{options:Object.assign({},B.options,U.options),data:Object.assign({},B.data,U.data)}):U,K},{});return Object.keys(A).map(function(K){return A[K]})}var xr={placement:"bottom",modifiers:[],strategy:"absolute"};function pr(){for(var I=arguments.length,A=new Array(I),K=0;K=0?"x":"y"}function St(I){var A=I.reference,K=I.element,U=I.placement,B=U?it(U):null,F=U?nt(U):null,ne=A.x+A.width/2-K.width/2,ae=A.y+A.height/2-K.height/2,ce;switch(B){case cn:ce={x:ne,y:A.y-K.height};break;case Se:ce={x:ne,y:A.y+A.height};break;case ze:ce={x:A.x+A.width,y:ae};break;case Oe:ce={x:A.x-K.width,y:ae};break;default:ce={x:A.x,y:A.y}}var oe=B?zt(B):null;if(oe!=null){var le=oe==="y"?"height":"width";switch(F){case Xe:ce[oe]=ce[oe]-(A[le]/2-K[le]/2);break;case qe:ce[oe]=ce[oe]+(A[le]/2-K[le]/2);break;default:}}return ce}function rt(I){var A=I.state,K=I.name;A.modifiersData[K]=St({reference:A.rects.reference,element:A.rects.popper,strategy:"absolute",placement:A.placement})}var te={name:"popperOffsets",enabled:!0,phase:"read",fn:rt,data:{}},Ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ya(I,A){var K=I.x,U=I.y,B=A.devicePixelRatio||1;return{x:Z(K*B)/B||0,y:Z(U*B)/B||0}}function xe(I){var A,K=I.popper,U=I.popperRect,B=I.placement,F=I.variation,ne=I.offsets,ae=I.position,ce=I.gpuAcceleration,oe=I.adaptive,le=I.roundOffsets,pe=I.isFixed,Ie=ne.x,ge=Ie===void 0?0:Ie,Ae=ne.y,Le=Ae===void 0?0:Ae,He=typeof le=="function"?le({x:ge,y:Le}):{x:ge,y:Le};ge=He.x,Le=He.y;var Ve=ne.hasOwnProperty("x"),tn=ne.hasOwnProperty("y"),fn=Oe,Te=cn,Ye=window;if(oe){var un=xn(K),Sn="clientHeight",jn="clientWidth";if(un===z(K)&&(un=he(K),je(un).position!=="static"&&ae==="absolute"&&(Sn="scrollHeight",jn="scrollWidth")),un=un,B===cn||(B===Oe||B===ze)&&F===qe){Te=Se;var Cn=pe&&un===Ye&&Ye.visualViewport?Ye.visualViewport.height:un[Sn];Le-=Cn-U.height,Le*=ce?1:-1}if(B===Oe||(B===cn||B===Se)&&F===qe){fn=ze;var Fe=pe&&un===Ye&&Ye.visualViewport?Ye.visualViewport.width:un[jn];ge-=Fe-U.width,ge*=ce?1:-1}}var pn=Object.assign({position:ae},oe&&Ue),hn=le===!0?ya({x:ge,y:Le},z(K)):{x:ge,y:Le};if(ge=hn.x,Le=hn.y,ce){var Tn;return Object.assign({},pn,(Tn={},Tn[Te]=tn?"0":"",Tn[fn]=Ve?"0":"",Tn.transform=(Ye.devicePixelRatio||1)<=1?"translate("+ge+"px, "+Le+"px)":"translate3d("+ge+"px, "+Le+"px, 0)",Tn))}return Object.assign({},pn,(A={},A[Te]=tn?Le+"px":"",A[fn]=Ve?ge+"px":"",A.transform="",A))}function We(I){var A=I.state,K=I.options,U=K.gpuAcceleration,B=U===void 0?!0:U,F=K.adaptive,ne=F===void 0?!0:F,ae=K.roundOffsets,ce=ae===void 0?!0:ae,oe={placement:it(A.placement),variation:nt(A.placement),popper:A.elements.popper,popperRect:A.rects.popper,gpuAcceleration:B,isFixed:A.options.strategy==="fixed"};A.modifiersData.popperOffsets!=null&&(A.styles.popper=Object.assign({},A.styles.popper,xe(Object.assign({},oe,{offsets:A.modifiersData.popperOffsets,position:A.options.strategy,adaptive:ne,roundOffsets:ce})))),A.modifiersData.arrow!=null&&(A.styles.arrow=Object.assign({},A.styles.arrow,xe(Object.assign({},oe,{offsets:A.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ce})))),A.attributes.popper=Object.assign({},A.attributes.popper,{"data-popper-placement":A.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:We,data:{}};function me(I){var A=I.state;Object.keys(A.elements).forEach(function(K){var U=A.styles[K]||{},B=A.attributes[K]||{},F=A.elements[K];!k(F)||!fe(F)||(Object.assign(F.style,U),Object.keys(B).forEach(function(ne){var ae=B[ne];ae===!1?F.removeAttribute(ne):F.setAttribute(ne,ae===!0?"":ae)}))})}function Be(I){var A=I.state,K={popper:{position:A.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(A.elements.popper.style,K.popper),A.styles=K,A.elements.arrow&&Object.assign(A.elements.arrow.style,K.arrow),function(){Object.keys(A.elements).forEach(function(U){var B=A.elements[U],F=A.attributes[U]||{},ne=Object.keys(A.styles.hasOwnProperty(U)?A.styles[U]:K[U]),ae=ne.reduce(function(ce,oe){return ce[oe]="",ce},{});!k(B)||!fe(B)||(Object.assign(B.style,ae),Object.keys(F).forEach(function(ce){B.removeAttribute(ce)}))})}}var Dn={name:"applyStyles",enabled:!0,phase:"write",fn:me,effect:Be,requires:["computeStyles"]};function an(I,A,K){var U=it(I),B=[Oe,cn].indexOf(U)>=0?-1:1,F=typeof K=="function"?K(Object.assign({},A,{placement:I})):K,ne=F[0],ae=F[1];return ne=ne||0,ae=(ae||0)*B,[Oe,ze].indexOf(U)>=0?{x:ae,y:ne}:{x:ne,y:ae}}function Qn(I){var A=I.state,K=I.options,U=I.name,B=K.offset,F=B===void 0?[0,0]:B,ne=Pe.reduce(function(le,pe){return le[pe]=an(pe,A.rects,F),le},{}),ae=ne[A.placement],ce=ae.x,oe=ae.y;A.modifiersData.popperOffsets!=null&&(A.modifiersData.popperOffsets.x+=ce,A.modifiersData.popperOffsets.y+=oe),A.modifiersData[U]=ne}var ot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qn},ct={left:"right",right:"left",bottom:"top",top:"bottom"};function Bn(I){return I.replace(/left|right|bottom|top/g,function(A){return ct[A]})}var $e={start:"end",end:"start"};function Zn(I){return I.replace(/start|end/g,function(A){return $e[A]})}function $t(I,A){var K=z(I),U=he(I),B=K.visualViewport,F=U.clientWidth,ne=U.clientHeight,ae=0,ce=0;if(B){F=B.width,ne=B.height;var oe=Q();(oe||!oe&&A==="fixed")&&(ae=B.offsetLeft,ce=B.offsetTop)}return{width:F,height:ne,x:ae+be(I),y:ce}}function Lr(I){var A,K=he(I),U=ee(I),B=(A=I.ownerDocument)==null?void 0:A.body,F=Y(K.scrollWidth,K.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),ne=Y(K.scrollHeight,K.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),ae=-U.scrollLeft+be(I),ce=-U.scrollTop;return je(B||K).direction==="rtl"&&(ae+=Y(K.clientWidth,B?B.clientWidth:0)-F),{width:F,height:ne,x:ae,y:ce}}function Wo(I,A){var K=A.getRootNode&&A.getRootNode();if(I.contains(A))return!0;if(K&&H(K)){var U=A;do{if(U&&I.isSameNode(U))return!0;U=U.parentNode||U.host}while(U)}return!1}function Qr(I){return Object.assign({},I,{left:I.x,top:I.y,right:I.x+I.width,bottom:I.y+I.height})}function Kr(I,A){var K=X(I,!1,A==="fixed");return K.top=K.top+I.clientTop,K.left=K.left+I.clientLeft,K.bottom=K.top+I.clientHeight,K.right=K.left+I.clientWidth,K.width=I.clientWidth,K.height=I.clientHeight,K.x=K.left,K.y=K.top,K}function Jt(I,A,K){return A===kn?Qr($t(I,K)):V(A)?Kr(A,K):Qr(Lr(he(I)))}function nl(I){var A=Mn(De(I)),K=["absolute","fixed"].indexOf(je(I).position)>=0,U=K&&k(I)?xn(I):I;return V(U)?A.filter(function(B){return V(B)&&Wo(B,U)&&fe(B)!=="body"}):[]}function Qt(I,A,K,U){var B=A==="clippingParents"?nl(I):[].concat(A),F=[].concat(B,[K]),ne=F[0],ae=F.reduce(function(ce,oe){var le=Jt(I,oe,U);return ce.top=Y(le.top,ce.top),ce.right=q(le.right,ce.right),ce.bottom=q(le.bottom,ce.bottom),ce.left=Y(le.left,ce.left),ce},Jt(I,ne,U));return ae.width=ae.right-ae.left,ae.height=ae.bottom-ae.top,ae.x=ae.left,ae.y=ae.top,ae}function Yi(){return{top:0,right:0,bottom:0,left:0}}function Ji(I){return Object.assign({},Yi(),I)}function Qi(I,A){return A.reduce(function(K,U){return K[U]=I,K},{})}function Ur(I,A){A===void 0&&(A={});var K=A,U=K.placement,B=U===void 0?I.placement:U,F=K.strategy,ne=F===void 0?I.strategy:F,ae=K.boundary,ce=ae===void 0?Un:ae,oe=K.rootBoundary,le=oe===void 0?kn:oe,pe=K.elementContext,Ie=pe===void 0?Rn:pe,ge=K.altBoundary,Ae=ge===void 0?!1:ge,Le=K.padding,He=Le===void 0?0:Le,Ve=Ji(typeof He!="number"?He:Qi(He,Ze)),tn=Ie===Rn?En:Rn,fn=I.rects.popper,Te=I.elements[Ae?tn:Ie],Ye=Qt(V(Te)?Te:Te.contextElement||he(I.elements.popper),ce,le,ne),un=X(I.elements.reference),Sn=St({reference:un,element:fn,strategy:"absolute",placement:B}),jn=Qr(Object.assign({},fn,Sn)),Cn=Ie===Rn?jn:un,Fe={top:Ye.top-Cn.top+Ve.top,bottom:Cn.bottom-Ye.bottom+Ve.bottom,left:Ye.left-Cn.left+Ve.left,right:Cn.right-Ye.right+Ve.right},pn=I.modifiersData.offset;if(Ie===Rn&&pn){var hn=pn[B];Object.keys(Fe).forEach(function(Tn){var Xn=[ze,Se].indexOf(Tn)>=0?1:-1,Ot=[cn,Se].indexOf(Tn)>=0?"y":"x";Fe[Tn]+=hn[Ot]*Xn})}return Fe}function Oa(I,A){A===void 0&&(A={});var K=A,U=K.placement,B=K.boundary,F=K.rootBoundary,ne=K.padding,ae=K.flipVariations,ce=K.allowedAutoPlacements,oe=ce===void 0?Pe:ce,le=nt(U),pe=le?ae?on:on.filter(function(Ae){return nt(Ae)===le}):Ze,Ie=pe.filter(function(Ae){return oe.indexOf(Ae)>=0});Ie.length===0&&(Ie=pe);var ge=Ie.reduce(function(Ae,Le){return Ae[Le]=Ur(I,{placement:Le,boundary:B,rootBoundary:F,padding:ne})[it(Le)],Ae},{});return Object.keys(ge).sort(function(Ae,Le){return ge[Ae]-ge[Le]})}function wo(I){if(it(I)===Je)return[];var A=Bn(I);return[Zn(I),A,Zn(A)]}function Ma(I){var A=I.state,K=I.options,U=I.name;if(!A.modifiersData[U]._skip){for(var B=K.mainAxis,F=B===void 0?!0:B,ne=K.altAxis,ae=ne===void 0?!0:ne,ce=K.fallbackPlacements,oe=K.padding,le=K.boundary,pe=K.rootBoundary,Ie=K.altBoundary,ge=K.flipVariations,Ae=ge===void 0?!0:ge,Le=K.allowedAutoPlacements,He=A.options.placement,Ve=it(He),tn=Ve===He,fn=ce||(tn||!Ae?[Bn(He)]:wo(He)),Te=[He].concat(fn).reduce(function(Xr,Ut){return Xr.concat(it(Ut)===Je?Oa(A,{placement:Ut,boundary:le,rootBoundary:pe,padding:oe,flipVariations:Ae,allowedAutoPlacements:Le}):Ut)},[]),Ye=A.rects.reference,un=A.rects.popper,Sn=new Map,jn=!0,Cn=Te[0],Fe=0;Fe=0,Ot=Xn?"width":"height",Jn=Ur(A,{placement:pn,boundary:le,rootBoundary:pe,altBoundary:Ie,padding:oe}),ut=Xn?Tn?ze:Oe:Tn?Se:cn;Ye[Ot]>un[Ot]&&(ut=Bn(ut));var fr=Bn(ut),Nn=[];if(F&&Nn.push(Jn[hn]<=0),ae&&Nn.push(Jn[ut]<=0,Jn[fr]<=0),Nn.every(function(Xr){return Xr})){Cn=pn,jn=!1;break}Sn.set(pn,Nn)}if(jn)for(var tt=Ae?3:1,ht=function(Ut){var Do=Te.find(function(So){var Vn=Sn.get(So);if(Vn)return Vn.slice(0,Ut).every(function(bo){return bo})});if(Do)return Cn=Do,"break"},mt=tt;mt>0;mt--){var hr=ht(mt);if(hr==="break")break}A.placement!==Cn&&(A.modifiersData[U]._skip=!0,A.placement=Cn,A.reset=!0)}}var tl={name:"flip",enabled:!0,phase:"main",fn:Ma,requiresIfExists:["offset"],data:{_skip:!1}};function rl(I){return I==="x"?"y":"x"}function Zr(I,A,K){return Y(I,q(A,K))}function Zi(I,A,K){var U=Zr(I,A,K);return U>K?K:U}function ti(I){var A=I.state,K=I.options,U=I.name,B=K.mainAxis,F=B===void 0?!0:B,ne=K.altAxis,ae=ne===void 0?!1:ne,ce=K.boundary,oe=K.rootBoundary,le=K.altBoundary,pe=K.padding,Ie=K.tether,ge=Ie===void 0?!0:Ie,Ae=K.tetherOffset,Le=Ae===void 0?0:Ae,He=Ur(A,{boundary:ce,rootBoundary:oe,padding:pe,altBoundary:le}),Ve=it(A.placement),tn=nt(A.placement),fn=!tn,Te=zt(Ve),Ye=rl(Te),un=A.modifiersData.popperOffsets,Sn=A.rects.reference,jn=A.rects.popper,Cn=typeof Le=="function"?Le(Object.assign({},A.rects,{placement:A.placement})):Le,Fe=typeof Cn=="number"?{mainAxis:Cn,altAxis:Cn}:Object.assign({mainAxis:0,altAxis:0},Cn),pn=A.modifiersData.offset?A.modifiersData.offset[A.placement]:null,hn={x:0,y:0};if(un){if(F){var Tn,Xn=Te==="y"?cn:Oe,Ot=Te==="y"?Se:ze,Jn=Te==="y"?"height":"width",ut=un[Te],fr=ut+He[Xn],Nn=ut-He[Ot],tt=ge?-jn[Jn]/2:0,ht=tn===Xe?Sn[Jn]:jn[Jn],mt=tn===Xe?-jn[Jn]:-Sn[Jn],hr=A.elements.arrow,Xr=ge&&hr?en(hr):{width:0,height:0},Ut=A.modifiersData["arrow#persistent"]?A.modifiersData["arrow#persistent"].padding:Yi(),Do=Ut[Xn],So=Ut[Ot],Vn=Zr(0,Sn[Jn],Xr[Jn]),bo=fn?Sn[Jn]/2-tt-Vn-Do-Fe.mainAxis:ht-Vn-Do-Fe.mainAxis,zi=fn?-Sn[Jn]/2+tt+Vn+So+Fe.mainAxis:mt+Vn+So+Fe.mainAxis,ma=A.elements.arrow&&xn(A.elements.arrow),Va=ma?Te==="y"?ma.clientTop||0:ma.clientLeft||0:0,Ha=(Tn=pn==null?void 0:pn[Te])!=null?Tn:0,lo=ut+bo-Ha-Va,et=ut+zi-Ha,st=Zr(ge?q(fr,lo):fr,ut,ge?Y(Nn,et):Nn);un[Te]=st,hn[Te]=st-ut}if(ae){var dt,Ga=Te==="x"?cn:Oe,va=Te==="x"?Se:ze,tr=un[Ye],Xa=Ye==="y"?"height":"width",pt=tr+He[Ga],Ya=tr-He[va],ga=[cn,Oe].indexOf(Ve)!==-1,Ja=(dt=pn==null?void 0:pn[Ye])!=null?dt:0,rr=ga?pt:tr-Sn[Xa]-jn[Xa]-Ja+Fe.altAxis,Nt=ga?tr+Sn[Xa]+jn[Xa]-Ja-Fe.altAxis:Ya,Ao=ge&&ga?Zi(rr,tr,Nt):Zr(ge?rr:pt,tr,ge?Nt:Ya);un[Ye]=Ao,hn[Ye]=Ao-tr}A.modifiersData[U]=hn}}var zo={name:"preventOverflow",enabled:!0,phase:"main",fn:ti,requiresIfExists:["offset"]},ol=function(A,K){return A=typeof A=="function"?A(Object.assign({},K.rects,{placement:K.placement})):A,Ji(typeof A!="number"?A:Qi(A,Ze))};function ri(I){var A,K=I.state,U=I.name,B=I.options,F=K.elements.arrow,ne=K.modifiersData.popperOffsets,ae=it(K.placement),ce=zt(ae),oe=[Oe,ze].indexOf(ae)>=0,le=oe?"height":"width";if(!(!F||!ne)){var pe=ol(B.padding,K),Ie=en(F),ge=ce==="y"?cn:Oe,Ae=ce==="y"?Se:ze,Le=K.rects.reference[le]+K.rects.reference[ce]-ne[ce]-K.rects.popper[le],He=ne[ce]-K.rects.reference[ce],Ve=xn(F),tn=Ve?ce==="y"?Ve.clientHeight||0:Ve.clientWidth||0:0,fn=Le/2-He/2,Te=pe[ge],Ye=tn-Ie[le]-pe[Ae],un=tn/2-Ie[le]/2+fn,Sn=Zr(Te,un,Ye),jn=ce;K.modifiersData[U]=(A={},A[jn]=Sn,A.centerOffset=Sn-un,A)}}function Fn(I){var A=I.state,K=I.options,U=K.element,B=U===void 0?"[data-popper-arrow]":U;B!=null&&(typeof B=="string"&&(B=A.elements.popper.querySelector(B),!B)||Wo(A.elements.popper,B)&&(A.elements.arrow=B))}var qi={name:"arrow",enabled:!0,phase:"main",fn:ri,effect:Fn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oi(I,A,K){return K===void 0&&(K={x:0,y:0}),{top:I.top-A.height-K.y,right:I.right-A.width+K.x,bottom:I.bottom-A.height+K.y,left:I.left-A.width-K.x}}function Pa(I){return[cn,ze,Se,Oe].some(function(A){return I[A]>=0})}function es(I){var A=I.state,K=I.name,U=A.rects.reference,B=A.rects.popper,F=A.modifiersData.preventOverflow,ne=Ur(A,{elementContext:"reference"}),ae=Ur(A,{altBoundary:!0}),ce=oi(ne,U),oe=oi(ae,B,F),le=Pa(ce),pe=Pa(oe);A.modifiersData[K]={referenceClippingOffsets:ce,popperEscapeOffsets:oe,isReferenceHidden:le,hasPopperEscaped:pe},A.attributes.popper=Object.assign({},A.attributes.popper,{"data-popper-reference-hidden":le,"data-popper-escaped":pe})}var ns={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:es},ts=[ar,te,Me,Dn,ot,tl,zo,qi,ns],_a=Br({defaultModifiers:ts}),fo=n(32394);function Zt(){return Zt=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function ii(I,A){var K,U,B,F,ne={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return F={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function ae(oe){return function(le){return ce([oe,le])}}function ce(oe){if(K)throw new TypeError("Generator is already executing.");for(;ne;)try{if(K=1,U&&(B=oe[0]&2?U.return:oe[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,oe[1])).done)return B;switch(U=0,B&&(oe=[oe[0]&2,B.value]),oe[0]){case 0:case 1:B=oe;break;case 4:return ne.label++,{value:oe[1],done:!1};case 5:ne.label++,U=oe[1],oe=[0];continue;case 7:oe=ne.ops.pop(),ne.trys.pop();continue;default:if(B=ne.trys,!(B=B.length>0&&B[B.length-1])&&(oe[0]===6||oe[0]===2)){ne=0;continue}if(oe[0]===3&&(!B||oe[1]>B[0]&&oe[1]=0)&&(K[B]=I[B]);return K}function mo(I,A){return mo=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},mo(I,A)}var eo=(0,Wr.h)("ByondUi"),wr=[],zr=function(I){var A=wr.length;wr.push(null);var K=I||"byondui_"+A;return eo.log("allocated '"+K+"'"),{render:function(U){eo.log("rendering '"+K+"'"),wr[A]=K,Byond.winset(K,U)},unmount:function(){eo.log("unmounting '"+K+"'"),wr[A]=null,Byond.winset(K,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var I=0;I=0)&&(K[B]=I[B]);return K}function Fr(I,A){return Fr=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Fr(I,A)}var li=function(I,A,K,U){var B,F;if(I.length===0)return[];var ne=(0,$r.Tj)($r.yU.apply(void 0,[].concat(I)),function(oe){return(B=Math).min.apply(B,[].concat(oe))}),ae=(0,$r.Tj)($r.yU.apply(void 0,[].concat(I)),function(oe){return(F=Math).max.apply(F,[].concat(oe))});K!==void 0&&(ne[0]=K[0],ae[0]=K[1]),U!==void 0&&(ne[1]=U[0],ae[1]=U[1]);var ce=(0,$r.Tj)(I,function(oe){return(0,$r.Tj)((0,$r.yU)(oe,ne,ae,A),function(le){var pe=le[0],Ie=le[1],ge=le[2],Ae=le[3];return(pe-Ie)/(ge-Ie)*Ae})});return ce},Go=function(I){for(var A="",K=0;K0){var tn=Ve[0],fn=Ve[Ve.length-1];Ve.push([He[0]+Ae,fn[1]]),Ve.push([He[0]+Ae,-Ae]),Ve.push([-Ae,-Ae]),Ve.push([-Ae,tn[1]])}var Te=Go(Ve),Ye=kr({},Le,{className:"",ref:this.ref});return(0,e.jsx)(C.az,kr({position:"relative"},Le,{children:(0,e.jsx)(C.az,kr({},Ye,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+He[0]+" "+He[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, -"+He[1]+")",fill:le,stroke:Ie,strokeWidth:Ae,points:Te})})}))}))},A}(t.Component),ci={Line:sl};/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function Xo(){return Xo=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function ba(I){var A=I.children,K=I.color,U=I.title,B=I.buttons,F=I.icon,ne=I.child_mt,ae=ne===void 0?1:ne,ce=Yo(I,["children","color","title","buttons","icon","child_mt"]),oe=(0,t.useState)(I.open),le=oe[0],pe=oe[1];return(0,e.jsxs)(C.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(xt,Xo({fluid:!0,color:K,icon:F||(le?"chevron-down":"chevron-right"),onClick:function(){return pe(!le)}},ce,{children:U}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),le&&(0,e.jsx)(C.az,{mt:ae,children:A})]})}/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function Aa(){return Aa=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function cl(I){var A=I.content,K=I.children,U=I.className,B=ll(I,["content","children","className"]);return B.color=A?null:"default",B.backgroundColor=I.color||"default",(0,e.jsx)("div",Aa({className:(0,j.Ly)(["ColorBox",U,(0,C.WP)(B)])},(0,C.Fl)(B),{children:A||"."}))}/** - * @file - * @copyright 2022 raffclar - * @license MIT - */var is=function(I){var A=I.title,K=I.onClose,U=I.children,B=I.width,F=I.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(C.az,{className:"Dialog__content",width:B||"370px",height:F,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:A}),(0,e.jsx)(C.az,{mr:2,children:(0,e.jsx)(xt,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:K})})]}),U]})})},vo=function(I){var A=I.onClick,K=I.children;return(0,e.jsx)(xt,{onClick:A,className:"Dialog__button",verticalAlignContent:"middle",children:K})};is.Button=vo;var pc=function(I){var A=I.documentName,K=I.onSave,U=I.onDiscard,B=I.onClose;return _jsxs(is,{title:"Notepad",onClose:B,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",A,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(vo,{onClick:K,children:"Save"}),_jsx(vo,{onClick:U,children:"Don't Save"}),_jsx(vo,{onClick:B,children:"Cancel"})]})]})};/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function ui(){return ui=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function ss(I){var A=I.className,K=I.children,U=ul(I,["className","children"]);return(0,e.jsx)(C.az,ui({className:(0,j.Ly)(["Dimmer",A])},U,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:K})}))}/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function ls(I){var A=I.hidden,K=I.vertical;return(0,e.jsx)("div",{className:(0,j.Ly)(["Divider",A&&"Divider--hidden",K?"Divider--vertical":"Divider--horizontal"])})}var cs=n(31200),dl=n(77829);function us(I,A,K,U,B,F,ne){try{var ae=I[F](ne),ce=ae.value}catch(oe){K(oe);return}ae.done?A(ce):Promise.resolve(ce).then(U,B)}function fl(I){return function(){var A=this,K=arguments;return new Promise(function(U,B){var F=I.apply(A,K);function ne(ce){us(F,U,B,ne,ae,"next",ce)}function ae(ce){us(F,U,B,ne,ae,"throw",ce)}ne(void 0)})}}function di(){return di=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function hl(I,A){var K,U,B,F,ne={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return F={next:ae(0),throw:ae(1),return:ae(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function ae(oe){return function(le){return ce([oe,le])}}function ce(oe){if(K)throw new TypeError("Generator is already executing.");for(;ne;)try{if(K=1,U&&(B=oe[0]&2?U.return:oe[0]?U.throw||((B=U.return)&&B.call(U),0):U.next)&&!(B=B.call(U,oe[1])).done)return B;switch(U=0,B&&(oe=[oe[0]&2,B.value]),oe[0]){case 0:case 1:B=oe;break;case 4:return ne.label++,{value:oe[1],done:!1};case 5:ne.label++,U=oe[1],oe=[0];continue;case 7:oe=ne.ops.pop(),ne.trys.pop();continue;default:if(B=ne.trys,!(B=B.length>0&&B[B.length-1])&&(oe[0]===6||oe[0]===2)){ne=0;continue}if(oe[0]===3&&(!B||oe[1]>B[0]&&oe[1]0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},F))},B.handleDragStart=function(F){var ne=B.props,ae=ne.value,ce=ne.dragMatrix,oe=B.state.editing;oe||(document.body.style["pointer-events"]="none",B.ref=F.target,B.setState({dragging:!1,origin:gi(F,ce),value:ae,internalValue:ae}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var le=B.state,pe=le.dragging,Ie=le.value,ge=B.props.onDrag;pe&&ge&&ge(F,Ie)},B.props.updateRate||gl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(F){var ne=B.props,ae=ne.minValue,ce=ne.maxValue,oe=ne.step,le=ne.stepPixelSize,pe=ne.dragMatrix;B.setState(function(Ie){var ge=mi({},Ie),Ae=gi(F,pe)-ge.origin;if(Ie.dragging){var Le=Number.isFinite(ae)?ae%oe:0;ge.internalValue=(0,o.qE)(ge.internalValue+Ae*oe/le,ae-oe,ce+oe),ge.value=(0,o.qE)(ge.internalValue-ge.internalValue%oe+Le,ae,ce),ge.origin=gi(F,pe)}else Math.abs(Ae)>4&&(ge.dragging=!0);return ge})},B.handleDragEnd=function(F){var ne=B.props,ae=ne.onChange,ce=ne.onDrag,oe=B.state,le=oe.dragging,pe=oe.value,Ie=oe.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!le,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),le)B.suppressFlicker(),ae&&ae(F,pe),ce&&ce(F,pe);else if(B.inputRef){var ge=B.inputRef.current;ge.value=Ie,setTimeout(function(){ge.focus(),ge.select()},100)}},B}var K=A.prototype;return K.render=function(){var B=this,F=this.state,ne=F.dragging,ae=F.editing,ce=F.value,oe=F.suppressingFlicker,le=this.props,pe=le.animated,Ie=le.value,ge=le.unit,Ae=le.minValue,Le=le.maxValue,He=le.unclamped,Ve=le.format,tn=le.onChange,fn=le.onDrag,Te=le.children,Ye=le.height,un=le.lineHeight,Sn=le.fontSize,jn=Ie;(ne||oe)&&(jn=ce);var Cn=(0,e.jsxs)(e.Fragment,{children:[pe&&!ne&&!oe?(0,e.jsx)(l,{value:jn,format:Ve}):Ve?Ve(jn):jn,ge?" "+ge:""]}),Fe=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ae?void 0:"none",height:Ye,lineHeight:un,fontsize:Sn},onBlur:function(pn){if(ae){var hn;if(He?hn=parseFloat(pn.target.value):hn=(0,o.qE)(parseFloat(pn.target.value),Ae,Le),Number.isNaN(hn)){B.setState({editing:!1});return}B.setState({editing:!1,value:hn}),B.suppressFlicker(),tn&&tn(pn,hn),fn&&fn(pn,hn)}},onKeyDown:function(pn){if(pn.keyCode===13){var hn;if(He?hn=parseFloat(pn.target.value):hn=(0,o.qE)(parseFloat(pn.target.value),Ae,Le),Number.isNaN(hn)){B.setState({editing:!1});return}B.setState({editing:!1,value:hn}),B.suppressFlicker(),tn&&tn(pn,hn),fn&&fn(pn,hn);return}if(pn.keyCode===27){B.setState({editing:!1});return}}});return Te({dragging:ne,editing:ae,value:Ie,displayValue:jn,displayElement:Cn,inputElement:Fe,handleDragStart:this.handleDragStart})},A}(t.Component);Ta.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var xl=n(20878),xi=n.n(xl),Ra=function(A){return Array.isArray(A)?A[0]:A},pl=function(A){if(typeof A=="function"){for(var K=arguments.length,U=new Array(K>1?K-1:0),B=1;BTe.length-3?Te.length-1:Nn-2;var mt=(tt=Ot.current)==null?void 0:tt.children[ht];mt==null||mt.scrollIntoView({block:"nearest"})}function fr(Nn){if(!(Te.length<1||oe)){var tt=0,ht=Te.length-1,mt;Jn<0?mt=Nn==="next"?ht:tt:Nn==="next"?mt=Jn===ht?tt:Jn+1:mt=Jn===tt?ht:Jn-1,hn&&K&&ut(mt),tn==null||tn(Jo(Te[mt]))}}return(0,t.useEffect)(function(){var Nn;hn&&(K&&Jn!==jl&&ut(Jn),(Nn=Ot.current)==null||Nn.focus())},[hn]),(0,e.jsx)(ms,{isOpen:hn,onClickOutside:function(){return Tn(!1)},placement:Ye?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Le},ref:Ot,children:[Te.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),Te.map(function(Nn,tt){var ht=Jo(Nn);return(0,e.jsx)("div",{className:(0,j.Ly)(["Dropdown__menuentry",jn===ht&&"selected"]),onClick:function(){Tn(!1),tn==null||tn(ht)},children:typeof Nn=="string"?Nn:Nn.displayText},tt)})]}),children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,C.zA)(Fe)},children:[(0,e.jsxs)("div",{className:(0,j.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+ce,oe&&"Button--disabled",B]),onClick:function(Nn){oe&&!hn||(Tn(!hn),Ve==null||Ve(Nn))},children:[pe&&(0,e.jsx)(N,{mr:1,name:pe,rotation:Ie,spin:ge}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:ne?"hidden":"visible"},children:le||jn&&Jo(jn)||Sn}),!He&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(N,{name:Xn?"chevron-up":"chevron-down"})})]}),U&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(xt,{disabled:oe,height:1.8,icon:"chevron-left",onClick:function(){fr("previous")}}),(0,e.jsx)(xt,{disabled:oe,height:1.8,icon:"chevron-right",onClick:function(){fr("next")}})]})]})})}function Ba(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function go(){return go=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var ji=function(I){return(0,j.Ly)(["Flex",I.inline&&"Flex--inline",(0,C.WP)(I)])},Ci=function(I){var A=I.className,K=I.direction,U=I.wrap,B=I.align,F=I.justify,ne=I.inline,ae=po(I,["className","direction","wrap","align","justify","inline"]);return(0,C.Fl)(sr({style:sr({},ae.style,{flexDirection:K,flexWrap:U===!0?"wrap":U,alignItems:B,justifyContent:F})},ae))},jr=function(I){var A=I.className,K=po(I,["className"]);return(0,e.jsx)("div",sr({className:(0,j.Ly)([A,ji(K)])},Ci(K)))},yi=function(I){return(0,j.Ly)(["Flex__item",(0,C.WP)(I)])},Oi=function(I){var A=I.className,K=I.style,U=I.grow,B=I.order,F=I.shrink,ne=I.basis,ae=I.align,ce=po(I,["className","style","grow","order","shrink","basis","align"]),oe,le=(oe=ne!=null?ne:I.width)!=null?oe:U!==void 0?0:void 0;return(0,C.Fl)(sr({style:sr({},K,{flexGrow:U!==void 0&&Number(U),flexShrink:F!==void 0&&Number(F),flexBasis:(0,C.zA)(le),order:B,alignSelf:ae})},ce))},yl=function(I){var A=I.className,K=po(I,["className"]);return(0,e.jsx)("div",sr({className:(0,j.Ly)([A,yi(I)])},Oi(K)))};jr.Item=yl;var La=n(19996);/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function Qo(){return Qo=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Zo(I){var A=I.children,K=kt(I,["children"]);return Wr.v.error("Grid component is deprecated. Use a Stack instead."),(0,e.jsx)(La.XI,Qo({},K,{children:(0,e.jsx)(La.XI.Row,{children:A})}))}function xs(I){var A=I.size,K=A===void 0?1:A,U=I.style,B=kt(I,["size","style"]);return(0,e.jsx)(La.XI.Cell,Qo({style:Qo({width:K+"%"},U)},B))}Zo.Column=xs;var ps=n(79500);/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function qo(){return qo=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var Mi=function(I){var A=I.className,K=I.value,U=I.minValue,B=U===void 0?0:U,F=I.maxValue,ne=F===void 0?1:F,ae=I.color,ce=I.ranges,oe=ce===void 0?{}:ce,le=I.children,pe=Es(I,["className","value","minValue","maxValue","color","ranges","children"]),Ie=(0,o.hs)(K,B,ne),ge=le!==void 0,Ae=ae||(0,o.TG)(K,oe)||"default",Le=(0,C.Fl)(pe),He=["ProgressBar",A,(0,C.WP)(pe)],Ve={width:(0,o.J$)(Ie)*100+"%"};return ps.NE.includes(Ae)||Ae==="default"?He.push("ProgressBar--color--"+Ae):(Le.style=qo({},Le.style,{borderColor:Ae}),Ve.backgroundColor=Ae),(0,e.jsxs)("div",qo({className:(0,j.Ly)(He)},Le,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ve}),(0,e.jsx)("div",{className:"ProgressBar__content",children:ge?le:(0,o.Mg)(Ie*100)+"%"})]}))};/** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */function Eo(){return Eo=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var Vr=function(I){var A=I.className,K=I.vertical,U=I.fill,B=I.zebra,F=Pi(I,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Eo({className:(0,j.Ly)(["Stack",U&&"Stack--fill",K?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",A,ji(I)])},Ci(Eo({direction:K?"column":"row"},F))))},_i=function(I){var A=I.className,K=I.innerRef,U=Pi(I,["className","innerRef"]);return(0,e.jsx)("div",Eo({className:(0,j.Ly)(["Stack__item",A,yi(U)]),ref:K},Oi(U)))};Vr.Item=_i;var ea=function(I){var A=I.className,K=I.hidden,U=Pi(I,["className","hidden"]);return(0,e.jsx)("div",Eo({className:(0,j.Ly)(["Stack__item","Stack__divider",K&&"Stack__divider--hidden",A,yi(U)])},Oi(U)))};Vr.Divider=ea;function js(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function Ii(){return Ii=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function ta(I,A){return ta=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},ta(I,A)}var Ol=.5,Si=1.5,Ml=.1,Pl=null;/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function Ka(){return Ka=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function jo(I){return typeof I!="number"&&typeof I!="string"?"":String(I)}var ys=(0,qr.sg)(function(I){return I()},250);function Hr(I){var A=I.autoFocus,K=I.autoSelect,U=I.className,B=I.disabled,F=I.expensive,ne=I.fluid,ae=I.maxLength,ce=I.monospace,oe=I.onChange,le=I.onEnter,pe=I.onEscape,Ie=I.onInput,ge=I.placeholder,Ae=I.selfClear,Le=I.value,He=Cs(I,["autoFocus","autoSelect","className","disabled","expensive","fluid","maxLength","monospace","onChange","onEnter","onEscape","onInput","placeholder","selfClear","value"]),Ve=(0,t.useRef)(null);function tn(Te){var Ye;if(Ie){var un=(Ye=Te.currentTarget)==null?void 0:Ye.value;F?ys(function(){return Ie(Te,un)}):Ie(Te,un)}}function fn(Te){if(Te.key===S._.Enter){le==null||le(Te,Te.currentTarget.value),Ae?Te.currentTarget.value="":(Te.currentTarget.blur(),oe==null||oe(Te,Te.currentTarget.value));return}(0,S.K)(Te.key)&&(pe==null||pe(Te),Te.currentTarget.value=jo(Le),Te.currentTarget.blur())}return(0,t.useEffect)(function(){var Te=Ve.current;if(Te){var Ye=jo(Le);Te.value!==Ye&&(Te.value=Ye),!(!A&&!K)&&setTimeout(function(){Te.focus(),K&&Te.select()},1)}},[]),(0,t.useEffect)(function(){var Te=Ve.current;if(Te&&document.activeElement!==Te){var Ye=jo(Le);Te.value!==Ye&&(Te.value=Ye)}}),(0,e.jsxs)(C.az,Ka({className:(0,j.Ly)(["Input",ne&&"Input--fluid",ce&&"Input--monospace",U])},He,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",disabled:B,maxLength:ae,onBlur:function(Te){return oe==null?void 0:oe(Te,Te.target.value)},onChange:tn,onKeyDown:fn,placeholder:ge,ref:Ve})]}))}var Os=n(52130);function Ms(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),A&&bi(I,A)}function bi(I,A){return bi=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},bi(I,A)}var Cc=null;/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function Cr(){return Cr=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Ps(I){var A=I.animated,K=I.format,U=I.maxValue,B=I.minValue,F=I.onChange,ne=I.onDrag,ae=I.step,ce=I.stepPixelSize,oe=I.suppressFlicker,le=I.unclamped,pe=I.unit,Ie=I.value,ge=I.bipolar,Ae=I.children,Le=I.className,He=I.color,Ve=I.fillValue,tn=I.ranges,fn=tn===void 0?{}:tn,Te=I.size,Ye=Te===void 0?1:Te,un=I.style,Sn=_l(I,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unclamped","unit","value","bipolar","children","className","color","fillValue","ranges","size","style"]);return(0,e.jsx)(Ta,{dragMatrix:[0,-1],animated:A,format:K,maxValue:U,minValue:B,onChange:F,onDrag:ne,step:ae,stepPixelSize:ce,suppressFlicker:oe,unclamped:le,unit:pe,value:Ie,children:function(jn){var Cn=jn.displayElement,Fe=jn.displayValue,pn=jn.dragging,hn=jn.handleDragStart,Tn=jn.inputElement,Xn=jn.value,Ot=(0,o.hs)(Ve!=null?Ve:Fe,B,U),Jn=(0,o.hs)(Fe,B,U),ut=He||(0,o.TG)(Ve!=null?Ve:Xn,fn)||"default",fr=Math.min((Jn-.5)*270,225);return(0,e.jsxs)("div",Cr({className:(0,j.Ly)(["Knob","Knob--color--"+ut,ge&&"Knob--bipolar",Le,(0,C.WP)(Sn)])},(0,C.Fl)(Cr({style:Cr({fontSize:Ye+"em"},un)},Sn)),{onMouseDown:hn,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+fr+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),pn&&(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(((ge?2.75:2)-Ot*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Tn]}))}})}/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function ra(){return ra=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Ua(I){var A=I.children,K=I.wrap,U=Yn(I,["children","wrap"]);return(0,e.jsx)(jr,ra({mx:-.5,wrap:K,align:"stretch",justify:"space-between"},U,{children:A}))}function Na(I){var A=I.label,K=I.children,U=I.mx,B=U===void 0?1:U,F=Yn(I,["label","children","mx"]);return(0,e.jsx)(jr.Item,{mx:B,children:(0,e.jsxs)(jr,ra({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},F,{children:[(0,e.jsx)(jr.Item,{}),(0,e.jsx)(jr.Item,{children:K}),(0,e.jsx)(jr.Item,{color:"label",children:A})]}))})}Ua.Item=Na;/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */var lr=function(I){var A=I.children;return(0,e.jsx)("table",{className:"LabeledList",children:A})},_s=function(I){var A=I.className,K=I.label,U=I.labelColor,B=U===void 0?"label":U,F=I.labelWrap,ne=I.color,ae=I.textAlign,ce=I.buttons,oe=I.content,le=I.children,pe=I.verticalAlign,Ie=pe===void 0?"baseline":pe,ge=I.tooltip,Ae;K&&(Ae=K,typeof K=="string"&&(Ae+=":")),ge!==void 0&&(Ae=(0,e.jsx)(bt,{content:ge,children:(0,e.jsx)(C.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Ae})}));var Le=(0,e.jsx)(C.az,{as:"td",color:B,className:(0,j.Ly)(["LabeledList__cell",!F&&"LabeledList__label--nowrap"]),verticalAlign:Ie,children:Ae});return(0,e.jsxs)("tr",{className:(0,j.Ly)(["LabeledList__row",A]),children:[Le,(0,e.jsxs)(C.az,{as:"td",color:ne,textAlign:ae,className:(0,j.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:ce?void 0:2,verticalAlign:Ie,children:[oe,le]}),ce&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:ce})]})},Ai=function(I){var A=I.size?(0,C.zA)(Math.max(0,I.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:A,paddingBottom:A},children:(0,e.jsx)(ls,{})})})};lr.Item=_s,lr.Divider=Ai;/** - * @file - * @copyright 2022 Aleksej Komarov - * @license MIT - */function no(){return no=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Wa(I,A){return Wa=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Wa(I,A)}var Il=function(I){"use strict";oa(A,I);function A(U){var B;return B=I.call(this,U)||this,B.handleClick=function(F){if(!B.props.menuRef.current){Wr.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(F.target)?Wr.v.log("Menu.handleClick(): Inside"):(Wr.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var K=A.prototype;return K.componentWillMount=function(){window.addEventListener("click",this.handleClick)},K.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},K.render=function(){var B=this.props,F=B.width,ne=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:F},children:ne})},A}(t.Component),Dl=function(I){"use strict";oa(A,I);function A(U){var B;return B=I.call(this,U)||this,B.menuRef=(0,t.createRef)(),B}var K=A.prototype;return K.render=function(){var B=this.props,F=B.open,ne=B.openWidth,ae=B.children,ce=B.disabled,oe=B.display,le=B.onMouseOver,pe=B.onClick,Ie=B.onOutsideClick,ge=to(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Ae=ge.className,Le=to(ge,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(C.az,no({className:(0,j.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Ae])},Le,{onClick:ce?function(){return null}:pe,onMouseOver:le,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:oe})})),F&&(0,e.jsx)(Il,{width:ne,menuRef:this.menuRef,onOutsideClick:Ie,children:ae})]})},A}(t.Component),aa=function(I){var A=I.entry,K=I.children,U=I.openWidth,B=I.display,F=I.setOpenMenuBar,ne=I.openMenuBar,ae=I.setOpenOnHover,ce=I.openOnHover,oe=I.disabled,le=I.className;return(0,e.jsx)(Dl,{openWidth:U,display:B,disabled:oe,open:ne===A,className:le,onClick:function(){var pe=ne===A?null:A;F(pe),ae(!ce)},onOutsideClick:function(){F(null),ae(!1)},onMouseOver:function(){ce&&F(A)},children:K})},wa=function(I){var A=I.value,K=I.displayText,U=I.onClick,B=I.checked;return(0,e.jsxs)(C.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return U(A)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(N,{size:1.3,name:"check"})}),K]})};aa.MenuItemToggle=wa;var za=function(I){var A=I.value,K=I.displayText,U=I.onClick;return(0,e.jsx)(C.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return U(A)},children:K})};aa.MenuItem=za;var Ti=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};aa.Separator=Ti;var Ri=function(I){var A=I.children;return(0,e.jsx)(C.az,{className:"MenuBar",children:A})};Ri.Dropdown=aa;/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function ia(){return ia=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Sl(I){var A=I.className,K=I.children,U=I.onEnter,B=Bi(I,["className","children","onEnter"]),F;return U&&(F=function(ne){ne.key===S._.Enter&&U(ne)}),(0,e.jsx)(ss,{onKeyDown:F,children:(0,e.jsx)("div",ia({className:(0,j.Ly)(["Modal",A,(0,C.WP)(B)])},(0,C.Fl)(B),{children:K}))})}var Li=n(7081);function Ki(){return Ki=Object.assign||function(I){for(var A=1;A500&&(Ie=500);var ge=oe.offsetY-256*pe;return ge<-200&&(ge=-200),ge>200&&(ge=200),oe.offsetX=Ie,oe.offsetY=ge,U.onZoom&&U.onZoom(oe.zoom),oe})},B}var K=A.prototype;return K.render=function(){var B=(0,Li.Oc)().config,F=this.state,ne=F.dragging,ae=F.offsetX,ce=F.offsetY,oe=F.zoom,le=oe===void 0?1:oe,pe=this.props.children,Ie=(0,cs.l)(B.map+"_nanomap_z"+B.mapZLevel+".png"),ge=this.props.zoomScale*le+"px",Ae={width:ge,height:ge,"margin-top":ce+"px","margin-left":ae+"px",overflow:"hidden",position:"relative","background-image":"url("+Ie+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:ne?"move":"auto"};return(0,e.jsxs)(C.az,{className:"NanoMap__container",children:[(0,e.jsx)(C.az,{style:Ae,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(C.az,{children:pe})}),(0,e.jsx)(nr,{zoom:le,onZoom:this.handleZoom})]})},A}(t.Component),Co=function(I){var A=I.x,K=I.y,U=I.zoom,B=U===void 0?1:U,F=I.icon,ne=I.tooltip,ae=I.color,ce=I.onClick,oe=function(Ie){er(Ie),ce&&ce(Ie)},le=A*2*B-B-3,pe=K*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(C.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:pe+"px",left:le+"px",onMouseDown:oe,children:[(0,e.jsx)(N,{name:F,color:ae,fontSize:"6px"}),(0,e.jsx)(bt,{content:ne})]})})};$a.Marker=Co;var nr=function(I){var A=(0,Li.Oc)(),K=A.act,U=A.config,B=A.data;return(0,e.jsx)(C.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(lr,{children:[(0,e.jsx)(lr.Item,{label:"Zoom",children:(0,e.jsx)(io,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(F){return F+"x"},value:I.zoom,onDrag:function(F,ne){return I.onZoom(F,ne)}})}),(0,e.jsx)(lr.Item,{label:"Z-Level",children:B.map_levels.sort(function(F,ne){return Number(F)-Number(ne)}).map(function(F){return(0,e.jsx)(xt,{selected:~~F===~~U.mapZLevel,onClick:function(){K("setZLevel",{mapZLevel:F})},children:F},F)})})]})})};$a.Zoomer=nr;/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function ro(){return ro=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Ui(I){var A=I.className,K=I.color,U=I.info,B=I.success,F=I.danger,ne=I.warning,ae=yr(I,["className","color","info","success","danger","warning"]);return(0,e.jsx)(C.az,ro({className:(0,j.Ly)(["NoticeBox",K&&"NoticeBox--color--"+K,U&&"NoticeBox--type--info",B&&"NoticeBox--type--success",ne&&"NoticeBox--type--warning ",F&&"NoticeBox--type--danger",A])},ae))}/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function Ni(){return Ni=Object.assign||function(I){for(var A=1;A0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},ce))},B.handleDragStart=function(ne){var ae=B.props,ce=ae.value,oe=ae.disabled,le=B.state.editing;oe||le||(document.body.style["pointer-events"]="none",B.ref=ne.target,B.setState({dragging:!1,origin:ne.screenY,value:ce,internalValue:ce}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var pe=B.state,Ie=pe.dragging,ge=pe.value,Ae=B.props.onDrag;Ie&&Ae&&Ae(+ge)},B.props.updateRate||la),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(ne){var ae=B.props,ce=ae.minValue,oe=ae.maxValue,le=ae.step,pe=ae.stepPixelSize;B.setState(function(Ie){var ge=Ni({},Ie),Ae=ge.origin-ne.screenY;if(Ie.dragging){var Le=Number.isFinite(ce)?ce%le:0;ge.internalValue=(0,o.qE)(Number(ge.internalValue)+Ae*le/(pe||1),ce-le,oe+le),ge.value=(0,o.qE)(Number(ge.internalValue)-Number(ge.internalValue)%le+Le,ce,oe),ge.origin=ne.screenY}else Math.abs(Ae)>4&&(ge.dragging=!0);return ge})},B.handleDragEnd=function(ne){var ae=B.props,ce=ae.onChange,oe=ae.onDrag,le=B.state,pe=le.dragging,Ie=le.value,ge=le.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!pe,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),pe)B.suppressFlicker(),ce&&ce(+Ie),oe&&oe(+Ie);else if(B.inputRef){var Ae=B.inputRef.current;Ae.value=String(ge),setTimeout(function(){Ae.focus(),Ae.select()},100)}},B}var K=A.prototype;return K.render=function(){var B=this,F=this.state,ne=F.dragging,ae=F.editing,ce=F.value,oe=F.suppressingFlicker,le=this.props,pe=le.className,Ie=le.fluid,ge=le.animated,Ae=le.value,Le=le.unit,He=le.minValue,Ve=le.maxValue,tn=le.height,fn=le.width,Te=le.lineHeight,Ye=le.fontSize,un=le.disabled,Sn=le.format,jn=le.onChange,Cn=le.onDrag,Fe=Ae;(ne||oe)&&(Fe=ce);var pn=(0,e.jsxs)("div",{className:"NumberInput__content",children:[ge&&!ne&&!oe?(0,e.jsx)(l,{value:+Fe,format:Sn}):Sn?Sn(+Fe):Fe,Le?" "+Le:""]});return(0,e.jsxs)(C.az,{className:(0,j.Ly)(["NumberInput",Ie&&"NumberInput--fluid",pe]),minWidth:fn,minHeight:tn,lineHeight:Te,fontSize:Ye,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,o.qE)((+Fe-He)/(Ve-He)*100,0,100)+"%"}})}),pn,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ae?void 0:"none",height:tn,lineHeight:Te,fontSize:Ye},onBlur:function(hn){if(ae){var Tn=(0,o.qE)(parseFloat(hn.target.value),He,Ve);if(Number.isNaN(Tn)){B.setState({editing:!1});return}B.setState({editing:!1,value:Tn}),B.suppressFlicker(),jn&&jn(Tn),Cn&&Cn(Tn)}},onKeyDown:function(hn){if(!un){if(hn.key===S._.Enter){var Tn=hn.target,Xn=(0,o.qE)(parseFloat(Tn.value),He,Ve);if(Number.isNaN(Xn)){B.setState({editing:!1});return}B.setState({editing:!1,value:Xn}),B.suppressFlicker(),jn&&jn(Xn),Cn&&Cn(Xn);return}if((0,S.K)(hn.key)){B.setState({editing:!1});return}}}})]})},A}(t.Component),ca=n(6544);function ua(){return ua=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function Hn(I,A){return Hn=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Hn(I,A)}var Gn=0,Pr=1e4,yt=function(I,A,K,U){var B=A||Gn,F=K||K===0?K:Pr,ne=U?I.replace(/[^\-\d.]/g,""):I.replace(/[^\-\d]/g,"");return U&&(ne=Mo(ne,B),ne=_t(".",ne)),A<0?(ne=oo(ne),ne=_t("-",ne)):ne=ne.replaceAll("-",""),B<=1&&F>=0?At(ne,B,F,U):ne},At=function(I,A,K,U){var B=U?parseFloat(I):parseInt(I,10);if(!isNaN(B)&&(I.slice(-1)!=="."||B0?(I=I.replace("-",""),A="-".concat(I)):K===0&&I.indexOf("-",K+1)>0&&(A=I.replaceAll("-","")),A},Mo=function(I,A){var K=I,U=Math.sign(A)*Math.floor(Math.abs(A));return I.indexOf(".")===0?K=String(U).concat(I):I.indexOf("-")===0&&I.indexOf(".")===1&&(K=U+".".concat(I.slice(2))),K},_t=function(I,A){var K=A.indexOf(I),U=A.length,B=A;if(K!==-1&&K=0)&&(K[B]=I[B]);return K}var Tl=function(I){var A=I.value,K=I.minValue,U=K===void 0?1:K,B=I.maxValue,F=B===void 0?1:B,ne=I.ranges,ae=I.alertAfter,ce=I.alertBefore,oe=I.format,le=I.size,pe=le===void 0?1:le,Ie=I.className,ge=I.style,Ae=ka(I,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Le=scale(A,U,F),He=clamp01(Le),Ve=ne?{}:{primary:[0,1]};ne&&Object.keys(ne).forEach(function(Te){var Ye=ne[Te];Ve[Te]=[scale(Ye[0],U,F),scale(Ye[1],U,F)]});var tn=function(){if(ae&&ce&&aeA)return!0}else if(aeA)return!0;return!1},fn=tn()&&keyOfMatchingRange(He,Ve);return _jsxs(Box,{inline:!0,children:[_jsx("div",Po({className:classes(["RoundGauge",Ie,computeBoxClassName(Ae)])},computeBoxProps(Po({style:Po({fontSize:pe+"em"},ge)},Ae)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(ae||ce)&&_jsx("g",{className:classes(["RoundGauge__alert",fn?"active RoundGauge__alert--"+fn:""]),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(Ve).map(function(Te,Ye){var un=Ve[Te];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+Te,style:{strokeDashoffset:Math.max((2-(un[1]-un[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*un[0])+" 50 50)",cx:"50",cy:"50",r:"45"},Ye)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(He*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:A,format:oe,size:pe})]})},cr=n(37912);/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function _o(){return _o=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var Ds=function(I){var A=I.buttons,K=I.children,U=I.className,B=I.fill,F=I.fitted,ne=I.onScroll,ae=I.scrollable,ce=I.scrollableHorizontal,oe=I.title,le=I.container_id,pe=I.flexGrow,Ie=I.noTopPadding,ge=I.stretchContents,Ae=Wi(I,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Le=(0,t.useRef)(null),He=(0,j.b5)(oe)||(0,j.b5)(A);return(0,t.useEffect)(function(){if(Le!=null&&Le.current&&!(!ae&&!ce)){var Ve=Le.current;return(0,cr.tk)(Ve),function(){Ve&&(0,cr.WK)(Ve)}}},[]),(0,e.jsxs)("div",_o({id:le||"",className:(0,j.Ly)(["Section",B&&"Section--fill",F&&"Section--fitted",ae&&"Section--scrollable",ce&&"Section--scrollableHorizontal",pe&&"Section--flex",U,(0,C.WP)(Ae)])},(0,C.Fl)(Ae),{children:[He&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:oe}),(0,e.jsx)("div",{className:"Section__buttons",children:A})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,j.Ly)(["Section__content",!!ge&&"Section__content--stretchContents",!!Ie&&"Section__content--noTopPadding"]),onScroll:ne,ref:Le,children:K})})]}))};/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function wi(){return wi=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}function io(I){var A=I.animated,K=I.format,U=I.maxValue,B=I.minValue,F=I.onChange,ne=I.onDrag,ae=I.step,ce=I.stepPixelSize,oe=I.suppressFlicker,le=I.unit,pe=I.value,Ie=I.className,ge=I.fillValue,Ae=I.color,Le=I.ranges,He=Le===void 0?{}:Le,Ve=I.children,tn=Gr(I,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),fn=Ve!==void 0;return(0,e.jsx)(Ta,{dragMatrix:[1,0],animated:A,format:K,maxValue:U,minValue:B,onChange:F,onDrag:ne,step:ae,stepPixelSize:ce,suppressFlicker:oe,unit:le,value:pe,children:function(Te){var Ye=Te.displayElement,un=Te.displayValue,Sn=Te.dragging,jn=Te.handleDragStart,Cn=Te.inputElement,Fe=Te.value,pn=ge!=null,hn=(0,o.hs)(ge!=null?ge:un,B,U),Tn=(0,o.hs)(un,B,U),Xn=Ae||(0,o.TG)(ge!=null?ge:Fe,He)||"default";return(0,e.jsxs)("div",wi({className:(0,j.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Xn,Ie,(0,C.WP)(tn)])},(0,C.Fl)(tn),{onMouseDown:jn,children:[(0,e.jsx)("div",{className:(0,j.Ly)(["ProgressBar__fill",pn&&"ProgressBar__fill--animated"]),style:{width:(0,o.J$)(hn)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,o.J$)(Math.min(hn,Tn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,o.J$)(Tn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),Sn&&(0,e.jsx)("div",{className:"Slider__popupValue",children:Ye})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:fn?Ve:Ye}),Cn]}))}})}var da=function(I){return _jsxs(Box,{style:I.style,children:[_jsxs(Box,{className:"Section__title",style:I.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:I.textStyle,children:I.title}),_jsx("div",{className:"Section__buttons",children:I.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:I.children})})]})};/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */function so(){return so=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var Kt=function(I){var A=I.className,K=I.vertical,U=I.fill,B=I.fluid,F=I.children,ne=fa(I,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",so({className:(0,j.Ly)(["Tabs",K?"Tabs--vertical":"Tabs--horizontal",U&&"Tabs--fill",B&&"Tabs--fluid",A,(0,C.WP)(ne)])},(0,C.Fl)(ne),{children:F}))},Ft=function(I){var A=I.className,K=I.selected,U=I.color,B=I.icon,F=I.iconSpin,ne=I.leftSlot,ae=I.rightSlot,ce=I.children,oe=I.onClick,le=fa(I,["className","selected","color","icon","iconSpin","leftSlot","rightSlot","children","onClick"]),pe=function(Ie){oe&&(oe(Ie),Ie.target.blur())};return(0,e.jsxs)("div",so({className:(0,j.Ly)(["Tab","Tabs__Tab","Tab--color--"+U,K&&"Tab--selected",A,(0,C.WP)(le)]),onClick:pe},(0,C.Fl)(le),{children:[(0,j.b5)(ne)&&(0,e.jsx)("div",{className:"Tab__left",children:ne})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(N,{name:B,spin:F})}),(0,e.jsx)("div",{className:"Tab__text",children:ce}),(0,j.b5)(ae)&&(0,e.jsx)("div",{className:"Tab__right",children:ae})]}))};Kt.Tab=Ft;/** - * @file - * @copyright 2020 Aleksej Komarov - * @author Warlockd - * @license MIT - */function _r(){return _r=Object.assign||function(I){for(var A=1;A=0)&&(K[B]=I[B]);return K}var Ir=(0,t.forwardRef)(function(I,A){var K=I.autoFocus,U=I.autoSelect,B=I.displayedValue,F=I.dontUseTabForIndent,ne=I.maxLength,ae=I.noborder,ce=I.onChange,oe=I.onEnter,le=I.onEscape,pe=I.onInput,Ie=I.placeholder,ge=I.scrollbar,Ae=I.selfClear,Le=I.value,He=ur(I,["autoFocus","autoSelect","displayedValue","dontUseTabForIndent","maxLength","noborder","onChange","onEnter","onEscape","onInput","placeholder","scrollbar","selfClear","value"]),Ve=He.className,tn=He.fluid,fn=He.nowrap,Te=ur(He,["className","fluid","nowrap"]),Ye=(0,t.useRef)(null),un=(0,t.useState)(0),Sn=un[0],jn=un[1],Cn=function(Fe){if(Fe.key===S._.Enter){if(Fe.shiftKey){Fe.currentTarget.focus();return}oe==null||oe(Fe,Fe.currentTarget.value),Ae&&(Fe.currentTarget.value=""),Fe.currentTarget.blur();return}if((0,S.K)(Fe.key)){le==null||le(Fe),Ae?Fe.currentTarget.value="":(Fe.currentTarget.value=jo(Le),Fe.currentTarget.blur());return}if(!F&&Fe.key===S._.Tab){Fe.preventDefault();var pn=Fe.currentTarget,hn=pn.value,Tn=pn.selectionStart,Xn=pn.selectionEnd;Fe.currentTarget.value=hn.substring(0,Tn)+" "+hn.substring(Xn),Fe.currentTarget.selectionEnd=Tn+1}};return(0,t.useImperativeHandle)(A,function(){return Ye.current}),(0,t.useEffect)(function(){if(!(!K&&!U)){var Fe=Ye.current;Fe&&(K||U)&&setTimeout(function(){Fe.focus(),U&&Fe.select()},1)}},[]),(0,t.useEffect)(function(){var Fe=Ye.current;if(Fe){var pn=jo(Le);Fe.value!==pn&&(Fe.value=pn)}},[Le]),(0,e.jsxs)(C.az,_r({className:(0,j.Ly)(["TextArea",tn&&"TextArea--fluid",ae&&"TextArea--noborder",Ve])},Te,{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(-"+Sn+"px)"},children:B})}),(0,e.jsx)("textarea",{className:(0,j.Ly)(["TextArea__textarea",ge&&"TextArea__textarea--scrollable",fn&&"TextArea__nowrap"]),maxLength:ne,onBlur:function(Fe){return ce==null?void 0:ce(Fe,Fe.target.value)},onChange:function(Fe){return pe==null?void 0:pe(Fe,Fe.target.value)},onKeyDown:Cn,onScroll:function(){B&&Ye.current&&jn(Ye.current.scrollTop)},placeholder:Ie,ref:Ye,style:{color:B?"rgba(0, 0, 0, 0)":"inherit"}})]}))}),Io=n(41242);function Rl(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),A&&ha(I,A)}function ha(I,A){return ha=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},ha(I,A)}var Ss=function(I){return typeof I=="number"&&Number.isFinite(I)&&!Number.isNaN(I)},Vt=null;function Ht(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function qn(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),A&&Fa(I,A)}function dr(I,A){return A!=null&&typeof Symbol!="undefined"&&A[Symbol.hasInstance]?!!A[Symbol.hasInstance](I):I instanceof A}function Fa(I,A){return Fa=Object.setPrototypeOf||function(U,B){return U.__proto__=B,U},Fa(I,A)}var Bl=null,bs=function(I){var A=I.children,K=useRef(null),U=useState(1),B=U[0],F=U[1],ne=useState(0),ae=ne[0],ce=ne[1],oe=useCallback(function(){var le=K.current;if(!(!A||!Array.isArray(A)||!le||B>=A.length)){var pe=document.body.offsetHeight-le.getBoundingClientRect().bottom,Ie=Math.ceil(le.offsetHeight/B);if(pe>0){var ge=Math.min(A.length,B+Math.max(1,Math.ceil(pe/Ie)));F(ge),ce((A.length-ge)*Ie)}}},[K,B,A]);return useEffect(function(){oe();var le=setInterval(oe,100);return function(){return clearInterval(le)}},[oe]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:K,children:Array.isArray(A)?A.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+ae+"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 g},b_:function(){return s},bz:function(){return t},lm:function(){return f},wM:function(){return l}});/** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */var e=273.15,o=2,t=1,r=0,i=null,f={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"}},g=["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"}],l=function(h,v){if(!h)return v||"None";for(var x=h.toLowerCase(),E=h.replace(/(^\w{1})|(\s+\w{1})/g,function(C){return C.toUpperCase()}),j=0;j0&&ie[ie.length-1])&&(Ce[0]===6||Ce[0]===2)){he=0;continue}if(Ce[0]===3&&(!ie||Ce[1]>ie[0]&&Ce[1]je&&(ie[he]=je-X[he],fe=!0)}return[fe,ie]},k=function(Q){var X;g.log("drag start"),s=!0,x=(0,o.Z4)([Q.screenX,Q.screenY],P()),(X=Q.target)==null||X.focus(),document.addEventListener("mousemove",Y),document.addEventListener("mouseup",H),Y(Q)},H=function(Q){g.log("drag end"),Y(Q),document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",H),s=!1,$()},Y=function(Q){s&&(Q.preventDefault(),S((0,o.Z4)([Q.screenX,Q.screenY],x)))},q=function(Q,X){return function(ee){var se;E=[Q,X],g.log("resize start",E),c=!0,x=(0,o.Z4)([ee.screenX,ee.screenY],P()),j=_(),(se=ee.target)==null||se.focus(),document.addEventListener("mousemove",J),document.addEventListener("mouseup",Z),J(ee)}},Z=function(Q){g.log("resize end",C),J(Q),document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",Z),c=!1,$()},J=function(Q){if(c){Q.preventDefault();var X=(0,o.Z4)([Q.screenX,Q.screenY],P()),ee=(0,o.Z4)(X,x);C=(0,o.CO)(j,(0,o.tk)(E,ee),[1,1]),C[0]=Math.max(C[0],150*a),C[1]=Math.max(C[1],50*a),T(C)}}},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 i}});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,i=function(_){_===void 0&&(_={}),r=!!_.ignoreWindowFocus},f,g=!0,d=function(_,S){if(r){g=!0;return}if(f&&(clearTimeout(f),f=null),S){f=setTimeout(function(){return d(_)});return}g!==_&&(g=_,t.emit(_?"window-focus":"window-blur"),t.emit("window-focus-change",_))},a=null,l=function(_){var S=String(_.tagName).toLowerCase();return S==="input"||S==="textarea"},s=function(_){c(),a=_,a.addEventListener("blur",c)},c=function(){a&&(a.removeEventListener("blur",c),a=null)},h=null,v=null,x=[],E=function(_){x.push(_)},j=function(_){var S=x.indexOf(_);S>=0&&x.splice(S,1)},C=function(_){if(!(a||!g))for(var S=document.body;_&&_!==S;){if(x.includes(_)){if(_.contains(h))return;h=_,_.focus();return}_=_.parentElement}};window.addEventListener("mousemove",function(_){var S=_.target;S!==v&&x.length<2&&(v=S,C(S))}),window.addEventListener("click",function(_){var S=_.target;S!==v&&(v=S,C(S))}),window.addEventListener("focusin",function(_){v=null,h=_.target,d(!0),l(_.target)&&s(_.target)}),window.addEventListener("focusout",function(_){v=null,d(!1,!0)}),window.addEventListener("blur",function(_){v=null,d(!1,!0)}),window.addEventListener("beforeunload",function(_){d(!1)});var M={},P=function(){"use strict";function _(T,b,L){this.event=T,this.type=b,this.code=T.keyCode,this.ctrl=T.ctrlKey,this.shift=T.shiftKey,this.alt=T.altKey,this.repeat=!!L}var S=_.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)},_}();document.addEventListener("keydown",function(_){if(!l(_.target)){var S=_.keyCode,T=new P(_,"keydown",M[S]);t.emit("keydown",T),t.emit("key",T),M[S]=!0}}),document.addEventListener("keyup",function(_){if(!l(_.target)){var S=_.keyCode,T=new P(_,"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 l},up:function(){return i}});/** - * @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(s,c,h){if(c===void 0&&(c=-o),h===void 0&&(h=""),!isFinite(s))return s.toString();var v=Math.floor(Math.log10(Math.abs(s))),x=Math.max(c*3,v),E=Math.floor(x/3),j=e[Math.min(E+o,e.length-1)],C=s/Math.pow(1e3,E),M=C.toFixed(2);return M.endsWith(".00")?M=M.slice(0,-3):M.endsWith(".0")&&(M=M.slice(0,-2)),(M+" "+j.trim()+h).trim()},r=function(s,c){return c===void 0&&(c=0),t(s,c,"W")},i=function(s,c){if(c===void 0&&(c=0),!Number.isFinite(s))return String(s);var h=Number(s.toFixed(c)),v=h<0,x=Math.abs(h),E=x.toString().split(".");E[0]=E[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var j=E.join(".");return v?"-"+j:j},f=function(s){var c=20*Math.log10(s),h=c>=0?"+":"-",v=Math.abs(c);return v===1/0?v="Inf":v=v.toFixed(2),""+h+v+" dB"},g=null,d=function(s,c,h){if(c===void 0&&(c=0),h===void 0&&(h=""),!isFinite(s))return"NaN";var v=Math.floor(Math.log10(s)),x=Math.max(c*3,v),E=Math.floor(x/3),j=g[E],C=s/Math.pow(1e3,E),M=Math.max(0,2-x%3),P=C.toFixed(M);return(P+" "+j+" "+h).trim()},a=function(s,c){c===void 0&&(c="default");var h=Math.floor(s/10),v=Math.floor(h/3600),x=Math.floor(h%3600/60),E=h%60;if(c==="short"){var j=v>0?""+v+"h":"",C=x>0?""+x+"m":"",M=E>0?""+E+"s":"";return""+j+C+M}var P=String(v).padStart(2,"0"),_=String(x).padStart(2,"0"),S=String(E).padStart(2,"0");return P+":"+_+":"+S},l=function(s){if(!Number.isFinite(s))return s;var c=s.toString().split(".");return c[0]=c[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),c.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,P){(P==null||P>M.length)&&(P=M.length);for(var _=0,S=new Array(P);_=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 g=(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],l={},s=[],c=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"."},h=function(M){var P=String(M);if(P==="Ctrl+F5"||P==="Ctrl+R"){location.reload();return}if(P!=="Ctrl+F"&&!(M.event.defaultPrevented||M.isModifierKey()||a.includes(M.code))){var _=c(M.code);if(_){var S=d[_];if(S)return g.debug("macro",S),Byond.command(S);if(M.isDown()&&!l[_]){l[_]=!0;var T='TguiKeyDown "'+_+'"';return g.debug(T),Byond.command(T)}if(M.isUp()&&l[_]){l[_]=!1;var b='TguiKeyUp "'+_+'"';return g.debug(b),Byond.command(b)}}}},v=function(M){a.push(M)},x=function(M){var P=a.indexOf(M);P>=0&&a.splice(P,1)},E=function(){for(var M=f(Object.keys(l)),P;!(P=M()).done;){var _=P.value;l[_]&&(l[_]=!1,g.log('releasing key "'+_+'"'),Byond.command('TguiKeyUp "'+_+'"'))}},j=function(){Byond.winget("default.*").then(function(M){for(var P={},_=f(Object.keys(M)),S;!(S=_()).done;){var T=S.value,b=T.split("."),L=b[1],N=b[2];L&&N&&(P[L]||(P[L]={}),P[L][N]=M[T])}for(var $=/\\"/g,z=function(q){return q.substring(1,q.length-1).replace($,'"')},w=f(Object.keys(P)),V;!(V=w()).done;){var k=V.value,H=P[k],Y=z(H.name);d[Y]=z(H.command)}g.debug("loaded macros",d)}),o.Nh.on("window-blur",function(){E()}),o.Nh.on("key",function(M){for(var P=f(s),_;!(_=P()).done;){var S=_.value;S(M)}h(M)})},C=function(M){s.push(M);var P=!1;return function(){P||(P=!0,s.splice(s.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(i){setTimeout(function(){e(o,t,r).then(i)},r)})})}},20544:function(y,u,n){"use strict";n.r(u),n.d(u,{AICard:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.name,s=a.has_ai,c=a.integrity,h=a.backup_capacitor,v=a.flushing,x=a.has_laws,E=a.laws,j=a.wireless,C=a.radio;if(s){var M;c>=75?M="green":c>=25?M="yellow":M="red";var P;return h>=75&&(P="green"),h>=25?P="yellow":P="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:l})}),(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:c/100})}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:(0,e.jsx)(t.z2,{color:P,value:h/100})})]})}),(0,e.jsx)(t.az,{color:"red",children:(0,e.jsx)("h2",{children:v===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(t.wn,{title:"Laws",children:!!x&&(0,e.jsx)(t.az,{children:E.map(function(_,S){return(0,e.jsx)(t.az,{inline:!0,children:_},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:C?"check":"times",color:C?"green":"red",onClick:function(){return d("radio")},children:C?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"AI Power",children:(0,e.jsx)(t.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:v||c===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 g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(72859),f=n(98071),g=function(h){var v=(0,o.Oc)(),x=v.act,E=v.data,j=E.gridCheck,C=E.failTime,M=(0,e.jsx)(l,{});return j?M=(0,e.jsx)(s,{}):C&&(M=(0,e.jsx)(c,{})),(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"}},l=function(h){var v=(0,o.Oc)(),x=v.act,E=v.data,j=E.locked,C=E.siliconUser,M=E.externalPower,P=E.chargingStatus,_=E.powerChannels,S=E.powerCellStatus,T=E.emagged,b=E.isOperating,L=E.chargeMode,N=E.totalCharging,$=E.totalLoad,z=E.coverLocked,w=E.nightshiftSetting,V=E.emergencyLights,k=j&&!C,H=d[M]||d[0],Y=d[P]||d[0],q=_||[],Z=S/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.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:H.color,buttons:(0,e.jsx)(t.$n,{icon:b?"power-off":"times",selected:b&&!k,color:b?"":"bad",disabled:k,onClick:function(){return x("breaker")},children:b?"On":"Off"}),children:["[ ",H.externalPowerText," ]"]}),(0,e.jsx)(t.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(t.z2,{color:"good",value:Z})}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",color:Y.color,buttons:(0,e.jsx)(t.$n,{icon:L?"sync":"times",selected:L,disabled:k,onClick:function(){return x("charge")},children:L?"Auto":"Off"}),children:["[ ",Y.chargingText," ]"]})]})}),(0,e.jsx)(t.wn,{title:"Power Channels",children:(0,e.jsxs)(t.Ki,{children:[q.map(function(J){var Q=J.topicParams;return(0,e.jsxs)(t.Ki.Item,{label:J.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{inline:!0,mx:2,color:J.status>=2?"good":"bad",children:J.status>=2?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"sync",selected:!k&&(J.status===1||J.status===3),disabled:k,onClick:function(){return x("channel",Q.auto)},children:"Auto"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:!k&&J.status===2,disabled:k,onClick:function(){return x("channel",Q.on)},children:"On"}),(0,e.jsx)(t.$n,{icon:"times",selected:!k&&J.status===0,disabled:k,onClick:function(){return x("channel",Q.off)},children:"Off"})]}),children:[J.powerLoad," W"]},J.title)}),(0,e.jsx)(t.Ki.Item,{label:"Total Load",children:N?(0,e.jsxs)("b",{children:[$," W (+ ",N," 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 x("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:z?"lock":"unlock",selected:z,disabled:k,onClick:function(){return x("cover")},children:z?"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:w===2,onClick:function(){return x("nightshift",{nightshift:2})},children:"Disabled"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===1,onClick:function(){return x("nightshift",{nightshift:1})},children:"Automatic"}),(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:w===3,onClick:function(){return x("nightshift",{nightshift:3})},children:"Enabled"})]})}),(0,e.jsx)(t.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",selected:V,onClick:function(){return x("emergency_lighting")},children:V?"Enabled":"Disabled"})})]})})]})},s=function(h){return(0,e.jsxs)(i.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..."})]})},c=function(h){var v=(0,o.Oc)(),x=v.data,E=v.act,j=x.locked,C=x.siliconUser,M=x.failTime,P=(0,e.jsx)(t.$n,{icon:"repeat",color:"good",onClick:function(){return E("reboot")},children:"Restart Now"});return j&&!C&&(P=(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:P})]})}},77056:function(y,u,n){"use strict";n.r(u),n.d(u,{AccountsTerminal:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(l){var s=(0,o.Oc)(),c=s.act,h=s.data,v=h.id_inserted,x=h.id_card,E=h.access_level,j=h.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:v?"eject":"sign-in-alt",fluid:!0,onClick:function(){return c("insert_card")},children:x})})]})}),E>0&&(0,e.jsx)(f,{})]})})},f=function(l){var s=(0,o.Oc)(),c=s.act,h=s.data,v=h.creating_new_account,x=h.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:!v&&!x,icon:"home",onClick:function(){return c("view_accounts_list")},children:"Home"}),(0,e.jsx)(t.tU.Tab,{selected:!!v,icon:"cog",onClick:function(){return c("create_account")},children:"New Account"}),v?"":(0,e.jsx)(t.tU.Tab,{icon:"print",onClick:function(){return c("print")},children:"Print"})]}),v&&(0,e.jsx)(g,{})||x&&(0,e.jsx)(d,{})||(0,e.jsx)(a,{})]})},g=function(l){var s=(0,o.Oc)().act,c=(0,o.QY)("holder",""),h=c[0],v=c[1],x=(0,o.QY)("money",""),E=x[0],j=x[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:h,fluid:!0,onInput:function(C,M){return v(M)}})}),(0,e.jsx)(t.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(t.pd,{value:E,fluid:!0,onInput:function(C,M){return j(M)}})})]}),(0,e.jsx)(t.$n,{disabled:!h||!E,mt:1,fluid:!0,icon:"plus",onClick:function(){return s("finalise_create_account",{holder_name:h,starting_funds:E})},children:"Create"})]})},d=function(l){var s=(0,o.Oc)(),c=s.act,h=s.data,v=h.access_level,x=h.station_account_number,E=h.account_number,j=h.owner_name,C=h.money,M=h.suspended,P=h.transactions;return(0,e.jsxs)(t.wn,{title:"Account Details",buttons:(0,e.jsx)(t.$n,{icon:"ban",selected:M,onClick:function(){return c("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:[C,"\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===x,onClick:function(){return c("revoke_payroll")},children:"Revoke"})})})}),v>=2&&(0,e.jsxs)(t.wn,{title:"Silent Funds Transfer",children:[(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("add_funds")},children:"Add Funds"}),(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return c("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"})]}),P.map(function(_,S){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsxs)(t.XI.Cell,{children:[_.date," ",_.time]}),(0,e.jsx)(t.XI.Cell,{children:_.target_name}),(0,e.jsx)(t.XI.Cell,{children:_.purpose}),(0,e.jsxs)(t.XI.Cell,{children:[_.amount,"\u20AE"]}),(0,e.jsx)(t.XI.Cell,{children:_.source_terminal})]},S)})]})})]})},a=function(l){var s=(0,o.Oc)(),c=s.act,h=s.data,v=h.accounts;return(0,e.jsx)(t.wn,{title:"NanoTrasen Accounts",children:v.length&&(0,e.jsx)(t.Ki,{children:v.map(function(x){return(0,e.jsx)(t.Ki.Item,{label:x.owner_name+x.suspended,color:x.suspended?"bad":void 0,children:(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return c("view_account_detail",{account_index:x.account_index})},children:"#"+x.account_number})},x.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 f},ShuttleList:function(){return g}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),f=function(){return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=c.shuttles,v=c.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)(h,function(x){return x.name}).map(function(x){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 s("adminobserve",{ref:x.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,onClick:function(){return s("classicmove",{ref:x.ref})},children:"Fly"})}),(0,e.jsx)(r.XI.Cell,{children:x.name}),(0,e.jsx)(r.XI.Cell,{children:x.current_location}),(0,e.jsx)(r.XI.Cell,{children:d(x.status)})]},x.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,o.Ul)(v,function(x){var E;return((E=x.name)==null?void 0:E.toLowerCase())||x.name||x.ref}).map(function(x){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 s("adminobserve",{ref:x.ref})},children:"JMP"})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return s("overmap_control",{ref:x.ref})},children:"Control"})}),(0,e.jsx)(r.XI.Cell,{children:x.name})]},x.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 g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),f={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.id,h=s.title,v=s.name,x=s.state,E=s.opened_at,j=s.closed_at,C=s.opened_at_date,M=s.closed_at_date,P=s.actions,_=s.log;return(0,e.jsx)(i.p8,{width:900,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+c,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("retitle")},children:"Rename Ticket"}),(0,e.jsx)(r.$n,{onClick:function(){return l("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Admin Help Ticket",children:["#",c,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:f[x]}),f[x]===f.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:C+" ("+(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 l("reopen")},children:"Reopen"})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P}})}),(0,e.jsx)(r.Ki.Item,{label:"Log",children:Object.keys(_).map(function(S,T){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_[S]}},T)})})]})})})})}},14415:function(y,u,n){"use strict";n.r(u),n.d(u,{AgentCard:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.entries,s=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:l.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{onClick:function(){return d(c.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsx)(t.XI.Cell,{children:c.value})]},c.name)})})}),(0,e.jsx)(t.wn,{title:"Electronic Warfare",children:(0,e.jsx)(t.$n.Checkbox,{checked:s,onClick:function(){return d("electronic_warfare")},children:s?"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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.power,c=l.wires,h=l.shock,v=l.shock_timeleft,x=l.id_scanner,E=l.lights,j=l.locked,C=l.safe,M=l.speed,P=l.opened,_=l.welded,S=i[s.main]||i[0],T=i[s.backup]||i[0],b=i[h]||i[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:!s.main,onClick:function(){return a("disrupt-main")},children:"Disrupt"}),children:[s.main?"Online":"Offline"," ",(!c.main_1||!c.main_2)&&"[Wires have been cut!]"||s.main_timeleft>0&&"["+s.main_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Backup",color:T.color,buttons:(0,e.jsx)(t.$n,{icon:"lightbulb-o",disabled:!s.backup,onClick:function(){return a("disrupt-backup")},children:"Disrupt"}),children:[s.backup?"Online":"Offline"," ",(!c.backup_1||!c.backup_2)&&"[Wires have been cut!]"||s.backup_timeleft>0&&"["+s.backup_timeleft+"s]"]}),(0,e.jsxs)(t.Ki.Item,{label:"Electrify",color:b.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"wrench",disabled:!(c.shock&&h===0),onClick:function(){return a("shock-restore")},children:"Restore"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!c.shock,onClick:function(){return a("shock-temp")},children:"Temporary"}),(0,e.jsx)(t.$n,{icon:"bolt",disabled:!c.shock,onClick:function(){return a("shock-perm")},children:"Permanent"})]}),children:[h===2?"Safe":"Electrified"," ",!c.shock&&"[Wires have been cut!]"||v>0&&"["+v+"s]"||v===-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:x?"power-off":"times",selected:x,disabled:!c.id_scanner,onClick:function(){return a("idscan-toggle")},children:x?"Enabled":"Disabled"}),children:!c.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:!c.bolts,onClick:function(){return a("bolt-toggle")},children:j?"Lowered":"Raised"}),children:!c.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:!c.lights,onClick:function(){return a("light-toggle")},children:E?"Enabled":"Disabled"}),children:!c.lights&&"[Wires have been cut!]"}),(0,e.jsx)(t.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(t.$n,{icon:C?"power-off":"times",selected:C,disabled:!c.safe,onClick:function(){return a("safe-toggle")},children:C?"Enabled":"Disabled"}),children:!c.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:!c.timing,onClick:function(){return a("speed-toggle")},children:M?"Enabled":"Disabled"}),children:!c.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:P?"sign-out-alt":"sign-in-alt",selected:P,disabled:j||_,onClick:function(){return a("open-close")},children:P?"Open":"Closed"}),children:!!(j||_)&&(0,e.jsxs)("span",{children:["[Door is ",j?"bolted":"",j&&_?" and ":"",_?"welded":"","!]"]})})]})})]})})}},89570:function(y,u,n){"use strict";n.r(u),n.d(u,{AiRestorer:function(){return i},AiRestorerContent:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(f,{})})})},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.AI_present,c=l.error,h=l.name,v=l.laws,x=l.isDead,E=l.restoring,j=l.health,C=l.ejectable;return(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(t.IC,{textAlign:"center",children:c}),!!C&&(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",disabled:!s,onClick:function(){return a("PRG_eject")},children:s?h:"----------"}),!!s&&(0,e.jsxs)(t.wn,{title:C?"System Status":h,buttons:(0,e.jsx)(t.az,{inline:!0,bold:!0,color:x?"bad":"good",children:x?"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:v.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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(72859),f=function(a){var l=(0,o.Oc)().data,s=l.detonating,c=(0,e.jsx)(d,{});return s&&(c=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:c})})},g=function(a){return(0,e.jsx)(i.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 l=(0,o.Oc)().data,s=l.integrity_percentage,c=l.ambient_temp,h=l.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:s,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:c,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[c," K"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Environment Pressure",children:[h," kPa"]})]})})}},15991:function(y,u,n){"use strict";n.r(u),n.d(u,{AirAlarm:function(){return l}});var e=n(20462),o=n(4089),t=n(61358),r=n(7081),i=n(88569),f=n(79500),g=n(15581),d=n(26634),a=n(98071),l=function(P){var _=function(Y){V(Y)},S=(0,r.Oc)(),T=S.act,b=S.data,L=b.locked,N=b.siliconUser,$=b.remoteUser,z=(0,t.useState)(""),w=z[0],V=z[1],k=L&&!N&&!$;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{}),(0,e.jsx)(s,{}),(0,e.jsx)(c,{}),!k&&(0,e.jsx)(v,{screen:w,onScreen:_})]})})},s=function(P){var _=(0,r.Oc)().data,S=_.environment_data,T=_.atmos_alarm,b=_.fire_alarm,L=_.emagged,N=(S||[]).filter(function(w){return w.value>=.01}),$={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},z=$[_.danger_level]||$[0];return(0,e.jsx)(i.wn,{title:"Air Status",children:(0,e.jsxs)(i.Ki,{children:[N.length>0&&(0,e.jsxs)(e.Fragment,{children:[N.map(function(w){var V=$[w.danger_level]||$[0];return(0,e.jsxs)(i.Ki.Item,{label:(0,f.wM)(w.name),color:V.color,children:[(0,o.Mg)(w.value,2),w.unit]},w.name)}),(0,e.jsx)(i.Ki.Item,{label:"Local status",color:z.color,children:z.localStatusText}),(0,e.jsx)(i.Ki.Item,{label:"Area status",color:T||b?"bad":"good",children:T&&"Atmosphere Alarm"||b&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!L&&(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},c=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.target_temperature,L=T.rcon;return(0,e.jsx)(i.wn,{title:"Comfort Settings",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(i.$n,{selected:L===1,onClick:function(){return S("rcon",{rcon:1})},children:"Off"}),(0,e.jsx)(i.$n,{selected:L===2,onClick:function(){return S("rcon",{rcon:2})},children:"Auto"}),(0,e.jsx)(i.$n,{selected:L===3,onClick:function(){return S("rcon",{rcon:3})},children:"On"})]}),(0,e.jsx)(i.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(i.$n,{onClick:function(){return S("temperature")},children:b})})]})})},h={home:{title:"Air Controls",component:function(){return x}},vents:{title:"Vent Controls",component:function(){return E}},scrubbers:{title:"Scrubber Controls",component:function(){return j}},modes:{title:"Operating Mode",component:function(){return C}},thresholds:{title:"Alarm Thresholds",component:function(){return M}}},v=function(P){var _=h[P.screen]||h.home,S=_.component();return(0,e.jsx)(i.wn,{title:_.title,buttons:P.screen&&(0,e.jsx)(i.$n,{icon:"arrow-left",onClick:function(){return P.onScreen()},children:"Back"}),children:(0,e.jsx)(S,{onScreen:P.onScreen})})},x=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.mode,L=T.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:L?"exclamation-triangle":"exclamation",color:L&&"caution",onClick:function(){return S(L?"reset":"alarm")},children:"Area Atmosphere Alarm"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:b===3?"exclamation-triangle":"exclamation",color:b===3&&"danger",onClick:function(){return S("mode",{mode:b===3?1:3})},children:"Panic Siphon"}),(0,e.jsx)(i.az,{mt:2}),(0,e.jsx)(i.$n,{icon:"sign-out-alt",onClick:function(){return P.onScreen("vents")},children:"Vent Controls"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"filter",onClick:function(){return P.onScreen("scrubbers")},children:"Scrubber Controls"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"cog",onClick:function(){return P.onScreen("modes")},children:"Operating Mode"}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"chart-bar",onClick:function(){return P.onScreen("thresholds")},children:"Alarm Thresholds"})]})},E=function(P){var _=(0,r.Oc)().data,S=_.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(P){var _=(0,r.Oc)().data,S=_.scrubbers;return!S||S.length===0?"Nothing to show":S.map(function(T){return(0,e.jsx)(d.Scrubber,{scrubber:T},T.id_tag)})},C=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=T.modes;return!b||b.length===0?"Nothing to show":b.map(function(L){return(0,e.jsxs)(t.Fragment,{children:[(0,e.jsx)(i.$n,{icon:L.selected?"check-square-o":"square-o",selected:L.selected,color:L.selected&&L.danger&&"danger",onClick:function(){return S("mode",{mode:L.mode})},children:L.name}),(0,e.jsx)(i.az,{mt:1})]},L.mode)})},M=function(P){var _=(0,r.Oc)(),S=_.act,T=_.data,b=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:b.map(function(L){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,f.b_)(L.name),children:(0,f.wM)(L.name)})}),L.settings.map(function(N){return(0,e.jsx)("td",{children:(0,e.jsx)(i.$n,{onClick:function(){return S("threshold",{env:N.env,var:N.val})},children:(0,o.Mg)(N.selected,2)})},N.val)})]},L.name)})})]})}},51225:function(y,u,n){"use strict";n.r(u),n.d(u,{AlertModal:function(){return l}});var e=n(20462),o=n(61358),t=n(6544),r=n(7081),i=n(88569),f=n(15581),g=n(44149),d=-1,a=1,l=function(h){var v=(0,r.Oc)(),x=v.act,E=v.data,j=E.autofocus,C=E.buttons,M=C===void 0?[]:C,P=E.large_buttons,_=E.message,S=_===void 0?"":_,T=E.timeout,b=E.title,L=(0,o.useState)(0),N=L[0],$=L[1],z=115+(S.length>30?Math.ceil(S.length/4):0)+(S.length&&P?5:0),w=325+(M.length>2?55:0),V=function(k){N===0&&k===d?$(M.length-1):N===M.length-1&&k===a?$(0):$(N+k)};return(0,e.jsxs)(f.p8,{height:z,title:b,width:w,children:[!!T&&(0,e.jsx)(g.Loader,{value:T}),(0,e.jsx)(f.p8.Content,{onKeyDown:function(k){var H=window.event?k.which:k.keyCode;H===t.iy||H===t.Ri?x("choose",{choice:M[N]}):H===t.s6?x("cancel"):H===t.iU?(k.preventDefault(),V(d)):(H===t.aW||H===t.zh)&&(k.preventDefault(),V(a))},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(i.az,{color:"label",overflow:"hidden",children:S})}),(0,e.jsxs)(i.BJ.Item,{children:[!!j&&(0,e.jsx)(i.y5,{}),(0,e.jsx)(s,{selected:N})]})]})})})]})},s=function(h){var v=(0,r.Oc)().data,x=v.buttons,E=x===void 0?[]:x,j=v.large_buttons,C=v.swapped_buttons,M=h.selected;return(0,e.jsx)(i.so,{align:"center",direction:C?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:E==null?void 0:E.map(function(P,_){return j&&E.length<3?(0,e.jsx)(i.so.Item,{grow:!0,children:(0,e.jsx)(c,{button:P,id:_.toString(),selected:M===_})},_):(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(c,{button:P,id:_.toString(),selected:M===_})},_)})})},c=function(h){var v=(0,r.Oc)(),x=v.act,E=v.data,j=E.large_buttons,C=h.button,M=h.selected,P=C.length>7?C.length:7;return(0,e.jsx)(i.$n,{fluid:!!j,height:!!j&&2,onClick:function(){return x("choose",{choice:C})},m:.5,pl:2,pr:2,pt:j?.33:0,selected:M,textAlign:"center",width:!j&&P,children:j?C.toUpperCase():C})}},20730:function(y,u,n){"use strict";n.r(u),n.d(u,{AlgaeFarm:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.usePower,c=l.materials,h=l.last_flow_rate,v=l.last_power_draw,x=l.inputDir,E=l.outputDir,j=l.input,C=l.output,M=l.errorText;return(0,e.jsx)(i.p8,{width:500,height:300,children:(0,e.jsxs)(i.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:s===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:[h," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[v," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),c.map(function(P){return(0,e.jsxs)(r.Ki.Item,{label:(0,o.ZH)(P.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:P.qty,maxValue:P.max,children:[P.qty,"/",P.max]}),(0,e.jsx)(r.$n,{ml:1,onClick:function(){return a("ejectMaterial",{mat:P.name})},children:"Eject"})]},P.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 ("+x+")",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:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.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 g},AppearanceChangerGender:function(){return f},AppearanceChangerSpecies:function(){return i},AppearanceChangerTails:function(){return d},AppearanceChangerWings:function(){return a}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.species,x=h.specimen,E=(0,o.Ul)(v||[],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:x===j.specimen,onClick:function(){return c("race",{race:j.specimen})},children:j.specimen},j.specimen)})})},f=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.gender,x=h.gender_id,E=h.genders,j=h.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(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===v,onClick:function(){return c("gender",{gender:C.gender_key})},children:C.gender_name},C.gender_key)})}),(0,e.jsx)(r.Ki.Item,{label:"Gender Identity",children:j.map(function(C){return(0,e.jsx)(r.$n,{selected:C.gender_key===x,onClick:function(){return c("gender_id",{gender_id:C.gender_key})},children:C.gender_name},C.gender_key)})})]})})},g=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.ear_style,x=h.ear_styles;return(0,e.jsxs)(r.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("ear",{clear:!0})},selected:v===null,children:"-- Not Set --"}),(0,o.Ul)(x,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("ear",{ref:E.instance})},selected:E.name===v,children:E.name},E.instance)})]})},d=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.tail_style,x=h.tail_styles;return(0,e.jsxs)(r.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("tail",{clear:!0})},selected:v===null,children:"-- Not Set --"}),(0,o.Ul)(x,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("tail",{ref:E.instance})},selected:E.name===v,children:E.name},E.instance)})]})},a=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.wing_style,x=h.wing_styles;return(0,e.jsxs)(r.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return c("wing",{clear:!0})},selected:v===null,children:"-- Not Set --"}),(0,o.Ul)(x,function(E){return E.name.toLowerCase()}).map(function(E){return(0,e.jsx)(r.$n,{onClick:function(){return c("wing",{ref:E.instance})},selected:E.name===v,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 i}});var e=n(20462),o=n(7081),t=n(88569),r=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.change_eye_color,s=a.change_skin_tone,c=a.change_skin_color,h=a.change_hair_color,v=a.change_facial_hair_color,x=a.eye_color,E=a.skin_color,j=a.hair_color,C=a.facial_hair_color,M=a.ears_color,P=a.ears2_color,_=a.tail_color,S=a.tail2_color,T=a.wing_color,b=a.wing2_color;return(0,e.jsxs)(t.wn,{title:"Colors",fill:!0,scrollable:!0,children:[l?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:x,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("eye_color")},children:"Change Eye Color"})]}):"",s?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{onClick:function(){return d("skin_tone")},children:"Change Skin Tone"})}):"",c?(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"})]}):"",h?(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:P,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:_,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:b,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("wing2_color")},children:"Change Secondary Wing Color"})]})]}):null,v?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.BK,{color:C,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair_color")},children:"Change Facial Hair Color"})]}):null]})},i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=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:l.map(function(s){return(0,e.jsxs)(t.Ki.Item,{label:s.marking_name,children:[(0,e.jsx)(t.BK,{color:s.marking_color,mr:1}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:4,name:s.marking_name})},children:"Change Color"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:0,name:s.marking_name})},children:"-"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:3,name:s.marking_name})},children:"Move down"}),(0,e.jsx)(t.$n,{onClick:function(){return d("marking",{todo:2,name:s.marking_name})},children:"Move up"})]},s.marking_name)})})]})}},70972:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChangerFacialHair:function(){return i},AppearanceChangerHair:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.hair_style,s=a.hair_styles;return(0,e.jsx)(t.wn,{title:"Hair",fill:!0,scrollable:!0,children:s.map(function(c){return(0,e.jsx)(t.$n,{onClick:function(){return d("hair",{hair:c.hairstyle})},selected:c.hairstyle===l,children:c.hairstyle},c.hairstyle)})})},i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.facial_hair_style,s=a.facial_hair_styles;return(0,e.jsx)(t.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:s.map(function(c){return(0,e.jsx)(t.$n,{onClick:function(){return d("facial_hair",{facial_hair:c.facialhairstyle})},selected:c.facialhairstyle===l,children:c.facialhairstyle},c.facialhairstyle)})})}},66779:function(y,u,n){"use strict";n.r(u),n.d(u,{AppearanceChanger:function(){return l},AppearanceChangerDefaultError:function(){return s}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(15581),g=n(31607),d=n(47565),a=n(70972),l=function(c){var h=(0,r.Oc)(),v=h.act,x=h.config,E=h.data,j=E.name,C=E.specimen,M=E.gender,P=E.gender_id,_=E.hair_style,S=E.facial_hair_style,T=E.ear_style,b=E.tail_style,L=E.wing_style,N=E.change_race,$=E.change_gender,z=E.change_eye_color,w=E.change_skin_tone,V=E.change_skin_color,k=E.change_hair_color,H=E.change_facial_hair_color,Y=E.change_hair,q=E.change_facial_hair,Z=E.mapRef,J=x.title,Q=[],X=z||w||V||k||H,ee=(0,e.jsx)(i.az,{});Q[-1]=(0,e.jsx)(s,{}),Q[0]=N?(0,e.jsx)(g.AppearanceChangerSpecies,{}):(0,e.jsx)(s,{}),Q[1]=$?(0,e.jsx)(g.AppearanceChangerGender,{}):(0,e.jsx)(s,{}),Q[2]=X?(0,e.jsx)(d.AppearanceChangerColors,{}):(0,e.jsx)(s,{}),Q[3]=Y?(0,e.jsx)(a.AppearanceChangerHair,{}):(0,e.jsx)(s,{}),Q[4]=q?(0,e.jsx)(a.AppearanceChangerFacialHair,{}):(0,e.jsx)(s,{}),Q[5]=Y?(0,e.jsx)(g.AppearanceChangerEars,{}):(0,e.jsx)(s,{}),Q[6]=Y?(0,e.jsx)(g.AppearanceChangerTails,{}):(0,e.jsx)(s,{}),Q[7]=Y?(0,e.jsx)(g.AppearanceChangerWings,{}):(0,e.jsx)(s,{}),Q[8]=Y?(0,e.jsx)(d.AppearanceChangerMarkings,{}):(0,e.jsx)(s,{});var se=-1;N?se=0:$?se=1:X?se=2:Y?se=4:q&&(se=5);var ie=(0,t.useState)(se),fe=ie[0],he=ie[1];return(0,e.jsx)(f.p8,{width:700,height:650,title:(0,o.jT)(J),children:(0,e.jsxs)(f.p8.Content,{children:[(0,e.jsx)(i.wn,{title:"Reflection",children:(0,e.jsxs)(i.so,{children:[(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Name",children:j}),(0,e.jsx)(i.Ki.Item,{label:"Species",color:N?void 0:"grey",children:C}),(0,e.jsx)(i.Ki.Item,{label:"Biological Sex",color:$?void 0:"grey",children:M?(0,o.ZH)(M):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Gender Identity",color:X?void 0:"grey",children:P?(0,o.ZH)(P):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Hair Style",color:Y?void 0:"grey",children:_?(0,o.ZH)(_):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Facial Hair Style",color:q?void 0:"grey",children:S?(0,o.ZH)(S):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Ear Style",color:Y?void 0:"grey",children:T?(0,o.ZH)(T):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Tail Style",color:Y?void 0:"grey",children:b?(0,o.ZH)(b):"Not Set"}),(0,e.jsx)(i.Ki.Item,{label:"Wing Style",color:Y?void 0:"grey",children:L?(0,o.ZH)(L):"Not Set"})]})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.D1,{style:{width:"256px",height:"256px"},params:{id:Z,type:"map"}})})]})}),(0,e.jsxs)(i.tU,{children:[N?(0,e.jsx)(i.tU.Tab,{selected:fe===0,onClick:function(){return he(0)},children:"Race"}):null,$?(0,e.jsx)(i.tU.Tab,{selected:fe===1,onClick:function(){return he(1)},children:"Gender & Sex"}):null,X?(0,e.jsx)(i.tU.Tab,{selected:fe===2,onClick:function(){return he(2)},children:"Colors"}):null,Y?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.tU.Tab,{selected:fe===3,onClick:function(){return he(3)},children:"Hair"}),(0,e.jsx)(i.tU.Tab,{selected:fe===5,onClick:function(){return he(5)},children:"Ear"}),(0,e.jsx)(i.tU.Tab,{selected:fe===6,onClick:function(){return he(6)},children:"Tail"}),(0,e.jsx)(i.tU.Tab,{selected:fe===7,onClick:function(){return he(7)},children:"Wing"}),(0,e.jsx)(i.tU.Tab,{selected:fe===8,onClick:function(){return he(8)},children:"Markings"})]}):null,q?(0,e.jsx)(i.tU.Tab,{selected:fe===4,onClick:function(){return he(4)},children:"Facial Hair"}):null]}),(0,e.jsx)(i.az,{height:"43%",children:Q[fe]})]})})},s=function(c){return(0,e.jsx)(i.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.temp,s=a.enemyAction,c=a.enemyName,h=a.playerHP,v=a.playerMP,x=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:c,textAlign:"center",children:[(0,e.jsxs)(t.wn,{color:"label",children:[(0,e.jsx)(t.az,{children:l}),(0,e.jsx)(t.az,{children:!E&&s})]}),(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:h,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[h,"HP"]})}),(0,e.jsx)(t.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(t.z2,{value:v,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[v,"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:x,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[x,"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 g}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(15581),g=function(a){var l=(0,r.Oc)(),s=l.act,c=l.data,h=(0,t.useState)(!1),v=h[0],x=h[1],E=c.scrubbers;return E?(0,e.jsx)(f.p8,{width:600,height:400,children:(0,e.jsx)(f.p8.Content,{scrollable:!0,children:(0,e.jsxs)(i.wn,{children:[(0,e.jsxs)(i.so,{wrap:"wrap",children:[(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"search",onClick:function(){return s("scan")},children:"Scan"})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"layer-group",selected:v,onClick:function(){return x(!v)},children:"Show Areas"})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",onClick:function(){return s("allon")},children:"All On"})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",onClick:function(){return s("alloff")},children:"All Off"})})]}),(0,e.jsx)(i.so,{wrap:"wrap",children:E.map(function(j){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(d,{scrubber:j,showArea:v})},j.id)})})]})})}):(0,e.jsxs)(i.wn,{title:"Error",children:[(0,e.jsx)(i.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(i.$n,{fluid:!0,icon:"search",onClick:function(){return s("scan")},children:"Scan"})]})},d=function(a){var l=(0,r.Oc)().act,s=a.scrubber,c=a.showArea;return(0,e.jsxs)(i.wn,{title:s.name,children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"power-off",selected:s.on,onClick:function(){return l("toggle",{id:s.id})},children:s.on?"Enabled":"Disabled"}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[s.pressure," kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Flow Rate",children:[s.flow_rate," L/s"]}),(0,e.jsxs)(i.Ki.Item,{label:"Load",children:[s.load," W"]}),c&&(0,e.jsx)(i.Ki.Item,{label:"Area",children:(0,o.Sn)(s.area)})]})]})}},29615:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyInfrared:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,s=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:l,onClick:function(){return d("state")},children:l?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Visibility",children:(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,selected:s,onClick:function(){return d("visible")},children:s?"Able to be seen":"Invisible"})})]})})})})}},95027:function(y,u,n){"use strict";n.r(u),n.d(u,{AssemblyProx:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),f=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.timing,h=s.time,v=s.range,x=s.maxRange,E=s.scanning;return(0,e.jsx)(f.p8,{children:(0,e.jsxs)(f.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:c,onClick:function(){return l("timing")},children:c?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:h,minValue:0,maxValue:600,format:function(j){return(0,i.fU)((0,o.LI)(j*10,0))},onDrag:function(j){return l("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:v,maxValue:x,onDrag:function(j){return l("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 l("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),i=n(41242),f=n(15581),g=n(46836),d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=c.timing,v=c.time;return(0,e.jsx)(f.p8,{children:(0,e.jsx)(f.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:h,onClick:function(){return s("timing")},children:h?"Counting Down":"Disabled"}),children:(0,e.jsx)(g.NumberInputModal,{animated:!0,fluid:!0,step:1,value:v,minValue:0,maxValue:600,format:function(x){return(0,i.fU)((0,o.LI)(x*10,0))},onDrag:function(x){return s("set_time",{time:x})}})})})})})})}},16561:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosAlertConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.priority_alarms,s=l===void 0?[]:l,c=a.minor_alarms,h=c===void 0?[]:c;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:[s.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),s.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"bad",onClick:function(){return d("clear",{ref:v.ref})},children:v.name})},v.name)}),h.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),h.map(function(v){return(0,e.jsx)("li",{children:(0,e.jsx)(t.$n,{icon:"times",color:"average",onClick:function(){return d("clear",{ref:v.ref})},children:v.name})},v.name)})]})})})})}},74737:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosControl:function(){return g},AtmosControlContent:function(){return d}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),i=n(88569),f=n(15581),g=function(a){return(0,e.jsx)(f.p8,{width:600,height:440,children:(0,e.jsx)(f.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,r.Oc)(),s=l.act,c=l.data,h=l.config,v=(0,o.Ul)(c.alarms||[],function(S){return S.name}),x=(0,t.useState)(0),E=x[0],j=x[1],C=(0,t.useState)(1),M=C[0],P=C[1],_;return E===0?_=(0,e.jsx)(i.wn,{title:"Alarms",children:v.map(function(S){return(0,e.jsx)(i.$n,{color:S.danger===2?"bad":S.danger===1?"average":"",onClick:function(){return s("alarm",{alarm:S.ref})},children:S.name},S.name)})}):E===1&&(_=(0,e.jsx)(i.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(i.tx,{zoomScale:c.zoomScale,onZoom:function(S){return P(S)},children:v.filter(function(S){return~~S.z===~~h.mapZLevel}).map(function(S){return(0,e.jsx)(i.tx.Marker,{x:S.x,y:S.y,zoom:M,icon:"bell",tooltip:S.name,color:S.danger?"red":"green",onClick:function(){return s("alarm",{alarm:S.ref})}},S.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:E===0,onClick:function(){return j(0)},children:[(0,e.jsx)(i.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(i.tU.Tab,{selected:E===1,onClick:function(){return j(1)},children:[(0,e.jsx)(i.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(i.az,{m:2,children:_})]})}},13238:function(y,u,n){"use strict";n.r(u),n.d(u,{AtmosFilter:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,s=a.rate,c=a.max_rate,h=a.last_flow_rate,v=a.filter_types,x=v===void 0?[]:v;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:l?"power-off":"times",selected:l,onClick:function(){return d("power")},children:l?"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:h,format:function(E){return E+" L/s"}})}),(0,e.jsx)(t.Q7,{animated:!0,step:1,value:s,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:s===c,onClick:function(){return d("rate",{rate:"max"})},children:"Max"})]}),(0,e.jsx)(t.Ki.Item,{label:"Filter",children:x.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,s=a.set_pressure,c=a.max_pressure,h=a.node1_concentration,v=a.node2_concentration,x=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:l?"power-off":"times",selected:l,onClick:function(){return d("power")},children:l?"On":"Off"})}),(0,e.jsxs)(t.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(t.Q7,{animated:!0,value:s,unit:"kPa",width:"75px",minValue:0,maxValue:c,step:10,onChange:function(j){return d("pressure",{pressure:j})}}),(0,e.jsx)(t.$n,{ml:1,icon:"plus",disabled:s===c,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 ("+x+")",children:(0,e.jsx)(t.Q7,{animated:!0,value:h,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:v,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 v}});var e=n(20462),o=n(7402),t=n(15813),r=n(61282),i=n(7081),f=n(88569),g=n(15581),d=n(2858);function a(x,E){(E==null||E>x.length)&&(E=x.length);for(var j=0,C=new Array(E);j=x.length?{done:!0}:{done:!1,value:x[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(x,E,j){var C=function(){var T=_.value,b=E.find(function(L){return L.name===T});if(!b)return"continue";if(b.amount=0)&&(j[M]=x[M]);return j}var a={Alphabetical:function(x,E){return x.name>E.name},"By availability":function(x,E){return-(x.affordable-E.affordable)},"By price":function(x,E){return x.price-E.price}},l=function(x){var E=function(Z){$(Z)},j=function(Z){V(Z)},C=function(Z){Y(Z)},M=(0,r.Oc)(),P=M.act,_=M.data,S=_.processing,T=_.points,b=_.beaker,L=(0,t.useState)(""),N=L[0],$=L[1],z=(0,t.useState)("Alphabetical"),w=z[0],V=z[1],k=(0,t.useState)(!1),H=k[0],Y=k[1];return(0,e.jsx)(f.p8,{width:400,height:450,children:(0,e.jsx)(f.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:S&&(0,e.jsx)(i.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.wn,{children:[T," points available.",(0,e.jsx)(i.$n,{ml:1,icon:"blender",onClick:function(){return P("activate")},children:"Activate"}),(0,e.jsx)(i.$n,{ml:1,icon:"eject",disabled:!b,onClick:function(){return P("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(c,{searchText:N,sortOrder:w,descending:H,onSearchText:E,onSortOrder:j,onDescending:C}),(0,e.jsx)(s,{searchText:N,sortOrder:w,descending:H})]})})})},s=function(x){var E=(0,r.Oc)(),j=E.act,C=E.data,M=C.points,P=C.items,_=P===void 0?[]:P,S=C.build_eff,T=C.beaker,b=(0,o.XZ)(x.searchText,function($){return $[0]}),L=!1,N=Object.entries(_).map(function($){var z=Object.entries($[1]).filter(b).map(function(w){return w[1].affordable=+(M>=w[1].price/S),w[1]}).sort(a[x.sortOrder]);if(z.length!==0)return x.descending&&(z=z.reverse()),L=!0,(0,e.jsx)(v,{title:$[0],items:z,build_eff:S,beaker:T},$[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:L?N:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(x){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",value:x.searchText,width:"100%",onInput:function(E,j){return x.onSearchText(j)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{autoScroll:!1,selected:x.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(E){return x.onSortOrder(E)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:x.descending?"arrow-down":"arrow-up",height:"19px",tooltip:x.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return x.onDescending(!x.descending)}})})]})})},h=function(x,E){return!(!x.affordable||x.reagent&&!E)},v=function(x){var E=(0,r.Oc)(),j=E.act,C=E.data,M=x.title,P=x.items,_=x.build_eff,S=x.beaker,T=d(x,["title","items","build_eff","beaker"]);return(0,e.jsx)(i.Nt,g({open:!0,title:M},T,{children:P.map(function(b){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.jsx)(i.$n,{disabled:!h(b,S),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return j("purchase",{cat:M,name:b.name})},children:(b.price/_).toLocaleString("en-US")}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},b.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(i){var f=(0,o.Oc)().act,g=i.bodyrecords;return(0,e.jsx)(t.wn,{title:"Body Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return f("menu",{menu:"Main"})},children:"Back"}),children:g?g.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("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(i){var f=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Database Functions",children:[(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("menu",{menu:"Body Records"})},children:"View Individual Body Records"}),(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("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(i){var f=(0,o.Oc)().act,g=i.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 f("menu",{menu:"Specific Record"})},children:"Back"}),style:{wordBreak:"break-all"},children:g&&g.booc||"ERROR: Body record not found!"})}},31687:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyDesignerSpecificRecord:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(f){var g=(0,t.Oc)().act,d=f.activeBodyRecord,a=f.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 g("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 g("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 g("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 g("href_conversion",{target_href:"size_multiplier",target_value:1})},children:d.scale})}),Object.keys(d.styles).map(function(l){var s=d.styles[l];return(0,e.jsxs)(r.Ki.Item,{label:l,children:[s.styleHref?(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:s.styleHref,target_value:1})},children:s.style}):"",s.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:s.colorHref,target_value:1})},children:s.color}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:s.color,style:{border:"1px solid #fff"}})]}):"",s.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("href_conversion",{target_href:s.colorHref2,target_value:1})},children:s.color2}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:s.color2,style:{border:"1px solid #fff"}})]}):""]},l)}),(0,e.jsx)(r.Ki.Item,{label:"Digitigrade",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return g("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 g("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(l){var s=d.markings[l];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 g("href_conversion",{target_href:"marking_remove",target_value:l})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:s,onClick:function(){return g("href_conversion",{target_href:"marking_color",target_value:l})},children:l})})]})},l)})})]})]})})})]}):(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(i){var f=(0,o.Oc)().act,g=i.stock_bodyrecords;return(0,e.jsx)(t.wn,{title:"Stock Records",buttons:(0,e.jsx)(t.$n,{icon:"arrow-left",onClick:function(){return f("menu",{menu:"Main"})},children:"Back"}),children:g.map(function(d){return(0,e.jsx)(t.$n,{icon:"eye",onClick:function(){return f("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 l}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(13469),f=n(17796),g=n(24983),d=n(31687),a=n(99123),l=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.menu,E=v.disk,j=v.diskStored,C=v.activeBodyRecord,M=v.stock_bodyrecords,P=v.bodyrecords,_=v.mapRef,S={Main:(0,e.jsx)(f.BodyDesignerMain,{}),"Body Records":(0,e.jsx)(i.BodyDesignerBodyRecords,{bodyrecords:P}),"Stock Records":(0,e.jsx)(a.BodyDesignerStockRecords,{stock_bodyrecords:M}),"Specific Record":(0,e.jsx)(d.BodyDesignerSpecificRecord,{activeBodyRecord:C,mapRef:_}),"OOC Notes":(0,e.jsx)(g.BodyDesignerOOCNotes,{activeBodyRecord:C})},T=S[x];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 h("savetodisk")},disabled:!C,children:"Save To Disk"}),(0,e.jsx)(t.$n,{icon:"save",onClick:function(){return h("loadfromdisk")},disabled:!j,children:"Load From Disk"}),(0,e.jsx)(t.$n,{icon:"eject",onClick:function(){return h("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),i=n(81417),f=n(32915),g=n(73457),d=n(70765),a=function(l){var s=l.occupant;return(0,e.jsxs)(o.az,{children:[(0,e.jsx)(i.BodyScannerMainOccupant,{occupant:s}),(0,e.jsx)(d.BodyScannerMainReagents,{occupant:s}),(0,e.jsx)(t.BodyScannerMainAbnormalities,{occupant:s}),(0,e.jsx)(r.BodyScannerMainDamage,{occupant:s}),(0,e.jsx)(f.BodyScannerMainOrgansExternal,{organs:s.extOrgan}),(0,e.jsx)(g.BodyScannerMainOrgansInternal,{organs:s.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(i){var f=i.occupant,g=f.hasBorer||f.blind||f.colourblind||f.nearsighted||f.hasVirus||f.husked;return g=g||f.humanPrey||f.livingPrey||f.objectPrey,g?(0,e.jsx)(o.wn,{title:"Abnormalities",children:t.abnormalities.map(function(d,a){if(f[d[0]])return(0,e.jsx)(o.az,{color:d[1],bold:d[1]==="bad",children:d[2](f)},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 f}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),i=n(65518),f=function(d){var a=d.occupant;return(0,e.jsx)(t.wn,{title:"Damage",children:(0,e.jsx)(t.XI,{children:(0,i.mapTwoByTwo)(r.damages,function(l,s,c){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.XI.Row,{color:"label",children:[(0,e.jsxs)(t.XI.Cell,{children:[l[0],":"]}),(0,e.jsx)(t.XI.Cell,{children:!!s&&s[0]+":"})]}),(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(g,{value:a[l[1]],marginBottom:c0&&"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,i.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,i.germStatus)(a.germ_level),!!a.open&&"Open incision"])}),(0,e.jsxs)(t.az,{inline:!0,children:[(0,i.reduceOrganStatus)([!!a.status.splinted&&"Splinted",!!a.status.robotic&&"Robotic",!!a.status.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})]),(0,i.reduceOrganStatus)(a.implants.map(function(s){return s.known?s.name:"Unknown object"}))]})]})]},l)})]})})}},73457:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScannerMainOrgansInternal:function(){return f}});var e=n(20462),o=n(4089),t=n(88569),r=n(47710),i=n(65518),f=function(g){var d=g.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,l){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:l>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,i.reduceOrganStatus)([(0,i.germStatus)(a.germ_level),!!a.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(t.az,{inline:!0,children:(0,i.reduceOrganStatus)([a.robotic===1&&"Robotic",a.robotic===2&&"Assisted",!!a.dead&&(0,e.jsx)(t.az,{color:"bad",children:"DEAD"})])})]})]},l)})]})})}},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 i=r.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Blood Reagents",children:i.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"})]}),i.reagents.map(function(f){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:f.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[f.amount," Units"," ",f.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},f.name)})]}):(0,e.jsx)(o.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(o.wn,{title:"Stomach Reagents",children:i.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"})]}),i.ingested.map(function(f){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsx)(o.XI.Cell,{children:f.name}),(0,e.jsxs)(o.XI.Cell,{textAlign:"right",children:[f.amount," Units"," ",f.overdose?(0,e.jsx)(o.az,{color:"bad",children:"OVERDOSING"}):null]})]},f.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(i){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(i){return"Viral pathogen detected in blood stream."}],["blind","average",function(i){return"Cataracts detected."}],["colourblind","average",function(i){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(i){return"Retinal misalignment detected."}],["humanPrey","average",function(i){return"Foreign Humanoid(s) detected: "+i.humanPrey}],["livingPrey","average",function(i){return"Foreign Creature(s) detected: "+i.livingPrey}],["objectPrey","average",function(i){return"Foreign Object(s) detected: "+i.objectPrey}],["husked","bad",function(i){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 i},mapTwoByTwo:function(){return t},reduceOrganStatus:function(){return r}});var e=n(20462),o=n(88569);function t(f,g){for(var d=[],a=0;a0?f.reduce(function(g,d){return g===null?d:(0,e.jsxs)(e.Fragment,{children:[g,!!d&&(0,e.jsx)(o.az,{children:d})]})}):null}function i(f){if(f>100){if(f<300)return"mild infection";if(f<400)return"mild infection+";if(f<500)return"mild infection++";if(f<700)return"acute infection";if(f<800)return"acute infection+";if(f<900)return"acute infection++";if(f>=900)return"septic"}return""}},9665:function(y,u,n){"use strict";n.r(u),n.d(u,{BodyScanner:function(){return f}});var e=n(20462),o=n(7081),t=n(15581),r=n(85168),i=n(43780),f=function(g){var d=(0,o.Oc)().data,a=d.occupied,l=d.occupant,s=l===void 0?{}:l,c=a?(0,e.jsx)(i.BodyScannerMain,{occupant:s}):(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:c})})}},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),i=n(15581);function f(){return f=Object.assign||function(s){for(var c=1;c.5,P=Math.random()>.5;return x.state={x:M?E:0,y:P?j:0,reverseX:!1,reverseY:!1},x.process=setInterval(function(){x.setState(function(_){var S=f({},_);return S.reverseX?S.x-C<-5?(S.reverseX=!1,S.x+=C):S.x-=C:S.x+C>E?(S.reverseX=!0,S.x-=C):S.x+=C,S.reverseY?S.y-C<-20?(S.reverseY=!1,S.y+=C):S.y-=C:S.y+C>j?(S.reverseY=!0,S.y-=C):S.y+=C,S})},1),x}var h=c.prototype;return h.componentWillUnmount=function(){clearInterval(this.process)},h.render=function(){var x=this.state,E=x.x,j=x.y,C={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:C,name:"bomb",size:10,color:"red"})})})},c}(o.Component)},5536:function(y,u,n){"use strict";n.r(u),n.d(u,{BotanyEditor:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.activity,s=a.degradation,c=a.disk,h=a.sourceName,v=a.locus,x=a.loaded;return l?(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:c&&(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Source",children:h}),(0,e.jsxs)(t.Ki.Item,{label:"Gene Decay",children:[s,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Locus",children:v})]}),(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:x&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:x})}),(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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.geneMasks,s=a.activity,c=a.degradation,h=a.disk,v=a.loaded,x=a.hasGenetics,E=a.sourceName;return s?(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:x&&(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:[c,"%"]}),h&&l.length&&l.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]}),h&&(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."}),h&&(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:v&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Packet Loaded",children:v})}),(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 g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),f=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.time_left,h=s.max_time_left,v=s.timing,x=s.flash_found,E=s.flash_charging,j=s.preset_short,C=s.preset_medium,M=s.preset_long;return(0,e.jsx)(f.p8,{width:400,height:138,children:(0,e.jsx)(f.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:v,onClick:function(){return l(v?"stop":"start")},children:v?"Stop":"Start"}),x&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",disabled:E,onClick:function(){return l("flash")},children:E?"Recharging":"Flash"})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,step:1,value:c/10,minValue:0,maxValue:h/10,format:function(P){return(0,i.fU)((0,o.LI)(P*10,0))},onDrag:function(P){return l("time",{time:P})}}),(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 l("preset",{preset:"short"})},children:"Add "+(0,i.fU)(j)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"medium"})},children:"Add "+(0,i.fU)(C)})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",onClick:function(){return l("preset",{preset:"long"})},children:"Add "+(0,i.fU)(M)})})]})]})})})}},18490:function(y,u,n){"use strict";n.r(u),n.d(u,{CameraConsole:function(){return h},CameraConsoleContent:function(){return v},prevNextCamera:function(){return l},selectCameras:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(65380),i=n(61282),f=n(61358),g=n(7081),d=n(88569),a=n(15581),l=function(x,E){var j,C;if(!E)return[];var M=x.findIndex(function(P){return P.name===E.name});return[(j=x[M-1])==null?void 0:j.name,(C=x[M+1])==null?void 0:C.name]};function s(x){return x!=null}var c=function(x,E,j){E===void 0&&(E=""),j===void 0&&(j="");var C=(0,i.XZ)(E,function(M){return M.name});return(0,t.L)([function(M){return(0,o.pb)(M,function(P){return s(P==null?void 0:P.name)})},function(M){return E?(0,o.pb)(M,C):M},function(M){return j?(0,o.pb)(M,function(P){return P.networks.includes(j)}):M},function(M){return(0,o.Ul)(M,function(P){return P.name})}])(x)},h=function(x){var E=(0,g.Oc)(),j=E.act,C=E.data,M=C.mapRef,P=C.activeCamera,_=C.cameras,S=c(_),T=l(S,P),b=T[0],L=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)(v,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),P&&P.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(d.$n,{icon:"chevron-left",disabled:!b,onClick:function(){return j("switch_camera",{name:b})}}),(0,e.jsx)(d.$n,{icon:"chevron-right",disabled:!L,onClick:function(){return j("switch_camera",{name:L})}}),"| 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"}})]})]})},v=function(x){var E=(0,g.Oc)(),j=E.act,C=E.data,M=(0,f.useState)(""),P=M[0],_=M[1],S=(0,f.useState)(""),T=S[0],b=S[1],L=C.activeCamera,N=C.allNetworks,$=C.cameras;N.sort();var z=c($,P,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(w,V){return _(V)}})}),(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:N,onSelected:function(w){return b(w)}})}),T?(0,e.jsx)(d.so.Item,{children:(0,e.jsx)(d.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){b("")}})}):""]})}),(0,e.jsx)(d.so.Item,{height:"100%",children:(0,e.jsx)(d.wn,{fill:!0,scrollable:!0,children:z.map(function(w){return(0,e.jsx)("div",{title:w.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",L&&w.name===L.name&&"Button--selected"]),onClick:function(){return j("switch_camera",{name:w.name})},children:w.name},w.name)})})})]})}},82195:function(y,u,n){"use strict";n.r(u),n.d(u,{Canister:function(){return g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),f=n(15581),g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.connected,h=s.can_relabel,v=s.pressure,x=s.releasePressure,E=s.defaultReleasePressure,j=s.minReleasePressure,C=s.maxReleasePressure,M=s.valveOpen,P=s.holding;return(0,e.jsx)(f.p8,{width:360,height:242,children:(0,e.jsxs)(f.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!h,onClick:function(){return l("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:v,format:function(_){return _<1e4?(0,o.Mg)(_)+" kPa":(0,i.QL)(_*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:x,unit:"kPa",minValue:j,maxValue:C,stepPixelSize:1,onDrag:function(_,S){return l("pressure",{pressure:S})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return l("pressure",{pressure:C})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return l("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?P?"caution":"danger":null,onClick:function(){return l("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:c?"plug":"times",color:c?"good":"bad"}),(0,e.jsx)(r.m_,{content:c?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!P&&(0,e.jsx)(r.$n,{icon:"eject",color:M&&"danger",onClick:function(){return l("eject")},children:"Eject"}),children:[!!P&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:P.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:P.pressure})," kPa"]})]}),!P&&(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 C}});var e=n(20462),o=n(4089),t=n(61358),r=n(7081),i=n(88569),f=n(15581);function g(M,P){(P==null||P>M.length)&&(P=M.length);for(var _=0,S=new Array(P);_=0)&&(_[T]=M[T]);return _}function s(M,P){return s=Object.setPrototypeOf||function(S,T){return S.__proto__=T,S},s(M,P)}function c(M,P){if(M){if(typeof M=="string")return g(M,P);var _=Object.prototype.toString.call(M).slice(8,-1);if(_==="Object"&&M.constructor&&(_=M.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return g(M,P)}}function h(M,P){var _=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(_)return(_=_.call(M)).next.bind(_);if(Array.isArray(M)||(_=c(M))||P&&M&&typeof M.length=="number"){_&&(M=_);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 v=24,x=function(M){"use strict";a(P,M);function P(S){var T;return T=M.call(this,S)||this,T.canvasRef=(0,t.createRef)(),T.onCVClick=S.onCanvasClick,T}var _=P.prototype;return _.componentDidMount=function(){this.drawCanvas(this.props)},_.componentDidUpdate=function(){this.drawCanvas(this.props)},_.getLinePixels=function(){if(!(!this.lineStart||!this.lastHovered)){var T=this.lineStart,b=T[0],L=T[1],N=this.lastHovered,$=N[0],z=N[1];b=b-1,$=$-1,L=L-1,z=z-1;for(var w=Math.abs($-b),V=b<$?1:-1,k=-Math.abs(z-L),H=L=k&&(Y=Y+k,b=b+V),Z<=w&&(Y=Y+w,L=L+H)}return q}},_.drawLine=function(T){var b=this.getLinePixels();if(b)for(var L=h(b),N;!(N=L()).done;){var $=N.value,z=$[0],w=$[1];z=T.length||X>=T[0].length?!1:T[Q][X]===$},w=[];w.push([L,L,N,1]),w.push([L,L,N-1,-1]);for(var V=[];w.length;){var k=w.pop(),H=k[0],Y=k[1],q=k[2],Z=k[3],J=H;if(z(J,q)){for(;z(J-1,q);)T[J-1][q]="#000000",V.push([J-1,q]),J=J-1;JJ&&w.push([J,H-1,q+Z,Z]),H-1>Y&&w.push([Y+1,H-1,q-Z,-Z]),H=H+1;HL||(this.mouseIsDown&&this.props.tool===0?(this.onCVClick(b[0],b[1]),this.lastSuccessfulPaint=L):this.mouseIsDown&&this.props.tool===1?(this.drawCanvas(this.props),this.lastSuccessfulPaint=L):this.props.tool===2&&this.drawCanvas(this.props))}},_.render=function(){var T=this,b=this.props,L=b.res,N=L===void 0?1:L,$=b.value,z=b.dotsize,w=z===void 0?v:z,V=l(b,["res","value","dotsize"]),k=E($),H=k[0],Y=k[1];return(0,e.jsx)("canvas",d({ref:this.canvasRef,width:H*w||300,height:Y*w||300},V,{onMouseDown:function(q){return T.mouseDown(q)},onMouseMove:function(q){return T.mouseMove(q)},onMouseUp:function(q){return T.mouseUp(q)},children:"Canvas failed to render."}))},P}(t.Component),E=function(M){var P=M.length,_=P!==0?M[0].length:0;return[P,_]},j;(function(M){M[M.Paintbrush=0]="Paintbrush",M[M.Line=1]="Line",M[M.Fill=2]="Fill"})(j||(j={}));var C=function(M){var P=(0,r.Oc)(),_=P.act,S=P.data,T=(0,t.useState)(0),b=T[0],L=T[1],N=v,$=E(S.grid),z=$[0],w=$[1];return(0,e.jsx)(f.p8,{width:Math.min(700,z*N+72),height:Math.min(700,w*N+72),children:(0,e.jsxs)(f.p8.Content,{children:[(0,e.jsxs)(i.BJ,{children:[(0,e.jsx)(i.BJ.Item,{basis:"10%",children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"paintbrush",fontSize:2,onClick:function(){return L(0)},selected:b===0,tooltip:"Paintbrush"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"grip-lines",fontSize:2,iconRotation:-45,onClick:function(){return L(1)},selected:b===1,tooltip:"Line"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{icon:"bucket",fontSize:2,onClick:function(){return L(2)},selected:b===2,tooltip:"Fill"})})]})}),(0,e.jsx)(i.BJ.Item,{grow:!0}),(0,e.jsx)(i.BJ.Item,{pr:1,children:(0,e.jsx)(x,{tool:b,value:S.grid,dotsize:N,onCanvasClick:function(V,k){return _("paint",{x:V,y:k})}})})]}),(0,e.jsxs)(i.az,{textAlign:"center",children:[!S.finalized&&(0,e.jsx)(i.$n.Confirm,{onClick:function(){return _("finalize")},children:"Finalize"}),"\xA0",S.name]})]})})}},35116:function(y,u,n){"use strict";n.r(u),n.d(u,{CasinoPrizeDispenser:function(){return l}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(15581);function g(){return g=Object.assign||function(v){for(var x=1;x=0)&&(E[C]=v[C]);return E}var a={Alphabetical:function(v,x){return v.name>x.name},"By price":function(v,x){return v.price-x.price}},l=function(){var v=function($){M($)},x=function($){S($)},E=function($){L($)},j=(0,t.useState)(""),C=j[0],M=j[1],P=(0,t.useState)("Alphabetical"),_=P[0],S=P[1],T=(0,t.useState)(!1),b=T[0],L=T[1];return(0,e.jsx)(f.p8,{width:400,height:450,children:(0,e.jsx)(f.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s,{sortOrder:_,descending:b,onSearchText:v,onSortOrder:x,onDescending:E}),(0,e.jsx)(c,{searchText:C,sortOrder:_,descending:b})]})})})},s=function(v){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(x,E){return v.onSearchText(E)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{autoScroll:!1,selected:v.sortOrder,options:Object.keys(a),width:"100%",lineHeight:"19px",onSelected:function(x){return v.onSortOrder(x)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$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)}})})]})})},c=function(v){var x=(0,r.Oc)(),E=x.act,j=x.data,C=j.items,M=(0,o.XZ)(v.searchText,function(S){return S[0]}),P=!1,_=Object.entries(C).map(function(S){var T=Object.entries(S[1]).filter(M).map(function(b){return b[1]}).sort(a[v.sortOrder]);if(T.length!==0)return v.descending&&(T=T.reverse()),P=!0,(0,e.jsx)(h,{title:S[0],items:T},S[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:P?_:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(v){var x=(0,r.Oc)().act,E=v.title,j=v.items,C=d(v,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:E},C,{children:j.map(function(M){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:M.name}),(0,e.jsx)(i.$n,{width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return x("purchase",{cat:E,name:M.name,price:M.price,restriction:M.restriction})},children:M.price.toLocaleString("en-US")}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},M.name)})}))}},43966:function(y,u,n){"use strict";n.r(u),n.d(u,{CharacterDirectory:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),f=function(s){switch(s){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"}},g=function(s){var c=function(N){_(N)},h=(0,t.Oc)(),v=h.act,x=h.data,E=x.personalVisibility,j=x.personalTag,C=x.personalErpTag,M=(0,o.useState)(null),P=M[0],_=M[1],S=(0,o.useState)(!1),T=S[0],b=S[1];return(0,e.jsx)(i.p8,{width:640,height:480,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:P&&(0,e.jsx)(d,{overlay:P,onOverlay:c})||(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 b(!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 v("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 v("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 v("setErpTag",{overwrite_prefs:T})},children:C})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return v("editAd",{overwrite_prefs:T})},children:"Edit Ad"})})]})}),(0,e.jsx)(a,{onOverlay:c})]})})})},d=function(s){return(0,e.jsxs)(r.wn,{title:s.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",onClick:function(){return s.onOverlay(null)},children:"Back"}),children:[(0,e.jsx)(r.wn,{title:"Species",children:(0,e.jsx)(r.az,{children:s.overlay.species})}),(0,e.jsx)(r.wn,{title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:f(s.overlay.tag),children:s.overlay.tag})}),(0,e.jsx)(r.wn,{title:"ERP Tag",children:(0,e.jsx)(r.az,{children:s.overlay.erptag})}),(0,e.jsx)(r.wn,{title:"Character Ad",children:(0,e.jsx)(r.az,{style:{wordBreak:"break-all"},preserveWhitespace:!0,children:s.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:s.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:s.overlay.flavor_text||"Unset."})})]})},a=function(s){var c=function(L){P(L)},h=function(L){T(L)},v=(0,t.Oc)(),x=v.act,E=v.data,j=E.directory,C=(0,o.useState)("name"),M=C[0],P=C[1],_=(0,o.useState)("name"),S=_[0],T=_[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",onClick:function(){return x("refresh")},children:"Refresh"}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(l,{id:"name",sortId:M,sortOrder:S,onSortId:c,onSortOrder:h,children:"Name"}),(0,e.jsx)(l,{id:"species",sortId:M,sortOrder:S,onSortId:c,onSortOrder:h,children:"Species"}),(0,e.jsx)(l,{id:"tag",sortId:M,sortOrder:S,onSortId:c,onSortOrder:h,children:"Vore Tag"}),(0,e.jsx)(l,{id:"erptag",sortId:M,sortOrder:S,onSortId:c,onSortOrder:h,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),j.sort(function(b,L){var N=S?1:-1;return b[M].localeCompare(L[M])*N}).map(function(b,L){return(0,e.jsxs)(r.XI.Row,{backgroundColor:f(b.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:b.name}),(0,e.jsx)(r.XI.Cell,{children:b.species}),(0,e.jsx)(r.XI.Cell,{children:b.tag}),(0,e.jsx)(r.XI.Cell,{children:b.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return s.onOverlay(b)},color:"transparent",icon:"sticky-note",mr:1,children:"View"})})]},L)})]})})},l=function(s){var c=s.id,h=s.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:s.sortId!==c&&"transparent",onClick:function(){s.sortId===c?s.onSortOrder(!s.sortOrder):(s.onSortId(c),s.onSortOrder(!0))},children:[h,s.sortId===c&&(0,e.jsx)(r.In,{name:s.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},15559:function(y,u,n){"use strict";n.r(u),n.d(u,{CheckboxInput:function(){return l}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(19996),g=n(15581),d=n(5335),a=n(44149),l=function(s){var c=(0,r.Oc)().data,h=c.items,v=h===void 0?[]:h,x=c.min_checked,E=c.max_checked,j=c.message,C=c.timeout,M=c.title,P=(0,t.useState)([]),_=P[0],S=P[1],T=(0,t.useState)(""),b=T[0],L=T[1],N=(0,o.XZ)(b,function(w){return w}),$=v.filter(N),z=function(w){var V=_.includes(w)?_.filter(function(k){return k!==w}):[].concat(_,[w]);S(V)};return(0,e.jsxs)(g.p8,{title:M,width:425,height:300,children:[!!C&&(0,e.jsx)(a.Loader,{value:C}),(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.IC,{info:!0,textAlign:"center",children:[(0,o.jT)(j)," ",x>0&&" (Min: "+x+")",E<50&&" (Max: "+E+")"]})}),(0,e.jsx)(i.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(i.XI,{children:$.map(function(w,V){return(0,e.jsx)(f.Hj,{className:"candystripe",children:(0,e.jsx)(f.nA,{children:(0,e.jsx)(i.$n.Checkbox,{checked:_.includes(w),disabled:_.length>=E&&!_.includes(w),fluid:!0,onClick:function(){return z(w)},children:w})})},V)})})})}),(0,e.jsxs)(i.BJ,{m:1,mb:0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(i.In,{name:"search",mt:.5})})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.pd,{fluid:!0,value:b,onInput:function(w,V){return L(V)}})})]}),(0,e.jsx)(i.BJ.Item,{mt:.7,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(d.InputButtons,{input:_})})})]})})]})}},29361:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserBeaker:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),i=n(58820),f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.isBeakerLoaded,c=l.beakerCurrentVolume,h=l.beakerMaxVolume,v=l.beakerContents,x=v===void 0?[]:v,E=l.recipes,j=l.recordingRecipe,C=!!j,M=C&&j.map(function(P){return{id:P.id,name:P.id.replace(/_/," "),volume:P.amount}});return(0,e.jsx)(t.wn,{title:C?"Virtual Beaker":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(t.az,{children:[!!s&&(0,e.jsxs)(t.az,{inline:!0,color:"label",mr:2,children:[c," / ",h," units"]}),(0,e.jsx)(t.$n,{icon:"eject",disabled:!s,onClick:function(){return a("ejectBeaker")},children:"Eject"})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:M||s,beakerContents:M||x,buttons:function(P){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"compress-arrows-alt",disabled:C,onClick:function(){return a("remove",{reagent:P.id,amount:-1})},children:"Isolate"}),i.removeAmounts.map(function(_,S){return(0,e.jsx)(t.$n,{disabled:C,onClick:function(){return a("remove",{reagent:P.id,amount:_})},children:_},S)}),(0,e.jsx)(t.$n,{disabled:C,onClick:function(){return a("remove",{reagent:P.id,amount:P.volume})},children:"ALL"})]})}})})}},64776:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserChemicals:function(){return i}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=function(g){for(var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.chemicals,c=s===void 0?[]:s,h=[],v=0;v<(c.length+1)%3;v++)h.push(!0);return(0,e.jsx)(r.wn,{title:l.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:!0,buttons:(0,e.jsx)(f,{}),children:(0,e.jsxs)(r.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[c.map(function(x,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:x.id})},children:x.name+" ("+x.volume+")"})},E)}),h.map(function(x,E){return(0,e.jsx)(r.so.Item,{grow:"1",basis:"25%",height:"20px"},E)})]})})},f=function(g){var d=(0,t.Oc)().data,a=!!d.recordingRecipe,l=(0,o.useState)(!1),s=l[0],c=l[1];return(0,o.useEffect)(function(){if(a){var h=setInterval(function(){c(function(v){return!v})},1e3);return function(){return clearInterval(h)}}},[a]),a?(0,e.jsx)(r.m_,{content:"Recording in progress",children:(0,e.jsx)(r.In,{mt:.7,color:"bad",name:s?"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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.recipes,l=d.recordingRecipe,s=!!l,c=Object.keys(a).sort();return(0,e.jsxs)(t.wn,{title:"Recipes",fill:!0,scrollable:!0,buttons:(0,e.jsxs)(e.Fragment,{children:[!s&&(0,e.jsx)(t.$n,{icon:"circle",onClick:function(){return g("record_recipe")},children:"Record"}),s&&(0,e.jsx)(t.$n,{icon:"ban",color:"bad",onClick:function(){return g("cancel_recording")},children:"Discard"}),s&&(0,e.jsx)(t.$n,{icon:"save",color:"green",onClick:function(){return g("save_recording")},children:"Save"}),!s&&(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"bad",onClick:function(){return g("clear_recipes")},children:"Clear All"})]}),children:[s&&(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"}),"."]})]}),c.length?c.map(function(h){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 g("dispense_recipe",{recipe:h})},children:h})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n.Confirm,{icon:"trash",confirmIcon:"triangle-exclamation",confirmContent:"",color:"bad",onClick:function(){return g("remove_recipe",{recipe:h})}})})]},h)}):"No Recipes."]})}},38908:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemDispenserSettings:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(58820),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=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(s,c){return(0,e.jsx)(t.$n,{textAlign:"center",selected:l===s,m:"0",onClick:function(){return d("amount",{amount:s})},children:s+"u"},c)})}),(0,e.jsx)(t.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(t.Ap,{step:1,stepPixelSize:5,value:l,minValue:1,maxValue:120,onDrag:function(s,c){return d("amount",{amount:c})}})})]})})}},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),i=n(29361),f=n(64776),g=n(92090),d=n(38908),a=function(l){var s=(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)(g.ChemDispenserRecipes,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(f.ChemDispenserChemicals,{})})]})}),(0,e.jsx)(t.BJ.Item,{grow:!0,children:(0,e.jsx)(i.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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=i.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 g("print",{idx:a.idx,beaker:i.args.beaker})},children:"Print"})]})})})}},88737:function(y,u,n){"use strict";n.r(u),n.d(u,{ChemMasterBeaker:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(78924),i=n(86471),f=n(16793),g=function(d){var a=(0,o.Oc)().act,l=d.beaker,s=d.beakerReagents,c=d.bufferNonEmpty,h=c?(0,e.jsx)(t.$n.Confirm,{icon:"eject",disabled:!l,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"}):(0,e.jsx)(t.$n,{icon:"eject",disabled:!l,onClick:function(){return a("eject")},children:"Eject and Clear Buffer"});return(0,e.jsx)(t.wn,{title:"Beaker",buttons:h,children:l?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:s,buttons:function(v,x){return(0,e.jsxs)(t.az,{mb:x0?(0,e.jsx)(r.BeakerContents,{beakerLoaded:!0,beakerContents:c,buttons:function(h,v){return(0,e.jsxs)(t.az,{mb:v0}),(0,e.jsx)(g.ChemMasterBuffer,{mode:C,bufferReagents:j}),(0,e.jsx)(d.ChemMasterProduction,{isCondiment:c,bufferNonEmpty:j.length>0,loaded_pill_bottle:M,loaded_pill_bottle_name:P||"",loaded_pill_bottle_contents_len:_||0,loaded_pill_bottle_storage_slots:S||0,pillsprite:T,bottlesprite:b})]})]})};(0,r.modalRegisterBodyOverride)("analyze",i.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.wintick,s=a.instructions,c=a.gameStatus,h=a.winscreen,v;return c==="CLAWMACHINE_NEW"?v=(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",{}),s,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("newgame")},children:"Start"})]}):c==="CLAWMACHINE_END"?v=(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",{}),h,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{onClick:function(){return d("return")},children:"Close"})]}):c==="CLAWMACHINE_ON"&&(v=(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:l,minValue:0,maxValue:10})})}),(0,e.jsxs)(t.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),s,(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:v})})}},76914:function(y,u,n){"use strict";n.r(u),n.d(u,{Cleanbot:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,s=a.open,c=a.locked,h=a.version,v=a.blood,x=a.vocal,E=a.wet_floors,j=a.spray_blood,C=a.rgbpanel,M=a.red_switch,P=a.green_switch,_=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 "+h,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:l,onClick:function(){return d("start")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:c?"good":"bad",children:c?"Locked":"Unlocked"})]})}),!c&&(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:v?"toggle-on":"toggle-off",selected:v,onClick:function(){return d("blood")},children:v?"Clean":"Ignore"})}),(0,e.jsx)(t.Ki.Item,{label:"Speaker",children:(0,e.jsx)(t.$n,{fluid:!0,icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){return d("vocal")},children:x?"On":"Off"})})]})})||null,!c&&s&&(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:C&&(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:P?"toggle-on":"toggle-off",backgroundColor:P?"green":"darkgreen",onClick:function(){return d("green_switch")}}),(0,e.jsx)(t.$n,{fontSize:5.39,icon:_?"toggle-on":"toggle-off",backgroundColor:_?"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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(79500),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.disk,s=a.podready,c=f.args,h=c.activerecord,v=c.realname,x=c.health,E=c.unidentity,j=c.strucenzymes,C=x.split(" - ");return(0,e.jsx)(t.wn,{m:"-1rem",pb:"1rem",title:"Records of "+v,children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:v}),(0,e.jsx)(t.Ki.Item,{label:"Damage",children:C.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.az,{color:r.lm.damageType.oxy,inline:!0,children:C[0]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.toxin,inline:!0,children:C[2]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.brute,inline:!0,children:C[3]}),"\xA0|\xA0",(0,e.jsx)(t.az,{color:r.lm.damageType.burn,inline:!0,children:C[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:!l,icon:"arrow-circle-down",onClick:function(){return d("disk",{option:"load"})},children:"Import"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ui"})},children:"Export UI"}),(0,e.jsx)(t.$n,{disabled:!l,icon:"arrow-circle-up",onClick:function(){return d("disk",{option:"save",savetype:"ue"})},children:"Export UI and UE"}),(0,e.jsx)(t.$n,{disabled:!l,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:!s,icon:"user-plus",onClick:function(){return d("clone",{ref:h})},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(i){var f=(0,o.Oc)(),g=f.act,d=f.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 g("menu",{num:1})},children:"Main"}),(0,e.jsx)(t.tU.Tab,{selected:a===2,icon:"folder",onClick:function(){return g("menu",{num:2})},children:"Records"})]})}},16981:function(y,u,n){"use strict";n.r(u),n.d(u,{CloningConsoleStatus:function(){return f},CloningConsoleTemp:function(){return i}});var e=n(20462),o=n(7081),t=n(88569);function r(){return r=Object.assign||function(g){for(var d=1;d=150?"good":"bad",inline:!0,children:[(0,e.jsx)(i.In,{name:S.biomass>=150?"circle":"circle-o"}),"\xA0",S.biomass]}),b]},T)}):(0,e.jsx)(i.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},g=function(d){var a=(0,r.Oc)(),l=a.act,s=a.data,c=s.records;return c.length?(0,e.jsx)(i.az,{mt:"0.5rem",children:c.map(function(h,v){return(0,e.jsx)(i.$n,{icon:"user",mb:"0.5rem",onClick:function(){return l("view_rec",{ref:h.record})},children:h.realname},v)})}):(0,e.jsx)(i.so,{height:"100%",children:(0,e.jsxs)(i.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(i.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 l}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),i=n(15581),f=n(90307),g=n(57981),d=n(16981),a=n(37651),l=function(s){var c=(0,o.Oc)().data,h=c.menu,v=[];return v[1]=(0,e.jsx)(a.CloningConsoleMain,{}),v[2]=(0,e.jsx)(a.CloningConsoleRecords,{}),(0,r.modalRegisterBodyOverride)("view_rec",f.viewRecordModalBodyOverride),(0,e.jsxs)(i.p8,{children:[(0,e.jsx)(r.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d.CloningConsoleTemp,{}),(0,e.jsx)(d.CloningConsoleStatus,{}),(0,e.jsx)(g.CloningConsoleNavigation,{}),(0,e.jsx)(t.wn,{noTopPadding:!0,flexGrow:!0,children:v[h]||(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 f},ColorMateTint:function(){return i}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=function(g){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"})},f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.buildhue,c=l.buildsat,h=l.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:s,format:function(v){return(0,o.Mg)(v)},onDrag:function(v,x){return a("set_hue",{buildhue:x})}})})]}),(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:c,format:function(v){return(0,o.Mg)(v,2)},onDrag:function(v,x){return a("set_sat",{buildsat:x})}})})]}),(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:h,format:function(v){return(0,o.Mg)(v,2)},onDrag:function(v,x){return a("set_val",{buildval:x})}})})]})]})}},17852:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMateMatrix:function(){return i}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=function(f){var g=(0,t.Oc)(),d=g.act,a=g.data,l=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:l.rr,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:1,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gr,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:4,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.br,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:7,value:s})}})]})]}),(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:l.rg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:2,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:5,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.bg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:8,value:s})}})]})]}),(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:l.rb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:3,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.gb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:6,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.bb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:9,value:s})}})]})]}),(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:l.cr,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:10,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cg,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:11,value:s})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:l.cb,format:function(s){return(0,o.Mg)(s,2)},onChange:function(s){return d("set_matrix_color",{color:12,value:s})}})]})]}),(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(l).toString(),onChange:function(s,c){return d("set_matrix_string",{value:c})}})})})})]})}},11145:function(y,u,n){"use strict";n.r(u),n.d(u,{ColorMate:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(61942),f=n(17852),g=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.activemode,h=s.temp,v=s.item,x=[];return x[1]=(0,e.jsx)(i.ColorMateTint,{}),x[2]=(0,e.jsx)(i.ColorMateHSV,{}),x[3]=(0,e.jsx)(f.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:[h?(0,e.jsx)(t.IC,{children:h}):null,v&&Object.keys(v).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, "+v.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, "+v.preview,style:{width:"100%",height:"100%"}})]})})]}),(0,e.jsxs)(t.tU,{fluid:!0,children:[(0,e.jsx)(t.tU.Tab,{selected:c===1,onClick:function(){return l("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(t.tU.Tab,{selected:c===2,onClick:function(){return l("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(t.tU.Tab,{selected:c===3,onClick:function(){return l("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",v.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 l("paint")},children:"Paint"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eraser",onClick:function(){return l("clear")},children:"Clear"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eject",onClick:function(){return l("drop")},children:"Eject"})]}),(0,e.jsx)(t.XI.Cell,{width:"66%",children:x[c]||(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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.authenticated,l=d.is_ai,s=d.esc_status,c=d.esc_callable,h=d.esc_recallable,v;return a?l?v="AI":a===1?v="Command":a===2?v="Site Director":v="ERROR: Report This Bug!":v="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Authentication",children:(0,e.jsx)(t.Ki,{children:l&&(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 g("auth")},children:a?"Log Out ("+v+")":"Log In"})})})}),(0,e.jsx)(t.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(t.Ki,{children:[!!s&&(0,e.jsx)(t.Ki.Item,{label:"Status",children:s}),!!c&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"rocket",disabled:!a,onClick:function(){return g("callshuttle")},children:"Call Shuttle"})}),!!h&&(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"times",disabled:!a||l,onClick:function(){return g("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),i=n(73612),f=n(72298),g=n(19467),d=function(l){var s=(0,o.Oc)().data,c=s.menu_state,h=[];return h[1]=(0,e.jsx)(i.CommunicationsConsoleMain,{}),h[2]=(0,e.jsx)(g.CommunicationsConsoleStatusDisplay,{}),h[3]=(0,e.jsx)(f.CommunicationsConsoleMessage,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.CommunicationsConsoleAuth,{}),h[c]||(0,e.jsx)(a,{menu_state:c})]})},a=function(l){var s=l.menu_state;return(0,e.jsxs)(t.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",s,"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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.messages,l=d.msg_cooldown,s=d.emagged,c=d.cc_cooldown,h=d.str_security_level,v=d.levels,x=d.authmax,E=d.security_level,j=d.security_level_color,C=d.authenticated,M=d.atcsquelch,P=d.boss_short,_="View ("+a.length+")",S="Make Priority Announcement";l>0&&(S+=" ("+l+"s)");var T=s?"Message [UNKNOWN]":"Message "+P;c>0&&(T+=" ("+c+"s)");var b=h,L=v.map(function(N){return(0,e.jsx)(t.$n,{icon:N.icon,disabled:!C,selected:N.id===E,onClick:function(){return g("newalertlevel",{level:N.id})},children:N.name},N.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:!x||l>0,onClick:function(){return g("announce")},children:S})}),!!s&&(0,e.jsxs)(t.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(t.$n,{icon:"broadcast-tower",color:"red",disabled:!x||c>0,onClick:function(){return g("MessageSyndicate")},children:T}),(0,e.jsx)(t.$n,{icon:"sync-alt",disabled:!x,onClick:function(){return g("RestoreBackup")},children:"Reset Relays"})]})||(0,e.jsx)(t.Ki.Item,{label:"Transmit",children:(0,e.jsx)(t.$n,{icon:"broadcast-tower",disabled:!x||c>0,onClick:function(){return g("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:b}),(0,e.jsx)(t.Ki.Item,{label:"Change Alert",children:L}),(0,e.jsx)(t.Ki.Item,{label:"Displays",children:(0,e.jsx)(t.$n,{icon:"tv",disabled:!C,onClick:function(){return g("status")},children:"Change Status Displays"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(t.$n,{icon:"folder-open",disabled:!C,onClick:function(){return g("messagelist")},children:_})}),(0,e.jsx)(t.Ki.Item,{label:"Misc",children:(0,e.jsx)(t.$n,{icon:"microphone",disabled:!C,selected:M,onClick:function(){return g("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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.message_current,l=d.message_deletion_allowed,s=d.authenticated,c=d.messages;if(a)return(0,e.jsx)(t.wn,{title:a.title,buttons:(0,e.jsx)(t.$n,{icon:"times",disabled:!s,onClick:function(){return g("messagelist")},children:"Return To Message List"}),children:(0,e.jsx)(t.az,{children:a.contents})});var h=c.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.title,children:[(0,e.jsx)(t.$n,{icon:"eye",disabled:!s,onClick:function(){return g("messagelist",{msgid:v.id})},children:"View"}),(0,e.jsx)(t.$n,{icon:"times",disabled:!s||!l,onClick:function(){return g("delmessage",{msgid:v.id})},children:"Delete"})]},v.id)});return(0,e.jsx)(t.wn,{title:"Messages Received",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return g("main")},children:"Back To Main Menu"}),children:(0,e.jsx)(t.Ki,{children:c.length&&h||(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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.stat_display,l=d.authenticated,s=a.presets.map(function(c){return(0,e.jsx)(t.$n,{selected:c.name===a.type,disabled:!l,onClick:function(){return g("setstat",{statdisp:c.name})},children:c.label},c.name)});return(0,e.jsx)(t.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(t.$n,{icon:"arrow-circle-left",onClick:function(){return g("main")},children:"Back To Main Menu"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Presets",children:s}),(0,e.jsx)(t.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(t.$n,{icon:"pencil-alt",disabled:!l,onClick:function(){return g("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:!l,onClick:function(){return g("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(i){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 f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.knownDevices;return(0,e.jsx)(r.wn,{title:"Known Devices",children:s.length&&(0,e.jsx)(r.XI,{children:s.map(function(c){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)(c.name)}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:c.address}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){a("copy",{copy:c.address}),a("switch_tab",{switch_tab:i.PHONTAB})},children:"Copy"}),(0,e.jsx)(r.$n,{icon:"phone",onClick:function(){a("dial",{dial:c.address}),a("copy",{copy:c.address}),a("switch_tab",{switch_tab:i.PHONTAB})},children:"Call"}),(0,e.jsx)(r.$n,{icon:"comment-alt",onClick:function(){a("copy",{copy:c.address}),a("copy_name",{copy_name:c.name}),a("switch_tab",{switch_tab:i.MESSSUBTAB})},children:"Msg"})]})]})]},c.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 g},TemplateError:function(){return f},VideoComm:function(){return a}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),f=function(l){return(0,e.jsxs)(r.wn,{title:"Error!",children:["You tried to access tab #",l.currentTab,", but there was no template defined!"]})},g=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.time,x=h.connectionStatus,E=h.owner,j=h.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:v}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.In,{color:x===1?"good":"bad",name:x===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(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.flashlight,x=l.videoSetting,E=l.setVideoSetting;return(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:x===2?"60%":"80%",children:(0,e.jsx)(r.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return c("switch_tab",{switch_tab:i.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:v,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return c("Light")}})}),x===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(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.mapRef,x=l.videoSetting,E=l.setVideoSetting;return x===0?(0,e.jsxs)(r.az,{width:"100%",height:"100%",children:[(0,e.jsx)(r.D1,{width:"100%",height:"95%",params:{id:v,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 c("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 c("hang_up")}})})]})]}):x===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 c("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 c("hang_up")}})})]})}),(0,e.jsx)(r.D1,{width:"200px",height:"200px",params:{id:v,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(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.homeScreen;return(0,e.jsx)(t.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:l.map(function(s){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:s.number})},children:(0,e.jsx)(t.In,{spin:i(s.module),color:i(s.module)?"bad":null,name:s.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(t.az,{children:s.module})]},s.number)})})},i=function(f){var g=(0,o.Oc)().data,d=g.voice_mobs,a=g.communicating,l=g.requestsReceived,s=g.invitesSent,c=g.video_comm;return!!(f==="Phone"&&(d.length||a.length||l.length||s.length||c))}},51445:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageSubTab:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=a.clipboardMode,v=a.onClipboardMode,x=c.targetAddress,E=c.targetAddressName,j=c.imList;return h?(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"90%",children:g("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:h,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return v(!h)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(C,M){return(C.to_address===x||C.address===x)&&(0,e.jsxs)(r.az,{className:f(C,x)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[f(C,x)?"You":"Them",": ",C.im]},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return s("message",{message:x})},children:"Message"})]}):(0,e.jsxs)(r.wn,{title:(0,e.jsx)(r.az,{inline:!0,style:{whiteSpace:"nowrap",overflowX:"hidden"},width:"100%",children:g("Conversation with ",(0,o.jT)(E),30)}),buttons:(0,e.jsx)(r.$n,{icon:"eye",selected:h,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return v(!h)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(r.wn,{style:{height:"95%",overflowY:"auto"},children:j.map(function(C,M,P){return(C.to_address===x||C.address===x)&&(0,e.jsx)(r.az,{textAlign:f(C,x)?"right":"left",mb:1,children:(0,e.jsx)(r.az,{maxWidth:"75%",className:d(C,x,M-1,P),inline:!0,children:(0,o.jT)(C.im)})},M)})}),(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return s("message",{message:x})},children:"Message"})]})},f=function(a,l){return a.address!==l},g=function(a,l,s){return(a+l).length>s?l.length>s?l.slice(0,s)+"...":l:a+l},d=function(a,l,s,c){if(s<0||s>c.length)return f(a,l)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var h=f(a,l),v=f(c[s],l);return h&&v?"TinderMessage_Subsequent_Sent":!h&&!v?"TinderMessage_Subsequent_Received":h?"TinderMessage_First_Sent":"TinderMessage_First_Received"}},26217:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorMessageTab:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.imContacts;return(0,e.jsx)(r.wn,{title:"Messaging",children:s.length&&(0,e.jsx)(r.XI,{children:s.map(function(c){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)(c.name),":"]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.az,{children:c.address}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){a("copy",{copy:c.address}),a("copy_name",{copy_name:c.name}),a("switch_tab",{switch_tab:i.MESSSUBTAB})},children:"View Conversation"})})]})]},c.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:i.CONTTAB})},children:"Contacts"})]})})}},28953:function(y,u,n){"use strict";n.r(u),n.d(u,{CommunicatorNewsTab:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(f){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.feeds,s=a.target_feed,c=a.latest_news;return(0,e.jsx)(r.wn,{title:"News",stretchContents:!0,height:"100%",children:!l.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||s&&(0,e.jsx)(r.wn,{title:(0,o.jT)(s.name)+" by "+(0,o.jT)(s.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:null})},children:"Back"}),children:s.messages.map(function(h){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(h.body),!!h.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+h.img}),(0,o.jT)(h.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",h.message_type," by"," ",(0,o.jT)(h.author)," - ",h.time_stamp,"]"]})]},h.ref)})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:(0,e.jsx)(r.wn,{children:c.map(function(h){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(h.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:h.index})},children:"Go to"})]}),"- ",(0,o.jT)(h.body),!!h.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",h.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",h.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:h.author})," ","- ",h.time_stamp,"]"]})]},h.index)})})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:l.map(function(h){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return d("newsfeed",{newsfeed:h.index})},children:h.name},h.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(i){var f=(0,o.Oc)(),g=f.act,d=f.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 g("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 f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(74293),f=function(s){for(var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.selfie_mode,E=v.targetAddress,j=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],C=j.map(function(_){return(0,e.jsx)(r.$n,{fontSize:2,fluid:!0,onClick:function(){return h("add_hex",{add_hex:_})},children:_},_)}),M=[],P=0;Ps?"average":d>c?"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 i},MESSTAB:function(){return r},NEWSTAB:function(){return f},NOTETAB:function(){return g},PHONTAB:function(){return o},SETTTAB:function(){return l},WTHRTAB:function(){return d},notFound:function(){return c},tabs:function(){return s}});var e=1,o=2,t=3,r=4,i=40,f=5,g=6,d=7,a=8,l=9,s=[e,o,t,r,i,f,g,d,a,l];function c(h){return s.includes(h)}},42320:function(y,u,n){"use strict";n.r(u),n.d(u,{Communicator:function(){return C}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),f=n(58044),g=n(59546),d=n(28215),a=n(46873),l=n(51445),s=n(26217),c=n(28953),h=n(47106),v=n(10674),x=n(4435),E=n(81450),j=n(74293),C=function(){var M=function(Y){k(Y)},P=(0,t.Oc)(),_=P.act,S=P.data,T=S.currentTab,b=S.video_comm,L=[],N=(0,o.useState)(0),$=N[0],z=N[1],w=(0,o.useState)(!1),V=w[0],k=w[1];return L[j.tabs[0]]=(0,e.jsx)(a.CommunicatorHomeTab,{}),L[j.tabs[1]]=(0,e.jsx)(v.CommunicatorPhoneTab,{}),L[j.tabs[2]]=(0,e.jsx)(g.CommunicatorContactTab,{}),L[j.tabs[3]]=(0,e.jsx)(s.CommunicatorMessageTab,{}),L[j.tabs[4]]=(0,e.jsx)(l.CommunicatorMessageSubTab,{clipboardMode:V,onClipboardMode:M}),L[j.tabs[5]]=(0,e.jsx)(c.CommunicatorNewsTab,{}),L[j.tabs[6]]=(0,e.jsx)(h.CommunicatorNoteTab,{}),L[j.tabs[7]]=(0,e.jsx)(E.CommunicatorWeatherTab,{}),L[j.tabs[8]]=(0,e.jsx)(f.CrewManifestContent,{}),L[j.tabs[9]]=(0,e.jsx)(x.CommunicatorSettingsTab,{}),(0,e.jsx)(i.p8,{width:475,height:700,children:(0,e.jsxs)(i.p8.Content,{children:[b&&(0,e.jsx)(d.VideoComm,{videoSetting:$,setVideoSetting:z}),(!b||$!==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:L[T]||(0,j.notFound)(T)&&(0,e.jsx)(d.TemplateError,{currentTab:T})}),(0,e.jsx)(d.CommunicatorFooter,{videoSetting:$,setVideoSetting:z})]})]})})}},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(i){var f=(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 f("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 f("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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.totalprice,l=d.hw_battery,s=d.hw_disk,c=d.hw_netcard,h=d.hw_nanoprint,v=d.hw_card,x=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:l===1,onClick:function(){return g("hw_battery",{battery:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===2,onClick:function(){return g("hw_battery",{battery:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:l===3,onClick:function(){return g("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:s===1,onClick:function(){return g("hw_disk",{disk:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:s===2,onClick:function(){return g("hw_disk",{disk:"2"})},children:"Upgraded"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:s===3,onClick:function(){return g("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:c===0,onClick:function(){return g("hw_netcard",{netcard:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===1,onClick:function(){return g("hw_netcard",{netcard:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:c===2,onClick:function(){return g("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:h===0,onClick:function(){return g("hw_nanoprint",{print:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:h===1,onClick:function(){return g("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:v===0,onClick:function(){return g("hw_card",{card:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:v===1,onClick:function(){return g("hw_card",{card:"1"})},children:"Standard"})})]}),x!==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 g("hw_cpu",{cpu:"1"})},children:"Standard"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:E===2,onClick:function(){return g("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 g("hw_tesla",{tesla:"0"})},children:"None"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{selected:j===1,onClick:function(){return g("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 g("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 i=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:[i,"\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),i=n(62311),f=n(78820),g=n(3777),d=n(44430),a=function(l){var s=(0,o.Oc)(),c=s.act,h=s.data,v=h.state,x=h.totalprice,E=[];return E[0]=(0,e.jsx)(i.CfStep1,{}),E[1]=(0,e.jsx)(f.CfStep2,{}),E[2]=(0,e.jsx)(g.CfStep3,{totalprice:x}),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..."}),v!==0&&(0,e.jsx)(t.$n,{fluid:!0,mb:1,icon:"circle",onClick:function(){return c("clean_order")},children:"Clear Order"}),E[v]]})})}},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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.temperature,s=a.optimalTemp,c=a.temperatureEnough,h=a.efficiency,v=a.containersRemovable,x=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:c?"good":"blue",value:l,maxValue:s,children:[(0,e.jsx)(t.zv,{value:l}),"\xB0C / ",s,"\xB0C"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(t.zv,{value:h}),"%"]})]})}),(0,e.jsx)(t.wn,{title:"Containers",children:(0,e.jsx)(t.Ki,{children:x.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:!v,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 g},CrewManifestContent:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(79500),f=n(15581),g=function(){return(0,e.jsx)(f.p8,{width:400,height:600,children:(0,e.jsx)(f.p8.Content,{scrollable:!0,children:(0,e.jsx)(d,{})})})},d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=c.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:h.map(function(v){return!!v.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:i.lm.manifest[v.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:v.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"})]}),v.elems.map(function(x){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,o.jT)(x.name)}),(0,e.jsx)(r.XI.Cell,{children:x.rank}),(0,e.jsx)(r.XI.Cell,{children:x.active})]},x.name+x.rank)})]})},v.cat)})})}},70117:function(y,u,n){"use strict";n.r(u),n.d(u,{CrewMonitor:function(){return l},CrewMonitorContent:function(){return s}});var e=n(20462),o=n(7402),t=n(15813),r=n(61358),i=n(7081),f=n(88569),g=n(15581),d=function(v){return v.dead?"Deceased":v.stat===1?"Unconscious":"Living"},a=function(v){return v.dead?"red":v.stat===1?"orange":"green"},l=function(){var v=function(T){C(T)},x=function(T){_(T)},E=(0,r.useState)(0),j=E[0],C=E[1],M=(0,r.useState)(1),P=M[0],_=M[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(s,{tabIndex:j,zoom:P,onTabIndex:v,onZoom:x})})})},s=function(v){var x=(0,i.Oc)().data,E=x.crewmembers,j=E===void 0?[]:E,C=(0,t.L)([function(P){return(0,o.Ul)(P,function(_){return _.name})},function(P){return(0,o.Ul)(P,function(_){return _==null?void 0:_.x})},function(P){return(0,o.Ul)(P,function(_){return _==null?void 0:_.y})},function(P){return(0,o.Ul)(P,function(_){return _==null?void 0:_.realZ})}])(j),M=[];return M[0]=(0,e.jsx)(c,{crew:C}),M[1]=(0,e.jsx)(h,{zoom:v.zoom,onZoom:v.onZoom}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(f.tU,{children:[(0,e.jsxs)(f.tU.Tab,{selected:v.tabIndex===0,onClick:function(){return v.onTabIndex(0)},children:[(0,e.jsx)(f.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(f.tU.Tab,{selected:v.tabIndex===1,onClick:function(){return v.onTabIndex(1)},children:[(0,e.jsx)(f.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(f.az,{m:2,children:M[v.tabIndex]||(0,e.jsx)(f.az,{textColor:"red",children:"ERROR"})})]})},c=function(v){var x=(0,i.Oc)(),E=x.act,j=x.data,C=v.crew,M=j.isAI;return(0,e.jsxs)(f.XI,{children:[(0,e.jsxs)(f.XI.Row,{header:!0,children:[(0,e.jsx)(f.XI.Cell,{children:"Name"}),(0,e.jsx)(f.XI.Cell,{children:"Status"}),(0,e.jsx)(f.XI.Cell,{children:"Location"})]}),C.map(function(P){return(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsxs)(f.XI.Cell,{children:[P.name," (",P.assignment,")"]}),(0,e.jsxs)(f.XI.Cell,{children:[(0,e.jsx)(f.az,{inline:!0,color:a(P),children:d(P)}),P.sensor_type>=2?(0,e.jsxs)(f.az,{inline:!0,children:["(",(0,e.jsx)(f.az,{inline:!0,color:"red",children:P.brute}),"|",(0,e.jsx)(f.az,{inline:!0,color:"orange",children:P.fire}),"|",(0,e.jsx)(f.az,{inline:!0,color:"green",children:P.tox}),"|",(0,e.jsx)(f.az,{inline:!0,color:"blue",children:P.oxy}),")"]}):null]}),(0,e.jsx)(f.XI.Cell,{children:P.sensor_type===3?M?(0,e.jsx)(f.$n,{fluid:!0,icon:"location-arrow",onClick:function(){return E("track",{track:P.ref})},children:P.area+" ("+P.x+", "+P.y+")"}):P.area+" ("+P.x+", "+P.y+", "+P.z+")":"Not Available"})]},P.ref)})]})},h=function(v){var x=(0,i.Oc)(),E=x.config,j=x.data,C=j.zoomScale,M=j.crewmembers;return(0,e.jsx)(f.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(f.tx,{zoomScale:C,onZoom:function(P){return v.onZoom(P)},children:M.filter(function(P){return P.sensor_type===3&&~~P.realZ===~~E.mapZLevel}).map(function(P){return(0,e.jsx)(f.tx.Marker,{x:P.x,y:P.y,zoom:v.zoom,icon:"circle",tooltip:P.name+" ("+P.assignment+")",color:a(P)},P.ref)})})})}},67268:function(y,u,n){"use strict";n.r(u),n.d(u,{CryoStorage:function(){return f},CryoStorageCrew:function(){return g},CryoStorageDefaultError:function(){return a},CryoStorageItems:function(){return d}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),f=function(l){var s=(0,t.Oc)().data,c=s.real_name,h=s.allow_items,v=(0,o.useState)(0),x=v[0],E=v[1],j=[];return j[0]=(0,e.jsx)(g,{}),j[1]=h?(0,e.jsx)(d,{}):(0,e.jsx)(a,{}),(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:x===0,onClick:function(){return E(0)},children:"Crew"}),!!h&&(0,e.jsx)(r.tU.Tab,{selected:x===1,onClick:function(){return E(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",c,"."]}),j[x]]})})},g=function(l){var s=(0,t.Oc)().data,c=s.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:c.length&&c.map(function(h){return(0,e.jsx)(r.az,{color:"label",children:h},h)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},d=function(l){var s=(0,t.Oc)().data,c=s.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:c.length&&c.map(function(h){return(0,e.jsx)(r.az,{color:"label",children:h},h)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})},a=function(l){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 f}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(17639),f=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.isOperating,h=s.hasOccupant,v=s.occupant,x=s.cellTemperature,E=s.cellTemperatureStatus,j=s.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 l("ejectOccupant")},disabled:!h,children:"Eject"}),children:h?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Occupant",children:v.name||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{minValue:0,maxValue:1,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.jsx)(r.zv,{value:v.health,format:function(C){return(0,o.Mg)(C)}})})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:i.statNames[v.stat][0],children:i.statNames[v.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsx)(r.zv,{value:v.bodyTemperature,format:function(C){return(0,o.Mg)(C)+" K"}})}),(0,e.jsx)(r.Ki.Divider,{}),i.damageTypes.map(function(C,M){return(0,e.jsx)(r.Ki.Item,{label:C.label,children:(0,e.jsx)(r.z2,{value:v[C.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(r.zv,{value:v[C.type],format:function(P){return(0,o.Mg)(P)}})})},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 l("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 l(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",color:E,children:[(0,e.jsx)(r.zv,{value:x})," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Beaker",children:(0,e.jsx)(g,{})})]})})]})},g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.isBeakerLoaded,h=s.beakerLabel,v=s.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[h||(0,e.jsx)(r.az,{color:"average",children:"No label"}),(0,e.jsx)(r.az,{color:!v&&"bad",children:v?(0,e.jsx)(r.zv,{value:v,format:function(x){return(0,o.Mg)(x)+" 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(i){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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.scan_progress,s=a.scanning,c=a.bloodsamp,h=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:s,disabled:!c,icon:"power-off",onClick:function(){return d("scanItem")},children:s?"Halt Scan":"Begin Scan"}),(0,e.jsx)(t.$n,{disabled:!c,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:l,maxValue:100})})})}),(0,e.jsx)(t.wn,{title:"Blood Sample",children:c&&(0,e.jsxs)(t.az,{children:[c,(0,e.jsx)(t.az,{color:"label",children:h})]})||(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(i){for(var f=function(E){for(var j=function(_){var S=_+1;M.push((0,e.jsx)(t.$n,{selected:a===C&&l===S,mb:"0",onClick:function(){return g(c,{block:C,subblock:S})},children:h[E+_]}))},C=E/s+1,M=[],P=0;Pj,icon:"syringe",onClick:function(){return v("injectRejuvenators",{amount:M})},children:M},P)}),(0,e.jsx)(t.$n,{disabled:j<=0,icon:"syringe",onClick:function(){return v("injectRejuvenators",{amount:j})},children:"All"})]}),(0,e.jsxs)(t.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(t.az,{mb:"0.5rem",children:C||"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(g){var d=(0,o.Oc)().data,a=d.buffers,l=a.map(function(s,c){return(0,e.jsx)(i,{id:c+1,name:"Buffer "+(c+1),buffer:s},c)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Buffers",children:l}),(0,e.jsx)(f,{})]})},i=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=g.id,c=g.name,h=g.buffer,v=l.isInjectorReady,x=c+(h.data?" - "+h.label:"");return(0,e.jsx)(t.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(t.wn,{title:x,mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!h.data,icon:"trash",onClick:function(){return a("bufferOption",{option:"clear",id:s})},children:"Clear"}),(0,e.jsx)(t.$n,{disabled:!h.data,icon:"pen",onClick:function(){return a("bufferOption",{option:"changeLabel",id:s})},children:"Rename"}),(0,e.jsx)(t.$n,{disabled:!h.data||!l.hasDisk,icon:"save",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return a("bufferOption",{option:"saveDisk",id:s})},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:s})},children:"Subject U.I"}),(0,e.jsx)(t.$n,{icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"saveUIAndUE",id:s})},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:s})},children:"Subject S.E."}),(0,e.jsx)(t.$n,{disabled:!l.hasDisk||!l.disk.data,icon:"arrow-circle-down",mb:"0",onClick:function(){return a("bufferOption",{option:"loadDisk",id:s})},children:"From Disk"})]}),!!h.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.Ki.Item,{label:"Subject",children:h.owner||(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[h.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!h.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(t.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(t.$n,{disabled:!v,icon:v?"syringe":"spinner",iconSpin:!v,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:s})},children:"Injector"}),(0,e.jsx)(t.$n,{disabled:!v,icon:v?"syringe":"spinner",iconSpin:!v,mb:"0",onClick:function(){return a("bufferOption",{option:"createInjector",id:s,block:1})},children:"Block Injector"}),(0,e.jsx)(t.$n,{icon:"user",mb:"0",onClick:function(){return a("bufferOption",{option:"transfer",id:s})},children:"Subject"})]})]})]}),!h.data&&(0,e.jsx)(t.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.hasDisk,c=l.disk;return(0,e.jsx)(t.wn,{title:"Data Disk",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:!s||!c.data,icon:"trash",onClick:function(){return a("wipeDisk")},children:"Wipe"}),(0,e.jsx)(t.$n,{disabled:!s,icon:"eject",onClick:function(){return a("ejectDisk")},children:"Eject"})]}),children:s?c.data?(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Label",children:c.label?c.label:"No label"}),(0,e.jsx)(t.Ki.Item,{label:"Subject",children:c.owner?c.owner:(0,e.jsx)(t.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(t.Ki.Item,{label:"Data Type",children:[c.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!c.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(22724),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked,s=a.hasOccupant,c=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:!s,selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return d("toggleLock")},children:l?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{disabled:!s||l,icon:"user-slash",onClick:function(){return d("ejectOccupant")},children:"Eject"})]}),children:s?(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:c.name}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:c.health/c.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[c.stat][0],children:r.stats[c.stat][1]}),(0,e.jsx)(t.Ki.Divider,{})]})}),f.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:c.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),i=n(11619),f=n(89100),g=n(76282),d=function(a){var l=(0,o.Oc)().data,s=l.irradiating,c=l.occupant,h=!c.isViableSubject||!c.uniqueIdentity||!c.structuralEnzymes;return(0,e.jsxs)(t.p8,{width:660,height:870,children:[(0,e.jsx)(r.ComplexModal,{}),s&&(0,e.jsx)(i.DNAModifierIrradiating,{duration:s}),(0,e.jsxs)(t.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(g.DNAModifierOccupant,{isDNAInvalid:h}),(0,e.jsx)(f.DNAModifierMain,{isDNAInvalid:h})]})]})}},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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.currTag,s=a.taggerLevels,c=s===void 0?[]:s,h=a.taggerLocs,v=c.filter(function(x,E){return E===c.findIndex(function(j){return x.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:v.map(function(x){return(0,e.jsx)(t.wn,{title:x.location,children:(0,e.jsx)(t.so,{wrap:"wrap",spacing:1,justify:"center",children:h.map(function(E){return x.z===E.level&&(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{icon:l===E.tag?"check-square-o":"square-o",selected:l===E.tag,onClick:function(){return d("set_tag",{tag:E.tag})},children:E.tag})},E.tag)})})},x.location)})})})})}},17956:function(y,u,n){"use strict";n.r(u),n.d(u,{DiseaseSplicer:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c?(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:c})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(g,{})]})})})},f=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.dish_inserted,h=s.effects,v=h===void 0?[]:h,x=s.info,E=s.growth,j=s.affected_species;return(0,e.jsxs)(t.wn,{title:"Virus Dish",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!c,onClick:function(){return l("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})})}),x?(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:x})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{title:"Symptoms",children:v.length>0?v.map(function(C){return(0,e.jsxs)(t.az,{color:"label",children:["(",C.stage,") ",C.name," ",C.badness>1?"Dangerous!":null]},C.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."})}),!!v.length&&v.map(function(C){return(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("grab",{grab:C.reference})},children:C.stage},C.stage)}),(0,e.jsx)(t.$n,{icon:"exchange-alt",onClick:function(){return l("affected_species")},children:"Species"})]})]})]})},g=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.buffer,h=s.species_buffer,v=s.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:c?(0,e.jsxs)(t.az,{children:[c.name," (",c.stage,")"]}):h?(0,e.jsx)(t.az,{children:h}):"Empty"})}),(0,e.jsx)(t.$n,{mt:1,icon:"save",disabled:!c&&!h,onClick:function(){return l("disk")},children:"Save To Disk"}),c?(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>1,onClick:function(){return l("splice",{splice:1})},children:"Splice #1"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>2,onClick:function(){return l("splice",{splice:2})},children:"Splice #2"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>3,onClick:function(){return l("splice",{splice:3})},children:"Splice #3"}),(0,e.jsx)(t.$n,{icon:"pen",disabled:c.stage>4,onClick:function(){return l("splice",{splice:4})},children:"Splice #4"})]}):h?(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{icon:"pen",disabled:!h||!!v,onClick:function(){return l("splice",{splice:5})},children:"Splice Species"})}):null]})}},4843:function(y,u,n){"use strict";n.r(u),n.d(u,{DishIncubator:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),i=n(15581),f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.on,c=l.system_in_use,h=l.food_supply,v=l.radiation,x=l.growth,E=l.toxins,j=l.chemicals_inserted,C=l.can_breed_virus,M=l.chemical_volume,P=l.max_chemical_volume,_=l.dish_inserted,S=l.blood_already_infected,T=l.virus,b=l.analysed,L=l.infection_rate;return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(t.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:s,onClick:function(){return a("power")},children:s?"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:!c,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:h})}),(0,e.jsx)(t.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:100,color:v>=50?"bad":x>=25?"average":"good",value:v,children:[(0,r.qQ)(v*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:C?"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 "+(C?"Vial":"Chemicals")}),(0,e.jsx)(t.$n,{icon:"virus",disabled:!C,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:P,value:M,children:[M,"/",P]})}),(0,e.jsxs)(t.Ki.Item,{label:"Breeding Environment",color:C?"good":"average",children:[_?C?"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:!_,onClick:function(){return a("ejectdish")},children:"Eject Dish"}),children:_?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:x})}),(0,e.jsx)(t.Ki.Item,{label:"Infection Rate",children:b?L:"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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.mode,s=a.pressure,c=a.isAI,h=a.panel_open,v=a.flushing,x,E;return l===2?(x="good",E="Ready"):l<=0?(x="bad",E="N/A"):l===1?(x="average",E="Pressurizing"):(x="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:x,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:s,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:c||h,selected:v?null:!0,onClick:function(){return d("disengageHandle")},children:"Disengaged"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:c||h,selected:v?!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:l===-1,selected:l?null:!0,onClick:function(){return d("pumpOff")},children:"Off"}),(0,e.jsx)(t.$n,{icon:"toggle-on",disabled:l===-1,selected:l?!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:c,onClick:function(){return d("eject")},children:"Eject Contents"})})]})]})})})}},16381:function(y,u,n){"use strict";n.r(u),n.d(u,{DroneConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.drones,s=a.areas,c=a.selected_area,h=a.fabricator,v=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:!h,selected:v,icon:"power-off",onClick:function(){return d("toggle_fab")},children:v?"Enabled":"Disabled"}),children:h?(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:s?s.sort():[],selected:c,width:"100%",onSelected:function(x){return d("set_dcall_area",{area:x})}}),(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:l&&l.length?(0,e.jsx)(t.Ki,{children:l.map(function(x){return(0,e.jsx)(t.Ki.Item,{label:x.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sync",onClick:function(){return d("resync",{ref:x.ref})},children:"Resync"}),(0,e.jsx)(t.$n.Confirm,{icon:"exclamation-triangle",color:"red",onClick:function(){return d("shutdown",{ref:x.ref})},children:"Shutdown"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Location",children:x.loc}),(0,e.jsxs)(t.Ki.Item,{label:"Charge",children:[x.charge," / ",x.maxCharge]}),(0,e.jsx)(t.Ki.Item,{label:"Active",children:x.active?"Yes":"No"})]})},x.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=function(C){return C<80||C>120?"bad":C<95||C>110?"average":"good"},d=(0,o.Oc)(),a=d.act,l=d.data,s=l.external_pressure,c=l.chamber_pressure,h=l.internal_pressure,v=l.processing,x={external_pressure:s,internal_pressure:h,chamber_pressure:c},E=[{minValue:0,maxValue:202,value:s,label:"External Pressure",textValue:s+" kPa",color:g},{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" kPa",color:g},{minValue:0,maxValue:202,value:h,label:"Internal Pressure",textValue:h+" kPa",color:g}];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:x}),(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:!v,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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.interior_status,s=a.exterior_status,c=a.chamber_pressure,h=a.airlock_disabled,v=a.override_enabled,x=a.docking_status,E=a.processing,j={interior_status:l,exterior_status:s},C=[{minValue:0,maxValue:202,value:c,label:"Chamber Pressure",textValue:c+" 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:h||v?(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:v?"red":"",onClick:function(){return d("toggle_override")},children:"Override"}):null,children:(0,e.jsx)(r.DockStatus,{docking_status:x,override_enabled:v})}),(0,e.jsx)(r.StatusDisplay,{bars:C}),(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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.chamber_pressure,s=a.chamber_phoron,c=a.interior_status,h=a.exterior_status,v=a.processing,x={interior_status:c,exterior_status:h},E=[{minValue:0,maxValue:202,value:l,label:"Chamber Pressure",textValue:l+" kPa",color:function(j){return j<80||j>120?"bad":j<95||j>110?"average":"good"}},{minValue:0,maxValue:100,value:s,label:"Chamber Phoron",textValue:s+" 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:x}),(0,e.jsx)(t.az,{children:(0,e.jsx)(t.$n,{disabled:!v,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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,s=a.chamber_pressure,c=a.processing,h=a.interior_status,v={interior_status:h,exterior_status:l},x=[{minValue:0,maxValue:202,value:s,label:"Chamber Pressure",textValue:s+" 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:x}),(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:!c,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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=(0,o.Oc)().data,d=g.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:g.airlocks.length?(0,e.jsx)(t.Ki,{children:g.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,s=a.override_enabled,c=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:!s,onClick:function(){return d("force_door")},children:"Force exterior door"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",color:s?"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:c,override_enabled:s})}),(0,e.jsx)(r.DockingStatus,{state:l.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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.interior_status,l=d.exterior_status,s=a.state==="open"||l.state==="closed",c=l.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:s?"arrow-left":"exclamation-triangle",onClick:function(){g(s?"cycle_ext_door":"force_ext")},children:s?"Cycle To Exterior":"Lock Exterior Door"}),(0,e.jsx)(t.$n,{icon:c?"arrow-right":"exclamation-triangle",onClick:function(){g(c?"cycle_int_door":"force_int")},children:c?"Cycle To Interior":"Lock Interior Door"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Exterior Door Status",children:l.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 l},DockingStatus:function(){return g},EscapePodControls:function(){return a},EscapePodStatus:function(){return f},StandardControls:function(){return i},StatusDisplay:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(s){var c=s.bars;return(0,e.jsx)(t.wn,{title:"Status",children:(0,e.jsx)(t.Ki,{children:c.map(function(h){return(0,e.jsx)(t.Ki.Item,{label:h.label,children:(0,e.jsx)(t.z2,{color:h.color(h.value),minValue:h.minValue,maxValue:h.maxValue,value:h.value,children:h.textValue})},h.label)})})})},i=function(s){var c=(0,o.Oc)().act,h=s.status_range,v=s.pressure_range,x=s.airlock_disabled,E=h||{},j=E.interior_status,C=E.exterior_status,M=v||{},P=M.external_pressure,_=M.internal_pressure,S=M.chamber_pressure,T=!0;j&&j.state==="open"?T=!1:P&&S&&(T=!(Math.abs(P-S)>5));var b=!0;return C&&C.state==="open"?b=!1:_&&S&&(b=!(Math.abs(_-S)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:x,icon:"arrow-left",onClick:function(){return c("cycle_ext")},children:"Cycle to Exterior"}),(0,e.jsx)(t.$n,{disabled:x,icon:"arrow-right",onClick:function(){return c("cycle_int")},children:"Cycle to Interior"})]}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n.Confirm,{disabled:x,color:T?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_ext")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n.Confirm,{disabled:x,color:b?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("force_int")},children:"Force Interior Door"})]})]})},f=function(s){var c=s.exterior_status,h=s.docking_status,v=s.armed,x={docked:(0,e.jsx)(d,{armed:v}),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:x[h]}),(0,e.jsx)(g,{state:c.state})]})})},g=function(s){var c=s.state,h=[];return h.open=(0,e.jsx)(t.az,{color:"average",children:"OPEN"}),h.unlocked=(0,e.jsx)(t.az,{color:"average",children:"UNSECURED"}),h.locked=(0,e.jsx)(t.az,{color:"good",children:"SECURED"}),(0,e.jsx)(t.Ki.Item,{label:"Docking Hatch",children:h[c]||(0,e.jsx)(t.az,{color:"bad",children:"ERROR"})})},d=function(s){var c=s.armed;return c?(0,e.jsx)(t.az,{color:"average",children:"ARMED"}):(0,e.jsx)(t.az,{color:"good",children:"SYSTEMS OK"})},a=function(s){var c=(0,o.Oc)().act,h=s.docking_status,v=s.override_enabled;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{disabled:!v,icon:"exclamation-triangle",color:h!=="docked"?"bad":"",onClick:function(){return c("force_door")},children:"Force Exterior Door"}),(0,e.jsx)(t.$n,{selected:v,color:h!=="docked"?"bad":"average",icon:"exclamation-triangle",onClick:function(){return c("toggle_override")},children:"Override"})]})},l=function(s){var c=s.docking_status,h=s.override_enabled,v={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"})},x=v[c];return h&&(x=(0,e.jsxs)(t.az,{color:"bad",children:[c.toUpperCase(),"-OVERRIDE ENABLED"]})),x}},83783:function(y,u,n){"use strict";n.r(u),n.d(u,{EscapePodBerthConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=(0,o.Oc)().data,d=g.exterior_status,a=g.docking_status,l=g.armed,s=g.override_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:d,docking_status:a,armed:l}),(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsx)(r.EscapePodControls,{docking_status:a,override_enabled:s})})]})}},13802:function(y,u,n){"use strict";n.r(u),n.d(u,{EscapePodConsole:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(64894),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.exterior_status,s=a.docking_status,c=a.override_enabled,h=a.armed,v=a.can_force;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.EscapePodStatus,{exterior_status:l,docking_status:s,armed:h}),(0,e.jsxs)(t.wn,{title:"Controls",children:[(0,e.jsx)(r.EscapePodControls,{docking_status:s,override_enabled:c}),(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:h,color:h?"bad":"average",onClick:function(){return d("manual_arm")},children:"ARM"}),(0,e.jsx)(t.$n,{icon:"exclamation-triangle",disabled:!v,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 h}});var e=n(20462),o=n(7081),t=n(15581),r=n(27133),i=n(34012),f=n(29935),g=n(32965),d=n(74390),a=n(75355),l=n(77506),s=n(83783),c=n(13802),h=function(v){var x=(0,o.Oc)().data,E=x.internalTemplateName,j={};j.AirlockConsoleAdvanced=(0,e.jsx)(r.AirlockConsoleAdvanced,{}),j.AirlockConsoleSimple=(0,e.jsx)(g.AirlockConsoleSimple,{}),j.AirlockConsolePhoron=(0,e.jsx)(f.AirlockConsolePhoron,{}),j.AirlockConsoleDocking=(0,e.jsx)(i.AirlockConsoleDocking,{}),j.DockingConsoleSimple=(0,e.jsx)(a.DockingConsoleSimple,{}),j.DockingConsoleMulti=(0,e.jsx)(d.DockingConsoleMulti,{}),j.DoorAccessConsole=(0,e.jsx)(l.DoorAccessConsole,{}),j.EscapePodConsole=(0,e.jsx)(c.EscapePodConsole,{}),j.EscapePodBerthConsole=(0,e.jsx)(s.EscapePodBerthConsole,{});var C=j[E];if(!C)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:C})})}},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 f},EntitySelection:function(){return g},ModeSelector:function(){return a},NarrationInput:function(){return l}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),f=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data;return(0,e.jsx)(i.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(i.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)(g,{})})}),(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)(l,{})})]})})})]})})})})},g=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.selection_mode,E=v.multi_id_selection,j=v.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:x,onClick:function(){return h("change_mode_multi")},children:"Multi-Selection"}),children:(0,e.jsx)(r.tU,{vertical:!0,children:j.map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:E.includes(C),onClick:function(){return h("select_entity",{id_selected:C})},children:(0,e.jsx)(r.az,{inline:!0,children:C})},C)})})})})})},d=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.selection_mode,E=v.number_mob_selected,j=v.selected_id,C=v.selected_name,M=v.selected_type;return x?(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:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",M," ",(0,e.jsx)("br",{})]})},a=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.privacy_select,E=v.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 h("change_mode_privacy")},selected:x,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(x?"Click here to disable subtle mode":"Click here to enable subtle mode"),children:x?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return h("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"})})]})},l=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=(0,o.useState)(""),E=x[0],j=x[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return h("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(C,M){return j(M)},value:E||""})})})})}},63183:function(y,u,n){"use strict";n.r(u),n.d(u,{ExonetNode:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,s=a.allowPDAs,c=a.allowCommunicators,h=a.allowNewscasters,v=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:l,onClick:function(){return d("toggle_power")},children:"Power "+(l?"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:s,onClick:function(){return d("toggle_PDA_port")},children:s?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return d("toggle_communicator_port")},children:c?"Open":"Closed"})}),(0,e.jsx)(t.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return d("toggle_newscaster_port")},children:h?"Open":"Closed"})})]})}),(0,e.jsx)(t.wn,{title:"Logging",children:(0,e.jsxs)(t.so,{wrap:"wrap",children:[v.map(function(x,E){return(0,e.jsx)(t.so.Item,{m:"2px",basis:"49%",grow:E%2,children:x},E)}),!v||v.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 s},Materials:function(){return l}});var e=n(20462),o=n(4089),t=n(65380),r=n(61282),i=n(7081),f=n(88569),g=n(41242),d=n(51890),a=function(c){var h=(0,i.Oc)().act,v=c.material,x=v.name,E=v.removable,j=v.sheets,C=(0,i.QY)("remove_mats_"+x,1),M=C[0],P=C[1];return M>1&&j0});return M.length===0?(0,e.jsxs)(f.az,{textAlign:"center",children:[(0,e.jsx)(f.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(f.so,{wrap:"wrap",children:M.map(function(P){return(0,e.jsxs)(f.so.Item,{width:"80px",children:[(0,e.jsx)(s,{name:P.name,amount:P.amount,formatsi:!0}),!E&&(0,e.jsx)(f.az,{mt:1,style:{textAlign:"center"},children:(0,e.jsx)(a,{material:P})})]},P.name)||""})})},s=function(c){var h=c.name,v=c.amount,x=c.formatsi,E=c.formatmoney,j=c.color,C=c.style,M="0";return v<1&&v>0?M=(0,o.Mg)(v,2):x?M=(0,g.QL)(v,0):E?M=(0,g.up)(v):M=v.toString(),(0,e.jsxs)(f.so,{direction:"column",align:"center",children:[(0,e.jsx)(f.so.Item,{children:(0,e.jsx)(f.m_,{position:"bottom",content:(0,r.Sn)(h),children:(0,e.jsx)(f.az,{className:(0,t.Ly)(["sheetmaterials32x32",d.MATERIAL_KEYS[h]]),position:"relative",style:C})})}),(0,e.jsx)(f.so.Item,{children:(0,e.jsx)(f.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),i=n(51890),f=n(42878),g=n(2858),d=function(s){var c=(0,t.Oc)().data,h=c.partSets,v=h===void 0?[]:h,x=c.buildableParts,E=x===void 0?[]:x,j=(0,t.QY)("part_tab",v.length?E[0]:""),C=j[0],M=j[1];return(0,e.jsx)(r.tU,{vertical:!0,children:v.map(function(P){return!!E[P]&&(0,e.jsx)(r.tU.Tab,{selected:P===C,onClick:function(){return M(P)},children:P},P)})})},a=function(s){var c=(0,t.Oc)().data,h=c.partSets,v=h===void 0?[]:h,x=c.buildableParts,E=x===void 0?[]:x,j=s.queueMaterials,C=s.materials,M=(0,t.QY)("part_tab",(0,f.getFirstValidPartSet)(v,E)),P=M[0],_=M[1],S=(0,t.QY)("search_text",""),T=S[0],b=S[1];if(!P||!E[P]){var L=(0,f.getFirstValidPartSet)(v,E);if(L)_(L);else return}var N={Parts:[]},$=[];return T?(0,f.searchFilter)(T,E).forEach(function(z){z.format=(0,f.partCondFormat)(C,j,z),$.push(z)}):(N={Parts:[]},E[P].forEach(function(z){if(z.format=(0,f.partCondFormat)(C,j,z),!z.subCategory){N.Parts.push(z);return}z.subCategory in N||(N[z.subCategory]=[]),N[z.subCategory].push(z)})),(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(z,w){return b(w)}})})]})}),!!T&&(0,e.jsx)(l,{name:"Search Results",parts:$,forceShow:!0,placeholder:"No matching results..."})||Object.keys(N).map(function(z){return(0,e.jsx)(l,{name:z,parts:N[z]},z)})]})},l=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.buildingPart,E=s.parts,j=s.name,C=s.forceShow,M=s.placeholder,P=(0,t.QY)("display_mats",!1),_=P[0];return(!!E.length||C)&&(0,e.jsxs)(r.wn,{title:j,buttons:(0,e.jsx)(r.$n,{disabled:!E.length,color:"good",icon:"plus-circle",onClick:function(){return h("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:!!x||S.format.textColor===i.COLOR_BAD,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return h("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 h("add_queue_part",{id:S.id})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{inline:!0,textColor:i.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"})})]}),_&&(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:i.COLOR_KEYS[S.format[T].color],children:(0,e.jsx)(g.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 g}});var e=n(20462),o=n(7081),t=n(88569),r=n(41242),i=n(51890),f=n(2858),g=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.isProcessingQueue,E=v.queue,j=E===void 0?[]:E,C=s.queueMaterials,M=s.missingMaterials,P=s.textColors,_=!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:_,color:"bad",icon:"minus-circle",onClick:function(){return h("clear_queue")},children:"Clear Queue"}),!!x&&(0,e.jsx)(t.$n,{disabled:_,icon:"stop",onClick:function(){return h("stop_queue")},children:"Stop"})||(0,e.jsx)(t.$n,{disabled:_,icon:"play",onClick:function(){return h("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)(l,{})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(a,{textColors:P})})]})})}),!_&&(0,e.jsx)(t.so.Item,{mt:1,children:(0,e.jsx)(t.wn,{title:"Material Cost",children:(0,e.jsx)(d,{queueMaterials:C,missingMaterials:M})})})]})},d=function(s){var c=s.queueMaterials,h=s.missingMaterials;return(0,e.jsx)(t.so,{wrap:"wrap",children:Object.keys(c).map(function(v){return(0,e.jsxs)(t.so.Item,{width:"12%",children:[(0,e.jsx)(f.MaterialAmount,{formatmoney:!0,name:v,amount:c[v]}),!!h[v]&&(0,e.jsx)(t.az,{textColor:"bad",style:{textAlign:"center"},children:(0,r.up)(h[v])})]},v)})})},a=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=s.textColors,E=v.queue,j=E===void 0?[]:E;return!j||!j.length?(0,e.jsx)(e.Fragment,{children:"No parts in queue."}):j.map(function(C,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 h("del_queue_part",{index:M+1})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{inline:!0,textColor:i.COLOR_KEYS[x[M]],children:C.name})})]})},C.name)})},l=function(s){var c=(0,o.Oc)().data,h=c.buildingPart,v=c.storedPart;if(v)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:v}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:"Fabricator outlet obstructed..."})]})})});if(h){var x=h.name,E=h.duration,j=h.printTime,C=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:x}),(0,e.jsx)(t.so.Item,{grow:1}),(0,e.jsx)(t.so.Item,{children:C>=0&&C+"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 f},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,i,f=(i={},i[o]=void 0,i[t]="average",i[r]="bad",i)},42878:function(y,u,n){"use strict";n.r(u),n.d(u,{getFirstValidPartSet:function(){return c},materialArrayToObj:function(){return g},partBuildColor:function(){return d},partCondFormat:function(){return a},queueCondFormat:function(){return l},searchFilter:function(){return s}});var e=n(7402),o=n(61282),t=n(51890);function r(h,v){(v==null||v>h.length)&&(v=h.length);for(var x=0,E=new Array(v);x=h.length?{done:!0}:{done:!1,value:h[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 g(h){var v={};return h.forEach(function(x){v[x.name]=x.amount}),v}function d(h,v,x){return h>x?{color:t.COLOR_BAD,deficit:h-x}:v>x?{color:t.COLOR_AVERAGE,deficit:h}:h+v>x?{color:t.COLOR_AVERAGE,deficit:h+v-x}:{color:t.COLOR_NONE,deficit:0}}function a(h,v,x){var E={textColor:t.COLOR_NONE};return Object.keys(x.cost).forEach(function(j){E[j]=d(x.cost[j],v[j],h[j]),E[j].color>E.textColor&&(E.textColor=E[j].color)}),E}function l(h,v){var x={},E={},j={},C={};return v&&v.forEach(function(M,P){C[P]=t.COLOR_NONE,Object.keys(M.cost).forEach(function(_){x[_]=x[_]||0,j[_]=j[_]||0,E[_]=d(M.cost[_],x[_],h[_]),E[_].color!==t.COLOR_NONE?C[P]=100?c="Running":!l&&s>0&&(c="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:l?"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:l?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Mode",children:["Generator ",c]}),(0,e.jsxs)(t.Ki.Item,{label:"Charge Status",children:[s,"%"]})]})})})})}},88941:function(y,u,n){"use strict";n.r(u),n.d(u,{GuestPass:function(){return f}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.area,c=l.giver,h=l.giveName,v=l.reason,x=l.duration,E=l.mode,j=l.log,C=l.uid;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsx)(i.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 #"+C,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:c||"Insert ID"})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{onClick:function(){return a("giv_name")},children:h})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{onClick:function(){return a("reason")},children:v})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{onClick:function(){return a("duration")},children:x})})]}),(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)(s,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 i},GyrotronControlContent:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.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"})]}),s.map(function(c){return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{children:c.name}),(0,e.jsxs)(t.XI.Cell,{children:[c.x,", ",c.y,", ",c.z]}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"power-off",selected:c.active,disabled:!c.deployed,onClick:function(){return a("toggle_active",{gyro:c.ref})},children:c.active?"Online":"Offline"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(h,v){return a("set_rate",{gyro:c.ref,rate:v})}})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.N6,{width:"60px",size:1.25,color:!!c.active&&"yellow",value:c.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(h,v){return a("set_str",{gyro:c.ref,str:v})}})})]},c.name)})]})})}},44791:function(y,u,n){"use strict";n.r(u),n.d(u,{Holodeck:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.supportedPrograms,s=a.restrictedPrograms,c=a.currentProgram,h=a.isSilicon,v=a.safetyDisabled,x=a.emagged,E=a.gravity,j=l;return v&&(j=j.concat(s)),(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(C){return(0,e.jsx)(t.$n,{color:s.indexOf(C)!==-1?"bad":null,icon:"eye",selected:c===C,fluid:!0,onClick:function(){return d("program",{program:C})},children:C},C)})}),!!h&&(0,e.jsx)(t.wn,{title:"Override",children:(0,e.jsxs)(t.$n,{icon:"exclamation-triangle",fluid:!0,disabled:x,color:v?"good":"bad",onClick:function(){return d("AIoverride")},children:[!!x&&"Error, unable to control. ",v?"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:v?(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 g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(41242),f=n(15581),g=function(a){var l=(0,t.Oc)().data,s=l.total_parts,c=l.max_components,h=l.total_complexity,v=l.max_complexity,x=l.battery_charge,E=l.battery_max,j=l.net_power,C=l.unremovable_circuits,M=l.removable_circuits;return(0,e.jsx)(f.p8,{width:600,height:380,children:(0,e.jsxs)(f.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:s/c,maxValue:1,children:s+" / "+c+" ("+(0,o.Mg)(s/c*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:h/v,maxValue:1,children:h+" / "+v+" ("+(0,o.Mg)(h/v*100,1)+"%)"})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:x&&(0,e.jsx)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:x/E,maxValue:1,children:x+" / "+E+" ("+(0,o.Mg)(x/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(P){return"-"+(0,i.d5)(Math.abs(P))+"/s"}})})]})}),C.length&&(0,e.jsx)(d,{title:"Built-in Components",circuits:C})||null,M.length&&(0,e.jsx)(d,{title:"Removable Components",circuits:M})||null]})})},d=function(a){var l=(0,t.Oc)().act,s=a.title,c=a.circuits;return(0,e.jsx)(r.wn,{title:s,children:(0,e.jsx)(r.Ki,{children:c.map(function(h){return(0,e.jsxs)(r.Ki.Item,{label:h.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("open_circuit",{ref:h.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("rename_circuit",{ref:h.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("scan_circuit",{ref:h.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("remove_circuit",{ref:h.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return l("bottom_circuit",{ref:h.ref})},children:"Move to Bottom"})]},h.ref)})})})}},23343:function(y,u,n){"use strict";n.r(u),n.d(u,{ICCircuit:function(){return g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(41242),f=n(15581),g=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.desc,x=h.displayed_name,E=h.complexity,j=h.power_draw_idle,C=h.power_draw_per_use,M=h.extended_desc,P=h.inputs,_=h.outputs,S=h.activators;return(0,e.jsx)(f.p8,{width:600,height:400,title:x,children:(0,e.jsxs)(f.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 c("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return c("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return c("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,i.d5)(j)})||null,C&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,i.d5)(C)})||null]}),M]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[P.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(d,{list:P})})})||null,(0,e.jsx)(r.so.Item,{basis:P.length&&_.length?"33%":P.length||_.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:x,mb:1,children:(0,e.jsx)(r.az,{children:v})})}),_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(d,{list:_})})})||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 c("pin_name",{pin:T.ref})},children:T.pulse_out?"":""}),(0,e.jsx)(a,{pin:T})]},T.name)})})]})]})})},d=function(l){var s=(0,t.Oc)().act,c=l.list;return c.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return s("pin_name",{pin:h.ref})},children:[(0,o.jT)(h.type),": ",h.name]}),(0,e.jsx)(r.$n,{onClick:function(){return s("pin_data",{pin:h.ref})},children:h.data}),(0,e.jsx)(a,{pin:h})]},h.ref)})},a=function(l){var s=(0,t.Oc)().act,c=l.pin;return c.linked.map(function(h){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return s("pin_unwire",{pin:c.ref,link:h.ref})},children:h.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return s("examine",{ref:h.holder_ref})},children:h.holder_name})]},h.ref)})}},87134:function(y,u,n){"use strict";n.r(u),n.d(u,{ICDetailer:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.detail_color,c=l.color_list;return(0,e.jsx)(i.p8,{width:420,height:254,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(c).map(function(h,v){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,o.Sn)(h),tooltipPosition:v%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return a("change_color",{color:h})},style:c[h]===s?{border:"4px solid black",borderRadius:"0"}:{borderRadius:"0"},backgroundColor:c[h]},h)})})})})}},92306:function(y,u,n){"use strict";n.r(u),n.d(u,{ICPrinter:function(){return f}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),f=function(a){var l=(0,t.Oc)().data,s=l.metal,c=l.max_metal,h=l.metal_per_sheet,v=l.upgraded,x=l.can_clone;return(0,e.jsx)(i.p8,{width:600,height:630,children:(0,e.jsxs)(i.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:s,maxValue:c,children:[s/h," / ",c/h," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:v?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:x?"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 g(a,l){return!(!a.can_build||a.cost>l.metal)}var d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=c.categories,v=(0,t.QY)("categoryTarget",""),x=v[0],E=v[1],j=(0,o.pb)(h,function(C){return C.name===x})[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)(h,function(C){return C.name}).map(function(C){return(0,e.jsx)(r.tU.Tab,{selected:x===C.name,onClick:function(){return E(C.name)},children:C.name},C.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(C){return C.name}).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,labelColor:C.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(C,c),icon:"print",onClick:function(){return s("build",{build:C.path})},children:"Print"}),children:C.desc},C.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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(10921),f=function(g){var d=(0,o.Oc)().data,a=d.registered_name,l=d.sex,s=d.species,c=d.age,h=d.assignment,v=d.fingerprint_hash,x=d.blood_type,E=d.dna_hash,j=d.photo_front,C=[{name:"Sex",val:l},{name:"Species",val:s},{name:"Age",val:c},{name:"Blood Type",val:x},{name:"Fingerprint",val:v},{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:C.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)(i.RankIcon,{color:"",rank:h})})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.az,{textAlign:"center",children:h})})]})]})})})}},39841:function(y,u,n){"use strict";n.r(u),n.d(u,{IdentificationComputer:function(){return a},IdentificationComputerAccessModification:function(){return c},IdentificationComputerContent:function(){return l},IdentificationComputerPrinting:function(){return s},IdentificationComputerRegions:function(){return h}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),i=n(7081),f=n(88569),g=n(15581),d=n(58044),a=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(l,{})})})},l=function(v){var x=(0,i.Oc)(),E=x.act,j=x.data,C=v.ntos,M=j.mode,P=j.has_modify,_=j.printing,S=j.have_id_slot,T=j.have_printer,b=(0,e.jsx)(c,{ntos:C});return C&&!S?b=(0,e.jsx)(d.CrewManifestContent,{}):_?b=(0,e.jsx)(s,{}):M===1&&(b=(0,e.jsx)(d.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(f.tU,{children:[(!C||!!S)&&(0,e.jsx)(f.tU.Tab,{icon:"home",selected:M===0,onClick:function(){return E("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(f.tU.Tab,{icon:"home",selected:M===1,onClick:function(){return E("mode",{mode_target:1})},children:"Crew Manifest"}),!C||!!T&&(0,e.jsx)(f.tU.Tab,{style:{float:"right"},icon:"print",onClick:function(){return(M||P)&&E("print")},color:!M&&!P?"transparent":"",children:"Print"})]}),b]})},s=function(v){return(0,e.jsx)(f.wn,{title:"Printing",children:"Please wait..."})},c=function(v){var x=(0,i.Oc)(),E=x.act,j=x.data,C=v.ntos,M=j.station_name,P=j.target_name,_=j.target_owner,S=_===void 0?"":_,T=j.scan_name,b=j.authenticated,L=j.has_modify,N=j.account_number,$=N===void 0?"":N,z=j.centcom_access,w=j.all_centcom_access,V=j.id_rank,k=j.departments;return(0,e.jsxs)(f.wn,{title:"Access Modification",children:[!b&&(0,e.jsx)(f.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(f.Ki,{children:[(0,e.jsx)(f.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(f.$n,{icon:"eject",fluid:!0,onClick:function(){return E("modify")},children:P})}),!C&&(0,e.jsx)(f.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(f.$n,{icon:"eject",fluid:!0,onClick:function(){return E("scan")},children:T})})]}),!!b&&!!L&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.wn,{title:"Details",children:(0,e.jsxs)(f.Ki,{children:[(0,e.jsx)(f.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(f.pd,{value:S,fluid:!0,onInput:function(H,Y){return E("reg",{reg:Y})}})}),(0,e.jsx)(f.Ki.Item,{label:"Account Number",children:(0,e.jsx)(f.pd,{value:$,fluid:!0,onInput:function(H,Y){return E("account",{account:Y})}})}),(0,e.jsx)(f.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(f.$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)(f.wn,{title:"Assignment",children:(0,e.jsxs)(f.XI,{children:[k.map(function(H){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsx)(f.XI.Cell,{header:!0,verticalAlign:"middle",children:H.department_name}),(0,e.jsx)(f.XI.Cell,{children:H.jobs.map(function(Y){return(0,e.jsx)(f.$n,{selected:Y.job===V,onClick:function(){return E("assign",{assign_target:Y.job})},children:(0,t.jT)(Y.display_name)},Y.job)})})]}),(0,e.jsx)(f.az,{mt:-1,children:"\xA0"})," "]},H.department_name)}),(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsx)(f.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.$n,{onClick:function(){return E("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!z&&(0,e.jsx)(f.wn,{title:"Central Command",children:w.map(function(H){return(0,e.jsx)(f.az,{children:(0,e.jsx)(f.$n,{fluid:!0,selected:H.allowed,onClick:function(){return E("access",{access_target:H.ref,allowed:H.allowed})},children:(0,t.jT)(H.desc)})},H.ref)})})||(0,e.jsx)(f.wn,{title:M,children:(0,e.jsx)(h,{actName:"access"})})]})]})},h=function(v){var x=(0,i.Oc)(),E=x.act,j=x.data,C=v.actName,M=j.regions;return(0,e.jsx)(f.so,{wrap:"wrap",spacing:1,children:M&&(0,o.Ul)(M,function(P){return P.name}).map(function(P){return(0,e.jsx)(f.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(f.wn,{title:P.name,height:"100%",children:(0,o.Ul)(P.accesses,function(_){return _.desc}).map(function(_){return(0,e.jsx)(f.az,{children:(0,e.jsx)(f.$n,{fluid:!0,selected:_.allowed,onClick:function(){return E(C,{access_target:_.ref,allowed:_.allowed})},children:(0,t.jT)(_.desc)})},_.ref)})})},P.name)})})}},15450:function(y,u,n){"use strict";n.r(u),n.d(u,{InventoryPanel:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.slots,s=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:l&&l.length&&l.map(function(c){return(0,e.jsx)(t.Ki.Item,{label:c.name,children:(0,e.jsx)(t.$n,{mb:-1,icon:c.item?"hand-paper":"gift",onClick:function(){return d(c.act)},children:c.item||"Nothing"})},c.name)})})}),s&&(0,e.jsx)(t.wn,{title:"Actions",children:s&&(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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.slots,s=a.specialSlots,c=a.internalsValid,h=a.sensors,v=a.handcuffed,x=a.handcuffedParams,E=a.legcuffed,j=a.legcuffedParams,C=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:[l&&l.length&&l.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,{}),s&&s.length&&s.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"}),c&&(0,e.jsx)(t.$n,{fluid:!0,icon:"lungs",onClick:function(){return d("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,h&&(0,e.jsx)(t.$n,{fluid:!0,icon:"book-medical",onClick:function(){return d("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,v&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",x)},children:"Handcuffed"})||null,E&&(0,e.jsx)(t.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return d("targetSlot",j)},children:"Legcuffed"})||null,C&&(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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.busy,s=a.antibodies,c=a.pathogens,h=a.is_antibody_sample,v=a.sample_inserted,x=(0,e.jsx)(t.az,{color:"average",children:"No vial detected."});return v&&(!s&&!c?x=(0,e.jsx)(t.az,{color:"average",children:"No antibodies or viral strains detected."}):x=(0,e.jsxs)(e.Fragment,{children:[s?(0,e.jsx)(t.wn,{title:"Antibodies",children:s}):"",c.length?(0,e.jsx)(t.wn,{title:"Pathogens",children:(0,e.jsx)(t.Ki,{children:c.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:l?(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:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:h?"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:!s&&!c.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:!v,onClick:function(){return d("sample")},children:"Eject Vial"})})]}),x]}),s&&!h||c.length?(0,e.jsx)(t.wn,{title:"Controls",children:(0,e.jsxs)(t.Ki,{children:[s&&!h?(0,e.jsx)(t.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("antibody")},children:s})}):"",c.length?(0,e.jsx)(t.Ki.Item,{label:"Isolate Strain",children:c.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.mybag,h=s.mybucket,v=s.mymop,x=s.myspray,E=s.myreplacer,j=s.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:c||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?void 0:"2px solid grey"},onClick:function(){return l("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Bucket Slot",tooltipPosition:"bottom",color:h?"grey":"transparent",style:{border:h?void 0:"2px solid grey"},onClick:function(){return l("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:v||"Mop Slot",tooltipPosition:"bottom-end",color:v?"grey":"transparent",style:{border:v?void 0:"2px solid grey"},onClick:function(){return l("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(t.$n,{width:"64px",height:"64px",position:"relative",tooltip:x||"Spray Slot",tooltipPosition:"top-end",color:x?"grey":"transparent",style:{border:x?void 0:"2px solid grey"},onClick:function(){return l("spray")},children:(0,e.jsx)(g,{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 l("replacer")},children:(0,e.jsx)(g,{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 l("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},f={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(d){var a=(0,o.Oc)().data,l=d.iconkey,s=a.icons;return l in s?(0,e.jsx)(t._V,{src:s[l].substr(1,s[l].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:f[l]})}},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),i=n(7081),f=n(88569),g=n(41242),d=n(15581),a=function(l){var s=function(){sn&&se("Admin"),en(!sn)},c=(0,i.Oc)(),h=c.act,v=c.data,x=v.playing,E=v.loop_mode,j=v.volume,C=v.current_track_ref,M=v.current_track,P=v.current_genre,_=v.percent,S=v.tracks,T=v.admin,b=S.length&&S.reduce(function(De,Qe){var Mn=Qe.genre||"Uncategorized";return De[Mn]||(De[Mn]=[]),De[Mn].push(Qe),De},{}),L=x&&(P||"Uncategorized"),N=(0,r.useState)("Unknown"),$=N[0],z=N[1],w=(0,r.useState)(""),V=w[0],k=w[1],H=(0,r.useState)(0),Y=H[0],q=H[1],Z=(0,r.useState)("Unknown"),J=Z[0],Q=Z[1],X=(0,r.useState)("Admin"),ee=X[0],se=X[1],ie=(0,r.useState)(!1),fe=ie[0],he=ie[1],be=(0,r.useState)(!1),je=be[0],Ce=be[1],Ne=(0,r.useState)(!1),sn=Ne[0],en=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)(f.wn,{title:"Currently Playing",children:(0,e.jsxs)(f.Ki,{children:[(0,e.jsx)(f.Ki.Item,{label:"Title",children:x&&M&&(0,e.jsxs)(f.az,{children:[M.title," by ",M.artist||"Unkown"]})||(0,e.jsx)(f.az,{children:"Stopped"})}),(0,e.jsxs)(f.Ki.Item,{label:"Controls",children:[(0,e.jsx)(f.$n,{icon:"play",disabled:x,onClick:function(){return h("play")},children:"Play"}),(0,e.jsx)(f.$n,{icon:"stop",disabled:!x,onClick:function(){return h("stop")},children:"Stop"})]}),(0,e.jsxs)(f.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(f.$n,{icon:"play",onClick:function(){return h("loopmode",{loopmode:1})},selected:E===1,children:"Next"}),(0,e.jsx)(f.$n,{icon:"random",onClick:function(){return h("loopmode",{loopmode:2})},selected:E===2,children:"Shuffle"}),(0,e.jsx)(f.$n,{icon:"redo",onClick:function(){return h("loopmode",{loopmode:3})},selected:E===3,children:"Repeat"}),(0,e.jsx)(f.$n,{icon:"step-forward",onClick:function(){return h("loopmode",{loopmode:4})},selected:E===4,children:"Once"})]}),(0,e.jsx)(f.Ki.Item,{label:"Progress",children:(0,e.jsx)(f.z2,{value:_,maxValue:1,color:"good"})}),(0,e.jsx)(f.Ki.Item,{label:"Volume",children:(0,e.jsx)(f.Ap,{minValue:0,step:1,value:j*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(De){return(0,o.Mg)(De,1)+"%"},onChange:function(De,Qe){return h("volume",{val:(0,o.LI)(Qe/100,2)})}})})]})}),(0,e.jsx)(f.wn,{title:"Available Tracks",children:S.length&&Object.keys(b).sort().map(function(De){return(0,t.ZH)(De)!=="Admin"&&(0,e.jsx)(f.Nt,{title:De,color:L===De?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[De].map(function(Qe){return(0,e.jsx)(f.$n,{fluid:!0,icon:"play",selected:C===Qe.ref,onClick:function(){return h("change_track",{change_track:Qe.ref})},children:Qe.title},Qe.ref)})})},De)})||(0,e.jsx)(f.az,{color:"bad",children:"Error: No songs loaded."})}),T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.wn,{title:"Admin Tracks",children:S.length&&Object.keys(b).sort().map(function(De){return(0,t.ZH)(De)==="Admin"&&(0,e.jsx)(f.Nt,{title:De,color:L===De?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{marginLeft:"1em"},children:b[De].map(function(Qe){return(0,e.jsxs)(f.so,{children:[(0,e.jsx)(f.so.Item,{grow:1,children:(0,e.jsx)(f.$n,{fluid:!0,icon:"play",selected:C===Qe.ref,onClick:function(){return h("change_track",{change_track:Qe.ref})},children:Qe.title},Qe.ref)}),(0,e.jsx)(f.so.Item,{children:(0,e.jsx)(f.$n.Confirm,{icon:"trash",onClick:function(){return h("remove_new_track",{ref:Qe.ref})}})})]},Qe.ref)})})},De)})||(0,e.jsx)(f.az,{color:"bad",children:"Error: No songs added."})}),(0,e.jsx)(f.wn,{title:"Admin Options",children:(0,e.jsxs)(f.Nt,{title:"Add Track",children:[(0,e.jsxs)(f.Ki,{children:[(0,e.jsx)(f.Ki.Item,{label:"Title",children:(0,e.jsx)(f.pd,{width:"100%",value:$,onChange:function(De,Qe){return z(Qe)}})}),(0,e.jsx)(f.Ki.Item,{label:"URL",children:(0,e.jsx)(f.pd,{width:"100%",value:V,onChange:function(De,Qe){return k(Qe)}})}),(0,e.jsx)(f.Ki.Item,{label:"Playtime",children:(0,e.jsx)(f.Q7,{step:1,value:Y,minValue:0,maxValue:3600,onChange:function(De){return q(De)},format:function(De){return(0,g.fU)((0,o.LI)(De*10,0))}})}),(0,e.jsx)(f.Ki.Item,{label:"Artist",children:(0,e.jsx)(f.pd,{width:"100%",value:J,onChange:function(De,Qe){return Q(Qe)}})}),(0,e.jsx)(f.Ki.Item,{label:"Genre",children:(0,e.jsxs)(f.so,{children:[(0,e.jsx)(f.so.Item,{grow:1,children:sn?(0,e.jsx)(f.pd,{width:"100%",value:ee,onChange:function(De,Qe){return se(Qe)}}):(0,e.jsx)(f.az,{children:ee})}),(0,e.jsx)(f.so.Item,{children:(0,e.jsx)(f.$n.Checkbox,{icon:sn?"lock-open":"lock",color:sn?"good":"bad",onClick:function(){return s()}})})]})}),(0,e.jsx)(f.Ki.Item,{label:"Secret",children:(0,e.jsx)(f.$n.Checkbox,{checked:fe,onClick:function(){return he(!fe)}})}),(0,e.jsx)(f.Ki.Item,{label:"Lobby",children:(0,e.jsx)(f.$n.Checkbox,{checked:je,onClick:function(){return Ce(!je)}})})]}),(0,e.jsx)(f.cG,{}),(0,e.jsx)(f.$n,{disabled:!($&&V&&Y&&J&&ee),onClick:function(){return h("add_new_track",{title:$,url:V,duration:Y,artist:J,genre:ee,secret:fe,lobby:je})},children:"Add new Track"})]})})]})]})})}},7881:function(y,u,n){"use strict";n.r(u),n.d(u,{LawManager:function(){return l},LawManagerLawSets:function(){return v},LawManagerLaws:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(61282),i=n(7081),f=n(88569),g=n(15581);function d(){return d=Object.assign||function(E){for(var j=1;j=0)&&(C[P]=E[P]);return C}var l=function(E){var j=(0,i.Oc)().data,C=j.isSlaved;return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[C?(0,e.jsxs)(f.IC,{info:!0,children:["Law-synced to ",C]}):"",(0,e.jsx)(s,{})]})})},s=function(E){var j=(0,i.Oc)().data,C=(0,i.QY)("lawsTabIndex",0),M=C[0],P=C[1],_=(0,i.QY)("searchLawName",""),S=_[0],T=_[1],b=j.ion_law_nr,L=j.ion_law,N=j.zeroth_law,$=j.inherent_law,z=j.supplied_law,w=j.supplied_law_position,V=j.zeroth_laws,k=j.has_zeroth_laws,H=j.ion_laws,Y=j.has_ion_laws,q=j.inherent_laws,Z=j.has_inherent_laws,J=j.supplied_laws,Q=j.has_supplied_laws,X=j.isAI,ee=j.isMalf,se=j.isAdmin,ie=j.channel,fe=j.channels,he=j.law_sets,be=[];return be[0]=(0,e.jsx)(c,{ion_law_nr:b,ion_law:L,zeroth_law:N,inherent_law:$,supplied_law:z,supplied_law_position:w,zeroth_laws:V,has_zeroth_laws:k,ion_laws:H,has_ion_laws:Y,inherent_laws:q,has_inherent_laws:Z,supplied_laws:J,has_supplied_laws:Q,isAI:X,isMalf:ee,isAdmin:se,channel:ie,channels:fe}),be[1]=(0,e.jsx)(v,{isMalf:ee,isAdmin:se,law_sets:he,ion_law_nr:b,searchLawName:S,onSearchLawName:T}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(f.tU,{children:[(0,e.jsx)(f.tU.Tab,{selected:M===0,onClick:function(){return P(0)},children:"Law Management"}),(0,e.jsx)(f.tU.Tab,{selected:M===1,onClick:function(){return P(1)},children:"Law Sets"})]}),be[M]]})},c=function(E){var j=(0,i.Oc)().act,C=E.ion_law_nr,M=E.ion_law,P=E.zeroth_law,_=E.inherent_law,S=E.supplied_law,T=E.supplied_law_position,b=E.zeroth_laws,L=E.has_zeroth_laws,N=E.ion_laws,$=E.has_ion_laws,z=E.inherent_laws,w=E.has_inherent_laws,V=E.supplied_laws,k=E.has_supplied_laws,H=E.isAI,Y=E.isMalf,q=E.isAdmin,Z=E.channel,J=E.channels,Q=E.hasScroll,X=E.sectionHeight,ee=b.map(function(se){return se.zero=!0,se}).concat(z);return(0,e.jsxs)(f.wn,{scrollable:Q,fill:Q,height:X,children:[$?(0,e.jsx)(h,{laws:N,title:C+" Laws:",isAdmin:q,isMalf:Y,mt:-2}):"",L||w?(0,e.jsx)(h,{laws:ee,title:"Inherent Laws",isAdmin:q,isMalf:Y,mt:-2}):"",k?(0,e.jsx)(h,{laws:V,title:"Supplied Laws",isAdmin:q,isMalf:Y,mt:-2}):"",(0,e.jsx)(f.wn,{title:"Controls",mt:-2,children:(0,e.jsxs)(f.Ki,{children:[(0,e.jsx)(f.Ki.Item,{label:"Statement Channel",children:J.map(function(se){return(0,e.jsx)(f.$n,{selected:Z===se.channel,onClick:function(){return j("law_channel",{law_channel:se.channel})},children:se.channel},se.channel)})}),(0,e.jsx)(f.Ki.Item,{label:"State Laws",children:(0,e.jsx)(f.$n,{icon:"volume-up",onClick:function(){return j("state_laws")},children:"State Laws"})}),H?(0,e.jsx)(f.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(f.$n,{icon:"exclamation",onClick:function(){return j("notify_laws")},children:"Notify"})}):""]})}),Y?(0,e.jsx)(f.wn,{title:"Add Laws",mt:-2,children:(0,e.jsxs)(f.XI,{children:[(0,e.jsxs)(f.XI.Row,{header:!0,children:[(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(f.XI.Cell,{children:"Law"}),(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Add"})]}),q&&!L?(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.pd,{value:P,fluid:!0,onChange:function(se,ie){return j("change_zeroth_law",{val:ie})}})}),(0,e.jsx)(f.XI.Cell,{children:"N/A"}),(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:(0,e.jsx)(f.$n,{icon:"plus",onClick:function(){return j("add_zeroth_law")},children:"Add"})})]}):"",(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.pd,{value:M,fluid:!0,onChange:function(se,ie){return j("change_ion_law",{val:ie})}})}),(0,e.jsx)(f.XI.Cell,{children:"N/A"}),(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:(0,e.jsx)(f.$n,{icon:"plus",onClick:function(){return j("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsx)(f.XI.Cell,{children:"Inherent"}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.pd,{value:_,fluid:!0,onChange:function(se,ie){return j("change_inherent_law",{val:ie})}})}),(0,e.jsx)(f.XI.Cell,{children:"N/A"}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.$n,{icon:"plus",onClick:function(){return j("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsx)(f.XI.Cell,{children:"Supplied"}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.pd,{value:S,fluid:!0,onChange:function(se,ie){return j("change_supplied_law",{val:ie})}})}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.$n,{icon:"pen",onClick:function(){return j("change_supplied_law_position")},children:T})}),(0,e.jsx)(f.XI.Cell,{children:(0,e.jsx)(f.$n,{icon:"plus",onClick:function(){return j("add_supplied_law")},children:"Add"})})]})]})}):""]})},h=function(E){var j=(0,i.Oc)().act,C=E.laws,M=E.title,P=E.noButtons,_=E.isMalf,S=E.isAdmin,T=a(E,["laws","title","noButtons","isMalf","isAdmin"]);return(0,e.jsx)(f.wn,d({title:M},T,{children:(0,e.jsxs)(f.XI,{children:[(0,e.jsxs)(f.XI.Row,{header:!0,children:[(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(f.XI.Cell,{children:"Law"}),P?"":(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"State"}),_&&!P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:"Delete"})]}):""]}),C.map(function(b){return(0,e.jsxs)(f.XI.Row,{children:[(0,e.jsxs)(f.XI.Cell,{collapsing:!0,children:[b.index,"."]}),(0,e.jsx)(f.XI.Cell,{color:b.zero?"bad":void 0,children:b.law}),P?"":(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:(0,e.jsx)(f.$n,{fluid:!0,icon:"volume-up",selected:b.state,onClick:function(){return j("state_law",{ref:b.ref,state_law:!b.state})},children:b.state?"Yes":"No"})}),_&&!P?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:(0,e.jsx)(f.$n,{disabled:b.zero&&!S,icon:"pen",onClick:function(){return j("edit_law",{edit_law:b.ref})},children:"Edit"})}),(0,e.jsx)(f.XI.Cell,{collapsing:!0,children:(0,e.jsx)(f.$n,{disabled:b.zero&&!S,color:"bad",icon:"trash",onClick:function(){return j("delete_law",{delete_law:b.ref})},children:"Delete"})})]}):""]},b.index)})]})}))},v=function(E){var j=(0,i.Oc)().act,C=E.law_sets,M=E.ion_law_nr,P=E.searchLawName,_=E.onSearchLawName,S=E.isMalf,T=E.isAdmin;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),(0,e.jsx)(f.pd,{fluid:!0,value:P,placeholder:"Search for laws...",onInput:function(b,L){return _(L)}}),C.length?x(C,P).map(function(b){return(0,e.jsxs)(f.wn,{title:b.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.$n,{disabled:!S,icon:"sync",onClick:function(){return j("transfer_laws",{transfer_laws:b.ref})},children:"Load Laws"}),(0,e.jsx)(f.$n,{icon:"volume-up",onClick:function(){return j("state_law_set",{state_law_set:b.ref})},children:"State Laws"})]}),children:[b.laws.has_ion_laws?(0,e.jsx)(h,{noButtons:!0,laws:b.laws.ion_laws,title:M+" Laws:",isAdmin:T,isMalf:S}):"",b.laws.has_zeroth_laws||b.laws.has_inherent_laws?(0,e.jsx)(h,{noButtons:!0,laws:b.laws.zeroth_laws.concat(b.laws.inherent_laws),title:b.header,isAdmin:T,isMalf:S}):"",b.laws.has_supplied_laws?(0,e.jsx)(h,{noButtons:!0,laws:b.laws.supplied_laws,title:"Supplied Laws",isAdmin:T,isMalf:S}):""]},b.name)}):""]})},x=function(E,j){j===void 0&&(j="");var C=(0,r.XZ)(j,function(M){return M.name+M.header});return(0,t.L)([function(M){return j?(0,o.pb)(M,C):M}])(E)}},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),i=n(88569),f=n(15581),g=n(5335),d=n(44149),a=function(c){var h=(0,r.Oc)(),v=h.act,x=h.data,E=x.items,j=E===void 0?[]:E,C=x.message,M=C===void 0?"":C,P=x.init_value,_=x.large_buttons,S=x.timeout,T=x.title,b=(0,o.useState)(j.indexOf(P)),L=b[0],N=b[1],$=(0,o.useState)(j.length>9),z=$[0],w=$[1],V=(0,o.useState)(""),k=V[0],H=V[1],Y=function(ie){var fe=ee.length-1;if(ie===t.R)if(L===null||L===fe){var he;N(0),(he=document.getElementById("0"))==null||he.scrollIntoView()}else{var be;N(L+1),(be=document.getElementById((L+1).toString()))==null||be.scrollIntoView()}else if(ie===t.gf)if(L===null||L===0){var je;N(fe),(je=document.getElementById(fe.toString()))==null||je.scrollIntoView()}else{var Ce;N(L-1),(Ce=document.getElementById((L-1).toString()))==null||Ce.scrollIntoView()}},q=function(ie){ie!==L&&N(ie)},Z=function(){w(!1),w(!0)},J=function(ie){var fe=String.fromCharCode(ie),he=j.find(function(Ce){return Ce==null?void 0:Ce.toLowerCase().startsWith(fe==null?void 0:fe.toLowerCase())});if(he){var be,je=j.indexOf(he);N(je),(be=document.getElementById(je.toString()))==null||be.scrollIntoView()}},Q=function(ie){var fe;ie!==k&&(H(ie),N(0),(fe=document.getElementById("0"))==null||fe.scrollIntoView())},X=function(){w(!z),H("")},ee=j.filter(function(ie){return ie==null?void 0:ie.toLowerCase().includes(k.toLowerCase())}),se=325+Math.ceil(M.length/3)+(_?5:0);return z||setTimeout(function(){var ie;return(ie=document.getElementById(L.toString()))==null?void 0:ie.focus()},1),(0,e.jsxs)(f.p8,{title:T,width:325,height:se,children:[S&&(0,e.jsx)(d.Loader,{value:S}),(0,e.jsx)(f.p8.Content,{onKeyDown:function(ie){var fe=window.event?ie.which:ie.keyCode;(fe===t.R||fe===t.gf)&&(ie.preventDefault(),Y(fe)),fe===t.Ri&&(ie.preventDefault(),v("submit",{entry:ee[L]})),!z&&fe>=t.W8&&fe<=t.bh&&(ie.preventDefault(),J(fe)),fe===t.s6&&(ie.preventDefault(),v("cancel"))},children:(0,e.jsx)(i.wn,{buttons:(0,e.jsx)(i.$n,{compact:!0,icon:z?"search":"font",selected:!0,tooltip:z?"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 X()}}),className:"ListInput__Section",fill:!0,title:M,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{filteredItems:ee,onClick:q,onFocusSearch:Z,searchBarVisible:z,selected:L})}),z&&(0,e.jsx)(s,{filteredItems:ee,onSearch:Q,searchQuery:k,selected:L}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[L]})})]})})})]})},l=function(c){var h=(0,r.Oc)().act,v=c.filteredItems,x=c.onClick,E=c.onFocusSearch,j=c.searchBarVisible,C=c.selected;return(0,e.jsxs)(i.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(i.y5,{}),v.map(function(M,P){return(0,e.jsx)(i.$n,{color:"transparent",fluid:!0,onClick:function(){return x(P)},onDoubleClick:function(_){_.preventDefault(),h("submit",{entry:v[C]})},onKeyDown:function(_){var S=window.event?_.which:_.keyCode;j&&S>=t.W8&&S<=t.bh&&(_.preventDefault(),E())},selected:P===C,style:{animation:"none",transition:"none"},children:M.replace(/^\w/,function(_){return _.toUpperCase()})},P)})]})},s=function(c){var h=(0,r.Oc)().act,v=c.filteredItems,x=c.onSearch,E=c.searchQuery,j=c.selected;return(0,e.jsx)(i.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(C){C.preventDefault(),h("submit",{entry:v[j]})},onInput:function(C,M){return x(M)},placeholder:"Search...",value:E})}},30373:function(y,u,n){"use strict";n.r(u),n.d(u,{LookingGlass:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.supportedPrograms,s=a.currentProgram,c=a.immersion,h=a.gravity,v=Math.min(180+l.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:v,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(t.wn,{title:"Programs",children:l.map(function(x){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",selected:x===s,onClick:function(){return d("program",{program:x})},children:x},x)})}),(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:h,onClick:function(){return d("gravity")},children:h?"Enabled":"Disabled"})}),(0,e.jsx)(t.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(t.$n,{mt:-1,fluid:!0,icon:"eye",selected:c,onClick:function(){return d("immersion")},children:c?"Enabled":"Disabled"})})]})})]})})}},88504:function(y,u,n){"use strict";n.r(u),n.d(u,{MechaControlConsole:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.beacons,c=s===void 0?[]:s,h=l.stored_data,v=h===void 0?[]:h;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[v.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:v.map(function(x){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",x.time,") (",x.year,")"]}),(0,e.jsx)(r.az,{children:(0,o.jT)(x.message)})]},x.time)})})}):"",c.length&&c.map(function(x){return(0,e.jsx)(r.wn,{title:x.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return a("send_message",{mt:x.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return a("get_log",{mt:x.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"bomb",onClick:function(){return a("shock",{mt:x.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:[x.maxHealth*.75,1/0],average:[x.maxHealth*.5,x.maxHealth*.75],bad:[-1/0,x.maxHealth*.5]},value:x.health,maxValue:x.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:x.cell&&(0,e.jsx)(r.z2,{ranges:{good:[x.cellMaxCharge*.75,1/0],average:[x.cellMaxCharge*.5,x.cellMaxCharge*.75],bad:[-1/0,x.cellMaxCharge*.5]},value:x.cellCharge,maxValue:x.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[x.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:x.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,o.Sn)(x.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:x.active||"None"}),x.cargoMax?(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[x.cargoMax*.75,1/0],average:[x.cargoMax*.5,x.cargoMax*.75],good:[-1/0,x.cargoMax*.5]},value:x.cargoUsed,maxValue:x.cargoMax})}):""]})},x.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.on,s=a.open,c=a.beaker,h=a.beaker_total,v=a.beaker_max,x=a.locked,E=a.heal_threshold,j=a.heal_threshold_max,C=a.injection_amount_min,M=a.injection_amount,P=a.injection_amount_max,_=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:l,onClick:function(){return d("power")},children:l?"On":"Off"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Maintenance Panel",color:s?"bad":"good",children:s?"Open":"Closed"}),(0,e.jsx)(t.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(t.$n,{disabled:!c,icon:"eject",onClick:function(){return d("eject")},children:"Eject"}),children:c&&(0,e.jsxs)(t.z2,{value:h,maxValue:v,children:[h," / ",v]})||(0,e.jsx)(t.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(t.Ki.Item,{label:"Behavior Controls",color:x?"good":"bad",children:x?"Locked":"Unlocked"})]})}),!x&&(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(b){return d("adj_threshold",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(t.Q7,{fluid:!0,step:1,minValue:C,maxValue:P,value:M,onDrag:function(b){return d("adj_inject",{val:b})}})}),(0,e.jsx)(t.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(t.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return d("use_beaker")},children:_?"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(i){var f=(0,o.Oc)(),g=f.act,d=f.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(l,s){return g("search",{t1:s})}}),(0,e.jsx)(t.az,{mt:"0.5rem",children:a.map(function(l,s){return(0,e.jsx)(t.$n,{icon:"user",mb:"0.5rem",onClick:function(){return g("d_rec",{d_rec:l.ref})},children:l.id+": "+l.name},s)})})]})}},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(i){var f=(0,o.Oc)().data,g=f.medbots;return!g||g.length===0?(0,e.jsx)(t.az,{color:"label",children:"There are no Medbots."}):g.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 f},MedicalRecordsNavigation:function(){return d},MedicalRecordsView:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(72886),i=n(8615),f=function(a){var l=(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 l("del_all")},children:"Delete All Medical Records"})]})},g=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.medical,v=c.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)(i.MedicalRecordsViewMedical,{})}),(0,e.jsxs)(t.wn,{title:"Actions",children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",disabled:!!h.empty,color:"bad",onClick:function(){return s("del_r")},children:"Delete Medical Record"}),(0,e.jsx)(t.$n,{icon:v?"spinner":"print",disabled:v,iconSpin:!!v,ml:"0.5rem",onClick:function(){return s("print_p")},children:"Print Entry"}),(0,e.jsx)("br",{}),(0,e.jsx)(t.$n,{icon:"arrow-left",mt:"0.5rem",onClick:function(){return s("screen",{screen:2})},children:"Back"})]})]})},d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.screen;return(0,e.jsxs)(t.tU,{children:[(0,e.jsxs)(t.tU.Tab,{selected:h===2,onClick:function(){return s("screen",{screen:2})},children:[(0,e.jsx)(t.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(t.tU.Tab,{selected:h===5,onClick:function(){return s("screen",{screen:5})},children:[(0,e.jsx)(t.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(t.tU.Tab,{selected:h===6,onClick:function(){return s("screen",{screen:6})},children:[(0,e.jsx)(t.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(t.tU.Tab,{selected:h===3,onClick:function(){return s("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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(80724),i=function(f){var g=(0,o.Oc)().data,d=g.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,l){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)}})]})},l)})})}),(0,e.jsx)(t.az,{width:"50%",style:{float:"right"},textAlign:"right",children:!!d.has_photos&&d.photos.map(function(a,l){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 #",l+1]},l)})})]})}},8615:function(y,u,n){"use strict";n.r(u),n.d(u,{MedicalRecordsViewMedical:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),i=n(80724),f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.medical;return!s||!s.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:s.fields.map(function(c,h){return(0,e.jsx)(t.Ki.Item,{label:c.field,children:(0,e.jsxs)(t.az,{preserveWhitespace:!0,children:[c.value,(0,e.jsx)(t.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return(0,i.doEdit)(c)}})]})},h)})}),(0,e.jsxs)(t.wn,{title:"Comments/Log",children:[s.comments&&s.comments.length===0?(0,e.jsx)(t.az,{color:"label",children:"No comments found."}):s.comments&&s.comments.map(function(c,h){return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.az,{color:"label",inline:!0,children:c.header}),(0,e.jsx)("br",{}),c.text,(0,e.jsx)(t.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return a("del_c",{del_c:h+1})}})]},h)}),(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 i}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=function(f){var g=(0,t.Oc)(),d=g.act,a=g.data,l=a.virus;return l&&l.sort(function(s,c){return s.name>c.name?1:-1}),l&&l.map(function(s,c){return(0,e.jsxs)(o.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",mb:"0.5rem",onClick:function(){return d("vir",{vir:s.D})},children:s.name}),(0,e.jsx)("br",{})]},c)})}},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 v}});var e=n(20462),o=n(7081),t=n(88569),r=n(86471),i=n(15581),f=n(35069),g=n(97049),d=n(3751),a=n(47407),l=n(43131),s=n(70734),c=n(3748),h=n(4492),v=function(x){var E=(0,o.Oc)().data,j=E.authenticated,C=E.screen;if(!j)return(0,e.jsx)(i.p8,{width:800,height:380,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var M=[];return M[2]=(0,e.jsx)(a.MedicalRecordsList,{}),M[3]=(0,e.jsx)(s.MedicalRecordsMaintenance,{}),M[4]=(0,e.jsx)(s.MedicalRecordsView,{}),M[5]=(0,e.jsx)(c.MedicalRecordsViruses,{}),M[6]=(0,e.jsx)(l.MedicalRecordsMedbots,{}),(0,e.jsxs)(i.p8,{width:800,height:380,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(f.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(s.MedicalRecordsNavigation,{}),(0,e.jsx)(t.wn,{height:"calc(100% - 5rem)",flexGrow:!0,children:C&&M[C]||""})]})]})};(0,r.modalRegisterBodyOverride)("virus",h.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(i){var f=(0,o.Oc)().act,g=i.args;return(0,e.jsx)(t.wn,{m:"-1rem",title:g.name||"Virus",buttons:(0,e.jsx)(t.$n,{icon:"times",color:"red",onClick:function(){return f("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:[g.spreadtype," Transmission"]}),(0,e.jsx)(t.Ki.Item,{label:"Possible cure",children:g.antigen}),(0,e.jsx)(t.Ki.Item,{label:"Rate of Progression",children:g.rate}),(0,e.jsxs)(t.Ki.Item,{label:"Antibiotic Resistance",children:[g.resistance,"%"]}),(0,e.jsx)(t.Ki.Item,{label:"Species Affected",children:g.species}),(0,e.jsx)(t.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(t.Ki,{children:g.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 g}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),f={open:"Open",resolved:"Resolved",unknown:"Unknown"},g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.id,h=s.name,v=s.state,x=s.opened_at,E=s.closed_at,j=s.opened_at_date,C=s.closed_at_date,M=s.actions,P=s.log;return(0,e.jsx)(i.p8,{width:900,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{title:"Ticket #"+c,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",onClick:function(){return l("escalate")},children:"Escalate"}),(0,e.jsx)(r.$n,{onClick:function(){return l("legacy")},children:"Legacy UI"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mentor Help Ticket",children:["#",c,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:f[v]}),f[v]===f.open?(0,e.jsx)(r.Ki.Item,{label:"Opened At",children:j+" ("+(0,o.Mg)((0,o.LI)(x/600*10,0)/10,1)+" minutes ago.)"}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[C+" ("+(0,o.Mg)((0,o.LI)(E/600*10,0)/10,1)+" minutes ago.)",(0,e.jsx)(r.$n,{onClick:function(){return l("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(P).map(function(_,S){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:P[_]}},S)})})]})})})})}},26948:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorContent:function(){return f}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(5871),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.linkedServer,c=(0,o.useState)(0),h=c[0],v=c[1],x=[];return x[0]=(0,e.jsx)(i.MessageMonitorMain,{}),x[1]=(0,e.jsx)(i.MessageMonitorLogs,{logs:s.pda_msgs,pda:!0}),x[2]=(0,e.jsx)(i.MessageMonitorLogs,{logs:s.rc_msgs,rc:!0}),x[3]=(0,e.jsx)(i.MessageMonitorAdmin,{}),x[4]=(0,e.jsx)(i.MessageMonitorSpamFilter,{}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:h===0,onClick:function(){return v(0)},children:[(0,e.jsx)(r.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(r.tU.Tab,{selected:h===1,onClick:function(){return v(1)},children:[(0,e.jsx)(r.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(r.tU.Tab,{selected:h===2,onClick:function(){return v(2)},children:[(0,e.jsx)(r.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(r.tU.Tab,{selected:h===3,onClick:function(){return v(3)},children:[(0,e.jsx)(r.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(r.tU.Tab,{selected:h===4,onClick:function(){return v(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:x[h]})]})}},9760:function(y,u,n){"use strict";n.r(u),n.d(u,{MessageMonitorHack:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),i=function(f){var g=(0,o.Oc)().data,d=g.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(72859),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=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(s,c){return d("auth",{key:c})}})]}),!!l&&(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 g},MessageMonitorLogs:function(){return f},MessageMonitorMain:function(){return i},MessageMonitorSpamFilter:function(){return d}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=c.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 s("find")},children:"Server Link"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:h.active,onClick:function(){return s("active")},children:"Server "+(h.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 s("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"})]})},f=function(a){var l=(0,t.Oc)().act,s=a.logs,c=a.pda,h=a.rc;return(0,e.jsx)(r.wn,{title:c?"PDA Logs":h?"Request Logs":"Logs",buttons:(0,e.jsx)(r.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",onClick:function(){return l(c?"del_pda":"del_rc")},children:"Delete All"}),children:(0,e.jsx)(r.so,{wrap:"wrap",children:s.map(function(v,x){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:x%2,children:(0,e.jsx)(r.wn,{title:v.sender+" -> "+v.recipient,buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return l("delete",{id:v.ref,type:h?"rc":"pda"})}}),children:h?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message",children:v.message}),(0,e.jsx)(r.Ki.Item,{label:"Verification",color:v.id_auth==="Unauthenticated"?"bad":"good",children:!!v.id_auth&&(0,o.jT)(v.id_auth)}),(0,e.jsx)(r.Ki.Item,{label:"Stamp",children:v.stamp})]}):v.message})},v.ref)})})})},g=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=c.possibleRecipients,v=c.customsender,x=c.customrecepient,E=c.customjob,j=c.custommessage,C=Object.keys(h);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:v,onChange:function(M,P){return s("set_sender",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(r.pd,{fluid:!0,value:E,onChange:function(M,P){return s("set_sender_job",{val:P})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",children:(0,e.jsx)(r.ms,{autoScroll:!1,selected:x,options:C,width:"100%",mb:-.7,onSelected:function(M){return s("set_recipient",{val:h[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,P){return s("set_message",{val:P})}})})]}),(0,e.jsx)(r.$n,{fluid:!0,icon:"comment",onClick:function(){return s("send_message")},children:"Send Message"})]})},d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h=c.linkedServer;return(0,e.jsxs)(r.wn,{title:"Spam Filtering",children:[(0,e.jsx)(r.Ki,{children:h.spamFilter.map(function(v){return(0,e.jsx)(r.Ki.Item,{label:v.index,buttons:(0,e.jsx)(r.$n,{icon:"trash",color:"bad",onClick:function(){return s("deltoken",{deltoken:v.index})},children:"Delete"}),children:v.token},v.index)})}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return s("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),i=n(3751),f=n(26948),g=n(9760),d=n(38860),a=function(l){var s=(0,o.Oc)().data,c=s.auth,h=s.linkedServer,v=s.hacking,x=s.emag,E;return v||x?E=(0,e.jsx)(g.MessageMonitorHack,{}):c?h?E=(0,e.jsx)(f.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)(i.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.config,l=g.data,s=l.broken,c=l.operating,h=l.dirty,v=l.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:s&&(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.az,{color:"bad",children:"Bzzzzttttt!!"})})||c&&(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||h&&(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!"]})})||v.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:v.map(function(x){return(0,e.jsxs)(t.Ki.Item,{label:x.name,children:[x.amt," ",x.extra]},x.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 g}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),f=n(22588),g=function(c){var h=(0,t.Oc)(),v=h.act,x=h.data,E=x.unclaimedPoints,j=x.power,C=x.speed;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(f.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return v("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:C,onClick:function(){return v("speed_toggle")},children:C?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:j,onClick:function(){return v("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 v("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:E})})})}),(0,e.jsx)(s,{})]})})},d=["Not Processing","Smelting","Compressing","Alloying"],a=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],l=function(c,h){return a.indexOf(c.ore)===-1||a.indexOf(h.ore)===-1?c.ore-h.ore:a.indexOf(h.ore)-a.indexOf(c.ore)},s=function(c){var h=(0,t.Oc)(),v=h.act,x=h.data,E=x.ores,j=x.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 v("showAllOres")},children:j?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:E.length&&E.sort(l).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(C.name),buttons:(0,e.jsx)(r.ms,{autoScroll:!1,width:"120px",color:C.processing===0&&"red"||C.processing===1&&"green"||C.processing===2&&"blue"||C.processing===3&&"yellow"||void 0,options:d,selected:d[C.processing],onSelected:function(M){return v("toggleSmelting",{ore:C.ore,set:d.indexOf(M)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:C.amount})})},C.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 f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(15581),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.stacktypes,c=l.stackingAmt;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsx)(i.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:c,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(h){return a("change_stack",{amt:h})}})}),(0,e.jsx)(r.Ki.Divider,{}),s.length&&s.sort().map(function(h){return(0,e.jsx)(r.Ki.Item,{label:(0,o.Sn)(h.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return a("release_stack",{stack:h.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:h.amt})},h.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 s}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(15581),g=n(22588);function d(){return d=Object.assign||function(x){for(var E=1;E=0)&&(j[M]=x[M]);return j}var l={Alphabetical:function(x,E){return x.name>E.name},"By availability":function(x,E){return-(x.affordable-E.affordable)},"By price":function(x,E){return x.price-E.price}},s=function(x){var E=function(w){_(w)},j=function(w){b(w)},C=function(w){$(w)},M=(0,t.useState)(""),P=M[0],_=M[1],S=(0,t.useState)("Alphabetical"),T=S[0],b=S[1],L=(0,t.useState)(!1),N=L[0],$=L[1];return(0,e.jsx)(f.p8,{width:400,height:450,children:(0,e.jsxs)(f.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(h,{searchText:P,sortOrder:T,descending:N,onSearchText:E,onSortOrder:j,onDescending:C}),(0,e.jsx)(c,{searchText:P,sortOrder:T,descending:N})]})})},c=function(x){var E=(0,r.Oc)(),j=E.act,C=E.data,M=C.has_id,P=C.id,_=C.items,S=(0,o.XZ)(x.searchText,function(L){return L[0]}),T=!1,b=Object.entries(_).map(function(L,N){var $=Object.entries(L[1]).filter(S).map(function(z){return z[1].affordable=+(M&&P.points>=z[1].price),z[1]}).sort(l[x.sortOrder]);if($.length!==0)return x.descending&&($=$.reverse()),T=!0,(0,e.jsx)(v,{title:L[0],items:$},L[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:T?b:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(x){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",value:x.searchText,width:"100%",onInput:function(E,j){return x.onSearchText(j)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{autoScroll:!1,selected:x.sortOrder,options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(E){return x.onSortOrder(E)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:x.descending?"arrow-down":"arrow-up",height:"19px",tooltip:x.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return x.onDescending(!x.descending)}})})]})})},v=function(x){var E=(0,r.Oc)(),j=E.act,C=E.data,M=C.has_id,P=C.id,_=x.title,S=x.items,T=a(x,["title","items"]);return(0,e.jsx)(i.Nt,d({open:!0,title:_},T,{children:S.map(function(b){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.jsx)(i.$n,{disabled:!M||P.points=v.max_damage?"Component destroyed!":s(v,x,E,j)?"Disabled due to fully intact component!":"";case"rem_component":return v.exists?"":"Disabled due to missing component!"}return""}function h(v,x){switch(x){case"add_component":return v.brute_damage+v.electronics_damage>=v.max_damage||v.installed!==1||!v.exists?"black":(v.brute_damage+v.electronics_damage)/v.max_damage>.66?"red":(v.brute_damage+v.electronics_damage)/v.max_damage>.33?"orange":(v.brute_damage+v.electronics_damage)/v.max_damage>0?"yellow":void 0;case"rem_component":return}return""}},87193:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotModules:function(){return d}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(68333),g=n(17374),d=function(l){var s=l.target,c=l.source,h=l.model_options,v=(0,r.Oc)().act,x=(0,t.useState)(""),E=x[0],j=x[1],C=(0,t.useState)(""),M=C[0],P=C[1];return(0,e.jsxs)(e.Fragment,{children:[!s.active&&(0,e.jsx)(f.NoSpriteWarning,{name:s.name}),(0,e.jsxs)(i.so,{height:s.active?"80%":"75%",children:[(0,e.jsx)(i.so.Item,{width:"40%",fill:!0,children:(0,e.jsxs)(i.wn,{title:"Source Module",scrollable:!0,fill:!0,children:[(0,e.jsx)(i.az,{children:"Robot to salvage"}),(0,e.jsx)(i.ms,{width:"100%",selected:c?c.model:"",options:h,onSelected:function(_){return v("select_source",{new_source:_})}}),!!c&&(0,e.jsx)(a,{previewImage:c.front,searchText:E,onSearchText:j,action:"add_module",buttonIcon:"arrow-right-to-bracket",buttonColor:"green",modules:c.modules})]})}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsxs)(i.BJ,{vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n.Confirm,{width:"50px",height:"50px",disabled:!c,tooltip:"Swaps the source and destination module types.",icon:"arrows-rotate",iconSize:4,onClick:function(){return v("swap_module")}})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n.Confirm,{width:"50px",height:"50px",mt:40,textAlign:"center",tooltip:(s.crisis_override?"Disable":"Enable")+" ERT module access and reset the robot!",color:s.crisis_override?"green":"yellow",icon:"circle-radiation",iconSize:4,onClick:function(){return v("ert_toggle")}})})]})}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{width:"40%",fill:!0,children:(0,e.jsxs)(i.wn,{title:"Destination Module",scrollable:!0,fill:!0,children:[(0,e.jsx)(i.az,{children:s?s.module:""}),(0,e.jsx)(i.$n.Confirm,{fluid:!0,icon:"arrow-rotate-left",confirmColor:"red",confirmIcon:"triangle-exclamation",onClick:function(){return v("reset_module")},tooltip:"Allows to reset the module back to default.",children:"Reset Module"}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(a,{previewImage:s.front,searchText:M,onSearchText:P,action:"rem_module",buttonIcon:"trash",buttonColor:"red",modules:s.modules})]})})]})]})},a=function(l){var s=(0,r.Oc)().act,c=l.previewImage,h=l.searchText,v=l.onSearchText,x=l.action,E=l.modules,j=l.buttonIcon,C=l.buttonColor;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.cG,{}),(0,e.jsx)(i._V,{src:"data:image/jpeg;base64, "+c,style:{display:"block",marginLeft:"auto",marginRight:"auto",height:"200px"}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.pd,{fluid:!0,value:h,placeholder:"Search for modules...",onInput:function(M,P){return v(P)}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.BJ,{children:(0,e.jsx)(i.BJ.Item,{width:"100%",children:(0,g.prepareSearch)(E,h).map(function(M,P){return(0,e.jsx)(i.$n,{fluid:!0,tooltip:M.desc,onClick:function(){return s(x,{module:M.ref})},children:(0,e.jsxs)(i.so,{varticalAlign:"center",children:[(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i._V,{src:M.icon})}),(0,e.jsx)(i.so.Item,{ml:"10px",children:(0,o.ZH)(M.name)}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.In,{name:j,backgroundColor:C,size:1.5})})]})},P)})})})]})}},60442:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotPKA:function(){return d}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(68333),g=n(17374),d=function(a){var l=(0,r.Oc)().act,s=a.target,c=(0,t.useState)(""),h=c[0],v=c[1],x=(0,t.useState)(""),E=x[0],j=x[1];return(0,e.jsxs)(e.Fragment,{children:[!s.active&&(0,e.jsx)(f.NoSpriteWarning,{name:s.name}),s.pka?(0,e.jsxs)(i.so,{height:s.active?"80%":"75%",children:[(0,e.jsxs)(i.so.Item,{width:"35%",fill:!0,children:[(0,e.jsx)(i.cG,{}),(0,e.jsxs)(i.az,{children:["Remaining Capacity: ",s.pka.capacity]}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.pd,{fluid:!0,value:h,placeholder:"Search for modkits...",onInput:function(C,M){return v(M)}}),(0,e.jsx)(i.cG,{}),(0,g.prepareSearch)(s.pka.modkits,h).map(function(C,M){return(0,e.jsxs)(i.$n,{fluid:!0,disabled:C.denied,color:"green",tooltip:C.denied_by?"Modul incompatible with: "+C.denied_by:"",onClick:function(){return l("install_modkit",{modkit:C.path})},children:[(0,o.ZH)(C.name)," ",C.costs]},M)})]}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i._V,{src:(0,g.getModuleIcon)(s.modules,s.pka.name),width:"150px"})}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsxs)(i.so.Item,{width:"35%",fill:!0,children:[(0,e.jsx)(i.cG,{}),(0,e.jsxs)(i.az,{children:["Used Capacity: ",s.pka.max_capacity-s.pka.capacity]}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.pd,{fluid:!0,value:E,placeholder:"Search for modkits...",onInput:function(C,M){return j(M)}}),(0,e.jsx)(i.cG,{}),(0,g.prepareSearch)(s.pka.installed_modkits,E).map(function(C,M){return(0,e.jsxs)(i.$n,{fluid:!0,color:"red",onClick:function(){return l("remove_modkit",{modkit:C.ref})},children:[(0,o.ZH)(C.name)," ",C.costs]},M)})]})]}):(0,e.jsxs)(i.IC,{danger:!0,children:[s.name," has no PKA installed."]})]})}},62975:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotRadio:function(){return d}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(68333),g=n(17374),d=function(l){var s=l.target,c=(0,t.useState)(""),h=c[0],v=c[1],x=(0,t.useState)(""),E=x[0],j=x[1];return(0,e.jsxs)(e.Fragment,{children:[!s.active&&(0,e.jsx)(f.NoSpriteWarning,{name:s.name}),(0,e.jsxs)(i.so,{height:s.active?"80%":"75%",children:[(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(a,{title:"Add Radio Channel",searchText:h,onSearchText:v,channels:s.availalbe_channels,action:"add_channel",buttonColor:"green",buttonIcon:"arrow-right-to-bracket"})}),(0,e.jsx)(i.so.Item,{width:"40%",children:(0,e.jsx)(i._V,{src:"data:image/jpeg;base64, "+s.back,style:{display:"block",marginLeft:"auto",marginRight:"auto",width:"200px"}})}),(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(a,{title:"Remove Radio Channel",searchText:E,onSearchText:j,channels:s.radio_channels,action:"rem_channel",buttonColor:"red",buttonIcon:"trash"})})]})]})},a=function(l){var s=(0,r.Oc)().act,c=l.title,h=l.searchText,v=l.onSearchText,x=l.channels,E=l.action,j=l.buttonColor,C=l.buttonIcon;return(0,e.jsxs)(i.wn,{title:c,fill:!0,scrollable:!0,children:[(0,e.jsx)(i.pd,{fluid:!0,value:h,placeholder:"Search for channels...",onInput:function(M,P){return v(P)}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.BJ,{children:(0,e.jsx)(i.BJ.Item,{width:"100%",children:(0,g.prepareSearch)(x,h).map(function(M,P){return(0,e.jsx)(i.$n,{fluid:!0,onClick:function(){return s(E,{channel:M})},children:(0,e.jsxs)(i.so,{varticalAlign:"center",children:[(0,e.jsx)(i.so.Item,{children:(0,o.ZH)(M)}),(0,e.jsx)(i.so.Item,{grow:!0}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.In,{name:C,backgroundColor:j,size:1.5})})]})},P)})})})]})}},85015:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobotUpgrades:function(){return a}});var e=n(20462),o=n(61282),t=n(61358),r=n(7081),i=n(88569),f=n(68333),g=n(46834),d=n(17374),a=function(s){var c=s.target,h=(0,t.useState)(""),v=h[0],x=h[1],E=(0,t.useState)(""),j=E[0],C=E[1],M=(0,t.useState)(""),P=M[0],_=M[1],S=(0,t.useState)(""),T=S[0],b=S[1],L=(0,t.useState)(""),N=L[0],$=L[1],z=(0,t.useState)(""),w=z[0],V=z[1];return(0,e.jsxs)(e.Fragment,{children:[!c.active&&(0,e.jsx)(f.NoSpriteWarning,{name:c.name}),(0,e.jsxs)(i.so,{height:"35%",children:[(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(l,{title:"Add Compatibility",searchText:v,onSearchText:x,upgrades:c.whitelisted_upgrades,action:"add_compatibility"})}),(0,e.jsx)(i.so.Item,{width:"40%",children:(0,e.jsx)(i._V,{src:"data:image/jpeg;base64, "+c.side,style:{display:"block",marginLeft:"auto",marginRight:"auto",width:"200px"}})}),(0,e.jsx)(i.so.Item,{width:"30%",fill:!0,children:(0,e.jsx)(l,{title:"Remove Compatibility",searchText:j,onSearchText:C,upgrades:c.blacklisted_upgrades,action:"rem_compatibility"})})]}),(0,e.jsxs)(i.so,{height:c.active?"45%":"40%",children:[(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Utility Upgrade",searchText:P,onSearchText:_,upgrades:c.utility_upgrades,action:"add_upgrade"})}),(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Basic Upgrade",searchText:T,onSearchText:b,upgrades:c.basic_upgrades,action:"add_upgrade"})}),(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Advanced Upgrade",searchText:N,onSearchText:$,upgrades:c.advanced_upgrades,action:"add_upgrade"})}),(0,e.jsx)(i.so.Item,{width:"25%",fill:!0,children:(0,e.jsx)(l,{title:"Restricted Upgrade",searchText:w,onSearchText:V,upgrades:c.restricted_upgrades,action:"add_upgrade"})})]})]})},l=function(s){var c=(0,r.Oc)().act,h=s.title,v=s.searchText,x=s.onSearchText,E=s.upgrades,j=s.action;return(0,e.jsxs)(i.wn,{title:h,fill:!0,scrollable:!0,scrollableHorizontal:!0,children:[(0,e.jsx)(i.pd,{fluid:!0,value:v,placeholder:"Search for upgrades...",onInput:function(C,M){return x(M)}}),(0,e.jsx)(i.cG,{}),(0,e.jsx)(i.BJ,{children:(0,e.jsx)(i.BJ.Item,{width:"100%",children:(0,d.prepareSearch)(E,v).map(function(C,M){return(0,e.jsx)(i.$n,{fluid:!0,color:C.installed!==void 0?g.install2col[C.installed]:void 0,onClick:function(){return c(j,{upgrade:C.path})},children:(0,o.ZH)(C.name)},M)})})})]})}},68333:function(y,u,n){"use strict";n.r(u),n.d(u,{NoSpriteWarning:function(){return t}});var e=n(20462),o=n(88569),t=function(r){var i=r.name;return(0,e.jsxs)(o.IC,{warning:!0,children:["Warning, ",i," has not yet chosen a sprite. Functionality might be limited."]})}},46834:function(y,u,n){"use strict";n.r(u),n.d(u,{install2col:function(){return e}});var e={undefined:"",0:"red",1:"green",2:"grey"}},17374:function(y,u,n){"use strict";n.r(u),n.d(u,{getModuleIcon:function(){return i},prepareSearch:function(){return r}});var e=n(7402),o=n(15813),t=n(61282);function r(f,g){g===void 0&&(g="");var d=(0,t.XZ)(g,function(a){return typeof a=="string"?a:a.name});return(0,o.L)([function(a){return g?(0,e.pb)(a,d):a}])(f)}function i(f,g){if(f){var d=f.filter(function(a){return a.name===g});if(d.length>0)return d[0].icon}return""}},97021:function(y,u,n){"use strict";n.r(u),n.d(u,{ModifyRobot:function(){return v}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),f=n(7881),g=n(81926),d=n(67462),a=n(61123),l=n(87193),s=n(60442),c=n(62975),h=n(85015),v=function(x){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.target,P=C.all_robots,_=C.source,S=C.model_options,T=C.cell,b=C.cell_options,L=C.id_icon,N=C.access_options,$=C.ion_law_nr,z=C.ion_law,w=C.zeroth_law,V=C.inherent_law,k=C.supplied_law,H=C.supplied_law_position,Y=C.zeroth_laws,q=C.ion_laws,Z=C.inherent_laws,J=C.supplied_laws,Q=C.has_zeroth_laws,X=C.has_ion_laws,ee=C.has_inherent_laws,se=C.has_supplied_laws,ie=C.isAI,fe=C.isMalf,he=C.isSlaved,be=C.active_ais,je=C.selected_ai,Ce=C.channel,Ne=C.channels,sn=C.law_sets,en=(0,o.useState)(0),De=en[0],Qe=en[1],Mn=(0,o.useState)(M?M.name:""),Pn=Mn[0],gn=Mn[1],An=(0,o.useState)(""),xn=An[0],cn=An[1];(0,o.useEffect)(function(){M!=null&&M.name&&gn(M.name)},[M==null?void 0:M.name]);var Se=[];return Se[0]=(0,e.jsx)(l.ModifyRobotModules,{target:M,source:_,model_options:S}),Se[1]=(0,e.jsx)(h.ModifyRobotUpgrades,{target:M}),Se[2]=(0,e.jsx)(s.ModifyRobotPKA,{target:M}),Se[3]=(0,e.jsx)(c.ModifyRobotRadio,{target:M}),Se[4]=(0,e.jsx)(a.ModifyRobotComponent,{target:M,cell:T,cells:b}),Se[5]=(0,e.jsx)(d.ModifyRobotAccess,{target:M,tab_icon:L,all_access:N}),Se[6]=(0,e.jsx)(f.LawManagerLaws,{isAdmin:!0,hasScroll:!0,sectionHeight:"80%",ion_law_nr:$,ion_law:z,zeroth_law:w,inherent_law:V,supplied_law:k,supplied_law_position:H,zeroth_laws:Y,ion_laws:q,inherent_laws:Z,supplied_laws:J,has_zeroth_laws:Q,has_ion_laws:X,has_inherent_laws:ee,has_supplied_laws:se,isAI:ie,isMalf:fe,channel:Ce,channels:Ne}),Se[7]=(0,e.jsx)(r.wn,{scrollable:!0,fill:!0,height:"80%",children:(0,e.jsx)(f.LawManagerLawSets,{isAdmin:!0,isMalf:fe,law_sets:sn,ion_law_nr:$,searchLawName:xn,onSearchLawName:cn})}),(0,e.jsx)(i.p8,{width:M!=null&&M.module?900:400,height:700,children:(0,e.jsxs)(i.p8.Content,{children:[M?(0,e.jsxs)(r.IC,{info:!0,children:[M.name,!!M.ckey&&" played by "+M.ckey,"."]}):(0,e.jsx)(r.IC,{danger:!0,children:"No target selected. Please pick one."}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Selection",children:(0,e.jsxs)(r.BJ,{inline:!0,align:"baseline",children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.ms,{selected:M?M.name:"",options:P,onSelected:function(ze){return j("select_target",{new_target:ze})}})}),!!(M!=null&&M.module)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.pd,{width:"200px",value:Pn,onChange:function(ze,Oe){return gn(Oe)}})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{disabled:Pn.length<3,onClick:function(){return j("rename",{new_name:Pn})},children:"Rename"})}),(0,e.jsx)(r.BJ.Item,{grow:!0}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:M.emagged?"sd-card":"bolt",color:M.emagged?"green":"red",onClick:function(){return j("toggle_emag")},tooltip:(M.emagged?"Disables":"Enables")+" hacked state",children:"EMAG"})})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"AI Selection",children:!!(M!=null&&M.module)&&(0,e.jsxs)(r.BJ,{inline:!0,align:"baseline",children:[(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.ms,{selected:je||"",options:be,onSelected:function(ze){return j("select_ai",{new_ai:ze})}})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"plug",disabled:je===he,color:"green",tooltip:"Connect the robot to an AI",onClick:function(){return j("swap_sync")},children:he||"Connect AI"})}),(0,e.jsx)(r.BJ.Item,{children:(0,e.jsx)(r.$n,{icon:"plug-circle-minus",disabled:!he,color:"red",tooltip:"Disconnects the robot from the AI",onClick:function(){return j("disconnect_ai")},children:"DC"})})]})})]}),(0,e.jsx)(r.cG,{}),!!M&&(M.module?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:De===0,onClick:function(){return Qe(0)},children:"Module Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===1,onClick:function(){return Qe(1)},children:"Upgrade Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===2,onClick:function(){return Qe(2)},children:"PKA"}),(0,e.jsx)(r.tU.Tab,{selected:De===3,onClick:function(){return Qe(3)},children:"Radio Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===4,onClick:function(){return Qe(4)},children:"Component Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===5,onClick:function(){return Qe(5)},children:"Access Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===6,onClick:function(){return Qe(6)},children:"Law Manager"}),(0,e.jsx)(r.tU.Tab,{selected:De===7,onClick:function(){return Qe(7)},children:"Law Sets"})]}),Se[De]]}):(0,e.jsx)(g.ModifyRobotNoModule,{target:M}))]})})}},62114:function(y,u,n){"use strict";n.r(u)},97144:function(y,u,n){"use strict";n.r(u),n.d(u,{MuleBot:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.suffix,h=s.load,v=s.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(t.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"ID",children:c}),(0,e.jsx)(t.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(t.$n,{icon:"eject",disabled:!h,onClick:function(){return l("unload")},children:"Unload Now"}),children:h||"None."})]}),v?(0,e.jsx)(g,{}):(0,e.jsx)(f,{})]})})})},f=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.power,h=s.locked,v=s.issilicon,x=s.auto_return,E=s.crates_only;return(0,e.jsx)(t.wn,{title:"Controls",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:h&&!v,onClick:function(){return l("power")},children:c?"On":"Off"}),children:h&&!v?(0,e.jsx)(t.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"stop",onClick:function(){return l("stop")},children:"Stop"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"truck-monster",onClick:function(){return l("go")},children:"Proceed"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"home",onClick:function(){return l("home")},children:"Return Home"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"map-marker-alt",onClick:function(){return l("destination")},children:"Set Destination"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"cog",onClick:function(){return l("sethome")},children:"Set Home"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"home",selected:x,onClick:function(){return l("autoret")},children:"Auto Return Home: "+(x?"Enabled":"Disabled")}),(0,e.jsx)(t.$n,{fluid:!0,icon:"biking",selected:!E,onClick:function(){return l("cargotypes")},children:"Non-standard Cargo: "+(E?"Disabled":"Enabled")})]})})},g=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.safety;return(0,e.jsx)(t.wn,{title:"Maintenance Panel",children:(0,e.jsx)(t.$n,{fluid:!0,icon:"skull-crossbones",color:c?"green":"red",onClick:function(){return l("safety")},children:"Safety: "+(c?"Engaged":"Disengaged (DANGER)")})})}},7428:function(y,u,n){"use strict";n.r(u),n.d(u,{NIFMain:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(17229),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.nif_percent,s=a.nif_stat,c=a.nutrition,h=a.isSynthetic,v=a.modules,x=f.setViewing;return(0,e.jsxs)(t.az,{children:[(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(t.z2,{value:l,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[(0,r.getNifCondition)(s,l)," (",(0,e.jsx)(t.zv,{value:l}),"%)"]})}),(0,e.jsx)(t.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(t.z2,{value:c,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:(0,r.getNutritionText)(c,h)})})]}),(0,e.jsx)(t.wn,{title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(t.Ki,{children:v.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return d("uninstall",{module:E.ref})}}),(0,e.jsx)(t.$n,{icon:"search",onClick:function(){return x(E)},tooltip:"View Information",tooltipPosition:"left"})]}),children:E.activates&&(0,e.jsx)(t.$n,{fluid:!0,selected:E.active,onClick:function(){return d("toggle_module",{module:E.ref})},children:E.stat_text})||(0,e.jsx)(t.az,{children:E.stat_text})},E.ref)})})})]})}},84772:function(y,u,n){"use strict";n.r(u),n.d(u,{NIFSettings:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.valid_themes,l=d.theme;return(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(t.so,{children:[(0,e.jsx)(t.so.Item,{grow:1,children:(0,e.jsx)(t.ms,{autoScroll:!1,width:"100%",selected:l||"default",options:a,onSelected:function(s){return g("setTheme",{theme:s})}})}),l?(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){g("setTheme",{theme:null})}})}):""]})})})}},68529:function(y,u,n){"use strict";n.r(u),n.d(u,{NIF_INSTALLING:function(){return r},NIF_POWFAIL:function(){return o},NIF_PREINSTALL:function(){return i},NIF_TEMPFAIL:function(){return t},NIF_WORKING:function(){return e}});var e=0,o=1,t=2,r=3,i=4},17229:function(y,u,n){"use strict";n.r(u),n.d(u,{getNifCondition:function(){return o},getNutritionText:function(){return t}});var e=n(68529);function o(r,i){switch(r){case e.NIF_WORKING:return i<25?"Service Needed Soon":"Operating Normally";case e.NIF_POWFAIL:return"Insufficient Energy!";case e.NIF_TEMPFAIL:return"System Failure!";case e.NIF_INSTALLING:return"Adapting To User"}return"Unknown"}function t(r,i){return i?r>=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),i=n(15581),f=n(7428),g=n(84772),d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.config,h=l.data,v=h.theme,x=h.last_notification,E=(0,o.useState)(!1),j=E[0],C=E[1],M=(0,o.useState)(null),P=M[0],_=M[1];return(0,e.jsx)(i.p8,{theme:v,width:500,height:400,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!x&&(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:x}),(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 s("dismissNotification")}})})]})})}),!!P&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:P.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",confirmIcon:"ban",confirmContent:"Uninstall "+P.name+"?",onClick:function(){s("uninstall",{module:P.ref}),_(null)},children:"Uninstall"}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return _(null)}})]}),children:[(0,e.jsx)(r.az,{children:P.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:P.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:P.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:P.illegal?"bad":"good",children:["It is ",P.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:[P.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 ",P.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+c.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:j,onClick:function(){return C(!j)}}),children:j&&(0,e.jsx)(g.NIFSettings,{})||(0,e.jsx)(f.NIFMain,{setViewing:_})})]})})}},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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(72859),f=function(a){var l=(0,o.Oc)().data,s=l.dos_crashed,c=(0,e.jsx)(g,{});return s&&(c=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:s?700:500,height:s?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:c})})},g=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.enabled,v=c.dos_overload,x=c.dos_capacity;return(0,e.jsx)(t.wn,{title:"Status",buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:h,onClick:function(){return s("toggle")},children:"Relay "+(h?"On":"Off")}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Network Buffer Status",children:[v," / ",x," GQ"]}),(0,e.jsx)(t.Ki.Item,{label:"Options",children:(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return s("purge")},children:"Purge network blacklist"})})]})})},d=function(a){var l=(0,o.Oc)().act;return(0,e.jsxs)(i.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 l("restart")},children:"Purge buffered traffic"})})]})}},3949:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterMainMenu:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),i=function(f){var g=(0,o.Oc)().data,d=g.securityCaster,a=g.wanted_issue,l=f.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 l(r.NEWSCASTER_SCREEN_VIEWWANTED)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return l(r.NEWSCASTER_SCREEN_VIEWLIST)},children:"View Feed Channels"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWCHANNEL)},children:"Create Feed Channel"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"plus",onClick:function(){return l(r.NEWSCASTER_SCREEN_NEWSTORY)},children:"Create Feed Message"}),(0,e.jsx)(t.$n,{fluid:!0,icon:"print",onClick:function(){return l(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 l(r.NEWSCASTER_SCREEN_NEWWANTED)},children:'Manage "Wanted" Issue'})})]})}},71588:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewChannel:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.channel_name,c=l.c_locked,h=l.user,v=g.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return v(i.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)(s),onInput:function(x,E){return a("set_channel_name",{val:E})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:h}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:c?"lock":"lock-open",selected:!c,onClick:function(){return a("set_channel_lock")},children:c?"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 v(i.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},85578:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewStory:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.channel_name,s=a.user,c=a.title,h=a.msg,v=a.photo_data,x=f.setScreen;return(0,e.jsxs)(t.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return x(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:l||"Unset"})}),(0,e.jsx)(t.Ki.Item,{label:"Message Author",color:"good",children:s}),(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:c||"(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:h||"(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:v?"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 x(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},92432:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterNewWanted:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.channel_name,c=l.msg,h=l.photo_data,v=l.user,x=l.wanted_issue,E=g.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return E(i.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!x&&(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)(s),onInput:function(j,C){return a("set_channel_name",{val:C})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,o.jT)(c),onInput:function(j,C){return a("set_wanted_desc",{val:C})}})}),(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:h?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:v})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return a("submit_wanted")},children:"Submit Wanted Issue"}),!!x&&(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(i.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},7662:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterPrint:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(42501),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.total_num,s=a.active_num,c=a.message_num,h=a.paper_remaining,v=f.setScreen;return(0,e.jsxs)(t.wn,{title:"Printing",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return v(r.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:[(0,e.jsxs)(t.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",l," Feed channels,"," ",s," of which are active, and a total of ",c," Feed stories."]}),(0,e.jsx)(t.Ki,{children:(0,e.jsxs)(t.Ki.Item,{label:"Liquid Paper remaining",children:[h*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 v(r.NEWSCASTER_SCREEN_MAIN)},children:"Cancel"})]})}},12512:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewList:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.channels,c=g.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c(i.NEWSCASTER_SCREEN_MAIN)},children:"Back"}),children:s.map(function(h){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:h.admin?"good":h.censored?"bad":"",onClick:function(){a("show_channel",{show_channel:h.ref}),c(i.NEWSCASTER_SCREEN_SELECTEDCHANNEL)},children:(0,o.jT)(h.name)},h.name)})})}},96935:function(y,u,n){"use strict";n.r(u),n.d(u,{NewscasterViewSelected:function(){return f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.viewing_channel,c=l.securityCaster,h=l.company,v=g.setScreen;return s?(0,e.jsxs)(r.wn,{title:(0,o.jT)(s.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!c&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",onClick:function(){return a("toggle_d_notice",{ref:s.ref})},children:"Issue D-Notice"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return v(i.NEWSCASTER_SCREEN_VIEWLIST)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:c&&(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:s.ref})},children:(0,o.jT)(s.author)})||(0,e.jsx)(r.az,{children:(0,o.jT)(s.author)})})}),!!s.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 ",h," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!s.messages.length&&s.messages.map(function(x){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(x.body),!!x.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+x.img}),!!x.caption&&(0,o.jT)(x.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,o.jT)(x.author)," -"," ",x.timestamp,"]"]}),!!c&&(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:x.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:x.ref})},children:"Censor Author"})]})]},x.ref)})||!s.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 v(i.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 f}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=n(42501),f=function(g){var d=(0,t.Oc)().data,a=d.wanted_issue,l=g.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 l(i.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 l(i.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 f},NEWSCASTER_SCREEN_PRINT:function(){return i},NEWSCASTER_SCREEN_SELECTEDCHANNEL:function(){return d},NEWSCASTER_SCREEN_VIEWLIST:function(){return t},NEWSCASTER_SCREEN_VIEWWANTED:function(){return g}});var e="Main Menu",o="New Channel",t="View List",r="New Story",i="Print",f="New Wanted",g="View Wanted",d="View Selected Channel"},93856:function(y,u,n){"use strict";n.r(u),n.d(u,{Newscaster:function(){return x}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(3751),f=n(42501),g=n(3949),d=n(71588),a=n(85578),l=n(92432),s=n(7662),c=n(12512),h=n(96935),v=n(28189),x=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)(i.TemporaryNotice,{decode:!0}),(0,e.jsx)(E,{})]})})},E=function(j){var C=(0,o.QY)("screen",f.NEWSCASTER_SCREEN_MAIN),M=C[0],P=C[1],_=[];return _[f.NEWSCASTER_SCREEN_MAIN]=(0,e.jsx)(g.NewscasterMainMenu,{setScreen:P}),_[f.NEWSCASTER_SCREEN_NEWCHANNEL]=(0,e.jsx)(d.NewscasterNewChannel,{setScreen:P}),_[f.NEWSCASTER_SCREEN_VIEWLIST]=(0,e.jsx)(c.NewscasterViewList,{setScreen:P}),_[f.NEWSCASTER_SCREEN_NEWSTORY]=(0,e.jsx)(a.NewscasterNewStory,{setScreen:P}),_[f.NEWSCASTER_SCREEN_PRINT]=(0,e.jsx)(s.NewscasterPrint,{setScreen:P}),_[f.NEWSCASTER_SCREEN_NEWWANTED]=(0,e.jsx)(l.NewscasterNewWanted,{setScreen:P}),_[f.NEWSCASTER_SCREEN_VIEWWANTED]=(0,e.jsx)(v.NewscasterViewWanted,{setScreen:P}),_[f.NEWSCASTER_SCREEN_SELECTEDCHANNEL]=(0,e.jsx)(h.NewscasterViewSelected,{setScreen:P}),(0,e.jsx)(t.az,{children:_[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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=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:l.length?(0,e.jsx)(t.Ki,{children:l.map(function(s,c){return(0,e.jsxs)(t.Ki.Item,{label:s.name,children:[s.isphoto&&(0,e.jsx)(t.$n,{icon:"image",onClick:function(){return d("look",{ref:s.ref})},children:"Look"})||s.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"sticky-note",onClick:function(){return d("read",{ref:s.ref})},children:"Read"}),(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return d("write",{ref:s.ref})},children:"Write"})]})||"Unknown Entity",(0,e.jsx)(t.$n,{icon:"minus-circle",onClick:function(){return d("remove",{ref:s.ref})},children:"Remove"})]},c)})}):(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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(39841),f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.message,c=l.running,h=l.rate,v=l.factor,x=l.regions,E=function(C){for(var M="";M.lengthv?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:s&&(0,e.jsx)(t.IC,{children:s})||c&&(0,e.jsxs)(t.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",h," 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:x.length&&(0,e.jsx)(i.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 f}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),i=n(15581),f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=l.PlayerHitpoints,c=l.PlayerMP,h=l.PauseState,v=l.Status,x=l.Hitpoints,E=l.BossID,j=l.GameActive,C=l.TicketCount;return(0,e.jsx)(i.Zm,{width:450,height:350,children:(0,e.jsx)(i.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:s,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[s,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:c,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[c,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:h===1?"#1b3622":"#471915",children:v})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.z2,{value:x,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:x}),"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||h===1,onClick:function(){return a("Attack")},children:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:j===0||h===1,onClick:function(){return a("Heal")},children:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:j===0||h===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:C>=1?"good":"normal",children:["Earned Tickets: ",C]})]})})})}},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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(18490),f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.mapRef,c=l.activeCamera,h=l.cameras,v=(0,i.selectCameras)(h),x=(0,i.prevNextCamera)(v,c),E=x[0],j=x[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)(i.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),c&&c.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:s,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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.PC_device_theme,s=a.power_usage,c=a.battery_exists,h=a.battery,v=h===void 0?{}:h,x=a.disk_size,E=a.disk_used,j=a.hardware,C=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{theme:l,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: ",s,"W"]}),children:(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Battery Status",color:!c&&"average"||void 0,children:c?(0,e.jsxs)(t.z2,{value:v.charge,minValue:0,maxValue:v.max,ranges:{good:[v.max/2,1/0],average:[v.max/4,v.max/2],bad:[-1/0,v.max/4]},children:[v.charge," / ",v.max]}):"Not Available"})})}),(0,e.jsx)(t.wn,{title:"File System",children:(0,e.jsxs)(t.z2,{value:E,minValue:0,maxValue:x,color:"good",children:[E," GQ / ",x," GQ"]})}),(0,e.jsx)(t.wn,{title:"Hardware Components",children:C.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 i}});var e=n(20462),o=n(61358),t=n(15581),r=n(70117),i=function(){var f=function(x){l(x)},g=function(x){h(x)},d=(0,o.useState)(0),a=d[0],l=d[1],s=(0,o.useState)(1),c=s[0],h=s[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:c,onTabIndex:f,onZoom:g})})})}},6303:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosDigitalWarrant:function(){return f}});var e=n(20462),o=n(7402),t=n(7081),r=n(88569),i=n(15581),f=function(l){var s=(0,t.Oc)().data,c=s.warrantauth,h=(0,e.jsx)(g,{});return c&&(h=(0,e.jsx)(a,{})),(0,e.jsx)(i.Zm,{width:500,height:350,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:h})})},g=function(l){var s=(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 s("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(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=l.type,x=h.allwarrants,E=x===void 0?[]:x,j=(0,o.pb)(E,function(C){return C.arrestsearch===v});return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:v==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:v==="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(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",v," warrants found."]})})]})},a=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.warrantname,x=h.warrantcharges,E=h.warrantauth,j=h.type,C=j==="arrest",M=j==="arrest"?"Name":"Location",P=j==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:C?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return c("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:M,buttons:C&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return c("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantnamecustom")}}),children:v}),(0,e.jsx)(r.Ki.Item,{label:P,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return c("editwarrantcharges")}}),children:x}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return c("editwarrantauth")}}),children:E})]})})}},27896:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosEmailAdministration:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(94151),f=function(s){var c=(0,o.Oc)().data,h=c.error,v=c.cur_title,x=c.current_account,E=c.accounts,j=(0,e.jsx)(g,{accounts:E});return h?j=(0,e.jsx)(d,{error:h}):v?j=(0,e.jsx)(a,{}):x&&(j=(0,e.jsx)(l,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(s){var c=(0,o.Oc)().act,h=s.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 c("newaccount")},children:"Create New Account"}),(0,e.jsx)(t.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),h.map(function(v){return(0,e.jsx)(t.$n,{fluid:!0,icon:"eye",onClick:function(){return c("viewaccount",{viewaccount:v.uid})},children:v.login},v.uid)})]})},d=function(s){var c=(0,o.Oc)().act,h=s.error;return(0,e.jsx)(t.wn,{title:"Message",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:h})},a=function(s){return(0,e.jsx)(t.wn,{children:(0,e.jsx)(i.NtosEmailClientViewMessage,{administrator:!0})})},l=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.current_account,E=v.cur_suspended,j=v.messages,C=j===void 0?[]:j;return(0,e.jsxs)(t.wn,{title:"Viewing "+x+" in admin mode",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return h("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 h("ban")},children:E?"Suspended":"Normal"})}),(0,e.jsx)(t.Ki.Item,{label:"Actions",children:(0,e.jsx)(t.$n,{icon:"key",onClick:function(){return h("changepass")},children:"Change Password"})})]}),(0,e.jsx)(t.wn,{title:"Messages",children:C.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"})]}),C.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 h("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 f},NtosEmailClientViewMessage:function(){return l}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),f=function(x){var E=(0,t.Oc)().data,j=E.PC_device_theme,C=E.error,M=E.downloading,P=E.current_account,_=(0,e.jsx)(v,{});return C?_=(0,e.jsx)(h,{error:C}):M?_=(0,e.jsx)(g,{}):P&&(_=(0,e.jsx)(d,{})),(0,e.jsx)(i.Zm,{resizable:!0,theme:j,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:_})})},g=function(x){var E=(0,t.Oc)().data,j=E.down_filename,C=E.down_progress,M=E.down_size,P=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:P})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:C,maxValue:M,children:C+"/"+M+" ("+(0,o.Mg)(C/M*100,1)+"%)"})})]})})},d=function(x){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.current_account,P=C.addressbook,_=C.new_message,S=C.cur_title,T=C.accounts,b=(0,e.jsx)(a,{});return P?b=(0,e.jsx)(s,{accounts:T}):_?b=(0,e.jsx)(c,{}):S&&(b=(0,e.jsx)(l,{})),(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:b})},a=function(x){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.folder,P=C.messagecount,_=C.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"})]}),P&&(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"})]}),_.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,"."]})]})},l=function(x){var E=(0,t.Oc)(),j=E.act,C=E.data,M=x.administrator,P=C.cur_title,_=C.cur_source,S=C.cur_timestamp,T=C.cur_body,b=C.cur_hasattachment,L=C.cur_attachment_filename,N=C.cur_attachment_size,$=C.cur_uid;return(0,e.jsx)(r.wn,{title:P,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:$})}}),b&&(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:_}),(0,e.jsx)(r.Ki.Item,{label:"At",children:S}),b&&!M&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[L," (",N,"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}})})})]})})},s=function(x){var E=(0,t.Oc)().act,j=x.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(C){return(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return E("set_recipient",{set_recipient:C.login})},children:C.login},C.login)})})},c=function(x){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.msg_title,P=M===void 0?"":M,_=C.msg_recipient,S=_===void 0?"":_,T=C.msg_body,b=C.msg_hasattachment,L=C.msg_attachment_filename,N=C.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:P,onInput:function($,z){return j("edit_title",{val:z})}})}),(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($,z){return j("edit_recipient",{val:z})}})}),(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:b&&(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:b&&(0,e.jsxs)(r.az,{inline:!0,children:[L," (",N,"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"})})]})})]})})},h=function(x){var E=(0,t.Oc)().act,j=x.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})})},v=function(x){var E=(0,t.Oc)(),j=E.act,C=E.data,M=C.stored_login,P=M===void 0?"":M,_=C.stored_password,S=_===void 0?"":_;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:P,onInput:function(T,b){return j("edit_login",{val:b})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:S,onInput:function(T,b){return j("edit_password",{val:b})}})})]}),(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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.PC_device_theme,c=l.usbconnected,h=l.filename,v=l.filedata,x=l.error,E=l.files,j=E===void 0?[]:E,C=l.usbfiles,M=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{resizable:!0,theme:s,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[h&&(0,e.jsx)(t.wn,{title:"Viewing File "+h,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:v&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:v}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsx)(f,{files:j,usbconnected:c,onUpload:function(P){return a("PRG_copytousb",{uid:P})},onDelete:function(P){return a("PRG_deletefile",{uid:P})},onOpen:function(P){return a("PRG_openfile",{uid:P})},onRename:function(P,_){return a("PRG_rename",{uid:P,new_name:_})},onDuplicate:function(P){return a("PRG_clone",{uid:P})}})}),c&&(0,e.jsx)(t.wn,{title:"Data Disk",children:(0,e.jsx)(f,{usbmode:!0,files:M,usbconnected:c,onUpload:function(P){return a("PRG_copyfromusb",{uid:P})},onDelete:function(P){return a("PRG_deletefile",{uid:P})},onOpen:function(P){return a("PRG_openfile",{uid:P})},onRename:function(P,_){return a("PRG_rename",{uid:P,new_name:_})},onDuplicate:function(P){return a("PRG_clone",{uid:P})}})})||null,(0,e.jsx)(t.wn,{children:(0,e.jsx)(t.$n,{icon:"plus",onClick:function(){return a("PRG_newtextfile")},children:"New Text File"})})]}),x&&(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:x})})]})]})})},f=function(g){var d=g.files,a=d===void 0?[]:d,l=g.usbconnected,s=g.usbmode,c=g.onUpload,h=g.onDelete,v=g.onRename,x=g.onOpen,E=g.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(C,M){return v(j.uid,M)},children:j.name}),(0,e.jsx)(t.$n,{onClick:function(){return x(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 h(j.uid)}}),!!l&&(s?(0,e.jsx)(t.$n,{icon:"download",tooltip:"Download",onClick:function(){return c(j.uid)}}):(0,e.jsx)(t.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return c(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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i={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"},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.device_theme,c=l.programs,h=c===void 0?[]:c,v=l.has_light,x=l.light_on,E=l.comp_light_color,j=l.removable_media,C=j===void 0?[]:j,M=l.login,P=M===void 0?{}:M;return(0,e.jsx)(r.Zm,{title:s==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:s,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!v&&(0,e.jsxs)(t.wn,{children:[(0,e.jsxs)(t.$n,{width:"144px",icon:"lightbulb",selected:x,onClick:function(){return a("PC_toggle_light")},children:["Flashlight: ",x?"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:!P.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: ",P.IDName]}),(0,e.jsxs)(t.XI.Row,{children:["Assignment: ",P.IDJob]})]})}),!!C.length&&(0,e.jsx)(t.wn,{title:"Media Eject",children:(0,e.jsx)(t.XI,{children:C.map(function(_){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:_})},children:_})})},_)})})}),(0,e.jsx)(t.wn,{title:"Programs",children:(0,e.jsx)(t.XI,{children:h.map(function(_){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:i[_.name]||"window-maximize-o",onClick:function(){return a("PC_runprogram",{name:_.name})},children:_.desc})}),(0,e.jsx)(t.XI.Cell,{collapsing:!0,width:"18px",children:!!_.running&&(0,e.jsx)(t.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return a("PC_killprogram",{name:_.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:_.autorun,onClick:function(){return a("PC_setautorun",{name:_.name})},children:"AR"})})]},_.name)})})})]})})}},9785:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetChat:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.can_admin,s=a.adminmode,c=a.authed,h=a.username,v=a.active_channel,x=a.is_operator,E=a.all_channels,j=E===void 0?[]:E,C=a.clients,M=C===void 0?[]:C,P=a.messages,_=P===void 0?[]:P,S=v!==null,T=c||s;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(b,L){return d("PRG_newchannel",{new_channel_name:L})},children:"New Channel..."}),j.map(function(b){return(0,e.jsx)(t.$n,{fluid:!0,selected:b.id===v,color:"transparent",onClick:function(){return d("PRG_joinchannel",{id:b.id})},children:b.chan},b.chan)})]}),(0,e.jsx)(t.$n.Input,{fluid:!0,mt:1,currentValue:h,onCommit:function(b,L){return d("PRG_changename",{new_name:L})},children:h+"..."}),!!l&&(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:s?"bad":"good",onClick:function(){return d("PRG_toggleadmin")},children:"ADMIN MODE: "+(s?"ON":"OFF")})]}),(0,e.jsxs)(t.XI.Cell,{children:[(0,e.jsx)(t.az,{height:"560px",overflowY:"scroll",children:S&&(T?_.map(function(b){return(0,e.jsx)(t.az,{children:b.msg},b.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(b,L){return d("PRG_speak",{message:L})}})]}),(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(b){return(0,e.jsx)(t.az,{children:b.name},b.name)})}),S&&T&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n.Input,{fluid:!0,defaultValue:"new_log",onCommit:function(b,L){return d("PRG_savelog",{log_name:L})},children:"Save log..."}),(0,e.jsx)(t.$n.Confirm,{fluid:!0,onClick:function(){return d("PRG_leavechannel")},children:"Leave Channel"})]}),!!x&&c&&(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(b,L){return d("PRG_renamechannel",{new_name:L})},children:"Rename Channel..."}),(0,e.jsx)(t.$n.Input,{fluid:!0,onCommit:function(b,L){return d("PRG_setpassword",{new_password:L})},children:"Set Password..."})]})]})]})})})})})}},82193:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetDos:function(){return i},NtosNetDosContent:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(f,{})})})},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.relays,c=s===void 0?[]:s,h=l.focus,v=l.target,x=l.speed,E=l.overload,j=l.capacity,C=l.error;if(C)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.IC,{children:C}),(0,e.jsx)(t.$n,{fluid:!0,textAlign:"center",onClick:function(){return a("PRG_reset")},children:"Reset"})]});var M=function(_){for(var S="",T=E/j;S.length<_;)Math.random()>T?S+="0":S+="1";return S},P=45;return v?(0,e.jsxs)(t.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(t.az,{children:["CURRENT SPEED: ",x," GQ/s"]}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)}),(0,e.jsx)(t.az,{children:M(P)})]}):(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Target",children:c.map(function(_){return(0,e.jsx)(t.$n,{selected:h===_.id,onClick:function(){return a("PRG_target_relay",{targid:_.id})},children:_.id},_.id)})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,color:"bad",textAlign:"center",disabled:!h,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 f}});var e=n(20462),o=n(4089),t=n(7081),r=n(88569),i=n(15581),f=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.PC_device_theme,h=s.disk_size,v=s.disk_used,x=s.downloadable_programs,E=x===void 0?[]:x,j=s.error,C=s.hacked_programs,M=C===void 0?[]:C,P=s.hackedavailable;return(0,e.jsx)(i.Zm,{theme:c,width:480,height:735,children:(0,e.jsxs)(i.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 l("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:v,minValue:0,maxValue:h,children:v+" GQ / "+h+" GQ"})})})}),(0,e.jsx)(r.wn,{children:E.map(function(_){return(0,e.jsx)(g,{program:_},_.filename)})}),!!P&&(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(_){return(0,e.jsx)(g,{program:_},_.filename)})]})]})})},g=function(d){var a=d.program,l=(0,t.Oc)(),s=l.act,c=l.data,h=c.disk_size,v=c.disk_used,x=c.downloadcompletion,E=c.downloadname,j=c.downloadsize,C=c.downloadspeed,M=c.downloads_queue,P=h-v;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:x,children:[(0,o.Mg)(x/j*100,1),"%\xA0","("+C+"GQ/s)"]})||M.indexOf(a.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return s("PRG_removequeued",{filename:a.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",disabled:a.size>P,onClick:function(){return s("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>P&&(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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.ntnetrelays,s=a.ntnetstatus,c=a.config_softwaredownload,h=a.config_peertopeer,v=a.config_communication,x=a.config_systemcontrol,E=a.idsalarm,j=a.idsstatus,C=a.ntnetmaxlogs,M=a.maxlogs,P=a.minlogs,_=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:s?"power-off":"times",selected:s,onClick:function(){return d("toggleWireless")},children:s?"ENABLED":"DISABLED"}),children:l?(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Active NTNet Relays",children:l})}):"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:c?"power-off":"times",selected:c,onClick:function(){return d("toggle_function",{id:"1"})},children:c?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(t.$n,{icon:h?"power-off":"times",selected:h,onClick:function(){return d("toggle_function",{id:"2"})},children:h?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(t.$n,{icon:v?"power-off":"times",selected:v,onClick:function(){return d("toggle_function",{id:"3"})},children:v?"ENABLED":"DISABLED"})}),(0,e.jsx)(t.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(t.$n,{icon:x?"power-off":"times",selected:x,onClick:function(){return d("toggle_function",{id:"4"})},children:x?"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:_.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:C,minValue:P,maxValue:M,width:"39px",onChange:function(b){return d("updatemaxlogs",{new_number:b})}})})]}),(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(b){return(0,e.jsx)(t.az,{className:"candystripe",children:b.entry},b.entry)})})]})]})})}},49106:function(y,u,n){"use strict";n.r(u),n.d(u,{NtosNetTransfer:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(s){var c=(0,o.Oc)().data,h=c.error,v=c.downloading,x=c.uploading,E=c.upload_filelist,j=(0,e.jsx)(l,{});return h?j=(0,e.jsx)(f,{}):v?j=(0,e.jsx)(g,{}):x?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})})},f=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.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 h("PRG_reset")},children:"Reset"}),children:["Additional Information: ",x]})},g=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.download_name,E=v.download_progress,j=v.download_size,C=v.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:x}),(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:[C," GQ/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Controls",children:(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Download"})})]})})},d=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.upload_clients,E=v.upload_filename,j=v.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:x}),(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 h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Upload"})]})]})})},a=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.upload_filelist;return(0,e.jsxs)(t.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(t.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(t.$n,{fluid:!0,icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(t.wn,{title:"Pick file to serve.",children:x.map(function(E){return(0,e.jsxs)(t.$n,{fluid:!0,icon:"upload",onClick:function(){return h("PRG_uploadfile",{uid:E.uid})},children:[E.filename," (",E.size,"GQ)"]},E.uid)})})]})},l=function(s){var c=(0,o.Oc)(),h=c.act,v=c.data,x=v.servers;return(0,e.jsx)(t.wn,{title:"Available Files",buttons:(0,e.jsx)(t.$n,{icon:"upload",onClick:function(){return h("PRG_uploadmenu")},children:"Send File"}),children:x.length&&(0,e.jsx)(t.Ki,{children:x.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 h("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 f}});var e=n(20462),o=n(31200),t=n(7081),r=n(88569),i=n(15581),f=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.article,x=h.download,E=h.message,j=(0,e.jsx)(d,{});return v?j=(0,e.jsx)(g,{}):x&&(j=(0,e.jsx)(a,{})),(0,e.jsx)(i.Zm,{width:575,height:750,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!E&&(0,e.jsxs)(r.IC,{children:[E," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("PRG_clearmessage")}})]}),j]})})},g=function(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.article;if(!v)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var x=v.title,E=v.cover,j=v.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+x,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return c("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return c("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(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.showing_archived,x=h.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return c("PRG_toggle_archived")},checked:v,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:x.length&&x.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return c("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(l){var s=(0,t.Oc)(),c=s.act,h=s.data,v=h.download,x=v.download_progress,E=v.download_maxprogress,j=v.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:x,maxValue:E,children:[x," / ",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 c("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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=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(s,c){return d("PRG_obfuscate",{new_name:c})},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:l?"bad":"average",onClick:function(){return d("PRG_arm")},children:l?"ARMED":"DISARMED"})})}),(0,e.jsx)(t.$n,{fluid:!0,bold:!0,textAlign:"center",color:"bad",disabled:!l,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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.current_uav,s=a.signal_strength,c=a.in_use,h=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:l&&l.status||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Signal",children:l&&s||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Power",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:l.power,onClick:function(){return d("power_uav")},children:l.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(t.Ki.Item,{label:"Camera",children:l&&(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:!l.power,onClick:function(){return d("view_uav")},children:l.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(t.wn,{title:"Paired UAVs",children:h.length&&h.map(function(v){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:v.uavref})},children:v.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:v.uavref})}})})]},v.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 i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.PC_device_theme,s=a.error,c=a.browsing,h=a.files,v=a.filename,x=a.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:l,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:s&&(0,e.jsxs)(t.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",s,"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"})]})||c&&(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})]}),h.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: "+v,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:!x,onClick:function(){return d("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(t.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:x}})})]})})})}},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),i=n(88569),f=n(15581),g=n(5335),d=n(44149),a=function(s){var c=(0,r.Oc)(),h=c.act,v=c.data,x=v.init_value,E=v.large_buttons,j=v.message,C=j===void 0?"":j,M=v.timeout,P=v.title,_=(0,t.useState)(x),S=_[0],T=_[1],b=function(N){N!==S&&T(N)},L=140+(C.length>30?Math.ceil(C.length/3):0)+(C.length&&E?5:0);return(0,e.jsxs)(f.p8,{title:P,width:270,height:L,children:[M&&(0,e.jsx)(d.Loader,{value:M}),(0,e.jsx)(f.p8.Content,{onKeyDown:function(N){N.key===o._.Enter&&h("submit",{entry:S}),(0,o.K)(N.key)&&h("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.az,{color:"label",children:C})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(l,{input:S,onClick:b,onChange:b,onBlur:b})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:S})})]})})})]})},l=function(s){var c=(0,r.Oc)(),h=c.act,v=c.data,x=v.min_value,E=v.max_value,j=v.init_value,C=v.round_value,M=s.input,P=s.onClick,_=s.onChange,S=s.onBlur;return(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:M===x,icon:"angle-double-left",onClick:function(){return P(x)},tooltip:x?"Min ("+x+")":"Min"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!C,minValue:x,maxValue:E,onChange:function(T,b){return _(b)},onBlur:function(T,b){return S(b)},onEnter:function(T,b){return h("submit",{entry:b})},value:M})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:M===E,icon:"angle-double-right",onClick:function(){return P(E)},tooltip:E?"Max ("+E+")":"Max"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:M===j,icon:"redo",onClick:function(){return P(j)},tooltip:j?"Reset ("+j+")":"Reset"})})]})}},12333:function(y,u,n){"use strict";n.r(u),n.d(u,{OmniFilter:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.power,c=l.config,h=l.ports,v=l.set_flow_rate,x=l.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:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:s,disabled:c,onClick:function(){return a("power")},children:s?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:c,onClick:function(){return a("configure")}})]}),children:(0,e.jsx)(t.Ki,{children:h?h.map(function(E){return(0,e.jsx)(t.Ki.Item,{label:E.dir+" Port",children:c?(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"})]}):i(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:[x," L/s"]}),(0,e.jsx)(t.Ki.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return a("set_flow_rate")},children:v+" L/s"}):v+" L/s"})]})})]})})}},60780:function(y,u,n){"use strict";n.r(u),n.d(u,{OmniMixer:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(d){return d.input?"Input":d.output?"Output":d.f_type?d.f_type:"Disabled"},f=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.power,h=s.config,v=s.ports,x=s.set_flow_rate,E=s.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:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.$n,{icon:"power-off",selected:c,disabled:h,onClick:function(){return l("power")},children:c?"On":"Off"}),(0,e.jsx)(t.$n,{icon:"wrench",selected:h,onClick:function(){return l("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"}),h?(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"}),h?(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),v?v.map(function(j){return(0,e.jsx)(g,{port:j,config:h},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:h?(0,e.jsx)(t.$n,{icon:"wrench",onClick:function(){return l("set_flow_rate")},children:x+" L/s"}):x+" L/s"})]})})]})})},g=function(d){var a=(0,o.Oc)().act,l=d.port,s=d.config;return(0,e.jsxs)(t.XI.Row,{children:[(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:l.dir+" Port"}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:s?(0,e.jsx)(t.$n,{selected:l.input,disabled:l.output,icon:"compress-arrows-alt",onClick:function(){return a("switch_mode",{mode:l.input?"none":"in",dir:l.dir})},children:"IN"}):i(l)}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:s?(0,e.jsx)(t.$n,{selected:l.output,icon:"expand-arrows-alt",onClick:function(){return a("switch_mode",{mode:"out",dir:l.dir})},children:"OUT"}):l.concentration*100+"%"}),s?(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:!l.input,onClick:function(){return a("switch_con",{dir:l.dir})},children:l.input?l.concentration*100+" %":"-"})}),(0,e.jsx)(t.XI.Cell,{textAlign:"center",children:(0,e.jsx)(t.$n,{icon:l.con_lock?"lock":"lock-open",disabled:!l.input,selected:l.con_lock,onClick:function(){return a("switch_conlock",{dir:l.dir})},children:l.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(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.verbose,l=d.health,s=d.healthAlarm,c=d.oxy,h=d.oxyAlarm,v=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 g(a?"verboseOff":"verboseOn")},children:a?"On":"Off"})}),(0,e.jsx)(t.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(t.$n,{selected:l,icon:l?"toggle-on":"toggle-off",onClick:function(){return g(l?"healthOff":"healthOn")},children:l?"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:s,stepPixelSize:5,ml:"0",format:function(x){return x+"%"},onChange:function(x,E){return g("health_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(t.$n,{selected:c,icon:c?"toggle-on":"toggle-off",onClick:function(){return g(c?"oxyOff":"oxyOn")},children:c?"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:h,stepPixelSize:5,ml:"0",onChange:function(x,E){return g("oxy_adj",{new:E})}})}),(0,e.jsx)(t.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(t.$n,{selected:v,icon:v?"toggle-on":"toggle-off",onClick:function(){return g(v?"critOff":"critOn")},children:v?"On":"Off"})})]})}},88424:function(y,u,n){"use strict";n.r(u),n.d(u,{OperatingComputerPatient:function(){return i}});var e=n(20462),o=n(4089),t=n(88569),r=n(6050),i=function(f){var g=f.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:g.name}),(0,e.jsx)(t.Ki.Item,{label:"Status",color:r.stats[g.stat][0],children:r.stats[g.stat][1]}),(0,e.jsx)(t.Ki.Item,{label:"Health",children:(0,e.jsx)(t.z2,{minValue:0,maxValue:1,value:g.health/g.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:g[d[1]]/100,ranges:r.damageRange,children:(0,o.Mg)(g[d[1]])},a)},a)}),(0,e.jsx)(t.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(t.z2,{minValue:0,maxValue:1,value:g.bodyTemperature/g.maxTemp,color:r.tempColors[g.temperatureSuitability+3],children:[(0,o.Mg)(g.btCelsius),"\xB0C, ",(0,o.Mg)(g.btFaren),"\xB0F"]})}),!!g.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:g.bloodLevel/g.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[g.bloodPercent,"%, ",g.bloodLevel,"cl"]})}),(0,e.jsxs)(t.Ki.Item,{label:"Pulse",children:[g.pulse," BPM"]})]})]})}),(0,e.jsx)(t.wn,{title:"Current Procedure",children:g.surgery&&g.surgery.length?(0,e.jsx)(t.Ki,{children:g.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),i=n(43213),f=n(88424),g=n(13846),d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.hasOccupant,v=c.choice,x=c.occupant,E;return v?E=(0,e.jsx)(i.OperatingComputerOptions,{}):E=h?(0,e.jsx)(f.OperatingComputerPatient,{occupant:x}):(0,e.jsx)(g.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:!v,icon:"user",onClick:function(){return s("choiceOff")},children:"Patient"}),(0,e.jsx)(t.tU.Tab,{selected:!!v,icon:"cog",onClick:function(){return s("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 f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(91198),f=function(d){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.faillink,h=s.calibration,v=s.overmapdir,x=s.cal_accuracy,E=s.strength,j=s.range,C=s.next_shot,M=s.nopower,P=s.chargeload;return c?(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)(i.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===v}})})}),(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:P}),(0,e.jsx)(t.Ki.Item,{label:"Cooldown",children:C===0&&(0,e.jsx)(t.az,{color:"good",children:"Ready"})||C>1&&(0,e.jsxs)(t.az,{color:"average",children:[(0,e.jsx)(t.zv,{value:C})," 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:x}),"%",(0,e.jsx)(t.$n,{ml:1,icon:"exchange-alt",onClick:function(){return l("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(t.az,{mt:1,children:h.map(function(_,S){return(0,e.jsxs)(t.az,{children:["Cal #",S,":",(0,e.jsx)(t.$n,{ml:1,icon:"random",onClick:function(){return l("calibration",{calibration:S})},children:_.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 l("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 l("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 l("fire")},children:"Fire ORB"})})]})}},22813:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapEngines:function(){return i},OvermapEnginesContent:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.global_state,c=l.global_limit,h=l.engines_info,v=l.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:s,onClick:function(){return a("global_toggle")},children:s?"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:[c,"%"]}),(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:v})})]})}),(0,e.jsx)(t.wn,{title:"Engines",height:"340px",style:{overflowY:"auto"},children:h.map(function(x,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:x.eng_thrust})," | Limit:"," ",(0,e.jsx)(t.zv,{value:x.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:x.eng_type}),(0,e.jsxs)(t.Ki.Item,{label:"Status",children:[(0,e.jsx)(t.az,{color:x.eng_on?x.eng_on===1?"good":"average":"bad",children:x.eng_on?x.eng_on===1?"Online":"Booting":"Offline"}),x.eng_status.map(function(j,C){return Array.isArray(j)?(0,e.jsx)(t.az,{color:j[1],children:j[0]},C):(0,e.jsx)(t.az,{children:j},C)})]}),(0,e.jsx)(t.Ki.Item,{label:"Current Thrust",children:x.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:x.eng_reference})},icon:"minus"}),(0,e.jsxs)(t.$n,{onClick:function(){return a("set_limit",{engine:x.eng_reference})},children:[x.eng_thrust_limiter,"%"]}),(0,e.jsx)(t.$n,{onClick:function(){return a("limit",{limit:.1,engine:x.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(t.so.Item,{basis:"20%",children:(0,e.jsx)(t.$n,{fluid:!0,iconSpin:x.eng_on===-1,color:x.eng_on===-1?"purple":void 0,selected:x.eng_on===1,icon:"power-off",onClick:function(){return a("toggle_engine",{engine:x.eng_reference})},children:x.eng_on?x.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),i=n(22813),f=n(7558),g=n(97275),d=function(a){var l=(0,o.useState)(0),s=l[0],c=l[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:s===0,onClick:function(){return c(0)},children:"Engines"}),(0,e.jsx)(t.tU.Tab,{selected:s===1,onClick:function(){return c(1)},children:"Helm"}),(0,e.jsx)(t.tU.Tab,{selected:s===2,onClick:function(){return c(2)},children:"Sensors"})]}),s===0&&(0,e.jsx)(i.OvermapEnginesContent,{}),s===1&&(0,e.jsx)(f.OvermapHelmContent,{}),s===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},7558:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapFlightDataWrap:function(){return d},OvermapHelm:function(){return f},OvermapHelmContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(91198),f=function(c){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(c){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)(l,{})})]}),(0,e.jsx)(s,{})]})},d=function(c){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)(i.OvermapFlightData,{})]})},a=function(c){var h=(0,o.Oc)(),v=h.act,x=h.data,E=x.canburn,j=x.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)(i.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 v("manual")},icon:"compass",children:j?"Enabled":"Disabled"})]})]})},l=function(c){var h=(0,o.Oc)(),v=h.act,x=h.data,E=x.dest,j=x.d_x,C=x.d_y,M=x.speedlimit,P=x.autopilot,_=x.autopilot_disabled;return _?(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 v("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 v("setcoord",{setx:!0})},children:j}),(0,e.jsx)(t.$n,{onClick:function(){return v("setcoord",{sety:!0})},children:C})]})||(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return v("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 v("speedlimit")},children:[M," Gm/h"]})})]}),(0,e.jsx)(t.$n,{mt:1,fluid:!0,selected:P,disabled:!E,icon:"robot",onClick:function(){return v("apilot")},children:P?"Engaged":"Disengaged"}),(0,e.jsx)(t.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return v("apilot_lock")},children:"Lock Autopilot"})]})},s=function(c){var h=(0,o.Oc)(),v=h.act,x=h.data,E=x.sector,j=x.s_x,C=x.s_y,M=x.sector_info,P=x.landed,_=x.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," : ",C]}),(0,e.jsx)(t.Ki.Item,{label:"Scan Data",children:M}),(0,e.jsx)(t.Ki.Item,{label:"Status",children:P})]}),(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 v("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 v("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"})]}),_.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 v("setds",{x:S.x,y:S.y})},children:"Plot Course"}),(0,e.jsx)(t.$n,{icon:"trash",onClick:function(){return v("remove",{remove:S.reference})},children:"Remove"})]})]},S.name)})]})})]})}},65912:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapNavigation:function(){return f},OvermapNavigationContent:function(){return g}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(91198),f=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){var a=(0,o.Oc)(),l=a.act,s=a.data,c=s.sector,h=s.s_x,v=s.s_y,x=s.sector_info,E=s.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 l("viewing")},children:"Map View"}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:c}),(0,e.jsxs)(t.Ki.Item,{label:"Coordinates",children:[h," : ",v]}),(0,e.jsx)(t.Ki.Item,{label:"Additional Information",children:x})]})}),(0,e.jsx)(t.wn,{title:"Flight Data",children:(0,e.jsx)(i.OvermapFlightData,{disableLimiterControls:!0})})]})}},30766:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapShieldGenerator:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=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)(f,{})})})},f=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.modes,v=c.offline_for;return v?(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: ",v," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(d,{}),(0,e.jsx)(t.wn,{title:"Field Calibration",children:h.map(function(x){return(0,e.jsxs)(t.wn,{title:x.name,buttons:(0,e.jsx)(t.$n,{icon:"power-off",selected:x.status,onClick:function(){return s("toggle_mode",{toggle_mode:x.flag})},children:x.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(t.az,{color:"label",children:x.desc}),(0,e.jsxs)(t.az,{mt:.5,children:["Multiplier: ",x.multiplier]})]},x.name)})})]})},g=function(a){var l=(0,o.Oc)().data,s=l.running,c=l.overloaded,h=l.mitigation_max,v=l.mitigation_physical,x=l.mitigation_em,E=l.mitigation_heat,j=l.field_integrity,C=l.max_energy,M=l.current_energy,P=l.percentage_energy,_=l.total_segments,S=l.functional_segments,T=l.field_radius,b=l.target_radius,L=l.input_cap_kw,N=l.upkeep_power_usage,$=l.power_usage,z=l.spinup_counter,w=[];return w[1]=(0,e.jsx)(t.az,{color:"average",children:"Shutting Down"}),w[2]=(0,e.jsx)(t.az,{color:"bad",children:"Overloaded"}),w[3]=(0,e.jsx)(t.az,{color:"average",children:"Inactive"}),w[4]=(0,e.jsxs)(t.az,{color:"blue",children:["Spinning Up\xA0",b!==T&&(0,e.jsx)(t.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(t.az,{inline:!0,children:[z*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:w[s]||(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:C,children:[M," / ",C," MJ (",P,"%)"]})}),(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:[x,"% EM / ",v,"% PH / ",E,"% HE / ",h,"% MAX"]}),(0,e.jsxs)(t.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(t.zv,{value:N})," kW"]}),(0,e.jsx)(t.Ki.Item,{label:"Total Energy Use",children:L&&(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.z2,{value:$,maxValue:L,children:[$," / ",L," 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:_})," m\xB2 (radius"," ",(0,e.jsx)(t.zv,{value:T}),", target"," ",(0,e.jsx)(t.zv,{value:b}),")"]})]})})},d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.running,v=c.hacked,x=c.idle_multiplier,E=c.idle_valid_values;return(0,e.jsxs)(t.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[h>=2&&(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("begin_shutdown")},selected:!0,children:"Turn off"}),h===3&&(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(t.$n,{icon:"power-off",onClick:function(){return s("start_generator")},children:"Turn on"}),h&&v&&(0,e.jsx)(t.$n,{icon:"exclamation-triangle",onClick:function(){return s("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||""]}),children:[(0,e.jsx)(t.$n,{icon:"expand-arrows-alt",onClick:function(){return s("set_range")},children:"Set Field Range"}),(0,e.jsx)(t.$n,{icon:"bolt",onClick:function(){return s("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===x,disabled:h===4,onClick:function(){return s("switch_idle",{switch_idle:j})},children:j},j)})})})]})}},97275:function(y,u,n){"use strict";n.r(u),n.d(u,{OvermapShipSensors:function(){return i},OvermapShipSensorsContent:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.viewing,c=l.on,h=l.range,v=l.health,x=l.max_health,E=l.heat,j=l.critical_heat,C=l.status,M=l.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:s,onClick:function(){return a("viewing")},children:"Map View"}),(0,e.jsx)(t.$n,{icon:"power-off",selected:c,onClick:function(){return a("toggle_sensor")},children:c?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Status",children:C}),(0,e.jsx)(t.Ki.Item,{label:"Range",children:(0,e.jsx)(t.$n,{icon:"signal",onClick:function(){return a("range")},children:h})}),(0,e.jsx)(t.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(t.z2,{ranges:{good:[x*.75,1/0],average:[x*.25,x*.75],bad:[-1/0,x*.25]},value:v,maxValue:x,children:[v," / ",x]})}),(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||!x)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return l("cancel",{cancel:P+1})},children:"Cancel"})||""]},M)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:C.length&&C.map(function(M){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return l("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),i=n(15581),f=n(86471),g=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.can_print,E=s.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:!x,icon:"print",onClick:function(){return h("print",{type:"virus_record",vir:E.record})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return h("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(s){var c=(0,t.Oc)().data,h=c.isolating,v=(0,o.useState)(0),x=v[0],E=v[1],j=[];return j[0]=(0,e.jsx)(a,{}),j[1]=(0,e.jsx)(l,{}),(0,f.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(i.p8,{height:500,width:520,children:[(0,e.jsx)(f.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[h&&(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:x===0,onClick:function(){return E(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:x===1,onClick:function(){return E(1)},children:"Database"})]}),j[x]||""]})]})},a=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.syringe_inserted,E=v.pathogen_pool,j=v.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 h("print",{type:"patient_diagnosis"})},children:"Print"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!x,onClick:function(){return h("eject")},children:"Eject Syringe"})]}),children:E.length&&E.map(function(C){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 #",C.unique_id]}),C.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",onClick:function(){return h("isolate",{isolate:C.reference})},children:"Isolate"}),(0,e.jsx)(r.$n,{icon:"search",disabled:!C.is_in_database,onClick:function(){return h("view_entry",{vir:C.record})},children:"Database"})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:C.name}),C.dna]})]},C.unique_id)})||(x?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},l=function(s){var c=(0,t.Oc)(),h=c.act,v=c.data,x=v.database,E=v.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",disabled:!E,onClick:function(){return h("print",{type:"virus_list"})},children:"Print"}),children:x.length&&x.map(function(j){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return h("view_entry",{vir:j.record})},children:j.name},j.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},50350: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),i=n(15581),f=n(15857),g=n(75091);function d(h){var v;try{v=g("./"+h+".tsx")}catch(E){if(E.code==="MODULE_NOT_FOUND")return(0,f.z)("notFound",h);throw E}var x=v[h];return x||(0,f.z)("missingExport",h)}var a=function(h){var v=function(b){S(b)},x=(0,t.Oc)().data,E=x.app,j=x.owner,C=x.useRetro;if(!j)return(0,e.jsx)(i.p8,{children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var M=d(E.template),P=(0,o.useState)(!1),_=P[0],S=P[1];return(0,e.jsx)(i.p8,{width:580,height:670,theme:C?"pda-retro":void 0,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(l,{settingsMode:_,onSettingsMode:v}),_&&(0,e.jsx)(s,{})||(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)(c,{onSettingsMode:v})]})})},l=function(h){var v=(0,t.Oc)(),x=v.act,E=v.data,j=E.idInserted,C=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 x("Authenticate")},children:C})}),(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:h.settingsMode,onClick:function(){return h.onSettingsMode(!h.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return x("Retro")},icon:"adjust"})]})]})})},s=function(h){var v=(0,t.Oc)(),x=v.act,E=v.data,j=E.idInserted,C=E.idLink,M=E.cartridge_name,P=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 x("Retro")},children:"Retro Theme"})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!P,onClick:function(){return x("TouchSounds")},children:P?"Disabled":"Enabled"})}),!!M&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return x("Eject")},children:M})}),!!j&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return x("Authenticate")},children:C})})]})})},c=function(h){var v=(0,t.Oc)(),x=v.act,E=v.data,j=E.app,C=E.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:C?"#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 x("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(){h.onSettingsMode(!1),x("Home")}})})]})})}},46184:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_atmos_scan:function(){return g}});var e=n(20462),o=n(7402),t=n(61282),r=n(7081),i=n(88569),f=function(d,a,l,s,c){return ds?"average":d>c?"bad":"good"},g=function(d){var a=(0,r.Oc)(),l=a.act,s=a.data,c=s.aircontents;return(0,e.jsx)(i.az,{children:(0,e.jsx)(i.Ki,{children:(0,o.pb)(c,function(h){return h.val!=="0"||h.entry==="Pressure"||h.entry==="Temperature"}).map(function(h){return(0,e.jsxs)(i.Ki.Item,{label:h.entry,color:f(h.val,h.bad_low,h.poor_low,h.poor_high,h.bad_high),children:[h.val,(0,t.jT)(h.units)]},h.entry)})})})}},16091:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_janitor:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.janitor;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Current Location",children:a.user_loc.x===0&&(0,e.jsx)(t.az,{color:"bad",children:"Unknown"})||(0,e.jsxs)(t.az,{children:[a.user_loc.x," / ",a.user_loc.y]})})}),(0,e.jsx)(t.wn,{title:"Mop Locations",children:a.mops&&(0,e.jsx)("ul",{children:a.mops.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status: ",l.status]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No mops detected nearby."})}),(0,e.jsx)(t.wn,{title:"Mop Bucket Locations",children:a.buckets&&(0,e.jsx)("ul",{children:a.buckets.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Capacity:"," ",l.volume,"/",l.max_volume]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No buckets detected nearby."})}),(0,e.jsx)(t.wn,{title:"Cleanbot Locations",children:a.cleanbots&&(0,e.jsx)("ul",{children:a.cleanbots.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Status:"," ",l.status]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No cleanbots detected nearby."})}),(0,e.jsx)(t.wn,{title:"Janitorial Cart Locations",children:a.carts&&(0,e.jsx)("ul",{children:a.carts.map(function(l,s){return(0,e.jsxs)("li",{children:[l.x," / ",l.y," - ",l.dir," - Water Level: ",l.volume,"/",l.max_volume]},s)})})||(0,e.jsx)(t.az,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},83743:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_main_menu:function(){return f}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i={"Enable Flashlight":"#0f0","Disable Flashlight":"#f00"},f=function(g){var d=(0,t.Oc)(),a=d.act,l=d.data,s=(0,o.useState)(""),c=s[0],h=s[1],v=function(S){if(S.name.startsWith("Enable")||S.name.startsWith("Disable")){a("StartProgram",{program:S.ref});return}h(S.icon),setTimeout(function(){h(""),a("StartProgram",{program:S.ref})},200)},x=l.owner,E=l.ownjob,j=l.idInserted,C=l.categories,M=l.pai,P=l.notifying,_=l.apps;return(0,e.jsxs)(e.Fragment,{children:[c&&(0,e.jsx)(r.az,{className:"Pda__Transition",children:(0,e.jsx)(r.In,{name:c,size:4})}),(0,e.jsx)(r.az,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Owner",color:"average",children:[x,", ",E]}),(0,e.jsx)(r.Ki.Item,{label:"ID",children:(0,e.jsx)(r.$n,{icon:"sync",disabled:!j,onClick:function(){return a("UpdateInfo")},children:"Update PDA Info"})})]})}),(0,e.jsx)(r.wn,{title:"Functions",children:(0,e.jsx)(r.Ki,{children:C.map(function(S){var T=_[S];return!T||!T.length?null:(0,e.jsx)(r.Ki.Item,{label:S,children:T.map(function(b){return(0,e.jsx)(r.$n,{icon:b.ref in P?b.notify_icon:b.icon,iconSpin:b.ref in P,iconColor:b.name in i?i[b.name]:null,color:b.ref in P?"red":"transparent",onClick:function(){return v(b)},children:b.name},b.ref)})},S)})})}),!!M&&(0,e.jsxs)(r.wn,{title:"pAI",children:[(0,e.jsx)(r.$n,{fluid:!0,icon:"cog",onClick:function(){return a("pai",{option:1})},children:"Configuration"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",onClick:function(){return a("pai",{option:2})},children:"Eject pAI"})]})]})}},29961:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_manifest:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(58044),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data;return(0,e.jsx)(t.az,{color:"white",children:(0,e.jsx)(r.CrewManifestContent,{})})}},34029:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_medical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.recordsList,l=d.records;if(l){var s=l.general,c=l.medical;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:s&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:s.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:s.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:s.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:s.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:s.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:s.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:s.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Medical Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Blood Type",children:c.b_type}),(0,e.jsx)(t.Ki.Item,{label:"Minor Disabilities",children:c.mi_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Disabilities",children:c.ma_dis}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_dis_d}),(0,e.jsx)(t.Ki.Item,{label:"Allergies",children:c.alg}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.alg_d}),(0,e.jsx)(t.Ki.Item,{label:"Current Disease",children:c.cdi}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.cdi_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Medical record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(h){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return g("Records",{target:h.ref})},children:h.name},h.ref)})})}},2949:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_messenger:function(){return E}});var e=n(20462),o=n(7402),t=n(61282),r=n(61358),i=n(7081),f=n(88569),g=n(30705);function d(z,w){(w==null||w>z.length)&&(w=z.length);for(var V=0,k=new Array(w);V=z.length?{done:!0}:{done:!1,value:z[k++]}}}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 h(z,w){var V,k,H,Y,q={label:0,sent:function(){if(H[0]&1)throw H[1];return H[1]},trys:[],ops:[]};return Y={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function Z(Q){return function(X){return J([Q,X])}}function J(Q){if(V)throw new TypeError("Generator is already executing.");for(;q;)try{if(V=1,k&&(H=Q[0]&2?k.return:Q[0]?k.throw||((H=k.return)&&H.call(k),0):k.next)&&!(H=H.call(k,Q[1])).done)return H;switch(k=0,H&&(Q=[Q[0]&2,H.value]),Q[0]){case 0:case 1:H=Q;break;case 4:return q.label++,{value:Q[1],done:!1};case 5:q.label++,k=Q[1],Q=[0];continue;case 7:Q=q.ops.pop(),q.trys.pop();continue;default:if(H=q.trys,!(H=H.length>0&&H[H.length-1])&&(Q[0]===6||Q[0]===2)){q=0;continue}if(Q[0]===3&&(!H||Q[1]>H[0]&&Q[1]V.length)return z.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var k=V[w].sent;return z.sent&&k?"TinderMessage_Subsequent_Sent":!z.sent&&!k?"TinderMessage_Subsequent_Received":z.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received"},T=function(z){var w=z.messages,V=z.active_conversation;return(0,e.jsx)(f.az,{children:w.filter(function(k){return k.target===V}).map(function(k,H,Y){return(0,e.jsx)(b,{im:k,className:S(k,H-1,Y)},H)})})},b=function(z){var w=(0,i.Oc)().data,V=w.enable_message_embeds,k=z.im,H=z.className;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.az,{textAlign:k.sent?"right":"left",mb:1,children:(0,e.jsx)(f.az,{maxWidth:"75%",className:H,inline:!0,children:(0,t.jT)(k.message)})}),!!V&&(0,e.jsx)(N,{im:k,className:H})]})},L=["cdn.discordapp.com","i.imgur.com","imgur.com"],N=function(z){var w=z.im,V=z.className,k=(0,r.useState)(null),H=k[0],Y=k[1];return(0,r.useEffect)(function(){var q=function(ee){return Q.apply(this,arguments)},Z=(0,t.jT)(w.message.trim());if(!Z.startsWith("https://")||Z.includes(" "))return;var J;try{J=new URL(Z)}catch(X){return}if(!L.includes(J.hostname))return;function Q(){return Q=l(function(X){var ee,se,ie;return h(this,function(fe){switch(fe.label){case 0:return ee={Accept:"image/jpeg, image/png, image/gif","User-Agent":"SS13-Virgo-ImageEmbeds/1.0"},[4,(0,g.b)(X.toString(),{headers:ee})];case 1:return se=fe.sent(),se.ok?(ie=se.headers.get("Content-Type"),ie==="image/jpeg"||ie==="image/png"||ie==="image/gif"?[2,X.toString()]:[2,null]):[2,null]}})}),Q.apply(this,arguments)}q(J).then(function(X){X&&Y((0,e.jsx)($,{im:w,className:V,img:X}))})},[]),H},$=function(z){var w=(0,r.useState)(!1),V=w[0],k=w[1],H=z.im,Y=z.className,q=z.img;return(0,e.jsx)(f.az,{textAlign:H.sent?"right":"left",mb:1,children:(0,e.jsxs)(f.az,{maxWidth:"75%",className:Y,inline:!0,children:[(0,e.jsx)(f.az,{fontSize:.9,children:"Embed"}),V?(0,e.jsx)(f._V,{fixBlur:!1,src:q,maxWidth:30,maxHeight:30}):(0,e.jsxs)(f.$n,{width:30,height:20,onClick:function(){return k(!0)},color:"black",textAlign:"center",verticalAlignContent:"middle",fontSize:3,children:["Click to",(0,e.jsx)("br",{}),"Show"]})]})})}},25039:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_news:function(){return i}});var e=n(20462),o=n(61282),t=n(7081),r=n(88569),i=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.feeds,h=s.target_feed;return(0,e.jsx)(r.az,{children:!c.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||h&&(0,e.jsx)(f,{target_feed:h})||(0,e.jsx)(g,{})})},f=function(d){var a=(0,t.Oc)().act,l=d.target_feed;return(0,e.jsx)(r.wn,{title:(0,o.jT)(l.name)+" by "+(0,o.jT)(l.author),buttons:(0,e.jsx)(r.$n,{icon:"chevron-up",onClick:function(){return a("newsfeed",{newsfeed:null})},children:"Back"}),children:l.messages.length&&l.messages.map(function(s){return(0,e.jsxs)(r.wn,{children:["- ",(0,o.jT)(s.body),!!s.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r._V,{src:"data:image/png;base64,"+s.img}),(0,o.jT)(s.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",s.message_type," by ",(0,o.jT)(s.author)," -"," ",s.time_stamp,"]"]})]},s.index)})||(0,e.jsxs)(r.az,{children:["No stories found in ",l.name,"."]})})},g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.feeds,h=s.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",children:h.length&&(0,e.jsx)(r.wn,{children:h.map(function(v){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,o.jT)(v.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:v.index})},children:"Go to"})]}),"- ",(0,o.jT)(v.body),!!v.has_image&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",v.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",v.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:v.author})," ","- ",v.time_stamp,"]"]})]},v.index)})})||(0,e.jsx)(r.az,{children:"No recent stories found."})}),(0,e.jsx)(r.wn,{title:"News Feeds",children:c.map(function(v){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return l("newsfeed",{newsfeed:v.index})},children:v.name},v.index)})})]})}},33312:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_notekeeper:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.note,l=d.notename;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{children:(0,e.jsxs)(t.XI,{children:[(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note1")},children:"Note A"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note2")},children:"Note B"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note3")},children:"Note C"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note4")},children:"Note D"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note5")},children:"Note E"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note6")},children:"Note F"})})]}),(0,e.jsxs)(t.XI.Row,{header:!0,children:[(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note7")},children:"Note G"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note8")},children:"Note H"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note9")},children:"Note I"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note10")},children:"Note J"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note11")},children:"Note K"})}),(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Note12")},children:"Note L"})})]})]})}),(0,e.jsxs)(t.wn,{title:l,children:[(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Edit")},children:"Edit Note"}),(0,e.jsx)(t.$n,{icon:"file-word",onClick:function(){return g("Titleset")},children:"Edit Title"}),(0,e.jsx)(t.$n,{icon:"sticky-note-o",onClick:function(){return g("Print")},children:"Print Note"})]}),(0,e.jsx)(t.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})]})}},6835:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_power:function(){return t}});var e=n(20462),o=n(91276),t=function(r){return(0,e.jsx)(o.PowerMonitorContent,{})}},70272:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_security:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.recordsList,l=d.records;if(l){var s=l.general,c=l.security;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.wn,{title:"General Data",children:s&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Name",children:s.name}),(0,e.jsx)(t.Ki.Item,{label:"Sex",children:s.sex}),(0,e.jsx)(t.Ki.Item,{label:"Species",children:s.species}),(0,e.jsx)(t.Ki.Item,{label:"Age",children:s.age}),(0,e.jsx)(t.Ki.Item,{label:"Rank",children:s.rank}),(0,e.jsx)(t.Ki.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.jsx)(t.Ki.Item,{label:"Physical Status",children:s.p_stat}),(0,e.jsx)(t.Ki.Item,{label:"Mental Status",children:s.m_stat})]})||(0,e.jsx)(t.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(t.wn,{title:"Security Data",children:c&&(0,e.jsxs)(t.Ki,{children:[(0,e.jsx)(t.Ki.Item,{label:"Criminal Status",children:c.criminal}),(0,e.jsx)(t.Ki.Item,{label:"Minor Crimes",children:c.mi_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.mi_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Major Crimes",children:c.ma_crim}),(0,e.jsx)(t.Ki.Item,{label:"Details",children:c.ma_crim_d}),(0,e.jsx)(t.Ki.Item,{label:"Important Notes:",children:(0,e.jsx)(t.az,{preserveWhitespace:!0,children:c.notes||"No data found."})})]})||(0,e.jsx)(t.az,{color:"bad",children:"Security record lost!"})})]})}return(0,e.jsx)(t.wn,{title:"Select a record",children:a.map(function(h){return(0,e.jsx)(t.$n,{icon:"eye",fluid:!0,onClick:function(){return g("Records",{target:h.ref})},children:h.name},h.ref)})})}},56473:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_signaller:function(){return t}});var e=n(20462),o=n(46321),t=function(r){return(0,e.jsx)(o.SignalerContent,{})}},41659:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_status_display:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.records;return(0,e.jsx)(t.az,{children:(0,e.jsxs)(t.Ki,{children:[(0,e.jsxs)(t.Ki.Item,{label:"Code",children:[(0,e.jsx)(t.$n,{color:"transparent",icon:"trash",onClick:function(){return g("Status",{statdisp:"blank"})},children:"Clear"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return g("Status",{statdisp:"shuttle"})},children:"Evac ETA"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"cog",onClick:function(){return g("Status",{statdisp:"message"})},children:"Message"}),(0,e.jsx)(t.$n,{color:"transparent",icon:"exclamation-triangle",onClick:function(){return g("Status",{statdisp:"alert"})},children:"ALERT"})]}),(0,e.jsx)(t.Ki.Item,{label:"Message line 1",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Status",{statdisp:"setmsg1"})},children:a&&a.message1+" (set)"})}),(0,e.jsx)(t.Ki.Item,{label:"Message line 2",children:(0,e.jsx)(t.$n,{icon:"pen",onClick:function(){return g("Status",{statdisp:"setmsg2"})},children:a&&a.message2+" (set)"})})]})})}},94431:function(y,u,n){"use strict";n.r(u),n.d(u,{pda_supply:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)(),g=f.act,d=f.data,a=d.supply;return(0,e.jsxs)(t.az,{children:[(0,e.jsx)(t.Ki,{children:(0,e.jsx)(t.Ki.Item,{label:"Location",children:a.shuttle_moving?"Moving to station "+a.shuttle_eta:"Shuttle at "+a.shuttle_loc})}),(0,e.jsxs)(t.wn,{children:[(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Approved Orders"}),a.approved.length&&a.approved.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," approved by ",l.ApprovedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"}),(0,e.jsx)(t.az,{color:"good",bold:!0,children:"Current Requested Orders"}),a.requests.length&&a.requests.map(function(l){return(0,e.jsxs)(t.az,{color:"average",children:["#",l.Number," - ",l.Name," requested by ",l.OrderedBy,(0,e.jsx)("br",{}),l.Comment]},l.Number)})||(0,e.jsx)(t.az,{children:"None!"})]})]})}},11115:function(y,u,n){"use strict";n.r(u)},75418:function(y,u,n){"use strict";n.r(u),n.d(u,{PersonalCrafting:function(){return v}});var e=n(20462),o=n(7402),t=n(15813),r=n(61282),i=n(61358),f=n(7081),g=n(88569),d=n(15581);function a(E,j){(j==null||j>E.length)&&(j=E.length);for(var C=0,M=new Array(j);C=E.length?{done:!0}:{done:!1,value:E[M++]}}}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 h(E){for(var j=[],C=[],M=c(Object.keys(E)),P;!(P=M()).done;){var _=P.value,S=E[_];if("has_subcats"in S){for(var T=c(Object.keys(S)),b;!(b=T()).done;){var L=b.value;if(L!=="has_subcats"){j.push({name:L,category:_,subcategory:L});for(var N=S[L],$=c(N),z;!(z=$()).done;){var w=z.value;C.push(l({},w,{category:L}))}}}continue}j.push({name:_,category:_});for(var V=E[_],k=c(V),H;!(H=k()).done;){var Y=H.value;C.push(l({},Y,{category:_}))}}return{categories:j,recipes:C}}var v=function(E){var j,C=(0,f.Oc)(),M=C.act,P=C.data,_=(0,i.useState)(""),S=_[0],T=_[1],b=P.busy,L=P.display_craftable_only,N=P.display_compact,$=P.crafting_recipes||{},z=h($),w=z.categories,V=z.recipes,k=(0,i.useState)((j=w[0])==null?void 0:j.name),H=k[0],Y=k[1],q=(0,r.XZ)(S,function(J){return J.name}),Z=(0,t.L)([function(J){return(0,o.pb)(J,function(Q){return Q.category===H})},function(J){return S?(0,o.pb)(J,q):J}])(V);return(0,e.jsx)(d.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(d.p8.Content,{scrollable:!0,children:[!!b&&(0,e.jsxs)(g.Rr,{fontSize:"32px",children:[(0,e.jsx)(g.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsxs)(g.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.$n.Checkbox,{checked:N,onClick:function(){return M("toggle_compact")},children:"Compact"}),(0,e.jsx)(g.$n.Checkbox,{checked:L,onClick:function(){return M("toggle_recipes")},children:"Craftable Only"})]}),children:[(0,e.jsx)(g.pd,{fluid:!0,value:S,placeholder:"Search for recipes...",onInput:function(J,Q){return T(Q)}}),(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.tU,{vertical:!0,children:w.map(function(J,Q){return(0,e.jsx)(g.tU.Tab,{selected:J.name===H,onClick:function(){Y(J.name),M("set_category",{category:J.category,subcategory:J.subcategory})},children:J.name},Q)})})}),(0,e.jsx)(g.so.Item,{grow:1,basis:0,children:(0,e.jsx)(x,{craftables:Z,display_compact:N,display_craftable_only:L})})]})]})]})})},x=function(E){var j=E.craftables,C=j===void 0?[]:j,M=E.display_compact,P=E.display_craftable_only,_=(0,f.Oc)(),S=_.act,T=_.data,b=T.craftability,L=b===void 0?{}:b;return C.map(function(N,$){return P&&!L[N.ref]?null:M?(0,e.jsx)(g.Ki.Item,{label:N.name,className:"candystripe",buttons:(0,e.jsx)(g.$n,{icon:"cog",disabled:!L[N.ref],tooltip:N.tool_text&&"Tools needed: "+N.tool_text,tooltipPosition:"left",onClick:function(){return S("make",{recipe:N.ref})},children:"Craft"}),children:N.req_text},$):(0,e.jsx)(g.wn,{title:N.name,buttons:(0,e.jsx)(g.$n,{icon:"cog",disabled:!L[N.ref],onClick:function(){return S("make",{recipe:N.ref})},children:"Craft"}),children:(0,e.jsxs)(g.Ki,{children:[!!N.req_text&&(0,e.jsx)(g.Ki.Item,{label:"Required",children:N.req_text}),!!N.catalyst_text&&(0,e.jsx)(g.Ki.Item,{label:"Catalyst",children:N.catalyst_text}),!!N.tool_text&&(0,e.jsx)(g.Ki.Item,{label:"Tools",children:N.tool_text})]})},$)})}},6924:function(y,u,n){"use strict";n.r(u),n.d(u,{Photocopier:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(a){var l=(0,o.Oc)().data,s=l.isAI,c=l.has_toner,h=l.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:s?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[c?(0,e.jsx)(f,{}):(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.jsx)(g,{}):(0,e.jsx)(t.wn,{title:"Options",children:(0,e.jsx)(t.az,{color:"average",children:"No inserted item."})}),!!s&&(0,e.jsx)(d,{})]})})},f=function(a){var l=(0,o.Oc)().data,s=l.max_toner,c=l.current_toner,h=s*.66,v=s*.33;return(0,e.jsx)(t.wn,{title:"Toner",children:(0,e.jsx)(t.z2,{ranges:{good:[h,s],average:[v,h],bad:[0,v]},value:c,minValue:0,maxValue:s})})},g=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.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:h,onDrag:function(v){return s("set_copies",{num_copies:v})}})}),(0,e.jsx)(t.so.Item,{children:(0,e.jsx)(t.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return s("make_copy")},children:"Copy"})})]}),(0,e.jsx)(t.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return s("remove")},children:"Remove item"})]})},d=function(a){var l=(0,o.Oc)(),s=l.act,c=l.data,h=c.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:!h,onClick:function(){return s("ai_photo")},children:"Print photo from database"})})})}},11727:function(y,u,n){"use strict";n.r(u),n.d(u,{PipeDispenser:function(){return g}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),f=n(66947),g=function(d){var a=(0,t.Oc)(),l=a.act,s=a.data,c=s.disposals,h=s.p_layer,v=s.pipe_layers,x=s.categories,E=x===void 0?[]:x,j=(0,o.useState)("categoryName"),C=j[0],M=j[1],P=E.find(function(_){return _.cat_name===C})||E[0];return(0,e.jsx)(i.p8,{width:425,height:515,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!c&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(v).map(function(_){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:v[_]===h,onClick:function(){return l("p_layer",{p_layer:v[_]})},children:_},_)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:E.map(function(_){return(0,e.jsx)(r.tU.Tab,{icon:f.ICON_BY_CATEGORY_NAME[_.cat_name],selected:_.cat_name===P.cat_name,onClick:function(){return M(_.cat_name)},children:_.cat_name},_.cat_name)})}),P==null?void 0:P.recipes.map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,onClick:function(){return l("dispense_pipe",{ref:_.ref,bent:_.bent,category:P.cat_name})},children:_.pipe_name},_.pipe_name)})]})]})})}},28291:function(y,u,n){"use strict";n.r(u),n.d(u,{PlantAnalyzer:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(g){var d=(0,o.Oc)().data,a=d.seed,l=d.reagents,s=250;return a&&(s+=18*a.trait_info.length),l&&l.length&&(s+=55,s+=20*l.length),(0,e.jsx)(r.p8,{width:400,height:s,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(f,{})})})},f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.no_seed,c=l.seed,h=l.reagents;return s?(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:[c.name,"#",c.uid]}),(0,e.jsx)(t.Ki.Item,{label:"Endurance",children:c.endurance}),(0,e.jsx)(t.Ki.Item,{label:"Yield",children:c.yield}),(0,e.jsx)(t.Ki.Item,{label:"Maturation Time",children:c.maturation_time}),(0,e.jsx)(t.Ki.Item,{label:"Production Time",children:c.production_time}),(0,e.jsx)(t.Ki.Item,{label:"Potency",children:c.potency})]}),h.length&&(0,e.jsx)(t.wn,{title:"Plant Reagents",children:(0,e.jsx)(t.Ki,{children:h.map(function(v){return(0,e.jsxs)(t.Ki.Item,{label:v.name,children:[v.volume," unit(s)."]},v.name)})})})||null,(0,e.jsx)(t.wn,{title:"Other Data",children:c.trait_info.map(function(v){return(0,e.jsx)(t.az,{color:"label",mb:.4,children:v},v)})})]})}},45371:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlAbilities:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Grant Abilities",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("vent_crawl")},children:"Vent Crawl"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("darksight")},children:"Set Darksight"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("cocoon")},children:"Give Cocoon Transformation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("transformation")},children:"Give TF verbs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("set_size")},children:"Give Set Size"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("lleill_energy")},children:"Set Lleill Energy Levels"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("lleill_invisibility")},children:"Give Lleill Invisibility"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("beast_form")},children:"Give Leill Beast Form"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("lleill_transmute")},children:"Give Leill Transmutation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("lleill_alchemy")},children:"Give Leill Alchemy"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("lleill_drain")},children:"Give Lleill Drain"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("brutal_pred")},children:"Give Brutal Predation"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("trash_eater")},children:"Give Trash Eater"})]})}},27484:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlAdmin:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Admin Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("quick_nif")},children:"Quick NIF"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("resize")},children:"Resize"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("teleport")},children:"Teleport"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("gib")},children:"Gib"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("dust")},children:"Dust"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("paralyse")},children:"Paralyse"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("subtle_message")},children:"Subtle Message"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("direct_narrate")},children:"Direct Narrate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("player_panel")},children:"Open Player Panel"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("view_variables")},children:"Open View Variables"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("ai")},children:"Enable/Modify AI"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("orbit")},children:"Make Marked Datum Orbit"})]})}},18316:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlFixes:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Bug Fixes",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("popup-box")},children:"Send Message Box"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("stop-orbits")},children:"Clear All Orbiters"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("revert-mob-tf")},children:"Revert Mob Transformation"})]})}},46809:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlInventory:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Inventory Controls",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("drop_all")},children:"Drop Everything"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("drop_specific")},children:"Drop Specific Item"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("drop_held")},children:"Drop Held Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("list_all")},children:"List All Items"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("give_item")},children:"Add Marked Item To Hands"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("equip_item")},children:"Equip Marked Item To Inventory"})]})}},7556:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlMedical:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Medical Effects",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("appendicitis")},children:"Appendicitis"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("repair_organ")},children:"Repair Organ"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("damage_organ")},children:"Damage Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("break_bone")},children:"Break Bone"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("drop_organ")},children:"Drop Organ/Limb"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("assist_organ")},children:"Make Organ Assisted"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("robot_organ")},children:"Make Organ Robotic"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("rejuvenate")},children:"Rejuvenate"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("stasis")},children:"Toggle Stasis"})]})}},45502:function(y,u,n){"use strict";n.r(u),n.d(u,{ControlSmites:function(){return r}});var e=n(20462),o=n(7081),t=n(88569),r=function(i){var f=(0,o.Oc)().act;return(0,e.jsxs)(t.wn,{title:"Smites",children:[(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("break_legs")},children:"Break Legs"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("bluespace_artillery")},children:"Bluespace Artillery"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("spont_combustion")},children:"Spontaneous Combustion"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("lightning_strike")},children:"Lightning Bolt"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("shadekin_attack")},children:"Shadekin Attack"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("shadekin_vore")},children:"Shadekin Vore"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("redspace_abduct")},children:"Redspace Abduction"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("autosave")},children:"Autosave"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("autosave2")},children:"Autosave AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("adspam")},children:"Ad Spam"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("peppernade")},children:"Peppernade"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("spicerequest")},children:"Spawn Spice"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("terror")},children:"Terrify"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("terror_aoe")},children:"Terrify AOE"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("spin")},children:"Spin"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("squish")},children:"Squish"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("pie_splat")},children:"Pie Splat"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("spicy_air")},children:"Spicy Air"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("hot_dog")},children:"Hot Dog"}),(0,e.jsx)(t.$n,{fluid:!0,onClick:function(){return f("mob_tf")},children:"Mob Transformation"})]})}},5880:function(y,u,n){"use strict";n.r(u),n.d(u,{PlayerEffects:function(){return c}});var e=n(20462),o=n(61358),t=n(7081),r=n(88569),i=n(15581),f=n(45371),g=n(27484),d=n(18316),a=n(46809),l=n(7556),s=n(45502),c=function(h){var v=(0,t.Oc)().data,x=v.real_name,E=v.player_ckey,j=(0,o.useState)(0),C=j[0],M=j[1],P=[];return P[0]=(0,e.jsx)(s.ControlSmites,{}),P[1]=(0,e.jsx)(l.ControlMedical,{}),P[2]=(0,e.jsx)(f.ControlAbilities,{}),P[3]=(0,e.jsx)(a.ControlInventory,{}),P[4]=(0,e.jsx)(g.ControlAdmin,{}),P[5]=(0,e.jsx)(d.ControlFixes,{}),(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return M(0)},children:"Smites"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return M(1)},children:"Medical"}),(0,e.jsx)(r.tU.Tab,{selected:C===2,onClick:function(){return M(2)},children:"Abilities"}),(0,e.jsx)(r.tU.Tab,{selected:C===3,onClick:function(){return M(3)},children:"Inventory"}),(0,e.jsx)(r.tU.Tab,{selected:C===4,onClick:function(){return M(4)},children:"Admin"}),(0,e.jsx)(r.tU.Tab,{selected:C===5,onClick:function(){return M(5)},children:"Fixes"})]}),(0,e.jsxs)(r.IC,{info:!0,children:[x," played by ",E,"."]}),P[C]]})})}},25721:function(y,u,n){"use strict";n.r(u)},12588:function(y,u,n){"use strict";n.r(u),n.d(u,{PlayerNotes:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.device_theme,s=a.filter,c=a.pages,h=a.ckeys,v=function(x){return x()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:l,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(x,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:s}),(0,e.jsx)(t.cG,{}),(0,e.jsx)(t.XI,{children:h.map(function(x){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:x.name})},children:x.name})})},x.name)})}),(0,e.jsx)(t.cG,{}),v(function(){for(var x=function(C){E.push((0,e.jsx)(t.$n,{onClick:function(){return d("set_page",{index:C})},children:C},C))},E=[],j=1;j=.5&&"good"||N>.15&&"average"||"bad";return(0,e.jsx)(i.p8,{width:450,height:340,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!h&&(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:v?"power-off":"times",onClick:function(){return a("toggle_power")},selected:v,disabled:!x,children:v?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:s>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:v,onClick:function(){return a("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:$,children:[s,"cm\xB3 ",E]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:s/c,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[s,"cm\xB3 / ",c,"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:C,maxValue:M+30,color:P?"bad":"good",children:[(0,o.Mg)(C),"\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:_?"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:!b&&"bad",children:b?L:"Unconnected"})})]})})]})})}},31991:function(y,u,n){"use strict";n.r(u),n.d(u,{PortablePump:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(95823),f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.direction,c=l.target_pressure,h=l.default_pressure,v=l.min_pressure,x=l.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)(i.PortableBasicInfo,{}),(0,e.jsx)(t.wn,{title:"Pump",buttons:(0,e.jsx)(t.$n,{icon:s?"sign-in-alt":"sign-out-alt",selected:s,onClick:function(){return a("direction")},children:s?"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:v,maxValue:x,value:c,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:c===v,onClick:function(){return a("pressure",{pressure:"min"})}}),(0,e.jsx)(t.$n,{icon:"sync",disabled:c===h,onClick:function(){return a("pressure",{pressure:"reset"})}}),(0,e.jsx)(t.$n,{icon:"plus",disabled:c===x,onClick:function(){return a("pressure",{pressure:"max"})}})]})]})})]})})}},33353:function(y,u,n){"use strict";n.r(u),n.d(u,{PortableScrubber:function(){return f}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=n(95823),f=function(g){var d=(0,o.Oc)(),a=d.act,l=d.data,s=l.rate,c=l.minrate,h=l.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(i.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:c,maxValue:h,value:s,unit:"L/s",onChange:function(v,x){return a("volume_adj",{vol:x})}})})})})]})})}},96527:function(y,u,n){"use strict";n.r(u),n.d(u,{PortableTurret:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(15581),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.locked,s=a.on,c=a.lethal,h=a.lethal_is_configurable,v=a.targetting_is_configurable,x=a.check_weapons,E=a.neutralize_noaccess,j=a.neutralize_norecord,C=a.neutralize_criminals,M=a.neutralize_all,P=a.neutralize_nonsynth,_=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 ",l?"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:s?"power-off":"times",selected:s,disabled:l,onClick:function(){return d("power")},children:s?"On":"Off"})}),!!h&&(0,e.jsx)(t.Ki.Item,{label:"Lethals",children:(0,e.jsx)(t.$n,{icon:c?"exclamation-triangle":"times",color:c?"bad":"",disabled:l,onClick:function(){return d("lethal")},children:c?"On":"Off"})})]})}),!!v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(t.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:C,disabled:l,onClick:function(){return d("autharrest")},children:"Wanted Criminals"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:j,disabled:l,onClick:function(){return d("authnorecord")},children:"No Sec Record"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:x,disabled:l,onClick:function(){return d("authweapon")},children:"Unauthorized Weapons"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:E,disabled:l,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:_,disabled:l,onClick:function(){return d("authxeno")},children:"Unidentified Lifesigns (Xenos, Animals, Etc)"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:P,disabled:l,onClick:function(){return d("authsynth")},children:"All Non-Synthetics"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:S,disabled:l,onClick:function(){return d("authdown")},children:"Downed Targets"}),(0,e.jsx)(t.$n.Checkbox,{fluid:!0,checked:M,disabled:l,onClick:function(){return d("authall")},children:"All Entities"})]})]})]})})}},91276:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorContent:function(){return i}});var e=n(20462),o=n(7081),t=n(88569),r=n(27971),i=function(f){var g=(0,o.Oc)(),d=g.act,a=g.data,l=a.all_sensors,s=a.focus;if(s)return(0,e.jsx)(r.PowerMonitorFocus,{focus:s});var c=(0,e.jsx)(t.az,{color:"bad",children:"No sensors detected"});return l&&(c=(0,e.jsx)(t.XI,{children:l.map(function(h){return(0,e.jsx)(t.XI.Row,{children:(0,e.jsx)(t.XI.Cell,{children:(0,e.jsx)(t.$n,{icon:h.alarm?"bell":"sign-in-alt",onClick:function(){return d("setsensor",{id:h.name})},children:h.name})})},h.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:c})}},27971:function(y,u,n){"use strict";n.r(u),n.d(u,{PowerMonitorFocus:function(){return c}});var e=n(20462),o=n(7402),t=n(15813),r=n(4089),i=n(61358),f=n(7081),g=n(88569),d=n(92595),a=n(69788),l=n(88040);function s(){return s=Object.assign||function(h){for(var v=1;v50?"battery-half":"battery-quarter")||g===1&&"bolt"||g===2&&"battery-full"||"",color:g===0&&(d>50?"yellow":"red")||g===1&&"yellow"||g===2&&"green"}),(0,e.jsx)(t.az,{inline:!0,width:"36px",textAlign:"right",children:(0,o.Mg)(d)+"%"})]})},i=function(f){var g=f.status,d=!!(g&2),a=!!(g&1),l=(d?"On":"Off")+(" ["+(a?"auto":"manual")+"]");return(0,e.jsx)(t.m_,{content:l,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),i=n(15581),f=n(19870),g=n(69901),d=function(a){var l=(0,t.Oc)(),s=l.act,c=l.data,h,v=(0,o.useState)((h=a.startingPage)!=null?h:f.GamePreferencesSelectedPage.Settings),x=v[0],E=v[1],j;switch(x){case f.GamePreferencesSelectedPage.Settings:j=(0,e.jsx)(g.GamePreferencesPage,{});break}return(0,e.jsx)(i.p8,{title:"Game Preferences",width:920,height:770,children:(0,e.jsx)(i.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 v}});var e=n(20462),o=n(7402),t=n(61358),r=n(7081),i=n(88569),f=n(16945),g=n(72736),d=n(49049);function a(x,E){(E==null||E>x.length)&&(E=x.length);for(var j=0,C=new Array(E);j=x.length?{done:!0}:{done:!1,value:x[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(x,E){return(0,o.V0)(x,E,function(j){return j.name})},h=function(x){return(0,o.Ul)(x,function(E){var j=E[0];return j})},v=function(x){for(var E=(0,r.Oc)(),j=E.act,C=E.data,M={},P=s(Object.entries(C.character_preferences.game_preferences)),_;!(_=P()).done;){var S=_.value,T=S[0],b=S[1],L=f.default[T],N=(L==null?void 0:L.name)||T;L!=null&&L.description&&(N=(0,e.jsx)(i.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:N}));var $=(0,e.jsx)(i.so.Item,{grow:1,pr:2,basis:0,ml:2,children:N});L!=null&&L.description&&($=(0,e.jsx)(i.m_,{content:L.description,position:"bottom-start",children:$}));var z=(0,e.jsxs)(i.so,{align:"center",pb:2,children:[$,(0,e.jsx)(i.so.Item,{grow:1,basis:0,children:L&&(0,e.jsx)(g.FeatureValueInput,{feature:L,featureId:T,value:b,act:j})||(0,e.jsx)(i.az,{as:"b",color:"red",children:"...is not filled out properly!!!"})})]},T),w={name:(L==null?void 0:L.name)||T,children:z},V=(L==null?void 0:L.category)||"ERROR";M[V]=c(M[V]||[],w)}var k=(0,t.useState)(""),H=k[0],Y=k[1],q=(0,t.useState)(!1),Z=q[0],J=q[1],Q=h(Object.entries(M)).map(function(X){var ee=X[0],se=X[1];return[ee,se.filter(function(ie){return!H||ie.name.toLowerCase().includes(H.toLowerCase())}).map(function(ie){return ie.children})]}).filter(function(X){var ee=X[0],se=X[1];return se.length!==0});return(0,e.jsxs)(e.Fragment,{children:[!Q.length&&(0,e.jsx)(i.wn,{title:"No Results",children:"No results found."}),(0,e.jsxs)(i.az,{position:"absolute",right:4,top:4,style:{zIndex:"100"},children:[Z&&(0,e.jsx)(i.pd,{width:16,value:H,onInput:function(X,ee){return Y(ee)},onChange:function(X,ee){return Y(ee)}}),(0,e.jsx)(i.$n,{selected:Z,icon:"magnifying-glass",tooltip:"Search",tooltipPosition:"bottom",onClick:function(){J(!Z),Y("")}})]}),(0,e.jsx)(d.TabbedMenu,{categoryEntries:Q,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 i=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:i,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 l}});var e=n(61358),o=n(31200),t=n(30705);function r(s,c,h,v,x,E,j){try{var C=s[E](j),M=C.value}catch(P){h(P);return}C.done?c(M):Promise.resolve(M).then(v,x)}function i(s){return function(){var c=this,h=arguments;return new Promise(function(v,x){var E=s.apply(c,h);function j(M){r(E,v,x,j,C,"next",M)}function C(M){r(E,v,x,j,C,"throw",M)}j(void 0)})}}function f(s,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(c&&c.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),c&&g(s,c)}function g(s,c){return g=Object.setPrototypeOf||function(v,x){return v.__proto__=x,v},g(s,c)}function d(s,c){var h,v,x,E,j={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]};return E={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function C(P){return function(_){return M([P,_])}}function M(P){if(h)throw new TypeError("Generator is already executing.");for(;j;)try{if(h=1,v&&(x=P[0]&2?v.return:P[0]?v.throw||((x=v.return)&&x.call(v),0):v.next)&&!(x=x.call(v,P[1])).done)return x;switch(v=0,x&&(P=[P[0]&2,x.value]),P[0]){case 0:case 1:x=P;break;case 4:return j.label++,{value:P[1],done:!1};case 5:j.label++,v=P[1],P=[0];continue;case 7:P=j.ops.pop(),j.trys.pop();continue;default:if(x=j.trys,!(x=x.length>0&&x[x.length-1])&&(P[0]===6||P[0]===2)){j=0;continue}if(P[0]===3&&(!x||P[1]>x[0]&&P[1]