From d1d83c780fa161eda4aef9354ae76f8f22499f0d Mon Sep 17 00:00:00 2001 From: izac112 Date: Thu, 25 Apr 2024 02:31:04 +0200 Subject: [PATCH] Some update fixes --- code/__defines/rust_g_yw.dm | 2 +- .../subtypes/animal/space/animals_yw.dm | 11 +- tgui/public/tgui.bundle.js | 126 +++++++++--------- 3 files changed, 68 insertions(+), 71 deletions(-) diff --git a/code/__defines/rust_g_yw.dm b/code/__defines/rust_g_yw.dm index 7d5a88aa65a..7ae22bb7f8b 100644 --- a/code/__defines/rust_g_yw.dm +++ b/code/__defines/rust_g_yw.dm @@ -1,3 +1,3 @@ // savefile ser/de // -#define rustg_savefile_to_json(save_string) call(RUST_G, "savefile_to_json")(save_string) +#define rustg_savefile_to_json(save_string) LIBCALL(RUST_G, "savefile_to_json")(save_string) diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/space/animals_yw.dm b/code/modules/mob/living/simple_mob/subtypes/animal/space/animals_yw.dm index 10616ddf1a1..3f9f6eb7b22 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/space/animals_yw.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/space/animals_yw.dm @@ -326,12 +326,12 @@ var/beforehealth = icon_living var/healthpercent = health/maxHealth switch(healthpercent) - if(0.25 to 0) + if(0 to 0.25) icon_living = "snowbull-25" - if(0.50 to 0.26) + if(0.26 to 0.50) icon_living = "snowbull-50" - if(0.75 to 0.51) - icon_living = "snowbull-75" + if(0.51 to 0.75) + icon_living = "snowbull-75" if(0.76 to INFINITY) icon_living = "snowbull-100" if(beforehealth != icon_living) @@ -412,6 +412,3 @@ holder.ISay(safepick(holder.say_list.say_stand_down)) playsound(holder, holder.say_list.stand_down_sound, 50, 1) // We do this twice to make the sound -very- noticable to the target. playsound(target, holder.say_list.stand_down_sound, 50, 1) // Actual aim-mode also does that so at least it's consistant. - - - diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 15211fe436f..541c5cba112 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function e(o,l){return l!=null&&typeof Symbol!="undefined"&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](o):o instanceof l}function s(o){"@swc/helpers - typeof";return o&&typeof Symbol!="undefined"&&o.constructor===Symbol?"symbol":typeof o}var n=t(44583),r=t(7864);function i(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,E=1;El}return!1}function j(o,l,E,T,L,W,q){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=o,this.type=l,this.sanitizeURL=W,this.removeEmptyString=q}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){b[o]=new j(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];b[l]=new j(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){b[o]=new j(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){b[o]=new j(o,2,!1,o,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(o){b[o]=new j(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){b[o]=new j(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){b[o]=new j(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){b[o]=new j(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){b[o]=new j(o,5,!1,o.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function O(o){return o[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(o){var l=o.replace(I,O);b[l]=new j(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(I,O);b[l]=new j(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(I,O);b[l]=new j(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){b[o]=new j(o,1,!1,o.toLowerCase(),null,!1,!1)}),b.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){b[o]=new j(o,1,!1,o.toLowerCase(),null,!0,!0)});function _(o,l,E,T){var L=b.hasOwnProperty(l)?b[l]:null;(L!==null?L.type!==0:T||!(2ie||L[q]!==W[ie]){var fe="\n"+L[q].replace(" at new "," at ");return o.displayName&&fe.includes("")&&(fe=fe.replace("",o.displayName)),fe}while(1<=q&&0<=ie);break}}}finally{ue=!1,Error.prepareStackTrace=E}return(o=o?o.displayName||o.name:"")?ne(o):""}function me(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=ce(o.type,!1),o;case 11:return o=ce(o.type.render,!1),o;case 1:return o=ce(o.type,!0),o;default:return""}}function xe(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case A:return"Portal";case N:return"Profiler";case K:return"StrictMode";case J:return"Suspense";case H:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case V:return(o.displayName||"Context")+".Consumer";case k:return(o._context.displayName||"Context")+".Provider";case F:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Q:return l=o.displayName||null,l!==null?l:xe(o.type)||"Memo";case Z:l=o._payload,o=o._init;try{return xe(o(l))}catch(E){}}return null}function ve(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(l);case 8:return l===K?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function be(o){switch(typeof o=="undefined"?"undefined":s(o)){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function we(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Je(o){var l=we(o)?"checked":"value",E=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),T=""+o[l];if(!o.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,W=E.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return L.call(this)},set:function(ie){T=""+ie,W.call(this,ie)}}),Object.defineProperty(o,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(ie){T=""+ie},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ze(o){o._valueTracker||(o._valueTracker=Je(o))}function Le(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return o&&(T=we(o)?o.checked?"true":"false":o.value),o=T,o!==E?(l.setValue(o),!0):!1}function Be(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(l){return o.body}}function dt(o,l){var E=l.checked;return ee({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:o._wrapperState.initialChecked})}function xt(o,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=be(l.value!=null?l.value:E),o._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function lt(o,l){l=l.checked,l!=null&&_(o,"checked",l,!1)}function rt(o,l){lt(o,l);var E=be(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&o.value===""||o.value!=E)&&(o.value=""+E):o.value!==""+E&&(o.value=""+E);else if(T==="submit"||T==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?Ke(o,l.type,E):l.hasOwnProperty("defaultValue")&&Ke(o,l.type,be(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Re(o,l,E){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var T=l.type;if(!(T!=="submit"&&T!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,E||l===o.value||(o.value=l),o.defaultValue=l}E=o.name,E!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,E!==""&&(o.name=E)}function Ke(o,l,E){(l!=="number"||Be(o.ownerDocument)!==o)&&(E==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+E&&(o.defaultValue=""+E))}var Pe=Array.isArray;function ke(o,l,E,T){if(o=o.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=bt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function ct(o,l){if(l){var E=o.firstChild;if(E&&E===o.lastChild&&E.nodeType===3){E.nodeValue=l;return}}o.textContent=l}var Ge={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},je=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(o){je.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Ge[l]=Ge[o]})});function Qe(o,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Ge.hasOwnProperty(o)&&Ge[o]?(""+l).trim():l+"px"}function vt(o,l){o=o.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Qe(E,l[E],T);E==="float"&&(E="cssFloat"),T?o.setProperty(E,L):o[E]=L}}var Pt=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 zt(o,l){if(l){if(Pt[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(i(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(i(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(l.style!=null&&typeof l.style!="object")throw Error(i(62))}}function en(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 Wt=null;function fn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Tn=null,Fn=null,Vn=null;function Eo(o){if(o=Vo(o)){if(typeof Tn!="function")throw Error(i(280));var l=o.stateNode;l&&(l=lo(l),Tn(o.stateNode,o.type,l))}}function bo(o){Fn?Vn?Vn.push(o):Vn=[o]:Fn=o}function Oo(){if(Fn){var o=Fn,l=Vn;if(Vn=Fn=null,Eo(o),l)for(o=0;o>>=0,o===0?32:31-(Yi(o)/Qi|0)|0}var lr=64,ua=4194304;function Po(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function da(o,l){var E=o.pendingLanes;if(E===0)return 0;var T=0,L=o.suspendedLanes,W=o.pingedLanes,q=E&268435455;if(q!==0){var ie=q&~L;ie!==0?T=Po(ie):(W&=q,W!==0&&(T=Po(W)))}else q=E&~L,q!==0?T=Po(q):W!==0&&(T=Po(W));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,W=l&-l,L>=W||L===16&&(W&4194240)!==0))return l;if(T&4&&(T|=E&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=T;0E;E++)l.push(o);return l}function Mo(o,l,E){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-In(l),o[l]=E}function tl(o,l){var E=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var T=o.eventTimes;for(o=o.expirationTimes;0=Lo),pi=" ",ba=!1;function fs(o,l){switch(o){case"keyup":return ds.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xl(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Mr=!1;function Cc(o,l){switch(o){case"compositionend":return xl(l);case"keypress":return l.which!==32?null:(ba=!0,pi);case"textInput":return o=l.data,o===pi&&ba?null:o;default:return null}}function gi(o,l){if(Mr)return o==="compositionend"||!Ea&&fs(o,l)?(o=dr(),ur=Ao=wn=null,Mr=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:E,offset:l-o};o=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=ms(E)}}function _a(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?_a(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Pa(){for(var o=window,l=Be();e(l,o.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)o=l.contentWindow;else break;l=Be(o.document)}return l}function bi(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function Cl(o){var l=Pa(),E=o.focusedElem,T=o.selectionRange;if(l!==E&&E&&E.ownerDocument&&_a(E.ownerDocument.documentElement,E)){if(T!==null&&bi(E)){if(l=T.start,o=T.end,o===void 0&&(o=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(o,E.value.length);else if(o=(l=E.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var L=E.textContent.length,W=Math.min(T.start,L);T=T.end===void 0?W:Math.min(T.end,L),!o.extend&&W>T&&(L=T,T=W,W=L),L=Dr(E,W);var q=Dr(E,T);L&&q&&(o.rangeCount!==1||o.anchorNode!==L.node||o.anchorOffset!==L.offset||o.focusNode!==q.node||o.focusOffset!==q.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),o.removeAllRanges(),W>T?(o.addRange(l),o.extend(q.node,q.offset)):(l.setEnd(q.node,q.offset),o.addRange(l)))}}for(l=[],o=E;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Sr=null,vs=null,Ma=null,Uo=!1;function El(o,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Sr==null||Sr!==Be(T)||(T=Sr,"selectionStart"in T&&bi(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),Ma&&No(Ma,T)||(Ma=T,T=wa(vs,"onSelect"),0Lr||(o.current=Ua[Lr],Ua[Lr]=null,Lr--)}function St(o,l){Lr++,Ua[Lr]=o.current,o.current=l}var vr={},Gt=mr(vr),Ht=mr(!1),kr=vr;function Ln(o,l){var E=o.type.contextTypes;if(!E)return vr;var T=o.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},W;for(W in E)L[W]=l[W];return T&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=L),L}function sn(o){return o=o.childContextTypes,o!=null}function Ri(){At(Ht),At(Gt)}function wi(o,l,E){if(Gt.current!==vr)throw Error(i(168));St(Gt,l),St(Ht,E)}function $a(o,l,E){var T=o.stateNode;if(l=l.childContextTypes,typeof T.getChildContext!="function")return E;T=T.getChildContext();for(var L in T)if(!(L in l))throw Error(i(108,ve(o)||"Unknown",L));return ee({},E,T)}function za(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||vr,kr=Gt.current,St(Gt,o),St(Ht,Ht.current),!0}function bs(o,l,E){var T=o.stateNode;if(!T)throw Error(i(169));E?(o=$a(o,l,kr),T.__reactInternalMemoizedMergedChildContext=o,At(Ht),At(Gt),St(Gt,o)):At(Ht),St(Ht,E)}var Dn=null,Wa=!1,Fa=!1;function Tl(o){Dn===null?Dn=[o]:Dn.push(o)}function Va(o){Wa=!0,Tl(o)}function Qn(){if(!Fa&&Dn!==null){Fa=!0;var o=0,l=_t;try{var E=Dn;for(_t=1;o>=q,L-=q,xr=1<<32-In(l)+L|E<pt?(qt=mt,mt=null):qt=mt.sibling;var It=De(pe,mt,ge[pt],Ne);if(It===null){mt===null&&(mt=qt);break}o&&mt&&It.alternate===null&&l(pe,mt),he=W(It,he,pt),ht===null?nt=It:ht.sibling=It,ht=It,mt=qt}if(pt===ge.length)return E(pe,mt),Tt&&Zn(pe,pt),nt;if(mt===null){for(;ptpt?(qt=mt,mt=null):qt=mt.sibling;var Co=De(pe,mt,It.value,Ne);if(Co===null){mt===null&&(mt=qt);break}o&&mt&&Co.alternate===null&&l(pe,mt),he=W(Co,he,pt),ht===null?nt=Co:ht.sibling=Co,ht=Co,mt=qt}if(It.done)return E(pe,mt),Tt&&Zn(pe,pt),nt;if(mt===null){for(;!It.done;pt++,It=ge.next())It=Te(pe,It.value,Ne),It!==null&&(he=W(It,he,pt),ht===null?nt=It:ht.sibling=It,ht=It);return Tt&&Zn(pe,pt),nt}for(mt=T(pe,mt);!It.done;pt++,It=ge.next())It=Ye(mt,pe,pt,It.value,Ne),It!==null&&(o&&It.alternate!==null&&mt.delete(It.key===null?pt:It.key),he=W(It,he,pt),ht===null?nt=It:ht.sibling=It,ht=It);return o&&mt.forEach(function(xd){return l(pe,xd)}),Tt&&Zn(pe,pt),nt}function Vt(pe,he,ge,Ne){if(typeof ge=="object"&&ge!==null&&ge.type===R&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case D:e:{for(var nt=ge.key,ht=he;ht!==null;){if(ht.key===nt){if(nt=ge.type,nt===R){if(ht.tag===7){E(pe,ht.sibling),he=L(ht,ge.props.children),he.return=pe,pe=he;break e}}else if(ht.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Z&&er(nt)===ht.type){E(pe,ht.sibling),he=L(ht,ge.props),he.ref=gr(pe,ht,ge),he.return=pe,pe=he;break e}E(pe,ht);break}else l(pe,ht);ht=ht.sibling}ge.type===R?(he=ea(ge.props.children,pe.mode,Ne,ge.key),he.return=pe,pe=he):(Ne=$s(ge.type,ge.key,ge.props,null,pe.mode,Ne),Ne.ref=gr(pe,he,ge),Ne.return=pe,pe=Ne)}return q(pe);case A:e:{for(ht=ge.key;he!==null;){if(he.key===ht)if(he.tag===4&&he.stateNode.containerInfo===ge.containerInfo&&he.stateNode.implementation===ge.implementation){E(pe,he.sibling),he=L(he,ge.children||[]),he.return=pe,pe=he;break e}else{E(pe,he);break}else l(pe,he);he=he.sibling}he=fc(ge,pe.mode,Ne),he.return=pe,pe=he}return q(pe);case Z:return ht=ge._init,Vt(pe,he,ht(ge._payload),Ne)}if(Pe(ge))return et(pe,he,ge,Ne);if(Y(ge))return tt(pe,he,ge,Ne);qn(pe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,he!==null&&he.tag===6?(E(pe,he.sibling),he=L(he,ge),he.return=pe,pe=he):(E(pe,he),he=dc(ge,pe.mode,Ne),he.return=pe,pe=he),q(pe)):E(pe,he)}return Vt}var tr=fo(!0),jr=fo(!1),zr={},Un=mr(zr),Wr=mr(zr),Go=mr(zr);function yr(o){if(o===zr)throw Error(i(174));return o}function Bi(o,l){switch(St(Go,l),St(Wr,o),St(Un,zr),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Mt(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=Mt(l,o)}At(Un),St(Un,l)}function ho(){At(Un),At(Wr),At(Go)}function Ki(o){yr(Go.current);var l=yr(Un.current),E=Mt(l,o.type);l!==E&&(St(Wr,o),St(Un,E))}function Ha(o){Wr.current===o&&(At(Un),At(Wr))}var Kt=mr(0);function Ya(o){for(var l=o;l!==null;){if(l.tag===13){var E=l.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var nr=[];function mo(){for(var o=0;oE?E:4,o(!0);var T=Qa.transition;Qa.transition={};try{o(!1),l()}finally{_t=E,Qa.transition=T}}function zc(){return $n().memoizedState}function Uu(o,l,E){var T=go(o);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Wc(o))Fc(l,E);else if(E=st(o,l,E,T),E!==null){var L=vn();ir(E,o,T,L),Vc(E,l,T)}}function $u(o,l,E){var T=go(o),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Wc(o))Fc(l,L);else{var W=o.alternate;if(o.lanes===0&&(W===null||W.lanes===0)&&(W=l.lastRenderedReducer,W!==null))try{var q=l.lastRenderedState,ie=W(q,E);if(L.hasEagerState=!0,L.eagerState=ie,an(ie,q)){var fe=l.interleaved;fe===null?(L.next=L,Xe(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(ye){}finally{}E=st(o,l,L,T),E!==null&&(L=vn(),ir(E,o,T,L),Vc(E,l,T))}}function Wc(o){var l=o.alternate;return o===Bt||l!==null&&l===Bt}function Fc(o,l){Li=Yo=!0;var E=o.pending;E===null?l.next=l:(l.next=E.next,E.next=l),o.pending=l}function Vc(o,l,E){if(E&4194240){var T=l.lanes;T&=o.pendingLanes,E|=T,l.lanes=E,si(o,E)}}var Ms={readContext:Fe,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useInsertionEffect:cn,useLayoutEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useMutableSource:cn,useSyncExternalStore:cn,useId:cn,unstable_isNewReconciler:!1},zu={readContext:Fe,useCallback:function(l,E){return Cr().memoizedState=[l,E===void 0?null:E],l},useContext:Fe,useEffect:wc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,_s(4194308,4,Lc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return _s(4194308,4,l,E)},useInsertionEffect:function(l,E){return _s(4,2,l,E)},useMemo:function(l,E){var T=Cr();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=Cr();return E=T!==void 0?T(E):E,L.memoizedState=L.baseState=E,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:E},L.queue=l,l=l.dispatch=Uu.bind(null,Bt,l),[L.memoizedState,l]},useRef:function(l){var E=Cr();return l={current:l},E.memoizedState=l},useState:Ac,useDebugValue:Ul,useDeferredValue:function(l){return Cr().memoizedState=l},useTransition:function(){var l=Ac(!1),E=l[0];return l=Nu.bind(null,l[1]),Cr().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=Bt,W=Cr();if(Tt){if(T===void 0)throw Error(i(407));T=T()}else{if(T=E(),Jt===null)throw Error(i(349));rr&30||Pc(L,E,T)}W.memoizedState=T;var q={value:T,getSnapshot:E};return W.queue=q,wc(Dc.bind(null,L,q,l),[l]),L.flags|=2048,Ui(9,Mc.bind(null,L,q,T,E),void 0,null),T},useId:function(){var l=Cr(),E=Jt.identifierPrefix;if(Tt){var T=pr,L=xr;T=(L&~(1<<32-In(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=ki++,0<\/script>",o=o.removeChild(o.firstChild)):typeof T.is=="string"?o=q.createElement(E,{is:T.is}):(o=q.createElement(E),E==="select"&&(q=o,T.multiple?q.multiple=!0:T.size&&(q.size=T.size))):o=q.createElementNS(o,E),o[Kn]=l,o[Br]=T,lu(o,l,!1,!1),l.stateNode=o;e:{switch(q=en(E,T),E){case"dialog":Ot("cancel",o),Ot("close",o),L=T;break;case"iframe":case"object":case"embed":Ot("load",o),L=T;break;case"video":case"audio":for(L=0;Lei&&(l.flags|=128,T=!0,$i(W,!1),l.lanes=4194304)}else{if(!T)if(o=Ya(q),o!==null){if(l.flags|=128,T=!0,E=o.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),$i(W,!0),W.tail===null&&W.tailMode==="hidden"&&!q.alternate&&!Tt)return un(l),null}else 2*wt()-W.renderingStartTime>ei&&E!==1073741824&&(l.flags|=128,T=!0,$i(W,!1),l.lanes=4194304);W.isBackwards?(q.sibling=l.child,l.child=q):(E=W.last,E!==null?E.sibling=q:l.child=q,W.last=q)}return W.tail!==null?(l=W.tail,W.rendering=l,W.tail=l.sibling,W.renderingStartTime=wt(),l.sibling=null,E=Kt.current,St(Kt,T?E&1|2:E&1),l):(un(l),null);case 22:case 23:return lc(),T=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?Sn&1073741824&&(un(l),l.subtreeFlags&6&&(l.flags|=8192)):un(l),null;case 24:return null;case 25:return null}throw Error(i(156,l.tag))}function Qu(o,l){switch(Is(l),l.tag){case 1:return sn(l.type)&&Ri(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ho(),At(Ht),At(Gt),mo(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Ha(l),null;case 13:if(At(Kt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(i(340));te()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return At(Kt),null;case 4:return ho(),null;case 10:return Ae(l.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Ts=!1,dn=!1,Zu=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Ja(o,l){var E=o.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){$t(o,l,T)}else E.current=null}function Ql(o,l,E){try{E()}catch(T){$t(o,l,T)}}var du=!1;function Ju(o,l){if(Di=ma,o=Pa(),bi(o)){if("selectionStart"in o)var E={start:o.selectionStart,end:o.selectionEnd};else e:{E=(E=o.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,W=T.focusNode;T=T.focusOffset;try{E.nodeType,W.nodeType}catch(Ne){E=null;break e}var q=0,ie=-1,fe=-1,ye=0,Oe=0,Te=o,De=null;t:for(;;){for(var Ye;Te!==E||L!==0&&Te.nodeType!==3||(ie=q+L),Te!==W||T!==0&&Te.nodeType!==3||(fe=q+T),Te.nodeType===3&&(q+=Te.nodeValue.length),(Ye=Te.firstChild)!==null;)De=Te,Te=Ye;for(;;){if(Te===o)break t;if(De===E&&++ye===L&&(ie=q),De===W&&++Oe===T&&(fe=q),(Ye=Te.nextSibling)!==null)break;Te=De,De=Te.parentNode}Te=Ye}E=ie===-1||fe===-1?null:{start:ie,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Si={focusedElem:o,selectionRange:E},ma=!1,Ze=l;Ze!==null;)if(l=Ze,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Ze=o;else for(;Ze!==null;){l=Ze;try{var et=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var tt=et.memoizedProps,Vt=et.memoizedState,pe=l.stateNode,he=pe.getSnapshotBeforeUpdate(l.elementType===l.type?tt:se(l.type,tt),Vt);pe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var ge=l.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Ne){$t(l,l.return,Ne)}if(o=l.sibling,o!==null){o.return=l.return,Ze=o;break}Ze=l.return}return et=du,du=!1,et}function zi(o,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&o)===o){var W=L.destroy;L.destroy=void 0,W!==void 0&&Ql(l,E,W)}L=L.next}while(L!==T)}}function As(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&o)===o){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Zl(o){var l=o.ref;if(l!==null){var E=o.stateNode;switch(o.tag){case 5:o=E;break;default:o=E}typeof l=="function"?l(o):l.current=o}}function fu(o){var l=o.alternate;l!==null&&(o.alternate=null,fu(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Kn],delete l[Br],delete l[Fo],delete l[Sl],delete l[Es])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function hu(o){return o.tag===5||o.tag===3||o.tag===4}function mu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||hu(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Jl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(o,l):E.insertBefore(o,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(o,E)):(l=E,l.appendChild(o)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=io));else if(T!==4&&(o=o.child,o!==null))for(Jl(o,l,E),o=o.sibling;o!==null;)Jl(o,l,E),o=o.sibling}function ql(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.insertBefore(o,l):E.appendChild(o);else if(T!==4&&(o=o.child,o!==null))for(ql(o,l,E),o=o.sibling;o!==null;)ql(o,l,E),o=o.sibling}var tn=null,or=!1;function vo(o,l,E){for(E=E.child;E!==null;)vu(o,l,E),E=E.sibling}function vu(o,l,E){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(ca,E)}catch(ie){}switch(E.tag){case 5:dn||Ja(E,l);case 6:var T=tn,L=or;tn=null,vo(o,l,E),tn=T,or=L,tn!==null&&(or?(o=tn,E=E.stateNode,o.nodeType===8?o.parentNode.removeChild(E):o.removeChild(E)):tn.removeChild(E.stateNode));break;case 18:tn!==null&&(or?(o=tn,E=E.stateNode,o.nodeType===8?Ai(o.parentNode,E):o.nodeType===1&&Ai(o,E),To(o)):Ai(tn,E.stateNode));break;case 4:T=tn,L=or,tn=E.stateNode.containerInfo,or=!0,vo(o,l,E),tn=T,or=L;break;case 0:case 11:case 14:case 15:if(!dn&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var W=L,q=W.destroy;W=W.tag,q!==void 0&&(W&2||W&4)&&Ql(E,l,q),L=L.next}while(L!==T)}vo(o,l,E);break;case 1:if(!dn&&(Ja(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(ie){$t(E,l,ie)}vo(o,l,E);break;case 21:vo(o,l,E);break;case 22:E.mode&1?(dn=(T=dn)||E.memoizedState!==null,vo(o,l,E),dn=T):vo(o,l,E);break;default:vo(o,l,E)}}function xu(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var E=o.stateNode;E===null&&(E=o.stateNode=new Zu),l.forEach(function(T){var L=sd.bind(null,o,T);E.has(T)||(E.add(T),T.then(L,L))})}}function ar(o,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=q),T&=~W}if(T=L,T=wt()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*ed(T/1960))-T,10o?16:o,po===null)var T=!1;else{if(o=po,po=null,Ls=0,Et&6)throw Error(i(331));var L=Et;for(Et|=4,Ze=o.current;Ze!==null;){var W=Ze,q=W.child;if(Ze.flags&16){var ie=W.deletions;if(ie!==null){for(var fe=0;fewt()-nc?Jo(o,0):tc|=E),En(o,l)}function Du(o,l){l===0&&(o.mode&1?(l=ua,ua<<=1,!(ua&130023424)&&(ua=4194304)):l=1);var E=vn();o=it(o,l),o!==null&&(Mo(o,l,E),En(o,E))}function id(o){var l=o.memoizedState,E=0;l!==null&&(E=l.retryLane),Du(o,E)}function sd(o,l){var E=0;switch(o.tag){case 13:var T=o.stateNode,L=o.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=o.stateNode;break;default:throw Error(i(314))}T!==null&&T.delete(l),Du(o,E)}var Su;Su=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||Ht.current)yn=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return yn=!1,Hu(l,E,T);yn=!!(l.flags&131072)}else yn=!1,Tt&&E.flags&1048576&&Al(E,Xa,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;Ss(l,E),l=E.pendingProps;var W=Ln(E,Gt.current);$e(E,T),W=Bl(null,E,L,l,W,T);var q=Kl();return E.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,sn(L)?(q=!0,za(E)):q=!1,E.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,ut(E),W.updater=Jn,E.stateNode=W,W._reactInternals=E,$r(E,L,l,T),E=Fl(null,E,L,!0,q,T)):(E.tag=0,Tt&&q&&Os(E),mn(null,E,W,T),E=E.child),E;case 16:L=E.elementType;e:{switch(Ss(l,E),l=E.pendingProps,W=L._init,L=W(L._payload),E.type=L,W=E.tag=cd(L),l=se(L,l),W){case 0:E=Wl(null,E,L,l,T);break e;case 1:E=nu(null,E,L,l,T);break e;case 11:E=Zc(null,E,L,l,T);break e;case 14:E=Jc(null,E,L,se(L.type,l),T);break e}throw Error(i(306,L,""))}return E;case 0:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Wl(l,E,L,W,T);case 1:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),nu(l,E,L,W,T);case 3:e:{if(ru(E),l===null)throw Error(i(387));L=E.pendingProps,q=E.memoizedState,W=q.element,jt(l,E),Lt(E,L,null,T);var ie=E.memoizedState;if(L=ie.element,q.isDehydrated)if(q={element:L,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=q,E.memoizedState=q,E.flags&256){W=Za(Error(i(423)),E),E=ou(l,E,L,T,W);break e}else if(L!==W){W=Za(Error(i(424)),E),E=ou(l,E,L,T,W);break e}else for(jn=Gn(E.stateNode.containerInfo.firstChild),gn=E,Tt=!0,kn=null,T=jr(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(te(),L===W){E=Fr(l,E,T);break e}mn(l,E,L,T)}E=E.child}return E;case 5:return Ki(E),l===null&&U(E),L=E.type,W=E.pendingProps,q=l!==null?l.memoizedProps:null,ie=W.children,Ka(L,W)?ie=null:q!==null&&Ka(L,q)&&(E.flags|=32),tu(l,E),mn(l,E,ie,T),E.child;case 6:return l===null&&U(E),null;case 13:return au(l,E,T);case 4:return Bi(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=tr(E,null,L,T):mn(l,E,L,T),E.child;case 11:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Zc(l,E,L,W,T);case 7:return mn(l,E,E.pendingProps,T),E.child;case 8:return mn(l,E,E.pendingProps.children,T),E.child;case 12:return mn(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,W=E.pendingProps,q=E.memoizedProps,ie=W.value,St(de,L._currentValue),L._currentValue=ie,q!==null)if(an(q.value,ie)){if(q.children===W.children&&!Ht.current){E=Fr(l,E,T);break e}}else for(q=E.child,q!==null&&(q.return=E);q!==null;){var fe=q.dependencies;if(fe!==null){ie=q.child;for(var ye=fe.firstContext;ye!==null;){if(ye.context===L){if(q.tag===1){ye=Ct(-1,T&-T),ye.tag=2;var Oe=q.updateQueue;if(Oe!==null){Oe=Oe.shared;var Te=Oe.pending;Te===null?ye.next=ye:(ye.next=Te.next,Te.next=ye),Oe.pending=ye}}q.lanes|=T,ye=q.alternate,ye!==null&&(ye.lanes|=T),Ue(q.return,T,E),fe.lanes|=T;break}ye=ye.next}}else if(q.tag===10)ie=q.type===E.type?null:q.child;else if(q.tag===18){if(ie=q.return,ie===null)throw Error(i(341));ie.lanes|=T,fe=ie.alternate,fe!==null&&(fe.lanes|=T),Ue(ie,T,E),ie=q.sibling}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===E){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}mn(l,E,W.children,T),E=E.child}return E;case 9:return W=E.type,L=E.pendingProps.children,$e(E,T),W=Fe(W),L=L(W),E.flags|=1,mn(l,E,L,T),E.child;case 14:return L=E.type,W=se(L,E.pendingProps),W=se(L.type,W),Jc(l,E,L,W,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Ss(l,E),E.tag=1,sn(L)?(l=!0,za(E)):l=!1,$e(E,T),Xo(E,L,W),$r(E,L,W,T),Fl(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(i(156,E.tag))};function Tu(o,l){return ae(o,l)}function ld(o,l,E,T){this.tag=o,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(o,l,E,T){return new ld(o,l,E,T)}function uc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cd(o){if(typeof o=="function")return uc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===F)return 11;if(o===Q)return 14}return 2}function yo(o,l){var E=o.alternate;return E===null?(E=Wn(o.tag,l,o.key,o.mode),E.elementType=o.elementType,E.type=o.type,E.stateNode=o.stateNode,E.alternate=o,o.alternate=E):(E.pendingProps=l,E.type=o.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=o.flags&14680064,E.childLanes=o.childLanes,E.lanes=o.lanes,E.child=o.child,E.memoizedProps=o.memoizedProps,E.memoizedState=o.memoizedState,E.updateQueue=o.updateQueue,l=o.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=o.sibling,E.index=o.index,E.ref=o.ref,E}function $s(o,l,E,T,L,W){var q=2;if(T=o,typeof o=="function")uc(o)&&(q=1);else if(typeof o=="string")q=5;else e:switch(o){case R:return ea(E.children,L,W,l);case K:q=8,L|=8;break;case N:return o=Wn(12,E,l,L|2),o.elementType=N,o.lanes=W,o;case J:return o=Wn(13,E,l,L),o.elementType=J,o.lanes=W,o;case H:return o=Wn(19,E,l,L),o.elementType=H,o.lanes=W,o;case X:return zs(E,L,W,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:q=10;break e;case V:q=9;break e;case F:q=11;break e;case Q:q=14;break e;case Z:q=16,T=null;break e}throw Error(i(130,o==null?o:typeof o=="undefined"?"undefined":s(o),""))}return l=Wn(q,E,l,L),l.elementType=o,l.type=T,l.lanes=W,l}function ea(o,l,E,T){return o=Wn(7,o,T,l),o.lanes=E,o}function zs(o,l,E,T){return o=Wn(22,o,T,l),o.elementType=X,o.lanes=E,o.stateNode={isHidden:!1},o}function dc(o,l,E){return o=Wn(6,o,null,l),o.lanes=E,o}function fc(o,l,E){return l=Wn(4,o.children!==null?o.children:[],o.key,l),l.lanes=E,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function ud(o,l,E,T,L){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ii(0),this.expirationTimes=ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function hc(o,l,E,T,L,W,q,ie,fe){return o=new ud(o,l,E,ie,fe),l===1?(l=1,W===!0&&(l|=8)):l=0,W=Wn(3,null,null,l),o.current=W,W.stateNode=o,W.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},ut(W),o}function dd(o,l,E){var T=3l}return!1}function j(o,l,E,T,L,W,q){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=o,this.type=l,this.sanitizeURL=W,this.removeEmptyString=q}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){b[o]=new j(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];b[l]=new j(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){b[o]=new j(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){b[o]=new j(o,2,!1,o,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(o){b[o]=new j(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){b[o]=new j(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){b[o]=new j(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){b[o]=new j(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){b[o]=new j(o,5,!1,o.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function I(o){return o[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(o){var l=o.replace(O,I);b[l]=new j(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(O,I);b[l]=new j(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(O,I);b[l]=new j(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){b[o]=new j(o,1,!1,o.toLowerCase(),null,!1,!1)}),b.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){b[o]=new j(o,1,!1,o.toLowerCase(),null,!0,!0)});function _(o,l,E,T){var L=b.hasOwnProperty(l)?b[l]:null;(L!==null?L.type!==0:T||!(2ie||L[q]!==W[ie]){var fe="\n"+L[q].replace(" at new "," at ");return o.displayName&&fe.includes("")&&(fe=fe.replace("",o.displayName)),fe}while(1<=q&&0<=ie);break}}}finally{ue=!1,Error.prepareStackTrace=E}return(o=o?o.displayName||o.name:"")?ne(o):""}function me(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=ce(o.type,!1),o;case 11:return o=ce(o.type.render,!1),o;case 1:return o=ce(o.type,!0),o;default:return""}}function xe(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case A:return"Portal";case N:return"Profiler";case K:return"StrictMode";case J:return"Suspense";case H:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case V:return(o.displayName||"Context")+".Consumer";case k:return(o._context.displayName||"Context")+".Provider";case F:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Q:return l=o.displayName||null,l!==null?l:xe(o.type)||"Memo";case Z:l=o._payload,o=o._init;try{return xe(o(l))}catch(E){}}return null}function ve(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(l);case 8:return l===K?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function be(o){switch(typeof o=="undefined"?"undefined":s(o)){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function we(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Je(o){var l=we(o)?"checked":"value",E=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),T=""+o[l];if(!o.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,W=E.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return L.call(this)},set:function(ie){T=""+ie,W.call(this,ie)}}),Object.defineProperty(o,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(ie){T=""+ie},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ze(o){o._valueTracker||(o._valueTracker=Je(o))}function Le(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return o&&(T=we(o)?o.checked?"true":"false":o.value),o=T,o!==E?(l.setValue(o),!0):!1}function Be(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(l){return o.body}}function dt(o,l){var E=l.checked;return ee({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:o._wrapperState.initialChecked})}function xt(o,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=be(l.value!=null?l.value:E),o._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function lt(o,l){l=l.checked,l!=null&&_(o,"checked",l,!1)}function rt(o,l){lt(o,l);var E=be(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&o.value===""||o.value!=E)&&(o.value=""+E):o.value!==""+E&&(o.value=""+E);else if(T==="submit"||T==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?Ke(o,l.type,E):l.hasOwnProperty("defaultValue")&&Ke(o,l.type,be(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Re(o,l,E){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var T=l.type;if(!(T!=="submit"&&T!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,E||l===o.value||(o.value=l),o.defaultValue=l}E=o.name,E!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,E!==""&&(o.name=E)}function Ke(o,l,E){(l!=="number"||Be(o.ownerDocument)!==o)&&(E==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+E&&(o.defaultValue=""+E))}var Pe=Array.isArray;function ke(o,l,E,T){if(o=o.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=bt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function ct(o,l){if(l){var E=o.firstChild;if(E&&E===o.lastChild&&E.nodeType===3){E.nodeValue=l;return}}o.textContent=l}var Ge={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},je=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(o){je.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Ge[l]=Ge[o]})});function Qe(o,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Ge.hasOwnProperty(o)&&Ge[o]?(""+l).trim():l+"px"}function vt(o,l){o=o.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Qe(E,l[E],T);E==="float"&&(E="cssFloat"),T?o.setProperty(E,L):o[E]=L}}var Pt=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 zt(o,l){if(l){if(Pt[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(i(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(i(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(l.style!=null&&typeof l.style!="object")throw Error(i(62))}}function en(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){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 Wt=null;function fn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Tn=null,Fn=null,Vn=null;function Eo(o){if(o=Vo(o)){if(typeof Tn!="function")throw Error(i(280));var l=o.stateNode;l&&(l=lo(l),Tn(o.stateNode,o.type,l))}}function bo(o){Fn?Vn?Vn.push(o):Vn=[o]:Fn=o}function Io(){if(Fn){var o=Fn,l=Vn;if(Vn=Fn=null,Eo(o),l)for(o=0;o>>=0,o===0?32:31-(Yi(o)/Qi|0)|0}var lr=64,ua=4194304;function Po(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function da(o,l){var E=o.pendingLanes;if(E===0)return 0;var T=0,L=o.suspendedLanes,W=o.pingedLanes,q=E&268435455;if(q!==0){var ie=q&~L;ie!==0?T=Po(ie):(W&=q,W!==0&&(T=Po(W)))}else q=E&~L,q!==0?T=Po(q):W!==0&&(T=Po(W));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,W=l&-l,L>=W||L===16&&(W&4194240)!==0))return l;if(T&4&&(T|=E&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=T;0E;E++)l.push(o);return l}function Mo(o,l,E){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-On(l),o[l]=E}function tl(o,l){var E=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var T=o.eventTimes;for(o=o.expirationTimes;0=Lo),pi=" ",ba=!1;function fs(o,l){switch(o){case"keyup":return ds.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xl(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Mr=!1;function Cc(o,l){switch(o){case"compositionend":return xl(l);case"keypress":return l.which!==32?null:(ba=!0,pi);case"textInput":return o=l.data,o===pi&&ba?null:o;default:return null}}function gi(o,l){if(Mr)return o==="compositionend"||!Ea&&fs(o,l)?(o=dr(),ur=Ao=wn=null,Mr=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:E,offset:l-o};o=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=ms(E)}}function _a(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?_a(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Pa(){for(var o=window,l=Be();e(l,o.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)o=l.contentWindow;else break;l=Be(o.document)}return l}function bi(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function Cl(o){var l=Pa(),E=o.focusedElem,T=o.selectionRange;if(l!==E&&E&&E.ownerDocument&&_a(E.ownerDocument.documentElement,E)){if(T!==null&&bi(E)){if(l=T.start,o=T.end,o===void 0&&(o=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(o,E.value.length);else if(o=(l=E.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var L=E.textContent.length,W=Math.min(T.start,L);T=T.end===void 0?W:Math.min(T.end,L),!o.extend&&W>T&&(L=T,T=W,W=L),L=Dr(E,W);var q=Dr(E,T);L&&q&&(o.rangeCount!==1||o.anchorNode!==L.node||o.anchorOffset!==L.offset||o.focusNode!==q.node||o.focusOffset!==q.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),o.removeAllRanges(),W>T?(o.addRange(l),o.extend(q.node,q.offset)):(l.setEnd(q.node,q.offset),o.addRange(l)))}}for(l=[],o=E;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Sr=null,vs=null,Ma=null,Uo=!1;function El(o,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Sr==null||Sr!==Be(T)||(T=Sr,"selectionStart"in T&&bi(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),Ma&&No(Ma,T)||(Ma=T,T=wa(vs,"onSelect"),0Lr||(o.current=Ua[Lr],Ua[Lr]=null,Lr--)}function St(o,l){Lr++,Ua[Lr]=o.current,o.current=l}var vr={},Gt=mr(vr),Ht=mr(!1),kr=vr;function Ln(o,l){var E=o.type.contextTypes;if(!E)return vr;var T=o.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},W;for(W in E)L[W]=l[W];return T&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=L),L}function sn(o){return o=o.childContextTypes,o!=null}function Ri(){At(Ht),At(Gt)}function wi(o,l,E){if(Gt.current!==vr)throw Error(i(168));St(Gt,l),St(Ht,E)}function $a(o,l,E){var T=o.stateNode;if(l=l.childContextTypes,typeof T.getChildContext!="function")return E;T=T.getChildContext();for(var L in T)if(!(L in l))throw Error(i(108,ve(o)||"Unknown",L));return ee({},E,T)}function za(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||vr,kr=Gt.current,St(Gt,o),St(Ht,Ht.current),!0}function bs(o,l,E){var T=o.stateNode;if(!T)throw Error(i(169));E?(o=$a(o,l,kr),T.__reactInternalMemoizedMergedChildContext=o,At(Ht),At(Gt),St(Gt,o)):At(Ht),St(Ht,E)}var Dn=null,Wa=!1,Fa=!1;function Tl(o){Dn===null?Dn=[o]:Dn.push(o)}function Va(o){Wa=!0,Tl(o)}function Qn(){if(!Fa&&Dn!==null){Fa=!0;var o=0,l=_t;try{var E=Dn;for(_t=1;o>=q,L-=q,xr=1<<32-On(l)+L|E<pt?(qt=mt,mt=null):qt=mt.sibling;var Ot=De(pe,mt,ge[pt],Ne);if(Ot===null){mt===null&&(mt=qt);break}o&&mt&&Ot.alternate===null&&l(pe,mt),he=W(Ot,he,pt),ht===null?nt=Ot:ht.sibling=Ot,ht=Ot,mt=qt}if(pt===ge.length)return E(pe,mt),Tt&&Zn(pe,pt),nt;if(mt===null){for(;ptpt?(qt=mt,mt=null):qt=mt.sibling;var Co=De(pe,mt,Ot.value,Ne);if(Co===null){mt===null&&(mt=qt);break}o&&mt&&Co.alternate===null&&l(pe,mt),he=W(Co,he,pt),ht===null?nt=Co:ht.sibling=Co,ht=Co,mt=qt}if(Ot.done)return E(pe,mt),Tt&&Zn(pe,pt),nt;if(mt===null){for(;!Ot.done;pt++,Ot=ge.next())Ot=Te(pe,Ot.value,Ne),Ot!==null&&(he=W(Ot,he,pt),ht===null?nt=Ot:ht.sibling=Ot,ht=Ot);return Tt&&Zn(pe,pt),nt}for(mt=T(pe,mt);!Ot.done;pt++,Ot=ge.next())Ot=Ye(mt,pe,pt,Ot.value,Ne),Ot!==null&&(o&&Ot.alternate!==null&&mt.delete(Ot.key===null?pt:Ot.key),he=W(Ot,he,pt),ht===null?nt=Ot:ht.sibling=Ot,ht=Ot);return o&&mt.forEach(function(xd){return l(pe,xd)}),Tt&&Zn(pe,pt),nt}function Vt(pe,he,ge,Ne){if(typeof ge=="object"&&ge!==null&&ge.type===R&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case D:e:{for(var nt=ge.key,ht=he;ht!==null;){if(ht.key===nt){if(nt=ge.type,nt===R){if(ht.tag===7){E(pe,ht.sibling),he=L(ht,ge.props.children),he.return=pe,pe=he;break e}}else if(ht.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Z&&er(nt)===ht.type){E(pe,ht.sibling),he=L(ht,ge.props),he.ref=gr(pe,ht,ge),he.return=pe,pe=he;break e}E(pe,ht);break}else l(pe,ht);ht=ht.sibling}ge.type===R?(he=ea(ge.props.children,pe.mode,Ne,ge.key),he.return=pe,pe=he):(Ne=$s(ge.type,ge.key,ge.props,null,pe.mode,Ne),Ne.ref=gr(pe,he,ge),Ne.return=pe,pe=Ne)}return q(pe);case A:e:{for(ht=ge.key;he!==null;){if(he.key===ht)if(he.tag===4&&he.stateNode.containerInfo===ge.containerInfo&&he.stateNode.implementation===ge.implementation){E(pe,he.sibling),he=L(he,ge.children||[]),he.return=pe,pe=he;break e}else{E(pe,he);break}else l(pe,he);he=he.sibling}he=fc(ge,pe.mode,Ne),he.return=pe,pe=he}return q(pe);case Z:return ht=ge._init,Vt(pe,he,ht(ge._payload),Ne)}if(Pe(ge))return et(pe,he,ge,Ne);if(Y(ge))return tt(pe,he,ge,Ne);qn(pe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,he!==null&&he.tag===6?(E(pe,he.sibling),he=L(he,ge),he.return=pe,pe=he):(E(pe,he),he=dc(ge,pe.mode,Ne),he.return=pe,pe=he),q(pe)):E(pe,he)}return Vt}var tr=fo(!0),jr=fo(!1),zr={},Un=mr(zr),Wr=mr(zr),Go=mr(zr);function yr(o){if(o===zr)throw Error(i(174));return o}function Bi(o,l){switch(St(Go,l),St(Wr,o),St(Un,zr),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Mt(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=Mt(l,o)}At(Un),St(Un,l)}function ho(){At(Un),At(Wr),At(Go)}function Ki(o){yr(Go.current);var l=yr(Un.current),E=Mt(l,o.type);l!==E&&(St(Wr,o),St(Un,E))}function Ha(o){Wr.current===o&&(At(Un),At(Wr))}var Kt=mr(0);function Ya(o){for(var l=o;l!==null;){if(l.tag===13){var E=l.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var nr=[];function mo(){for(var o=0;oE?E:4,o(!0);var T=Qa.transition;Qa.transition={};try{o(!1),l()}finally{_t=E,Qa.transition=T}}function zc(){return $n().memoizedState}function Uu(o,l,E){var T=go(o);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Wc(o))Fc(l,E);else if(E=st(o,l,E,T),E!==null){var L=vn();ir(E,o,T,L),Vc(E,l,T)}}function $u(o,l,E){var T=go(o),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Wc(o))Fc(l,L);else{var W=o.alternate;if(o.lanes===0&&(W===null||W.lanes===0)&&(W=l.lastRenderedReducer,W!==null))try{var q=l.lastRenderedState,ie=W(q,E);if(L.hasEagerState=!0,L.eagerState=ie,an(ie,q)){var fe=l.interleaved;fe===null?(L.next=L,Xe(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(ye){}finally{}E=st(o,l,L,T),E!==null&&(L=vn(),ir(E,o,T,L),Vc(E,l,T))}}function Wc(o){var l=o.alternate;return o===Bt||l!==null&&l===Bt}function Fc(o,l){Li=Yo=!0;var E=o.pending;E===null?l.next=l:(l.next=E.next,E.next=l),o.pending=l}function Vc(o,l,E){if(E&4194240){var T=l.lanes;T&=o.pendingLanes,E|=T,l.lanes=E,si(o,E)}}var Ms={readContext:Fe,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useInsertionEffect:cn,useLayoutEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useMutableSource:cn,useSyncExternalStore:cn,useId:cn,unstable_isNewReconciler:!1},zu={readContext:Fe,useCallback:function(l,E){return Cr().memoizedState=[l,E===void 0?null:E],l},useContext:Fe,useEffect:wc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,_s(4194308,4,Lc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return _s(4194308,4,l,E)},useInsertionEffect:function(l,E){return _s(4,2,l,E)},useMemo:function(l,E){var T=Cr();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=Cr();return E=T!==void 0?T(E):E,L.memoizedState=L.baseState=E,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:E},L.queue=l,l=l.dispatch=Uu.bind(null,Bt,l),[L.memoizedState,l]},useRef:function(l){var E=Cr();return l={current:l},E.memoizedState=l},useState:Ac,useDebugValue:Ul,useDeferredValue:function(l){return Cr().memoizedState=l},useTransition:function(){var l=Ac(!1),E=l[0];return l=Nu.bind(null,l[1]),Cr().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=Bt,W=Cr();if(Tt){if(T===void 0)throw Error(i(407));T=T()}else{if(T=E(),Jt===null)throw Error(i(349));rr&30||Pc(L,E,T)}W.memoizedState=T;var q={value:T,getSnapshot:E};return W.queue=q,wc(Dc.bind(null,L,q,l),[l]),L.flags|=2048,Ui(9,Mc.bind(null,L,q,T,E),void 0,null),T},useId:function(){var l=Cr(),E=Jt.identifierPrefix;if(Tt){var T=pr,L=xr;T=(L&~(1<<32-On(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=ki++,0<\/script>",o=o.removeChild(o.firstChild)):typeof T.is=="string"?o=q.createElement(E,{is:T.is}):(o=q.createElement(E),E==="select"&&(q=o,T.multiple?q.multiple=!0:T.size&&(q.size=T.size))):o=q.createElementNS(o,E),o[Kn]=l,o[Br]=T,lu(o,l,!1,!1),l.stateNode=o;e:{switch(q=en(E,T),E){case"dialog":It("cancel",o),It("close",o),L=T;break;case"iframe":case"object":case"embed":It("load",o),L=T;break;case"video":case"audio":for(L=0;Lei&&(l.flags|=128,T=!0,$i(W,!1),l.lanes=4194304)}else{if(!T)if(o=Ya(q),o!==null){if(l.flags|=128,T=!0,E=o.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),$i(W,!0),W.tail===null&&W.tailMode==="hidden"&&!q.alternate&&!Tt)return un(l),null}else 2*wt()-W.renderingStartTime>ei&&E!==1073741824&&(l.flags|=128,T=!0,$i(W,!1),l.lanes=4194304);W.isBackwards?(q.sibling=l.child,l.child=q):(E=W.last,E!==null?E.sibling=q:l.child=q,W.last=q)}return W.tail!==null?(l=W.tail,W.rendering=l,W.tail=l.sibling,W.renderingStartTime=wt(),l.sibling=null,E=Kt.current,St(Kt,T?E&1|2:E&1),l):(un(l),null);case 22:case 23:return lc(),T=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?Sn&1073741824&&(un(l),l.subtreeFlags&6&&(l.flags|=8192)):un(l),null;case 24:return null;case 25:return null}throw Error(i(156,l.tag))}function Qu(o,l){switch(Os(l),l.tag){case 1:return sn(l.type)&&Ri(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ho(),At(Ht),At(Gt),mo(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Ha(l),null;case 13:if(At(Kt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(i(340));te()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return At(Kt),null;case 4:return ho(),null;case 10:return Ae(l.type._context),null;case 22:case 23:return lc(),null;case 24:return null;default:return null}}var Ts=!1,dn=!1,Zu=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Ja(o,l){var E=o.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){$t(o,l,T)}else E.current=null}function Ql(o,l,E){try{E()}catch(T){$t(o,l,T)}}var du=!1;function Ju(o,l){if(Di=ma,o=Pa(),bi(o)){if("selectionStart"in o)var E={start:o.selectionStart,end:o.selectionEnd};else e:{E=(E=o.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,W=T.focusNode;T=T.focusOffset;try{E.nodeType,W.nodeType}catch(Ne){E=null;break e}var q=0,ie=-1,fe=-1,ye=0,Ie=0,Te=o,De=null;t:for(;;){for(var Ye;Te!==E||L!==0&&Te.nodeType!==3||(ie=q+L),Te!==W||T!==0&&Te.nodeType!==3||(fe=q+T),Te.nodeType===3&&(q+=Te.nodeValue.length),(Ye=Te.firstChild)!==null;)De=Te,Te=Ye;for(;;){if(Te===o)break t;if(De===E&&++ye===L&&(ie=q),De===W&&++Ie===T&&(fe=q),(Ye=Te.nextSibling)!==null)break;Te=De,De=Te.parentNode}Te=Ye}E=ie===-1||fe===-1?null:{start:ie,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Si={focusedElem:o,selectionRange:E},ma=!1,Ze=l;Ze!==null;)if(l=Ze,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Ze=o;else for(;Ze!==null;){l=Ze;try{var et=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var tt=et.memoizedProps,Vt=et.memoizedState,pe=l.stateNode,he=pe.getSnapshotBeforeUpdate(l.elementType===l.type?tt:se(l.type,tt),Vt);pe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var ge=l.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Ne){$t(l,l.return,Ne)}if(o=l.sibling,o!==null){o.return=l.return,Ze=o;break}Ze=l.return}return et=du,du=!1,et}function zi(o,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&o)===o){var W=L.destroy;L.destroy=void 0,W!==void 0&&Ql(l,E,W)}L=L.next}while(L!==T)}}function As(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&o)===o){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Zl(o){var l=o.ref;if(l!==null){var E=o.stateNode;switch(o.tag){case 5:o=E;break;default:o=E}typeof l=="function"?l(o):l.current=o}}function fu(o){var l=o.alternate;l!==null&&(o.alternate=null,fu(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Kn],delete l[Br],delete l[Fo],delete l[Sl],delete l[Es])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function hu(o){return o.tag===5||o.tag===3||o.tag===4}function mu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||hu(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Jl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(o,l):E.insertBefore(o,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(o,E)):(l=E,l.appendChild(o)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=io));else if(T!==4&&(o=o.child,o!==null))for(Jl(o,l,E),o=o.sibling;o!==null;)Jl(o,l,E),o=o.sibling}function ql(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.insertBefore(o,l):E.appendChild(o);else if(T!==4&&(o=o.child,o!==null))for(ql(o,l,E),o=o.sibling;o!==null;)ql(o,l,E),o=o.sibling}var tn=null,or=!1;function vo(o,l,E){for(E=E.child;E!==null;)vu(o,l,E),E=E.sibling}function vu(o,l,E){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(ca,E)}catch(ie){}switch(E.tag){case 5:dn||Ja(E,l);case 6:var T=tn,L=or;tn=null,vo(o,l,E),tn=T,or=L,tn!==null&&(or?(o=tn,E=E.stateNode,o.nodeType===8?o.parentNode.removeChild(E):o.removeChild(E)):tn.removeChild(E.stateNode));break;case 18:tn!==null&&(or?(o=tn,E=E.stateNode,o.nodeType===8?Ai(o.parentNode,E):o.nodeType===1&&Ai(o,E),To(o)):Ai(tn,E.stateNode));break;case 4:T=tn,L=or,tn=E.stateNode.containerInfo,or=!0,vo(o,l,E),tn=T,or=L;break;case 0:case 11:case 14:case 15:if(!dn&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var W=L,q=W.destroy;W=W.tag,q!==void 0&&(W&2||W&4)&&Ql(E,l,q),L=L.next}while(L!==T)}vo(o,l,E);break;case 1:if(!dn&&(Ja(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(ie){$t(E,l,ie)}vo(o,l,E);break;case 21:vo(o,l,E);break;case 22:E.mode&1?(dn=(T=dn)||E.memoizedState!==null,vo(o,l,E),dn=T):vo(o,l,E);break;default:vo(o,l,E)}}function xu(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var E=o.stateNode;E===null&&(E=o.stateNode=new Zu),l.forEach(function(T){var L=sd.bind(null,o,T);E.has(T)||(E.add(T),T.then(L,L))})}}function ar(o,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=q),T&=~W}if(T=L,T=wt()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*ed(T/1960))-T,10o?16:o,po===null)var T=!1;else{if(o=po,po=null,Ls=0,Et&6)throw Error(i(331));var L=Et;for(Et|=4,Ze=o.current;Ze!==null;){var W=Ze,q=W.child;if(Ze.flags&16){var ie=W.deletions;if(ie!==null){for(var fe=0;fewt()-nc?Jo(o,0):tc|=E),En(o,l)}function Du(o,l){l===0&&(o.mode&1?(l=ua,ua<<=1,!(ua&130023424)&&(ua=4194304)):l=1);var E=vn();o=it(o,l),o!==null&&(Mo(o,l,E),En(o,E))}function id(o){var l=o.memoizedState,E=0;l!==null&&(E=l.retryLane),Du(o,E)}function sd(o,l){var E=0;switch(o.tag){case 13:var T=o.stateNode,L=o.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=o.stateNode;break;default:throw Error(i(314))}T!==null&&T.delete(l),Du(o,E)}var Su;Su=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||Ht.current)yn=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return yn=!1,Hu(l,E,T);yn=!!(l.flags&131072)}else yn=!1,Tt&&E.flags&1048576&&Al(E,Xa,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;Ss(l,E),l=E.pendingProps;var W=Ln(E,Gt.current);$e(E,T),W=Bl(null,E,L,l,W,T);var q=Kl();return E.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,sn(L)?(q=!0,za(E)):q=!1,E.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,ut(E),W.updater=Jn,E.stateNode=W,W._reactInternals=E,$r(E,L,l,T),E=Fl(null,E,L,!0,q,T)):(E.tag=0,Tt&&q&&Is(E),mn(null,E,W,T),E=E.child),E;case 16:L=E.elementType;e:{switch(Ss(l,E),l=E.pendingProps,W=L._init,L=W(L._payload),E.type=L,W=E.tag=cd(L),l=se(L,l),W){case 0:E=Wl(null,E,L,l,T);break e;case 1:E=nu(null,E,L,l,T);break e;case 11:E=Zc(null,E,L,l,T);break e;case 14:E=Jc(null,E,L,se(L.type,l),T);break e}throw Error(i(306,L,""))}return E;case 0:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Wl(l,E,L,W,T);case 1:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),nu(l,E,L,W,T);case 3:e:{if(ru(E),l===null)throw Error(i(387));L=E.pendingProps,q=E.memoizedState,W=q.element,jt(l,E),Lt(E,L,null,T);var ie=E.memoizedState;if(L=ie.element,q.isDehydrated)if(q={element:L,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=q,E.memoizedState=q,E.flags&256){W=Za(Error(i(423)),E),E=ou(l,E,L,T,W);break e}else if(L!==W){W=Za(Error(i(424)),E),E=ou(l,E,L,T,W);break e}else for(jn=Gn(E.stateNode.containerInfo.firstChild),gn=E,Tt=!0,kn=null,T=jr(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(te(),L===W){E=Fr(l,E,T);break e}mn(l,E,L,T)}E=E.child}return E;case 5:return Ki(E),l===null&&U(E),L=E.type,W=E.pendingProps,q=l!==null?l.memoizedProps:null,ie=W.children,Ka(L,W)?ie=null:q!==null&&Ka(L,q)&&(E.flags|=32),tu(l,E),mn(l,E,ie,T),E.child;case 6:return l===null&&U(E),null;case 13:return au(l,E,T);case 4:return Bi(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=tr(E,null,L,T):mn(l,E,L,T),E.child;case 11:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Zc(l,E,L,W,T);case 7:return mn(l,E,E.pendingProps,T),E.child;case 8:return mn(l,E,E.pendingProps.children,T),E.child;case 12:return mn(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,W=E.pendingProps,q=E.memoizedProps,ie=W.value,St(de,L._currentValue),L._currentValue=ie,q!==null)if(an(q.value,ie)){if(q.children===W.children&&!Ht.current){E=Fr(l,E,T);break e}}else for(q=E.child,q!==null&&(q.return=E);q!==null;){var fe=q.dependencies;if(fe!==null){ie=q.child;for(var ye=fe.firstContext;ye!==null;){if(ye.context===L){if(q.tag===1){ye=Ct(-1,T&-T),ye.tag=2;var Ie=q.updateQueue;if(Ie!==null){Ie=Ie.shared;var Te=Ie.pending;Te===null?ye.next=ye:(ye.next=Te.next,Te.next=ye),Ie.pending=ye}}q.lanes|=T,ye=q.alternate,ye!==null&&(ye.lanes|=T),Ue(q.return,T,E),fe.lanes|=T;break}ye=ye.next}}else if(q.tag===10)ie=q.type===E.type?null:q.child;else if(q.tag===18){if(ie=q.return,ie===null)throw Error(i(341));ie.lanes|=T,fe=ie.alternate,fe!==null&&(fe.lanes|=T),Ue(ie,T,E),ie=q.sibling}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===E){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}mn(l,E,W.children,T),E=E.child}return E;case 9:return W=E.type,L=E.pendingProps.children,$e(E,T),W=Fe(W),L=L(W),E.flags|=1,mn(l,E,L,T),E.child;case 14:return L=E.type,W=se(L,E.pendingProps),W=se(L.type,W),Jc(l,E,L,W,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Ss(l,E),E.tag=1,sn(L)?(l=!0,za(E)):l=!1,$e(E,T),Xo(E,L,W),$r(E,L,W,T),Fl(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(i(156,E.tag))};function Tu(o,l){return ae(o,l)}function ld(o,l,E,T){this.tag=o,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(o,l,E,T){return new ld(o,l,E,T)}function uc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cd(o){if(typeof o=="function")return uc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===F)return 11;if(o===Q)return 14}return 2}function yo(o,l){var E=o.alternate;return E===null?(E=Wn(o.tag,l,o.key,o.mode),E.elementType=o.elementType,E.type=o.type,E.stateNode=o.stateNode,E.alternate=o,o.alternate=E):(E.pendingProps=l,E.type=o.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=o.flags&14680064,E.childLanes=o.childLanes,E.lanes=o.lanes,E.child=o.child,E.memoizedProps=o.memoizedProps,E.memoizedState=o.memoizedState,E.updateQueue=o.updateQueue,l=o.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=o.sibling,E.index=o.index,E.ref=o.ref,E}function $s(o,l,E,T,L,W){var q=2;if(T=o,typeof o=="function")uc(o)&&(q=1);else if(typeof o=="string")q=5;else e:switch(o){case R:return ea(E.children,L,W,l);case K:q=8,L|=8;break;case N:return o=Wn(12,E,l,L|2),o.elementType=N,o.lanes=W,o;case J:return o=Wn(13,E,l,L),o.elementType=J,o.lanes=W,o;case H:return o=Wn(19,E,l,L),o.elementType=H,o.lanes=W,o;case X:return zs(E,L,W,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:q=10;break e;case V:q=9;break e;case F:q=11;break e;case Q:q=14;break e;case Z:q=16,T=null;break e}throw Error(i(130,o==null?o:typeof o=="undefined"?"undefined":s(o),""))}return l=Wn(q,E,l,L),l.elementType=o,l.type=T,l.lanes=W,l}function ea(o,l,E,T){return o=Wn(7,o,T,l),o.lanes=E,o}function zs(o,l,E,T){return o=Wn(22,o,T,l),o.elementType=X,o.lanes=E,o.stateNode={isHidden:!1},o}function dc(o,l,E){return o=Wn(6,o,null,l),o.lanes=E,o}function fc(o,l,E){return l=Wn(4,o.children!==null?o.children:[],o.key,l),l.lanes=E,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function ud(o,l,E,T,L){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ii(0),this.expirationTimes=ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function hc(o,l,E,T,L,W,q,ie,fe){return o=new ud(o,l,E,ie,fe),l===1?(l=1,W===!0&&(l|=8)):l=0,W=Wn(3,null,null,l),o.current=W,W.stateNode=o,W.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},ut(W),o}function dd(o,l,E){var T=3=0;--ee){var oe=this.tryEntries[ee],ne=oe.completion;if(oe.tryLoc==="root")return Y("end");if(oe.tryLoc<=this.prev){var ue=r.call(oe,"catchLoc"),ce=r.call(oe,"finallyLoc");if(ue&&ce){if(this.prev=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--z){var Y=this.tryEntries[z];if(Y.finallyLoc===X)return this.complete(Y.completion,Y.afterLoc),F(Y),j}},catch:function(Z){for(var X=this.tryEntries.length-1;X>=0;--X){var z=this.tryEntries[X];if(z.tryLoc===Z){var Y=z.completion;if(Y.type==="throw"){var ee=Y.arg;F(z)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(X,z,Y){return this.delegate={iterator:H(X),resultName:z,nextLoc:Y},this.method==="next"&&(this.arg=a),j}},s}(P.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},95565:function(P,y){"use strict";/** + */function t(z){"@swc/helpers - typeof";return z&&typeof Symbol!="undefined"&&z.constructor===Symbol?"symbol":typeof z}var e=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),u=Symbol.iterator;function m(z){return z===null||typeof z!="object"?null:(z=u&&z[u]||z["@@iterator"],typeof z=="function"?z:null)}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d=Object.assign,p={};function C(z,Y,ee){this.props=z,this.context=Y,this.refs=p,this.updater=ee||c}C.prototype.isReactComponent={},C.prototype.setState=function(z,Y){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Y,"setState")},C.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=C.prototype;function b(z,Y,ee){this.props=z,this.context=Y,this.refs=p,this.updater=ee||c}var O=b.prototype=new j;O.constructor=b,d(O,C.prototype),O.isPureReactComponent=!0;var I=Array.isArray,_=Object.prototype.hasOwnProperty,M={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function A(z,Y,ee){var oe,ne={},ue=null,ce=null;if(Y!=null)for(oe in Y.ref!==void 0&&(ce=Y.ref),Y.key!==void 0&&(ue=""+Y.key),Y)_.call(Y,oe)&&!D.hasOwnProperty(oe)&&(ne[oe]=Y[oe]);var me=arguments.length-2;if(me===1)ne.children=ee;else if(1=0;--ee){var oe=this.tryEntries[ee],ne=oe.completion;if(oe.tryLoc==="root")return Y("end");if(oe.tryLoc<=this.prev){var ue=r.call(oe,"catchLoc"),ce=r.call(oe,"finallyLoc");if(ue&&ce){if(this.prev=0;--Y){var ee=this.tryEntries[Y];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--z){var Y=this.tryEntries[z];if(Y.finallyLoc===X)return this.complete(Y.completion,Y.afterLoc),F(Y),j}},catch:function(Z){for(var X=this.tryEntries.length-1;X>=0;--X){var z=this.tryEntries[X];if(z.tryLoc===Z){var Y=z.completion;if(Y.type==="throw"){var ee=Y.arg;F(z)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(X,z,Y){return this.delegate={iterator:H(X),resultName:z,nextLoc:Y},this.method==="next"&&(this.arg=a),j}},s}(P.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},95565:function(P,y){"use strict";/** * @license React * scheduler.production.min.js * @@ -30,29 +30,29 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function t(H,Q){var Z=H.length;H.push(Q);e:for(;0>>1,z=H[X];if(0>>1;Xn(oe,Z))nen(ue,oe)?(H[X]=ue,H[ne]=Z,X=ne):(H[X]=oe,H[ee]=Z,X=ee);else if(nen(ue,Z))H[X]=ue,H[ne]=Z,X=ne;else break e}}return Q}function n(H,Q){var Z=H.sortIndex-Q.sortIndex;return Z!==0?Z:H.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;y.unstable_now=function(){return r.now()}}else{var i=Date,a=i.now();y.unstable_now=function(){return i.now()-a}}var g=[],x=[],f=1,m=null,v=3,u=!1,h=!1,c=!1,d=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(H){for(var Q=e(x);Q!==null;){if(Q.callback===null)s(x);else if(Q.startTime<=H)s(x),Q.sortIndex=Q.expirationTime,t(g,Q);else break;Q=e(x)}}function b(H){if(c=!1,j(H),!h)if(e(g)!==null)h=!0,F(I);else{var Q=e(x);Q!==null&&J(b,Q.startTime-H)}}function I(H,Q){h=!1,c&&(c=!1,p(M),M=-1),u=!0;var Z=v;try{for(j(Q),m=e(g);m!==null&&(!(m.expirationTime>Q)||H&&!R());){var X=m.callback;if(typeof X=="function"){m.callback=null,v=m.priorityLevel;var z=X(m.expirationTime<=Q);Q=y.unstable_now(),typeof z=="function"?m.callback=z:m===e(g)&&s(g),j(Q)}else s(g);m=e(g)}if(m!==null)var Y=!0;else{var ee=e(x);ee!==null&&J(b,ee.startTime-Q),Y=!1}return Y}finally{m=null,v=Z,u=!1}}var O=!1,_=null,M=-1,D=5,A=-1;function R(){return!(y.unstable_now()-AH||125X?(H.sortIndex=Z,t(x,H),e(g)===null&&H===e(x)&&(c?(p(M),M=-1):c=!0,J(b,Z-X))):(H.sortIndex=z,t(g,H),h||u||(h=!0,F(I))),H},y.unstable_shouldYield=R,y.unstable_wrapCallback=function(H){var Q=v;return function(){var Z=v;v=Q;try{return H.apply(this,arguments)}finally{v=Z}}}},7864:function(P,y,t){"use strict";P.exports=t(95565)},80408:function(){self.fetch||(self.fetch=function(P,y){return y=y||{},new Promise(function(t,e){var s=new XMLHttpRequest,n=[],r={},i=function g(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:g,headers:{keys:function(){return n},entries:function(){return n.map(function(f){return[f,s.getResponseHeader(f)]})},get:function(f){return s.getResponseHeader(f)},has:function(f){return s.getResponseHeader(f)!=null}}}};for(var a in s.open(y.method||"get",P,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(i())},s.onerror=e,s.withCredentials=y.credentials=="include",y.headers)s.setRequestHeader(a,y.headers[a]);s.send(y.body||null)})})},11358:function(P,y,t){"use strict";t.d(y,{OY:function(){return C},TS:function(){return h},Tj:function(){return a},Ul:function(){return f},hS:function(){return c},pb:function(){return i}});/** + */function t(H,Q){var Z=H.length;H.push(Q);e:for(;0>>1,z=H[X];if(0>>1;Xn(oe,Z))nen(ue,oe)?(H[X]=ue,H[ne]=Z,X=ne):(H[X]=oe,H[ee]=Z,X=ee);else if(nen(ue,Z))H[X]=ue,H[ne]=Z,X=ne;else break e}}return Q}function n(H,Q){var Z=H.sortIndex-Q.sortIndex;return Z!==0?Z:H.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;y.unstable_now=function(){return r.now()}}else{var i=Date,a=i.now();y.unstable_now=function(){return i.now()-a}}var g=[],x=[],f=1,h=null,v=3,u=!1,m=!1,c=!1,d=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(H){for(var Q=e(x);Q!==null;){if(Q.callback===null)s(x);else if(Q.startTime<=H)s(x),Q.sortIndex=Q.expirationTime,t(g,Q);else break;Q=e(x)}}function b(H){if(c=!1,j(H),!m)if(e(g)!==null)m=!0,F(O);else{var Q=e(x);Q!==null&&J(b,Q.startTime-H)}}function O(H,Q){m=!1,c&&(c=!1,p(M),M=-1),u=!0;var Z=v;try{for(j(Q),h=e(g);h!==null&&(!(h.expirationTime>Q)||H&&!R());){var X=h.callback;if(typeof X=="function"){h.callback=null,v=h.priorityLevel;var z=X(h.expirationTime<=Q);Q=y.unstable_now(),typeof z=="function"?h.callback=z:h===e(g)&&s(g),j(Q)}else s(g);h=e(g)}if(h!==null)var Y=!0;else{var ee=e(x);ee!==null&&J(b,ee.startTime-Q),Y=!1}return Y}finally{h=null,v=Z,u=!1}}var I=!1,_=null,M=-1,D=5,A=-1;function R(){return!(y.unstable_now()-AH||125X?(H.sortIndex=Z,t(x,H),e(g)===null&&H===e(x)&&(c?(p(M),M=-1):c=!0,J(b,Z-X))):(H.sortIndex=z,t(g,H),m||u||(m=!0,F(O))),H},y.unstable_shouldYield=R,y.unstable_wrapCallback=function(H){var Q=v;return function(){var Z=v;v=Q;try{return H.apply(this,arguments)}finally{v=Z}}}},7864:function(P,y,t){"use strict";P.exports=t(95565)},80408:function(){self.fetch||(self.fetch=function(P,y){return y=y||{},new Promise(function(t,e){var s=new XMLHttpRequest,n=[],r={},i=function g(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:g,headers:{keys:function(){return n},entries:function(){return n.map(function(f){return[f,s.getResponseHeader(f)]})},get:function(f){return s.getResponseHeader(f)},has:function(f){return s.getResponseHeader(f)!=null}}}};for(var a in s.open(y.method||"get",P,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(i())},s.onerror=e,s.withCredentials=y.credentials=="include",y.headers)s.setRequestHeader(a,y.headers[a]);s.send(y.body||null)})})},11358:function(P,y,t){"use strict";t.d(y,{OY:function(){return C},TS:function(){return m},Tj:function(){return a},Ul:function(){return f},hS:function(){return c},pb:function(){return i}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(M,D){(D==null||D>M.length)&&(D=M.length);for(var A=0,R=new Array(D);A=M.length?{done:!0}:{done:!1,value:M[R++]}}}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(M){return function(D){if(D==null)return D;if(Array.isArray(D)){for(var A=[],R=0;RV)return 1}return 0},f=function(){for(var M=arguments.length,D=new Array(M),A=0;A>1,V=M(D[F]),VR?F:F+1},b=function(M){return function(D,A){var R=[].concat(D);return R.splice(j(M,D,A),0,A),R}},I=function(M,D){for(var A=[],R=[],K=D,N=r(M),k;!(k=N()).done;){var V=k.value;R.push(V),K--,K||(K=D,A.push(R),R=[])}return R.length&&A.push(R),A},O=function(M){return typeof M=="object"&&M!==null},_=function(){for(var M=arguments.length,D=new Array(M),A=0;AM.length)&&(D=M.length);for(var A=0,R=new Array(D);A=M.length?{done:!0}:{done:!1,value:M[R++]}}}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(M){return function(D){if(D==null)return D;if(Array.isArray(D)){for(var A=[],R=0;RV)return 1}return 0},f=function(){for(var M=arguments.length,D=new Array(M),A=0;A>1,V=M(D[F]),VR?F:F+1},b=function(M){return function(D,A){var R=[].concat(D);return R.splice(j(M,D,A),0,A),R}},O=function(M,D){for(var A=[],R=[],K=D,N=r(M),k;!(k=N()).done;){var V=k.value;R.push(V),K--,K||(K=D,A.push(R),R=[])}return R.length&&A.push(R),A},I=function(M){return typeof M=="object"&&M!==null},_=function(){for(var M=arguments.length,D=new Array(M),A=0;A1?a-1:0),x=1;x1?a-1:0),x=1;xg.length)&&(x=g.length);for(var f=0,m=new Array(x);f=g.length?{done:!0}:{done:!1,value:g[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.")}var r=void 0,i=function(){for(var g=arguments.length,x=new Array(g),f=0;f1?u-1:0),c=1;c1?h-1:0),d=1;dg.length)&&(x=g.length);for(var f=0,h=new Array(x);f=g.length?{done:!0}:{done:!1,value:g[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 r=void 0,i=function(){for(var g=arguments.length,x=new Array(g),f=0;f1?u-1:0),c=1;c1?m-1:0),d=1;du.length)&&(h=u.length);for(var c=0,d=new Array(h);c=u.length?{done:!0}:{done:!1,value:u[d++]}}}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(u,h,c){return uc?c:u},i=function(u){return u<0?0:u>1?1:u},a=function(u,h,c){return(u-h)/(c-h)},g=function(u,h){if(!u||isNaN(u))return u;var c,d,p,C;return h|=0,c=Math.pow(10,h),u*=c,C=+(u>0)|-(u<0),p=Math.abs(u%1)>=.4999999999854481,d=Math.floor(u),p&&(u=d+(C>0)),(p?u:Math.round(u))/c},x=function(u,h){return h===void 0&&(h=0),Number(u).toFixed(Math.max(h,0))},f=function(u,h){return h&&u>=h[0]&&u<=h[1]},m=function(u,h){for(var c=n(Object.keys(h)),d;!(d=c()).done;){var p=d.value,C=h[p];if(f(u,C))return p}},v=function(u){return Math.floor(u)!==u&&u.toString().split(".")[1].length||0}},3710:function(P,y,t){"use strict";t.d(y,{k:function(){return m}});/** + */function e(u,m){(m==null||m>u.length)&&(m=u.length);for(var c=0,d=new Array(m);c=u.length?{done:!0}:{done:!1,value:u[d++]}}}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(u,m,c){return uc?c:u},i=function(u){return u<0?0:u>1?1:u},a=function(u,m,c){return(u-m)/(c-m)},g=function(u,m){if(!u||isNaN(u))return u;var c,d,p,C;return m|=0,c=Math.pow(10,m),u*=c,C=+(u>0)|-(u<0),p=Math.abs(u%1)>=.4999999999854481,d=Math.floor(u),p&&(u=d+(C>0)),(p?u:Math.round(u))/c},x=function(u,m){return m===void 0&&(m=0),Number(u).toFixed(Math.max(m,0))},f=function(u,m){return m&&u>=m[0]&&u<=m[1]},h=function(u,m){for(var c=n(Object.keys(m)),d;!(d=c()).done;){var p=d.value,C=m[p];if(f(u,C))return p}},v=function(u){return Math.floor(u)!==u&&u.toString().split(".")[1].length||0}},3710:function(P,y,t){"use strict";t.d(y,{k:function(){return h}});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. @@ -60,7 +60,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e,s=60,n=1e3/s,r=!!((e=window.performance)!=null&&e.now),i={},a={},g=function(v,u){},x=function(v,u){if(0)var h,c,d},f=function(v){var u=v/n;return v.toFixed(v<10?1:0)+"ms ("+u.toFixed(2)+" frames)"},m={mark:g,measure:x}},84352:function(P,y,t){"use strict";t.d(y,{Ly:function(){return e},a_:function(){return n},b5:function(){return r}});/** + */var e,s=60,n=1e3/s,r=!!((e=window.performance)!=null&&e.now),i={},a={},g=function(v,u){},x=function(v,u){if(0)var m,c,d},f=function(v){var u=v/n;return v.toFixed(v<10?1:0)+"ms ("+u.toFixed(2)+" frames)"},h={mark:g,measure:x}},84352:function(P,y,t){"use strict";t.d(y,{Ly:function(){return e},a_:function(){return n},b5:function(){return r}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -68,17 +68,17 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(f,m){(m==null||m>f.length)&&(m=f.length);for(var v=0,u=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[u++]}}}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(f,m){if(m)return m(i)(f);var v,u=[],h=function(){return v},c=function(p){u.push(p)},d=function(p){v=f(v,p);for(var C=0;C1?c-1:0),p=1;p1?_-1:0),D=1;D<_;D++)M[D-1]=arguments[D];throw new Error("Dispatching while constructing your middleware is not allowed.")},b={getState:C.getState,dispatch:function(O){for(var _=arguments.length,M=new Array(_>1?_-1:0),D=1;D<_;D++)M[D-1]=arguments[D];return j.apply(void 0,[].concat([O],M))}},I=m.map(function(O){return O(b)});return j=I.reduceRight(function(O,_){return _(O)},C.dispatch),s({},C,{dispatch:j})}}},g=function(f){var m=Object.keys(f);return function(v,u){v===void 0&&(v={});for(var h=s({},v),c=!1,d=r(m),p;!(p=d()).done;){var C=p.value,j=f[C],b=v[C],I=j(b,u);b!==I&&(c=!0,h[C]=I)}return c?h:v}},x=function(f,m){var v=function(){for(var u=arguments.length,h=new Array(u),c=0;cf.length)&&(h=f.length);for(var v=0,u=new Array(h);v=f.length?{done:!0}:{done:!1,value:f[u++]}}}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(f,h){if(h)return h(i)(f);var v,u=[],m=function(){return v},c=function(p){u.push(p)},d=function(p){v=f(v,p);for(var C=0;C1?c-1:0),p=1;p1?_-1:0),D=1;D<_;D++)M[D-1]=arguments[D];throw new Error("Dispatching while constructing your middleware is not allowed.")},b={getState:C.getState,dispatch:function(I){for(var _=arguments.length,M=new Array(_>1?_-1:0),D=1;D<_;D++)M[D-1]=arguments[D];return j.apply(void 0,[].concat([I],M))}},O=h.map(function(I){return I(b)});return j=O.reduceRight(function(I,_){return _(I)},C.dispatch),s({},C,{dispatch:j})}}},g=function(f){var h=Object.keys(f);return function(v,u){v===void 0&&(v={});for(var m=s({},v),c=!1,d=r(h),p;!(p=d()).done;){var C=p.value,j=f[C],b=v[C],O=j(b,u);b!==O&&(c=!0,m[C]=O)}return c?m:v}},x=function(f,h){var v=function(){for(var u=arguments.length,m=new Array(u),c=0;c0&&D[D.length-1])&&(k[0]===6||k[0]===2)){R=0;continue}if(k[0]===3&&(!D||k[1]>D[0]&&k[1]0&&D[D.length-1])&&(k[0]===6||k[0]===2)){R=0;continue}if(k[0]===3&&(!D||k[1]>D[0]&&k[1]h.length)&&(c=h.length);for(var d=0,p=new Array(c);d=h.length?{done:!0}:{done:!1,value:h[p++]}}}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(h){if(Array.isArray(h))return r(h.join(""));for(var c=h.split("\n"),d,p=n(c),C;!(C=p()).done;)for(var j=C.value,b=0;b",apos:"'"};return h.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(p,C){return d[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var j=parseInt(C,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var j=parseInt(C,16);return String.fromCharCode(j)})},u=function(h){return Object.keys(h).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(h[c])}).join("&")}},68554:function(P,y,t){"use strict";t.d(y,{CO:function(){return a},Jk:function(){return u},Xd:function(){return m},Z4:function(){return g},tk:function(){return x}});var e=t(11358);/** + */function e(m,c){(c==null||c>m.length)&&(c=m.length);for(var d=0,p=new Array(c);d=m.length?{done:!0}:{done:!1,value:m[p++]}}}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(m){if(Array.isArray(m))return r(m.join(""));for(var c=m.split("\n"),d,p=n(c),C;!(C=p()).done;)for(var j=C.value,b=0;b",apos:"'"};return m.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(p,C){return d[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var j=parseInt(C,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var j=parseInt(C,16);return String.fromCharCode(j)})},u=function(m){return Object.keys(m).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(m[c])}).join("&")}},68554:function(P,y,t){"use strict";t.d(y,{CO:function(){return a},Jk:function(){return u},Xd:function(){return h},Z4:function(){return g},tk:function(){return x}});var e=t(11358);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -86,11 +86,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var s=function(c,d){return c+d},n=function(c,d){return c-d},r=function(c,d){return c*d},i=function(c,d){return c/d},a=function(){for(var c=arguments.length,d=new Array(c),p=0;px.length)&&(f=x.length);for(var m=0,v=new Array(f);m=x.length?{done:!0}:{done:!1,value:x[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],i={},a=function(x){return i[x]||x},g=function(x){return function(f){return function(m){var v=m.type,u=m.payload;if(v==="asset/stylesheet"){Byond.loadCss(u);return}if(v==="asset/mappings"){for(var h=function(){var p=d.value;if(r.some(function(b){return b.test(p)}))return"continue";var C=u[p],j=p.split(".").pop();i[p]=C,j==="css"&&Byond.loadCss(C),j==="js"&&Byond.loadJs(C)},c=n(Object.keys(u)),d;!(d=c()).done;)h();return}f(m)}}}},4413:function(P,y,t){"use strict";t.d(y,{H$:function(){return c},J3:function(){return h},JV:function(){return C},Oc:function(){return D},QY:function(){return R},Ul:function(){return A},jB:function(){return I},pX:function(){return O}});var e=t(3710),s=t(40001),n=t(58463),r=t(80116),i=t(46989),a=t(47868),g=t(17002);/** + */function e(x,f){(f==null||f>x.length)&&(f=x.length);for(var h=0,v=new Array(f);h=x.length?{done:!0}:{done:!1,value:x[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],i={},a=function(x){return i[x]||x},g=function(x){return function(f){return function(h){var v=h.type,u=h.payload;if(v==="asset/stylesheet"){Byond.loadCss(u);return}if(v==="asset/mappings"){for(var m=function(){var p=d.value;if(r.some(function(b){return b.test(p)}))return"continue";var C=u[p],j=p.split(".").pop();i[p]=C,j==="css"&&Byond.loadCss(C),j==="js"&&Byond.loadJs(C)},c=n(Object.keys(u)),d;!(d=c()).done;)m();return}f(h)}}}},4413:function(P,y,t){"use strict";t.d(y,{H$:function(){return c},J3:function(){return m},JV:function(){return C},Oc:function(){return D},QY:function(){return R},Ul:function(){return A},jB:function(){return O},pX:function(){return I}});var e=t(3710),s=t(40001),n=t(58463),r=t(80116),i=t(46989),a=t(47868),g=t(17002);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -101,33 +101,33 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function x(k,V){(V==null||V>k.length)&&(V=k.length);for(var F=0,J=new Array(V);F=k.length?{done:!0}:{done:!1,value:k[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.")}var u=(0,a.h)("backend"),h,c=function(k){h=k},d=(0,s.VP)("backend/update"),p=(0,s.VP)("backend/setSharedState"),C=(0,s.VP)("backend/suspendStart"),j=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},b={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},I=function(k,V){k===void 0&&(k=b);var F=V.type,J=V.payload;if(F==="backend/update"){var H=f({},k.config,J.config),Q=f({},k.data,J.static_data,J.data),Z=f({},k.shared);if(J.shared)for(var X=v(Object.keys(J.shared)),z;!(z=X()).done;){var Y=z.value,ee=J.shared[Y];ee===""?Z[Y]=void 0:Z[Y]=JSON.parse(ee)}return f({},k,{config:H,data:Q,shared:Z,suspended:!1})}if(F==="backend/setSharedState"){var oe=J.key,ne=J.nextState,ue;return f({},k,{shared:f({},k.shared,(ue={},ue[oe]=ne,ue))})}if(F==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),F==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),F==="backend/suspendStart")return f({},k,{suspending:!0});if(F==="backend/suspendSuccess"){var ce=J.timestamp;return f({},k,{data:{},shared:{},config:f({},k.config,{title:"",status:1}),suspending:!1,suspended:ce})}return k},O=function(k){var V,F;return function(J){return function(H){var Q=M(k.getState()).suspended,Z=H.type,X=H.payload;if(Z==="update"){k.dispatch(d(X));return}if(Z==="suspend"){k.dispatch(j());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"&&!F){u.log("suspending ("+Byond.windowId+")");var z=function(){return Byond.sendMessage("suspend")};z(),F=setInterval(z,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(F),F=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,i.$)()})),Z==="backend/update"){var Y,ee,oe=(ee=X.config)==null||(Y=ee.window)==null?void 0:Y.fancy;V===void 0?V=oe:V!==oe&&(u.log("changing fancy mode to",oe),V=oe,Byond.winset(Byond.windowId,{titlebar:!oe,"can-resize":!oe}))}return Z==="backend/update"&&Q&&(u.log("backend/update",X),(0,g.P7)(),(0,n.MN)(),setImmediate(function(){e.k.mark("resume/start");var ne=M(k.getState()).suspended;ne||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),J(H)}}},_=function(k,V){V===void 0&&(V={});var F=typeof V=="object"&&V!==null&&!Array.isArray(V);if(!F){u.error("Payload for act() must be an object, got this:",V);return}Byond.sendMessage("act/"+k,V)},M=function(k){return k.backend||{}},D=function(){var k,V=h==null||(k=h.getState())==null?void 0:k.backend;return f({},V,{act:_})},A=function(k,V){var F,J=h==null||(F=h.getState())==null?void 0:F.backend,H,Q=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Q?Q[k]:V;return[Z,function(X){h.dispatch(p({key:k,nextState:typeof X=="function"?X(Z):X}))}]},R=function(k,V){var F,J=h==null||(F=h.getState())==null?void 0:F.backend,H,Q=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Q?Q[k]:V;return[Z,function(X){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof X=="function"?X(Z):X)||""})}]},K=function(){return h.dispatch},N=function(k){return k(h==null?void 0:h.getState())}},60001:function(P,y,t){"use strict";t.d(y,{Fl:function(){return O},WP:function(){return _},az:function(){return M},zA:function(){return m}});var e=t(84352),s=t(44583),n=t(1568),r=t(47868);/** + */function x(k,V){(V==null||V>k.length)&&(V=k.length);for(var F=0,J=new Array(V);F=k.length?{done:!0}:{done:!1,value:k[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.")}var u=(0,a.h)("backend"),m,c=function(k){m=k},d=(0,s.VP)("backend/update"),p=(0,s.VP)("backend/setSharedState"),C=(0,s.VP)("backend/suspendStart"),j=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},b={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},O=function(k,V){k===void 0&&(k=b);var F=V.type,J=V.payload;if(F==="backend/update"){var H=f({},k.config,J.config),Q=f({},k.data,J.static_data,J.data),Z=f({},k.shared);if(J.shared)for(var X=v(Object.keys(J.shared)),z;!(z=X()).done;){var Y=z.value,ee=J.shared[Y];ee===""?Z[Y]=void 0:Z[Y]=JSON.parse(ee)}return f({},k,{config:H,data:Q,shared:Z,suspended:!1})}if(F==="backend/setSharedState"){var oe=J.key,ne=J.nextState,ue;return f({},k,{shared:f({},k.shared,(ue={},ue[oe]=ne,ue))})}if(F==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),F==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),F==="backend/suspendStart")return f({},k,{suspending:!0});if(F==="backend/suspendSuccess"){var ce=J.timestamp;return f({},k,{data:{},shared:{},config:f({},k.config,{title:"",status:1}),suspending:!1,suspended:ce})}return k},I=function(k){var V,F;return function(J){return function(H){var Q=M(k.getState()).suspended,Z=H.type,X=H.payload;if(Z==="update"){k.dispatch(d(X));return}if(Z==="suspend"){k.dispatch(j());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"&&!F){u.log("suspending ("+Byond.windowId+")");var z=function(){return Byond.sendMessage("suspend")};z(),F=setInterval(z,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(F),F=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,i.$)()})),Z==="backend/update"){var Y,ee,oe=(ee=X.config)==null||(Y=ee.window)==null?void 0:Y.fancy;V===void 0?V=oe:V!==oe&&(u.log("changing fancy mode to",oe),V=oe,Byond.winset(Byond.windowId,{titlebar:!oe,"can-resize":!oe}))}return Z==="backend/update"&&Q&&(u.log("backend/update",X),(0,g.P7)(),(0,n.MN)(),setImmediate(function(){e.k.mark("resume/start");var ne=M(k.getState()).suspended;ne||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),J(H)}}},_=function(k,V){V===void 0&&(V={});var F=typeof V=="object"&&V!==null&&!Array.isArray(V);if(!F){u.error("Payload for act() must be an object, got this:",V);return}Byond.sendMessage("act/"+k,V)},M=function(k){return k.backend||{}},D=function(){var k,V=m==null||(k=m.getState())==null?void 0:k.backend;return f({},V,{act:_})},A=function(k,V){var F,J=m==null||(F=m.getState())==null?void 0:F.backend,H,Q=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Q?Q[k]:V;return[Z,function(X){m.dispatch(p({key:k,nextState:typeof X=="function"?X(Z):X}))}]},R=function(k,V){var F,J=m==null||(F=m.getState())==null?void 0:F.backend,H,Q=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Q?Q[k]:V;return[Z,function(X){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof X=="function"?X(Z):X)||""})}]},K=function(){return m.dispatch},N=function(k){return k(m==null?void 0:m.getState())}},60001:function(P,y,t){"use strict";t.d(y,{Fl:function(){return I},WP:function(){return _},az:function(){return M},zA:function(){return h}});var e=t(84352),s=t(44583),n=t(1568),r=t(47868);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function i(D,A){(A==null||A>D.length)&&(A=D.length);for(var R=0,K=new Array(A);R=0)&&(R[N]=D[N]);return R}function x(D,A){if(D){if(typeof D=="string")return i(D,A);var R=Object.prototype.toString.call(D).slice(8,-1);if(R==="Object"&&D.constructor&&(R=D.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return i(D,A)}}function f(D,A){var R=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(R)return(R=R.call(D)).next.bind(R);if(Array.isArray(D)||(R=x(D))||A&&D&&typeof D.length=="number"){R&&(D=R);var K=0;return function(){return K>=D.length?{done:!0}:{done:!1,value:D[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.")}var m=function(D){if(typeof D=="string")return D.endsWith("px")?parseFloat(D)/12+"rem":D;if(typeof D=="number")return D+"rem"},v=function(D){if(typeof D=="string")return m(D);if(typeof D=="number")return m(D*.5)},u=function(D){return!h(D)},h=function(D){return typeof D=="string"&&n.NE.includes(D)},c=function(D){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[D]=R)}},d=function(D,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[D]=A(K))}},p=function(D,A){return function(R,K){K&&(R[D]=A)}},C=function(D,A,R){return function(K,N){if(typeof N=="number"||typeof N=="string")for(var k=0;kD.length)&&(A=D.length);for(var R=0,K=new Array(A);R=0)&&(R[N]=D[N]);return R}function x(D,A){if(D){if(typeof D=="string")return i(D,A);var R=Object.prototype.toString.call(D).slice(8,-1);if(R==="Object"&&D.constructor&&(R=D.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return i(D,A)}}function f(D,A){var R=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(R)return(R=R.call(D)).next.bind(R);if(Array.isArray(D)||(R=x(D))||A&&D&&typeof D.length=="number"){R&&(D=R);var K=0;return function(){return K>=D.length?{done:!0}:{done:!1,value:D[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.")}var h=function(D){if(typeof D=="string")return D.endsWith("px")?parseFloat(D)/12+"rem":D;if(typeof D=="number")return D+"rem"},v=function(D){if(typeof D=="string")return h(D);if(typeof D=="number")return h(D*.5)},u=function(D){return!m(D)},m=function(D){return typeof D=="string"&&n.NE.includes(D)},c=function(D){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[D]=R)}},d=function(D,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[D]=A(K))}},p=function(D,A){return function(R,K){K&&(R[D]=A)}},C=function(D,A,R){return function(K,N){if(typeof N=="number"||typeof N=="string")for(var k=0;k=0)&&(v[h]=f[h]);return v}var a=function(f){var m=f.className,v=f.collapsing,u=f.children,h=i(f,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.Ly)(["Table",v&&"Table--collapsing",m,(0,n.WP)(h)])},(0,n.Fl)(h),{children:(0,e.jsx)("tbody",{children:u})}))},g=function(f){var m=f.className,v=f.header,u=i(f,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.Ly)(["Table__row",v&&"Table__row--header",m,(0,n.WP)(f)])},(0,n.Fl)(u)))},x=function(f){var m=f.className,v=f.collapsing,u=f.header,h=i(f,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,s.Ly)(["Table__cell",v&&"Table__cell--collapsing",u&&"Table__cell--header",m,(0,n.WP)(f)])},(0,n.Fl)(h)))};a.Row=g,a.Cell=x},92514:function(P,y,t){"use strict";t.d(y,{zv:function(){return m},y5:function(){return v},Z8:function(){return p},Y0:function(){return O},az:function(){return j.az},$n:function(){return on},D1:function(){return is},t1:function(){return ol},Nt:function(){return hi},BK:function(){return sl},Rr:function(){return cs},cG:function(){return us},Hx:function(){return Ca},ms:function(){return fs},so:function(){return Mn},xA:function(){return Ei},In:function(){return R},pd:function(){return ps},N6:function(){return _l},Wx:function(){return _i},Ki:function(){return Ot},aF:function(){return Si},tx:function(){return Ti},IC:function(){return Kn},Q7:function(){return Es},ND:function(){return pi},z2:function(){return ms},SM:function(){return kr},wn:function(){return bs},Ap:function(){return Fa},BJ:function(){return Pa},XI:function(){return ro.XI},tU:function(){return Nr},fs:function(){return Ur},m_:function(){return rn}});var e=t(88095),s=t(5229),n=t(44583);/** + */function r(){return r=Object.assign||function(f){for(var h=1;h=0)&&(v[m]=f[m]);return v}var a=function(f){var h=f.className,v=f.collapsing,u=f.children,m=i(f,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.Ly)(["Table",v&&"Table--collapsing",h,(0,n.WP)(m)])},(0,n.Fl)(m),{children:(0,e.jsx)("tbody",{children:u})}))},g=function(f){var h=f.className,v=f.header,u=i(f,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.Ly)(["Table__row",v&&"Table__row--header",h,(0,n.WP)(f)])},(0,n.Fl)(u)))},x=function(f){var h=f.className,v=f.collapsing,u=f.header,m=i(f,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,s.Ly)(["Table__cell",v&&"Table__cell--collapsing",u&&"Table__cell--header",h,(0,n.WP)(f)])},(0,n.Fl)(m)))};a.Row=g,a.Cell=x},92514:function(P,y,t){"use strict";t.d(y,{zv:function(){return h},y5:function(){return v},Z8:function(){return p},Y0:function(){return I},az:function(){return j.az},$n:function(){return on},D1:function(){return is},t1:function(){return ol},Nt:function(){return hi},BK:function(){return sl},Rr:function(){return cs},cG:function(){return us},Hx:function(){return Ca},ms:function(){return fs},so:function(){return Mn},xA:function(){return Ei},In:function(){return R},pd:function(){return ps},N6:function(){return _l},Wx:function(){return _i},Ki:function(){return It},aF:function(){return Si},tx:function(){return Ti},IC:function(){return Kn},Q7:function(){return Es},ND:function(){return pi},z2:function(){return ms},SM:function(){return kr},wn:function(){return bs},Ap:function(){return Fa},BJ:function(){return Pa},XI:function(){return ro.XI},tU:function(){return Nr},fs:function(){return Ur},m_:function(){return rn}});var e=t(88095),s=t(5229),n=t(44583);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&i(S,w)}function i(S,w){return i=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},i(S,w)}var a=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},g=1e3/60,x=.8333,f=.001,m=function(S){"use strict";r(w,S);function w($){var B;B=S.call(this,$)||this,B.ref=(0,n.createRef)(),B.currentValue=0;var G=$.initial,te=$.value;return G!==void 0&&a(G)?B.currentValue=G:a(te)&&(B.currentValue=te),B}var U=w.prototype;return U.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},U.componentWillUnmount=function(){this.stopTicking()},U.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},U.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},g))},U.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},U.tick=function(){var B=this.currentValue,G=this.props.value;a(G)?this.currentValue=B*x+G*(1-x):this.stopTicking(),Math.abs(G-this.currentValue)=0)&&(U[B]=S[B]);return U}function O(S){var w=S.className,U=I(S,["className"]);return(0,e.jsx)(j.az,b({className:(0,C.Ly)(["BlockQuote",w])},U))}var _=t(61652);/** + */function b(){return b=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function I(S){var w=S.className,U=O(S,["className"]);return(0,e.jsx)(j.az,b({className:(0,C.Ly)(["BlockQuote",w])},U))}var _=t(61652);/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT - */function M(){return M=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var A=/-o$/,R=function(S){var w=S.name,U=S.size,$=S.spin,B=S.className,G=S.rotation,te=D(S,["name","size","spin","className","rotation"]),re=te.style||{};U&&(re.fontSize=U*100+"%"),G&&(re.transform="rotate("+G+"deg)"),te.style=re;var le=(0,j.Fl)(te),se="";if(w.startsWith("tg-"))se=w;else{var de=A.test(w),Ee=w.replace(A,""),Ie=!Ee.startsWith("fa-");se=de?"far ":"fas ",Ie&&(se+="fa-"),se+=Ee,$&&(se+=" fa-spin")}return(0,e.jsx)("i",M({className:(0,C.Ly)(["Icon",se,B,(0,j.WP)(te)])},le))},K=function(S){var w=S.className,U=S.children,$=D(S,["className","children"]);return(0,e.jsx)("span",M({className:(0,C.Ly)(["IconStack",w,(0,j.WP)($)])},(0,j.Fl)($),{children:U}))};R.Stack=K;function N(S){if(S==null)return window;if(S.toString()!=="[object Window]"){var w=S.ownerDocument;return w&&w.defaultView||window}return S}function k(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function V(S){var w=N(S).Element;return k(S,w)||k(S,Element)}function F(S){var w=N(S).HTMLElement;return k(S,w)||k(S,HTMLElement)}function J(S){if(typeof ShadowRoot=="undefined")return!1;var w=N(S).ShadowRoot;return k(S,w)||k(S,ShadowRoot)}var H=Math.max,Q=Math.min,Z=Math.round;function X(){var S=navigator.userAgentData;return S!=null&&S.brands&&Array.isArray(S.brands)?S.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(X())}function Y(S,w,U){w===void 0&&(w=!1),U===void 0&&(U=!1);var $=S.getBoundingClientRect(),B=1,G=1;w&&F(S)&&(B=S.offsetWidth>0&&Z($.width)/S.offsetWidth||1,G=S.offsetHeight>0&&Z($.height)/S.offsetHeight||1);var te=V(S)?N(S):window,re=te.visualViewport,le=!z()&&U,se=($.left+(le&&re?re.offsetLeft:0))/B,de=($.top+(le&&re?re.offsetTop:0))/G,Ee=$.width/B,Ie=$.height/G;return{width:Ee,height:Ie,top:de,right:se+Ee,bottom:de+Ie,left:se,x:se,y:de}}function ee(S){var w=N(S),U=w.pageXOffset,$=w.pageYOffset;return{scrollLeft:U,scrollTop:$}}function oe(S){return{scrollLeft:S.scrollLeft,scrollTop:S.scrollTop}}function ne(S){return S===N(S)||!F(S)?ee(S):oe(S)}function ue(S){return S?(S.nodeName||"").toLowerCase():null}function ce(S){return((V(S)?S.ownerDocument:S.document)||window.document).documentElement}function me(S){return Y(ce(S)).left+ee(S).scrollLeft}function xe(S){return N(S).getComputedStyle(S)}function ve(S){var w=xe(S),U=w.overflow,$=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(U+B+$)}function be(S){var w=S.getBoundingClientRect(),U=Z(w.width)/S.offsetWidth||1,$=Z(w.height)/S.offsetHeight||1;return U!==1||$!==1}function we(S,w,U){U===void 0&&(U=!1);var $=F(w),B=F(w)&&be(w),G=ce(w),te=Y(S,B,U),re={scrollLeft:0,scrollTop:0},le={x:0,y:0};return($||!$&&!U)&&((ue(w)!=="body"||ve(G))&&(re=ne(w)),F(w)?(le=Y(w,!0),le.x+=w.clientLeft,le.y+=w.clientTop):G&&(le.x=me(G))),{x:te.left+re.scrollLeft-le.x,y:te.top+re.scrollTop-le.y,width:te.width,height:te.height}}function Je(S){var w=Y(S),U=S.offsetWidth,$=S.offsetHeight;return Math.abs(w.width-U)<=1&&(U=w.width),Math.abs(w.height-$)<=1&&($=w.height),{x:S.offsetLeft,y:S.offsetTop,width:U,height:$}}function ze(S){return ue(S)==="html"?S:S.assignedSlot||S.parentNode||(J(S)?S.host:null)||ce(S)}function Le(S){return["html","body","#document"].indexOf(ue(S))>=0?S.ownerDocument.body:F(S)&&ve(S)?S:Le(ze(S))}function Be(S,w){var U;w===void 0&&(w=[]);var $=Le(S),B=$===((U=S.ownerDocument)==null?void 0:U.body),G=N($),te=B?[G].concat(G.visualViewport||[],ve($)?$:[]):$,re=w.concat(te);return B?re:re.concat(Be(ze(te)))}function dt(S){return["table","td","th"].indexOf(ue(S))>=0}function xt(S){return!F(S)||xe(S).position==="fixed"?null:S.offsetParent}function lt(S){var w=/firefox/i.test(X()),U=/Trident/i.test(X());if(U&&F(S)){var $=xe(S);if($.position==="fixed")return null}var B=ze(S);for(J(B)&&(B=B.host);F(B)&&["html","body"].indexOf(ue(B))<0;){var G=xe(B);if(G.transform!=="none"||G.perspective!=="none"||G.contain==="paint"||["transform","perspective"].indexOf(G.willChange)!==-1||w&&G.willChange==="filter"||w&&G.filter&&G.filter!=="none")return B;B=B.parentNode}return null}function rt(S){for(var w=N(S),U=xt(S);U&&dt(U)&&xe(U).position==="static";)U=xt(U);return U&&(ue(U)==="html"||ue(U)==="body"&&xe(U).position==="static")?w:U||lt(S)||w}var Re="top",Ke="bottom",Pe="right",ke="left",Me="auto",Ve=[Re,Ke,Pe,ke],We="start",He="end",gt="clippingParents",Mt="viewport",bt="popper",Dt="reference",ct=Ve.reduce(function(S,w){return S.concat([w+"-"+We,w+"-"+He])},[]),Ge=[].concat(Ve,[Me]).reduce(function(S,w){return S.concat([w,w+"-"+We,w+"-"+He])},[]),je="beforeRead",Qe="read",vt="afterRead",Pt="beforeMain",zt="main",en="afterMain",Wt="beforeWrite",fn="write",Tn="afterWrite",Fn=[je,Qe,vt,Pt,zt,en,Wt,fn,Tn];function Vn(S){var w=new Map,U=new Set,$=[];S.forEach(function(G){w.set(G.name,G)});function B(G){U.add(G.name);var te=[].concat(G.requires||[],G.requiresIfExists||[]);te.forEach(function(re){if(!U.has(re)){var le=w.get(re);le&&B(le)}}),$.push(G)}return S.forEach(function(G){U.has(G.name)||B(G)}),$}function Eo(S){var w=Vn(S);return Fn.reduce(function(U,$){return U.concat(w.filter(function(B){return B.phase===$}))},[])}function bo(S){var w;return function(){return w||(w=new Promise(function(U){Promise.resolve().then(function(){w=void 0,U(S())})})),w}}function Oo(S){var w=S.reduce(function(U,$){var B=U[$.name];return U[$.name]=B?Object.assign({},B,$,{options:Object.assign({},B.options,$.options),data:Object.assign({},B.data,$.data)}):$,U},{});return Object.keys(w).map(function(U){return w[U]})}var Xr={placement:"bottom",modifiers:[],strategy:"absolute"};function Gr(){for(var S=arguments.length,w=new Array(S),U=0;U=0?"x":"y"}function Or(S){var w=S.reference,U=S.element,$=S.placement,B=$?xn($):null,G=$?pn($):null,te=w.x+w.width/2-U.width/2,re=w.y+w.height/2-U.height/2,le;switch(B){case Re:le={x:te,y:w.y-U.height};break;case Ke:le={x:te,y:w.y+w.height};break;case Pe:le={x:w.x+w.width,y:re};break;case ke:le={x:w.x-U.width,y:re};break;default:le={x:w.x,y:w.y}}var se=B?sr(B):null;if(se!=null){var de=se==="y"?"height":"width";switch(G){case We:le[se]=le[se]-(w[de]/2-U[de]/2);break;case He:le[se]=le[se]+(w[de]/2-U[de]/2);break;default:}}return le}function _o(S){var w=S.state,U=S.name;w.modifiersData[U]=Or({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var ni={name:"popperOffsets",enabled:!0,phase:"read",fn:_o,data:{}},ri={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oi(S,w){var U=S.x,$=S.y,B=w.devicePixelRatio||1;return{x:Z(U*B)/B||0,y:Z($*B)/B||0}}function An(S){var w,U=S.popper,$=S.popperRect,B=S.placement,G=S.variation,te=S.offsets,re=S.position,le=S.gpuAcceleration,se=S.adaptive,de=S.roundOffsets,Ee=S.isFixed,Ie=te.x,Ce=Ie===void 0?0:Ie,_e=te.y,Ae=_e===void 0?0:_e,Ue=typeof de=="function"?de({x:Ce,y:Ae}):{x:Ce,y:Ae};Ce=Ue.x,Ae=Ue.y;var $e=te.hasOwnProperty("x"),Fe=te.hasOwnProperty("y"),qe=ke,Xe=Re,st=window;if(se){var it=rt(U),ot="clientHeight",ut="clientWidth";if(it===N(U)&&(it=ce(U),xe(it).position!=="static"&&re==="absolute"&&(ot="scrollHeight",ut="scrollWidth")),it=it,B===Re||(B===ke||B===Pe)&&G===He){Xe=Ke;var jt=Ee&&it===st&&st.visualViewport?st.visualViewport.height:it[ot];Ae-=jt-$.height,Ae*=le?1:-1}if(B===ke||(B===Re||B===Ke)&&G===He){qe=Pe;var Ct=Ee&&it===st&&st.visualViewport?st.visualViewport.width:it[ut];Ce-=Ct-$.width,Ce*=le?1:-1}}var ft=Object.assign({position:re},se&&ri),at=de===!0?oi({x:Ce,y:Ae},N(U)):{x:Ce,y:Ae};if(Ce=at.x,Ae=at.y,le){var Rt;return Object.assign({},ft,(Rt={},Rt[Xe]=Fe?"0":"",Rt[qe]=$e?"0":"",Rt.transform=(st.devicePixelRatio||1)<=1?"translate("+Ce+"px, "+Ae+"px)":"translate3d("+Ce+"px, "+Ae+"px, 0)",Rt))}return Object.assign({},ft,(w={},w[Xe]=Fe?Ae+"px":"",w[qe]=$e?Ce+"px":"",w.transform="",w))}function na(S){var w=S.state,U=S.options,$=U.gpuAcceleration,B=$===void 0?!0:$,G=U.adaptive,te=G===void 0?!0:G,re=U.roundOffsets,le=re===void 0?!0:re,se={placement:xn(w.placement),variation:pn(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:B,isFixed:w.options.strategy==="fixed"};w.modifiersData.popperOffsets!=null&&(w.styles.popper=Object.assign({},w.styles.popper,An(Object.assign({},se,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:te,roundOffsets:le})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,An(Object.assign({},se,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:le})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})}var ra={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:na,data:{}};function ai(S){var w=S.state;Object.keys(w.elements).forEach(function(U){var $=w.styles[U]||{},B=w.attributes[U]||{},G=w.elements[U];!F(G)||!ue(G)||(Object.assign(G.style,$),Object.keys(B).forEach(function(te){var re=B[te];re===!1?G.removeAttribute(te):G.setAttribute(te,re===!0?"":re)}))})}function oa(S){var w=S.state,U={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,U.popper),w.styles=U,w.elements.arrow&&Object.assign(w.elements.arrow.style,U.arrow),function(){Object.keys(w.elements).forEach(function($){var B=w.elements[$],G=w.attributes[$]||{},te=Object.keys(w.styles.hasOwnProperty($)?w.styles[$]:U[$]),re=te.reduce(function(le,se){return le[se]="",le},{});!F(B)||!ue(B)||(Object.assign(B.style,re),Object.keys(G).forEach(function(le){B.removeAttribute(le)}))})}}var aa={name:"applyStyles",enabled:!0,phase:"write",fn:ai,effect:oa,requires:["computeStyles"]};function ae(S,w,U){var $=xn(S),B=[ke,Re].indexOf($)>=0?-1:1,G=typeof U=="function"?U(Object.assign({},w,{placement:S})):U,te=G[0],re=G[1];return te=te||0,re=(re||0)*B,[ke,Pe].indexOf($)>=0?{x:re,y:te}:{x:te,y:re}}function Se(S){var w=S.state,U=S.options,$=S.name,B=U.offset,G=B===void 0?[0,0]:B,te=Ge.reduce(function(de,Ee){return de[Ee]=ae(Ee,w.rects,G),de},{}),re=te[w.placement],le=re.x,se=re.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=le,w.modifiersData.popperOffsets.y+=se),w.modifiersData[$]=te}var Ys={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Se},Qs={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(S){return S.replace(/left|right|bottom|top/g,function(w){return Qs[w]})}var Zs={start:"end",end:"start"};function ia(S){return S.replace(/start|end/g,function(w){return Zs[w]})}function Gi(S,w){var U=N(S),$=ce(S),B=U.visualViewport,G=$.clientWidth,te=$.clientHeight,re=0,le=0;if(B){G=B.width,te=B.height;var se=z();(se||!se&&w==="fixed")&&(re=B.offsetLeft,le=B.offsetTop)}return{width:G,height:te,x:re+me(S),y:le}}function sa(S){var w,U=ce(S),$=ee(S),B=(w=S.ownerDocument)==null?void 0:w.body,G=H(U.scrollWidth,U.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),te=H(U.scrollHeight,U.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-$.scrollLeft+me(S),le=-$.scrollTop;return xe(B||U).direction==="rtl"&&(re+=H(U.clientWidth,B?B.clientWidth:0)-G),{width:G,height:te,x:re,y:le}}function Hi(S,w){var U=w.getRootNode&&w.getRootNode();if(S.contains(w))return!0;if(U&&J(U)){var $=w;do{if($&&S.isSameNode($))return!0;$=$.parentNode||$.host}while($)}return!1}function la(S){return Object.assign({},S,{left:S.x,top:S.y,right:S.x+S.width,bottom:S.y+S.height})}function ca(S,w){var U=Y(S,!1,w==="fixed");return U.top=U.top+S.clientTop,U.left=U.left+S.clientLeft,U.bottom=U.top+S.clientHeight,U.right=U.left+S.clientWidth,U.width=S.clientWidth,U.height=S.clientHeight,U.x=U.left,U.y=U.top,U}function On(S,w,U){return w===Mt?la(Gi(S,U)):V(w)?ca(w,U):la(sa(ce(S)))}function Js(S){var w=Be(ze(S)),U=["absolute","fixed"].indexOf(xe(S).position)>=0,$=U&&F(S)?rt(S):S;return V($)?w.filter(function(B){return V(B)&&Hi(B,$)&&ue(B)!=="body"}):[]}function In(S,w,U,$){var B=w==="clippingParents"?Js(S):[].concat(w),G=[].concat(B,[U]),te=G[0],re=G.reduce(function(le,se){var de=On(S,se,$);return le.top=H(de.top,le.top),le.right=Q(de.right,le.right),le.bottom=Q(de.bottom,le.bottom),le.left=H(de.left,le.left),le},On(S,te,$));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function Yi(){return{top:0,right:0,bottom:0,left:0}}function Qi(S){return Object.assign({},Yi(),S)}function Zi(S,w){return w.reduce(function(U,$){return U[$]=S,U},{})}function lr(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=$===void 0?S.placement:$,G=U.strategy,te=G===void 0?S.strategy:G,re=U.boundary,le=re===void 0?gt:re,se=U.rootBoundary,de=se===void 0?Mt:se,Ee=U.elementContext,Ie=Ee===void 0?bt:Ee,Ce=U.altBoundary,_e=Ce===void 0?!1:Ce,Ae=U.padding,Ue=Ae===void 0?0:Ae,$e=Qi(typeof Ue!="number"?Ue:Zi(Ue,Ve)),Fe=Ie===bt?Dt:bt,qe=S.rects.popper,Xe=S.elements[_e?Fe:Ie],st=In(V(Xe)?Xe:Xe.contextElement||ce(S.elements.popper),le,de,te),it=Y(S.elements.reference),ot=Or({reference:it,element:qe,strategy:"absolute",placement:B}),ut=la(Object.assign({},qe,ot)),jt=Ie===bt?ut:it,Ct={top:st.top-jt.top+$e.top,bottom:jt.bottom-st.bottom+$e.bottom,left:st.left-jt.left+$e.left,right:jt.right-st.right+$e.right},ft=S.modifiersData.offset;if(Ie===bt&&ft){var at=ft[B];Object.keys(Ct).forEach(function(Rt){var Lt=[Pe,Ke].indexOf(Rt)>=0?1:-1,Nt=[Re,Ke].indexOf(Rt)>=0?"y":"x";Ct[Rt]+=at[Nt]*Lt})}return Ct}function ua(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=U.boundary,G=U.rootBoundary,te=U.padding,re=U.flipVariations,le=U.allowedAutoPlacements,se=le===void 0?Ge:le,de=pn($),Ee=de?re?ct:ct.filter(function(_e){return pn(_e)===de}):Ve,Ie=Ee.filter(function(_e){return se.indexOf(_e)>=0});Ie.length===0&&(Ie=Ee);var Ce=Ie.reduce(function(_e,Ae){return _e[Ae]=lr(S,{placement:Ae,boundary:B,rootBoundary:G,padding:te})[xn(Ae)],_e},{});return Object.keys(Ce).sort(function(_e,Ae){return Ce[_e]-Ce[Ae]})}function Po(S){if(xn(S)===Me)return[];var w=wt(S);return[ia(S),w,ia(w)]}function da(S){var w=S.state,U=S.options,$=S.name;if(!w.modifiersData[$]._skip){for(var B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!0:te,le=U.fallbackPlacements,se=U.padding,de=U.boundary,Ee=U.rootBoundary,Ie=U.altBoundary,Ce=U.flipVariations,_e=Ce===void 0?!0:Ce,Ae=U.allowedAutoPlacements,Ue=w.options.placement,$e=xn(Ue),Fe=$e===Ue,qe=le||(Fe||!_e?[wt(Ue)]:Po(Ue)),Xe=[Ue].concat(qe).reduce(function(qn,er){return qn.concat(xn(er)===Me?ua(w,{placement:er,boundary:de,rootBoundary:Ee,padding:se,flipVariations:_e,allowedAutoPlacements:Ae}):er)},[]),st=w.rects.reference,it=w.rects.popper,ot=new Map,ut=!0,jt=Xe[0],Ct=0;Ct=0,Nt=Lt?"width":"height",kt=lr(w,{placement:ft,boundary:de,rootBoundary:Ee,altBoundary:Ie,padding:se}),Yt=Lt?Rt?Pe:ke:Rt?Ke:Re;st[Nt]>it[Nt]&&(Yt=wt(Yt));var Jn=wt(Yt),Nn=[];if(G&&Nn.push(kt[at]<=0),re&&Nn.push(kt[Yt]<=0,kt[Jn]<=0),Nn.every(function(qn){return qn})){jt=ft,ut=!1;break}ot.set(ft,Nn)}if(ut)for(var Xo=_e?3:1,Ga=function(er){var fo=Xe.find(function(tr){var jr=ot.get(tr);if(jr)return jr.slice(0,er).every(function(zr){return zr})});if(fo)return jt=fo,"break"},$r=Xo;$r>0;$r--){var gr=Ga($r);if(gr==="break")break}w.placement!==jt&&(w.modifiersData[$]._skip=!0,w.placement=jt,w.reset=!0)}}var qs={name:"flip",enabled:!0,phase:"main",fn:da,requiresIfExists:["offset"],data:{_skip:!1}};function el(S){return S==="x"?"y":"x"}function Ir(S,w,U){return H(S,Q(w,U))}function Ji(S,w,U){var $=Ir(S,w,U);return $>U?U:$}function ii(S){var w=S.state,U=S.options,$=S.name,B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!1:te,le=U.boundary,se=U.rootBoundary,de=U.altBoundary,Ee=U.padding,Ie=U.tether,Ce=Ie===void 0?!0:Ie,_e=U.tetherOffset,Ae=_e===void 0?0:_e,Ue=lr(w,{boundary:le,rootBoundary:se,padding:Ee,altBoundary:de}),$e=xn(w.placement),Fe=pn(w.placement),qe=!Fe,Xe=sr($e),st=el(Xe),it=w.modifiersData.popperOffsets,ot=w.rects.reference,ut=w.rects.popper,jt=typeof Ae=="function"?Ae(Object.assign({},w.rects,{placement:w.placement})):Ae,Ct=typeof jt=="number"?{mainAxis:jt,altAxis:jt}:Object.assign({mainAxis:0,altAxis:0},jt),ft=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,at={x:0,y:0};if(it){if(G){var Rt,Lt=Xe==="y"?Re:ke,Nt=Xe==="y"?Ke:Pe,kt=Xe==="y"?"height":"width",Yt=it[Xe],Jn=Yt+Ue[Lt],Nn=Yt-Ue[Nt],Xo=Ce?-ut[kt]/2:0,Ga=Fe===We?ot[kt]:ut[kt],$r=Fe===We?-ut[kt]:-ot[kt],gr=w.elements.arrow,qn=Ce&&gr?Je(gr):{width:0,height:0},er=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:Yi(),fo=er[Lt],tr=er[Nt],jr=Ir(0,ot[kt],qn[kt]),zr=qe?ot[kt]/2-Xo-jr-fo-Ct.mainAxis:Ga-jr-fo-Ct.mainAxis,Un=qe?-ot[kt]/2+Xo+jr+tr+Ct.mainAxis:$r+jr+tr+Ct.mainAxis,Wr=w.elements.arrow&&rt(w.elements.arrow),Go=Wr?Xe==="y"?Wr.clientTop||0:Wr.clientLeft||0:0,yr=(Rt=ft==null?void 0:ft[Xe])!=null?Rt:0,Bi=Yt+zr-yr-Go,ho=Yt+Un-yr,Ki=Ir(Ce?Q(Jn,Bi):Jn,Yt,Ce?H(Nn,ho):Nn);it[Xe]=Ki,at[Xe]=Ki-Yt}if(re){var Ha,Kt=Xe==="x"?Re:ke,Ya=Xe==="x"?Ke:Pe,nr=it[st],mo=st==="y"?"height":"width",Ho=nr+Ue[Kt],Qa=nr-Ue[Ya],rr=[Re,ke].indexOf($e)!==-1,Bt=(Ha=ft==null?void 0:ft[st])!=null?Ha:0,Ut=rr?Ho:nr-ot[mo]-ut[mo]-Bt+Ct.altAxis,Ft=rr?nr+ot[mo]+ut[mo]-Bt-Ct.altAxis:Qa,Yo=Ce&&rr?Ji(Ut,nr,Ft):Ir(Ce?Ut:Ho,nr,Ce?Ft:Qa);it[st]=Yo,at[st]=Yo-nr}w.modifiersData[$]=at}}var Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:ii,requiresIfExists:["offset"]},tl=function(w,U){return w=typeof w=="function"?w(Object.assign({},U.rects,{placement:U.placement})):w,Qi(typeof w!="number"?w:Zi(w,Ve))};function si(S){var w,U=S.state,$=S.name,B=S.options,G=U.elements.arrow,te=U.modifiersData.popperOffsets,re=xn(U.placement),le=sr(re),se=[ke,Pe].indexOf(re)>=0,de=se?"height":"width";if(!(!G||!te)){var Ee=tl(B.padding,U),Ie=Je(G),Ce=le==="y"?Re:ke,_e=le==="y"?Ke:Pe,Ae=U.rects.reference[de]+U.rects.reference[le]-te[le]-U.rects.popper[de],Ue=te[le]-U.rects.reference[le],$e=rt(G),Fe=$e?le==="y"?$e.clientHeight||0:$e.clientWidth||0:0,qe=Ae/2-Ue/2,Xe=Ee[Ce],st=Fe-Ie[de]-Ee[_e],it=Fe/2-Ie[de]/2+qe,ot=Ir(Xe,it,st),ut=le;U.modifiersData[$]=(w={},w[ut]=ot,w.centerOffset=ot-it,w)}}function _t(S){var w=S.state,U=S.options,$=U.element,B=$===void 0?"[data-popper-arrow]":$;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||Hi(w.elements.popper,B)&&(w.elements.arrow=B))}var qi={name:"arrow",enabled:!0,phase:"main",fn:si,effect:_t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function li(S,w,U){return U===void 0&&(U={x:0,y:0}),{top:S.top-w.height-U.y,right:S.right-w.width+U.x,bottom:S.bottom-w.height+U.y,left:S.left-w.width-U.x}}function fa(S){return[Re,Pe,Ke,ke].some(function(w){return S[w]>=0})}function es(S){var w=S.state,U=S.name,$=w.rects.reference,B=w.rects.popper,G=w.modifiersData.preventOverflow,te=lr(w,{elementContext:"reference"}),re=lr(w,{altBoundary:!0}),le=li(te,$),se=li(re,B,G),de=fa(le),Ee=fa(se);w.modifiersData[U]={referenceClippingOffsets:le,popperEscapeOffsets:se,isReferenceHidden:de,hasPopperEscaped:Ee},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":de,"data-popper-escaped":Ee})}var ts={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:es},ns=[br,ni,ra,aa,Ys,qs,Mo,qi,ts],ha=Hr({defaultModifiers:ns}),Yr=t(16160);function _n(){return _n=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var A=/-o$/,R=function(S){var w=S.name,U=S.size,$=S.spin,B=S.className,G=S.rotation,te=D(S,["name","size","spin","className","rotation"]),re=te.style||{};U&&(re.fontSize=U*100+"%"),G&&(re.transform="rotate("+G+"deg)"),te.style=re;var le=(0,j.Fl)(te),se="";if(w.startsWith("tg-"))se=w;else{var de=A.test(w),Ee=w.replace(A,""),Oe=!Ee.startsWith("fa-");se=de?"far ":"fas ",Oe&&(se+="fa-"),se+=Ee,$&&(se+=" fa-spin")}return(0,e.jsx)("i",M({className:(0,C.Ly)(["Icon",se,B,(0,j.WP)(te)])},le))},K=function(S){var w=S.className,U=S.children,$=D(S,["className","children"]);return(0,e.jsx)("span",M({className:(0,C.Ly)(["IconStack",w,(0,j.WP)($)])},(0,j.Fl)($),{children:U}))};R.Stack=K;function N(S){if(S==null)return window;if(S.toString()!=="[object Window]"){var w=S.ownerDocument;return w&&w.defaultView||window}return S}function k(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function V(S){var w=N(S).Element;return k(S,w)||k(S,Element)}function F(S){var w=N(S).HTMLElement;return k(S,w)||k(S,HTMLElement)}function J(S){if(typeof ShadowRoot=="undefined")return!1;var w=N(S).ShadowRoot;return k(S,w)||k(S,ShadowRoot)}var H=Math.max,Q=Math.min,Z=Math.round;function X(){var S=navigator.userAgentData;return S!=null&&S.brands&&Array.isArray(S.brands)?S.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(X())}function Y(S,w,U){w===void 0&&(w=!1),U===void 0&&(U=!1);var $=S.getBoundingClientRect(),B=1,G=1;w&&F(S)&&(B=S.offsetWidth>0&&Z($.width)/S.offsetWidth||1,G=S.offsetHeight>0&&Z($.height)/S.offsetHeight||1);var te=V(S)?N(S):window,re=te.visualViewport,le=!z()&&U,se=($.left+(le&&re?re.offsetLeft:0))/B,de=($.top+(le&&re?re.offsetTop:0))/G,Ee=$.width/B,Oe=$.height/G;return{width:Ee,height:Oe,top:de,right:se+Ee,bottom:de+Oe,left:se,x:se,y:de}}function ee(S){var w=N(S),U=w.pageXOffset,$=w.pageYOffset;return{scrollLeft:U,scrollTop:$}}function oe(S){return{scrollLeft:S.scrollLeft,scrollTop:S.scrollTop}}function ne(S){return S===N(S)||!F(S)?ee(S):oe(S)}function ue(S){return S?(S.nodeName||"").toLowerCase():null}function ce(S){return((V(S)?S.ownerDocument:S.document)||window.document).documentElement}function me(S){return Y(ce(S)).left+ee(S).scrollLeft}function xe(S){return N(S).getComputedStyle(S)}function ve(S){var w=xe(S),U=w.overflow,$=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(U+B+$)}function be(S){var w=S.getBoundingClientRect(),U=Z(w.width)/S.offsetWidth||1,$=Z(w.height)/S.offsetHeight||1;return U!==1||$!==1}function we(S,w,U){U===void 0&&(U=!1);var $=F(w),B=F(w)&&be(w),G=ce(w),te=Y(S,B,U),re={scrollLeft:0,scrollTop:0},le={x:0,y:0};return($||!$&&!U)&&((ue(w)!=="body"||ve(G))&&(re=ne(w)),F(w)?(le=Y(w,!0),le.x+=w.clientLeft,le.y+=w.clientTop):G&&(le.x=me(G))),{x:te.left+re.scrollLeft-le.x,y:te.top+re.scrollTop-le.y,width:te.width,height:te.height}}function Je(S){var w=Y(S),U=S.offsetWidth,$=S.offsetHeight;return Math.abs(w.width-U)<=1&&(U=w.width),Math.abs(w.height-$)<=1&&($=w.height),{x:S.offsetLeft,y:S.offsetTop,width:U,height:$}}function ze(S){return ue(S)==="html"?S:S.assignedSlot||S.parentNode||(J(S)?S.host:null)||ce(S)}function Le(S){return["html","body","#document"].indexOf(ue(S))>=0?S.ownerDocument.body:F(S)&&ve(S)?S:Le(ze(S))}function Be(S,w){var U;w===void 0&&(w=[]);var $=Le(S),B=$===((U=S.ownerDocument)==null?void 0:U.body),G=N($),te=B?[G].concat(G.visualViewport||[],ve($)?$:[]):$,re=w.concat(te);return B?re:re.concat(Be(ze(te)))}function dt(S){return["table","td","th"].indexOf(ue(S))>=0}function xt(S){return!F(S)||xe(S).position==="fixed"?null:S.offsetParent}function lt(S){var w=/firefox/i.test(X()),U=/Trident/i.test(X());if(U&&F(S)){var $=xe(S);if($.position==="fixed")return null}var B=ze(S);for(J(B)&&(B=B.host);F(B)&&["html","body"].indexOf(ue(B))<0;){var G=xe(B);if(G.transform!=="none"||G.perspective!=="none"||G.contain==="paint"||["transform","perspective"].indexOf(G.willChange)!==-1||w&&G.willChange==="filter"||w&&G.filter&&G.filter!=="none")return B;B=B.parentNode}return null}function rt(S){for(var w=N(S),U=xt(S);U&&dt(U)&&xe(U).position==="static";)U=xt(U);return U&&(ue(U)==="html"||ue(U)==="body"&&xe(U).position==="static")?w:U||lt(S)||w}var Re="top",Ke="bottom",Pe="right",ke="left",Me="auto",Ve=[Re,Ke,Pe,ke],We="start",He="end",gt="clippingParents",Mt="viewport",bt="popper",Dt="reference",ct=Ve.reduce(function(S,w){return S.concat([w+"-"+We,w+"-"+He])},[]),Ge=[].concat(Ve,[Me]).reduce(function(S,w){return S.concat([w,w+"-"+We,w+"-"+He])},[]),je="beforeRead",Qe="read",vt="afterRead",Pt="beforeMain",zt="main",en="afterMain",Wt="beforeWrite",fn="write",Tn="afterWrite",Fn=[je,Qe,vt,Pt,zt,en,Wt,fn,Tn];function Vn(S){var w=new Map,U=new Set,$=[];S.forEach(function(G){w.set(G.name,G)});function B(G){U.add(G.name);var te=[].concat(G.requires||[],G.requiresIfExists||[]);te.forEach(function(re){if(!U.has(re)){var le=w.get(re);le&&B(le)}}),$.push(G)}return S.forEach(function(G){U.has(G.name)||B(G)}),$}function Eo(S){var w=Vn(S);return Fn.reduce(function(U,$){return U.concat(w.filter(function(B){return B.phase===$}))},[])}function bo(S){var w;return function(){return w||(w=new Promise(function(U){Promise.resolve().then(function(){w=void 0,U(S())})})),w}}function Io(S){var w=S.reduce(function(U,$){var B=U[$.name];return U[$.name]=B?Object.assign({},B,$,{options:Object.assign({},B.options,$.options),data:Object.assign({},B.data,$.data)}):$,U},{});return Object.keys(w).map(function(U){return w[U]})}var Xr={placement:"bottom",modifiers:[],strategy:"absolute"};function Gr(){for(var S=arguments.length,w=new Array(S),U=0;U=0?"x":"y"}function Ir(S){var w=S.reference,U=S.element,$=S.placement,B=$?xn($):null,G=$?pn($):null,te=w.x+w.width/2-U.width/2,re=w.y+w.height/2-U.height/2,le;switch(B){case Re:le={x:te,y:w.y-U.height};break;case Ke:le={x:te,y:w.y+w.height};break;case Pe:le={x:w.x+w.width,y:re};break;case ke:le={x:w.x-U.width,y:re};break;default:le={x:w.x,y:w.y}}var se=B?sr(B):null;if(se!=null){var de=se==="y"?"height":"width";switch(G){case We:le[se]=le[se]-(w[de]/2-U[de]/2);break;case He:le[se]=le[se]+(w[de]/2-U[de]/2);break;default:}}return le}function _o(S){var w=S.state,U=S.name;w.modifiersData[U]=Ir({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var ni={name:"popperOffsets",enabled:!0,phase:"read",fn:_o,data:{}},ri={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oi(S,w){var U=S.x,$=S.y,B=w.devicePixelRatio||1;return{x:Z(U*B)/B||0,y:Z($*B)/B||0}}function An(S){var w,U=S.popper,$=S.popperRect,B=S.placement,G=S.variation,te=S.offsets,re=S.position,le=S.gpuAcceleration,se=S.adaptive,de=S.roundOffsets,Ee=S.isFixed,Oe=te.x,Ce=Oe===void 0?0:Oe,_e=te.y,Ae=_e===void 0?0:_e,Ue=typeof de=="function"?de({x:Ce,y:Ae}):{x:Ce,y:Ae};Ce=Ue.x,Ae=Ue.y;var $e=te.hasOwnProperty("x"),Fe=te.hasOwnProperty("y"),qe=ke,Xe=Re,st=window;if(se){var it=rt(U),ot="clientHeight",ut="clientWidth";if(it===N(U)&&(it=ce(U),xe(it).position!=="static"&&re==="absolute"&&(ot="scrollHeight",ut="scrollWidth")),it=it,B===Re||(B===ke||B===Pe)&&G===He){Xe=Ke;var jt=Ee&&it===st&&st.visualViewport?st.visualViewport.height:it[ot];Ae-=jt-$.height,Ae*=le?1:-1}if(B===ke||(B===Re||B===Ke)&&G===He){qe=Pe;var Ct=Ee&&it===st&&st.visualViewport?st.visualViewport.width:it[ut];Ce-=Ct-$.width,Ce*=le?1:-1}}var ft=Object.assign({position:re},se&&ri),at=de===!0?oi({x:Ce,y:Ae},N(U)):{x:Ce,y:Ae};if(Ce=at.x,Ae=at.y,le){var Rt;return Object.assign({},ft,(Rt={},Rt[Xe]=Fe?"0":"",Rt[qe]=$e?"0":"",Rt.transform=(st.devicePixelRatio||1)<=1?"translate("+Ce+"px, "+Ae+"px)":"translate3d("+Ce+"px, "+Ae+"px, 0)",Rt))}return Object.assign({},ft,(w={},w[Xe]=Fe?Ae+"px":"",w[qe]=$e?Ce+"px":"",w.transform="",w))}function na(S){var w=S.state,U=S.options,$=U.gpuAcceleration,B=$===void 0?!0:$,G=U.adaptive,te=G===void 0?!0:G,re=U.roundOffsets,le=re===void 0?!0:re,se={placement:xn(w.placement),variation:pn(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:B,isFixed:w.options.strategy==="fixed"};w.modifiersData.popperOffsets!=null&&(w.styles.popper=Object.assign({},w.styles.popper,An(Object.assign({},se,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:te,roundOffsets:le})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,An(Object.assign({},se,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:le})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})}var ra={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:na,data:{}};function ai(S){var w=S.state;Object.keys(w.elements).forEach(function(U){var $=w.styles[U]||{},B=w.attributes[U]||{},G=w.elements[U];!F(G)||!ue(G)||(Object.assign(G.style,$),Object.keys(B).forEach(function(te){var re=B[te];re===!1?G.removeAttribute(te):G.setAttribute(te,re===!0?"":re)}))})}function oa(S){var w=S.state,U={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,U.popper),w.styles=U,w.elements.arrow&&Object.assign(w.elements.arrow.style,U.arrow),function(){Object.keys(w.elements).forEach(function($){var B=w.elements[$],G=w.attributes[$]||{},te=Object.keys(w.styles.hasOwnProperty($)?w.styles[$]:U[$]),re=te.reduce(function(le,se){return le[se]="",le},{});!F(B)||!ue(B)||(Object.assign(B.style,re),Object.keys(G).forEach(function(le){B.removeAttribute(le)}))})}}var aa={name:"applyStyles",enabled:!0,phase:"write",fn:ai,effect:oa,requires:["computeStyles"]};function ae(S,w,U){var $=xn(S),B=[ke,Re].indexOf($)>=0?-1:1,G=typeof U=="function"?U(Object.assign({},w,{placement:S})):U,te=G[0],re=G[1];return te=te||0,re=(re||0)*B,[ke,Pe].indexOf($)>=0?{x:re,y:te}:{x:te,y:re}}function Se(S){var w=S.state,U=S.options,$=S.name,B=U.offset,G=B===void 0?[0,0]:B,te=Ge.reduce(function(de,Ee){return de[Ee]=ae(Ee,w.rects,G),de},{}),re=te[w.placement],le=re.x,se=re.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=le,w.modifiersData.popperOffsets.y+=se),w.modifiersData[$]=te}var Ys={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Se},Qs={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(S){return S.replace(/left|right|bottom|top/g,function(w){return Qs[w]})}var Zs={start:"end",end:"start"};function ia(S){return S.replace(/start|end/g,function(w){return Zs[w]})}function Gi(S,w){var U=N(S),$=ce(S),B=U.visualViewport,G=$.clientWidth,te=$.clientHeight,re=0,le=0;if(B){G=B.width,te=B.height;var se=z();(se||!se&&w==="fixed")&&(re=B.offsetLeft,le=B.offsetTop)}return{width:G,height:te,x:re+me(S),y:le}}function sa(S){var w,U=ce(S),$=ee(S),B=(w=S.ownerDocument)==null?void 0:w.body,G=H(U.scrollWidth,U.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),te=H(U.scrollHeight,U.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-$.scrollLeft+me(S),le=-$.scrollTop;return xe(B||U).direction==="rtl"&&(re+=H(U.clientWidth,B?B.clientWidth:0)-G),{width:G,height:te,x:re,y:le}}function Hi(S,w){var U=w.getRootNode&&w.getRootNode();if(S.contains(w))return!0;if(U&&J(U)){var $=w;do{if($&&S.isSameNode($))return!0;$=$.parentNode||$.host}while($)}return!1}function la(S){return Object.assign({},S,{left:S.x,top:S.y,right:S.x+S.width,bottom:S.y+S.height})}function ca(S,w){var U=Y(S,!1,w==="fixed");return U.top=U.top+S.clientTop,U.left=U.left+S.clientLeft,U.bottom=U.top+S.clientHeight,U.right=U.left+S.clientWidth,U.width=S.clientWidth,U.height=S.clientHeight,U.x=U.left,U.y=U.top,U}function In(S,w,U){return w===Mt?la(Gi(S,U)):V(w)?ca(w,U):la(sa(ce(S)))}function Js(S){var w=Be(ze(S)),U=["absolute","fixed"].indexOf(xe(S).position)>=0,$=U&&F(S)?rt(S):S;return V($)?w.filter(function(B){return V(B)&&Hi(B,$)&&ue(B)!=="body"}):[]}function On(S,w,U,$){var B=w==="clippingParents"?Js(S):[].concat(w),G=[].concat(B,[U]),te=G[0],re=G.reduce(function(le,se){var de=In(S,se,$);return le.top=H(de.top,le.top),le.right=Q(de.right,le.right),le.bottom=Q(de.bottom,le.bottom),le.left=H(de.left,le.left),le},In(S,te,$));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function Yi(){return{top:0,right:0,bottom:0,left:0}}function Qi(S){return Object.assign({},Yi(),S)}function Zi(S,w){return w.reduce(function(U,$){return U[$]=S,U},{})}function lr(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=$===void 0?S.placement:$,G=U.strategy,te=G===void 0?S.strategy:G,re=U.boundary,le=re===void 0?gt:re,se=U.rootBoundary,de=se===void 0?Mt:se,Ee=U.elementContext,Oe=Ee===void 0?bt:Ee,Ce=U.altBoundary,_e=Ce===void 0?!1:Ce,Ae=U.padding,Ue=Ae===void 0?0:Ae,$e=Qi(typeof Ue!="number"?Ue:Zi(Ue,Ve)),Fe=Oe===bt?Dt:bt,qe=S.rects.popper,Xe=S.elements[_e?Fe:Oe],st=On(V(Xe)?Xe:Xe.contextElement||ce(S.elements.popper),le,de,te),it=Y(S.elements.reference),ot=Ir({reference:it,element:qe,strategy:"absolute",placement:B}),ut=la(Object.assign({},qe,ot)),jt=Oe===bt?ut:it,Ct={top:st.top-jt.top+$e.top,bottom:jt.bottom-st.bottom+$e.bottom,left:st.left-jt.left+$e.left,right:jt.right-st.right+$e.right},ft=S.modifiersData.offset;if(Oe===bt&&ft){var at=ft[B];Object.keys(Ct).forEach(function(Rt){var Lt=[Pe,Ke].indexOf(Rt)>=0?1:-1,Nt=[Re,Ke].indexOf(Rt)>=0?"y":"x";Ct[Rt]+=at[Nt]*Lt})}return Ct}function ua(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=U.boundary,G=U.rootBoundary,te=U.padding,re=U.flipVariations,le=U.allowedAutoPlacements,se=le===void 0?Ge:le,de=pn($),Ee=de?re?ct:ct.filter(function(_e){return pn(_e)===de}):Ve,Oe=Ee.filter(function(_e){return se.indexOf(_e)>=0});Oe.length===0&&(Oe=Ee);var Ce=Oe.reduce(function(_e,Ae){return _e[Ae]=lr(S,{placement:Ae,boundary:B,rootBoundary:G,padding:te})[xn(Ae)],_e},{});return Object.keys(Ce).sort(function(_e,Ae){return Ce[_e]-Ce[Ae]})}function Po(S){if(xn(S)===Me)return[];var w=wt(S);return[ia(S),w,ia(w)]}function da(S){var w=S.state,U=S.options,$=S.name;if(!w.modifiersData[$]._skip){for(var B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!0:te,le=U.fallbackPlacements,se=U.padding,de=U.boundary,Ee=U.rootBoundary,Oe=U.altBoundary,Ce=U.flipVariations,_e=Ce===void 0?!0:Ce,Ae=U.allowedAutoPlacements,Ue=w.options.placement,$e=xn(Ue),Fe=$e===Ue,qe=le||(Fe||!_e?[wt(Ue)]:Po(Ue)),Xe=[Ue].concat(qe).reduce(function(qn,er){return qn.concat(xn(er)===Me?ua(w,{placement:er,boundary:de,rootBoundary:Ee,padding:se,flipVariations:_e,allowedAutoPlacements:Ae}):er)},[]),st=w.rects.reference,it=w.rects.popper,ot=new Map,ut=!0,jt=Xe[0],Ct=0;Ct=0,Nt=Lt?"width":"height",kt=lr(w,{placement:ft,boundary:de,rootBoundary:Ee,altBoundary:Oe,padding:se}),Yt=Lt?Rt?Pe:ke:Rt?Ke:Re;st[Nt]>it[Nt]&&(Yt=wt(Yt));var Jn=wt(Yt),Nn=[];if(G&&Nn.push(kt[at]<=0),re&&Nn.push(kt[Yt]<=0,kt[Jn]<=0),Nn.every(function(qn){return qn})){jt=ft,ut=!1;break}ot.set(ft,Nn)}if(ut)for(var Xo=_e?3:1,Ga=function(er){var fo=Xe.find(function(tr){var jr=ot.get(tr);if(jr)return jr.slice(0,er).every(function(zr){return zr})});if(fo)return jt=fo,"break"},$r=Xo;$r>0;$r--){var gr=Ga($r);if(gr==="break")break}w.placement!==jt&&(w.modifiersData[$]._skip=!0,w.placement=jt,w.reset=!0)}}var qs={name:"flip",enabled:!0,phase:"main",fn:da,requiresIfExists:["offset"],data:{_skip:!1}};function el(S){return S==="x"?"y":"x"}function Or(S,w,U){return H(S,Q(w,U))}function Ji(S,w,U){var $=Or(S,w,U);return $>U?U:$}function ii(S){var w=S.state,U=S.options,$=S.name,B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!1:te,le=U.boundary,se=U.rootBoundary,de=U.altBoundary,Ee=U.padding,Oe=U.tether,Ce=Oe===void 0?!0:Oe,_e=U.tetherOffset,Ae=_e===void 0?0:_e,Ue=lr(w,{boundary:le,rootBoundary:se,padding:Ee,altBoundary:de}),$e=xn(w.placement),Fe=pn(w.placement),qe=!Fe,Xe=sr($e),st=el(Xe),it=w.modifiersData.popperOffsets,ot=w.rects.reference,ut=w.rects.popper,jt=typeof Ae=="function"?Ae(Object.assign({},w.rects,{placement:w.placement})):Ae,Ct=typeof jt=="number"?{mainAxis:jt,altAxis:jt}:Object.assign({mainAxis:0,altAxis:0},jt),ft=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,at={x:0,y:0};if(it){if(G){var Rt,Lt=Xe==="y"?Re:ke,Nt=Xe==="y"?Ke:Pe,kt=Xe==="y"?"height":"width",Yt=it[Xe],Jn=Yt+Ue[Lt],Nn=Yt-Ue[Nt],Xo=Ce?-ut[kt]/2:0,Ga=Fe===We?ot[kt]:ut[kt],$r=Fe===We?-ut[kt]:-ot[kt],gr=w.elements.arrow,qn=Ce&&gr?Je(gr):{width:0,height:0},er=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:Yi(),fo=er[Lt],tr=er[Nt],jr=Or(0,ot[kt],qn[kt]),zr=qe?ot[kt]/2-Xo-jr-fo-Ct.mainAxis:Ga-jr-fo-Ct.mainAxis,Un=qe?-ot[kt]/2+Xo+jr+tr+Ct.mainAxis:$r+jr+tr+Ct.mainAxis,Wr=w.elements.arrow&&rt(w.elements.arrow),Go=Wr?Xe==="y"?Wr.clientTop||0:Wr.clientLeft||0:0,yr=(Rt=ft==null?void 0:ft[Xe])!=null?Rt:0,Bi=Yt+zr-yr-Go,ho=Yt+Un-yr,Ki=Or(Ce?Q(Jn,Bi):Jn,Yt,Ce?H(Nn,ho):Nn);it[Xe]=Ki,at[Xe]=Ki-Yt}if(re){var Ha,Kt=Xe==="x"?Re:ke,Ya=Xe==="x"?Ke:Pe,nr=it[st],mo=st==="y"?"height":"width",Ho=nr+Ue[Kt],Qa=nr-Ue[Ya],rr=[Re,ke].indexOf($e)!==-1,Bt=(Ha=ft==null?void 0:ft[st])!=null?Ha:0,Ut=rr?Ho:nr-ot[mo]-ut[mo]-Bt+Ct.altAxis,Ft=rr?nr+ot[mo]+ut[mo]-Bt-Ct.altAxis:Qa,Yo=Ce&&rr?Ji(Ut,nr,Ft):Or(Ce?Ut:Ho,nr,Ce?Ft:Qa);it[st]=Yo,at[st]=Yo-nr}w.modifiersData[$]=at}}var Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:ii,requiresIfExists:["offset"]},tl=function(w,U){return w=typeof w=="function"?w(Object.assign({},U.rects,{placement:U.placement})):w,Qi(typeof w!="number"?w:Zi(w,Ve))};function si(S){var w,U=S.state,$=S.name,B=S.options,G=U.elements.arrow,te=U.modifiersData.popperOffsets,re=xn(U.placement),le=sr(re),se=[ke,Pe].indexOf(re)>=0,de=se?"height":"width";if(!(!G||!te)){var Ee=tl(B.padding,U),Oe=Je(G),Ce=le==="y"?Re:ke,_e=le==="y"?Ke:Pe,Ae=U.rects.reference[de]+U.rects.reference[le]-te[le]-U.rects.popper[de],Ue=te[le]-U.rects.reference[le],$e=rt(G),Fe=$e?le==="y"?$e.clientHeight||0:$e.clientWidth||0:0,qe=Ae/2-Ue/2,Xe=Ee[Ce],st=Fe-Oe[de]-Ee[_e],it=Fe/2-Oe[de]/2+qe,ot=Or(Xe,it,st),ut=le;U.modifiersData[$]=(w={},w[ut]=ot,w.centerOffset=ot-it,w)}}function _t(S){var w=S.state,U=S.options,$=U.element,B=$===void 0?"[data-popper-arrow]":$;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||Hi(w.elements.popper,B)&&(w.elements.arrow=B))}var qi={name:"arrow",enabled:!0,phase:"main",fn:si,effect:_t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function li(S,w,U){return U===void 0&&(U={x:0,y:0}),{top:S.top-w.height-U.y,right:S.right-w.width+U.x,bottom:S.bottom-w.height+U.y,left:S.left-w.width-U.x}}function fa(S){return[Re,Pe,Ke,ke].some(function(w){return S[w]>=0})}function es(S){var w=S.state,U=S.name,$=w.rects.reference,B=w.rects.popper,G=w.modifiersData.preventOverflow,te=lr(w,{elementContext:"reference"}),re=lr(w,{altBoundary:!0}),le=li(te,$),se=li(re,B,G),de=fa(le),Ee=fa(se);w.modifiersData[U]={referenceClippingOffsets:le,popperEscapeOffsets:se,isReferenceHidden:de,hasPopperEscaped:Ee},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":de,"data-popper-escaped":Ee})}var ts={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:es},ns=[br,ni,ra,aa,Ys,qs,Mo,qi,ts],ha=Hr({defaultModifiers:ns}),Yr=t(16160);function _n(){return _n=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Jr(S,w){return Jr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Jr(S,w)}function di(S,w){var U,$,B,G,te={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return G={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function re(se){return function(de){return le([se,de])}}function le(se){if(U)throw new TypeError("Generator is already executing.");for(;te;)try{if(U=1,$&&(B=se[0]&2?$.return:se[0]?$.throw||((B=$.return)&&B.call($),0):$.next)&&!(B=B.call($,se[1])).done)return B;switch($=0,B&&(se=[se[0]&2,B.value]),se[0]){case 0:case 1:B=se;break;case 4:return te.label++,{value:se[1],done:!1};case 5:te.label++,$=se[1],se=[0];continue;case 7:se=te.ops.pop(),te.trys.pop();continue;default:if(B=te.trys,!(B=B.length>0&&B[B.length-1])&&(se[0]===6||se[0]===2)){te=0;continue}if(se[0]===3&&(!B||se[1]>B[0]&&se[1]=0)&&(U[B]=S[B]);return U}function Jr(S,w){return Jr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Jr(S,w)}function di(S,w){var U,$,B,G,te={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return G={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function re(se){return function(de){return le([se,de])}}function le(se){if(U)throw new TypeError("Generator is already executing.");for(;te;)try{if(U=1,$&&(B=se[0]&2?$.return:se[0]?$.throw||((B=$.return)&&B.call($),0):$.next)&&!(B=B.call($,se[1])).done)return B;switch($=0,B&&(se=[se[0]&2,B.value]),se[0]){case 0:case 1:B=se;break;case 4:return te.label++,{value:se[1],done:!1};case 5:te.label++,$=se[1],se=[0];continue;case 7:se=te.ops.pop(),te.trys.pop();continue;default:if(B=te.trys,!(B=B.length>0&&B[B.length-1])&&(se[0]===6||se[0]===2)){te=0;continue}if(se[0]===3&&(!B||se[1]>B[0]&&se[1]=0)&&(U[B]=S[B]);return U}function wo(S,w){return wo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wo(S,w)}var pa=void 0,Bo=function(S,w,U,$){if(S.length===0)return[];var B=(0,Zt.OY)(Math.min).apply(pa,[].concat(S)),G=(0,Zt.OY)(Math.max).apply(pa,[].concat(S));U!==void 0&&(B[0]=U[0],G[0]=U[1]),$!==void 0&&(B[1]=$[0],G[1]=$[1]);var te=(0,Zt.Tj)(function(re){return(0,Zt.OY)(function(le,se,de,Ee){return(le-se)/(de-se)*Ee})(re,B,G,w)})(S);return te},ga=function(S){for(var w="",U=0;U0){var Fe=$e[0],qe=$e[$e.length-1];$e.push([Ue[0]+_e,qe[1]]),$e.push([Ue[0]+_e,-_e]),$e.push([-_e,-_e]),$e.push([-_e,Fe[1]])}var Xe=ga($e),st=Pr({},Ae,{className:"",ref:this.ref});return(0,e.jsx)(j.az,Pr({position:"relative"},Ae,{children:(0,e.jsx)(j.az,Pr({},st,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ue[0]+" "+Ue[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, -"+Ue[1]+")",fill:de,stroke:Ie,strokeWidth:_e,points:Xe})})}))}))},w}(n.Component),ol={Line:ss};/** + */function to(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function Pr(){return Pr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function wo(S,w){return wo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wo(S,w)}var pa=void 0,Bo=function(S,w,U,$){if(S.length===0)return[];var B=(0,Zt.OY)(Math.min).apply(pa,[].concat(S)),G=(0,Zt.OY)(Math.max).apply(pa,[].concat(S));U!==void 0&&(B[0]=U[0],G[0]=U[1]),$!==void 0&&(B[1]=$[0],G[1]=$[1]);var te=(0,Zt.Tj)(function(re){return(0,Zt.OY)(function(le,se,de,Ee){return(le-se)/(de-se)*Ee})(re,B,G,w)})(S);return te},ga=function(S){for(var w="",U=0;U0){var Fe=$e[0],qe=$e[$e.length-1];$e.push([Ue[0]+_e,qe[1]]),$e.push([Ue[0]+_e,-_e]),$e.push([-_e,-_e]),$e.push([-_e,Fe[1]])}var Xe=ga($e),st=Pr({},Ae,{className:"",ref:this.ref});return(0,e.jsx)(j.az,Pr({position:"relative"},Ae,{children:(0,e.jsx)(j.az,Pr({},st,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ue[0]+" "+Ue[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, -"+Ue[1]+")",fill:de,stroke:Oe,strokeWidth:_e,points:Xe})})}))}))},w}(n.Component),ol={Line:ss};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -163,31 +163,31 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ko(){return Ko=Object.assign||function(S){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},G))},B.handleDragStart=function(G){var te=B.props,re=te.value,le=te.dragMatrix,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=G.target,B.setState({dragging:!1,origin:ya(G,le),value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var de=B.state,Ee=de.dragging,Ie=de.value,Ce=B.props.onDrag;Ee&&Ce&&Ce(G,Ie)},B.props.updateRate||dl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(G){var te=B.props,re=te.minValue,le=te.maxValue,se=te.step,de=te.stepPixelSize,Ee=te.dragMatrix;B.setState(function(Ie){var Ce=Ko({},Ie),_e=ya(G,Ee)-Ce.origin;if(Ie.dragging){var Ae=Number.isFinite(re)?re%se:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*se/de,re-se,le+se),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%se+Ae,re,le),Ce.origin=ya(G,Ee)}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(G){var te=B.props,re=te.onChange,le=te.onDrag,se=B.state,de=se.dragging,Ee=se.value,Ie=se.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!de,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),de)B.suppressFlicker(),re&&re(G,Ee),le&&le(G,Ee);else if(B.inputRef){var Ce=B.inputRef.current;Ce.value=Ie;try{Ce.focus(),Ce.select()}catch(_e){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,le=G.value,se=G.suppressingFlicker,de=this.props,Ee=de.animated,Ie=de.value,Ce=de.unit,_e=de.minValue,Ae=de.maxValue,Ue=de.unclamped,$e=de.format,Fe=de.onChange,qe=de.onDrag,Xe=de.children,st=de.height,it=de.lineHeight,ot=de.fontSize,ut=Ie;(te||se)&&(ut=le);var jt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!te&&!se?(0,e.jsx)(m,{value:ut,format:$e}):$e?$e(ut):ut,Ce?" "+Ce:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:st,lineHeight:it,fontsize:ot},onBlur:function(ft){if(re){var at;if(Ue?at=parseFloat(ft.target.value):at=(0,s.qE)(parseFloat(ft.target.value),_e,Ae),Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),Fe&&Fe(ft,at),qe&&qe(ft,at)}},onKeyDown:function(ft){if(ft.keyCode===13){var at;if(Ue?at=parseFloat(ft.target.value):at=(0,s.qE)(parseFloat(ft.target.value),_e,Ae),Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),Fe&&Fe(ft,at),qe&&qe(ft,at);return}if(ft.keyCode===27){B.setState({editing:!1});return}}});return Xe({dragging:te,editing:re,value:Ie,displayValue:ut,displayElement:jt,inputElement:Ct,handleDragStart:this.handleDragStart})},w}(n.Component);Ca.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var fl=t(68540),hl=t.n(fl),jc=function(w){return Array.isArray(w)?w[0]:w},ml=function(w){if(typeof w=="function"){for(var U=arguments.length,$=new Array(U>1?U-1:0),B=1;B0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},G))},B.handleDragStart=function(G){var te=B.props,re=te.value,le=te.dragMatrix,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=G.target,B.setState({dragging:!1,origin:ya(G,le),value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var de=B.state,Ee=de.dragging,Oe=de.value,Ce=B.props.onDrag;Ee&&Ce&&Ce(G,Oe)},B.props.updateRate||dl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(G){var te=B.props,re=te.minValue,le=te.maxValue,se=te.step,de=te.stepPixelSize,Ee=te.dragMatrix;B.setState(function(Oe){var Ce=Ko({},Oe),_e=ya(G,Ee)-Ce.origin;if(Oe.dragging){var Ae=Number.isFinite(re)?re%se:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*se/de,re-se,le+se),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%se+Ae,re,le),Ce.origin=ya(G,Ee)}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(G){var te=B.props,re=te.onChange,le=te.onDrag,se=B.state,de=se.dragging,Ee=se.value,Oe=se.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!de,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),de)B.suppressFlicker(),re&&re(G,Ee),le&&le(G,Ee);else if(B.inputRef){var Ce=B.inputRef.current;Ce.value=Oe;try{Ce.focus(),Ce.select()}catch(_e){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,le=G.value,se=G.suppressingFlicker,de=this.props,Ee=de.animated,Oe=de.value,Ce=de.unit,_e=de.minValue,Ae=de.maxValue,Ue=de.unclamped,$e=de.format,Fe=de.onChange,qe=de.onDrag,Xe=de.children,st=de.height,it=de.lineHeight,ot=de.fontSize,ut=Oe;(te||se)&&(ut=le);var jt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!te&&!se?(0,e.jsx)(h,{value:ut,format:$e}):$e?$e(ut):ut,Ce?" "+Ce:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:st,lineHeight:it,fontsize:ot},onBlur:function(ft){if(re){var at;if(Ue?at=parseFloat(ft.target.value):at=(0,s.qE)(parseFloat(ft.target.value),_e,Ae),Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),Fe&&Fe(ft,at),qe&&qe(ft,at)}},onKeyDown:function(ft){if(ft.keyCode===13){var at;if(Ue?at=parseFloat(ft.target.value):at=(0,s.qE)(parseFloat(ft.target.value),_e,Ae),Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),Fe&&Fe(ft,at),qe&&qe(ft,at);return}if(ft.keyCode===27){B.setState({editing:!1});return}}});return Xe({dragging:te,editing:re,value:Oe,displayValue:ut,displayElement:jt,inputElement:Ct,handleDragStart:this.handleDragStart})},w}(n.Component);Ca.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var fl=t(68540),hl=t.n(fl),jc=function(w){return Array.isArray(w)?w[0]:w},ml=function(w){if(typeof w=="function"){for(var U=arguments.length,$=new Array(U>1?U-1:0),B=1;B=0)&&(U[B]=S[B]);return U}var no=function(S){return(0,C.Ly)(["Flex",S.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&S.direction==="column"&&"Flex--iefix--column",(0,j.WP)(S)])},hs=function(S){var w=S.className,U=S.direction,$=S.wrap,B=S.align,G=S.justify,te=S.inline,re=fr(S,["className","direction","wrap","align","justify","inline"]);return(0,j.Fl)(Xn({style:Xn({},re.style,{flexDirection:U,flexWrap:$===!0?"wrap":$,alignItems:B,justifyContent:G})},re))},Mn=function(S){var w=S.className,U=fr(S,["className"]);return(0,e.jsx)("div",Xn({className:(0,C.Ly)([w,no(U)])},hs(U)))},ji=function(S){return(0,C.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,j.WP)(S)])},Oa=function(S){var w=S.className,U=S.style,$=S.grow,B=S.order,G=S.shrink,te=S.basis,re=S.align,le=fr(S,["className","style","grow","order","shrink","basis","align"]),se,de=(se=te!=null?te:S.width)!=null?se:$!==void 0?0:void 0;return(0,j.Fl)(Xn({style:Xn({},U,{flexGrow:$!==void 0&&Number($),flexShrink:G!==void 0&&Number(G),flexBasis:(0,j.zA)(de),order:B,alignSelf:re})},le))},yi=function(S){var w=S.className,U=fr(S,["className"]);return(0,e.jsx)("div",Xn({className:(0,C.Ly)([w,ji(S)])},Oa(U)))};Mn.Item=yi;var ro=t(86808);/** + */function Xn(){return Xn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var no=function(S){return(0,C.Ly)(["Flex",S.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&S.direction==="column"&&"Flex--iefix--column",(0,j.WP)(S)])},hs=function(S){var w=S.className,U=S.direction,$=S.wrap,B=S.align,G=S.justify,te=S.inline,re=fr(S,["className","direction","wrap","align","justify","inline"]);return(0,j.Fl)(Xn({style:Xn({},re.style,{flexDirection:U,flexWrap:$===!0?"wrap":$,alignItems:B,justifyContent:G})},re))},Mn=function(S){var w=S.className,U=fr(S,["className"]);return(0,e.jsx)("div",Xn({className:(0,C.Ly)([w,no(U)])},hs(U)))},ji=function(S){return(0,C.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,j.WP)(S)])},Ia=function(S){var w=S.className,U=S.style,$=S.grow,B=S.order,G=S.shrink,te=S.basis,re=S.align,le=fr(S,["className","style","grow","order","shrink","basis","align"]),se,de=(se=te!=null?te:S.width)!=null?se:$!==void 0?0:void 0;return(0,j.Fl)(Xn({style:Xn({},U,{flexGrow:$!==void 0&&Number($),flexShrink:G!==void 0&&Number(G),flexBasis:(0,j.zA)(de),order:B,alignSelf:re})},le))},yi=function(S){var w=S.className,U=fr(S,["className"]);return(0,e.jsx)("div",Xn({className:(0,C.Ly)([w,ji(S)])},Ia(U)))};Mn.Item=yi;var ro=t(86808);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function oo(){return oo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Ei=function(S){var w=S.children,U=Ci(S,["children"]);return(0,e.jsx)(ro.XI,oo({},U,{children:(0,e.jsx)(ro.XI.Row,{children:w})}))},gl=function(S){var w=S.size,U=w===void 0?1:w,$=S.style,B=Ci(S,["size","style"]);return(0,e.jsx)(ro.XI.Cell,oo({style:oo({width:U+"%"},$)},B))};Ei.Column=gl;function Ia(){return Ia=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var bc=function(S){var w=S.className,U=S.fixBlur,$=U===void 0?!0:U,B=S.objectFit,G=B===void 0?"fill":B,te=S.src,re=S.tooltip,le=jl(S,["className","fixBlur","objectFit","src","tooltip"]),se=computeBoxProps(le);se.style=Ia({},se.style,{"-ms-interpolation-mode":$?"nearest-neighbor":"auto",objectFit:G});var de=_jsx("img",Ia({className:w,src:te},se));return re&&(de=_jsx(Tooltip,{content:re,children:de})),de},yl=t(1568);/** + */function oo(){return oo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Ei=function(S){var w=S.children,U=Ci(S,["children"]);return(0,e.jsx)(ro.XI,oo({},U,{children:(0,e.jsx)(ro.XI.Row,{children:w})}))},gl=function(S){var w=S.size,U=w===void 0?1:w,$=S.style,B=Ci(S,["size","style"]);return(0,e.jsx)(ro.XI.Cell,oo({style:oo({width:U+"%"},$)},B))};Ei.Column=gl;function Oa(){return Oa=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var bc=function(S){var w=S.className,U=S.fixBlur,$=U===void 0?!0:U,B=S.objectFit,G=B===void 0?"fill":B,te=S.src,re=S.tooltip,le=jl(S,["className","fixBlur","objectFit","src","tooltip"]),se=computeBoxProps(le);se.style=Oa({},se.style,{"-ms-interpolation-mode":$?"nearest-neighbor":"auto",objectFit:G});var de=_jsx("img",Oa({className:w,src:te},se));return re&&(de=_jsx(Tooltip,{content:re,children:de})),de},yl=t(1568);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function an(){return an=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var ms=function(S){var w=S.className,U=S.value,$=S.minValue,B=$===void 0?0:$,G=S.maxValue,te=G===void 0?1:G,re=S.color,le=S.ranges,se=le===void 0?{}:le,de=S.children,Ee=No(S,["className","value","minValue","maxValue","color","ranges","children"]),Ie=(0,s.hs)(U,B,te),Ce=de!==void 0,_e=re||(0,s.TG)(U,se)||"default",Ae=(0,j.Fl)(Ee),Ue=["ProgressBar",w,(0,j.WP)(Ee)],$e={width:(0,s.J$)(Ie)*100+"%"};return yl.NE.includes(_e)||_e==="default"?Ue.push("ProgressBar--color--"+_e):(Ae.style=an({},Ae.style,{borderColor:_e}),$e.backgroundColor=_e),(0,e.jsxs)("div",an({className:(0,C.Ly)(Ue)},Ae,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:$e}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Ce?de:(0,s.Mg)(Ie*100)+"%"})]}))};/** + */function an(){return an=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var ms=function(S){var w=S.className,U=S.value,$=S.minValue,B=$===void 0?0:$,G=S.maxValue,te=G===void 0?1:G,re=S.color,le=S.ranges,se=le===void 0?{}:le,de=S.children,Ee=No(S,["className","value","minValue","maxValue","color","ranges","children"]),Oe=(0,s.hs)(U,B,te),Ce=de!==void 0,_e=re||(0,s.TG)(U,se)||"default",Ae=(0,j.Fl)(Ee),Ue=["ProgressBar",w,(0,j.WP)(Ee)],$e={width:(0,s.J$)(Oe)*100+"%"};return yl.NE.includes(_e)||_e==="default"?Ue.push("ProgressBar--color--"+_e):(Ae.style=an({},Ae.style,{borderColor:_e}),$e.backgroundColor=_e),(0,e.jsxs)("div",an({className:(0,C.Ly)(Ue)},Ae,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:$e}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Ce?de:(0,s.Mg)(Oe*100)+"%"})]}))};/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */function Dr(){return Dr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Pa=function(S){var w=S.className,U=S.vertical,$=S.fill,B=S.zebra,G=_a(S,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Dr({className:(0,C.Ly)(["Stack",$&&"Stack--fill",U?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",w,no(S)])},hs(Dr({direction:U?"column":"row"},G))))},bi=function(S){var w=S.className,U=S.innerRef,$=_a(S,["className","innerRef"]);return(0,e.jsx)("div",Dr({className:(0,C.Ly)(["Stack__item",w,ji($)]),ref:U},Oa($)))};Pa.Item=bi;var Cl=function(S){var w=S.className,U=S.hidden,$=_a(S,["className","hidden"]);return(0,e.jsx)("div",Dr({className:(0,C.Ly)(["Stack__item","Stack__divider",U&&"Stack__divider--hidden",w,ji($)])},Oa($)))};Pa.Divider=Cl;function Oc(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function Sr(){return Sr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Uo(S,w){return Uo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Uo(S,w)}var El=.5,Oi=1.5,$o=.1,xs=null;/** + */function Dr(){return Dr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Pa=function(S){var w=S.className,U=S.vertical,$=S.fill,B=S.zebra,G=_a(S,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",Dr({className:(0,C.Ly)(["Stack",$&&"Stack--fill",U?"Stack--vertical":"Stack--horizontal",B&&"Stack--zebra",w,no(S)])},hs(Dr({direction:U?"column":"row"},G))))},bi=function(S){var w=S.className,U=S.innerRef,$=_a(S,["className","innerRef"]);return(0,e.jsx)("div",Dr({className:(0,C.Ly)(["Stack__item",w,ji($)]),ref:U},Ia($)))};Pa.Item=bi;var Cl=function(S){var w=S.className,U=S.hidden,$=_a(S,["className","hidden"]);return(0,e.jsx)("div",Dr({className:(0,C.Ly)(["Stack__item","Stack__divider",U&&"Stack__divider--hidden",w,ji($)])},Ia($)))};Pa.Divider=Cl;function Ic(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function Sr(){return Sr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Uo(S,w){return Uo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Uo(S,w)}var El=.5,Ii=1.5,$o=.1,xs=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Da(){return Da=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Ta(S,w){return Ta=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ta(S,w)}var Tr=function(S){return typeof S!="number"&&typeof S!="string"?"":String(S)},ps=function(S){"use strict";Sa(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleBlur=function(G){var te=B.state.editing,re=B.props.onChange;te&&(B.setEditing(!1),re&&re(G,G.target.value))},B.handleKeyDown=function(G){var te=B.props,re=te.onInput,le=te.onChange,se=te.onEnter;if(G.keyCode===_.Ri){B.setEditing(!1),le&&le(G,G.target.value),re&&re(G,G.target.value),se&&se(G,G.target.value),B.props.selfClear?G.target.value="":G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=Tr(B.props.value),G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.inputRef.current;te&&(te.value=Tr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=this.state.editing,re=B.value,le=this.props.value,se=this.inputRef.current;se&&!te&&re!==le&&(se.value=Tr(le))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.selfClear,te=B.onInput,re=B.onChange,le=B.onEnter,se=B.value,de=B.maxLength,Ee=B.placeholder,Ie=Ii(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),Ce=Ie.className,_e=Ie.fluid,Ae=Ie.monospace,Ue=Ii(Ie,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Da({className:(0,C.Ly)(["Input",_e&&"Input--fluid",Ae&&"Input--monospace",Ce])},Ue,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{ref:this.inputRef,className:"Input__input",placeholder:Ee,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:de})]}))},w}(n.Component),bl=t(5030);function Ol(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Bn(S,w)}function Bn(S,w){return Bn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Bn(S,w)}var gs=null;/** + */function Da(){return Da=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Ta(S,w){return Ta=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ta(S,w)}var Tr=function(S){return typeof S!="number"&&typeof S!="string"?"":String(S)},ps=function(S){"use strict";Sa(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleBlur=function(G){var te=B.state.editing,re=B.props.onChange;te&&(B.setEditing(!1),re&&re(G,G.target.value))},B.handleKeyDown=function(G){var te=B.props,re=te.onInput,le=te.onChange,se=te.onEnter;if(G.keyCode===_.Ri){B.setEditing(!1),le&&le(G,G.target.value),re&&re(G,G.target.value),se&&se(G,G.target.value),B.props.selfClear?G.target.value="":G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=Tr(B.props.value),G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.inputRef.current;te&&(te.value=Tr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=this.state.editing,re=B.value,le=this.props.value,se=this.inputRef.current;se&&!te&&re!==le&&(se.value=Tr(le))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.selfClear,te=B.onInput,re=B.onChange,le=B.onEnter,se=B.value,de=B.maxLength,Ee=B.placeholder,Oe=Oi(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),Ce=Oe.className,_e=Oe.fluid,Ae=Oe.monospace,Ue=Oi(Oe,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Da({className:(0,C.Ly)(["Input",_e&&"Input--fluid",Ae&&"Input--monospace",Ce])},Ue,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{ref:this.inputRef,className:"Input__input",placeholder:Ee,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:de})]}))},w}(n.Component),bl=t(5030);function Il(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Bn(S,w)}function Bn(S,w){return Bn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Bn(S,w)}var gs=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ar(){return Ar=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var _l=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.unclamped,te=S.onChange,re=S.onDrag,le=S.step,se=S.stepPixelSize,de=S.suppressFlicker,Ee=S.unit,Ie=S.value,Ce=S.className,_e=S.style,Ae=S.fillValue,Ue=S.color,$e=S.ranges,Fe=$e===void 0?{}:$e,qe=S.size,Xe=qe===void 0?1:qe,st=S.bipolar,it=S.children,ot=Il(S,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Ca,{dragMatrix:[0,-1],animated:w,format:U,maxValue:$,minValue:B,unclamped:G,onChange:te,onDrag:re,step:le,stepPixelSize:se,suppressFlicker:de,unit:Ee,value:Ie,children:function(ut){var jt=ut.dragging,Ct=ut.editing,ft=ut.value,at=ut.displayValue,Rt=ut.displayElement,Lt=ut.inputElement,Nt=ut.handleDragStart,kt=(0,s.hs)(Ae!=null?Ae:at,B,$),Yt=(0,s.hs)(at,B,$),Jn=Ue||(0,s.TG)(Ae!=null?Ae:ft,Fe)||"default",Nn=Math.min((Yt-.5)*270,225);return(0,e.jsxs)("div",Ar({className:(0,C.Ly)(["Knob","Knob--color--"+Jn,st&&"Knob--bipolar",Ce,(0,j.WP)(ot)])},(0,j.Fl)(Ar({style:Ar({fontSize:Xe+"em"},_e)},ot)),{onMouseDown:Nt,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Nn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),jt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:Rt}),(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(((st?2.75:2)-kt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Lt]}))}})};/** + */function Ar(){return Ar=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var _l=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.unclamped,te=S.onChange,re=S.onDrag,le=S.step,se=S.stepPixelSize,de=S.suppressFlicker,Ee=S.unit,Oe=S.value,Ce=S.className,_e=S.style,Ae=S.fillValue,Ue=S.color,$e=S.ranges,Fe=$e===void 0?{}:$e,qe=S.size,Xe=qe===void 0?1:qe,st=S.bipolar,it=S.children,ot=Ol(S,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Ca,{dragMatrix:[0,-1],animated:w,format:U,maxValue:$,minValue:B,unclamped:G,onChange:te,onDrag:re,step:le,stepPixelSize:se,suppressFlicker:de,unit:Ee,value:Oe,children:function(ut){var jt=ut.dragging,Ct=ut.editing,ft=ut.value,at=ut.displayValue,Rt=ut.displayElement,Lt=ut.inputElement,Nt=ut.handleDragStart,kt=(0,s.hs)(Ae!=null?Ae:at,B,$),Yt=(0,s.hs)(at,B,$),Jn=Ue||(0,s.TG)(Ae!=null?Ae:ft,Fe)||"default",Nn=Math.min((Yt-.5)*270,225);return(0,e.jsxs)("div",Ar({className:(0,C.Ly)(["Knob","Knob--color--"+Jn,st&&"Knob--bipolar",Ce,(0,j.WP)(ot)])},(0,j.Fl)(Ar({style:Ar({fontSize:Xe+"em"},_e)},ot)),{onMouseDown:Nt,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+Nn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),jt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:Rt}),(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(((st?2.75:2)-kt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Lt]}))}})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -195,15 +195,15 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var Ot=function(S){var w=S.children;return(0,e.jsx)("table",{className:"LabeledList",children:w})},Pi=function(S){var w=S.className,U=S.label,$=S.labelColor,B=$===void 0?"label":$,G=S.labelWrap,te=S.color,re=S.textAlign,le=S.buttons,se=S.content,de=S.children,Ee=S.verticalAlign,Ie=Ee===void 0?"baseline":Ee,Ce=S.tooltip,_e;U&&(_e=U,typeof U=="string"&&(_e+=":")),Ce!==void 0&&(_e=(0,e.jsx)(rn,{content:Ce,children:(0,e.jsx)(j.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:_e})}));var Ae=(0,e.jsx)(j.az,{as:"td",color:B,className:(0,C.Ly)(["LabeledList__cell",!G&&"LabeledList__label--nowrap"]),verticalAlign:Ie,children:_e});return(0,e.jsxs)("tr",{className:(0,C.Ly)(["LabeledList__row",w]),children:[Ae,(0,e.jsxs)(j.az,{as:"td",color:te,textAlign:re,className:(0,C.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:le?void 0:2,verticalAlign:Ie,children:[se,de]}),le&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:le})]})},Aa=function(S){var w=S.size?(0,j.zA)(Math.max(0,S.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:w,paddingBottom:w},children:(0,e.jsx)(us,{})})})};Ot.Item=Pi,Ot.Divider=Aa;/** + */var It=function(S){var w=S.children;return(0,e.jsx)("table",{className:"LabeledList",children:w})},Pi=function(S){var w=S.className,U=S.label,$=S.labelColor,B=$===void 0?"label":$,G=S.labelWrap,te=S.color,re=S.textAlign,le=S.buttons,se=S.content,de=S.children,Ee=S.verticalAlign,Oe=Ee===void 0?"baseline":Ee,Ce=S.tooltip,_e;U&&(_e=U,typeof U=="string"&&(_e+=":")),Ce!==void 0&&(_e=(0,e.jsx)(rn,{content:Ce,children:(0,e.jsx)(j.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:_e})}));var Ae=(0,e.jsx)(j.az,{as:"td",color:B,className:(0,C.Ly)(["LabeledList__cell",!G&&"LabeledList__label--nowrap"]),verticalAlign:Oe,children:_e});return(0,e.jsxs)("tr",{className:(0,C.Ly)(["LabeledList__row",w]),children:[Ae,(0,e.jsxs)(j.az,{as:"td",color:te,textAlign:re,className:(0,C.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:le?void 0:2,verticalAlign:Oe,children:[se,de]}),le&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:le})]})},Aa=function(S){var w=S.size?(0,j.zA)(Math.max(0,S.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:w,paddingBottom:w},children:(0,e.jsx)(us,{})})})};It.Item=Pi,It.Divider=Aa;/** * @file * @copyright 2022 Aleksej Komarov * @license MIT - */function Rr(){return Rr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function wr(S,w){return wr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wr(S,w)}var wa=function(S){"use strict";Mi(w,S);function w($){var B;return B=S.call(this,$)||this,B.handleClick=function(G){if(!B.props.menuRef.current){_r.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(G.target)?_r.v.log("Menu.handleClick(): Inside"):(_r.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var U=w.prototype;return U.componentWillMount=function(){window.addEventListener("click",this.handleClick)},U.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},U.render=function(){var B=this.props,G=B.width,te=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:G},children:te})},w}(n.Component),ao=function(S){"use strict";Mi(w,S);function w($){var B;return B=S.call(this,$)||this,B.menuRef=(0,n.createRef)(),B}var U=w.prototype;return U.render=function(){var B=this.props,G=B.open,te=B.openWidth,re=B.children,le=B.disabled,se=B.display,de=B.onMouseOver,Ee=B.onClick,Ie=B.onOutsideClick,Ce=Ra(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),_e=Ce.className,Ae=Ra(Ce,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(j.az,Rr({className:(0,C.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",_e])},Ae,{onClick:le?function(){return null}:Ee,onMouseOver:de,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:se})})),G&&(0,e.jsx)(wa,{width:te,menuRef:this.menuRef,onOutsideClick:Ie,children:re})]})},w}(n.Component),zo=function(S){var w=S.entry,U=S.children,$=S.openWidth,B=S.display,G=S.setOpenMenuBar,te=S.openMenuBar,re=S.setOpenOnHover,le=S.openOnHover,se=S.disabled,de=S.className;return(0,e.jsx)(ao,{openWidth:$,display:B,disabled:se,open:te===w,className:de,onClick:function(){var Ee=te===w?null:w;G(Ee),re(!le)},onOutsideClick:function(){G(null),re(!1)},onMouseOver:function(){le&&G(w)},children:U})},Pl=function(S){var w=S.value,U=S.displayText,$=S.onClick,B=S.checked;return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return $(w)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(R,{size:1.3,name:"check"})}),U]})};zo.MenuItemToggle=Pl;var Ml=function(S){var w=S.value,U=S.displayText,$=S.onClick;return(0,e.jsx)(j.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return $(w)},children:U})};zo.MenuItem=Ml;var Cs=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};zo.Separator=Cs;var Ba=function(S){var w=S.children;return(0,e.jsx)(j.az,{className:"MenuBar",children:w})};Ba.Dropdown=zo;/** + */function Rr(){return Rr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function wr(S,w){return wr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wr(S,w)}var wa=function(S){"use strict";Mi(w,S);function w($){var B;return B=S.call(this,$)||this,B.handleClick=function(G){if(!B.props.menuRef.current){_r.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(G.target)?_r.v.log("Menu.handleClick(): Inside"):(_r.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var U=w.prototype;return U.componentWillMount=function(){window.addEventListener("click",this.handleClick)},U.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},U.render=function(){var B=this.props,G=B.width,te=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:G},children:te})},w}(n.Component),ao=function(S){"use strict";Mi(w,S);function w($){var B;return B=S.call(this,$)||this,B.menuRef=(0,n.createRef)(),B}var U=w.prototype;return U.render=function(){var B=this.props,G=B.open,te=B.openWidth,re=B.children,le=B.disabled,se=B.display,de=B.onMouseOver,Ee=B.onClick,Oe=B.onOutsideClick,Ce=Ra(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),_e=Ce.className,Ae=Ra(Ce,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(j.az,Rr({className:(0,C.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",_e])},Ae,{onClick:le?function(){return null}:Ee,onMouseOver:de,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:se})})),G&&(0,e.jsx)(wa,{width:te,menuRef:this.menuRef,onOutsideClick:Oe,children:re})]})},w}(n.Component),zo=function(S){var w=S.entry,U=S.children,$=S.openWidth,B=S.display,G=S.setOpenMenuBar,te=S.openMenuBar,re=S.setOpenOnHover,le=S.openOnHover,se=S.disabled,de=S.className;return(0,e.jsx)(ao,{openWidth:$,display:B,disabled:se,open:te===w,className:de,onClick:function(){var Ee=te===w?null:w;G(Ee),re(!le)},onOutsideClick:function(){G(null),re(!1)},onMouseOver:function(){le&&G(w)},children:U})},Pl=function(S){var w=S.value,U=S.displayText,$=S.onClick,B=S.checked;return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return $(w)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(R,{size:1.3,name:"check"})}),U]})};zo.MenuItemToggle=Pl;var Ml=function(S){var w=S.value,U=S.displayText,$=S.onClick;return(0,e.jsx)(j.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return $(w)},children:U})};zo.MenuItem=Ml;var Cs=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};zo.Separator=Cs;var Ba=function(S){var w=S.children;return(0,e.jsx)(j.az,{className:"MenuBar",children:w})};Ba.Dropdown=zo;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function io(){return io=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Si=function(S){var w=S.className,U=S.children,$=S.onEnter,B=Di(S,["className","children","onEnter"]),G;return $&&(G=function(te){var re=te.which||te.keyCode;re===13&&$(te)}),(0,e.jsx)(cs,{onKeyDown:G,children:(0,e.jsx)("div",io({className:(0,C.Ly)(["Modal",w,(0,j.WP)(B)])},(0,j.Fl)(B),{children:U}))})},Ka=t(4413);function Wo(){return Wo=Object.assign||function(S){for(var w=1;w500&&(Ie=500);var Ce=se.offsetY-256*Ee;return Ce<-200&&(Ce=-200),Ce>200&&(Ce=200),se.offsetX=Ie,se.offsetY=Ce,$.onZoom&&$.onZoom(se.zoom),se})},B}var U=w.prototype;return U.render=function(){var B=(0,Ka.Oc)().config,G=this.state,te=G.dragging,re=G.offsetX,le=G.offsetY,se=G.zoom,de=se===void 0?1:se,Ee=this.props.children,Ie=B.map+"_nanomap_z"+B.mapZLevel+".png",Ce=this.props.zoomScale*de+"px",_e={width:Ce,height:Ce,"margin-top":le+"px","margin-left":re+"px",overflow:"hidden",position:"relative","background-image":"url("+Ie+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:te?"move":"auto"};return(0,e.jsxs)(j.az,{className:"NanoMap__container",children:[(0,e.jsx)(j.az,{style:_e,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(j.az,{children:Ee})}),(0,e.jsx)(Gn,{zoom:de,onZoom:this.handleZoom})]})},w}(n.Component),Ai=function(S){var w=S.x,U=S.y,$=S.zoom,B=$===void 0?1:$,G=S.icon,te=S.tooltip,re=S.color,le=S.onClick,se=function(Ie){ka(Ie),le&&le(Ie)},de=w*2*B-B-3,Ee=U*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(j.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Ee+"px",left:de+"px",onMouseDown:se,children:[(0,e.jsx)(R,{name:G,color:re,fontSize:"6px"}),(0,e.jsx)(rn,{content:te})]})})};Ti.Marker=Ai;var Gn=function(S){var w=(0,Ka.Oc)(),U=w.act,$=w.config,B=w.data;return(0,e.jsx)(j.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(Ot,{children:[(0,e.jsx)(Ot.Item,{label:"Zoom",children:(0,e.jsx)(Fa,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(G){return G+"x"},value:S.zoom,onDrag:function(G,te){return S.onZoom(G,te)}})}),(0,e.jsx)(Ot.Item,{label:"Z-Level",children:B.map_levels.sort(function(G,te){return Number(G)-Number(te)}).map(function(G){return(0,e.jsx)(on,{selected:~~G===~~$.mapZLevel,content:G,onClick:function(){U("setZLevel",{mapZLevel:G})}},G)})})]})})};Ti.Zoomer=Gn;/** + */function io(){return io=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Si=function(S){var w=S.className,U=S.children,$=S.onEnter,B=Di(S,["className","children","onEnter"]),G;return $&&(G=function(te){var re=te.which||te.keyCode;re===13&&$(te)}),(0,e.jsx)(cs,{onKeyDown:G,children:(0,e.jsx)("div",io({className:(0,C.Ly)(["Modal",w,(0,j.WP)(B)])},(0,j.Fl)(B),{children:U}))})},Ka=t(4413);function Wo(){return Wo=Object.assign||function(S){for(var w=1;w500&&(Oe=500);var Ce=se.offsetY-256*Ee;return Ce<-200&&(Ce=-200),Ce>200&&(Ce=200),se.offsetX=Oe,se.offsetY=Ce,$.onZoom&&$.onZoom(se.zoom),se})},B}var U=w.prototype;return U.render=function(){var B=(0,Ka.Oc)().config,G=this.state,te=G.dragging,re=G.offsetX,le=G.offsetY,se=G.zoom,de=se===void 0?1:se,Ee=this.props.children,Oe=B.map+"_nanomap_z"+B.mapZLevel+".png",Ce=this.props.zoomScale*de+"px",_e={width:Ce,height:Ce,"margin-top":le+"px","margin-left":re+"px",overflow:"hidden",position:"relative","background-image":"url("+Oe+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:te?"move":"auto"};return(0,e.jsxs)(j.az,{className:"NanoMap__container",children:[(0,e.jsx)(j.az,{style:_e,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(j.az,{children:Ee})}),(0,e.jsx)(Gn,{zoom:de,onZoom:this.handleZoom})]})},w}(n.Component),Ai=function(S){var w=S.x,U=S.y,$=S.zoom,B=$===void 0?1:$,G=S.icon,te=S.tooltip,re=S.color,le=S.onClick,se=function(Oe){ka(Oe),le&&le(Oe)},de=w*2*B-B-3,Ee=U*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(j.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Ee+"px",left:de+"px",onMouseDown:se,children:[(0,e.jsx)(R,{name:G,color:re,fontSize:"6px"}),(0,e.jsx)(rn,{content:te})]})})};Ti.Marker=Ai;var Gn=function(S){var w=(0,Ka.Oc)(),U=w.act,$=w.config,B=w.data;return(0,e.jsx)(j.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(It.Item,{label:"Zoom",children:(0,e.jsx)(Fa,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(G){return G+"x"},value:S.zoom,onDrag:function(G,te){return S.onZoom(G,te)}})}),(0,e.jsx)(It.Item,{label:"Z-Level",children:B.map_levels.sort(function(G,te){return Number(G)-Number(te)}).map(function(G){return(0,e.jsx)(on,{selected:~~G===~~$.mapZLevel,content:G,onClick:function(){U("setZLevel",{mapZLevel:G})}},G)})})]})})};Ti.Zoomer=Gn;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -211,19 +211,19 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Br(){return Br=Object.assign||function(S){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},te))},B.handleDragStart=function(te){var re=B.props.value,le=B.state.editing;le||(document.body.style["pointer-events"]="none",B.ref=te.target,B.setState({dragging:!1,origin:te.screenY,value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var se=B.state,de=se.dragging,Ee=se.value,Ie=B.props.onDrag;de&&Ie&&Ie(te,Ee)},B.props.updateRate||Sl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(te){var re=B.props,le=re.minValue,se=re.maxValue,de=re.step,Ee=re.stepPixelSize;B.setState(function(Ie){var Ce=Br({},Ie),_e=Ce.origin-te.screenY;if(Ie.dragging){var Ae=Number.isFinite(le)?le%de:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*de/Ee,le-de,se+de),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%de+Ae,le,se),Ce.origin=te.screenY}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(te){var re=B.props,le=re.onChange,se=re.onDrag,de=B.state,Ee=de.dragging,Ie=de.value,Ce=de.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),le&&le(te,Ie),se&&se(te,Ie);else if(B.inputRef){var _e=B.inputRef.current;_e.value=Ce;try{_e.focus(),_e.select()}catch(Ae){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,le=G.value,se=G.suppressingFlicker,de=this.props,Ee=de.className,Ie=de.fluid,Ce=de.animated,_e=de.value,Ae=de.unit,Ue=de.minValue,$e=de.maxValue,Fe=de.height,qe=de.width,Xe=de.lineHeight,st=de.fontSize,it=de.format,ot=de.onChange,ut=de.onDrag,jt=_e;(te||se)&&(jt=le);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Ce&&!te&&!se?(0,e.jsx)(m,{value:jt,format:it}):it?it(jt):jt,Ae?" "+Ae:""]});return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["NumberInput",Ie&&"NumberInput--fluid",Ee]),minWidth:qe,minHeight:Fe,lineHeight:Xe,fontSize:st,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qE)((jt-Ue)/($e-Ue)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:Fe,lineHeight:Xe,fontSize:st},onBlur:function(ft){if(re){var at=(0,s.qE)(parseFloat(ft.target.value),Ue,$e);if(Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),ot&&ot(ft,at),ut&&ut(ft,at)}},onKeyDown:function(ft){if(ft.keyCode===13){var at=(0,s.qE)(parseFloat(ft.target.value),Ue,$e);if(Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),ot&&ot(ft,at),ut&&ut(ft,at);return}if(ft.keyCode===27){B.setState({editing:!1});return}}})]})},w}(n.Component);Es.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Yn(){return Yn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function lo(S,w){return lo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},lo(S,w)}var Ua=0,Lr=1e4,mr=function(S,w,U,$){var B=w||Ua,G=U||U===0?U:Lr,te=$?S.replace(/[^\-\d.]/g,""):S.replace(/[^\-\d]/g,"");return $&&(te=vr(te,B),te=Gt(".",te)),w<0?(te=St(te),te=Gt("-",te)):te=te.replaceAll("-",""),B<=1&&G>=0?At(te,B,G,$):te},At=function(S,w,U,$){var B=$?parseFloat(S):parseInt(S,10);if(!isNaN(B)&&(S.slice(-1)!=="."||B0?(S=S.replace("-",""),w="-".concat(S)):U===0&&S.indexOf("-",U+1)>0&&(w=S.replaceAll("-","")),w},vr=function(S,w){var U=S,$=Math.sign(w)*Math.floor(Math.abs(w));return S.indexOf(".")===0?U=String($).concat(S):S.indexOf("-")===0&&S.indexOf(".")===1&&(U=$+".".concat(S.slice(2))),U},Gt=function(S,w){var U=w.indexOf(S),$=w.length,B=w;if(U!==-1&&U<$-1){var G=w.slice(U+1,$);G=G.replaceAll(S,""),B=w.slice(0,U+1).concat(G)}return B},Ht=function(S,w,U,$){var B=w||Ua,G=U||U===0?U:Lr;if(!S||!S.length)return String(B);var te=$?parseFloat(S.replace(/[^\-\d.]/g,"")):parseInt(S.replace(/[^\-\d]/g,""),10);return isNaN(te)?String(B):String((0,s.qE)(te,B,G))},kr=function(S){"use strict";Vo(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(G){var te=B.props,re=te.maxValue,le=te.minValue,se=te.onBlur,de=te.allowFloats,Ee=B.state.editing;Ee&&B.setEditing(!1);var Ie=Ht(G.target.value,le,re,de);se&&se(G,+Ie)},B.handleChange=function(G){var te=B.props,re=te.maxValue,le=te.minValue,se=te.onChange,de=te.allowFloats;G.target.value=mr(G.target.value,le,re,de),se&&se(G,+G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,+G.target.value)},B.handleKeyDown=function(G){var te=B.props,re=te.maxValue,le=te.minValue,se=te.onChange,de=te.onEnter,Ee=te.allowFloats;if(G.keyCode===_.Ri){var Ie=Ht(G.target.value,le,re,Ee);B.setEditing(!1),se&&se(G,+Ie),de&&de(G,+Ie),G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=B.props.value,G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G,te=this.props,re=te.maxValue,le=te.minValue,se=te.allowFloats,de=(G=this.props.value)==null?void 0:G.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=Ht(de,le,re,se)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},U.componentDidUpdate=function(B,G){var te,re,le=this.props,se=le.maxValue,de=le.minValue,Ee=le.allowFloats,Ie=this.state.editing,Ce=(te=B.value)==null?void 0:te.toString(),_e=(re=this.props.value)==null?void 0:re.toString(),Ae=this.inputRef.current;Ae&&!Ie&&_e!==Ce&&_e!==Ae.value&&(Ae.value=Ht(_e,de,se,Ee))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.onChange,te=B.onEnter,re=B.onInput,le=B.onBlur,se=B.value,de=Kr(B,["onChange","onEnter","onInput","onBlur","value"]),Ee=de.className,Ie=de.fluid,Ce=de.monospace,_e=Kr(de,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Yn({className:(0,C.Ly)(["Input",Ie&&"Input--fluid",Ce&&"Input--monospace",Ee])},_e,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number | string"})]}))},w}(n.Component);/** + */function Br(){return Br=Object.assign||function(S){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},te))},B.handleDragStart=function(te){var re=B.props.value,le=B.state.editing;le||(document.body.style["pointer-events"]="none",B.ref=te.target,B.setState({dragging:!1,origin:te.screenY,value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var se=B.state,de=se.dragging,Ee=se.value,Oe=B.props.onDrag;de&&Oe&&Oe(te,Ee)},B.props.updateRate||Sl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(te){var re=B.props,le=re.minValue,se=re.maxValue,de=re.step,Ee=re.stepPixelSize;B.setState(function(Oe){var Ce=Br({},Oe),_e=Ce.origin-te.screenY;if(Oe.dragging){var Ae=Number.isFinite(le)?le%de:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*de/Ee,le-de,se+de),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%de+Ae,le,se),Ce.origin=te.screenY}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(te){var re=B.props,le=re.onChange,se=re.onDrag,de=B.state,Ee=de.dragging,Oe=de.value,Ce=de.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),le&&le(te,Oe),se&&se(te,Oe);else if(B.inputRef){var _e=B.inputRef.current;_e.value=Ce;try{_e.focus(),_e.select()}catch(Ae){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,le=G.value,se=G.suppressingFlicker,de=this.props,Ee=de.className,Oe=de.fluid,Ce=de.animated,_e=de.value,Ae=de.unit,Ue=de.minValue,$e=de.maxValue,Fe=de.height,qe=de.width,Xe=de.lineHeight,st=de.fontSize,it=de.format,ot=de.onChange,ut=de.onDrag,jt=_e;(te||se)&&(jt=le);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Ce&&!te&&!se?(0,e.jsx)(h,{value:jt,format:it}):it?it(jt):jt,Ae?" "+Ae:""]});return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["NumberInput",Oe&&"NumberInput--fluid",Ee]),minWidth:qe,minHeight:Fe,lineHeight:Xe,fontSize:st,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qE)((jt-Ue)/($e-Ue)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:Fe,lineHeight:Xe,fontSize:st},onBlur:function(ft){if(re){var at=(0,s.qE)(parseFloat(ft.target.value),Ue,$e);if(Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),ot&&ot(ft,at),ut&&ut(ft,at)}},onKeyDown:function(ft){if(ft.keyCode===13){var at=(0,s.qE)(parseFloat(ft.target.value),Ue,$e);if(Number.isNaN(at)){B.setState({editing:!1});return}B.setState({editing:!1,value:at}),B.suppressFlicker(),ot&&ot(ft,at),ut&&ut(ft,at);return}if(ft.keyCode===27){B.setState({editing:!1});return}}})]})},w}(n.Component);Es.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Yn(){return Yn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function lo(S,w){return lo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},lo(S,w)}var Ua=0,Lr=1e4,mr=function(S,w,U,$){var B=w||Ua,G=U||U===0?U:Lr,te=$?S.replace(/[^\-\d.]/g,""):S.replace(/[^\-\d]/g,"");return $&&(te=vr(te,B),te=Gt(".",te)),w<0?(te=St(te),te=Gt("-",te)):te=te.replaceAll("-",""),B<=1&&G>=0?At(te,B,G,$):te},At=function(S,w,U,$){var B=$?parseFloat(S):parseInt(S,10);if(!isNaN(B)&&(S.slice(-1)!=="."||B0?(S=S.replace("-",""),w="-".concat(S)):U===0&&S.indexOf("-",U+1)>0&&(w=S.replaceAll("-","")),w},vr=function(S,w){var U=S,$=Math.sign(w)*Math.floor(Math.abs(w));return S.indexOf(".")===0?U=String($).concat(S):S.indexOf("-")===0&&S.indexOf(".")===1&&(U=$+".".concat(S.slice(2))),U},Gt=function(S,w){var U=w.indexOf(S),$=w.length,B=w;if(U!==-1&&U<$-1){var G=w.slice(U+1,$);G=G.replaceAll(S,""),B=w.slice(0,U+1).concat(G)}return B},Ht=function(S,w,U,$){var B=w||Ua,G=U||U===0?U:Lr;if(!S||!S.length)return String(B);var te=$?parseFloat(S.replace(/[^\-\d.]/g,"")):parseInt(S.replace(/[^\-\d]/g,""),10);return isNaN(te)?String(B):String((0,s.qE)(te,B,G))},kr=function(S){"use strict";Vo(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(G){var te=B.props,re=te.maxValue,le=te.minValue,se=te.onBlur,de=te.allowFloats,Ee=B.state.editing;Ee&&B.setEditing(!1);var Oe=Ht(G.target.value,le,re,de);se&&se(G,+Oe)},B.handleChange=function(G){var te=B.props,re=te.maxValue,le=te.minValue,se=te.onChange,de=te.allowFloats;G.target.value=mr(G.target.value,le,re,de),se&&se(G,+G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,+G.target.value)},B.handleKeyDown=function(G){var te=B.props,re=te.maxValue,le=te.minValue,se=te.onChange,de=te.onEnter,Ee=te.allowFloats;if(G.keyCode===_.Ri){var Oe=Ht(G.target.value,le,re,Ee);B.setEditing(!1),se&&se(G,+Oe),de&&de(G,+Oe),G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=B.props.value,G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G,te=this.props,re=te.maxValue,le=te.minValue,se=te.allowFloats,de=(G=this.props.value)==null?void 0:G.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=Ht(de,le,re,se)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},U.componentDidUpdate=function(B,G){var te,re,le=this.props,se=le.maxValue,de=le.minValue,Ee=le.allowFloats,Oe=this.state.editing,Ce=(te=B.value)==null?void 0:te.toString(),_e=(re=this.props.value)==null?void 0:re.toString(),Ae=this.inputRef.current;Ae&&!Oe&&_e!==Ce&&_e!==Ae.value&&(Ae.value=Ht(_e,de,se,Ee))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.onChange,te=B.onEnter,re=B.onInput,le=B.onBlur,se=B.value,de=Kr(B,["onChange","onEnter","onInput","onBlur","value"]),Ee=de.className,Oe=de.fluid,Ce=de.monospace,_e=Kr(de,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Yn({className:(0,C.Ly)(["Input",Oe&&"Input--fluid",Ce&&"Input--monospace",Ee])},_e,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number | string"})]}))},w}(n.Component);/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT - */function Ln(){return Ln=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Ri=function(S){var w=S.value,U=S.minValue,$=U===void 0?1:U,B=S.maxValue,G=B===void 0?1:B,te=S.ranges,re=S.alertAfter,le=S.alertBefore,se=S.format,de=S.size,Ee=de===void 0?1:de,Ie=S.className,Ce=S.style,_e=sn(S,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ae=scale(w,$,G),Ue=clamp01(Ae),$e=te?{}:{primary:[0,1]};te&&Object.keys(te).forEach(function(Xe){var st=te[Xe];$e[Xe]=[scale(st[0],$,G),scale(st[1],$,G)]});var Fe=function(){if(re&&le&&rew)return!0}else if(rew)return!0;return!1},qe=Fe()&&keyOfMatchingRange(Ue,$e);return _jsxs(Box,{inline:!0,children:[_jsx("div",Ln({className:classes(["RoundGauge",Ie,computeBoxClassName(_e)])},computeBoxProps(Ln({style:Ln({fontSize:Ee+"em"},Ce)},_e)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(re||le)&&_jsx("g",{className:classes(["RoundGauge__alert",qe?"active RoundGauge__alert--"+qe:""]),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($e).map(function(Xe,st){var it=$e[Xe];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+Xe,style:{strokeDashoffset:Math.max((2-(it[1]-it[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*it[0])+" 50 50)",cx:"50",cy:"50",r:"45"},st)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(Ue*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:w,format:se,size:Ee})]})},wi=t(80116);/** + */function Ln(){return Ln=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Ri=function(S){var w=S.value,U=S.minValue,$=U===void 0?1:U,B=S.maxValue,G=B===void 0?1:B,te=S.ranges,re=S.alertAfter,le=S.alertBefore,se=S.format,de=S.size,Ee=de===void 0?1:de,Oe=S.className,Ce=S.style,_e=sn(S,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ae=scale(w,$,G),Ue=clamp01(Ae),$e=te?{}:{primary:[0,1]};te&&Object.keys(te).forEach(function(Xe){var st=te[Xe];$e[Xe]=[scale(st[0],$,G),scale(st[1],$,G)]});var Fe=function(){if(re&&le&&rew)return!0}else if(rew)return!0;return!1},qe=Fe()&&keyOfMatchingRange(Ue,$e);return _jsxs(Box,{inline:!0,children:[_jsx("div",Ln({className:classes(["RoundGauge",Oe,computeBoxClassName(_e)])},computeBoxProps(Ln({style:Ln({fontSize:Ee+"em"},Ce)},_e)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(re||le)&&_jsx("g",{className:classes(["RoundGauge__alert",qe?"active RoundGauge__alert--"+qe:""]),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($e).map(function(Xe,st){var it=$e[Xe];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+Xe,style:{strokeDashoffset:Math.max((2-(it[1]-it[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*it[0])+" 50 50)",cx:"50",cy:"50",r:"45"},st)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(Ue*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:w,format:se,size:Ee})]})},wi=t(80116);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function $a(){return $a=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var bs=function(S){var w=S.buttons,U=S.children,$=S.className,B=S.fill,G=S.fitted,te=S.onScroll,re=S.scrollable,le=S.scrollableHorizontal,se=S.title,de=S.container_id,Ee=S.flexGrow,Ie=S.noTopPadding,Ce=S.stretchContents,_e=za(S,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Ae=(0,n.useRef)(null),Ue=(0,C.b5)(se)||(0,C.b5)(w);return(0,n.useEffect)(function(){if(Ae!=null&&Ae.current&&!(!re&&!le)){var $e=Ae.current;return(0,wi.tk)($e),function(){$e&&(0,wi.WK)($e)}}},[]),(0,e.jsxs)("div",$a({id:de||"",className:(0,C.Ly)(["Section",B&&"Section--fill",G&&"Section--fitted",re&&"Section--scrollable",le&&"Section--scrollableHorizontal",Ee&&"Section--flex",$,(0,j.WP)(_e)])},(0,j.Fl)(_e),{children:[Ue&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:se}),(0,e.jsx)("div",{className:"Section__buttons",children:w})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,C.Ly)(["Section__content",!!Ce&&"Section__content--stretchContents",!!Ie&&"Section__content--noTopPadding"]),onScroll:te,ref:Ae,children:U})})]}))};/** + */function $a(){return $a=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var bs=function(S){var w=S.buttons,U=S.children,$=S.className,B=S.fill,G=S.fitted,te=S.onScroll,re=S.scrollable,le=S.scrollableHorizontal,se=S.title,de=S.container_id,Ee=S.flexGrow,Oe=S.noTopPadding,Ce=S.stretchContents,_e=za(S,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","container_id","flexGrow","noTopPadding","stretchContents"]),Ae=(0,n.useRef)(null),Ue=(0,C.b5)(se)||(0,C.b5)(w);return(0,n.useEffect)(function(){if(Ae!=null&&Ae.current&&!(!re&&!le)){var $e=Ae.current;return(0,wi.tk)($e),function(){$e&&(0,wi.WK)($e)}}},[]),(0,e.jsxs)("div",$a({id:de||"",className:(0,C.Ly)(["Section",B&&"Section--fill",G&&"Section--fitted",re&&"Section--scrollable",le&&"Section--scrollableHorizontal",Ee&&"Section--flex",$,(0,j.WP)(_e)])},(0,j.Fl)(_e),{children:[Ue&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:se}),(0,e.jsx)("div",{className:"Section__buttons",children:w})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,C.Ly)(["Section__content",!!Ce&&"Section__content--stretchContents",!!Oe&&"Section__content--noTopPadding"]),onScroll:te,ref:Ae,children:U})})]}))};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Dn(){return Dn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Fa=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.onChange,te=S.onDrag,re=S.step,le=S.stepPixelSize,se=S.suppressFlicker,de=S.unit,Ee=S.value,Ie=S.className,Ce=S.fillValue,_e=S.color,Ae=S.ranges,Ue=Ae===void 0?{}:Ae,$e=S.children,Fe=Wa(S,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),qe=$e!==void 0;return(0,e.jsx)(Ca,{dragMatrix:[1,0],animated:w,format:U,maxValue:$,minValue:B,onChange:G,onDrag:te,step:re,stepPixelSize:le,suppressFlicker:se,unit:de,value:Ee,children:function(Xe){var st=Xe.dragging,it=Xe.editing,ot=Xe.value,ut=Xe.displayValue,jt=Xe.displayElement,Ct=Xe.inputElement,ft=Xe.handleDragStart,at=Ce!=null,Rt=(0,s.hs)(ot,B,$),Lt=(0,s.hs)(Ce!=null?Ce:ut,B,$),Nt=(0,s.hs)(ut,B,$),kt=_e||(0,s.TG)(Ce!=null?Ce:ot,Ue)||"default";return(0,e.jsxs)("div",Dn({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+kt,Ie,(0,j.WP)(Fe)])},(0,j.Fl)(Fe),{onMouseDown:ft,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",at&&"ProgressBar__fill--animated"]),style:{width:(0,s.J$)(Lt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.J$)(Math.min(Lt,Nt))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.J$)(Nt)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),st&&(0,e.jsx)("div",{className:"Slider__popupValue",children:jt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:qe?$e:jt}),Ct]}))}})},Tl=function(S){return _jsxs(Box,{style:S.style,children:[_jsxs(Box,{className:"Section__title",style:S.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:S.textStyle,children:S.title}),_jsx("div",{className:"Section__buttons",children:S.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:S.children})})]})};/** + */function Dn(){return Dn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Fa=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.onChange,te=S.onDrag,re=S.step,le=S.stepPixelSize,se=S.suppressFlicker,de=S.unit,Ee=S.value,Oe=S.className,Ce=S.fillValue,_e=S.color,Ae=S.ranges,Ue=Ae===void 0?{}:Ae,$e=S.children,Fe=Wa(S,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),qe=$e!==void 0;return(0,e.jsx)(Ca,{dragMatrix:[1,0],animated:w,format:U,maxValue:$,minValue:B,onChange:G,onDrag:te,step:re,stepPixelSize:le,suppressFlicker:se,unit:de,value:Ee,children:function(Xe){var st=Xe.dragging,it=Xe.editing,ot=Xe.value,ut=Xe.displayValue,jt=Xe.displayElement,Ct=Xe.inputElement,ft=Xe.handleDragStart,at=Ce!=null,Rt=(0,s.hs)(ot,B,$),Lt=(0,s.hs)(Ce!=null?Ce:ut,B,$),Nt=(0,s.hs)(ut,B,$),kt=_e||(0,s.TG)(Ce!=null?Ce:ot,Ue)||"default";return(0,e.jsxs)("div",Dn({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+kt,Oe,(0,j.WP)(Fe)])},(0,j.Fl)(Fe),{onMouseDown:ft,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",at&&"ProgressBar__fill--animated"]),style:{width:(0,s.J$)(Lt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.J$)(Math.min(Lt,Nt))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.J$)(Nt)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),st&&(0,e.jsx)("div",{className:"Slider__popupValue",children:jt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:qe?$e:jt}),Ct]}))}})},Tl=function(S){return _jsxs(Box,{style:S.style,children:[_jsxs(Box,{className:"Section__title",style:S.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:S.textStyle,children:S.title}),_jsx("div",{className:"Section__buttons",children:S.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:S.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -232,15 +232,15 @@ * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT - */function uo(){return uo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function ln(S,w){return ln=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},ln(S,w)}var Ur=function(S){"use strict";Xa(w,S);function w($){var B;B=S.call(this,$)||this,B.textareaRef=$.innerRef||(0,n.createRef)(),B.state={editing:!1,scrolledAmount:0};var G=$.dontUseTabForIndent,te=G===void 0?!1:G;return B.handleOnInput=function(re){var le=B.state.editing,se=B.props.onInput;le||B.setEditing(!0),se&&se(re,re.target.value)},B.handleOnChange=function(re){var le=B.state.editing,se=B.props.onChange;le&&B.setEditing(!1),se&&se(re,re.target.value)},B.handleKeyPress=function(re){var le=B.state.editing,se=B.props.onKeyPress;le||B.setEditing(!0),se&&se(re,re.target.value)},B.handleKeyDown=function(re){var le=B.state.editing,se=B.props,de=se.onChange,Ee=se.onInput,Ie=se.onEnter,Ce=se.onKey;if(re.keyCode===_.Ri){B.setEditing(!1),de&&de(re,re.target.value),Ee&&Ee(re,re.target.value),Ie&&Ie(re,re.target.value),B.props.selfClear&&(re.target.value="",re.target.blur());return}if(re.keyCode===_.s6){B.props.onEscape&&B.props.onEscape(re),B.setEditing(!1),B.props.selfClear?re.target.value="":(re.target.value=Tr(B.props.value),re.target.blur());return}if(le||B.setEditing(!0),Ce&&Ce(re,re.target.value),!te){var _e=re.keyCode||re.which;if(_e===_.aW){re.preventDefault();var Ae=re.target,Ue=Ae.value,$e=Ae.selectionStart,Fe=Ae.selectionEnd;re.target.value=Ue.substring(0,$e)+" "+Ue.substring(Fe),re.target.selectionEnd=$e+1,Ee&&Ee(re,re.target.value)}}},B.handleFocus=function(re){var le=B.state.editing;le||B.setEditing(!0)},B.handleBlur=function(re){var le=B.state.editing,se=B.props.onChange;le&&(B.setEditing(!1),se&&se(re,re.target.value))},B.handleScroll=function(re){var le=B.props.displayedValue,se=B.textareaRef.current;le&&se&&B.setState({scrolledAmount:se.scrollTop})},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.textareaRef.current;te&&(te.value=Tr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=B.value,re=this.props.value,le=this.textareaRef.current;le&&typeof re=="string"&&te!==re&&(le.value=Tr(re))},U.setEditing=function(B){this.setState({editing:B})},U.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},U.render=function(){var B=this.props,G=B.onChange,te=B.onKeyDown,re=B.onKeyPress,le=B.onInput,se=B.onFocus,de=B.onBlur,Ee=B.onEnter,Ie=B.value,Ce=B.maxLength,_e=B.placeholder,Ae=B.scrollbar,Ue=B.noborder,$e=B.displayedValue,Fe=hn(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),qe=Fe.className,Xe=Fe.fluid,st=Fe.nowrap,it=hn(Fe,["className","fluid","nowrap"]),ot=this.state.scrolledAmount;return(0,e.jsxs)(j.az,uo({className:(0,C.Ly)(["TextArea",Xe&&"TextArea--fluid",Ue&&"TextArea--noborder",qe])},it,{children:[!!$e&&(0,e.jsx)(j.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.jsx)("div",{className:(0,C.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+ot+"px)"},children:$e})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,C.Ly)(["TextArea__textarea",Ae&&"TextArea__textarea--scrollable",st&&"TextArea__nowrap"]),placeholder:_e,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:Ce,style:{color:$e?"rgba(0, 0, 0, 0)":"inherit"}})]}))},w}(n.Component),xr=t(24158);function pr(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Zn(S,w)}function Zn(S,w){return Zn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Zn(S,w)}var Al=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},Os=null;function Is(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function gn(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Tt(S,w)}function jn(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function Tt(S,w){return Tt=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Tt(S,w)}var kn=null,Rl=function(S){var w=S.children,U=useRef(null),$=useState(1),B=$[0],G=$[1],te=useState(0),re=te[0],le=te[1],se=useCallback(function(){var de=U.current;if(!(!w||!Array.isArray(w)||!de||B>=w.length)){var Ee=document.body.offsetHeight-de.getBoundingClientRect().bottom,Ie=Math.ceil(de.offsetHeight/B);if(Ee>0){var Ce=Math.min(w.length,B+Math.max(1,Math.ceil(Ee/Ie)));G(Ce),le((w.length-Ce)*Ie)}}},[U,B,G,le]);return useEffect(function(){se();var de=setInterval(se,100);return function(){return clearInterval(de)}},[se]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:U,children:Array.isArray(w)?w.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+re+"px"}})]})};/** + */function uo(){return uo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function ln(S,w){return ln=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},ln(S,w)}var Ur=function(S){"use strict";Xa(w,S);function w($){var B;B=S.call(this,$)||this,B.textareaRef=$.innerRef||(0,n.createRef)(),B.state={editing:!1,scrolledAmount:0};var G=$.dontUseTabForIndent,te=G===void 0?!1:G;return B.handleOnInput=function(re){var le=B.state.editing,se=B.props.onInput;le||B.setEditing(!0),se&&se(re,re.target.value)},B.handleOnChange=function(re){var le=B.state.editing,se=B.props.onChange;le&&B.setEditing(!1),se&&se(re,re.target.value)},B.handleKeyPress=function(re){var le=B.state.editing,se=B.props.onKeyPress;le||B.setEditing(!0),se&&se(re,re.target.value)},B.handleKeyDown=function(re){var le=B.state.editing,se=B.props,de=se.onChange,Ee=se.onInput,Oe=se.onEnter,Ce=se.onKey;if(re.keyCode===_.Ri){B.setEditing(!1),de&&de(re,re.target.value),Ee&&Ee(re,re.target.value),Oe&&Oe(re,re.target.value),B.props.selfClear&&(re.target.value="",re.target.blur());return}if(re.keyCode===_.s6){B.props.onEscape&&B.props.onEscape(re),B.setEditing(!1),B.props.selfClear?re.target.value="":(re.target.value=Tr(B.props.value),re.target.blur());return}if(le||B.setEditing(!0),Ce&&Ce(re,re.target.value),!te){var _e=re.keyCode||re.which;if(_e===_.aW){re.preventDefault();var Ae=re.target,Ue=Ae.value,$e=Ae.selectionStart,Fe=Ae.selectionEnd;re.target.value=Ue.substring(0,$e)+" "+Ue.substring(Fe),re.target.selectionEnd=$e+1,Ee&&Ee(re,re.target.value)}}},B.handleFocus=function(re){var le=B.state.editing;le||B.setEditing(!0)},B.handleBlur=function(re){var le=B.state.editing,se=B.props.onChange;le&&(B.setEditing(!1),se&&se(re,re.target.value))},B.handleScroll=function(re){var le=B.props.displayedValue,se=B.textareaRef.current;le&&se&&B.setState({scrolledAmount:se.scrollTop})},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.textareaRef.current;te&&(te.value=Tr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=B.value,re=this.props.value,le=this.textareaRef.current;le&&typeof re=="string"&&te!==re&&(le.value=Tr(re))},U.setEditing=function(B){this.setState({editing:B})},U.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},U.render=function(){var B=this.props,G=B.onChange,te=B.onKeyDown,re=B.onKeyPress,le=B.onInput,se=B.onFocus,de=B.onBlur,Ee=B.onEnter,Oe=B.value,Ce=B.maxLength,_e=B.placeholder,Ae=B.scrollbar,Ue=B.noborder,$e=B.displayedValue,Fe=hn(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),qe=Fe.className,Xe=Fe.fluid,st=Fe.nowrap,it=hn(Fe,["className","fluid","nowrap"]),ot=this.state.scrolledAmount;return(0,e.jsxs)(j.az,uo({className:(0,C.Ly)(["TextArea",Xe&&"TextArea--fluid",Ue&&"TextArea--noborder",qe])},it,{children:[!!$e&&(0,e.jsx)(j.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.jsx)("div",{className:(0,C.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+ot+"px)"},children:$e})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,C.Ly)(["TextArea__textarea",Ae&&"TextArea__textarea--scrollable",st&&"TextArea__nowrap"]),placeholder:_e,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:Ce,style:{color:$e?"rgba(0, 0, 0, 0)":"inherit"}})]}))},w}(n.Component),xr=t(24158);function pr(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Zn(S,w)}function Zn(S,w){return Zn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Zn(S,w)}var Al=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},Is=null;function Os(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function gn(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Tt(S,w)}function jn(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function Tt(S,w){return Tt=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Tt(S,w)}var kn=null,Rl=function(S){var w=S.children,U=useRef(null),$=useState(1),B=$[0],G=$[1],te=useState(0),re=te[0],le=te[1],se=useCallback(function(){var de=U.current;if(!(!w||!Array.isArray(w)||!de||B>=w.length)){var Ee=document.body.offsetHeight-de.getBoundingClientRect().bottom,Oe=Math.ceil(de.offsetHeight/B);if(Ee>0){var Ce=Math.min(w.length,B+Math.max(1,Math.ceil(Ee/Oe)));G(Ce),le((w.length-Ce)*Oe)}}},[U,B,G,le]);return useEffect(function(){se();var de=setInterval(se,100);return function(){return clearInterval(de)}},[se]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:U,children:Array.isArray(w)?w.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+re+"px"}})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},1568:function(P,y,t){"use strict";t.d(y,{Ai:function(){return e},Fo:function(){return x},KA:function(){return s},KS:function(){return r},NE:function(){return g},b_:function(){return v},bz:function(){return n},lm:function(){return a},wM:function(){return m}});/** + */},1568:function(P,y,t){"use strict";t.d(y,{Ai:function(){return e},Fo:function(){return x},KA:function(){return s},KS:function(){return r},NE:function(){return g},b_:function(){return v},bz:function(){return n},lm:function(){return a},wM:function(){return h}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,s=2,n=1,r=0,i=null,a={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"],x=[{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"}],f=[{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"}],m=function(h,c){if(!h)return c||"None";for(var d=h.toLowerCase(),p=h.replace(/(^\w{1})|(\s+\w{1})/g,function(j){return j.toUpperCase()}),C=0;C0&&ne[ne.length-1])&&(ve[0]===6||ve[0]===2)){ce=0;continue}if(ve[0]===3&&(!ne||ve[1]>ne[0]&&ve[1]xe&&(ne[ce]=xe-Y[ce],ue=!0)}return[ue,ne]},F=function(z){var Y;g.log("drag start"),v=!0,d=(0,s.Z4)([z.screenX,z.screenY],I()),(Y=z.target)==null||Y.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",J),H(z)},J=function(z){g.log("drag end"),H(z),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",J),v=!1,K()},H=function(z){v&&(z.preventDefault(),_((0,s.Z4)([z.screenX,z.screenY],d)))},Q=function(z,Y){return function(ee){var oe;p=[z,Y],g.log("resize start",p),u=!0,d=(0,s.Z4)([ee.screenX,ee.screenY],I()),C=O(),(oe=ee.target)==null||oe.focus(),document.addEventListener("mousemove",X),document.addEventListener("mouseup",Z),X(ee)}},Z=function(z){g.log("resize end",j),X(z),document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",Z),u=!1,K()},X=function(z){if(u){z.preventDefault();var Y=(0,s.Z4)([z.screenX,z.screenY],I()),ee=(0,s.Z4)(Y,d);j=(0,s.CO)(C,(0,s.tk)(p,ee),[1,1]),j[0]=Math.max(j[0],150*f),j[1]=Math.max(j[1],50*f),M(j)}}},80116:function(P,y,t){"use strict";t.d(y,{Nh:function(){return n},WK:function(){return C},tk:function(){return p},y4:function(){return i}});var e=t(80324),s=t(61652);/** + */function r(z,Y,ee,oe,ne,ue,ce){try{var me=z[ue](ce),xe=me.value}catch(ve){ee(ve);return}me.done?Y(xe):Promise.resolve(xe).then(oe,ne)}function i(z){return function(){var Y=this,ee=arguments;return new Promise(function(oe,ne){var ue=z.apply(Y,ee);function ce(xe){r(ue,oe,ne,ce,me,"next",xe)}function me(xe){r(ue,oe,ne,ce,me,"throw",xe)}ce(void 0)})}}function a(z,Y){var ee,oe,ne,ue,ce={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]};return ue={next:me(0),throw:me(1),return:me(2)},typeof Symbol=="function"&&(ue[Symbol.iterator]=function(){return this}),ue;function me(ve){return function(be){return xe([ve,be])}}function xe(ve){if(ee)throw new TypeError("Generator is already executing.");for(;ce;)try{if(ee=1,oe&&(ne=ve[0]&2?oe.return:ve[0]?oe.throw||((ne=oe.return)&&ne.call(oe),0):oe.next)&&!(ne=ne.call(oe,ve[1])).done)return ne;switch(oe=0,ne&&(ve=[ve[0]&2,ne.value]),ve[0]){case 0:case 1:ne=ve;break;case 4:return ce.label++,{value:ve[1],done:!1};case 5:ce.label++,oe=ve[1],ve=[0];continue;case 7:ve=ce.ops.pop(),ce.trys.pop();continue;default:if(ne=ce.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(ve[0]===6||ve[0]===2)){ce=0;continue}if(ve[0]===3&&(!ne||ve[1]>ne[0]&&ve[1]xe&&(ne[ce]=xe-Y[ce],ue=!0)}return[ue,ne]},F=function(z){var Y;g.log("drag start"),v=!0,d=(0,s.Z4)([z.screenX,z.screenY],O()),(Y=z.target)==null||Y.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",J),H(z)},J=function(z){g.log("drag end"),H(z),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",J),v=!1,K()},H=function(z){v&&(z.preventDefault(),_((0,s.Z4)([z.screenX,z.screenY],d)))},Q=function(z,Y){return function(ee){var oe;p=[z,Y],g.log("resize start",p),u=!0,d=(0,s.Z4)([ee.screenX,ee.screenY],O()),C=I(),(oe=ee.target)==null||oe.focus(),document.addEventListener("mousemove",X),document.addEventListener("mouseup",Z),X(ee)}},Z=function(z){g.log("resize end",j),X(z),document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",Z),u=!1,K()},X=function(z){if(u){z.preventDefault();var Y=(0,s.Z4)([z.screenX,z.screenY],O()),ee=(0,s.Z4)(Y,d);j=(0,s.CO)(C,(0,s.tk)(p,ee),[1,1]),j[0]=Math.max(j[0],150*f),j[1]=Math.max(j[1],50*f),M(j)}}},80116:function(P,y,t){"use strict";t.d(y,{Nh:function(){return n},WK:function(){return C},tk:function(){return p},y4:function(){return i}});var e=t(80324),s=t(61652);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=new e.b,r=!1,i=function(O){O===void 0&&(O={}),r=!!O.ignoreWindowFocus},a,g=!0,x=function(O,_){if(r){g=!0;return}if(a&&(clearTimeout(a),a=null),_){a=setTimeout(function(){return x(O)});return}g!==O&&(g=O,n.emit(O?"window-focus":"window-blur"),n.emit("window-focus-change",O))},f=null,m=function(O){var _=String(O.tagName).toLowerCase();return _==="input"||_==="textarea"},v=function(O){u(),f=O,f.addEventListener("blur",u)},u=function(){f&&(f.removeEventListener("blur",u),f=null)},h=null,c=null,d=[],p=function(O){d.push(O)},C=function(O){var _=d.indexOf(O);_>=0&&d.splice(_,1)},j=function(O){if(!(f||!g))for(var _=document.body;O&&O!==_;){if(d.includes(O)){if(O.contains(h))return;h=O,O.focus();return}O=O.parentElement}};window.addEventListener("mousemove",function(O){var _=O.target;_!==c&&d.length<2&&(c=_,j(_))}),window.addEventListener("click",function(O){var _=O.target;_!==c&&(c=_,j(_))}),window.addEventListener("focusin",function(O){c=null,h=O.target,x(!0),m(O.target)&&v(O.target)}),window.addEventListener("focusout",function(O){c=null,x(!1,!0)}),window.addEventListener("blur",function(O){c=null,x(!1,!0)}),window.addEventListener("beforeunload",function(O){x(!1)});var b={},I=function(){"use strict";function O(M,D,A){this.event=M,this.type=D,this.code=M.keyCode,this.ctrl=M.ctrlKey,this.shift=M.shiftKey,this.alt=M.altKey,this.repeat=!!A}var _=O.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===s.Ss||this.code===s.re||this.code===s.cH},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.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>=s.sV&&this.code<=s.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},O}();document.addEventListener("keydown",function(O){if(!m(O.target)){var _=O.keyCode,M=new I(O,"keydown",b[_]);n.emit("keydown",M),n.emit("key",M),b[_]=!0}}),document.addEventListener("keyup",function(O){if(!m(O.target)){var _=O.keyCode,M=new I(O,"keyup");n.emit("keyup",M),n.emit("key",M),b[_]=!1}})},46989:function(P,y,t){"use strict";t.d(y,{$:function(){return e}});/** + */var n=new e.b,r=!1,i=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},a,g=!0,x=function(I,_){if(r){g=!0;return}if(a&&(clearTimeout(a),a=null),_){a=setTimeout(function(){return x(I)});return}g!==I&&(g=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},f=null,h=function(I){var _=String(I.tagName).toLowerCase();return _==="input"||_==="textarea"},v=function(I){u(),f=I,f.addEventListener("blur",u)},u=function(){f&&(f.removeEventListener("blur",u),f=null)},m=null,c=null,d=[],p=function(I){d.push(I)},C=function(I){var _=d.indexOf(I);_>=0&&d.splice(_,1)},j=function(I){if(!(f||!g))for(var _=document.body;I&&I!==_;){if(d.includes(I)){if(I.contains(m))return;m=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var _=I.target;_!==c&&d.length<2&&(c=_,j(_))}),window.addEventListener("click",function(I){var _=I.target;_!==c&&(c=_,j(_))}),window.addEventListener("focusin",function(I){c=null,m=I.target,x(!0),h(I.target)&&v(I.target)}),window.addEventListener("focusout",function(I){c=null,x(!1,!0)}),window.addEventListener("blur",function(I){c=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var b={},O=function(){"use strict";function I(M,D,A){this.event=M,this.type=D,this.code=M.keyCode,this.ctrl=M.ctrlKey,this.shift=M.shiftKey,this.alt=M.altKey,this.repeat=!!A}var _=I.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===s.Ss||this.code===s.re||this.code===s.cH},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.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>=s.sV&&this.code<=s.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!h(I.target)){var _=I.keyCode,M=new O(I,"keydown",b[_]);n.emit("keydown",M),n.emit("key",M),b[_]=!0}}),document.addEventListener("keyup",function(I){if(!h(I.target)){var _=I.keyCode,M=new O(I,"keyup");n.emit("keyup",M),n.emit("key",M),b[_]=!1}})},46989:function(P,y,t){"use strict";t.d(y,{$:function(){return e}});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},24158:function(P,y,t){"use strict";t.d(y,{QL:function(){return n},d5:function(){return r},fU:function(){return f},qQ:function(){return m},up:function(){return i}});/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},24158:function(P,y,t){"use strict";t.d(y,{QL:function(){return n},d5:function(){return r},fU:function(){return f},qQ:function(){return h},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"],s=e.indexOf(" "),n=function(v,u,h){if(u===void 0&&(u=-s),h===void 0&&(h=""),!isFinite(v))return v.toString();var c=Math.floor(Math.log10(Math.abs(v))),d=Math.max(u*3,c),p=Math.floor(d/3),C=e[Math.min(p+s,e.length-1)],j=v/Math.pow(1e3,p),b=j.toFixed(2);return b.endsWith(".00")?b=b.slice(0,-3):b.endsWith(".0")&&(b=b.slice(0,-2)),(b+" "+C.trim()+h).trim()},r=function(v,u){return u===void 0&&(u=0),n(v,u,"W")},i=function(v,u){if(u===void 0&&(u=0),!Number.isFinite(v))return String(v);var h=Number(v.toFixed(u)),c=h<0,d=Math.abs(h),p=d.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return c?"-"+C:C},a=function(v){var u=20*Math.log10(v),h=u>=0?"+":"-",c=Math.abs(u);return c===1/0?c="Inf":c=c.toFixed(2),""+h+c+" dB"},g=null,x=function(v,u,h){if(u===void 0&&(u=0),h===void 0&&(h=""),!isFinite(v))return"NaN";var c=Math.floor(Math.log10(v)),d=Math.max(u*3,c),p=Math.floor(d/3),C=g[p],j=v/Math.pow(1e3,p),b=Math.max(0,2-d%3),I=j.toFixed(b);return(I+" "+C+" "+h).trim()},f=function(v,u){u===void 0&&(u="default");var h=Math.floor(v/10),c=Math.floor(h/3600),d=Math.floor(h%3600/60),p=h%60;if(u==="short"){var C=c>0?""+c+"h":"",j=d>0?""+d+"m":"",b=p>0?""+p+"s":"";return""+C+j+b}var I=String(c).padStart(2,"0"),O=String(d).padStart(2,"0"),_=String(p).padStart(2,"0");return I+":"+O+":"+_},m=function(v){if(!Number.isFinite(v))return v;var u=v.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}},5030:function(P,y,t){"use strict";t.d(y,{Bm:function(){return C}});var e=t(61652),s=t(80116),n=t(47868);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],s=e.indexOf(" "),n=function(v,u,m){if(u===void 0&&(u=-s),m===void 0&&(m=""),!isFinite(v))return v.toString();var c=Math.floor(Math.log10(Math.abs(v))),d=Math.max(u*3,c),p=Math.floor(d/3),C=e[Math.min(p+s,e.length-1)],j=v/Math.pow(1e3,p),b=j.toFixed(2);return b.endsWith(".00")?b=b.slice(0,-3):b.endsWith(".0")&&(b=b.slice(0,-2)),(b+" "+C.trim()+m).trim()},r=function(v,u){return u===void 0&&(u=0),n(v,u,"W")},i=function(v,u){if(u===void 0&&(u=0),!Number.isFinite(v))return String(v);var m=Number(v.toFixed(u)),c=m<0,d=Math.abs(m),p=d.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return c?"-"+C:C},a=function(v){var u=20*Math.log10(v),m=u>=0?"+":"-",c=Math.abs(u);return c===1/0?c="Inf":c=c.toFixed(2),""+m+c+" dB"},g=null,x=function(v,u,m){if(u===void 0&&(u=0),m===void 0&&(m=""),!isFinite(v))return"NaN";var c=Math.floor(Math.log10(v)),d=Math.max(u*3,c),p=Math.floor(d/3),C=g[p],j=v/Math.pow(1e3,p),b=Math.max(0,2-d%3),O=j.toFixed(b);return(O+" "+C+" "+m).trim()},f=function(v,u){u===void 0&&(u="default");var m=Math.floor(v/10),c=Math.floor(m/3600),d=Math.floor(m%3600/60),p=m%60;if(u==="short"){var C=c>0?""+c+"h":"",j=d>0?""+d+"m":"",b=p>0?""+p+"s":"";return""+C+j+b}var O=String(c).padStart(2,"0"),I=String(d).padStart(2,"0"),_=String(p).padStart(2,"0");return O+":"+I+":"+_},h=function(v){if(!Number.isFinite(v))return v;var u=v.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}},5030:function(P,y,t){"use strict";t.d(y,{Bm:function(){return C}});var e=t(61652),s=t(80116),n=t(47868);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(b,I){(I==null||I>b.length)&&(I=b.length);for(var O=0,_=new Array(I);O=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 g=(0,n.h)("hotkeys"),x={},f=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],m={},v=[],u=function(b){if(b===16)return"Shift";if(b===17)return"Ctrl";if(b===18)return"Alt";if(b===33)return"Northeast";if(b===34)return"Southeast";if(b===35)return"Southwest";if(b===36)return"Northwest";if(b===37)return"West";if(b===38)return"North";if(b===39)return"East";if(b===40)return"South";if(b===45)return"Insert";if(b===46)return"Delete";if(b>=48&&b<=57||b>=65&&b<=90)return String.fromCharCode(b);if(b>=96&&b<=105)return"Numpad"+(b-96);if(b>=112&&b<=123)return"F"+(b-111);if(b===188)return",";if(b===189)return"-";if(b===190)return"."},h=function(b){var I=String(b);if(I==="Ctrl+F5"||I==="Ctrl+R"){location.reload();return}if(I!=="Ctrl+F"&&!(b.event.defaultPrevented||b.isModifierKey()||f.includes(b.code))){var O=u(b.code);if(O){var _=x[O];if(_)return g.debug("macro",_),Byond.command(_);if(b.isDown()&&!m[O]){m[O]=!0;var M='TguiKeyDown "'+O+'"';return g.debug(M),Byond.command(M)}if(b.isUp()&&m[O]){m[O]=!1;var D='TguiKeyUp "'+O+'"';return g.debug(D),Byond.command(D)}}}},c=function(b){f.push(b)},d=function(b){var I=f.indexOf(b);I>=0&&f.splice(I,1)},p=function(){for(var b=a(Object.keys(m)),I;!(I=b()).done;){var O=I.value;m[O]&&(m[O]=!1,g.log('releasing key "'+O+'"'),Byond.command('TguiKeyUp "'+O+'"'))}},C=function(){Byond.winget("default.*").then(function(b){for(var I={},O=a(Object.keys(b)),_;!(_=O()).done;){var M=_.value,D=M.split("."),A=D[1],R=D[2];A&&R&&(I[A]||(I[A]={}),I[A][R]=b[M])}for(var K=/\\"/g,N=function(Q){return Q.substring(1,Q.length-1).replace(K,'"')},k=a(Object.keys(I)),V;!(V=k()).done;){var F=V.value,J=I[F],H=N(J.name);x[H]=N(J.command)}g.debug("loaded macros",x)}),s.Nh.on("window-blur",function(){p()}),s.Nh.on("key",function(b){for(var I=a(v),O;!(O=I()).done;){var _=O.value;_(b)}h(b)})},j=function(b){v.push(b);var I=!1;return function(){I||(I=!0,v.splice(v.indexOf(b),1))}}},15454:function(P,y,t){"use strict";t.r(y),t.d(y,{AICard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.has_ai,v=f.integrity,u=f.backup_capacitor,h=f.flushing,c=f.has_laws,d=f.laws,p=f.wireless,C=f.radio;if(m===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Stored AI",children:(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var j=null;v>=75?j="green":v>=25?j="yellow":j="red";var b=null;return u>=75&&(b="green"),u>=25?b="yellow":b="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Stored AI",children:[(0,e.jsx)(n.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:j,value:v/100})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.z2,{color:b,value:u/100})})]})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:h===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(n.wn,{title:"Laws",children:!!c&&(0,e.jsx)(n.az,{children:d.map(function(I,O){return(0,e.jsx)(n.az,{display:"inline-block",children:I},O)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(n.$n,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){return x("wireless")}})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:C?"check":"times",content:C?"Enabled":"Disabled",color:C?"green":"red",onClick:function(){return x("radio")}})}),(0,e.jsx)(n.Ki.Item,{label:"AI Power",children:(0,e.jsx)(n.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:h||v===0,confirmColor:"red",content:"Shutdown",onClick:function(){return x("wipe")}})})]})})]})})}},85866:function(P,y,t){"use strict";t.r(y),t.d(y,{APC:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(13221),a=t(15665),g=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=(0,e.jsx)(m,{});return p.gridCheck?C=(0,e.jsx)(v,{}):p.failTime&&(C=(0,e.jsx)(u,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},x={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"}},f={1:{icon:"terminal",content:"Override Programming",action:"hack"}},m=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.locked&&!p.siliconUser,j=p.normallyLocked,b=x[p.externalPower]||x[0],I=x[p.chargingStatus]||x[0],O=p.powerChannels||[],_=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(n.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main Breaker",color:b.color,buttons:(0,e.jsx)(n.$n,{icon:p.isOperating?"power-off":"times",content:p.isOperating?"On":"Off",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return d("breaker")}}),children:["[ ",b.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:_})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:I.color,buttons:(0,e.jsx)(n.$n,{icon:p.chargeMode?"sync":"times",content:p.chargeMode?"Auto":"Off",selected:p.chargeMode,disabled:C,onClick:function(){return d("charge")}}),children:["[ ",I.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[O.map(function(M){var D=M.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:M.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:M.status>=2?"good":"bad",children:M.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",content:"Auto",selected:!C&&(M.status===1||M.status===3),disabled:C,onClick:function(){return d("channel",D.auto)}}),(0,e.jsx)(n.$n,{icon:"power-off",content:"On",selected:!C&&M.status===2,disabled:C,onClick:function(){return d("channel",D.on)}}),(0,e.jsx)(n.$n,{icon:"times",content:"Off",selected:!C&&M.status===0,disabled:C,onClick:function(){return d("channel",D.off)}})]}),children:[M.powerLoad," W"]},M.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:p.totalCharging?(0,e.jsxs)("b",{children:[p.totalLoad," W (+ ",p.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[p.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Overload",onClick:function(){return d("overload")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{icon:p.coverLocked?"lock":"unlock",content:p.coverLocked?"Engaged":"Disengaged",selected:p.coverLocked,disabled:C,onClick:function(){return d("cover")}})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Disabled",selected:p.nightshiftSetting===2,onClick:function(){return d("nightshift",{nightshift:2})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Automatic",selected:p.nightshiftSetting===1,onClick:function(){return d("nightshift",{nightshift:1})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Enabled",selected:p.nightshiftSetting===3,onClick:function(){return d("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:p.emergencyLights?"Enabled":"Disabled",selected:p.emergencyLights,onClick:function(){return d("emergency_lighting")}})})]})})]})},v=function(h){return(0,e.jsxs)(i.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},u=function(h){var c=(0,s.Oc)(),d=c.data,p=c.act,C=(0,e.jsx)(n.$n,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return p("reboot")}});return d.locked&&!d.siliconUser&&(C=(0,e.jsx)(n.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(n.az,{color:"good",children:["Automatic reboot in ",d.failTime," seconds..."]}),(0,e.jsx)(n.az,{mt:4,children:C})]})}},95054:function(P,y,t){"use strict";t.r(y),t.d(y,{AccountsTerminal:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.id_inserted,d=h.id_card,p=h.access_level,C=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)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:c?"eject":"sign-in-alt",fluid:!0,content:d,onClick:function(){return u("insert_card")}})})]})}),p>0&&(0,e.jsx)(a,{})]})})},a=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.creating_new_account,d=h.detailed_account_view;return(0,e.jsxs)(n.wn,{title:"Menu",children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!c&&!d,icon:"home",onClick:function(){return u("view_accounts_list")},children:"Home"}),(0,e.jsx)(n.tU.Tab,{selected:c,icon:"cog",onClick:function(){return u("create_account")},children:"New Account"}),c?"":(0,e.jsx)(n.tU.Tab,{disabled:c,icon:"print",onClick:function(){return u("print")},children:"Print"})]}),c&&(0,e.jsx)(g,{})||d&&(0,e.jsx)(x,{})||(0,e.jsx)(f,{})]})},g=function(m){var v=(0,s.Oc)().act,u=(0,s.QY)("holder",""),h=u[0],c=u[1],d=(0,s.QY)("money",""),p=d[0],C=d[1];return(0,e.jsxs)(n.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(n.pd,{value:h,fluid:!0,onInput:function(j,b){return c(b)}})}),(0,e.jsx)(n.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(n.pd,{value:p,fluid:!0,onInput:function(j,b){return C(b)}})})]}),(0,e.jsx)(n.$n,{disabled:!h||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return v("finalise_create_account",{holder_name:h,starting_funds:p})},content:"Create"})]})},x=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.access_level,d=h.station_account_number,p=h.account_number,C=h.owner_name,j=h.money,b=h.suspended,I=h.transactions;return(0,e.jsxs)(n.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(n.$n,{icon:"ban",selected:b,content:"Suspend",onClick:function(){return u("toggle_suspension")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(n.Ki.Item,{label:"Holder",children:C}),(0,e.jsxs)(n.Ki.Item,{label:"Balance",children:[j,"\u20AE"]}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:b?"bad":"good",children:b?"SUSPENDED":"Active"})]}),(0,e.jsx)(n.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payroll",children:(0,e.jsx)(n.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:p===d,onClick:function(){return u("revoke_payroll")}})})})}),c>=2&&(0,e.jsxs)(n.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_funds")},content:"Add Funds"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(n.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(n.XI.Cell,{children:"Target"}),(0,e.jsx)(n.XI.Cell,{children:"Reason"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Terminal"})]}),I.map(function(O,_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{children:[O.date," ",O.time]}),(0,e.jsx)(n.XI.Cell,{children:O.target_name}),(0,e.jsx)(n.XI.Cell,{children:O.purpose}),(0,e.jsxs)(n.XI.Cell,{children:[O.amount,"\u20AE"]}),(0,e.jsx)(n.XI.Cell,{children:O.source_terminal})]},_)})]})})]})},f=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.accounts;return(0,e.jsx)(n.wn,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.jsx)(n.Ki,{children:c.map(function(d){return(0,e.jsx)(n.Ki.Item,{label:d.owner_name+d.suspended,color:d.suspended?"bad":null,children:(0,e.jsx)(n.$n,{fluid:!0,content:"#"+d.account_number,onClick:function(){return u("view_account_detail",{account_index:d.account_index})}})},d.account_index)})})||(0,e.jsx)(n.az,{color:"bad",children:"There are no accounts available."})})}},12704:function(P,y,t){"use strict";t.r(y),t.d(y,{AdminShuttleController:function(){return a},ShuttleList:function(){return g}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=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(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.shuttles,c=u.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,s.Ul)(function(d){return d.name})(h).map(function(d){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"JMP",onClick:function(){return v("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"Fly",onClick:function(){return v("classicmove",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:d.name}),(0,e.jsx)(r.XI.Cell,{children:d.current_location}),(0,e.jsx)(r.XI.Cell,{children:x(d.status)})]},d.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(d){var p;return((p=d.name)==null?void 0:p.toLowerCase())||d.name||d.ref})(c).map(function(d){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"JMP",onClick:function(){return v("adminobserve",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"Control",onClick:function(){return v("overmap_control",{ref:d.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:d.name})]},d.ref)})})})]})},x=function(f){switch(f){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},61633:function(P,y,t){"use strict";t.r(y),t.d(y,{AdminTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.id,u=m.title,h=m.name,c=m.state,d=m.opened_at,p=m.closed_at,C=m.opened_at_date,j=m.closed_at_date,b=m.actions,I=m.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return f("retitle")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Admin Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(I).map(function(O,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I[O]}},_)})})]})})})})}},43587:function(P,y,t){"use strict";t.r(y),t.d(y,{AgentCard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.entries,v=f.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)(n.wn,{title:"Info",children:(0,e.jsx)(n.XI,{children:m.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return x(u.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsx)(n.XI.Cell,{children:u.value})]},u.name)})})}),(0,e.jsx)(n.wn,{title:"Electronic Warfare",children:(0,e.jsx)(n.$n.Checkbox,{checked:v,content:v?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return x("electronic_warfare")}})})]})})}},56307:function(P,y,t){"use strict";t.r(y),t.d(y,{AiAirlock:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=i[m.power.main]||i[0],u=i[m.power.backup]||i[0],h=i[m.shock]||i[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main",color:v.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!m.power.main,content:"Disrupt",onClick:function(){return f("disrupt-main")}}),children:[m.power.main?"Online":"Offline"," ",(!m.wires.main_1||!m.wires.main_2)&&"[Wires have been cut!]"||m.power.main_timeleft>0&&"["+m.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:u.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!m.power.backup,content:"Disrupt",onClick:function(){return f("disrupt-backup")}}),children:[m.power.backup?"Online":"Offline"," ",(!m.wires.backup_1||!m.wires.backup_2)&&"[Wires have been cut!]"||m.power.backup_timeleft>0&&"["+m.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:h.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"wrench",disabled:!(m.wires.shock&&m.shock===0),content:"Restore",onClick:function(){return f("shock-restore")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!m.wires.shock,content:"Temporary",onClick:function(){return f("shock-temp")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!m.wires.shock,content:"Permanent",onClick:function(){return f("shock-perm")}})]}),children:[m.shock===2?"Safe":"Electrified"," ",!m.wires.shock&&"[Wires have been cut!]"||m.shock_timeleft>0&&"["+m.shock_timeleft+"s]"||m.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(n.wn,{title:"Access and Door Control",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.id_scanner?"power-off":"times",content:m.id_scanner?"Enabled":"Disabled",selected:m.id_scanner,disabled:!m.wires.id_scanner,onClick:function(){return f("idscan-toggle")}}),children:!m.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.locked?"lock":"unlock",content:m.locked?"Lowered":"Raised",selected:m.locked,disabled:!m.wires.bolts,onClick:function(){return f("bolt-toggle")}}),children:!m.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.lights?"power-off":"times",content:m.lights?"Enabled":"Disabled",selected:m.lights,disabled:!m.wires.lights,onClick:function(){return f("light-toggle")}}),children:!m.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.safe?"power-off":"times",content:m.safe?"Enabled":"Disabled",selected:m.safe,disabled:!m.wires.safe,onClick:function(){return f("safe-toggle")}}),children:!m.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.speed?"power-off":"times",content:m.speed?"Enabled":"Disabled",selected:m.speed,disabled:!m.wires.timing,onClick:function(){return f("speed-toggle")}}),children:!m.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.opened?"sign-out-alt":"sign-in-alt",content:m.opened?"Open":"Closed",selected:m.opened,disabled:m.locked||m.welded,onClick:function(){return f("open-close")}}),children:!!(m.locked||m.welded)&&(0,e.jsxs)("span",{children:["[Door is ",m.locked?"bolted":"",m.locked&&m.welded?" and ":"",m.welded?"welded":"","!]"]})})]})})]})})}},43108:function(P,y,t){"use strict";t.r(y),t.d(y,{AiRestorer:function(){return i},AiRestorerContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),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)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.AI_present,u=m.error,h=m.name,c=m.laws,d=m.isDead,p=m.restoring,C=m.health,j=m.ejectable;return(0,e.jsxs)(e.Fragment,{children:[u&&(0,e.jsx)(n.IC,{textAlign:"center",children:u}),!!j&&(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:v?h:"----------",disabled:!v,onClick:function(){return f("PRG_eject")}}),!!v&&(0,e.jsxs)(n.wn,{title:j?"System Status":h,buttons:(0,e.jsx)(n.az,{inline:!0,bold:!0,color:d?"bad":"good",children:d?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(n.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return f("PRG_beginReconstruction")}}),(0,e.jsx)(n.wn,{title:"Laws",level:2,children:c.map(function(b){return(0,e.jsx)(n.az,{className:"candystripe",children:b},b)})})]})]})}},75160:function(P,y,t){"use strict";t.r(y),t.d(y,{AiSupermatter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(13221),a=function(f){var m=(0,s.Oc)().data,v=m.integrity_percentage,u=m.ambient_temp,h=m.ambient_pressure,c=m.detonating,d=(0,e.jsx)(x,{});return c&&(d=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:d})})},g=function(f){return(0,e.jsx)(i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(n.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(n.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(f){var m=(0,s.Oc)().data,v=m.integrity_percentage,u=m.ambient_temp,h=m.ambient_pressure;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(n.z2,{value:v,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(n.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(n.z2,{value:u,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[u," K"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Environment Pressure",children:[h," kPa"]})]})})}},42537:function(P,y,t){"use strict";t.r(y),t.d(y,{AirAlarm:function(){return m}});var e=t(88095),s=t(5229),n=t(44583),r=t(4413),i=t(92514),a=t(1568),g=t(68040),x=t(10652),f=t(15665),m=function(I){var O=function(V){K(V)},_=(0,r.Oc)(),M=_.act,D=_.data,A=(0,n.useState)(""),R=A[0],K=A[1],N=D.locked&&!D.siliconUser&&!D.remoteUser;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(f.InterfaceLockNoticeBox,{}),(0,e.jsx)(v,{}),(0,e.jsx)(u,{}),!N&&(0,e.jsx)(c,{screen:R,onScreen:O})]})})},v=function(I){var O=(0,r.Oc)().data,_=(O.environment_data||[]).filter(function(A){return A.value>=.01}),M={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},D=M[O.danger_level]||M[0];return(0,e.jsx)(i.wn,{title:"Air Status",children:(0,e.jsxs)(i.Ki,{children:[_.length>0&&(0,e.jsxs)(e.Fragment,{children:[_.map(function(A){var R=M[A.danger_level]||M[0];return(0,e.jsxs)(i.Ki.Item,{label:(0,a.wM)(A.name),color:R.color,children:[(0,s.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(i.Ki.Item,{label:"Local status",color:D.color,children:D.localStatusText}),(0,e.jsx)(i.Ki.Item,{label:"Area status",color:O.atmos_alarm||O.fire_alarm?"bad":"good",children:O.atmos_alarm&&"Atmosphere Alarm"||O.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!O.emagged&&(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},u=function(I){var O=(0,r.Oc)(),_=O.act,M=O.data,D=M.target_temperature,A=M.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:A===1,content:"Off",onClick:function(){return _("rcon",{rcon:1})}}),(0,e.jsx)(i.$n,{selected:A===2,content:"Auto",onClick:function(){return _("rcon",{rcon:2})}}),(0,e.jsx)(i.$n,{selected:A===3,content:"On",onClick:function(){return _("rcon",{rcon:3})}})]}),(0,e.jsx)(i.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(i.$n,{content:D,onClick:function(){return _("temperature")}})})]})})},h={home:{title:"Air Controls",component:function(){return d}},vents:{title:"Vent Controls",component:function(){return p}},scrubbers:{title:"Scrubber Controls",component:function(){return C}},modes:{title:"Operating Mode",component:function(){return j}},thresholds:{title:"Alarm Thresholds",component:function(){return b}}},c=function(I){var O=h[I.screen]||h.home,_=O.component();return(0,e.jsx)(i.wn,{title:O.title,buttons:I.screen&&(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return I.onScreen()}}),children:(0,e.jsx)(_,{onScreen:I.onScreen})})},d=function(I){var O=(0,r.Oc)(),_=O.act,M=O.data,D=M.mode,A=M.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A?"exclamation-triangle":"exclamation",color:A&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return _(A?"reset":"alarm")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:D===3?"exclamation-triangle":"exclamation",color:D===3&&"danger",content:"Panic Siphon",onClick:function(){return _("mode",{mode:D===3?1:3})}}),(0,e.jsx)(i.az,{mt:2}),(0,e.jsx)(i.$n,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return I.onScreen("vents")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"filter",content:"Scrubber Controls",onClick:function(){return I.onScreen("scrubbers")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"cog",content:"Operating Mode",onClick:function(){return I.onScreen("modes")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return I.onScreen("thresholds")}})]})},p=function(I){var O=(0,r.Oc)().data,_=O.vents;return!_||_.length===0?"Nothing to show":_.map(function(M){return(0,e.jsx)(x.Vent,{vent:M},M.id_tag)})},C=function(I){var O=(0,r.Oc)().data,_=O.scrubbers;return!_||_.length===0?"Nothing to show":_.map(function(M){return(0,e.jsx)(x.Scrubber,{scrubber:M},M.id_tag)})},j=function(I){var O=(0,r.Oc)(),_=O.act,M=O.data,D=M.modes;return!D||D.length===0?"Nothing to show":D.map(function(A){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",content:A.name,onClick:function(){return _("mode",{mode:A.mode})}}),(0,e.jsx)(i.az,{mt:1})]},A.mode)})},b=function(I){var O=(0,r.Oc)(),_=O.act,M=O.data,D=M.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:D.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,a.b_)(A.name),children:(0,a.wM)(A.name)})}),A.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(i.$n,{content:(0,s.Mg)(R.selected,2),onClick:function(){return _("threshold",{env:R.env,var:R.val})}})},R.val)})]},A.name)})})]})}},63397:function(P,y,t){"use strict";t.r(y),t.d(y,{AlertModal:function(){return m}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(68040),g=t(18513),x=-1,f=1,m=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.autofocus,j=p.buttons,b=j===void 0?[]:j,I=p.large_buttons,O=p.message,_=O===void 0?"":O,M=p.timeout,D=p.title,A=(0,s.useState)(0),R=A[0],K=A[1],N=115+(_.length>30?Math.ceil(_.length/4):0)+(_.length&&I?5:0),k=325+(b.length>2?55:0),V=function(F){R===0&&F===x?K(b.length-1):R===b.length-1&&F===f?K(0):K(R+F)};return(0,e.jsxs)(a.p8,{height:N,title:D,width:k,children:[!!M&&(0,e.jsx)(g.Loader,{value:M}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(F){var J=window.event?F.which:F.keyCode;J===n.iy||J===n.Ri?d("choose",{choice:b[R]}):J===n.s6?d("cancel"):J===n.iU?(F.preventDefault(),V(x)):(J===n.aW||J===n.zh)&&(F.preventDefault(),V(f))},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:_})}),(0,e.jsxs)(i.BJ.Item,{children:[!!C&&(0,e.jsx)(i.y5,{}),(0,e.jsx)(v,{selected:R})]})]})})})]})},v=function(h){var c=(0,r.Oc)().data,d=c.buttons,p=d===void 0?[]:d,C=c.large_buttons,j=c.swapped_buttons,b=h.selected;return(0,e.jsx)(i.so,{align:"center",direction:j?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(I,O){return C&&p.length<3?(0,e.jsx)(i.so.Item,{grow:!0,children:(0,e.jsx)(u,{button:I,id:O.toString(),selected:b===O})},O):(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(u,{button:I,id:O.toString(),selected:b===O})},O)})})},u=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,j=h.button,b=h.selected,I=j.length>7?j.length:7;return(0,e.jsx)(i.$n,{fluid:!!C,height:!!C&&2,onClick:function(){return d("choose",{choice:j})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:b,textAlign:"center",width:!C&&I,children:C?j.toUpperCase():j})}},140:function(P,y,t){"use strict";t.r(y),t.d(y,{AlgaeFarm:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.usePower,u=m.materials,h=m.last_flow_rate,c=m.last_power_draw,d=m.inputDir,p=m.outputDir,C=m.input,j=m.output,b=m.errorText;return(0,e.jsx)(i.p8,{width:500,height:300,children:(0,e.jsxs)(i.p8.Content,{children:[b&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:b})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:"Processing",selected:v===2,onClick:function(){return f("toggle")}}),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:[c," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),u.map(function(I){return(0,e.jsxs)(r.Ki.Item,{label:(0,s.ZH)(I.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:I.qty,maxValue:I.max,children:[I.qty,"/",I.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return f("ejectMaterial",{mat:I.name})}})]},I.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 ("+d+")",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."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+p+")",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."})})})]})})]})]})})}},14600:function(P,y,t){"use strict";t.r(y),t.d(y,{AppearanceChanger:function(){return x}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=function(j){var b=(0,i.Oc)(),I=b.act,O=b.config,_=b.data,M=_.name,D=_.specimen,A=_.gender,R=_.gender_id,K=_.hair_style,N=_.facial_hair_style,k=_.ear_style,V=_.tail_style,F=_.wing_style,J=_.markings,H=_.change_race,Q=_.change_gender,Z=_.change_eye_color,X=_.change_skin_tone,z=_.change_skin_color,Y=_.change_hair_color,ee=_.change_facial_hair_color,oe=_.change_hair,ne=_.change_facial_hair,ue=_.mapRef,ce=O.title,me=Z||X||z||Y||ee,xe=-1;H?xe=0:Q?xe=1:me?xe=2:oe?xe=4:ne&&(xe=5);var ve=(0,r.useState)(xe),be=ve[0],we=ve[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,n.jT)(ce),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(a.wn,{title:"Reflection",children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",children:M}),(0,e.jsx)(a.Ki.Item,{label:"Species",color:H?null:"grey",children:D}),(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",color:Q?null:"grey",children:A?(0,n.ZH)(A):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",color:me?null:"grey",children:R?(0,n.ZH)(R):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Hair Style",color:oe?null:"grey",children:K?(0,n.ZH)(K):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Facial Hair Style",color:ne?null:"grey",children:N?(0,n.ZH)(N):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Ear Style",color:oe?null:"grey",children:k?(0,n.ZH)(k):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Tail Style",color:oe?null:"grey",children:V?(0,n.ZH)(V):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Wing Style",color:oe?null:"grey",children:F?(0,n.ZH)(F):"Not Set"})]})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.D1,{style:{width:"256px",height:"256px"},params:{id:ue,type:"map"}})})]})}),(0,e.jsxs)(a.tU,{children:[H?(0,e.jsx)(a.tU.Tab,{selected:be===0,onClick:function(){return we(0)},children:"Race"}):null,Q?(0,e.jsx)(a.tU.Tab,{selected:be===1,onClick:function(){return we(1)},children:"Gender & Sex"}):null,me?(0,e.jsx)(a.tU.Tab,{selected:be===2,onClick:function(){return we(2)},children:"Colors"}):null,oe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.tU.Tab,{selected:be===3,onClick:function(){return we(3)},children:"Hair"}),(0,e.jsx)(a.tU.Tab,{selected:be===5,onClick:function(){return we(5)},children:"Ear"}),(0,e.jsx)(a.tU.Tab,{selected:be===6,onClick:function(){return we(6)},children:"Tail"}),(0,e.jsx)(a.tU.Tab,{selected:be===7,onClick:function(){return we(7)},children:"Wing"}),(0,e.jsx)(a.tU.Tab,{selected:be===8,onClick:function(){return we(8)},children:"Markings"})]}):null,ne?(0,e.jsx)(a.tU.Tab,{selected:be===4,onClick:function(){return we(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(a.az,{height:"43%",children:[H&&be===0?(0,e.jsx)(f,{}):null,Q&&be===1?(0,e.jsx)(m,{}):null,me&&be===2?(0,e.jsx)(v,{}):null,oe&&be===3?(0,e.jsx)(u,{}):null,ne&&be===4?(0,e.jsx)(h,{}):null,oe&&be===5?(0,e.jsx)(c,{}):null,oe&&be===6?(0,e.jsx)(d,{}):null,oe&&be===7?(0,e.jsx)(p,{}):null,oe&&be===8?(0,e.jsx)(C,{}):null]})]})})},f=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.species,M=O.specimen,D=(0,s.Ul)(function(A){return A.specimen})(_||[]);return(0,e.jsx)(a.wn,{title:"Species",fill:!0,scrollable:!0,children:D.map(function(A){return(0,e.jsx)(a.$n,{content:A.specimen,selected:M===A.specimen,onClick:function(){return I("race",{race:A.specimen})}},A.specimen)})})},m=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.gender,M=O.gender_id,D=O.genders,A=O.id_genders;return(0,e.jsx)(a.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",children:D.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===_,content:R.gender_name,onClick:function(){return I("gender",{gender:R.gender_key})}},R.gender_key)})}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",children:A.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===M,content:R.gender_name,onClick:function(){return I("gender_id",{gender_id:R.gender_key})}},R.gender_key)})})]})})},v=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.change_eye_color,M=O.change_skin_tone,D=O.change_skin_color,A=O.change_hair_color,R=O.change_facial_hair_color,K=O.eye_color,N=O.skin_color,k=O.hair_color,V=O.facial_hair_color,F=O.ears_color,J=O.ears2_color,H=O.tail_color,Q=O.tail2_color,Z=O.wing_color,X=O.wing2_color;return(0,e.jsxs)(a.wn,{title:"Colors",fill:!0,scrollable:!0,children:[_?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:K,mr:1}),(0,e.jsx)(a.$n,{content:"Change Eye Color",onClick:function(){return I("eye_color")}})]}):null,M?(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Change Skin Tone",onClick:function(){return I("skin_tone")}})}):null,D?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:N,mr:1}),(0,e.jsx)(a.$n,{content:"Change Skin Color",onClick:function(){return I("skin_color")}})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:k,mr:1}),(0,e.jsx)(a.$n,{content:"Change Hair Color",onClick:function(){return I("hair_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:F,mr:1}),(0,e.jsx)(a.$n,{content:"Change Ears Color",onClick:function(){return I("ears_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:J,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Ears Color",onClick:function(){return I("ears2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:H,mr:1}),(0,e.jsx)(a.$n,{content:"Change Tail Color",onClick:function(){return I("tail_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Q,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Tail Color",onClick:function(){return I("tail2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Z,mr:1}),(0,e.jsx)(a.$n,{content:"Change Wing Color",onClick:function(){return I("wing_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:X,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Wing Color",onClick:function(){return I("wing2_color")}})]})]}):null,R?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:V,mr:1}),(0,e.jsx)(a.$n,{content:"Change Facial Hair Color",onClick:function(){return I("facial_hair_color")}})]}):null]})},u=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.hair_style,M=O.hair_styles;return(0,e.jsx)(a.wn,{title:"Hair",fill:!0,scrollable:!0,children:M.map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return I("hair",{hair:D.hairstyle})},selected:D.hairstyle===_,content:D.hairstyle},D.hairstyle)})})},h=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.facial_hair_style,M=O.facial_hair_styles;return(0,e.jsx)(a.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:M.map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return I("facial_hair",{facial_hair:D.facialhairstyle})},selected:D.facialhairstyle===_,content:D.facialhairstyle},D.facialhairstyle)})})},c=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.ear_style,M=O.ear_styles;return(0,e.jsxs)(a.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return I("ear",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return I("ear",{ref:D.instance})},selected:D.name===_,content:D.name},D.instance)})]})},d=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.tail_style,M=O.tail_styles;return(0,e.jsxs)(a.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return I("tail",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return I("tail",{ref:D.instance})},selected:D.name===_,content:D.name},D.instance)})]})},p=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.wing_style,M=O.wing_styles;return(0,e.jsxs)(a.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return I("wing",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(a.$n,{onClick:function(){return I("wing",{ref:D.instance})},selected:D.name===_,content:D.name},D.instance)})]})},C=function(j){var b=(0,i.Oc)(),I=b.act,O=b.data,_=O.markings;return(0,e.jsxs)(a.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Add Marking",onClick:function(){return I("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(a.Ki,{children:_.map(function(M){return(0,e.jsxs)(a.Ki.Item,{label:M.marking_name,children:[(0,e.jsx)(a.BK,{color:M.marking_color,mr:1}),(0,e.jsx)(a.$n,{content:"Change Color",onClick:function(){return I("marking",{todo:4,name:M.marking_name})}}),(0,e.jsx)(a.$n,{content:"-",onClick:function(){return I("marking",{todo:0,name:M.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move down",onClick:function(){return I("marking",{todo:3,name:M.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move up",onClick:function(){return I("marking",{todo:2,name:M.marking_name})}})]},M.marking_name)})})]})}},8536:function(P,y,t){"use strict";t.r(y),t.d(y,{ArcadeBattle:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.name,v=f.temp,u=f.enemyAction,h=f.enemyName,c=f.playerHP,d=f.playerMP,p=f.enemyHP,C=f.enemyMP,j=f.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:h,textAlign:"center",children:[(0,e.jsxs)(n.wn,{color:"label",children:[(0,e.jsx)(n.az,{children:v}),(0,e.jsx)(n.az,{children:!j&&u})]}),(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(n.z2,{value:c,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[c,"HP"]})}),(0,e.jsx)(n.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(n.z2,{value:d,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[d,"MP"]})})]})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),j&&(0,e.jsx)(n.$n,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return x("newgame")}})||(0,e.jsxs)(n.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},content:"Attack!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},content:"Heal!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},content:"Recharge!"})})]})]})})})}},59854:function(P,y,t){"use strict";t.r(y),t.d(y,{AreaScrubberControl:function(){return g}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=function(f){var m=(0,r.Oc)(),v=m.act,u=m.data,h=(0,n.useState)(!1),c=h[0],d=h[1],p=u.scrubbers;return p?(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.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",content:"Scan",onClick:function(){return v("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",content:"Show Areas",selected:c,onClick:function(){return d(!c)}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return v("allon")}})}),(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",content:"All Off",onClick:function(){return v("alloff")}})})]}),(0,e.jsx)(i.so,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:c})},C.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",content:"Scan",onClick:function(){return v("scan")}})]})},x=function(f){var m=(0,r.Oc)().act,v=f.scrubber,u=f.showArea;return(0,e.jsxs)(i.wn,{title:v.name,children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"power-off",content:v.on?"Enabled":"Disabled",selected:v.on,onClick:function(){return m("toggle",{id:v.id})}}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[v.pressure," kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Flow Rate",children:[v.flow_rate," L/s"]}),(0,e.jsxs)(i.Ki.Item,{label:"Load",children:[v.load," W"]}),u&&(0,e.jsx)(i.Ki.Item,{label:"Area",children:(0,s.Sn)(v.area)})]})]})}},20251:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyInfrared:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Infrared Unit",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Laser",children:(0,e.jsx)(n.$n,{icon:"power-off",fluid:!0,selected:m,onClick:function(){return x("state")},children:m?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Visibility",children:(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,selected:v,onClick:function(){return x("visible")},children:v?"Able to be seen":"Invisible"})})]})})})})}},54349:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyProx:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.timing,h=v.time,c=v.range,d=v.maxRange,p=v.scanning;return(0,e.jsx)(a.p8,{children:(0,e.jsxs)(a.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:u,onClick:function(){return m("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(C){return(0,i.fU)((0,s.LI)(C))},onDrag:function(C,j){return m("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,{minValue:1,value:c,maxValue:d,onDrag:function(C,j){return m("range",{range:j})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:p?"lock":"lock-open",selected:p,onClick:function(){return m("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},8327:function(P,y,t){"use strict";t.r(y),t.d(y,{AssemblyTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.timing,h=v.time;return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.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:u,onClick:function(){return m("timing")},children:u?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(c){return(0,i.fU)((0,s.LI)(c))},onDrag:function(c,d){return m("set_time",{time:d})}})})})})})})}},49775:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosAlertConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.priority_alarms||[],v=f.minor_alarms||[];return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),m.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"bad",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)}),v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),v.map(function(u){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:u.name,color:"average",onClick:function(){return x("clear",{ref:u.ref})}})},u.name)})]})})})})}},42623:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosControl:function(){return f},AtmosControlContent:function(){return m}});var e=t(88095),s=t(11358),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(47868),x=(0,g.h)("fuck"),f=function(v){return(0,e.jsx)(a.p8,{width:600,height:440,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=u.config,p=(0,s.Ul)(function(D){return D.name})(c.alarms||[]),C=(0,n.useState)(0),j=C[0],b=C[1],I=(0,n.useState)(1),O=I[0],_=I[1],M;return j===0?M=(0,e.jsx)(i.wn,{title:"Alarms",children:p.map(function(D){return(0,e.jsx)(i.$n,{content:D.name,color:D.danger===2?"bad":D.danger===1?"average":"",onClick:function(){return h("alarm",{alarm:D.ref})}},D.name)})}):j===1&&(M=(0,e.jsx)(i.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(i.tx,{zoomScale:c.zoomScale,onZoom:function(D){return _(D)},children:p.filter(function(D){return~~D.z===~~d.mapZLevel}).map(function(D){return(0,e.jsx)(i.tx.Marker,{x:D.x,y:D.y,zoom:O,icon:"bell",tooltip:D.name,color:D.danger?"red":"green",onClick:function(){return h("alarm",{alarm:D.ref})}},D.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:j===0,onClick:function(){return b(0)},children:[(0,e.jsx)(i.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(i.tU.Tab,{selected:j===1,onClick:function(){return b(1)},children:[(0,e.jsx)(i.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(i.az,{m:2,children:M})]})}},45440:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosFilter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(n.az,{inline:!0,mr:1,children:(0,e.jsx)(n.zv,{value:f.last_flow_rate,format:function(v){return v+" L/s"}})}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(v,u){return x("rate",{rate:u})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:f.rate===f.max_rate,onClick:function(){return x("rate",{rate:"max"})}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:m.map(function(v){return(0,e.jsx)(n.$n,{selected:v.selected,content:v.name,onClick:function(){return x("filter",{filterset:v.f_type})}},v.name)})})]})})})})}},15147:function(P,y,t){"use strict";t.r(y),t.d(y,{AtmosMixer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:f.on?"power-off":"times",content:f.on?"On":"Off",selected:f.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:f.max_pressure,step:10,onChange:function(m,v){return x("pressure",{pressure:v})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:f.set_pressure===f.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})}})]}),(0,e.jsx)(n.Ki.Divider,{size:1}),(0,e.jsx)(n.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(n.Ki.Item,{label:"Node 1 ("+f.node1_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:f.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(m,v){return x("node1",{concentration:v})}})}),(0,e.jsx)(n.Ki.Item,{label:"Node 2 ("+f.node2_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:f.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(m,v){return x("node2",{concentration:v})}})})]})})})})}},80281:function(P,y,t){"use strict";t.r(y),t.d(y,{Autolathe:function(){return c}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(68040),x=t(47926);function f(d,p){(p==null||p>d.length)&&(p=d.length);for(var C=0,j=new Array(p);C=d.length?{done:!0}:{done:!1,value:d[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.")}var h=function(d,p,C){var j=function(){var M=O.value,D=p.find(function(A){return A.name===M});if(!D)return"continue";if(D.amount=0)&&(C[b]=d[b]);return C}var f={Alphabetical:function(d,p){return d.name>p.name},"By availability":function(d,p){return-(d.affordable-p.affordable)},"By price":function(d,p){return d.price-p.price}},m=function(d){var p=function(J){D(J)},C=function(J){K(J)},j=function(J){V(J)},b=(0,r.Oc)(),I=b.act,O=b.data,_=(0,n.useState)(""),M=_[0],D=_[1],A=(0,n.useState)("Alphabetical"),R=A[0],K=A[1],N=(0,n.useState)(!1),k=N[0],V=N[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:O.processing&&(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:[O.points," points available.",(0,e.jsx)(i.$n,{ml:1,icon:"blender",onClick:function(){return I("activate")},children:"Activate"}),(0,e.jsx)(i.$n,{ml:1,icon:"eject",disabled:!O.beaker,onClick:function(){return I("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(u,{searchText:M,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(v,{searchText:M,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:j})]})})})},v=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=j.points,I=j.items,O=(0,s.XZ)(d.searchText,function(D){return D[0]}),_=!1,M=Object.entries(I).map(function(D,A){var R=Object.entries(D[1]).filter(O).map(function(K){return K[1].affordable=b>=K[1].price/j.build_eff,K[1]}).sort(f[d.sortOrder]);if(R.length!==0)return d.descending&&(R=R.reverse()),_=!0,(0,e.jsx)(c,{title:D[0],items:R},D[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:_?M:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d){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:d.searchText,width:"100%",onInput:function(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:d.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:d.descending?"arrow-down":"arrow-up",height:"19px",tooltip:d.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return d.onDescending(!d.descending)}})})]})})},h=function(d,p){return!(!d.affordable||d.reagent&&!p.beaker)},c=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=d.title,I=d.items,O=x(d,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:b},O,{children:I.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!h(_,j),content:(_.price/j.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:b,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},90233:function(P,y,t){"use strict";t.r(y),t.d(y,{BodyDesigner:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.menu,j=p.disk,b=p.diskStored,I=p.activeBodyRecord,O=u[C];return(0,e.jsx)(i.p8,{width:400,height:650,children:(0,e.jsxs)(i.p8.Content,{children:[j?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",content:"Save To Disk",onClick:function(){return d("savetodisk")},disabled:!I}),(0,e.jsx)(r.$n,{icon:"save",content:"Load From Disk",onClick:function(){return d("loadfromdisk")},disabled:!b}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject",onClick:function(){return d("ejectdisk")}})]}):null,O]})})},g=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",content:"View Individual Body Records",onClick:function(){return d("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.$n,{icon:"eye",content:"View Stock Body Records",onClick:function(){return d("menu",{menu:"Stock Records"})}})]})},x=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.bodyrecords;return(0,e.jsx)(r.wn,{title:"Body Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C?C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j.name,onClick:function(){return d("view_brec",{view_brec:j.recref})}},j.name)}):""})},f=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.stock_bodyrecords;return(0,e.jsx)(r.wn,{title:"Stock Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:C.map(function(j){return(0,e.jsx)(r.$n,{icon:"eye",content:j,onClick:function(){return d("view_stock_brec",{view_stock_brec:j})}},j)})})},m=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.activeBodyRecord,j=p.mapRef;return C?(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",content:"Back",onClick:function(){return d("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:C.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:C.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",content:(0,s.ZH)(C.gender),onClick:function(){return d("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:C.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[C.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!C.booc,onClick:function(){return d("boocnotes")}})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:j,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",content:C.scale,onClick:function(){return d("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(C.styles).map(function(b){var I=C.styles[b];return(0,e.jsxs)(r.Ki.Item,{label:b,children:[I.styleHref?(0,e.jsx)(r.$n,{icon:"pen",content:I.style,onClick:function(){return d("href_conversion",{target_href:I.styleHref,target_value:1})}}):null,I.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:I.color,onClick:function(){return d("href_conversion",{target_href:I.colorHref,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:I.color,style:{border:"1px solid #fff"}})]}):null,I.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:I.color2,onClick:function(){return d("href_conversion",{target_href:I.colorHref2,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:I.color2,style:{border:"1px solid #fff"}})]}):null]},b)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",content:"Add Marking",onClick:function(){return d("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(b){var I=C.markings[b];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 d("href_conversion",{target_href:"marking_remove",target_value:b})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:I,content:b,onClick:function(){return d("href_conversion",{target_href:"marking_color",target_value:b})}})})]})},b)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},v=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.activeBodyRecord;return(0,e.jsx)(r.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return d("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:C&&C.booc||"ERROR: Body record not found!"})},u={Main:(0,e.jsx)(g,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(f,{}),"Specific Record":(0,e.jsx)(m,{}),"OOC Notes":(0,e.jsx)(v,{})}},45922:function(P,y,t){"use strict";t.r(y),t.d(y,{BodyScanner:function(){return h}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(M){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(M){return"Viral pathogen detected in blood stream."}],["blind","average",function(M){return"Cataracts detected."}],["colourblind","average",function(M){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(M){return"Retinal misalignment detected."}],["humanPrey","average",function(M){return"Foreign Humanoid(s) detected: "+M.humanPrey}],["livingPrey","average",function(M){return"Foreign Creature(s) detected: "+M.livingPrey}],["objectPrey","average",function(M){return"Foreign Object(s) detected: "+M.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],f={average:[.25,.5],bad:[.5,1/0]},m=function(M,D){for(var A=[],R=0;R0?M.reduce(function(D,A){return D===null?A:(0,e.jsxs)(e.Fragment,{children:[D,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},u=function(M){if(M>100){if(M<300)return"mild infection";if(M<400)return"mild infection+";if(M<500)return"mild infection++";if(M<700)return"acute infection";if(M<800)return"acute infection+";if(M<900)return"acute infection++";if(M>=900)return"septic"}return""},h=function(M){var D=(0,n.Oc)().data,A=D.occupied,R=D.occupant,K=R===void 0?{}:R,N=A?(0,e.jsx)(c,{occupant:K}):(0,e.jsx)(_,{});return(0,e.jsx)(i.p8,{width:690,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},c=function(M){var D=M.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(d,{occupant:D}),(0,e.jsx)(p,{occupant:D}),(0,e.jsx)(C,{occupant:D}),(0,e.jsx)(j,{occupant:D}),(0,e.jsx)(I,{organs:D.extOrgan}),(0,e.jsx)(O,{organs:D.intOrgan})]})},d=function(M){var D=(0,n.Oc)(),A=D.act,R=D.data,K=R.occupant;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return A("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return A("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ki.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Weight",children:(0,s.LI)(R.occupant.weight)+"lbs, "+(0,s.LI)(R.occupant.weight/2.20463)+"kgs"})]})})},p=function(M){var D=M.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:D.reagents?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),D.reagents.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.wn,{title:"Stomach Reagents",children:D.ingested?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),D.ingested.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Stomach Reagents Detected"})})]})},C=function(M){var D=M.occupant,A=D.hasBorer||D.blind||D.colourblind||D.nearsighted||D.hasVirus;return A=A||D.humanPrey||D.livingPrey||D.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:g.map(function(R,K){if(D[R[0]])return(0,e.jsx)(r.az,{color:R[1],bold:R[1]==="bad",children:R[2](D)},K)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},j=function(M){var D=M.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:m(x,function(A,R,K){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI.Row,{color:"label",children:[(0,e.jsxs)(r.XI.Cell,{children:[A[0],":"]}),(0,e.jsx)(r.XI.Cell,{children:!!R&&R[0]+":"})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(b,{value:D[A[1]],marginBottom:K0&&"0.5rem",value:D.totalLoss/100,ranges:f,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!D.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,s.LI)(D.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!D.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,s.LI)(D.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,s.LI)(D.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([D.internalBleeding&&"Internal bleeding",!!D.status.bleeding&&"External bleeding",D.lungRuptured&&"Ruptured lung",D.destroyed&&"Destroyed",!!D.status.broken&&D.status.broken,u(D.germ_level),!!D.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[v([!!D.status.splinted&&"Splinted",!!D.status.robotic&&"Robotic",!!D.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),v(D.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},A)})]})})},O=function(M){return M.organs.length===0?(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),M.organs.map(function(D,A){return(0,e.jsxs)(r.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:D.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:D.maxHealth,value:D.damage/100,mt:A>0&&"0.5rem",ranges:f,children:(0,s.LI)(D.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([u(D.germ_level),!!D.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:v([D.robotic===1&&"Robotic",D.robotic===2&&"Assisted",!!D.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},_=function(){return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",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."]})})})}},57199:function(P,y,t){"use strict";t.r(y),t.d(y,{BombTester:function(){return f}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040);function a(){return a=Object.assign||function(v){for(var u=1;u.5,I=Math.random()>.5;return d.state={x:b?p:0,y:I?C:0,reverseX:!1,reverseY:!1},d.process=setInterval(function(){d.setState(function(O){var _=a({},O);return _.reverseX?_.x-j<-5?(_.reverseX=!1,_.x+=j):_.x-=j:_.x+j>p?(_.reverseX=!0,_.x-=j):_.x+=j,_.reverseY?_.y-j<-20?(_.reverseY=!1,_.y+=j):_.y-=j:_.y+j>C?(_.reverseY=!0,_.y-=j):_.y+=j,_})},1),d}var h=u.prototype;return h.componentWillUnmount=function(){clearInterval(this.process)},h.render=function(){var d=this.state,p=d.x,C=d.y,j={position:"relative",left:p+"px",top:C+"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:j,name:"bomb",size:10,color:"red"})})})},u}(s.Component)},95678:function(P,y,t){"use strict";t.r(y),t.d(y,{BotanyEditor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.activity,v=f.degradation,u=f.disk,h=f.sourceName,c=f.locus,d=f.loaded;return m?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.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)(n.wn,{title:"Buffered Genetic Data",children:u&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:h}),(0,e.jsxs)(n.Ki.Item,{label:"Gene Decay",children:[v,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Locus",children:c})]}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:d&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:d})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},72384:function(P,y,t){"use strict";t.r(y),t.d(y,{BotanyIsolator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.geneMasks,v=f.activity,u=f.degradation,h=f.disk,c=f.loaded,d=f.hasGenetics,p=f.sourceName;return v?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.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)(n.wn,{title:"Buffered Genetic Data",children:d&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Gene decay",children:[u,"%"]}),h&&m.length&&m.map(function(C){return(0,e.jsx)(n.Ki.Item,{label:C.mask,children:(0,e.jsx)(n.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),h&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.IC,{warning:!0,children:"No Data Buffered."}),h&&(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:c&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Packet Loaded",children:c})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No packet loaded."})})]})})}},11515:function(P,y,t){"use strict";t.r(y),t.d(y,{BrigTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data;return(0,e.jsx)(a.p8,{width:300,height:138,children:(0,e.jsx)(a.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",content:v.timing?"Stop":"Start",selected:v.timing,onClick:function(){return m(v.timing?"stop":"start")}}),v.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",content:v.flash_charging?"Recharging":"Flash",disabled:v.flash_charging,onClick:function(){return m("flash")}})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v.time_left/10,minValue:0,maxValue:v.max_time_left/10,format:function(u){return(0,i.fU)((0,s.LI)(u))},onDrag:function(u,h){return m("time",{time:h})}}),(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",content:"Add "+(0,i.fU)(v.preset_short/10),onClick:function(){return m("preset",{preset:"short"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_medium/10),onClick:function(){return m("preset",{preset:"medium"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_long/10),onClick:function(){return m("preset",{preset:"long"})}})})]})]})})})}},96524:function(P,y,t){"use strict";t.r(y),t.d(y,{CameraConsole:function(){return u},CameraConsoleContent:function(){return h},prevNextCamera:function(){return m},selectCameras:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),f=t(68040),m=function(c,d){var p,C;if(!d)return[];var j=c.findIndex(function(b){return b.name===d.name});return[(p=c[j-1])==null?void 0:p.name,(C=c[j+1])==null?void 0:C.name]},v=function(c,d,p){d===void 0&&(d=""),p===void 0&&(p="");var C=(0,i.XZ)(d,function(j){return j.name});return(0,n.L)([(0,s.pb)(function(j){return j==null?void 0:j.name}),d&&(0,s.pb)(C),p&&(0,s.pb)(function(j){return j.networks.includes(p)}),(0,s.Ul)(function(j){return j.name})])(c)},u=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,j=C.mapRef,b=C.activeCamera,I=v(C.cameras),O=m(I,b),_=O[0],M=O[1];return(0,e.jsxs)(f.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(f.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),b&&b.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!_,onClick:function(){return p("switch_camera",{name:_})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!M,onClick:function(){return p("switch_camera",{name:M})}}),"| PAN:",(0,e.jsx)(x.$n,{icon:"chevron-left",onClick:function(){return p("pan",{dir:8})}}),(0,e.jsx)(x.$n,{icon:"chevron-up",onClick:function(){return p("pan",{dir:1})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",onClick:function(){return p("pan",{dir:4})}}),(0,e.jsx)(x.$n,{icon:"chevron-down",onClick:function(){return p("pan",{dir:2})}})]}),(0,e.jsx)(x.D1,{className:"CameraConsole__map",params:{id:j,type:"map"}})]})]})},h=function(c){var d=(0,g.Oc)(),p=d.act,C=d.data,j=(0,a.useState)(""),b=j[0],I=j[1],O=(0,a.useState)(""),_=O[0],M=O[1],D=C.activeCamera,A=C.allNetworks;A.sort();var R=v(C.cameras,b,_);return(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(K,N){return I(N)}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.ms,{mb:1,width:_?"155px":"177px",displayText:_||"No Filter",options:A,onSelected:function(K){return M(K)}})}),_?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){M("")}})}):""]})}),(0,e.jsx)(x.so.Item,{height:"100%",children:(0,e.jsx)(x.wn,{fill:!0,scrollable:!0,children:R.map(function(K){return(0,e.jsx)("div",{title:K.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",D&&K.name===D.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:K.name})},children:K.name},K.name)})})})]})}},60997:function(P,y,t){"use strict";t.r(y),t.d(y,{Canister:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.connected,h=v.can_relabel,c=v.pressure,d=v.releasePressure,p=v.defaultReleasePressure,C=v.minReleasePressure,j=v.maxReleasePressure,b=v.valveOpen,I=v.holding;return(0,e.jsx)(a.p8,{width:360,height:242,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!h,content:"Relabel",onClick:function(){return m("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:c,format:function(O){return O<1e4?(0,s.Mg)(O)+" kPa":(0,i.QL)(O*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,{forcedInputWidth:"60px",size:1.25,color:!!b&&"yellow",value:d,unit:"kPa",minValue:C,maxValue:j,stepPixelSize:1,onDrag:function(O,_){return m("pressure",{pressure:_})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return m("pressure",{pressure:j})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return m("pressure",{pressure:p})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:b?I?"caution":"danger":null,content:b?"Open":"Closed",onClick:function(){return m("valve")}})}),(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:u?"plug":"times",color:u?"good":"bad"}),(0,e.jsx)(r.m_,{content:u?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!I&&(0,e.jsx)(r.$n,{icon:"eject",color:b&&"danger",content:"Eject",onClick:function(){return m("eject")}}),children:[!!I&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:I.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:I.pressure})," kPa"]})]}),!I&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},9550:function(P,y,t){"use strict";t.r(y),t.d(y,{Canvas:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040);function a(){return a=Object.assign||function(c){for(var d=1;d=0)&&(p[j]=c[j]);return p}function f(c,d){return f=Object.setPrototypeOf||function(C,j){return C.__proto__=j,C},f(c,d)}var m=24,v=function(c){"use strict";g(d,c);function d(C){var j;return j=c.call(this,C)||this,j.canvasRef=(0,s.createRef)(),j.onCVClick=C.onCanvasClick,j}var p=d.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(j){var b=this.canvasRef.current.getContext("2d"),I=j.value,O=I.length;if(O){var _=I[0].length,M=Math.round(this.canvasRef.current.width/O),D=Math.round(this.canvasRef.current.height/_);b.save(),b.scale(M,D);for(var A=0;A=0)&&(p[j]=c[j]);return p}var f={Alphabetical:function(c,d){return c.name>d.name},"By availability":function(c,d){return-(c.affordable-d.affordable)},"By price":function(c,d){return c.price-d.price}},m=function(){var c=function(K){b(K)},d=function(K){_(K)},p=function(K){A(K)},C=(0,n.useState)(""),j=C[0],b=C[1],I=(0,n.useState)("Alphabetical"),O=I[0],_=I[1],M=(0,n.useState)(!1),D=M[0],A=M[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{searchText:j,sortOrder:O,descending:D,onSearchText:c,onSortOrder:d,onDescending:p}),(0,e.jsx)(u,{searchText:j,sortOrder:O,descending:D,onSearchText:c,onSortOrder:d,onDescending:p})]})})})},v=function(c){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(d,p){return c.onSearchText(p)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:c.sortOrder,options:Object.keys(f),width:"100%",lineHeight:"19px",onSelected:function(d){return c.onSortOrder(d)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:c.descending?"arrow-down":"arrow-up",height:"19px",tooltip:c.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return c.onDescending(!c.descending)}})})]})})},u=function(c){var d=(0,r.Oc)(),p=d.act,C=d.data,j=C.points,b=C.items,I=(0,s.XZ)(c.searchText,function(M){return M[0]}),O=!1,_=Object.entries(b).map(function(M,D){var A=Object.entries(M[1]).filter(I).map(function(R){return R[1].affordable=j>=R[1].price,R[1]}).sort(f[c.sortOrder]);if(A.length!==0)return c.descending&&(A=A.reverse()),O=!0,(0,e.jsx)(h,{title:M[0],items:A},M[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:O?_:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(c){var d=(0,r.Oc)(),p=d.act,C=d.data,j=c.title,b=c.items,I=x(c,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:j},I,{children:b.map(function(O){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:O.name}),(0,e.jsx)(i.$n,{content:O.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:j,name:O.name,price:O.price,restriction:O.restriction})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},O.name)})}))}},36136:function(P,y,t){"use strict";t.r(y),t.d(y,{CharacterDirectory:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(v){switch(v){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(v){var u=function(R){O(R)},h=(0,n.Oc)(),c=h.act,d=h.data,p=d.personalVisibility,C=d.personalTag,j=d.personalErpTag,b=(0,s.useState)(null),I=b[0],O=b[1],_=(0,s.useState)(!1),M=_[0],D=_[1];return(0,e.jsx)(i.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:I&&(0,e.jsx)(x,{overlay:I,onOverlay:u})||(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:M?"toggle-on":"toggle-off",selected:M,content:M?"On":"Off",onClick:function(){return D(!M)}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,content:p?"Shown":"Not Shown",onClick:function(){return c("setVisible",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:C,onClick:function(){return c("setTag",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:j,onClick:function(){return c("setErpTag",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,content:"Edit Ad",onClick:function(){return c("editAd",{overwrite_prefs:M})}})})]})}),(0,e.jsx)(f,{onOverlay:u})]})})})},x=function(v){return(0,e.jsxs)(r.wn,{title:v.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return v.onOverlay(null)}}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:v.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:a(v.overlay.tag),children:v.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:v.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.flavor_text||"Unset."})})]})},f=function(v){var u=function(A){I(A)},h=function(A){M(A)},c=(0,n.Oc)(),d=c.act,p=c.data,C=p.directory,j=(0,s.useState)("name"),b=j[0],I=j[1],O=(0,s.useState)("name"),_=O[0],M=O[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Refresh",onClick:function(){return d("refresh")}}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(m,{id:"name",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"Name"}),(0,e.jsx)(m,{id:"species",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"Species"}),(0,e.jsx)(m,{id:"tag",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"Vore Tag"}),(0,e.jsx)(m,{id:"erptag",sortId:b,sortOrder:_,onSortId:u,onSortOrder:h,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),C.sort(function(D,A){var R=_?1:-1;return D[b].localeCompare(A[b])*R}).map(function(D,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:a(D.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:D.name}),(0,e.jsx)(r.XI.Cell,{children:D.species}),(0,e.jsx)(r.XI.Cell,{children:D.tag}),(0,e.jsx)(r.XI.Cell,{children:D.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return v.onOverlay(D)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},A)})]})})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=v.id,p=v.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:v.sortId!==d&&"transparent",onClick:function(){v.sortId===d?v.onSortOrder(!v.sortOrder):(v.onSortId(d),v.onSortOrder(!0))},children:[p,v.sortId===d&&(0,e.jsx)(r.In,{name:v.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},98875:function(P,y,t){"use strict";t.r(y),t.d(y,{CheckboxInput:function(){return m}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(86808),g=t(68040),x=t(12035),f=t(18513),m=function(v){var u=(0,r.Oc)().data,h=u.items,c=h===void 0?[]:h,d=u.min_checked,p=u.max_checked,C=u.message,j=u.timeout,b=u.title,I=(0,n.useState)([]),O=I[0],_=I[1],M=(0,n.useState)(""),D=M[0],A=M[1],R=(0,s.XZ)(D,function(k){return k}),K=c.filter(R),N=function(k){var V=O.includes(k)?O.filter(function(F){return F!==k}):[].concat(O,[k]);_(V)};return(0,e.jsxs)(g.p8,{title:b,width:425,height:300,children:[!!j&&(0,e.jsx)(f.Loader,{value:j}),(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,s.jT)(C)," ",d>0&&" (Min: "+d+")",p<50&&" (Max: "+p+")"]})}),(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:K.map(function(k,V){return(0,e.jsx)(a.Hj,{className:"candystripe",children:(0,e.jsx)(a.nA,{children:(0,e.jsx)(i.$n.Checkbox,{checked:O.includes(k),disabled:O.length>=p&&!O.includes(k),fluid:!0,onClick:function(){return N(k)},children:k})})},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:D,onInput:function(k,V){return A(V)}})})]}),(0,e.jsx)(i.BJ.Item,{mt:.7,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(x.InputButtons,{input:O})})})]})})]})}},6908:function(P,y,t){"use strict";t.r(y),t.d(y,{ChemDispenser:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(62386),i=t(68040),a=[5,10,20,30,40,60],g=[1,5,10],x=function(u){return(0,e.jsx)(i.p8,{width:390,height:655,children:(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(f,{}),(0,e.jsx)(m,{}),(0,e.jsx)(v,{})]})})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.amount;return(0,e.jsx)(n.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:a.map(function(C,j){return(0,e.jsx)(n.$n,{textAlign:"center",selected:p===C,content:C+"u",m:"0",onClick:function(){return c("amount",{amount:C})}},j)})}),(0,e.jsx)(n.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,j){return c("amount",{amount:j})}})})]})})},m=function(u){for(var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.chemicals,C=p===void 0?[]:p,j=[],b=0;b<(C.length+1)%3;b++)j.push(!0);return(0,e.jsx)(n.wn,{title:d.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(n.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(I,O){return(0,e.jsx)(n.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:I.title+" ("+I.amount+")",onClick:function(){return c("dispense",{reagent:I.id})}})},O)}),j.map(function(I,O){return(0,e.jsx)(n.so.Item,{grow:"1",basis:"25%",height:"20px"},O)})]})})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isBeakerLoaded,C=d.beakerCurrentVolume,j=d.beakerMaxVolume,b=d.beakerContents,I=b===void 0?[]:b;return(0,e.jsx)(n.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.az,{children:[!!p&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[C," / ",j," units"]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!p,onClick:function(){return c("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:I,buttons:function(O){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:O.id,amount:-1})}}),g.map(function(_,M){return(0,e.jsx)(n.$n,{content:_,onClick:function(){return c("remove",{reagent:O.id,amount:_})}},M)}),(0,e.jsx)(n.$n,{content:"ALL",onClick:function(){return c("remove",{reagent:O.id,amount:O.volume})}})]})}})})}},75191:function(P,y,t){"use strict";t.r(y),t.d(y,{ChemMaster:function(){return m}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(62386),a=t(5425),g=[1,5,10,30,60],x=null,f=function(p){var C=(0,s.Oc)(),j=C.act,b=C.data,I=p.args.analysis;return(0,e.jsx)(n.wn,{level:2,m:"-1rem",pb:"1rem",title:b.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:(I.desc||"").length>0?I.desc:"N/A"}),I.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood type",children:I.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:I.blood_dna})]}),!b.condi&&(0,e.jsx)(n.$n,{icon:b.printing?"spinner":"print",disabled:b.printing,iconSpin:!!b.printing,ml:"0.5rem",content:"Print",onClick:function(){return j("print",{idx:I.idx,beaker:p.args.beaker})}})]})})})},m=function(p){var C=(0,s.Oc)().data,j=C.condi,b=C.beaker,I=C.beaker_reagents,O=I===void 0?[]:I,_=C.buffer_reagents,M=_===void 0?[]:_,D=C.mode;return(0,e.jsxs)(r.p8,{width:575,height:500,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsxs)(r.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{beaker:b,beakerReagents:O,bufferNonEmpty:M.length>0}),(0,e.jsx)(u,{mode:D,bufferReagents:M}),(0,e.jsx)(h,{isCondiment:j,bufferNonEmpty:M.length>0})]})]})},v=function(p){var C=(0,s.Oc)(),j=C.act,b=C.data,I=p.beaker,O=p.beakerReagents,_=p.bufferNonEmpty,M=_?(0,e.jsx)(n.$n.Confirm,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return j("eject")}});return(0,e.jsx)(n.wn,{title:"Beaker",buttons:M,children:I?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:O,buttons:function(D,A){return(0,e.jsxs)(n.az,{mb:A0?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(O,_){return(0,e.jsxs)(n.az,{mb:_1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:i.lm.damageType.oxy,inline:!0,children:K[0]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.toxin,inline:!0,children:K[2]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.brute,inline:!0,children:K[3]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.burn,inline:!0,children:K[1]})]}):(0,e.jsx)(r.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:A}),(0,e.jsx)(r.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:R}),(0,e.jsxs)(r.Ki.Item,{label:"Disk",children:[(0,e.jsx)(r.$n.Confirm,{disabled:!I.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return b("disk",{option:"load"})}}),(0,e.jsx)(r.$n,{disabled:!I.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return b("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.$n,{disabled:!I.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return b("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.$n,{disabled:!I.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return b("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Actions",children:[(0,e.jsx)(r.$n,{disabled:!I.podready,icon:"user-plus",content:"Clone",onClick:function(){return b("clone",{ref:_})}}),(0,e.jsx)(r.$n,{icon:"trash",content:"Delete",onClick:function(){return b("del_rec")}})]})]})})},m=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.menu;return(0,a.modalRegisterBodyOverride)("view_rec",f),(0,e.jsxs)(g.p8,{children:[(0,e.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(p,{}),(0,e.jsx)(v,{}),(0,e.jsx)(r.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(u,{})})]})]})},v=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.menu;return(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:O===1,icon:"home",onClick:function(){return b("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.tU.Tab,{selected:O===2,icon:"folder",onClick:function(){return b("menu",{num:2})},children:"Records"})]})},u=function(C){var j=(0,n.Oc)().data,b=j.menu,I;return b===1?I=(0,e.jsx)(h,{}):b===2&&(I=(0,e.jsx)(c,{})),I},h=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.loading,_=I.scantemp,M=I.occupant,D=I.locked,A=I.can_brainscan,R=I.scan_mode,K=I.numberofpods,N=I.pods,k=I.selected_pod,V=D&&!!M;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.$n,{disabled:!M,selected:V,icon:V?"toggle-on":"toggle-off",content:V?"Engaged":"Disengaged",onClick:function(){return b("lock")}}),(0,e.jsx)(r.$n,{disabled:V||!M,icon:"user-slash",content:"Eject Occupant",onClick:function(){return b("eject")}})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Status",children:O?(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.az,{color:_.color,children:_.text})}),!!A&&(0,e.jsx)(r.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(r.$n,{icon:R?"brain":"male",content:R?"Brain":"Body",onClick:function(){return b("toggle_mode")}})})]}),(0,e.jsx)(r.$n,{disabled:!M||O,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return b("scan")}})]}),(0,e.jsx)(r.wn,{title:"Pods",level:"2",children:K?N.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:k===F.pod,icon:k===F.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return b("selectpod",{ref:F.pod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+F.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.az,{color:"label",children:["Pod #",J+1]}),(0,e.jsxs)(r.az,{bold:!0,color:F.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.biomass>=150?"circle":"circle-o"}),"\xA0",F.biomass]}),H]},J)}):(0,e.jsx)(r.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},c=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.records;return O.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:O.map(function(_,M){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:_.realname,onClick:function(){return b("view_rec",{ref:_.record})}},M)})}):(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},d=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.temp;if(!(!O||!O.text||O.text.length<=0)){var _,M=(_={},_[O.style]=!0,_);return(0,e.jsxs)(r.IC,x({},M,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:O.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return b("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},p=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.scanner,_=I.numberofpods,M=I.autoallowed,D=I.autoprocess,A=I.disk;return(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.$n,{selected:D,icon:D?"toggle-on":"toggle-off",content:D?"Enabled":"Disabled",onClick:function(){return b("autoprocess",{on:D?0:1})}})]}),(0,e.jsx)(r.$n,{disabled:!A,icon:"eject",content:"Eject Disk",onClick:function(){return b("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scanner",children:O?(0,e.jsx)(r.az,{color:"good",children:"Connected"}):(0,e.jsx)(r.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Pods",children:_?(0,e.jsxs)(r.az,{color:"good",children:[_," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},48418:function(P,y,t){"use strict";t.r(y),t.d(y,{ColorMate:function(){return i},ColorMateHSV:function(){return x},ColorMateMatrix:function(){return g},ColorMateTint:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data,c=h.activemode,d=h.temp,p=h.item||[];return(0,e.jsx)(r.p8,{width:"980",height:"720",resizable:!0,children:(0,e.jsx)(r.p8.Content,{overflow:"auto",children:(0,e.jsxs)(n.wn,{children:[d?(0,e.jsx)(n.IC,{children:d}):null,Object.keys(p).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.XI,{children:[(0,e.jsx)(n.XI.Cell,{width:"50%",children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+p.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.jsxs)(n.tU,{fluid:!0,children:[(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return u("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(n.tU.Tab,{selected:c===2,onClick:function(){return u("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(n.tU.Tab,{selected:c===3,onClick:function(){return u("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",p.name]}),(0,e.jsxs)(n.XI,{mt:1,children:[(0,e.jsxs)(n.XI.Cell,{width:"33%",children:[(0,e.jsx)(n.$n,{fluid:!0,content:"Paint",icon:"fill",onClick:function(){return u("paint")}}),(0,e.jsx)(n.$n,{fluid:!0,content:"Clear",icon:"eraser",onClick:function(){return u("clear")}}),(0,e.jsx)(n.$n,{fluid:!0,content:"Eject",icon:"eject",onClick:function(){return u("drop")}})]}),(0,e.jsx)(n.XI.Cell,{width:"66%",children:c===1?(0,e.jsx)(a,{}):c===2?(0,e.jsx)(x,{}):(0,e.jsx)(g,{})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})},a=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data;return(0,e.jsx)(n.$n,{fluid:!0,content:"Select new color",icon:"paint-brush",onClick:function(){return u("choose_color")}})},g=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data,c=h.matrixcolors||[];return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rr,onChange:function(d,p){return u("set_matrix_color",{color:1,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gr,onChange:function(d,p){return u("set_matrix_color",{color:4,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.br,onChange:function(d,p){return u("set_matrix_color",{color:7,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rg,onChange:function(d,p){return u("set_matrix_color",{color:2,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gg,onChange:function(d,p){return u("set_matrix_color",{color:5,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bg,onChange:function(d,p){return u("set_matrix_color",{color:8,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["RB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.rb,onChange:function(d,p){return u("set_matrix_color",{color:3,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["GB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.gb,onChange:function(d,p){return u("set_matrix_color",{color:6,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["BB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.bb,onChange:function(d,p){return u("set_matrix_color",{color:9,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsxs)(n.XI.Row,{children:["CR:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cr,onChange:function(d,p){return u("set_matrix_color",{color:10,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["CG:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cg,onChange:function(d,p){return u("set_matrix_color",{color:11,value:p})}})]}),(0,e.jsxs)(n.XI.Row,{children:["CB:"," ",(0,e.jsx)(n.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:c.cb,onChange:function(d,p){return u("set_matrix_color",{color:12,value:p})}})]})]}),(0,e.jsxs)(n.XI.Cell,{width:"40%",children:[(0,e.jsx)(n.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(n.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})},x=function(f,m){var v=(0,s.Oc)(m),u=v.act,h=v.data,c=h.buildhue,d=h.buildsat,p=h.buildval;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(n.XI.Cell,{width:"85%",children:(0,e.jsx)(n.Ap,{minValue:0,maxValue:360,step:1,value:c,onDrag:function(C,j){return u("set_hue",{buildhue:j})}})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.Ap,{minValue:-10,maxValue:10,step:.01,value:d,onDrag:function(C,j){return u("set_sat",{buildsat:j})}})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.Ap,{minValue:-10,maxValue:10,step:.01,value:p,onDrag:function(C,j){return u("set_val",{buildval:j})}})})]})]})}},48022:function(P,y,t){"use strict";t.r(y),t.d(y,{CommunicationsConsole:function(){return i},CommunicationsConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(v){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.menu_state,p=(0,e.jsxs)(n.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",d,"Please report this to NT Technical Support."]});return d===1?p=(0,e.jsx)(g,{}):d===2?p=(0,e.jsx)(m,{}):d===3&&(p=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.messages,p=c.msg_cooldown,C=c.emagged,j=c.cc_cooldown,b=c.str_security_level,I=c.levels,O=c.authmax,_=c.security_level,M=c.security_level_color,D=c.authenticated,A=c.atcsquelch,R=c.boss_short,K="View ("+d.length+")",N="Make Priority Announcement";p>0&&(N+=" ("+p+"s)");var k=C?"Message [UNKNOWN]":"Message "+R;j>0&&(k+=" ("+j+"s)");var V=b,F=I.map(function(J){return(0,e.jsx)(n.$n,{icon:J.icon,content:J.name,disabled:!D,selected:J.id===_,onClick:function(){return h("newalertlevel",{level:J.id})}},J.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Announcement",children:(0,e.jsx)(n.$n,{icon:"bullhorn",content:N,disabled:!O||p>0,onClick:function(){return h("announce")}})}),!!C&&(0,e.jsxs)(n.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(n.$n,{icon:"broadcast-tower",color:"red",content:k,disabled:!O||j>0,onClick:function(){return h("MessageSyndicate")}}),(0,e.jsx)(n.$n,{icon:"sync-alt",content:"Reset Relays",disabled:!O,onClick:function(){return h("RestoreBackup")}})]})||(0,e.jsx)(n.Ki.Item,{label:"Transmit",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",content:k,disabled:!O||j>0,onClick:function(){return h("MessageCentCom")}})})]})}),(0,e.jsx)(n.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Alert",color:M,children:V}),(0,e.jsx)(n.Ki.Item,{label:"Change Alert",children:F}),(0,e.jsx)(n.Ki.Item,{label:"Displays",children:(0,e.jsx)(n.$n,{icon:"tv",content:"Change Status Displays",disabled:!D,onClick:function(){return h("status")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(n.$n,{icon:"folder-open",content:K,disabled:!D,onClick:function(){return h("messagelist")}})}),(0,e.jsx)(n.Ki.Item,{label:"Misc",children:(0,e.jsx)(n.$n,{icon:"microphone",content:A?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!D,selected:A,onClick:function(){return h("toggleatc")}})})]})})]})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.authenticated,p=c.is_ai,C=c.esc_status,j=c.esc_callable,b=c.esc_recallable,I;return d?p?I="AI":d===1?I="Command":d===2?I="Site Director":I="ERROR: Report This Bug!":I="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsx)(n.Ki,{children:p&&(0,e.jsx)(n.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:d?"sign-out-alt":"id-card",selected:d,content:d?"Log Out ("+I+")":"Log In",onClick:function(){return h("auth")}})})})}),(0,e.jsx)(n.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(n.Ki,{children:[!!C&&(0,e.jsx)(n.Ki.Item,{label:"Status",children:C}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"rocket",content:"Call Shuttle",disabled:!d,onClick:function(){return h("callshuttle")}})}),!!b&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"times",content:"Recall Shuttle",disabled:!d||p,onClick:function(){return h("cancelshuttle")}})})]})})]})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.message_current,p=c.message_deletion_allowed,C=c.authenticated,j=c.messages;if(d)return(0,e.jsx)(n.wn,{title:d.title,buttons:(0,e.jsx)(n.$n,{icon:"times",content:"Return To Message List",disabled:!C,onClick:function(){return h("messagelist")}}),children:(0,e.jsx)(n.az,{children:d.contents})});var b=j.map(function(I){return(0,e.jsxs)(n.Ki.Item,{label:I.title,children:[(0,e.jsx)(n.$n,{icon:"eye",content:"View",disabled:!C||d&&d.title===I.title,onClick:function(){return h("messagelist",{msgid:I.id})}}),(0,e.jsx)(n.$n,{icon:"times",content:"Delete",disabled:!C||!p,onClick:function(){return h("delmessage",{msgid:I.id})}})]},I.id)});return(0,e.jsx)(n.wn,{title:"Messages Received",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsx)(n.Ki,{children:j.length&&b||(0,e.jsx)(n.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.stat_display,p=c.authenticated,C=d.presets.map(function(j){return(0,e.jsx)(n.$n,{content:j.label,selected:j.name===d.type,disabled:!p,onClick:function(){return h("setstat",{statdisp:j.name})}},j.name)});return(0,e.jsx)(n.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Presets",children:C}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:d.line_1,disabled:!p,onClick:function(){return h("setmsg1")}})}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:d.line_2,disabled:!p,onClick:function(){return h("setmsg2")}})})]})})}},80273:function(P,y,t){"use strict";t.r(y),t.d(y,{Communicator:function(){return _}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=t(41608),f=1,m=2,v=3,u=4,h=40,c=5,d=6,p=7,C=8,j=9,b=[f,m,v,u,h,c,d,p,C,j],I={};function O(Q){return b.includes(Q)}var _=function(Q){for(var Z=(0,i.Oc)(),X=Z.act,z=Z.data,Y=z.currentTab,ee=z.video_comm,oe=z.owner,ne=z.occupation,ue=z.connectionStatus,ce=z.address,me=z.visible,xe=z.ring,ve=z.selfie_mode,be=z.homeScreen,we=z.targetAddress,Je=z.voice_mobs,ze=z.phone_video_comm,Le=z.communicating,Be=z.requestsReceived,dt=z.invitesSent,xt=z.imContacts,lt=z.targetAddressName,rt=z.imList,Re=z.feeds,Ke=z.target_feed,Pe=z.latest_news,ke=z.note,Me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Ve=Me.map(function(je){return(0,e.jsx)(a.$n,{content:je,fontSize:2,fluid:!0,onClick:function(){return X("add_hex",{add_hex:je})}},je)}),We=[],He=0;HeX?Z.length>X?Z.slice(0,X)+"...":Z:Q+Z},F=function(Q,Z,X,z){if(X<0||X>z.length)return k(Q,Z)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var Y=k(Q,Z),ee=k(z[X],Z);return Y&&ee?"TinderMessage_Subsequent_Sent":!Y&&!ee?"TinderMessage_Subsequent_Received":Y?"TinderMessage_First_Sent":"TinderMessage_First_Received"},J=function(Q,Z,X,z,Y){return Qz?"average":Q>Y?"bad":"good"},H=function(Q){var Z=(0,i.Oc)(),X=Z.act,z=Z.data,Y=z.aircontents,ee=z.weather,oe="\xB0";return(0,e.jsxs)(a.wn,{title:"Weather",children:[(0,e.jsx)(a.wn,{title:"Current Conditions",children:(0,e.jsx)(a.Ki,{children:(0,s.pb)(function(ne){return ne.val!=="0"||ne.entry==="Pressure"||ne.entry==="Temperature"})(Y).map(function(ne){return(0,e.jsxs)(a.Ki.Item,{label:ne.entry,color:J(ne.val,ne.bad_low,ne.poor_low,ne.poor_high,ne.bad_high),children:[ne.val,(0,n.jT)(ne.units)]},ne.entry)})})}),(0,e.jsx)(a.wn,{title:"Weather Reports",children:!!ee.length&&(0,e.jsx)(a.Ki,{children:ee.map(function(ne){return(0,e.jsx)(a.Ki.Item,{label:ne.Planet,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Time",children:ne.Time}),(0,e.jsx)(a.Ki.Item,{label:"Weather",children:(0,n.Sn)(ne.Weather)}),(0,e.jsxs)(a.Ki.Item,{label:"Temperature",children:["Current: ",ne.Temperature.toFixed()," ",oe,"C | High:"," ",ne.High.toFixed()," ",oe,"C | Low: ",ne.Low.toFixed()," ",oe,"C"]}),(0,e.jsx)(a.Ki.Item,{label:"Wind Direction",children:ne.WindDir}),(0,e.jsx)(a.Ki.Item,{label:"Wind Speed",children:ne.WindSpeed}),(0,e.jsx)(a.Ki.Item,{label:"Forecast",children:(0,n.jT)(ne.Forecast)})]})},ne.Planet)})})||(0,e.jsx)(a.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})}},90734:function(P,y,t){"use strict";t.r(y),t.d(y,{ComputerFabricator:function(){return c}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040);function a(b,I){return I||(I=b.slice(0)),b.raw=I,b}function g(){var b=a(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return b},b}function x(){var b=a(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return x=function(){return b},b}function f(){var b=a(["\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 "]);return f=function(){return b},b}function m(){var b=a(["\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 "]);return m=function(){return b},b}function v(){var b=a(["\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 "]);return v=function(){return b},b}function u(){var b=a(["\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 "]);return u=function(){return b},b}function h(){var b=a(["\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 "]);return h=function(){return b},b}var c=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsx)(i.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),_.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return O("clean_order")}}),_.state===0&&(0,e.jsx)(d,{}),_.state===1&&(0,e.jsx)(p,{}),_.state===2&&(0,e.jsx)(C,{}),_.state===3&&(0,e.jsx)(j,{})]})})},d=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsxs)(r.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsxs)(r.xA,{width:"100%",children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return O("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return O("pick_device",{pick:"2"})}})})]})})]})},p=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsxs)(r.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.az,{bold:!0,color:"good",children:[_.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.m_,{content:(0,s.c1)(g()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_battery===1,onClick:function(){return O("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_battery===2,onClick:function(){return O("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_battery===3,onClick:function(){return O("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.m_,{content:(0,s.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_disk===1,onClick:function(){return O("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_disk===2,onClick:function(){return O("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_disk===3,onClick:function(){return O("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.m_,{content:(0,s.c1)(f()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_netcard===0,onClick:function(){return O("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_netcard===1,onClick:function(){return O("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_netcard===2,onClick:function(){return O("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.m_,{content:(0,s.c1)(m()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_nanoprint===0,onClick:function(){return O("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_nanoprint===1,onClick:function(){return O("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.m_,{content:(0,s.c1)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_card===0,onClick:function(){return O("hw_card",{card:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_card===1,onClick:function(){return O("hw_card",{card:"1"})}})})]}),_.devtype!==2&&(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.m_,{content:(0,s.c1)(u()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_cpu===1,onClick:function(){return O("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_cpu===2,onClick:function(){return O("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.m_,{content:(0,s.c1)(h()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_tesla===0,onClick:function(){return O("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_tesla===1,onClick:function(){return O("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return O("confirm_order")}})]})},C=function(b){var I=(0,n.Oc)(),O=I.act,_=I.data;return(0,e.jsxs)(r.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.az,{inline:!0,color:"good",children:[_.totalprice,"\u20AE"]})]})]})},j=function(b){return(0,e.jsxs)(r.wn,{minHeight:"282px",children:[(0,e.jsx)(r.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},79415:function(P,y,t){"use strict";t.r(y),t.d(y,{CookingAppliance:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.temperature,v=f.optimalTemp,u=f.temperatureEnough,h=f.efficiency,c=f.containersRemovable,d=f.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)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{color:u?"good":"blue",value:m,maxValue:v,children:[(0,e.jsx)(n.zv,{value:m}),"\xB0C / ",v,"\xB0C"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(n.zv,{value:h}),"%"]})]})}),(0,e.jsx)(n.wn,{title:"Containers",children:(0,e.jsx)(n.Ki,{children:d.map(function(p,C){return p.empty?(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(n.$n,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!c,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.z2,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},41608:function(P,y,t){"use strict";t.r(y),t.d(y,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(1568),a=t(68040),g=function(){return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:h.map(function(c){return!!c.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:i.lm.manifest[c.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:c.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"})]}),c.elems.map(function(d){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,s.jT)(d.name)}),(0,e.jsx)(r.XI.Cell,{children:d.rank}),(0,e.jsx)(r.XI.Cell,{children:d.active})]},d.name+d.rank)})]})},c.cat)})})}},93643:function(P,y,t){"use strict";t.r(y),t.d(y,{CrewMonitor:function(){return m},CrewMonitorContent:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=function(h){return h.dead?"Deceased":parseInt(h.stat,10)===1?"Unconscious":"Living"},f=function(h){return h.dead?"red":parseInt(h.stat,10)===1?"orange":"green"},m=function(){var h=function(_){C(_)},c=function(_){I(_)},d=(0,r.useState)(0),p=d[0],C=d[1],j=(0,r.useState)(1),b=j[0],I=j[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(v,{tabIndex:p,zoom:b,onTabIndex:h,onZoom:c})})})},v=function(h){var c=(0,i.Oc)(),d=c.act,p=c.data,C=c.config,j=(0,n.L)([(0,s.Ul)(function(I){return I.name}),(0,s.Ul)(function(I){return I==null?void 0:I.x}),(0,s.Ul)(function(I){return I==null?void 0:I.y}),(0,s.Ul)(function(I){return I==null?void 0:I.realZ})])(p.crewmembers||[]),b;return h.tabIndex===0?b=(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"Name"}),(0,e.jsx)(a.XI.Cell,{children:"Status"}),(0,e.jsx)(a.XI.Cell,{children:"Location"})]}),j.map(function(I){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsxs)(a.XI.Cell,{children:[I.name," (",I.assignment,")"]}),(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.az,{inline:!0,color:f(I),children:x(I)}),I.sensor_type>=2?(0,e.jsxs)(a.az,{inline:!0,children:["(",(0,e.jsx)(a.az,{inline:!0,color:"red",children:I.brute}),"|",(0,e.jsx)(a.az,{inline:!0,color:"orange",children:I.fire}),"|",(0,e.jsx)(a.az,{inline:!0,color:"green",children:I.tox}),"|",(0,e.jsx)(a.az,{inline:!0,color:"blue",children:I.oxy}),")"]}):null]}),(0,e.jsx)(a.XI.Cell,{children:I.sensor_type===3?p.isAI?(0,e.jsx)(a.$n,{fluid:!0,icon:"location-arrow",content:I.area+" ("+I.x+", "+I.y+")",onClick:function(){return d("track",{track:I.ref})}}):I.area+" ("+I.x+", "+I.y+", "+I.z+")":"Not Available"})]},I.ref)})]}):h.tabIndex===1?b=(0,e.jsx)(u,{zoom:h.zoom,onZoom:h.onZoom}):b="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:h.tabIndex===0,onClick:function(){return h.onTabIndex(0)},children:[(0,e.jsx)(a.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(a.tU.Tab,{selected:h.tabIndex===1,onClick:function(){return h.onTabIndex(1)},children:[(0,e.jsx)(a.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(a.az,{m:2,children:b})]})},u=function(h){var c=(0,i.Oc)(),d=c.act,p=c.config,C=c.data;return(0,e.jsx)(a.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(a.tx,{zoomScale:C.zoomScale,onZoom:function(j){return h.onZoom(j)},children:C.crewmembers.filter(function(j){return j.sensor_type===3&&~~j.realZ===~~p.mapZLevel}).map(function(j){return(0,e.jsx)(a.tx.Marker,{x:j.x,y:j.y,zoom:h.zoom,icon:"circle",tooltip:j.name+" ("+j.assignment+")",color:f(j)},j.ref)})})})}},84097:function(P,y,t){"use strict";t.r(y),t.d(y,{Cryo:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(m){return(0,e.jsx)(r.p8,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.isOperating,d=h.hasOccupant,p=h.occupant,C=p===void 0?[]:p,j=h.cellTemperature,b=h.cellTemperatureStatus,I=h.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{icon:"user-slash",onClick:function(){return u("ejectOccupant")},disabled:!d,children:"Eject"}),children:d?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(n.zv,{value:Math.round(C.health)})})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[C.stat][0],children:a[C.stat][1]}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(n.zv,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(n.Ki.Divider,{}),i.map(function(O){return(0,e.jsx)(n.Ki.Item,{label:O.label,children:(0,e.jsx)(n.z2,{value:C[O.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(n.zv,{value:Math.round(C[O.type])})})},O.id)})]}):(0,e.jsx)(n.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(n.wn,{title:"Cell",buttons:(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return u("ejectBeaker")},disabled:!I,children:"Eject Beaker"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return u(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",color:b,children:[(0,e.jsx)(n.zv,{value:j})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",children:(0,e.jsx)(f,{})})]})})]})},f=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.isBeakerLoaded,d=h.beakerLabel,p=h.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[d||(0,e.jsx)(n.az,{color:"average",children:"No label"}),(0,e.jsx)(n.az,{color:!p&&"bad",children:p?(0,e.jsx)(n.zv,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded"})}},38210:function(P,y,t){"use strict";t.r(y),t.d(y,{CryoStorage:function(){return a},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(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:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(g,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:h.length&&h.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",buttons:(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("allitems")},children:"Claim All"}),children:h.length&&h.map(function(c){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("item",{ref:c.ref})},children:c.name},c.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},52102:function(P,y,t){"use strict";t.r(y),t.d(y,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=t(38210),g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.real_name,c=u.allow_items,d=(0,s.useState)(0),p=d[0],C=d[1];return(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:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(a.CryoStorageCrew,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:h.length&&h.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},84909:function(P,y,t){"use strict";t.r(y),t.d(y,{DNAForensics:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.scan_progress,v=f.scanning,u=f.bloodsamp,h=f.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:v,disabled:!u,icon:"power-off",onClick:function(){return x("scanItem")},children:v?"Halt Scan":"Begin Scan"}),(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(n.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:m,maxValue:100})})})}),(0,e.jsx)(n.wn,{title:"Blood Sample",children:u&&(0,e.jsxs)(n.az,{children:[u,(0,e.jsx)(n.az,{color:"label",children:h})]})||(0,e.jsx)(n.az,{color:"bad",children:"No blood sample inserted."})})]})})}},13732:function(P,y,t){"use strict";t.r(y),t.d(y,{DNAModifier:function(){return f}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(5425),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],f=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.irradiating,R=D.dnaBlockSize,K=D.occupant,N=!K.isViableSubject||!K.uniqueIdentity||!K.structuralEnzymes,k;return A&&(k=(0,e.jsx)(b,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:870,children:[(0,e.jsx)(i.ComplexModal,{}),k,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(m,{isDNAInvalid:N}),(0,e.jsx)(v,{isDNAInvalid:N})]})]})},m=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.locked,R=D.hasOccupant,K=D.occupant;return(0,e.jsx)(n.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(n.$n,{disabled:!R,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Engaged":"Disengaged",onClick:function(){return M("toggleLock")}}),(0,e.jsx)(n.$n,{disabled:!R||A,icon:"user-slash",content:"Eject",onClick:function(){return M("ejectOccupant")}})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:K.minHealth,max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsx)(n.Ki.Divider,{})]})}),O.isDNAInvalid?(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.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)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Radiation",children:(0,e.jsx)(n.z2,{min:"0",max:"100",value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(n.Ki.Item,{label:"Unique Enzymes",children:D.occupant.uniqueEnzymes?D.occupant.uniqueEnzymes:(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(n.az,{color:"label",children:"Cell unoccupied."})})},v=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.selectedMenuKey,R=D.hasOccupant,K=D.occupant;if(R){if(O.isDNAInvalid)return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var N;return A==="ui"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(c,{})]}):A==="se"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{})]}):A==="buffer"?N=(0,e.jsx)(d,{}):A==="rejuvenators"&&(N=(0,e.jsx)(j,{})),(0,e.jsxs)(n.wn,{flexGrow:"1",children:[(0,e.jsx)(n.tU,{children:g.map(function(k,V){return(0,e.jsxs)(n.tU.Tab,{selected:A===k[0],onClick:function(){return M("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(n.In,{name:k[2]}),k[1]]},V)})}),N]})},u=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.selectedUIBlock,R=D.selectedUISubBlock,K=D.selectedUITarget,N=D.dnaBlockSize,k=D.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(I,{dnaString:k.uniqueIdentity,selectedBlock:A,selectedSubblock:R,blockSize:N,action:"selectUIBlock"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:K,format:function(V){return V.toString(16).toUpperCase()},ml:"0",onChange:function(V,F){return M("changeUITarget",{value:F})}})})}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return M("pulseUIRadiation")}})]})},h=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.selectedSEBlock,R=D.selectedSESubBlock,K=D.dnaBlockSize,N=D.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(I,{dnaString:N.structuralEnzymes,selectedBlock:A,selectedSubblock:R,blockSize:K,action:"selectSEBlock"}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",onClick:function(){return M("pulseSERadiation")}})]})},c=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.radiationIntensity,R=D.radiationDuration;return(0,e.jsxs)(n.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Intensity",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(K,N){return M("radiationIntensity",{value:N})}})}),(0,e.jsx)(n.Ki.Item,{label:"Duration",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(K,N){return M("radiationDuration",{value:N})}})})]}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return M("pulseRadiation")}})]})},d=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.buffers,R=A.map(function(K,N){return(0,e.jsx)(p,{id:N+1,name:"Buffer "+(N+1),buffer:K},N)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=O.id,R=O.name,K=O.buffer,N=D.isInjectorReady,k=R+(K.data?" - "+K.label:"");return(0,e.jsx)(n.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(n.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!K.data,icon:"trash",content:"Clear",onClick:function(){return M("bufferOption",{option:"clear",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data,icon:"pen",content:"Rename",onClick:function(){return M("bufferOption",{option:"changeLabel",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data||!D.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return M("bufferOption",{option:"saveDisk",id:A})}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Write",children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return M("bufferOption",{option:"saveUI",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return M("bufferOption",{option:"saveUIAndUE",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return M("bufferOption",{option:"saveSE",id:A})}}),(0,e.jsx)(n.$n,{disabled:!D.hasDisk||!D.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return M("bufferOption",{option:"loadDisk",id:A})}})]}),!!K.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Subject",children:K.owner||(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[K.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!K.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Injector",mb:"0",onClick:function(){return M("bufferOption",{option:"createInjector",id:A})}}),(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Block Injector",mb:"0",onClick:function(){return M("bufferOption",{option:"createInjector",id:A,block:1})}}),(0,e.jsx)(n.$n,{icon:"user",content:"Subject",mb:"0",onClick:function(){return M("bufferOption",{option:"transfer",id:A})}})]})]})]}),!K.data&&(0,e.jsx)(n.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.hasDisk,R=D.disk;return(0,e.jsx)(n.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!A||!R.data,icon:"trash",content:"Wipe",onClick:function(){return M("wipeDisk")}}),(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return M("ejectDisk")}})]}),children:A?R.data?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(n.Ki.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(n.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(n.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},j=function(O){var _=(0,s.Oc)(),M=_.act,D=_.data,A=D.isBeakerLoaded,R=D.beakerVolume,K=D.beakerLabel;return(0,e.jsx)(n.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return M("ejectBeaker")}}),children:A?(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Inject",children:[x.map(function(N,k){return(0,e.jsx)(n.$n,{disabled:N>R,icon:"syringe",content:N,onClick:function(){return M("injectRejuvenators",{amount:N})}},k)}),(0,e.jsx)(n.$n,{disabled:R<=0,icon:"syringe",content:"All",onClick:function(){return M("injectRejuvenators",{amount:R})}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(n.az,{mb:"0.5rem",children:K||"No label"}),R?(0,e.jsxs)(n.az,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(n.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},b=function(O){return(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(n.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(n.In,{name:"radiation"})]})}),(0,e.jsx)(n.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",O.duration," second",O.duration===1?"":"s"]})})]})},I=function(O){for(var _=function(Z){for(var X=function(oe){var ne=oe+1;Y.push((0,e.jsx)(n.$n,{selected:K===z&&N===ne,content:F[Z+oe],mb:"0",onClick:function(){return D(V,{block:z,subblock:ne})}}))},z=Z/k+1,Y=[],ee=0;ee1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(n.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(n.wn,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(n.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(n.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),h.map(function(C){return(0,e.jsx)(n.$n,{content:C.stage,icon:"exchange-alt",onClick:function(){return m("grab",{grab:C.reference})}},C.stage)}),(0,e.jsx)(n.$n,{content:"Species",icon:"exchange-alt",onClick:function(){return m("affected_species")}})]})]})]})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.dish_inserted,h=v.buffer,c=v.species_buffer,d=v.effects,p=v.info,C=v.growth,j=v.affected_species,b=v.busy;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Memory Buffer",children:h?(0,e.jsxs)(n.az,{children:[h.name," (",h.stage,")"]}):c?(0,e.jsx)(n.az,{children:c}):"Empty"})}),(0,e.jsx)(n.$n,{mt:1,icon:"save",content:"Save To Disk",disabled:!h&&!c,onClick:function(){return m("disk")}}),h?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #1",disabled:h.stage>1,onClick:function(){return m("splice",{splice:1})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #2",disabled:h.stage>2,onClick:function(){return m("splice",{splice:2})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #3",disabled:h.stage>3,onClick:function(){return m("splice",{splice:3})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #4",disabled:h.stage>4,onClick:function(){return m("splice",{splice:4})}})]}):c?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pen",content:"Splice Species",disabled:!c||p,onClick:function(){return m("splice",{splice:5})}})}):null]})}},44421:function(P,y,t){"use strict";t.r(y),t.d(y,{DishIncubator:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(68040),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.on,u=m.system_in_use,h=m.food_supply,c=m.radiation,d=m.growth,p=m.toxins,C=m.chemicals_inserted,j=m.can_breed_virus,b=m.chemical_volume,I=m.max_chemical_volume,O=m.dish_inserted,_=m.blood_already_infected,M=m.virus,D=m.analysed,A=m.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)(n.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"On":"Off",onClick:function(){return f("power")}}),children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return f("rad")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!u,onClick:function(){return f("flush")}})})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:h})}),(0,e.jsx)(n.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:100,color:c>=50?"bad":d>=25?"average":"good",value:c,children:[(0,r.qQ)(c*1e4)," \xB5Sv"]})}),(0,e.jsx)(n.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(n.wn,{title:j?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eject",content:"Eject "+(j?"Vial":"Chemicals"),disabled:!C,onClick:function(){return f("ejectchem")}}),(0,e.jsx)(n.$n,{icon:"virus",content:"Breed Virus",disabled:!j,onClick:function(){return f("virus")}})]}),children:C&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:I,value:b,children:[b,"/",I]})}),(0,e.jsxs)(n.Ki.Item,{label:"Breeding Environment",color:j?"good":"average",children:[O?j?"Suitable":"No hemolytic samples detected":"N/A",_?(0,e.jsx)(n.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(n.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(n.wn,{title:"Virus Dish",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Dish",disabled:!O,onClick:function(){return f("ejectdish")}}),children:O?M?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:d})}),(0,e.jsx)(n.Ki.Item,{label:"Infection Rate",children:D?A:"Unknown."})]}):(0,e.jsx)(n.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(n.az,{color:"average",children:"No dish loaded."})})]})})}},26598:function(P,y,t){"use strict";t.r(y),t.d(y,{DisposalBin:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.mode,v=f.pressure,u=f.isAI,h=f.panel_open,c=f.flushing,d,p;return m===2?(d="good",p="Ready"):m<=0?(d="bad",p="N/A"):m===1?(d="average",p="Pressurizing"):(d="average",p="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:d,children:p}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:v,minValue:0,maxValue:100})})]}),(0,e.jsx)(n.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Handle",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:u||h,content:"Disengaged",selected:c?null:"selected",onClick:function(){return x("disengageHandle")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:u||h,content:"Engaged",selected:c?"selected":null,onClick:function(){return x("engageHandle")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:m===-1,content:"Off",selected:m?null:"selected",onClick:function(){return x("pumpOff")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:m===-1,content:"On",selected:m?"selected":null,onClick:function(){return x("pumpOn")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:u,content:"Eject Contents",onClick:function(){return x("eject")}})})]})]})})})}},26763:function(P,y,t){"use strict";t.r(y),t.d(y,{DroneConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.drones,v=f.areas,u=f.selected_area,h=f.fabricator,c=f.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(n.$n,{disabled:!h,selected:c,icon:"power-off",content:c?"Enabled":"Disabled",onClick:function(){return x("toggle_fab")}}),children:h?(0,e.jsx)(n.az,{color:"good",children:"Linked."}):(0,e.jsxs)(n.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(n.$n,{icon:"sync",content:"Search for Fabricator",onClick:function(){return x("search_fab")}})]})}),(0,e.jsxs)(n.wn,{title:"Request Drone",children:[(0,e.jsx)(n.ms,{options:v?v.sort():null,selected:u,width:"100%",onSelected:function(d){return x("set_dcall_area",{area:d})}}),(0,e.jsx)(n.$n,{icon:"share-square",content:"Send Ping",onClick:function(){return x("ping")}})]}),(0,e.jsx)(n.wn,{title:"Maintenance Units",children:m&&m.length?(0,e.jsx)(n.Ki,{children:m.map(function(d){return(0,e.jsx)(n.Ki.Item,{label:d.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Resync",onClick:function(){return x("resync",{ref:d.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return x("shutdown",{ref:d.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:d.loc}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[d.charge," / ",d.maxCharge]}),(0,e.jsx)(n.Ki.Item,{label:"Active",children:d.active?"Yes":"No"})]})},d.name)})}):(0,e.jsx)(n.az,{color:"bad",children:"No drones detected."})})]})})}},74680:function(P,y,t){"use strict";t.r(y),t.d(y,{EmbeddedController:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(47868),a=(0,i.h)("fuck"),g={},x=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.internalTemplateName,k=g[N];if(!k)throw Error("Unable to find Component for template name: "+N);return(0,e.jsx)(r.p8,{width:450,height:340,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(k,{})})})},f=function(D){var A=D.bars;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsx)(n.Ki,{children:A.map(function(R){return(0,e.jsx)(n.Ki.Item,{label:R.label,children:(0,e.jsx)(n.z2,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},m=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act,N=!0;R.interior_status&&R.interior_status.state==="open"?N=!1:R.external_pressure&&R.chamber_pressure&&(N=!(Math.abs(R.external_pressure-R.chamber_pressure)>5));var k=!0;return R.exterior_status&&R.exterior_status.state==="open"?k=!1:R.internal_pressure&&R.chamber_pressure&&(k=!(Math.abs(R.internal_pressure-R.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return K("cycle_ext")}}),(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return K("cycle_int")}})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return K("force_ext")}}),(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return K("force_int")}})]})]})},v=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(u,{}),undocking:(0,e.jsx)(n.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(n.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?k=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?k=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(k=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:k})]})})},u=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act;return R.armed?(0,e.jsx)(n.az,{color:"average",children:"ARMED"}):(0,e.jsx)(n.az,{color:"good",children:"SYSTEMS OK"})},h=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:!R.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return K("force_door")}}),(0,e.jsx)(n.$n,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return K("toggle_override")}})]})},c=function(D){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(n.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(n.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(n.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"NOT IN USE"})},k=N[R.docking_status];return R.override_enabled&&(k=(0,e.jsxs)(n.az,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},d=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=function(V){return V<80||V>120?"bad":V<95||V>110?"average":"good"},k=[{minValue:0,maxValue:202,value:K.external_pressure,label:"External Pressure",textValue:K.external_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.internal_pressure,label:"Internal Pressure",textValue:K.internal_pressure+" kPa",color:N}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:k}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Purge",onClick:function(){return R("purge")}}),(0,e.jsx)(n.$n,{icon:"lock-open",content:"Secure",onClick:function(){return R("secure")}})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleAdvanced=d;var p=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleSimple=p;var C=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}},{minValue:0,maxValue:100,value:K.chamber_phoron,label:"Chamber Phoron",textValue:K.chamber_phoron+" mol",color:function(k){return k>5?"bad":k>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsolePhoron=C;var j=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Dock",buttons:K.airlock_disabled||K.override_enabled?(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}}):null,children:(0,e.jsx)(c,{})}),(0,e.jsx)(f,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleDocking=j;var b=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return K.exterior_status.state==="open"?N=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):K.exterior_status.lock==="unlocked"?N=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):K.exterior_status.lock==="locked"&&(N=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.override_enabled,content:"Force exterior door",onClick:function(){return R("force_door")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=b;var I=function(D){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Docking Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(n.Ki,{children:A.airlocks.map(function(R){return(0,e.jsx)(n.Ki.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(n.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(n.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=I;var O=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.interior_status.state==="open"||K.exterior_status.state==="closed",k=K.exterior_status.state==="open"||K.interior_status.state==="closed";return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:N?"arrow-left":"exclamation-triangle",content:N?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){R(N?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(n.$n,{icon:k?"arrow-right":"exclamation-triangle",content:k?"Cycle To Interior":"Lock Interior Door",onClick:function(){R(k?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Exterior Door Status",children:K.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Interior Door Status",children:K.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=O;var _=function(D){var A=(0,s.Oc)(),R=A.act,K=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:K.armed,color:K.armed?"bad":"average",content:"ARM",onClick:function(){return R("manual_arm")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return R("force_launch")}})]})]})]})};g.EscapePodConsole=_;var M=function(D){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsx)(h,{})})]})};g.EscapePodBerthConsole=M},37624:function(P,y,t){"use strict";t.r(y),t.d(y,{DisplayDetails:function(){return x},EntityNarrate:function(){return a},EntitySelection:function(){return g},ModeSelector:function(){return f},NarrationInput:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(v){var u=(0,n.Oc)(),h=u.act,c=u.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)(x,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(f,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(m,{})})]})})})]})})})})},g=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.selection_mode,p=c.multi_id_selection,C=c.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:d,fill:!0,content:"Multi-Selection",onClick:function(){return h("change_mode_multi")}}),children:(0,e.jsx)(r.tU,{vertical:!0,children:C.map(function(j){return(0,e.jsx)(r.tU.Tab,{selected:p.includes(j),onClick:function(){return h("select_entity",{id_selected:j})},children:(0,e.jsx)(r.az,{inline:!0,children:j})},j)})})})})})},x=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.selection_mode,p=c.number_mob_selected,C=c.selected_id,j=c.selected_name,b=c.selected_type;return d?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",p]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",b," ",(0,e.jsx)("br",{})]})},f=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.privacy_select,p=c.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:d,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(d?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:d?"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:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=(0,s.useState)(""),p=d[0],C=d[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return h("narrate",{message:p})},content:"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(j,b){return C(b)},value:p||""})})})})}},36907:function(P,y,t){"use strict";t.r(y),t.d(y,{ExonetNode:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.allowPDAs,u=f.allowCommunicators,h=f.allowNewscasters,c=f.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,content:"Power "+(m?"On":"Off"),onClick:function(){return x("toggle_power")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"Open":"Closed",onClick:function(){return x("toggle_PDA_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:u,content:u?"Open":"Closed",onClick:function(){return x("toggle_communicator_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,content:h?"Open":"Closed",onClick:function(){return x("toggle_newscaster_port")}})})]})}),(0,e.jsx)(n.wn,{title:"Logging",children:(0,e.jsxs)(n.so,{wrap:"wrap",children:[c.map(function(d,p){return(0,e.jsx)(n.so.Item,{m:"2px",basis:"49%",grow:p%2,children:d},p)}),!c||c.length===0?(0,e.jsx)(n.az,{color:"average",children:"No logs found."}):null]})})]})})}},47926:function(P,y,t){"use strict";t.r(y),t.d(y,{ExosuitFabricator:function(){return A},Materials:function(){return K}});var e=t(88095),s=t(11358),n=t(5229),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),f=t(24158),m=t(68040);function v(X,z){(z==null||z>X.length)&&(z=X.length);for(var Y=0,ee=new Array(z);Y=X.length?{done:!0}:{done:!1,value:X[ee++]}}}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={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"},d=0,p=1,C=2,j,b=(j={},j[d]=!1,j[p]="average",j[C]="bad",j),I=function(X){var z={};return X.forEach(function(Y){z[Y.name]=Y.amount}),z},O=function(X,z,Y){return X>Y?{color:C,deficit:X-Y}:z>Y?{color:p,deficit:X}:X+z>Y?{color:p,deficit:X+z-Y}:{color:d,deficit:0}},_=function(X,z,Y){var ee={textColor:d};return Object.keys(Y.cost).forEach(function(oe){ee[oe]=O(Y.cost[oe],z[oe],X[oe]),ee[oe].color>ee.textColor&&(ee.textColor=ee[oe].color)}),ee},M=function(X,z){var Y={},ee={},oe={},ne={};return z.forEach(function(ue,ce){ne[ce]=d,Object.keys(ue.cost).forEach(function(me){Y[me]=Y[me]||0,oe[me]=oe[me]||0,ee[me]=O(ue.cost[me],Y[me],X[me]),ee[me].color!==d?ne[ce]1&&ne0});return ue.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:ue.map(function(ce){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(N,{name:ce.name,amount:ce.amount,formatsi:!0}),!oe&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:ce})})]},ce.name)||null})})},N=function(X){var z=X.name,Y=X.amount,ee=X.formatsi,oe=X.formatmoney,ne=X.color,ue=X.style,ce="0";return Y<1&&Y>0?ce=(0,n.Mg)(Y,2):ee?ce=(0,f.QL)(Y,0):oe?ce=(0,f.up)(Y):ce=Y,(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,i.Sn)(z),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",c[z]]),position:"relative",style:ue})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:ne,style:{"text-align":"center"},children:ce})})]})},k=function(X){var z=(0,g.Oc)().data,Y=z.partSets||[],ee=z.buildableParts||{},oe=(0,g.QY)("part_tab",Y.length?ee[0]:""),ne=oe[0],ue=oe[1];return(0,e.jsx)(x.tU,{vertical:!0,children:Y.map(function(ce){return!!ee[ce]&&(0,e.jsx)(x.tU.Tab,{selected:ce===ne,disabled:!ee[ce],onClick:function(){return ue(ce)},children:ce},ce)})})},V=function(X){var z=(0,g.Oc)().data,Y=function(Le){for(var Be=h(Le),dt;!(dt=Be()).done;){var xt=dt.value;if(oe[xt])return xt}return null},ee=z.partSets||[],oe=z.buildableParts||[],ne=X.queueMaterials,ue=X.materials,ce=(0,g.QY)("part_tab",Y(ee)),me=ce[0],xe=ce[1],ve=(0,g.QY)("search_text",""),be=ve[0],we=ve[1];if(!me||!oe[me]){var Je=Y(ee);if(Je)xe(Je);else return}var ze;return be?(ze=[],D(be,oe).forEach(function(Le){Le.format=_(ue,ne,Le),ze.push(Le)})):(ze={Parts:[]},oe[me].forEach(function(Le){if(Le.format=_(ue,ne,Le),!Le.subCategory){ze.Parts.push(Le);return}Le.subCategory in ze||(ze[Le.subCategory]=[]),ze[Le.subCategory].push(Le)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{mr:1,children:(0,e.jsx)(x.In,{name:"search"})}),(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.pd,{fluid:!0,placeholder:"Search for...",value:be,onInput:function(Le,Be){return we(Be)}})})]})}),!!be&&(0,e.jsx)(F,{name:"Search Results",parts:ze,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ze).map(function(Le){return(0,e.jsx)(F,{name:Le,parts:ze[Le]},Le)})]})},F=function(X){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=ee.buildingPart,ne=X.parts,ue=X.name,ce=X.forceShow,me=X.placeholder,xe=(0,g.QY)("display_mats",!1),ve=xe[0];return(!!ne.length||ce)&&(0,e.jsxs)(x.wn,{title:ue,buttons:(0,e.jsx)(x.$n,{disabled:!ne.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Y("add_queue_set",{part_list:ne.map(function(be){return be.id})})}}),children:[!ne.length&&me,ne.map(function(be){return(0,e.jsxs)(a.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:oe||be.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Y("build_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Y("add_queue_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:b[be.format.textColor],children:be.name})}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+be.printTime+"s. "+(be.desc||""),tooltipPosition:"left"})})]}),ve&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(be.cost).map(function(we){return(0,e.jsx)(x.so.Item,{width:"50px",color:b[be.format[we].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:we,amount:be.cost[we]})},we)})})]},be.name)})]})},J=function(X){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=ee.isProcessingQueue,ne=ee.queue||[],ue=X.queueMaterials,ce=X.missingMaterials,me=X.textColors;return(0,e.jsxs)(x.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.so.Item,{height:0,grow:1,children:(0,e.jsx)(x.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.$n.Confirm,{disabled:!ne.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Y("clear_queue")}}),!!oe&&(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Stop",icon:"stop",onClick:function(){return Y("stop_queue")}})||(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Build Queue",icon:"play",onClick:function(){return Y("build_queue")}})]}),children:(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Z,{})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Q,{textColors:me})})]})})}),!!ne.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(H,{queueMaterials:ue,missingMaterials:ce})})})]})},H=function(X){var z=X.queueMaterials,Y=X.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(z).map(function(ee){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:ee,amount:z[ee]}),!!Y[ee]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,f.up)(Y[ee])})]},ee)})})},Q=function(X){var z=(0,g.Oc)(),Y=z.act,ee=z.data,oe=X.textColors,ne=ee.queue||[];return ne.length?ne.map(function(ue,ce){return(0,e.jsx)(x.az,{children:(0,e.jsxs)(x.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(x.so.Item,{basis:"content",children:(0,e.jsx)(x.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Y("del_queue_part",{index:ce+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:b[oe[ce]],children:ue.name})})]})},ue.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function(X){var z=(0,g.Oc)().data,Y=z.buildingPart,ee=z.storedPart;if(ee){var oe=ee.name;return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:oe}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Y){var ne=Y.name,ue=Y.duration,ce=Y.printTime,me=Math.ceil(ue/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:ce,value:ue,children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:ne}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:me>=0&&me+"s"||"Dispensing..."})]})})})}}},83151:function(P,y,t){"use strict";t.r(y),t.d(y,{Farmbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.locked,u=f.tank,h=f.tankVolume,c=f.tankMaxVolume,d=f.waters_trays,p=f.refills_water,C=f.uproots_weeds,j=f.replaces_nutriment,b=f.collects_produce,I=f.removes_dead;return(0,e.jsx)(r.p8,{width:450,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water Tank",children:u&&(0,e.jsxs)(n.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsxs)(n.wn,{title:"Behavior Controls",children:[(0,e.jsx)(n.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water plants",children:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("water")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(n.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(n.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("replacenutri")},children:j?"Yes":"No"})})})})]})||null]})})}},60381:function(P,y,t){"use strict";t.r(y),t.d(y,{Fax:function(){return g},FaxContent:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(71451),a=t(1887),g=function(v){var u=(0,s.Oc)().data,h=u.authenticated,c=u.copyItem,d=340;return c&&(d=358),h?(0,e.jsx)(r.p8,{width:600,height:d,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(i.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.p8,{width:600,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(a.LoginScreen,{machineType:"Fax"})]})})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.bossName,p=c.copyItem,C=c.cooldown,j=c.destination,b=c.adminDepartments,I=new Set(b);return(0,e.jsxs)(n.wn,{children:[!!C&&(0,e.jsx)(n.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Network",children:[d," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return h("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(n.Ki.Item,{label:"Sending To",children:(0,e.jsx)(n.$n,{icon:"map-marker-alt",content:j,onClick:function(){return h("dept")}})})]}),(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return h("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(n.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(m,{})]})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.copyItem;return d?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return h("remove")},content:"Remove Item"})}):null},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.adminDepartments,p=c.destination,C=c.copyItem,j=new Set(d),b="1rem";return C&&(b="1.5rem"),!C||C&&j.has(p)?(0,e.jsxs)(n.az,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{mt:"1.5rem",children:(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return h("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},90646:function(P,y,t){"use strict";t.r(y),t.d(y,{FileCabinet:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.contents,u=(0,s.Ul)(function(h){return h.name})(v||[]);return(0,e.jsx)(i.p8,{width:350,height:300,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:u.map(function(h){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",content:h.name,onClick:function(){return f("retrieve",{ref:h.ref})}},h.ref)})})})})}},67747:function(P,y,t){"use strict";t.r(y),t.d(y,{Floorbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.open,u=f.locked,h=f.vocal,c=f.amount,d=f.possible_bmode,p=f.improvefloors,C=f.eattiles,j=f.maketiles,b=f.bmode;return(0,e.jsx)(r.p8,{width:390,height:310,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("start")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(n.zv,{value:c})}),(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("vocal")},children:h?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return x("make")},children:j?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(n.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:b,options:d,onSelected:function(I){return x("bridgemode",{dir:I})}})})]})})||null]})})}},79697:function(P,y,t){"use strict";t.r(y),t.d(y,{GasPump:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.pressure_set,u=f.last_flow_rate,h=f.last_power_draw,c=f.max_power_draw;return(0,e.jsx)(r.p8,{width:470,height:290,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:u/10})," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Load",children:(0,e.jsx)(n.z2,{value:h,minValue:0,maxValue:c,color:h=100?d="Running":!m&&v>0&&(d="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:m?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Breaker Setting",children:m?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",children:["Generator ",d]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Status",children:[v,"%"]})]})})})})}},4171:function(P,y,t){"use strict";t.r(y),t.d(y,{GuestPass:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.access,u=m.area,h=m.giver,c=m.giveName,d=m.reason,p=m.duration,C=m.mode,j=m.log,b=m.uid;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return f("mode",{mode:0})}}),children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",onClick:function(){return f("print")},fluid:!0,mb:1}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:j.length&&j.map(function(I){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I}},I)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+b,buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",onClick:function(){return f("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{content:h||"Insert ID",onClick:function(){return f("id")}})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{content:c,onClick:function(){return f("giv_name")}})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{content:d,onClick:function(){return f("reason")}})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{content:p,onClick:function(){return f("duration")}})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return f("issue")}}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,s.Ul)(function(I){return I.area_name})(u).map(function(I){return(0,e.jsx)(r.$n.Checkbox,{checked:I.on,content:I.area_name,onClick:function(){return f("access",{access:I.area})}},I.area)})})]})})})}},92753:function(P,y,t){"use strict";t.r(y),t.d(y,{GyrotronControl:function(){return i},GyrotronControlContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.gyros;return(0,e.jsx)(n.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(n.XI.Cell,{children:"Strength"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{gyro:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(h,c){return f("set_rate",{gyro:u.ref,rate:c})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.active&&"yellow",value:u.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(h,c){return f("set_str",{gyro:u.ref,str:c})}})})]},u.name)})]})})}},75825:function(P,y,t){"use strict";t.r(y),t.d(y,{Holodeck:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.supportedPrograms,v=f.restrictedPrograms,u=f.currentProgram,h=f.isSilicon,c=f.safetyDisabled,d=f.emagged,p=f.gravity,C=m;return c&&(C=C.concat(v)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:C.map(function(j){return(0,e.jsx)(n.$n,{color:v.indexOf(j)!==-1?"bad":null,icon:"eye",content:j,selected:u===j,fluid:!0,onClick:function(){return x("program",{program:j})}},j)})}),!!h&&(0,e.jsx)(n.wn,{title:"Override",children:(0,e.jsxs)(n.$n,{icon:"exclamation-triangle",fluid:!0,disabled:d,color:c?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!d&&"Error, unable to control. ",c?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:c?(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(n.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},79258:function(P,y,t){"use strict";t.r(y),t.d(y,{ICAssembly:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.total_parts,c=u.max_components,d=u.total_complexity,p=u.max_complexity,C=u.battery_charge,j=u.battery_max,b=u.net_power,I=u.unremovable_circuits,O=u.removable_circuits;return(0,e.jsx)(a.p8,{width:600,height:380,children:(0,e.jsxs)(a.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.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:h/c,maxValue:1,children:[h," / ",c," (",(0,s.LI)(h/c*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:d/p,maxValue:1,children:[d," / ",p," (",(0,s.LI)(d/p*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:C&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:C/j,maxValue:1,children:[C," / ",j," (",(0,s.LI)(C/j*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:b===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:b,format:function(_){return"-"+(0,i.d5)(Math.abs(_))+"/s"}})})]})}),I.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:I})||null,O.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:O})||null]})})},x=function(f){var m=(0,n.Oc)().act,v=f.title,u=f.circuits;return(0,e.jsx)(r.wn,{title:v,children:(0,e.jsx)(r.Ki,{children:u.map(function(h){return(0,e.jsxs)(r.Ki.Item,{label:h.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("open_circuit",{ref:h.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("rename_circuit",{ref:h.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("scan_circuit",{ref:h.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("remove_circuit",{ref:h.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("bottom_circuit",{ref:h.ref})},children:"Move to Bottom"})]},h.ref)})})})}},36585:function(P,y,t){"use strict";t.r(y),t.d(y,{ICCircuit:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.name,d=h.desc,p=h.displayed_name,C=h.removable,j=h.complexity,b=h.power_draw_idle,I=h.power_draw_per_use,O=h.extended_desc,_=h.inputs,M=h.outputs,D=h.activators;return(0,e.jsx)(a.p8,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(a.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 u("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return u("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return u("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:j}),b&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,i.d5)(b)})||null,I&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,i.d5)(I)})||null]}),O]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(x,{list:_})})})||null,(0,e.jsx)(r.so.Item,{basis:_.length&&M.length?"33%":_.length||M.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:p,mb:1,children:(0,e.jsx)(r.az,{children:d})})}),M.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:M})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:D.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return u("pin_name",{pin:A.ref})},children:A.pulse_out?"":""}),(0,e.jsx)(f,{pin:A})]},A.name)})})]})]})})},x=function(m){var v=(0,n.Oc)().act,u=m.list;return u.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return v("pin_name",{pin:h.ref})},children:[(0,s.jT)(h.type),": ",h.name]}),(0,e.jsx)(r.$n,{onClick:function(){return v("pin_data",{pin:h.ref})},children:h.data}),(0,e.jsx)(f,{pin:h})]},h.ref)})},f=function(m){var v=(0,n.Oc)().act,u=m.pin;return u.linked.map(function(h){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return v("pin_unwire",{pin:u.ref,link:h.ref})},children:h.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return v("examine",{ref:h.holder_ref})},children:h.holder_name})]},h.ref)})}},43040:function(P,y,t){"use strict";t.r(y),t.d(y,{ICDetailer:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.detail_color,u=m.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(u).map(function(h,c){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,s.Sn)(h),tooltipPosition:c%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return f("change_color",{color:h})},style:u[h]===v?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:u[h]},h)})})})})}},93204:function(P,y,t){"use strict";t.r(y),t.d(y,{ICPrinter:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.metal,c=u.max_metal,d=u.metal_per_sheet,p=u.debug,C=u.upgraded,j=u.can_clone,b=u.assembly_to_clone,I=u.categories;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:h,maxValue:c,children:[h/d," / ",c/d," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:C?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:j?"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)(x,{})]})})},g=function(f,m){return!(!f.can_build||f.cost>m.metal)},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.categories,c=u.debug,d=(0,n.QY)("categoryTarget",null),p=d[0],C=d[1],j=(0,s.pb)(function(b){return b.name===p})(h)[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,s.Ul)(function(b){return b.name})(h).map(function(b){return(0,e.jsx)(r.tU.Tab,{selected:p===b.name,onClick:function(){return C(b.name)},children:b.name},b.name)})})}),(0,e.jsx)(r.BJ.Item,{children:j&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,s.Ul)(function(b){return b.name})(j.items).map(function(b){return(0,e.jsx)(r.Ki.Item,{label:b.name,labelColor:b.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(b,u),icon:"print",onClick:function(){return v("build",{build:b.path})},children:"Print"}),children:b.desc},b.name)})})})||"No category selected."})]})})}},7627:function(P,y,t){"use strict";t.r(y),t.d(y,{IDCard:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(89863),a=function(g){var x=(0,s.Oc)().data,f=x.registered_name,m=x.sex,v=x.species,u=x.age,h=x.assignment,c=x.fingerprint_hash,d=x.blood_type,p=x.dna_hash,C=x.photo_front,j=[{name:"Sex",val:m},{name:"Species",val:v},{name:"Age",val:u},{name:"Blood Type",val:d},{name:"Fingerprint",val:c},{name:"DNA Hash",val:p}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(n.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.jsx)("img",{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(n.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(n.so.Item,{basis:0,grow:1,children:(0,e.jsx)(n.Ki,{children:j.map(function(b){return(0,e.jsx)(n.Ki.Item,{label:b.name,children:b.val},b.name)})})})]}),(0,e.jsxs)(n.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:f})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(i.RankIcon,{rank:h})})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:h})})]})]})})})}},17575:function(P,y,t){"use strict";t.r(y),t.d(y,{IdentificationComputer:function(){return f},IdentificationComputerAccessModification:function(){return u},IdentificationComputerContent:function(){return m},IdentificationComputerPrinting:function(){return v},IdentificationComputerRegions:function(){return h}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=t(41608),f=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.ntos,b=C.mode,I=C.has_modify,O=C.printing,_=(0,e.jsx)(u,{ntos:j});return j&&!C.have_id_slot?_=(0,e.jsx)(x.CrewManifestContent,{}):O?_=(0,e.jsx)(v,{}):b===1&&(_=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(!j||!!C.have_id_slot)&&(0,e.jsx)(a.tU.Tab,{icon:"home",selected:b===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(a.tU.Tab,{icon:"home",selected:b===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!j||!!C.have_printer&&(0,e.jsx)(a.tU.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!b&&!I,color:"",children:"Print"})]}),_]})},v=function(c){return(0,e.jsx)(a.wn,{title:"Printing",children:"Please wait..."})},u=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.ntos,b=C.station_name,I=C.target_name,O=C.target_owner,_=C.scan_name,M=C.authenticated,D=C.has_modify,A=C.account_number,R=C.centcom_access,K=C.all_centcom_access,N=C.regions,k=C.id_rank,V=C.departments;return(0,e.jsxs)(a.wn,{title:"Access Modification",children:[!M&&(0,e.jsx)(a.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:I,onClick:function(){return p("modify")}})}),!j&&(0,e.jsx)(a.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:_,onClick:function(){return p("scan")}})})]}),!!M&&!!D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Details",level:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(a.pd,{value:O,fluid:!0,onInput:function(F,J){return p("reg",{reg:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Account Number",children:(0,e.jsx)(a.pd,{value:A,fluid:!0,onInput:function(F,J){return p("account",{account:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(a.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+O,confirmContent:"You are dismissing "+O+", confirm?",onClick:function(){return p("terminate")}})})]})}),(0,e.jsx)(a.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(a.XI,{children:[V.map(function(F){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:F.department_name}),(0,e.jsx)(a.XI.Cell,{children:F.jobs.map(function(J){return(0,e.jsx)(a.$n,{selected:J.job===k,onClick:function(){return p("assign",{assign_target:J.job})},children:(0,n.jT)(J.display_name)},J.job)})})]}),(0,e.jsx)(a.az,{mt:-1,children:"\xA0"})," "]},F.department_name)}),(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(a.wn,{title:"Central Command",level:2,children:K.map(function(F){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:F.allowed,onClick:function(){return p("access",{access_target:F.ref,allowed:F.allowed})},children:(0,n.jT)(F.desc)})},F.ref)})})||(0,e.jsx)(a.wn,{title:b,level:2,children:(0,e.jsx)(h,{actName:"access"})})]})]})},h=function(c){var d=(0,i.Oc)(),p=d.act,C=d.data,j=c.actName,b=C.regions;return(0,e.jsx)(a.so,{wrap:"wrap",spacing:1,children:(0,s.Ul)(function(I){return I.name})(b).map(function(I){return(0,e.jsx)(a.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(a.wn,{title:I.name,height:"100%",children:(0,s.Ul)(function(O){return O.desc})(I.accesses).map(function(O){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:O.allowed,onClick:function(){return p(j,{access_target:O.ref,allowed:O.allowed})},children:(0,n.jT)(O.desc)})},O.ref)})})},I.name)})})}},15654:function(P,y,t){"use strict";t.r(y),t.d(y,{InventoryPanel:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.slots,v=f.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:m&&m.length&&m.map(function(u){return(0,e.jsx)(n.Ki.Item,{label:u.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:u.item?"hand-paper":"gift",onClick:function(){return x(u.act)},children:u.item||"Nothing"})},u.name)})})}),v&&(0,e.jsx)(n.wn,{title:"Actions",children:v&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},54577:function(P,y,t){"use strict";t.r(y),t.d(y,{InventoryPanelHuman:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.slots,v=f.specialSlots,u=f.internals,h=f.internalsValid,c=f.sensors,d=f.handcuffed,p=f.handcuffedParams,C=f.legcuffed,j=f.legcuffedParams,b=f.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[m&&m.length&&m.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:I.item?"hand-paper":"gift",onClick:function(){return x(I.act,I.params)},children:I.item||"Nothing"})},I.name)}),(0,e.jsx)(n.Ki.Divider,{}),v&&v.length&&v.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:I.item?"hand-paper":"gift",onClick:function(){return x(I.act,I.params)},children:I.item||"Nothing"})},I.name)})]})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),h&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,c&&(0,e.jsx)(n.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,d&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",j)},children:"Legcuffed"})||null,b&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},46382:function(P,y,t){"use strict";t.r(y),t.d(y,{IsolationCentrifuge:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.busy,v=f.antibodies,u=f.pathogens,h=f.is_antibody_sample,c=f.sample_inserted,d=(0,e.jsx)(n.az,{color:"average",children:"No vial detected."});return c&&(!v&&!u?d=(0,e.jsx)(n.az,{color:"average",children:"No antibodies or viral strains detected."}):d=(0,e.jsxs)(e.Fragment,{children:[v?(0,e.jsx)(n.wn,{title:"Antibodies",children:v}):null,u.length?(0,e.jsx)(n.wn,{title:"Pathogens",children:(0,e.jsx)(n.Ki,{children:u.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.name,children:p.spread_type},p.name)})})}):null]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m?(0,e.jsx)(n.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.az,{color:"bad",children:m})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:h?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"print",content:"Print",disabled:!v&&!u.length,onClick:function(){return x("print")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!c,onClick:function(){return x("sample")}})})]}),d]}),v&&!h||u.length?(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[v&&!h?(0,e.jsx)(n.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(n.$n,{icon:"pen",content:v,onClick:function(){return x("antibody")}})}):null,u.length?(0,e.jsx)(n.Ki.Item,{label:"Isolate Strain",children:u.map(function(p){return(0,e.jsx)(n.$n,{icon:"pen",content:p.name,onClick:function(){return x("isolate",{isolate:p.reference})}},p.name)})}):null]})}):null]})})})}},58189:function(P,y,t){"use strict";t.r(y),t.d(y,{JanitorCart:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.mybag,h=v.mybucket,c=v.mymop,d=v.myspray,p=v.myreplacer,C=v.signs,j=v.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return m("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Bucket Slot",tooltipPosition:"bottom",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return m("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Mop Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return m("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:d||"Spray Slot",tooltipPosition:"top-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){return m("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:p||"Light Replacer Slot",tooltipPosition:"top",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return m("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return m("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},a={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var f=(0,s.Oc)().data,m=x.iconkey,v=f.icons;return m in v?(0,e.jsx)("img",{src:v[m].substr(1,v[m].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(n.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:a[m]})}},11434:function(P,y,t){"use strict";t.r(y),t.d(y,{Jukebox:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.playing,u=m.loop_mode,h=m.volume,c=m.current_track_ref,d=m.current_track,p=m.current_genre,C=m.percent,j=m.tracks,b=j.length&&j.reduce(function(O,_){var M=_.genre||"Uncategorized";return O[M]||(O[M]=[]),O[M].push(_),O},{}),I=v&&(p||"Uncategorized");return(0,e.jsx)(i.p8,{width:450,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Currently Playing",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:v&&d&&(0,e.jsxs)(r.az,{children:[d.title," by ",d.artist||"Unkown"]})||(0,e.jsx)(r.az,{children:"Stopped"})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"play",disabled:v,onClick:function(){return f("play")},children:"Play"}),(0,e.jsx)(r.$n,{icon:"stop",disabled:!v,onClick:function(){return f("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.$n,{icon:"play",onClick:function(){return f("loopmode",{loopmode:1})},selected:u===1,children:"Next"}),(0,e.jsx)(r.$n,{icon:"random",onClick:function(){return f("loopmode",{loopmode:2})},selected:u===2,children:"Shuffle"}),(0,e.jsx)(r.$n,{icon:"redo",onClick:function(){return f("loopmode",{loopmode:3})},selected:u===3,children:"Repeat"}),(0,e.jsx)(r.$n,{icon:"step-forward",onClick:function(){return f("loopmode",{loopmode:4})},selected:u===4,children:"Once"})]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{value:C,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Volume",children:(0,e.jsx)(r.Ap,{minValue:0,step:1,value:h*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(O){return(0,s.LI)(O,1)+"%"},onChange:function(O,_){return f("volume",{val:(0,s.LI)(_/100,2)})}})})]})}),(0,e.jsx)(r.wn,{title:"Available Tracks",children:j.length&&Object.keys(b).sort().map(function(O){return(0,e.jsx)(r.Nt,{title:O,color:I===O?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:b[O].map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,icon:"play",selected:c===_.ref,onClick:function(){return f("change_track",{change_track:_.ref})},children:_.title},_.ref)})})},O)})||(0,e.jsx)(r.az,{color:"bad",children:"Error: No songs loaded."})})]})})}},58503:function(P,y,t){"use strict";t.r(y),t.d(y,{LawManager:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040);function i(){return i=Object.assign||function(u){for(var h=1;h=0)&&(c[p]=u[p]);return c}var g=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(n.IC,{info:!0,children:["Law-synced to ",p]})||null,(0,e.jsx)(x,{})]})})},x=function(u){var h=(0,s.QY)("lawsTabIndex",0),c=h[0],d=h[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:c===0,onClick:function(){return d(0)},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return d(1)},children:"Law Sets"})]}),c===0&&(0,e.jsx)(f,{})||null,c===1&&(0,e.jsx)(v,{})||null]})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.ion_law_nr,C=d.ion_law,j=d.zeroth_law,b=d.inherent_law,I=d.supplied_law,O=d.supplied_law_position,_=d.zeroth_laws,M=d.has_zeroth_laws,D=d.ion_laws,A=d.has_ion_laws,R=d.inherent_laws,K=d.has_inherent_laws,N=d.supplied_laws,k=d.has_supplied_laws,V=d.isAI,F=d.isMalf,J=d.isAdmin,H=d.channel,Q=d.channels,Z=_.map(function(X){return X.zero=!0,X}).concat(R);return(0,e.jsxs)(n.wn,{children:[A&&(0,e.jsx)(m,{laws:D,title:p+" Laws:",mt:-2})||null,(M||K)&&(0,e.jsx)(m,{laws:Z,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(m,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(n.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:Q.map(function(X){return(0,e.jsx)(n.$n,{content:X.channel,selected:H===X.channel,onClick:function(){return c("law_channel",{law_channel:X.channel})}},X.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),V&&(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),F&&(0,e.jsx)(n.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Add"})]}),J&&!M&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:j,fluid:!0,onChange:function(X,z){return c("change_zeroth_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:C,fluid:!0,onChange:function(X,z){return c("change_ion_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Inherent"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:b,fluid:!0,onChange:function(X,z){return c("change_inherent_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Supplied"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:I,fluid:!0,onChange:function(X,z){return c("change_supplied_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:O})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isMalf,C=d.isAdmin,j=u.laws,b=u.title,I=u.noButtons,O=a(u,["laws","title","noButtons"]);return(0,e.jsx)(n.wn,i({level:2,title:b},O,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),!I&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"State"})||null,p&&!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),j.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[_.index,"."]}),(0,e.jsx)(n.XI.Cell,{color:_.zero?"bad":null,children:_.law}),!I&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"volume-up",selected:_.state,onClick:function(){return c("state_law",{ref:_.ref,state_law:!_.state})},children:_.state?"Yes":"No"})})||null,p&&!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,icon:"pen",onClick:function(){return c("edit_law",{edit_law:_.ref})},children:"Edit"})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:_.ref})},children:"Delete"})})]})||null]},_.index)})]})}))},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.isMalf,C=d.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(j){return(0,e.jsxs)(n.wn,{title:j.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{disabled:!p,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:j.ref})},children:"Load Laws"}),(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:j.ref})},children:"State Laws"})]}),children:[j.laws.has_ion_laws&&(0,e.jsx)(m,{noButtons:!0,laws:j.laws.ion_laws,title:j.laws.ion_law_nr+" Laws:"})||null,(j.laws.has_zeroth_laws||j.laws.has_inherent_laws)&&(0,e.jsx)(m,{noButtons:!0,laws:j.laws.zeroth_laws.concat(j.laws.inherent_laws),title:j.header})||null,j.laws.has_supplied_laws&&(0,e.jsx)(m,{noButtons:!0,laws:j.laws.supplied_laws,title:"Supplied Laws"})||null]},j.name)})||null]})}},93455:function(P,y,t){"use strict";t.r(y),t.d(y,{ListInputModal:function(){return f}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(68040),g=t(12035),x=t(18513),f=function(u){var h=(0,r.Oc)(),c=h.act,d=h.data,p=d.items,C=p===void 0?[]:p,j=d.message,b=j===void 0?"":j,I=d.init_value,O=d.large_buttons,_=d.timeout,M=d.title,D=(0,s.useState)(C.indexOf(I)),A=D[0],R=D[1],K=(0,s.useState)(C.length>9),N=K[0],k=K[1],V=(0,s.useState)(""),F=V[0],J=V[1],H=function(ne){var ue=ee.length-1;if(ne===n.R)if(A===null||A===ue){var ce;R(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView()}else{var me;R(A+1),(me=document.getElementById((A+1).toString()))==null||me.scrollIntoView()}else if(ne===n.gf)if(A===null||A===0){var xe;R(ue),(xe=document.getElementById(ue.toString()))==null||xe.scrollIntoView()}else{var ve;R(A-1),(ve=document.getElementById((A-1).toString()))==null||ve.scrollIntoView()}},Q=function(ne){ne!==A&&R(ne)},Z=function(){k(!1),k(!0)},X=function(ne){var ue=String.fromCharCode(ne),ce=C.find(function(ve){return ve==null?void 0:ve.toLowerCase().startsWith(ue==null?void 0:ue.toLowerCase())});if(ce){var me,xe=C.indexOf(ce);R(xe),(me=document.getElementById(xe.toString()))==null||me.scrollIntoView()}},z=function(ne){var ue;ne!==F&&(J(ne),R(0),(ue=document.getElementById("0"))==null||ue.scrollIntoView())},Y=function(){k(!N),J("")},ee=C.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(F.toLowerCase())}),oe=325+Math.ceil(b.length/3)+(O?5:0);return N||setTimeout(function(){var ne;return(ne=document.getElementById(A.toString()))==null?void 0:ne.focus()},1),(0,e.jsxs)(a.p8,{title:M,width:325,height:oe,children:[_&&(0,e.jsx)(x.Loader,{value:_}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(ne){var ue=window.event?ne.which:ne.keyCode;(ue===n.R||ue===n.gf)&&(ne.preventDefault(),H(ue)),ue===n.Ri&&(ne.preventDefault(),c("submit",{entry:ee[A]})),!N&&ue>=n.W8&&ue<=n.bh&&(ne.preventDefault(),X(ue)),ue===n.s6&&(ne.preventDefault(),c("cancel"))},children:(0,e.jsx)(i.wn,{buttons:(0,e.jsx)(i.$n,{compact:!0,icon:N?"search":"font",selected:!0,tooltip:N?"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 Y()}}),className:"ListInput__Section",fill:!0,title:b,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(m,{filteredItems:ee,onClick:Q,onFocusSearch:Z,searchBarVisible:N,selected:A})}),N&&(0,e.jsx)(v,{filteredItems:ee,onSearch:z,searchQuery:F,selected:A}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[A]})})]})})})]})},m=function(u){var h=(0,r.Oc)().act,c=u.filteredItems,d=u.onClick,p=u.onFocusSearch,C=u.searchBarVisible,j=u.selected;return(0,e.jsxs)(i.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(i.y5,{}),c.map(function(b,I){return(0,e.jsx)(i.$n,{color:"transparent",fluid:!0,onClick:function(){return d(I)},onDoubleClick:function(O){O.preventDefault(),h("submit",{entry:c[j]})},onKeyDown:function(O){var _=window.event?O.which:O.keyCode;C&&_>=n.W8&&_<=n.bh&&(O.preventDefault(),p())},selected:I===j,style:{animation:"none",transition:"none"},children:b.replace(/^\w/,function(O){return O.toUpperCase()})},I)})]})},v=function(u){var h=(0,r.Oc)().act,c=u.filteredItems,d=u.onSearch,p=u.searchQuery,C=u.selected;return(0,e.jsx)(i.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(j){j.preventDefault(),h("submit",{entry:c[C]})},onInput:function(j,b){return d(b)},placeholder:"Search...",value:p})}},4515:function(P,y,t){"use strict";t.r(y),t.d(y,{LookingGlass:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.supportedPrograms,v=f.currentProgram,u=f.immersion,h=f.gravity,c=Math.min(180+m.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:c,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:m.map(function(d){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",selected:d===v,onClick:function(){return x("program",{program:d})},children:d},d)})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"user-astronaut",selected:h,onClick:function(){return x("gravity")},children:h?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(n.$n,{mt:-1,fluid:!0,icon:"eye",selected:u,onClick:function(){return x("immersion")},children:u?"Enabled":"Disabled"})})]})})]})})}},17542:function(P,y,t){"use strict";t.r(y),t.d(y,{MechaControlConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.beacons,u=m.stored_data;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[u.length&&(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return f("clear_log")}}),children:u.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",h.time,") (",h.year,")"]}),(0,e.jsx)(r.az,{children:(0,s.jT)(h.message)})]},h.time)})})})||null,v.length&&v.map(function(h){return(0,e.jsx)(r.wn,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return f("send_message",{mt:h.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("get_log",{mt:h.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return f("shock",{mt:h.ref})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[h.maxHealth*.75,1/0],average:[h.maxHealth*.5,h.maxHealth*.75],bad:[-1/0,h.maxHealth*.5]},value:h.health,maxValue:h.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:h.cell&&(0,e.jsx)(r.z2,{ranges:{good:[h.cellMaxCharge*.75,1/0],average:[h.cellMaxCharge*.5,h.cellMaxCharge*.75],bad:[-1/0,h.cellMaxCharge*.5]},value:h.cellCharge,maxValue:h.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[h.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:h.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,s.Sn)(h.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:h.active||"None"}),h.cargoMax&&(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[h.cargoMax*.75,1/0],average:[h.cargoMax*.5,h.cargoMax*.75],good:[-1/0,h.cargoMax*.5]},value:h.cargoUsed,maxValue:h.cargoMax})})||null]})},h.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},97311:function(P,y,t){"use strict";t.r(y),t.d(y,{Medbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.open,u=f.beaker,h=f.beaker_total,c=f.beaker_max,d=f.locked,p=f.heal_threshold,C=f.heal_threshold_max,j=f.injection_amount_min,b=f.injection_amount,I=f.injection_amount_max,O=f.use_beaker,_=f.declare_treatment,M=f.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(n.$n,{disabled:!u,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:u&&(0,e.jsxs)(n.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.jsx)(n.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(D,A){return x("adj_threshold",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:j,maxValue:I,value:b,onDrag:function(D,A){return x("adj_inject",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(n.$n,{fluid:!0,icon:O?"toggle-on":"toggle-off",selected:O,onClick:function(){return x("use_beaker")},children:O?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(n.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(n.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return x("declaretreatment")},children:_?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{fluid:!0,icon:M?"toggle-on":"toggle-off",selected:M,onClick:function(){return x("togglevoice")},children:M?"On":"Off"})})]})})||null]})})}},98659:function(P,y,t){"use strict";t.r(y),t.d(y,{MedicalRecords:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(68040),g=t(71451),x=t(1887),f=t(82489),m={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},v=function(_){(0,i.modalOpen)("edit",{field:_.edit,value:_.value})},u=function(_){var M=(0,n.Oc)().act,D=_.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:D.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return M("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:[D.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:D.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:D.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[D.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:D.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:D.symptoms.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.stage+". "+A.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",A.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",A.aggressiveness]},A.stage)})})})]})})})},h=function(_){var M=(0,n.Oc)().data,D=M.authenticated,A=M.screen;if(!D)return(0,e.jsx)(a.p8,{width:800,height:380,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var R;return A===2?R=(0,e.jsx)(c,{}):A===3?R=(0,e.jsx)(d,{}):A===4?R=(0,e.jsx)(p,{}):A===5?R=(0,e.jsx)(b,{}):A===6&&(R=(0,e.jsx)(I,{})),(0,e.jsxs)(a.p8,{width:800,height:380,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(f.TemporaryNotice,{}),(0,e.jsx)(O,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},c=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(K,N){return D("search",{t1:N})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:R.map(function(K,N){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:K.id+": "+K.name,onClick:function(){return D("d_rec",{d_rec:K.ref})}},N)})})]})},d=function(_){var M=(0,n.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return M("del_all")}})]})},p=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.medical,K=A.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(C,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(j,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return D("del_r")}}),(0,e.jsx)(r.$n,{icon:K?"spinner":"print",disabled:K,iconSpin:!!K,content:"Print Entry",ml:"0.5rem",onClick:function(){return D("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return D("screen",{screen:2})}})]})]})},C=function(_){var M=(0,n.Oc)().data,D=M.general;return!D||!D.fields?(0,e.jsx)(r.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{width:"50%",float:"left",children:(0,e.jsx)(r.Ki,{children:D.fields.map(function(A,R){return(0,e.jsxs)(r.Ki.Item,{label:A.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:A.value}),!!A.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(A)}})]},R)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!D.has_photos&&D.photos.map(function(A,R){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:A.substr(1,A.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",R+1]},R)})})]})},j=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.medical;return!R||!R.fields?(0,e.jsxs)(r.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return D("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:R.fields.map(function(K,N){return(0,e.jsx)(r.Ki.Item,{label:K.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[K.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]})},N)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[R.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):R.comments.map(function(K,N){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:K.header}),(0,e.jsx)("br",{}),K.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return D("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.$n,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,i.modalOpen)("add_c")}})]})]})},b=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.virus;return R.sort(function(K,N){return K.name>N.name?1:-1}),R.map(function(K,N){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",content:K.name,mb:"0.5rem",onClick:function(){return D("vir",{vir:K.D})}}),(0,e.jsx)("br",{})]},N)})},I=function(_){var M=(0,n.Oc)().data,D=M.medbots;return D.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):D.map(function(A,R){return(0,e.jsx)(r.Nt,{open:!0,title:A.name,children:(0,e.jsx)(r.az,{px:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Location",children:[A.area||"Unknown"," (",A.x,", ",A.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:A.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"good",children:"Online"}),(0,e.jsx)(r.az,{mt:"0.5rem",children:A.use_beaker?"Reservoir: "+A.total_volume+"/"+A.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},R)})},O=function(_){var M=(0,n.Oc)(),D=M.act,A=M.data,R=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:R===2,onClick:function(){return D("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===5,onClick:function(){return D("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===6,onClick:function(){return D("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===3,onClick:function(){return D("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,i.modalRegisterBodyOverride)("virus",u)},31825:function(P,y,t){"use strict";t.r(y),t.d(y,{MentorTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={open:"Open",resolved:"Resolved",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.id,u=m.title,h=m.name,c=m.state,d=m.opened_at,p=m.closed_at,C=m.opened_at_date,j=m.closed_at_date,b=m.actions,I=m.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"arrow-up",content:"Escalate",onClick:function(){return f("escalate")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return f("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Mentor Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(d/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[j," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return f("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(I).map(function(O,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I[O]}},_)})})]})})})})}},68607:function(P,y,t){"use strict";t.r(y),t.d(y,{MessageMonitor:function(){return f}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(13221),x=t(82489),f=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.auth,_=I.linkedServer,M=I.message,D=I.hacking,A=I.emag,R;return D||A?R=(0,e.jsx)(m,{}):O?_?R=(0,e.jsx)(u,{}):R=(0,e.jsx)(i.az,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(v,{}),(0,e.jsx)(a.p8,{width:670,height:450,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},m=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:O?(0,e.jsx)(i.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(i.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"]})})},v=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(i.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(i.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(i.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(i.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(_,M){return b("auth",{key:M})}})]}),!!O&&(0,e.jsx)(i.$n,{icon:"terminal",content:"Hack",onClick:function(){return b("hack")}}),(0,e.jsx)(i.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},u=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.linkedServer,_=(0,n.useState)(0),M=_[0],D=_[1],A;return M===0?A=(0,e.jsx)(h,{}):M===1?A=(0,e.jsx)(c,{logs:O.pda_msgs,pda:!0}):M===2?A=(0,e.jsx)(c,{logs:O.rc_msgs,rc:!0}):M===3?A=(0,e.jsx)(d,{}):M===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:M===0,onClick:function(){return D(0)},children:[(0,e.jsx)(i.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(i.tU.Tab,{selected:M===1,onClick:function(){return D(1)},children:[(0,e.jsx)(i.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(i.tU.Tab,{selected:M===2,onClick:function(){return D(2)},children:[(0,e.jsx)(i.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(i.tU.Tab,{selected:M===3,onClick:function(){return D(3)},children:[(0,e.jsx)(i.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(i.tU.Tab,{selected:M===4,onClick:function(){return D(4)},children:[(0,e.jsx)(i.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(i.tU.Tab,{color:"red",onClick:function(){return b("deauth")},children:[(0,e.jsx)(i.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(i.az,{m:2,children:A})]})},h=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.linkedServer;return(0,e.jsxs)(i.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"link",content:"Server Link",onClick:function(){return b("find")}}),(0,e.jsx)(i.$n,{icon:"power-off",content:"Server "+(O.active?"Enabled":"Disabled"),selected:O.active,onClick:function(){return b("active")}})]}),children:[(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Server Status",children:(0,e.jsx)(i.az,{color:"good",children:"Good"})})}),(0,e.jsx)(i.$n,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return b("pass")}}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},c=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=C.logs,_=C.pda,M=C.rc;return(0,e.jsx)(i.wn,{title:_?"PDA Logs":M?"Request Logs":"Logs",buttons:(0,e.jsx)(i.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return b(_?"del_pda":"del_rc")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:O.map(function(D,A){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(i.wn,{title:D.sender+" -> "+D.recipient,buttons:(0,e.jsx)(i.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return b("delete",{id:D.ref,type:M?"rc":"pda"})}}),children:M?(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Message",children:D.message}),(0,e.jsx)(i.Ki.Item,{label:"Verification",color:D.id_auth==="Unauthenticated"?"bad":"good",children:(0,s.jT)(D.id_auth)}),(0,e.jsx)(i.Ki.Item,{label:"Stamp",children:D.stamp})]}):D.message})},D.ref)})})})},d=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.possibleRecipients,_=I.customsender,M=I.customrecepient,D=I.customjob,A=I.custommessage,R=Object.keys(O);return(0,e.jsxs)(i.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Sender",children:(0,e.jsx)(i.pd,{fluid:!0,value:_,onChange:function(K,N){return b("set_sender",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(i.pd,{fluid:!0,value:D,onChange:function(K,N){return b("set_sender_job",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Recipient",children:(0,e.jsx)(i.ms,{selected:M,options:R,width:"100%",mb:-.7,onSelected:function(K){return b("set_recipient",{val:O[K]})}})}),(0,e.jsx)(i.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(i.pd,{fluid:!0,mb:.5,value:A,onChange:function(K,N){return b("set_message",{val:N})}})})]}),(0,e.jsx)(i.$n,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return b("send_message")}})]})},p=function(C){var j=(0,r.Oc)(),b=j.act,I=j.data,O=I.linkedServer;return(0,e.jsxs)(i.wn,{title:"Spam Filtering",children:[(0,e.jsx)(i.Ki,{children:O.spamFilter.map(function(_){return(0,e.jsx)(i.Ki.Item,{label:_.index,buttons:(0,e.jsx)(i.$n,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return b("deltoken",{deltoken:_.index})}}),children:_.token},_.index)})}),(0,e.jsx)(i.$n,{icon:"plus",content:"Add New Entry",onClick:function(){return b("addtoken")}})]})}},91015:function(P,y,t){"use strict";t.r(y),t.d(y,{Microwave:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.config,m=g.data,v=m.broken,u=m.operating,h=m.dirty,c=m.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"Bzzzzttttt!!"})})||u&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||h&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||c.length&&(0,e.jsx)(n.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(n.Ki,{children:c.map(function(d){return(0,e.jsxs)(n.Ki.Item,{label:d.name,children:[d.amt," ",d.extra]},d.name)})})})||(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:[f.title," is empty."]})})})})}},46258:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningOreProcessingConsole:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=t(4418),g=function(u){var h=(0,n.Oc)(),c=h.act,d=h.data,p=d.unclaimedPoints,C=d.ores,j=d.showAllOres,b=d.power,I=d.speed;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(a.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return c("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:I,onClick:function(){return c("speed_toggle")},children:I?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:b,onClick:function(){return c("power")},children:b?"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:p<1,icon:"download",onClick:function(){return c("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:p})})})}),(0,e.jsx)(v,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],f=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],m=function(u,h){return f.indexOf(u.ore)===-1||f.indexOf(h.ore)===-1?u.ore-h.ore:f.indexOf(h.ore)-f.indexOf(u.ore)},v=function(u){var h=(0,n.Oc)(),c=h.act,d=h.data,p=d.ores,C=d.showAllOres,j=d.power;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return c("showAllOres")},children:C?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:p.length&&p.sort(m).map(function(b){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(b.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:b.processing===0&&"red"||b.processing===1&&"green"||b.processing===2&&"blue"||b.processing===3&&"yellow",options:x,selected:x[b.processing],onSelected:function(I){return c("toggleSmelting",{ore:b.ore,set:x.indexOf(I)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:b.amount})})},b.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},1703:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningStackingConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.stacktypes,u=m.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,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(h,c){return f("change_stack",{amt:c})}})}),(0,e.jsx)(r.Ki.Divider,{}),v.length&&v.sort().map(function(h){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(h.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("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."})]})})})})}},25620:function(P,y,t){"use strict";t.r(y),t.d(y,{MiningVendor:function(){return v}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(4418);function x(){return x=Object.assign||function(d){for(var p=1;p=0)&&(C[b]=d[b]);return C}var m={Alphabetical:function(d,p){return d.name>p.name},"By availability":function(d,p){return-(d.affordable-p.affordable)},"By price":function(d,p){return d.price-p.price}},v=function(d){var p=function(k){O(k)},C=function(k){D(k)},j=function(k){K(k)},b=(0,n.useState)(""),I=b[0],O=b[1],_=(0,n.useState)("Alphabetical"),M=_[0],D=_[1],A=(0,n.useState)(!1),R=A[0],K=A[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsxs)(a.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:I,sortOrder:M,descending:R,onSearchText:p,onSortOrder:C,onDescending:j}),(0,e.jsx)(u,{searchText:I,sortOrder:M,descending:R,onSearchText:p,onSortOrder:C,onDescending:j})]})})},u=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=j.has_id,I=j.id,O=j.items,_=(0,s.XZ)(d.searchText,function(A){return A[0]}),M=!1,D=Object.entries(O).map(function(A,R){var K=Object.entries(A[1]).filter(_).map(function(N){return N[1].affordable=b&&I.points>=N[1].price,N[1]}).sort(m[d.sortOrder]);if(K.length!==0)return d.descending&&(K=K.reverse()),M=!0,(0,e.jsx)(c,{title:A[0],items:K},A[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:M?D:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(d){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(p,C){return d.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:"Alphabetical",options:Object.keys(m),width:"100%",lineHeight:"19px",onSelected:function(p){return d.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:d.descending?"arrow-down":"arrow-up",height:"19px",tooltip:d.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return d.onDescending(!d.descending)}})})]})})},c=function(d){var p=(0,r.Oc)(),C=p.act,j=p.data,b=d.title,I=d.items,O=f(d,["title","items"]);return(0,e.jsx)(i.Nt,x({open:!0,title:b},O,{children:I.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!j.has_id||j.id.points<_.price,content:_.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:b,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},83326:function(P,y,t){"use strict";t.r(y),t.d(y,{MobSpawner:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(f){var m=function(Be){A.health=Be,Q(Be)},v=function(Be){A.max_health=Be,Q(Be)},u=function(Be){A.melee_damage_lower=Be,Q(Be)},h=function(Be){A.melee_damage_upper=Be,Q(Be)},c=function(Be){A.path_name=Be,Q(Be)},d=function(Be){A.desc=Be,Q(Be)},p=function(Be){A.flavor_text=Be,Q(Be)},C=function(Be){F(Be)},j=function(Be){z(Be)},b=function(Be){oe(Be)},I=function(Be){ce(Be)},O=function(Be){ve(Be)},_=function(Be){Je(Be)},M=(0,n.Oc)(),D=M.act,A=M.data,R=(0,s.useState)(0),K=R[0],N=R[1],k=(0,s.useState)(0),V=k[0],F=k[1],J=(0,s.useState)(),H=J[0],Q=J[1],Z=(0,s.useState)(A.initial_x),X=Z[0],z=Z[1],Y=(0,s.useState)(A.initial_y),ee=Y[0],oe=Y[1],ne=(0,s.useState)(A.initial_z),ue=ne[0],ce=ne[1],me=(0,s.useState)(100),xe=me[0],ve=me[1],be=(0,s.useState)(1),we=be[0],Je=be[1],ze=[];return ze[0]=(0,e.jsx)(g,{radius:V,x:X,y:ee,z:ue,sizeMultiplier:xe,amount:we,onRadius:C,onHealth:m,onMaxHealth:v,onMeleeDamageLower:u,onMeleeDamageupper:h,onName:c,onDesc:d,onFlavor:p,onX:j,onY:b,onZ:I,onSizeMultiplier:O,onAmount:_}),ze[1]=(0,e.jsx)(x,{}),(0,e.jsx)(i.p8,{width:890,height:880,theme:"abstract",children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:K===0,onClick:function(){return N(0)},children:"General Settings"}),(0,e.jsx)(r.tU.Tab,{selected:K===1,onClick:function(){return N(1)},children:"Vore Settings [WIP]"})]}),ze[K]||"Error"]})})},g=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mob Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:u.path_name,onChange:function(h,c){return f.onName(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Mob Path",children:(0,e.jsx)(r.$n,{fluid:!0,content:u.path||"Select Path",onClick:function(h){return v("select_path")}})}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Amount",children:(0,e.jsx)(r.Q7,{value:f.amount,minValue:0,maxValue:256,onChange:function(h,c){return f.onAmount(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Size ("+f.sizeMultiplier+"%)",children:(0,e.jsx)(r.N6,{value:f.sizeMultiplier,minValue:50,maxValue:200,unit:"%",onChange:function(h,c){return f.onSizeMultiplier(c)}})})]})}),(0,e.jsx)(r.wn,{title:"General Settings",children:(0,e.jsxs)(r.so,{horizontal:!0,children:[(0,e.jsx)(r.so.Item,{FlexGrow:!0,children:(0,e.jsx)(r.wn,{title:"Positional Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spawn (X/Y/Z) Coords",children:[(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_x:f.x,minValue:0,maxValue:256,onChange:function(h,c){return f.onX(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_y:f.y,minValue:0,maxValue:256,onChange:function(h,c){return f.onY(c)}}),(0,e.jsx)(r.Q7,{value:u.loc_lock?u.loc_z:f.z,minValue:0,maxValue:256,onChange:function(h,c){return f.onZ(c)}}),(0,e.jsx)(r.$n.Checkbox,{content:"Lock coords to self",checked:u.loc_lock,onClick:function(){return v("loc_lock")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Radius (WIP)",children:(0,e.jsx)(r.Q7,{value:f.radius,disabled:!0,minValue:0,maxValue:256,onChange:function(h,c){return f.onRadius(c)}})})]})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsxs)(r.so.Item,{FlexGrow:!0,children:[(0,e.jsx)(r.wn,{title:"AI settings",buttons:(0,e.jsx)(r.$n,{selected:u.use_custom_ai,fill:!0,content:"Use Custom AI",onClick:function(){return v("toggle_custom_ai")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.ai_type||"Choose AI Type",onClick:function(h){return v("set_ai_path")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.faction||"Set Faction",onClick:function(h){return v("set_faction")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:u.intent||"Set Intent",onClick:function(h){return v("set_intent")}})})]})}),(0,e.jsx)(r.wn,{title:"Health & Damage",children:(0,e.jsxs)(r.Ki,{children:[u.max_health&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Max Health",children:(0,e.jsx)(r.Q7,{value:u.max_health,onChange:function(h,c){return f.onMaxHealth(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.Q7,{value:u.health,onChange:function(h,c){return f.onHealth(c)}})}),(0,e.jsx)("br",{})]})||"Note: Only available for '/mob/living'",u.melee_damage_lower&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Lower)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_lower,onChange:function(h,c){return f.onMeleeDamageLower(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Upper)",children:(0,e.jsx)(r.Q7,{value:u.melee_damage_upper,onChange:function(h,c){return f.onMeleeDamageUpper(c)}})})]})||"Note: Only available for '/mob/living/simple_mob'"]})})]})]})}),(0,e.jsx)(r.wn,{title:"Descriptions",children:(0,e.jsxs)(r.so,{children:[(0,e.jsxs)(r.so.Item,{width:"50%",children:["Description:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",onChange:function(h,c){return f.onDesc(c)},value:u.desc})]}),(0,e.jsxs)(r.so.Item,{width:"50%",children:["Flavor Text:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",value:u.flavor_text,onChange:function(h,c){return f.onFlavor(c)}})]})]})}),(0,e.jsx)(r.$n,{fill:!0,content:"Spawn",color:"teal",onClick:function(){return v("start_spawn",{amount:f.amount,name:u.path_name,desc:u.desc,max_health:u.max_health,health:u.health,melee_damage_lower:u.melee_damage_lower,melee_damage_upper:u.melee_damage_upper,flavor_text:u.flavor_text,size_multiplier:f.sizeMultiplier*.01,x:u.loc_lock?u.loc_x:f.x,y:u.loc_lock?u.loc_y:f.y,z:u.loc_lock?u.loc_z:f.z,radius:f.radius})}})]})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data;return(0,e.jsxs)(r.wn,{title:"WIP",children:["This Tab is still under construction!",(0,e.jsx)("br",{}),"Functionality will be added in later updates."]})}},44372:function(P,y,t){"use strict";t.r(y),t.d(y,{MuleBot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.suffix,h=v.load,c=v.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Unload Now",disabled:!h,onClick:function(){return m("unload")}}),children:h||"None."})]}),c?(0,e.jsx)(g,{}):(0,e.jsx)(a,{})]})})})},a=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.power,h=v.locked,c=v.issilicon,d=v.auto_return,p=v.crates_only;return(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:h&&!c,onClick:function(){return m("power")}}),children:h&&!c?(0,e.jsx)(n.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){return m("stop")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){return m("go")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){return m("home")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){return m("destination")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){return m("sethome")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",selected:d,content:"Auto Return Home: "+(d?"Enabled":"Disabled"),onClick:function(){return m("autoret")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"biking",selected:!p,content:"Non-standard Cargo: "+(p?"Disabled":"Enabled"),onClick:function(){return m("cargotypes")}})]})})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.safety;return(0,e.jsx)(n.wn,{title:"Maintenance Panel",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"skull-crossbones",color:u?"green":"red",content:"Safety: "+(u?"Engaged":"Disengaged (DANGER)"),onClick:function(){return m("safety")}})})}},72207:function(P,y,t){"use strict";t.r(y),t.d(y,{NIF:function(){return v}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=0,g=1,x=2,f=3,m=4,v=function(p){var C=(0,n.Oc)(),j=C.act,b=C.config,I=C.data,O=I.theme,_=I.last_notification,M=(0,s.useState)(!1),D=M[0],A=M[1],R=(0,s.useState)(null),K=R[0],N=R[1];return(0,e.jsx)(i.p8,{theme:O,width:500,height:400,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!_&&(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:_}),(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 j("dismissNotification")}})})]})})}),!!K&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+K.name+"?",onClick:function(){j("uninstall",{module:K.ref}),N(null)}}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return N(null)}})]}),children:[(0,e.jsx)(r.az,{children:K.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:K.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:K.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:K.illegal?"bad":"good",children:["It is ",K.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:[K.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 ",K.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+b.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:D,onClick:function(){return A(!D)}}),children:D&&(0,e.jsx)(d,{})||(0,e.jsx)(c,{setViewing:N})})]})})},u=function(p,C){switch(p){case a:return C<25?"Service Needed Soon":"Operating Normally";case g:return"Insufficient Energy!";case x:return"System Failure!";case f:return"Adapting To User"}return"Unknown"},h=function(p,C){return C?p>=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},c=function(p){var C=(0,n.Oc)(),j=C.act,b=C.config,I=C.data,O=I.nif_percent,_=I.nif_stat,M=I.nutrition,D=I.isSynthetic,A=I.modules,R=p.setViewing;return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.z2,{value:O,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[u(_,O)," (",(0,e.jsx)(r.zv,{value:O}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:M,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:h(M,D)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:A.map(function(K){return(0,e.jsx)(r.Ki.Item,{label:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return j("uninstall",{module:K.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return R(K)},tooltip:"View Information",tooltipPosition:"left"})]}),children:K.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:K.active,content:K.stat_text,onClick:function(){return j("toggle_module",{module:K.ref})}})||(0,e.jsx)(r.az,{children:K.stat_text})},K.ref)})})})]})},d=function(p){var C=(0,n.Oc)(),j=C.act,b=C.data,I=b.valid_themes,O=b.theme;return(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.ms,{grow:1,selected:O||"default",options:I,onSelected:function(_){return j("setTheme",{theme:_})}})}),O?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){j("setTheme",{theme:null})}})}):""]})})})}},96576:function(P,y,t){"use strict";t.r(y),t.d(y,{NTNetRelay:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(13221),a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.dos_crashed,c=u.enabled,d=u.dos_overload,p=u.dos_capacity,C=(0,e.jsx)(g,{});return h&&(C=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:h?700:500,height:h?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.dos_crashed,c=u.enabled,d=u.dos_overload,p=u.dos_capacity;return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:"Relay "+(c?"On":"Off"),onClick:function(){return v("toggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Network Buffer Status",children:[d," / ",p," GQ"]}),(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return v("purge")}})})]})})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data;return(0,e.jsxs)(i.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.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)(n.az,{children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return v("restart")}})})]})}},80707:function(P,y,t){"use strict";t.r(y),t.d(y,{Newscaster:function(){return d}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=t(82489),g="Main Menu",x="New Channel",f="View List",m="New Story",v="Print",u="New Wanted",h="View Wanted",c="View Selected Channel",d=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.screen,F=k.user;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.user,F=(0,n.QY)("screen",g),J=F[0],H=F[1],Q=A[J];return(0,e.jsx)(r.az,{children:(0,e.jsx)(Q,{setScreen:H})})},C=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.securityCaster,F=k.wanted_issue,J=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[F&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(h)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(f)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(m)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return J(v)},children:"Print Newspaper"})]}),!!V&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(u)},children:'Manage "Wanted" Issue'})})]})},j=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.c_locked,J=k.user,H=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(g)},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,s.jT)(V),onInput:function(Q,Z){return N("set_channel_name",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:J}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:F?"lock":"lock-open",selected:!F,onClick:function(){return N("set_channel_lock")},children:F?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return H(g)},children:"Cancel"})]})},b=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channels,F=R.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:V.map(function(J){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:J.admin?"good":J.censored?"bad":"",onClick:function(){N("show_channel",{show_channel:J.ref}),F(c)},children:(0,s.jT)(J.name)},J.name)})})},I=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.user,J=k.title,H=k.msg,Q=k.photo_data,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return N("set_channel_receiving")},children:V||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:F}),(0,e.jsx)(r.Ki.Item,{label:"Message Title",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:J||"(no title yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Message Body",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:H||"(no message yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:Q?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},O=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.total_num,F=k.active_num,J=k.message_num,H=k.paper_remaining,Q=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Q(g)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",V," Feed channels,"," ",F," of which are active, and a total of ",J," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[H*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Q(g)},children:"Cancel"})]})},_=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.channel_name,F=k.msg,J=k.photo_data,H=k.user,Q=k.wanted_issue,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!Q&&(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,s.jT)(V),onInput:function(X,z){return N("set_channel_name",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(F),onInput:function(X,z){return N("set_wanted_desc",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:J?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:H})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_wanted")},children:"Submit Wanted Issue"}),!!Q&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return N("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},M=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.wanted_issue,F=R.setScreen;return V?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},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,s.jT)(V.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,s.jT)(V.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,s.jT)(V.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:V.img&&(0,e.jsx)("img",{src:V.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},D=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,V=k.viewing_channel,F=k.securityCaster,J=k.company,H=R.setScreen;return V?(0,e.jsxs)(r.wn,{title:(0,s.jT)(V.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return N("toggle_d_notice",{ref:V.ref})}}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(f)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,s.jT)(V.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:V.ref})}})||(0,e.jsx)(r.az,{children:(0,s.jT)(V.author)})})}),!!V.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 ",J," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!V.messages.length&&V.messages.map(function(Q){return(0,e.jsxs)(r.wn,{children:["- ",(0,s.jT)(Q.body),!!Q.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+Q.img}),(0,s.jT)(Q.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,s.jT)(Q.author)," -"," ",Q.timestamp,"]"]}),!!F&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return N("censor_channel_story_body",{ref:Q.ref})}}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return N("censor_channel_story_author",{ref:Q.ref})}})]})]},Q.ref)})||!V.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 H(f)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[g]=C,A[x]=j,A[f]=b,A[m]=I,A[v]=O,A[u]=_,A[h]=M,A[c]=D},58942:function(P,y,t){"use strict";t.r(y),t.d(y,{NoticeBoard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:m.length?(0,e.jsx)(n.Ki,{children:m.map(function(v,u){return(0,e.jsxs)(n.Ki.Item,{label:v.name,children:[v.isphoto&&(0,e.jsx)(n.$n,{icon:"image",content:"Look",onClick:function(){return x("look",{ref:v.ref})}})||v.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sticky-note",content:"Read",onClick:function(){return x("read",{ref:v.ref})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Write",onClick:function(){return x("write",{ref:v.ref})}})]})||"Unknown Entity",(0,e.jsx)(n.$n,{icon:"minus-circle",content:"Remove",onClick:function(){return x("remove",{ref:v.ref})}})]},u)})}):(0,e.jsx)(n.az,{color:"average",children:"No notices posted here."})})})})}},90782:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosAccessDecrypter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(17575),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.message,u=m.running,h=m.rate,c=m.factor,d=m.regions,p=function(j){for(var b="";b.lengthc?b+="0":b+="1";return b},C=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:v&&(0,e.jsx)(n.IC,{children:v})||u&&(0,e.jsxs)(n.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",h," PHash/s",(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"ban",onClick:function(){return f("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(n.wn,{title:"Pick access code to decrypt",children:d.length&&(0,e.jsx)(i.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(n.az,{children:"Please insert ID card."})})})})}},26042:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosArcade:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data;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.jsxs)(r.xA,{children:[(0,e.jsxs)(r.xA.Column,{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:m.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[m.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:m.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:m.PauseState===1?"#1b3622":"#471915",children:m.Status})]}),(0,e.jsxs)(r.xA.Column,{children:[(0,e.jsxs)(r.z2,{value:m.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:m.Hitpoints}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,s.l)(m.BossID)})})]})]}),(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:m.GameActive===0||m.PauseState===1,onClick:function(){return f("Attack")},content:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return f("Heal")},content:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return f("Recharge_Power")},content:"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:m.GameActive===1,onClick:function(){return f("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){return f("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:m.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",m.TicketCount]})]})})})}},30873:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosAtmosControl:function(){return r}});var e=t(88095),s=t(68040),n=t(42623),r=function(){return(0,e.jsx)(s.Zm,{width:870,height:708,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.AtmosControlContent,{})})})}},44072:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCameraConsole:function(){return v},prevNextCamera:function(){return f},selectCameras:function(){return m}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(68040),x=t(96524),f=function(u,h){var c,d;if(!h)return[];var p=u.findIndex(function(C){return C.name===h.name});return[(c=u[p-1])==null?void 0:c.name,(d=u[p+1])==null?void 0:d.name]},m=function(u,h,c){h===void 0&&(h=""),c===void 0&&(c="");var d=(0,r.XZ)(h,function(p){return p.name});return(0,n.L)([(0,s.pb)(function(p){return p==null?void 0:p.name}),h&&(0,s.pb)(d),c&&(0,s.pb)(function(p){return p.networks.includes(c)}),(0,s.Ul)(function(p){return p.name})])(u)},v=function(u){var h=(0,i.Oc)(),c=h.act,d=h.data,p=d.mapRef,C=d.activeCamera,j=m(d.cameras),b=f(j,C),I=b[0],O=b[1];return(0,e.jsx)(g.Zm,{width:870,height:708,children:(0,e.jsxs)(g.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.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)(a.$n,{icon:"chevron-left",disabled:!I,onClick:function(){return c("switch_camera",{name:I})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",disabled:!O,onClick:function(){return c("switch_camera",{name:O})}}),"| PAN:",(0,e.jsx)(a.$n,{icon:"chevron-left",onClick:function(){return c("pan",{dir:8})}}),(0,e.jsx)(a.$n,{icon:"chevron-up",onClick:function(){return c("pan",{dir:1})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",onClick:function(){return c("pan",{dir:4})}}),(0,e.jsx)(a.$n,{icon:"chevron-down",onClick:function(){return c("pan",{dir:2})}})]}),(0,e.jsx)(a.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},70568:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCommunicationsConsole:function(){return r}});var e=t(88095),s=t(68040),n=t(48022),r=function(){return(0,e.jsx)(s.Zm,{width:400,height:600,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.CommunicationsConsoleContent,{})})})}},78162:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosConfiguration:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.PC_device_theme,v=f.power_usage,u=f.battery_exists,h=f.battery,c=h===void 0?{}:h,d=f.disk_size,p=f.disk_used,C=f.hardware,j=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{theme:m,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Power Supply",buttons:(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",v,"W"]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Battery Status",color:!u&&"average",children:u?(0,e.jsxs)(n.z2,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.jsx)(n.wn,{title:"File System",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:d,color:"good",children:[p," GQ / ",d," GQ"]})}),(0,e.jsx)(n.wn,{title:"Hardware Components",children:j.map(function(b){return(0,e.jsx)(n.wn,{title:b.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!b.critical&&(0,e.jsx)(n.$n.Checkbox,{content:"Enabled",checked:b.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:b.name})}}),(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",b.powerusage,"W"]})]}),children:b.desc},b.name)})})]})})}},62260:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCrewManifest:function(){return r}});var e=t(88095),s=t(68040),n=t(41608),r=function(){return(0,e.jsx)(s.Zm,{width:800,height:600,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.CrewManifestContent,{})})})}},12941:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosCrewMonitor:function(){return i}});var e=t(88095),s=t(44583),n=t(68040),r=t(93643),i=function(){var a=function(d){m(d)},g=function(d){h(d)},x=(0,s.useState)(0),f=x[0],m=x[1],v=(0,s.useState)(1),u=v[0],h=v[1];return(0,e.jsx)(n.Zm,{width:800,height:600,children:(0,e.jsx)(n.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:f,zoom:u,onTabIndex:a,onZoom:g})})})}},657:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosDigitalWarrant:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,j=h.allwarrants,b=(0,e.jsx)(g,{});return p&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(i.Zm,{width:500,height:350,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:b})})},g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return u("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(r.wn,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.type,d=h.allwarrants,p=(0,s.pb)(function(C){return C.arrestsearch===c})(d);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),p.length&&p.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 u("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 ",c," warrants found."]})})]})},f=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.warrantname,d=h.warrantcharges,p=h.warrantauth,C=h.type,j=C==="arrest",b=C==="arrest"?"Name":"Location",I=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:j?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return u("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return u("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:b,buttons:j&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return u("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantnamecustom")}}),children:c}),(0,e.jsx)(r.Ki.Item,{label:I,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return u("editwarrantcharges")}}),children:d}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return u("editwarrantauth")}}),children:p})]})})}},5070:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosEmailAdministration:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(23969),a=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.cur_title,C=c.current_account,j=(0,e.jsx)(g,{});return d?j=(0,e.jsx)(x,{}):p?j=(0,e.jsx)(f,{}):C&&(j=(0,e.jsx)(m,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:j})})},g=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.accounts;return(0,e.jsxs)(n.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(n.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",onClick:function(){return h("newaccount")},children:"Create New Account"}),(0,e.jsx)(n.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),d.map(function(p){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",onClick:function(){return h("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error;return(0,e.jsx)(n.wn,{title:"Message",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:d})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(i.NtosEmailClientViewMessage,{administrator:!0})})},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.msg_title,C=c.msg_body,j=c.msg_timestamp,b=c.msg_source,I=c.current_account,O=c.cur_suspended,_=c.messages,M=c.accounts;return(0,e.jsxs)(n.wn,{title:"Viewing "+I+" in admin mode",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Status",children:(0,e.jsx)(n.$n,{color:O?"bad":"",icon:"ban",tooltip:(O?"Uns":"S")+"uspend Account?",onClick:function(){return h("ban")},children:O?"Suspended":"Normal"})}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return h("changepass")},children:"Change Password"})})]}),(0,e.jsx)(n.wn,{level:2,title:"Messages",children:_.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Source"}),(0,e.jsx)(n.XI.Cell,{children:"Title"}),(0,e.jsx)(n.XI.Cell,{children:"Received at"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),_.map(function(D){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:D.source}),(0,e.jsx)(n.XI.Cell,{children:D.title}),(0,e.jsx)(n.XI.Cell,{children:D.timestamp}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"eye",onClick:function(){return h("viewmail",{viewmail:D.uid})},children:"View"})})]},D.uid)})]})||(0,e.jsx)(n.az,{color:"average",children:"No messages found in selected account."})})]})}},23969:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosEmailClient:function(){return a},NtosEmailClientViewMessage:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.PC_device_theme,I=j.error,O=j.downloading,_=j.current_account,M=(0,e.jsx)(c,{});return I?M=(0,e.jsx)(h,{error:I}):O?M=(0,e.jsx)(g,{}):_&&(M=(0,e.jsx)(x,{})),(0,e.jsx)(i.Zm,{resizable:!0,theme:b,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:M})})},g=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.down_filename,I=j.down_progress,O=j.down_size,_=j.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:[b," (",O," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:_})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",value:I,maxValue:O,children:[I,"/",O," (",(0,s.LI)(I/O*100,1),"%)"]})})]})})},x=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,I=j.addressbook,O=j.new_message,_=j.cur_title,M=(0,e.jsx)(f,{});return I?M=(0,e.jsx)(v,{}):O?M=(0,e.jsx)(u,{}):_&&(M=(0,e.jsx)(m,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+b,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return C("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return C("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return C("logout")}})]}),children:M})},f=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,I=j.folder,O=j.messagecount,_=j.messages;return(0,e.jsxs)(r.wn,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:I==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:I==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:I==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),O&&(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(M){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:M.source}),(0,e.jsx)(r.XI.Cell,{children:M.title}),(0,e.jsx)(r.XI.Cell,{children:M.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return C("view",{view:M.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("reply",{reply:M.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:M.uid})},tooltip:"Delete"})]})]},M.timestamp+M.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",I,"."]})]})},m=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=d.administrator,I=j.cur_title,O=j.cur_source,_=j.cur_timestamp,M=j.cur_body,D=j.cur_hasattachment,A=j.cur_attachment_filename,R=j.cur_attachment_size,K=j.cur_uid;return(0,e.jsx)(r.wn,{title:I,buttons:b?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return C("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return C("reply",{reply:K})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return C("delete",{delete:K})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return C("save",{save:K})}}),D&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return C("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return C("cancel",{cancel:K})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:O}),(0,e.jsx)(r.Ki.Item,{label:"At",children:_}),D&&!b&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[A," (",R,"GQ)"]})||null,(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})})})]})})},v=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("set_recipient",{set_recipient:null})}}),children:b.map(function(I){return(0,e.jsx)(r.$n,{content:I.login,fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:I.login})}},I.login)})})},u=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.current_account,I=j.msg_title,O=j.msg_recipient,_=j.msg_body,M=j.msg_hasattachment,D=j.msg_attachment_filename,A=j.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("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:I,onInput:function(R,K){return C("edit_title",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:O,onInput:function(R,K){return C("edit_recipient",{val:K})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return C("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:M&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return C("addattachment")},children:"Add Attachment"}),children:M&&(0,e.jsxs)(r.az,{inline:!0,children:[D," (",A,"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:_}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return C("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},h=function(d){var p=(0,n.Oc)().act,C=d.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Return",onClick:function(){return p("reset")}}),children:(0,e.jsx)(r.az,{color:"bad",children:C})})},c=function(d){var p=(0,n.Oc)(),C=p.act,j=p.data,b=j.stored_login,I=j.stored_password;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:b,onInput:function(O,_){return C("edit_login",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(O,_){return C("edit_password",{val:_})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},86411:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosFileManager:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.PC_device_theme,u=m.usbconnected,h=m.filename,c=m.filedata,d=m.error,p=m.files,C=p===void 0?[]:p,j=m.usbfiles,b=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{resizable:!0,theme:v,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[h&&(0,e.jsx)(n.wn,{title:"Viewing File "+h,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Edit",onClick:function(){return f("PRG_edit")}}),(0,e.jsx)(n.$n,{icon:"print",content:"Print",onClick:function(){return f("PRG_printfile")}}),(0,e.jsx)(n.$n,{icon:"times",content:"Close",onClick:function(){return f("PRG_closefile")}})]}),children:c&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(a,{files:C,usbconnected:u,onUpload:function(I){return f("PRG_copytousb",{uid:I})},onDelete:function(I){return f("PRG_deletefile",{uid:I})},onOpen:function(I){return f("PRG_openfile",{uid:I})},onRename:function(I,O){return f("PRG_rename",{uid:I,new_name:O})},onDuplicate:function(I){return f("PRG_clone",{uid:I})}})}),u&&(0,e.jsx)(n.wn,{title:"Data Disk",children:(0,e.jsx)(a,{usbmode:!0,files:b,usbconnected:u,onUpload:function(I){return f("PRG_copyfromusb",{uid:I})},onDelete:function(I){return f("PRG_deletefile",{uid:I})},onOpen:function(I){return f("PRG_openfile",{uid:I})},onRename:function(I,O){return f("PRG_rename",{uid:I,new_name:O})},onDuplicate:function(I){return f("PRG_clone",{uid:I})}})})||null,(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return f("PRG_newtextfile")},children:"New Text File"})})]}),d&&(0,e.jsxs)(n.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return f("PRG_clearerror")}})})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.so.Item,{grow:!0,children:d})})]})]})})},a=function(g){var x=g.files,f=x===void 0?[]:x,m=g.usbconnected,v=g.usbmode,u=g.onUpload,h=g.onDelete,c=g.onRename,d=g.onOpen;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"File"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Size"})]}),f.map(function(p){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(C,j){return c(p.uid,j)}}),(0,e.jsx)(n.$n,{content:"Open",onClick:function(){return d(p.uid)}})]})}),(0,e.jsx)(n.XI.Cell,{children:p.type}),(0,e.jsx)(n.XI.Cell,{children:p.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return h(p.uid)}}),!!m&&(v?(0,e.jsx)(n.$n,{icon:"download",tooltip:"Download",onClick:function(){return u(p.uid)}}):(0,e.jsx)(n.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return u(p.uid)}}))]})})]},p.name)})]})}},96665:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosIdentificationComputer:function(){return r}});var e=t(88095),s=t(68040),n=t(17575),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.IdentificationComputerContent,{ntos:!0})})})}},44801:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosMain:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),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"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.device_theme,u=m.programs,h=u===void 0?[]:u,c=m.has_light,d=m.light_on,p=m.comp_light_color,C=m.removable_media,j=C===void 0?[]:C,b=m.login,I=b===void 0?[]:b;return(0,e.jsx)(r.Zm,{title:v==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:v,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.$n,{width:"144px",icon:"lightbulb",selected:d,onClick:function(){return f("PC_toggle_light")},children:["Flashlight: ",d?"ON":"OFF"]}),(0,e.jsxs)(n.$n,{ml:1,onClick:function(){return f("PC_light_color")},children:["Color:",(0,e.jsx)(n.BK,{ml:1,color:p})]})]}),(0,e.jsx)(n.wn,{title:"User Login",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject ID",disabled:!I.IDName,onClick:function(){return f("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:["ID Name: ",I.IDName]}),(0,e.jsxs)(n.XI.Row,{children:["Assignment: ",I.IDJob]})]})}),!!j.length&&(0,e.jsx)(n.wn,{title:"Media Eject",children:(0,e.jsx)(n.XI,{children:j.map(function(O){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"eject",content:O,onClick:function(){return f("PC_Eject_Disk",{name:O})}})})},O)})})}),(0,e.jsx)(n.wn,{title:"Programs",children:(0,e.jsx)(n.XI,{children:h.map(function(O){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:i[O.name]||"window-maximize-o",content:O.desc,onClick:function(){return f("PC_runprogram",{name:O.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:!!O.running&&(0,e.jsx)(n.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return f("PC_killprogram",{name:O.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:O.autorun,onClick:function(){return f("PC_setautorun",{name:O.name})},children:"AR"})})]},O.name)})})})]})})}},59895:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetChat:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.can_admin,v=f.adminmode,u=f.authed,h=f.username,c=f.active_channel,d=f.is_operator,p=f.all_channels,C=p===void 0?[]:p,j=f.clients,b=j===void 0?[]:j,I=f.messages,O=I===void 0?[]:I,_=c!==null,M=u||v;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(n.wn,{height:"600px",children:(0,e.jsx)(n.XI,{height:"580px",children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(n.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"New Channel...",onCommit:function(D,A){return x("PRG_newchannel",{new_channel_name:A})}}),C.map(function(D){return(0,e.jsx)(n.$n,{fluid:!0,content:D.chan,selected:D.id===c,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:D.id})}},D.chan)})]}),(0,e.jsx)(n.$n.Input,{fluid:!0,mt:1,content:h+"...",currentValue:h,onCommit:function(D,A){return x("PRG_changename",{new_name:A})}}),!!m&&(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(v?"ON":"OFF"),color:v?"bad":"good",onClick:function(){return x("PRG_toggleadmin")}})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.az,{height:"560px",overflowY:"scroll",children:_&&(M?O.map(function(D){return(0,e.jsx)(n.az,{children:D.msg},D.msg)}):(0,e.jsxs)(n.az,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(n.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(n.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(n.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(D,A){return x("PRG_speak",{message:A})}})]}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(n.az,{height:"465px",overflowY:"scroll",children:b.map(function(D){return(0,e.jsx)(n.az,{children:D.name},D.name)})}),_&&M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(D,A){return x("PRG_savelog",{log_name:A})}}),(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return x("PRG_leavechannel")}})]}),!!d&&u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return x("PRG_deletechannel")}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(D,A){return x("PRG_renamechannel",{new_name:A})}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Set Password...",onCommit:function(D,A){return x("PRG_setpassword",{new_password:A})}})]})]})]})})})})})}},62607:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetDos:function(){return i},NtosNetDosContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),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)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.relays,u=v===void 0?[]:v,h=m.focus,c=m.target,d=m.speed,p=m.overload,C=m.capacity,j=m.error;if(j)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:j}),(0,e.jsx)(n.$n,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return f("PRG_reset")}})]});var b=function(O){for(var _="",M=p/C;_.lengthM?_+="0":_+="1";return _},I=45;return c?(0,e.jsxs)(n.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.az,{children:["CURRENT SPEED: ",d," GQ/s"]}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)}),(0,e.jsx)(n.az,{children:b(I)})]}):(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:u.map(function(O){return(0,e.jsx)(n.$n,{content:O.id,selected:h===O.id,onClick:function(){return f("PRG_target_relay",{targid:O.id})}},O.id)})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!h,mt:1,onClick:function(){return f("PRG_execute")}})]})}},10864:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetDownloader:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.PC_device_theme,h=v.disk_size,c=v.disk_used,d=v.downloadable_programs,p=d===void 0?[]:d,C=v.error,j=v.hacked_programs,b=j===void 0?[]:j,I=v.hackedavailable;return(0,e.jsx)(i.Zm,{theme:u,width:480,height:735,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:C}),(0,e.jsx)(r.$n,{content:"Reset",onClick:function(){return m("PRG_reseterror")}})]}),(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:c,minValue:0,maxValue:h,children:c+" GQ / "+h+" GQ"})})})}),(0,e.jsx)(r.wn,{children:p.map(function(O){return(0,e.jsx)(g,{program:O},O.filename)})}),!!I&&(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."}),b.map(function(O){return(0,e.jsx)(g,{program:O},O.filename)})]})]})})},g=function(x){var f=x.program,m=(0,n.Oc)(),v=m.act,u=m.data,h=u.disk_size,c=u.disk_used,d=u.downloadcompletion,p=u.downloading,C=u.downloadname,j=u.downloadsize,b=u.downloadspeed,I=u.downloads_queue,O=h-c;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:f.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[f.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:f.filename===C&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:j,value:d,children:[(0,s.LI)(d/j*100,1),"%\xA0(",b,"GQ/s)"]})||I.indexOf(f.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return v("PRG_removequeued",{filename:f.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",content:"Download",disabled:f.size>O,onClick:function(){return v("PRG_downloadfile",{filename:f.filename})}})})]}),f.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!"]}),f.size>O&&(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:f.fileinfo})]})}},26055:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetMonitor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.ntnetrelays,v=f.ntnetstatus,u=f.config_softwaredownload,h=f.config_peertopeer,c=f.config_communication,d=f.config_systemcontrol,p=f.idsalarm,C=f.idsstatus,j=f.ntnetmaxlogs,b=f.maxlogs,I=f.minlogs,O=f.banned_nids,_=f.ntnetlogs,M=_===void 0?[]:_;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(n.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(n.$n.Confirm,{icon:v?"power-off":"times",content:v?"ENABLED":"DISABLED",selected:v,onClick:function(){return x("toggleWireless")}}),children:m?(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Active NTNet Relays",children:m})}):"No Relays Connected"}),(0,e.jsx)(n.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(n.$n,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return x("toggle_function",{id:"1"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(n.$n,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return x("toggle_function",{id:"2"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(n.$n,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return x("toggle_function",{id:"3"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(n.$n,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){return x("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(n.wn,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(n.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(n.$n,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:O.join(", ")||"None"}),(0,e.jsx)(n.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return x("toggleIDS")}}),(0,e.jsx)(n.$n,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return x("resetIDS")}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(n.Q7,{value:j,minValue:I,maxValue:b,width:"39px",onChange:function(D,A){return x("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(n.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return x("purgelogs")}}),children:M.map(function(D){return(0,e.jsx)(n.az,{className:"candystripe",children:D.entry},D.entry)})})]})]})})}},10124:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNetTransfer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error,p=c.downloading,C=c.uploading,j=c.upload_filelist,b=(0,e.jsx)(m,{});return d?b=(0,e.jsx)(a,{}):p?b=(0,e.jsx)(g,{}):C?b=(0,e.jsx)(x,{}):j.length&&(b=(0,e.jsx)(f,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:b})})},a=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.error;return(0,e.jsxs)(n.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Reset"}),children:["Additional Information: ",d]})},g=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.download_name,p=c.download_progress,C=c.download_size,j=c.download_netspeed;return(0,e.jsx)(n.wn,{title:"Download in progress",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Downloaded File",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsxs)(n.z2,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Speed",children:[j," GQ/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Controls",children:(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Download"})})]})})},x=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.upload_clients,p=c.upload_filename,C=c.upload_haspassword;return(0,e.jsx)(n.wn,{title:"Server enabled",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Clients Connected",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Provided file",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Commands",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Upload"})]})]})})},f=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.upload_filelist;return(0,e.jsxs)(n.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.wn,{title:"Pick file to serve.",level:2,children:d.map(function(p){return(0,e.jsxs)(n.$n,{fluid:!0,icon:"upload",onClick:function(){return h("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},m=function(v){var u=(0,s.Oc)(),h=u.act,c=u.data,d=c.servers;return(0,e.jsx)(n.wn,{title:"Available Files",buttons:(0,e.jsx)(n.$n,{icon:"upload",onClick:function(){return h("PRG_uploadmenu")},children:"Send File"}),children:d.length&&(0,e.jsx)(n.Ki,{children:d.map(function(p){return(0,e.jsxs)(n.Ki.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(n.In,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return h("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(n.az,{children:"No upload servers found."})})}},90227:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosNewsBrowser:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(68040),a=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.article,d=h.download,p=h.message,C=(0,e.jsx)(x,{});return c?C=(0,e.jsx)(g,{}):d&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(i.Zm,{width:575,height:750,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.IC,{children:[p," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_clearmessage")}})]}),C]})})},g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.article;if(!c)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var d=c.title,p=c.cover,C=c.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+d,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return u("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return u("PRG_reset")},children:"Close"})]}),children:[!!p&&(0,e.jsx)("img",{src:(0,s.l)(p)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})]})},x=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.showing_archived,d=h.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return u("PRG_toggle_archived")},checked:c,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:d.length&&d.map(function(p){return(0,e.jsxs)(r.Ki.Item,{label:p.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return u("PRG_openarticle",{uid:p.uid})}}),children:[p.size," GQ"]},p.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},f=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.download,d=c.download_progress,p=c.download_maxprogress,C=c.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:d,maxValue:p,children:[d," / ",p," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[C," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return u("PRG_reset")},children:"Abort Download"})})]})})}},39360:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosOvermapNavigation:function(){return r}});var e=t(88095),s=t(68040),n=t(15156),r=function(){return(0,e.jsx)(s.Zm,{width:380,height:530,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.OvermapNavigationContent,{})})})}},62243:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosPowerMonitor:function(){return r}});var e=t(88095),s=t(68040),n=t(16421),r=function(){return(0,e.jsx)(s.Zm,{width:550,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.PowerMonitorContent,{})})})}},12638:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosRCON:function(){return r}});var e=t(88095),s=t(68040),n=t(72128),r=function(){return(0,e.jsx)(s.Zm,{width:630,height:440,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.RCONContent,{})})})}},88475:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosRevelation:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(v,u){return x("PRG_obfuscate",{new_name:u})},mb:1}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(n.$n,{content:m?"ARMED":"DISARMED",color:m?"bad":"average",onClick:function(){return x("PRG_arm")}})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!m})]})})})}},17609:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosShutoffMonitor:function(){return r}});var e=t(88095),s=t(68040),n=t(52735),r=function(){return(0,e.jsx)(s.Zm,{width:627,height:700,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.ShutoffMonitorContent,{})})})}},86431:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosStationAlertConsole:function(){return r}});var e=t(88095),s=t(68040),n=t(47441),r=function(){return(0,e.jsx)(s.Zm,{width:315,height:500,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.StationAlertConsoleContent,{})})})}},21396:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosSupermatterMonitor:function(){return r}});var e=t(88095),s=t(68040),n=t(67186),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:400,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.SupermatterMonitorContent,{})})})}},77248:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosUAV:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.current_uav,v=f.signal_strength,u=f.in_use,h=f.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(n.wn,{title:"Selected UAV",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"UAV",children:m&&m.status||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Signal",children:m&&v||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:m&&(0,e.jsx)(n.$n,{icon:"power-off",selected:m.power,onClick:function(){return x("power_uav")},children:m.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Camera",children:m&&(0,e.jsx)(n.$n,{icon:"power-off",selected:u,disabled:!m.power,onClick:function(){return x("view_uav")},children:m.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(n.wn,{title:"Paired UAVs",children:h.length&&h.map(function(c){return(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:c.uavref})},children:c.name})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:c.uavref})}})})]},c.uavref)})||(0,e.jsx)(n.az,{color:"average",children:"No UAVs Paired."})})]})})}},61728:function(P,y,t){"use strict";t.r(y),t.d(y,{NtosWordProcessor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.PC_device_theme,v=f.error,u=f.browsing,h=f.files,c=f.usbconnected,d=f.usbfiles,p=f.filename,C=f.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:m,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:v&&(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",v,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to menu",onClick:function(){return x("PRG_backtomenu")}})]})||u&&(0,e.jsx)(n.wn,{title:"File Browser",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to editor",onClick:function(){return x("PRG_closebrowser")}}),children:(0,e.jsx)(n.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0})]}),h.map(function(j,b){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:j.name}),(0,e.jsx)(n.XI.Cell,{children:j.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:j.name})},children:"Open"})})]},b)})]})})})||(0,e.jsxs)(n.wn,{title:"Document: "+p,children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(n.$n,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(n.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},8544:function(P,y,t){"use strict";t.r(y),t.d(y,{NumberInputModal:function(){return f}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(12035),x=t(18513),f=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.init_value,p=c.large_buttons,C=c.message,j=C===void 0?"":C,b=c.timeout,I=c.title,O=(0,n.useState)(d),_=O[0],M=O[1],D=function(R){R!==_&&M(R)},A=140+(j.length>30?Math.ceil(j.length/3):0)+(j.length&&p?5:0);return(0,e.jsxs)(a.p8,{title:I,width:270,height:A,children:[b&&(0,e.jsx)(x.Loader,{value:b}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(R){R.key===s._.Enter&&h("submit",{entry:_}),R.key===s._.Escape&&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:j})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(m,{input:_,onClick:D,onChange:D,onBlur:D})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:_})})]})})})]})},m=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.min_value,p=c.max_value,C=c.init_value,j=c.round_value,b=v.input,I=v.onClick,O=v.onChange,_=v.onBlur;return(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===d,icon:"angle-double-left",onClick:function(){return I(d)},tooltip:d?"Min ("+d+")":"Min"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!j,minValue:d,maxValue:p,onChange:function(M,D){return O(D)},onBlur:function(M,D){return _(D)},onEnter:function(M,D){return h("submit",{entry:D})},value:b})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===p,icon:"angle-double-right",onClick:function(){return I(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:b===C,icon:"redo",onClick:function(){return I(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},953:function(P,y,t){"use strict";t.r(y),t.d(y,{OmniFilter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.power,u=m.config,h=m.ports,c=m.set_flow_rate,d=m.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:u?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:v?"On":"Off",selected:v,disabled:u,onClick:function(){return f("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:u,onClick:function(){return f("configure")}})]}),children:(0,e.jsx)(n.Ki,{children:h?h.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.dir+" Port",children:u?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"IN",selected:p.input,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:"in",dir:p.dir})}}),(0,e.jsx)(n.$n,{content:"OUT",selected:p.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:p.dir})}}),(0,e.jsx)(n.$n,{icon:"wrench",disabled:p.input||p.output,content:p.f_type||"None",onClick:function(){return f("switch_filter",{mode:p.f_type,dir:p.dir})}})]}):i(p)},p.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[d," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:u?(0,e.jsx)(n.$n,{icon:"wrench",content:c+" L/s",onClick:function(){return f("set_flow_rate")}}):c+" L/s"})]})})]})})}},75520:function(P,y,t){"use strict";t.r(y),t.d(y,{OmniMixer:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},a=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.power,h=v.config,c=v.ports,d=v.set_flow_rate,p=v.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u?"On":"Off",selected:u,disabled:h,onClick:function(){return m("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:h,onClick:function(){return m("configure")}})]}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Port"}),h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Concentration"}),h?(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(C){return(0,e.jsx)(g,{port:C,config:h},C.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:h?(0,e.jsx)(n.$n,{icon:"wrench",content:d+" L/s",onClick:function(){return m("set_flow_rate")}}):d+" L/s"})]})})]})})},g=function(x){var f=(0,s.Oc)().act,m=x.port,v=x.config;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:m.dir+" Port"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"IN",selected:m.input,disabled:m.output,icon:"compress-arrows-alt",onClick:function(){return f("switch_mode",{mode:m.input?"none":"in",dir:m.dir})}}):i(m)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"OUT",selected:m.output,icon:"expand-arrows-alt",onClick:function(){return f("switch_mode",{mode:"out",dir:m.dir})}}):m.concentration*100+"%"}),v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(n.$n,{width:"100%",icon:"wrench",disabled:!m.input,content:m.input?m.concentration*100+" %":"-",onClick:function(){return f("switch_con",{dir:m.dir})}})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:m.con_lock?"lock":"lock-open",disabled:!m.input,selected:m.con_lock,content:m.f_type||"None",onClick:function(){return f("switch_conlock",{dir:m.dir})}})})]}):null]})}},37534:function(P,y,t){"use strict";t.r(y),t.d(y,{OperatingComputer:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],m=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.hasOccupant,b=C.choice,I;return b?I=(0,e.jsx)(h,{}):I=j?(0,e.jsx)(v,{}):(0,e.jsx)(u,{}),(0,e.jsx)(i.p8,{width:650,height:455,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!b,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!b,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:I})]})})},v=function(c){var d=(0,n.Oc)().data,p=d.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[p.stat][0],children:a[p.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),g.map(function(C,j){return(0,e.jsx)(r.Ki.Item,{label:C[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:p[C[1]]/100,ranges:x,children:(0,s.LI)(p[C[1]])},j)},j)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:f[p.temperatureSuitability+3],children:[(0,s.LI)(p.btCelsius),"\xB0C, ",(0,s.LI)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[p.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.jsx)(r.Ki,{children:p.surgery.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:C.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(j){return(0,e.jsx)("div",{children:j},j)})})]})},C.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},u=function(){return(0,e.jsx)(r.so,{textAlign:"center",height:"100%",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 patient detected."]})})},h=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.verbose,b=C.health,I=C.healthAlarm,O=C.oxy,_=C.oxyAlarm,M=C.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:j,icon:j?"toggle-on":"toggle-off",content:j?"On":"Off",onClick:function(){return p(j?"verboseOff":"verboseOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){return p(b?"healthOff":"healthOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:I,stepPixelSize:"5",ml:"0",format:function(D){return D+"%"},onChange:function(D,A){return p("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"toggle-on":"toggle-off",content:O?"On":"Off",onClick:function(){return p(O?"oxyOff":"oxyOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:_,stepPixelSize:"5",ml:"0",onChange:function(D,A){return p("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:M,icon:M?"toggle-on":"toggle-off",content:M?"On":"Off",onClick:function(){return p(M?"critOff":"critOn")}})})]})}},17511:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapDisperser:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(7240),a=function(x){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.faillink,h=v.calibration,c=v.overmapdir,d=v.cal_accuracy,p=v.strength,C=v.range,j=v.next_shot,b=v.nopower,I=v.skill,O=v.chargeload;return u?(0,e.jsx)(n.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(n.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"22%",children:(0,e.jsx)(n.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(i.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===c}})})}),(0,e.jsx)(n.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(n.wn,{title:"Charge",children:(0,e.jsxs)(n.Ki,{children:[b&&(0,e.jsx)(n.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(n.Ki.Item,{label:"Charge Load Type",children:O}),(0,e.jsx)(n.Ki.Item,{label:"Cooldown",children:j===0&&(0,e.jsx)(n.az,{color:"good",children:"Ready"})||j>1&&(0,e.jsxs)(n.az,{color:"average",children:[(0,e.jsx)(n.zv,{value:j})," Seconds",(0,e.jsx)(n.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(n.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(n.wn,{title:"Calibration",children:[(0,e.jsx)(n.zv,{value:d}),"%",(0,e.jsx)(n.$n,{ml:1,icon:"exchange-alt",onClick:function(){return m("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(n.az,{mt:1,children:h.map(function(_,M){return(0,e.jsxs)(n.az,{children:["Cal #",M,":",(0,e.jsx)(n.$n,{ml:1,icon:"random",onClick:function(){return m("calibration",{calibration:M})},children:_.toString()})]},M)})})]})}),(0,e.jsx)(n.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(n.wn,{title:"Setup",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Strength",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return m("strength")},children:p})}),(0,e.jsx)(n.Ki.Item,{label:"Radius",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return m("range")},children:C})})]})})}),(0,e.jsx)(n.so.Item,{grow:1,mt:1,children:(0,e.jsx)(n.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return m("fire")},children:"Fire ORB"})})]})}},98203:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapEngines:function(){return i},OvermapEnginesContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.global_state,u=m.global_limit,h=m.engines_info,c=m.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Engines",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,onClick:function(){return f("global_toggle")},children:v?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return f("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return f("set_global_limit")},children:[u,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return f("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(n.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(n.zv,{value:c})})]})}),(0,e.jsx)(n.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:h.map(function(d,p){return(0,e.jsxs)(n.so,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(n.so.Item,{basis:"80%",children:(0,e.jsx)(n.Nt,{title:(0,e.jsxs)(n.az,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(n.zv,{value:d.eng_thrust})," | Limit:"," ",(0,e.jsx)(n.zv,{value:d.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(n.wn,{width:"127%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:d.eng_type}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.az,{color:d.eng_on?d.eng_on===1?"good":"average":"bad",children:d.eng_on?d.eng_on===1?"Online":"Booting":"Offline"}),d.eng_status.map(function(C,j){return Array.isArray(C)?(0,e.jsx)(n.az,{color:C[1],children:C[0]},j):(0,e.jsx)(n.az,{children:C},j)})]}),(0,e.jsx)(n.Ki.Item,{label:"Current Thrust",children:d.eng_thrust}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return f("limit",{limit:-.1,engine:d.eng_reference})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return f("set_limit",{engine:d.eng_reference})},children:[d.eng_thrust_limiter,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return f("limit",{limit:.1,engine:d.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(n.so.Item,{basis:"20%",children:(0,e.jsx)(n.$n,{fluid:!0,iconSpin:d.eng_on===-1,color:d.eng_on===-1?"purple":null,selected:d.eng_on===1,icon:"power-off",onClick:function(){return f("toggle_engine",{engine:d.eng_reference})},children:d.eng_on?d.eng_on===1?"Shutoff":"Booting":"Startup"})})]},p)})})]})}},79061:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapFull:function(){return x}});var e=t(88095),s=t(44583),n=t(92514),r=t(68040),i=t(98203),a=t(60224),g=t(89501),x=function(f){var m=(0,s.useState)(0),v=m[0],u=m[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:v===0,onClick:function(){return u(0)},children:"Engines"}),(0,e.jsx)(n.tU.Tab,{selected:v===1,onClick:function(){return u(1)},children:"Helm"}),(0,e.jsx)(n.tU.Tab,{selected:v===2,onClick:function(){return u(2)},children:"Sensors"})]}),v===0&&(0,e.jsx)(i.OvermapEnginesContent,{}),v===1&&(0,e.jsx)(a.OvermapHelmContent,{}),v===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},60224:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return a},OvermapHelmContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(7240),a=function(u){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(u){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(n.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(f,{})}),(0,e.jsx)(n.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(m,{})})]}),(0,e.jsx)(v,{})]})},x=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data;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,{})]})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.canburn,C=d.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)(n.so,{align:"center",justify:"center",children:(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(n.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(n.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(n.$n,{selected:C,onClick:function(){return c("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.dest,C=d.d_x,j=d.d_y,b=d.speedlimit,I=d.autopilot,O=d.autopilot_disabled;return O?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(n.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(n.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)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")}})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{setx:!0})},children:C}),(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{sety:!0})},children:j})]})||(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(n.$n,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[b," Gm/h"]})})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,selected:I,disabled:!p,icon:"robot",onClick:function(){return c("apilot")},children:I?"Engaged":"Disengaged"}),(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})]})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.sector,C=d.s_x,j=d.s_y,b=d.sector_info,I=d.landed,O=d.locations;return(0,e.jsxs)(n.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[C," : ",j]}),(0,e.jsx)(n.Ki.Item,{label:"Scan Data",children:b}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:I})]}),(0,e.jsxs)(n.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(n.wn,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),O.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:_.name}),(0,e.jsxs)(n.XI.Cell,{children:[_.x," : ",_.y]}),(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(n.$n,{icon:"rocket",onClick:function(){return c("setds",{x:_.x,y:_.y})},children:"Plot Course"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return c("remove",{remove:_.reference})},children:"Remove"})]})]},_.name)})]})})]})}},15156:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapNavigation:function(){return a},OvermapNavigationContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(7240),a=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(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.sector,h=v.s_x,c=v.s_y,d=v.sector_info,p=v.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Current Location",buttons:(0,e.jsx)(n.$n,{icon:"eye",selected:p,onClick:function(){return m("viewing")},children:"Map View"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Location",children:u}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[h," : ",c]}),(0,e.jsx)(n.Ki.Item,{label:"Additional Information",children:d})]})}),(0,e.jsx)(n.wn,{title:"Flight Data",children:(0,e.jsx)(i.OvermapFlightData,{disableLimiterControls:!0})})]})}},20576:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapShieldGenerator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(f){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.modes,c=u.offline_for;return c?(0,e.jsxs)(n.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: ",c," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(n.wn,{title:"Field Calibration",children:h.map(function(d){return(0,e.jsxs)(n.wn,{title:d.name,level:2,buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:d.status,onClick:function(){return v("toggle_mode",{toggle_mode:d.flag})},children:d.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(n.az,{color:"label",children:d.desc}),(0,e.jsxs)(n.az,{mt:.5,children:["Multiplier: ",d.multiplier]})]},d.name)})})]})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.running,c=u.overloaded,d=u.mitigation_max,p=u.mitigation_physical,C=u.mitigation_em,j=u.mitigation_heat,b=u.field_integrity,I=u.max_energy,O=u.current_energy,_=u.percentage_energy,M=u.total_segments,D=u.functional_segments,A=u.field_radius,R=u.target_radius,K=u.input_cap_kw,N=u.upkeep_power_usage,k=u.power_usage,V=u.spinup_counter;return(0,e.jsx)(n.wn,{title:"System Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Generator is",children:h===1&&(0,e.jsx)(n.az,{color:"average",children:"Shutting Down"})||h===2&&(c&&(0,e.jsx)(n.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(n.az,{color:"good",children:"Running"}))||h===3&&(0,e.jsx)(n.az,{color:"average",children:"Inactive"})||h===4&&(0,e.jsxs)(n.az,{color:"blue",children:["Spinning Up\xA0",R!==A&&(0,e.jsx)(n.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(n.az,{inline:!0,children:[V*2,"s"]})]})||(0,e.jsx)(n.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(n.z2,{value:O,maxValue:I,children:[O," / ",I," MJ (",_,"%)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(n.zv,{value:b}),"%"]}),(0,e.jsxs)(n.Ki.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",j,"% HE / ",d,"% MAX"]}),(0,e.jsxs)(n.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(n.zv,{value:N})," kW"]}),(0,e.jsx)(n.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.z2,{value:k,maxValue:K,children:[k," / ",K," kW"]})})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(n.zv,{value:D}),"\xA0/\xA0",(0,e.jsx)(n.zv,{value:M})," m\xB2 (radius"," ",(0,e.jsx)(n.zv,{value:A}),", target"," ",(0,e.jsx)(n.zv,{value:R}),")"]})]})})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.running,c=u.hacked,d=u.idle_multiplier,p=u.idle_valid_values;return(0,e.jsxs)(n.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[h>=2&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("begin_shutdown")},selected:!0,children:"Turn off"}),h===3&&(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("start_generator")},children:"Turn on"}),h&&c&&(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return v("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",onClick:function(){return v("set_range")},children:"Set Field Range"}),(0,e.jsx)(n.$n,{icon:"bolt",onClick:function(){return v("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(n.$n,{selected:C===d,disabled:h===4,onClick:function(){return v("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},89501:function(P,y,t){"use strict";t.r(y),t.d(y,{OvermapShipSensors:function(){return i},OvermapShipSensorsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.viewing,u=m.on,h=m.range,c=m.health,d=m.max_health,p=m.heat,C=m.critical_heat,j=m.status,b=m.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eye",selected:v,onClick:function(){return f("viewing")},children:"Map View"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:u,onClick:function(){return f("toggle_sensor")},children:u?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:j}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{icon:"signal",onClick:function(){return f("range")},children:h})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(n.z2,{ranges:{good:[d*.75,1/0],average:[d*.25,d*.75],bad:[-1/0,d*.25]},value:c,maxValue:d,children:[c," / ",d]})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{ranges:{bad:[C*.75,1/0],average:[C*.5,C*.75],good:[-1/0,C*.5]},value:p,maxValue:C,children:p0||!p)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return m("cancel",{cancel:O+1})},children:"Cancel"})||null]},I)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:b.length&&b.map(function(I){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return m("queue",{queue:I.type})},children:(0,s.Sn)(I.name)})},I.name)})})]})})}},55725:function(P,y,t){"use strict";t.r(y),t.d(y,{PathogenicIsolator:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(68040),g=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.can_print,p=v.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!d,icon:"print",content:"Print",onClick:function(){return h("print",{type:"virus_record",vir:p.record})}}),(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:[p.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:p.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:p.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:p.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:p.symptoms.map(function(C){return(0,e.jsxs)(r.Ki.Item,{label:C.stage+". "+C.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",C.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",C.aggressiveness]})]},C.stage)})})})]})})})},x=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.isolating,p=(0,s.useState)(0),C=p[0],j=p[1],b=null;return C===0?b=(0,e.jsx)(f,{}):C===1&&(b=(0,e.jsx)(m,{})),(0,i.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(a.p8,{height:500,width:520,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[d&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return j(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return j(1)},children:"Database"})]}),b]})]})},f=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.syringe_inserted,p=c.pathogen_pool,C=c.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!C,onClick:function(){return h("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Syringe",disabled:!d,onClick:function(){return h("eject")}})]}),children:p.length&&p.map(function(j){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 #",j.unique_id]}),j.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",content:"Isolate",onClick:function(){return h("isolate",{isolate:j.reference})}}),(0,e.jsx)(r.$n,{icon:"search",content:"Database",disabled:!j.is_in_database,onClick:function(){return h("view_entry",{vir:j.record})}})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:j.name}),j.dna]})]},j.unique_id)})||(d?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.database,p=c.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!p,onClick:function(){return h("print",{type:"virus_list"})}}),children:d.length&&d.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return h("view_entry",{vir:C.record})},children:C.name},C.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},34557:function(P,y,t){"use strict";t.r(y),t.d(y,{Pda:function(){return f}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=t(82989),g=t(7339),x=function(h){var c;try{c=g("./"+h+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",h);throw p}var d=c[h];return d||(0,a.z)("missingExport",h)},f=function(h){var c=function(R){D(R)},d=(0,n.Oc)(),p=d.act,C=d.data,j=C.app,b=C.owner,I=C.useRetro;if(!b)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 O=x(j.template),_=(0,s.useState)(!1),M=_[0],D=_[1];return(0,e.jsx)(i.p8,{width:580,height:670,theme:I?"pda-retro":null,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(m,{settingsMode:M,onSettingsMode:c}),M&&(0,e.jsx)(v,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:j.icon,mr:1}),j.name]}),p:1,children:(0,e.jsx)(O,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(u,{onSettingsMode:c})]})})},m=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.idInserted,j=p.idLink,b=p.cartridge_name,I=p.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!C&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return d("Authenticate")},content:j})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:I}),(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 d("Retro")},icon:"adjust"})]})]})})},v=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.idInserted,j=p.idLink,b=p.cartridge_name,I=p.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",content:"Retro Theme",onClick:function(){return d("Retro")}})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!I,content:I?"Disabled":"Enabled",onClick:function(){return d("TouchSounds")}})}),!!b&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Eject")},content:b})}),!!C&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("Authenticate")},content:j})})]})})},u=function(h){var c=(0,n.Oc)(),d=c.act,p=c.data,C=p.app,j=p.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:j?"#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:C.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return d("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){h.onSettingsMode(!1),d("Home")}})})]})})}},47676:function(P,y,t){"use strict";t.r(y),t.d(y,{PersonalCrafting:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040);function a(u,h){(h==null||h>u.length)&&(h=u.length);for(var c=0,d=new Array(h);c=u.length?{done:!0}:{done:!1,value:u[d++]}}}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 m=function(u){for(var h,c=(0,n.Oc)(),d=c.act,p=c.data,C=p.busy,j=p.display_craftable_only,b=p.display_compact,I=p.crafting_recipes||{},O=[],_=[],M=f(Object.keys(I)),D;!(D=M()).done;){var A=D.value,R=I[A];if("has_subcats"in R){for(var K=f(Object.keys(R)),N;!(N=K()).done;){var k=N.value;if(k!=="has_subcats"){O.push({name:k,category:A,subcategory:k});for(var V=R[k],F=f(V),J;!(J=F()).done;){var H=J.value;_.push(g({},H,{category:k}))}}}continue}O.push({name:A,category:A});for(var Q=I[A],Z=f(Q),X;!(X=Z()).done;){var z=X.value;_.push(g({},z,{category:A}))}}var Y=(0,s.useState)((h=O[0])==null?void 0:h.name),ee=Y[0],oe=Y[1],ne=_.filter(function(ue){return ue.category===ee});return(0,e.jsx)(i.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{content:"Compact",checked:b,onClick:function(){return d("toggle_compact")}}),(0,e.jsx)(r.$n.Checkbox,{content:"Craftable Only",checked:j,onClick:function(){return d("toggle_recipes")}})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:O.map(function(ue){return(0,e.jsx)(r.tU.Tab,{selected:ue.name===ee,onClick:function(){oe(ue.name),d("set_category",{category:ue.category,subcategory:ue.subcategory})},children:ue.name},ue.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(v,{craftables:ne})})]})})]})})},v=function(u){var h=u.craftables,c=h===void 0?[]:h,d=(0,n.Oc)(),p=d.act,C=d.data,j=C.craftability,b=j===void 0?{}:j,I=C.display_compact,O=C.display_craftable_only;return c.map(function(_){return O&&!b[_.ref]?null:I?(0,e.jsx)(r.Ki.Item,{label:_.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!b[_.ref],tooltip:_.tool_text&&"Tools needed: "+_.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:_.ref})}}),children:_.req_text},_.name):(0,e.jsx)(r.wn,{title:_.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!b[_.ref],onClick:function(){return p("make",{recipe:_.ref})}}),children:(0,e.jsxs)(r.Ki,{children:[!!_.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:_.req_text}),!!_.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:_.catalyst_text}),!!_.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:_.tool_text})]})},_.name)})}},75226:function(P,y,t){"use strict";t.r(y),t.d(y,{Photocopier:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(f){var m=(0,s.Oc)().data,v=m.isAI,u=m.has_toner,h=m.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:v?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[u?(0,e.jsx)(a,{}):(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.jsx)(g,{}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted item."})}),!!v&&(0,e.jsx)(x,{})]})})},a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.max_toner,c=u.current_toner,d=h*.66,p=h*.33;return(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.z2,{ranges:{good:[d,h],average:[p,d],bad:[0,p]},value:c,minValue:0,maxValue:h})})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.num_copies,c=u.has_enough_toner;return(0,e.jsxs)(n.wn,{title:"Options",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:h,onDrag:function(d,p){return v("set_copies",{num_copies:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return v("make_copy")},children:"Copy"})})]}),(0,e.jsx)(n.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return v("remove")},children:"Remove item"})]})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.can_AI_print;return(0,e.jsx)(n.wn,{title:"AI Options",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!h,onClick:function(){return v("ai_photo")},children:"Print photo from database"})})})}},23393:function(P,y,t){"use strict";t.r(y),t.d(y,{PipeDispenser:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=t(62133),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.disposals,h=v.p_layer,c=v.pipe_layers,d=v.categories,p=d===void 0?[]:d,C=(0,s.useState)("categoryName"),j=C[0],b=C[1],I=p.find(function(O){return O.cat_name===j})||p[0];return(0,e.jsx)(i.p8,{width:425,height:515,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!u&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(c).map(function(O){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:c[O]===h,content:O,onClick:function(){return m("p_layer",{p_layer:c[O]})}},O)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:p.map(function(O,_){return(0,e.jsx)(r.tU.Tab,{fluid:!0,icon:a.ICON_BY_CATEGORY_NAME[O.cat_name],selected:O.cat_name===I.cat_name,onClick:function(){return b(O.cat_name)},children:O.cat_name},O.cat_name)})}),I==null?void 0:I.recipes.map(function(O){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,content:O.pipe_name,title:O.pipe_name,onClick:function(){return m("dispense_pipe",{ref:O.ref,bent:O.bent,category:I.cat_name})}},O.pipe_name)})]})]})})}},28165:function(P,y,t){"use strict";t.r(y),t.d(y,{PlantAnalyzer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)().data,f=250;return x.seed&&(f+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(f+=55,f+=20*x.reagents.length),(0,e.jsx)(r.p8,{width:400,height:f,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.no_seed,u=m.seed,h=m.reagents;return v?(0,e.jsx)(n.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(n.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return f("print")},children:"Print Report"}),(0,e.jsx)(n.$n,{icon:"window-close",color:"red",onClick:function(){return f("close")}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Plant Name",children:[u.name,"#",u.uid]}),(0,e.jsx)(n.Ki.Item,{label:"Endurance",children:u.endurance}),(0,e.jsx)(n.Ki.Item,{label:"Yield",children:u.yield}),(0,e.jsx)(n.Ki.Item,{label:"Maturation Time",children:u.maturation_time}),(0,e.jsx)(n.Ki.Item,{label:"Production Time",children:u.production_time}),(0,e.jsx)(n.Ki.Item,{label:"Potency",children:u.potency})]}),h.length&&(0,e.jsx)(n.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(n.Ki,{children:h.map(function(c){return(0,e.jsxs)(n.Ki.Item,{label:c.name,children:[c.volume," unit(s)."]},c.name)})})})||null,(0,e.jsx)(n.wn,{level:2,title:"Other Data",children:u.trait_info.map(function(c){return(0,e.jsx)(n.az,{color:"label",mb:.4,children:c},c)})})]})}},73304:function(P,y,t){"use strict";t.r(y),t.d(y,{PlayerNotes:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.device_theme,v=f.filter,u=f.pages,h=f.ckeys,c=function(d){return d()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:m,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Player notes",children:[(0,e.jsx)(n.$n,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(n.$n,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.$n.Input,{content:"CKEY to Open",onCommit:function(d,p){return x("show_player_info",{name:p})}}),(0,e.jsx)(n.cG,{vertical:!0}),(0,e.jsx)(n.$n,{color:"green",content:v,onClick:function(){return x("clear_player_info_filter")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.XI,{children:h.map(function(d){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"user",content:d.desc,onClick:function(){return x("show_player_info",{name:d.name})},children:d.name})})},d.name)})}),(0,e.jsx)(n.cG,{}),c(function(){for(var d=function(j){p.push((0,e.jsx)(n.$n,{onClick:function(){return x("set_page",{index:j})},children:j},j))},p=[],C=1;C=.5&&"good"||v>.15&&"average"||"bad";return(0,e.jsx)(i.p8,{width:450,height:340,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!m.anchored&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:m.active?"power-off":"times",onClick:function(){return f("toggle_power")},selected:m.active,disabled:!m.ready_to_boot,children:m.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:m.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:m.active,onClick:function(){return f("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:u,children:[m.fuel_stored,"cm\xB3 ",m.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:m.fuel_stored/m.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[m.fuel_stored,"cm\xB3 / ",m.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[m.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:m.temperature_current,maxValue:m.temperature_max+30,color:m.temperature_overheat?"bad":"good",children:[(0,s.LI)(m.temperature_current),"\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:m.unsafe_output?"bad":null,children:m.power_output}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return f("lower_power")},children:m.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return f("higher_power")},children:m.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!m.connected&&"bad",children:m.connected?m.power_available:"Unconnected"})})]})})]})})}},60185:function(P,y,t){"use strict";t.r(y),t.d(y,{PortablePump:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(62681),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.direction,u=m.target_pressure,h=m.default_pressure,c=m.min_pressure,d=m.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)(n.wn,{title:"Pump",buttons:(0,e.jsx)(n.$n,{icon:v?"sign-in-alt":"sign-out-alt",content:v?"In":"Out",selected:v,onClick:function(){return f("direction")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:d,value:u,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return f("pressure",{pressure:C})}})}),(0,e.jsxs)(n.Ki.Item,{label:"Presets",children:[(0,e.jsx)(n.$n,{icon:"minus",disabled:u===c,onClick:function(){return f("pressure",{pressure:"min"})}}),(0,e.jsx)(n.$n,{icon:"sync",disabled:u===h,onClick:function(){return f("pressure",{pressure:"reset"})}}),(0,e.jsx)(n.$n,{icon:"plus",disabled:u===d,onClick:function(){return f("pressure",{pressure:"max"})}})]})]})})]})})}},38605:function(P,y,t){"use strict";t.r(y),t.d(y,{PortableScrubber:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(62681),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.rate,u=m.minrate,h=m.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)(n.wn,{title:"Power Regulator",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:h,value:v,unit:"L/s",onChange:function(c,d){return f("volume_adj",{vol:d})}})})})})]})})}},81537:function(P,y,t){"use strict";t.r(y),t.d(y,{PortableTurret:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.locked,v=f.on,u=f.lethal,h=f.lethal_is_configurable,c=f.targetting_is_configurable,d=f.check_weapons,p=f.neutralize_noaccess,C=f.neutralize_norecord,j=f.neutralize_criminals,b=f.neutralize_all,I=f.neutralize_nonsynth,O=f.neutralize_unidentified,_=f.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)(n.IC,{children:["Swipe an ID card to ",m?"unlock":"lock"," this interface."]}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,disabled:m,onClick:function(){return x("power")}})}),!!h&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:u?"exclamation-triangle":"times",content:u?"On":"Off",color:u?"bad":"",disabled:m,onClick:function(){return x("lethal")}})})]})}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:j,content:"Wanted Criminals",disabled:m,onClick:function(){return x("autharrest")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,content:"No Sec Record",disabled:m,onClick:function(){return x("authnorecord")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:d,content:"Unauthorized Weapons",disabled:m,onClick:function(){return x("authweapon")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Access",disabled:m,onClick:function(){return x("authaccess")}})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:O,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:m,onClick:function(){return x("authxeno")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,content:"All Non-Synthetics",disabled:m,onClick:function(){return x("authsynth")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,content:"Downed Targets",disabled:m,onClick:function(){return x("authdown")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:b,content:"All Entities",disabled:m,onClick:function(){return x("authall")}})]})]})]})})}},16421:function(P,y,t){"use strict";t.r(y),t.d(y,{AreaCharge:function(){return d},PowerMonitor:function(){return u},PowerMonitorContent:function(){return h},PowerMonitorFocus:function(){return c},powerRank:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(5229),i=t(44583),a=t(4413),g=t(92514),x=t(68040);function f(){return f=Object.assign||function(C){for(var j=1;j50?"battery-half":"battery-quarter")||j===1&&"bolt"||j===2&&"battery-full",color:j===0&&(b>50?"yellow":"red")||j===1&&"yellow"||j===2&&"green"}),(0,e.jsx)(g.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(b)+"%"})]})},p=function(C){var j=C.status,b=!!(j&2),I=!!(j&1),O=(b?"On":"Off")+(" ["+(I?"auto":"manual")+"]");return(0,e.jsx)(g.BK,{color:b?"good":"bad",content:I?void 0:"M",title:O})}},63054:function(P,y,t){"use strict";t.r(y),t.d(y,{PressureRegulator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.pressure_set,u=f.max_pressure,h=f.input_pressure,c=f.output_pressure,d=f.regulate_mode,p=f.set_flow_rate,C=f.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(n.zv,{value:h/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:C/10})," L/s"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:m?"Unlocked":"Closed",selected:m,onClick:function(){return x("toggle_valve")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:"Off",selected:d===0,onClick:function(){return x("regulate_mode",{mode:"off"})}}),(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"Input",selected:d===1,onClick:function(){return x("regulate_mode",{mode:"input"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"Output",selected:d===2,onClick:function(){return x("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_press",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_press",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_press",{press:"set"})}})]}),children:[v/100," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_flow_rate",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_flow_rate",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_flow_rate",{press:"set"})}})]}),children:[p/10," L/s"]})]})})]})})}},21143:function(P,y,t){"use strict";t.r(y),t.d(y,{PrisonerManagement:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.locked,v=f.chemImplants,u=f.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m&&(0,e.jsxs)(n.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Interface Lock",buttons:(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(n.wn,{title:"Chemical Implants",children:v.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Inject"})]}),v.map(function(h){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.host}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[h.units,"u remaining"]}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:1})},children:"(1)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:5})},children:"(5)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:10})},children:"(10)"})]})]},h.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(n.wn,{title:"Tracking Implants",children:u.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Message"})]}),u.map(function(h){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[h.host," (",h.id,")"]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.loc}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{onClick:function(){return x("warn",{imp:h.ref})},children:"Message"})})]},h.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})})]})})})}},72128:function(P,y,t){"use strict";t.r(y),t.d(y,{RCON:function(){return m},RCONContent:function(){return v}});var e=t(88095),s=t(5229),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(68040),f=1e3,m=function(p){return(0,e.jsx)(x.p8,{width:630,height:540,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(p){var C=(0,r.useState)(0),j=C[0],b=C[1],I;return j===0?I=(0,e.jsx)(u,{}):j===1&&(I=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:j===0,onClick:function(){return b(0)},children:[(0,e.jsx)(a.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(a.tU.Tab,{selected:j===1,onClick:function(){return b(1)},children:[(0,e.jsx)(a.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(a.az,{m:2,children:I})]})},u=function(p){var C=(0,i.Oc)(),j=C.act,b=C.data,I=b.smes_info,O=b.pages,_=b.current_page,M=function(D){return D()};return(0,e.jsxs)(a.wn,{title:"SMESs (Page "+_+")",children:[(0,e.jsx)(a.BJ,{vertical:!0,children:I.map(function(D){return(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(h,{smes:D})},D.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),M(function(){for(var D=function(K){A.push((0,e.jsx)(a.$n,{selected:_===K,onClick:function(){return j("set_smes_page",{index:K})},children:K},K))},A=[],R=1;R=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",j.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",j.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",j.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:j.desc})]}),j.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,s.ZH)(j.chargetype)}),j.charges.map(function(I,O){return(0,e.jsx)(r.Ki.Item,{label:(0,s.ZH)(I.caption),children:(0,e.jsx)(r.$n,{selected:j.realchargetype===I.index,icon:"arrow-right",onClick:function(){return u("interact_module",{module:j.index,module_mode:"select_charge_type",charge_type:I.index})}})},I.caption)})]})})}):null]},j.name)})]})}},51065:function(P,y,t){"use strict";t.r(y),t.d(y,{Radio:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(1568),a=t(68040),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.rawfreq,h=v.minFrequency,c=v.maxFrequency,d=v.listening,p=v.broadcasting,C=v.subspace,j=v.subspaceSwitchable,b=v.chan_list,I=v.loudspeaker,O=v.mic_cut,_=v.spk_cut,M=v.useSyndMode,D=i.Fo.find(function(R){return R.freq===Number(u)}),A=156;return b&&b.length>0?A+=b.length*28+6:A+=24,j&&(A+=38),(0,e.jsx)(a.p8,{width:310,height:A,resizable:!0,theme:M?"syndicate":"",children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:h/10,maxValue:c/10,value:u/10,format:function(R){return(0,s.Mg)(R,1)},onDrag:function(R,K){return m("setFrequency",{freq:(0,s.LI)(K*10)})}}),D&&(0,e.jsxs)(r.az,{inline:!0,color:D.color,ml:2,children:["[",D.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:d?"volume-up":"volume-mute",selected:d,disabled:_,onClick:function(){return m("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:O,onClick:function(){return m("broadcast")}}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:C,content:"Subspace Tx "+(C?"ON":"OFF"),onClick:function(){return m("subspace")}})}),!!j&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:I?"volume-up":"volume-mute",selected:I,content:"Loudspeaker",onClick:function(){return m("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!b||b.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:b?b.map(function(R){var K=i.Fo.find(function(k){return k.freq===Number(R.freq)}),N="default";return K&&(N=K.color),(0,e.jsx)(r.Ki.Item,{label:R.display_name,labelColor:N,textAlign:"right",children:R.secure_channel&&C?(0,e.jsx)(r.$n,{icon:R.sec_channel_listen?"square-o":"check-square-o",selected:!R.sec_channel_listen,content:R.sec_channel_listen?"Off":"On",onClick:function(){return m("channel",{channel:R.chan})}}):(0,e.jsx)(r.$n,{content:"Switch",selected:R.chan===u,onClick:function(){return m("specFreq",{channel:R.chan})}})},R.chan)}):null})]})]})})}},62133:function(P,y,t){"use strict";t.r(y),t.d(y,{ICON_BY_CATEGORY_NAME:function(){return f},RapidPipeDispenser:function(){return c}});var e=t(88095),s=t(84352),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(68040),x=["Atmospherics","Disposals"],f={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},m=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],v=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category,I=j.selected_color,O=j.mode;return(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Category",children:x.map(function(_,M){return(0,e.jsx)(a.$n,{selected:b===M,icon:f[_],color:"transparent",onClick:function(){return C("category",{category:M})},children:_},_)})}),(0,e.jsx)(a.Ki.Item,{label:"Modes",children:(0,e.jsx)(a.BJ,{fill:!0,children:m.map(function(_){return(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n.Checkbox,{checked:O&_.bitmask,fluid:!0,content:_.name,onClick:function(){return C("mode",{mode:_.bitmask})}})},_.bitmask)})})}),(0,e.jsxs)(a.Ki.Item,{label:"Color",children:[(0,e.jsx)(a.az,{inline:!0,width:"64px",color:j.paint_colors[I],children:(0,n.ZH)(I)}),Object.keys(j.paint_colors).map(function(_){return(0,e.jsx)(a.BK,{ml:1,color:j.paint_colors[_],onClick:function(){return C("color",{paint_color:_})}},_)})]})]})})},u=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category,I=j.piping_layer,O=j.pipe_layers,_=j.preview_rows.flatMap(function(M){return M.previews});return(0,e.jsxs)(a.wn,{fill:!0,width:7.5,children:[b===0&&(0,e.jsx)(a.BJ,{vertical:!0,mb:1,children:Object.keys(O).map(function(M){return(0,e.jsx)(a.BJ.Item,{my:0,children:(0,e.jsx)(a.$n.Checkbox,{checked:O[M]===I,content:M,onClick:function(){return C("piping_layer",{piping_layer:O[M]})}})},M)})}),(0,e.jsx)(a.az,{width:"120px",children:_.map(function(M){return(0,e.jsx)(a.$n,{ml:0,title:M.dir_name,selected:M.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return C("setdir",{dir:M.dir,flipped:M.flipped})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["pipes32x32",M.dir+"-"+M.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},M.dir)})})]})},h=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.categories,I=b===void 0?[]:b,O=(0,r.useState)("categoryName"),_=O[0],M=O[1],D=I.find(function(A){return A.cat_name===_})||I[0];return(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(a.tU,{children:I.map(function(A,R){return(0,e.jsx)(a.tU.Tab,{fluid:!0,icon:f[A.cat_name],selected:A.cat_name===D.cat_name,onClick:function(){return M(A.cat_name)},children:A.cat_name},A.cat_name)})}),D==null?void 0:D.recipes.map(function(A){return(0,e.jsx)(a.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:A.selected,content:A.pipe_name,title:A.pipe_name,onClick:function(){return C("pipe_type",{pipe_type:A.pipe_index,category:D.cat_name})}},A.pipe_index)})]})},c=function(d){var p=(0,i.Oc)(),C=p.act,j=p.data,b=j.category;return(0,e.jsx)(g.p8,{width:550,height:570,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(v,{})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{})})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{})})]})})]})})})}},53112:function(P,y,t){"use strict";t.r(y),t.d(y,{RequestConsole:function(){return R}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=0,g=1,x=2,f=3,m=4,v=5,u=6,h=7,c=8,d=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!F,icon:F?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",F?"OFF":"ON"]})})},p=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(b,{dept_list:J,department:F})})},C=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(b,{dept_list:J,department:F})})},j=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(b,{dept_list:J,department:F})})},b=function(K){var N=(0,n.Oc)().act,k=K.dept_list,V=K.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(F){return F!==V&&(0,e.jsx)(r.Ki.Item,{label:F,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return N("write",{write:F,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:F,priority:2})},children:"High Priority"})]})})||null})})},I=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},O=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},_=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:F.length&&F.map(function(J,H){return(0,e.jsx)(r.Ki.Item,{label:(0,s.jT)(J[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return k("print",{print:H+1})},children:"Print"}),children:(0,s.jT)(J[1])},H)})||(0,e.jsx)(r.az,{children:"No messages."})})},M=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.message,J=V.recipient,H=V.priority,Q=V.msgStamped,Z=V.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+J,children:F}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:H===2?"High Priority":H===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:Z?"good":"bad",children:(0,s.jT)(Z)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:Q?"good":"bad",children:(0,s.jT)(Q)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return k("department",{department:J})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},D=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.department,J=V.screen,H=V.message_log,Q=V.newmessagepriority,Z=V.silent,X=V.announcementConsole,z=V.assist_dept,Y=V.supply_dept,ee=V.info_dept,oe=V.message,ne=V.recipient,ue=V.priority,ce=V.msgStamped,me=V.msgVerified,xe=V.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[xe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return k("writeAnnouncement")},children:"Edit"}),children:oe||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!oe||!xe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},A={};A[a]=d,A[g]=C,A[x]=p,A[f]=j,A[m]=I,A[v]=O,A[u]=_,A[h]=M,A[c]=D;var R=function(K){var N=(0,n.Oc)(),k=N.act,V=N.data,F=V.screen,J=V.newmessagepriority,H=V.announcementConsole,Q=A[F];return(0,e.jsx)(i.p8,{width:520,height:410,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:F===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:F===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:F===x,onClick:function(){return k("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:F===f,onClick:function(){return k("setScreen",{setScreen:f})},icon:"share-square-o",children:"Report"}),H&&(0,e.jsx)(r.tU.Tab,{selected:F===c,onClick:function(){return k("setScreen",{setScreen:c})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:F===a,onClick:function(){return k("setScreen",{setScreen:a})},icon:"cog"})]}),J&&(0,e.jsx)(r.wn,{title:J>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:J>1?"bad":"average",bold:J>1})||null,(0,e.jsx)(Q,{})]})})}},51634:function(P,y,t){"use strict";t.r(y),t.d(y,{ResearchConsole:function(){return I}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(68040);function g(){return g=Object.assign||function(O){for(var _=1;_=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:J.biomass>=150?"circle":"circle-o"}),"\xA0",J.biomass]}),Q]},H)}):null},I=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.sleevers,V=N.spods,F=N.selected_sleever;return k&&k.length?k.map(function(J,H){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(J.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:J.occupied?"label":"bad",children:J.name}),(0,e.jsx)(r.$n,{selected:F===J.sleever,icon:F===J.sleever&&"check",content:"Select",mt:V&&V.length?"3rem":"1.5rem",onClick:function(){return K("selectsleever",{ref:J.sleever})}})]},H)}):null},O=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.spods,V=N.selected_printer;return k&&k.length?k.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:V===F.spod,icon:V===F.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return K("selectprinter",{ref:F.spod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(F.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:"label",children:F.name}),(0,e.jsxs)(r.az,{bold:!0,color:F.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.steel>=15e3?"circle":"circle-o"}),"\xA0",F.steel]}),(0,e.jsxs)(r.az,{bold:!0,color:F.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.glass>=15e3?"circle":"circle-o"}),"\xA0",F.glass]}),H]},J)}):null},_=function(A){var R=(0,n.Oc)().act,K=A.records,N=A.actToDo;return K.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:K.map(function(k,V){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:k.name,onClick:function(){return R(N,{ref:k.recref})}},V)})}):(0,e.jsx)(r.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},M=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.temp;if(!(!k||!k.text||k.text.length<=0)){var V,F=(V={},V[k.style]=!0,V);return(0,e.jsxs)(r.IC,g({},F,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:k.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return K("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},D=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.pods,V=N.spods,F=N.sleevers,J=N.autoallowed,H=N.autoprocess,Q=N.disk;return(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Pods",children:k&&k.length?(0,e.jsxs)(r.az,{color:"good",children:[k.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"SynthFabs",children:V&&V.length?(0,e.jsxs)(r.az,{color:"good",children:[V.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Sleevers",children:F&&F.length?(0,e.jsxs)(r.az,{color:"good",children:[F.length," Connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},26967:function(P,y,t){"use strict";t.r(y),t.d(y,{ResleevingPod:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)().data,x=g.occupied,f=g.name,m=g.health,v=g.maxHealth,u=g.stat,h=g.mindStatus,c=g.mindName,d=g.resleeveSick,p=g.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:u===2?(0,e.jsx)(n.az,{color:"bad",children:"DEAD"}):u===1?(0,e.jsx)(n.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:m/v,children:[m,"%"]})}),(0,e.jsx)(n.Ki.Item,{label:"Mind Status",children:h?"Present":"Missing"}),h?(0,e.jsx)(n.Ki.Item,{label:"Mind Occupying",children:c}):""]}),d?(0,e.jsxs)(n.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(n.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},74367:function(P,y,t){"use strict";t.r(y),t.d(y,{RoboticsControlConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.can_hack,u=m.safety,h=m.show_detonate_all,c=m.cyborgs,d=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!h&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:u?"lock":"unlock",content:u?"Disable Safety":"Enable Safety",selected:u,onClick:function(){return f("arm",{})}}),(0,e.jsx)(n.$n,{icon:"bomb",disabled:u,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return f("nuke",{})}})]}),(0,e.jsx)(a,{cyborgs:d,can_hack:v})]})})},a=function(g){var x=g.cyborgs,f=g.can_hack,m=(0,s.Oc)(),v=m.act,u=m.data;return x.length?x.map(function(h){return(0,e.jsx)(n.wn,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!h.hackable&&!h.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return v("hackbot",{ref:h.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:h.locked_down?"unlock":"lock",color:h.locked_down?"good":"default",content:h.locked_down?"Release":"Lockdown",disabled:!u.auth,onClick:function(){return v("stopbot",{ref:h.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"bomb",content:"Detonate",disabled:!u.auth,color:"bad",onClick:function(){return v("killbot",{ref:h.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:h.status?"bad":h.locked_down?"average":"good",children:h.status?"Not Responding":h.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:h.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:h.health>50?"good":"bad",value:h.health/100})}),typeof h.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:h.charge>30?"good":"bad",value:h.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:h.cell_capacity<3e4?"average":"good",children:h.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!h.is_hacked&&(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Module",children:h.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:h.synchronization?"default":"average",children:h.synchronization||"None"})})]})},h.ref)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},35401:function(P,y,t){"use strict";t.r(y),t.d(y,{RogueZones:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.timeout_percent,v=f.diffstep,u=f.difficulty,h=f.occupied,c=f.scanning,d=f.updated,p=f.debug,C=f.shuttle_location,j=f.shuttle_at_station,b=f.scan_ready,I=f.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Current Area",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Mineral Content",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Shuttle Location",buttons:I&&(0,e.jsx)(n.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),h&&(0,e.jsxs)(n.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",h," personnel!"]})||(0,e.jsx)(n.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(n.wn,{title:"Scanner",buttons:(0,e.jsx)(n.$n,{disabled:!b,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(n.z2,{value:m,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.jsx)(n.Ki.Item,{label:"Scanning",children:"In progress."})||null,d&&!c&&(0,e.jsx)(n.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(n.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(n.az,{children:["Timeout Percent: ",m]}),(0,e.jsxs)(n.az,{children:["Diffstep: ",v]}),(0,e.jsxs)(n.az,{children:["Difficulty: ",u]}),(0,e.jsxs)(n.az,{children:["Occupied: ",h]}),(0,e.jsxs)(n.az,{children:["Debug: ",p]}),(0,e.jsxs)(n.az,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(n.az,{children:["Shuttle at station: ",j]}),(0,e.jsxs)(n.az,{children:["Scan Ready: ",b]})]})||null]})})]})})}},45653:function(P,y,t){"use strict";t.r(y),t.d(y,{RustCoreMonitor:function(){return i},RustCoreMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.cores;return(0,e.jsx)(n.wn,{title:"Cores",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Field Status"}),(0,e.jsx)(n.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(n.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(n.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(n.XI.Cell,{children:"Plasma Content"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.has_field?"Online":"Offline",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_active",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.reactant_dump?"Dump":"Maintain",selected:u.has_field,disabled:!u.core_operational,onClick:function(){return f("toggle_reactantdump",{core:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.field_instability}),(0,e.jsx)(n.XI.Cell,{children:u.field_temperature}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!u.has_field&&"yellow",value:u.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(h,c){return f("set_fieldstr",{core:u.ref,fieldstr:c})}})}),(0,e.jsx)(n.XI.Cell,{})]},u.name)})]})})}},39899:function(P,y,t){"use strict";t.r(y),t.d(y,{RustFuelContent:function(){return a},RustFuelControl:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.fuels;return(0,e.jsx)(n.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return f("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(n.XI.Cell,{children:"Fuel Rod Composition"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:u.active?"Online":"Offline",selected:u.active,disabled:!u.deployed,onClick:function(){return f("toggle_active",{fuel:u.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_amt}),(0,e.jsx)(n.XI.Cell,{children:u.fuel_type})]},u.name)})]})})}},19208:function(P,y,t){"use strict";t.r(y),t.d(y,{Secbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.on,v=f.open,u=f.locked,h=f.idcheck,c=f.check_records,d=f.check_arrest,p=f.arrest_type,C=f.declare_arrests,j=f.bot_patrolling,b=f.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:u?"good":"bad",children:u?"Locked":"Unlocked"})]})}),!u&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("idcheck")},children:h?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(n.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return x("ignorerec")},children:c?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(n.$n,{icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){return x("ignorearr")},children:d?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(n.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!j&&(0,e.jsx)(n.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(n.$n,{icon:b?"toggle-on":"toggle-off",selected:b,onClick:function(){return x("patrol")},children:b?"Yes":"No"})})]})})||null]})})}},46226:function(P,y,t){"use strict";t.r(y),t.d(y,{SecureSafe:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=m.locked,h=m.l_setshort,c=m.code,d=m.emagged;return(0,e.jsx)(n.az,{width:"185px",children:(0,e.jsx)(n.XI,{width:"1px",children:v.map(function(p){return(0,e.jsx)(n.XI.Cell,{children:p.map(function(C){return(0,e.jsx)(n.$n,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!d||!!h&&1||C!=="R"&&!u||c==="ERROR"&&C!=="R"&&1,onClick:function(){return f("type",{digit:C})}},C)})},p[0])})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.code,u=m.l_setshort,h=m.l_set,c=m.emagged,d=m.locked,p=!(h||u);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.az,{m:"6px",children:[p&&(0,e.jsx)(n.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(n.wn,{height:"60px",children:(0,e.jsx)(n.az,{textAlign:"center",position:"center",fontSize:"35px",children:v&&v||(0,e.jsx)(n.az,{textColor:d?"red":"green",children:d?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(n.so,{ml:"3px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i,{})}),(0,e.jsx)(n.so.Item,{ml:"6px",width:"129px"})]})]})})})}},34200:function(P,y,t){"use strict";t.r(y),t.d(y,{SecurityRecords:function(){return m}});var e=t(88095),s=t(4413),n=t(92514),r=t(5425),i=t(68040),a=t(71451),g=t(1887),x=t(82489),f=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},m=function(C){var j=(0,s.Oc)().data,b=j.authenticated,I=j.screen;if(!b)return(0,e.jsx)(i.p8,{width:700,height:680,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var O;return I===2?O=(0,e.jsx)(v,{}):I===3?O=(0,e.jsx)(u,{}):I===4&&(O=(0,e.jsx)(h,{})),(0,e.jsxs)(i.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(n.wn,{flexGrow:!0,children:O})]})]})},v=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(_,M){return b("search",{t1:M})}}),(0,e.jsx)(n.az,{mt:"0.5rem",children:O.map(function(_,M){return(0,e.jsx)(n.$n,{icon:"user",mb:"0.5rem",color:_.color,content:_.id+": "+_.name+" (Criminal Status: "+_.criminal+")",onClick:function(){return b("d_rec",{d_rec:_.ref})}},M)})})]})},u=function(C){var j=(0,s.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return j("del_all")}})]})},h=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.security,_=I.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Security Data",children:(0,e.jsx)(d,{})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!O.empty,content:"Delete Security Record",color:"bad",onClick:function(){return b("del_r")}}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!O.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return b("del_r_2")}}),(0,e.jsx)(n.$n,{icon:_?"spinner":"print",disabled:_,iconSpin:!!_,content:"Print Entry",ml:"0.5rem",onClick:function(){return b("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return b("screen",{screen:2})}})]})]})},c=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.general;return!O||!O.fields?(0,e.jsx)(n.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:O.fields.map(function(_,M){return(0,e.jsxs)(n.Ki.Item,{label:_.field,children:[(0,e.jsx)(n.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:_.value}),!!_.edit&&(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return f(_)}})]},M)})})}),(0,e.jsxs)(n.so.Item,{textAlign:"right",children:[!!O.has_photos&&O.photos.map(function(_,M){return(0,e.jsxs)(n.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:_.substr(1,_.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",M+1]},M)}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return b("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(n.$n,{onClick:function(){return b("photo_side")},children:"Update Side Photo"})]})]})]})},d=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.security;return!O||!O.fields?(0,e.jsxs)(n.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(n.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return b("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki,{children:O.fields.map(function(_,M){return(0,e.jsx)(n.Ki.Item,{label:_.field,children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,children:[_.value,(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",mb:_.line_break?"1rem":"initial",onClick:function(){return f(_)}})]})},M)})}),(0,e.jsxs)(n.wn,{title:"Comments/Log",children:[O.comments.length===0?(0,e.jsx)(n.az,{color:"label",children:"No comments found."}):O.comments.map(function(_,M){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,children:_.header}),(0,e.jsx)("br",{}),_.text,(0,e.jsx)(n.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return b("del_c",{del_c:M+1})}})]},M)}),(0,e.jsx)(n.$n,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},p=function(C){var j=(0,s.Oc)(),b=j.act,I=j.data,O=I.screen;return(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:O===2,icon:"list",onClick:function(){return b("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(n.tU.Tab,{icon:"wrench",selected:O===3,onClick:function(){return b("screen",{screen:3})},children:"Record Maintenance"})]})}},2930:function(P,y,t){"use strict";t.r(y),t.d(y,{SeedStorage:function(){return g}});var e=t(88095),s=t(11358),n=t(33854),r=t(4413),i=t(92514),a=t(68040),g=function(x){var f=(0,r.Oc)(),m=f.act,v=f.data,u=v.scanner,h=v.seeds,c=(0,s.Ul)(function(d){return d.name.toLowerCase()})(h);return(0,e.jsx)(a.p8,{width:600,height:760,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(i.wn,{title:"Seeds",children:c.map(function(d){return(0,e.jsxs)(i.so,{spacing:1,mt:-1,children:[(0,e.jsx)(i.so.Item,{basis:"60%",children:(0,e.jsx)(i.Nt,{title:(0,n.Sn)(d.name)+" #"+d.uid,children:(0,e.jsx)(i.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(i.Ki,{children:Object.keys(d.traits).map(function(p){return(0,e.jsx)(i.Ki.Item,{label:(0,n.Sn)(p),children:d.traits[p]},p)})})})})}),(0,e.jsxs)(i.so.Item,{mt:.4,children:[d.amount," Remaining"]}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"download",onClick:function(){return m("vend",{id:d.id})},children:"Vend"})}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"trash",onClick:function(){return m("purge",{id:d.id})},children:"Purge"})})]},d.name+d.uid)})})})})}},7249:function(P,y,t){"use strict";t.r(y),t.d(y,{ShieldCapacitor:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.active,h=v.time_since_fail,c=v.stored_charge,d=v.max_charge,p=v.charge_rate,C=v.max_charge_rate;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:u,content:u?"Online":"Offline",onClick:function(){return m("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:h>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:c,format:function(j){return(0,i.QL)(j,0,"J")}})," ","(",(0,e.jsx)(r.zv,{value:100*(0,s.LI)(c/d,1)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:p,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(j){return(0,i.d5)(j)},onDrag:function(j,b){return m("charge_rate",{rate:b})}})})]})})})})}},28010:function(P,y,t){"use strict";t.r(y),t.d(y,{ShieldGenerator:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=t(13221),x=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.locked;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:d?(0,e.jsx)(f,{}):(0,e.jsx)(m,{})})})},f=function(v){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},m=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.lockedData,p=d.capacitors,C=d.active,j=d.failing,b=d.radius,I=d.max_radius,O=d.z_range,_=d.max_z_range,M=d.average_field_strength,D=d.target_field_strength,A=d.max_field_strength,R=d.shields,K=d.upkeep,N=d.strengthen_rate,k=d.max_strengthen_rate,V=d.gen_power,F=(p||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:j?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ki.Item,{label:"Overall Field Strength",children:[(0,s.LI)(M,2)," Renwick (",D&&(0,s.LI)(100*M/D,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,i.d5)(K)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,i.d5)(V)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[R," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:F?p.map(function(J,H){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+H,children:[J.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Charge",children:[(0,i.QL)(J.stored_charge,0,"J")," (",100*(0,s.LI)(J.stored_charge/J.max_charge,2),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:J.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},H)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:C?"Online":"Offline",selected:C,onClick:function(){return h("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:I,value:b,unit:"m",onDrag:function(J,H){return h("change_radius",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:_,value:O,unit:"vertical range",onDrag:function(J,H){return h("z_range",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:k,value:N,format:function(J){return(0,s.LI)(J,1)},unit:"Renwick/s",onDrag:function(J,H){return h("strengthen_rate",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:A,value:D,unit:"Renwick",onDrag:function(J,H){return h("target_field_strength",{val:H})}})})]})})]})}},52735:function(P,y,t){"use strict";t.r(y),t.d(y,{ShutoffMonitor:function(){return i},ShutoffMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.valves;return(0,e.jsx)(n.wn,{title:"Valves",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Open"}),(0,e.jsx)(n.XI.Cell,{children:"Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),v.map(function(u){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:u.name}),(0,e.jsxs)(n.XI.Cell,{children:[u.x,", ",u.y,", ",u.z]}),(0,e.jsx)(n.XI.Cell,{children:u.open?"Yes":"No"}),(0,e.jsx)(n.XI.Cell,{children:u.enabled?"Auto":"Manual"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:u.open?"Opened":"Closed",selected:u.open,disabled:!u.enabled,onClick:function(){return f("toggle_open",{valve:u.ref})}}),(0,e.jsx)(n.$n,{icon:"power-off",content:u.enabled?"Auto":"Manual",selected:u.enabled,onClick:function(){return f("toggle_enable",{valve:u.ref})}})]})]},u.name)})]})})}},72736:function(P,y,t){"use strict";t.r(y),t.d(y,{ShuttleControl:function(){return h}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(68040),a=function(c,d){var p="ERROR",C="bad",j=!1;return c==="docked"?(p="DOCKED",C="good"):c==="docking"?(p="DOCKING",C="average",j=!0):c==="undocking"?(p="UNDOCKING",C="average",j=!0):c==="undocked"&&(p="UNDOCKED",C="#676767"),j&&d&&(p=p+"-MANUAL"),(0,e.jsx)(r.az,{color:C,children:p})},g=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=c.engineName,b=j===void 0?"Bluespace Drive":j,I=C.shuttle_status,O=C.shuttle_state,_=C.has_docking,M=C.docking_status,D=C.docking_override,A=C.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:I}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:b,children:O==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||O==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||O==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:a(M,D)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("set_codes")},children:A||"Not Set"})})]})||null]})]})},x=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_launch,b=C.can_cancel,I=C.can_force;return(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("move")},disabled:!j,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("cancel")},disabled:!b,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("force")},color:"bad",disabled:!I,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},f=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},m=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_cloak,b=C.can_pick,I=C.legit,O=C.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[j&&(0,e.jsx)(r.Ki.Item,{label:I?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:O?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{content:c.destination_name,icon:"taxi",disabled:!b,onClick:function(){return p("pick")}})})]})}),(0,e.jsx)(x,{})]})},v=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.can_pick,b=C.destination_name,I=C.fuel_usage,O=C.fuel_span,_=C.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{engineName:"Engines"}),(0,e.jsx)(r.wn,{title:"Jump Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!j,onClick:function(){return p("pick")},children:b})}),I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:O,children:[_," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[I," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},u=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.autopilot,b=C.can_rename,I=C.shuttle_state,O=C.is_moving,_=C.skip_docking,M=C.docking_status,D=C.docking_override,A=C.shuttle_location,R=C.can_cloak,K=C.cloaked,N=C.can_autopilot,k=C.routes,V=C.is_in_transit,F=C.travel_progress,J=C.time_left,H=C.doors,Q=C.sensors;return(0,e.jsxs)(e.Fragment,{children:[j&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:b&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:I==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,s.Sn)(A)}),!_&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:M==="docked",disabled:M!=="undocked"&&M!=="docked",onClick:function(){return p("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:M==="undocked",disabled:M!=="docked"&&M!=="undocked",onClick:function(){return p("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:a(M,D)})})||null,R&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:K,icon:K?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:K?"Enabled":"Disabled"})})||null,N&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:j,icon:j?"eye":"eye-o",onClick:function(){return p("toggle_autopilot")},children:j?"Enabled":"Disabled"})})||null]})||null]}),!O&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:k.length&&k.map(function(Z){return(0,e.jsx)(r.Ki.Item,{label:Z.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return p("traverse",{traverse:Z.index})},children:Z.travel_time})},Z.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),V&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:F,children:[J,"s"]})})})})||null,Object.keys(H).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(H).map(function(Z){var X=H[Z];return(0,e.jsxs)(r.Ki.Item,{label:Z,children:[X.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",X.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},Z)})})})||null,Object.keys(Q).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(Q).map(function(Z,X){var z=Q[Z];return z.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:Z,color:"bad",children:"Unable to get sensor air reading."},X):(0,e.jsx)(r.Ki.Item,{label:Z,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[z.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[z.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[z.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[z.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[z.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[z.phoron,"%"]}),z.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[z.other,"%"]})||null]})},Z)})})})||null]})},h=function(c){var d=(0,n.Oc)(),p=d.act,C=d.data,j=C.subtemplate,b=C.destination_name;return(0,e.jsx)(i.p8,{width:470,height:j==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(i.p8.Content,{children:j==="ShuttleControlConsoleDefault"&&(0,e.jsx)(f,{})||j==="ShuttleControlConsoleMulti"&&(0,e.jsx)(m,{destination_name:b})||j==="ShuttleControlConsoleExploration"&&(0,e.jsx)(v,{})||j==="ShuttleControlConsoleWeb"&&(0,e.jsx)(u,{})})})}},42053:function(P,y,t){"use strict";t.r(y),t.d(y,{Signaler:function(){return a},SignalerContent:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(){return(0,e.jsx)(i.p8,{width:280,height:132,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.code,h=v.frequency,c=v.minFrequency,d=v.maxFrequency;return(0,e.jsxs)(r.wn,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:d/10,value:h/10,format:function(p){return(0,s.Mg)(p,1)},width:"80px",onDrag:function(p,C){return m("freq",{freq:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return m("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.xA,{mt:.6,children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(p,C){return m("code",{code:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return m("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.xA,{mt:.8,children:(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return m("signal")}})})})]})}},30636:function(P,y,t){"use strict";t.r(y),t.d(y,{Sleeper:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},f=["bad","average","average","good","average","average","bad"],m=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.hasOccupant,_=O?(0,e.jsx)(v,{}):(0,e.jsx)(p,{});return(0,e.jsx)(i.p8,{width:550,height:760,children:(0,e.jsx)(i.p8.Content,{className:"Layout__content--flexColumn",children:_})})},v=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.occupant,_=I.dialysis,M=I.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(h,{}),(0,e.jsx)(c,{title:"Dialysis",active:_,actToDo:"togglefilter"}),(0,e.jsx)(c,{title:"Stomach Pump",active:M,actToDo:"togglepump"}),(0,e.jsx)(d,{})]})},u=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.occupant,_=I.auto_eject_dead,M=I.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:_?"toggle-on":"toggle-off",selected:_,content:_?"On":"Off",onClick:function(){return b("auto_eject_dead_"+(_?"off":"on"))}}),(0,e.jsx)(r.$n,{icon:"user-slash",content:"Eject",onClick:function(){return b("ejectify")}}),(0,e.jsx)(r.$n,{content:M,onClick:function(){return b("changestasis")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:O.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:O.maxHealth,value:O.health/O.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(O.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[O.stat][0],children:a[O.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:O.maxTemp,value:O.bodyTemperature/O.maxTemp,color:f[O.temperatureSuitability+3],children:[(0,s.LI)(O.btCelsius,0),"\xB0C,",(0,s.LI)(O.btFaren,0),"\xB0F"]})}),!!O.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:O.bloodMax,value:O.bloodLevel/O.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[O.bloodPercent,"%, ",O.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[O.pulse," BPM"]})]})]})})},h=function(C){var j=(0,n.Oc)().data,b=j.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:g.map(function(I,O){return(0,e.jsx)(r.Ki.Item,{label:I[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:b[I[1]]/100,ranges:x,children:(0,s.LI)(b[I[1]],0)},O)},O)})})})},c=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.isBeakerLoaded,_=I.beakerMaxSpace,M=I.beakerFreeSpace,D=C.active,A=C.actToDo,R=C.title,K=D&&M>0;return(0,e.jsx)(r.wn,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!O||M<=0,selected:K,icon:K?"toggle-on":"toggle-off",content:K?"Active":"Inactive",onClick:function(){return b(A)}}),(0,e.jsx)(r.$n,{disabled:!O,icon:"eject",content:"Eject",onClick:function(){return b("removebeaker")}})]}),children:O?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:_,value:M/_,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[M,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},d=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.occupant,_=I.chemicals,M=I.maxchem,D=I.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:_.map(function(A,R){var K="",N;return A.overdosing?(K="bad",N=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):A.od_warning&&(K="average",N=(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.wn,{title:A.title,level:"3",mx:"0",lineHeight:"18px",buttons:N,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:M,value:A.occ_amount/M,color:K,mr:"0.5rem",children:[A.pretty_amount,"/",M,"u"]}),D.map(function(k,V){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>M||O.stat===2,icon:"syringe",content:k,mb:"0",height:"19px",onClick:function(){return b("chemical",{chemid:A.id,amount:k})}},V)})]})})},R)})})},p=function(C){var j=(0,n.Oc)(),b=j.act,I=j.data,O=I.isBeakerLoaded;return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",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.",O&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",content:"Remove Beaker",onClick:function(){return b("removebeaker")}})})||null]})})})}},438:function(P,y,t){"use strict";t.r(y),t.d(y,{SmartVend:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.config,v=x.data;return(0,e.jsx)(i.p8,{width:500,height:550,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[v.secure&&(0,e.jsx)(r.IC,{danger:v.locked===-1,info:v.locked!==-1,children:v.locked===-1?(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||null,v.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",m.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,s.Tj)(function(u,h){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:u.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[u.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{content:"1",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:1})}}),(0,e.jsx)(r.$n,{content:"5",disabled:u.amount<5,onClick:function(){return f("Release",{index:u.index,amount:5})}}),(0,e.jsx)(r.$n,{content:"25",disabled:u.amount<25,onClick:function(){return f("Release",{index:u.index,amount:25})}}),(0,e.jsx)(r.$n,{content:"50",disabled:u.amount<50,onClick:function(){return f("Release",{index:u.index,amount:50})}}),(0,e.jsx)(r.$n,{content:"Custom",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index})}}),(0,e.jsx)(r.$n,{content:"All",disabled:u.amount<1,onClick:function(){return f("Release",{index:u.index,amount:u.amount})}})]})]},h)})(v.contents)]})]})})})}},99278:function(P,y,t){"use strict";t.r(y),t.d(y,{Smes:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=1e3,x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.capacityPercent,c=u.capacity,d=u.charge,p=u.inputAttempt,C=u.inputting,j=u.inputLevel,b=u.inputLevelMax,I=u.inputAvailable,O=u.outputAttempt,_=u.outputting,M=u.outputLevel,D=u.outputLevelMax,A=u.outputUsed,R=h>=100&&"good"||C&&"average"||"bad",K=_&&"good"||d>0&&"average"||"bad";return(0,e.jsx)(a.p8,{width:400,height:350,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsxs)(r.z2,{value:h*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,s.LI)(d/(1e3*60),1)," kWh /",(0,s.LI)(c/(1e3*60))," kWh (",h,"%)"]})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return v("tryinput")},children:p?"On":"Off"}),children:(0,e.jsx)(r.az,{color:R,children:h>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:j===0,onClick:function(){return v("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:j===0,onClick:function(){return v("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:j/g,fillValue:I/g,minValue:0,maxValue:b/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("input",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:j===b,onClick:function(){return v("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:j===b,onClick:function(){return v("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,i.d5)(I)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:O?"power-off":"times",selected:O,onClick:function(){return v("tryoutput")},children:O?"On":"Off"}),children:(0,e.jsx)(r.az,{color:K,children:_?"Sending":d>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:M===0,onClick:function(){return v("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:M===0,onClick:function(){return v("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:M/g,minValue:0,maxValue:D/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("output",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:M===D,onClick:function(){return v("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:M===D,onClick:function(){return v("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,i.d5)(A)})]})})]})})}},42456:function(P,y,t){"use strict";t.r(y),t.d(y,{SolarControl:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(g){var x=(0,n.Oc)(),f=x.act,m=x.data,v=m.generated,u=m.generated_ratio,h=m.sun_angle,c=m.array_angle,d=m.rotation_rate,p=m.max_rotation_rate,C=m.tracking_state,j=m.connected_panels,b=m.connected_tracker;return(0,e.jsx)(i.p8,{width:380,height:230,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Scan for new hardware",onClick:function(){return f("refresh")}}),children:(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:b?"good":"bad",children:b?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:j>0?"good":"bad",children:j})]})}),(0,e.jsx)(r.xA.Column,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:u,children:v+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[h,"\xB0"]})]})})]})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",content:"Off",selected:C===0,onClick:function(){return f("tracking",{mode:0})}}),(0,e.jsx)(r.$n,{icon:"clock-o",content:"Timed",selected:C===1,onClick:function(){return f("tracking",{mode:1})}}),(0,e.jsx)(r.$n,{icon:"sync",content:"Auto",selected:C===2,disabled:!b,onClick:function(){return f("tracking",{mode:2})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(C===0||C===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(I){var O=Math.sign(I)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(I))+O},onDrag:function(I,O){return f("azimuth",{value:O})}}),C===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:d,format:function(I){var O=Math.sign(I)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(I))+O},onDrag:function(I,O){return f("azimuth_rate",{value:O})}}),C===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}},96031:function(P,y,t){"use strict";t.r(y),t.d(y,{SpaceHeater:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(1568),i=t(68040),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.temp,u=m.minTemp,h=m.maxTemp,c=m.cell,d=m.power;return(0,e.jsx)(i.p8,{width:300,height:250,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Target Temperature",children:[v," K (",v-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(n.Ki.Item,{label:"Current Charge",children:[d,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Wx,{children:[(0,e.jsx)(n.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(n.N6,{animated:!0,value:v-r.Ai,minValue:u-r.Ai,maxValue:h-r.Ai,unit:"C",onChange:function(p,C){return f("temp",{newtemp:C+r.Ai})}})}),(0,e.jsx)(n.Wx.Item,{label:"Cell",children:c?(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Cell",onClick:function(){return f("cellremove")}}):(0,e.jsx)(n.$n,{icon:"car-battery",content:"Insert Cell",onClick:function(){return f("cellinstall")}})})]})})]})})}},98932:function(P,y,t){"use strict";t.r(y),t.d(y,{Stack:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040);function i(h,c){(c==null||c>h.length)&&(c=h.length);for(var d=0,p=new Array(c);d=h.length?{done:!0}:{done:!1,value:h[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.amount,j=p.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Amount: "+C,children:(0,e.jsx)(f,{recipes:j})})})})},f=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=h.recipes,j=Object.keys(C).sort();return j.map(function(b,I){var O=C[b];return O.ref===void 0?(0,e.jsx)(n.Nt,{ml:1,mb:-.7,color:"label",title:b,children:(0,e.jsx)(n.az,{ml:1,children:(0,e.jsx)(f,{recipes:O})})},I):(0,e.jsx)(u,{title:b,recipe:O},I)})},m=function(h,c){return h.req_amount>c?0:Math.floor(c/h.req_amount)},v=function(h){for(var c=function(){var A=D.value;I>=A&&_.push((0,e.jsx)(n.$n,{content:A*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:A})}}))},d=(0,s.Oc)(),p=d.act,C=d.data,j=h.recipe,b=h.maxMultiplier,I=Math.min(b,Math.floor(j.max_res_amount/j.res_amount)),O=[5,10,25],_=[],M=g(O),D;!(D=M()).done;)c();return O.indexOf(I)===-1&&_.push((0,e.jsx)(n.$n,{content:I*j.res_amount+"x",onClick:function(){return p("make",{ref:j.ref,multiplier:I})}})),_},u=function(h){var c=(0,s.Oc)(),d=c.act,p=c.data,C=p.amount,j=h.recipe,b=h.title,I=j.res_amount,O=j.max_res_amount,_=j.req_amount,M=j.ref,D=b;D+=" (",D+=_+" ",D+="sheet"+(_>1?"s":""),D+=")",I>1&&(D=I+"x "+D);var A=m(j,C);return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.XI,{children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,disabled:!A,icon:"wrench",content:D,onClick:function(){return d("make",{ref:j.ref,multiplier:1})}})}),O>1&&A>1&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(v,{recipe:j,maxMultiplier:A})})]})})})}},47441:function(P,y,t){"use strict";t.r(y),t.d(y,{StationAlertConsole:function(){return i},StationAlertConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.categories,u=v===void 0?[]:v;return u.map(function(h){return(0,e.jsx)(n.wn,{title:h.category,children:(0,e.jsxs)("ul",{children:[h.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),h.alarms.map(function(c){var d="";return c.has_cameras?d=(0,e.jsx)(n.wn,{children:c.cameras.map(function(p){return(0,e.jsx)(n.$n,{disabled:p.deact,content:p.name+(p.deact?" (deactived)":""),icon:"video",onClick:function(){return f("switchTo",{camera:p.camera})}},p.name)})}):c.lost_sources&&(d=(0,e.jsxs)(n.az,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.jsxs)("li",{children:[c.name,c.origin_lost?(0,e.jsx)(n.az,{color:"bad",children:"Alarm Origin Lost."}):"",d]},c.name)})]})},h.category)})}},89052:function(P,y,t){"use strict";t.r(y),t.d(y,{StationBlueprints:function(){return i},StationBlueprintsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(a,{})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=x.config,u=m.mapRef,h=m.areas,c=m.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(n.D1,{className:"CameraConsole__map",params:{id:u,type:"map"}})})]})}},38501:function(P,y,t){"use strict";t.r(y),t.d(y,{StockExchange:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.screen,C=d.stationName,j;return p==="stocks"?j=(0,e.jsx)(a,{}):p==="logs"?j=(0,e.jsx)(f,{}):p==="archive"?j=(0,e.jsx)(m,{}):p==="graph"&&(j=(0,e.jsx)(v,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:""+C+" Stock Exchange",children:j})})})},a=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.balance,C=d.stationName,j=d.viewMode,b=(0,e.jsx)(g,{});return j==="Full"?b=(0,e.jsx)(g,{}):j==="Compressed"&&(b=(0,e.jsx)(x,{})),(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[C," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",p]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(n.$n,{content:j,onClick:function(){return c("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(n.$n,{icon:"list",content:"Check",onClick:function(){return c("stocks_check")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(n.wn,{title:"Listed Stocks",children:b})]})},g=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(n.cG,{}),(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{children:"ID"}),(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Owned"}),(0,e.jsx)(n.XI.Cell,{children:"Avail"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(n.cG,{}),C.map(function(j){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.ID}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Name}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Value}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Owned}),(0,e.jsx)(n.XI.Cell,{color:"label",children:j.Avail}),(0,e.jsxs)(n.XI.Cell,{color:"label",children:[(0,e.jsx)(n.$n,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:j.REF})}}),(0,e.jsx)(n.$n,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:j.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"A",onClick:function(){return c("stocks_archive",{share:j.REF})}}),(0,e.jsx)(n.$n,{content:"H",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{})]})]},j.ID)})]})]})},x=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.stocks,C=p===void 0?[]:p;return(0,e.jsx)(n.az,{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{children:j.name})," ",(0,e.jsx)("span",{children:j.ID}),j.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",j.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",j.Value," |"," ",(0,e.jsx)(n.$n,{content:"View history",onClick:function(){return c("stocks_history",{share:j.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:j.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",j.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),j.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(n.$n,{content:"Buy shares",onClick:function(){return c("stocks_buy",{share:j.REF})}})," ","|"," ",(0,e.jsx)(n.$n,{content:"Sell shares",onClick:function(){return c("stocks_sell",{share:j.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:j.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"View news archives",onClick:function(){return c("stocks_archive",{share:j.REF})}})," ",(0,e.jsx)(n.cG,{})]},j.ID)})})},f=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.logs,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:C.map(function(j){return(0,e.jsxs)(n.az,{children:[j.type!=="borrow"?(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:j.stocks})," stocks at ",j.shareprice," a share for"," ",(0,e.jsx)("b",{children:j.money})," total credits"," ",j.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[j.time," | ",(0,e.jsx)("b",{children:j.user_name})," borrowed ",(0,e.jsx)("b",{children:j.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:j.money})," credits in"," ",(0,e.jsx)("b",{children:j.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(n.cG,{})]},j.time)})})]})},m=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.name,C=d.events,j=C===void 0?[]:C,b=d.articles,I=b===void 0?[]:b;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:j.map(function(O){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:O.current_title}),(0,e.jsx)("br",{}),O.current_desc]}),(0,e.jsx)(n.cG,{})]},O.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:I.map(function(O){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:O.headline}),(0,e.jsx)("i",{children:O.subtitle}),(0,e.jsx)("br",{}),O.article,(0,e.jsx)("br",{}),"- ",O.author,", ",O.spacetime," (via"," ",(0,e.jsx)("i",{children:O.outlet}),")"]}),(0,e.jsx)(n.cG,{})]},O.headline)})})]})},v=function(u){var h=(0,s.Oc)(),c=h.act,d=h.data,p=d.name,C=d.maxValue,j=d.values,b=j===void 0?[]:j;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.wn,{position:"relative",height:"100%",children:(0,e.jsx)(n.t1.Line,{fillPositionedParent:!0,data:b,rangeX:[0,b.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(n.cG,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},21665:function(P,y,t){"use strict";t.r(y),t.d(y,{SuitCycler:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(68040),a=function(v){var u=function(V){D(V)},h=function(V){K(V)},c=(0,n.Oc)(),d=c.act,p=c.data,C=p.active,j=p.locked,b=p.uv_active,I=p.species,O=p.departments,_=(0,s.useState)(!!O&&O[0]||null),M=_[0],D=_[1],A=(0,s.useState)(!!I&&I[0]||null),R=A[0],K=A[1],N=(0,e.jsx)(g,{selectedDepartment:M,selectedSpecies:R,onSelectedDepartment:u,onSelectedSpecies:h});return b?N=(0,e.jsx)(x,{}):j?N=(0,e.jsx)(f,{}):C&&(N=(0,e.jsx)(m,{})),(0,e.jsx)(i.p8,{width:320,height:400,children:(0,e.jsx)(i.p8.Content,{children:N})})},g=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.safeties,p=c.occupied,C=c.suit,j=c.helmet,b=c.departments,I=c.species,O=c.uv_level,_=c.max_uv_level,M=c.can_repair,D=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}}),children:[!!(p&&d)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return h("eject_guy")}})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return h("dispense",{item:"helmet"})}})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return h("dispense",{item:"suit"})}})}),M&&D?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[D,(0,e.jsx)(r.$n,{icon:"wrench",content:"Repair",onClick:function(){return h("repair_suit")}})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{noscroll:!0,width:"150px",options:b,selected:v.selectedDepartment,onSelected:function(A){v.onSelectedDepartment(A),h("department",{department:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:I,selected:v.selectedSpecies,onSelected:function(A){v.onSelectedSpecies(A),h("species",{species:A})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,content:"Customize",onClick:function(){return h("apply_paintjob")}})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:O,minValue:1,maxValue:_,stepPixelSize:30,onChange:function(A,R){return h("radlevel",{radlevel:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:p&&d,textAlign:"center",onClick:function(){return h("uv")}})})]})})]})},x=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(v){var u=(0,n.Oc)(),h=u.act,c=u.data,d=c.model_text,p=c.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",d," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",content:"[Unlock]",disabled:!p,onClick:function(){return h("lock")}})})]})},m=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},42688:function(P,y,t){"use strict";t.r(y),t.d(y,{SuitStorageUnit:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.panelopen,d=h.uv_active,p=h.broken,C=(0,e.jsx)(a,{});return c?C=(0,e.jsx)(g,{}):d?C=(0,e.jsx)(x,{}):p&&(C=(0,e.jsx)(f,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:C})})},a=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.locked,d=h.open,p=h.safeties,C=h.occupied,j=h.suit,b=h.helmet,I=h.mask;return(0,e.jsxs)(n.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!d&&(0,e.jsx)(n.$n,{icon:c?"unlock":"lock",content:c?"Unlock":"Lock",onClick:function(){return u("lock")}}),!c&&(0,e.jsx)(n.$n,{icon:d?"sign-out-alt":"sign-in-alt",content:d?"Close":"Open",onClick:function(){return u("door")}})]}),children:[!!(C&&p)&&(0,e.jsxs)(n.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return u("eject_guy")}})]}),c&&(0,e.jsxs)(n.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(n.az,{children:"Unit Locked"}),(0,e.jsx)(n.In,{name:"lock"})]})||d&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Helmet",children:(0,e.jsx)(n.$n,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){return u("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Suit",children:(0,e.jsx)(n.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return u("dispense",{item:"suit"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:I?"square":"square-o",content:I||"Empty",disabled:!I,onClick:function(){return u("dispense",{item:"mask"})}})})]})||(0,e.jsx)(n.$n,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:C&&p,textAlign:"center",onClick:function(){return u("uv")}})]})},g=function(m){var v=(0,s.Oc)(),u=v.act,h=v.data,c=h.safeties,d=h.uv_super;return(0,e.jsxs)(n.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(n.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",d?"15nm":"185nm",".",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.N6,{size:2,inline:!0,value:d,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:d?"red":"green",format:function(p){return p?"15nm":"185nm"},onChange:function(p,C){return u("toggleUV")}})}),(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return u("togglesafeties")}})}),(0,e.jsxs)(n.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"circle",color:c?"black":"red",mr:2}),(0,e.jsx)(n.In,{name:"circle",color:c?"green":"black"})]})]})]})]})},x=function(m){return(0,e.jsx)(n.IC,{children:"Contents are currently being decontaminated. Please wait."})},f=function(m){return(0,e.jsx)(n.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},67186:function(P,y,t){"use strict";t.r(y),t.d(y,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=t(88095),s=t(5229),n=t(33854),r=t(4413),i=t(92514),a=t(68040),g=function(v){return(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.active;return d?(0,e.jsx)(m,{}):(0,e.jsx)(f,{})},f=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.supermatters;return(0,e.jsx)(i.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(i.$n,{content:"Refresh",icon:"sync",onClick:function(){return h("refresh")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:d.map(function(p,C){return(0,e.jsx)(i.so.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(i.wn,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(i.Ki.Item,{label:"Options",children:(0,e.jsx)(i.$n,{icon:"eye",content:"View Details",onClick:function(){return h("set",{set:p.uid})}})})]})})},C)})})})},m=function(v){var u=(0,r.Oc)(),h=u.act,c=u.data,d=c.SM_area,p=c.SM_integrity,C=c.SM_power,j=c.SM_ambienttemp,b=c.SM_ambientpressure,I=c.SM_EPR,O=c.SM_gas_O2,_=c.SM_gas_CO2,M=c.SM_gas_N2,D=c.SM_gas_PH,A=c.SM_gas_N2O;return(0,e.jsx)(i.wn,{title:(0,n.Sn)(d),buttons:(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return h("clear")}}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(i.z2,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(i.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(i.az,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(i.Ki.Item,{label:"Temperature",children:(0,e.jsx)(i.az,{color:j>5e3&&"bad"||j>4e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" K"},value:j})})}),(0,e.jsx)(i.Ki.Item,{label:"Pressure",children:(0,e.jsx)(i.az,{color:b>1e4&&"bad"||b>5e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" kPa"},value:b})})}),(0,e.jsx)(i.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(i.az,{color:I>4&&"bad"||I>1&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)},value:I})})}),(0,e.jsx)(i.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(i.zv,{value:O}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(i.zv,{value:_}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(i.zv,{value:M}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"PH",children:[(0,e.jsx)(i.zv,{value:D}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(i.zv,{value:A}),"%"]})]})})]})})}},85308:function(P,y,t){"use strict";t.r(y),t.d(y,{SupplyConsole:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(5425),f=t(68040),m=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.supply_points,_=C.args,M=_.name,D=_.cost,A=_.manifest,R=_.ref,K=_.random;return(0,e.jsx)(a.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:M,buttons:(0,e.jsx)(a.$n,{icon:"shopping-cart",content:"Buy - "+D+" points",disabled:D>O,onClick:function(){return b("request_crate",{ref:R})}}),children:(0,e.jsx)(a.wn,{title:"Contains"+(K?" any "+K+" of:":""),scrollable:!0,height:"200px",children:A.map(function(N){return(0,e.jsx)(a.az,{children:N},N)})})})},v=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data;return(0,x.modalRegisterBodyOverride)("view_crate",m),(0,e.jsx)(f.p8,{width:700,height:620,children:(0,e.jsxs)(f.p8.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(a.wn,{title:"Supply Records",children:[(0,e.jsx)(u,{}),(0,e.jsx)(h,{})]})]})})},u=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.supply_points,_=I.shuttle,M=I.shuttle_auth,D=null,A=!1;return M&&(_.launch===1&&_.mode===0?D=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Away",onClick:function(){return b("send_shuttle",{mode:"send_away"})}}):_.launch===2&&(_.mode===3||_.mode===1)?D=(0,e.jsx)(a.$n,{icon:"ban",content:"Cancel Launch",onClick:function(){return b("send_shuttle",{mode:"cancel_shuttle"})}}):_.launch===1&&_.mode===5&&(D=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Shuttle",onClick:function(){return b("send_shuttle",{mode:"send_to_station"})}})),_.force&&(A=!0)),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(a.zv,{value:O})})}),(0,e.jsx)(a.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[D,A?(0,e.jsx)(a.$n,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return b("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:_.location}),(0,e.jsx)(a.Ki.Item,{label:"Engine",children:_.engine}),_.mode===4?(0,e.jsx)(a.Ki.Item,{label:"ETA",children:_.time>1?(0,g.fU)(_.time):"LATE"}):null]})})]})},h=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.order_auth,_=(0,r.useState)(0),M=_[0],D=_[1];return(0,e.jsxs)(a.wn,{title:"Menu",children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{icon:"box",selected:M===0,onClick:function(){return D(0)},children:"Request"}),(0,e.jsx)(a.tU.Tab,{icon:"check-circle-o",selected:M===1,onClick:function(){return D(1)},children:"Accepted"}),(0,e.jsx)(a.tU.Tab,{icon:"circle-o",selected:M===2,onClick:function(){return D(2)},children:"Requests"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:M===3,onClick:function(){return D(3)},children:"Order history"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:M===4,onClick:function(){return D(4)},children:"Export history"})]}),M===0?(0,e.jsx)(c,{}):null,M===1?(0,e.jsx)(d,{mode:"Approved"}):null,M===2?(0,e.jsx)(d,{mode:"Requested"}):null,M===3?(0,e.jsx)(d,{mode:"All"}):null,M===4?(0,e.jsx)(p,{}):null]})},c=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.categories,_=I.supply_packs,M=I.contraband,D=I.supply_points,A=(0,r.useState)(null),R=A[0],K=A[1],N=(0,n.L)([(0,s.pb)(function(k){return k.group===R}),(0,s.pb)(function(k){return!k.contraband||M}),(0,s.Ul)(function(k){return k.name}),(0,s.Ul)(function(k){return k.cost>D})])(_);return(0,e.jsx)(a.wn,{level:2,children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{basis:"25%",children:(0,e.jsx)(a.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:O.map(function(k){return(0,e.jsx)(a.$n,{fluid:!0,content:k,selected:k===R,onClick:function(){return K(k)}},k)})})}),(0,e.jsx)(a.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(a.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(k){return(0,e.jsx)(a.az,{children:(0,e.jsxs)(a.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(a.BJ.Item,{basis:"70%",children:(0,e.jsx)(a.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:k.name,color:k.cost>D?"red":null,onClick:function(){return b("request_crate",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"#",color:k.cost>D?"red":null,onClick:function(){return b("request_crate_multi",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"C",color:k.cost>D?"red":null,onClick:function(){return b("view_crate",{crate:k.ref})}})}),(0,e.jsxs)(a.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},d=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=C.mode,_=I.orders,M=I.order_auth,D=I.supply_points,A=_.filter(function(R){return R.status===O||O==="All"});return A.length?(0,e.jsxs)(a.wn,{level:2,children:[O==="Requested"&&M?(0,e.jsx)(a.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return b("clear_all_requests")}}):null,A.map(function(R,K){return(0,e.jsxs)(a.wn,{title:"Order "+(K+1),buttons:O==="All"&&M?(0,e.jsx)(a.$n,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return b("delete_order",{ref:R.ref})}}):null,children:[(0,e.jsxs)(a.Ki,{children:[R.entries.map(function(N,k){return N.entry?(0,e.jsx)(a.Ki.Item,{label:N.field,buttons:M?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){b("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})}}):null,children:N.entry},k):null}),O==="All"?(0,e.jsx)(a.Ki.Item,{label:"Status",children:R.status}):null]}),M&&O==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"check",content:"Approve",disabled:R.cost>D,onClick:function(){return b("approve_order",{ref:R.ref})}}),(0,e.jsx)(a.$n,{icon:"times",content:"Deny",onClick:function(){return b("deny_order",{ref:R.ref})}})]}):null]},K)})]}):(0,e.jsx)(a.wn,{level:2,children:"No orders found."})},p=function(C){var j=(0,i.Oc)(),b=j.act,I=j.data,O=I.receipts,_=I.order_auth;return O.length?(0,e.jsx)(a.wn,{level:2,children:O.map(function(M,D){return(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.Ki,{children:[M.title.map(function(A){return(0,e.jsx)(a.Ki.Item,{label:A.field,buttons:_?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit",{ref:M.ref,edit:A.field,default:A.entry})}}):null,children:A.entry},A.field)}),M.error?(0,e.jsx)(a.Ki.Item,{labelColor:"red",label:"Error",children:M.error}):M.contents.map(function(A,R){return(0,e.jsxs)(a.Ki.Item,{label:A.object,buttons:_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return b("export_edit_field",{ref:M.ref,index:R+1,edit:"meow",default:A.object})}}),(0,e.jsx)(a.$n,{icon:"trash",color:"red",content:"Delete",onClick:function(){return b("export_delete_field",{ref:M.ref,index:R+1})}})]}):null,children:[A.quantity,"x -> ",A.value," points"]},R)})]}),_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return b("export_add_field",{ref:M.ref})}}),(0,e.jsx)(a.$n,{icon:"trash",content:"Delete Record",onClick:function(){return b("export_delete",{ref:M.ref})}})]}):null]},D)})}):(0,e.jsx)(a.wn,{level:2,children:"No receipts found."})}},64460:function(P,y,t){"use strict";t.r(y),t.d(y,{TEGenerator:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(68040),g=function(f){var m=(0,n.Oc)().data,v=m.totalOutput,u=m.maxTotalOutput,h=m.thermalOutput,c=m.primary,d=m.secondary;return(0,e.jsx)(a.p8,{width:550,height:310,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:v,maxValue:u,children:(0,i.d5)(v)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,i.d5)(h)})]})}),c&&d?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:c})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:d})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(f){var m=f.name,v=f.values,u=v.dir,h=v.output,c=v.flowCapacity,d=v.inletPressure,p=v.inletTemperature,C=v.outletPressure,j=v.outletTemperature;return(0,e.jsx)(r.wn,{title:m+" ("+u+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,i.d5)(h)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,s.LI)(c,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,i.QL)(d*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,s.LI)(p,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,i.QL)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,s.LI)(j,2)," K"]})]})})}},62646:function(P,y,t){"use strict";t.r(y),t.d(y,{Tank:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.connected,v=f.showToggle,u=v===void 0?!0:v,h=f.maskConnected,c=f.tankPressure,d=f.releasePressure,p=f.defaultReleasePressure,C=f.minReleasePressure,j=f.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:!!u&&(0,e.jsx)(n.$n,{icon:m?"air-freshener":"lock-open",selected:m,disabled:!h,content:"Mask Release Valve",onClick:function(){return x("toggle")}}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Mask Connected",children:h?"Yes":"No"})})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:f.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:d===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(d),width:"65px",unit:"kPa",minValue:C,maxValue:j,onChange:function(b,I){return x("pressure",{pressure:I})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:d===j,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",content:"",disabled:d===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},87867:function(P,y,t){"use strict";t.r(y),t.d(y,{TankDispenser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.plasma,v=f.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(n.$n,{icon:m?"square":"square-o",content:"Dispense",disabled:!m,onClick:function(){return x("plasma")}}),children:m}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(n.$n,{icon:v?"square":"square-o",content:"Dispense",disabled:!v,onClick:function(){return x("oxygen")}}),children:v})]})})})})}},32481:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsLogBrowser:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=h.universal_translate,d=h.network,p=h.temp,C=h.servers,j=h.selectedServer;return(0,e.jsx)(i.p8,{width:575,height:450,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[p?(0,e.jsxs)(r.IC,{danger:p.color==="bad",warning:p.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:p.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return u("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}):null,(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",content:"Refresh",onClick:function(){return u("scan")}}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:C.length===0,onClick:function(){return u("release")}})]}),children:(0,e.jsx)(r.$n,{content:d,icon:"pen",onClick:function(){return u("network")}})})})}),j?(0,e.jsx)(x,{network:d,server:j,universal_translate:c}):(0,e.jsx)(g,{network:d,servers:C})]})})},g=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.network,d=m.servers;return!d||!d.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return u("scan")}})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:d.map(function(p){return(0,e.jsx)(r.Ki.Item,{label:p.name+" ("+p.id+")",children:(0,e.jsx)(r.$n,{content:"View",icon:"eye",onClick:function(){return u("view",{id:p.id})}})},p.id)})})})},x=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.network,d=m.server,p=m.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+d.id+")",buttons:(0,e.jsx)(r.$n,{content:"Return",icon:"undo",onClick:function(){return u("mainmenu")}}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:d.totalTraffic>=1024?(0,s.LI)(d.totalTraffic/1024)+" Terrabytes":d.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!d.logs||!d.logs.length?"No Logs Detected.":d.logs.map(function(C){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:C.id%2,children:(0,e.jsx)(r.wn,{title:p||C.parameters.uspeech||C.parameters.intelligible||C.input_type==="Execution Error"?C.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return u("delete",{id:C.id})}}),children:C.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:C.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return u("delete",{id:C.id})}})})]}):p||C.parameters.uspeech||C.parameters.intelligible?(0,e.jsx)(f,{log:C}):(0,e.jsx)(f,{error:!0})})},C.id)})})})]})},f=function(m){var v=(0,n.Oc)(),u=v.act,h=v.data,c=m.log,d=m.error,p=c&&c.parameters||{none:"none"},C=p.timecode,j=p.name,b=p.race,I=p.job,O=p.message;return d?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[j," (Job: ",I,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:b}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:O})]})}},25058:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsMachineBrowser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.network,u=m.temp,h=m.machinelist,c=m.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[u?(0,e.jsxs)(n.IC,{danger:u.color==="bad",warning:u.color!=="bad",children:[(0,e.jsx)(n.az,{display:"inline-box",verticalAlign:"middle",children:u.text}),(0,e.jsx)(n.$n,{icon:"times-circle",float:"right",onClick:function(){return f("cleartemp")}}),(0,e.jsx)(n.az,{clear:"both"})]}):null,(0,e.jsx)(n.wn,{title:"Network Control",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}}),(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:h.length===0,onClick:function(){return f("release")}})]}),children:(0,e.jsx)(n.$n,{content:v,icon:"pen",onClick:function(){return f("network")}})})})}),h&&h.length?(0,e.jsx)(a,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:h,showBack:c}):(0,e.jsx)(n.wn,{title:"No Devices Found",children:(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return f("scan")}})})]})})},a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=g.list,u=g.title,h=g.showBack;return(0,e.jsxs)(n.wn,{title:u,buttons:h&&(0,e.jsx)(n.$n,{icon:"undo",content:"Back to Main Menu",onClick:function(){return f("mainmenu")}}),children:[(0,e.jsx)(n.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(n.Ki,{children:v.length?v.map(function(c){return(0,e.jsx)(n.Ki.Item,{label:c.name+" ("+c.id+")",children:(0,e.jsx)(n.$n,{content:"View",icon:"eye",onClick:function(){return f("view",{id:c.id})}})},c.id)}):(0,e.jsx)(n.Ki.Item,{color:"bad",children:"No links detected."})})]})}},45760:function(P,y,t){"use strict";t.r(y),t.d(y,{TelecommsMultitoolMenu:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=t(82489),a=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,b=u.options,I=u.linked,O=u.filter,_=u.multitool,M=u.multitool_buffer;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:b})]})})},g=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=u.temp,c=u.on,d=u.id,p=u.network,C=u.autolinkers,j=u.shadowlink,b=u.options,I=u.linked,O=u.filter,_=u.multitool,M=u.multitool_buffer;return(0,e.jsxs)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:c?"On":"Off",onClick:function(){return v("toggle")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Identification String",children:(0,e.jsx)(n.$n,{icon:"pen",content:d,onClick:function(){return v("id")}})}),(0,e.jsx)(n.Ki.Item,{label:"Network",children:(0,e.jsx)(n.$n,{icon:"pen",content:p,onClick:function(){return v("network")}})}),(0,e.jsx)(n.Ki.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),j?(0,e.jsx)(n.Ki.Item,{label:"Shadow Link",children:"Active."}):null,_?(0,e.jsxs)(n.Ki.Item,{label:"Multitool Buffer",children:[M?(0,e.jsxs)(e.Fragment,{children:[M.name," (",M.id,")"]}):null,(0,e.jsx)(n.$n,{color:M?"green":null,content:M?"Link ("+M.id+")":"Add Machine",icon:M?"link":"plus",onClick:M?function(){return v("link")}:function(){return v("buffer")}}),M?(0,e.jsx)(n.$n,{color:"red",content:"Flush",icon:"trash",onClick:function(){return v("flush")}}):null]}):null]}),(0,e.jsx)(n.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(n.Ki,{children:I.map(function(D){return(0,e.jsx)(n.Ki.Item,{label:D.ref+" "+D.name+" ("+D.id+")",buttons:(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return v("unlink",{unlink:D.index})}})},D.ref)})})}),(0,e.jsxs)(n.wn,{title:"Filtering Frequencies",mt:1,buttons:(0,e.jsx)(n.$n,{icon:"pen",content:"Add Frequency",onClick:function(){return v("freq")}}),children:[O.map(function(D){return(0,e.jsx)(n.$n.Confirm,{content:D.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return v("delete",{delete:D.freq})}},D.index)}),!O||O.length===0?(0,e.jsx)(n.az,{color:"label",children:"No filters."}):null]})]})},x=function(f){var m=(0,s.Oc)(),v=m.act,u=m.data,h=f.options,c=h.use_listening_level,d=h.use_broadcasting,p=h.use_receiving,C=h.listening_level,j=h.broadcasting,b=h.receiving,I=h.use_change_freq,O=h.change_freq,_=h.use_broadcast_range,M=h.use_receive_range,D=h.range,A=h.minRange,R=h.maxRange;return!c&&!d&&!p&&!I&&!_&&!M?(0,e.jsx)(n.wn,{title:"No Options Found"}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsxs)(n.Ki,{children:[c?(0,e.jsx)(n.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(n.$n,{icon:C?"lock-closed":"lock-open",content:C?"Yes":"No",onClick:function(){return v("change_listening")}})}):null,d?(0,e.jsx)(n.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:j,content:j?"Yes":"No",onClick:function(){return v("broadcast")}})}):null,p?(0,e.jsx)(n.Ki.Item,{label:"Receving",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:b,content:b?"Yes":"No",onClick:function(){return v("receive")}})}):null,I?(0,e.jsx)(n.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(n.$n,{icon:"wave-square",selected:!!O,content:O?"Yes ("+O+")":"No",onClick:function(){return v("change_freq")}})}):null,_||M?(0,e.jsx)(n.Ki.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(n.Q7,{value:D,minValue:A,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(K){return K+1},onDrag:function(K,N){return v("range",{range:N})}})}):null]})})}},2268:function(P,y,t){"use strict";t.r(y),t.d(y,{Teleporter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.locked_name,v=f.station_connected,u=f.hub_connected,h=f.calibrated,c=f.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},content:m})}),(0,e.jsx)(n.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:h,color:h?"good":"bad",onClick:function(){return x("test_fire")},content:h?"Accurate":"Test Fire"})}),(0,e.jsx)(n.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return x("toggle_on")},content:c?"Online":"OFFLINE"})}),(0,e.jsx)(n.Ki.Item,{label:"Station",children:v?"Connected":"Not Connected"}),(0,e.jsx)(n.Ki.Item,{label:"Hub",children:u?"Connected":"Not Connected"})]})})})})}},33756:function(P,y,t){"use strict";t.r(y),t.d(y,{TelesciConsole:function(){return a},TelesciConsoleContent:function(){return x}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(68040),a=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.noTelepad;return(0,e.jsx)(i.p8,{width:400,height:450,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:h&&(0,e.jsx)(g,{})||(0,e.jsx)(x,{})})})},g=function(f){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(f){var m=(0,n.Oc)(),v=m.act,u=m.data,h=u.insertedGps,c=u.rotation,d=u.currentZ,p=u.cooldown,C=u.crystalCount,j=u.maxCrystals,b=u.maxPossibleDistance,I=u.maxAllowedDistance,O=u.distance,_=u.tempMsg,M=u.sectorOptions,D=u.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!h,onClick:function(){return v("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:p&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.zv,{value:p})," seconds."]})||(0,e.jsx)(r.az,{children:_})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:c,format:function(A){return A+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(A,R){return v("setrotation",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:O,format:function(A){return A+"/"+I+" m"},minValue:0,maxValue:I,step:1,stepPixelSize:4,onDrag:function(A,R){return v("setdistance",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,s.Ul)(function(A){return Number(A)})(M).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",content:A,selected:d===A,onClick:function(){return v("setz",{setz:A})}},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return v("send")},content:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return v("receive")},content:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return v("recal")},content:"Recalibrate"})]})]}),D&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[D.src_x,", ",D.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[D.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[D.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",C," / ",j]})]})}},27418:function(P,y,t){"use strict";t.r(y),t.d(y,{TextInputModal:function(){return v},removeAllSkiplines:function(){return m},sanitizeMultiline:function(){return f}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(68040),g=t(12035),x=t(18513),f=function(h){return h.replace(/(\n|\r\n){3,}/,"\n\n")},m=function(h){return h.replace(/[\r\n]+/,"")},v=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.large_buttons,j=p.max_length,b=p.message,I=b===void 0?"":b,O=p.multiline,_=p.placeholder,M=_===void 0?"":_,D=p.timeout,A=p.title,R=(0,n.useState)(M||""),K=R[0],N=R[1],k=function(J){if(J!==K){var H=O?f(J):m(J);N(H)}},V=O||K.length>=30,F=135+(I.length>30?Math.ceil(I.length/4):0)+(V?75:0)+(I.length&&C?5:0);return(0,e.jsxs)(a.p8,{title:A,width:325,height:F,children:[D&&(0,e.jsx)(x.Loader,{value:D}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(J){J.key===s._.Enter&&(!V||!J.shiftKey)&&d("submit",{entry:K}),J.key===s._.Escape&&d("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,{children:(0,e.jsx)(i.az,{color:"label",children:I})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(u,{input:K,onType:k},A)}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:K,message:K.length+"/"+j})})]})})})]})},u=function(h){var c=(0,r.Oc)(),d=c.act,p=c.data,C=p.max_length,j=p.multiline,b=h.input,I=h.onType,O=j||b.length>=30;return(0,e.jsx)(i.fs,{autoFocus:!0,autoSelect:!0,height:j||b.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return d("cancel")},onEnter:function(_){O&&_.shiftKey||(_.preventDefault(),d("submit",{entry:b}))},onChange:function(_,M){return I(M)},onInput:function(_,M){return I(M)},placeholder:"Type something...",value:b})}},98143:function(P,y,t){"use strict";t.r(y),t.d(y,{TimeClock:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(68040),a=t(89863),g=function(x){var f=(0,n.Oc)(),m=f.act,v=f.data,u=v.department_hours,h=v.user_name,c=v.card,d=v.assignment,p=v.job_datum,C=v.allow_change_job,j=v.job_choices;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+h,children:(0,e.jsx)(r.Ki,{children:Object.keys(u).map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:b,color:u[b]>6?"good":u[b]>1?"average":"bad",children:[(0,s.Mg)(u[b],1)," ",u[b]===1?"hour":"hours"]},b)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return m("id")},children:c||"Insert ID"})}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:p.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(a.RankIcon,{color:"white",rank:p.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:p.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:p.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:p.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:p.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",p.pto_department]})||p.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",p.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(C&&p&&p.timeoff_factor!==0&&d!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:p.timeoff_factor>0&&(u[p.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return m("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(j).length&&Object.keys(j).map(function(b){var I=j[b];return I.map(function(O){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return m("switch-to-onduty-rank",{"switch-to-onduty-rank":b,"switch-to-onduty-assignment":O})},children:O},O)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6048:function(P,y,t){"use strict";t.r(y),t.d(y,{TraitDescription:function(){return g},TraitSelection:function(){return a},TraitTutorial:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(a,{})})})})},a=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=v.names,h=v.selection;return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{shrink:!0,children:(0,e.jsx)(n.wn,{title:"Trait Selection",children:(0,e.jsx)(n.tU,{vertical:!0,children:u.map(function(c){return(0,e.jsx)(n.tU.Tab,{selected:c===h,onClick:function(){return m("select_trait",{name:c})},children:(0,e.jsx)(n.az,{inline:!0,children:c})},c)})})})}),(0,e.jsx)(n.BJ.Item,{grow:8,children:h&&(0,e.jsx)(n.wn,{title:h,children:(0,e.jsx)(g,{name:h})})})]})},g=function(x){var f=(0,s.Oc)(),m=f.act,v=f.data,u=x.name,h=v.descriptions,c=v.categories,d=v.tutorials;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",u,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",c[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",h[u],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:d[u]}})]})}},81267:function(P,y,t){"use strict";t.r(y),t.d(y,{TransferValve:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.tank_one,v=f.tank_two,u=f.attached_device,h=f.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(n.$n,{icon:h?"unlock":"lock",content:h?"Open":"Closed",disabled:!m||!v,onClick:function(){return x("toggle")}})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!u,onClick:function(){return x("device")}}),children:(0,e.jsx)(n.Ki,{children:u?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:u,disabled:!u,onClick:function(){return x("remove_device")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(n.wn,{title:"Attachment One",children:(0,e.jsx)(n.Ki,{children:m?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:m,disabled:!m,onClick:function(){return x("tankone")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(n.wn,{title:"Attachment Two",children:(0,e.jsx)(n.Ki,{children:v?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:v,disabled:!v,onClick:function(){return x("tanktwo")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},96734:function(P,y,t){"use strict";t.r(y),t.d(y,{TurbineControl:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(68040),a=function(g){var x=(0,s.Oc)(),f=x.act,m=x.data,v=m.connected,u=m.compressor_broke,h=m.turbine_broke,c=m.broken,d=m.door_status,p=m.online,C=m.power,j=m.rpm,b=m.temp;return(0,e.jsx)(i.p8,{width:520,height:440,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Turbine Controller",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:c&&(0,e.jsxs)(n.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return f("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(n.az,{color:p?"good":"bad",children:p&&!u&&!h?"Online":"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Compressor",children:u&&(0,e.jsx)(n.az,{color:"bad",children:"Compressor is inoperable."})||h&&(0,e.jsx)(n.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n.Checkbox,{checked:p,content:"Compressor Power",onClick:function(){return f(p?"power-off":"power-on")}})})}),(0,e.jsx)(n.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(n.$n.Checkbox,{checked:d,onClick:function(){return f("doors")},content:d?"Closed":"Open"})})]})}),(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[c?"--":(0,e.jsx)(n.zv,{value:j})," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Internal Temperature",children:[c?"--":(0,e.jsx)(n.zv,{value:b})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:c?"--":(0,e.jsx)(n.zv,{format:function(I){return(0,r.d5)(I)},value:Number(C)})})]})})]})})}},44027:function(P,y,t){"use strict";t.r(y),t.d(y,{Turbolift:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i=function(a){var g=(0,s.Oc)(),x=g.act,f=g.data,m=f.floors,v=f.doors_open,u=f.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+u*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Floor Selection",className:u?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:v?"door-open":"door-closed",content:v?u?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:v&&!u,color:u?"red":null,onClick:function(){return x("toggle_doors")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return x("emergency_stop")}})]}),children:[!u||(0,e.jsx)(n.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(n.so,{wrap:"wrap",children:m.map(function(h){return(0,e.jsx)(n.so.Item,{basis:"100%",children:(0,e.jsxs)(n.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:h.label||"Floor #"+h.id}),(0,e.jsx)(n.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(n.$n,{icon:"circle",color:h.current?"red":h.target?"green":h.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:h.ref})}})}),(0,e.jsx)(n.so.Item,{basis:"50%",grow:1,children:h.name})]})},h.id)})})]})})})}},7829:function(P,y,t){"use strict";t.r(y),t.d(y,{GenericUplink:function(){return h},Uplink:function(){return m}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(24158),g=t(68040);function x(){return x=Object.assign||function(d){for(var p=1;p").map(function(O){return(0,e.jsx)(i.az,{children:O},O)})})]})})||I.map(function(O){return(0,e.jsx)(i.$n,{icon:"eye",fluid:!0,content:O.name,onClick:function(){return C("view_exploits",{id:O.id})}},O.id)})})},h=function(d){var p,C,j=d.currencyAmount,b=j===void 0?0:j,I=d.currencySymbol,O=I===void 0?"\u20AE":I,_=(0,r.Oc)(),M=_.act,D=_.data,A=D.compactMode,R=D.lockable,K=D.categories,N=K===void 0?[]:K,k=(0,n.useState)(""),V=k[0],F=k[1],J=(0,n.useState)((p=N[0])==null?void 0:p.name),H=J[0],Q=J[1],Z=(0,s.XZ)(V,function(z){return z.name+z.desc}),X=V.length>0&&N.flatMap(function(z){return z.items||[]}).filter(Z).filter(function(z,Y){return Y0?"good":"bad",children:[(0,a.up)(b)," ",O]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(i.pd,{autoFocus:!0,value:V,onInput:function(z,Y){return F(Y)},mx:1}),(0,e.jsx)(i.$n,{icon:A?"list":"info",content:A?"Compact":"Detailed",onClick:function(){return M("compact_toggle")}}),!!R&&(0,e.jsx)(i.$n,{icon:"lock",content:"Lock",onClick:function(){return M("lock")}})]}),children:(0,e.jsxs)(i.so,{children:[V.length===0&&(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.tU,{vertical:!0,children:N.map(function(z){var Y;return(0,e.jsxs)(i.tU.Tab,{selected:z.name===H,onClick:function(){return Q(z.name)},children:[z.name," (",((Y=z.items)==null?void 0:Y.length)||0,")"]},z.name)})})}),(0,e.jsxs)(i.so.Item,{grow:1,basis:0,children:[X.length===0&&(0,e.jsx)(i.IC,{children:V.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(c,{compactMode:V.length>0||A,currencyAmount:b,currencySymbol:O,items:X})]})]})})},c=function(d){var p=d.compactMode,C=d.currencyAmount,j=d.currencySymbol,b=(0,r.Oc)().act,I=(0,n.useState)({}),O=I[0],_=I[1],M=O&&O.cost||0,D=d.items.map(function(A){var R=O&&O.name!==A.name,K=C-M=0)&&(k[F]=K[F]);return k}var m=[null,"average","bad"],v={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},u={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},h=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=(0,r.useState)(0),J=F[0],H=F[1],Q=[];return Q[0]=(0,e.jsx)(d,{}),Q[1]=(0,e.jsx)(A,{}),(0,e.jsx)(g.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[V.unsaved_changes&&(0,e.jsx)(a.IC,{danger:!0,children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")}})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:["Bellies",(0,e.jsx)(a.In,{name:"list",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:["Preferences",(0,e.jsx)(a.In,{name:"user-cog",ml:.5})]})]}),Q[J]||"Error"]})})},c=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.inside,J=F.absorbed,H=F.belly_name,Q=F.belly_mode,Z=F.desc,X=F.pred,z=F.contents,Y=F.ref;return H?(0,e.jsxs)(a.wn,{title:"Inside",children:[(0,e.jsxs)(a.az,{color:"green",inline:!0,children:["You are currently ",J?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(a.az,{color:"yellow",inline:!0,children:[X,"'s"]}),"\xA0",(0,e.jsx)(a.az,{color:"red",inline:!0,children:H}),"\xA0",(0,e.jsx)(a.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(a.az,{color:v[Q],inline:!0,children:u[Q]}),"\xA0",(0,e.jsx)(a.az,{color:"label",children:Z}),z.length&&(0,e.jsx)(a.Nt,{title:"Belly Contents",children:(0,e.jsx)(D,{contents:z,belly:Y})})||"There is nothing else around you."]}):(0,e.jsx)(a.wn,{title:"Inside",children:"You aren't inside anyone."})},d=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.our_bellies,J=V.selected;return(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{shrink:!0,children:(0,e.jsx)(a.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(a.tU,{vertical:!0,children:[(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(a.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(a.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(a.cG,{}),F.map(function(H){return(0,e.jsx)(a.tU.Tab,{selected:H.selected,textColor:v[H.digest_mode],onClick:function(){return k("bellypick",{bellypick:H.ref})},children:(0,e.jsxs)(a.az,{inline:!0,textColor:H.selected&&v[H.digest_mode]||null,children:[H.name," (",H.contents,")"]})},H.name)})]})})}),(0,e.jsx)(a.so.Item,{grow:!0,children:J&&(0,e.jsx)(a.wn,{title:J.belly_name,children:(0,e.jsx)(p,{belly:J})})})]})},p=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.contents,F=(0,r.useState)(0),J=F[0],H=F[1],Q=[];return Q[0]=(0,e.jsx)(C,{belly:k}),Q[1]=(0,e.jsx)(j,{belly:k}),Q[2]=(0,e.jsx)(b,{belly:k}),Q[3]=(0,e.jsx)(O,{belly:k}),Q[4]=(0,e.jsx)(_,{belly:k}),Q[5]=(0,e.jsx)(M,{belly:k}),Q[6]=(0,e.jsx)(D,{outside:!0,contents:V}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:"Controls"}),(0,e.jsx)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:"Descriptions"}),(0,e.jsx)(a.tU.Tab,{selected:J===2,onClick:function(){return H(2)},children:"Options"}),(0,e.jsx)(a.tU.Tab,{selected:J===3,onClick:function(){return H(3)},children:"Sounds"}),(0,e.jsx)(a.tU.Tab,{selected:J===4,onClick:function(){return H(4)},children:"Visuals"}),(0,e.jsx)(a.tU.Tab,{selected:J===5,onClick:function(){return H(5)},children:"Interactions"}),(0,e.jsxs)(a.tU.Tab,{selected:J===6,onClick:function(){return H(6)},children:["Contents (",V.length,")"]})]}),Q[J]||"Error"]})},C=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.belly_name,F=k.mode,J=k.item_mode,H=k.addons;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return N("move_belly",{dir:-1})}}),(0,e.jsx)(a.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return N("move_belly",{dir:1})}})]}),children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_name"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Mode",children:(0,e.jsx)(a.$n,{color:v[F],onClick:function(){return N("set_attribute",{attribute:"b_mode"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Mode Addons",children:[H.length&&H.join(", ")||"None",(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(a.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_mode"})},content:J})}),(0,e.jsx)(a.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(a.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return N("set_attribute",{attribute:"b_del"})}})})]})},j=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.verb,F=k.release_verb,J=k.desc,H=k.absorbed_desc;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Description",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:J}),(0,e.jsx)(a.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:H}),(0,e.jsx)(a.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_verb"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release_verb"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(a.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(a.$n,{color:"red",onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},b=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Q=K.belly,Z=Q.can_taste,X=Q.nutrition_percent,z=Q.digest_brute,Y=Q.digest_burn,ee=Q.digest_oxy,oe=Q.digest_tox,ne=Q.digest_clone,ue=Q.bulge_size,ce=Q.display_absorbed_examine,me=Q.shrink_grow_size,xe=Q.emote_time,ve=Q.emote_active,be=Q.contaminates,we=Q.contaminate_flavor,Je=Q.contaminate_color,ze=Q.egg_type,Le=Q.selective_preference,Be=Q.save_digest_mode,dt=Q.eating_privacy_local,xt=Q.silicon_belly_overlay_preference,lt=Q.belly_mob_mult,rt=Q.belly_item_mult,Re=Q.belly_overall_mult,Ke=Q.drainmode;return(0,e.jsxs)(a.so,{wrap:"wrap",children:[(0,e.jsxs)(a.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminate"})},icon:be?"toggle-on":"toggle-off",selected:be,content:be?"Yes":"No"})}),be&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:we})}),(0,e.jsx)(a.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.ZH)(Je)})})]})||null,(0,e.jsx)(a.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},content:X+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},content:ue*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:ce?"toggle-on":"toggle-off",selected:ce,content:ce?"True":"False"})}),(0,e.jsx)(a.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.ZH)(dt)})}),(0,e.jsx)(a.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})})]}),(0,e.jsx)(I,{belly:Q})]}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"Active":"Inactive"})}),(0,e.jsx)(a.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},content:xe+" seconds"})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},content:Y})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},content:ee})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},content:oe})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},content:ne})}),(0,e.jsx)(a.Ki.Item,{label:"Drain Finishing Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_drainmode"})},content:Ke})}),(0,e.jsx)(a.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},content:me*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.ZH)(ze)})}),(0,e.jsx)(a.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.ZH)(Le)})})]})})]})},I=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Q=K.belly,Z=Q.silicon_belly_overlay_preference,X=Q.belly_mob_mult,z=Q.belly_item_mult,Y=Q.belly_overall_mult;return J?(0,e.jsx)(a.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.ZH)(Z)})}),(0,e.jsx)(a.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},content:X})}),(0,e.jsx)(a.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},content:Y})})]})}):H?(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})}):(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})})},O=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.is_wet,F=k.wet_loop,J=k.fancy,H=k.sound,Q=k.release_sound;return(0,e.jsx)(a.so,{wrap:"wrap",children:(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetness"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetloop"})},icon:F?"toggle-on":"toggle-off",selected:F,content:F?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_fancy_sound"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})}),(0,e.jsxs)(a.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_sound"})},content:H}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release"})},content:Q}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},_=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.belly_fullscreen,F=k.possible_fullscreens,J=k.disable_hud,H=k.belly_fullscreen_color,Q=k.belly_fullscreen_color_secondary,Z=k.belly_fullscreen_color_trinary,X=k.mapRef,z=k.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(a.so,{direction:"row",children:[(0,e.jsx)(a.az,{backgroundColor:H,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(a.az,{backgroundColor:Q,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(a.az,{backgroundColor:Z,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(a.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_colorization_enabled"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(a.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.wn,{title:"Vore FX",children:(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_disable_hud"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})})})}),(0,e.jsxs)(a.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(a.$n,{fluid:!0,selected:V===""||V===null,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(F).map(function(Y,ee){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(a.$n,{width:"256px",height:"256px",selected:Y===V,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:Y})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["vore240x240",Y]),style:{transform:"translate(0%, 4%)"}})},Y)},ee)})]})]})]})},M=function(K){var N=(0,i.Oc)().act,k=K.belly,V=k.escapable,F=k.interacts;return(0,e.jsx)(a.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapable"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Interactions On":"Interactions Off"}),children:V?(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance_absorbed+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(a.$n,{content:F.escapetime/10+"s",onClick:function(){return N("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation?F.transferlocation:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance_secondary+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation_secondary?F.transferlocation_secondary:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(a.$n,{content:F.absorbchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(a.$n,{content:F.digestchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_digestchance"})}})})]}):"These options only display while interactions are turned on."})},D=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.show_pictures,J=K.contents,H=K.belly,Q=K.outside,Z=Q===void 0?!1:Q;return(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,F&&(0,e.jsx)(a.so,{wrap:"wrap",justify:"center",align:"center",children:J.map(function(X){return(0,e.jsxs)(a.so.Item,{basis:"33%",children:[(0,e.jsx)(a.$n,{width:"64px",color:X.absorbed?"purple":m[X.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return k(X.outside?"pick_from_outside":"pick_from_inside",{pick:X.ref,belly:H})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+X.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),X.name]},X.name)})})||(0,e.jsx)(a.Ki,{children:J.map(function(X){return(0,e.jsx)(a.Ki.Item,{label:X.name,children:(0,e.jsx)(a.$n,{fluid:!0,mt:-1,mb:-1,color:X.absorbed?"purple":m[X.stat],onClick:function(){return k(X.outside?"pick_from_outside":"pick_from_inside",{pick:X.ref,belly:H})},children:"Interact"})},X.ref)})})]})},A=function(K){var N=(0,i.Oc)(),k=N.act,V=N.data,F=V.prefs,J=F.digestable,H=F.devourable,Q=F.resizable,Z=F.feeding,X=F.absorbable,z=F.digest_leave_remains,Y=F.allowmobvore,ee=F.permit_healbelly,oe=F.show_vore_fx,ne=F.can_be_drop_prey,ue=F.can_be_drop_pred,ce=F.allow_inbelly_spawning,me=F.allow_spontaneous_tf,xe=F.step_mechanics_active,ve=F.pickup_mechanics_active,be=F.noisy,we=F.drop_vore,Je=F.stumble_vore,ze=F.slip_vore,Le=F.throw_vore,Be=F.food_vore,dt=F.nutrition_message_visible,xt=F.weight_message_visible,lt=F.eating_privacy_global,rt=V.show_pictures,Re={digestion:{action:"toggle_digest",test:J,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:X,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:H,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:Y,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:Z,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:ee,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:ne,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:ue,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:we,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:ze,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Je,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:Le,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Be,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:ce,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:be,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:Q,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:xe,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:oe,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:z,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:ve,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:me,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:dt,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:xt,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:lt,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.jsxs)(a.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(a.$n,{icon:"eye",selected:rt,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",rt?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.digestion})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.absorbable})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.devour})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.mobvore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.feed})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.dropnom_prey})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.dropnom_pred})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_drop_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_slip_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.toggle_stumble_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_throw_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.toggle_food_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.inbelly_spawning})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.noisy})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.resize})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.steppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.remains,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Re.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Re.spontaneous_tf})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return k("switch_selective_mode_pref")}})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(R,{spec:Re.eating_privacy_global})})]}),(0,e.jsx)(a.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return k("setflavor")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return k("setsmell")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(R,{spec:Re.examine_nutrition})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(R,{spec:Re.examine_weight})})]})}),(0,e.jsx)(a.cG,{}),(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.so,{spacing:1,children:[(0,e.jsx)(a.so.Item,{basis:"49%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return k("reloadprefs")}})})]})})]})},R=function(K){var N=(0,i.Oc)().act,k=K.spec,V=f(K,["spec"]),F=k.action,J=k.test,H=k.tooltip,Q=k.content;return(0,e.jsx)(a.$n,x({onClick:function(){return N(F)},icon:J?"toggle-on":"toggle-off",selected:J,fluid:!0,tooltip:H.main+" "+(J?H.disable:H.enable),content:J?Q.enabled:Q.disabled},V))}},85688:function(P,y,t){"use strict";t.r(y),t.d(y,{VorePanelExport:function(){return u}});var e=t(88095),s=t(4413),n=t(92514),r=t(68040),i={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},a={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},g={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(c){var d=[];return c==null||c.forEach(function(p){d.push(''+p+"")}),d.length===0&&d.push("No Addons Set"),d},f=function(c,d){var p=c.name,C=c.desc,j=c.absorbed_desc,b=c.vore_verb,I=c.release_verb,O=c.mode,_=c.addons,M=c.item_mode,D=c.digest_brute,A=c.digest_burn,R=c.digest_oxy,K=c.digest_tox,N=c.digest_clone,k=c.can_taste,V=c.contaminates,F=c.contamination_flavor,J=c.contamination_color,H=c.nutrition_percent,Q=c.bulge_size,Z=c.display_absorbed_examine,X=c.save_digest_mode,z=c.emote_active,Y=c.emote_time,ee=c.shrink_grow_size,oe=c.egg_type,ne=c.selective_preference,ue=c.struggle_messages_outside,ce=c.struggle_messages_inside,me=c.absorbed_struggle_messages_outside,xe=c.absorbed_struggle_messages_inside,ve=c.escape_attempt_messages_owner,be=c.escape_attempt_messages_prey,we=c.escape_messages_owner,Je=c.escape_messages_prey,ze=c.escape_messages_outside,Le=c.escape_item_messages_owner,Be=c.escape_item_messages_prey,dt=c.escape_item_messages_outside,xt=c.escape_fail_messages_owner,lt=c.escape_fail_messages_prey,rt=c.escape_attempt_absorbed_messages_owner,Re=c.escape_attempt_absorbed_messages_prey,Ke=c.escape_absorbed_messages_owner,Pe=c.escape_absorbed_messages_prey,ke=c.escape_absorbed_messages_outside,Me=c.escape_fail_absorbed_messages_owner,Ve=c.escape_fail_absorbed_messages_prey,We=c.primary_transfer_messages_owner,He=c.primary_transfer_messages_prey,gt=c.secondary_transfer_messages_owner,Mt=c.secondary_transfer_messages_prey,bt=c.digest_chance_messages_owner,Dt=c.digest_chance_messages_prey,ct=c.absorb_chance_messages_owner,Ge=c.absorb_chance_messages_prey,je=c.digest_messages_owner,Qe=c.digest_messages_prey,vt=c.absorb_messages_owner,Pt=c.absorb_messages_prey,zt=c.unabsorb_messages_owner,en=c.unabsorb_messages_prey,Wt=c.examine_messages,fn=c.examine_messages_absorbed,Tn=c.emotes_digest,Fn=c.emotes_hold,Vn=c.emotes_holdabsorbed,Eo=c.emotes_absorb,bo=c.emotes_heal,Oo=c.emotes_drain,Xr=c.emotes_steal,Gr=c.emotes_egg,Hr=c.emotes_shrink,ta=c.emotes_grow,bn=c.emotes_unabsorb,Io=c.is_wet,br=c.wet_loop,xn=c.fancy_vore,pn=c.vore_sound,sr=c.release_sound,Or=c.disable_hud,_o=c.escapable,ni=c.escapechance,ri=c.escapechance_absorbed,oi=c.escapetime,An=c.transferchance,na=c.transferlocation,ra=c.transferchance_secondary,ai=c.transferlocation_secondary,oa=c.absorbchance,aa=c.digestchance,ae="";return ae+='

',ae+='

",ae+='
',ae+='
',ae+="Addons:
"+x(_)+"

",ae+="== Descriptions ==
",ae+="Vore Verb:
"+b+"

",ae+="Release Verb:
"+I+"

",ae+='Description:
"'+C+'"

',ae+='Absorbed Description:
"'+j+'"

',ae+="
",ae+="== Messages ==
",ae+='
',ae+='
",ae+='
',ae+='
',ae+='
',ve==null||ve.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',be==null||be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',we==null||we.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Je==null||Je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ze==null||ze.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Le==null||Le.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Be==null||Be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',dt==null||dt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xt==null||xt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',lt==null||lt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',rt==null||rt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Re==null||Re.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ke==null||Ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pe==null||Pe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ke==null||ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Me==null||Me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ve==null||Ve.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',We==null||We.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',He==null||He.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',gt==null||gt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Mt==null||Mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',bt==null||bt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Dt==null||Dt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ct==null||ct.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ge==null||Ge.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ue==null||ue.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ce==null||ce.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',me==null||me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xe==null||xe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',je==null||je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Qe==null||Qe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',vt==null||vt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pt==null||Pt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',zt==null||zt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',en==null||en.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Wt==null||Wt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',fn==null||fn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="
",ae+="
",ae+="
",ae+="
= Idle Messages =

",ae+="

Idle Messages (Hold):

",Fn==null||Fn.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Hold Absorbed):

",Vn==null||Vn.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Digest):

",Tn==null||Tn.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Absorb):

",Eo==null||Eo.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Unabsorb):

",bn==null||bn.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Drain):

",Oo==null||Oo.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Heal):

",bo==null||bo.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Size Steal):

",Xr==null||Xr.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Shrink):

",Hr==null||Hr.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Grow):

",ta==null||ta.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="
Idle Messages (Encase In Egg):

",Gr==null||Gr.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="


",ae+="
",ae+='
',ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Can Taste: '+(k?'Yes':'No')+"
  • ",ae+='
  • Contaminates: '+(V?'Yes':'No')+"
  • ",ae+='
  • Contamination Flavor: '+F+"
  • ",ae+='
  • Contamination Color: '+J+"
  • ",ae+='
  • Nutritional Gain: '+H+"%
  • ",ae+='
  • Required Examine Size: '+Q*100+"%
  • ",ae+='
  • Display Absorbed Examines: '+(Z?'True':'False')+"
  • ",ae+='
  • Save Digest Mode: '+(X?'True':'False')+"
  • ",ae+='
  • Idle Emotes: '+(z?'Active':'Inactive')+"
  • ",ae+='
  • Idle Emote Delay: '+Y+" seconds
  • ",ae+='
  • Shrink/Grow Size: '+ee*100+"%
  • ",ae+='
  • Egg Type: '+oe+"
  • ",ae+='
  • Selective Mode Preference: '+ne+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Fleshy Belly: '+(Io?'Yes':'No')+"
  • ",ae+='
  • Internal Loop: '+(br?'Yes':'No')+"
  • ",ae+='
  • Use Fancy Sounds: '+(xn?'Yes':'No')+"
  • ",ae+='
  • Vore Sound: '+pn+"
  • ",ae+='
  • Release Sound: '+sr+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
",ae+='
',ae+="Vore FX",ae+='
    ',ae+='
  • Disable Prey HUD: '+(Or?'Yes':'No')+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+="Belly Interactions ("+(_o?'Enabled':'Disabled')+")",ae+='
    ',ae+='
  • Escape Chance: '+ni+"%
  • ",ae+='
  • Escape Chance: '+ri+"%
  • ",ae+='
  • Escape Time: '+oi/10+"s
  • ",ae+='
  • Transfer Chance: '+An+"%
  • ",ae+='
  • Transfer Location: '+na+"
  • ",ae+='
  • Secondary Transfer Chance: '+ra+"%
  • ",ae+='
  • Secondary Transfer Location: '+ai+"
  • ",ae+='
  • Absorb Chance: '+oa+"%
  • ",ae+='
  • Digest Chance: '+aa+"%
  • ",ae+="
",ae+="
",ae+="
",ae},m=function(){var c=new Date,d=String(c.getHours());d.length<2&&(d="0"+d);var p=String(c.getMinutes());p.length<2&&(p="0"+p);var C=String(c.getDate());C.length<2&&(C="0"+C);var j=String(c.getMonth()+1);j.length<2&&(j="0"+j);var b=String(c.getFullYear());return" "+b+"-"+j+"-"+C+" ("+d+" "+p+")"},v=function(c){var d=(0,s.Oc)(),p=d.act,C=d.data,j=C.db_version,b=C.db_repo,I=C.mob_name,O=C.bellies,_=m(),M=I+_+c,D;if(c===".html"){var A="";D=new Blob([''+O.length+" Exported Bellies (DB_VER: "+b+"-"+j+')'+A+'

Bellies of '+I+'

Generated on: '+_+'

'],{type:"text/html;charset=utf8"}),O.forEach(function(R,K){D=new Blob([D,f(R,K)],{type:"text/html;charset=utf8"})}),D=new Blob([D,"
",'